Tuesday, September 23, 2008

Slow laptop, funny reason

It is normal Windows to slow down as you install new applications but if your linux installed laptop is getting slower and slower, there may be a pile of dust blocking the fan or there may be around five hundred thousand files in your home folder, or both as in my case. Probably I should clean inside of my laptop periodically.

Thursday, September 18, 2008

SMS reminders with Google Calendar

Day by day I am adapting to a new Google service. My new favorite is the Google Calendar. Recently I've discovered that Google sends SMS messages to my phone as reminders for the events I defined in Google Calendar. Since than I am started to use it day by day. I don't have a life with full of appointments and hours long meetings but I need to remember stuff. What I do is, I add every task I should remember to the Google Calendar as 5 minute events and then I get reminders as SMS messages. Which works great so far. Try it, have fun.

C++ Linux to Windows port

It took about 10 minutes to port the gtdshell into Visual Studio 2003 (I used linux+gcc at the development.) The only problem was apparently boost::date_time has some issues with VS, so it is replaced with ctime functions.

Wednesday, September 10, 2008

Turkçe Alt-Q Klavye

Linux'daki Alt-Q Türkçe klavyeyi özleyenler için. traltq.zip

Change is good

I moved to İstanbul.
Started a new job.
Got a twitter account (nick: emreturkay).
Turker tricked me to use nedurum (nick: emre).

Monday, July 21, 2008

Most simple XMLHttpRequest example.

For the ones need to get a quick start here goes a very simple XMLHttpRequest example with pure javascript. Note that this example works with the Firefox. For the Internet Explorer "xmlhttp = new XMLHttpRequest();" line should be changed with "xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");" although this usage varies with the Internet Explorer version.

At the server side you need a text.txt file which contains a partial html document such as:

<p> hello </p>

The code:

<html>

<head>

<script language="javascript" type="text/javascript">

function back_ajax()
{
if (xmlhttp.readyState == 4)
{
var o = document.getElementById('o');
o.innerHTML = xmlhttp.responseText;
}
}

function call_ajax()
{
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "test.txt", true);
xmlhttp.onreadystatechange = back_ajax;
xmlhttp.send(null);
}

</script>

</head>

<body>

<form name="f">
<input name="in"/>
<input type="button" onClick="call_ajax()"/>
</form>

<div id="o">
<ul>
<li> test 1 </li>
<li> test 2 </li>
</ul>
</div>

</body>

</html>

Thursday, July 10, 2008

subversion behind proxy

For the people who needs subversion access behind a corporate proxy, all you need to do is to append the lines below at the end of ~/.subversion/servers file. Unfortunately, this only works for subversion http access.
http-proxy-host = your.proxy.host.ip
http-proxy-port = port-number
http-proxy-username = your-user-name
http-proxy-password = your-password
http-proxy-exceptions = comma-seperated-list-of-internal-subversion-hosts
Have fun.

Label Cloud