Playing cards is fun

For some reason I remembered my probability class back in the university. The class was fairly fun while also being an integral part of another un-fun class telecommunications. The calculation of the probability getting a straight in poker is being used in many ways in telecommunications. This brings another facet of playing cards doesn’t it? Playing cards can sometimes be fun.

How to add images to DataGridView cell using C# and Windows Forms

There are many ways to skin this old cat. When choosing the way, you must first decide when should the adding of images take place. I chose to add images during sorting.

Let us assume you already added some data to gridview via datatable using ;

So now you know we have a filled up dataGridView.

Now let us assume in the dataGridView1 we want to add images according to the data within the 6th column. So what we first need to do is to create an image column by writing;

Now we have a image column. With the name “img” with the header “Image Column” As you can see in the 5th line I have stated that my images are actually icons. The reason I did this was that I found out that icons take up less space and flickers less. You can if you want change this option as you see fit.

Now let us get cracking and add those images according to the columns;


I hope this has been informative. Please do tell if you see any mistakes and wish to make suggestions.

Have fun!

Installing node.js 0.6.2 on Fedora 16


The logo of the Node.js Project from the offic...

Image via Wikipedia

This one was a little hard. I got lots of help so I decided to post it online since it doesn’t exist on the internet yet… I wonder why….

The simple step by step instruction:

  1. sudo yum install git

  2. cd node
  3. git checkout v0.6.2
  4. sudo yum install openssl-devel
  5. sudo yum install gcc # you can skip this if you already have gcc
  6. sudo yum install gcc-c++ # you can skip this if you already have gcc-c++
  7. ./configure       [ thank you Ed for the heads up! ]
  8. make -j2
  9. make install
  10. export PATH=$PATH:/usr/local/bin:/usr/local #this is to add usr local to your path wher nodejs was installed
  11. sudo visudo
  12. Find Defaults secure_path=/sbin:/bin:/usr/sbin:/usr/bin
    go to the end “a” for append, type “:/usr/local/bin”, ESC, “:wq”
  13. curl |sudo sh #installing npm a very good too to install nodejs packages
    P.S. : This step is outdated as of node.js 0.6.3 since node.js 0.6.3 comes out with npm
  14. sudo yum install mongodb #installing mongodb
  15. #go to the dir where you wish to code and use npm!!
  16. npm install mongodb
  17. npm install mongoose
  18. npm install express
  19. npm install coffee-script
  20. npm install stylus
  21. npm install underscore
  22. npm list
    ├── coffee-script@1.1.3
    ├─┬ express@2.5.1
    │ ├─┬ connect@1.8.0
    │ │ └── formidable@1.0.7
    │ ├── mime@1.2.4
    │ ├── mkdirp@0.0.7
    │ └── qs@0.3.2
    ├── mongodb@0.9.7-0
    ├─┬ mongoose@2.3.13
    │ ├── colors@0.5.1
    │ ├── hooks@0.1.9
    │ └── mongodb@0.9.6-23
    ├─┬ stylus@0.19.3
    │ ├── cssom@0.2.0
    │ ├── growl@1.1.0
    │ └── mkdirp@0.0.7
    └── underscore@1.2.2

Vacation or time spent trading horror stories

On vacation. Reading “The Call of Cthulhu” … Spooky…

I quote :

The most merciful thing In the world, I think, is the inability of the human mind to correlate all its contents. We live on a placid island of ignorance in the midst of black seas of infinity, and it was not meant that we should voyage far. The sciences, each straining in its own direction, have hitherto harmed us little; but some day the piecing together of dissociated knowledge will open up such terrifying vistas of reality and of our frightful position therein, that we shall either go mad from the revelation or flee from the deadly light into the peace ar.d safety of a new dark age.

My new workplace


I have just started working in RENKO LTD.. I probably mentioned this before. I am quite busy these days so sorry for the lagging updates. I will be posting some new code and ready code reviews. Also since I finished school (yeah baby I got my diploma!!! Open-mouthed smile ) I will also post all my old home works. For now please enjoy the simple slideshow above.

If you come to Ankara, Turkey on a weekday you could probably find me at ;


Map picture



So please be patient while I upload my old home works.  And please feel free to browse through a great place to find physics lab equipment in Turkey.

Putting Humpty Dumpty Together

I have been going through many projects these last few days so that’s why you haven’t been receiving any updates. However my work load has lessened a bit hence the update.

I will be posting my collision detection software (for a 3D world using only one webcam). You will be able to find it on GitHub.

I will like to show my fellow system admins one of the switch’s we are using in the company we work. I think it will make you smile.Image006 (2) As you can see the whole thing is a mess and very scary. We are to re-cable the whole thing once I find some time. The switch is actually under power lines.  So lots of interference. Thanks to some miracle the system still works.

I will take a photo of the new version once I fix the whole thing. If I ever find any time. After all I’m the only IT/Software Developer guy throughout the company.


Another photo I wish to share is of my cubicle. Below is my comp and table.

Image028 (2)

As you can see from the photo I have a nice little corner. The computer is custom made. i7-960 with 6 gigs of ram. The motherboard is true SATA3 so is the hard disk. I very much like my machine. I installed Fedora 15 and Windows 7 64-bit Prof. Dual boot. Very happy over all.

These days I’m writing in Python and C++. So I have been using the new Eclipse IDE. The new Indigo Eclipse is very good. Uses less RAM and less CPU.

For my PHP programs I have been using the new Netbeans 7.0.1. However because of the poor Python support (you have to install a Netbeans 6.8 version plugin which under certain circumstances crashes the whole Netbeans) I really don’t like it. That said the PHP support looks good.

Talking of PHP we moved our server to Media They have good service however it really is expensive. I wish they gave a little more RAM without costing an arm and a leg. The whole thing is just too expensive. However the speed is far superior than HostGator which was our previous server host.

opendns_logo_300I have also moved the whole network to OpenDNS. We were able to stop botnet activity thanks to the switch. It seems one of the computers got infected even though all the PC’s have anti-virus’s. The company was also able to put up some much needed web content filters. Of course now everyone blames the IT guy for the whole thing.

And that is that really. I will probably be buying an Android phone soon. Everything is grand these days. Couldn’t finish my “IP Home Automation Load Balancing” paper yet. I just really didn’t have the time. Was mostly working on my collision software these days.

I may be going back to USA. I really am not sure when it will be happening.

Below you will able to see some pretty pictures I took with my soon to be old phone.

Oh yeah… I wish to ask… Doesn’t it bother you when your door is kicked and you are checked up every so often as if you were in prison? I get really annoyed when my door is opened without a knock these days. I mean. Privacy people!


Image026 (2)