Monday, August 19, 2019

Listening Skills Essay -- Listening Skills Listen Essays

Listening Skills   Ã‚  Ã‚  Ã‚  Ã‚  The importance of listening effectively is obvious to our everyday activities. The fundamentals of listening appear to be quite simple; however, with a little thought on the matter, the depth of the listening is far from basic. The similarities between hearing and listening can be deceiving. Hearing is a physical process and listening is both physical and psychological. There are several purposes of listening. If you are a good listener, it will be a huge help in school, at work, in relationship, and in other situations. Another positive benefit of being a good listener is the ability to easily express information and communicate with others. You can listen to understand, listen to appreciate and you can listen critically. Dr. Laura Schlessenger is a perfect example of a professional listener who applies various listening techniques in her occupation.   Ã‚  Ã‚  Ã‚  Ã‚  Dr. Laura?s listening to appreciate skills are relevant when she takes a call from Lisa, regarding her daughter. First, Dr. Laura is listening and paying close attention to Lisa?s story, trying to concentrate and understand what is being told on this topic. These factors are important in listening to appreciate. According to Lisa?s story, Dr. Laura discovers that Lisa?s daughter is having financial trouble. She went through all of the acts to purchase a car although she did not have money to pay for it. To make a long story short, Lisa?s daughter was approved for a loan from the bank, but at th...

Sunday, August 18, 2019

Of Mice And Men :: John Steinbeck

"Ain’t No Good to Himself nor Anybody Else" â€Å"You seen what they did to my dog tonight? They says he wasn’t no good to himself nor anybody else. I wish somebody’d shoot me when I ain’t no good no more.†(60) Candy spoke these words implying that death is better than being no good to himself or anybody else. The same is true for Lennie. Lennie wasn’t good for himself because he couldn’t survive on his own. He can’t stay out of trouble and without George he would have been dead a long time ago. He’s no good to others because he doesn’t now his own strength and can’t control himself. He had murdered a woman because of his curiosity and his self-uncontrollability. â€Å"I ought to of shot that dog myself, George I shouldn’t ought let no stranger shoot my dog.†(61) As Candy said he had the choice of saving his dog from himself and others. So did George but unlike the regretful Candy, George made the right decision in saving Lennie from himself and others. Candy’s dog was no good to itself and was going to be shot by strangers. It would have been better for Candy to shoot him himself. It would have been better for Candy’s dog to be saved from himself by a friend than by a stranger. George was in the right by ending Lennie’s life himself. There was no stopping the inevitable. The workers would have gotten the dog killed any way they could. The same is true for George. Curly and the workers no matter what would have killed Lennie. George could not stop them from killing Lennie. He could only save Lennie from the fear and loneliness he would feel if a stranger killed him. Who knows what they might have done to Lennie if George wouldn’t have saved him from them? They might have shot him in a place where he would have died slowly or they might have hung him or a combination of both and he would have died alone and afraid. In discussing the guilt of George you have to consider the time setting of this novel. It was set in the 1930’s. The reason you must consider the time setting is because things change with time. What may have been allowed then may not have been allowed now. What happened then may not have happened now.

12 Angry Men Essay -- 12 Angry Men, movie, film

Twelve Angry Men is a classic movie depicting how one determined leader can alter an entire crowd. Through dedication, curiosity, and the pursuit for the truth he is able to persuade a group of twelve to second guess even themselves. Within this heterogynous group are a dozen different personalities - some of which were leaders and most of which were not.   Ã‚  Ã‚  Ã‚  Ã‚  The strongest leader in this movie by far is the Architect in the White Suit. Right off from the beginning at the original vote the Architect stated clearly his position in the matter. Against the rest of the group he strongly held his ground and fought for what he believed. Most people in his position would have changed their opinion immediately after realizing that he was completely outnumbered. However he continued to argue his points and reiterate the reasons why â€Å"evidence† needed to be questioned. His mind was simply brilliant. As he sat there listening to the other jurors reasoning he always found a way to prove them wrong or make them question themselves. Whether it was through logic, mathematical reasoning, or questioning of evidence he seemed to always wow the other jurors. His strength as a leader is that he is a natural born one. He wasn’t trying to look smart or impress anyone. He simply was doing what he was born to do.   Ã‚  Ã‚  Ã‚  Ã‚  He used both pushing and pulling tactics to influence his peers. His strongest tactic was the usage of rational persuasion. While other jurors were able to dismiss facts without consideration, he immediately noted a potential fault. Through the analysis of facts he was able to convince others to reconsider. One of the most notable discrepancies he proved was that of the witness across the street. Through common noises, known train speeds, and common knowledge he proved that the witness was anything but one.   Ã‚  Ã‚  Ã‚  Ã‚  The architect also uses inspirational appeal to convince his colleagues. He makes the other jurors consider the humanity of the situation. A mans life is at stake and he realizes the impact that his decision as well the rest of theirs will have on the man. The importance of values is portrayed. Likewise he keeps his own position non-emotional stating that he will concur with the group about the guilt, but only if they can convince him that he should.   Ã‚  Ã‚  Ã‚  Ã‚  Addi... ...vie and it completely altered the fate of the trial and the boys life.   Ã‚  Ã‚  Ã‚  Ã‚  The other leader of the film was the assistant football coach who was also the Foreman of the jury. As the film played on it became clear why he was the assistant coach and not the head one. His leadership skills were minimal. Despite his good intentions on running a smooth discussion he couldn’t do so himself. He asked for direction several times, or was told by the others what they should do. He certainly is not a leader, but was forced to pretend to be one for the duration of the trial.   Ã‚  Ã‚  Ã‚  Ã‚  Despite their differences all five leaders were critical to the case at hand. The Angry father and the Architect were essential to represent each opinion group. The Salesman was necessary to serve as head of the rest of the bored people as well as to regulate the comfortability. The Foreman was necessary in theory to control the meeting. And the Old Man was the saving grace in the entire trial. Their vastly unique leadership styles each had its own place in the movie and certainly represented the true reality of the necessity of different leaders in our environment.

Saturday, August 17, 2019

Cebu in Philippines: Mabuhay Essay

Mabuhay! It means â€Å"Welcome!† in Philippines. And here, you truly are. On Tourism Philippines Guide, you’ll find friendly unbiased updated travel information for touring Philippines, what to see and what to avoid. More [+] Cebu Posted by Roz Visarra on May 4th, 2009 Filed Under: Cebu, Featured Cebu CEBU TRAVEL GUIDE Why Not Go Why Go Best Time to Visit Where to Stay Where & What to Eat Nightlife To Do List Stay Away From Getting There Cebu is a very beautiful city with countless beaches and nature parks. It offers everything you need- from a relaxing retreat in a tropical island, to all the conveniences that a first class metropolis can give. In contrast to the bustling metropolis, the rest of Cebu ‘s 167 islets and islands are lined with idyllic white sandy beaches and pristine clear waters. The Queen City of the South is the capital of the Visayas (also the political, economic, educational and cultural center of the Visayas) and is the second biggest city in the country. Located in between two straits, and several surrounding islands, Cebu is about 225 kilometers long, a narrow island that is home to 2.4 million people. Cebu is the jump-off point to satellite destinations in the Visayas and Mindanao Islands – Leyte, Samar, Dumaguete, Siquijor, Cagayan De Oro, Camiguin & Surigao Del Norte. Spectacular Metro Cebu: This is an aerial view of Metro Cebu, showing Cebu City (top left), Mandaue City(right), Mactan Channel(the body of water), and LapuLapu City(part of Mactan Island, bottom left). The bridge farther in the image is the first Mactan-Mandaue bridge, the second one is the Marcelo Fernan Bridge. This is one of the finest aerial shots I have for Metro Cebu. The timing was perfect for the plane to take this approach, the weather was right, the sun was like a flood light that is constantly illuminating the subject from this angle. This angle and this view was observable for just a few seconds. Luckily, I was able to take the shot within that time frame. Photo by storm-crypt The Heart of Cebu City: The western half of Osmena Boulevard, from the Fuente Osmena circle to Cebu’s provincial capitol. Photo by storm-crypt Why Not Go Everybody loves to go to Cebu so there is really no reason why anyone would not want to go there, if given the chance. Although if you want to go to a very quiet, provincial place, you can always go to its neighboring towns such as Bantayan, Badian and Argao. Why Go Can’t Outdo Cebu: With an island like this, it is difficult to miss summertime in Cebu. A resort on the east side, and in the foreground(west side), is a fish sanctuary, teeming with corals, and a huge variety of species of fish, that you can view closely to the point that you can touch them. And you can do all that with just snorkeling. Shot taken off the southeastern coast of Mactan Island, just a few minutes of side trip on the way to the airport. This island is called Hilutungan Island — a few kilometers off the southeast coast of Mactan Island. Photo by storm-crypt Simply because Cebu has it all. If you are looking for a place to spend your honeymoon, there are several 5 star resorts nearby. If you are planning a  family vacation, you can enjoy parasailing and scuba diving in the island hotels, and you can also go mountain climbing or camping in one of its nature parks. When it is thrill and excitement you long for, it has a one-of-a-kind amusement park that you cannot find anywhere else- the Sky Experience Adventure at Crown Regency. Now, if it is shopping and dining you want, Cebu has it too; a lot of them in fact. Anything which your adventurous and wandering heart desires, you can find it in Cebu. Central Cebu Mountains: Going strait to north from the municipality of Sibonga will get you to this point.Taken somewhere in central Cebu’s mountain range, shortly before heading east to the city of Cebu. Photo by storm-crypt Best Time to Visit Summer in Cebu is usually very hot while in November-January, the wind is often cold. If you want to frolic in the beach, you should go there during summer which is from March to May. But, if you want to see what Cebu has in store for all its visitors, go there in January, specifically on the 3rd week as this is the time they celebrate one of the country’s biggest festivities, the Sinulog. But you need to book early as hotels are bound to be booked even a week or two before the festival. The rainy season begins in July bringing torrential downpours that would sometimes inhibit movement, typhoon activity is minor compared with other parts of the Philippines. Sinulog: Sinulog, on the third weekend in January, honors the baby Jesus (Santo Nino) with a solemn religious parade on Friday evening, and an all-day festival on Saturday. Sort of like Carnival with thousands of participants. Spectacular! These girls are your average Filipino teenagers, but are dressed up in the style of â€Å"cultural minorities† who still live in the more remote locals of the country. Photo by friskodude The Cebuano’s flair for showmanship and love for celebrations is manifested in the Sinulog, a colorful festival of pageant proportion observed every third Sunday of January. Sinulog is a dance ritual in honor of the  miraculous image of the Santo Nià ±o. The dance moves two steps forward and one step backward to the sound of the drums. This resembles the current (Sulog) of what was then known as Cebu’s Pahina River. Thus, in Cebuano, they say it’s Sinulog. SINULOG ’07 Photo by 2rokbotoy Where to Stay Save up to 75% on hotels in Philippines Since Cebu has always been a popular tourist destination, it is equipped with hotels and resorts for every budget. If you want to splurge a bit to experience luxury at its best, you can stay at the following hotels and resorts: Marco Polo Plaza- located at Nivel Hills, this is a great hotel with such awesome customer service. The food buffet at Cafà © Marco is like no other, plus you get a fantastic view of the city. Rates start at around $105. Waterfront Hotel and Casino- there are two Waterfront Hotels, one is beside the airport and the other is within the uptown area but I would recommend the hotel in the uptown area because it is so much nicer, with better amenities. Plus it is near everything else. Rate starts at $95. Plantation Bay- this is located in Lapu-Lapu, it is an island city just about 30 minutes away from Cebu. This is a truly lovely resort where you can really experience luxury and relaxation. Rates start at $150++. Shangrila Mactan Resort and Spa- this is probably the most popular resort in Cebu and with good reason too. It has a beautiful beach front, swimming pools, a huge garden, a play area for kids plus a wonderful spa. Rates start at $165++. If you are on a budget, you may prefer to stay at cheaper hotels. Don’t worry, Cebu has a lot of them and they are quite clean and nice too. Golden Peak Hotel- located in uptown Cebu; this is a newly built hotel. Rates start at $30. Maxwell Hotel- another newly built hotel, with a spa and coffee shop with free DSL internet. Rates start at Golden Prince Hotel- this hotel is very near food and shopping establishments, particularly one of Cebu’s biggest malls which is Ayala. Rates start at $49. Heritage of Cebu: The Heritage of Cebu monument in Parian showcases the significant events of Cebu. You can also see sculptures of Lapu-lapu, Rajah Humabon, Ferdinand Magellan, martyr Pedro Calunsod and other prominent historical figures that have moved and shaped Cebu in more ways than one. This monument is the work of national artist Edgardo Castrillo. It was constructed on July 1997 was inaugurated on Dec. 8, 2000. Photo by Brennan Mercado Where & What to Eat †¢Abuhan- Have you ever heard of Pochero? It is a great tasting soup with pork or beef bone marrow, corn and cabbages. Abuhan is famous for it. You can try this in one of their 3 brances. I would recommend the branch they have at Asiatown IT Park. †¢Golden Cowrie-This is probably the most frequented Filipino restaurant, particularly by tourists. Their food is simply amazing. You can try their sautà ©ed mushroom and chicken pandan. They have 3 branches: in Lahug, SM, and Hukad in Ayala. †¢Spice Fusion- this restaurant offers Asian Cuisines that are quite delicious. A favorite, roti in curry sauce is highly recommended. Spice Fusion has two branches, one at the Banilad Town Center and the other one at North Wing, in SM. †¢Sutukil- visitors should never leave Cebu without going to the famous SUTUKIL. It is an area with several restaurants offering the freshest seafood. You can actually choose from live fish, crabs, and shrimps, and then you can have it cooked SUTUKIL style, which comprises three different food: grilled, raw (with vinegar, tomatoes, ginger and chili), and soup. This is located beside the Mactan Shrine in Lapu-Lapu. †¢Cafà © Laguna-a place where you can taste authentic Filipino dishes. Try their bistek tagalog, it is simply heaven to the palate. You can find Cafà © Laguna in the mall and garden area of Ayala Mall. †¢Larsians- sample Cebu’s street food at its finest. Grilled chicken, pork and fish plus you can try their ‘puso’ or what others call ‘hanging rice.’ It is rice wrapped and cooked in palm leaves. †¢Harbour City Dimsum- great Chinese food- try their siomai and steam rice. Harbour City has branches in two malls, Ayala and SM. Nightlife Cebu has lots of places to go to enjoy your night – from downtown to uptown, Metropolitan Cebu comes even more alive as dusk sets in, with queues leading to music bars, discos and the casinos. If you want to go dancing, you can go to Sunflower at Lahug, or at Pump in Archbishop Reyes Street. If you want to go Karaoke, you can go to POD5 at the Banilad Town Center, or at K1 KTV at the Crossroads. If you just want to hang out in a restobar, you can go to Sinners and Saints in Banilad or a sportsbar called Badgers. You can also go to T.G.I.F. in Ayala where the food, beer and service are really good. Now if you just want to have some nice and quiet evening, you can go to Tops, it sure is nice there during the night; you get to see all the lights around Cebu. My to do List †¢Island Hopping- You can rent a pumpboat for about $60 and this will take you to 3 beautiful islands around Cebu. It is a whole day activity so you may want to bring in some lunch and snacks. †¢Mountain View- You can go there day or night- it does not matter as they are open 24/7. It is full of tall trees and flowers, plus hangout areas and playgrounds for kids. You also get a great view of the city at the top. Entrance fee: $1.25 per person †¢Nature Tripping- You can go to one of its many waterfalls, especially the one in Badian which is the Kawasan Falls, it is about 2  ½ hours away from the city. †¢Bantayan Island- This is about a 3 hour drive to the southernmost port, and then you will take a RoRo to the island which is about an hour’s travel. Bantayan is great for those who want some quiet time in sugary white sand beaches. Turtle with two live sharksuckers Photo by alfonsator †¢Moalboal- You should go there if you want to dive. It is about 2  ½ hours away from the city. They have several diving packages at different rates. The islands of Mactan and Camotes are not to missed by diver addicts too. †¢Sky Experience- located at the heart of the city, this is where the city’s tallest building is. Experience the thrill of walking hundreds of feet above ground! †¢Basilica del Sto. Nino- this very old church is located at the heart of downtown Cebu. There you can see the many faces and images of the Little Jesus. It has been said that miracles happen if you ask the Sto. Nino to pray for you. Cebu Cathedral Photo by neiltoot †¢Shopping- there are two kinds of shopping you can do-high end and low end. You can find some really good buys in downtown Cebu, specifically at Colon Street where tops can go as low as $2. You can also go to two big malls where you can find clothes, shoes and accessories: Ayala Mall and SM. Stay Away From Cebu is also home to a lot of pickpockets and robbers. Stay away from the downtown area late at night. Even during the day, you should keep your valuables in places where it is difficult for robbers to get access to it.

Friday, August 16, 2019

In what ways did the events at Fort Necessity combine with other causes to begin the French and Indian War?

The French and Indian War is a very well known war and it’s most famous cause is the events that took place at Fort Necessity. However the truth is, is that there is much more to that war than just one incident. The French and British did not have good history with each other already so it was not easy immigrating to the same land without a head leader. As well as the ways of making money for the two different countries is different so they tend to clash in that respect. Lastly coming to the New World is about gaining power and control and they saw each other in the way of becoming a superpower country. The French and the British have had their disagreements in the past and just because they have moved to a new country doesn’t mean that those disagreements have gone away. The British were farmers, manufacturers, and tradesmen. The French on the other hand were mainly trappers and riverboat traders. This caused the inevitable, a conflict of interests from the Ohio River to Lake Champlain. The boundaries back then were not set in stone so it was pretty difficult to definitely say what land belonged to whom. The French and the British also had sort of an unspoken competition over land and power. This also caused conflict. Both France and Britain came to the New World to become much more powerful and basically take over most of the world. They came with greed for money, land and control. Initially Britain had more land, but the French had some good resources. In order to gain global power, resources were key. Resources could lead to money and trade and everything a country could want. As stated before, boundaries were pretty vague and both Britain and France wanted control over the Ohio River Valley. In reaction France began to build forts there and the British tried to take them down and failed. Then the British started to build their own fort, Fort Necessity. Soon the French approached the fort and this caused a battle, which left the British in a worse position than before and they had to surrender. This caused the tension and anger between the two countries to rise even more. Lastly trade was a huge issue between the French and British. They wanted different things, but they needed the same land. The Ohio Valley was full of trees and rich soil. The French wanted the land to keep the trees and continue the fur trade. This keeps the Indians happy because they get the benefit of trading with the French. However, the English wanted the land to chop down the trees and farm. This is how they make their profit, but it was also cause the Indians to have to move out. The French were not happy with what the British wanted to do with the land. The French were allies with the Indians and didn’t want to see them displaced. In conclusion there were many causes to the French and Indian War, not just the incident at Fort Necessity. The French and British already were not on the best terms with each other and they had no plan to change that. Also the French and British both wanted to be all-powerful, but they couldn’t do that together. The both wanted the land and the economic gain, but they both couldn’t have it. It also affected the trade. They wanted to use the Ohio River Valley for two different things that could not coincide. All these disagreements and the tension rose to the point of war. This was war was also known as the French and Indian War or the Seven Years War.

Thursday, August 15, 2019

Robot Palletizing

PROC teach_drop() MoveJ drop_pt,v1000,fine,tool0; ENDPROC PROC open_gripper() Reset do1; WaitTime 0. 5; ENDPROC QuickTeach software- Creating and calling a subroutine by passing parameter/s to it A. Select â€Å"Routines† from the â€Å"VIEW† top menu keys 1. Cursor to the new subroutine 2. Select â€Å"Decl† (Declaration) from the bottom function keys 3. Select â€Å"Jump† key to switch to bottom half of the page 4. Select â€Å"new† to create a new parameter for subroutine 5. Select â€Å"Right† arrow key to â€Å"Param1† 6. Select â€Å"Text† from the bottom function keys 7. Type the variable name â€Å"y† Repeat the steps 4-7 for more parameters B.Call and set the for the subroutine 1. Select â€Å"ProcCall† and select the subroutine 2. Type or select the variable name. 3. Type â€Å"y† 4. Select â€Å"ok† 5. The result is â€Å"Routine1 y†. Selection buttons and instructions Selecting a nu mber of instructions: Robotic Envelop and Bill of Material (BOM) Bill Of Material ITEM QTY DESCRIPTION REMARKS PPNP unit 1 2 3 4 5 6 7 1 1 10 1 1 1 1 2 ABB IRB 1400 Robot manipulator S4 Controller Pallet Output conveyor In feed conveyor Spring Stand Pneumatic PNP unit PLC unit Allen Bradley & OMRON PLC Part Pick 2 x10 matrixUse only top view of the cell Do not label the components in the drawing itself 8 ABB Rapid new instructions TPWRITE â€Å"Remarks† Type in message to display on the teach pendant for the operator. TPERASE Clear the screen of the teach pendant. Case Study – 2 dimensional palletizing Write a 2Ãâ€"3 palletizing program for the ABB robot. The robot will pick up parts from the conveyor belt and place them on the packaging tray. a) Sketch the layout of the application. (Include the robot, robot envelope, pallet, conveyors, other components. b) Sketch the Program Routine Layouts c) Write the program Specifications: The tray is arranged into 10 columns (7 6. 2 mm in x direction) and 2 rows (50. 8 mm between in y direction) Subroutine names:Main, Home, Pick, Pallet, Open_gripper, Close_ gripper, and the Teach_Drop ABB Rapid – Case Study PROC MAIN() ! MAIN routine – Layer 1 ! Clear the Teach Pendant screen TPERASE; ! Display message on the Teach Pendant TPWrite; â€Å" 2 x 3 Palletizing program† ! Declare VARIABLES rows := 2; columns := 3; ! Program Logic MoveJ Home, V1000, Z50, T1; WaitTime 0. ; Pallet; MoveJ Home, V1000, Z50, T1; ENDPROC Nested â€Å"FOR† loop PROC Pallet() ! Palletizing routine – Layer 2 ! y is in the inner loop and x is in the outer loop FOR x FROM 0 TO rows-1 STEP1 DO FOR y FROM 0 TO columns-1 STEP1 DO PICKUP; MoveJ Offs(droppt, x*76. 2, y*50. 8, 50),v1000,fine,tool0; MoveLOffs(droppt, x*76. 2, y*50. 8, 0),v1000,fine,tool0; opengripper; MoveL Offs(droppt, x*76. 2, y*50. 8, 50),v1000,fine,tool0; ENDFOR ENDFOR Adding TPReadFK instruction TPReadFK (TPRead Function Keys) – whe n the robot waits for an operator input.TPReadFK Variable,â€Å" â€Å",†1†³,†2†³,†3†, â€Å"4†,†5†³; Variable value – depends on the pressed function Key. The variable will be assigned with the value 1 to 5. † First quotationâ€Å" – Blank â€Å"1† – Replace 1 with the preferred text. ( Same for â€Å"2†,†3†³, â€Å"4†, and â€Å"5â€Å") Use the Variable as a condition for the IF†¦ Else IF.. condition 2-dimensional palletizing with TPReadFK ! MAIN subroutine – Layer 1 PROC MAIN() ! Display message on the Teach Pendant TPERASE; TPWrite â€Å" Palletizing program†; ! Declare VARIABLES ! Rows:=2; Cols:=3; !User define Pallet Matrix subroutine usr_def; ! Program Logic Home; ! WaitDi di7,1; (Next semester) WaitTime 0. 5; Palletize; Home; WaitTime 1; ENDPROC ! User defined Pallet Matrix subroutine PROC usr_def() TPErase; TPReadFK User_IN,â€Å" â€Å", †1Ãâ€"2†³,†2Ãâ€"3†³,†2Ãâ€"4†,â€Å" â€Å",â€Å" â€Å"; IF User_IN =1 THEN Rows:=1; Cols:=2; ELSEIF User_IN =2 THEN Rows:=2; Cols:=3; ELSEIF User_IN =3 THEN Rows:=2; Cols:=4; ENDIF ENDPROC TPReadFK in QuickTeach software Select IPL1 select #7 Communicate. Then create the TPReadFK instruction. Highlight the variable name and select the Enter key.Type the variable name Skip first quotation by selecting the â€Å"Next† function key. Then select the â€Å"Text† function key to type â€Å"1X2†. Repeat the steps for â€Å"2 x 3† and â€Å"2 x 2 x 2† matrix or any other matrix you want. Below the TPReadFK instruction, create the If-ThenElse instruction. TPReadFK in QuickTeach software cont’d.. Else IF Instruction Select IPL1 Select the IF instruction. Highlight the entire instruction Select enter key From the function keys, select ADD Select ELSE IF to create the instruction, then select OK. Case study â⠂¬â€œ 3D palletizing

Wednesday, August 14, 2019

Android: International Conference on Computer Essay

Porting mobile web application engine to the Android platform Yonghong Wu, Jianchao Luo, Lei Luo School of Computer Science and Engineering, University of Electronic Science and Technology of China, Chengdu 610054 benbshmily@126.com, andyluomail@163.com, lluo@uestc.edu.cn Abstract Android which Google released as an open-source mobile phone operating system is a Linux-based platform; it consists of the operating system, middleware, and user interface and application software. xFace is a cross-platform web application engine for mobile Internet. As a global leader in mobile web application engine, xFace [1] has the advantages of versatility, easy to master, universal. It significantly reduces the effort of development; while the services of testing which porting layer provides, will greatly reduce the developer’s development costs. A perfect transplant will greatly reduce the Android platform migration workload, but also to make widget’s operating efficiency to be improv ed. This paper describes xFace of native code (c + +) runs on the Android (java) platform through JNI called, xFace porting layer(c++) also calls the Android platform APIs(JAVA) by JNI, such as Graphics, HTTP and other related system modules. Keywords—Android, JNI, Mobile web Application Engine, Porting are the hot spot type of value-added services, 3G mobile terminals under a variety of value-added services would be the integration of up to provide users with chain services, it will be a technical major breakthrough. In addition, along with the WEB2.0 maturity, improving, it makes mobile Internet to become an inevitable trend in the future, while the development of next-generation mobile communication terminal is the power of mobile Internet development. xFace is a kind of engine of the web application. It uses HTML, CSS, and JavaScript and other Web technologies to develop lightweight mobile applications. Mobile applications, which are developed by using the technology of xFace, can run on different operating systems without any modification, such as windows Mobile, BREW, Symbian and other mobile phone platforms. It greatly reduces development efforts and costs of the mobile web application software. Android as an open-source mobile phone platform, is favored by the major mobile phone Manufacturers, its large rate of market share is also increasing. In this context, for mobile Internet and mobile terminals, this paper puts forward the way to solve the xFace transplanted to the Android platform that is very valuable and practical significance. 1. Introduction Along with the continuous development of communication industry, today’s mobile terminals have extended from single service with telephone to multiple services with voice, data, images, video and games [2]. Communications, computing and Internet convergence will be trend of the information and communication technology development in the future. Nowadays, operators’ services have erected one by one in the open data services, a unified service — the platform for mobile Internet. The step into data transfer is an important stage in the development of the 3G. It provides rich data services also contributed to the development of smart mobile devices. Under the impact of the 3G, mobile terminals gradually turn to be intelligent. Under a variety of 3G services such as mobile instant messaging, mobile email, mobile search, online browsing, mobile TV and mobile games 978-0-7695-4108-2/10 $26.00  © 2010 IEEE DOI 10.1109/CIT.2010.369 2157 2. xFace transplant programs in the Android platform 2.1. Android platform features The architecture of Android system [3], similar to other operating systems, use a hierarchical structure. From the chart to see, Android is divided into four layers; from the top to the lower level are the application layer, application framework layer, system layer and the Linux runtime core layer. In figure 1, Applications with some of the essential applications, such as email, address book, SMS and browser, etc. All applications are done by the Java language. Application Framework provides java class library for Android applications, Android application developers developed applications, like developing those core applications, with full permission to access to the APIs provided by framework. Libraries layer was developed by C/C++ language, those libraries are packaged by Application Framework section. The bottom section is the Linux Kernel which is developed by c language, it provide the core system services, such as security, memory management, file system management, process ma nagement, network group, Driver Model and so on. It is also an abstract layer between the hardware and system software. Figure 1 Architecture of Android Each of Android applications runs in its own process, to enjoy the Dalvik virtual machine for its exclusive distribution of instances. Dalvik virtual machine runs a Dalvik-format-Executable file (. Dex), the file of this format is optimized so as to make the Android applications occupy less memory when it’s running. Java compiler compiles Java source files into class files, class files has been built into the dex format file by a kind of DEX tool, only this file can run in Dalvik virtual machine after registered in the Dalvik. Thus, all of the Android applications must use java language to develop. This situation gets C/C++ developers into trouble. xFace engine and porting layer are developed by C/C++, and therefore it’s a big trouble to port the xFace to Android platform. Feasibility Analysis: xFace is developed by C/C++, but the Android application is developed by java language, which allows us to have to use JNI [4]. JNI’s called the Java Native Interface, which is provided by JAVA to allow JAVA and the C/C++ interface to call each other. In view of this, JNI provides feasibility for porting xFace to the Android platform. Native code (interface) of xFace can be generated the dynamic library called by JNI in JAVA. Also, because of the Android system functions are supported by JAVA packages (such as SMS, e-mail module, address book, phone calls, local capacity, etc.). Because of all of the Android APIs are based on java package. To finish the operating system-related functions of xFace porting layer, we have to use JNI to call the JAVA classes and methods in C/C++. Transplant Program: According to the feasibility analysis, we know that xFace is ported to Android platform is entirely feasible, so it requires an effective plan to implement. An efficient migration plan can reduce a lot of workload of transplant. Simultaneously, the operating efficiency of widget is also improved. According to the specificity of Android applications, application framework and start-up code must be written in JAVA language, and then called C/C++ program entry of xFace by JNI in that start-up code. However, in the xFace platform porting layer, some of the features also need to adopt a similar approach to call the Android APIs which are provided as JAVA packages by Android. Event-dispatching can also be the way through the JNI passing from JAVA to C/C++ layer. And then we formed a transplant plan which is mixed-programming language. As shown in Figure 2. 2.2. xFace mobile web application engine xFace is composed of xFace engine and platform adaptation layer (also known as Porting layer), xFace engine is mainly responsible for page layout, script analysis, logic and other functions, the porting layer is mainly responsible for abstracting the operating system-related functions into the system-independent in order to make xFace run on different platform. Figure 2 xFace Porting Layer 2158 3. Porting the xFace native Code to Android 3.1 Bulit the environment Transplanting xFace to the Android platform, because of mixture of programming language, we use Eclipse and the Android environment NDK as the environment of compilation. NDK is primarily used to compile xFace core and porting layer, and it compiles the starting-entry(C/C++) of xFace into dynamic library. Eclipse is mainly used to build Android application development environment, needed ADT plug-in. At last, we use Eclipse to package the program and the dynamic library, which is generated by NDK, into Android executable files – DEX files. Android NDK: Android NDK is the acronym for Native Development Kit. Android application developers can use NDK to develop C/C + + native code. In this plan, we also need to use it to develop C/C + + native code and call the java classes and methods by JNI. Android NDK has developed to provide a way of developing dynamic library for application developer. Developers need to make their project folder into the folder of â€Å"NDK_ROOT / apps /† and write the Makefile in accordance with the specification of NDK. For example, first, we should create a new folder as the name of â€Å"xFace† under the directory of â€Å"NDK_ROOT / apps /†. Next, we create a new file named â€Å"application.mk† and a new directory named â€Å"project† under the directory which is created just now. Create a new folder named â€Å"jni† in the â€Å"project† folder, our xFace Native Code and Makefiles are placed inside this folde. Due to space reasons, we can not do introduce the specifications of the Makefile for the NDK. NDK compiler works under the Linux environment, so if you use Windows, you have to install the software such as Cygwin. Installing eclipse: After install eclipse software, you should install the ADT plug-in into the eclipse, select the ADT plug-in options and create a new Android emulator. After that you can develop the Android application with it. divided into two parts. One, it is completed entirely by the C/C++ code, such as threads, semaphores, memory [5] and file operations modules. And local capacity of the other part is related to points in two ways, first by the C/C++ to prepare the framework, and it called Android APIs which are provided by JAVA packages (such as access and set the system time, MMI implementation, call the local function such as phone calls, send text messages and other system calls); the second is a direct implementation by the java function, and then C/C++ side call them which have been achieved by the java (such as HTTP module, etc). As shown in Figure 3. Figure 3 Implementation plan of porting layer 3.3 Integration of the porting layer and core After porting layer of each module completed, we can integrate it with xFace engine. Each module of xFace engine also needs to NDK environment to be compiled into static libraries. All of those static libraries are supplied for xFace program entry module calling. xFace program entry module which is called by JAVA is responsible for the performance of xFace capacity module. This module depends on the xFace engine and platform adaptation layer, and must follow the norms of java call native code compiled into dynamic link libraries and by the Eclipse environment, written in java program packaged with the framework to Android emulator to run. 4. Details of the design According to the above design, we can divide xFace program into three layers: application framework entrance layer, xFace Native entrance, xFace Native layer (shown as below in figure 4). Following segments elaborate the completion of xFace. 3.2 Implementation of the porting layer Porting layer is an abstraction of operating system functions-related; the implementation of porting layer is the main work of transplantation. It provides interfaces for xFace engines, due to different operating systems platform layer functions do correspond to abstraction, which makes xFace can be run on different platform. Platform adaptation layer implementation can be 2159 5. Testing According to the solution of this paper proposing, the function of porting layer has been implemented. After integrating the porting layer and core, it can run web applications. In order to test the validity and effectiveness of this solution, the following are some simple web application to run screenshot (as shown in figure 5). There are no exceptions and very steady when the program is running. At this point, it demonstrates the feasibility and correctness of the solution of this paper. Figure 4 Startup process 4.1 Application framework entrance Application framework entrance is primarily responsible for starting the xFace; Developed by JAVA language. And its main function is that prepare for running xFace in the Android platform, to provide a running environment, and the creation of the window and dispatch the event information to xFace native layer. As the Android applications are running on Dalvik virtual machine, so the program must start by the way of JAVA. It is a bridge of communication between xFace Native framework and Android, so it is essential. Figure 5 demo application 4.2 xFace Native entrance xFace Native entrance is mainly responsible for achieving xFace local businesses, such as loading the page, parsing the page, initialization xFace widget runtime environment, as well as the release of related resources and so on. Associated with xFace businesslogic is organized in this layer, which is the work of xFace entrance. Only for Application framework entrance called. In the plan, the drawing graphics is the maximum cost. It is not direct to draw shape to screen because this plan is using JNI to call JAVA methods to draw graphics. So the program of xFace may be slower than Android Native Application, especially when you running a kind of widget which need a mount of drawing in xFace , such as games. 6. Summary Currently almost all of the transplants, the source build-environment of transplant and the target platform build-environment are basically the same. This migration plan of mixed programming language provides a general method for the situation that the source and the target platform of build-environment of transplant are different; furthermore, this solution also makes code-reuse to maximize and reduces development costs and cycle. This article based on the Android platform, while providing a set of transplantation program, but the program is also a place to shortcomings in the drawing mechanism, because it is provided through the JNI calling java class library Android than any other platform, the efficiency of direct system call mapping is slightly low. Therefore, it is also a need for further study and improvement to improve efficiency. 4.3 xFace Native Code This layer is mainly to achieve graft-layer specific functions, xFace all of the features are in this layer, which coordinates xFace engine and porting layer; and to make porting layer and the underlying of operating system, porting layer and the Android application programming interface layer in the layer of packaging. It exposes the interfaces to xFace application developers and xFace engines. This layer of xFace is the kernel, all of the performance capabilities of xFace application are implemented in this layer. 7. References [1] Introduce of xFace[M/OL]. http://189works.com/articleDetail.action?u=yangzihao04&id =10124. 2010 [2] 3G Mobile Terminal Development Trend of the operating system [M/OL]. http://pda.c114.net/32/c4948.html, 2007 [3] Android Architecture 2010[R/OL]. http://www.cnmsdn.com/html/201003/1268713218ID2058_2 .html [4] ChuanBin Tu, Dissecting JDK1.6, Electronic Industry Press, 2008-01 [5] Neil Matthew . Professional Linux Programming . Wrox . 2002-01 [6] W3C. SVG Tiny 1.2-2008. Scalable vector graphics (SVG) tiny 1.2 specification[S]. W3C 2008 [7] Niu Xin-Zheng, She Kun, Qin Ke, Zhou Ming-Tian. Cooperative caching optimization strategy on Mobile P2P network[J]. Journal of Computer Research and Development. 2008, 42(4): 1-2 [8]Lei Huang. Development of embedded system based on platform. Foreign Electronic Measurement Technology, 2006 [9] Wangchao Network. Web Application Development of Mobile devices[DB/OL].http://www.wangchao.net.cn/bbsdetail_314 11.html. 2006-01-08 [10] Times Connection. I ntroduction to Web Application[EB/OL].http://cs.now.cn/html/FAQ/VHost/2008 10/10-3088.html. 2008-10-10