<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
 "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
<channel>
	<title>Eblog...</title>	
	<link>http://emresaglam.com/blog</link>
	<description>My Blog about my life and my thoughts...</description>
	<language>en-us</language>
	<item>
	<title>Weird Java Time problem</title>
	<link>http://emresaglam.com/blog/310</link>
	<pubDate>Fri, 11 Apr 2008 17:36:39 -0500</pubDate>
	<description>
&lt;p&gt;
I guess Java has a problem with /etc/localtime in Ubuntu.
&lt;/p&gt;
&lt;p&gt;
Unless the /etc/localtime file is a symlink, Java doesn't want to read it. Check out &lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/49068/comments/13&quot;&gt;this bug report&lt;/a&gt;.&amp;nbsp;
&lt;/p&gt;
</description>
	</item>

	<item>
	<title>Lotus Notes Sametime with Pidgin (or gaim)</title>
	<link>http://emresaglam.com/blog/309</link>
	<pubDate>Wed, 02 Apr 2008 09:43:43 -0500</pubDate>
	<description>
&lt;p&gt;
If you are one of those who use Sametime under Linux with &lt;a href=&quot;http://meanwhile.sourceforge.net/&quot;&gt;Meanwhile protocol&lt;/a&gt;, and since your Lotus Notes guys upgraded to the 7.X version of Lotus Notes, you probably are having hard time using the meanwhile protocol, because it wouldn't show user status correctly. (Check out the discussion on &lt;a href=&quot;http://developer.pidgin.im/ticket/58&quot;&gt;pidgin ticket #58&lt;/a&gt;)&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;http://developer.pidgin.im/ticket/58#comment:33&quot; title=&quot;Same ticket 58&quot;&gt;There is a fix for pidgin under Windows&lt;/a&gt;. (and for Adium for Mac OS X) But for the longest time there was no fix for Linux users because the Meanwhile protocol development stopped (or extremely slowed down) since 2006. 
&lt;/p&gt;
&lt;p&gt;
Fortunately, the developer of meanwhile, taliesein, decided to patch the protocol library to fix this issue. (But an official version is not released yet...) The patch is in the &lt;a href=&quot;http://meanwhile.cvs.sourceforge.net/meanwhile/meanwhile/src/?pathrev=meanwhile_v1_1_0&quot;&gt;1.1.0 branch of the CVS&lt;/a&gt;. Here is what I did to patch my meanwhile protocol until an official version is released.
&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Download the 1.0.2 version of libmeanwhile.
	&lt;/li&gt;
	&lt;li&gt;Also download the new versions of the files: cipher.c, mw_cipher.h,
	mw_st_list.h, common.c, mw_common.h, srvc_conf.c from the &lt;a href=&quot;http://meanwhile.cvs.sourceforge.net/meanwhile/meanwhile/src/?pathrev=meanwhile_v1_1_0&quot;&gt;&lt;span class=&quot;icon&quot;&gt;1.1.0 CVS branch&lt;/span&gt;&lt;/a&gt;: 
	&lt;/li&gt;
	&lt;li&gt;
	Replace the same files under src/
	&lt;/li&gt;
	&lt;li&gt;Then: ./configure; make 
	&lt;/li&gt;
	&lt;li&gt;
	The library ends up in the directory src/.libs/ all you have to do is now
	to copy that library to the original location. (/usr/lib under ubuntu)
	(libmeanwhile.so.1.0.2)
	&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Quick and dirty, not the most elegant solution, but until an &quot;official&quot; version is out, that's the best I can do &lt;img src=&quot;/blog/images/smiley/wink.gif&quot; align=&quot;top&quot; Alt=&quot;; )&quot;&gt;
&lt;/p&gt;
&lt;p&gt;
Happy Sametime :P&amp;nbsp;
&lt;/p&gt;
</description>
	</item>

	<item>
	<title>Earth Hour on 2008</title>
	<link>http://emresaglam.com/blog/308</link>
	<pubDate>Sat, 29 Mar 2008 13:33:17 -0500</pubDate>
	<description>
&lt;p&gt;
I will be turning off my lights on the March 29th 2008 for one hour at 7:30 pm. Please join me, and many others on this symbolic event to create awareness for global warming. Try to spread the news in your community.
&lt;/p&gt;
&lt;p&gt;
Here &lt;a href=&quot;http://www.earthhour.org/about&quot; title=&quot;Earth Hour 2008&quot;&gt;is a video about EARTH HOUR 2008&lt;/a&gt;. Let's help Sydney, Australia to make Earth Hour a global event.
&lt;/p&gt;
</description>
	</item>

	<item>
	<title>python and resolving ips from a csv file.</title>
	<link>http://emresaglam.com/blog/307</link>
	<pubDate>Thu, 20 Mar 2008 15:48:12 -0500</pubDate>
	<description>
&lt;p&gt;
Problem: I have a CSV file where I have source and destination IPs. I want to resolve only destination IPs. 
&lt;/p&gt;
&lt;p&gt;
Format of my CSV file: (let's call it test.csv) (it's tab separated...)
&lt;/p&gt;
&lt;p&gt;
&lt;!-- 
BODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:&quot;Arial&quot;; font-size:x-small }
--&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td align=&quot;left&quot;&gt;99.88.77.66&lt;br /&gt;
			&lt;/td&gt;
			&lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11.22.33.44&lt;br /&gt;
			&lt;/td&gt;
			&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 118340.86&lt;/td&gt;
			&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 187&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;/p&gt;
&lt;p&gt;
The solution is pretty simple with python:
&lt;/p&gt;
&lt;blockquote&gt;
	#!/usr/bin/env python&lt;br /&gt;
	import csv&lt;br /&gt;
	import socket&lt;br /&gt;
	&lt;br /&gt;
	reader = csv.reader(open(&quot;./test.csv&quot;, &quot;rb&quot;), delimiter=&quot;\t&quot;)&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in reader:&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; host, aliases, ips = socket.gethostbyaddr(row[1])&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; print row[0] + &quot;\t&quot; + host + &quot;\t&quot; + row[2] + &quot;\t&quot; + row[3]&lt;br /&gt;
&lt;/blockquote&gt;
&lt;p&gt;
First we import the necessary libs. (socket and csv)
&lt;/p&gt;
&lt;p&gt;
Then we open the file to read with as a csv  object. (Careful because our delimiter is not comma, but TAB)&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
for each row we get the second row (row[1]), convert it to host, alias and ip by gethostbyaddr method.
&lt;/p&gt;
&lt;p&gt;
The last line is to create the new tab separated format. (Just pipe it to a file and you have your new CSV file. [tab separated... but oh well..]) 
&lt;/p&gt;
&lt;p&gt;
Done! 
&lt;/p&gt;
</description>
	</item>

	<item>
	<title>RIP Arthur C Clarke</title>
	<link>http://emresaglam.com/blog/306</link>
	<pubDate>Tue, 18 Mar 2008 22:09:53 -0500</pubDate>
	<description>
&lt;p&gt;
Rest in Peace &lt;a href=&quot;http://en.wikipedia.org/wiki/Arthur_C._Clarke&quot;&gt;Sir Arthur C. Clarke&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Today Sir Arthur C Clarke passed away at the age of 90 at Sri Lanka... 
&lt;/p&gt;
</description>
	</item>

	<item>
	<title>24 inch iMac</title>
	<link>http://emresaglam.com/blog/305</link>
	<pubDate>Mon, 17 Mar 2008 00:23:09 -0500</pubDate>
	<description>
&lt;p&gt;
I pulled the trigger on &lt;a href=&quot;images/Image/product-24in.jpg&quot;&gt;this 24 inch iMac&lt;/a&gt;. So far so good. I was expecting harsh battles with Leopard... But it looks like things are going very good so far. After some 8 hours of usage, I'm still happy with OS X.
&lt;/p&gt;
&lt;p&gt;
I have some projects in the future. But first i need to get used to &quot;&amp;uuml;ber user friendly&quot; interface...
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
</description>
	</item>

	<item>
	<title>Happy pi day!</title>
	<link>http://emresaglam.com/blog/304</link>
	<pubDate>Fri, 14 Mar 2008 12:46:41 -0500</pubDate>
	<description>
Happy pi day everyone. And happy birthday Einstein!&lt;br /&gt;
</description>
	</item>

	<item>
	<title>Simple merging two files with paste command</title>
	<link>http://emresaglam.com/blog/303</link>
	<pubDate>Wed, 13 Feb 2008 11:54:45 -0500</pubDate>
	<description>
&lt;p&gt;
Today I learned something new! 
&lt;/p&gt;
&lt;p&gt;
I had two files one with a list of domain names, the other with corresponding IPs. I needed to merge these two files to display domain names next to their corresponding IPs.
&lt;/p&gt;
&lt;p&gt;
It looks like it's the simplest task with the command &lt;a href=&quot;http://linux.die.net/man/1/paste&quot;&gt;paste&lt;/a&gt;.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
All I had to do is: &lt;em&gt;paste /tmp/domain_names /tmp/IPs&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
Thanks Igor for the tip &lt;img src=&quot;/blog/images/smiley/wink.gif&quot; align=&quot;top&quot; Alt=&quot;; )&quot;&gt;&amp;nbsp;
&lt;/p&gt;
</description>
	</item>

	<item>
	<title>Security vs Privacy.</title>
	<link>http://emresaglam.com/blog/302</link>
	<pubDate>Tue, 29 Jan 2008 10:50:43 -0500</pubDate>
	<description>
&lt;p&gt;
Here is a great explanation of Security vs Privacy. (I had to copy this image to my blog since I didn't want it to disappear in the future)
&lt;/p&gt;
&lt;p&gt;
&lt;img class=&quot;withBorder&quot; src=&quot;images/Image/security_fence.jpg&quot; border=&quot;0&quot; alt=&quot;Security and Privacy...&quot; title=&quot;Security and Privacy...&quot; width=&quot;423&quot; height=&quot;300&quot; /&gt;&amp;nbsp;
&lt;/p&gt;
</description>
	</item>

	<item>
	<title>ssh delays on trixbox</title>
	<link>http://emresaglam.com/blog/301</link>
	<pubDate>Sun, 06 Jan 2008 23:56:09 -0500</pubDate>
	<description>
&lt;p&gt;
I had some ssh problems on my trixbox installations. Each time I try to connect to the trixbox using ssh I had some delay. The classical solution for this is to disable the reverse DNS lookups by changing the line in /etc/ssh/sshd_config to:
&lt;/p&gt;
&lt;p&gt;
UseDNS no
&lt;/p&gt;
&lt;p&gt;
But in this case, this didn't solve my problem. I ran my connection wth verbosity. 
&lt;/p&gt;
&lt;p&gt;
ssh -vvv some.host.com 
&lt;/p&gt;
&lt;p&gt;
I had a delay in this step:
&lt;/p&gt;
&lt;p&gt;
debug1: Next authentication method: gssapi-with-mic&lt;br /&gt;
debug1: Unspecified GSS failure.&amp;nbsp; Minor code may provide more information&lt;br /&gt;
No credentials cache found&lt;br /&gt;
debug1: Unspecified GSS failure.&amp;nbsp; Minor code may provide more information&lt;br /&gt;
No credentials cache found&lt;br /&gt;
debug1: Unspecified GSS failure.&amp;nbsp; Minor code may provide more information&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
AFAIK, this is related to openssh kerberos authentication. This is something that I really really don't need. So I disabled in /etc/ssh/sshd_config the lines:
&lt;/p&gt;
&lt;p&gt;
# GSSAPI options&lt;br /&gt;
#GSSAPIAuthentication no&lt;br /&gt;
#GSSAPIAuthentication yes&lt;br /&gt;
#GSSAPICleanupCredentials yes&lt;br /&gt;
#GSSAPICleanupCredentials yes&lt;br /&gt;
&lt;br /&gt;
After the restart, there was no delay. &lt;img src=&quot;/blog/images/smiley/wink.gif&quot; align=&quot;top&quot; Alt=&quot;; )&quot;&gt; Even with the &quot;UseDNS yes&quot;.&amp;nbsp;
&lt;/p&gt;
</description>
	</item>

	<item>
	<title>This is my birthday Pearls Before Swine.</title>
	<link>http://emresaglam.com/blog/300</link>
	<pubDate>Fri, 30 Nov 2007 10:43:56 -0500</pubDate>
	<description>
&lt;p&gt;
&lt;img src=&quot;images/Image/pearl_bday.gif&quot; border=&quot;0&quot; width=&quot;600&quot; height=&quot;204&quot; /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
Stop drawing me as Andy th dog! &lt;img src=&quot;/blog/images/smiley/giggle.gif&quot; align=&quot;top&quot; alt=&quot;: D&quot;&gt; This was on my birthday damn it! &lt;img src=&quot;/blog/images/smiley/giggle.gif&quot; align=&quot;top&quot; alt=&quot;: D&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
</description>
	</item>

	<item>
	<title>Pastis draw me again!</title>
	<link>http://emresaglam.com/blog/299</link>
	<pubDate>Mon, 26 Nov 2007 12:35:12 -0500</pubDate>
	<description>
&lt;p&gt;
It's me: Andy the dog... &lt;img src=&quot;images/smiley/frown.gif&quot; border=&quot;0&quot; alt=&quot;: \&quot; align=&quot;top&quot; /&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;img src=&quot;http://www.comics.com/comics/pearls/archive/images/pearls2666700071126.gif&quot; border=&quot;0&quot; alt=&quot;Me... Andy the dog...&quot; title=&quot;Me... Andy the dog...&quot; width=&quot;600&quot; height=&quot;207&quot; /&gt;&amp;nbsp;
&lt;/p&gt;
</description>
	</item>

	<item>
	<title>Please give one laptop.</title>
	<link>http://emresaglam.com/blog/298</link>
	<pubDate>Tue, 20 Nov 2007 15:41:34 -0500</pubDate>
	<description>
&lt;p&gt;
&lt;img src=&quot;images/Image/home-laptop.jpg&quot; border=&quot;0&quot; hspace=&quot;5&quot; vspace=&quot;5&quot; align=&quot;left&quot; /&gt;&lt;a href=&quot;http://laptop.org/&quot; title=&quot;Laptop.org&quot;&gt;One Laptop Per Child (OLPC)&lt;/a&gt; is a project that I've been eyeballing for some time now. The concept is very powerful. Provide a laptop to help the developing countries' children. Give them a tool to discover.
&lt;/p&gt;
&lt;p&gt;
First I was skeptical about this. I would say, first lets feed them and then give them a laptop. But then my thoughts changed a bit. When you think about the greatest programmers, computer geniuses of this century, all of them had something in common. They had a computer. 
&lt;/p&gt;
&lt;p&gt;
Now let's think about how many children in this world have access to computer, and how many don't. To give us an idea, in the least developed countries the number of people who has internet access is 11 per 1000 person. roughly 1%. (&lt;a href=&quot;http://www.worldbank.org/data/&quot; title=&quot;World Bank Data&quot;&gt;WB/UN data&lt;/a&gt;) Out of that many who never had a computer, maybe one will use this computer and after X years, (s)he'll develop an algorithm to make extensive data mining for health projects run twice faster. Maybe another one will develop an idea that will help his/her society... This laptop could be their first step. Technology is an enabler, even if we this is a shot in dark, we need to start somewhere.
&lt;/p&gt;
&lt;p&gt;
This what you can do in the next 7 days. The laptop costs ~$200. You can buy one for your child and pay roughly $400.00 and a second laptop heads to a child in a developing country. It's called &lt;a href=&quot;http://www.laptopgiving.org/en/give-one-get-one.php&quot; target=&quot;_blank&quot; title=&quot;Give one Get one.&quot;&gt;Give one Get one&lt;/a&gt;. Give one Get one campaign ends on November 26th. For US citizens and tax payers this campaign is tax deductible.
&lt;/p&gt;
&lt;p&gt;
You can get more information about this laptop built for learning and designed specifically&amp;nbsp; the children in mind by visiting their &lt;a href=&quot;http://laptop.org/en/vision/mission/faq.shtml&quot; target=&quot;_blank&quot;&gt;FAQ section&lt;/a&gt;, &lt;a href=&quot;http://laptop.org/en/vision/index.shtml&quot; target=&quot;_blank&quot;&gt;Vision&lt;/a&gt; and &lt;a href=&quot;http://laptop.org/en/vision/mission/index.shtml&quot; target=&quot;_blank&quot;&gt;Mission&lt;/a&gt; sections.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
You the security enthusiast, if you want to know how you can secure a ten year old kid's computer without using usernames, passwords, classic file permission structures, etc... please take a look at their &lt;a href=&quot;http://wiki.laptop.org/go/Bitfrost&quot; target=&quot;_blank&quot; title=&quot;Bitfrost&quot;&gt;Bitfrost Architecture&lt;/a&gt;. Very very good reading &lt;img src=&quot;/blog/images/smiley/wink.gif&quot; align=&quot;top&quot; Alt=&quot;; )&quot;&gt; &lt;br /&gt;
&lt;/p&gt;
</description>
	</item>

	<item>
	<title>Cellphone usage on airplanes.</title>
	<link>http://emresaglam.com/blog/297</link>
	<pubDate>Thu, 18 Oct 2007 15:28:28 -0500</pubDate>
	<description>
&lt;p&gt;
It looks like soon we will be able to use cellphones on airplane travels. (At least over Europe) &lt;a href=&quot;http://news.bbc.co.uk/2/hi/technology/7050576.stm&quot; title=&quot;BBC&quot;&gt;This article&lt;/a&gt; talks about new developments on regulations and technology. 
&lt;/p&gt;
&lt;p&gt;
Is there any place on earth where I can chill without a stupid person screaming his lungs out on a cellphone conversation around me?! The air travel has already became chaotic lately, and now I will have to deal with an idiot next to me talking all the flight... *sigh*&amp;nbsp;
&lt;/p&gt;
</description>
	</item>

	<item>
	<title>Ubuntu 7.10 (Gutsy Gibbon) is out!</title>
	<link>http://emresaglam.com/blog/296</link>
	<pubDate>Thu, 18 Oct 2007 07:39:05 -0500</pubDate>
	<description>
Go &lt;a href=&quot;http://www.ubuntu.com/getubuntu/download&quot; title=&quot;download!&quot;&gt;download&lt;/a&gt; or &lt;a href=&quot;http://www.ubuntu.com/getubuntu/upgrading&quot; title=&quot;upgrade&quot;&gt;upgrade&lt;/a&gt;! Los of new cool stuff in it! &lt;img src=&quot;/blog/images/smiley/wink.gif&quot; align=&quot;top&quot; Alt=&quot;; )&quot;&gt;&lt;br /&gt;
</description>
	</item>



</channel>
</rss>