<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.12-alpha" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Ilya's blog</title>
	<link>http://ilya-sher.org/blog</link>
	<description>A13F3BBB1F25347775112B56DBC19072</description>
	<pubDate>Sat, 24 Oct 2009 08:55:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.12-alpha</generator>
	<language>en</language>
			<item>
		<title>Do not click here</title>
		<link>http://ilya-sher.org/blog/post/do-not-click-here/</link>
		<comments>http://ilya-sher.org/blog/post/do-not-click-here/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 18:39:44 +0000</pubDate>
		<dc:creator>Ilya Sher</dc:creator>
		
		<category>WWW</category>

		<guid isPermaLink="false">https://sshoverpci.com/blog/post/do-not-click-here/</guid>
		<description><![CDATA[Most of the sites use &#34;click here for/to &#8230;&#34; wording. That implies that: 

The user is too stupid to see it is a link (alternatively the webmaster made it impossible to see it is a link)
The user has and uses a mouse
The document is not going to be printed (it will look stupid then)
The webmaster [...]]]></description>
			<content:encoded><![CDATA[<p>Most of the sites use &quot;click here for/to &#8230;&quot; wording. That implies that: </p>
<ul>
<li>The user is too stupid to see it is a link (alternatively the webmaster made it impossible to see it is a link)</li>
<li>The user has and uses a mouse</li>
<li>The document is not going to be printed (it will look stupid then)</li>
<li>The webmaster has no imagination</li>
<li>The webmaster does not care how the site will be indexed by search engines</li>
</ul>
<p>See <a href="http://www.w3.org/TR/WAI-WEBCONTENT/#gl-facilitate-navigation">Web Content Accessibility Guidelines 1.0</a>.
</p>
]]></content:encoded>
			<wfw:commentRss>http://ilya-sher.org/blog/post/do-not-click-here/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Editing YAML with VI</title>
		<link>http://ilya-sher.org/blog/post/editing-yaml-with-vi/</link>
		<comments>http://ilya-sher.org/blog/post/editing-yaml-with-vi/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 16:30:45 +0000</pubDate>
		<dc:creator>Ilya Sher</dc:creator>
		
		<category>Programming</category>

		<category>System administration</category>

		<guid isPermaLink="false">https://sshoverpci.com/blog/post/editing-yaml-with-vi/</guid>
		<description><![CDATA[Put the following in your .vimrc file and you are set:

au BufNewFile,BufRead *.yaml,*.yml set et ts=2 sw=2

When you will be editing YAML files, you&#8217;ll automatically have the following behaviour:

et - expand tabs - puts spaces whenever you use tabs
ts=2 - tab stop - 2 spaces per tab
sw=2 - shift width - 2 spaces to move [...]]]></description>
			<content:encoded><![CDATA[<p>Put the following in your .vimrc file and you are set:<br />
<code><br />
au BufNewFile,BufRead *.yaml,*.yml set et ts=2 sw=2<br />
</code><br />
When you will be editing YAML files, you&#8217;ll automatically have the following behaviour:</p>
<ul>
<li><strong>et</strong> - expand tabs - puts spaces whenever you use tabs</li>
<li><strong>ts=2</strong> - tab stop - 2 spaces per tab</li>
<li><strong>sw=2</strong> - shift width - 2 spaces to move with &lt; and &gt; commands</li>
</ul>
<p><img id="image18" src="http://ilya-sher.org/blog/wp-content/uploads/2009/10/yaml-in-vi.png" alt="YAML in VI" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ilya-sher.org/blog/post/editing-yaml-with-vi/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Debian kernel upgrade to 2.6.30</title>
		<link>http://ilya-sher.org/blog/post/debian-kernel-2-6-30/</link>
		<comments>http://ilya-sher.org/blog/post/debian-kernel-2-6-30/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 10:55:46 +0000</pubDate>
		<dc:creator>Ilya Sher</dc:creator>
		
		<category>System administration</category>

		<guid isPermaLink="false">https://sshoverpci.com/blog/post/debian-kernel-2-6-30/</guid>
		<description><![CDATA[Debian testing just got kenrel 2.6.30. The previous version was 2.6.26.
I will summarize here the new features for the upgrade but only the ones I will find interesting.
2.6.30

POHMELFS - kernel client for the developed distributed parallel internet filesystem
DST - network block device storage
LZMA/BZIP2 kernel image compression. The kernel size is about 10 per cent smaller [...]]]></description>
			<content:encoded><![CDATA[<p>Debian testing just got kenrel 2.6.30. The previous version was 2.6.26.<br />
I will summarize here the new features for the upgrade but only the ones I will find interesting.</p>
<h3>2.6.30</h3>
<ul>
<li><a href="http://www.ioremap.net/projects/pohmelfs">POHMELFS</a> - kernel client for the developed distributed parallel internet filesystem</li>
<li><a href="http://www.ioremap.net/projects/dst">DST</a> - network block device storage</li>
<li>LZMA/BZIP2 kernel image compression. The kernel size is about 10 per cent smaller with bzip2 in comparison to gzip, and about 33 per cent smaller with lzma. </li>
<li>SR-IOV support - PCI virtualization helper</li>
<li>Networking: Allowing more than 64k connections and heavily optimize bind(0) time.</li>
<li>Virtualization: virtio_net: Allow setting the MAC address of the NIC</li>
<li>Many <a href="http://kernelnewbies.org/Linux_2_6_30#head-30ee93a5d5589d30a19cbd6105dc630d530633fa">Bluetooth improvements</a></li>
</ul>
<h3>2.6.29</h3>
<ul>
<li>WiMAX (Intel Wireless WiMAX/Wi-Fi Link 5&#215;50 USB/SDIO devices)</li>
<li>Filesystem freeze (<a href="http://lwn.net/Articles/287435/">LWN has very technical article about this</a>)</li>
<li>Support for multiple instances of devpts</li>
<li>MD: Allow md devices to be created by name, make devices disappear when they are no longer needed</li>
<li>Xen: add xenfs to allow usermode and Xen interaction</li>
<li>USB: storage: recognizing and enabling Nokia 5200 cell phones</li>
<li>Bluetooth: Add suspend/resume support to btusb driver</li>
</ul>
<h3>2.6.28</h3>
<ul>
<li>Memory management Scalability improvements (<a href="http://lwn.net/Articles/286472/">technical details on LWN</a>)</li>
<li>NFS: authenticated deep mounting</li>
<li>Port redirection support for TCP</li>
<li>gre: Add Transparent Ethernet Bridging</li>
<li>Support discard requests on SSD devices to improve wear-leveling</li>
<li>Add generic ATA/ATAPI disk driver</li>
</ul>
<h3>2.6.27</h3>
<ul>
<li><a href="http://lwn.net/Articles/289137/">Multiqueue networking</a></li>
<li>ftrace, sysprof support - another tracing mechanism for kernel (not related to SystemTap)</li>
<li>Improved video camera support with the gspca driver. (<a href="http://lwn.net/Articles/291036/">List of devices is at LWN</a>)</li>
<li>Add HTC Shift Touchscreen Driver</li>
<li>Bluetooth: Track status of Simple Pairing mode and remote Simple Pairing mode</li>
<li>HP iLO driver</li>
</ul>
<h3>The sources (full lists of changes):</h3>
<ol>
<li><a href="http://kernelnewbies.org/Linux_2_6_30">http://kernelnewbies.org/Linux_2_6_30</a></li>
<li><a href="http://kernelnewbies.org/Linux_2_6_29">http://kernelnewbies.org/Linux_2_6_29</a></li>
<li><a href="http://kernelnewbies.org/Linux_2_6_28">http://kernelnewbies.org/Linux_2_6_28</a></li>
<li><a href="http://kernelnewbies.org/Linux_2_6_27">http://kernelnewbies.org/Linux_2_6_27</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ilya-sher.org/blog/post/debian-kernel-2-6-30/feed/</wfw:commentRss>
		</item>
		<item>
		<title>clive GUI</title>
		<link>http://ilya-sher.org/blog/post/clive-gui/</link>
		<comments>http://ilya-sher.org/blog/post/clive-gui/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 01:11:56 +0000</pubDate>
		<dc:creator>Ilya Sher</dc:creator>
		
		<category>Code</category>

		<guid isPermaLink="false">https://sshoverpci.com/blog/post/clive-gui/</guid>
		<description><![CDATA[Hi.
Some time ago I started using clive. It was very frustrating without a GUI, which I could not find. Here is my hack, &#8220;clive gui&#8221;, that I thought I was not going to publish. It was only tested on my system.
Use at your own risk!

]]></description>
			<content:encoded><![CDATA[<p>Hi.</p>
<p>Some time ago I started using <a href="http://code.google.com/p/clive/">clive</a>. It was very frustrating without a GUI, which I could not find. <a href="http://ilya-sher.org/src/dl.py">Here is my hack, &#8220;clive gui&#8221;</a>, that I thought I was not going to publish. It was only tested on my system.</p>
<p>Use at your own risk!
</p>
]]></content:encoded>
			<wfw:commentRss>http://ilya-sher.org/blog/post/clive-gui/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Web programmers should know</title>
		<link>http://ilya-sher.org/blog/post/web-programmers-should-know/</link>
		<comments>http://ilya-sher.org/blog/post/web-programmers-should-know/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 07:42:39 +0000</pubDate>
		<dc:creator>Ilya Sher</dc:creator>
		
		<category>Programming</category>

		<guid isPermaLink="false">https://sshoverpci.com/blog/post/web-programmers-should-know/</guid>
		<description><![CDATA[Here is a checklist of knowledge and abilities which I consider a must for a good web programmer.

HTML, w3.org standards and validator
AJAX
SQL: multiple column indexes, transactions
The following programming languages exist: PHP, Python, Ruby.
Program in at least one of the languages above
Program in C at least a bit
What is JVM and bytecode
What is SQL injection and [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a checklist of knowledge and abilities which I consider a must for a <em>good</em> web programmer.</p>
<ul>
<li>HTML, w3.org standards and validator</li>
<li>AJAX</li>
<li>SQL: multiple column indexes, transactions</li>
<li>The following programming languages exist: PHP, Python, Ruby.</li>
<li>Program in at least one of the languages above</li>
<li>Program in C at least a bit</li>
<li>What is <a href="http://en.wikipedia.org/wiki/Java_Virtual_Machine">JVM</a> and <a href="http://en.wikipedia.org/wiki/Bytecode">bytecode</a></li>
<li>What is SQL injection and how to prevent it</li>
<li>How <a href="http://en.wikipedia.org/wiki/Domain_Name_System">DNS</a> works, at least in general - what server and clients do</li>
<li>How routing works, at least in general. <a href="http://en.wikipedia.org/wiki/Tunneling_protocol">Tunneling</a>. <a href="http://en.wikipedia.org/wiki/Network_address_translation">NAT</a>. <a href="http://en.wikipedia.org/wiki/Border_Gateway_Protocol">BGP</a> is a plus</li>
<li><a href="http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol">HTTP</a> and <a href="http://en.wikipedia.org/wiki/HTTPS">HTTPS</a></li>
<li><a href="http://en.wikipedia.org/wiki/Load_balancing_(computing)">Load balancing</a> and it&#8217;s session persistence problem and how it&#8217;s usually solved</li>
<li>HTTP <a href="http://en.wikipedia.org/wiki/Proxy_server">proxy</a>, what it solves and how it works</li>
<li>What&#8217;s <a href="http://en.wikipedia.org/wiki/File_Transfer_Protocol">FTP</a></li>
<li>What&#8217;s <a href="http://en.wikipedia.org/wiki/Revision_control">version control</a> and what it solves</li>
<li>How <a href="http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol">SMTP</a> works, at least in general. POP3 and IMAP a plus</li>
<li>What&#8217;s character encoding and why UTF-8 rules</li>
</ul>
<p>If it&#8217;s someone expected to work with Linux the following applies:</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Secure_Shell">SSH</a></li>
<li><a href="http://en.wikipedia.org/wiki/Shell_script">Shell scripting</a>: bash, grep, sed, awk, find, netstat &#8230;</li>
<li>File-system permissions</li>
</ul>
<p>I&#8217;ll be adding to the list as soon as I remember anything important enough.<br />
Suggestions for additional points are welcome.
</p>
]]></content:encoded>
			<wfw:commentRss>http://ilya-sher.org/blog/post/web-programmers-should-know/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What’s wrong with the Internet - SMTP</title>
		<link>http://ilya-sher.org/blog/post/inet-wrong-smtp/</link>
		<comments>http://ilya-sher.org/blog/post/inet-wrong-smtp/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 00:16:55 +0000</pubDate>
		<dc:creator>Ilya Sher</dc:creator>
		
		<category>Programming</category>

		<category>System administration</category>

		<guid isPermaLink="false">https://sshoverpci.com/blog/post/inet-wrong-smtp/</guid>
		<description><![CDATA[SMTP is a text based protocol. I already mentioned that text protocols are evil. It was phrased more nicely in previous posts. Well it can no more be phrased nice. This is stupid! In SMTP it means that binary attachments are encoded using base64 which is part of MIME. Any binary attachment (image, presentation, document, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol">SMTP</a> is a text based protocol. I already mentioned that text protocols are evil. It was phrased more nicely in previous posts. Well it can no more be phrased nice. This is stupid! In SMTP it means that binary attachments are encoded using <a href="http://en.wikipedia.org/wiki/Base64">base64</a> which is part of <a href="http://en.wikipedia.org/wiki/MIME">MIME</a>. Any binary attachment (image, presentation, document, &#8230;) you&#8217;ve ever sent takes more space in the email. That means it&#8217;s slower to send, slower to receive, and wastes more space on the server. The space some people still pay for. I have to remind the reader that such encoding requires additional CPU cycles to handle which in turn increases electricity bills&#8217; totals.</p>
<p>And the additional bonus: ever heard &#8220;I have 10M email box but I can&#8217;t get an email with 8M attachment from my friend. What&#8217;s the problem?&#8221;. The correct answer would be the stupidity. Wasted tech support time. They have to explain that 8M attachment can not fit in 10M email box. Try sometime to explain this to someone. Have fun. Extra bonus: Someone pays for this tech support wasted time. Exercise for the reader: figure out who&#8217;s paying.
</p>
]]></content:encoded>
			<wfw:commentRss>http://ilya-sher.org/blog/post/inet-wrong-smtp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What’s wrong with the Internet - FTP</title>
		<link>http://ilya-sher.org/blog/post/inet-wrong-ftp/</link>
		<comments>http://ilya-sher.org/blog/post/inet-wrong-ftp/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 23:53:59 +0000</pubDate>
		<dc:creator>Ilya Sher</dc:creator>
		
		<category>System administration</category>

		<guid isPermaLink="false">https://sshoverpci.com/blog/post/inet-wrong-ftp/</guid>
		<description><![CDATA[If I had the powers, I would make it unlawful to use FTP. One of the troublesome protocols. Let alone it&#8217;s text based, the semantics are totally screwed. Active and passive mode. Yeah, that totally solves all the problems, right. Especially the 2 sockets (network connections) for file transfer. Is it intentionally so f*cked up [...]]]></description>
			<content:encoded><![CDATA[<p>If I had the powers, I would make it unlawful to use <a href="http://en.wikipedia.org/wiki/File_Transfer_Protocol">FTP</a>. One of the troublesome protocols. Let alone it&#8217;s text based, the semantics are totally screwed. Active and passive mode. Yeah, that totally solves all the problems, right. Especially the 2 sockets (network connections) for file transfer. Is it intentionally so f*cked up to make firewall software much harder to get right? In short, it&#8217;s broken. Don&#8217;t use it. Let it die slowly.</p>
<p>Use <a href="http://en.wikipedia.org/wiki/SSH_file_transfer_protocol">SFTP</a> wherever you can. If you are a system administrator, make the world a favour: never enable FTP on your servers.</p>
]]></content:encoded>
			<wfw:commentRss>http://ilya-sher.org/blog/post/inet-wrong-ftp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What&#8217;s wrong with the Internet - HTTP</title>
		<link>http://ilya-sher.org/blog/post/inet-wrong-http/</link>
		<comments>http://ilya-sher.org/blog/post/inet-wrong-http/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 07:06:02 +0000</pubDate>
		<dc:creator>Ilya Sher</dc:creator>
		
		<category>Programming</category>

		<category>System administration</category>

		<guid isPermaLink="false">https://sshoverpci.com/blog/2009/06/26/inet-wrong-http/</guid>
		<description><![CDATA[Why in the world would one want to use text-based protocol? Really. WTF Dudes?
Yes, you can telnet a server on port 80 and debug&#8230; maybe. That&#8217;s about it.
Wikipedia says: &#8220;Binary protocols have the advantage of terseness, which translates into speed of transmission and interpretation&#8221;.
Lower costs would be caused by: less electricity used, cheaper hardware at [...]]]></description>
			<content:encoded><![CDATA[<p>Why in the world would one want to use text-based protocol? Really. WTF Dudes?<br />
Yes, you can telnet a server on port 80 and debug&#8230; maybe. That&#8217;s about it.<br />
Wikipedia says: &#8220;Binary protocols have the advantage of terseness, which translates into speed of transmission and interpretation&#8221;.<br />
Lower costs would be caused by: less electricity used, cheaper hardware at the ends and along the way, less bandwidth.</p>
<p>I would also expect programs to be written in better ways just because of handling a binary protocol. A special library would always be used (I hope). There would probably be less stupid Perl scripts each implementing their own parsing of the query string, HTTP headers, and MIME POST body instead of using existing libraries. It would be much harder. There wouldn&#8217;t be less stupid people though&#8230; I mean that the same people that wrote those scripts would write some other stupid scripts.</p>
<p>HTTP does not support two-way communication in the way required for current internet applications. Wake up! Internet is mostly about applications these days and much less about documents.</p>
<p>Unfortunately I guess we are stuck because of the costs of upgrading to something better. I predict that we will continue to see increasing number of clever hacks to overcome the limitations of this pre-historic protocol.
</p>
]]></content:encoded>
			<wfw:commentRss>http://ilya-sher.org/blog/post/inet-wrong-http/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What&#8217;s wrong with UNIX - configuration</title>
		<link>http://ilya-sher.org/blog/post/unix-wrong-conf/</link>
		<comments>http://ilya-sher.org/blog/post/unix-wrong-conf/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 06:24:44 +0000</pubDate>
		<dc:creator>Ilya Sher</dc:creator>
		
		<category>System administration</category>

		<guid isPermaLink="false">https://sshoverpci.com/blog/2009/06/26/whats-wrong-with-unix/</guid>
		<description><![CDATA[All the programs use their own configuration files. The bad part is that the files have different syntax. This is stupid. Let&#8217;s assume one favored multiple files, one or several per application. I&#8217;m neutral about this. This could be OK if only they had the same syntax. I would expect one library to be used [...]]]></description>
			<content:encoded><![CDATA[<p>All the programs use their own configuration files. The bad part is that the files have different syntax. This is stupid. Let&#8217;s assume one favored multiple files, one or several per application. I&#8217;m neutral about this. This could be OK if only they had the same syntax. I would expect one library to be used across all applications to read and write the configurations.</p>
<p>If I understand correctly, Gnome is trying to solve this by using a library. But looking at <code>~/.gconf/apps</code> I saw big FAIL: it&#8217;s XML based.<br />
One could argue about the XML but I&#8217;m all anti-XML. You could search the internet for &#8220;XML sucks&#8221; about that. Maybe I&#8217;ll post about that later.<br />
Anyhow the fact that Gnome is doing it differently and not &#8220;The UNIX way&#8221; just highlights the problem.</p>
<p>Looking at the one-big-stupid-file-to-rule-them-all solution also known as Registry makes it clear that this implementation is plain and simple a failure. So it&#8217;s probably not it. Not the way it was implemented anyway.</p>
<p>Just to make clear, I&#8217;m not sure what the correct solution is. I just know the solutions I&#8217;m aware of suck.</p>
]]></content:encoded>
			<wfw:commentRss>http://ilya-sher.org/blog/post/unix-wrong-conf/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ADSL on Debian</title>
		<link>http://ilya-sher.org/blog/post/adsl-on-debian/</link>
		<comments>http://ilya-sher.org/blog/post/adsl-on-debian/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 23:37:00 +0000</pubDate>
		<dc:creator>Ilya Sher</dc:creator>
		
		<category>System administration</category>

		<guid isPermaLink="false">https://sshoverpci.com/blog/2009/06/25/adsl-on-debian/</guid>
		<description><![CDATA[Hi.
Tired of lengthy manuals about ADSL setup, here is a copy+paste (with a bit of editing) from an email I&#8217;ve sent once (year 2005).

apt-get install ppp pppoe

### summary of changes ###
file /etc/ppp/options:
    change &#8220;auth&#8221; to &#8220;noauth&#8221;
    add &#8220;plugin /usr/lib/pppd/2.4.3/rp-pppoe.so&#8221;
file /etc/ppp/pap-secrets:
    &#8220;MYUSER@MYPROVIDER&#8221; * &#8220;MYPASSWORD&#8221; *
file /etc/ppp/peers/dsl-provider:
  [...]]]></description>
			<content:encoded><![CDATA[<p>Hi.</p>
<p>Tired of lengthy manuals about ADSL setup, here is a copy+paste (with a bit of editing) from an email I&#8217;ve sent once (year 2005).</p>
<pre>
apt-get install ppp pppoe

### summary of changes ###
file <strong>/etc/ppp/options</strong>:
    change &#8220;auth&#8221; to &#8220;noauth&#8221;
    add &#8220;plugin /usr/lib/pppd/2.4.3/rp-pppoe.so&#8221;
file <strong>/etc/ppp/pap-secrets</strong>:
    &#8220;MYUSER@MYPROVIDER&#8221; * &#8220;MYPASSWORD&#8221; *
file <strong>/etc/ppp/peers/dsl-provider</strong>:
    &#8220;user&#8221; -> &#8220;MYUSER@MYPROVIDER&#8221;
    on line with &#8220;pty&#8221; - change eth0 to correct interface
        (eth1 in my case, but should usually be eth0)

manual start:
    pppd call dsl-provider
auto start:
    file <strong>/etc/network/interfaces</strong>:
        ###
        auto ppp0
        iface ppp0 inet ppp
            provider dsl-provider
        ###
### end of changes ###
</pre>
<p>Use at your own risk.<br />
Hope that helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://ilya-sher.org/blog/post/adsl-on-debian/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
