Archive for July, 2008

How to show digg score in WordPress.

July 24th, 2008 | Yaz

If you can edit theme files, you can easily automate adding digg score to the posts. Edit index.php and single.php and add the following code to the Loop:

<?php if ( get_post_custom_values(“digg”) != 0) {
$metadigg = get_post_custom_values(“digg”);
echo “<script type=\”text/javascript\”>
digg_url = ‘”.$metadigg[0].”‘;
digg_bgcolor = ‘#999900’;
digg_window = ‘new’;
</script>
<script src=\”http://digg.com/tools/diggthis.js\” type=\”text/javascript\”></script>”;
} ?>

Next, after submitting a post to digg.com, copy the url of the post on digg.com. Edit the post. Scroll down to “Costum Fileds” and add key “digg” with value equal to the url on digg. For example, url of this page on digg.com is: http://digg.com/software/How_to_show_posts_digg_score_in_Wordpress

so I should add key “digg” with value “http://digg.com/software/How_to_show_posts_digg_score_in_Wordpress”. Save and publish the post. Now, you should be able to see digg score of your post.

To show a compact version of the digg score icon, use the following code instead:

<?php if ( get_post_custom_values(“digg”) != 0) {
$metadigg = get_post_custom_values(“digg”);
echo “<script type=\”text/javascript\”>
digg_url = ‘”.$metadigg[0].”‘;
digg_bgcolor = ‘#999900’;
digg_skin = ‘compact’;
digg_window = ‘new’;
</script>
<script src=\”http://digg.com/tools/diggthis.js\” type=\”text/javascript\”></script>”;
} ?>

Square Watermelon in North America

July 18th, 2008 | Yaz

Save on foods is selling square watermelon now. Hurry up if you would

like to try it for 99.99$ per lb each!

Those look like 10lbs each. So, I am looking forward to hearing from

square apple or at least square berries! Hopefully their price won’t

be higher than 99.99$ per lb.

How to write a semi-application for iPhone

July 17th, 2008 | Yaz

Switching among different programming platforms is frustrating specially if you, as me, are not a professional developer. Since the day that I got my iPhone, I have been planning to work on it and write at least some “hello world!” type applications. After signing up as developer in Apple and skimming over the documentation, I find out that I won’t be able to write even a simple application for a while, mostly because of time shortage.
(more…)

iPhone with 6GB data for 65$ monthly?

July 12th, 2008 | Yaz

After spending almost three hours staying in line, I was lucky to get the last iPhone in the store. The Fido plan that I already had was what I needed: 250 airtime minutes, unlimited evenings and weekends, 100 outgoing long-distance (in Canada), incoming free, caller ID, who is called, voice message, 125 sms all for 35$. The cheapest offer among iPhone plans is 60$ for 400MB data, 150 airtime minutes, unlimited evenings and weekends, 75 sms, Visual Voicemail, unlimited Fido and Rogers Hotspots Wi-Fi accounts, Call Waiting and Conference Call. At first, I thought that I should forget my previous plan, but they told me that I can keep it and add a 6GB data plan for 30$ per month called 3G Smartphone Data Option (100$ charge for early unsubscription). Since I do not care for visual voice mail and those hot-spots, I decided to keep my plan and add that data plan. This is what I could understand from their explanation. The next bill will show how much is the actual damage! If you are also interested, surf their website, call their costumer servise, … make sure that this works. Any feedback is appreciated.

How to make a categorized checklist in iGoogle.

July 4th, 2008 | Yaz

Suppose that you have to meet a deadline. Let’s say you are going to a business trip. There are a lot of things to do, take with yourself, buy and so on. Most of those items are keeping on coming to mind and you are afraid to forget them. The traditional way to remember them is to grab a piece of paper and write down items as a checklist . The only problem you may encounter is that you lose the piece of paper. You would like to have your list handy to add items an view it here and there. You can easily make a list by your Google account and iGoogle in 5 minutes and have it online. You can add your checklist to your iGoogle page, add items easily and view the categorized list. Steps are easy specially after creating the first one. You need just a Google account. (more…)

Switching from Windows XP to Ubuntu

July 2nd, 2008 | Yaz

Having heard much about Ubuntu and Linux, I was mentally ready to switch from Win XP to Ubuntu. However, since I hate to install OSs in general, I was not dare enough to touch OS of my computer. Last Friday, I got encouraged to do so by an annoying bug appeared on my Windows. I couldn’t figure out how it started, but it was annoying enough to motivate me to switch from Windows to Ubuntu instead of re-installing Windows. Another motivation came from Microsoft by announcing that they have stopped to sell Win XP. Anyway, I was/am decided to not use Vista and sooner or later I should start working in Linux.
(more…)