<?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>Codebreaker &#187; OSX</title>
	<atom:link href="http://blog.sumin.us/archives/tag/osx/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.sumin.us</link>
	<description>2bc08752a0894eb2c7afb345286e391d</description>
	<lastBuildDate>Wed, 08 Sep 2010 02:15:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Command Line Based ogg to mp3 Converter on Mac OS X</title>
		<link>http://blog.sumin.us/archives/693</link>
		<comments>http://blog.sumin.us/archives/693#comments</comments>
		<pubDate>Fri, 14 Dec 2007 09:56:26 +0000</pubDate>
		<dc:creator>Sumin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[MP3]]></category>
		<category><![CDATA[OGG]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://blog.sumin.us/archives/693</guid>
		<description><![CDATA[First of all, you need to install vorbis-tools and lame, assuming you have MacPorts installed. If you're using some other package management system, that's fine. Go ahead and install these two packages. If you don't have any, you can always manually install it. sudo port install vorbis-tools lame I'm going to decode an ogg file [...]]]></description>
			<content:encoded><![CDATA[<p>First of all, you need to install <code>vorbis-tools</code> and <code>lame</code>, assuming you have <a href="http://www.macports.org/">MacPorts</a> installed. If you're using some other package management system, that's fine. Go ahead and install these two packages. If you don't have any, you can always manually install it.</p>

<pre><code>sudo port install vorbis-tools lame
</code></pre>

<p>I'm going to decode an ogg file into a wav file and then convert the wav file to an mp3 file. For example,</p>

<pre><code>oggdec test.ogg
lame -h --vbr-new test.ogg
</code></pre>

<p>If you want to make an mp3 file with a constant bit rate, use <code>-b</code> option. Refer <code>lame --help</code> for details. However, it is not a good idea to manually invoke this command for every single file you want to convert. So, I'm gonna make a very simple shell script to do all the works.</p>

<pre><code>#/bin/bash

for file in *.ogg; do
    oggdec $file
    file=$(basename $file .ogg)
    lame -h --vbr-new -V 2 "${file}.wav" "${file}.mp3"
    rm "${file}.wav"
done
</code></pre>

<p>I'm giving an option <code>-V 2</code> to specify VBR quality of the result. 0 for highest and 9 for lowest quality.</p>

<p>Here's a screenshot:</p>

<p><a href="http://gallery.sumin.us/v/screenshots/general/ogg_to_mp3.png.html"><img src="http://gallery.sumin.us/d/463-1/ogg_to_mp3.png" alt="" class="aligncenter" /></a></p>
<!-- AdSense Now! V1.83 -->
<!-- Post[count: 2] -->
<div class="adsense adsense-leadout" style="text-align:center;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-2353453386862167";
/* 468x60, created 10/26/09 */
google_ad_slot = "1252542387";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sumin.us/archives/693/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using Time Machine with Network Drive</title>
		<link>http://blog.sumin.us/archives/690</link>
		<comments>http://blog.sumin.us/archives/690#comments</comments>
		<pubDate>Sun, 18 Nov 2007 06:04:13 +0000</pubDate>
		<dc:creator>Sumin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[time machine]]></category>

		<guid isPermaLink="false">http://blog.sumin.us/archives/690</guid>
		<description><![CDATA[Preparing a Backup Volume First thing you need to is to make a backup volume. You can use hdiutil on the command line if you want, but I'm gonna go with OSX's Disk Utility in this article. It's located under /Applications/Utilities. You can also find it on Spotlight. I always do that. What you are [...]]]></description>
			<content:encoded><![CDATA[<h3>Preparing a Backup Volume</h3>

<p>First thing you need to is to make a backup volume. You can use <code>hdiutil</code> on the command line if you want, but I'm gonna go with OSX's Disk Utility in this article. It's located under <code>/Applications/Utilities</code>. You can also find it on Spotlight. I always do that.</p>

<p>What you are going to create is a disk image. This disk image will act like a physical disk volume so that Time Machine can backup your data on this disk image.</p>

<p>Once you launch Disk Utility, click <em>New Image</em> to make a new disk volume.
<a href="http://gallery.sumin.us/v/screenshots/timemachine/5a766b45bca17f80.png.html"><img class="aligncenter" src="http://gallery.sumin.us/d/1407-1/5a766b45bca17f80.png" alt="" /></a></p>

<p>Then the something like this pops up.
<a href="http://gallery.sumin.us/v/screenshots/timemachine/8ef179a604a07f51.png.html"><img class="aligncenter" src="http://gallery.sumin.us/d/1405-3/8ef179a604a07f51.png" alt="" /></a></p>

<p>You need to set a few things here.</p>

<h5>Save As</h5>

<p>The important thing here is that your disk image name must include your Mac's <a href="http://en.wikipedia.org/wiki/MAC_address">MAC address</a>.</p>

<p>For example, if your MAC address is 00:11:22:33:44:55 then your disk image name is going to be:</p>

<pre><code>TimeMachine_001122334455.sparsebundle
</code></pre>

<p>And then you need to locate your disk image directly under the network drive that you're gonna use for backup. For example, if your network drive is mounted at <code>/Volumes/backup</code> then your disk image is going to be at <code>/Volumes/backup/TimeMachine_001122334455.sparsebundle</code>.</p>

<p>Don't know what your MAC address is? Go to Network Preferences. Select whatever network interface you're using. Usually Ethernet or AirPort. Click <em>Advanced...</em> button. And then go to <em>Ethernet</em> tab.</p>

<p><a href="http://gallery.sumin.us/v/screenshots/timemachine/86fbb34071953f78.png.html"><img alt="" src="http://gallery.sumin.us/d/1411-1/86fbb34071953f78.png" class="aligncenter" width="665" height="478" /></a></p>

<p>Yeah. That's your MAC address.</p>

<p>Or you could use <code>ifconfig</code> command. It's a lot easier for me.</p>

<pre><code>ifconfig en0
</code></pre>

<h5>Volume Name</h5>

<p>It can be whatever you want. Doesn't really matter.</p>

<h5>Volume Size</h5>

<p>Must be larger than the hard drive on your Mac. You can exclude directories that you don't want to backup from Time Machine. Then the volume size must be larger than the size of the rest of files and directories. Disk Utility will make a disk image regardless of available space on the volume. When Time Machine attempts to backup your data, it will fail if there is not enough space on the disk image.</p>

<h5>Encryption</h5>

<p>(Haven't tested yet)</p>

<h5>Image Format</h5>

<p>Set it to be <em>sparse bundle disk image</em></p>

<h3>Changing Settings</h3>

<p>Run the following command in Terminal:</p>

<pre><code>defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
</code></pre>

<p>I've been using a shared directory on a personal server through smb protocol, and that's where I'm going to locate the backup volume that I created previously. I'm pretty sure it would work with shared directories on Windows machines as well. I didn't test it though.</p>

<p>Click <em>Change Disk...</em> on Time Machine Preferences.
<a href="http://gallery.sumin.us/v/screenshots/timemachine/512f4700f8c0a8b631c7c204fdd3e41f.png.html"><img class="aligncenter" src="http://gallery.sumin.us/d/711-1/512f4700f8c0a8b631c7c204fdd3e41f.png" alt="" /></a></p>

<p>Then you will be able to see something like this:
<a href="http://gallery.sumin.us/v/screenshots/timemachine/4d07545f1a35436d9fd041a2754ebf53.png.html"><img class="aligncenter" src="http://gallery.sumin.us/d/714-1/4d07545f1a35436d9fd041a2754ebf53.png" alt="" /></a></p>

<p>Select your network drive and start backing up!</p>

<!--http://omarqazi.com/post/18214016-->
]]></content:encoded>
			<wfw:commentRss>http://blog.sumin.us/archives/690/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
