<?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>Shai Perednik.com &#187; Unzip</title> <atom:link href="http://shaiperednik.com/tag/unzip/feed/" rel="self" type="application/rss+xml" /><link>http://shaiperednik.com</link> <description>IT Guru &#38; Developer</description> <lastBuildDate>Fri, 30 Dec 2011 13:52:36 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>How to Build a Hackintosh with Snow Leopard, Start to Finish [How To]</title><link>http://shaiperednik.com/2009/09/how-to-build-a-hackintosh-with-snow-leopard-start-to-finish-how-to/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-build-a-hackintosh-with-snow-leopard-start-to-finish-how-to</link> <comments>http://shaiperednik.com/2009/09/how-to-build-a-hackintosh-with-snow-leopard-start-to-finish-how-to/#comments</comments> <pubDate>Tue, 08 Sep 2009 06:00:12 +0000</pubDate> <dc:creator>System</dc:creator> <category><![CDATA[My Clippings]]></category> <category><![CDATA[amazon]]></category> <category><![CDATA[Apple]]></category> <category><![CDATA[Build]]></category> <category><![CDATA[Hackintosh]]></category> <category><![CDATA[Information]]></category> <category><![CDATA[IO]]></category> <category><![CDATA[ISO]]></category> <category><![CDATA[Leopard]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[OSX]]></category> <category><![CDATA[php]]></category> <category><![CDATA[Snow Leopard]]></category> <category><![CDATA[ssl]]></category> <category><![CDATA[Sudo]]></category> <category><![CDATA[Unzip]]></category> <category><![CDATA[video]]></category> <category><![CDATA[way]]></category> <category><![CDATA[wind]]></category> <category><![CDATA[XP]]></category><guid isPermaLink="false">http://shaiperednik.com/2009/09/how-to-build-a-hackintosh-with-snow-leopard-start-to-finish-how-to/</guid> <description><![CDATA[Automatically pulled from My Clippings on NewsGator Online Two years ago, I detailed how to build a Hackintosh for under $800&#8212;then covered how to do the same with less hacking. Now that Snow Leopard&#8217;s out, we&#8217;re revisiting the Hackintosh, building a Hack Pro from scratch for roughly $900. For folks eager to try a Mac [...]]]></description> <content:encoded><![CDATA[<p>Automatically pulled from <a href="http://services.newsgator.com/ngws/svc/ClippingsRSS.aspx?uid=1639696">My Clippings on NewsGator Online</a></p><p><a rel="lytebox" href="http://cache.gawker.com/assets/images/lifehacker/2009/09/snowhackintosh1.jpg" rel="lightbox[594]"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/9c1bb_500x_snowhackintosh1.jpg" class="left image500" width="500" /></a>Two years ago, I detailed <a href="http://lifehacker.com/321913/build-a-hackintosh-mac-for-under-800">how to build a Hackintosh for under $800</a>&mdash;then covered how to do the same <a href="http://lifehacker.com/348653/install-os-x-on-your-hackintosh-pc-no-hacking-required">with less hacking</a>. Now that <a href="http://shaiperednik.com/tag/snow-leopard/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Snow Leopard">Snow Leopard</a>&#8217;s out, we&#8217;re revisiting the <a href="http://shaiperednik.com/tag/hackintosh/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Hackintosh">Hackintosh</a>, building a Hack Pro from scratch for roughly $900.</p><p>For folks eager to try a <a href="http://shaiperednik.com/tag/mac/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Mac">Mac</a> but never wanted to plunk down the high price tag to get it, the Hackintosh&mdash;that is, a regular PC tweaked to run OS X&mdash;has always been an attractive option. That said, it&#8217;s not something you should take on lightly unless you&#8217;re willing&mdash;even enthusiastic&mdash;to <a href="http://shaiperednik.com/tag/build/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Build">build</a> and maintain a PC entirely from scratch. I can&#8217;t guarantee it&#8217;ll be easy, but if you follow this guide step-for-step (it&#8217;s exhaustive) and stick with the same (or at least roughly the same) hardware as I am, I can vouch for a rock solid system that also happens to cost a good deal less than you&#8217;d pay for a comparable <a href="http://shaiperednik.com/tag/mac/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Mac">Mac</a>.</p><h3>Price Comparisons</h3><p>Most Hackintosh enthusiasts will say you shouldn&#8217;t build a Hackintosh primarily to save money, as it&#8217;s more than just an insert-disc-and-click install. Still, I always enjoy looking at the price differences between my Hackintosh and <a href="http://shaiperednik.com/tag/apple/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apple">Apple</a>&#8217;s current offerings. At the moment, the cheapest Mac in the <a href="http://shaiperednik.com/tag/apple/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Apple">Apple</a> store is a <a href="http://store.apple.com/us/configure/MB463LL/A?mco=Nzk2MDkyOA">Mac mini</a> sporting a 2.0GHz Core 2 Duo processor, 1GB of RAM, and a 120GB hard drive. For $300 more, I&#8217;m running a 3.0GHz <em>Quad</em>-Core processor, 8GB of RAM, a 1TB hard drive, and a damn saucy <a href="http://shaiperednik.com/tag/video/" class="st_tag internal_tag" rel="tag" title="Posts tagged with video">video</a> card. I could have made this build much cheaper by skimping on hardware and still ended up with a great little machine, but I liked aiming for around the $800 price point from <a href="http://lifehacker.com/321913/build-a-hackintosh-mac-for-under-800">my last build</a>&mdash;plus I really wanted to make it <em>fly</em>.</p><p><a rel="lytebox" href="http://cache.gawker.com/assets/images/lifehacker/2009/09/macs.png" rel="lightbox[594]"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/9c1bb_500x_macs.jpg" class="left image500" width="500" /></a>The most expensive iMac, by comparison, has only a 3.06GHz Core 2 Duo with 4GB of memory for <em>$2,200</em> ($1,300 more than my build, but it is built into a monitor), while the cheapest Mac Pro has a single 2.66GHz Quad-Core processor, 3GB of RAM, and a 640GB hard drive&mdash;and it costs <em>$2,500</em> ($1,600 more than mine, though it&#8217;s a different and better processor and DDR3 rather than DDR2 RAM). In short, my $900 &#8220;Hack Pro&#8221; sports nearly as good or better hardware than any Mac that Apple sells short of the $3,300 <a href="http://store.apple.com/us/configure/MB535LL/A?mco=Nzk2MDk0Mw">8-Core Mac Pro</a> (which can, incidentally, get more expensive, but it won&#8217;t get much better).</p><h3>The Hardware</h3><p>You can find plenty of hardware capable of supporting OS X on a Hackintosh&mdash;there&#8217;s no definitive build&mdash;but we&#8217;re not going to go into that here. I&#8217;ve put together a list of hardware that I&#8217;m using and that I can guarantee will (or at least <em>has</em>) run Snow <a href="http://shaiperednik.com/tag/leopard/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Leopard">Leopard</a> like a dream.</p><p>Here&#8217;s a link to everything I bought over at Newegg:</p><ul><li><a href="http://www.dpbolvw.net/click-3621681-10440897?url=http%3A%2F%2Fwww.newegg.com%2FProduct%2FProduct.aspx%3FItem%3DN82E16811129024%26nm_mc%3DAFC-C8Junction%26cm_mmc%3DAFC-C8Junction-_-Cases%2B%28Computer%2BCases%2B-%2BATX%2BForm%29-_-Antec-_-11129024&amp;cjsku=N82E16811129024">Antec Sonata III 500 Black ATX Mid Tower Computer Case 500W Power Supply</a></li><li><a href="http://www.tkqlhce.com/click-3621681-10440897?url=http%3A%2F%2Fwww.newegg.com%2FProduct%2FProduct.aspx%3FItem%3DN82E16813128358%26nm_mc%3DAFC-C8Junction%26cm_mmc%3DAFC-C8Junction-_-Motherboards%2B-%2BIntel-_-GIGABYTE-_-13128358&amp;cjsku=N82E16813128358">GIGABYTE GA-EP45-UD3P Intel P45 ATX Intel Motherboard</a></li><li><a href="http://www.tkqlhce.com/click-3621681-10440897?url=http%3A%2F%2Fwww.newegg.com%2FProduct%2FProduct.aspx%3FItem%3DN82E16819115130%26nm_mc%3DAFC-C8Junction%26cm_mmc%3DAFC-C8Junction-_-Processors%2B-%2BDesktops-_-Intel-_-19115130&amp;cjsku=N82E16819115130">Intel Core 2 Quad 3.0GHz LGA 775 95W Quad-Core Processor</a></li><li><a href="http://www.jdoqocy.com/click-3621681-10440897?url=http%3A%2F%2Fwww.newegg.com%2FProduct%2FProduct.aspx%3FItem%3DN82E16814130339%26nm_mc%3DAFC-C8Junction%26cm_mmc%3DAFC-C8Junction-_-Video%2BCards-_-EVGA-_-14130339&amp;cjsku=N82E16814130339">GeForce 9800 GTX+ 512MB 256-bit GDDR3 PCI Express 2.0 x16</a></li><li><a href="http://www.kqzyfj.com/click-3621681-10440897?url=http%3A%2F%2Fwww.newegg.com%2FProduct%2FProduct.aspx%3FItem%3DN82E16820220227%26nm_mc%3DAFC-C8Junction%26cm_mmc%3DAFC-C8Junction-_-Memory%2B%28Desktop%2BMemory%29-_-Patriot%2BMemory-_-20220227&amp;cjsku=N82E16820220227">Patriot Extreme Performance 4GB (2 x 2GB) DDR2 800 (PC2 6400) Dual Channel Kit Desktop Memory</a> x 2 (for a total of 8GB)</li><li><a href="http://www.tkqlhce.com/click-3621681-10440897?url=http%3A%2F%2Fwww.newegg.com%2FProduct%2FProduct.aspx%3FItem%3DN82E16822136317%26nm_mc%3DAFC-C8Junction%26cm_mmc%3DAFC-C8Junction-_-Hard%2BDrives-_-Western%2BDigital-_-22136317&amp;cjsku=N82E16822136317">Western Digital Caviar Green WD10EADS 1TB SATA 3.0Gb/s 3.5&#8243; Internal Hard Drive</a></li><li><a href="http://www.tkqlhce.com/click-3621681-10440897?url=http%3A%2F%2Fwww.newegg.com%2FProduct%2FProduct.aspx%3FItem%3DN82E16827129045%26nm_mc%3DAFC-C8Junction%26cm_mmc%3DAFC-C8Junction-_-CD%2FDVD%2BBurners%2B%28RW%2BDrives%29-_-Pioneer-_-27129045&amp;cjsku=N82E16827129045">Pioneer CD/DVD Burner Black SATA Model</a></li><li><a href="http://www.anrdoezrs.net/click-3621681-10440897?url=http%3A%2F%2Fwww.newegg.com%2FProduct%2FProduct.aspx%3FItem%3DN82E16833156139%26nm_mc%3DAFC-C8Junction%26cm_mmc%3DAFC-C8Junction-_-Network%2B-%2BInterface%2BCards-_-Trendnet-_-33156139&amp;cjsku=N82E16833156139">10/ 100/ 1000/ 2000Mbps PCI Copper Gigabit Network Adapter</a> (The motherboard has onboard Ethernet, naturally, but this particular board has some problems with onboard in the Hackintosh world. Luckily, Ethernet cards are extremely cheap.)</li></ul><p><a rel="lytebox" href="http://cache.gawker.com/assets/images/lifehacker/2009/09/wishlist.png" rel="lightbox[594]"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e0dd9_500x_wishlist.jpg" class="left image500" width="500" /></a></p><h3>The Build</h3><p>Rather than detail every step necessary to put the actual pieces of your new computer together (this guide already reads like the Bible as is), I&#8217;m just going to point you to our <a href="http://lifehacker.com/5151369/the-first+timers-guide-to-building-a-computer-from-scratch">first-timer&#8217;s guide to building a PC from scratch</a>. Do your building, make sure everything&#8217;s booting up as it should be (i.e., you can boot the computer to the point where it does nothing, because you have nothing installed on it), then let&#8217;s move on.</p><h3>What <em>Else</em> You&#8217;ll Need</h3><p>Assuming you&#8217;ve purchased all the necessary parts for your build (linked above), you&#8217;ll still need a few other things before you get started:</p><ul><li>A USB thumb drive that&#8217;s at least 8GB in size (I&#8217;m using <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16820233042">this 16GB Corsair drive</a>, but obviously any sufficiently sized thumb drive should do just fine.)</li><li>A copy of the <a href="http://www.amazon.com/exec/obidos/ASIN/B001AMHWP8/ref=nosim/gizmodo-20">Snow Leopard Install DVD</a>. You can <a href="http://lifehacker.com/5347086/confirmed-29-snow-leopard-installs-whether-or-not-youve-got-leopard">use the $29 &#8220;Upgrade&#8221; disc to install</a>, even though this is a fresh installation. <em>Note: If you feel like being completely honest, go ahead and buy the <a href="http://www.amazon.com/exec/obidos/ASIN/B002I0JKE2/ref=nosim/gizmodo-20">Mac Box Set</a>&mdash;though, honestly, Apple&#8217;s practically made it hard *not* to buy the fully functional install disc.</em></li><li>Another Mac to do some Terminal work on. (You&#8217;ll only need this other Mac for a few steps. I used my MacBook Pro, but you could also borrow a friends for an hour or so, too.)</li></ul><h3>Step One: Prepare Your Thumb Drive</h3><p>We&#8217;re going to be installing Snow Leopard to your Hackintosh from your thumb drive rather than from the Snow Leopard install DVD, since in order to run the installer on your PC to begin with, you&#8217;ll need to slightly customize the <a href="http://shaiperednik.com/tag/way/" class="st_tag internal_tag" rel="tag" title="Posts tagged with way">way</a> the installer is loaded. (More specifically, we&#8217;ll be loading a custom bootloader onto the thumb drive that will make booting into the install work like a charm.*)</p><p>So first things first: You need to format your thumb drive and then turn your Snow Leopard install disc into a disk image on your desktop. Here&#8217;s how to do it:</p><ol><li><strong>Launch the Disk Utility application on your borrowed Mac</strong> (located at /Applications/Utilities/Disk Utility)</li><li><strong>Format and partition your thumb drive:</strong> Insert your thumb drive; after a second, it should show up in the Disk Utility Sidebar. When it does, (1) click on it, then (2) click on Partition. (3) Choose 1 Partition from the Volume Scheme, (4) give it a name (I called my HackintoshInstall) and select Mac OS Extended (Case-sensitive, Journaled) from the Format drop-down. Now&mdash;and this is important&mdash;(5) hit the Options button and make sure GUID Partition Table is selected as the partition scheme. Once you&#8217;ve made sure to set all the appropriate settings, just (6) click Apply and Disk Utility will get to partitioning your thumb drive.<a rel="lytebox" href="http://cache.gawker.com/assets/images/lifehacker/2009/09/Partition_your_thumb_drive-1.png" rel="lightbox[594]"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e0dd9_500x_Partition_your_thumb_drive-1.jpg" class="left image500" width="500" /></a></li><li><strong>Copy the Snow Leopard Install DVD image to your hard drive:</strong> In the following step we&#8217;ll be turning your thumb drive into a Snow Leopard Install drive, but before we do that, we need to get the installer off your DVD and onto your hard drive. To achieve this, insert the Snow Leopard DVD. When it shows up in the Disk Utility sidebar, (1) click on it, then (2) click New Image in the Disk Utility toolbar. Choose where you want to save it (for the sake of convenience, I put it on my Desktop), then click the Save button. Now go grab yourself a cold drink. This will take some time. When it finishes, move on to the next step.<a rel="lytebox" href="http://cache.gawker.com/assets/images/lifehacker/2009/09/Make_disk_image_of_install_disc.png" rel="lightbox[594]"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e0dd9_500x_Make_disk_image_of_install_disc.jpg" class="left image500" width="500" /></a></li><li><strong>Restore the Snow Leopard Install disk image to your thumb drive:</strong> Now, in Disk Utility, (1) click on HackintoshInstall (or whatever you called your partitioned thumb drive) and (2) click on Restore. (3) Drag and drop Mac OS X Install DVD.dmg from the sidebar to the Source field, then (4) drag and drop your thumb drive from the sidebar to the Destination field. Now simply (5) click on Restore and enter your password when prompted. Disk Utility will take everything on the Snow Leopard Install DVD and restore that image to your thumb drive&mdash;since, like I said above, we&#8217;ll be installing Snow Leopard from our thumb drive instead of the DVD. Again, go grab yourself another drink; this will take a few minutes. When it finishes, your thumb drive has basically been turned into a Snow Leopard installation drive.<a rel="lytebox" href="http://cache.gawker.com/assets/images/lifehacker/2009/09/Restore_Disk_Image_to_Thumb_Drive.png" rel="lightbox[594]"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e0dd9_500x_Restore_Disk_Image_to_Thumb_Drive.jpg" class="left image500" width="500" /></a></li></ol><p>As I said earlier, the thumb drive needs a little finesse before you can boot the Snow Leopard installer on your PC hardware; let&#8217;s apply that finesse now.</p><p><em>Warning: Semi-heavy Terminal work ahead. It&#8217;s not that difficult, and I&#8217;ve gone into a lot of detail to make it as easy to follow along as possible, but if you&#8217;re not at least a little comfortable with the command line, it may make you pretty uncomfortable. Beg or borrow a command line geek for an afternoon, if needed.</em></p><p><a name="bootloader_guide"></a></p><ol><li>Make sure your thumb drive is still plugged in, open Terminal (/Applications/Utilities/Terminal) and type in:<div>diskutil list</div><p><a rel="lytebox" href="http://cache.gawker.com/assets/images/lifehacker/2009/09/Diskutil_in_Terminal.png" rel="lightbox[594]"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e0dd9_500x_Diskutil_in_Terminal.jpg" class="left image500" width="500" /></a><br /> We&#8217;re interested in two pieces of <a href="http://shaiperednik.com/tag/information/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Information">information</a> here. The first is the root identifier for your thumb drive (mine looks like disk2, as you can see in the screenshot). The second is the specific identifier for the portion of the thumb drive that contains the Snow Leopard installer. (Again, see the screenshot.) In my case, the first is <code>disk2</code> and the second is <code>disk2s2</code>. Yours may vary depending on how many disks are on your system. Copy your identifiers down somewhere. We&#8217;ll need them later.</p></li><li>Head to the <a href="http://chameleon.osx86.hu/">Chameleon homepage</a>, find the Latest Releases section of the site&#8217;s sidebar, and download the latest version of Chameleon. (As of this writing, it&#8217;s Chameleon-2.0-RC2-r640.) Uncompress the download and move the Chameleon folder to someplace that&#8217;s easy to access. I&#8217;m putting it on my Desktop.</li><li>Now, in Terminal, <code>cd</code> to the i386 folder of the Chameleon folder. On my Mac, the command looks like this:<p><a rel="lytebox" href="http://cache.gawker.com/assets/images/lifehacker/2009/09/Terminal_____bash_____80__24.png" rel="lightbox[594]"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e0dd9_500x_Terminal_____bash_____80__24.jpg" class="left image500" width="500" /></a><br /> (1)</p><div>cd /Users/adam/Desktop/Chameleon-2.0-RC2-r640-bin/i386/</div><p>Yours should look similar if the Chameleon folder is on your Desktop, except your username should replace mine. (Quick shortcut: In Terminal, type <code>cd</code> , then drag and drop i386 folder inside Chameleon-2.0-RC2-r640 to Terminal.) Hit Enter.</p></li><li>You&#8217;re going to be running a couple of Terminal commands that will use Chameleon to make your thumb drive friendly to booting up the OS X installer. They are, as follows:<p>(2)</p><div><a href="http://shaiperednik.com/tag/sudo/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Sudo">sudo</a> fdisk -f boot0 -u -y /dev/rdisk2</div><p><span>IMPORTANT:</span> On your computer, replace rdisk2 with whatever you copied down above. In my case, the thumb drive&#8217;s root identifier was disk2, so <code>/dev/rdisk2</code> is as it should be.</p><p>After you type in that command and hit Enter, you&#8217;ll need to enter your user password to execute it. Do so, then execute the following command, again paying special attention to the disk identifier we took note of above:</p><p>(3)</p><div>sudo dd if=boot1h of=/dev/rdisk2s2</div><p><span>IMPORTANT:</span> As I noted, my Snow Leopard partition was disk2s2, so that command is right for me. You should replace the disk2s2 portion of the command with whatever you noted as the portion of your thumb drive that contains the Snow Leopard installer.</p></li><li>Now we&#8217;re going to place an awesome, custom EFI bootloader on your thumb drive that lets us load into the installer (and into Snow Leopard in general). So first, head over to <a href="http://netkas.org/?p=119">netkas.org</a> and download the bootloader from the bootloader link. Make sure you download it somewhere convenient. (Again, I&#8217;ve just downloaded it to my Desktop.)<p>Now head back into Terminal, where we&#8217;re going to copy the boot file to your thumb drive. (One might think that you could just do this using Finder via drag-and-drop, but in this case, doing it via Terminal is necessary.) So, in Terminal, your command should look similar to this:</p><div>sudo cp /Users/adam/Desktop/boot /Volumes/HackintoshInstall</div><p><a rel="lytebox" href="http://cache.gawker.com/assets/images/lifehacker/2009/09/Copy_Boot_file_to_thumb_drive.png" rel="lightbox[594]"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e0dd9_500x_Copy_Boot_file_to_thumb_drive.jpg" class="left image500" width="500" /></a>The easiest way to do this is simply type in <code>sudo cp</code> , (1) drag and drop the boot file into Terminal, then (2) drag and drop your mounted thumb drive from the desktop into Terminal. (The drag-and-drop method is a quick Terminal trick that pastes the full path to each file or directory.) After that, simply hit Enter. (Enter your password if necessary.)</p></li><li>I know it seems like we&#8217;ve already run a marathon, but you&#8217;ve got one last step and then it&#8217;s relatively smooth sailing from here on. Download <a href="http://cache.gawker.com/assets/images/lifehacker/2009/09/Extra.zip">Extra.zip</a>, <a href="http://shaiperednik.com/tag/unzip/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Unzip">unzip</a> the file, and then drag and drop the Extra folder into your thumb drive. Nothing fancy, a simple drag and drop with your trusty old mouse will do. Once you&#8217;ve done that, open up your thumb drive and verify that it looks something like the screenshot below. (Notice the Extra folder, the boot file, and the OS X installer.)</li></ol><p>Take a deep breath. By this time, you&#8217;ve completed all the hard work. Now it&#8217;s time to boot up your machine, tweak your BIOS settings so they&#8217;re ready for your OS X install, and then it&#8217;s smooth sailing.</p><h3>Step 2: Set Your BIOS</h3><p>Before you can boot into or install OS X on your Hackintosh, you&#8217;ve got to make some small adjustments to your BIOS. Rather than taking you step by step through every change you need to make, I&#8217;ve simply snapped a picture of the relevant BIOS screens and added some notes. Just click through these images and make sure your BIOS settings match up.</p></p><h3>Step 3: Install Snow Leopard</h3><p>If you&#8217;ve made it this far, the hard part is over. Now it&#8217;s time to install Snow Leopard, which&mdash;unlike what we&#8217;ve done so far&mdash;is <em>extremely</em> easy.</p><p>Make sure you&#8217;ve set the boot priority in your BIOS to boot from your thumb drive (you can see how in <a href="http://feeds.gawker.com/~r/lifehacker/full/~3/q60NIeG5BnI/how-to-build-a-hackintosh-with-snow-leopard-start-to-finish">this pic</a>), then simply plug your prepared thumb drive into your Hackintosh and power it up. Since screenshots aren&#8217;t really an option&mdash;and since it&#8217;s a fairly easy process&mdash;my install instructions come in video format:</p><p> <img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e0dd9_2SXVsyeKSvs.jpg"></p><p><em>The quick version goes like this: Boot into the Snow Leopard installer, format the hard drive you want to install Snow Leopard to (go to Utilities -&gt; Disk Utility, then click on the drive, select 1 Partition, Mac OS X Journaled (<strike>Case-Sensitive</strike> <em>Update: Several readers have suggested that case-sensitive formatting can cause problems with some applications, like Adobe&#8217;s Creative Suite, so you may be better off sticking with plain old Mac OS X Journaled</em>.), give it a name, and make sure GUID Partition Table is set in the Options. After you Apply the new partition, go back to the installer and install like normal to that drive. When you reboot after the install completes, press the arrow keys at the graphical boot menu and select the drive you just installed Snow Leopard to.</em></p><h3>A Few Final Tweaks</h3><p>You&#8217;ll notice that, the first time Snow Leopard boots up, you&#8217;re not enjoying any sound along with that snazzy intro video. We&#8217;ve got one small, but very simple tweak to make to get sound up and running. Here&#8217;s how it works:</p><ol><li><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e0dd9_Fix_yer_audio.png" class="left image340" width="340" />Download the <a href="http://www.insanelymac.com/forum/index.php?showtopic=140647">Kext Utility</a>, then download this <a href="http://cache.gawker.com/assets/images/lifehacker/2009/09/ALC889A.Fix.kext.zip">audio kext</a> (a kext is kind of the Mac equivalent of a driver) and unzip it to your Desktop. Once you&#8217;ve got both in front of you, drag and drop the ALC889.Fix.kext file onto the Kext Utility. You&#8217;ll be prompted to enter your password, so go ahead and do that when you&#8217;re prompted.</li><li>Once the Kext Utility finishes running, open up Disk Utility (/Applications/Utilities/Disk Utility.app). Once it loads up, (1) click on your Snow Leopard drive (mine&#8217;s called Hack Leopard), then (2) click Repair Disk Permissions.</li><li>Once Disk Utility finishes repairing your disk permissions, just restart. After your computer reboots, your audio should be working like a charm. (If not, open up Sound in your System Preferences and try changing the Output device.)</li></ol><p>As things stand on your system right now, you need to have your thumb drive plugged in every time you reboot in order to load the bootloader that allows your Hackintosh to load OS X. There are certain benefits to this (for example, right now you could quite likely unplug this hard drive from your Hackintosh, plug it into a Mac Pro, and it would work just fine), but it can also be a bit of a hassle. At this point, though, you can load the bootloader and other necessary components onto the Snow Leopard hard drive and change that drive to your primary boot drive in your BIOS. All you&#8217;ve got to do is head back to the <a href="http://feeds.gawker.com/~r/lifehacker/full/~3/q60NIeG5BnI/how-to-build-a-hackintosh-with-snow-leopard-start-to-finish#bootloader_guide">step-by-step bootloader guide</a> above and repeat every step, except this time you&#8217;re applying each step to your hard drive rather than your thumb drive.</p><h3>Congratulations! You&#8217;ve Got a Fully Functional Hackintosh</h3><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e0dd9_About_This_Mac_01.png" class="left image340" width="340" />&#8220;But for <em>realz</em>,&#8221; you ask, &#8220;does it actually work well?&#8221;</p><p>I&#8217;ve been using one or another Hackintosh as my main computer for two years now, and while I&#8217;ve run into the occasional bump in the road, they&#8217;ve generally run extremely well. In fact, things just seem to keep on getting better and better, and the current build I&#8217;m running (the one I walked you through above) feels like the fastest, most stable build to date.</p><p>That&#8217;s not to say that you won&#8217;t experience an occasional kernel panic&mdash;you may very well. But I get crashes on my MacBook Pro, too, and I&#8217;ve never felt that my current Hack Pro has any more problems than any other proper Mac I&#8217;ve used on a regular basis. That may seem a bit crazy, but it&#8217;s true.</p><p>As for upgrading&mdash;often, you&#8217;ll be able to upgrade your Hack Pro without any problems. That said, it&#8217;s something you normally need to check on beforehand, and you should take <a href="http://lifehacker.com/5345690/prep-your-mac-for-snow-leopard">all of the upgrade precautions</a> before giving it a go.</p><p>I&#8217;m planning on letting readers know how my Hack Pro handles various 10.6.x updates shortly after they happen, though, and if it requires a little extra work, I&#8217;ll show you how to handle it.</p><hr /><p>Let&#8217;s hear your thoughts&mdash;whether you&#8217;ve dabbled in the world of Hackintosh, are interested in doing so, or just think it&#8217;s plain crazy&mdash;in the comments.</p><p><em><strong><a href="http://adampash.com/">Adam Pash</a></strong> is the editor of Lifehacker; he loves a good hack, cherishes his Macintosh, and craves a Mac Pro, so building a Hack Pro was a perfect fit. His special feature <a href="http://www.lifehacker.com/software/hack-attack/">Hack Attack</a> appears on Lifehacker. Subscribe to the <a href="http://www.lifehacker.com/software/hack-attack/index.xml">Hack Attack RSS feed</a> to get new installments in your newsreader.</em></p><p>* OS X boots in a different way than, say, Windows, using a boot tool called <a href="http://en.wikipedia.org/wiki/Extensible_Firmware_Interface">EFI</a> (Extensible Firmware Interface). On store-bought Macs, EFI is loaded on the hardware by default (in fact, in place of the standard BIOS most of us are used to). In order to boot OS X on our non-factory Macs, we need to create our own custom path to EFI.</p><p><em>Huge thanks to <a href="http://stellarola.tumblr.com/">stellarola</a>, Onetrack, and weaksauce12 for all their help in getting me up to speed on installing Snow Leopard on a Hackintosh PC. The Hackintosh community is large and active, and they are awesome.</em></p><p><a href="http://ads.pheedo.com/click.phdo?s=bfe8de948d6d4ffdb6e2459cd82cc09d&amp;p=1"><img alt="" style="border: 0" border="0"></a><br /> <img alt="" height="0" width="0" border="0"><div> <a href="http://feeds.gawker.com/~ff/lifehacker/full?a=q60NIeG5BnI:nLgvVi7g5nE:H0mrP-F8Qgo"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e1eef_full?d=H0mrP-F8Qgo" border="0"></img></a> <a href="http://feeds.gawker.com/~ff/lifehacker/full?a=q60NIeG5BnI:nLgvVi7g5nE:yIl2AUoC8zA"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e1eef_full?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.gawker.com/~ff/lifehacker/full?a=q60NIeG5BnI:nLgvVi7g5nE:D7DqB2pKExk"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/3c8ff_full?i=q60NIeG5BnI:nLgvVi7g5nE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.gawker.com/~ff/lifehacker/full?a=q60NIeG5BnI:nLgvVi7g5nE:V_sGLiPBpWU"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/3c8ff_full?i=q60NIeG5BnI:nLgvVi7g5nE:V_sGLiPBpWU" border="0"></img></a></div><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/3c8ff_q60NIeG5BnI" height="1" width="1" /><br /> <a href="http://services.newsgator.com/ngws/svc/ClippingsRSS.aspx?uid=1639696">Go to Source</a></p><p><a href="http://shaiperednik.com/2009/09/how-to-build-a-hackintosh-with-snow-leopard-start-to-finish-how-to/" rel="bookmark">How to Build a Hackintosh with Snow Leopard, Start to Finish [How To]</a> originally appeared on <a href="http://shaiperednik.com">Shai Perednik.com</a> on September 7, 2009.</p> ]]></content:encoded> <wfw:commentRss>http://shaiperednik.com/2009/09/how-to-build-a-hackintosh-with-snow-leopard-start-to-finish-how-to/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Free Portfolio WordPress Theme: Creative by Nature</title><link>http://shaiperednik.com/2009/08/free-portfolio-wordpress-theme-creative-by-nature/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=free-portfolio-wordpress-theme-creative-by-nature</link> <comments>http://shaiperednik.com/2009/08/free-portfolio-wordpress-theme-creative-by-nature/#comments</comments> <pubDate>Sun, 02 Aug 2009 06:00:16 +0000</pubDate> <dc:creator>System</dc:creator> <category><![CDATA[My Clippings]]></category> <category><![CDATA[css]]></category> <category><![CDATA[Photo]]></category> <category><![CDATA[Unzip]]></category> <category><![CDATA[XP]]></category><guid isPermaLink="false">http://shaiperednik.com/2009/08/free-portfolio-wordpress-theme-creative-by-nature/</guid> <description><![CDATA[Automatically pulled from My Clippings on NewsGator Online &#160; In this post we are glad to release Creative by Nature, a unique and flexible high-quality portfolio WordPress theme for artists, photographers and designers. The theme was designed by .css{mayo} and released especially for Smashing Magazine and its readers. Download the theme for free! Creative by [...]]]></description> <content:encoded><![CDATA[<p>Automatically pulled from <a href="http://services.newsgator.com/ngws/svc/ClippingsRSS.aspx?uid=1639696">My Clippings on NewsGator Online</a></p><p><!-- google_ad_section_start --></p><table width="450"><tr><td width="450"><div> <img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e6b11_smashing-magazine-advertisement.gif" alt="" border="0" /><br /> <a href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=56" target="_blank"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/a342b_avw.php?zoneid=56" border="0" alt="" /></a>&nbsp;<a href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=63" target="_blank"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/a342b_avw.php?zoneid=63" border="0" alt="" /></a></div></td></tr></table><p>In this post we are glad to release <strong>Creative by Nature</strong>, a unique and flexible high-quality portfolio WordPress theme for artists, photographers and designers. The theme was designed by <a href="http://cssmayo.com">.css{mayo}</a> and released especially for Smashing Magazine and its readers.</p><p><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/creative-by-nature/full_preview.jpg" rel="lightbox[386]"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/46345_release.jpg" width="450" height="450" alt="Creative by Nature" /></a></p><h4>Download the theme for free!</h4><p>Creative by Nature is a free portfolio theme created by CSSMayo.com and released especially for Smashing Magazine and its readers. The designers created a funky theme, particularly useful for artists, photographers and designers who are looking for a flexible portfolio solution. The <a href="http://media1.smashingmagazine.com/wp-content/uploads/images/creative-by-nature/creative-by-nature-wp.zip">theme&#8217;s .zip-package</a> includes all necessary files, server installation guide and a help file which describes how to add entries to your portfolio section. Besides, a <a href="http://cssmayo.com/download/free-wordpress-themes/psds/creative-by-nature.zip">PSD source file</a> is available for free download as well.</p><p>The theme is released under GPL. You can use it for all your projects for free and without any restrictions. Please link to this post and also to <a href="http://cssmayo.com/freebies/free-wordpress-themes/creative-by-nature/">CSSMayo Release Post</a> if you want to spread the word. You may modify the theme as you wish.</p><p><a href="http://media1.smashingmagazine.com/wp-content/uploads/images/creative-by-nature/full_preview.jpg" rel="lightbox[386]"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/12c3c_preview.jpg" alt="Creative by Nature" width="450" height="608" /></a></p><ul><li><a href="http://cssmayo.com/preview/creative_by_nature/">live demo</a></li><li><a href="http://media2.smashingmagazine.com/wp-content/uploads/images/creative-by-nature/full_preview.jpg" rel="lightbox[386]">preview</a></li><li><a href="http://media1.smashingmagazine.com/wp-content/uploads/images/creative-by-nature/creative-by-nature-wp.zip">download the theme</a> (.zip, 2.8 Mb)</li><li><a href="http://cssmayo.com/download/free-wordpress-themes/psds/creative-by-nature.zip">download the PSD-source</a> (.zip, 20.1 Mb)</li></ul><h4>Installation guidelines</h4><ol><li>Download the latest version of &#8220;Creative by nature&#8221; theme either here or <a href="http://cssmayo.com/freebies/free-wordpress-themes/creative-by-nature/">here</a></li><li><a href="http://shaiperednik.com/tag/unzip/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Unzip">Unzip</a> and upload the theme to your &#8220;wp-content/themes/&#8221; directory</li><li>In WordPress, go to &#8220;Appearance &gt; Themes&#8221; and activate the &#8220;Creative by nature&#8221; theme</li><li>In the theme archive you&#8217;ll find file <code>creative_by_nature-export.xml</code>. Import it to your WordPress installation from &#8220;Tools &gt; Import &gt; WordPress&#8221;</li><li>Go to &#8220;Settings &gt; Reading&#8221; and:</li></ol><ul><li>Check &#8220;A static page (select below)&#8221; in &#8220;Front page displays&#8221; field.</li><li>Select &#8220;Home&#8221; in &#8220;Front page: &#8221; drop-down menu</li><li>Select &#8220;Blog&#8221; in &#8220;Posts page: &#8221; drop-down menu</li></ul><h4>Adding Portfolio Entry</h4><p>Here are instructions for adding portfolio entries:</p><ol><li>Go to &#8220;Pages &gt; Add new&#8221;</li><li>Enter Portfolio entry title</li><li>Insert your image into the post(preffered image size: 290&#215;230 px), then add &#8220;more&#8221; tag. Add short description for the entry, then add one more &#8220;more&#8221; tag. Then enter the remaining text. (Check out test portfolio entries for example)</li><li>You may also enter custom fields &#8220;url&#8221; if you want to add additional <a href="http://shaiperednik.com/tag/information/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Information">information</a> to each portfolio entry.</li><li>You&#8217;ll need to setup few things in &#8220;Attributes&#8221; section:</li></ol><ul><li>Choose &#8220;Portfolio&#8221; page for page parent</li><li>In &#8220;Template&#8221; field select &#8220;Portfolio Item&#8221;</li><li>You may also enter position field if you want to specify the order of portfolio entries.</li></ul><p>Thank you very much, folks! We appreciate your efforts.</p><p><!-- google_ad_section_end --></p><hr /><p>© Smashing Editorial for <a href="http://www.smashingmagazine.com">Smashing Magazine</a>, 2009. |<br /> <a href="http://www.smashingmagazine.com/2009/07/30/free-portfolio-wordpress-theme-creative-by-nature/">Permalink</a> |<br /> <a href="http://www.smashingmagazine.com/2009/07/30/free-portfolio-wordpress-theme-creative-by-nature/#comments">41 comments</a> |<br /> <a title="Bookmark in del.icio.us" href="http://del.icio.us/post?url=http://www.smashingmagazine.com/2009/07/30/free-portfolio-wordpress-theme-creative-by-nature/&amp;title=Free Portfolio WordPress Theme: Creative by Nature">Add to del.icio.us</a> | <a title="Bookmark in Digg" href="http://digg.com/submit?phase=2&amp;url=http://www.smashingmagazine.com/2009/07/30/free-portfolio-wordpress-theme-creative-by-nature/">Digg this</a> | <a title="Stumble on StumbleUpon" href="http://www.stumbleupon.com/submit?url=http://www.smashingmagazine.com/2009/07/30/free-portfolio-wordpress-theme-creative-by-nature/">Stumble on StumbleUpon!</a> | <a title="Tweet us!" href="http://twitter.com/home?status=@tweetmeme%20@smashingmag%20Reading%20'Free Portfolio WordPress Theme: Creative by Nature' http://www.smashingmagazine.com/2009/07/30/free-portfolio-wordpress-theme-creative-by-nature/">Tweet it!</a> | <a title="Bookmark in Reddit" href="http://reddit.com/submit?url=http://www.smashingmagazine.com/2009/07/30/free-portfolio-wordpress-theme-creative-by-nature/">Submit to Reddit</a> | <a href="http://forum.smashingmagazine.com/">Forum Smashing Magazine</a></p><p> Post tags: <a href="http://www.smashingmagazine.com/tag/downloads/" rel="tag">downloads</a>, <a href="http://www.smashingmagazine.com/tag/free/" rel="tag">free</a>, <a href="http://www.smashingmagazine.com/tag/themes/" rel="tag">themes</a>, <a href="http://www.smashingmagazine.com/tag/wordpress/" rel="tag">wordpress</a></p><p><a href="http://services.newsgator.com/ngws/svc/ClippingsRSS.aspx?uid=1639696">Go to Source</a></p><p><a href="http://shaiperednik.com/2009/08/free-portfolio-wordpress-theme-creative-by-nature/" rel="bookmark">Free Portfolio WordPress Theme: Creative by Nature</a> originally appeared on <a href="http://shaiperednik.com">Shai Perednik.com</a> on August 1, 2009.</p> ]]></content:encoded> <wfw:commentRss>http://shaiperednik.com/2009/08/free-portfolio-wordpress-theme-creative-by-nature/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>10 Handy WordPress Comments Hacks</title><link>http://shaiperednik.com/2009/07/10-handy-wordpress-comments-hacks/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=10-handy-wordpress-comments-hacks</link> <comments>http://shaiperednik.com/2009/07/10-handy-wordpress-comments-hacks/#comments</comments> <pubDate>Thu, 23 Jul 2009 13:20:24 +0000</pubDate> <dc:creator>System</dc:creator> <category><![CDATA[My Clippings]]></category> <category><![CDATA[css]]></category> <category><![CDATA[email]]></category> <category><![CDATA[Photo]]></category> <category><![CDATA[Spam]]></category> <category><![CDATA[Unzip]]></category> <category><![CDATA[XP]]></category><guid isPermaLink="false">http://shaiperednik.com/2009/07/10-handy-wordpress-comments-hacks/</guid> <description><![CDATA[Automatically pulled from My Clippings on NewsGator Online &#160; Comments sections are neglected on many blogs. That is definitely a bad thing, because comments represent interaction between you and your readers. In this article, we&#8217;ll have a look at 10 great tips and hacks to enhance your blog&#8217;s comments section and give it the quality [...]]]></description> <content:encoded><![CDATA[<p>Automatically pulled from <a href="http://services.newsgator.com/ngws/svc/ClippingsRSS.aspx?uid=1639696">My Clippings on NewsGator Online</a></p><p><!-- google_ad_section_start --></p><table width="450"><tr><td width="450"><div> <img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/4ea66_smashing-magazine-advertisement.gif" alt="" border="0" /><br /> <a href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=56" target="_blank"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/3d584_avw.php?zoneid=56" border="0" alt="" /></a>&nbsp;<a href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=63" target="_blank"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/d5c65_avw.php?zoneid=63" border="0" alt="" /></a></div></td></tr></table><p> Comments sections are neglected on many blogs. That is definitely a bad thing, because comments represent interaction between you and your readers. In this article, we&#8217;ll have a look at 10 great tips and hacks to enhance your blog&#8217;s comments section and give it the quality it deserves.</p><p>You may be interested in the following related posts:</p><ul><li><a href="http://www.smashingmagazine.com/2009/07/14/5-useful-and-creative-ways-to-use-wordpress-widgets/">5 Useful And Creative Ways To Use WordPress Widgets</a></li><li><a href="http://www.smashingmagazine.com/2009/07/02/power-tips-for-wordpress-template-developers/">Power Tips For WordPress Template Developers</a></li><li><a href="http://www.smashingmagazine.com/2009/06/10/10-useful-wordpress-loop-hacks/">10 Useful WordPress Loop Hacks</a></li><li><a href="http://www.smashingmagazine.com/2009/05/13/10-custom-fields-hacks-for-wordpress/">Custom Field Hacks For WordPress</a></li><li><a href="http://www.smashingmagazine.com/2009/03/04/15-useful-twitter-plugins-and-hacks-for-wordpress/">15 Useful Twitter Hacks and Plugins For WordPress</a></li><li><a href="http://www.smashingmagazine.com/2009/02/02/mastering-wordpress-shortcodes/">Mastering WordPress Shortcuts</a></li><li><a href="http://www.smashingmagazine.com/2009/05/18/100-amazing-free-wordpress-themes-for-2009/">100 Amazing Free WordPress Themes For 2009</a></li></ul><h3>1. Add Action Links To Comments</h3><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/b52ef_sm1.png" alt="Screenshot" width="500" height="140" /></p><p><strong>The problem</strong>.<br /> Whether or not you allow readers to add comments without having to be approved, you will often need to edit, delete or mark certain comments as <a href="http://shaiperednik.com/tag/spam/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Spam">spam</a>. By default, WordPress shows the &#8220;Edit&#8221; link on comments (using the <code>edit_comment_link()</code> function) but not &#8220;Delete&#8221; or &#8220;Spam&#8221; links. Let&#8217;s add them.</p><p><strong>The solution</strong>.<br /> First, we have to create a function. Paste the code below in your <em>functions.<a href="http://shaiperednik.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a></em> file:</p><pre>function delete_comment_link($id) {
  if (current_user_can('edit_post')) {
    echo '| &lt;a href="'.admin_url("comment.php?action=cdc&amp;c=$id").'"&gt;del&lt;/a&gt; ';
    echo '| &lt;a href="'.admin_url("comment.php?action=cdc&amp;dt=spam&amp;c=$id").'"&gt;spam&lt;/a&gt;';
  }
}</pre><p>Once you have saved <em>functions.php</em>, open up your <em>comments.php</em> file, and add the following code where you want the &#8220;Delete&#8221; and &#8220;Spam&#8221; links to appear. They must go in the comment loop. In most themes, you&#8217;ll find an <code>edit_comment_link()</code> declaration. Add the code in just after that.</p><pre>delete_comment_link(get_comment_ID());</pre><p><strong>Code explanation</strong>.<br /> The first thing we did, of course, was to make sure the current user has permission to edit comments. If so, links to delete and mark a comment as spam are displayed. Note the use of the <code>admin_url()</code> function, which allows you to retrieve your blog admin&#8217;s URL.</p><p><strong>Source:</strong></p><ul><li><a href="http://www.wprecipes.com/how-to-add-del-and-spam-buttons-to-your-comments">How to: Add &#8220;Delete&#8221; and &#8220;Spam&#8221; buttons to your comments.</a></li></ul><h3>2. Separate TrackBacks From Comments</h3><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/cd7c9_sm2.png" alt="Screenshot" width="500" height="177" /></p><p><strong>The problem</strong>.<br /> Do your posts have a lot of TrackBacks? Mine do. Trackbacks are cool because they allow your readers to see which articles from other blogs relate to yours. But the more TrackBacks you have, the harder the discussion is to follow. Separating comments from TrackBacks, then, is definitely something to consider, especially if you do not use the &#8220;Reply&#8221; capabilities introduced in WordPress 2.7.</p><p><strong>The solution</strong>.<br /> Open and edit the <em>comments.php</em> file in your theme. Find the comment loop, which looks like the following:</p><pre>foreach ($comments as $comment) : ?&gt;
    // Comments are displayed here
endforeach;</pre><p>Once you have that, replace it with the code below:</p><pre>&lt;ul class="commentlist"&gt;
    &lt;?php //Displays comments only
	foreach ($comments as $comment) : ?&gt;
       	&lt;?php $comment_type = get_comment_type(); ?&gt;
       	&lt;?php if($comment_type == 'comment') { ?&gt;
	    &lt;li&gt;//Comment code goes here&lt;/li&gt;
	&lt;?php }
    endforeach;
&lt;/ul&gt;

&lt;ul&gt;
    &lt;?php //Displays trackbacks only
	foreach ($comments as $comment) : ?&gt;
       	&lt;?php $comment_type = get_comment_type(); ?&gt;
       	&lt;?php if($comment_type != 'comment') { ?&gt;
	    &lt;li&gt;&lt;?php comment_author_link() ?&gt;&lt;/li&gt;
	&lt;?php }
    endforeach;

&lt;/ul&gt;</pre><p><strong>Code explanation</strong>.<br /> Nothing hard about this code. The <code>get_comment_type()</code> function tells you if something is a regular comment or a TrackBack. We simply have to create two HTML lists, filling the first with regular comments and the second with TrackBacks.</p><p><strong>Source:</strong></p><ul><li><a href="http://www.wprecipes.com/jamie-asked-how-can-i-display-comments-and-trackbacks-separately">Jamie asks: How do I display comments and TrackBacks separately?</a></li></ul><h3>3. Get Rid Of HTML Links In Comments</h3><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/93049_sm3.png" alt="Screenshot" width="500" height="137" /></p><p><strong>The problem</strong>.<br /> Bloggers are always looking to promote their blogs, and spammers are everywhere. One thing that totally annoys me on my blogs is the incredible amount of links left in comments, which are usually irrelevant. By default, WordPress transforms URLs in comments to links. Thankfully, if you&#8217;re as tired of comment links as I am, this can be overwritten.</p><p><strong>The solution</strong>.<br /> Simply open your <em>function.php</em> file and paste in this code:</p><pre>function plc_comment_post( $incoming_comment ) {
	$incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']);
	$incoming_comment['comment_content'] = str_replace( "'", '&amp;apos;', $incoming_comment['comment_content'] );
	return( $incoming_comment );
}

function plc_comment_display( $comment_to_display ) {
	$comment_to_display = str_replace( '&amp;apos;', "'", $comment_to_display );
	return $comment_to_display;
}

add_filter('preprocess_comment', 'plc_comment_post', '', 1);
add_filter('comment_text', 'plc_comment_display', '', 1);
add_filter('comment_text_rss', 'plc_comment_display', '', 1);
add_filter('comment_excerpt', 'plc_comment_display', '', 1);</pre><p>Once you have saved the file, say goodbye to links and other undesirable HTML in your comments.</p><p><strong>Code explanation</strong>.<br /> The first thing we did was create two functions that replace HTML characters with HTML entities. Then, using the powerful <code>add_filter()</code> WordPress function, we hooked the standard WordPress comments processing functions to the two functions we just created. This makes sure that any comments added will have their HTML filtered out.</p><p><strong>Sources:</strong></p><ul><li><a href="http://www.wprecipes.com/how-to-get-rid-of-links-in-your-comments">How to: get rid of links in your comments</a></li><li><a href="http://www.theblog.ca/literal-comments">How to disable HTML in WordPress comments</a></li></ul><h3>4. Use Twitter Avatars In Comments</h3><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/7d751_sm4.png" alt="Screenshot" width="500" height="246" /></p><p><strong>The problem</strong>.<br /> Bloggers find Twitter very useful because it allows them to promote their blog and stay connected to other bloggers and their own audience. Because of Twitter&#8217;s popularity, why not illustrate comments with Twitter avatars instead of the normal gravatars?</p><p><strong>The solution</strong>.</p><ol><li>The first thing to do is get the functions file <a href="http://www.smashingmagazine.com/2009/01/08/twitter-avatars-in-comments-wordpress-plugin/">here</a>.</li><li>Once you have that, <a href="http://shaiperednik.com/tag/unzip/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Unzip">unzip</a> the archive to your hard drive, and then open the <em>twittar.php</em> file.</li><li>Select all of its content and paste it to your blog&#8217;s <em>functions.php</em> file.</li><li>The last thing to do is open your <em>comments.php</em> file and find the comments loop.</li><li>Paste the following line in the comments loop:<pre>&lt;?php twittar('45', 'default.png', '#e9e9e9', 'twitavatars', 1, 'G'); ?&gt;</pre></li></ol><p><strong>Code explanation</strong>.<br /> Some months ago here at Smashing Magazine, an awesome plug-in named <em>Twittar</em> was released. Its purpose is to allow you to use Twitter avatars on your WordPress blog. Because of the number of requests I received from WpRecipes.com readers, I decided to turn the plug-in into a hack, for people who prefer hacks to plug-ins.</p><p>Of course, you could simply <strong>install the plug-in</strong> rather than insert its content into your <em>function.php</em> file. It&#8217;s up to you.</p><p><strong>Sources:</strong></p><ul><li><a href="http://www.smashingmagazine.com/2009/01/08/twitter-avatars-in-comments-wordpress-plugin/">Twitter avatars in comments</a></li><li><a href="http://www.wprecipes.com/ho-to-use-twitter-avatars-in-comments">How to: Use Twitter avatars in comments</a></li></ul><h3>5. Set Apart Author Comments With Style</h3><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/689f0_sm5.jpg" alt="Screenshot" width="500" height="175" /></p><p><strong>The problem</strong>.<br /> For blog posts that have a lot of comments, finding the author&#8217;s comments and responses to reader questions is not always easy, especially if the blog don&#8217;t have WordPress 2.7&#8217;s threaded comments feature. Happily, it is possible to give author comments a different style so that readers can always quickly find your answers.</p><p><strong>The solution</strong>.</p><ol><li>Open the <em>comments.php</em> file and find the comment loop:<pre>&lt;?php foreach comment as $comment) { ?&gt;</pre></li><li>After that line, paste in the following:<pre>&lt;?php
$isByAuthor = false;
if($comment-&gt;comment_author_<a href="http://shaiperednik.com/tag/email/" class="st_tag internal_tag" rel="tag" title="Posts tagged with email">email</a> == get_the_author_<a href="http://shaiperednik.com/tag/email/" class="st_tag internal_tag" rel="tag" title="Posts tagged with email">email</a>()) {
$isByAuthor = true;
}
?&gt;</pre></li><li>Once that&#8217;s done, find the line of code that represents comments (it may vary depending on your theme):<pre>&lt;li class="&lt;?php echo $oddcomment; ?&gt;" id="comment-&lt;?php comment_ID() ?&gt;"&gt;</pre></li><li>Now we have to output the <code>authorcomment</code> class if the comment was made by the author:<pre>&lt;li class="&lt;?php echo $oddcomment; ?&gt; &lt;?php if($isByAuthor ) {
 echo 'authorcomment';} ?&gt;" id="comment-&lt;?php comment_ID() ?&gt;"&gt;</pre></li><li>The last thing we do is create a <a href="http://shaiperednik.com/tag/css/" class="st_tag internal_tag" rel="tag" title="Posts tagged with css">CSS</a> class for author comments. Open the <em>style.css</em> file and insert the code. Replace the example colors with your colors of choice.<pre>.authorcomment{
	color:#fff;
	font-weight:bold;
	background:#068;
}</pre></li></ol><p><strong>Code explanation</strong>.<br /> Basically, this code compares each email address left by a commentator to the author&#8217;s email address. If they match, the <code>$isByAuthor</code> is set to <code>true</code>. When comments are displayed on screen, the value of <code>$isByAuthor</code> is checked. If it returns <code>true</code>, then the <code>authorcomment</code> class is added to the container.</p><p>It can be done more easily on WordPress 2.7+ by just adding <code>comment_class();</code> to the comment’s DIV, which automatically adds the class <code>bypostauthor</code> when you’re commenting on your own post (<em>Thanks, Nima!</em>).</p><p><strong>Source:</strong></p><ul><li><a href="http://aonach.com/chatter/highlight-author-comments-in-wordpress/">Highlight Author Comments in WordPress</a></li></ul><h3>6. Display Total Number Of Comments And Average Number Of Comments Per Post</h3><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/0df54_sm6.png" alt="Screenshot" width="500" height="310" /></p><p><strong>The problem</strong>.<br /> On your blog&#8217;s dashboard, WordPress tells you how many total comments your blog has received. Unfortunately, there&#8217;s no function for displaying this <a href="http://shaiperednik.com/tag/information/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Information">information</a> publicly. Displaying the total number of comments on your blog and average number of comments per post can be very helpful, especially if you have a page for advertising opportunities.</p><p><strong>The solution</strong>.</p><pre>&lt;?php
$count_posts = wp_count_posts();
$posts = $count_posts-&gt;publish;

$count_comments = get_comment_count();
$comments  = $count_comments['approved'];

echo "There's a total of ".$comments." comments on my blog, with an average ".round($comments/$posts)." comments per post.";
?&gt;</pre><p><strong>Code explanation</strong>.<br /> Introduced in version 2.5, the <code>wp_count_posts()</code> and <code>get_comment_count()</code> functions allow you to easily retrieve the total number of posts and comments, respectively, on your WordPress blog. To derive the average number of comments per post, we have to do a bit of simple math, using the PHP <code>round()</code> function to make sure we end up with an integer.</p><p><strong>Source:</strong></p><ul><li><a href="http://www.wprecipes.com/how-to-display-your-average-comments-per-posts">How to: Display your average number of comments per posts</a></li></ul><h3>7. Display X Number Of Most Recent Comments</h3><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e8a7b_sm7.jpg" alt="Screenshot" width="544" height="289" /></p><p><strong>The problem</strong>.<br /> By default, WordPress provides a widget that outputs a list of however many of the most recent comments. This is great, but sometimes you want this functionality without a widget.</p><p><strong>The solution</strong>.<br /> This hack is very simple: just paste this code wherever you need a certain number of the most recent comments to be displayed. Don&#8217;t forget to specify the actual number on line 3 (after the <code>LIMIT</code> SQL clause).</p><pre>&lt;?php
  $pre_HTML ="";
  $post_HTML ="";
  global $wpdb;
  $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,30) AS com_excerpt FROM $wpdb-&gt;comments LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID = $wpdb-&gt;posts.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT 10";

  $comments = $wpdb-&gt;get_results($sql);
  $output = $pre_HTML;
  $output .= "\n&lt;ul&gt;";
  foreach ($comments as $comment) {
    $output .= "\n&lt;li&gt;".strip_tags($comment-&gt;comment_author) .":" . "&lt;a href=\"" . get_permalink($comment-&gt;ID)."#comment-" . $comment-&gt;comment_ID . "\" title=\"on ".$comment-&gt;post_title . "\"&gt;" . strip_tags($comment-&gt;com_excerpt)."&lt;/a&gt;&lt;/li&gt;";
  }
  $output .= "\n&lt;/ul&gt;";
  $output .= $post_HTML;
  echo $output;
?&gt;</pre><p><strong>Code explanation</strong>.<br /> As in the last hack, we use the <code>$wpdb</code> object here, too, this time with the <code>get_results()</code> method. Once the comments have been retrieved by the WordPress database, we simply use a <code>for</code> loop to concatenate the comments into an HTML unordered list. The <code>$pre_HTML</code> and <code>$post_HTML</code> variables, initialized at the top of this code, allow you to define which content should go before and after the comments list.</p><p><strong>Sources:</strong></p><ul><li><a href="http://www.wprecipes.com/how-to-list-most-recent-comments">How to: List most recent comments</a></li><li><a href="http://wphacks.com/huge-compilation-of-wordpress-code/">Huge Compilation of WordPress Code</a></li></ul><h3>8. Easily Prevent Comment Spam</h3><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/24aff_sm8.jpg" alt="Screenshot" width="500" height="279" /></p><p><strong>The problem</strong>.<br /> Comment spam is such a pain for everyone. Akismet is a good solution, but why not block spammers outright instead of just marking their comments as suspected spam? This code looks for the HTTP referrer (the page where the request comes from) and automatically blocks the comment if the referrer is incorrect or not defined.</p><p><strong>The solution</strong>.<br /> Paste the following code in your <em>functions.php</em> file:</p><pre>function check_referrer() {
    if (!isset($_SERVER['HTTP_REFERER']) || $_SERVER['HTTP_REFERER'] == “”) {
        wp_die( __('Please enable referrers in your browser, or, if you\'re a spammer, bugger off!') );
    }
}

add_action('check_comment_flood', 'check_referrer');</pre><p>That&#8217;s all. Once you&#8217;ve saved the file, your blog will have a new level of protection against spam.</p><p><strong>Code explanation</strong>.<br /> This code automatically rejects any request for comment posting coming from a browser (or, more commonly, a bot) that has no referrer in the request. Checking is done with the PHP <code>$_SERVER[]</code> array. If the referrer is not defined or is incorrect, the <code>wp_die</code> function is called and the script stops its execution.</p><p>This function is hooked to WordPress&#8217; <code>check_comment_flood()</code> function. This <a href="http://shaiperednik.com/tag/way/" class="st_tag internal_tag" rel="tag" title="Posts tagged with way">way</a>, we can be sure that our <code>check_referrer()</code> function is called each time a comment is posted.</p><p><strong>Source:</strong></p><ul><li><a href="http://yoast.com/">Yoast.com</a></li></ul><h3>9. Keep WordPress Backwards Compatible With Versions Older Than 2.7</h3><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/e5c65_sm9.jpg" alt="Screenshot" width="500" height="230" /></p><p><strong>The problem</strong>.<br /> Released some months ago, WordPress 2.7 introduced a totally new commenting system, allowing you to thread comments and display them on separate pages. Although this is great, keep in mind if you are creating a theme for a client or for online distribution that many users still haven&#8217;t upgraded their installation to version 2.8 or even 2.7. This code allows 2.7+ users to benefit from the new commenting system, while keeping the old system functional for people with older versions.</p><p><strong>The solution</strong>.<br /> You&#8217;ll need two files for this recipe: the first is a WordPress 2.7 compatible comments file called <em>comments.php</em>. The second is a comment template for older WordPress versions called <em>legacy.comments.php</em>. Both of these files go in your theme directory.</p><p>Paste this code in your <em>functions.php</em> file.</p><pre>&lt;?php
add_filter('comments_template', 'legacy_comments');

function legacy_comments($file) {
	if(!function_exists('wp_list_comments')) : // WP 2.7-only check
		$file = TEMPLATEPATH.'/legacy.comments.php';
	endif;
	return $file;
}
?&gt;</pre><p><strong>Code explanation</strong>.<br /> This code creates a function called <code>legacy_comments()</code>, which is hooked to WordPress <code>comments_template</code> function. Each time WordPress calls <code>comments_template()</code>, our <code>legacy_comments()</code> function is executed. If the <code>wp_list_comments()</code> function doesn&#8217;t exist, the code automatically loads <em>legacy.comments.php</em> instead of <em>comments.php</em>.</p><p><strong>Sources:</strong></p><ul><li><a href="http://justintadlock.com/archives/2008/11/01/making-your-themes-comments-compatible-with-wordpress-27-and-earlier-versions">Making your theme’s comments compatible with WordPress 2.7 and earlier versions</a></li><li><a href="http://www.wprecipes.com/how-to-make-your-comments-template-compatible-with-wordpress-27-and-older-versions">How to: make your comments template compatible with WordPress 2.7 and older versions</a></li></ul><h3>10. Display Most Commented Posts From A Certain Period</h3><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/b503a_sm10.png" alt="Screenshot" width="500" height="293" /></p><p><strong>The problem</strong>.<br /> Number of comments is a good way to measure a blog post&#8217;s popularity and is a good filter for displaying a list of your most popular posts. Another great idea is to restrict a list of your most popular posts to a particular period, like &#8220;Last month&#8217;s most popular posts,&#8221; for example.</p><p><strong>The solution</strong>.<br /> Simply paste the following code where you&#8217;d like your most commented posts to be displayed. Don&#8217;t forget to change the dates values on line 3 according to your needs.</p><pre>&lt;ul&gt;
&lt;?php
$result = $wpdb-&gt;get_results("SELECT comment_count,ID,post_title, post_date FROM $wpdb-&gt;posts WHERE post_date BETWEEN '2009-06-01' AND '2009-07-01' ORDER BY comment_count DESC LIMIT 0 , 10");

foreach ($result as $topten) {
    $postid = $topten-&gt;ID;
    $title = $topten-&gt;post_title;
    $commentcount = $topten-&gt;comment_count;
    if ($commentcount != 0) {
    ?&gt;
         &lt;li&gt;&lt;a href="&lt;?php echo get_permalink($postid); ?&gt;"&gt;&lt;?php echo $title ?&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;?php }
}
?&gt;
&lt;/ul&gt;</pre><p><strong>Code explanation</strong>.<br /> The first thing we did was send out an SQL query to the WordPress database using the <code>$wpdb</code> object. Once we got the results, we used a simple PHP <code>foreach</code> statement to display the most popular posts from a certain period in an HTML unordered list.</p><p><strong>Source:</strong></p><ul><li><a href="http://www.wprecipes.com/how-to-display-the-most-commented-posts-of-2008">How to: Display the most commented posts of 2008</a></li></ul><h3>Related posts</h3><p>You may be interested in the following related posts:</p><ul><li><a href="http://www.smashingmagazine.com/2009/07/14/5-useful-and-creative-ways-to-use-wordpress-widgets/">5 Useful And Creative Ways To Use WordPress Widgets</a></li><li><a href="http://www.smashingmagazine.com/2009/07/02/power-tips-for-wordpress-template-developers/">Power Tips For WordPress Template Developers</a></li><li><a href="http://www.smashingmagazine.com/2009/06/10/10-useful-wordpress-loop-hacks/">10 Useful WordPress Loop Hacks</a></li><li><a href="http://www.smashingmagazine.com/2009/05/13/10-custom-fields-hacks-for-wordpress/">Custom Field Hacks For WordPress</a></li><li><a href="http://www.smashingmagazine.com/2009/03/04/15-useful-twitter-plugins-and-hacks-for-wordpress/">15 Useful Twitter Hacks and Plugins For WordPress</a></li><li><a href="http://www.smashingmagazine.com/2009/02/02/mastering-wordpress-shortcodes/">Mastering WordPress Shortcuts</a></li><li><a href="http://www.smashingmagazine.com/2009/05/18/100-amazing-free-wordpress-themes-for-2009/">100 Amazing Free WordPress Themes For 2009</a></li></ul><h4>About the Author</h4><p><em>This guest post was written by Jean-Baptiste Jung, a 27-year-old blogger from Belgium, who blogs about WordPress at <a href="http://www.wprecipes.com">WpRecipes</a>, about practical Web development tips at <a href="http://www.catswhocode.com">Cats Who Code</a> and about Photoshop and Web design at <a href="http://www.psdvibe.com">PsdVibe</a>. You can stay in touch with Jean by following him on <a href="http://twitter.com/catswhocode">Twitter</a>.</em></p><p><em>(al)</em></p><p><!-- google_ad_section_end --></p><hr /><p>© Jean-Baptiste Jung for <a href="http://www.smashingmagazine.com">Smashing Magazine</a>, 2009. |<br /> <a href="http://www.smashingmagazine.com/2009/07/23/10-wordpress-comments-hacks/">Permalink</a> |<br /> <a href="http://www.smashingmagazine.com/2009/07/23/10-wordpress-comments-hacks/#comments">14 comments</a> |<br /> <a title="Bookmark in del.icio.us" href="http://del.icio.us/post?url=http://www.smashingmagazine.com/2009/07/23/10-wordpress-comments-hacks/&amp;title=10 Handy WordPress Comments Hacks">Add to del.icio.us</a> | <a title="Bookmark in Digg" href="http://digg.com/submit?phase=2&amp;url=http://www.smashingmagazine.com/2009/07/23/10-wordpress-comments-hacks/">Digg this</a> | <a title="Stumble on StumbleUpon" href="http://www.stumbleupon.com/submit?url=http://www.smashingmagazine.com/2009/07/23/10-wordpress-comments-hacks/">Stumble on StumbleUpon!</a> | <a title="Tweet us!" href="http://twitter.com/home?status=@tweetmeme%20@smashingmag%20Reading%20'10 Handy WordPress Comments Hacks' http://www.smashingmagazine.com/2009/07/23/10-wordpress-comments-hacks/">Tweet it!</a> | <a title="Bookmark in Reddit" href="http://reddit.com/submit?url=http://www.smashingmagazine.com/2009/07/23/10-wordpress-comments-hacks/">Submit to Reddit</a> | <a href="http://forum.smashingmagazine.com/">Forum Smashing Magazine</a></p><p> Post tags: <a href="http://www.smashingmagazine.com/tag/comments/" rel="tag">comments</a>, <a href="http://www.smashingmagazine.com/tag/css/" rel="tag">CSS</a>, <a href="http://www.smashingmagazine.com/tag/hacks/" rel="tag">hacks</a>, <a href="http://www.smashingmagazine.com/tag/twitter/" rel="tag">twitter</a>, <a href="http://www.smashingmagazine.com/tag/wordpress/" rel="tag">wordpress</a></p><p><a href="http://services.newsgator.com/ngws/svc/ClippingsRSS.aspx?uid=1639696">Go to Source</a></p><p><a href="http://shaiperednik.com/2009/07/10-handy-wordpress-comments-hacks/" rel="bookmark">10 Handy WordPress Comments Hacks</a> originally appeared on <a href="http://shaiperednik.com">Shai Perednik.com</a> on July 23, 2009.</p> ]]></content:encoded> <wfw:commentRss>http://shaiperednik.com/2009/07/10-handy-wordpress-comments-hacks/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>UIF in Linux</title><link>http://shaiperednik.com/2009/06/uif-in-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=uif-in-linux</link> <comments>http://shaiperednik.com/2009/06/uif-in-linux/#comments</comments> <pubDate>Wed, 03 Jun 2009 19:04:21 +0000</pubDate> <dc:creator>Shai Perednik</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Build]]></category> <category><![CDATA[ISO]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[UIF]]></category> <category><![CDATA[Unzip]]></category> <category><![CDATA[Vista]]></category> <category><![CDATA[wind]]></category><guid isPermaLink="false">http://shaiperednik.com/2009/06/uif-in-linux/</guid> <description><![CDATA[Why do people decide to still use obscure cd image formats? UIF, didn&#8217;t that die? Well, thanks to this post at Life Rocks 2.0, I converted the UIF file to the standard ISO format! UIF (Universal Image Format) is an image compression format developed by Magic ISO. Universal Image Format(UIF) is a powerful compression image file [...]]]></description> <content:encoded><![CDATA[<p>Why do people decide to still use obscure cd image formats?</p><p><a href="http://shaiperednik.com/tag/uif/" class="st_tag internal_tag" rel="tag" title="Posts tagged with UIF">UIF</a>, didn&#8217;t that die?</p><p>Well, thanks to this <a href="http://www.nirmaltv.com/2008/06/14/how-to-convert-uif-files-to-iso-format-in-ubuntu/">post</a> at <a href="http://www.nirmaltv.com">Life Rocks 2.0</a>, I converted the UIF file to the standard <a href="http://shaiperednik.com/tag/iso/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ISO">ISO</a> format!</p><p><strong>UIF</strong> (Universal Image Format) is an image compression format developed by <strong>Magic ISO.</strong> <strong>Universal Image Format(UIF)</strong> is a powerful compression image file format for backing up CD/DVD. It is fast, reliable, and has rich set of features which include password-protected, data encryption, MD5 checksum support and much more. UIF format is available for Windows and if you are using <a href="http://shaiperednik.com/tag/linux/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Linux">Linux</a>/<a href="http://shaiperednik.com/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a>, you need to convert UIF to ISO format.</p><p><a href="http://www.nirmaltv.com/wp-content/uploads/2008/06/ubuntu-logo.png" rel="lightbox[140]"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" title="Ubuntu_logo" src="http://www.nirmaltv.com/wp-content/uploads/2008/06/ubuntu-logo-thumb.png" border="0" alt="Ubuntu_logo" width="300" height="89" /></a></p><h4>How to Convert UIF to ISO Format</h4><p>You can convert UIF files to ISO using the <strong>freeware</strong> application <strong>UIF2ISO</strong> by <a href="http://aluigi.altervista.org/">Luigi Auriemma’s</a> for Linux. This is a command line convertor for changing file type UIF to ISO format.</p><p>1. First Step is to install install zlib and OpenSSL with <strong>apt-get</strong>.</p><blockquote><p><strong><em><a href="http://shaiperednik.com/tag/sudo/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Sudo">sudo</a> apt-get install zlib1g zlib1g-dev libssl-dev <a href="http://shaiperednik.com/tag/build/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Build">build</a>-essential</em></strong></p></blockquote><p><img class="alignnone size-full wp-image-2602" title="installation1" src="http://www.nirmaltv.com/wp-content/uploads/2008/06/installation1.jpg" alt="" width="450" height="313" /></p><p>2. Second step is to download the freeware from the authors site.</p><blockquote><p><strong><em>wget http://aluigi.altervista.org/mytoolz/uif2iso.zip</em></strong></p></blockquote><p>3. Once the file is downloaded we need to <a href="http://shaiperednik.com/tag/unzip/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Unzip">unzip</a> it.</p><blockquote><p><strong><em>unzip uif2iso.zip</em></strong></p><p><strong><em> </em></strong><strong><em>cd src</em></strong></p><p>4. Create the executable by compiling the code.</p><blockquote><p><strong><em>make</em></strong></p><p><strong><em> </em></strong><strong><em>sudo make install</em></strong></p></blockquote><p><img class="alignnone size-full wp-image-2603" title="installation11" src="http://www.nirmaltv.com/wp-content/uploads/2008/06/installation11.jpg" alt="" width="450" height="313" /></p><p>5. To Convert the files from UIF to ISO format, use this command</p><blockquote><p><strong><em>uif2iso example.uif output.iso</em></strong></p></blockquote><p>Here example.uif is the file to be converted and output.iso is the output file.</p><p><a href="http://shaiperednik.com/2009/06/uif-in-linux/" rel="bookmark">UIF in Linux</a> originally appeared on <a href="http://shaiperednik.com">Shai Perednik.com</a> on June 3, 2009.</p> ]]></content:encoded> <wfw:commentRss>http://shaiperednik.com/2009/06/uif-in-linux/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Auto Update to Latest Chromium Build</title><link>http://shaiperednik.com/2009/05/auto-update-to-latest-chromium-build/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=auto-update-to-latest-chromium-build</link> <comments>http://shaiperednik.com/2009/05/auto-update-to-latest-chromium-build/#comments</comments> <pubDate>Fri, 29 May 2009 19:07:21 +0000</pubDate> <dc:creator>Shai Perednik</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Auto Update]]></category> <category><![CDATA[Build]]></category> <category><![CDATA[Chromium]]></category> <category><![CDATA[Cron]]></category> <category><![CDATA[Extract]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Unzip]]></category><guid isPermaLink="false">http://shaiperednik.com/?p=132</guid> <description><![CDATA[Finaly got Chromium running on my Ubuntu 8.04 Machine. You could download it from http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/ Below is a script that will download the current Chromium build and get it ready to run. Theres not much to it, but it automates the process. 6/1/09 Update &#8211; I noticed that CRON ran in the user directory, so I [...]]]></description> <content:encoded><![CDATA[<p>Finaly got <a href="http://shaiperednik.com/tag/chromium/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Chromium">Chromium</a> running on my <a href="http://shaiperednik.com/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> 8.04 Machine.</p><p>You could download it from <a href="http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/">http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/</a></p><p>Below is a script that will download the current Chromium <a href="http://shaiperednik.com/tag/build/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Build">build</a> and get it ready to run.</p><p>Theres not much to it, but it automates the process.</p><p><strong><em>6/1/09 Update &#8211; <span style="font-weight: normal;">I noticed that <a href="http://shaiperednik.com/tag/cron/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Cron">CRON</a> ran in the user directory, so I fixed that.  Also added an rm to remove any old downloaded zips.  I ran the <a href="http://shaiperednik.com/tag/cron/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Cron">CRON</a> job manualy and it works.  So we&#8217;ll see tomorrow to see if it works.</span></em></strong></p><p>#CODE START</p><p>#!/bin/sh</p><p>#Buy Shai Perednik 5/29/09</p><p>#Change directory</p><p>cd /home/shai/Chromium</p><p>#Delete any existing LATEST files</p><p>rm LATEST</p><p>#Delete any old Chromium Zip Downloads</p><p>rm chrome-<a href="http://shaiperednik.com/tag/linux/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Linux">linux</a>.zip*</p><p>#Download the LATEST file that contains the newest chromium build for linux</p><p>wget http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/LATEST</p><p>#reads the last line of LATEST file</p><p>VAL=`cat LATEST |cut -f1`</p><p>#Download the latest Snapshot</p><p>wget &#8220;http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/$VAL/chrome-linux.zip&#8221;</p><p>#Kill Any Existing Chrome Proceses</p><p>killall gchrome</p><p>#<a href="http://shaiperednik.com/tag/extract/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Extract">Extract</a> the archive</p><p><a href="http://shaiperednik.com/tag/unzip/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Unzip">unzip</a> -o chrome-linux</p><p>#Make the chrome file executable</p><p>chmod +x chrome-linux/chrome</p><p>#End Code</p><p><a href="http://shaiperednik.com/2009/05/auto-update-to-latest-chromium-build/" rel="bookmark">Auto Update to Latest Chromium Build</a> originally appeared on <a href="http://shaiperednik.com">Shai Perednik.com</a> on May 29, 2009.</p> ]]></content:encoded> <wfw:commentRss>http://shaiperednik.com/2009/05/auto-update-to-latest-chromium-build/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Large ZIPed Drivers</title><link>http://shaiperednik.com/2009/05/large-ziped-drivers/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=large-ziped-drivers</link> <comments>http://shaiperednik.com/2009/05/large-ziped-drivers/#comments</comments> <pubDate>Wed, 20 May 2009 18:15:00 +0000</pubDate> <dc:creator>Shai Perednik</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Extract]]></category> <category><![CDATA[Online Unzip]]></category> <category><![CDATA[Unzip]]></category> <category><![CDATA[Web Extract]]></category> <category><![CDATA[Wobzip]]></category><guid isPermaLink="false">http://shaiperednik.com/2009/05/large-ziped-drivers/</guid> <description><![CDATA[I need a driver for a DLink NIC card for win98. The dirver on DLINKS site is 18MB!!! Why do manufactures insist on bundling all os drivers together? WobZip has saved me again! Extracts the zip on their server and I can download only what I need! Thank you WobZip!!!]]></description> <content:encoded><![CDATA[<p>I need a driver for a DLink NIC card for win98.  The dirver on DLINKS site is 18MB!!!</p><p> Why do manufactures insist on bundling all os drivers together?</p><p> <a href="http://wobzip.org/index.php?type=url">WobZip</a> has saved me again!  Extracts the zip on their server and I can download only what I need!</p><p> Thank you <a href="http://shaiperednik.com/tag/wobzip/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Wobzip">WobZip</a>!!!</p><p><a href="http://shaiperednik.com/2009/05/large-ziped-drivers/" rel="bookmark">Large ZIPed Drivers</a> originally appeared on <a href="http://shaiperednik.com">Shai Perednik.com</a> on May 20, 2009.</p> ]]></content:encoded> <wfw:commentRss>http://shaiperednik.com/2009/05/large-ziped-drivers/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/46 queries in 0.019 seconds using disk: basic
Object Caching 2047/2150 objects using disk: basic

Served from: shaiperednik.com @ 2012-02-07 03:04:24 -->
