<?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>Safsalog</title>
	<atom:link href="http://blog.safsal-multimedia.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.safsal-multimedia.com</link>
	<description></description>
	<lastBuildDate>Mon, 22 Feb 2010 01:18:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A little digital clock I made in Processing</title>
		<link>http://blog.safsal-multimedia.com/code/a-little-digital-clock-i-made-with-processing/</link>
		<comments>http://blog.safsal-multimedia.com/code/a-little-digital-clock-i-made-with-processing/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 19:26:57 +0000</pubDate>
		<dc:creator>Shira</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[visualisation]]></category>
		<category><![CDATA[clock]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://blog.safsal-multimedia.com/?p=131</guid>
		<description><![CDATA[This is a little digital clock I made in Processing a while back. I&#8217;ve just come across it by chance and decided I actually quite liked it.


  Please upgrade your browser

And here&#8217;s the tiny little script for those of you who are interested:

void setup(){
textFont(loadFont("a.vlw"));
}
void draw(){
background(0);
int m=minute(),s=second(),h=hour();
float hy=(height+20)/60*m;
float my=(height+20)/60*s;
float sy=map(millis()%1000,0,1000,0,120);
text(h,9,hy);
text(m,40,my);
text(s,70,sy);
}

]]></description>
			<content:encoded><![CDATA[<p>This is a little digital clock I made in Processing a while back. I&#8217;ve just come across it by chance and decided I actually quite liked it.</p>
<p><span id="more-131"></span></p>
<div class="iframe-wrapper">
  <iframe src="http://www.openprocessing.org/visuals/iframe.php?visualID=3837&amp;width=100&amp;height=100" frameborder="0" style="height:240px;width:150px;">Please upgrade your browser</iframe>
</div>
<p>And here&#8217;s the tiny little script for those of you who are interested:</p>
<p><code class="code"><br />
void setup(){<br />
textFont(loadFont("a.vlw"));<br />
}<br />
void draw(){<br />
background(0);<br />
int m=minute(),s=second(),h=hour();<br />
float hy=(height+20)/60*m;<br />
float my=(height+20)/60*s;<br />
float sy=map(millis()%1000,0,1000,0,120);<br />
text(h,9,hy);<br />
text(m,40,my);<br />
text(s,70,sy);<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.safsal-multimedia.com/code/a-little-digital-clock-i-made-with-processing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Species of Spaces &#8211; The Movie</title>
		<link>http://blog.safsal-multimedia.com/visualisation/species-of-spaces-the-movie/</link>
		<comments>http://blog.safsal-multimedia.com/visualisation/species-of-spaces-the-movie/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 13:52:24 +0000</pubDate>
		<dc:creator>Shira</dc:creator>
				<category><![CDATA[text]]></category>
		<category><![CDATA[visualisation]]></category>

		<guid isPermaLink="false">http://blog.safsal-multimedia.com/?p=95</guid>
		<description><![CDATA[Taking a more hands-on approach to Georges Perec's exploration of the relationship between space and its semiotic representation, I've build a 3D room made out of parts of Perec's text . The words describe and represent the space and at the same time actually (or rather virtually) create it.
<img class="size-medium wp-image-96" title="Species of Spaces image" src="http://safsal-multimedia.com/blog/wp-content/uploads/Picture-3.png" alt="Species of Spaces image" width="300" height="222" />]]></description>
			<content:encoded><![CDATA[<p>In <em>Species of Spaces</em>, French Novelist Georges Perec looks into &#8220;spaces that are close to hand&#8221;.<br />
&#8220;There&#8217;s a whole lot of small bits of space,&#8221; Perec writes. &#8220;To live is to pass from one space to another, while doing your very best not to bump yourself.&#8221;</p>
<div id="attachment_96" class="wp-caption aligncenter" style="width: 232px"><a href="http://safsal-multimedia.com/blog/wp-content/uploads/Picture-1.png"><img class="size-medium wp-image-96" title="Species of Spaces - p. 11" src="http://safsal-multimedia.com/blog/wp-content/uploads/Picture-1-222x300.png" alt="Species of Spaces - p. 11" width="222" height="300" /></a><p class="wp-caption-text">Species of Spaces - p. 11</p></div>
<p style="text-align: center;">
<p>He starts with the way text inhabits the space of a page (see scan above) and goes on to examine the bed, the bedroom, the apartment, the building, the street etc.</p>
<p>For Perec, space begins with the textual description of the space and with the signs that represent it:<br />
&#8220;This is how space begins, with words only, signs traced on the blank page. To describe space: to name it, to trace it, like those portolano-makers who saturated the coastlines with the names of harbours, the names of capes, the names of inlets, until in the end the land was only separated from the sea by a continuous ribbon of text. &#8221;</p>
<p>Taking a more hands-on approach to this exploration of the relationship between space and its semiotic representation, I&#8217;ve build a 3D room made out of parts of Perec&#8217;s text . The words describe and represent the space and at the same time actually (or rather virtually) create it.</p>
<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=5769057&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=5769057&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object>
<p><a href="http://vimeo.com/5769057">Species of Spaces &#8211; Georges Perec in 3D</a> from <a href="http://vimeo.com/user884182">Shira G</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>I&#8217;m not sure there&#8217;s anything to be learned from this little experiment, but I do like the way the text creates a space that seems both solid and fragmented, fixed and floating, logical and unreal.</p>
<p>I heartily recommend reading <em>Species of Spaces</em> (as well as perec&#8217;s other books, as a matter of fact). <a href="http://books.google.com/books?id=HUjYoKnUbl8C&amp;dq=georges+perec+Species+of+Spaces&amp;printsec=frontcover&amp;source=bn&amp;hl=en&amp;ei=IZlpStyLM8OhjAeGvq2QCw&amp;sa=X&amp;oi=book_result&amp;ct=result&amp;resnum=4" target="_blank">Some of the text is available on Google Books</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.safsal-multimedia.com/visualisation/species-of-spaces-the-movie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Processing sketch &#8211; making progress</title>
		<link>http://blog.safsal-multimedia.com/visualisation/processing-sketch-making-progress/</link>
		<comments>http://blog.safsal-multimedia.com/visualisation/processing-sketch-making-progress/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 13:43:01 +0000</pubDate>
		<dc:creator>Shira</dc:creator>
				<category><![CDATA[visualisation]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://blog.safsal-multimedia.com/?p=67</guid>
		<description><![CDATA[<img class="size-medium wp-image-96" title="DnDscreenshot2" src="http://safsal-multimedia.com/blog/wp-content/uploads/screenshots4blog2.jpg" alt="Processing sketch screenshot #2" width="300" height="222" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the new screenshot of my <a href="http://blog.safsal-multimedia.com/code/my-new-processing-sketch/">processing sketch</a>:</p>
<div id="attachment_92" class="wp-caption aligncenter" style="width: 520px"><img class="size-full wp-image-92" title="DnDscreenshot2" src="http://safsal-multimedia.com/blog/wp-content/uploads/screenshots4blog2.jpg" alt="Processing sketch screenshot #2" width="510" height="340" /><p class="wp-caption-text">Processing sketch screenshot #2</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.safsal-multimedia.com/visualisation/processing-sketch-making-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My new processing sketch</title>
		<link>http://blog.safsal-multimedia.com/visualisation/my-new-processing-sketch/</link>
		<comments>http://blog.safsal-multimedia.com/visualisation/my-new-processing-sketch/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 08:25:03 +0000</pubDate>
		<dc:creator>Shira</dc:creator>
				<category><![CDATA[visualisation]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://blog.safsal-multimedia.com/?p=51</guid>
		<description><![CDATA[I've started working on a processing sketch. I'm having fun working on it so I wanted to share what I'm doing, but I don't want to share too much at this point (can't shake off these designer instincts of mine).
<img class="size-full wp-image-59" title="DnDscreenshot1" src="http://safsal-multimedia.com/blog/wp-content/screenshots4blog1.jpg" alt="processing sketch screenshot #1" width="300" height="222" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started working on a processing sketch. I&#8217;m having fun working on it so I wanted to share what I&#8217;m doing, but I don&#8217;t want to share too much at this point (can&#8217;t shake off these designer instincts of mine).<br />
So I&#8217;m going to post some screenshots here while I work on it. As my work progresses, and as the sketch becomes clearer and better defined in my head, the screenshots posted here will also become less foggy and blurry. This way you can experience the process with me.</p>
<p>Let&#8217;s see how it goes.</p>
<div id="attachment_59" class="wp-caption aligncenter" style="width: 520px"><img class="size-full wp-image-59" title="DnDscreenshot1" src="http://safsal-multimedia.com/blog/wp-content/screenshots4blog1.jpg" alt="processing sketch screenshot #1" width="510" height="340" /><p class="wp-caption-text">processing sketch screenshot #1</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.safsal-multimedia.com/visualisation/my-new-processing-sketch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Cufón with Right-To-Left text</title>
		<link>http://blog.safsal-multimedia.com/code/using-cufon-with-right-to-left-text/</link>
		<comments>http://blog.safsal-multimedia.com/code/using-cufon-with-right-to-left-text/#comments</comments>
		<pubDate>Mon, 25 May 2009 10:03:02 +0000</pubDate>
		<dc:creator>Shira</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Cufon]]></category>
		<category><![CDATA[font replacement]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[right-to-left]]></category>
		<category><![CDATA[RTL]]></category>

		<guid isPermaLink="false">http://blog.safsal-multimedia.com/?p=9</guid>
		<description><![CDATA[A couple of days ago I set out to implement <a title="download cufon" href="http://cufon.shoqolate.com/" target="_blank">Cufón</a> on a client's website that makes use of a custom font in Hebrew, only to discover that Cufón does not support <abbr title="Right To Left"> RTL </abbr> text. Well not at the moment, anyway.
Simo Kinnunen, the man behind Cufón, has informed me that they are hoping to provide RTL support later this year, but for those of you who like me need a solution NOW, here's a little jQuery script I've written to solve the problem for my client.]]></description>
			<content:encoded><![CDATA[<p>A couple of days ago I set out to implement <a title="download cufon" href="http://cufon.shoqolate.com/" target="_blank">Cufón</a> on a client&#8217;s website that makes use of a custom font in Hebrew, only to discover that Cufón does not support <abbr title="Right To Left"> RTL </abbr> text. Well not at the moment, anyway.<br />
Simo Kinnunen, the man behind Cufón, has informed me that they are hoping to provide RTL support later this year, but for those of you who like me need a solution NOW, here&#8217;s a little jQuery script I&#8217;ve written to solve the problem for my client.</p>
<p>It slows things down a bit, obviously, but if you don&#8217;t make heavy use of Cufón on the page and you&#8217;re willing to tolerate the occasional flicker,  I think it&#8217;s a usable solution. At least for the time being until the Cufón lot offer native RTL support.</p>
<h2>The HTML:</h2>
<p>I&#8217;ve used Cufón for the main menu links and for several<code> &lt;h1&gt;</code> and <code>&lt;h2&gt;</code> titles throughout the site.  I&#8217;ve added class=&#8221;cufon&#8221; to the titles I wanted to replace as a jQuery hook.</p>
<p><code class="code">&lt;head&gt;<br />
...<br />
&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;<br />
&lt;script type="text/javascript" src="scripts/cufon-yui.js"&gt;&lt;/script&gt;<br />
&lt;script type="text/javascript" src="scripts/Tabasco_500.font.js"&gt;&lt;/script&gt;<br />
...<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
...<br />
&lt;h1 class="cufon"&gt;השגי המועדון&lt;/h1&gt;<br />
&lt;ul id="mainmenu"&gt;<br />
&lt;li&gt;&lt;a href="homepage.asp"&gt;דף הבית&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="theclub.html"&gt;המועדון&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="training.html"&gt;האימונים&lt;/a&gt;&lt;/li&gt;<br />
...<br />
&lt;/ul&gt;<br />
...<br />
&lt;/body&gt;<br />
</code></p>
<h2>The script:</h2>
<p>The web-safe font I use for the headers is much larger than my custom font size (when given the same font-size attribute), so before actually replacing the font I&#8217;ve had to change the font-size so that it would look roughly the same size.</p>
<p>Because my document text direction is set to <abbr title="Right To Left"> RTL </abbr>, I&#8217;ve also had to change the direction of the text I wanted to replace to <abbr title="Left To Right">LTR</abbr> (so that when the script reverses the text, the words won&#8217;t come out all jumbled up). I&#8217;ve done that by wrapping the text with <code>&lt;bdo dir="ltr"&gt; &lt;/bdo&gt;</code> tags. If your document is set to LTR (or defaults to it) you can skip this step.<br />
<code class="code">$(function(){<br />
$('h1.cufon').css('font-size', '19px').wrapInner('&lt;bdo dir=ltr&gt;&lt;/bdo&gt;');<br />
$('h2.cufon').css('font-size', '17px').wrapInner('&lt;bdo dir=ltr&gt;&lt;/bdo&gt;');<br />
$('#mainmenu&gt;li&gt;a').wrapInner('&lt;bdo dir=ltr&gt;&lt;/bdo&gt;');<br />
});</code><br />
After these preliminary steps I&#8217;ve included the replacement function:<br />
<code class="code">Cufon.replace('bdo');</code><br />
The script then executes the text-reversing function for each <code>&lt;bdo&gt;</code> tag I&#8217;ve inserted earlier (if you didn&#8217;t need to reverse the text direction, you can of course use any other tag or attribute as a hook for this function).<br />
This function takes the text inside the tag and assigns it to the variable &#8216;word&#8217;. It then splits the text to its individual characters and reverses their order. The new text is then joined together and assigned to the variable &#8216;newtext&#8217;. Finally the new text is inserted into the targeted element (in this case, the <code>&lt;bdo&gt;</code> tag).<br />
<code class="code">$('bdo').each(function()    {<br />
var word = $(this).text();<br />
var splittext = word.split("");<br />
var reversedtext = splittext.reverse();<br />
var newtext = reversedtext.join("");<br />
$(this).text(newtext);<br />
});</code><br />
That&#8217;s all there&#8217;s to it.  Here&#8217;s the full script:<br />
<code class="code">$(function(){<br />
$('h1.cufon').css('font-size', '19px').wrapInner('&lt;bdo dir=ltr&gt;&lt;/bdo&gt;');<br />
$('h2.cufon').css('font-size', '17px').wrapInner('&lt;bdo dir=ltr&gt;&lt;/bdo&gt;');<br />
$('#mainmenu&gt;li&gt;a').wrapInner('&lt;bdo dir=ltr&gt;&lt;/bdo&gt;');<br />
Cufon.replace('bdo');<br />
$('bdo').each(function()    {<br />
var word = $(this).text();<br />
var splittext = word.split("");<br />
var reversedtext = splittext.reverse();<br />
var newtext = reversedtext.join("");<br />
$(this).text(newtext);<br />
});<br />
});</code><br />
You can see this script at work on <a title="RTL Cufon replacement example" href="http://kstaekwondo.com/theclub_achievements.html" target="_blank">my client&#8217;s site</a>.</p>
<p>Don&#8217;t forget to link to the jQuery library, the Cufón script and the replacement font.</p>
<p>I&#8217;ve used the jQuery library because I already use it elsewhere on the page. Loading it just for this little script alone does seem like a bit of an overkill, so if you&#8217;d rather not use jQuery, this script could easily be translated into &#8216;real&#8217; javascript.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.safsal-multimedia.com/code/using-cufon-with-right-to-left-text/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
