<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.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-8722048993094113071</id><updated>2012-05-24T04:50:31.724-07:00</updated><category term="others" /><category term="ruby" /><category term="linux" /><category term="c#" /><category term="javascript" /><category term="bot" /><category term="Other" /><category term="java" /><category term="mysql" /><category term="python" /><category term="php" /><category term="photoshop" /><category term="C/C++" /><category term="perl" /><category term="Visual Basic" /><category term="windows" /><category term="games" /><category term="myspace" /><category term="youtube" /><category term="blogging" /><category term="site review" /><category term="oracle" /><category term="Freelancing" /><title type="text">The world is amazing</title><subtitle type="html">Just sharing my experience with all. If anything proves helpful for you, its my success.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default?start-index=26&amp;max-results=25" /><author><name>Demon</name><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>319</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/icfun" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="icfun" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">icfun</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><entry><id>tag:blogger.com,1999:blog-8722048993094113071.post-4637572728846886655</id><published>2012-05-09T14:02:00.002-07:00</published><updated>2012-05-09T14:06:04.939-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><title type="text">Ruby: Get input from console</title><content type="html">You can use the STDIN to get the input from console(shell/cmd/commandline).&lt;br /&gt;&lt;br /&gt;to get a single character from the user.&lt;br /&gt;&lt;code&gt;chr = STDIN.getc&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This is useful to implement something like "Press Enter to exit program." kind of things.&lt;br /&gt;&lt;br /&gt;you can use gets, readline, etc with the STDIN.&lt;br /&gt;&lt;br /&gt;FYI: for writing output to the screen, you need to use STDOUT.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-4637572728846886655?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/4637572728846886655/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=4637572728846886655&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/4637572728846886655" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/4637572728846886655" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/05/ruby-get-input-from-console.html" title="Ruby: Get input from console" /><author><name>Demon</name><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-8722048993094113071.post-2931154169082047882</id><published>2012-05-09T13:52:00.002-07:00</published><updated>2012-05-09T14:00:21.893-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><title type="text">Ruby: uploading image problem, getting Internal server error</title><content type="html">There is one thing you need to remember while uploading image using Ruby. You have to read the file in binary mode. Otherwise for some server, you'll get Internal server error. I am giving you an example using the Ruby/Mechanize.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;pre&gt;File.open(imgFile, "rb") do|binaryImage|&lt;br /&gt;    content = a.post('http://example.com/uploadImage.php',&lt;br /&gt;            {&lt;br /&gt;                :img        =&amp;gt; binaryImage,&lt;br /&gt;                :imgTitle =&amp;gt; 'some title'&lt;br /&gt;            });&lt;br /&gt;end&lt;br /&gt;&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;Here,&lt;br /&gt;imgFile is the path to your image.&lt;br /&gt;"rb" used inside file open for reading file as binary mode.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-2931154169082047882?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/2931154169082047882/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=2931154169082047882&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/2931154169082047882" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/2931154169082047882" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/05/ruby-uploading-image-problem-getting.html" title="Ruby: uploading image problem, getting Internal server error" /><author><name>Demon</name><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-8722048993094113071.post-4249204974881983144</id><published>2012-05-09T13:49:00.002-07:00</published><updated>2012-05-09T13:52:25.340-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><title type="text">Ruby: OpenSSL::SSL::SSLError with Mechanize</title><content type="html">Have you ever seen an error like below while playing with Ruby/Mechanize with HTTPS links?&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;`connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The simple solution to overcome this error by setting SSL verification is false. You can do this like this way with your mechanize agent&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;a.agent.http.verify_mode = OpenSSL::SSL::VERIFY_NONE&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-4249204974881983144?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/4249204974881983144/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=4249204974881983144&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/4249204974881983144" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/4249204974881983144" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/05/ruby-opensslsslsslerror-with-mechanize.html" title="Ruby: OpenSSL::SSL::SSLError with Mechanize" /><author><name>Demon</name><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-8722048993094113071.post-8886847962570656713</id><published>2012-05-05T15:43:00.001-07:00</published><updated>2012-05-05T15:45:14.368-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><title type="text">How to install Ruby Mechanize?</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;To install the ruby mechanize gem, you can use the &lt;b&gt;gem&lt;/b&gt; of ruby. the command is like below.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;gem install mechanize&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;this works for windows, linux, whatever you use. &lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-8886847962570656713?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/8886847962570656713/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=8886847962570656713&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/8886847962570656713" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/8886847962570656713" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/05/how-to-install-ruby-mechanize.html" title="How to install Ruby Mechanize?" /><author><name>Demon</name><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-8722048993094113071.post-9017940166716923769</id><published>2012-05-01T10:11:00.001-07:00</published><updated>2012-05-05T15:44:48.199-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="perl" /><title type="text">how to escaping the URL for the Japanese characters</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;how to escaping the URL for the Japanese characters? I found a simple way to bypass this problem when i was using shift_jis. example:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;$japanese_chars = "チタン";&lt;/code&gt;&lt;br /&gt;&lt;code&gt;$encoded_japanese_chars = uri_escape(encode('shiftjis', $japanese_chars));&lt;/code&gt;&lt;br /&gt;&lt;code&gt;my $url = "http://www.example.com?param=$encoded_japanese_chars";&lt;/code&gt;&lt;br /&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/8722048993094113071-9017940166716923769?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/9017940166716923769/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=9017940166716923769&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/9017940166716923769" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/9017940166716923769" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/05/how-to-escaping-url-for-japanese.html" title="how to escaping the URL for the Japanese characters" /><author><name>Demon</name><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-8722048993094113071.post-6881738264055503438</id><published>2012-04-20T03:00:00.002-07:00</published><updated>2012-04-20T03:03:18.704-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><title type="text">Making transparent desktop icon for text.</title><content type="html">Not sure why, but suddenly i found my desktop icon changed from transparent to black. Tried with several methods from internet forums, but nothing worked. Finally the below solution worked for me. I just coppiced from a forum to here at my blog.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step1:&lt;/b&gt; Right click My Computer and choose Properties. Go to Advanced Tab and click &lt;br /&gt;on Settings button under Performance frame and deselect the Use drop shadows for &lt;br /&gt;icon labels on the desktop checkbox and then click OK two times.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 2:&lt;/b&gt; Start -&gt; Run -&gt; gpedit.msc&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 3:&lt;/b&gt; Go to User Configuration -&gt; Administrative Templates -&gt; Windows Components &lt;br /&gt;-&gt; Windows Explorer. Double click on Turn on Classic Shell and select Enabled option. &lt;br /&gt;Click Apply and OK. Close the Policy Editor.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 4:&lt;/b&gt; Follow the Step 1 but select the checkbox and click OK.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 5:&lt;/b&gt; Now go to Desktop to enjoy the Drop-Shadow effect.&lt;br /&gt;&lt;br /&gt;Thats it :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-6881738264055503438?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/6881738264055503438/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=6881738264055503438&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/6881738264055503438" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/6881738264055503438" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/04/making-transparent-desktop-icon-for.html" title="Making transparent desktop icon for text." /><author><name>Demon</name><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-8722048993094113071.post-1397824806039347833</id><published>2012-04-08T08:32:00.002-07:00</published><updated>2012-04-08T09:02:47.099-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Other" /><title type="text">How to identify the penny pinching buyers</title><content type="html">There are several common dialogs available for the cheap buyers who don't like to pay but want to make you work hard. They don't know how to respect a freelancers. Here are few tips which will help you to identify those idiots.&lt;br /&gt;&lt;br /&gt;1) when you'll see a common dialog "those who knows what they are doing...". for a massive difficult work, still they are uttering this fucking bullshit.&lt;br /&gt;&lt;br /&gt;2) when you'll see another common dialog "its a busy task, but right now i am busy and want to hire a coder". another fucking bullshit. they are saying this for not paying much, nothing else.&lt;br /&gt;&lt;br /&gt;3) a project having highlighted "lowest bid will be the winner". just ignore the project. let him hire the cheapest freelancer. they don't look for quality, so they don't give you respect for your work.&lt;br /&gt;&lt;br /&gt;4) china, india, pakistan, romania, when these are the country of the buyer, just kick those assholes. they are middleman, and won't pay much.&lt;br /&gt;&lt;br /&gt;that's it so far. make your steps clear before bidding on a project.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-1397824806039347833?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/1397824806039347833/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=1397824806039347833&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/1397824806039347833" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/1397824806039347833" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/04/how-to-identify-penny-pinching-buyers.html" title="How to identify the penny pinching buyers" /><author><name>Demon</name><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-8722048993094113071.post-4818180277586427668</id><published>2012-04-06T09:46:00.002-07:00</published><updated>2012-04-06T09:48:21.552-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><title type="text">The name 'HttpUtility' does not exist in the current context</title><content type="html">I was doing UrlEncode with the HttpUtility library of C# and getting the below error. My .Net version is 3.5;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;The name 'HttpUtility' does not exist in the current context&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;I have resolved this issue by adding the reference of System.Web from Add Reference option(Right click on References -&gt; Add Reference).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-4818180277586427668?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/4818180277586427668/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=4818180277586427668&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/4818180277586427668" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/4818180277586427668" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/04/name-httputility-does-not-exist-in.html" title="The name 'HttpUtility' does not exist in the current context" /><author><name>Demon</name><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-8722048993094113071.post-1417974507492128128</id><published>2012-03-30T10:19:00.003-07:00</published><updated>2012-03-30T10:23:59.896-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><title type="text">Visual Studio: Downgrading from from vs2010 to vs2008</title><content type="html">I was given a project recently made on visual studio 2010. I had to downgrade the project into vs 2008 to work on my side. Here is what i did to accomplish this.&lt;br /&gt;&lt;br /&gt;1) open the sln file. and you'll find below two lines&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Microsoft Visual Studio Solution File, Format Version 11.00&lt;br /&gt;# Visual Studio 2010&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;just replace the 11.0 into 10.0 and 2010 into 2008.&lt;br /&gt;&lt;code&gt;Microsoft Visual Studio Solution File, Format Version 10.00&lt;br /&gt;# Visual Studio 2008&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;2) now open all your project files(*.vbproj). and replace 4.0 with 3.5 from ToolsVersion attribute of xml. For example.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;ToolsVersion="3.5"&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;now load the sln file with your visual studio 2008. it will work.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-1417974507492128128?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/1417974507492128128/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=1417974507492128128&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/1417974507492128128" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/1417974507492128128" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/03/visual-studio-downgrading-from-from.html" title="Visual Studio: Downgrading from from vs2010 to vs2008" /><author><name>Demon</name><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-8722048993094113071.post-28490728549133319</id><published>2012-03-30T10:12:00.002-07:00</published><updated>2012-03-30T10:14:36.776-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php" /><title type="text">php: hexadecimal operation over a large number</title><content type="html">Normal decimal to hexadecimal function dechex() doesn't work for a number when its slightly large. For those cases the function base_convert() is useful.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;print base_convert(time().'000', 10, 16);&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-28490728549133319?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/28490728549133319/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=28490728549133319&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/28490728549133319" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/28490728549133319" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/03/php-hexadecimal-operation-over-large.html" title="php: hexadecimal operation over a large number" /><author><name>Demon</name><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-8722048993094113071.post-8081978911089465205</id><published>2012-03-30T10:03:00.002-07:00</published><updated>2012-03-30T10:12:06.361-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php" /><title type="text">PHP: stop displaying error messages</title><content type="html">i was making a REST api service using php for my clients. During an RSA encrypting processing, a third party library was showing error messages. It was simply garbling my xml outputs. So i need a way to stop the php to display error on page.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;ini_set('display_errors', 0);&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;it worked like a charm for me. This can be resolved from the conf file of apache or php i think. But as it solved for me, i didn't look for that solution.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-8081978911089465205?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/8081978911089465205/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=8081978911089465205&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/8081978911089465205" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/8081978911089465205" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/03/php-stop-displaying-error-messages.html" title="PHP: stop displaying error messages" /><author><name>Demon</name><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-8722048993094113071.post-7997020752791696054</id><published>2012-03-19T12:15:00.002-07:00</published><updated>2012-03-19T12:21:38.009-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="python" /><title type="text">Python: ImportError: No module named Image</title><content type="html">You are simply getting this because of you somehow not having the Image library of python. Usually this used to be along with python interpreter. Anyway, you can download and install this easily. The link is &lt;br /&gt;&lt;a target="_blank" href="http://www.pythonware.com/products/pil/"&gt;www.pythonware.com/products/pil/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After downloading and install, you can use the import Image easily into your python code.&lt;br /&gt;&lt;br /&gt;If you are using .tar.gz file, use below commands.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;setup.py build&lt;br /&gt;setup.py install&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-7997020752791696054?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/7997020752791696054/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=7997020752791696054&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/7997020752791696054" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/7997020752791696054" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/03/python-importerror-no-module-named.html" title="Python: ImportError: No module named Image" /><author><name>Demon</name><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-8722048993094113071.post-7905360658237501284</id><published>2012-03-03T07:26:00.002-08:00</published><updated>2012-03-03T07:30:50.095-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><title type="text">Cannot connect to Gmail: Can't connect to gmail-pop.l.google.com,995: Connection timed out</title><content type="html">If you get this error from your php script, then certainly it's not the issue with your php code. Its issue with your network. Possibly your apache is not allowing the php script to communicate the outside of network.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Cannot connect to Gmail: Can't connect to gmail-pop.l.google.com,995: Connection timed out &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To resolve this issue, just connect to your server using SSH and enter the below command to disable SELinux.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;setenforce 0&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-7905360658237501284?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/7905360658237501284/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=7905360658237501284&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/7905360658237501284" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/7905360658237501284" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/03/cannot-connect-to-gmail-cant-connect-to.html" title="Cannot connect to Gmail: Can't connect to gmail-pop.l.google.com,995: Connection timed out" /><author><name>Demon</name><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-8722048993094113071.post-7619127667934754261</id><published>2012-03-01T13:50:00.002-08:00</published><updated>2012-03-01T13:52:50.464-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><title type="text">CSharp: replace string using regex pattern</title><content type="html">I use regular expression extensively. So this is my favorite function for replacing a string. Basically code will remove all digits from the given string.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;x = Regex.Replace(x, @"\d+", "");&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Or everything after starting the digit.&lt;br /&gt;&lt;code&gt;x = Regex.Replace(x, @"\d.*$", "");&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-7619127667934754261?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/7619127667934754261/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=7619127667934754261&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/7619127667934754261" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/7619127667934754261" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/03/csharp-replace-string-using-regex.html" title="CSharp: replace string using regex pattern" /><author><name>Demon</name><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-8722048993094113071.post-6994364917473257100</id><published>2012-03-01T13:47:00.001-08:00</published><updated>2012-03-01T13:49:17.928-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><title type="text">CSharp: check whether the file exist or not</title><content type="html">Using the File.Exists of System.IO of C# you can easily check the availability of a file easily.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;System.IO.File.Exists(fileName)&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-6994364917473257100?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/6994364917473257100/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=6994364917473257100&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/6994364917473257100" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/6994364917473257100" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/03/csharp-check-whether-file-exist-or-not.html" title="CSharp: check whether the file exist or not" /><author><name>Demon</name><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-8722048993094113071.post-5898599091382945974</id><published>2012-03-01T13:43:00.003-08:00</published><updated>2012-03-01T13:54:46.910-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><title type="text">CSharp: how to write content to a file</title><content type="html">I prefer two ways to write content into a output file. Below are those&lt;br /&gt;&lt;br /&gt;1)System.IO.File.WriteAllLines(@"c:\output.txt", allLines);&lt;br /&gt;Basically you have to combine all your lines into a single string, and then just dump inside the output file.&lt;br /&gt;&lt;br /&gt;2) using the StreamWriter of IO.&lt;br /&gt;&lt;br /&gt;System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\output.txt")&lt;br /&gt;now using a loop, just execute the following line inside the loop.&lt;br /&gt;file.WriteLine(line);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-5898599091382945974?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/5898599091382945974/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=5898599091382945974&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/5898599091382945974" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/5898599091382945974" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/03/csharp-how-to-write-content-to-file.html" title="CSharp: how to write content to a file" /><author><name>Demon</name><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-8722048993094113071.post-4796728252132686628</id><published>2012-03-01T09:11:00.001-08:00</published><updated>2012-03-01T09:22:56.029-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><title type="text">CSharp: Exiting from the system</title><content type="html">What is the equivalent of exit() of scripting language like Perl, PHP in C#?&lt;br /&gt;What is the equivalent of System.exit(0) of Java in C#?&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Environment.Exit(0);&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-4796728252132686628?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/4796728252132686628/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=4796728252132686628&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/4796728252132686628" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/4796728252132686628" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/03/csharp-exiting-from-system.html" title="CSharp: Exiting from the system" /><author><name>Demon</name><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-8722048993094113071.post-4595019351238779081</id><published>2012-03-01T07:58:00.002-08:00</published><updated>2012-03-01T08:01:39.180-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><title type="text">CSharp: How to read a text file</title><content type="html">In C#, the package &lt;span style="font-style:italic;"&gt;System.IO.File&lt;/span&gt; will allow you to perform various reading option from a text file.&lt;br /&gt;&lt;br /&gt;1) reading the whole content from the file.&lt;br /&gt;&lt;code&gt;string fileContent = System.IO.File.ReadAllText(@"C:\input.txt");&lt;/code&gt;&lt;br /&gt;This will read the whole content into the fileContent variable.&lt;br /&gt;&lt;br /&gt;2) reading line by line from the text file.&lt;br /&gt;&lt;code&gt;string[] lines = System.IO.File.ReadAllLines(@"C:\input.txt");&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-4595019351238779081?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/4595019351238779081/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=4595019351238779081&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/4595019351238779081" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/4595019351238779081" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/03/csharp-how-to-read-text-file.html" title="CSharp: How to read a text file" /><author><name>Demon</name><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-8722048993094113071.post-6597964927131921768</id><published>2012-03-01T07:53:00.002-08:00</published><updated>2012-03-01T07:56:48.489-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><title type="text">CSharp: Equivalent of final</title><content type="html">If you want to declare a variable with &lt;span style="font-weight:bold;"&gt;final &lt;/span&gt;option of Java or &lt;span style="font-weight:bold;"&gt;const &lt;/span&gt;option of C++, that case you have to use the keyword &lt;span style="font-weight:bold;"&gt;readonly&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;An example is :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;public readonly int max = 100; &lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-6597964927131921768?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/6597964927131921768/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=6597964927131921768&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/6597964927131921768" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/6597964927131921768" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/03/csharp-equivalent-of-final.html" title="CSharp: Equivalent of final" /><author><name>Demon</name><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-8722048993094113071.post-6832427570938235700</id><published>2012-03-01T07:49:00.002-08:00</published><updated>2012-03-01T07:52:08.624-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><title type="text">Declaring a two dimensional array</title><content type="html">Unlike any other languages, C# maintains this in a different way. For example a two dimensional array 10x10 can be declared as below:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;int[,] twoDimensionalArray = new int[10,10];&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;inside the brackets, add more commas according to your needs which will just increase a dimension.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-6832427570938235700?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/6832427570938235700/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=6832427570938235700&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/6832427570938235700" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/6832427570938235700" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/03/declaring-two-dimensional-array.html" title="Declaring a two dimensional array" /><author><name>Demon</name><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-8722048993094113071.post-2773058467352205683</id><published>2012-02-25T04:53:00.002-08:00</published><updated>2012-02-25T04:56:20.407-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php" /><title type="text">Warning: fopen(file.txt): failed to open stream</title><content type="html">In your PHP script, if you get an error like below, then it definitely means that you are missing the read/write like operation parameter.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Warning: fopen(file.txt): failed to open stream: Bad file descriptor in C:\test.php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Lets consider the below code,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;$fh_out = fopen($filename, $mode);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here in your case, you are providing invalid value inside $mode and it is causing the error. change it into anything like 'w', 'r', etc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-2773058467352205683?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/2773058467352205683/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=2773058467352205683&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/2773058467352205683" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/2773058467352205683" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/02/warning-fopenfiletxt-failed-to-open.html" title="Warning: fopen(file.txt): failed to open stream" /><author><name>Demon</name><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-8722048993094113071.post-6701439240670991987</id><published>2012-02-24T01:59:00.002-08:00</published><updated>2012-02-24T02:05:54.404-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><title type="text">Show hidden files and folders is not working</title><content type="html">Everytime I select "Show hidden files and folders" for Tools-&gt;Folder Option, it just revert back to hidden mode. Means do not showing hidden files.&lt;br /&gt;&lt;br /&gt;I have solved this weird problem by below steps.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1) Click Start –&gt; Run –&gt;  and then write "regsvr32 /i browseui.dll" and press ENTER.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It will show a confirmation window. Close it by clicking OK.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2) Click Start –&gt; Run –&gt; and then type "regsvr32 /i shell32.dll" and press ENTER.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It will again show a confirmation window, close it and your problem is solved.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-6701439240670991987?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/6701439240670991987/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=6701439240670991987&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/6701439240670991987" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/6701439240670991987" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2012/02/show-hidden-files-and-folders-is-not.html" title="Show hidden files and folders is not working" /><author><name>Demon</name><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-8722048993094113071.post-108687470507862832</id><published>2011-12-12T19:57:00.000-08:00</published><updated>2011-12-12T20:01:14.309-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java" /><title type="text">Java: Get the class name of any Object</title><content type="html">Using the &lt;b&gt;getClass()&lt;/b&gt; method of any object, you can easily obtain the name of the class of that Object. Below is a simple code snippet to clear the things.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;TestClass t = new TestClass();&lt;br /&gt;System.out.println(t.getClass().getName());&lt;br /&gt;// output: TestClass&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-108687470507862832?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/108687470507862832/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=108687470507862832&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/108687470507862832" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/108687470507862832" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2011/12/java-get-class-name-of-any-object.html" title="Java: Get the class name of any Object" /><author><name>Demon</name><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-8722048993094113071.post-3450157352334697700</id><published>2011-11-29T21:58:00.000-08:00</published><updated>2011-11-29T22:02:32.510-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java" /><title type="text">Java: Converting a  byte array into Hexadecimal String</title><content type="html">I have written a method named byteArrayToHexString() which takes a byte array as parameter, and returns the Hexadecimal representation of the byte array. Below is the method.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;    public static String byteArrayToHexString(byte []input){&lt;br /&gt;        String string = "";&lt;br /&gt;        if(input == null){&lt;br /&gt;            return string;&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;        for(byte b : input){&lt;br /&gt;            string += Integer.toHexString(Integer.parseInt(Byte.toString(b))).toUpperCase();&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;        return string;&lt;br /&gt;    }&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-3450157352334697700?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/3450157352334697700/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=3450157352334697700&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/3450157352334697700" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/3450157352334697700" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2011/11/java-converting-byte-array-into.html" title="Java: Converting a  byte array into Hexadecimal String" /><author><name>Demon</name><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-8722048993094113071.post-3552269060842231857</id><published>2011-10-25T00:20:00.000-07:00</published><updated>2011-10-25T00:22:44.968-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java" /><title type="text">javax.ejb.EJBException: Could not unmarshal method ID</title><content type="html">If you are seeing the following error from your EJB then the solution is really simple.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;javax.ejb.EJBException: Could not unmarshal method ID; nested exception is: &lt;br /&gt; java.rmi.UnmarshalException: Method not found: 'YOUR_METHOD';&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This is because you have written some code but didn't compile or redeployed to your server after compile. So, build/compile your project again and deploy to your server. You'll not see this error again. :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8722048993094113071-3552269060842231857?l=icfun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://icfun.blogspot.com/feeds/3552269060842231857/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8722048993094113071&amp;postID=3552269060842231857&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/3552269060842231857" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8722048993094113071/posts/default/3552269060842231857" /><link rel="alternate" type="text/html" href="http://icfun.blogspot.com/2011/10/javaxejbejbexception-could-not.html" title="javax.ejb.EJBException: Could not unmarshal method ID" /><author><name>Demon</name><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></feed>

