<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-13919433</id><updated>2012-01-04T17:34:36.302-08:00</updated><category term='n-gage qd tips'/><category term='N81 keypad cleaning'/><category term='MISP shell error'/><category term='n-gage qd essentials'/><category term='N81 keypad problem'/><category term='Java regex example'/><category term='Windows sidebar issues'/><title type='text'>.</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hellkay.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://hellkay.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Elkay</name><uri>http://www.blogger.com/profile/07342639254855303902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-13919433.post-6794799863154889448</id><published>2009-08-08T16:10:00.000-07:00</published><updated>2009-08-08T16:28:11.367-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='N81 keypad cleaning'/><category scheme='http://www.blogger.com/atom/ns#' term='N81 keypad problem'/><title type='text'>N81 Keypad Cleanup!</title><content type='html'>I got my Nokia N81 wet (only a bit though) and the keypad promptly went dysfunctional. I could attend calls by flipping the screen but was not able to get any keys to work. So I discharged it and let it dry for a couple of days and started working fine. But the problem started reoccurring when I accidentally let its charge drain completely.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I 'google'd the disassembly procedure and found this really great step by step disassembly guide. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.formymobile.co.uk/n81disassembly.php"&gt;http://www.formymobile.co.uk/n81disassembly.php&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So I followed it, opened up my phone and found a a few strands of hair and dirt beneath the mini keypad I cleaned the area and Presto! the phone started working again So this might actually be a quick fix if you really aren't interested in buying a new phone or paying to service it.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;*** Warning***&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The LCD display's cover (in picture 6 in the link) is actually held together by an adhesive, so fixing it back can get real messy and it keeps following off... so it would possibly be a good idea to glue it back (not with perm glue unless you want to break it open the next time).&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13919433-6794799863154889448?l=hellkay.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hellkay.blogspot.com/feeds/6794799863154889448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hellkay.blogspot.com/2009/08/n81-keypad-cleanup.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/6794799863154889448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/6794799863154889448'/><link rel='alternate' type='text/html' href='http://hellkay.blogspot.com/2009/08/n81-keypad-cleanup.html' title='N81 Keypad Cleanup!'/><author><name>Elkay</name><uri>http://www.blogger.com/profile/07342639254855303902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13919433.post-5383787655631781241</id><published>2009-07-23T15:53:00.001-07:00</published><updated>2009-08-08T16:28:43.288-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java regex example'/><title type='text'>Some Java Programming Interview Questions</title><content type='html'>I am going to add some Java programming questions that I have come across in interviews recently. I have tried to provide solutions but of course there might be better ways to do them...&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Check if given string contains a valid FID number.  If it is not valid, return "invalid".  If it is valid, convert the string to one of two formats depending on the input valid of EntityType:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;i) If the EntityType value is P (Personal), convert the string to "XXX-XX-XXXX" format. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;ii) If the EntityType value is B (Business), convert the string to "XX-XXXXXXX" format. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;You can assume the EntityType is set correctly to either P or B. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Valid input formats when EntityType = P are: 123-44-9876, 123449876, 123 44 9876&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;If the user inputs any other format than the above 3, the program should return Invalid entry. For example,  123-44 9876  is invalid.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Valid input formats when EntityType = B are: 98-1234567, 981234567, 98 1234567, 981-23-4567&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Examples&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;222-44-9876  and EntityType=P   -&gt; 222-44-9876&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;222-44-9876  and EntityType=B   -&gt; 22-2449876&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:verdana;font-size:100%;color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:verdana;font-size:100%;color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:verdana;font-size:100%;color:#000099;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;package com.programming.interview;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;import java.util.regex.Matcher;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;import java.util.regex.Pattern;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;public class&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt; FIDChecker {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;    &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;public static &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;String checkFID(String strFID, String entityType ){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;       String returnFID = &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC6600;"&gt;"INVALID FID/ENTITY TYPE"&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;       entityType = (&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC6600;"&gt;"P"&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;.equalsIgnoreCase(entityType)||&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC6600;"&gt;"B"&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;.equalsIgnoreCase(entityType))?                                                                                                                             &lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;/span&gt;entityType:&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;null&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;       &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;if&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;(&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;null&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;!=strFID &amp;amp;&amp;amp; &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;null&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;!= entityType)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;       {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;           if (validateFID(strFID, entityType))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;           {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;               returnFID = reformatFID(strFID, entityType);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;           }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;       }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;       &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;return &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;returnFID;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;    &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;private static&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt; boolean validateFID(String strFID, String entityType){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;boolean &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;isValidFID = &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;false&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        String validFormat1 = &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;null&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        String validFormat2 = &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;null&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;if &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;(&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC6600;"&gt;"P"&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;.equalsIgnoreCase(entityType))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;            validFormat1 = &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC6600;"&gt;"\\d{3}-?\\d{2}-?\\d{4}"&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;            validFormat2 = &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC6600;"&gt;"\\d{3}\\s?\\d{2}\\s?\\d{4}"&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;else if &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;(&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC6600;"&gt;"B"&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;.equalsIgnoreCase(entityType))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;            validFormat1 = &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC6600;"&gt;"\\d{2}-?\\d{7}"&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;            validFormat2 = &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC6600;"&gt;"\\d{2}\\s?\\d{7}"&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        Pattern matchingPattern1 = Pattern.compile(validFormat1);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        Matcher patternMatcher1 = matchingPattern1.matcher(strFID);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        Pattern matchingPattern2 = Pattern.compile(validFormat2);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        Matcher patternMatcher2 = matchingPattern2.matcher(strFID);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;if&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt; (patternMatcher1.matches() || patternMatcher2.matches())&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;            isValidFID = &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;true&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;       &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;return &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;isValidFID;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;    &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;private static&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt; String reformatFID(String strFID, String entityType){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        String plainFID = strFID.replaceAll(&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC6600;"&gt;"[-\\s]", ""&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        StringBuffer formattedFID = &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;new &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;StringBuffer();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        if(&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC6600;"&gt;"P"&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;.equalsIgnoreCase(entityType))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;            formattedFID.append(plainFID.substring(0, 3));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;            formattedFID.append(&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC6600;"&gt;"-"&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;            formattedFID.append(plainFID.substring(3, 5));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;            formattedFID.append(&lt;span class="Apple-style-span" style="color: rgb(0, 0, 153); "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;span class="Apple-style-span" style="color: rgb(204, 102, 0); "&gt;"-"&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;            formattedFID.append(plainFID.substring(5, 9));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;else if&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt; (&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC6600;"&gt;"B"&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;.equalsIgnoreCase(entityType))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;            formattedFID.append(plainFID.substring(0, 2));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;            formattedFID.append(&lt;span class="Apple-style-span" style="color: rgb(0, 0, 153); "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;span class="Apple-style-span" style="color: rgb(204, 102, 0); "&gt;"-"&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;            formattedFID.append(plainFID.substring(2, 9));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;        &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;return &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;formattedFID.toString();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13919433-5383787655631781241?l=hellkay.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hellkay.blogspot.com/feeds/5383787655631781241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hellkay.blogspot.com/2009/07/some-java-programming-interview.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/5383787655631781241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/5383787655631781241'/><link rel='alternate' type='text/html' href='http://hellkay.blogspot.com/2009/07/some-java-programming-interview.html' title='Some Java Programming Interview Questions'/><author><name>Elkay</name><uri>http://www.blogger.com/profile/07342639254855303902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13919433.post-1584660826860979981</id><published>2009-03-10T16:59:00.000-07:00</published><updated>2009-03-10T17:06:21.185-07:00</updated><title type='text'>Pencil...</title><content type='html'>I going to start trying out 'Pencil' an open source animation software.  I was looking at Adobe Flash CS software and was shocked at the prices.. Flash CS4 costs $999 :O. Pencil looks neat and impressive so far (interface has been done using Qt), will probably post an animation made with it shortly...&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Pencil can be downloaded at &lt;a href="http://www.pencil-animation.org/index.php?id=Download"&gt;http://www.pencil-animation.org/index.php?id=Download&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13919433-1584660826860979981?l=hellkay.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hellkay.blogspot.com/feeds/1584660826860979981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hellkay.blogspot.com/2009/03/pencil.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/1584660826860979981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/1584660826860979981'/><link rel='alternate' type='text/html' href='http://hellkay.blogspot.com/2009/03/pencil.html' title='Pencil...'/><author><name>Elkay</name><uri>http://www.blogger.com/profile/07342639254855303902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13919433.post-8865097761339135499</id><published>2009-02-03T06:42:00.000-08:00</published><updated>2009-08-08T16:29:30.353-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows sidebar issues'/><category scheme='http://www.blogger.com/atom/ns#' term='MISP shell error'/><title type='text'>Windows Vista Service Pack 1</title><content type='html'>Windows Vista Service Pack 1 - seems to address the following issues that were frustrating me for quite some time.&lt;br /&gt;&lt;br /&gt;i) Windows sidebar has not been working in my machuine for a long time. It would just crash at startup and also when I try opening it from the program menu. This has been corrected and seems to be working fine so far.&lt;br /&gt;ii) McAfee antivirus 2009 was getting a 'MISP Shell Error (may not be the correct error description) when I tried to open the 'McAfee Security Center'. And the Registration Wizard kept erroring out (inspite of my efforts to try to runs using various XP compatibility settings), making my calls to customer care useless as they kept telling me everytime that they cannot help without product registration. This has also worked fine for me after the update.&lt;br /&gt;iii) Yahoo messenger 9.x was also erroring on the programs start up. This issue also appears to have been rectified. I was using a patched up version of Ymess 8.x until now.&lt;br /&gt;&lt;br /&gt;Thanks Microsoft!&lt;br /&gt;For taking some to fix your bugs amist suing other smaller companies...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13919433-8865097761339135499?l=hellkay.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hellkay.blogspot.com/feeds/8865097761339135499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hellkay.blogspot.com/2009/02/windows-vista-service-pack-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/8865097761339135499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/8865097761339135499'/><link rel='alternate' type='text/html' href='http://hellkay.blogspot.com/2009/02/windows-vista-service-pack-1.html' title='Windows Vista Service Pack 1'/><author><name>Elkay</name><uri>http://www.blogger.com/profile/07342639254855303902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13919433.post-5183334442821616145</id><published>2009-01-24T19:33:00.000-08:00</published><updated>2009-01-24T20:22:56.310-08:00</updated><title type='text'>Day 56 - of Log Late n' Lite</title><content type='html'>&lt;div&gt;Err... it been a while since I started this dreary project. A lot has happened since then and I have not been able to work on this :(&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I think it is time for me to call it quits and accept defeat. However last week I took a step towards it and installed JDK and the Netbeans IDE in my machine.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So I can console myself by saying ~ A single install for a man is a giant step for a lazy man.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13919433-5183334442821616145?l=hellkay.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hellkay.blogspot.com/feeds/5183334442821616145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hellkay.blogspot.com/2009/01/day-56-of-log-late-n-lite.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/5183334442821616145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/5183334442821616145'/><link rel='alternate' type='text/html' href='http://hellkay.blogspot.com/2009/01/day-56-of-log-late-n-lite.html' title='Day 56 - of Log Late n&apos; Lite'/><author><name>Elkay</name><uri>http://www.blogger.com/profile/07342639254855303902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13919433.post-5498313414102131364</id><published>2008-12-13T00:07:00.001-08:00</published><updated>2008-12-13T00:16:50.206-08:00</updated><title type='text'>Day One - of Log Late n' Lite</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;I have been asked to develop asynchronous and lite logging for an application. Based on what I've googled so far, I am visualizing it using log4j + JMS (Active MQ or JBoss Messaging) .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;I will be really glad if I could find an open source off-the-shelf asynchronous logging framework... huh&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13919433-5498313414102131364?l=hellkay.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hellkay.blogspot.com/feeds/5498313414102131364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hellkay.blogspot.com/2008/12/day-one.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/5498313414102131364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/5498313414102131364'/><link rel='alternate' type='text/html' href='http://hellkay.blogspot.com/2008/12/day-one.html' title='Day One - of Log Late n&apos; Lite'/><author><name>Elkay</name><uri>http://www.blogger.com/profile/07342639254855303902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13919433.post-112790512393713205</id><published>2005-09-28T03:54:00.000-07:00</published><updated>2005-09-28T04:59:13.390-07:00</updated><title type='text'>Tidbit</title><content type='html'>The @ symbol has to be used in the &lt;strong&gt;xpath&lt;/strong&gt; query if you need to access an attribute field of an element.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Eg.  &amp;lt employee id="19090" &amp;gt&lt;br /&gt;      &amp;lt name/ &amp;gt&lt;br /&gt;      &amp;lt age/ &amp;gt&lt;br /&gt;     &amp;lt /employee &amp;gt&lt;br /&gt;&lt;br /&gt;the xpath to select the 'id' in an XSLT wud be '&amp;lt xsl:value-of select="/employee/@id/text()" &amp;gt '&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13919433-112790512393713205?l=hellkay.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hellkay.blogspot.com/feeds/112790512393713205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hellkay.blogspot.com/2005/09/tidbit.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/112790512393713205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/112790512393713205'/><link rel='alternate' type='text/html' href='http://hellkay.blogspot.com/2005/09/tidbit.html' title='Tidbit'/><author><name>Elkay</name><uri>http://www.blogger.com/profile/07342639254855303902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13919433.post-112332889037297004</id><published>2005-08-06T04:35:00.000-07:00</published><updated>2005-08-06T04:52:15.396-07:00</updated><title type='text'>QD software</title><content type='html'>There are many software availble in the internet (for free) for the Symbian OS. This is one good site where you can download lots of stuff &lt;a href="http://mobango.com/"&gt;http://mobango.com/&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;This is a list of software thats got to be really useful for the QD&lt;br /&gt;&lt;br /&gt;1. Ultramp3 mp3 player - Unlike the N-Gage the QD doesn't have a preinstalled mp3 player. ( as i mentioned the realone player in the CD didnt detect the mp3s in my MMC.)&lt;br /&gt;&lt;br /&gt;2. Patch to store messages in MMC - If you are using your Blutooth dongle to transfer files between your PC and fone, you will need this software to move your message inbox to the MMC (so that you can transfer files greater than 4MB - fone memory).&lt;br /&gt;&lt;br /&gt;3. File explorer - fexplorer111 . This software enables you to explore through the various drives in your fone like you do with the windows explorer. This can be real useful to move files from one drive to another and to delete unwanted files.&lt;br /&gt;&lt;br /&gt;The rest are just stuff-for-fun and ARE real fun actually.&lt;br /&gt;&lt;br /&gt;Another Tip :&lt;br /&gt;&lt;br /&gt;How to change the wallpaper on the QD.&lt;br /&gt;&lt;br /&gt;go to Settings-&gt;Device settings-&gt; Standby mode-&gt;Wallpaper-&gt; select yes here and select wallpaper from either from device memory or MMC.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13919433-112332889037297004?l=hellkay.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hellkay.blogspot.com/feeds/112332889037297004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hellkay.blogspot.com/2005/08/qd-software.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/112332889037297004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/112332889037297004'/><link rel='alternate' type='text/html' href='http://hellkay.blogspot.com/2005/08/qd-software.html' title='QD software'/><author><name>Elkay</name><uri>http://www.blogger.com/profile/07342639254855303902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13919433.post-112324179961861723</id><published>2005-08-05T04:30:00.000-07:00</published><updated>2009-08-08T16:30:15.634-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='n-gage qd tips'/><category scheme='http://www.blogger.com/atom/ns#' term='n-gage qd essentials'/><title type='text'>The N-GAGE QD - tips n tricks</title><content type='html'>&lt;strong&gt;                                                                   The    QD&lt;/strong&gt;                    &lt;br /&gt;&lt;br /&gt;                                     &lt;a href="http://photos1.blogger.com/blogger/3363/1243/1600/front.jpg"&gt;&lt;img style="CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/3363/1243/320/front.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Things u need to get (apart from the fone):&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1.MMC Card&lt;/strong&gt;- The fone comes with a device memory of just 4mb, so you might ( else u gonna say the fone sucks) want to get an MMC card (a techie name for a flash memory card). These cards are available in capacities from 128 MB to 1 GB.&lt;br /&gt;*** This is one important point i wanted to discuss about. I was a bit jittery( or maybe the card didnt fit properly - please verify this ) when i tried to push my 1 GB MMC card (Manufacturer NCP) through the slot, and it got stuck !! I cudnt pull the card back :( .. I had to rush to a service guy who pulled it out with a foreceps and told me that i had broken the lock :( ... Implying, evrytime i need to pull my card out i have to use a foreceps ( of course i will repair the lock) , so guys be careful while inserting your card. The usual procedure is - when u press your card once it gets locked and when you do it again it jumps out like in Digital cameras.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2.A Card reader&lt;/strong&gt;- This USB device is a must if u need to transfer files(mp3s,sis files,jpegs) from your PC to the QD. This is usually a multipurpose device and can read from many types of cards ( even from cameras).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Things u need not get:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1.The Bluetooth Dongle :&lt;/strong&gt; U need not get a bluetooth dongle if you got a card reader.you can transfer all kinds of files using your card reader.( but since my card was stuck i got a bluetooth 'dongle' - wat a weird name)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tip:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;And the real one player provided by nokia ( on CD - you got to install it yourself) didnt recognize my mp3s on the card , so i removed it and installed ultramp3 and it works fine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13919433-112324179961861723?l=hellkay.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hellkay.blogspot.com/feeds/112324179961861723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hellkay.blogspot.com/2005/08/n-gage-qd-tips-n-tricks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/112324179961861723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/112324179961861723'/><link rel='alternate' type='text/html' href='http://hellkay.blogspot.com/2005/08/n-gage-qd-tips-n-tricks.html' title='The N-GAGE QD - tips n tricks'/><author><name>Elkay</name><uri>http://www.blogger.com/profile/07342639254855303902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13919433.post-112304682835333577</id><published>2005-08-02T22:23:00.000-07:00</published><updated>2005-08-02T22:28:14.740-07:00</updated><title type='text'>JAXB and Castor ( no Pollux :( here )</title><content type='html'>&lt;a href="http://java.sun.com/webservices/docs/1.5/tutorial/doc/JAXBWorks.html"&gt;JAXB &lt;/a&gt;and &lt;a href="http://www.castor.org/index.html"&gt;Castor&lt;/a&gt; are APIs that facilitate reading XML documents and mapping the content into java objects.&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;JAXB procedure&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;A schema definition document (.xsd) has to be made, which when ‘bind’ed to the API will create the java objects that need to be filled with the contents of the XML file.&lt;br /&gt;&lt;br /&gt;It’s NOT possible to create your own classes, however you can modify the classes that the API generates by specifying options during binding.&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;Castor procedure&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The java objects that need to be filled with the contents of the XML file, can be created by the user (this gives a lot flexibility when compared to JAXB), or they can be generated by the Sourcegenerator JAR.&lt;br /&gt;&lt;br /&gt;The main difference is that this method does not need an XML schema definition. But we will need a mapping document for that purpose. The mapping document can also be generated using tools like org.exolab.castor.tools.MappingTool or &lt;a href="http://www.castor.org/extras.html"&gt;3rd party tools&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13919433-112304682835333577?l=hellkay.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hellkay.blogspot.com/feeds/112304682835333577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hellkay.blogspot.com/2005/08/jaxb-and-castor-no-pollux-here.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/112304682835333577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/112304682835333577'/><link rel='alternate' type='text/html' href='http://hellkay.blogspot.com/2005/08/jaxb-and-castor-no-pollux-here.html' title='JAXB and Castor ( no Pollux :( here )'/><author><name>Elkay</name><uri>http://www.blogger.com/profile/07342639254855303902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13919433.post-112230954585447236</id><published>2005-07-25T09:33:00.000-07:00</published><updated>2005-07-25T09:58:31.336-07:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;Uploading a large XML file into an XMLType column&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The XML File is read as a string and is loaded into the XMLType column. The setString() statement was used to load the string (XMLType data) into the SQL prepared statement. As the string that had to be loaded was large (bigger than 4kb accepted by setString()) the statement was in error.&lt;br /&gt;&lt;br /&gt;However there was a procedure suggested by ORACLE, where the setObject() is used instead of setString(). In which case, a CLOB is pushed into the prepared statement.&lt;br /&gt;1. The getCLOB() method writes the contents of the string into a CLOB using ‘write’ method of the ‘Writer’ class and returns the CLOB.&lt;br /&gt;&lt;br /&gt;Code Snippet:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;CLOB tempClob = null;&lt;br /&gt;// Open the CLOB in readwrite mode to enable writing&lt;br /&gt;tempClob.open(CLOB.MODE_READWRITE);&lt;br /&gt;&lt;br /&gt;// Get the output stream to write&lt;br /&gt;Writer tempClobWriter = tempClob.getCharacterOutputStream();&lt;br /&gt;&lt;br /&gt;// Write the data into the temporary CLOB&lt;br /&gt;tempClobWriter.write(xmlData);&lt;br /&gt;&lt;br /&gt;// Flush and close the stream&lt;br /&gt;tempClobWriter.flush();&lt;br /&gt;tempClobWriter.close();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;2. The CLOB is then loaded into the prepared statement using setObject().&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Code Snippet:&lt;br /&gt;&lt;br /&gt;PreparedStatement insertsql = Con.prepareStatement(&lt;br /&gt;&lt;br /&gt;"INSERT INTO PO_XML_TAB2 VALUES(200,&lt;br /&gt;&lt;br /&gt;XMLType(?))");&lt;br /&gt;&lt;br /&gt;insertsql.setObject(1, clob);&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name="_Toc109837896"&gt;&lt;strong&gt;References&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13919433-112230954585447236?l=hellkay.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hellkay.blogspot.com/feeds/112230954585447236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hellkay.blogspot.com/2005/07/uploading-large-xml-file-into-xmltype.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/112230954585447236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/112230954585447236'/><link rel='alternate' type='text/html' href='http://hellkay.blogspot.com/2005/07/uploading-large-xml-file-into-xmltype.html' title=''/><author><name>Elkay</name><uri>http://www.blogger.com/profile/07342639254855303902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13919433.post-111960316456627556</id><published>2005-06-24T01:48:00.000-07:00</published><updated>2005-07-27T05:10:50.703-07:00</updated><title type='text'>Le Roi est mort; Vive le Roi</title><content type='html'>I found maintaining a site that looked like absolutely junk html pages stolen from some old tutorial websites, was real tiresome. While recollecting the purpose that i had actually built the site for, i found it little different from the way a weblog functions. So i've switched sides... and if you want to have a look @ my old yucky site follow the link that says My Site.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13919433-111960316456627556?l=hellkay.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hellkay.blogspot.com/feeds/111960316456627556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hellkay.blogspot.com/2005/06/le-roi-est-mort-vive-le-roi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/111960316456627556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13919433/posts/default/111960316456627556'/><link rel='alternate' type='text/html' href='http://hellkay.blogspot.com/2005/06/le-roi-est-mort-vive-le-roi.html' title='Le Roi est mort; Vive le Roi'/><author><name>Elkay</name><uri>http://www.blogger.com/profile/07342639254855303902</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
