Clickaider

I have been waiting about this. cliackiader is a freeservice under 100 thousands page view after that it says.

Current period includes more than number of clicks allowed for youraccount (100,000).
You can view current report starting from 02/25/2008 00:00.

its nice to see that we overwhelmed the possible ways 🙂

Vista is a total disaster or what

some part of my program could not work on vista. it says “no authorization”. this program developed under .net 2 simple program shows some web pages from internet stands in system tray. thats the program in this post.

and it uses webbrowser component of .net. I know microsoft build up a new most secure system for their customers. but it works in XP. there must be some option about vista situation. now I am thinking C++ will be more easy but I am not sure. anyway time will show.

Funny Eclipse

I have been working with all platforms about 15 years now. I used to write bat files in dos5 now I am writing java code with eclipse and c# with vs.net . anyway here is the story about the funny ide 🙂

I was writing some AJAX application in eclipse which has to call a ten thousand line js file from browser and call some function from there. first of all writing that much big js file is a big big mistake from all perspectives. and deploying this big file to a browser another mistake but its a big project since 2006 its written by some people. I can not change that in 1 day.

when I start to turn mouse wheel eclipse understands later the effect and when I stop it could not stop 🙂 and line numbers comes later too. it means I have to a lot of CPU and RAM for that. but its like walking with a big dog 😀

NotifyIcon and double click problem

in .net 2 if you want to show your application in system tray. you need to add notify icon to your application and set the “ShowInTaskBar” property to False. now you have the notify icon in the system tray. my problem was I could not show the form if I double click on the notify icon. I tried to BringToFront() which works but it did not work under this situation. anyway here is the solution:

private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
{
this.Visible = true;
Show();
this.BringToFront();
this.Activate();
}

I know that bringtofront function does not work but I like to see my code this way more clear 🙂 now Activate() works perfectly.

Change Php Memory Limit in Shared Hosting

One of my client asked me to solve a small bug in one of my php application. I am not a php guru but I am a dirty hacker 🙂 anyway the problem was exceeding memory limit. in shared hosting it was limited with 8M from php.ini

I made a small research but could not find any document about it in ISP’s page. and asked to my uncle google. he could not find any copy paste code there too 🙂 and at last of course for the php I have to check php.net and its documentation little bit reading here is the line which saves the day:

ini_set(‘memory_limit’,’128M’);

it was working very fine in 8mb then it will work for a long time in 128m 🙂 thats enough for that.

Cloverfield

in two few words. good packing 🙂 it does not have a new story or new outstanding style. but in this movie somehow I open my eyes and watch without blinking 🙂 maybe because it was something like quake game. like you are one of the player in the movie. it does not telling you a story. this movie taking you into the eyes of someone in the story.

it has a high tempo and I was like this “what was that” “what just happened” “what”. I can give 7 out of 10.

Job interview

one time somebody asked me to write a code which will solve Fibonacci numbers. and I looked at the paper and after 5 secs. I told him to look at the Google this is the oldest question in the book.

I know there are some people who thinks programmer has to know this. I am not one of them actually I always like to write new things. who care the solution of Fibonacci in real world computer problems. I know what it is and how to solve it thats enough for me.

if you like to memorize that code or one of the fan of Fibonacci check this out:
http://www.hanselman.com/blog/TheWeeklySourceCode13FibonacciEdition.aspx

still I find c# 2 implementation better than others.