<?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>Franz Sittampalam &#187; code</title>
	<atom:link href="http://www.shedali.com/b/archives/category/code/feed" rel="self" type="application/rss+xml" />
	<link>http://www.shedali.com/b</link>
	<description>creative development</description>
	<lastBuildDate>Wed, 03 Mar 2010 01:21:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<!-- podcast_generator="podPress/8.8" -->
		<copyright>&#xA9;Franz Sittampalam </copyright>
		<managingEditor>shedali@gmail.com (Franz Sittampalam)</managingEditor>
		<webMaster>shedali@gmail.com(Franz Sittampalam)</webMaster>
		<category>Music</category>
		<ttl>1440</ttl>
		<itunes:keywords></itunes:keywords>
		<itunes:subtitle></itunes:subtitle>
		<itunes:summary>sonic experiments of Franz Sittampalam</itunes:summary>
		<itunes:author>Franz Sittampalam</itunes:author>
		<itunes:category text="Technology">
  <itunes:category text="Podcasting"/>
</itunes:category>
<itunes:category text="Technology"/>
<itunes:category text="Technology">
  <itunes:category text="Gadgets"/>
</itunes:category>
		<itunes:owner>
			<itunes:name>Franz Sittampalam</itunes:name>
			<itunes:email>shedali@gmail.com</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://www.shedali.com/pipeline/banner1.jpg" />
		<image>
			<url>http://www.shedali.com/pipeline/banner1.jpg</url>
			<title>Franz Sittampalam</title>
			<link>http://www.shedali.com/b</link>
			<width>144</width>
			<height>144</height>
		</image>
		<item>
		<title>3D Rotating Flower in Flash</title>
		<link>http://www.shedali.com/b/archives/638</link>
		<comments>http://www.shedali.com/b/archives/638#comments</comments>
		<pubDate>Sat, 21 Nov 2009 23:22:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.shedali.com/b/?p=638</guid>
		<description><![CDATA[I set myself a challenge - to produce a flower. (source code coming...)



Each new visit to the page creates a brand new flower (refresh to see).
]]></description>
			<content:encoded><![CDATA[<h1><span style="font-weight: normal; font-size: 13px;">I set myself a challenge - to produce a flower. (source code coming...)</span></h1>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="menu" value="false" /><param name="src" value="http://www.shedali.com/labs/flower3.swf" /><embed type="application/x-shockwave-flash" width="400" height="200" src="http://www.shedali.com/labs/flower3.swf" menu="false" quality="high"></embed></object></p>
<div id="text">
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="menu" value="false" /><param name="src" value="http://www.shedali.com/labs/flower4.swf" /><embed type="application/x-shockwave-flash" width="400" height="200" src="http://www.shedali.com/labs/flower4.swf" menu="false" quality="high"></embed></object></p>
<p>Each new visit to the page creates a brand new flower (refresh to see).</p></div>
]]></content:encoded>
			<wfw:commentRss>http://js-kit.com/rss/www.shedali.com/b/p=638</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mac Proximity detection script.</title>
		<link>http://www.shedali.com/b/archives/612</link>
		<comments>http://www.shedali.com/b/archives/612#comments</comments>
		<pubDate>Wed, 30 Sep 2009 17:16:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://www.shedali.com/b/?p=612</guid>
		<description><![CDATA[Proximity is an app which can monitor for the presence of a bluetooth device and activate a pre-defined script when that device is in and out of range.
There is a usage guide at makeuseof.com which goes into good detail how to set this up

I have mine setup to do the following when I leave the [...]]]></description>
			<content:encoded><![CDATA[<p style="clear: both"><a href="http://code.google.com/p/reduxcomputing-proximity/">Proximity</a> is an app which can monitor for the presence of a bluetooth device and activate a pre-defined script when that device is in and out of range.</p>
<p style="clear: both">There is a usage guide at <a href="http://www.makeuseof.com/tag/automate-your-mac-your-home-with-proximity-mac-only/">makeuseof.com</a> which goes into good detail how to set this up</p>
<p style="clear: both">
<p style="clear: both">I have mine setup to do the following when I leave the computer</p>
<p style="clear: both">
<ul style="clear: both">
<li>Announce the departure verbally</li>
<li>Set my chat status to away from computer</li>
<li> Turn off any music which might be playing on spotify and itunes</li>
<li> ...and finally activate the screensaver which will in turn lock down the mac</li>
</ul>
<p style="clear: both">
<p style="clear: both">This works well and I have one final wish- that conversations initiated on adium can be continued seamlessly on the iphone as soon as proximity is broken.</p>
<p>The following applescripts achieve this</p>
<p style="clear: both">
<pre class="applescript">&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">--voice prompt</span>
say <span style="color: #ff0000;">&quot;The computer is unattended&quot;</span>
<span style="color: #808080; font-style: italic;">--set adium status to away</span>
<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;Adium (1.4b4)&quot;</span>
    go away <span style="color: #b1b100;">with</span> message <span style="color: #ff0000;">&quot;(walked away)&quot;</span>
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span>
<span style="color: #808080; font-style: italic;">--find out if spotify and itunes are running</span>
<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;System Events&quot;</span>
    <span style="color: #b1b100;">set</span> iTunes_instances <span style="color: #b1b100;">to</span> <span style="color: #000066;">count</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">every</span> process <span style="color: #000000; font-weight: bold;">whose</span> name <span style="color: #b1b100;">is</span> <span style="color: #ff0000;">&quot;iTunes&quot;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #b1b100;">set</span> Spotify_instances <span style="color: #b1b100;">to</span> <span style="color: #000066;">count</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">every</span> process <span style="color: #000000; font-weight: bold;">whose</span> name <span style="color: #b1b100;">is</span> <span style="color: #ff0000;">&quot;Spotify&quot;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span>
<span style="color: #808080; font-style: italic;">--if itunes is playing, pause it</span>
<span style="color: #b1b100;">if</span> iTunes_instances &amp;gt; <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">then</span>
    <span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;iTunes&quot;</span> <span style="color: #b1b100;">to</span> <span style="color: #b1b100;">if</span> player state <span style="color: #b1b100;">is</span> playing <span style="color: #b1b100;">then</span> playpause
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">if</span>
<span style="color: #808080; font-style: italic;">--close spotify (as there is no way to tell if it is playing)</span>
<span style="color: #b1b100;">if</span> Spotify_instances &amp;gt; <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">then</span>
    <span style="color: #b1b100;">set</span> ActiveApp <span style="color: #b1b100;">to</span> <span style="color: #66cc66;">&#40;</span>path <span style="color: #b1b100;">to</span> frontmost application <span style="color: #000066;">as</span> Unicode text<span style="color: #66cc66;">&#41;</span>
    <span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;Spotify&quot;</span> <span style="color: #b1b100;">to</span> <span style="color: #000066;">quit</span>
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">if</span>
<span style="color: #808080; font-style: italic;">-- turn on screensaver</span>
<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;ScreenSaverEngine&quot;</span> <span style="color: #b1b100;">to</span> activate
&nbsp;
<span style="color: #808080; font-style: italic;">--THE UNLOCK SCRIPT</span>
<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;ScreenSaverEngine&quot;</span> <span style="color: #b1b100;">to</span> <span style="color: #000066;">quit</span>
<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;Adium (1.4b4)&quot;</span>
    go available <span style="color: #b1b100;">with</span> message <span style="color: #ff0000;">&quot;near computer&quot;</span>
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span>
say <span style="color: #ff0000;">&quot;Franz has returned&quot;</span>
<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;System Events&quot;</span>
    <span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;Spotify&quot;</span> <span style="color: #b1b100;">to</span> activate
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://js-kit.com/rss/www.shedali.com/b/p=612</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
