<?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>optixx &#187; Mac</title>
	<atom:link href="http://optixx.org/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://optixx.org</link>
	<description>About Linux and Console Hacking</description>
	<lastBuildDate>Sun, 08 Jan 2012 16:31:04 +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>Select-Copy, Middle Click-Paste in Terminal.app</title>
		<link>http://optixx.org/2009/02/01/select-copy-middle-click-paste-in-terminal-mac/</link>
		<comments>http://optixx.org/2009/02/01/select-copy-middle-click-paste-in-terminal-mac/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 15:28:30 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://optixx.org/?p=191</guid>
		<description><![CDATA[Always annoyed me not to have the beloved &#8216;Select-Copy, Middle Click-Paste&#8217; thingy on my Macbook. Finnally i figured out how to do it. 1) Install USBOverdrive 2) Fire up its Prefpane, and map the Middle Mouse Button to paste action 3) Install SIMBL 4) Install this SIMBL Plugin for Terminal.app]]></description>
			<content:encoded><![CDATA[<p>Always annoyed me not to have the beloved &#8216;Select-Copy, Middle Click-Paste&#8217; thingy on  my Macbook. Finnally i figured out how to do it. </p>

<blockquote>
1) Install <a href="http://www.senlick.com/html/01.01.html">USBOverdrive</a>
<br />

2) Fire up its Prefpane, and map the Middle Mouse Button to paste action
<br />

3) Install <a href="http://culater.net/software/SIMBL/SIMBL.php">SIMBL</a>
<br />

4) Install this SIMBL <a href="http://yojinbo.com/2008/11/25/add-copy-on-select-to-mac-os-x-terminal/">Plugin</a> for Terminal.app
<br />

</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://optixx.org/2009/02/01/select-copy-middle-click-paste-in-terminal-mac/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ledmatrix Chip-8 Emulator</title>
		<link>http://optixx.org/2009/01/21/ledmatrix-chip8-emulator/</link>
		<comments>http://optixx.org/2009/01/21/ledmatrix-chip8-emulator/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 00:07:06 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[AVR]]></category>
		<category><![CDATA[Bluetooth]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://optixx.org/?p=167</guid>
		<description><![CDATA[So the next thing could be an Chip-8 emulator runinng on a medium sized Atmega. CHIP-8 is an interpreted programming language, developed by the late Joseph Weisbecker. It was initially used on the COSMAC VIP and Telmac 1800 8-bit microcomputers in the mid-1970s. CHIP-8 programs are run on a CHIP-8 virtual machine. It was made [...]]]></description>
			<content:encoded><![CDATA[<p>So the next thing could be an <a href="http://en.wikipedia.org/wiki/CHIP-8">Chip-8</a> emulator runinng on a medium sized Atmega.</p>

<blockquote>
CHIP-8 is an interpreted programming language, developed by the late Joseph Weisbecker. It was initially used on the COSMAC VIP and Telmac 1800 8-bit microcomputers in the mid-1970s. CHIP-8 programs are run on a CHIP-8 virtual machine. It was made to allow video games to be more easily programmed for said computers.
</blockquote>

<p><strong>Memory</strong></p>

<p>CHIP-8&#8242;s memory addresses range from 200h to FFFh, making for 3,584 bytes. The reason for the memory starting at 200h is that on the Cosmac VIP and Telmac 1800, the first 512 bytes are reserved for the interpreter. On those machines, the uppermost 256 bytes (F00h-FFFh on a 4K machine) were reserved for display refresh, and the 96 bytes below that (EA0h-EFFh) were reserved for the call stack, internal use, and the variables.</p>

<p><strong>Registers</strong></p>

<p>CHIP-8 has 16 8-bit data registers named from V0 to VF. The VF register doubles as a carry flag.
The address register, which is named I, is 16 bits wide and is used with several opcodes that involve memory operations.</p>

<p><strong>The stack</strong></p>

<p>The stack is only used to store return addresses when subroutines are called. The original 1802 version allocated 48 bytes for up to 12 levels of nesting; modern implementations normally have at least 16 levels.</p>

<p><strong>Timers</strong>
CHIP-8 has two timers. They both count down at 60 hertz, until they reach 0.</p>

<p>There are two version of the platform, the Chip-8 and schip (Super Chip). The biggest difference is the display size.</p>

<blockquote>Chip-8 64&#215;32  
Super Chip 128&#215;64</blockquote>

<p>But most import it has some decent games:</p>


<a href='http://optixx.org/2009/01/21/ledmatrix-chip8-emulator/brix/' title='brix'><img width="150" height="136" src="http://optixx.org/wp-content/uploads/2009/01/brix-150x136.gif" class="attachment-thumbnail" alt="brix" title="brix" /></a>
<a href='http://optixx.org/2009/01/21/ledmatrix-chip8-emulator/pong/' title='pong'><img width="150" height="136" src="http://optixx.org/wp-content/uploads/2009/01/pong-150x136.gif" class="attachment-thumbnail" alt="pong" title="pong" /></a>
<a href='http://optixx.org/2009/01/21/ledmatrix-chip8-emulator/ufo/' title='ufo'><img width="150" height="136" src="http://optixx.org/wp-content/uploads/2009/01/ufo-150x136.gif" class="attachment-thumbnail" alt="ufo" title="ufo" /></a>


<p>I found some ugly c code code <a href="http://www.geocities.co.jp/Playtown-Yoyo/6130/chip8.htm">here</a>, cleaned it up and made an SDL version on OS X.</p>

<p><code>git://github.com/optixx/megaledmatrix.git
</code></p>

<p><a href='http://optixx.org/wp-content/uploads/2009/01/chip8sdl.dmg'>chip8sdl.dmg</a></p>

<p>[flash]http://vimeo.com/2905435 [/flash]</p>
]]></content:encoded>
			<wfw:commentRss>http://optixx.org/2009/01/21/ledmatrix-chip8-emulator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update: os x and DNS</title>
		<link>http://optixx.org/2008/08/19/update-os-x-and-dns/</link>
		<comments>http://optixx.org/2008/08/19/update-os-x-and-dns/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 19:53:25 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://optixx.org/?p=73</guid>
		<description><![CDATA[I found some facts how os x is handling the dns lookups. Because i was wondering why changing the resolv.conf doesnt seem to change Safari&#8217;s or Firefox&#8217;s lookups. The key to this is lookupd and DNS Service Discovery. Actually i came across this from an iphone related problem, which is quite well documented at saurik [...]]]></description>
			<content:encoded><![CDATA[<p>I found some facts how os x is handling the dns lookups. Because i was wondering why changing the resolv.conf doesnt seem to change Safari&#8217;s or Firefox&#8217;s lookups. The key to this is <a href="http://docs.info.apple.com/article.html?artnum=30770">lookupd</a> and DNS Service Discovery. Actually i came across this from an iphone related problem, which is quite well documented at <a href="http://www.saurik.com/id/3">saurik</a> webpage.</p>
]]></content:encoded>
			<wfw:commentRss>http://optixx.org/2008/08/19/update-os-x-and-dns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New iTunes and iPhoto importer</title>
		<link>http://optixx.org/2008/08/12/new-itunes-and-iphoto-importer/</link>
		<comments>http://optixx.org/2008/08/12/new-itunes-and-iphoto-importer/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 14:59:31 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://optixx.org/?p=70</guid>
		<description><![CDATA[I updated my iTunes and iPhoto import scripts. Added Growl feedback and some hacks to handle iTunes performance problems, some iTunes really gets slow and i had to add timeut exception handling. So just call this from the terminal: python addToiTunes.py -d /media/mp3s -r -p Where all Mp3 Files below the path get imorted to [...]]]></description>
			<content:encoded><![CDATA[<p>I updated my iTunes and iPhoto import scripts. Added Growl feedback and some hacks to handle iTunes performance problems, some iTunes really gets slow and i had to add timeut exception handling. 
So just call this from the terminal:</p>

<p><code>
python addToiTunes.py -d /media/mp3s -r -p
</code></p>

<p>Where all Mp3 Files below the path get imorted to iTunes and playlists get created. The playlist&#8217;s name depends on the subfolder structure below the import path. If u have arranged your stuff like /media/mp32/artist/album, u get a proper playlist name &#8220;Artist &#8211; Album&#8221;</p>

<p>The other script is just a bulk importer for iPhoto. </p>

<p><code>
python addToiPhoto.py -d /media/photos -r 
</code></p>

<p>Where all pictures below the path are imported and each subfolder yields an new album in iPhoto. Quite simple and less pain if u have to import  a huge photo collection. Tried to use Automator for this, but he outcome wasn&#8217;t so good.</p>

<p><a href="http://optixx.org/download/addToiPhoto.py">addToiPhoto.py</a><br />
<a href="http://optixx.org/download/addToiTunes.py">addToiTunes.py</a></p>
]]></content:encoded>
			<wfw:commentRss>http://optixx.org/2008/08/12/new-itunes-and-iphoto-importer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stupid Fritzbox DNS</title>
		<link>http://optixx.org/2008/08/07/stupid-fritzbox-dns/</link>
		<comments>http://optixx.org/2008/08/07/stupid-fritzbox-dns/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 21:27:05 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://optixx.org/?p=61</guid>
		<description><![CDATA[Since my DSL provider&#8217;s DNS updates are really slow i wanted to switch to opendns, which is a good a idea anyways. But wtf i cant change the default dns in my fritzbox. No way to do it via the web admin. Ok why bother i said to my self and went for the shortcut. [...]]]></description>
			<content:encoded><![CDATA[<p>Since my DSL provider&#8217;s DNS updates are really slow i wanted to switch to opendns, which is a good a idea anyways. But wtf i cant change the default dns in my fritzbox. No way to do it via the web admin. Ok why bother i said to my self and went for the shortcut. To find out that Leopard is buggy and u cant unassign the default dns on the Airport device, its simply greyed out. Bummer!</p>

<p>So do it the old school way and editet the resolv.conf. Where nslookup and dig seem to eat this but Firefox and Safari seem to give a flying fuck about this. Even Network pref.panes doesnt seem so sync againt resolv.conf. Seems to be a know problem to the people at the opendns forums.
Ok went back to the fritzbox, and found a way to force the dns via the a config file. Just fillin this:</p>

<p><code>
overwrite<em>dns1 = 208.67.222.222;
overwrite</em>dns2 = 208.67.220.220;
</code></p>

<p>Used a java tool to pull and push the config directly from the box. Take a look <a href="http://www.ip-phone-forum.de/showthread.php?t=79513">here</a></p>

<p>Ja&#8230;funny. How easy u can spend an hour in front of a computer, just to take a shortcut for the slow dns cache update&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://optixx.org/2008/08/07/stupid-fritzbox-dns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ITunes commandline importer</title>
		<link>http://optixx.org/2007/11/22/itunes-commandline-importer/</link>
		<comments>http://optixx.org/2007/11/22/itunes-commandline-importer/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 08:57:32 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://optixx.org/2007/11/22/itunes-commandline-importer/</guid>
		<description><![CDATA[Since i swichted my fun computing (music, videos + web ) from linux to OS X i needed some tools to make thinks easier with iTunes. I was used to amarok, which make music library handling pretty straight forward. I really hate the way iTunes handles music libs, so i switched the iTunes self organzing [...]]]></description>
			<content:encoded><![CDATA[<p>Since i swichted my fun computing (music, videos + web ) from linux to OS X i needed some tools to make thinks easier with iTunes. I was used to amarok, which make music library handling pretty straight forward. I really hate the way iTunes handles music libs, so i switched the iTunes self organzing features off and wrote a little script using python and appscript to import music via commandline. </p>

<p><strong>Features</strong>
<li>batch import of folders</li>
<li>create playlists on the fly</li>
<li>remove duplicates from playlist</li>
<li>recursive mode to import trees</li></p>

<p>Import Folder &#8216;Album&#8217; to Playlist &#8216;New&#8217; and set Artist to &#8216;Slayer&#8217; and Album to &#8216;South of Heaven&#8217;</p>

<pre>
python addToiTunes.py -d Album -p New -a 'Slayer' -A 'South of Heaven'
</pre>

<p>Import from Folder &#8216;music&#8217; recursiv, where Playlist ,Artist and Album get name after the Folders. </p>

<p>Folder Sample</p>

<pre>
music 
      artist
           album 1
           album 2
</pre>

<p>Will yield playlists name like &#8220;artist &#8211; album 1&#8243; and &#8220;artist album 2&#8243;</p>

<pre>
python addToiTunes.py -d music -r
</pre>

<p><a href="http://optixx.org/download/addToiTunes.py.gz">download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://optixx.org/2007/11/22/itunes-commandline-importer/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/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching 13/23 queries in 0.005 seconds using disk: basic

Served from: blog.optixx.org @ 2012-02-05 17:41:52 -->
