<?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>engin aydogan &#187; stuff i coded</title>
	<atom:link href="http://engin.bzzzt.biz/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://engin.bzzzt.biz</link>
	<description>&#039;s journal</description>
	<lastBuildDate>Thu, 02 Feb 2012 21:22:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>uIP 1.0 for Windows</title>
		<link>http://engin.bzzzt.biz/2011/07/12/uip-1-0-for-windows/</link>
		<comments>http://engin.bzzzt.biz/2011/07/12/uip-1-0-for-windows/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 09:34:56 +0000</pubDate>
		<dc:creator>engin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[stuff i coded]]></category>
		<category><![CDATA[uip]]></category>

		<guid isPermaLink="false">http://engin.bzzzt.biz/?p=488</guid>
		<description><![CDATA[Thanks to some other guy&#8217;s (Higepon, I assume) efforts (whom site is now offline), I got uIP-1.0 to run on my Windows 7. You can see and get the code yourself https://github.com/engina/uip-1.0-win
Engin@Engin-VAIO ~/Code/uip-1.0-win/x86-gcc
$ ./uip
0 - (TAP-Win32 Adapter V9)
          [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to some other guy&#8217;s (<a href="http://higepon.monaos.org/moin.py/Higepon">Higepon</a>, I assume) efforts (whom site is now offline), I got uIP-1.0 to run on my Windows 7. You can see and get the code yourself <a href="https://github.com/engina/uip-1.0-win">https://github.com/engina/uip-1.0-win</a></p>
<pre>Engin@Engin-VAIO ~/Code/uip-1.0-win/x86-gcc
$ ./uip
0 - (TAP-Win32 Adapter V9)
         fe80::b89d:19c6:5f43:ec4e%32 [0]
         0.0.0.0 [0]
1 - (VMware Virtual Ethernet Adapter)
         fe80::b98e:1fe8:9121:d0f2%24 [0]
         192.168.67.1 [0]
2 - (Microsoft)
         fe80::b4cb:2e7f:d890:9004%21 [0]
         0.0.0.0 [0]
3 - (Microsoft)
         192.168.1.223 [0]
4 - (Microsoft)
         fe80::cd43:876e:3b0b:5b79%14 [0]
         0.0.0.0 [0]
5 - (Microsoft)
         fe80::2daf:5bd7:5b32:618e%15 [0]
         192.168.1.111 [0]
6 - (VMware Virtual Ethernet Adapter)
         fe80::5431:7f2f:1920:632c%23 [0]
         192.168.9.1 [0]
7 - (Intel(R) 82567LM Gigabit Network Connection)
         fe80::5872:faab:8d21:2e44%10 [0]
         192.168.1.142 [0]
Choose:</pre>
<p>This is useful as a debugging aid, a reference implementation and rapid development.</p>
]]></content:encoded>
			<wfw:commentRss>http://engin.bzzzt.biz/2011/07/12/uip-1-0-for-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grooveshark Downloader</title>
		<link>http://engin.bzzzt.biz/2011/01/14/grooveshark-downloader/</link>
		<comments>http://engin.bzzzt.biz/2011/01/14/grooveshark-downloader/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 17:14:47 +0000</pubDate>
		<dc:creator>engin</dc:creator>
				<category><![CDATA[stuff i coded]]></category>

		<guid isPermaLink="false">http://engin.bzzzt.biz/?p=337</guid>
		<description><![CDATA[I&#8217;ve spent the previous night studying (sniffing) how grooveshark works and today I&#8217;ve coded this downloader. It has no error handling and it is full of bugs. But it kinda works. You can try it.

]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent the previous night studying (sniffing) how grooveshark works and today I&#8217;ve coded this downloader. It has no error handling and it is full of bugs. But it kinda works. You can <a href="http://engin.bzzzt.biz/sharkit/">try it</a>.</p>
<p><img src="http://engin.bzzzt.biz/sharkit/screenshot.png" alt="Screenshot" width="647" height="359" /></p>
]]></content:encoded>
			<wfw:commentRss>http://engin.bzzzt.biz/2011/01/14/grooveshark-downloader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fikifiki &#8211; Very simple sudoku solver in C</title>
		<link>http://engin.bzzzt.biz/2009/12/24/fikifiki-very-simple-sudoku-solver-in-c/</link>
		<comments>http://engin.bzzzt.biz/2009/12/24/fikifiki-very-simple-sudoku-solver-in-c/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 16:01:36 +0000</pubDate>
		<dc:creator>engin</dc:creator>
				<category><![CDATA[stuff i coded]]></category>

		<guid isPermaLink="false">http://engin.bzzzt.biz/?p=82</guid>
		<description><![CDATA[It was like 4 months ago. I was waiting for something indefinitely in a hospital. Luckily though I had my old cute iBook with me, which includes a gcc in it! Even Eclipse! Then I saw the sudoku puzzle in the papers. So I quickly coded a sudoku solver in C in a couple of hours. I could have had  [...]]]></description>
			<content:encoded><![CDATA[<p>It was like 4 months ago. I was waiting for something indefinitely in a hospital. Luckily though I had my old cute iBook with me, which includes a gcc in it! Even Eclipse! Then I saw the sudoku puzzle in the papers. So I quickly coded a sudoku solver in C in a couple of hours. I could have had added many algorithms in it, but I just added the most simplest one and it surprisingly worked in my first try :) This one simple algorithm is able to solve easy leveled sudoku puzzles. Though one can add as many algorithms as necessary. Everything is 655 lines of C code &#8212; with all the formatting and the comments (if any). Here&#8217;s the <a href="http://engin.bzzzt.biz/files/fikifiki.tar.bz2">code</a>. This will probably be used by some lazy ass students  :)</p>
<p>You can compile by either invoking &#8220;make&#8221; in Release or Debug directories, or just import the project in Eclipse and enjoy there.</p>
]]></content:encoded>
			<wfw:commentRss>http://engin.bzzzt.biz/2009/12/24/fikifiki-very-simple-sudoku-solver-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PENSE &#8211; oPEN Simulation Environment</title>
		<link>http://engin.bzzzt.biz/2009/12/06/pense-open-simulation-environment/</link>
		<comments>http://engin.bzzzt.biz/2009/12/06/pense-open-simulation-environment/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 22:03:01 +0000</pubDate>
		<dc:creator>engin</dc:creator>
				<category><![CDATA[stuff i coded]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[fuzzy logic]]></category>

		<guid isPermaLink="false">http://engin.bzzzt.biz/?p=33</guid>
		<description><![CDATA[Now, that I got a IDE/SATA USB case, I started looking at my very old HDDs. I found very old codes of mine, this is one of them. PENSE (oPEN Simulation Environment) was my thesis project. It is a framework which you can use to implement simulation easily. I wrote it in C++. Only dependency is GNU&#8217;s  [...]]]></description>
			<content:encoded><![CDATA[<p>Now, that I got a IDE/SATA USB case, I started looking at my very old HDDs. I found very old codes of mine, this is one of them. PENSE (oPEN Simulation Environment) was my thesis project. It is a framework which you can use to implement simulation easily. I wrote it in C++. Only dependency is GNU&#8217;s libmatheval to implement algorithms out of mathematical expressions easily. I even wrote documentation in LaTeX! :)</p>
<p>Anyway here&#8217;s <a href="http://engin.bzzzt.biz/files/libpense-20050615.tar.bz2">libpense </a>and <a href="http://engin.bzzzt.biz/files/pensedemo-20050615.tar.bz2">pensedemo</a>. Please note the autoconf masterpiece in the libpense :) it was a bitch to get it working but once it is working&#8230; well, it works. I remember compiling these codes on WIN32, Mac OS X and GNU/Linux without a single problem. Yes, I was young and stupid. I developed this on GNU/Linux :)</p>
<p>Oh, the documentation in <a href="http://engin.bzzzt.biz/files/thesis-latex.tar.bz2">LaTeX</a>, <a href="http://engin.bzzzt.biz/files/thesis.pdf">PDF</a> and the presentation in <a href="http://engin.bzzzt.biz/files/presentation.ppt">PPT</a> format is available. Also there&#8217;s a <a href="http://engin.bzzzt.biz/files/refman.pdf">reference manual</a> for libpense, I guess I just had too much time :)</p>
<p>A-hem, and you have to excuse any lameness you can spot, since this is a 4-year old code ;)</p>
<p>A sample code from pensedemo;</p>
<pre>        Environment env;
	Device::Source::PWM pwm( "pwm", &amp;env );
	pwm.setOn( true );
	pwm.setFrequency( pwm_freq );

	Device::Source::VoltageSource vs( 0, 4.8, "voltage source", &amp;env );
	vs.setOn( true );
	vs["output"] = 4.8;

	Device::Plant::DCMotor motor( "Maxon_118465", &amp;env );
	motor.setLoad( "0.0" );
	motor["J_r"] = 0.0000000503;
	motor["k_n"] = 252.374609;
	motor["I_o"] = 0.029;
	motor["V"] = 0.0;
	motor["R"] = 2.16;

	Device::Controller::FuzzyLogic f( 3, "fuzzy logic controller", &amp;env );

	f.setSetPoint( set_point );
	f.setInputDomainWidth( 5 );
	f.setOutputDomainRange( 0, 100 );

        // This is where we connect the devices together to form a feedback loop.
        // We connect the PWM controller to the Voltage Source so that PWM can turn
        // the VS on and off. Then we connect the voltage source to the DC Motor, so
        // that it can, well, run. Then we connect the angular velocity parameter of the
        // motor to the Fuzzy Logic controller, so that it can adjust the PWM controller
        // and control the speed of the motor.
	connect( &amp;pwm, "output", &amp;vs, "on" );
	connect( &amp;vs, "output", &amp;motor, "V" );
	connect( &amp;motor,"w", &amp;f, "input" );
	connect( &amp;f, "output", &amp;pwm, "duty" );</pre>
]]></content:encoded>
			<wfw:commentRss>http://engin.bzzzt.biz/2009/12/06/pense-open-simulation-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

