<?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>Technical stuff</title>
	<atom:link href="http://www.tekkie.ro/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tekkie.ro</link>
	<description>Requirements are like water. They&#039;re easier to build on when they&#039;re frozen.</description>
	<lastBuildDate>Fri, 11 Jun 2010 11:33:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Premature Optimization with Ilia Alshanetsky @ Dutch PHP Conference &#124; Notes</title>
		<link>http://www.tekkie.ro/news/premature-optimization-with-ilia-alshanetsky-dutch-php-conference-notes/</link>
		<comments>http://www.tekkie.ro/news/premature-optimization-with-ilia-alshanetsky-dutch-php-conference-notes/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 11:33:21 +0000</pubDate>
		<dc:creator>Georgiana</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.tekkie.ro/?p=259</guid>
		<description><![CDATA[-> demonstrate the user concept with an imperfect solution that does the job, optimize along the way
-> tune the right portions of the application, not over-engineer from the very beginning
&#8212;> scale the scope to the nature of the problem
-> simplify
&#8212;> less code does not mean that it&#8217;s faster
&#8212;> PHP doubled the # of LOC in [...]]]></description>
			<content:encoded><![CDATA[<p>-> demonstrate the user concept with an imperfect solution that does the job, optimize along the way<br />
-> tune the right portions of the application, not over-engineer from the very beginning<br />
&#8212;> scale the scope to the nature of the problem</p>
<p>-> simplify<br />
&#8212;> less code does not mean that it&#8217;s faster<br />
&#8212;> PHP doubled the # of LOC in a few years but it&#8217;s faster, not slower <img src='http://www.tekkie.ro/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>-> hardware [HW]<br />
&#8212;> since it&#8217;s cheaper, maybe throwing HW at it this might get it faster &#038; buy you time to find the solution to the problem<br />
&#8212;> SW development time to optimize might be more expensive<br />
&#8212;> CPU bottlenecks &#038; RAM issues are easier to solve lately<br />
&#8212;> drives, the well-known bottleneck, have also received SSD [measurements show it's a lot better]</p>
<p>-> HW caveat<br />
&#8212;> might only temporarily solve issues<br />
&#8212;> DB saturation<br />
&#8212;> non-scalable code [this is NOT the same as high-performing code]<br />
&#8212;> network bottlenecks [latency]<br />
&#8212;> extremely low # of sessions per server [Smarty: 50 reqs/sec]</p>
<p>-> optimization<br />
&#8212;> start by trying to make the code faster without modifying a LOC [this way you avoid introducing new bugs &#038; QA cycle, easier deployment]</p>
<p>-> how PHP works in 30 secs<br />
&#8212;> each require/include triggers compile+execute<br />
&#8212;> compilation is expensive<br />
&#8212;> opcode cache [if the file is not changed, you get it from the cache]<br />
&#8212;> APC vs Zend&#8217;s solution vs X-Cache</p>
<p>-> in-memory cache<br />
&#8212;> do the PHP sessions in memcache instead of filesystem</p>
<p>-> ways of caching data<br />
&#8212;> complete page [caching proxy, e.g. Squid; pre-generate; on-demand]<br />
&#8212;> cache the parts that are really slowing down the page [example using memcache for SQL results caching]<br />
&#8212;> partial caching of code [example using memcache for results of a function call; cache TTL of 1h]</p>
<p>-> output buffering<br />
&#8212;> Apache&#8217;s SendBufferSize should be the same as PageSize<br />
&#8212;> tcp_wmem  | affects everything on tcp-ip<br />
&#8212;> tcp_mem     | </p>
<p>-> use profiling to understand the real bottleneck in the code, without the &#8220;educated assumptions&#8221;<br />
&#8212;> Xdebug &#038; XHProf [last one comes from Facebook]<br />
&#8212;> Kcachegrind</p>
<p>-> code that generates notices / errors is slowed down by them, because resources are allocated for them, even if you don&#8217;t see them</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tekkie.ro/news/premature-optimization-with-ilia-alshanetsky-dutch-php-conference-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QQA in Software Projects with Sebastian Bergmann @ Dutch PHP Conference &#124; Part 2 &#124; Notes</title>
		<link>http://www.tekkie.ro/testing/qqa-in-software-projects-with-sebastian-bergmann-dutch-php-conference-part-2-notes/</link>
		<comments>http://www.tekkie.ro/testing/qqa-in-software-projects-with-sebastian-bergmann-dutch-php-conference-part-2-notes/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 10:32:57 +0000</pubDate>
		<dc:creator>Georgiana</dc:creator>
				<category><![CDATA[testing]]></category>
		<category><![CDATA[PHPUnit]]></category>
		<category><![CDATA[Sebastian Bergmann]]></category>

		<guid isPermaLink="false">http://www.tekkie.ro/?p=255</guid>
		<description><![CDATA[-&#62; Continuous Integration
&#8212;&#62; build automation [write build script to get latest code version; run tools to detect problems; run unit tests &#38; publish these results; package; deploy]
&#8212;&#62; summary of the tools enumerated below can be found in this presentation: http://www.slideshare.net/sebastian_bergmann/continuous-integration-of-php-projects-4354597
-&#62; static code analysis
&#8212;&#62; LOC [= lines of code] metric
&#8212;&#62; CLOC [= comment LOC]
&#8212;&#62; NCLOC [= [...]]]></description>
			<content:encoded><![CDATA[<p>-&gt; Continuous Integration<br />
&#8212;&gt; build automation [write build script to get latest code version; run tools to detect problems; run unit tests &amp; publish these results; package; deploy]<br />
&#8212;&gt; summary of the tools enumerated below can be found in this presentation: http://www.slideshare.net/sebastian_bergmann/continuous-integration-of-php-projects-4354597</p>
<p>-&gt; static code analysis<br />
&#8212;&gt; LOC [= lines of code] metric<br />
&#8212;&gt; CLOC [= comment LOC]<br />
&#8212;&gt; NCLOC [= non-comment LOC]<br />
&#8212;&gt; ELOC [= executable LOC]<br />
&#8212;&gt; welcome to phploc [ <a href="http://github.com/sebastianbergmann/phploc">http://github.com/sebastianbergmann/phploc</a> ]<br />
&#8212;&gt; demo phploc directly on PHPUnit</p>
<p>-&gt; code duplication<br />
&#8212;&gt; totally identical LOC<br />
&#8212;&gt; phptok some_file.php<br />
&#8212;&gt; phpcpd /path/to/your/project [ the <a href="http://github.com/sebastianbergmann/phpcpd">copy/paste detector</a> &gt;:) ]</p>
<p>-&gt; code complexity<br />
&#8212;&gt; cyclomatic complexity [count the # of branching points]<br />
&#8212;&gt; NPath complexity [count the # of possible execution paths]</p>
<p>-&gt; phpcs<br />
&#8212;&gt; the code sniffer <img src='http://www.tekkie.ro/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
&#8212;&gt; start here: <a href="http://github.com/sebastianbergmann/phpcs-sebastian">http://github.com/sebastianbergmann/phpcs-sebastian</a><br />
&#8212;&gt; allows for defining own sniffs; <a href="http://github.com/sebastianbergmann/phpcs-sebastian/blob/master/SebastianCodingStandard.php">demo sniff list</a></p>
<p>-&gt; pdepend<br />
&#8212;&gt; static analysis of PHP code<br />
&#8212;&gt; helps identify parts of app. which should be refactored</p>
<p>-&gt; build automation tools<br />
&#8212;&gt; ant, make, phing, rake<br />
&#8212;&gt; delve a bit into ant features<br />
&#8212;&gt; small ant config to pull from git, run phpunit, run some of the static code analysis tools in parallel<br />
&#8212;&gt; demo ant run for an <a href="http://github.com/sebastianbergmann/php-object-freezer">existing project</a>, and get a glimpse at the reports of the static code analysis tools output</p>
<p>-&gt; continuous integration server options<br />
&#8212;&gt; phpUnderControl: customized CruiseControl<br />
&#8212;&gt; Hudson [Java-based, open-source]<br />
&#8212;&gt; Bamboo -&gt; the Atlassian way of doing it, still Java-based<br />
&#8212;&gt; Arbit -&gt; an alpha release, PHP-based solution<br />
&#8212;&gt; demo: <a href="http://ci.thephp.cc/">http://ci.thephp.cc/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tekkie.ro/testing/qqa-in-software-projects-with-sebastian-bergmann-dutch-php-conference-part-2-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QA in Software Projects with Sebastian Bergmann @ Dutch PHP Conference &#124; Part 1 &#124; Notes</title>
		<link>http://www.tekkie.ro/testing/qa-in-software-projects-with-sebastian-bergmann-dutch-php-conference-part-1-notes/</link>
		<comments>http://www.tekkie.ro/testing/qa-in-software-projects-with-sebastian-bergmann-dutch-php-conference-part-1-notes/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 09:25:42 +0000</pubDate>
		<dc:creator>Georgiana</dc:creator>
				<category><![CDATA[testing]]></category>
		<category><![CDATA[PHPUnit]]></category>
		<category><![CDATA[Sebastian Bergmann]]></category>

		<guid isPermaLink="false">http://www.tekkie.ro/?p=252</guid>
		<description><![CDATA[-&#62; what is SW quality?
-&#62; the BankAccount example
&#8212;&#62; PHPUnit 3.4.12 is used for these examples
&#8212;&#62; CLI run using phpunit BankAccountTest
&#8212;&#62; phpunit &#8211;testdox BankAccountTest &#8212;&#62; used for instance to present functionality summary before the actual coding
&#8212;&#62; setUp()
&#8212;&#62; Q&#38;A &#8212;&#62; use @expectedException annotation instead of the try/catch block inside the method body
&#8212;&#62; Q&#38;A &#8212;&#62; use 1 test [...]]]></description>
			<content:encoded><![CDATA[<p>-&gt; what is SW quality?<br />
-&gt; the BankAccount example<br />
&#8212;&gt; PHPUnit 3.4.12 is used for these examples<br />
&#8212;&gt; CLI run using phpunit BankAccountTest<br />
&#8212;&gt; phpunit &#8211;testdox BankAccountTest &#8212;&gt; used for instance to present functionality summary before the actual coding<br />
&#8212;&gt; setUp()<br />
&#8212;&gt; Q&amp;A &#8212;&gt; use @expectedException annotation instead of the try/catch block inside the method body<br />
&#8212;&gt; Q&amp;A &#8212;&gt; use 1 test method for each test, not stuff everything in 1 method<br />
&#8212;&gt; PHPUnit 4 might use the traits feature of PHP, as opposed to the JUnit approach</p>
<p>-&gt; organizing tests<br />
&#8212;&gt; tree structure, mirroring the actual code organization<br />
&#8212;&gt; using group annotation you can run only specific tests<br />
&#8212;&gt; phpunit &#8211;filter testFreezingAnObjectWorks Tests [ excludes a specific slow test ]</p>
<p>-&gt; automated bugfixes project<br />
&#8212;&gt; write a test to repro the bug<br />
&#8212;&gt; use genetic programming to issue the patch that fixes the bug</p>
<p>-&gt; SW testing pyramid /// Categories of (Unit) Tests<br />
&#8212;&gt; bottom level: unit tests<br />
&#8212;&gt; upper level: functional tests [this is not the functional testing w/ Selenium!] [it's testing blocks of functionality instead units] [do the interfaces between classes abide their contracts?]<br />
&#8212;&gt; top-level: End-to-End Test [these are the expensive ones ... running a full Selenium arrangement across all browsers took more than 24h]</p>
<p>-&gt; minimalistic MVC implementation<br />
&#8212;&gt; used to demo unit testing for more than just the Model<br />
&#8212;&gt; assertAttributeEmpty() and assertAttributeContains() work with public / private / private class members<br />
&#8212;&gt; @depends is a simple way of declaring dependencies between tests<br />
&#8212;&gt; sample of refactoring so that there&#8217;s no need to assertAttribute*() for protected / private members</p>
<p>-&gt; PHPUnit Best Practices<br />
&#8212;&gt; use an XML configuration file<br />
&#8212;&gt; look inside the cwd for a phpunit.xml [fallback to phpunit.xml.dist]<br />
&#8212;&gt; generate code coverage report, showing also dead code<br />
&#8212;&gt; new beta thingy: code coverage distribution report + class complexity</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tekkie.ro/testing/qa-in-software-projects-with-sebastian-bergmann-dutch-php-conference-part-1-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wireshark not listing interfaces on Mac OS X</title>
		<link>http://www.tekkie.ro/quick-n-dirty/wireshark-not-listing-interfaces-on-mac-os-x/</link>
		<comments>http://www.tekkie.ro/quick-n-dirty/wireshark-not-listing-interfaces-on-mac-os-x/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 09:04:08 +0000</pubDate>
		<dc:creator>Georgiana</dc:creator>
				<category><![CDATA[Quick and dirty]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[quickies]]></category>

		<guid isPermaLink="false">http://www.tekkie.ro/?p=248</guid>
		<description><![CDATA[It&#8217;s a permission problem, please check here for the solution.
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a permission problem, please check <a href="http://www.wireshark.org/lists/wireshark-users/200608/msg00014.html">here</a> for the solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tekkie.ro/quick-n-dirty/wireshark-not-listing-interfaces-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How you should not do a banner</title>
		<link>http://www.tekkie.ro/funny/how-you-should-not-do-a-banner/</link>
		<comments>http://www.tekkie.ro/funny/how-you-should-not-do-a-banner/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 18:43:01 +0000</pubDate>
		<dc:creator>Georgiana</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[fun time]]></category>

		<guid isPermaLink="false">http://www.tekkie.ro/?p=240</guid>
		<description><![CDATA[Don&#8217;t show a picture of one product and the name of another. It&#8217;s just so&#8230;

Now don&#8217;t get me wrong, I know they&#8217;re both called Hero. But one&#8217;s also a Sprint.
Do your research before stuffing items in Photoshop and deliver your project. And do have a second pair of eyes around you before you push this [...]]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t show a <a title="HTC Sprint announcement" href="http://www.engadget.com/2009/10/11/sprint-htc-hero-now-on-sale-to-everyone/">picture of one product</a> and the <a href="http://www.htc.com/www/product/hero/overview.html">name of another</a>. It&#8217;s just so&#8230;</p>
<p><img class="alignleft size-full wp-image-241" title="HTC_HeroOrSprint" src="http://www.tekkie.ro/wp-content/uploads/2009/12/HTC_HeroOrSprint.png" alt="HTC_HeroOrSprint" width="331" height="622" /></p>
<p>Now don&#8217;t get me wrong, I know they&#8217;re both called Hero. But one&#8217;s also a Sprint.</p>
<p>Do your research before stuffing items in Photoshop and deliver your project. And do have a second pair of eyes around you before you push this live.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tekkie.ro/funny/how-you-should-not-do-a-banner/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Migrating phone book from Nokia XpressMusic to Android using a Mac</title>
		<link>http://www.tekkie.ro/quick-n-dirty/migrating-phone-book-nokia-xpressmusic-android-using-mac/</link>
		<comments>http://www.tekkie.ro/quick-n-dirty/migrating-phone-book-nokia-xpressmusic-android-using-mac/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 02:45:29 +0000</pubDate>
		<dc:creator>Georgiana</dc:creator>
				<category><![CDATA[Quick and dirty]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[quickies]]></category>

		<guid isPermaLink="false">http://www.tekkie.ro/?p=238</guid>
		<description><![CDATA[Looks complicated, huh? Especially when people say there&#8217;s no real Mac-to-Android sync software.
But we&#8217;re all tekkies here, we solve stuff, and don&#8217;t complain about it   And we&#8217;re using free software to do it, yummy!
All you need is PhoneDirector to get your Nokia agenda on the Mac. Just install it and follow the instructions, [...]]]></description>
			<content:encoded><![CDATA[<p>Looks complicated, huh? Especially when people say there&#8217;s no real Mac-to-Android sync software.</p>
<p>But we&#8217;re all tekkies here, we solve stuff, and don&#8217;t complain about it <img src='http://www.tekkie.ro/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  And we&#8217;re using free software to do it, yummy!</p>
<p>All you need is <a title="PhoneDirector download and instructions" href="http://www.macmedia.sk/pd.htm">PhoneDirector</a> to get your Nokia agenda on the Mac. Just install it and follow the instructions, you should be just fine. After you get all this, export them into a .vcf file, we&#8217;ll need it in a moment.</p>
<p>Now, to get this info in the Android is really a piece of cake. Go to the Contacts settings in Gmail and import the .vcf file you generated with PhoneDirector. Then go to your Android phone and sync your contacts. Ta-da! Welcome to the Google world!</p>
<p>NB: if you&#8217;re having a hard time finding the Contacts in the Gmail app, like I did, look immediately under your labels list.</p>
<p>The above steps weren&#8217;t good for you? Then you might need to take a look at <a href="http://pwoodford.blogspot.com/2009/05/htc-magic-vodafone-contacts.html">this</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tekkie.ro/quick-n-dirty/migrating-phone-book-nokia-xpressmusic-android-using-mac/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mac development environment, the easy way</title>
		<link>http://www.tekkie.ro/computer-setup/mac-development-environment-the-easy-way/</link>
		<comments>http://www.tekkie.ro/computer-setup/mac-development-environment-the-easy-way/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 22:25:18 +0000</pubDate>
		<dc:creator>Georgiana</dc:creator>
				<category><![CDATA[Computer setup]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.tekkie.ro/?p=236</guid>
		<description><![CDATA[So, you want to use that Apple machine for developing websites. That's pretty easy to setup, here are some guidelines you can use in order to create the basic environment for creating great web applications.]]></description>
			<content:encoded><![CDATA[<p>So, you want to use that Apple machine for developing websites. That&#8217;s pretty easy to setup, here are some guidelines you can use in order to create the basic environment for creating great web applications.</p>
<ol>
<li><strong>MAMP </strong>
<ul>
<li>even though you already have Apache and PHP installed (oh, and Ruby as well), you also need the mySQL; basically it&#8217;s not that trivial to add the popular DB to the mix, and this is where MAMP comes into play: it provides the sqlite for quick and easy part, and also mySQL for the more complicated items</li>
<li>it also includes the phpMyAdmin in case you don&#8217;t want to use  more powerful tool</li>
<li>download it from <a title="Download MAMP" href="http://www.mamp.info/en/downloads/index.html">the official page</a> or <a title="Download MAMP" href="http://sourceforge.net/projects/mamp/">from sourceforge</a></li>
<li>installation is pretty straightforward, but do take a look at <a title="Installation notes for MAMP" href="http://www.mamp.info/en/documentation/index.html">the last section here</a></li>
<li>start the MAMP application</li>
<li>the path to your webroot is <code>/Applications/MAMP/htdocs</code></li>
</ul>
</li>
<li><strong>Editor</strong>
<ol>
<li><a title="Official site: Aptana" href="http://www.aptana.org/">Aptana</a> is for heavy users
<ul>
<li>since it&#8217;s based on Eclipse, you&#8217;ll quickly find your way around</li>
<li><a title="Download Aptana" href="http://www.aptana.org/studio/download">download</a> it from here and use the <a title="Aptana Support Center" href="http://www.aptana.com/support">online documentation</a> in case you run into trouble</li>
</ul>
</li>
<li>Smultron is a light-weight, extremely capable and configurable editor
<ul>
<li>please don&#8217;t get fooled by the looks of it, take your time and explore it; it&#8217;s a valuable companion</li>
<li>the <a title="Official page: Smultron editor" href="http://smultron.sourceforge.net/">SourceForge page</a> of the Smultron project</li>
<li>get directly the <a title="Smultron icon sets: intructions &amp; download" href="http://www.shinze.com/index.php/post/2006/09/18/142-a-new-set-of-icons-for-smultron">improved interface</a>, a patch which appeared on the internet because many users complained about the icons</li>
</ul>
</li>
</ol>
</li>
<li>a developer&#8217;s <strong>file manager</strong>: <a title="Official page: muCommander" href="http://www.mucommander.com/">muCommander</a>
<ul>
<li>usually you&#8217;ll find yourself limited by the multitude of Finder windows, so you&#8217;ll miss the MidnightCommander / TotalCommander / etc. software; meet muCommander; since it runs on amy platform, you might just take it with you on your other environments and modernize the old <code>mc</code></li>
<li><a title="Download muCommander" href="http://www.macupdate.com/info.php/id/13763/mucommander">here</a>&#8217;s an alternative download source</li>
</ul>
</li>
</ol>
<p>That should be it. Congratulations!</p>
<p>Are you using something else to this mix? Tell us all about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tekkie.ro/computer-setup/mac-development-environment-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to restore your Mac settings</title>
		<link>http://www.tekkie.ro/quick-n-dirty/how-to-restore-your-mac-settings/</link>
		<comments>http://www.tekkie.ro/quick-n-dirty/how-to-restore-your-mac-settings/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 23:38:19 +0000</pubDate>
		<dc:creator>Georgiana</dc:creator>
				<category><![CDATA[Quick and dirty]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[quickies]]></category>

		<guid isPermaLink="false">http://www.tekkie.ro/?p=234</guid>
		<description><![CDATA[If you installed a program which took the horrible approach of rewriting your .profile settings file and you discover you don&#8217;t have access to the shortcuts from your terminal anymore, here&#8217;s how to fix it:

open a terminal window and make sure you navigate to the home directory
cd ~
open your profile settings using the full path [...]]]></description>
			<content:encoded><![CDATA[<p>If you installed a program which took the horrible approach of rewriting your .profile settings file and you discover you don&#8217;t have access to the shortcuts from your terminal anymore, here&#8217;s how to fix it:</p>
<ul>
<li>open a terminal window and make sure you navigate to the home directory</li>
<pre>cd ~</pre>
<li>open your profile settings using the full path to your editor (I use nano):</li>
<pre>/usr/bin/nano .profile</pre>
<li>make sure your PATH setting contains at least the following information:</li>
<pre>export PATH=/usr/bin:/bin:</pre>
<li>make the shell reload your profile</li>
<pre>. ./.profile</pre>
</ul>
<p>Now we&#8217;re talking! You can <code>ls</code> and <code>sudo</code> again!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tekkie.ro/quick-n-dirty/how-to-restore-your-mac-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wget: filename too long</title>
		<link>http://www.tekkie.ro/quick-n-dirty/wget-filename-too-long/</link>
		<comments>http://www.tekkie.ro/quick-n-dirty/wget-filename-too-long/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 14:22:04 +0000</pubDate>
		<dc:creator>Georgiana</dc:creator>
				<category><![CDATA[Quick and dirty]]></category>
		<category><![CDATA[quickies]]></category>

		<guid isPermaLink="false">http://www.tekkie.ro/?p=230</guid>
		<description><![CDATA[
wget -O short_name.ext "your URL"

  
]]></description>
			<content:encoded><![CDATA[<p><code><br />
wget -O short_name.ext "your URL"<br />
</code></p>
<p> <img src='http://www.tekkie.ro/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tekkie.ro/quick-n-dirty/wget-filename-too-long/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change your layout in Android landscape / portrait mode</title>
		<link>http://www.tekkie.ro/quick-n-dirty/how-to-change-your-layout-in-android-landscape-portrait-mode/</link>
		<comments>http://www.tekkie.ro/quick-n-dirty/how-to-change-your-layout-in-android-landscape-portrait-mode/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 19:12:30 +0000</pubDate>
		<dc:creator>Georgiana</dc:creator>
				<category><![CDATA[Quick and dirty]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[quickies]]></category>

		<guid isPermaLink="false">http://www.tekkie.ro/?p=226</guid>
		<description><![CDATA[In the res folder we are used to having a layout folder, in which we keep the XML files which describe our application&#8217;s layouts. This trick will show you how to improve the view in landscape or portrait mode, whichever you might need.
How do I quickly change my emulator from portrait to landscape and viceversa?
Use [...]]]></description>
			<content:encoded><![CDATA[<p>In the <code>res</code> folder we are used to having a <code>layout</code> folder, in which we keep the XML files which describe our application&#8217;s layouts. This trick will show you how to improve the view in landscape or portrait mode, whichever you might need.</p>
<h3>How do I quickly change my emulator from portrait to landscape and viceversa?</h3>
<p>Use <code>Ctrl + F11</code> to test around.</p>
<h3>Can I only improve the layout and use no extra code?</h3>
<p>The short answer is <strong>yes</strong>, definitely.</p>
<p>The layouts in <code>/res/layout</code> are applied to both portrait and landscape, unless you specify otherwise. Let&#8217;s assume we have <code>/res/layout/home.xml</code> for our homepage and we want it to look differently in the 2 layout types.</p>
<ol>
<li>create folder <code>/res/layout-land</code> (here you will keep your landscape adjusted layouts)</li>
<li>copy <code>home.xml</code> there</li>
<li>make necessary changes to it</li>
<li>run the application in the emulator and test it using the <code>Ctrl + F11</code> combination</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.tekkie.ro/quick-n-dirty/how-to-change-your-layout-in-android-landscape-portrait-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
