<?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>AmirWatad.com &#187; Tools</title>
	<atom:link href="http://www.amirwatad.com/blog/archives/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.amirwatad.com/blog</link>
	<description>Remember the name ;)</description>
	<lastBuildDate>Wed, 22 Sep 2010 22:04:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Brainfuck String Generator Generator</title>
		<link>http://www.amirwatad.com/blog/archives/2009/06/18/brainfuck-string-generator-generator/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/06/18/brainfuck-string-generator-generator/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 08:20:36 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Small Code]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=483</guid>
		<description><![CDATA[Here is a small C program, which takes a string as its input, and generates a (not so trivial) brainfuck code which generates this string. For a tool to convert brainfuck code into C, see this post To run the program, first compile it with gcc: gcc -o bf_generator bf_generator.c No, run it: ./bf_generator &#8220;a [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/06/18/brainfuck-string-generator-generator/">Brainfuck String Generator Generator</a></p>
]]></description>
			<content:encoded><![CDATA[<p>
Here is a small C program, which takes a string as its input, and generates a (not so trivial) brainfuck code which generates this string.<br />
For a tool to convert brainfuck code into C, see <a href="http://www.amirwatad.com/blog/archives/2009/06/14/a-bash-script-to-convert-brainfuck-code-into-c/">this post </a>
</p>
<p></p>
<p>
To run the program, first compile it with gcc:</p>
<blockquote><p> gcc -o bf_generator bf_generator.c </p></blockquote>
<p>
No, run it:</p>
<blockquote><p>./bf_generator &#8220;a string to convert into brainfuck code&#8221; </p></blockquote>
<p>
You can also pass a text file as its input through a pipe:</p>
<blockquote><p> cat testfile.txt | ./bf_generator </p></blockquote>
<p></p>
<p>
Download the source code here: <a href="http://www.amirwatad.com/blog/downloads/Brainfuck+Generator+Generator" title="Downloaded 732 times"><img src="http://www.amirwatad.com/blog/wp-content/plugins/download-monitor/img/download.gif" alt="Brainfuck Generator Generator 2.41 KB" title="Brainfuck Generator Generator 2.41 KB" width=100 heigh=3 /></a><br />
<br />
Enjoy <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Brainfuck String Generator Generator" /> </p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/06/18/brainfuck-string-generator-generator/">Brainfuck String Generator Generator</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Brainfuck+String+Generator+Generator+http://bit.ly/t4JVz" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" style="margin:0;" title="Brainfuck String Generator Generator" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/06/18/brainfuck-string-generator-generator/&amp;title=Brainfuck+String+Generator+Generator" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" style="margin:0 0 0 2px;" title="Brainfuck String Generator Generator" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/06/18/brainfuck-string-generator-generator/&amp;title=Brainfuck+String+Generator+Generator" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" style="margin:0 0 0 2px;" title="Brainfuck String Generator Generator" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/06/18/brainfuck-string-generator-generator/&amp;t=Brainfuck+String+Generator+Generator" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" style="margin:0 0 0 2px;" title="Brainfuck String Generator Generator" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/06/18/brainfuck-string-generator-generator/&amp;title=Brainfuck+String+Generator+Generator" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" style="margin:0 0 0 2px;" title="Brainfuck String Generator Generator" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/06/18/brainfuck-string-generator-generator/&amp;title=Brainfuck+String+Generator+Generator" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" style="margin:0 0 0 2px;" title="Brainfuck String Generator Generator" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/06/18/brainfuck-string-generator-generator/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A Program for Bit-Slicing</title>
		<link>http://www.amirwatad.com/blog/archives/2009/06/10/a-program-for-bit-slicing/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/06/10/a-program-for-bit-slicing/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 11:45:26 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Small Code]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=459</guid>
		<description><![CDATA[I wrote this short program in C because I needed to do some bit-slicing in some homework. It's not too generic (accepts only 32 bit integers) but it can help in most cases. An example usage of the program: bs 0x12345678 31 4 Will give the following output: 0x12345678[31:4] = 0x1234567 You can download the [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/06/10/a-program-for-bit-slicing/">A Program for Bit-Slicing</a></p>
]]></description>
			<content:encoded><![CDATA[<p> I wrote this short program in C because I needed to do some bit-slicing in some homework. It's not too generic (accepts only 32 bit integers) but it can help in most cases. </p> 
<br /> 
<p> An example usage of the program: 
<br /> 
<blockquote> bs 0x12345678 31 4 </blockquote> 
</p>
 <br />
 <p> Will give the following output:
 <blockquote> 0x12345678[31:4] = 0x1234567 </blockquote> 
</p> 
<span id="more-459"></span>
 <br /> 
<p> You can download the source code (written in C) here: <a href="http://www.amirwatad.com/blog/downloads/Bitslice+Source+Code" title="Downloaded 287 times"><img src="http://www.amirwatad.com/blog/wp-content/plugins/download-monitor/img/download.gif" alt="Bitslice Source Code 884 bytes" title="Bitslice Source Code 884 bytes" width=100 heigh=3 /></a> </p>
 <br/>
 <p> Compile it with gcc: <blockquote>gcc -o bs bitslice.c</blockquote> </p> 
<br /> 
<p> And add it to /usr/local/bin for easy access: <blockquote>sudo cp bs /usr/local/bin/</blockquote> </p> 
<br />
 <p> Now you can use it from the command line this way: 
<blockquote>bs 0x12345678 31 4</blockquote> 
</p>
 <br /> 
<p> Enjoy <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="A Program for Bit Slicing" />  </p><p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/06/10/a-program-for-bit-slicing/">A Program for Bit-Slicing</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=A+Program+for+Bit-Slicing+http://bit.ly/14zbHq" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" style="margin:0;" title="A Program for Bit Slicing" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/06/10/a-program-for-bit-slicing/&amp;title=A+Program+for+Bit-Slicing" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" style="margin:0 0 0 2px;" title="A Program for Bit Slicing" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/06/10/a-program-for-bit-slicing/&amp;title=A+Program+for+Bit-Slicing" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" style="margin:0 0 0 2px;" title="A Program for Bit Slicing" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/06/10/a-program-for-bit-slicing/&amp;t=A+Program+for+Bit-Slicing" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" style="margin:0 0 0 2px;" title="A Program for Bit Slicing" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/06/10/a-program-for-bit-slicing/&amp;title=A+Program+for+Bit-Slicing" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" style="margin:0 0 0 2px;" title="A Program for Bit Slicing" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/06/10/a-program-for-bit-slicing/&amp;title=A+Program+for+Bit-Slicing" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" style="margin:0 0 0 2px;" title="A Program for Bit Slicing" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/06/10/a-program-for-bit-slicing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.630 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-05 16:10:45 -->

