<?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"
	>

<channel>
	<title>Monochromatical</title>
	<atom:link href="http://monochromatical.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://monochromatical.com</link>
	<description>startup hacks</description>
	<pubDate>Tue, 12 Jan 2010 22:30:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>bash: list newest files filtered by date and file name</title>
		<link>http://monochromatical.com/index.php/2009/12/02/bash-list-newest-files-filtered-by-date-and-file-name/</link>
		<comments>http://monochromatical.com/index.php/2009/12/02/bash-list-newest-files-filtered-by-date-and-file-name/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 19:02:57 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://monochromatical.com/?p=159</guid>
		<description><![CDATA[I thought this was pretty nifty so I figured I&#8217;d put it in a post. 
The problem: you want to copy some files, but only the newest and of a certain type, such as, only .txt files.
The solution: The trick is to use ls -lrt to sort by and show the date and count the [...]]]></description>
			<content:encoded><![CDATA[<p>I thought this was pretty nifty so I figured I&#8217;d put it in a post. </p>
<p>The problem: you want to copy some files, but only the newest and of a certain type, such as, only .txt files.</p>
<p>The solution: The trick is to use ls -lrt to sort by and show the date and count the number of files. Then you just pass that number to tail, and it only grabs those files! Furthermore, you can add a grep at the end to only select the files types you want.</p>
<p><code><br />
ls -rt directory/*.txt' | tail -n `ls -lrt directory/*.txt' | grep "Nov 30" | wc -l`<br />
</code></p>
<p><strong>Note:</strong> If you grep for a date, those files have to be the most recent in the list for this to work. </p>
]]></content:encoded>
			<wfw:commentRss>http://monochromatical.com/index.php/2009/12/02/bash-list-newest-files-filtered-by-date-and-file-name/feed/</wfw:commentRss>
		</item>
		<item>
		<title>5 dollars and two hours</title>
		<link>http://monochromatical.com/index.php/2009/10/31/5-dollars-and-two-hours/</link>
		<comments>http://monochromatical.com/index.php/2009/10/31/5-dollars-and-two-hours/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 19:15:58 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
		
		<category><![CDATA[statups]]></category>

		<guid isPermaLink="false">http://monochromatical.com/?p=152</guid>
		<description><![CDATA[VentureBeat posted a video about the Stanford Venture Program, which gave a few groups of students $5 and two hours, with the goal of who can make the most money.
Nkurz on Hacker News Summarized it pretty well:
She teaches a class at Stanford and offers each team $5 of &#8216;funding&#8217; in an envelope. She tells them [...]]]></description>
			<content:encoded><![CDATA[<p>VentureBeat posted a <a href="http://entrepreneur.venturebeat.com/2009/10/30/start-up-studies-a-pop-quiz/">video</a> about the Stanford Venture Program, which gave a few groups of students $5 and two hours, with the goal of who can make the most money.</p>
<p>Nkurz on Hacker News Summarized it pretty well:</p>
<blockquote><p><span style="color: #000000;">She teaches a class at Stanford and offers each team $5 of &#8216;funding&#8217; in an envelope. She tells them that once they open the envelope, they have 2 hours to make as much money as they can.She cites three teams&#8217; approaches:</span></p>
<p>1) First team opens a free stand that offers to check peoples bike tire pressure for free, then charges $1 to inflate if necessary. This team changes midstream to accepting donations instead of charging, and makes more money. Lauded for rapid iteration.</p>
<p>2) Second team makes lots of reservations at local restaurants, and then sells them to people waiting in line for same restaurant. Didn&#8217;t use the $5 at all. Lauded for realizing that the $5 constraint was artificial, and that using it constrained their thinking.</p>
<p>3) Third team skipped the exercise, and sold their 3 minute class presentation time as a advertisement to a local company. Made the most money. Instead of presenting, they recruited. Lauded for realizing that the 2 hours was also artificially hampering their thinking.</p>
<p><span style="color: #000000;">Personally, I found the presentation glib and condescending, and the solutions immoral and dishonest. I&#8217;m hoping for good discussion about the issues here, but I would not recommend the video.</span></p></blockquote>
<p>I believe he thinks the solutions were immoral and dishonest because the first team initially charged a dollar for their services, when there was a free pump around the corner. However, that&#8217;s like saying Starbucks is immoral because they charge $4 dollars for milk and sugar. You can always go to the store, buy the ingredients and do it yourself.</p>
<p>Julian</p>
]]></content:encoded>
			<wfw:commentRss>http://monochromatical.com/index.php/2009/10/31/5-dollars-and-two-hours/feed/</wfw:commentRss>
		</item>
		<item>
		<title>10 tips to accelerate your web start-up</title>
		<link>http://monochromatical.com/index.php/2009/03/01/10-tips-to-accelerate-your-web-start-up/</link>
		<comments>http://monochromatical.com/index.php/2009/03/01/10-tips-to-accelerate-your-web-start-up/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 01:04:39 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
		
		<category><![CDATA[projects]]></category>

		<category><![CDATA[statups]]></category>

		<guid isPermaLink="false">http://monochromatical.com/?p=103</guid>
		<description><![CDATA[Here&#8217;s a quick list I came up with that should help you speed up development.

Do you really need to create another &#8220;users&#8221; database or can you just use some other service&#8217;s vast db of friend-to-friend connections. Think facebook connect.
Do you even need to have your users login to you use your services. Why can&#8217;t it [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick list I came up with that should help you speed up development.</p>
<ol>
<li>Do you really need to create <strong>another &#8220;users&#8221; database</strong> or can you just use some other service&#8217;s vast db of friend-to-friend connections. Think <a href="http://developers.facebook.com/connect.php">facebook connect</a>.</li>
<li>Do you even <strong>need to have your users login</strong> to you use your services. Why can&#8217;t it be anonymous.</li>
<li>This is no brainer. <strong>Use frameworks! </strong>Such as <a href="http://codeigniter.com/">CodeIgniter</a> for Php, <a href="http://www.djangoproject.com/">Django</a> for Python, <a href="http://rubyonrails.org/">Rails</a> for Ruby, <a href="http://jquery.com/">jQuery</a> for Javascript&#8230; If you want to develop an app quickly and you&#8217;re idea is not so crazy that it can&#8217;t use a framework, why would you roll your own.</li>
<li>Relating to number 3, make sure you <strong>learn your tools well</strong>, because you might end up coding something up that has already been done, and that would be a waste of your time and money.</li>
<li><strong>Use a css framework</strong>, for example <a href="http://code.google.com/p/blueprintcss/">Blueprint</a>, to help you quickly create a grid based layout and try to use they&#8217;re classes as often as possible, while trying to avoid creating you&#8217;re own, as much as possible. Sure this limits you in certain things you can do, but it sure will keep it simple.</li>
<li>Take some time and <strong>see if anyone else has already developed</strong> what you&#8217;re thinking of rolling on your own. The amount of the you search until you find your solution, will be much less then actually creating it, maintaining it, debugging it, testing it and so on. Reuse code.</li>
<li><strong>Don&#8217;t try to boil the ocean.</strong> If you&#8217;re idea involves solving multiple problems then be careful. The saying: jack of all trades, master of none wasn&#8217;t said for no reason. Do one thing and do it so well that people will beg you to use your site.</li>
<li>You really <strong>don&#8217;t need to have a blog</strong> for your startup in the beginning. Set one up after you finish your product.</li>
<li>Your startup idea can maybe be morphed a little to <strong>use another very successful site&#8217;s API</strong>. Then the people that are using that service might very well like what you&#8217;re building. For example, building an app on top of Twitter or Flickr.</li>
<li><strong>Avoid creating complex relational database schemes</strong> when a less normalized version could do the trick. Or try out one of these newfangled schema-less free DB solutions: <a href="http://couchdb.apache.org/">couchDB</a> or <a href="http://tokyocabinet.sourceforge.net/spex-en.html">TokyoCabinet </a></li>
<p>Now get to work!</p>
<p>Julian</ol>
]]></content:encoded>
			<wfw:commentRss>http://monochromatical.com/index.php/2009/03/01/10-tips-to-accelerate-your-web-start-up/feed/</wfw:commentRss>
		</item>
		<item>
		<title>You need a white chocolate mocha.</title>
		<link>http://monochromatical.com/index.php/2009/02/19/you-need-a-white-chocolate-mocha/</link>
		<comments>http://monochromatical.com/index.php/2009/02/19/you-need-a-white-chocolate-mocha/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 05:55:58 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
		
		<category><![CDATA[projects]]></category>

		<category><![CDATA[statups]]></category>

		<guid isPermaLink="false">http://monochromatical.com/?p=88</guid>
		<description><![CDATA[
FYI this post is in regards to startups/projects-in-general.
I&#8217;ve never started a successful company so take my startup advice with a grain of salt. However, I have tried a few different things over the years and gained some invaluable experience. My goal is to share what I&#8217;ve learned in hopes that it will cause you to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://monochromatical.com/index.php/2009/02/19/you-need-a-white-chocolate-mocha/"><img src="http://monochromatical.com/wp-content/uploads/2009/02/img_1030.jpg" alt="" title="starbucks" width="450" height="300" class="alignnone size-full wp-image-91" /></a></p>
<p>FYI this post is in regards to startups/projects-in-general.</p>
<p>I&#8217;ve never started a successful company so take my startup advice with a grain of salt. However, I have tried a few different things over the years and gained some invaluable experience. My goal is to share what I&#8217;ve learned in hopes that it will cause you to take a step back and go, snap son, I&#8217;m dealing with the same thing! We&#8217;re all different people though and we work in different ways, so I don&#8217;t know, what doesn&#8217;t work for me, might really work for you. </p>
<p>If you&#8217;re like me, you get a little excited about certain startup/project ideas and it starts infinite looping in your mind to the extent that you have to tell every single person you meet your great idea. Don&#8217;t get me wrong, it&#8217;s not bad to be passionate about something. On the contrary, the ambition drives you to work hard and execute your plan. The problem stems from the fact that as the days go by, a routine is formed and set into place. Because its difficult to not take the path of least resistance, the routine goes on. By that, I mean that it&#8217;s more comfortable to do what you know will work. </p>
<p>You go to Starbucks and you think to yourself, hmm, well I always get a cup of coffee with half&#038;half and two packets of sugar-in-the-raw because thats what I&#8217;ve always done. Maybe I should try this White Chocolate Mocha thing. I dunno though, it sounds kinda of whack, but then you buy it, take a sip and it&#8217;s like a kick-in-the-teeth good! You step out of your comfort zone, take a risk and discover something amazing. </p>
<p>Analogously, you go into work everyday and you sit in your cubicle or you go to your favorite coffee shop and bust out your Macbook Pro and begin to hack away at your idea. This goes on for quite sometime, maybe week after week, month after month and you get a boat load of stuff done. But just like how a frog doesn&#8217;t feel its being boiled as the water is slowly being turned up, so it is with you. You&#8217;re blind to the drop in your productivity and the stifling of your creativity. What you need is a White Chocolate Mocha my friend. You need to take a deep breath of fresh air. You need a slap in the face. I dare you to not work on your project, but rather just go and take a really long walk somewhere you&#8217;ve never been before. Go take some pictures and put them up on flickr. Get an Arduino and make it play Mary had a little lamb. As you start to do these things, watch how your brain starts to subconsciously think about your projects in all these crazy new ways. And guess what. That day or two days that you took off to just do whatever have payed off five fold because you were able to look at your problems in a new light, from a different perspective, and solve them in two days rather than ten days. </p>
]]></content:encoded>
			<wfw:commentRss>http://monochromatical.com/index.php/2009/02/19/you-need-a-white-chocolate-mocha/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Arduino Duemilanove!</title>
		<link>http://monochromatical.com/index.php/2009/02/15/arduino-duemilanove/</link>
		<comments>http://monochromatical.com/index.php/2009/02/15/arduino-duemilanove/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 08:12:21 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
		
		<category><![CDATA[hardware hacking]]></category>

		<guid isPermaLink="false">http://monochromatical.com/?p=69</guid>
		<description><![CDATA[
I just got a brand-spankin&#8217; new Arduino Duemilanove from
Adafruit Industries and I just had to share the excitement. I downloaded their IDE and installed a simple program that pulse width modulates pin 9 making the LED fade in and out. The board can be powered either from the usb, the power jack or an external [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://monochromatical.com/index.php/2009/02/15/arduino-duemilanove/"><img src="http://monochromatical.com/wp-content/uploads/2009/02/img_10221.jpg" alt="Arduino Duemilanove" title="Arduino Duemilanove" width="450" height="299" class="size-full wp-image-75" /></a></p>
<p>I just got a brand-spankin&#8217; new Arduino Duemilanove from<br />
<a href="http://www.adafruit.com/">Adafruit Industries</a> and I just had to share the excitement. I downloaded their IDE and installed a simple program that pulse width modulates pin 9 making the LED fade in and out. The board can be powered either from the usb, the power jack or an external battery, which the board automatically selects depending on which one&#8217;s plugged in. I&#8217;m quite a fan of just having to plug in one cable, that being the usb, for power and data transfer. Thanks to their from-the-factory installed bootloader, uploading new code is a piece of cake. It takes care of copying code directly into flash and executing it when the device fires up. Simplicity is beautiful isn&#8217;t it? Here are some specs taken from the <a href="http://arduino.cc/en/Main/ArduinoBoardDuemilanove">arduino.cc</a> site:</p>
<table border="0">
<tbody>
<tr>
<td align="left">Microcontroller</td>
<td align="left"><span class="wikiword">ATmega168</span></td>
</tr>
<tr>
<td align="left">Operating Voltage</td>
<td align="left">5V</td>
</tr>
<tr>
<td align="left">Input Voltage (recommended)</td>
<td align="left">7-12V</td>
</tr>
<tr>
<td align="left">Input Voltage (limits)</td>
<td align="left">6-20V</td>
</tr>
<tr>
<td align="left">Digital I/O Pins</td>
<td align="left">14  (of which 6 provide PWM output)</td>
</tr>
<tr>
<td align="left">Analog Input Pins</td>
<td align="left">6</td>
</tr>
<tr>
<td align="left">DC Current per I/O Pin</td>
<td align="left">40 mA</td>
</tr>
<tr>
<td align="left">DC Current for 3.3V Pin</td>
<td align="left">50 mA</td>
</tr>
<tr>
<td align="left">Flash Memory</td>
<td align="left">16 KB (of which 2 KB used by bootloader)</td>
</tr>
<tr>
<td align="left">SRAM</td>
<td align="left">1 KB</td>
</tr>
<tr>
<td align="left">EEPROM</td>
<td align="left">512 bytes</td>
</tr>
<tr>
<td align="left">Clock Speed</td>
<td align="left">16 <span class="wikiword">MHz</span></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://monochromatical.com/index.php/2009/02/15/arduino-duemilanove/feed/</wfw:commentRss>
		</item>
		<item>
		<title>NSInvocation troubles</title>
		<link>http://monochromatical.com/index.php/2009/02/07/nsinvocation-troubles/</link>
		<comments>http://monochromatical.com/index.php/2009/02/07/nsinvocation-troubles/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 02:15:41 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
		
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://monochromatical.com/?p=65</guid>
		<description><![CDATA[I&#8217;ve been working on an iPhone app and I ran into some trouble using NSInvocation while trying to invoke a function. I finally got it to work and so I thought I would share it with the world. Just a side-note, the mistake I made was quite noob. 
To create the invocation:
Where t is of [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on an iPhone app and I ran into some trouble using NSInvocation while trying to invoke a function. I finally got it to work and so I thought I would share it with the world. Just a side-note, the mistake I made was quite noob. </p>
<p>To create the invocation:</p>
<p>Where t is of type (id) and s is of type (SEL).</p>
<p><code><br />
	NSMethodSignature * sig = [[t class] instanceMethodSignatureForSelector:s];<br />
	invocation = [NSInvocation invocationWithMethodSignature:sig];<br />
	[invocation setTarget:t];<br />
	[invocation setSelector:s];<br />
	[invocation retain];<br />
</code></p>
<p>Then to invoke the function:</p>
<p><code><br />
        [invocation invoke];<br />
</code></p>
<p>Here is the function I was trying to invoke:</p>
<p><code><br />
        - (void)_someFunc:(CocosNode *)node data:(void*)someData;<br />
</code></p>
<p>Now, the code NSInvocation code above is wrapped up in a class<br />
and you have to pass in (id) t, (SEL) s and (void*)data. Then it takes<br />
that info and it creates the invocation above. So I passed in:</p>
<p><code><br />
        [CallFuncND actionWithTarget:self selector:@selector(_someFunc) data:someData]<br />
</code></p>
<p>See the mistake?  The selector I passed in was just _someFunc instead of _someFunc:data:<br />
and so when it created in the method signature it wasn&#8217;t able to find the method and so<br />
it returned nil, which was being passed into NSInvocation and so it seg faulted. This happened<br />
because I&#8217;m still used to C and C++ where you a function is defined as  int _funcName(param1, param2). So the fixed code is actually:</p>
<p><code><br />
        [CallFuncND actionWithTarget:self selector:@selector(_someFunc:data:) data:someData]<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://monochromatical.com/index.php/2009/02/07/nsinvocation-troubles/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ContactSwap is now available!</title>
		<link>http://monochromatical.com/index.php/2008/12/26/contactswap-is-now-available/</link>
		<comments>http://monochromatical.com/index.php/2008/12/26/contactswap-is-now-available/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 08:43:01 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
		
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://monochromatical.com/?p=51</guid>
		<description><![CDATA[ Meet someone new and want an easy way to swap your contacts? ContactSwap allows you to exchange your contact information with other iPhones or iPod touches over 3G, edge or WiFi. All you got to do is create a contact for yourself, which gets stored in your address book, and then locate nearby iPhones, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=300533999&#038;mt=8"><img class="size-medium wp-image-42 alignright" style="float:left; margin-right: 15px; " title="contactswap" src="http://monochromatical.com/wp-content/uploads/2008/12/contactswap.png" alt="" width="202" height="138" /></a> Meet someone new and want an easy way to swap your contacts? ContactSwap allows you to exchange your contact information with other iPhones or iPod touches over 3G, edge or WiFi. All you got to do is create a contact for yourself, which gets stored in your address book, and then locate nearby iPhones, select who you want to swap with and shake your phone (or press shake) and it&#8217;ll send it over lickity split. <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=300533999&#038;mt=8">You can get it on iTunes!</a> </p>
<p>Here&#8217;s a video of it in action. Some random guy in Japan made the video, I found it by searching for conactSwap on google.</p>
<p><script src="http://visionmovie.ameba.jp/mcj.php?id=96s52qg75nW:bhad:Oi:dc:yoEsoOfpqzMOlf7/xmLajidVNggKJUd:Dx/O:yy:PQ:WBQxEhBZUPONnhckOmiMq/&amp;width=420&amp;height=315&amp;skin=gray"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://monochromatical.com/index.php/2008/12/26/contactswap-is-now-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>be careful what you unlink</title>
		<link>http://monochromatical.com/index.php/2008/12/02/be-careful-what-you-unlink/</link>
		<comments>http://monochromatical.com/index.php/2008/12/02/be-careful-what-you-unlink/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 04:06:12 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://monochromatical.com/?p=30</guid>
		<description><![CDATA[So I wanted to update my libc by linking to a newer version of the library. Right. 
Long story short, I unlinked it and everything stopped working. No more ls, mv, ln. Nothing. So after frantically searching on google I stumbled upon this:
&#62; export LD_PRELOAD=/lib/libc.so.5.0.9 if you&#8217;re using bash,
&#62; setenv LD_PRELOAD /lib/libc.so.5.0.9 for tcsh
You have to [...]]]></description>
			<content:encoded><![CDATA[<p>So I wanted to update my libc by linking to a newer version of the library. Right. </p>
<p>Long story short, I unlinked it and everything stopped working. No more ls, mv, ln. Nothing. So after frantically searching on google I stumbled upon this:</p>
<p><em>&gt; export LD_PRELOAD=/lib/libc.so.5.0.9 if you&#8217;re using bash,</em><br />
<em>&gt; setenv LD_PRELOAD /lib/libc.so.5.0.9 for tcsh</em></p>
<p>You have to point the variable to a valid libc library and it&#8217;ll temporarily fix the prob. After I did this, I linked it back to the original libc and everything worked perfectly. The funny thing is, I thought there was a newer version in /usr/lib, but it turned out that it wasn&#8217;t valid. So I just pulled the hair out of my head for no reason while learning to never unlink a library ever again.</p>
<p>I&#8217;m such a n00b.</p>
]]></content:encoded>
			<wfw:commentRss>http://monochromatical.com/index.php/2008/12/02/be-careful-what-you-unlink/feed/</wfw:commentRss>
		</item>
		<item>
		<title>up and running&#8230;</title>
		<link>http://monochromatical.com/index.php/2008/11/23/up-and-running/</link>
		<comments>http://monochromatical.com/index.php/2008/11/23/up-and-running/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 07:19:10 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://monochromatical.com/?p=6</guid>
		<description><![CDATA[Finally got a blog up and running. Please stand by&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Finally got a blog up and running. Please stand by&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://monochromatical.com/index.php/2008/11/23/up-and-running/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
