<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aleks&#039; Domain &#187; Aleksandar Micovic</title>
	<atom:link href="http://metaleks.net/author/admin/feed" rel="self" type="application/rss+xml" />
	<link>http://metaleks.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 19 Apr 2010 20:33:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Elitism in IRC</title>
		<link>http://metaleks.net/internet/elitism-in-irc</link>
		<comments>http://metaleks.net/internet/elitism-in-irc#comments</comments>
		<pubDate>Thu, 11 Feb 2010 00:53:07 +0000</pubDate>
		<dc:creator>Aleksandar Micovic</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[asshole]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[VIM]]></category>

		<guid isPermaLink="false">http://metaleks.net/?p=768</guid>
		<description><![CDATA[After getting tired of VIM&#8217;s default syntax highlighting for Python, I set out to find a way to make it better. I ended up stumbling across this which sounded promising. Being a VIM user for the better part of three years, I have never actually installed any VIM scripts or anything like that. 
After searching [...]]]></description>
			<content:encoded><![CDATA[<p>After getting tired of VIM&#8217;s default syntax highlighting for Python, I set out to find a way to make it better. I ended up stumbling across <a href="http://www.vim.org/scripts/script.php?script_id=790">this</a> which sounded promising. Being a VIM user for the better part of three years, I have never actually installed any VIM scripts or anything like that. </p>
<p>After searching for a good 30 minutes on what should be a pretty simple solution, I decided to ask the good folks in #vim on FreeNode. I&#8217;m no stranger to IRC, so I know that if someone goes in asking a simple question that can be looked up in some manual somewhere, that someone is going to get burned pretty badly. I knew that my question was such a question, but I was different. I spent half an hour looking for a solution, trying instructions from dozens of different websites, the official instructions on the main page, and manual after manual. Surely, they would sympathize! </p>
<p>At the time, this was the set topic for the channel.</p>
<blockquote><p>Vim 7.2.356: http://vim.sf.net | Don&#8217;t ask to ask, just ask! &#8230;</p></blockquote>
<p>I&#8217;m going to stop talking now, and let the following excerpt do the talking for me. No changes have been made to the chat log. I&#8217;ve labelled <em class="blue">myself in blue</em>, and <em class="red">everyone else talking about me, or to me, in red</em>.</p>
<blockquote><p><strong class="blue">[metaleks]:</strong> <em class="blue">how do I install a .vim plugin (python.vim)? I&#8217;ve placed it in ~/.vim/plugin and in /usr/share/vim/vim72/plugin/, but nothing seems to be working.</em><br />
[Araxia]: hey, naquad. i wrote an auto tag completion function last night, if you&#8217;re interested in having a look. not super pretty, but functional: http://pastey.net/132688<br />
[naquad]: Araxia: hi!<br />
[skrite]: do tabs in vim 7 eliminate the need of buffers?  why use buffers (like with mini buff explorer) instead of tabs?<br />
<strong class="red">[arm]:</strong> <em class="red">metaleks: I think it should be in ftplugin&#8230;</em><br />
<strong class="red">[tpope]:</strong> <em class="red">python.vim does NOT sound like a plugin<br />
 it might be an ftplugin, might be a syntax file, might be an indenting algorithm</em><br />
<strong class="red">* spiiph bets there were installation instructions there somewhere.</strong><br />
[spiiph]: skrite, no<br />
 vimgor, tabs<br />
[vimgor]: Tabs are not buffers, don&#8217;t try to force them to act like buffers. Consider tabs like viewports, layouts, or workspaces. Trying to setup 1 tab == 1 buffer is an exercise in futility. Do &#8216;:set hidden&#8217; and get started. Get FuzzyFinder, LustyExplorer or BufExplorer to make getting around your buffers easier. See http://vim.wikia.com/wiki/Category:Tabs for more info.<br />
<strong class="red">[tpope]:</strong> <em class="red">I&#8217;m pretty sure the installation instructions read &#8220;head to irc and ask a question that makes you look like you don&#8217;t know what you&#8217;re talking about&#8221;</em><br />
<strong class="blue">[metaleks]:</strong> <em class="blue">there were no instructions in the .vim file<br />
 nor could I find any after a good while of searching</em><br />
[naquad]: Araxia: cool. i didn&#8217;t understand even a half, but tested and it works pretty nice, thank you<br />
<strong class="blue">[metaleks]:</strong> <em class="blue">sorry if it seems like a newb question<br />
 I will try ftplugin, thanks</em><br />
<strong class="red">[spiiph]:</strong> <em class="red">metaleks, well, where did you find the file in the first place?</em><br />
<strong class="red">[arm]:</strong> <em class="red">is it just me, or noobs that read the smartQuestions.html keep asking FAQ shit but now saying they have not found anything when they supposedly did search for stuff in the docs</em><br />
<strong class="blue">[metaleks]:</strong> <em class="blue">spiiph, the main vimscripts site<br />
 arm, I assure you that I never resort to IRC unless I&#8217;ve spent a good while searching for the solution myself</em><br />
[qz]: any ideas how to find out which plugin tries to &#8220;indent&#8221; my code when i press enter?<br />
<strong class="red">[arm]:</strong> <em class="red">metaleks: if you are desperate to get it working, try :source</em><br />
<strong class="red">[tpope]:</strong> <em class="red">metaleks: this one? http://www.vim.org/scripts/script.php?script_id=790<br />
 metaleks: the one that clearly says &#8220;Place python.vim file in ~/.vim/syntax/ folder.&#8221;</em><br />
[Araxia]: naquad: one limitation is that it will only complete a tag that was started on the same line. a lot of the script is just using normal mode commands. if you have any questions, i&#8217;d be happy to explain.<br />
<strong class="red">[spiiph]:</strong> <em class="red">Bah, tpope beat me to it.</em><br />
<strong class="blue">[metaleks]:</strong> <em class="blue">tpope, yes, that&#8217;s the one, and yes I tried the instructions there</em><br />
<strong class="red">[tpope]:</strong> <em class="red">metaleks: then why&#8217;d you come in babbling about sticking it in .vim/plugin?</em><br />
<strong class="blue">[metaleks]:</strong> <em class="blue">arm, thanks for that tip, that&#8217;s one more thing I will try before coming here next time</em><br />
[naquad]: Araxia: i&#8217;m learning to work with vim manual, trying to find out everything myself<br />
<strong class="blue">[metaleks]:</strong> <em class="blue">tpope, I was just listing stuff I tried</em><br />
[Araxia]: naquad: that&#8217;s definitely the way to do it.<br />
<strong class="red">[tpope]:</strong> <em class="red">metaleks: you never once mentioned you tried following the actual instructions</em><br />
<strong class="blue">[metaleks]:</strong> <em class="blue">tpope, because that&#8217;s obvious that you would right?</em><br />
<strong class="red">[tpope]:</strong> <em class="red">hey guys I keep shoving cucumbers up my butt but I&#8217;m still hungry</em><br />
<strong class="blue">[metaleks]:</strong> <em class="blue">no need to be hostile</em><br />
<strong class="red">[tpope]:</strong> <em class="red">jesus fucking christ what is wrong with you?</em><br />
[darkfuneral]: is there a way i can set a colorscheme but only or a certain plugin? i&#8217;m using vimoutliner and i only want to change it&#8217;s colorscheme for hilighting, not the entire colorscheme of vim<br />
<strong class="red">[tpope]:</strong> <em class="red">yes, when you come in playing the part of the village idiot, you do need to explain that you tried following instructions</em><br />
[tpope]: darkfuneral: no. but you can create a super duper colorscheme that highlights different files different ways<br />
<strong class="blue">[metaleks]:</strong> <em class="blue">I&#8217;m sorry I didn&#8217;t list the 3000 different things i tried, honestly good sir, your hostility is unwarranted</em><br />
[darkfuneral]: tpope: ok how<br />
[tpope]: darkfuneral: colorschemes define very specific groups (&#8220;rubyInteger&#8221;) that link to more generic groups (&#8220;Number&#8221;). simply highlight the more specific groups instead</p></blockquote>
<p>After that, nothing was said to me, which was good because I didn&#8217;t really feel like talking anymore. Thanks for making me feel welcome, asshat. I&#8217;ve been nothing but polite to you, but apparently it&#8217;s too much to return the favour when your ego is as big as the channel itself.</p>
<p>I think this sums up this strange phenomenon, because honestly, stuff like this is rampant on IRC.</p>
<div class="centerMe"><img src="http://metaleks.net/images/random/GreaterInternetDickwadTheory.jpg" /></div>
<p><br/></p>
<p>In the end, I never did find a solution to my problem. I can live without the Python syntax script for now, but I&#8217;ll come back to it some time in the future. Anyway, I&#8217;d like to end this post off with one of my favourite quotes.</p>
<div class="centerMe"><img src="http://metaleks.net/images/random/RTFMBetterFM.jpg" /></div>
<p><br/></p>
<p><strong>Edit:</strong> Boy, this thing really took off, albeit a few months later. Reddit, Twitter, blogs&#8230; I don&#8217;t promote my blog at all, so the fact that so many people have read one of my posts gives me a warm and fuzzy feeling. However, there are a few clarifications I should add. </p>
<p><strong>1.</strong> The problem turned out to be Ubuntu and the way it handled autoloading of plugins. Props to Dace for the comment below on how to solve this problem. </p>
<p><strong>2.</strong> Part of the problem, looking back now, was that I didn&#8217;t really articulate myself well enough while asking for help. I apologize for that, but I still think the responses I received weren&#8217;t warranted.</p>
]]></content:encoded>
			<wfw:commentRss>http://metaleks.net/internet/elitism-in-irc/feed</wfw:commentRss>
		<slash:comments>71</slash:comments>
		</item>
		<item>
		<title>The Evolution of a Python Programmer</title>
		<link>http://metaleks.net/programming/the-evolution-of-a-python-programmer</link>
		<comments>http://metaleks.net/programming/the-evolution-of-a-python-programmer#comments</comments>
		<pubDate>Mon, 01 Feb 2010 15:42:09 +0000</pubDate>
		<dc:creator>Aleksandar Micovic</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[humour]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://metaleks.net/?p=742</guid>
		<description><![CDATA[A while back, clever snippets of code portraying how different people programming in Python went about solving the same problem, appeared on the internet. Needless to say, it was pretty funny and despite its popularity, not many people seem to know of it when I bring it up. Being as lazy as I am when [...]]]></description>
			<content:encoded><![CDATA[<p>A while back, clever snippets of code portraying how different people programming in Python went about solving the same problem, appeared on the internet. Needless to say, it was pretty funny and despite its popularity, not many people seem to know of it when I bring it up. Being as lazy as I am when it comes to these sorts of things, I am blogging about it now. Almost three years later. It has been posted and reposted dozens of times, but full of geek pride, I can proudly say that I helped create it by correcting some of the mistakes in the original. How&#8217;s that for major geek cred? </p>
<p>The original is right <a href="http://dis.4chan.org/read/prog/1180084983/">here</a>, if you&#8217;re interested.</p>
<h3>Newbie Programmer</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> factorial<span style="color: black;">&#40;</span>x<span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">if</span> x == <span style="color: #ff4500;">0</span>:
        <span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: #ff4500;">1</span>
    <span style="color: #ff7700;font-weight:bold;">else</span>:
        <span style="color: #ff7700;font-weight:bold;">return</span> x <span style="color: #66cc66;">*</span> factorial<span style="color: black;">&#40;</span>x - <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">print</span> factorial<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>First Year Programmer (Studied Pascal)</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> factorial<span style="color: black;">&#40;</span>x<span style="color: black;">&#41;</span>:
    result = <span style="color: #ff4500;">1</span>
    i = <span style="color: #ff4500;">2</span>
    <span style="color: #ff7700;font-weight:bold;">while</span> i <span style="color: #66cc66;">&lt;</span>= x:
        result = result <span style="color: #66cc66;">*</span> i
        i = i + <span style="color: #ff4500;">1</span>
    <span style="color: #ff7700;font-weight:bold;">return</span> result
<span style="color: #ff7700;font-weight:bold;">print</span> factorial<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>First Year Programmer (Studied C)</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> fact<span style="color: black;">&#40;</span>x<span style="color: black;">&#41;</span>: <span style="color: #808080; font-style: italic;">#{</span>
    result = i = <span style="color: #ff4500;">1</span><span style="color: #66cc66;">;</span>
    <span style="color: #ff7700;font-weight:bold;">while</span> <span style="color: black;">&#40;</span>i <span style="color: #66cc66;">&lt;</span>= x<span style="color: black;">&#41;</span>: <span style="color: #808080; font-style: italic;">#{</span>
        result <span style="color: #66cc66;">*</span>= i<span style="color: #66cc66;">;</span>
        i += <span style="color: #ff4500;">1</span><span style="color: #66cc66;">;</span>
    <span style="color: #808080; font-style: italic;">#}</span>
    <span style="color: #ff7700;font-weight:bold;">return</span> result<span style="color: #66cc66;">;</span>
<span style="color: #808080; font-style: italic;">#}</span>
<span style="color: #ff7700;font-weight:bold;">print</span><span style="color: black;">&#40;</span>fact<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>First Year Programmer (Read <a href="http://mitpress.mit.edu/sicp/full-text/book/book.html">SICP</a>)</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="python" style="font-family:monospace;">@tailcall
<span style="color: #ff7700;font-weight:bold;">def</span> fact<span style="color: black;">&#40;</span>x, acc=<span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: black;">&#40;</span>x <span style="color: #66cc66;">&gt;</span> <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>: <span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: black;">&#40;</span>fact<span style="color: black;">&#40;</span><span style="color: black;">&#40;</span>x - <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>, <span style="color: black;">&#40;</span>acc <span style="color: #66cc66;">*</span> x<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">else</span>:       <span style="color: #ff7700;font-weight:bold;">return</span> acc
<span style="color: #ff7700;font-weight:bold;">print</span><span style="color: black;">&#40;</span>fact<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>First Year Programmer (Python)</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> Factorial<span style="color: black;">&#40;</span>x<span style="color: black;">&#41;</span>:
    res = <span style="color: #ff4500;">1</span>
    <span style="color: #ff7700;font-weight:bold;">for</span> i <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #008000;">xrange</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">2</span>, x + <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>:
        res <span style="color: #66cc66;">*</span>= i
    <span style="color: #ff7700;font-weight:bold;">return</span> res
<span style="color: #ff7700;font-weight:bold;">print</span> Factorial<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>Lazy Python Programmer</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> fact<span style="color: black;">&#40;</span>x<span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">return</span> x <span style="color: #66cc66;">&gt;</span> <span style="color: #ff4500;">1</span> <span style="color: #ff7700;font-weight:bold;">and</span> x <span style="color: #66cc66;">*</span> fact<span style="color: black;">&#40;</span>x - <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">or</span> <span style="color: #ff4500;">1</span>
<span style="color: #ff7700;font-weight:bold;">print</span> fact<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>Lazier Python Programmer</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="python" style="font-family:monospace;">f = <span style="color: #ff7700;font-weight:bold;">lambda</span> x: x <span style="color: #ff7700;font-weight:bold;">and</span> x <span style="color: #66cc66;">*</span> f<span style="color: black;">&#40;</span>x - <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">or</span> <span style="color: #ff4500;">1</span>
<span style="color: #ff7700;font-weight:bold;">print</span> f<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>Python Expert Programmer</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="python" style="font-family:monospace;">fact = <span style="color: #ff7700;font-weight:bold;">lambda</span> x: <span style="color: #008000;">reduce</span><span style="color: black;">&#40;</span><span style="color: #008000;">int</span>.<span style="color: #0000cd;">__mul__</span>, <span style="color: #008000;">xrange</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">2</span>, x + <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>, <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">print</span> fact<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>Python Hacker</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">sys</span>
@tailcall
<span style="color: #ff7700;font-weight:bold;">def</span> fact<span style="color: black;">&#40;</span>x, acc=<span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">if</span> x: <span style="color: #ff7700;font-weight:bold;">return</span> fact<span style="color: black;">&#40;</span>x.<span style="color: #0000cd;">__sub__</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>, acc.<span style="color: #0000cd;">__mul__</span><span style="color: black;">&#40;</span>x<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">return</span> acc
<span style="color: #dc143c;">sys</span>.<span style="color: black;">stdout</span>.<span style="color: black;">write</span><span style="color: black;">&#40;</span><span style="color: #008000;">str</span><span style="color: black;">&#40;</span>fact<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span> + <span style="color: #483d8b;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>EXPERT PROGRAMMER</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> c_math <span style="color: #ff7700;font-weight:bold;">import</span> fact
<span style="color: #ff7700;font-weight:bold;">print</span> fact<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>BRITISH EXPERT PROGRAMMER</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> c_maths <span style="color: #ff7700;font-weight:bold;">import</span> fact
<span style="color: #ff7700;font-weight:bold;">print</span> fact<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>Web Designer</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> factorial<span style="color: black;">&#40;</span>x<span style="color: black;">&#41;</span>:
    <span style="color: #808080; font-style: italic;">#-------------------------------------------------</span>
    <span style="color: #808080; font-style: italic;">#--- Code snippet from The Math Vault          ---</span>
    <span style="color: #808080; font-style: italic;">#--- Calculate factorial (C) Arthur Smith 1999 ---</span>
    <span style="color: #808080; font-style: italic;">#-------------------------------------------------</span>
    result = <span style="color: #008000;">str</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>
    i = <span style="color: #ff4500;">1</span> <span style="color: #808080; font-style: italic;">#Thanks Adam</span>
    <span style="color: #ff7700;font-weight:bold;">while</span> i <span style="color: #66cc66;">&lt;</span>= x:
        <span style="color: #808080; font-style: italic;">#result = result * i  #It's faster to use *=</span>
        <span style="color: #808080; font-style: italic;">#result = str(result * result + i)</span>
           <span style="color: #808080; font-style: italic;">#result = int(result *= i) #??????</span>
        result = <span style="color: #008000;">str</span><span style="color: black;">&#40;</span><span style="color: #008000;">int</span><span style="color: black;">&#40;</span>result<span style="color: black;">&#41;</span> <span style="color: #66cc66;">*</span> i<span style="color: black;">&#41;</span>
        <span style="color: #808080; font-style: italic;">#result = int(str(result) * i)</span>
        i = i + <span style="color: #ff4500;">1</span>
    <span style="color: #ff7700;font-weight:bold;">return</span> result
<span style="color: #ff7700;font-weight:bold;">print</span> factorial<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>Unix Programmer</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>
<span style="color: #ff7700;font-weight:bold;">def</span> fact<span style="color: black;">&#40;</span>x<span style="color: black;">&#41;</span>:
    <span style="color: #dc143c;">os</span>.<span style="color: black;">system</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'factorial '</span> + <span style="color: #008000;">str</span><span style="color: black;">&#40;</span>x<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
fact<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>Windows Programmer</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="python" style="font-family:monospace;">NULL = <span style="color: #008000;">None</span>
<span style="color: #ff7700;font-weight:bold;">def</span> CalculateAndPrintFactorialEx<span style="color: black;">&#40;</span>dwNumber,
                                 hOutputDevice,
                                 lpLparam,
                                 lpWparam,
                                 lpsscSecurity,
                                 <span style="color: #66cc66;">*</span>dwReserved<span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">if</span> lpsscSecurity <span style="color: #66cc66;">!</span>= NULL:
        <span style="color: #ff7700;font-weight:bold;">return</span> NULL <span style="color: #808080; font-style: italic;">#Not implemented</span>
    dwResult = dwCounter = <span style="color: #ff4500;">1</span>
    <span style="color: #ff7700;font-weight:bold;">while</span> dwCounter <span style="color: #66cc66;">&lt;</span>= dwNumber:
        dwResult <span style="color: #66cc66;">*</span>= dwCounter
        dwCounter += <span style="color: #ff4500;">1</span>
    hOutputDevice.<span style="color: black;">write</span><span style="color: black;">&#40;</span><span style="color: #008000;">str</span><span style="color: black;">&#40;</span>dwResult<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
    hOutputDevice.<span style="color: black;">write</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: #ff4500;">1</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">sys</span>
CalculateAndPrintFactorialEx<span style="color: black;">&#40;</span><span style="color: #ff4500;">6</span>, <span style="color: #dc143c;">sys</span>.<span style="color: black;">stdout</span>, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL<span style="color: black;">&#41;</span></pre></td></tr></table></div>

<h3>Enterprise Programmer</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> <span style="color: #dc143c;">new</span><span style="color: black;">&#40;</span>cls, <span style="color: #66cc66;">*</span>args, <span style="color: #66cc66;">**</span>kwargs<span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">return</span> cls<span style="color: black;">&#40;</span><span style="color: #66cc66;">*</span>args, <span style="color: #66cc66;">**</span>kwargs<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">class</span> Number<span style="color: black;">&#40;</span><span style="color: #008000;">object</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">pass</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">class</span> IntegralNumber<span style="color: black;">&#40;</span><span style="color: #008000;">int</span>, Number<span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">def</span> toInt<span style="color: black;">&#40;</span><span style="color: #008000;">self</span><span style="color: black;">&#41;</span>:
        <span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: #dc143c;">new</span> <span style="color: black;">&#40;</span><span style="color: #008000;">int</span>, <span style="color: #008000;">self</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">class</span> InternalBase<span style="color: black;">&#40;</span><span style="color: #008000;">object</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">def</span> <span style="color: #0000cd;">__init__</span><span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, base<span style="color: black;">&#41;</span>:
        <span style="color: #008000;">self</span>.<span style="color: black;">base</span> = base.<span style="color: black;">toInt</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">def</span> getBase<span style="color: black;">&#40;</span><span style="color: #008000;">self</span><span style="color: black;">&#41;</span>:
        <span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: #dc143c;">new</span> <span style="color: black;">&#40;</span>IntegralNumber, <span style="color: #008000;">self</span>.<span style="color: black;">base</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">class</span> MathematicsSystem<span style="color: black;">&#40;</span><span style="color: #008000;">object</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">def</span> <span style="color: #0000cd;">__init__</span><span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, ibase<span style="color: black;">&#41;</span>:
        Abstract
&nbsp;
    @<span style="color: #008000;">classmethod</span>
    <span style="color: #ff7700;font-weight:bold;">def</span> getInstance<span style="color: black;">&#40;</span>cls, ibase<span style="color: black;">&#41;</span>:
        <span style="color: #ff7700;font-weight:bold;">try</span>:
            cls.__instance
        <span style="color: #ff7700;font-weight:bold;">except</span> <span style="color: #008000;">AttributeError</span>:
            cls.__instance = <span style="color: #dc143c;">new</span> <span style="color: black;">&#40;</span>cls, ibase<span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">return</span> cls.__instance
&nbsp;
<span style="color: #ff7700;font-weight:bold;">class</span> StandardMathematicsSystem<span style="color: black;">&#40;</span>MathematicsSystem<span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">def</span> <span style="color: #0000cd;">__init__</span><span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, ibase<span style="color: black;">&#41;</span>:
        <span style="color: #ff7700;font-weight:bold;">if</span> ibase.<span style="color: black;">getBase</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span> <span style="color: #66cc66;">!</span>= <span style="color: #dc143c;">new</span> <span style="color: black;">&#40;</span>IntegralNumber, <span style="color: #ff4500;">2</span><span style="color: black;">&#41;</span>:
            <span style="color: #ff7700;font-weight:bold;">raise</span> <span style="color: #008000;">NotImplementedError</span>
        <span style="color: #008000;">self</span>.<span style="color: black;">base</span> = ibase.<span style="color: black;">getBase</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">def</span> calculateFactorial<span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, target<span style="color: black;">&#41;</span>:
        result = <span style="color: #dc143c;">new</span> <span style="color: black;">&#40;</span>IntegralNumber, <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>
        i = <span style="color: #dc143c;">new</span> <span style="color: black;">&#40;</span>IntegralNumber, <span style="color: #ff4500;">2</span><span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">while</span> i <span style="color: #66cc66;">&lt;</span>= target:
            result = result <span style="color: #66cc66;">*</span> i
            i = i + <span style="color: #dc143c;">new</span> <span style="color: black;">&#40;</span>IntegralNumber, <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">return</span> result
&nbsp;
<span style="color: #ff7700;font-weight:bold;">print</span> StandardMathematicsSystem.<span style="color: black;">getInstance</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">new</span> <span style="color: black;">&#40;</span>InternalBase, <span style="color: #dc143c;">new</span> <span style="color: black;">&#40;</span>IntegralNumber, <span style="color: #ff4500;">2</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>.<span style="color: black;">calculateFactorial</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">new</span> <span style="color: black;">&#40;</span>IntegralNumber, <span style="color: #ff4500;">6</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://metaleks.net/programming/the-evolution-of-a-python-programmer/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A Fansub Editing Tip</title>
		<link>http://metaleks.net/animes/a-fansub-editing-tip</link>
		<comments>http://metaleks.net/animes/a-fansub-editing-tip#comments</comments>
		<pubDate>Fri, 08 Jan 2010 03:57:23 +0000</pubDate>
		<dc:creator>Aleksandar Micovic</dc:creator>
				<category><![CDATA[Anime]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[editing]]></category>
		<category><![CDATA[one-liner]]></category>

		<guid isPermaLink="false">http://metaleks.net/?p=729</guid>
		<description><![CDATA[It seems that most of my posts have been crazy one-liners that do more than they should. This post is no different.
Motivation
Remember how your high school English teachers always stressed that you should be reading and re-reading your own work before submitting it? Out loud? It&#8217;s almost a fool-proof way to catch mistakes, but reading [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that most of my posts have been crazy one-liners that do more than they should. This post is no different.</p>
<h3>Motivation</h3>
<p>Remember how your high school English teachers always stressed that you should be reading and re-reading your own work before submitting it? <em>Out loud?</em> It&#8217;s almost a fool-proof way to catch mistakes, but reading can get tedious depending on what you have to read. In my case, I&#8217;ve recently started editing fansubs (Japanese animation, specifically) and found that reading the scripts can be quite difficult at times. So, I&#8217;ve put a small one-liner together to read the script for me!</p>
<h3>The Code</h3>
<p>Here is the line that solves my problems, followed by an explanation of it, for those of you who care.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> TARGET.ass <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;Dialogue&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/.*}\|.*0,,\|\\N//g'</span> <span style="color: #000000; font-weight: bold;">|</span> festival <span style="color: #660033;">--pipe</span> <span style="color: #660033;">--tts</span></pre></div></div>

<p>This only works on .ass files, and if you want to run it replace the <strong>TARGET.ass</strong> with the path to your script file. So, how does this work? Like this.</p>
<p>We first grab all of the file&#8217;s contents with <strong>cat TARGET.ass</strong>. Then, the entire script is filtered line by line allowing only the lines that start with &#8220;Dialogue&#8221; to pass through to the next stage. This is done with the <strong>grep &#8220;Dialogue&#8221;</strong> part. Next, and probably the most funky part of this entire one-liner is when the program <strong>sed</strong> is invoked. Basically, what <strong>sed -e &#8217;s/.*}\|.*0,,\|\\N//g&#8217; </strong> does is it removes everything that&#8217;s not actual dialogue. Why is this needed? Unfortunately, even though we have all of the lines that contain actual dialogue, every single one of these lines is littered with .ass format and control tags. All of this is filtered out, and we&#8217;re left with clean dialogue. The funky looking code is called a <a href="http://en.wikipedia.org/wiki/Regular_expression">regular expression</a>, if you&#8217;re interested. </p>
<p>At this point, we&#8217;re pretty much done. The last thing that needs to be done is to somehow give our script to a text-to-speech program. This is done with the <strong>festival &#8211;pipe &#8211;tts</strong> part. The program <strong>festival</strong> is a text-to-speech program, and if you&#8217;re wondering about the extra arguments passed to it, feel free to hit up the manual.</p>
<p>The default voice is pretty crap, but a simple search on Google reveals a plethora of guides on how to install different (and better!) voices.</p>
<p>I hope that this helps some of you!</p>
]]></content:encoded>
			<wfw:commentRss>http://metaleks.net/animes/a-fansub-editing-tip/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Portfolio</title>
		<link>http://metaleks.net/a-day-in-the-life/my-portfolio</link>
		<comments>http://metaleks.net/a-day-in-the-life/my-portfolio#comments</comments>
		<pubDate>Sun, 15 Nov 2009 23:30:39 +0000</pubDate>
		<dc:creator>Aleksandar Micovic</dc:creator>
				<category><![CDATA[A Day in the Life]]></category>
		<category><![CDATA[portfolio]]></category>

		<guid isPermaLink="false">http://metaleks.net/?p=739</guid>
		<description><![CDATA[A blog makes a horrible portfolio&#8230;which is why I am proud to announce an official portfolio right here! Hopefully, this is a little more presentable to prospective employers than this blog.
]]></description>
			<content:encoded><![CDATA[<p>A blog makes a horrible portfolio&#8230;which is why I am proud to announce an official portfolio <a href="http://aleksandarmicovic.com">right here</a>! Hopefully, this is a little more presentable to prospective employers than this blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://metaleks.net/a-day-in-the-life/my-portfolio/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing Audio Delay From Videos</title>
		<link>http://metaleks.net/open-source/removing-audio-delay</link>
		<comments>http://metaleks.net/open-source/removing-audio-delay#comments</comments>
		<pubDate>Sat, 31 Oct 2009 08:22:27 +0000</pubDate>
		<dc:creator>Aleksandar Micovic</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[videos]]></category>

		<guid isPermaLink="false">http://metaleks.net/?p=566</guid>
		<description><![CDATA[I&#8217;m often amazed at the things that can be accomplished with a single command. Seriously. A show I had recently downloaded didn&#8217;t have its video and audio synced. I don&#8217;t know about you, but for me, this is incredibly annoying. So much so, that I couldn&#8217;t watch it.
Luckily, there is a way to fix this. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m often amazed at the things that can be accomplished with a single command. Seriously. A show I had recently downloaded didn&#8217;t have its video and audio synced. I don&#8217;t know about you, but for me, this is incredibly annoying. So much so, that I couldn&#8217;t watch it.</p>
<p>Luckily, there is a way to fix this. If you&#8217;re suffering from the same problem, you&#8217;ll need mencoder. If you use Ubuntu, it&#8217;s in the repositories. Here is the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mencoder <span style="color: #660033;">-audio-delay</span> <span style="color: #000000;">0.5</span> <span style="color: #660033;">-oac</span> copy <span style="color: #660033;">-ovc</span> copy TARGET.mpg <span style="color: #660033;">-o</span> OUTPUT.mpg</pre></div></div>

<p>If your audio is too fast, this example slows the audio down by half a second. The <strong>-oac copy</strong> and <strong>-ovc copy</strong> are so that we preserve the original quality of our file. You can change them if you&#8217;d like. TARGET is your target file, and OUTPUT is obviously your output. Make sure that you add the proper file extensions. In the example above I used <em>.mpg</em>.</p>
<p>Anyway, you&#8217;ll probably have to run this a few times, changing the delay so that it matches your video, and then testing it. It took me three tries to get it synced properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://metaleks.net/open-source/removing-audio-delay/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Recursively Removing .svn</title>
		<link>http://metaleks.net/programming/recursively-removing-svn</link>
		<comments>http://metaleks.net/programming/recursively-removing-svn#comments</comments>
		<pubDate>Mon, 19 Oct 2009 15:51:45 +0000</pubDate>
		<dc:creator>Aleksandar Micovic</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://metaleks.net/?p=546</guid>
		<description><![CDATA[I recently started working on an assignment that required me to copy some code from another repository. I did just that, but had a little trouble trying to add the new stuff to my new repository. After about a minute or two I realized that all of the newly copied old code still had the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently started working on an assignment that required me to copy some code from another repository. I did just that, but had a little trouble trying to add the new stuff to my new repository. After about a minute or two I realized that all of the newly copied old code still had the hidden folder .svn&#8230;in every directory. I was copying an OS kernel, so there were quite a bit of these .svns sticking around. They needed to go if I was going to add any of my code into my repository.</p>
<p>How did I remove them? Like this.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-name</span> .svn <span style="color: #660033;">-print0</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-0</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://metaleks.net/programming/recursively-removing-svn/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Removing Extra Ubuntu Entries in GRUB</title>
		<link>http://metaleks.net/open-source/ubuntu/removing-extra-ubuntu-entries-in-grub</link>
		<comments>http://metaleks.net/open-source/ubuntu/removing-extra-ubuntu-entries-in-grub#comments</comments>
		<pubDate>Tue, 15 Sep 2009 03:28:35 +0000</pubDate>
		<dc:creator>Aleksandar Micovic</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://metaleks.net/?p=508</guid>
		<description><![CDATA[If you&#8217;ve used Ubuntu through any kernel updates, you&#8217;ll know that each major update will place not one, but two entries for booting from GRUB. A normal boot, and a safe mode. If you receive three updates, that&#8217;s a total of six new entries. Not to mention that if you&#8217;re dual booting like me, you&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve used Ubuntu through any kernel updates, you&#8217;ll know that each major update will place not one, but <em>two</em> entries for booting from GRUB. A normal boot, and a safe mode. If you receive three updates, that&#8217;s a total of six new entries. Not to mention that if you&#8217;re dual booting like me, you&#8217;ll have even more. I&#8217;ve been putting it off for a while, mostly because I didn&#8217;t care for the solution. But, I was bored today and I decided to look it up. I&#8217;m glad I did. It&#8217;s a lot easier than I thought.</p>
<p><code>sudo vim /boot/grub/menu.lst</code></p>
<p>That&#8217;s it. Then just comment out the entries (they span multiple lines, and are near the end of the file). If you don&#8217;t like vim, or working through the terminal then run the command below to edit the file in gedit.</p>
<p><code>gksu gedit /boot/grub/menu.lst</code></p>
<p>Once you have the file open, just comment out the entries by placing a &#8220;#&#8221; before every line in the entry. You may be tempted to delete some of the entries, but really, why would you want to do that? Commenting them out solves the problem, and if something does go wrong with your current kernel, you can always uncomment an Ubuntu entry that doesn&#8217;t have the problem.</p>
<p>A commented entry looks like this.</p>
<p><code>#title		Ubuntu 9.04, kernel 2.6.28-11-generic<br />
#uuid		b511d0d6-7d11-4909-bf5e-9764fce42f96<br />
#kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=b511d0d6-7d11-4909-bf5e-9764fce42f96 ro quiet splash<br />
#initrd		/boot/initrd.img-2.6.28-11-generic<br />
#quiet</code></p>
<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://metaleks.net/open-source/ubuntu/removing-extra-ubuntu-entries-in-grub/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Wonder That Is Hardware</title>
		<link>http://metaleks.net/hardware/the-wonder-that-is-hardware</link>
		<comments>http://metaleks.net/hardware/the-wonder-that-is-hardware#comments</comments>
		<pubDate>Mon, 27 Oct 2008 03:51:28 +0000</pubDate>
		<dc:creator>Aleksandar Micovic</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[humbling]]></category>
		<category><![CDATA[quantum]]></category>
		<category><![CDATA[school]]></category>

		<guid isPermaLink="false">http://metaleks.net/?p=179</guid>
		<description><![CDATA[The further I get in CSC258 (Computer Organization) the more I realize how amazing the computer really is. It&#8217;s almost a humbling experience. Most people don&#8217;t realize how much they don&#8217;t know about the hardware and what goes on inside a computer, but if they did their jaw would drop. Mine is constantly on the [...]]]></description>
			<content:encoded><![CDATA[<p>The further I get in CSC258 (Computer Organization) the more I realize how amazing the computer really is. It&#8217;s almost a humbling experience. Most people don&#8217;t realize how much they don&#8217;t know about the hardware and what goes on inside a computer, but if they did their jaw would drop. Mine is constantly on the floor, and I&#8217;m only scratching the surface.</p>
<p>Needless to say, I think this has been the best course that I&#8217;ve ever taken at school. At least, so far. I honestly feel as if I could build a very simple calculator from scratch if given the appropriate tools. And you know what? I probably could. Giving me transistors alone would be tedious, and I would have one very large calculator on my hands. But, I would still be able to build it. In fact, you can make transistors on your own out of pretty simple things, but they would be pretty large. Which means that I would be able to build a very simple calculator out of nothing (provided that I know how to make my own transistors <em>consistently</em>). And that excites me. I feel like I&#8217;m learning something useful. It&#8217;s wonderful.</p>
<p>But my example of a simple calculator doesn&#8217;t even compare to a computer&#8217;s processor. No sir. In fact, even talking about it doesn&#8217;t do it justice. There is so much that goes on that it&#8217;s mind blowing. So I&#8217;m going to stop here. It&#8217;s very humbling to know how far we&#8217;ve gone as a race, and I can think of no better example than the computer&#8217;s processor as a testament to our achievements.</p>
<p>If that isn&#8217;t enough, there are even talks of quantum computing. What&#8217;s that? Well, I&#8217;ll explain it in a nutshell. You know all those 1s and 0s that your computer understands? You&#8217;ve probably seen it in movies, or heard of it being referred to as binary. In any case, binary only has two states. 1 or 0. On or off. What quantum computing does is add a third state. Both on and off at the same time. I tried thinking about this and only found that if I kept at it long enough my head would start to hurt.</p>
<p>Technology is amazing.</p>
]]></content:encoded>
			<wfw:commentRss>http://metaleks.net/hardware/the-wonder-that-is-hardware/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back To School</title>
		<link>http://metaleks.net/a-day-in-the-life/back-to-school</link>
		<comments>http://metaleks.net/a-day-in-the-life/back-to-school#comments</comments>
		<pubDate>Tue, 09 Sep 2008 03:30:36 +0000</pubDate>
		<dc:creator>Aleksandar Micovic</dc:creator>
				<category><![CDATA[A Day in the Life]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[school]]></category>
		<category><![CDATA[sleep]]></category>
		<category><![CDATA[university of toronto]]></category>
		<category><![CDATA[UTM]]></category>

		<guid isPermaLink="false">http://metaleks.net/?p=130</guid>
		<description><![CDATA[So, today was my first day of school. Woot! I was really tired, so I didn&#8217;t enjoy it that much, but some would argue school isn&#8217;t meant to be enjoyed anyway. I beg to differ. In any case, this always happens. Whenever I get excited about some event, whether it be a concert or the [...]]]></description>
			<content:encoded><![CDATA[<p>So, today was my first day of school. Woot! I was really tired, so I didn&#8217;t enjoy it that much, but some would argue school isn&#8217;t meant to be enjoyed anyway. I beg to differ. In any case, this <em>always</em> happens. Whenever I get excited about some event, whether it be a concert or the first day of school, I <em>always</em> get no sleep whatsoever the night before. I&#8217;m sure some people can relate. I hope. Because being the only person like this, that&#8217;s kind of sad.</p>
<p>Anyhoo, forgetting that I have back-to-back 2 hour lectures, I think my Mondays in first semester are going to be all right. I&#8217;m really looking forward to the software development course. Stuff like version control, SSH, build tools and vi (bonus! take that emacs!) are finally going to be covered. I&#8217;ve wanted to be an Ubuntu MOTU for quite a while now, and I feel that after this semester I can finally ease into the transition of becoming one. What else? Oh yeah, the CSC258 course is going to be pretty sweet. It has a pretty awesome prof, and it&#8217;s all about computer hardware, logic circuits, and other related stuff. In other words, a continuation of high school computer engineering. Fun.</p>
<p>Oh, and the other courses aren&#8217;t worth mentioning, so I won&#8217;t. Maybe it was me being tired that made me extremely drowsy in these classes, or maybe it was that it was well&#8230;for lack of a better word: boring. Ah well, it&#8217;s the first day of school. Can&#8217;t expect to much from a course on the first day.</p>
<p>But yeah, it&#8217;s a wonder I&#8217;m even still typing. I made a pact with one of my friends that we&#8217;d hit the haystack before midnight every school night. I wonder how long that will last, haha. 34 more minutes and I break that pact. God damn&#8230;</p>
<p>All in all, I&#8217;m going to be very busy this semester. Three math courses and three computer science courses are enough to drive any person insane. I&#8217;ve also restricted the amount of hobbies this semester. I&#8217;m going to actually have to try for once in my life. I look forward to seeing what I can accomplish when I actually give it my best.</p>
<p>Good night!</p>
]]></content:encoded>
			<wfw:commentRss>http://metaleks.net/a-day-in-the-life/back-to-school/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I&#8217;m Blind In My Left Eye!</title>
		<link>http://metaleks.net/a-day-in-the-life/im-blind-in-my-left-eye</link>
		<comments>http://metaleks.net/a-day-in-the-life/im-blind-in-my-left-eye#comments</comments>
		<pubDate>Sun, 20 Jul 2008 22:38:20 +0000</pubDate>
		<dc:creator>Aleksandar Micovic</dc:creator>
				<category><![CDATA[A Day in the Life]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[glasses]]></category>

		<guid isPermaLink="false">http://metaleks.net/?p=100</guid>
		<description><![CDATA[Just kidding. It turns out that I&#8217;m actually really farsighted in my left eye. And I just found this out yesterday. Went to an eye examination for the first time, and this is the news I get. Psh. This is why I don&#8217;t go to eye exams. If it weren&#8217;t for my good eye, I [...]]]></description>
			<content:encoded><![CDATA[<p>Just kidding. It turns out that I&#8217;m actually really farsighted in my left eye. And I just found this out <em>yesterday</em>. Went to an eye examination for the first time, and this is the news I get. Psh. This is why I don&#8217;t go to eye exams. If it weren&#8217;t for my good eye, I wouldn&#8217;t be able to see at all.</p>
<p>And even my good eye is slightly far sighted! The nice Vietnamese lady told me that there is no point in getting glasses now since I&#8217;ve made it this far in life without them. But eventually, I <em>will</em> need them. I told her that I wouldn&#8217;t mind wearing glasses, so she brought out a pair of experimental glasses. The kind that look like a big pair of evil robot eyes with removable lenses. Tried a few of the lenses on and found out that they actually helped. And they felt kinda relaxing for my eyes, as well. So I&#8217;ve decided that I will get glasses. I could do without them. Really, I could. I mean, my good eye is pulling the weight for both my eyes, but how long can he keep it up?</p>
<p>But yes. I really can&#8217;t read at all with my left eye. Even now, as I type this I&#8217;m covering my right eye and trying to read what&#8217;s on the screen. I can sorta make out the letters, but I wouldn&#8217;t be able to read them coherently. And it&#8217;s worse the more I move back. Meh, it looks like I&#8217;m going to be completing the geek stereotype once I get my glasses. Thank goodness I already went through the braces phase. Fear of the sun can&#8217;t be too far behind, though.</p>
]]></content:encoded>
			<wfw:commentRss>http://metaleks.net/a-day-in-the-life/im-blind-in-my-left-eye/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
