<?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"
	>

<channel>
	<title>styledfoam.com</title>
	<atom:link href="http://styledfoam.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://styledfoam.com</link>
	<description>{recyling the web one page at a time}</description>
	<pubDate>Fri, 11 Apr 2008 09:55:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Leopard Quick Look enhancements</title>
		<link>http://styledfoam.com/apple-os-x/leopard-quick-look-enhancements/</link>
		<comments>http://styledfoam.com/apple-os-x/leopard-quick-look-enhancements/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 23:51:42 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Apple OS X]]></category>

		<category><![CDATA[Leopard]]></category>

		<guid isPermaLink="false">http://styledfoam.com/?p=18</guid>
		<description><![CDATA[Just ran across this site. it contains two Quick Look plugins for better user experience :
 The zip Quick Look plugin ,shows the contents of the zip file (screencap beneath)
 The folder list Quick Look plugin ,shows the contents of a directory (screencap beneath)
Just unzip and copy the .qlgenerator files to /Library/QuickLook

Screencaps :


]]></description>
			<content:encoded><![CDATA[<p>Just ran across <a href="http://homepage.mac.com/xdd/software/zip/">this site</a>. it contains two Quick Look plugins for better user experience :<br />
 The <code>zip Quick Look plugin</code> ,shows the contents of the zip file (screencap beneath)<br />
 The <code>folder list Quick Look plugin</code> ,shows the contents of a directory (screencap beneath)</p>
<p>Just unzip and copy the .qlgenerator files to <code>/Library/QuickLook</code><br />
<span id="more-18"></span><br />
Screencaps :<br />
<img src="http://styledfoam.com/wp-content/themes/bits/images/zipQL.png" alt="zip Quick Look plugin" /><br />
<img src="http://styledfoam.com/wp-content/themes/bits/images/listQL.png" alt="list Quick Look plugin" /></p>
]]></content:encoded>
			<wfw:commentRss>http://styledfoam.com/apple-os-x/leopard-quick-look-enhancements/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Unlock iPhone (1.1.1 and 1.1.2)</title>
		<link>http://styledfoam.com/iphone/unlock-iphone-111-and-112-firmware-versions/</link>
		<comments>http://styledfoam.com/iphone/unlock-iphone-111-and-112-firmware-versions/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 18:14:17 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://styledfoam.com/?p=17</guid>
		<description><![CDATA[Went to New York last week for a four-day visit, and went to the Apple store on 5th Ave to buy me some iPhones. (as we all know the amount is limited to two items, credit card purchase only.) Back home I found out both were running different OTB firmware versions (/bootloader versions)
One iPhone was [...]]]></description>
			<content:encoded><![CDATA[<p>Went to New York last week for a four-day visit, and went to the <a href="http://www.apple.com/retail/fifthavenue/week/20071125.html">Apple store on 5th Ave</a> to buy me some <a href="http://www.apple.com/iphone/">iPhones</a>. (as we all know the amount is limited to two items, credit card purchase only.) Back home I found out both were running different OTB firmware versions (/bootloader versions)</p>
<p>One iPhone was packing the 1.1.1 firmware, with the 04.01.13_G modem firmware (BL 3.9), whilst the other iPhone was a 1.1.2 firmware, with the brand new 4.6 bootloader, which -until this point- has not been cracked yet.</p>
<p>The process to jailbreak, activate and unlock the 1.1.1 loaded iPhone ?<br />
Basically the whole procedure has already been described on <a href="http://iphone.unlock.no">iphone.unlock.no</a>, and works like a charm. So no need to rewrite that, but lets just sum up the major steps :
<ul>
<li> Check if you have the 04.01.13_G firmware</li>
<li> Add a contact with the jailbreak specs + adjust general settings and enable wifi connection</li>
<li> Jailbreak using the jailbreakme.com method</li>
<li> Install anySIM 1.1 (download <a href="http://conceitedsoftware.com/iphone/anySIM-1.1.zip">here</a>) and follow the instructions (make sure you own SIM card is in the phone, not the AT&#038;T one)</li>
<li> Apply some tweaks if necessary</li>
</ul>
<p><span id="more-17"></span><br />
The second iPhone we had was a problem (partially anyways). So far there is no proven software method to unlock this phone, just activate/ jailbreak&#8230; well we had to start somewhere !</p>
<ul>
<li> Download the 1.1.1 firmware from the Apple website</li>
<li> Open iTunes and connect the iPhone, click the restore button holding your option key</li>
<li> Now the iPhone is in recovery mode, you can select the 1.1.1 downloaded firmware to restore from</li>
<li> After the downgrade to the <a href="http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-3883.20070927.In76t/iPhone1,1_1.1.1_3A109a_Restore.ipsw">1.1.1 firmware</a>, follow the jailbreak procedure as described on iphone.unlock.no</li>
<li> If your iPhone gets stuck in DFU mode, use <a href="http://code.google.com/p/independence/">iNdependence</a> to free</li>
</ul>
<p>Good, we now have an iPhone the can be used as an iPod touch,.. while people from <a href="http://code.google.com/p/iphone-elite/">iphone-elite</a> are still working on the bootloader 4.6, there is an alternative to software unlocking : the use of a TurboSim  (available <a href="http://www.bladox.com/shop.php?lang=en">here</a>). It copies the IMEI and ICCID codes from you AT&#038;T simcard. If you use it afterwards with your own SIM, the iPhone thinks it&#8217;s dealing with an AT&#038;T account (simplified explanation). For this procedure I suggest you follow these <a href="http://iphone.simbunch.com/turbosim.php">detailed steps</a><br />
For some visual aid, here a UK user doing the hack with a O2 and Vodafone card on <a href="http://youtube.com/watch?v=dD4pgnjdNzI">Youtube</a></p>
<p>Unfortunately, we still didn&#8217;t have any carrier connection. That&#8217;s until you do an upgrade to the 1.1.2 firmware !!
<ul>
<li> Install Oktoprep</li>
<li> Download the 1.1.2 firmware from Apple (<a href="http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-4037.20071107.5Bghn/iPhone1,1_1.1.2_3B48b_Restore.ipsw">link</a>) and Upgrade (not Restore)</li>
<li> Download <a href="http://conceitedsoftware.com/iphone/1.1.2-jailbreak.zip">Jailbreak-1.1.2</a> and proceed with the Jailbreak procedure. (for Windows &#038; Mac)</li>
</ul>
<p><b>Additional useful resources ::</b><br />
- Guide to unlocking your iPhone with a Turbo SIM (Jason Madigan - <a href="http://www.jasonmadigan.com/2007/08/16/a-guide-unlocking-your-iphone-with-a-turbo-sim/">link</a>)<br />
- A Muppet&#8217;s Guide to TurboSIM (Hackintosh - <a href="http://hackint0sh.org/forum/showthread.php?t=2663&#038;highlight=Trubo">link</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://styledfoam.com/iphone/unlock-iphone-111-and-112-firmware-versions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Leopard&#8217;s new GUI annoyances and fixes</title>
		<link>http://styledfoam.com/apple-os-x/leopards-new-gui-annoyances-and-fixes/</link>
		<comments>http://styledfoam.com/apple-os-x/leopards-new-gui-annoyances-and-fixes/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 17:12:02 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Apple OS X]]></category>

		<category><![CDATA[Leopard]]></category>

		<guid isPermaLink="false">http://styledfoam.com/?p=16</guid>
		<description><![CDATA[Clearly you have to get used to the new GUI which ships with Leopard. The most &#8216;in-your-face&#8217; changes are limited to the Dock, Finder and the Menubar. Actually the Dock looks fine, except those indicator spots beneath the icons,.. those look awful. Fortunately you can easily customize them by replacing three files in your dock.app [...]]]></description>
			<content:encoded><![CDATA[<p>Clearly you have to get used to the new GUI which ships with Leopard. The most &#8216;in-your-face&#8217; changes are limited to the Dock, Finder and the Menubar. Actually the Dock looks fine, except those indicator spots beneath the icons,.. those look awful. Fortunately you can easily customize them by replacing three files in your dock.app : <code>/System/Library/CoreServices/Dock.app</code>   :: <strong>Source: </strong> <a href="http://www.silvermac.com/2007/leopard-dock-with-black-triangle/">Silvermac.com</a></p>
<p>If your sill not satisfied with the look and feel of your Dock, you can also replace the texture of the shelf, take a look at <a href="http://leoparddocks.com/">LeopardDocks.com</a><br />
Then there is the tanslucent effect in the menubar, which offers a glance at the wallpaper. Some tricks to alter include :</p>
<ul>
<li>Install the OpaqueMenuBar ultitly from <a href="http://www.eternalstorms.at/utilities/opaquemenubar/">Eternal Storms Software</a></li>
<li>The easy solution - if you can live without a stylish wallpaper - is : </li>
</ul>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<strong>(A)</strong> to edit you wallpaper of choice an and a 21px high white strip at the top &#8230; <a href="http://www.peterkrantz.com/2007/leopard-menu-transparency-fix#">read about it</a>  or<br />
&nbsp;&nbsp;&nbsp;&nbsp;<strong>(B)</strong> to choose a solid color as background, preferably the darkgray one : <span id="more-16"></span><br />
<img src="http://localhost/blog/wp-content/themes/bits/images/menubar.png" alt="Menu bar with solid background color" /></p>
<p>Last but not least, some changes within Finder. I&#8217;m not really fond of the default Leopard icons, but I guess it&#8217;s a question of getting used to it. (besides once <a href="http://www.panic.com/candybar/">CandyBar 3</a> is launched, I&#8217;ll customize them anyways). The use of alternating colors (white and babyblue) if the List view is choosen is also a new one, perhaps we&#8217;ll be able to change it to plain white sooner or later&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://styledfoam.com/apple-os-x/leopards-new-gui-annoyances-and-fixes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AJAX phone book</title>
		<link>http://styledfoam.com/web-development/an-ajax-powered-phone-book/</link>
		<comments>http://styledfoam.com/web-development/an-ajax-powered-phone-book/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 17:08:01 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Ajax]]></category>

		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://styledfoam.com/?p=15</guid>
		<description><![CDATA[Today I was struggling at work to find information about a colleague. Sure,.. all of them are mentioned in what is supposed to be a personnel database, but the info is outdated most of the time. On top of that we are talking about a Notes Domino database with a low userfriendliness. Because we live [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was struggling at work to find information about a colleague. Sure,.. all of them are mentioned in what is supposed to be a personnel database, but the info is outdated most of the time. On top of that we are talking about a Notes Domino database with a low userfriendliness. Because we live in a time where web 2.0 and rich interactive web applications are popular I decided to create a simple webbased phonebook with ajax functionality.</p>
<p>I started with going through some webpages explaining some of the features I was looking for. On the <a href="http://www.dhtmlgoodies.com">dhtmlgoodies</a> website I found a piece in <a href="http://www.dhtmlgoodies.com/index.html?whichScript=ajax-dynamic-list">dynamic list</a>, which shows you a list of options based on what you type into a text input.<br />
Other items on the list : webserver, MySQL server with database to store the user information and some css to tie it all together.<br />
<span id="more-15"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
</pre></td><td class="code"><pre class="javascript"><span style="color: #66cc66;">&lt;</span>script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span> src=<span style="color: #3366CC;">&quot;ajax.js&quot;</span><span style="color: #66cc66;">&gt;&lt;/</span>script<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span> src=<span style="color: #3366CC;">&quot;dynamic-list.js&quot;</span><span style="color: #66cc66;">&gt;&lt;/</span>script<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span> language=<span style="color: #3366CC;">&quot;javascript&quot;</span><span style="color: #66cc66;">&gt;</span>
<span style="color: #003366; font-weight: bold;">var</span> url = <span style="color: #3366CC;">&quot;getDetails.php?param=&quot;</span>;
<span style="color: #003366; font-weight: bold;">function</span> handleHttpResponse<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>http.<span style="color: #006600;">readyState</span> == <span style="color: #CC0000;">4</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>http.<span style="color: #006600;">responseText</span>.<span style="color: #006600;">indexOf</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'invalid'</span><span style="color: #66cc66;">&#41;</span> == <span style="color: #CC0000;">-1</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
      <span style="color: #009900; font-style: italic;">// Use the XML DOM to unpack the phone and fax data</span>
      <span style="color: #003366; font-weight: bold;">var</span> xmlDocument = http.<span style="color: #006600;">responseXML</span>;
      <span style="color: #003366; font-weight: bold;">var</span> phone = xmlDocument.<span style="color: #006600;">getElementsByTagName</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'phone'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">firstChild</span>.<span style="color: #006600;">data</span>;
      <span style="color: #003366; font-weight: bold;">var</span> fax = xmlDocument.<span style="color: #006600;">getElementsByTagName</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'fax'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">firstChild</span>.<span style="color: #006600;">data</span>;
      <span style="color: #003366; font-weight: bold;">var</span> mobile = xmlDocument.<span style="color: #006600;">getElementsByTagName</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'mobile'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">firstChild</span>.<span style="color: #006600;">data</span>;
      <span style="color: #003366; font-weight: bold;">var</span> email = xmlDocument.<span style="color: #006600;">getElementsByTagName</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'email'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">firstChild</span>.<span style="color: #006600;">data</span>;
      <span style="color: #003366; font-weight: bold;">var</span> funct = xmlDocument.<span style="color: #006600;">getElementsByTagName</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'funct'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">firstChild</span>.<span style="color: #006600;">data</span>;
      document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'phone'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span> = phone;
      document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'fax'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span> = fax;
      document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'mobile'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span> = mobile;
      document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'email'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span> = email;
      document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'funct'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span> = funct;
      isWorking = <span style="color: #003366; font-weight: bold;">false</span>;
    <span style="color: #66cc66;">&#125;</span>
  <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
<span style="color: #003366; font-weight: bold;">var</span> isWorking = <span style="color: #003366; font-weight: bold;">false</span>;
<span style="color: #003366; font-weight: bold;">function</span> updatePhoneFax<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span>isWorking <span style="color: #66cc66;">&amp;&amp;</span> http<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> nameValue = document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;UserName&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span>;
    http.<span style="color: #000066;">open</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;GET&quot;</span>, url + escape<span style="color: #66cc66;">&#40;</span>nameValue<span style="color: #66cc66;">&#41;</span>, <span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
    http.<span style="color: #006600;">onreadystatechange</span> = handleHttpResponse;
    isWorking = <span style="color: #003366; font-weight: bold;">true</span>;
    http.<span style="color: #006600;">send</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> getHTTPObject<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #003366; font-weight: bold;">var</span> xmlhttp;
  <span style="color: #009900; font-style: italic;">/*@cc_on
  @if (@_jscript_version &gt;= 5)
    try {
      xmlhttp = new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/</span>
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span>xmlhttp <span style="color: #66cc66;">&amp;&amp;</span> <span style="color: #000066; font-weight: bold;">typeof</span> XMLHttpRequest <span style="color: #66cc66;">!</span>= <span style="color: #3366CC;">'undefined'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span>
      xmlhttp = <span style="color: #003366; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	  xmlhttp.<span style="color: #006600;">overrideMimeType</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;text/xml&quot;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
      xmlhttp = <span style="color: #003366; font-weight: bold;">false</span>;
    <span style="color: #66cc66;">&#125;</span>
  <span style="color: #66cc66;">&#125;</span>
  <span style="color: #000066; font-weight: bold;">return</span> xmlhttp;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #003366; font-weight: bold;">var</span> http = getHTTPObject<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #009900; font-style: italic;">// We create the HTTP Object</span>
<span style="color: #66cc66;">&lt;/</span>script<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://styledfoam.com/web-development/an-ajax-powered-phone-book/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MooTools and other moo.fx scripts</title>
		<link>http://styledfoam.com/javascript/mootools-and-other-moofx-scripts-in-action/</link>
		<comments>http://styledfoam.com/javascript/mootools-and-other-moofx-scripts-in-action/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 21:15:22 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Moo.fx]]></category>

		<category><![CDATA[MooTools]]></category>

		<guid isPermaLink="false">http://styledfoam.com/?p=14</guid>
		<description><![CDATA[Time to write a piece on the great scripting products developed by mad4milk : moo.fx and mootools . So what&#8217;s the difference between both ? Well Mootools is javascript library (like you might know prototype). From the mootools  website :
MooTools is a compact, modular, Object-Oriented JavaScript framework designed for the intermediate to advanced JavaScript [...]]]></description>
			<content:encoded><![CDATA[<p>Time to write a piece on the great scripting products developed by <a href="http://mad4milk.net ">mad4milk</a> : moo.fx and mootools . So what&#8217;s the difference between both ? Well Mootools is javascript library (like you might know <a href="http://www.prototypejs.org/">prototype</a>). From the mootools  <a href="http://mootools.net">website</a> :<br />
<blockquote>MooTools is a compact, modular, Object-Oriented JavaScript framework designed for the intermediate to advanced JavaScript developer</p></blockquote>
<p>Whereas moo.fx is a javascript effects library :<br />
<blockquote>moo.fx is a superlightweight, ultratiny, megasmall javascript effects library, to be used with prototype.js or the mootools framework</p></blockquote>
<p> To see what the MooTools javascript framework can do for you, I&#8217;ll take one example from the <a href="http://demos.mootools.net/">demo page</a> (make sure to check it out) and apply it to this website.<br />
I&#8217;ll illustrate the <a href="http://demos.mootools.net/Tips">&#8220;Tips&#8221; effect</a>, which you can use to display additional information in fields, pictures, etc&#8230; <span id="more-14"></span><br />
First head over to the <a href="http://mootools.net/download">download page</a>, and download the <code>mootools.js</code> library.<br />
Include the javascript into your page :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="javascript"><span style="color: #66cc66;">&lt;</span>script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span> src=<span style="color: #3366CC;">&quot;http://yourdomain.com/js/mootools.js&quot;</span><span style="color: #66cc66;">&gt;&lt;/</span>script<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #66cc66;">&gt;</span>
			window.<span style="color: #006600;">addEvent</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'domready'</span>, <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
			    <span style="color: #003366; font-weight: bold;">var</span> commentfx = <span style="color: #003366; font-weight: bold;">new</span> Tips<span style="color: #66cc66;">&#40;</span>$$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'.commentfx'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
			    <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&lt;/</span>script<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div>

<p>Then refer to your css file or add the <a href="http://styledfoam.com/files/moofx.css">css code</a> (specific for this effect) to your existing css file.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript"><span style="color: #66cc66;">&lt;</span>link rel=<span style="color: #3366CC;">&quot;stylesheet&quot;</span> href=<span style="color: #3366CC;">&quot;http://yourdomain.com/css/moofx.css&quot;</span> type=<span style="color: #3366CC;">&quot;text/css&quot;</span> media=<span style="color: #3366CC;">&quot;screen&quot;</span> <span style="color: #66cc66;">/&gt;</span></pre></div></div>

<p>Almost there,&#8230; the only thing left is to add some code to the objects on your page that require the effect, for example:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript">alt=<span style="color: #3366CC;">&quot;mooCow&quot;</span> <span style="color: #003366; font-weight: bold;">class</span>=<span style="color: #3366CC;">&quot;commentfx&quot;</span> title=<span style="color: #3366CC;">&quot;Email :: Type your email address&quot;</span></pre></div></div>

<p>I&#8217;ve added the effect to the input fields on my &#8220;leave a comment&#8221; sections, and it looks like this :<br />
<img src="http://localhost/blog/wp-content/themes/bits/images/moofx_tips.png"/><br />
Other implementations of mootools and/or moo.fx include :</p>
<ul>
<li><a href="http://www.nyokiglitter.com/tutorials/moofxtutorial.html">Nyokiglitter</a> has some nice moo.fx tutorials and samples.</li>
<li><a href="http://www.avinashv.net/tutorials/moofx/">The Idiot&#8217;s Guide to moo.fx</a> by Avinash Vora, speaks for itself.</li>
<li><a href="http://smoothgallery.jondesign.net/">JonDesign</a> uses MooTools v1.11 for his SmoothGallery (gallery and slideshow)</li>
<li><a href="http://www.andrewsellick.com/35/sexy-sliding-javascript-side-bar-menu-using-mootools">Andrew Sellick</a> shows us how to create a sliding side bar menu using mootools.</li>
<li><a href="http://devthought.com/cssjavascript-true-power-fancy-menu/">Devthought</a> created Fancy Menu, an awesome css &#038; mootools based menu.</li>
<li><a href="http://moomonth.com">MooMonth</a> is a full calendar application written in javascript.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://styledfoam.com/javascript/mootools-and-other-moofx-scripts-in-action/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Useful Flickr resources</title>
		<link>http://styledfoam.com/flickr/useful-flickr-resources/</link>
		<comments>http://styledfoam.com/flickr/useful-flickr-resources/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 20:48:17 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Flickr]]></category>

		<guid isPermaLink="false">http://styledfoam.com/?p=13</guid>
		<description><![CDATA[Although this topic has already been covered by mashable.com, I&#8217;ve decided to write about some alternatives and/or favorites.

Flickr Toolbox: 100+ tools for Flickr addicts - link
Craziest ways to browse Flickr photos - link

First on the list FlickrStorm by zoo-m.com : it provides a clean and interactive way to search for photographs. Put in a keyword [...]]]></description>
			<content:encoded><![CDATA[<p>Although this topic has already been covered by <a href="http://mashable.com">mashable.com</a>, I&#8217;ve decided to write about some alternatives and/or favorites.
<ul>
<li>Flickr Toolbox: 100+ tools for Flickr addicts - <a href="http://mashable.com/2007/08/04/flickr-toolbox/">link</a></li>
<li>Craziest ways to browse Flickr photos - <a href="http://mashable.com/2007/07/11/browse-flickr-photos/">link</a></li>
</ul>
<p>First on the list <a href="http://www.zoo-m.com/flickr-storm/">FlickrStorm</a> by zoo-m.com : it provides a clean and interactive way to search for photographs. Put in a keyword and hit the search button, your results will appear as a thumbnailgrid in the left side on the page. You can then get an additional preview on the right side of the page (uses ajax, no page reload). Some extra&#8217;s feature &#8216;Your Tray&#8217; and &#8216;Your History&#8217;. The Tray one allows you to pick out the best pictures from the grid, add them to the tray and later on download them with a single click. History on the other hand keeps track of the pictures you selected from the grid.</p>
<p>Next, <a href="http://www.flickrleech.net/">Flickr Leech</a>. Simple and straight forward search engine, in which you can choose from seven pre-defined topics. Enter you keyword and all search results will appear on the page, also in the form of a picture-grid. If you click of the pictures, you&#8217;ll be redirected to the actual page on <a href="http://www.flickr.com">Flickr</a>.</p>
<p>Then there is <a href="http://flickrslidr.com">FlickSLiDR</a>, an online tool which can be used to generate slideshows. Text from the site describes it as :</p>
<blockquote><p>&#8230;allows you to easily embed the classic flickr slideshows on your website or blog. All you need to do is enter the flickr URL address of the user, photo set or group you would like to embed along with some options. You&#8217;ll receive the HTML embed code in return.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://styledfoam.com/flickr/useful-flickr-resources/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Upgrading Apple OS X Tiger to Leopard</title>
		<link>http://styledfoam.com/apple-os-x/upgrading-apple-os-x-tiger-to-leopard/</link>
		<comments>http://styledfoam.com/apple-os-x/upgrading-apple-os-x-tiger-to-leopard/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 17:17:01 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Apple OS X]]></category>

		<category><![CDATA[Leopard]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=10</guid>
		<description><![CDATA[First you will need to prepare your existing configuration for the upgrade. I found this excellent post on lifehacker
It consists of cleaning up your /Library/ directory, empty your Library/Cache, for which I used MainMenu from Santa Software (freeware)
As mentioned above, I used the MainMenu app to do some of the cleaning: Deep Clean System &#038; [...]]]></description>
			<content:encoded><![CDATA[<p>First you will need to prepare your existing configuration for the upgrade. I found this excellent post on <a href="http://lifehacker.com/software/mac-os-x/prepare-your-mac-for-leopard-312786.php">lifehacker</a><br />
It consists of cleaning up your <code>/Library/</code> directory, empty your <code>Library/Cache</code>, for which I used <a href="http://www.santasw.com/">MainMenu</a> from Santa Software (freeware)</p>
<p>As mentioned above, I used the MainMenu app to do some of the cleaning: Deep Clean System &#038; User Cache,..etc<br />
Because this is my first OSX upgrade ever, I&#8217;ll backup some additional data to my external drive. This includes user data in Documents, Movies, Photos and Music + my Firefox and Thunderbird profile directory in respectively <code>Users/yourprofile/Library/Thunderbird/</code>  and <code>Users/yourprofile/Library/Application Support/Firefox</code></p>
<p>Now there are a couple of proven methods to upgrade, the most popular consist of either using the installation DVD&#8217;s or use a .dmg file. I&#8217;ll do the last one, because it involes some more action in regards to the installation process. My configuration consists of a <a href="http://www.apple.com/imac/">20&#8243;iMac 2.4Ghz Intel Core 2 Duo</a> with 1Gb 667 DDR2 SDRAM, running OS X version 10.4.10. The disk space is partitioned into 3 parts : a 50Gb System directory hosting the OS, a 30 GB Workspace directory for daily use and a 200 Gb Storage directory for all static data. <span id="more-10"></span>
<ul>
<li> moved all workfiles from the Workspace to the Storage partition.</li>
<li> started Disk Utility and restored the content of the .dmg installation file to the Working space.</li>
<li> after the content was copied, the Workspace partition became my &#8220;Mac OS X Install DVD&#8221; alternative.</li>
<li> in System Preferences, goto Startup Disk and select the the &#8220;Mac OS X Install DVD&#8221; + restart.</li>
</ul>
<p>After restart the Leopard installation began&#8230; not much difference in comparison to the Tiger installation :</p>
<ul>
<li> accept the license agreement. </li>
<li> choose a destination &#038; <strong><u>!important!</u></strong> : in the option section select either &#8216;Upgrade&#8217; or &#8216;Erase and install&#8217; depending on your own choice. </li>
<li> the next screen allows you to customize the installation (I didn&#8217;t care much for X11 and Printer Drivers) </li>
</ul>
<p>Hit the install button, sit back and enjoy your refreshment for the next 10 minutes (which I actually timed using the stopwatch on my <a href="http://www.apple.com/ipodtouch/">iPod Touch</a>)</p>
<blockquote><p>That&#8217;s right, 10 minutes for a full OS upgrade !!</p></blockquote>
<p>After the upgrade, the Software Update was nervous to install 2 additional updates : &#8216;Remote Desktop Client&#8217; &#038; &#8216;Login &#038; Keychain Update&#8217;</p>
<p>So is there anything that went wrong ? Nothing really,&#8230; all applications are still working, I was able to delete all backups I made prior to the installation.<br />
<strong>[Update]</strong> There&#8217;s one application not working after the upgrade : Candybar, doesn&#8217;t seem to be ready for Leopard.  Candybar version 3 should be coming soon according to <a href="http://www.panic.com/candybar/">their website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://styledfoam.com/apple-os-x/upgrading-apple-os-x-tiger-to-leopard/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Apache, MySQL and PHP</title>
		<link>http://styledfoam.com/web-development/apache-mysql-and-php/</link>
		<comments>http://styledfoam.com/web-development/apache-mysql-and-php/#comments</comments>
		<pubDate>Sat, 12 May 2007 19:34:54 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://styledfoam.com/?p=5</guid>
		<description><![CDATA[When using your Mac for webdeveloping needs, you will require a webserver running smooth, preferably with database integration  and support for scripting. The most popular setup out there is a combination of an Apache webserver, PHP support and a MySQL backend. Fortunate for all Max OS X users, the webserver comes pre-installled. Downside, you [...]]]></description>
			<content:encoded><![CDATA[<p>When using your Mac for webdeveloping needs, you will require a webserver running smooth, preferably with database integration  and support for scripting. The most popular setup out there is a combination of an Apache webserver, PHP support and a MySQL backend. Fortunate for all Max OS X users, the webserver comes pre-installled. Downside, you need to PHP support and install the MySQL database server,.. and it’s Apache 1.x<br />
If you don’t mind the older version of Apache, that’s fine. You can start the onboard webserver using the System Preferences pane, in the Internet &#038; Network section click Sharing, Services tab activate the Personal Web Sharing module, start the service and you’re set..<br />
However why not installing the latest version of Apache (next to the exsisting configuration), integrating the PHP module and installing a MySQL server ?<br />
There are a great deal of precompiled packages and installers which combine al of the above, as we will discuss in the lower section of this article. For now we’ll perform the installtion from the command line (except the MySQL-db).<span id="more-5"></span></p>
<p>Items used for this configuration :<br />
- Apache 2.2.3 (httpd-2.2.3.tar.gz) from http://httpd.apache.org<br />
- PHP 5.6.1 (php-5.1.6.tar.gz) from http://www.php.net<br />
- MySQL 5.0.26 (mysql-standard-5.0.26-osx10.4-i686.dmg) from http://www.mysql.com </p>
<p>For an Apache2 installation from source, you’ll need the Apple Developer Tools (Xcode) as a pre-requisite (needed for its compiler software). The software should be included on your Mac OS X cd’s, perhaps already installed on you system. If you don’t have a copy, no worries, you can always download a copy from http://developer.apple.com/tools/  Note: you need ADC membership (Apple Developer Connection), but everybody is free to register.</p>
<p>Step 1, install Apache2. First download the Apache2 Unix source from the website to a directory and extract the content (open Terminal, change path to the download directory and type  tar xzf httpd-2.2.3.tar.gz<br />
Enter the created directory with cd httpd-2.2.3<br />
Install the Apache2 in the /usr/local/Apache2 directory using the following commands from the command line : <code><br />
/configure --prefix=/usr/local/apache2 --enable-so --enable-mods-shared=all<br />
make install<br />
sudo make install</code><br />
You’ve just installed an Apache2 server. Now you’ll need to start it first before checking out the result in your browser. Make sure the Apache1 configuration is not running (System Preferences, Sharing, Personal Web Sharing: stop the service first). Then from the command line type : sudo /usr/local/apache2/bin/apachectl start<br />
Check out the result on http://localhost<br />
Your personal html files are located in /usr/local/apache2/htdocs<br />
And if you which to alter your Apache2 configuration, edit the httpd.conf file in /usr/local/apache2/conf/httpd.conf. (restart Apache after changes !)</p>
<p>Step 2, install the MySQL server. Nothing hard realy, just start up the installer package and follow the instruction. Make sure to include the MySQL preference pane at the end of the installation, it will allow you to start and stop the MySQL service from the System Preference pane.</p>
<p>Step 3, add PHP support. Download the Unix Source and extract (using the directory in Step 1) Now type switch to the newly created directory with cd php-5.6.1 from the command line and type : <code><br />
./configure --prefix=/apache2/php --with-zlib --with-xml --with-ldap=/usr --enable-cli --with-zlib-dir=/usr --enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-dbx --enable-sockets --with-iodbc=/usr --with-curl=/usr --with-mysql=/usr/local/mysql --with-apxs2=/apache2/bin/apxs<br />
make<br />
make install<br />
</code></p>
<p><a href="http://www.phpmac.com/articles.php?view=252" class="Tips1" title="Link Path :: Building and Installing Apache 2.2.2 and PHP 5.1.4 on Mac OS X 10.4.6" />Resources<a /></p>
]]></content:encoded>
			<wfw:commentRss>http://styledfoam.com/web-development/apache-mysql-and-php/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
