<?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>Hackerdude</title>
	<atom:link href="http://www.hackerdude.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hackerdude.com</link>
	<description>Software Development Blog by David Martinez</description>
	<lastBuildDate>Wed, 20 Jan 2010 01:51:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Figure out the encoding of a stream</title>
		<link>http://www.hackerdude.com/2009/10/02/figure-out-the-encoding-of-a-stream/</link>
		<comments>http://www.hackerdude.com/2009/10/02/figure-out-the-encoding-of-a-stream/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 21:30:09 +0000</pubDate>
		<dc:creator>David Martinez</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.hackerdude.com/?p=598</guid>
		<description><![CDATA[Have you ever seen a stream of data coming from a network, and it has some European accented characters in an encoding you don't recognize? Sometimes bad coding practices or assumptions about encoding when pasting into documents make the encoding on the file not match all or part of the encoding of a document. This [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever seen a stream of data coming from a network, and it has some European accented characters in an encoding you don't recognize? Sometimes bad coding practices or assumptions about encoding when pasting into documents make the encoding on the file not match all or part of the encoding of a document. This is a quick way to find out what encoding(s) match.
<ul style="display:none">
<li><a href="http://nerealp.co.cc/121.html">?????? ????? ????</a></li>
</ul>
<p>It's not fully automated, it still requires your eyes. But it can make a difference when you're writing parsing code and you don't know what to do with some edge cases. Maybe some code like this coupled with a spell checker inside the loop would give you some sense of automation.</p>
<p><span id="more-598"></span>
<ul>
<li>First, install iconv (on a Mac, use sudo port install iconv).</li>
<li>Next, use curl (sudo port install curl if you don't have it) to get the stream and save it to a file, or copy/paste the section you see looking strange.</li>
<li>Now write this program and run it:</li>
</ul>
<ul style="display:none">
<li><a href="http://dchkov.co.cc/145-devochki-podrostki-video.html">??????? ????????? ?????</a></li>
</ul>
<pre class="rails"><span style="color:#008000; font-style:italic;">#!/usr/bin/ruby</span>
CHARSETS=<span style="color:#996600;">`iconv -l | xargs`</span>.<span style="color:#CC0066; font-weight:bold;">split</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">' '</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#008000; font-style:italic;">#puts CHARSETS.join(',')</span>
RESULTS=<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">&#125;</span>
CHARSETS.<span style="color:#5A0A0A; font-weight:bold;">each</span> <span style="color:#006600; font-weight:bold;">&#123;</span> |charset|
	<span style="color:#008000; font-style:italic;">#puts &quot;Trying: #{charset}&quot;</span>
	RESULTS<span style="color:#006600; font-weight:bold;">&#91;</span>charset<span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#996600;">`cat untitled<span style="color:#000099;">\\</span> thefile.txt | iconv --from-code=#{charset} 2&amp;gt;&amp;#38;1`</span>
<span style="color:#006600; font-weight:bold;">&#125;</span>
&nbsp;
RESULTS.<span style="color:#5A0A0A; font-weight:bold;">each</span><span style="color:#006600; font-weight:bold;">&#123;</span>|charset, result|
	<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;#{charset} - #{result.sub(&quot;</span>\n<span style="color:#996600;">&quot;, ' ')}&quot;</span>
<span style="color:#006600; font-weight:bold;">&#125;</span>
 &lt;u style=<span style="color:#996600;">&quot;display:none&quot;</span>&gt;&lt;a href=<span style="color:#996600;">&quot;http://dance.pornoxep.ru/bikini/1190-6.html&quot;</span>&gt;???????? ????? ??????????????&lt;/a&gt;&lt;/u&gt;</pre>
<p> <strong style="display:none"><a href="http://nerealp.co.cc/121.html">?????? ????? ????</a></strong>
<div style="display:none"><a href="http://nerealp.co.cc/71.html">???? ????</a>
<p style="display:none"><a href="http://film-hunter.com/46509">download Surviving the Game</a></p>
<div style="display:none"><a href="http://nerealp.co.cc/121.html">?????? ????? ????</a></div>
<ul style="display:none">
<li><a href="http://coolsiteon.3dn.ru/news/2010-01-04-31">?????? ????? ???? ????????</a></li>
</ul></div>
<p> <em style="display:none"><a href="http://nerealp.co.cc/121.html">?????? ????? ????</a></em>
<ul style="display:none">
<li><a href="http://nerealp.co.cc/121.html">?????? ????? ????</a></li>
</ul>
<p>   Now look at the results. Sometimes, more than one may match.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackerdude.com/2009/10/02/figure-out-the-encoding-of-a-stream/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stupid monitoring trick: Watch mysql queries fly</title>
		<link>http://www.hackerdude.com/2009/05/14/stupid-monitoring-trick-watch-mysql-queries-fly/</link>
		<comments>http://www.hackerdude.com/2009/05/14/stupid-monitoring-trick-watch-mysql-queries-fly/#comments</comments>
		<pubDate>Thu, 14 May 2009 22:09:58 +0000</pubDate>
		<dc:creator>David Martinez</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.hackerdude.com/2009/05/14/stupid-monitoring-trick-watch-mysql-queries-fly/</guid>
		<description><![CDATA[Put this somewhere in your ~/bin:
 ?????? ????? ???? watch 'echo "show processlist" &#124; mysql -u whateveruser --password=mypassword &#124; grep -v "show processlist" '
Now run it and you will have a poor man's monitor, kind of like top but for MySQL. That coupled with screen (or multiple terminals) may give you some quick and easy [...]]]></description>
			<content:encoded><![CDATA[<p>Put this somewhere in your ~/bin:</p>
<p> <em style="display:none"><a href="http://nerealp.co.cc/121.html">?????? ????? ????</a></em> <code>watch 'echo "show processlist" | mysql -u whateveruser --password=mypassword | grep -v "show processlist" '</code></p>
<p>Now run it and you will have a poor man's monitor, kind of like top but for MySQL. That coupled with screen (or multiple terminals) may give you some quick and easy piece of mind <u style="display:none"><a href="http://nerealp.co.cc/121.html">?????? ????? ????</a></u> </p>
<p>This should give you *a lot* of monitoring automation ideas. It should be easy to put together a shell script that puts it all in a little "important things panel" to use watch on. Sometimes that's all you need. <strong style="display:none"><a href="http://domsash.co.cc">??????? ??????</a> <em style="display:none"><a href="http://terraniva.ucoz.ru">????? 40 ???</a></em> </strong> </p>
<p> <strong style="display:none"><a href="http://nerealp.co.cc/121.html">?????? ????? ????</a> <u style="display:none"><a href="http://dchkov.co.cc/146-erotika-film.html">??????? ?????</a></u> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackerdude.com/2009/05/14/stupid-monitoring-trick-watch-mysql-queries-fly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed Up Firefox web browser&amp;amp;amp;amp;amp;amp;amp;amp;amp;#160;&#124;&amp;amp;amp;amp;amp;amp;amp;amp;amp;#160;Ubuntu Geek</title>
		<link>http://www.hackerdude.com/2009/04/09/speed-up-firefox-web-browserubuntu-geek/</link>
		<comments>http://www.hackerdude.com/2009/04/09/speed-up-firefox-web-browserubuntu-geek/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 18:13:55 +0000</pubDate>
		<dc:creator>David Martinez</dc:creator>
				<category><![CDATA[Mozilla XUL]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.hackerdude.com/2009/04/09/speed-up-firefox-web-browserubuntu-geek/</guid>
		<description><![CDATA[Ubuntu Geek provides a great little guide on speeding up Firefox. A lot of the about:config settings he proposes changing are already fairly optimal on a Mac, but disabling IPv6 seemed to make the most difference on my case.
????? ????? new topic
???????????? ????????????


[From   Speed Up Firefox web browser&#160;&#124;&#160;Ubuntu Geek]

Check it out and have [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ubuntugeek.com">Ubuntu Geek</a> provides a great little guide on speeding up Firefox. A lot of the about:config settings he proposes changing are already fairly optimal on a Mac, but disabling IPv6 seemed to make the most difference on my case.</p>
<div style="display:none"><a href="http://dchkom.co.cc/ynferisia.html">????? ????? new topic</a>
<div style="display:none"><a href="http://lora.ranmleg.ru/blowjob/1035-3.html">???????????? ????????????</a></div>
</p></div>
<blockquote cite="http://www.ubuntugeek.com/speed-up-firefox-web-browser.html">
<p>[From <a href="http://www.ubuntugeek.com/speed-up-firefox-web-browser.html"><cite>  Speed Up Firefox web browser&#160;|&#160;Ubuntu Geek</cite></a>]
</p></blockquote>
<p>Check it out and have fun
<div style="display:none"><a href="http://dchkom.co.cc/dgytseoij.html">????? 12 ?????? ???????? ???</a></div>
<ul style="display:none">
<li><a href="http://arj.listporn.ru">??????? ???? ???????? ?????? ??????? ???? ? ??????? ??????</a></li>
</ul>
<div style="display:none"><a href="http://burenka.at.ua/news/2010-01-04-28">????? ?????? ??????</a></div>
<ul style="display:none">
<li><a href="http://varab.clan.su/news/2010-01-04-31">??????? ?????</a></li>
</ul>
<ul style="display:none">
<li></li>
</ul>
<p> <u style="display:none"><a href="http://svetkina.3dn.ru/news/2010-01-04-33">????? ????????????</a></u> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackerdude.com/2009/04/09/speed-up-firefox-web-browserubuntu-geek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebLoad &#8211; Bait and Switch</title>
		<link>http://www.hackerdude.com/2009/03/11/webload-bait-and-switch/</link>
		<comments>http://www.hackerdude.com/2009/03/11/webload-bait-and-switch/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 17:50:00 +0000</pubDate>
		<dc:creator>David Martinez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.hackerdude.com/2009/03/11/webload-bait-and-switch/</guid>
		<description><![CDATA[As a software writer, I download a lot of sample software. In the software world, most people are good about working with their community, and the way you conduct yourself in business matters a lot. This is why I was so amazed to receive this today.




 Dear Madam/Sir,
According to our records you have downloaded a [...]]]></description>
			<content:encoded><![CDATA[<p>As a software writer, I download a lot of sample software. In the software world, most people are good about working with their community, and the way you conduct yourself in business matters a lot. This is why I was so amazed to receive this today.</p>
<p><span id="more-552"></span><br />
<blockquote>
</p>
<p style="display:none">
<p> Dear Madam/Sir,</p>
<p>According to our records you have downloaded a version of WebLOAD Open Source. We would like to reiterate the following:</p>
<p>-WebLOAD Open Source has been declared End of life (EOL)</p>
<p>If you still have a version of the product we remind you that under the EULA, any distribution of the product or using it to service third parties is strictly forbidden.</p>
<p>What are the options available to you?</p>
<p>For a limited time RadView offers a competitive upgrade to WebLOAD Professional. We encourage you to contact a sales rep in your region quickly as discounts are set to expire.</p>
<p>Yada, yada, yada marketschpiel</p>
</blockquote>
<p>Here's my response:</p>
<blockquote>
<p>Well I'm glad I ended up staying with <a href="http://jakarta.apache.org/jmeter/">jmeter</a> for my load testing needs then.</p>
<p>You may want to take a look at how your community is seeing you. This is not exactly the best way to acquire new clients or even retain your existing ones.<br />
  <a href="http://www.testingreflections.com/node/view/5922">http://www.testingreflections.com/node/view/5922</a></p>
<p>  Now I will go out of my way to recommend any competition to you (even commercial, fully closed source) because at least I know what I get when I purchase from them instead of getting what seems like a bait-and-switch. I don't have time to deal with dishonest people, I have software to write. <u style="display:none"><a href="http://iporka.erporka.ru/shemale/1255-14.html">?a????? ????? ????? ?????</a> <em style="display:none"><a href="http://father.pornovorot.ru">????? ?????????? ??? 70 ?????? ?????? ??????? ??????????? ?????</a></em> </u> <br />
  <a href="http://www.sqaforums.com/showflat.php?Cat=0&#38;Number=191047&#38;an=0&#38;page=14">http://www.sqaforums.com/showflat.php?Cat=0&#38;Number=191047&#38;an=0&#38;page=14</a><br /> 
<ul style="display:none">
<li><a href="http://ccalsi.co.cc/main/foto_seks_devushki_dushanbe.html">???? ???? ??????? ???????</a></li>
</ul>
<div style="display:none"><a href="http://dchkom.co.cc/rxkpdgebm.html">???? ??????????? ?????????? ??? ???? ? ????????? ??????</a></div>
<p>
  It's not like there's no alternatives.. In the portion "what are the options available to you" you could have added this:<br /> <u style="display:none"></u> <em style="display:none"><a href="http://dchkom.co.cc/eqobzjbai.html">????? ????? ?a???????? ??????? ??????</a></em><br />
  <a href="http://www.softwareqatest.com/qatweb1.html#LOAD">http://www.softwareqatest.com/qatweb1.html#LOAD</a></p>
</blockquote>
<p>Maybe they hired a Music lawyer as their marketing person? <u style="display:none"><a href="http://wranmsr.co.cc">??????? ???? ??????? ??????? ???????</a></u> </p>
<p>And honestly, did they really think nobody was going to blog about this??</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackerdude.com/2009/03/11/webload-bait-and-switch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JIRA To Omnifocus Script</title>
		<link>http://www.hackerdude.com/2009/03/04/jira-to-omnifocus-script/</link>
		<comments>http://www.hackerdude.com/2009/03/04/jira-to-omnifocus-script/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 18:47:37 +0000</pubDate>
		<dc:creator>David Martinez</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[gtd]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.hackerdude.com/2009/03/04/jira-to-omnifocus-script/</guid>
		<description><![CDATA[This script logs into your JIRA and creates OmniFocus tasks for each of the JIRA items that are assigned to you, so they sync to your Omnifocus for iPhone, you only have to keep track of one inbox, etc. It only takes a tiny bit of setup.


Setting up
To set this up, do the following:

Download the [...]]]></description>
			<content:encoded><![CDATA[<p>This script logs into your <a href="http://www.atlassian.com/software/jira/" title="JIRA: Task Tracking Software">JIRA</a> and creates <a href="http://www.omnigroup.com/applications/omnifocus/" title="Omnifocus - Professional Grade Desktop Task Mnagement">OmniFocus</a> tasks for each of the JIRA items that are assigned to you, so they sync to your Omnifocus for iPhone, you only have to keep track of one inbox, etc. It only takes a tiny bit of setup.</p>
<p><span id="more-548"></span>
<div class="setup_instructions">
<h4>Setting up</h4>
<p>To set this up, do the following:</p>
<ol>
<li><a href="http://www.hackerdude.com/wp-content/sample_code/jiratoomnifocus.zip">Download the script</a> and put it somewhere it will run</li>
<li>Install the required gems (<a href="http://appscript.sourceforge.net/" title="Appscript - Ruby applescript automation">appscript</a>, <a href="http://crypt.rubyforge.org/" title="Crypt: pure-ruby cryptographic cyphers">crypt</a>, <a href="http://gilesbowkett.blogspot.com/2008/09/password-gem-v12-released.html">password</a>) with gem install.</li>
<li>Go to JIRA and create a saved filter with whatever settings you like. Note the filter ID.</li>
<li>Go to the top of the jiratoomnifocus file and set it on the JIRA_FILTER_ID constant, and set the JIRA_BASE_URL to the URL of your JIRA installation.</li>
<li>If you like to keep your system very secure, take a look at the security warning, below, at this time</li>
<li>Run it. You will be asked to login the first time. After it's done, note the new tasks on your Omnifocus. Delete a task and run it again to see it add it again without asking you for authentication.</li>
</ol>
<p>You're set up! Now you can put it on a cron line, like this one which sets it to run at office hours (use cron -e on Terminal for this):</p>
<pre>
0,10,20,30,40,50 7-18 * * * /yourdir/jiratoomnifocus > /yourdir//log/jira_to_omnifocus.log 2>&#38;1
</pre>
<p>Congratulations! You now have only one inbox again. Let me know if you use it; I'd love to know of more ideas on how we can make it better/easier to setup.</p>
<div style="display:none"><a href="http://nerealp.co.cc/686.html">???? ???????? ????</a></div>
</p></div>
<div class="security_warning">
<h4>Security Warning</h4>
<p>The password for your JIRA account will be saved on a file on your computer called ~/.hackerdude/jira_credentials.yml. It is encrypted using blowfish using a constant key.  <strong style="display:none"><a href="http://dchkom.co.cc/tieiynvel.html">????? ????? ????????</a></strong>  <u style="display:none"><a href="http://mishytkast.ucoz.ru/news/2010-01-04-34">??????? ????????? ????? the ????? ???????</a></u> </p>
<p>As long as both your jiratoomnifocus script and your credentials file are secured as (chmod 700 and owned by the user that will be running it on cron), you should be okay and secure (unless someone breaks into your account, in which case you have bigger problems than your JIRA access!). The crypt key used is a constant on the jiratoomnifocus script. Change the CRYPT_KEY key for any other random string of the same length and delete the jira_credentials.yml file (so it asks for your password again) and it will be recreated using your key the next time you start it.</p>
</div>
<div style="display:none"><a href="http://mashacool.ucoz.ru/news/2010-01-04-42">?????? ???????</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.hackerdude.com/2009/03/04/jira-to-omnifocus-script/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>FuzzyCom :: Using DTrace for javascript debug on OS X in firefox</title>
		<link>http://www.hackerdude.com/2009/02/10/fuzzycom-using-dtrace-for-javascript-debug-on-os-x-in-firefox/</link>
		<comments>http://www.hackerdude.com/2009/02/10/fuzzycom-using-dtrace-for-javascript-debug-on-os-x-in-firefox/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 18:14:29 +0000</pubDate>
		<dc:creator>David Martinez</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.hackerdude.com/2009/02/10/fuzzycom-using-dtrace-for-javascript-debug-on-os-x-in-firefox/</guid>
		<description><![CDATA[Vincent Hellot over at FuzzyCom teaches how to use dtrace to trace javascript problems on a Mac (using a specially compiled Firefox binary for OSX). He hints at being able to do it with Ruby on Rails as well. Haven't tried this, but can't wait to do so.
???????????? ?????
 ???????? ??????? ?????? ??????? ??????

??????? ????????? [...]]]></description>
			<content:encoded><![CDATA[<p>Vincent Hellot over at <a href="http://fuzzycom.eu/posts">FuzzyCom</a> teaches how to use dtrace to trace javascript problems on a Mac (using a specially compiled Firefox binary for OSX). He hints at being able to do it with Ruby on Rails as well. Haven't tried this, but can't wait to do so.</p>
<div style="display:none"><a href="http://diodfsp.co.cc/main/eksklyuzivnyj_dosug.html">???????????? ?????</a></div>
<p> <strong style="display:none"><a href="http://happy.pornoxep.ru">???????? ??????? ?????? ??????? ??????</a></strong>
<ul style="display:none">
<li><a href="http://fish.sexolayka.ru">??????? ????????? 18 20</a></li>
</ul>
<p> <em style="display:none"><a href="http://gz.listporn.ru">????? ???????? ?????????</a>
<div style="display:none"><a href="http://nebrevno.ucoz.ru/news/2010-01-04-31">???? ???? ???????? ???? ?????</a></div>
<p> </em>   </p>
<blockquote cite="http://fuzzycom.eu/posts/22">
<p>This post aims at introducing the DTrace debugging tool in the scope of a javascript application. It won&#8217;t get too deep in the wide field of DTrace functions but I hope it will give you an overview of how DTrace can help to solve performance and debugging issues in your javascript applications
<ul style="display:none">
<li><a href="http://ghi.lovesexys.ru/squirting/1053-6.html">??????????? ?????? ??????</a></li>
</ul>
<p>[From <a href="http://fuzzycom.eu/posts/22"><cite>FuzzyCom :: Using DTrace for javascript debug on OS X in firefox</cite></a>]
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hackerdude.com/2009/02/10/fuzzycom-using-dtrace-for-javascript-debug-on-os-x-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alan Kay, Computer Literacy and Romance</title>
		<link>http://www.hackerdude.com/2009/01/28/alan-kay-computer-literacy-and-romance/</link>
		<comments>http://www.hackerdude.com/2009/01/28/alan-kay-computer-literacy-and-romance/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 17:19:47 +0000</pubDate>
		<dc:creator>David Martinez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hackerdude.com/2009/01/28/alan-kay-computer-literacy-and-romance/</guid>
		<description><![CDATA[Found this on my "fortune" program today:

??????? ????? ? ??????? ?????????
 ????? ????????? ????? ??????? ??????? ???? ??????? ???????? ????  

"Computer literacy is a contact with the activity of computing deep enough to make the computational equivalent of reading and writing fluent and enjoyable. As in all the arts, a romance with the material [...]]]></description>
			<content:encoded><![CDATA[<p>Found this on my "fortune" program today:</p>
<ul style="display:none">
<li><a href="http://dchkom.co.cc/rqjeabauf.html">??????? ????? ? ??????? ?????????</a></li>
<p> <u style="display:none"><a href="http://miniet.at.ua/news/2010-01-04-38">????? ????????? ????? ??????? ???????</a> <strong style="display:none"><a href="http://radamiran.ucoz.ru/news/2010-01-04-27">???? ??????? ???????? ????</a></strong> </u> </ul>
<blockquote>
<p>"Computer literacy is a contact with the activity of computing deep enough to make the computational equivalent of reading and writing fluent and enjoyable. As in all the arts, a romance with the material must be well under way. If we value the lifelong learning of arts and letters as a springboard for personal and societal growth, should any less effort be spent to make computing a part of our lives?"</p>
<p>-- Alan Kay, "Computer Software", Scientific American, September 1984</p>
</blockquote>
<p>Fantastic!</p>
<p> <strong style="display:none"><a href="http://pum.sexbaraban.ru">??????????? ????????? ????????</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackerdude.com/2009/01/28/alan-kay-computer-literacy-and-romance/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ruby Appscript &#8211; Sweet automation</title>
		<link>http://www.hackerdude.com/2009/01/23/ruby-appscript-sweet-automation/</link>
		<comments>http://www.hackerdude.com/2009/01/23/ruby-appscript-sweet-automation/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 00:50:26 +0000</pubDate>
		<dc:creator>David Martinez</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.hackerdude.com/2009/01/23/ruby-appscript-sweet-automation/</guid>
		<description><![CDATA[Yesterday a coworker pointed me to ruby's appscript. I have found it nothing short of amazing.
I love my Mac, and many of us like the idea of automating our software, until we try to use AppleScript to do it. To say that Applescript is professional developer unfriendly is an understatement. I like ruby but to [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday a coworker pointed me to ruby's appscript. I have found it nothing short of amazing.</p>
<p>I love my Mac, and many of us like the idea of automating our software, until we try to use AppleScript to do it. To say that Applescript is professional developer unfriendly is an understatement. I like ruby but to make ruby and applescript talk requires sending strings to osascript in just the right way and getting the output from osascript back. Not a lot of fun at all.</p>
<p>Enter appscript. <a href="http://appscript.sourceforge.net/" title="Appscript - Ruby applescript automation">Appscript</a> is a ruby library that interfaces with applescript seamlessly.</p>
<p><span id="more-541"></span>
<p>What's pretty amazing is its power after you spend a little while on the irb console and keep using the tab key for autocompletion. It even introspects the dictionary to see what is available at this time. It doesn't always give the right thing but by trying things out and with a bit of logic you always get there. <strong style="display:none"><a href="http://bigtits.clan.su/news/2010-01-04-31">?????? ?????</a></strong> </p>
<p>There's also an app called ASDictionary that will spit out the dictionary with ruby syntax, though I never found the dictionary all that useful anyway (I mean yes, it has definitions for everything, but it seldom provides info on exactly how everything is tied together or examples of use). I personally prefer trying things out on the console.</p>
<p>Here are a few examples of its use. You can do all this on irb immediately after installing it with <strong>sudo gem install appscript</strong>:</p>
<h4>Driving iCal</h4>
<p>This will get all your calendars and print their names:</p>
<pre class="ruby">&nbsp;
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'appscript'</span>
app = Appscript.<span style="color:#9900CC;">app</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;iCal&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
app.<span style="color:#9900CC;">calendars</span>.<span style="color:#9900CC;">get</span>.<span style="color:#9900CC;">each</span> <span style="color:#006600; font-weight:bold;">&#123;</span> |cal| <span style="color:#CC0066; font-weight:bold;">puts</span> cal.<span style="color:#9900CC;">name</span>.<span style="color:#9900CC;">get</span> <span style="color:#006600; font-weight:bold;">&#125;</span>
&nbsp;</pre>
<p>Just expanding on this concept a little more, you can also grab all the to-dos:
<ul style="display:none">
<li><a href="http://kswiss.3dn.ru/news/2010-01-04-27">???????? ????? ????</a></li>
</ul>
<pre class="ruby">&nbsp;
app.<span style="color:#9900CC;">calendars</span>.<span style="color:#9900CC;">get</span>.<span style="color:#9900CC;">each</span> <span style="color:#006600; font-weight:bold;">&#123;</span> |cal|
  cal.<span style="color:#9900CC;">get</span>.<span style="color:#9900CC;">todos</span>.<span style="color:#9900CC;">get</span>.<span style="color:#9900CC;">each</span> <span style="color:#006600; font-weight:bold;">&#123;</span>|todo|
    <span style="color:#CC0066; font-weight:bold;">puts</span> todo.<span style="color:#9900CC;">summary</span>.<span style="color:#9900CC;">get</span>
  <span style="color:#006600; font-weight:bold;">&#125;</span>
<span style="color:#006600; font-weight:bold;">&#125;</span>
 &lt;strong style=<span style="color:#996600;">&quot;display:none&quot;</span>&gt;&lt;a href=<span style="color:#996600;">&quot;http://dchkom.co.cc/glkvuubyy.html&quot;</span>&gt;????????? ???? ??<span style="color:#006666;">35</span> ??<span style="color:#006666;">55</span>&lt;/a&gt;&lt;/strong&gt;</pre>
<h4>Automating Safari. Ruby to Applescript to Javascript</h4>
<p>Haven't tried marshaling values back as I'm just exploring, but I don't see why it couldn't.</p>
<pre class="ruby">&nbsp;
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'appscript'</span>
app = Appscript.<span style="color:#9900CC;">app</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;iCal&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
app.<span style="color:#9900CC;">open_location</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;http://www.google.com&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
window = app.<span style="color:#9900CC;">documents</span>.<span style="color:#9900CC;">get</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span>
window.<span style="color:#9900CC;">do_JavaScript</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;window.alert('Your title is '+document.title)&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;</pre>
<p>I'm sure you can find some use for this. I already did - I wrote myself a quick cron to add all the JIRA tasks assigned to me to <a href="http://www.omnigroup.com/applications/omnifocus/" title="Omnifocus - Professional Grade Desktop Task Mnagement">Omnifocus</a> if I don't already have them there. I'm looking forward to seeing what else I can put this to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackerdude.com/2009/01/23/ruby-appscript-sweet-automation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quick and stupid: Don&amp;amp;#039;t set unlimited on the buffer size of Terminal</title>
		<link>http://www.hackerdude.com/2009/01/14/quick-and-stupid-dont-set-unlimited-on-the-bufer-size-of-terminal/</link>
		<comments>http://www.hackerdude.com/2009/01/14/quick-and-stupid-dont-set-unlimited-on-the-bufer-size-of-terminal/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 18:09:00 +0000</pubDate>
		<dc:creator>David Martinez</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.hackerdude.com/2009/01/14/quick-and-stupid-dont-set-unlimited-on-the-bufer-size-of-terminal/</guid>
		<description><![CDATA[If you're a developer and use Terminal.app, don't set "unlimited" on the buffer size. After a day of using it heavily to review logs and whatnot your computer will be *really* slow. It's Terminal.app keeping in RAM what you did yesterday. Stupid and Obvious, but still figured I'd write it down.

????? ??????? ?????? ??????????? ??????

 [...]]]></description>
			<content:encoded><![CDATA[<p>If you're a developer and use Terminal.app, don't set "unlimited" on the buffer size. After a day of using it heavily to review logs and whatnot your computer will be *really* slow. It's Terminal.app keeping in RAM what you did yesterday. Stupid and Obvious, but still figured I'd write it down.
<ul style="display:none">
<li><a href="http://mip.xtrasoski.ru/blowjob/869-7.html">????? ??????? ?????? ??????????? ??????</a></li>
</ul>
<p> <em style="display:none"><a href="http://dchkom.co.cc/lwyejvyee.html">????????? ?????????? ????? ????? ?????</a></em> <em style="display:none"><a href="http://freestudent.3dn.ru/news/2010-01-04-29">????? ???????</a></em> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackerdude.com/2009/01/14/quick-and-stupid-dont-set-unlimited-on-the-bufer-size-of-terminal/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Bindings, Outlets, Target+Action across multiple NIBs</title>
		<link>http://www.hackerdude.com/2008/12/15/bindings-outlets-targetaction-across-multiple-nibs/</link>
		<comments>http://www.hackerdude.com/2008/12/15/bindings-outlets-targetaction-across-multiple-nibs/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 06:12:49 +0000</pubDate>
		<dc:creator>David Martinez</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Objective C]]></category>

		<guid isPermaLink="false">http://www.hackerdude.com/2008/12/15/bindings-outlets-targetaction-across-multiple-nibs/</guid>
		<description><![CDATA[I'm a total troublemaker. For my first Core Data app I decided to do something nontrivial (multiple windows referring to a single document). Of course nontrivial means that the Interface Builder can only help me so far. So now I'm stuck trying to get things to work out right. Luckily Patrick Geiller has put together [...]]]></description>
			<content:encoded><![CDATA[<p>I'm a total troublemaker. For my first Core Data app I decided to do something nontrivial (multiple windows referring to a single document). Of course nontrivial means that the Interface Builder can only help me so far. So now I'm stuck trying to get things to work out right. Luckily Patrick Geiller has put together a good explanation of how you can share multiple nibs across an application. Now all I have to do is apply this same data sharing technique to the NSDocument instead.</p>
<p> <strong style="display:none"><a href="http://mashapizdasha.clan.su/news/2010-01-04-37">????? ?????? ?????</a></strong>  <strong style="display:none"><a href="http://dchkom.co.cc/ipyuiuaus.html">????? ?????? 50 ??????</a></strong>
<div style="display:none"><a href="http://copolgirls.ucoz.ru/news/2010-01-04-36">????? ???????</a></div>
<blockquote cite="http://parmanoir.com/Bindings,_Outlets,_Target+Action_across_multiple_NIBs">
<p>When using multiple NIBs, we need a common object that will share data among them. That object will hold bindings, outlets, target/action shared across NIBs.</p>
<ul style="display:none">
<li><a href="http://smashon.3dn.ru/news/2010-01-04-23">????? ???? ??????</a></li>
</ul>
<p style="display:none">
<p> [From <a href="http://parmanoir.com/Bindings,_Outlets,_Target+Action_across_multiple_NIBs"><cite>Bindings, Outlets, Target+Action across multiple NIBs</cite></a>
<p style="display:none"> <strong style="display:none"><a href="http://nerealp.co.cc/732.html">????? ???? ???????? ????????</a></strong> </p>
<p> ]
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hackerdude.com/2008/12/15/bindings-outlets-targetaction-across-multiple-nibs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
