tag:blogger.com,1999:blog-152146092024-03-07T19:56:26.975+06:00Had I been in Voyager 1!!!I am Mohammad Farhan Husain, a Bangladeshi American. This is all about my day-to-day life and opinions.Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.comBlogger359125tag:blogger.com,1999:blog-15214609.post-81126200628425258792021-07-12T07:14:00.000+06:002021-07-12T07:14:00.762+06:00Are blogs still popular?I have been thinking about my blog for a while. I have not crearted any post for about 7 years now! I was already irregular in the last few years I was active but this has been a really long break. I am wondering if people read others' blogs any more or is it just Instagram, TikTok etc. these days.Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-9035004771407864382014-08-02T05:00:00.000+06:002014-08-02T05:00:53.688+06:00A simple Rust `pow` function for the built-in numeric types<div dir="ltr" style="text-align: left;" trbidi="on">
<br /></div>
<p>While playing with <a href="http://www.rust-lang.org">Rust</a> I wrote a simple <code>pow</code> function:</p>
<pre><code>fn pow<T: Num + FromPrimitive + Copy>(a: T, mut b: uint) -> T {
if b == 0 {
return FromPrimitive::from_int(1)
.expect("1 must be convertible to type of a");
}
let mut m: T = a;
b -= 1;
while b != 0 {
m = m * a;
b -= 1;
}
return m;
}
</code></pre>
<p>Here is a link to the playpen where you can test it out: <a href="http://is.gd/JBWtVf">http://is.gd/JBWtVf</a></p>Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0Seattle, WA, USA47.6062095 -122.332070847.2636815 -122.9775178 47.9487375 -121.68662379999999tag:blogger.com,1999:blog-15214609.post-18169684554379156402012-07-29T03:35:00.001+06:002012-07-29T03:35:20.043+06:00Installed Jelly Bean on my Nexus S<p>The Jelly Bean (Android 4.1.1) factory image was released by Google very recently. I did not want to wait any long this time. AT&T still did not push the ICS update, so nothing to expect from them. I went ahead and followed the <a href="http://russoue.blogspot.com/2012/05/how-to-install-android-404-on-google.html">same procedure</a> I went through last time to install ICS. So far it seems like Jelly Bean is indeed faster than ICS. Right after the phone rebooted itself Google Play Store was downloading some 30+ apps I had before and I was browsing, setting up my exchange email account and synching it at the same time. I did not experience any significant lag even though such a large job was going on in the background, something unthinkable with Android before. I am certainly happy with the update but it still has to go a long way to match the instant reaction feel iOS gives to the user for any UI event. It is good to see that they finally started to address the issue.</p><br /><br />Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-80275051154027281892012-07-22T04:58:00.001+06:002012-07-22T04:58:18.561+06:00Blog composed by Ecto<p>Today I was trying to find a good desktop blog editor for Mac. I used Windows Live Editor few years back and found it to be very good at editing blogs. Not only that I don't use Windows any more but also Microsoft discontinued it. I found a <a href="http://www.hongkiat.com/blog/desktop-blogging-clients-the-ultimate-list/">long list</a> of such editors by Hongkiat Lim. I tried QTM but it failed to connect to my blogger account. I tried Qumana, it failed to authenticate too. Then I tried <a href="http://www.scribefire.com/">ScribeFire</a> for Firefox but to no avail. At this point I was wondering if my account is blocked or I forgot my credentials. However, I gave a chance to <a href="http://illuminex.com/ecto/">Ecto</a> and voila it could connect. I will continue to use it for some time to see if it is worth to buy it.</p><br /><br />Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com5tag:blogger.com,1999:blog-15214609.post-50669301766399366362012-06-22T00:17:00.002+06:002012-06-22T00:17:50.186+06:00Tree command in Mac<div dir="ltr" style="text-align: left;" trbidi="on">
Linux and probably other Unix-y OSes have this nice "tree" command to list a directory in a nice tree view in command line interface. But Mac is missing that. There are plenty of workarounds using the "find" and "ls -R" command for this but I found the one below good enough for me:<br />
<br />
<span style="color: blue;">find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'</span><br />
<br />
I just created an alias in my bashrc file and enjoying it :)<br />
<br />
<span style="color: blue;">alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"</span><br />
<br /></div>Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-4797892365548285972012-05-22T06:31:00.000+06:002012-05-22T06:31:06.038+06:00How to install Android 4.0.4 on Google Nexus S<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: arial; text-align: -webkit-auto;">I have been waiting for AT&T to push ICS to my Google Nexus S since last December. Google started rolling out ICS at that time but stopped it because of phones being bricked by some bugs. In March 2012, they released another version after ironing out the bugs. Since then many carriers and handset makers pushed the update but AT&T seems to be not interested. Many internet article and even Google+ posts by Google engineers clearly mentioned that update is available from Google but when I chatted with a customer representative of AT&T he blatantly lied that they did not receive any update. I did not expect any better from AT&T but, in retrospective, for some unknown reason I foolishly believed AT&T will push the update in near future. Eventually my patience wore out and I started to find how to install the latest ICS myself. I found it surprisingly easy. It is so easy that I am wondering why I waited for a company, well known to ignore its customers, for so long. Anyway, here are the steps to follow to install Android 4.0.4 on my Google Nexus S:</span><br />
<span style="font-family: arial; text-align: -webkit-auto;"><br /></span><br />
<br />
<div style="text-align: -webkit-auto;">
<span style="font-family: arial;"><b>DISCLAIMER: Be advised that this process involves risk of losing data or bricking the phone and I won't be responsible for any mishap. Please proceed at your own will<span style="font-size: x-small;">.</span></b></span></div>
<div style="font-family: arial; font-size: small; text-align: -webkit-auto;">
<br /></div>
<div style="font-family: arial; text-align: -webkit-auto;">
1. Download and install <a href="http://developer.android.com/sdk/index.html" target="_blank">Android SDK</a>.</div>
<div style="font-family: arial; text-align: -webkit-auto;">
2. Download <a href="http://koushikdutta.blurryfox.com/G1/" target="_blank">fastboot</a>.</div>
<div style="font-family: arial; text-align: -webkit-auto;">
3. Unzip fastboot and copy it inside the "tools" directory.</div>
<div style="font-family: arial; text-align: -webkit-auto;">
4. Add "fastboot" to the <a href="http://java.com/en/download/help/path.xml" target="_blank">PATH</a>.</div>
<div style="font-family: arial; text-align: -webkit-auto;">
5. Download the <a href="https://developers.google.com/android/nexus/images" target="_blank">Android image</a>. Choose the image based on your phone's radio. You can find it by going to "Settings" -> "About Phone".</div>
<div style="font-family: arial; text-align: -webkit-auto;">
6. Unzip it.</div>
<div style="font-family: arial; text-align: -webkit-auto;">
7. <a href="http://www.groovypost.com/howto/mobile/how-to-enable-usb-debugging-android-phone/" target="_blank">Enable USB debugging</a> on your phone.</div>
<div style="font-family: arial; text-align: -webkit-auto;">
8. Connect your phone to your computer and make a <a href="http://howto.cnet.com/8301-11310_39-20054149-285/how-to-back-up-your-android-phone/" target="_blank">full backup</a>.</div>
<div style="font-family: arial; text-align: -webkit-auto;">
9. Power off your phone and boot it in the bootloader mode by holding Volume Up and Power buttons simultaneously.</div>
<div style="font-family: arial; text-align: -webkit-auto;">
10. Open a terminal and run: "fastboot oem unlock" (this may void your warranty).</div>
<div style="font-family: arial; text-align: -webkit-auto;">
11. cd into the unzipped Android image directory.</div>
<div style="font-family: arial; text-align: -webkit-auto;">
12. Run "./flash-all.sh".</div>
<div style="font-family: arial; text-align: -webkit-auto;">
13. The phone will take some time to install the image and reboot. Finish the setup process by going through the steps prompted by Android (e.g. signing in to your Google account).</div>
<div style="font-family: arial; text-align: -webkit-auto;">
<br /></div>
<div style="font-family: arial; text-align: -webkit-auto;">
Its a good idea to lock the bootloader again. So do the following to do that:</div>
<div style="font-family: arial; text-align: -webkit-auto;">
<br /></div>
<div style="font-family: arial; text-align: -webkit-auto;">
14. Enable USB debugging.</div>
<div style="font-family: arial; text-align: -webkit-auto;">
15. Connect phone to your computer.</div>
<div style="font-family: arial; text-align: -webkit-auto;">
16. On terminal, run "fastboot oem lock".</div>
<div style="font-family: arial; text-align: -webkit-auto;">
17. Reboot your phone.</div>
<div style="font-family: arial; text-align: -webkit-auto;">
<br /></div>
<div style="font-family: arial; text-align: -webkit-auto;">
If you have small data plan then you may want to connect to WiFi before signing into your Google account because after signing in Android will download and install all the apps you installed from Google Play before.</div>
</div>Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-24198019289181532592012-02-23T03:41:00.000+06:002012-02-23T03:41:39.924+06:00Temporary fix for SSH broken pipe error with Mac OS X Lion<div dir="ltr" style="text-align: left;" trbidi="on">
I recently upgraded from Snow Leopard to Lion. Since then my ssh sessions are timing out pretty quickly with the following error:<br />
<br />
<div style="color: red;">
Write failed: Broken pipe</div>
<br />
There is a lot of discussion going on in the web on how to fix this problem. I tried a few but none of them worked. Eventually I added an alias to my ".bash_profile" file:<br />
<br />
<div style="color: blue;">
alias ssh='ssh -o TCPKeepAlive=no -o ServerAliveInterval=15'</div>
<br />
This seems to be working for now.</div>Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-19833523390513273352012-01-19T00:36:00.000+06:002012-01-19T00:36:16.879+06:00A hadith we should take to heart but we won't<div dir="ltr" style="text-align: left;" trbidi="on">
I subscribed to <a href="http://wayoflife-islam.com/">http://wayoflife-islam.com</a> for daily hadith and got this one today:<br />
<br />
Rasul Allah (sal Allahu alaihi wa sallam) once sent somebody to collect
zakat from a certain region. When the man returned he handed some of the
zakat over and kept some for himself saying that he had received it as a
gift from the people. Allah’s Apostle then ascended his pulpit and
addressed everybody. In it he said: “I employ some men from among you
for some job which Allah has placed in my charge, and then one of you
comes to me and says, ‘This (amount) is for you and this is a gift given
to me.’ Why doesn't he stay at the house of his father or the house of
his mother and see whether he is given gifts. By Allah whoever takes
anything unlawfully will bring it on the Day of Resurrection by carrying
it over his neck.” [Bukhari]<br /><br />Giving or taking bribes is at the
root of corruption. Islam clearly states that both the giver and the
receiver of a bribe end up in Jahannum (Hell). But how is one to
recognize that he or she is involved in this practice? In this hadith,
Rasul Allah (sal Allahu alaihi wa sallam) describes a simple test that
each person can perform to check themselves, when receiving favours
while serving in a particular position. They should ask themselves
whether what they receive is something they would be ‘gifted’ had they
been sitting at home, i.e. not serving in that position. If the “gift”
you receive is because of your office, so that you can use your position
to do the gift-giver a favour, then this is a misuse of authority.<br />
<br />
(Source: <a href="http://wayoflife-islam.com/">http://wayoflife-islam.com</a>, 18 January 2012 CE | 23 Safar 1433 AH)<br />
<br />
If at least 10% of our government officials learn anything from the hadith and practice in real life, our country will start to see dramatic changes. But the question is, would anyone do it? <br />
</div>Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-90150624634723467832011-12-31T15:05:00.001+06:002011-12-31T15:05:27.235+06:00My first domainFinally, I got my domain: <a href="http://russoue.com">russoue.com</a>. At the time of this writing a web server is running there with a pretty bland welcome page: <a href="http://www.russoue.com">http://www.russoue.com</a>. I am using a <a href="http://aws.amazon.com/ec2/instance-types/">AWS EC2 Micro Instance</a>, which is free for one year, as the server. I am thinking to have my own mail server there. I can't do anything heavy with the micro instance I guess. I am still thinking how I can use the server with its limited resources.<br> Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-63153236468131227732011-11-19T07:23:00.001+06:002011-11-19T07:28:28.843+06:00My Kindle Fire review<div dir="ltr" style="text-align: left;" trbidi="on">
Here is my review of the <a href="http://amzn.com/B0051VVOB2">Kindle Fire</a>: <a href="http://tinyurl.com/7nyydkv">http://tinyurl.com/7nyydkv</a></div>Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-13438697506332269692011-11-10T02:38:00.002+06:002011-11-10T02:39:16.048+06:00C/C++ going stronger than what people think<div dir="ltr" style="text-align: left;" trbidi="on">
<a href="http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html">TIOBE</a> published their programming language index for November, 2011 today and as per the usual trend Java, C and C++ are the top three programming languages. I am surprised to see that even after becoming old compared to many of the widely used programming languages, C and C++ are still holding their spots. I am particularly happy to see those three languages at the top because those are also my top three favorite languages. I would be happy to see Python and Ruby doing better. Here is the graph on long term trends on top ten programming languages from that site:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0FmJxAwGk9T5AMQfFHQsI-HQrfskDNI8Ys2rKDYqZL1rG224eeVPIq0Wy1DRhDJZqyqR5BtyVwCB2AHeANB663SWEKocDfcTvqp3aEHJtaAp91JkN2Xm7JzWUkAxhjld1NsQE/s1600/tpci_trends.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0FmJxAwGk9T5AMQfFHQsI-HQrfskDNI8Ys2rKDYqZL1rG224eeVPIq0Wy1DRhDJZqyqR5BtyVwCB2AHeANB663SWEKocDfcTvqp3aEHJtaAp91JkN2Xm7JzWUkAxhjld1NsQE/s400/tpci_trends.png" width="400" /></a></div>
<br />
Link: <a href="http://www.tiobe.com/content/paperinfo/tpci/images/tpci_trends.png">http://www.tiobe.com/content/paperinfo/tpci/images/tpci_trends.png</a></div>Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-61906981238531458882011-11-09T02:18:00.001+06:002011-11-09T02:19:20.579+06:00Development model using Git branchingI just read the <a href="http://nvie.com/posts/a-successful-git-branching-model/">awesome post</a> on a <a href="http://git-scm.com/">Git</a> branching model for software development. Thanks Naseem bhai for sharing the link with me. Git is my most favorite SCM tool. I think I am going to use the model for all personal projects. The author of the blog made his points by providing very clear examples. It is surely worthwhile to read it.<br> Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-59921620818398316642011-10-20T04:56:00.001+06:002011-10-20T05:46:07.333+06:00Quick and easy way to split lots of strings in Java<div dir="ltr" style="text-align: left;" trbidi="on">
Recently, I had to split strings in a method which would be called potentially couple of billion times. The strings were delimited by only one character e.g. '#'. To be as efficient as possible, I just used <i>String.indexOf(delimiter)</i> and then <i>String.substring(i, j)</i> to get the splits. For this case, I think this certainly is the most efficient solution because the <i>String.substring()</i> method does not allocate new memory, it just returns a new String object which has some meta information to get the string from the original string's buffer (this is a nice optimization but it has its own <a href="http://www.crazysquirrel.com/computing/java/basics/substring.jspx">pitfall</a>). I was happy with it but the code looked messy with all those <i>String.indexOf()</i> calls and lots of index maintenance. Upon getting a review from a colleague I looked for ways to make it look better and easier to maintain. I found couple of alternatives to do the this:<br />
<br />
1. StringTokenizer<br />
2. Scanner<br />
3. String.split<br />
<br />
StringTokenizer had to be discarded immediately as it is getting old and is only there for backward compatibility. The <a href="http://download.oracle.com/javase/6/docs/api/java/util/StringTokenizer.html">Javadoc</a> itself says, "<span style="font-family: times new roman,serif; font-size: x-small;">StringTokenizer</span> is a legacy class that is retained for compatibility reasons although its use is discouraged in new code." The Scanner is a great utility but seems to be bit heavy for that method. I had to keep in mind that the method would be called potentially billions of times in a row and it has to be as quick as possible. This left me with only the last option. String.split works in a simple way. It returns an array of strings. So, I could just use something like this:<br />
<br />
<div style="color: blue;">
String splits [] = str.split("#");</div>
<div style="color: blue;">
for (String split : splits) {</div>
<div style="color: blue;">
// Do something ...</div>
<div style="color: blue;">
}</div>
<br />
However, as noted <a href="http://www.coderanch.com/t/202948/Performance/java/split-vs-substring">here</a>, there is a performance issue with this. Each <i>String.split()</i> call compiles a regular expression pattern and then uses the pattern to split the string. The pattern compilation is indeed very expensive and can slow the method down significantly. So, essentially what the <i>String.split()</i> method does is this:<br />
<br />
<span class="postbody"><span style="color: blue;">public String[] split(String regex) {</span><br style="color: blue;" /><span style="color: blue;"> return Pattern.compile(regex).split(this);</span><br style="color: blue;" /><span style="color: blue;"> }</span><br /><br />By looking at the implementation, it becomes immediately obvious what one can do if lots of strings need to be split by the same regular expression. One can just have a pre-compiled pattern and call its split method repeatedly:<br /> <br /><span style="color: blue;">Patter pattern = Pattern.compile(regex);<br />...<br />for (String str : strings) {<br /> String splits [] = pattern.split(str);<br /> // Do something with the splits ...<br />}</span><br /><br />The only thing unknown to me is whether the returned strings allocate new memory or the <i>Pattern.split()</i> method just behaves as <i>String.substring()</i>. But from running the code with more than 2.5 billion strings, I did not see any performance difference between the old and the new approach. It might mean that copies of strings are actually not made.<br /> </span> </div>Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com2tag:blogger.com,1999:blog-15214609.post-8333389110411855672011-10-11T11:40:00.000+06:002011-10-11T11:41:00.129+06:00Netflix does not support Linux!After getting annoyed by Netflix because of its <a href="http://www.sfgate.com/cgi-bin/article.cgi?f=/c/a/2011/10/10/BUSJ1LFTCN.DTL&tsp=1">recent dramas</a>, I got pissed off today to see it <a href="http://movies.netflix.com/WiMessage?msg=51">does not support Linux</a>. Its a shame for a new tech company like Netflix to not support a popular Linux distro like Ubuntu. May be the number of users is small compared to other OS users, but in this world of open source and open standards supporting Ubuntu is just a gesture of goodwill. I would say that the disliking that started to grow in me after the price hike just got bigger after discovering this.<br> Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-14772790037259917022011-08-12T02:23:00.001+06:002011-08-12T02:23:39.484+06:00A tortured choice in famine: Which child lives?I read the story <a href="A%20tortured%20choice%20in%20famine:%20Which%20child%20lives?">here</a>. I think this is the most horrific story I have ever read. I can't imagine that a parent is forced to make a choice to abandon his/her child to die but this is what is happening in this world right now. Can't we do something about it? Surely we can. There are many organizations working in that area trying to help the famine affected people. We can donate some money to them, no matter how small the amount is. <a href="http://www.charitynavigator.org/index.cfm?bay=content.view&cpid=1274">This page</a> contains a list of charity organizations working on the problem. One can also donate to <a href="https://secure.unicefusa.org/site/Donation2?df_id=10400&10400.donation=form1&JServSessionIdr004=1p8zj45mq2.app239a">UNICEF</a>. <a href="http://www.islamic-relief.com/Emergencies-And-Appeals/1-63-east-africa-crisis-appeal.aspx">Islamic Relief</a> is also taking donations. I am sure there are more organizations trying to help those people. All we need to do is to make up our mind to donate at least a small amount. I think the problem can be easily fixed if only a fraction of us donate some money. This is our chance to have a big impact on someone's life by making a very little effort.<br clear="all"> <div><br></div><br> Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-29903421917580357342011-08-03T01:55:00.001+06:002011-08-03T01:55:00.461+06:00My Review of Roku 2 XS Streaming Player<div class="hreview"><div class="item"><p><a href="http://www.roku.com/roku-products">Originally submitted at Roku</a></p><div><p style="margin-top:0">Adds an enhanced remote for playing games, plus extra connectivity options.</p></div><a href="http://www.roku.com/roku-products" style="display: none;" class="url fn"><span class="fn">Roku 2 XS Streaming Player</span></a></div><br clear="left"><p><strong class="summary">Roku rocks!</strong></p><div>By <strong>Rusho</strong> from <strong>Bellevue, WA</strong> on <strong><abbr title="201182T1200-0800" class="dtreviewed" style="border: none; text-decoration: none;">8/2/2011</abbr></strong></div><p><div style="margin: 0.5em 0; height: 15px; width: 83px; background-image: url(http://images.powerreviews.com/images/stars_small.gif); background-position: 0px -180px;" class="prStars prStarsSmall"> </div></p><div style="display: none"><span class="rating">5</span>out of 5</div><p><strong>Pros: </strong>Easy to use, High quality picture, Great value, Reliability, Compact, Built in Wi-Fi</p><p><strong>Cons: </strong>Want more video choices, Set up bugs</p><p><strong>Best Uses: </strong>Living room</p><p><strong>Describe Yourself: </strong>Power User, Netflix fan, Technophile</p><p style="margin-top:1em" class="description">I bought Roku one week ago and I am absolutely enjoying it. The picture quality is superb. However, I faced few minor problems though, most of them during installation. While I was setting up my Wi-Fi connection, it hanged in the third step (connecing to Internet) and I needed to restart it. After I restarted it, it failed to connect to my Wi-Fi at first and said that the password is wrong. I found the password to be correct and tried once more without changing any thing and it worked fine. Since then I am facing no problem with connectivity. The only problem I am having persistently is with the Picasa application. It cannot show any photo though it can show the albums with their covers showing correctly.<br xmlns:pr="xalan://com.pufferfish.core.beans.xmlbuilders.xsl.Functions"><br>Overall, I am very satisfied with my purchase.</p><p style="margin-top:0.5em">(<a href="http://www.powerreviews.com/legal/terms_of_use.html" rel="license">legalese</a>)</p></div>Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-78715121943133438932011-07-26T00:12:00.000+06:002011-10-20T05:01:16.145+06:00Eclipse Color Themes PluginI was annoyed when I installed a color theme which I did not like. But there was no way to go back to the default theme because the theme made itself the default one! However, I came across the <a href="http://www.eclipsecolorthemes.org/">Eclipse Color Themes</a> site. It has a good collection of decent themes. However, to try one you need to download the theme and then import and apply it. This is a painful process unless you install their cool <a href="http://www.eclipsecolorthemes.org/?view=plugin">color theme plugin</a>. It is very easy to use and come pre-populated with the themes found in the site. You can import more and switch between the themes very easily. It is really worth giving a try.<br> Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-36271178690896071412011-07-20T02:07:00.001+06:002011-07-20T02:07:24.927+06:00Finance minister justifies his purchase decision with a sound logic!The finance minister of Bangladesh announced that he is going to buy some buses with the aid money got from India last year. It should sound like a good news to me. However, I am not sure if it is anything to be happy about. Here is why:<br> <br>He wants to buy the buses from India and what <a href="http://bdnews24.com/details.php?cid=4&id=201262">he says</a> about the decision is, "We could have bought them from other places, but since we're getting the credit from India, we should bring them from India". Is this a logic we want to hear from a finance minister? In today's world, purchase decisions are made not to express gratitude. We should get the best buses the money can buy. If those buses happen to be produced by India then it is fine. There can be one more reason to buy it from India even if they are not the best ones, that is if it is a condition specified in the loan agreement. For no other reason we can choose India as a source for the buses, let alone gratitude. I wonder how this guy qualifies to be our finance minister. The other day I was reading a news about him blabbering that we are going to compete with world economic powers like India and China soon. The commentators on the Prothom Alo page did not like that. I did not take it seriously then. But now I think this guy truly is an incompetent finance minister. Had Bangladesh been a developed democratic country, this guy would have lost his position for these reason. But all we can do is to pray to Allah to save us from incompetent ministers like him.<br> Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-444730480443248982011-06-30T02:03:00.001+06:002011-10-20T05:01:16.140+06:00Navigation between Vim tabsI like working with tabs in <a href="http://www.vim.org/">Vim</a>. It is a quite handy feature. But the navigation between tabs is not easy. It requires to be in command mode and type commands. It is certainly not a quick way and specially if you are jumping between tabs frequently you will soon get tired typing the commands. So I mapped the F7 and F8 keys to go to previous and next tabs respectively. Basically one can map any two keys of his choice to do that. Here is what I added in my <a href="http://vim.wikia.com/wiki/Open_vimrc_file">vimrc</a> file:<br> <br>map <F7> :tabp<Enter><br>map <F8> :tabn<Enter><br>imap <F7> <Esc>:tabp<Enter><br>imap <F8> <Esc>:tabn<Enter><br><br>I used both map and imap commands because one works in <a href="http://www.ubuntu.com/">Ubuntu</a> Linux but not when I use <a href="http://www.iterm2.com/">iTerm</a> in <a href="http://www.apple.com/macosx/">Mac OS X</a> and vice versa.<br> Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-15505620137521351492011-06-24T22:34:00.001+06:002011-06-24T22:34:21.708+06:00Type 2 diabetes can be reversed at early stage!I am very excited to know that type 2 diabetes can be reversed at early stage and that too with an inexpensive method: controlled diet! <a href="http://www.bbc.co.uk/news/health-13887909">A recent research revealed that</a>. Great works researchers! I hope they will find a cure for old patients too. I hate diabetes because, as the article say, it is a life sentence. I would very much like to see this change. If controlled diet is the cure then it is the best solution that can ever be found. Not only will it cure millions of diabetic people but also it will reduce our habit of overeating and wasting food. The poor and starved people will be directly or indirectly benefited by that. The world would be a better place.<br> <br> Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-8075725803533268302011-06-23T03:24:00.002+06:002011-06-23T03:26:43.540+06:00Walmart vs. Amazon<a href="http://www.onlinemba.com/walmart-vs-amazon"><img src="http://onlinemba.com.s3.amazonaws.com/walmart-vs-amazon.jpg" alt="Walmart Vs. Amazon" width="500" border="0" /></a><br />Via: <a href="http://www.onlinemba.com">Online MBA</a>Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-47383832165541384082011-04-11T23:34:00.001+06:002011-04-11T23:34:46.052+06:00Problem with বাংলা font in Firefox 4I was excited when Firefox 4 was released. I have used three of their released candidates and found lots of bugs. However, they did a great job of fixing all the bugs before the release. But one thing disappointed me a lot: improper display of বাংলা script. I frequently visit sites like <a href="http://www.prothom-alo.com/">প্রথম আলো</a>, সচলায়তন etc. and write বাংলা in Gmail and Facebook. বাংলা script appeared in distorted form everywhere. The problem was partially solved when I downloaded the SolaimanLipi font from <a href="http://www.prothom-alo.com/font-help">here</a>. বাংলা in প্রথম আলো immediately began to be displayed correctly. However, problems with the rest of the sites were unresolved. Then I solved the problem by changing the default font to SolaimanLipi by going to Options -> Content -> Fonts & Colors -> Advanced. I selected "Bengali" in the "Fonts for" drop-down box. I selected SolaimanLipi for both Serif and Sans-serif. I hope this might solve problems faced by others too.<br> Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-71062192640862025212011-02-13T04:27:00.002+06:002011-02-13T04:37:19.241+06:00A quizQuiz: which processor overheats and shuts down the whole machine when a processor intensive program runs? <div>Ans: AMD (what else can it be?)</div><div><br /></div><div>Previously, I could not play videos long enough because my AMD laptop would shut itself down because of overheating. Yesterday, I found that I cannot even do format conversion of videos. Both the task has one thing in common: intensive computation by CPU and that is what a process is supposed to do and be good at. But I learnt now that an AMD processor is no good at these tasks. It generates so much heat that I felt an egg can be boiled easily. I bought a lapinator one month ago but it is not helping at all. I guess I have to buy a portable A/C to be permanently attached to the processor and then only I can do something other than word processing with this machine. I am waiting for the day when I would be able to replace this laptop.</div>Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-63179186558613868452010-12-23T04:40:00.001+06:002010-12-23T04:40:59.074+06:00Dissatisfied with AMD laptopMy laptop has an Intel Core Duo and my wife's one has an AMDTK55 1.8 GHz with 512K cache. My wife's laptop frequently overheats and shuts down unexpectedly. It has more memory than mine (2.25 GB vs 2 GB) yet it runs slower. I can easily run multiple heavy weight applications in parallel in the Intel laptop whereas the AMD one almost crawls to a halt in a similar situation. This is my first AMD purchase. The only person I know who had an AMD is a friend who had it back when we were in school. He was not happy with his machine and neither are we with ours now. I wanted to see what others are saying and found <a href="http://www.buzzle.com/articles/intel-vs-amd-processor-comparison2010.html">here</a> that indeed AMD is not a match with Intel. The only advantage it provides is the low price. But I think the price difference is more than offset by its poor performance. So I would advise everyone to research thoroughly before picking one of the brands. As <a href="http://www.pcstats.com/articleview.cfm?articleID=2164">this article</a> says, we don't have to be fan of any brand because we don't get anything from them in return. We have to pick the best one for our need, regardless of the moniker it has on it. Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com0tag:blogger.com,1999:blog-15214609.post-12818870494899656962010-11-18T02:21:00.001+06:002010-11-18T02:21:22.642+06:00A potential game changer medicine<meta http-equiv="content-type" content="text/html; charset=utf-8"><div>This is really an exciting news for people having problems with cholesterol. And that group now includes me :-).</div><div><br></div><a href="http://finance.yahoo.com/news/Next-big-thing-Big-apf-1591521974.html?x=0">http://finance.yahoo.com/news/Next-big-thing-Big-apf-1591521974.html?x=0</a> Russouehttp://www.blogger.com/profile/02462074216140139892noreply@blogger.com2