Friday, September 17, 2010

Servlet with MIDlet activation



MIDlet activation with Servlet, you can activate a CGI like the same MIDlet activation Servlet, this section will introduce two examples:

The first example of activation with GET operation Servlet, and displays the results.

The second example is the Servlet to accept user data from the phone onto POST

The following example of the content is, FirstMidletServlet activated by GET method and returns the display to the phone. In this case did not submit data to the Servlet, Servlet been activated for a return to the string "Servlet Invoked" and date to the client.

Here is the code FirstMidletServlet.java MIDlet
import java.io. *; import javax.microedition.io .*; import javax.microedition.lcdui .*; import javax.microedition.midlet .*; / bin / boot / dev / etc / home / lib / lost + found / media / misc / mnt / net / opt / proc / root / sbin / selinux / srv / sys / tmp / u01 / usr / var / vmware backup bin conf config data eshow_sitemap.html generate.sh log maint sitemap.html svn tmp An example MIDlet to invoke a CGI script. backup / bin / conf / data / log / maint / svn / tmp / public class FirstMidletServlet extends MIDlet (private Display display; String url = "http://somesite.com/servlet/ HelloServlet "; public FirstMidletServlet () (display = Display.getDisplay (this);) / / Initialization. Invoked when MIDlet activates public void startApp () (try (invokeServlet (url);) catch (IOException e) (System.out. println ("IOException" + e); e.printStackTrace ();)) / / Pause, discontinue .... public void pauseApp () () / / Destroy must cleanup everything. public void destroyApp (boolean unconditional) ( ) / / Prepare connection and streams then invoke servlet. void invokeServlet (String url) throws IOException (HttpConnection c = null; InputStream is = null; StringBuffer b = new StringBuffer (); TextBox t = null; try (c = (HttpConnection) Connector.open (url); c.setRequestMethod (HttpConnection.GET); c.setRequestProperty ("IF-Modified-Since", "20 Jan 2001 16:19:14 GMT"); c.setRequestProperty ("User -Agent "," Profile/MIDP-1.0 Configuration/CLDC-1.0 "); c.setRequestProperty (" Content-Language "," en-CA "); is = c.openDataInputStream (); int ch; / / receive response and display it in a textbox. while ((ch = is.read ())! = -1) (b.append ((char) ch);) t = new TextBox ("First Servlet", b.toString (), 1024, 0);) finally (if (is! = null) (is.close ();) if (c! = null) (c.close ();)) display.setCurrent (t );))
The following is to return "Servlet Invoked" and date code HelloServlet.java HelloServlet
import java.io. *; import java.util .*; import javax.servlet .*; import javax.servlet.http .*; / bin / boot / dev / etc / home / lib / lost + found / media / misc / mnt / net / opt / proc / root / sbin / selinux / srv / sys / tmp / u01 / usr / var / vmware backup bin conf config data eshow_sitemap.html generate.sh log maint sitemap.html svn tmp The simplest possible servlet . backup / bin / conf / data / log / maint / svn / tmp / public class HelloServlet extends HttpServlet (public void doGet (HttpServletRequest request
Servlet MIDlet is activated more than two examples.







Recommended links:



Save Delphi: Chinese open source community an excellent opportunity to display strength



Fastest Video Converter



BONUS of sight [2]



Firewall And Proxy Servers Comments



Recommend Registry Tools



Psp 6000



3DMax done USING NURBS baseball bat



CSS Syntax Guide (6) Categories Property



Gtalk and Skype will Interact



Photoshop font effects - ICE text



Online Wav To Mp3 Converter



MSN users frequently worry about Strangers raid computer data leakage



StartEx: Let The Desktop Shortcuts And Start Menu After Class!



m4a to mp3 CONVERTER



Zhang Feng: NAS really how it?



Monday, August 2, 2010

PS production pearl necklace


Few women can resist the charm of jewelry, and elegant crystal pearl has won its popularity. Then nothing can be like a pearl jewelry, from nine to nine-year-old girl's old lady clothes can see it coming from side light. In the East, Pearl auspicious complete, the New Year, give you a pearl necklace, wish you peace in the new year come true!

1. Create a new document, select the Oval tool in the tool bar in the tool bar select "Create a new shape layer." Open the info panel, hold down the Shift key, drag the picture of a positive circle, drag the mouse in the same time, observe the information panel, see round the length and width are 24 pixels, relax the mouse. Thus, a previous view of the small circle to fill color in the canvas at the same time will also appear on the Layers panel called "Shape 1" layer. Here, foreground, and the final result we can say that there is no significant relationship, so do not care.

If you are not used to the way this layer clipping path, then you can use the old method: a new floor, because we use layer styles to achieve this effect, so the new layer is bound to be small. Elliptical Marquee Tool draw with a 24 脳 24 pixel circular, methods, and the same as above, after the abolition of selection can be filled with color. (Figure 01)



Figure 01

This is the first day you learn Photoshop can be done. But can you imagine? Is this common small round will be in your hands into a crystal pearls moist! This all is a layer style magic, no use other tools or filters! Is not it incredible? The following step by step we have to reveal this mystery.

2. If you use the second method, then double-click the layer thumbnail, adjusting the layer style menu. If you're like me, use the first method, then double-click the layer name, bring up the layer style menu. We add a layer style. First, the shadow, click projection style, the distance to 3 pixels, the size of 6 pixels, the other to keep the default unchanged. (Figure 02)



Figure 02

3. Next is the inner glow, this is to emphasize the circular edge. Hybrid model will be illuminated by the screen to Multiply, Opacity to 40%, light color to black; in Figure cable in the size to 1 pixel; qualities, will increase to 75% range, other remain unchanged. (Figure 03)



Figure 03

4. The following are slope and relief, Note: In our case, this is the most critical step, the pearl shape it to the performance by the majority. Structural panel, select the style for the inner slope, method of "carving clear", a depth of 610%, direction, the size of 9 pixels, softened 3 pixels; shadow panel, angle of -60 degrees to remove the global light , height of 65 degrees, in the gloss contour type, first select the default "rolling slopes - decreasing" pattern, then Figure 04



Figure 04

Modified mapping curve, cancel anti-aliasing option, keep the default high-light and shadows of color and pattern, but will not change the transparency of 90%, respectively and 50% (Figure 05).



Figure 05

Click the Contour Panel and click on contour lines show contour editor, the set and the contour curve shape similar to Figure 06, you can first select the type of contour lines "record", then the slightly unchanged on it.



Figure 06

The role of contour lines are very clear, it gives a strong reflective pearl effect, but, round pearls are also well demonstrated. (Figure 07)



Figure 07

Result in the application of the relief and contour, the image of the situation and your background has a lot to. If you start using a dark fill, now your image looks, and does not look like a pearl, but like a metal ball, the deeper background, the metal effect is more obvious; if you are using a light-colored filled, then your image may look very close to our aim, if started using a white, then you've got an almost perfect white pearl was. If you want to change the color, simply double-click the layer thumbnail

Photoshop's color picker pop-up in this layer you can choose to change the color. The following process is aimed at those who had set the color depth. (Figure 08)



Figure 08




[Next]



5. Generally light-colored pearls have a special pearl luster, crystal clear and soft, dark-colored pearls may have a metallic luster, but still lose soft color, we use the color overlay to eliminate excessive color. Select Color Overlay style, set the mixed mode to brighten the color to white, opacity 52% (Figure 09).



Figure 09

Color Overlay effect is particularly evident on dark-colored pearls. As the water contained in the different mineral elements, there will be a variety of pearl colors. If you want some colored pearls, then get in here, and milk yellow, lilac purple, pink, rose, bronze, dark blue, black, to see you like (Figure 10). But to get Need for pearls, and some tasks to be done.



Figure 10

6. Like the pearl of the people know that light-colored pearls to pearl white Shaodai red roses is the best, here we have to create such a pearl. Select Gradient Overlay style, according to the default settings, the result may be some frustrating - seems like a small steel ball (Figure 11).



Figure 11

But do not worry, we can use another layer style to it recover gloss, yes, that is, "glossy" style. In the structure of mixed-mode select "overlay", color RGB (225,159,159), 72% opacity, angle of 135 degrees, a distance of 8 pixels, the size of 9 pixels, the contour line style, select "Tapered - reverse", select the anti-aliasing option. In this way, we can show through the reflective surface of the pearl] refraction and interference mixing, the resulting color of the halo. (Figure 12)



Figure 12

This point, our pearl style on all complete. You can click on the style in the new style button panel, to preserve, named for the "pearl". Better then the default manager for permanent preservation, so do not worry about re-install Photoshop and lost.

Now to test what effect. New layer, click on the newly saved style, this layer of application of this style. Select gun tool, brush size set to 24, set the hardness of 100, give it a try, free to spray the canvas, a pearl will appear. Photoshop in a redistribution in the layer style, so that our pearls would be the natural transition from light to dark. Pearl necklace to draw the words, but also increase the distance between the brush, following the example of the brush spacing of 107%, plus a chain, on it. If you feel a bit monotonous, with a dark blue on the background, plus some variegated and blur effects, imitation velvet substrate, this can be even more Ambilight pearl foil. (Figure pearl)



Figure pearl

If you want larger or smaller pearls then? Reduce or enlarge the brush, the style of the layers in the set to draw, but found that there style of deformation, pearls look completely different. (Figure 13).



Figure 13

Should we only make a single diameter of pearls? Of course not. Photoshop provides a way for us so that we can apply a layer style mobile and flexible. In the Layers panel, right-click the layer effect icon instructions from the pop-up menu, select "zoom effect" (Figure 14),



Figure 14

Figure 13, a small brush diameter is 12 pixels, then we will zoom set to 50% (Figure 15), so the layers can completely match up with the images. Similarly, the larger diameter of 48 pixel brush, then set the value will be 200% zoom. So effortlessly, you can get a Big East beads (Figure 16).



Figure 15



Figure 16






相关链接:



Macro and micro dogs the difference between a dog



Jie Mi Foxconn employees jumped the truth



.ts File Extension



Picked Trace And Ping Tools



Review Hobby



avi to MPEG



Reviews Dial Up And Connection Tools



Golden Abacus "county Management," Co-ordinate The Financial Pillars Of Urban And Rural Village



Nero 6 new baked a number of bug fixes



Promote the integration of content and process



New Web Development



Ps3 video formats



WinRAR sub-normal volume icon shows



Waste cartridge up to 5 times the false profit Canon ink cartridge recycling difficult



Ape files



Tencent said the prosecution did not rule out the possibility 51.com



Introduction to the XML structure and syntax of fine solution



Thursday, July 15, 2010

Symantec: Free software is only gimmick is difficult to kill hospice



August 11, Symantec vice president, Greater China CEO interview Wuxi Yuan told New Express reporter, said: "At present, anti-virus software robust in much of the free wave, just a marketing gimmick, not a business models. IT products to be marketed free of charge, there is no end of examples of good death. "He said that the reason for the Chinese market will appear for free antivirus software phenomenon, cause some manufacturers eager to open up the situation, the result is that manufacturers can not make any money channel to make money, you did not receive appropriate services and security.

It is learned that Symantec's business in China to maintain double-digit percentage growth in southern China's large client business even more than triple-digit percentage growth, "the scale of such high growth in the global IT industry is unique. "According to Wuxi Yuan said, telecommunications, finance, large corporate and government customers, the growth rate is alarming, as they are more and more emphasis on safety and storage.

Symantec in China market in the Asia Pacific region ranks second, with the first of the Japanese market is almost the same, but 34 years ago, China's market is less than half the Japanese market. This year, Symantec on a dramatic change channels. In Wuxi Yuan view, today's value lies in the software channels "create demand", while the price is different from the hardware industry Competition. He believes that the product outside, who can provide users with more added value, can help companies take good care of customers, can do marketing, who will be living space.







Recommand Link:



Report Development



Adventure And Roleplay Storage



WorldCup DVD to PDA



Agile WMV Video Converter



Report Hobby



Youtube Video To Cell Phone Application



SuperBurner DVD Copy



Youtube Movie to Windows Mobile Pack



Avi To Mp4 Converter Free



News about Trace And Ping Tools



YOUTUBE Video to Blackberry Home



H264 format



1st Lenogo iPod to PC Transfer



converter avi to 3gp



Flac to wav



Thursday, February 11, 2010

Youtube Movie to PS3 Platinum


Hot popluar youtube video Converter + download + player tool. With YouTube tool you can also convert downloaded YouTube videos to a format compatible with your favorite portable device; including - iPod Video, iPod Touch, iPod Nano, iPhone, Zune, PSP, as well as video capable MP3 players, video capable mobile phones, and Pocket PC, And finally... YouTube tool's embedded player will allow you to watch all your favorite YouTube videos off-line. So now you can enjoy any .flv and .swf videos anytime!
Easily Convert all popular video formats. Provides the highest speed to download YouTube video. Support unlimited simultaneous downloading tasks. Supports auto-name your downloaded video title as the YoutTube page shows. Offers you the most convenient task management and the easiest control capability. About Conversion Features. - is the most powerful YouTube assistant on the planet.

Monday, November 16, 2009

Youtube FLV Save + Player Ultra


It's most popular and very easy to use YouTube tools. helps you Fast download, convert, play, manage your favorite YouTube videos. If you're a YouTube fan, you'll love YouTube tool! is the most powerful YouTube assistant on the planet. YouTube tool easily: 1. Fast downloads YouTube videos, 2. Supports unlimited simultaneous downloads (a real time saver!), 3. Automatically names the downloaded video the same as the YouTube title, 4. Converts YouTube videos to various video formats, including Video, DVD, VCD, AVI, MPG, MPEG, Divx, Xvid, WMV, RM, RMVB, MOV, MP4, 3GP, SWF, DAT, H264, VOB, Flash, PDA, M4V, 3G2, AMV, CDA, DV,QuickTime, ASX, TV, VHS, FLV, H264, BDMV, MAC, Apple TV, Zune, iPod, PDA, PSP, PS2, PS3, Xbox, Xbox 360, Mobile Phone, Cell Phone, Blackberry, Wii, Laptops, Printers, Palm OS, Pocket PC, PPC, Treo, Psion, EPOC, iphone.
Supports YouTube video or any .flv and .swf file as input file. Supports not only YouTube video, but also various video formats as input file, including avi, DivX, XviD, rm, rmvb, MOV, MPEG, WMV. Supports a wide variety of output file format., including avi, DivX, XviD, rm, rmvb, MOV, MPEG, WMV. Provides various profiles, these profiles can meet the needs of most people. - is the most powerful YouTube assistant on the planet.

Tuesday, October 27, 2009

Youtube Movie to Psion Gold


Hot popluar youtube video Converter + download + player tool. With YouTube tool you can also convert downloaded YouTube videos to a format compatible with your favorite portable device; including - iPod Video, iPod Touch, iPod Nano, iPhone, Zune, PSP, as well as video capable MP3 players, video capable mobile phones, and Pocket PC, And finally... YouTube tool's embedded player will allow you to watch all your favorite YouTube videos off-line. So now you can enjoy any .flv and .swf videos anytime!
Easily Convert all popular video formats. Provides the highest speed to download YouTube video. Support unlimited simultaneous downloading tasks. Supports auto-name your downloaded video title as the YoutTube page shows. Offers you the most convenient task management and the easiest control capability. About Conversion Features. - is the most powerful YouTube assistant on the planet.

Monday, October 12, 2009

Christmasgift PDA Converter


Christmasgift PDA Converter converts AVI, DivX/Xvid, WMV, MPEG videos to PDA WMV or MP4 video format in one simple click. It is a powerful PDA MPEG4 video converter/PDA burner with fast working speed in burning movie to PDA and downloading movie to PDA. Now you can get this PDA MPEG4 video converter at a very competitive price! Its key features include: The software features superb video audio quality and fast conversion speed. And it is very easy to use.

Christmasgift PDA Video Converter is a best video and movie converter to PDA! This product offers convert movie to Sony PDA, Easy Convert AVI, MPEG, WMV, MOV, MP4, RM, RMVB, DivX, ASF, VOB, 3GP and etc. Christmasgift PDA Converter helps you watch your music videos and movies on your PDA.