<?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>Andrew Vayanis &#187; Computing</title>
	<atom:link href="http://www.vayanis.com/category/computing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vayanis.com</link>
	<description>... a little piece of my mind.</description>
	<lastBuildDate>Wed, 02 Feb 2011 05:05:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>OS X 10.6 (Snow Leopard) – using MAMP/PECL to install PHP extensions</title>
		<link>http://www.vayanis.com/2010/05/19/os-x-10-6-snow-leopard-using-mamppecl-to-install-php-extensions/</link>
		<comments>http://www.vayanis.com/2010/05/19/os-x-10-6-snow-leopard-using-mamppecl-to-install-php-extensions/#comments</comments>
		<pubDate>Wed, 19 May 2010 15:48:25 +0000</pubDate>
		<dc:creator>Andrew Vayanis</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[Pecl]]></category>

		<guid isPermaLink="false">http://www.vayanis.com/?p=88</guid>
		<description><![CDATA[Need help installing PHP extensions for OS X 10.6 (Snow Leopard) using MAMP and the included pecl binary? Well, you have come to the right place. If you have tried this on its own, you will notice that none of the extensions pecl builds will work with MAMP. This is because MAMP is compiled as [...]]]></description>
			<content:encoded><![CDATA[<p>Need help installing PHP extensions for OS X 10.6 (Snow Leopard) using MAMP and the included pecl binary?  Well, you have come to the right place.  If you have tried this on its own, you will notice that none of the extensions pecl builds will work with MAMP.  This is because MAMP is compiled as a 32-bit binary whereas pecl tries to build 64-bit PHP extensions.</p>
<p>[Update Feb. 1, 2011]</p>
<p>A much easier way to install PECL packages:</p>
<p><code>CFLAGS="-arch i386" ./pecl install</code></p>
<p><del datetime="2011-02-02T05:04:42+00:00">To get pecl working properly, make sure you have <a href="http://developer.apple.com/technologies/tools/xcode.html">Xcode</a> installed on you machine.  Next, you will need to get a copy of MAMP&#8217;s source and prepare it using 32-bit compile flags. You can download the MAMP source from the <a href="http://www.mamp.info/en/downloads/index.html">MAMP download page</a>. Running the .dmg should extract the source. After extracting the source run the following:</del><br />
<span id="more-88"></span><br />
<del datetime="2011-02-02T05:04:42+00:00"><code><br />
mkdir /Applications/MAMP/Library/Include/<br />
mv /path/to/extracted/mamp/source/ /Applications/MAMP/Library/Include/<br />
</code></del></p>
<p><del datetime="2011-02-02T05:04:42+00:00">Next you will want to extract the PHP package and do the following to prepare the package:</del></p>
<p><del datetime="2011-02-02T05:04:42+00:00"><code><br />
mv /Applications/MAMP/Library/Include/extracted_php_source/ /Applications/MAMP/bin/php5/include/php/<br />
cd /Applications/MAMP/bin/php5/include/php/<br />
MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/Applications/MAMP/bin/php5/bin/php-config<br />
</code></del></p>
<p><del datetime="2011-02-02T05:04:42+00:00">Finally, you now can install pecl extensions with the following command:</del><br />
<del datetime="2011-02-02T05:04:42+00:00"><code><br />
MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' /Applications/MAMP/bin/php5/bin/pecl install<br />
</code></del></p>
<p>And that&#8217;s it! Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vayanis.com/2010/05/19/os-x-10-6-snow-leopard-using-mamppecl-to-install-php-extensions/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Ext3 Data Recovery</title>
		<link>http://www.vayanis.com/2007/07/06/ext3-data-recovery/</link>
		<comments>http://www.vayanis.com/2007/07/06/ext3-data-recovery/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 04:35:21 +0000</pubDate>
		<dc:creator>Andrew Vayanis</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[ext3]]></category>

		<guid isPermaLink="false">http://www.vayanis.com/2007/07/06/ext3-data-recovery/</guid>
		<description><![CDATA[I recently found myself in a tough situation when I accidentally typed rm * &#60;dir_name&#62;/ as opposed to rm &#60;dir_name&#62;/* , deleting the current project I was working on. Having instantly realized my mistake, I quickly unmounted my drive and powered down the machine I was working on. As I frantically searched the net for [...]]]></description>
			<content:encoded><![CDATA[<p>I recently found myself in a tough situation when I accidentally typed rm * &lt;dir_name&gt;/ as opposed to rm &lt;dir_name&gt;/* , deleting the current project I was working on.  Having instantly realized my mistake, I quickly unmounted my drive and powered down the machine I was working on.  As I frantically searched the net for some way to undo what I had just done, it seemed as though my month&#8217;s hard work was slipping further and further down the drain.  Almost every post and response I found seemed to point towards the horrible truth that I might have to rebuild my entire project from scratch.  This, of course, was not a suitable solution.<br />
<span id="more-16"></span></p>
<blockquote><p>So why can&#8217;t I use normal undelete tools like the ones available for ext2?</p></blockquote>
<p>According to the many posts I found on this topic, undelete is not possible because ext3 incorporates journaling which in turn zeros out the disk&#8217;s block pointers during the rm process.  The only solution proposed was the use of the &#8216;grep&#8217; command to search for the missing data.  This isn&#8217;t exactly ideal because I need to know at least something about all the code I was recovering to find it all. Luckily, I found a blog post by <a href="http://www.csummers.org/index.php/2005/12/20/undelete-text-files-on-linux-ext3-partition/" title="undelete text files on Linux ext3 partition">Curtis Summers</a> who came to the same conclusion and was able to suggest a better solution.</p>
<blockquote><p>A rethink of the problem led me to the &#8216;strings&#8217; program, which extracts text from files, stdin, or even a disk device. I dumped all text from the disk partition to a text file like so:</p>
<p>#strings /dev/sda7 &gt; /path/to/big_text_file</p></blockquote>
<p>This worked much better and was much easier than using &#8216;grep&#8217;.  Unfortunately, the strings program outputs a raw dump of all the text it finds and doesn&#8217;t seem to follow filesystem pointers I guess, because the text came back was in chunks spread throughout the output file it created.  Since I didn&#8217;t have the time to go through and piece all the bits of code together, I decided to continue searching for more viable option.  After running the shareware tool &#8216;Quick Recovery&#8217; which claimed could undelete data from the ext3 filesystem, I stumbled upon Brian Carrier&#8217;s <a href="http://web.archive.org/web/20060523225341/http://linux.sys-con.com/read/117909.htm" title="Why Recovering a Deleted Ext3 File Is Difficult . . .">Why Recovering a Deleted Ext3 File Is Difficult . . .</a> article.  This article explains two approaches to data recovery: <strong>&#8220;File Carving Recovery&#8221;</strong> which uses application type of the deleted file and <strong>&#8220;Journal-Based Recovery&#8221;</strong> which uses the filesystem journal.</p>
<p>I decided to go the File Carving approach and while I could not get the configuration for foremost working properly, since I had limited time to correct my mistake, I was still able to fully recover my entire project.  The techniques outlined in the article for locating and extracting raw blocks of data on the disk gave me similar output to Curtis Summers &#8216;strings&#8217; approach, but the text I found was much more contiguous and required very minimal puzzle solving on my part.  I must tip my hat to Brian for creating this very helpful and I am sure needed how-to guide.</p>
<h4>Moral of the story: always make sure you have backups&#8230; preferably in different directories and/or on different partitions.</h4>
]]></content:encoded>
			<wfw:commentRss>http://www.vayanis.com/2007/07/06/ext3-data-recovery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu/Linux &#8211; moving on up</title>
		<link>http://www.vayanis.com/2007/05/16/ubuntulinux-moving-on-up/</link>
		<comments>http://www.vayanis.com/2007/05/16/ubuntulinux-moving-on-up/#comments</comments>
		<pubDate>Thu, 17 May 2007 03:44:37 +0000</pubDate>
		<dc:creator>Andrew Vayanis</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.vayanis.com/2007/05/16/ubuntulinux-moving-on-up/</guid>
		<description><![CDATA[About two months ago, I decided it was time to revisit Linux in general after sitting down and reading through some of the new features offered by XGL with Compiz or Beryl. I installed Ubuntu 6.10 on a spare laptop late in march upgrading to 7.04 shortly after that, and I have been using it [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ubuntu.com" title="Ubuntu"><img src="http://173.255.225.117/wp-content/uploads/2007/05/ubuntulogo.png" title="Ubuntu" alt="Ubuntu" align="left" /></a>About two months ago, I decided it was time to revisit Linux in general after sitting down and reading through some of the new features offered by XGL with <a href="http://en.wikipedia.org/wiki/Compiz" title="Compiz">Compiz</a> or <a href="http://en.wikipedia.org/wiki/Beryl_%28window_manager%29" title="Beryl">Beryl</a>. I installed <a href="http://www.ubuntu.com" title="Ubuntu">Ubuntu</a> 6.10 on a spare laptop late in march upgrading to 7.04 shortly after that, and I have been using it as one of my primary workstations since. In case some of you may not know, I recently found out myself, the decimal number following the <a href="http://www.ubuntu.com" title="Ubuntu">Ubuntu</a> version, denotes the month it was released: 7.04 refers to version 7 released in April. Linux has definitely come a long way since I last used it in 2004, at least in terms of being a feasible desktop operating system for the masses.<br />
<span id="more-10"></span></p>
<h3>A little personal history</h3>
<p>I am a fairly new Mac convert; I made my switch about a year and a half ago after being exposed to OS X at work. I have always been a *nix fan, but I think my decision to switch was largely influenced by the clean and elegant User Interface offered by OS X combined with the power of having a console at my disposal. Up until recently, the Linux User Interface has been behind the curve, and is my main reason for staying away. Sure, you could install different window managers and use different themes, but I found that for the most part they were all a bit quirky. Maybe I didnâ€™t install them right or take the time to really figure them out. That in itself is a another problem of Linux and why it has not hit the mainstream yet: the command line better be your friend if you want to take full advantage of the system.</p>
<h3><a href="http://www.ubuntu.com" title="Ubuntu">Ubuntu</a> 7.04 &#8211; First glance</h3>
<p>This new release of <a href="http://www.ubuntu.com" title="Ubuntu">Ubuntu</a> seems to take Linux one step closer to being in the mainstream and I have faith that it will soon be there. Installing <a href="http://www.ubuntu.com" title="Ubuntu">Ubuntu</a> was a cinch as usual, but setting it up was even easier. Before this, my previous experience with <a href="http://www.ubuntu.com" title="Ubuntu">Ubuntu</a> 5.04 was somewhat painstaking, especially when trying to set up my wireless card. Of course it wasnâ€™t impossible and it took some reading and time to get the job done, but I have worked with computers for many years now. I hardly doubt nor do I expect the average use to be able to do this. Heck, most of the documentation and tutorials are online, so the process assumes you have a second machine available to figure things out.</p>
<h3>XGL and <a href="http://en.wikipedia.org/wiki/Beryl_%28window_manager%29" title="Beryl">Beryl</a></h3>
<p>Other than the easier setup, I am amazed with what XGL and <a href="http://en.wikipedia.org/wiki/Beryl_%28window_manager%29" title="Beryl">Beryl</a> have to offer as a window manager. It really makes Linux, for me at least, a much more enjoyable experience. I have always been a fan of tweaking the environment I work in because heck, if I am going to stare at a computer all day, I might as well enjoy what I look at. <a href="http://en.wikipedia.org/wiki/Beryl_%28window_manager%29" title="Beryl">Beryl</a> certainly does that for me, and although some of it may be purely eye candy such as the rotating cube, I still enjoy it. So for now, Linux, namely <a href="http://www.ubuntu.com" title="Ubuntu">Ubuntu</a>, feels almost complete to me. The next thing I hope to see are more polished applications as there are for the Mac.</p>
<h3>Still Lacking</h3>
<p>As a PHP Developer, Scream, and PHPedit just donâ€™t cut it, so I resort to Zend Studio which is a complete IDE rather than being a powerful text editor as my previous examples, and while I prefer the IDE, it would be nice to have a selection to choose from. This is only one example of Linux and what I feel is its lack of good user applications, but there are more. To clarify, I mean to say that Linux needs to focus more on the general user rather than on the computer savvy. I believe, the next few iterations of <a href="http://www.ubuntu.com" title="Ubuntu">Ubuntu</a> will fix this; I understand fully well that <a href="http://www.ubuntu.com" title="Ubuntu">Ubuntu</a> is only one distribution of Linux, but I believe that it is the furthest along to providing the ease of use consumers need. Hopefully, Linux application developers will pick up on to the needs of consumers and provide the necessary experience to make Linux a real desktop competitor.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vayanis.com/2007/05/16/ubuntulinux-moving-on-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

