<?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/"
		xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>jadecell.org:~$ ./blogStart.sh &#187; Shell</title>
	<atom:link href="http://blog.jadecell.org/wp/category/programming/shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jadecell.org/wp</link>
	<description>Experiences in *nix &#038; Tech</description>
	<lastBuildDate>Wed, 19 May 2010 00:01:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<copyright>2006-2007 </copyright>
	<managingEditor>admin@blog.jadecell.org (jadecell.org:~$ ./blogStart.sh)</managingEditor>
	<webMaster>admin@blog.jadecell.org (jadecell.org:~$ ./blogStart.sh)</webMaster>
	<image>
		<url>http://blog.jadecell.org/wp/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>jadecell.org:~$ ./blogStart.sh</title>
		<link>http://blog.jadecell.org/wp</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>Experiences in *nix &#38; Tech</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &#38; Culture" />
	<itunes:author>jadecell.org:~$ ./blogStart.sh</itunes:author>
	<itunes:owner>
		<itunes:name>jadecell.org:~$ ./blogStart.sh</itunes:name>
		<itunes:email>admin@blog.jadecell.org</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://blog.jadecell.org/wp/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>myPyTunes: iTunes from the Terminal in Python</title>
		<link>http://blog.jadecell.org/wp/2008/02/19/mypytunes-itunes-from-the-terminal-in-python/</link>
		<comments>http://blog.jadecell.org/wp/2008/02/19/mypytunes-itunes-from-the-terminal-in-python/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 21:19:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[myPyTunes]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://blog.jadecell.org/wp/2008/02/19/mypytunes-itunes-from-the-terminal-in-python/</guid>
		<description><![CDATA[Inspired by the Controlling iTunes from the Terminal article explaining a bash shell command line script to (as the title says) control iTunes from the terminal. I liked this, but I felt I needed a bit more flexibility (meaning I &#8230; <a href="http://blog.jadecell.org/wp/2008/02/19/mypytunes-itunes-from-the-terminal-in-python/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Inspired by the <a href="http://blog.jadecell.org/wp/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5tYWNvc3hoaW50cy5jb20vYXJ0aWNsZS5waHA/c3Rvcnk9MjAwMTExMDgyMTE4MDI4MzA=" target=\"_blank\">Controlling iTunes from the Terminal</a> article explaining a bash shell command line script to (as the title says) control iTunes from the terminal. I liked this, but I felt I needed a bit more flexibility (meaning I want it coded in something i know better), and I really like Python (especially when i decide to classify this script), so I decided to port it over to Python.</p>
<p>I found this useful to have installed on the Mac Mini sitting on a desk while i was across the room on my Powerbook. Very handy since I didn&#8217;t want to have to get up every time I wanted to change the song, or pause it when the phone rang, etc.</p>
<p>So far its a pretty clean traslation over with a few modified functions, and a few functions I&#8217;ve thrown in from other posts I had seen, or functions I feel would be cool to be added.</p>
<p>I&#8217;ve only tested this on OSX 10.4.11 &#8211; iTunes 7.6, so even though I believe it should work on  other versions of iTunes/OSX, don&#8217;t take my word for it, but please let me know if you do run into any problems with it.</p>
<p>Right now i&#8217;ll upload the file along with this blog, but i&#8217;ll be sure to use a versioning tool as i make updates.</p>
<p>Download myPyTunes <a href="http://blog.jadecell.org/wp/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuamFkZWNlbGwub3JnL3dwL2ZpbGVzL2l0dW5lcw==" target=\"_blank\">here</a> &#8211; Right click the link and choose &#8220;Save As..&#8221;</p>
<p>Here is the basic help menu when you type in &#8220;itunes -h&#8221;:</p>
<blockquote><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
iTunes Command Line Interface<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Usage: /usr/bin/itunes &lt;option&gt;<br />
Options:<br />
status        = Shows iTunes&#8217; status, current artist, and track.<br />
play          = Start playing iTunes.<br />
stop          = Stop iTunes<br />
pause         = Pause iTunes.<br />
playpause     = Play/Pause iTunes.<br />
next          = Go to the next track.<br />
prev          = Go to the previous track.<br />
mute          = Mute iTunes&#8217; volume.<br />
unmute        = Unmute iTunes&#8217; volume.<br />
vol up        = Increase iTunes&#8217; volume by 10%<br />
vol down      = Increase iTunes&#8217; volume by 10%<br />
vol #         = Set iTunes&#8217; volume to # [0-100]<br />
quit          = Quit iTunes<br />
launch        = Launch iTunes<br />
playlist @    = Play iTunes&#8217; playlist named @&#8221;<br />
list          = list playlists.<br />
shuf          = turn on shuffle playlist<br />
noshuf        = turn off shuffle playlist<br />
ostream       = open stream<br />
help          = what&#8217;s showing now<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p></blockquote>
<p><map name='google_ad_map_44_03357ac322143b8f'>
<area shape='rect' href="http://blog.jadecell.org/wp/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2ltYWdlYWRzLmdvb2dsZWFkc2VydmljZXMuY29tL3BhZ2VhZC9pbWdjbGljay80ND9wb3M9MA==" coords='1,2,367,28' />
<area shape='rect' href="http://blog.jadecell.org/wp/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3NlcnZpY2VzLmdvb2dsZS5jb20vZmVlZGJhY2svYWJn" coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_44_03357ac322143b8f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=44&amp;url= http%3A%2F%2Fblog.jadecell.org%2Fwp%2F2008%2F02%2F19%2Fmypytunes-itunes-from-the-terminal-in-python%2F' /></p> <img src="http://blog.jadecell.org/wp/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=44" width="1" height="1" style="display: none;" /><hr />
<p><small>&copy; admin for <a href="http://blog.jadecell.org/wp">jadecell.org:~$ ./blogStart.sh</a>, 2008. |
<a href="http://blog.jadecell.org/wp/2008/02/19/mypytunes-itunes-from-the-terminal-in-python/">Permalink</a> |
<a href="http://blog.jadecell.org/wp/2008/02/19/mypytunes-itunes-from-the-terminal-in-python/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://blog.jadecell.org/wp/2008/02/19/mypytunes-itunes-from-the-terminal-in-python/&amp;title=myPyTunes: iTunes from the Terminal in Python">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jadecell.org/wp/2008/02/19/mypytunes-itunes-from-the-terminal-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>color terminal bash on the Mac (iTerm included)</title>
		<link>http://blog.jadecell.org/wp/2006/08/19/color-terminal-bash-on-the-mac-iterm-included/</link>
		<comments>http://blog.jadecell.org/wp/2006/08/19/color-terminal-bash-on-the-mac-iterm-included/#comments</comments>
		<pubDate>Sat, 19 Aug 2006 07:25:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://blog.jadecell.org/wp/?p=5</guid>
		<description><![CDATA[first open up .bash_profile from your favorite editor. fastest way to do it from the terminal command line is: $ vi ~/.bash_profile copy and paste the code below if you like. it includes an explanation of each line .bash_profile #enables &#8230; <a href="http://blog.jadecell.org/wp/2006/08/19/color-terminal-bash-on-the-mac-iterm-included/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>first open up .bash_profile from your favorite editor. fastest way to do it from the terminal command line is:</p>
<p><code>$ vi ~/.bash_profile</code></p>
<p>copy and paste the code below if you like. it includes an explanation of each line<br />
<a id=\"p8\" href="http://blog.jadecell.org/wp/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2phZGVjZWxsLmNvbS9saW5tYWNibG9nL3dwLWNvbnRlbnQvdXBsb2Fkcy8yMDA2LzA4Ly5iYXNoX3Byb2ZpbGUxLnR4dA==">.bash_profile</a></p>
<p><code class="terminal">#enables color in the terminal bash shell export<br />
CLICOLOR=1<br />
#sets up the color scheme for list export<br />
LSCOLORS=gxfxcxdxbxegedabagacad<br />
#sets up the prompt color (currently a green similar to linux terminal)<br />
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '<br />
#enables color for iTerm<br />
export TERM=xterm-color<br />
#sets up proper alias commands when called<br />
alias ls='ls -G'<br />
alias ll='ls -hl'</code></p>
<p>C/P&#8217;d from MacOsXHints.com:</p>
<p>The colors can be set with the LSCOLORS variable. The color designators are as follows:</p>
<p><code class="terminal"> a     black<br />
b     red<br />
c     green<br />
d     brown<br />
e     blue<br />
f     magenta<br />
g     cyan<br />
h     light grey<br />
A     bold black, usually shows up as dark grey<br />
B     bold red<br />
C     bold green<br />
D     bold brown, usually shows up as yellow<br />
E     bold blue<br />
F     bold magenta<br />
G     bold cyan<br />
H     bold light grey; looks like bright white<br />
x     default foreground or background</code></p>
<p>Note that the above are standard ANSI colors. The actual display may differ depending on the color capabilities of the terminal in use. The order of the attributes in the LSCOLORS variable is as follows:</p>
<p><code class="terminal"> 1. directory<br />
2. symbolic link<br />
3. socket<br />
4. pipe<br />
5. executable<br />
6. block special<br />
7. character special<br />
8. executable with setuid bit set<br />
9. executable with setgid bit set<br />
10. directory writable to others, with sticky bit<br />
11. directory writable to others, without sticky bit</code></p>
<p>They are set in pairs, foreground (f) then background (b), i.e. fbfbfbfbfbfbfbfbfbfbfb for all 11 settings. The default is exfxcxdxbxegedabagacad, i.e. blue foreground and default background for regular directories, black foreground and red background for setuid executables, etc.</p>
<p><map name='google_ad_map_5_03357ac322143b8f'>
<area shape='rect' href="http://blog.jadecell.org/wp/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2ltYWdlYWRzLmdvb2dsZWFkc2VydmljZXMuY29tL3BhZ2VhZC9pbWdjbGljay81P3Bvcz0w" coords='1,2,367,28' />
<area shape='rect' href="http://blog.jadecell.org/wp/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3NlcnZpY2VzLmdvb2dsZS5jb20vZmVlZGJhY2svYWJn" coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_5_03357ac322143b8f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=5&amp;url= http%3A%2F%2Fblog.jadecell.org%2Fwp%2F2006%2F08%2F19%2Fcolor-terminal-bash-on-the-mac-iterm-included%2F' /></p> <img src="http://blog.jadecell.org/wp/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=5" width="1" height="1" style="display: none;" /><hr />
<p><small>&copy; admin for <a href="http://blog.jadecell.org/wp">jadecell.org:~$ ./blogStart.sh</a>, 2006. |
<a href="http://blog.jadecell.org/wp/2006/08/19/color-terminal-bash-on-the-mac-iterm-included/">Permalink</a> |
<a href="http://blog.jadecell.org/wp/2006/08/19/color-terminal-bash-on-the-mac-iterm-included/#comments">2 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://blog.jadecell.org/wp/2006/08/19/color-terminal-bash-on-the-mac-iterm-included/&amp;title=color terminal bash on the Mac (iTerm included)">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jadecell.org/wp/2006/08/19/color-terminal-bash-on-the-mac-iterm-included/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

