How to hide/show Messenger Plus! ‘contacts on desktop’ based on a hotkey

Earlier today, I’ve made another post doing something very similar to this one. You can have a look at it here.

We are going to do the exact same thing actually, but this time, you will be able to use the code that I’m giving without any modification.

Read the rest of this entry »


How to hide/show a specific Sidebar gadget on Windows based on a hotkey

Well, we will write a little code first. If you are not scared by that fact, go and install AutoIt. It is a great scripting language for Windows. It saves the day when you just want what you want to be accomplished and not worry about anything else. Anything that comes up to your mind, first check this thing, if you cannot find it, or it is limited in some sense, only then try implementing it wholly by yourself. Fortunately, what we are going to do is actually quite basic, so it has all that we need.

Here is my code for hiding and showing the ToDo gadget based on a hotkey.

Read the rest of this entry »

iPhone 3GS, Palm Pre, Motorola Droid and Nexus One Comparison

Hi everyone, it’s been a while since I’ve posted something, and I am aware of it. There were some changes in my life for a while now. I hope to be more active from now on though. I wish everyone a happy new year btw.

Anyway, I just saw a comparison of the new and popular touchphones on the market. I am thinking of getting a new one in the next 6 months, so if you are also thinking about it, it might be a good idea to look at the chart below provided by BillShrink.

Read the rest of this entry »

How to find out the version of PHP, installed PHP components and the Operating System version on a server

Just a quick tip to let you know that you can find the version of PHP, and the PHP components installed on the server by just creating a blank php file and writing this into it:(of course, you would need to be able to access the server via some transport protocol for this to work)

<?php phpinfo(); ?>

Read the rest of this entry »

Google Wave Invite Giveaway

Hi everyone,

I have 11 Google Wave invites left. You want it? Just drop a comment with your gmail username(or any other e-mail address I guess, but I haven’t tested). Use [at] instead of @ and [dot] instead of ‘.’ to be protected from spam bots though.

First come, first served..

Update: None left! 😦 If I get more, I’ll post them here again.

Change display language of a non Ultimate/Enterprise version of Windows Vista

So.. if you are here, you probably bought your laptop from a country different from the one you are originating from and want to change it to your local language.

Hmm.. So you google a bit and realize that you can’t do that unless you are using an Ultimate/Enterprise version of Vista. Well, there is an unofficial way to achieve your aim.

Note: This probably violates the EULA of Microsoft, so carry on at your own risk.

Read the rest of this entry »

Opportunity vs. Idealism

Last friday, I quit my current part-time job where I have been working for the last year and a month. Why did I do it?, some people ask.
Well, it certainly was a hard decision. They actually allowed me to be a full-time employee and also go on with my masters education at Sabancı University(SU). (..and, it is probably one of the best companies to work for in Turkey)

Read the rest of this entry »

How to get the output of a console application from Java

Of course; I was trying to get a thread dump using jstack here. You would need to change the command that Runtime.exec() executes to your liking.

Process threadDump=Runtime.getRuntime().exec("jstack -l "+pid);
BufferedReader br=new BufferedReader(new InputStreamReader(threadDump.getInputStream()));
String line=br.readLine();
else {
      //Do whatever you want

How to get the process id after running an application from Java under Linux

Use the following sample code to get the pid(process id) on *nix variants, after running it as a command from Java using Runtime.exec() .

The command variable, in my case, was running another Java application.

try {

Process  process=Runtime.getRuntime().exec(new String [] {"sh","-c",command+"  &  echo $!"} );
BufferedReader br=new BufferedReader(new InputStreamReader(process.getInputStream()));

String ps=br.readLine();
int pid=Integer.valueOf(ps);
} catch (IOException e2) {
// TODO Auto-generated catch block

Running Windows 95 on iPhone

So what do you think?

Not that this is a great invention; as it has already been done before on other phones(e.g. Mac OS or Windows 95 on N800 on the Maemo platform) using emulators; but it is nice to know that it is indeed possible.

Read the rest of this entry »

« Older entries Newer entries »