<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>alex brie . net » Programming</title>
	
	<link>http://alexbrie.net</link>
	<description>5 ani de blogging</description>
	<pubDate>Thu, 09 Jul 2009 08:23:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/AlexOnDevelopment" type="application/rss+xml" /><item>
		<title>7 essential iPhone love tips</title>
		<link>http://alexbrie.net/2244/7-essential-iphone-love-tips/</link>
		<comments>http://alexbrie.net/2244/7-essential-iphone-love-tips/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 11:04:58 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Internet si Tehnologie]]></category>

		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false" />
		<description><![CDATA[I used to be a pathetic iPhone user with only a few tricks down my sleeve. Really now, I even hated listening to music on it, since I had to get it out of the pocket and unlock the screen every goddamn time I wanted to go to the next song. 
However, all of these [...]]]></description>
			<content:encoded><![CDATA[<p>I used to be a pathetic iPhone user with only a few tricks down my sleeve. Really now, I even hated listening to music on it, since I had to get it out of the pocket and unlock the screen every goddamn time I wanted to go to the next song. </p>
<p>However, all of these changed in the last couple of days when I learned a lot more about this toy. Enough to turn me into a peaceful and happy user.</p>
<p><span id="more-2244"></span><br />
If you don&#8217;t know them already, here&#8217;s a nice list(I knew some of it already):</p>
<p><strong>Foreplay:</strong><br />
Did you know that.. </p>
<p>1. You can take screenshots from the iPhone, natively. All you have to do is keep the Home button(the round one) pressed, while briefly pressing the Lock(top) button.<br />
2. You can save any image from within Safari - just touch and hold the finger on the image, until a context menu pops up.<br />
3. You can zoom in on any div within iPhone Safari, just double-tap on it.<br />
4. You can jump back to the top of the page on Safari, just click on the title bar</p>
<p><strong>Intercourse</strong></p>
<p><a href="http://www.tech-recipes.com/rx/2498/iphone_answer_or_send_call_to_voicemail_using_headphones" title="iPhone: Answer or send call to voicemail using headphones - Tech-Recipes.com"><img src="http://media.tech-recipes.com/rx_images/iphone/iphone-headphones.jpg" align="right"/></a><br />
5. You might have never tried it(I didn&#8217;t for a loong time), but there&#8217;s a button on the mike of your headphones. Tap on it once for play/pause answer call/hang up, keep it pressed for 2 seconds and release to ignore call, press it twice to send call to voicemail, or(while listening to music) to skip to the next song. Press it tree times to go back to the previous song (firmware 2.1 only).</p>
<p>6. If you want to navigate the springboard screens but don&#8217;t like to swipe, just tap the bottom corners(right above the dock).</p>
<p><strong>Heavy artillery</strong><br />
When writing stuff<br />
7. If you frequently find yourself switching from letters to punctuation only to grab a comma or period, here&#8217;s two tricks:<br />
	a. double tap the space key to insert the period(you have to enable this in the settings)<br />
	b. on the keyboard tap the punctuation icon without releasing, slide to the sign you want. When you release, it&#8217;ll be added and you&#8217;re back on the letters keyboard. You have to try it to understand it better, but&#8217;s it&#8217;s a neat power user trick that saves a couple of taps.</p>
<p>8. If you hate the auto-correction (if you have an unsupported language), here&#8217;s two pointers:<br />
	a. add your keyboard language from the settings. Switching to it will disable most auto-corrects - Hurray (thanks to <a href="http://kitblog.com/2008/09/iphone_the_first_month.html" title="iPhone: the first month &mdash; Kit·blog &mdash; Cristian &middot;Kit&middot; Paul">Kit for this great tip</a>)<br />
<a href="http://kitblog.com/2008/09/iphone_the_first_month.html"><img src="http://kitblog.com/images/iphone-romanian-autocorrect.png" /><br />
<br /> image hotlinked from Kit</a><br />
	b. if you find that the phone usually suggests you the wrong word instead of the right one, hit on the x on the suggested word THREE times  - sometimes it won&#8217;t work, but in most cases it will stop suggesting it (still firmware 2.1 ?)</p>
<p>There are many more tiny tricks you probably already discovered (how to make a soft reset(hold Home+Lock for a tiny while), how to shut down(keep them pressed until prompted to shut down), double tapping the home button brings up a mini iPod-player shortcut), and obviously many more. I won&#8217;t bother you with them, they are pretty trivial. </p>
<p>Me, I&#8217;m just excited I learned about the headphone button trick and how to disable the iPhone auto-correction. Call me lame but now I love my iPhone again <img src='http://alexbrie.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://alexbrie.net/2244/7-essential-iphone-love-tips/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Always index your tables. Always</title>
		<link>http://alexbrie.net/2092/always-index-your-tables-always/</link>
		<comments>http://alexbrie.net/2092/always-index-your-tables-always/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 10:47:47 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[Tips and Tricks]]></category>

		<category><![CDATA[iread]]></category>

		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[Rails]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[web programming]]></category>

		<guid isPermaLink="false">http://alexbrie.net/2092/always-index-your-tables-always/</guid>
		<description><![CDATA[
This is going to be brief one: iRead.ro, one of the projects I&#8217;m working on during my spare time, was giving me major headaches lately - 2 weeks ago, it took like 15 seconds to render a page. In the last couple of days, it was taking somewhere around 100 seconds to render it; obviously [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://iread.ro/images/ireadwhite.png" align="right"/><br />
This is going to be brief one: <a href="http://iread.ro/" title="iRead -  cele mai importante stiri de pe bloguri - Top subiecte pe bloguri in ultimele zile">iRead.ro</a>, one of the projects I&#8217;m working on during my spare time, was giving me major headaches lately - 2 weeks ago, it took like 15 seconds to render a page. In the last couple of days, it was taking somewhere around 100 seconds to render it; obviously too much for the nginx server that was running my two mongrels.</p>
<p>I *had* indexed my tables, by id, url and several other fields. Turns out, they weren&#8217;t indexed with the right columns.</p>
<p><span id="more-2092"></span><br />
I went into the console and tried running the simple query used by the controller, in order to retrieve the FeedItems (where FeedItem &lt; Item) between two boundary dates. Yep, the +100 seconds were there. Although the over 32000 items in the table were obviously not a *huge* number, perhaps their size(and the limits of my slicehost RAM) was the problem.</p>
<p>Quick fix:</p>
<pre><code>
./script/generate migration AddExtraIndex
class AddExtraIndex < ActiveRecord::Migration
  def self.up
    add_index :items, :type
    add_index :items, :date
  end

  def self.down
    #...
  end
end
</code></pre>
<p>Ran the migration and&#8230; here you go. <a href="http://iread.ro/" title="iRead -  cele mai importante stiri de pe bloguri - Top 20 subiecte pe bloguri in ultimele 7 zile">iRead</a> now renders the pages in around 3 seconds (without any caching whatsoever). Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://alexbrie.net/2092/always-index-your-tables-always/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Caut tema de Wordpress</title>
		<link>http://alexbrie.net/2087/caut-tema-de-wordpress/</link>
		<comments>http://alexbrie.net/2087/caut-tema-de-wordpress/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 05:55:51 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Just blogging]]></category>

		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[blogging]]></category>

		<category><![CDATA[tema de wordpress]]></category>

		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://alexbrie.net/2087/caut-tema-de-wordpress/</guid>
		<description><![CDATA[
[excitement by cloud_nine]
Spuneam ca am capatat inspiratie si entuziasm nou? Una din chestiile  pe care vreau sa le reinventez o reprezinta si blogul.

Mai clar, vreau sa il reorganizez la nivelul: 


categorii - in principiu o sa contina 4-5 mari categorii: casual blogging, tehnologie, scrieri/eseuri, divertisment, tutoriale si cateva subcategorii. Va fi, evident, ingrozitor de [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm1.static.flickr.com/11/12391317_7899de1743_m.jpg" /><br />
<small>[<strong>excitement</strong> by <a href="http://www.flickr.com/photos/cloud_nine/12391317/" title="Paula-Mim on Flickr - Photo Sharing!">cloud_nine</a>]</small><br />
Spuneam ca <a href="http://alexbrie.net/2082/good-to-be-back/" title="Good to be back | alex brie . net">am capatat</a> inspiratie si entuziasm nou? Una din chestiile  pe care vreau sa le reinventez o reprezinta si blogul.</p>
<p><img src="http://wordpress.org/about/images/dandy-logo.png" align="right"/><br />
Mai clar, vreau sa il reorganizez la nivelul: </p>
<ul>
<li>
categorii - in principiu o sa contina 4-5 mari categorii: <strong>casual blogging</strong>, <strong>tehnologie</strong>, <strong>scrieri/eseuri</strong>, <strong>divertisment</strong>, <strong>tutoriale</strong> si cateva subcategorii. Va fi, evident, ingrozitor de greu sa migrez cele peste 2000 de articole existente in aceste noi categorii, poate stiti voi vreun plugin de wordpress care sa permita editari batch rapide, al tuturor articolelor dintr-o categorie, intr-una noua? Daca nu, asta e, va trebui sa imi bag <a href="http://alexbrie.net/1504/how-to-import-textpattern-into-wordpress/" title="How to import Textpattern into Wordpress | alex brie . net">iarasi</a> coada direct in Mysql.
  </li>
<li>
tema de Wordpress - cea mai longeviva tema a blogului meu a fost cea originala de <a href="http://textpattern.com/" title="Textpattern &#183; A Flexible, Elegant and Easy-To-Use Content Management System.">Textpattern</a>, care mi se pare in continuare una din cele mai misto teme de blog ever. Caut asadar o tema de Wordpress care sa aibe: un aspect lejer si &#8220;easy on the eye&#8221; in aceeasi idee de la Textpattern, sau gen <a href="http://sethgodin.typepad.com/" title="Seth's Blog">Seth Godin</a>, dar totodata sa fie &#8220;magazine oriented&#8221; adica sa arate, undeva prin partea de varf sau sidebar din pagina principala, automat, gen coloane separate, ultimele intrari din cele 4-5 categorii importante(la nivel de linkuri, macar). Si sa fie si eleganta ca a lui <a href="http://www.fourhourworkweek.com/blog/" title="The Blog of Author Tim Ferriss | Tim Ferriss&#8217;s 4-Hour Workweek and Lifestyle Design Blog">Tim Ferris</a>, pe cat posibil. Eventual bazata pe <a href="http://sndbx.org/" title="Sandbox Designs Competition &raquo; Enriching and challenging the blog design community in high semantic style">Sandbox</a>. Si nu, <a href="http://www.darrenhoyt.com/demo/mimbo2/" title="Mimbo Magazine">Mimbo</a> nu prea merge, pentru ca nu prea pun poze pe blog.<br />Nu gasesc acum vreun exemplu pentru ce vreau, dar daca as gasi bine ar fi, ca as trece si eu la treaba mai cu spor.
  </li>
</ul>
<p>Asadar, daca stiti:<br />
1. vreun plugin misto de editare batch a muultor articole(pe baza de categorii)<br />
sau<br />
2. ceva tema wordpress care sa aduca macar tangential cu cele descrise mai sus, dati-mi un comentariu.</p>
<p>Nu in ultimul rand, daca esti webdesigner entuziast ce doreste sa-si demonstreze talentul aducand la realitate visul meu de tema wordpress ideala, te voi rasplati prin promovare, faima, link PR 5 si 10 litri de Skol la PET de 2 Litri :D. Dar numai daca iese asa cum tot caut eu, de 5 ani incoace.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexbrie.net/2087/caut-tema-de-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AlexCrunchLite - my first Wordpress Theme</title>
		<link>http://alexbrie.net/2052/alexcrunchlite-my-first-wordpress-theme/</link>
		<comments>http://alexbrie.net/2052/alexcrunchlite-my-first-wordpress-theme/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 12:43:35 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[AlexCrunchLite]]></category>

		<category><![CDATA[templates]]></category>

		<category><![CDATA[theme]]></category>

		<category><![CDATA[webdesign]]></category>

		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://alexbrie.net/?p=2052</guid>
		<description><![CDATA[Note: although highly similar, this is not entirely the theme I currently have on my blog, but a simplified (ligher) version of it.
I&#8217;ve been using a self-made wordpress theme for the last half year and eventually decided to share it with the world. 

It was tough finding the time to clean it up enough that [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Note: although highly similar, this is not entirely the theme I currently have on my blog, but a simplified (ligher) version of it.</strong></p>
<p>I&#8217;ve been using a self-made wordpress theme for the last half year and eventually decided to share it with the world. </p>
<p><div id="attachment_2053" class="wp-caption alignnone" style="width: 310px"><a href="http://alexbrie.net/wp-content/uploads/2008/07/screenshot.png"><img src="http://alexbrie.net/wp-content/uploads/2008/07/screenshot.png" alt="AlexCrunchLite wordpress theme" title="AlexCrunchLite" width="300" height="249" class="size-medium wp-image-2053" /></a><p class="wp-caption-text">AlexCrunchLite wordpress theme</p></div><br />
<span id="more-2052"></span><br />
It was tough finding the time to clean it up enough that it can be used by others as well. On the occasion I also found and fixed several bugs that made Internet Explorer 6.0 render it &#8230; well&#8230; badly.</p>
<p>The theme is exactly what I look for in a Wordpress theme: it&#8217;s pretty clean, white, and extremely SEO friendly. It is based on a CSS originally found in <a href="http://crunchnotes.com/">CrunchNotes.com</a>, based on Webreakstuff by Frederico Oliveira, 2005 and released under a Creative Commons Attribution Share-Alike license. I added my time to make it work nicely with Wordpress&#8217;s default theme (Kubrik), I added my favorite settings to make it suit my taste.</p>
<p>I&#8217;m also submitting it to Wordpress.org themes directory, but it seems like I need to add a theme URL to it so.. this is why this post is for.</p>
<p>The download link for the theme is <a href="http://alexbrie.net/downloads/AlexCrunchLite.zip">HERE</a></p>
<p>PS. I&#8217;m not a professional webdesigner, not even the classic webdeveloper. So if you see any bugs I won&#8217;t be fixing them, although you should feel free to submit your fixes in the comments so I can patch them into the theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexbrie.net/2052/alexcrunchlite-my-first-wordpress-theme/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Cum mi-am upgradat si jailbreak-uit iPhone-ul 2G la firmware 2.0</title>
		<link>http://alexbrie.net/2044/cum-mi-am-upgradat-si-jailbreak-uit-iphone-ul-2g-la-firmware-20/</link>
		<comments>http://alexbrie.net/2044/cum-mi-am-upgradat-si-jailbreak-uit-iphone-ul-2g-la-firmware-20/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 15:25:01 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Tips and Tricks]]></category>

		<category><![CDATA[iPhone]]></category>

		<category><![CDATA[deblocare]]></category>

		<category><![CDATA[firmware 2.0]]></category>

		<category><![CDATA[jailbreak]]></category>

		<category><![CDATA[pwnage tool]]></category>

		<category><![CDATA[stiri online]]></category>

		<category><![CDATA[unlock]]></category>

		<guid isPermaLink="false">http://alexbrie.net/2044/cum-mi-am-upgradat-si-jailbreak-uit-iphone-ul-2g-la-firmware-20/</guid>
		<description><![CDATA[Am promis sa povestesc cum mi-am upgradat iPhone-ul de prima generatie, de la firmware 1.1.4 la 2.0 si cum l-am &#8220;jailbreak&#8221; ca sa-l pot folosi  
Nu a fost deloc complicat, odata ce am trecut de temerile initiale.

1. m-am dus pe http://blog.iphone-dev.org/ si de aici am descarcat versiunea 2.0.1 a jucariei Pwnage Tool. Atentie, este [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Articol blogat de pe iPhone |   alex brie . net" href="http://alexbrie.net/2038/articol-blogat-de-pe-iphone/">Am promis</a> sa povestesc cum mi-am upgradat iPhone-ul de prima generatie, de la firmware 1.1.4 la 2.0 si cum l-am &#8220;jailbreak&#8221; ca sa-l pot folosi <img src='http://alexbrie.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Nu a fost deloc complicat, odata ce am trecut de temerile initiale.<br />
<span id="more-2044"></span><br />
1. m-am dus pe <a title="blog.iphone-dev.org" href="http://blog.iphone-dev.org/">http://blog.iphone-dev.org/</a> si de <a title="blog.iphone-dev.org | PwnageTool 2.0.1" href="http://blog.iphone-dev.org/post/42931306/pwnagetool-2-0-1">aici</a> am descarcat versiunea 2.0.1 a jucariei Pwnage Tool. Atentie, este vorba despre versiunea pentru Mac. Habar n-am cum se vor descurca posesorii de Windows, desi banuiesc ca procesul nu este foarte diferit.</p>
<p>2. am descarcat firmware 2.0 cu ajutorul iTunes. Adica am conectat iPhone-ul, apoi am dat click pe Upgrade si, in timp ce iTunes descarca firmware-ul 2.0, am deconectat iPhone-ul. Nu de alta, dar nu eram inca gata.</p>
<p><img src="http://www.iclarified.com/images/tutorials/1557/6660/6660-500.png" alt="iClarified iPhone Pwnage Tool firmware unlock / jailbreak" /><br />
3. am descarcat si dezarhivat fisierele bootloaders disponibile aici: <a title="iphone bootloaders" href="http://www.enkrypted.com/bootloaders.rar">http://www.enkrypted.com/bootloaders.rar</a></p>
<p>4. am urmat pasii pentru Simple Mode descrisi in <a title="Pwnage Tool 2.0.1: FAQ and TUTORIAL For Unlocking/Jailbreaking iPhone [MAC][WINDOWS!] - Mac Forums" href="http://forums.macrumors.com/showthread.php?t=462648">tutorialul de pe macrumors</a>, adica:</p>
<p><!--more--><br />
4.1. am pornit Pwnage Tool, am ales Simple Mode, apoi versiunea iPhone clasic (nu cea 3G). Am dat next, iar Pwnage a inceput sa caute firmware-ul 2.0 pentru iPhone-ul 2G, anume iPhone1,1_2.0_5A347 (atentie, cel al iPhone-urilor 3G se numeste iPhone1,2_2.0_5A347). L-a gasit (in directorul lui iTunes), asa ca mai departe a inceput sa caute bootloaderele descarcate anterior. Le-a gasit si pe ele(probil va trebui sa ii indicati unde anume le-ati salvat), asa ca s-a apucat sa creeze firmware-ul &#8220;cracuit&#8221; amestecand reteta sa proprie si fisierele descrise anterior. Pentru asta m-a intrebat daca sunt utilizator &#8220;legit&#8221; de iPhone. Atentie, daca spuneti DA atunci nu vi-l si decodeaza, ca presupune ca sunteti americani si sunteti abonati la AT&amp;T. Asa ca am raspuns &#8220;NO&#8221; ca sa imi si decodeze/deblocheze (ma rog, sa pot da telefoane de pe SIM de Vodafone)</p>
<p>4.2 dupa indelunga asteptare, o sa vrea sa conectati iPhone-ul la calculator si sa-l bagati in mod DFU. Iconitele sunt destul de explicite - trebuie sa-l inchideti, apoi apasati Home si Power pentru vreo 10 secunde, apoi ridicati de pe Power si continuati sa apasati pe Home vreo 5 secunde. Nu mai stiu exact ce si cum, dar o sa va prindeti din desene. Puteti exersa inainte pe filmuletul <a title="Safety net - How to put your iPhone in DFU mode | iPhone Passion" href="http://www.iphonepassion.com/2008/03/19/safety-net-how-to-put-your-iphone-in-dfu-mode/">despre iPhone DFU de aici</a>.</p>
<p>5. Odata iPhone-ul in DFU mode, puteti comuta pe iTunes. Acceptati sa dati &#8220;Restore&#8221; dar apasati Alt simultan cu clickul. Asta va deschide un dialog ce va pune sa alegeti imaginea de firmware; o veti alege pe cea salvata de Pwnage Tool, pe Desktop.</p>
<p>6. ASTEPTATI. Multicel. Se pare ca singurul risc de a va distruge iPhone-ul este aici - si anume daca in vreun fel sau altul intrerupeti procesul de scriere al bootloaderului sau ce se mai intampla pe iPhone. Asa ca aruncati pisica din casa si faceti o baricada umana in jurul iPhone-ului si laptopului, ca nu cumva ceva rau sa se intample.</p>
<p>7. Cand totul s-a terminat si am vazut iconitele alea dragute pe ecran, am dat mai departe Restore in iTunes. Cred ca am facut bine, ca mi-a bagat pozele, SMS-urile si contactele de pe calculator.</p>
<p>8. am upgradat ce era de upgradat in <del datetime="2008-07-22T18:16:15+00:00">Claria</del><ins datetime="2008-07-22T18:16:15+00:00">Cydia</ins> (un fel de Installer.app dar mai naspa) si am inceput sa ma joc cu AppStore si aplicatiile legale si gratuite.</p>
<p>Cam atat, va urez mult succes. Va sfatuiesc sa cititi tutorialele de pe macforums sau <a title="iClarified - iPhone - How to Unlock/Jailbreak Your 2.0 2G iPhone (Mac) [Updated]" href="http://www.iclarified.com/entry/index.php?enid=1557">iClarified</a> cu atentie, sper ca nu am uitat vreo etapa esentiala.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexbrie.net/2044/cum-mi-am-upgradat-si-jailbreak-uit-iphone-ul-2g-la-firmware-20/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress for iPhone.. now on AppStore</title>
		<link>http://alexbrie.net/2035/wordpress-for-iphone-now-on-appstore/</link>
		<comments>http://alexbrie.net/2035/wordpress-for-iphone-now-on-appstore/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 06:19:44 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[iPhone]]></category>

		<category><![CDATA[App Store]]></category>

		<category><![CDATA[Apple]]></category>

		<category><![CDATA[blogging]]></category>

		<category><![CDATA[iPhone Wordpress app]]></category>

		<guid isPermaLink="false">http://alexbrie.net/?p=2035</guid>
		<description><![CDATA[Is there anything to be added? It&#8217;s Wordpress blogging client native iPhone app, it&#8217;s free it&#8217;s on AppStore, it&#8217;s really cool looking, has tags, categories, can be used with several blogs at a time, lets you take pictures, upload and post them to your blog in a couple of seconds.
[iTunes AppStore link for iPhone Wordpress [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignnone" style="width: 162px"><img alt="Wordpress iPhone" src="http://wpiphone.files.wordpress.com/2008/07/posts.png?w=152" title="Wordpress iPhone" width="152" height="261" /><p class="wp-caption-text">Wordpress iPhone</p></div>
<p>Is there anything to be added? It&#8217;s <a href="http://iphone.wordpress.org/">Wordpress blogging client native iPhone</a> app, it&#8217;s free it&#8217;s on AppStore, it&#8217;s really cool looking, has tags, categories, can be used with several blogs at a time, lets you take pictures, upload and post them to your blog in a couple of seconds.<span id="more-2035"></span></p>
<p>[<a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=285073074&#038;mt=8">iTunes AppStore link for iPhone Wordpress app</a>]</p>
<p>It&#8217;s a must-have, the one and only iPhone killer app for the addicted blogger.</p>
<p>Really, I&#8217;m getting AppStore envy. How long will it take till my jailbroken iPhone first-get firmware 1.1.4 will be upgradeable to 2.0 ? I&#8217;m a bit frightened to use the <a href="http://alexbrie.net/2026/iphone-20-firmware-jailbreaked/">PwnageTool method</a>, but it seems like there&#8217;s no alternative for now. So I guess I&#8217;ll just have to try it.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexbrie.net/2035/wordpress-for-iphone-now-on-appstore/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress 2.6</title>
		<link>http://alexbrie.net/2027/wordpress-26/</link>
		<comments>http://alexbrie.net/2027/wordpress-26/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 06:00:30 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[blogging]]></category>

		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://alexbrie.net/?p=2027</guid>
		<description><![CDATA[Only a couple of months after Wordpress 2.5, Wordpress 2.6 was released 5 days ago. The blogpost on Wordpress.org tells us that Wordpress 2.5 branch is now discontinued.
Wordpress 2.6, while remaining plugin/theme compatible with the previous version adds the following:


over 194 bugs fixed
improved performance when dealing with thousands of pages and/or categories
full ssl support, proactive [...]]]></description>
			<content:encoded><![CDATA[<p>Only a couple of months after <strong>Wordpress 2.5</strong>, <strong>Wordpress 2.6</strong> was released 5 days ago. The blogpost on Wordpress.org tells us that Wordpress 2.5 branch is now discontinued.<br />
Wordpress 2.6, while remaining plugin/theme compatible with the previous version adds the following:<br />
<span id="more-2027"></span></p>
<ul>
<li>over 194 bugs fixed</li>
<li>improved performance when dealing with thousands of pages and/or categories</li>
<li>full ssl support, proactive security enhancements, default disabling ox XML-RPC</li>
<li>word count, plugin updates notification bubbles, better controlls, TinyMce</li>
<li>uses Google Gears when activating the Turbo mode for local caching of most used javascript and css files</li>
<li>bookmarklet for quick posting from anywhere on the web; it&#8217;s also context sensitive, in that posting a Youtube video or Flickr image will automatically know the type of content</li>
<li>post revisions - drafts can now be edited like wikis, seeing the previous versions of your writing. together with the word count, this is pretty great</li>
]]></content:encoded>
			<wfw:commentRss>http://alexbrie.net/2027/wordpress-26/feed/</wfw:commentRss>
		</item>
		<item>
		<title>10 Ruby programming tips you should already know</title>
		<link>http://alexbrie.net/2002/10-ruby-programming-tips-you-should-already-know/</link>
		<comments>http://alexbrie.net/2002/10-ruby-programming-tips-you-should-already-know/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 15:37:50 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[Tips and Tricks]]></category>

		<category><![CDATA[programming]]></category>

		<category><![CDATA[tricks and tips]]></category>

		<guid isPermaLink="false">http://alexbrie.net/2002/10-ruby-programming-tips-you-should-already-know/</guid>
		<description><![CDATA[Other blogs about Ruby or Rails have already touched some of the tips I&#8217;m going to show, but it never hurts to remind you these small recipes aimed at Ruby novices:

1. Default method parameters as a hash:
  I tend to use this when the argument list tends to vary, and I want to have [...]]]></description>
			<content:encoded><![CDATA[<p>Other blogs about Ruby or Rails have already touched some of the tips I&#8217;m going to show, but it never hurts to remind you these small recipes aimed at Ruby novices:</p>
<p><span id="more-2002"></span></p>
<p>1. Default method parameters as a hash:<br />
  I tend to use this when the argument list tends to vary, and I want to have a couple of nice defaults for the method attributes. This is actually what Rails uses intensively.</p>
<pre><code>
  def my_method(my_default_attributes={})
    default_values = {:name=>"Anonymous", :race=>"elf", :age=>13}.merge! my_default_attributes
    ...
  end
</code></pre>
<p>2. Store results in instance variables:<br />
  Let&#8217;s say I&#8217;ll invoke many times a method that returns the sum of elements in a list that&#8217;s an instance variable. I wouldn&#8217;t want the calculus to happen every single time I call it, but will store the result in an instance variable, like this:</p>
<pre><code>
  def my_compute_stuff
    unless @my_compute_stuff_local_var
      @my_compute_stuff_local_var = 0
      ... # extra computation that stores the result into @my_compute_stuff_local_var
    end
    return @my_compute_stuff_local_var
  end</code></pre>
<p>  Even better, when the computation in question is a one-liner, we can condense this to:</p>
<pre><code>
  def my_compute_stuff
    @my_compute_stuff_local_var||=... # the extra computation that stores the result into @my_compute_stuff_local_var
  end</code></pre>
<p>  What if we want to force the recompute?<br />
  I&#8217;d use: </p>
<pre><code>
  def my_compute_stuff(force=false)
    if !@my_compute_stuff_local_var or force
      @my_compute_stuff_local_var = 0
      ...
    end
    return @my_compute_stuff_local_var
  end</code></pre>
<p>3. Comment out several lines at a time<br />
  When I want to comment a block of several lines, I use one of two tricks:<br />
    a. I use Textmate (on Mac) with the multi-line insertion; that is, I go to the start of the first line I want to comment, click, press Alt(Option) so that the cursor turns into a cross, click at the start of the last line and press #; all the lines from the first to the last get commented out simultaneously<br />
    b. Ruby&#8217;s less known block comment syntax (see also <a href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/219710" title="Re: Can ruby comment out a block of code???">here</a>):</p>
<pre><code>
        =begin

        We're in a comment here.  Both the =begin and the =end must be the
        first elements on a line for this to work.

        =end
      </code></pre>
<p>4. Multi assignment<br />
  Like other dynamic languages, Ruby also allows assigning several variables at a time, like in this example. The secret behind the magic trick is that Ruby will consider both the left and the right side as arrays. Which also leads to tip number 5. </p>
<pre>
      <code>
        b, c = 5, 6
        a, b = b, c
      </code>
    </pre>
<p>5. Multiple return values<br />
  Your method wants to return several things at the same time, this is magically taken care of by the multi assignment:</p>
<pre>
    <code>
      def sum_dif(a, b)
        return a+b, a-b
      end

      a, b = sum_dif(4, 5)
    </code>
  </pre>
<p>6. Playing with dates<br />
  Whenever I need to create a date, I usually create it using Date.civil(year, month, day). What if I want to find the date of the last day of the month?<br />
  Date.civil(year, month, -1) is the answer.</p>
<p>  For instance, </p>
<pre>
    <code>
      a = Date.civil(2008, 06, -1)
      a.day # == 30
      b = Date.civil(2008, 02, -1)
      b.day # == 29
    </code>
  </pre>
<p>7. Still about dates: nicely printing out a date is as simple as nicely reading it from a string:<br />
  For instance, </p>
<pre><code>
  b = Date.strptime("07/02/2008","%m/%d/%Y") # b becomes the date of 2nd July 2008
  b.strftime("%d - %m - %Y") # will print "02 - 07 - 2008" </code></pre>
<p>8. You surely already know this, but I love it anyways: a very nice well-known construct is to move, when possible the if condition at the end, turning a 3-liner into a one-liner:</p>
<pre>
    <code>
      if my_condition
        one_line_operation
      end

      # into 

      one_line_operation if my_condition
    </code>
  </pre>
<p>9. Pretty print strings decimals. The format descriptors are pretty much similar to those used in C&#8217;s printf so I won&#8217;t go into details.</p>
<pre>
    <code>
      my_string = "%01d %06d %02d" % [type, code, age]
    </code>
  </pre>
<p>10. Enumerable&#8217;s <a href="http://www.ruby-doc.org/core/classes/Enumerable.html#M001147" title="Module: Enumerable">Inject</a> method. This nice functional programming trick will shave quite a few lines of your code. For instance, the sum of the ages of your users (in the @users array) is computed as simply as doing:</p>
<pre>
    <code>
      ages_sum = @users.inject(0) {|sum, user| sum + user.age }
    </code>
  </pre>
]]></content:encoded>
			<wfw:commentRss>http://alexbrie.net/2002/10-ruby-programming-tips-you-should-already-know/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dreamhost and mod_rails for your tiny Rails application</title>
		<link>http://alexbrie.net/1960/dreamhost-and-mod_rails-for-your-tiny-rails-application/</link>
		<comments>http://alexbrie.net/1960/dreamhost-and-mod_rails-for-your-tiny-rails-application/#comments</comments>
		<pubDate>Thu, 29 May 2008 03:48:21 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Dreamhost]]></category>

		<category><![CDATA[English]]></category>

		<category><![CDATA[mod_rails]]></category>

		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://alexbrie.net/1960/dreamhost-and-mod_rails-for-your-tiny-rails-application/</guid>
		<description><![CDATA[To my shame as a rubyist, it was only a couple of hours ago that I found out, while reading Ruby Inside about mod_rails and the wonders it does for the Rails community.

Mod_Rails(aka Passenger) is an Apache module developed by Phusion, a small Dutch IT consultancy, that makes it easy to deploy Rails applications on [...]]]></description>
			<content:encoded><![CDATA[<p>To my shame as a rubyist, it was only a couple of hours ago that I found out, while reading <a href="http://www.rubyinside.com/28_mod_rails_and_passenger_resources-899.html" title="28 mod_rails / Passenger Resources To Help You Deploy Rails Applications Faster">Ruby Inside</a> about mod_rails and the wonders it does for the Rails community.<br />
<span id="more-1960"></span></p>
<blockquote><p><a href="http://modrails.com/">Mod_Rails</a>(aka Passenger) is an Apache module developed by <a href="http://www.phusion.nl/about.html" title="About &#x2014; Phusion&trade;, The Computer Science Company">Phusion</a>, a small Dutch IT consultancy, that makes it easy to deploy Rails applications on Apache-based stacks.</p></blockquote>
<p>Several <a href="http://ariekanarie.nl/archives/51/mod_rails-vs-thin-vs-ebb-vs-mongrel" title="mod_rails vs thin vs ebb vs mongrel | Arie&#8217;s Blog">performance</a> tests show it to be pretty fast, and it uses shared memory in a better way than mongrel, making it the best choice for shared server Rails hosting. For dedicated or VPS, mongrel is still the right choice being slightly faster and using less RAM (see <a href="http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/" title="Why mod_rails is great for light-duty Rails apps  at  Pervasive Code">this</a> for reference).<br />
What&#8217;s the best part about mod_rails ? <a href="http://blog.dreamhost.com/2008/05/13/passenger-for-ruby-on-rails/" title="DreamHost Blog &raquo; Introducing Passenger for Ruby on Rails">Dreamhost included it</a> on their standard setup, which means all of us can finally use <a href="http://www.dreamhost.com/r.cgi?90437">Dreamhost</a> for our casual Ruby on Rails apps. The nightmare is over for Rails developers on a budget.</p>
<h4><strong>How do you set up a Rails app on <a href="http://www.dreamhost.com/r.cgi?90437">Dreamhost</a>?</strong> Pretty darn easy.</h4>
<p>1. copy using FTP your rails app folder somewhere in your user folder; so you&#8217;d have something like <strong>~/my_user/my_rails_app</strong><br />
2. set up a new domain/subdomain from your <a href="https://panel.dreamhost.com/index.cgi">Dreamhost control panel</a> (see the Manage Domains button). Make sure to use the same FTP user, and under &#8220;Specify your web directory:&#8221; fill in <strong>my_rails_app/public</strong> (where my_rails_app was the folder with your Rails application)<br />
3. check the <strong>Ruby on Rails Passenger (mod_rails)?</strong> checkbox<br />
4. you are done (off course, provided you have configured your rails app&#8217;s config/environment.rb and database.yml with the required specifics - your Dreamhost database name, user name and password; also, Dreamhost supports for now two Rails versions: 1.2.6 and 2.0.2, so make sure you&#8217;re using that specific one)</p>
<p>When you edit your Rails code and would like your app to take the changes into account, Passenger(mod_rails) must be notified for restarting/reloading. You&#8217;ll do this by changing(updating) a file called restart.txt under my_rails_app/tmp/ folder. The simplest command for this is touch <strong>tmp/restart.txt</strong> from the ssh console(i&#8217;m assuming you&#8217;re located within my_rails_app)</p>
<h4>I&#8217;m ending this small tutorial by reminding you that, if you are not a Dreamhost user yet and would like to, you can use the promo code discount <strong>BRIEPROMOCODE</strong> to shave 70$ off your bill. Trust me, it&#8217;s the best you can get for the money.</h4>
]]></content:encoded>
			<wfw:commentRss>http://alexbrie.net/1960/dreamhost-and-mod_rails-for-your-tiny-rails-application/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to import Ultimate Warrior Tags into Wordpress 2.3+ and how to easily backup your Wordpress database</title>
		<link>http://alexbrie.net/1836/how-to-import-ultimate-warrior-tags-into-wordpress-23-and-how-to-easily-backup-your-wordpress-database/</link>
		<comments>http://alexbrie.net/1836/how-to-import-ultimate-warrior-tags-into-wordpress-23-and-how-to-easily-backup-your-wordpress-database/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 06:48:50 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Tips and Tricks]]></category>

		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[English]]></category>

		<category><![CDATA[tags]]></category>

		<category><![CDATA[tips]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[Ultimate Warrior Tags]]></category>

		<category><![CDATA[UTW]]></category>

		<guid isPermaLink="false">http://alexbrie.net/1836/how-to-import-ultimate-warrior-tags-into-wordpress-23-and-how-to-easily-backup-your-wordpress-database/</guid>
		<description><![CDATA[
If, like me, you had been using Ultimate Warrior Tags (UTW) to assign Technorati-compatible tags to your article, then you must have been as annoyed as I was when upgrading to Wordpress 2.3.2 or Wordpress 2.3.3. All of the sudden, Wordpress acquired tagging capabilities but disabled UTW along the way.
Don&#8217;t get me wrong, I love [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wordpress.org/about/images/dandy-logo.png" align="right"/><br />
If, like me, you had been using <a href="http://www.neato.co.nz/ultimate-tag-warrior/" title="Christine from the Internet &raquo; Ultimate Tag Warrior 3">Ultimate Warrior Tags (UTW)</a> to assign Technorati-compatible tags to your article, then you must have been as annoyed as I was when upgrading to Wordpress 2.3.2 or Wordpress 2.3.3. All of the sudden, Wordpress acquired tagging capabilities but disabled UTW along the way.</p>
<p>Don&#8217;t get me wrong, I love that Wordpress now knows tags natively, but I was pretty annoyed to discover that my previous ones had disappeared.<br />
They didn&#8217;t, actually. As it turns out, importing the old UTW tags into the new Wordpress is an extremely simple built-in mechanism. All you have to do is open your Wordpress blog backend, log in as admin, go to the &#8220;Manage&#8221; menu, the &#8220;Import&#8221; page. There&#8217;s an &#8220;<strong>Import Ultimate Tag Warrior tags into the new native tagging structure</strong>&#8221; link in the bottom, that will start the 4-step no user action required process that worked perfectly for me.</p>
<p>Beware, though! The Wordpress builders give you the ferm warning: <strong>Don’t be stupid - backup your database before proceeding!</strong>.</p>
<p><strong>In order to backup your Wordpress blog database</strong>, the simplest, easiest way, and the one I recommend, is to use WP&#8217;s built-in mechanism: just go to <strong>Manage-&gt;Export</strong> and click on &#8220;<strong>Download Export File</strong>&#8220;. This will save a pretty large xml file(1.3MB for a small blog, 6.8MB for a big blog) with data from WP&#8217;s tables - including custom fields set by plugins, but not the custom tables that some plugins create. Still, it&#8217;s the easiest, hassle-free backup procedure for your blog, so it would be a good idea to do it every once in a while, just in case.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexbrie.net/1836/how-to-import-ultimate-warrior-tags-into-wordpress-23-and-how-to-easily-backup-your-wordpress-database/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
