<?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>Philly Design Blog &#187; code</title>
	<atom:link href="http://www.phillydesignblog.com/cat/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phillydesignblog.com</link>
	<description></description>
	<lastBuildDate>Sun, 11 Sep 2011 16:40:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The Art of Data</title>
		<link>http://www.phillydesignblog.com/2009/10/the-art-of-data/</link>
		<comments>http://www.phillydesignblog.com/2009/10/the-art-of-data/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 14:29:37 +0000</pubDate>
		<dc:creator>phillydesign</dc:creator>
				<category><![CDATA[artists]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[information]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://www.phillydesignblog.com/?p=747</guid>
		<description><![CDATA[Nick Hardeman is an MFA Design &#38; Technology student at Parsons in New York City. He has created some surprisingly fantastic bauhaus art from data visualizations of the 1997 music video &#8220;Mo Money Mo Problems&#8221; from the Notorious B.I.G. album, Life After Death. From Nick&#8217;s blog: &#8220;The algorithm detects edges in the image and attempts [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_760" class="wp-caption alignright" style="width: 328px"><a href="http://www.phillydesignblog.com/wp-content/uploads/2009/10/mo_moneys.png"><img class="size-large wp-image-760" title="mo_moneys" src="http://www.phillydesignblog.com/wp-content/uploads/2009/10/mo_moneys-318x1024.png" alt="All images © Nick Hardeman" width="318" height="1024" /></a><p class="wp-caption-text">All images © Nick Hardeman</p></div>
<p>Nick Hardeman is an MFA Design &amp; Technology student at <a href="http://www.parsons.edu/studies/index.aspx" target="_blank">Parsons</a> in New York City.</p>
<p>He has created some surprisingly fantastic bauhaus art from data visualizations of the 1997 music video &#8220;<a href="http://www.mtv.com/videos/notorious-big/9520/mo-money-mo-problems.jhtml" target="_blank">Mo Money Mo Problems</a>&#8221; from the Notorious B.I.G. album, Life After Death.</p>
<p>From Nick&#8217;s <a href="http://nickhardeman.com/blog/?p=244" target="_blank">blog</a>:</p>
<p>&#8220;The algorithm detects edges in the image and attempts to trace motion from frame to frame, using the initial frame as their starting point. &#8230; The bright colored track suits worn by Puff Daddy and Mase in the dark backgrounds make for good tracking and nice color combinations.&#8221;</p>
<p>Check the <a href="http://www.flickr.com/photos/95943853@N00/sets/72157622518692218/" target="_blank">Flickr set</a> of several of his renders for more colorful abstract enjoyment.</p>
<p>A recent &#8220;quick demo&#8221; created for a class is also quite attractive and interesting: he maps the newswire of the New York Times over the course of 24 hours by category.</p>
<p>This Flash/Papervision <a href="http://nickhardeman.com/labs/DataViz/Newswire.swf" target="_blank">interactive web app</a> shows what news is posted at each time of the day, giving some insight into the minds of the influential NYT web editors, if not the web news audience in general. Fun to play with.</p>
<p>The school can likely take a bit of the credit. Founded in 1896, Parsons was the first college to offer programs in Fashion Design, Interior Design and Advertising and Graphic Design.</p>
<p>This was thanks to <a href="http://www.parsons.edu/about/history.aspx" target="_blank">Frank Alvah Parsons</a>, a co-founder who became the school&#8217;s president. Anticipating a new wave of the Industrial Revolution, Parsons predicted that art and design would soon be inexorably linked to the engines of industry.</p>
<p>A recent Harvard Business blog post, entitled &#8220;<a href="http://blogs.harvardbusiness.org/cs/2008/04/the_mfa_is_the_new_mba.html" target="_blank">MFA is the New MBA</a>,&#8221; lends credence to this view, and shows it becoming more &amp; more accepted.</p>
<p>Creativitiy -&gt; Innovation -&gt; Success.</p>
<p>[Via <a href="http://www.visualcomplexity.com/vc/project.cfm?id=707">Visual Complexity</a>]</p>
<div class="none"><div class="g-plusone" data-href="http://www.phillydesignblog.com/2009/10/the-art-of-data/" size="medium" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.phillydesignblog.com/2009/10/the-art-of-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Want To Change Your TypePad Domain Mapping?</title>
		<link>http://www.phillydesignblog.com/2009/08/typepad-domain-mapping/</link>
		<comments>http://www.phillydesignblog.com/2009/08/typepad-domain-mapping/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 10:58:24 +0000</pubDate>
		<dc:creator>phillydesign</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Imagic Digital]]></category>
		<category><![CDATA[websites]]></category>

		<guid isPermaLink="false">http://www.phillydesignblog.com/?p=503</guid>
		<description><![CDATA[(Note: This post somewhat of a story, but also has some useful code design info.) Domain mapping is a handy and common way to set up a custom URL for your hosted blog, such as one on TypePad.com, WordPress.com or Blogger.com. This allows you to use MyExample.com to reference your blog, instead of something like [...]]]></description>
			<content:encoded><![CDATA[<p>(Note: This post somewhat of a story, but also has some useful code design info.)</p>
<p>Domain mapping is a handy and common way to set up a custom URL for your hosted blog, such as one on <a href="http://www.typepad.com">TypePad.com</a>, <a href="http://www.wordpress.com">WordPress.com</a> or <a href="http://www.blogger.com">Blogger.com</a>.</p>
<p>This allows you to use <span style="color: #808000;">MyExample.com</span> to reference your blog, instead of something like <span style="color: #808000;">myexample.typepad.com</span>.</p>
<p><a href="http://www.phillydesignblog.com/wp-content/uploads/2009/08/typepad-better1.jpg"><img class="alignright size-medium wp-image-535" title="Better?" src="http://www.phillydesignblog.com/wp-content/uploads/2009/08/typepad-better1-300x242.jpg" alt="Better?" width="300" height="242" /></a>But what if you want to <em>change </em>the name you originally set-up to something else? In the case of TypePad (and likely other platforms), this can cause serious issues.</p>
<p>All of your posts and images use the original name, such as in search engine listings, on trackbacks and more. So if you change the name, <strong>all </strong>of your old links will break. You might loose a bunch of RSS feeds that used the old links. And also, <strong>all </strong>of the images in your posts will be missing!</p>
<p>I ran into this issue for a client last week. A popular blog, with an average of 1,500 unique visitor per day, and over 2,100 posts, was essentially broken. Not acceptable.</p>
<p>Because of TypePad&#8217;s inept support I was forced to find a solution, which can likely be adapted for use on other hosted blogging systems as well. The answer lies in some simple <strong>.htaccess</strong> code. Read on to find out more.<span id="more-503"></span></p>
<p><a href="http://www.phillydesignblog.com/wp-content/uploads/2009/08/support-not3.jpg"><img class="aligncenter size-full wp-image-545" title="Not Support" src="http://www.phillydesignblog.com/wp-content/uploads/2009/08/support-not3.jpg" alt="Not Support" width="500" height="109" /></a></p>
<p>First, a rant against TypePad. TypePad doesn&#8217;t have live <a href="http://support.sixapart.com/cgi-bin/sixapart.cfg/php/enduser/ask.php?p=tp">support</a>. <strong>At all</strong>. Six Apart, the parent company, doesn&#8217;t even maintain their own <a href="http://getsatisfaction.com/sixapart/topics/typepad_community_forum">support forums</a>. With no other recourse to solve the issue, I opened an online help ticket.</p>
<p>We were told that the issue was a tough one, and would be looked at by technical support. After a week of back and forth, asking if there was any progress, TypePad finally responded that there was nothing at all they could do.</p>
<p><a href="http://twitter.com/phillydesign/statuses/3363263048"><img class="alignright size-medium wp-image-552" title="Asking for help" src="http://www.phillydesignblog.com/wp-content/uploads/2009/08/sixapart-tweet-299x143.jpg" alt="Asking for help" width="299" height="143" /></a>Sorry, they said, but even though you have been customers for over 5 years, tough luck.</p>
<p>I tried asking <a href="http://twitter.com/sixapart">@sixapart</a> on Twitter for help. No response <strong>whatsoever</strong>.</p>
<p>Ouch! I called <a href="http://www.godaddy.com">GoDaddy.com</a>, where the domain name is registered, to see if their live support team had any ideas. While they were helpful and friendly as ever, they didn&#8217;t see how to fix the problem. But that&#8217;s when I myself realized how to do it.</p>
<p>An .htaccess file is a text-only file that web servers read first, before any other pages on a site. Turns out it&#8217;s a common way to fix issues that might occur when you switch your domain name!</p>
<p>In TypePad, all blog posts live in a sub-folder of your main domain, like &#8220;my_example&#8221;. In this case, the original links, now broken, were <span style="color: #808000;">www.myexample.com/my_example/my-post.html</span>, and the new links, after changing domain mapping, were <span style="color: #808000;">blog.myexample.com/my_example/my-post.html</span>.</p>
<p>Very similar links, and a simple replacement: just find anything with the /my_example/ in its address and send it to blog. instead of www.</p>
<p>To create an .htaccess file, all you need is a simple text editor. Open the file, type in your code, and save with the extension .htaccess. You might have to give the file a name, like a.htaccess, but just make sure to remove the preceeding &#8220;a&#8221; before uploading to your webserver. [More on .htaccess files <a href="http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm">here</a> and <a href="http://www.javascriptkit.com/howto/htaccess.shtml">here</a>.]</p>
<p>For this specific redirect, the code in the .htaccess file is the following:</p>
<pre>Redirect 301 /my_example/ http://blog.myexample.com/my_example/</pre>
<pre>.</pre>
<p>It worked to fix all the old, cached, search-engine-indexed, mentioned-by-others posts&#8217; links. However, images are a separate line of code.</p>
<p>In TypePad, all images you upload to their severs are stored not in your /my_example/ folder, but in a directory called /.a/</p>
<p>Why? Who knows. But all that means is we need another line in the .htacess file:</p>
<pre>Redirect 301 /.a/ http://blog.myexample.com/.a/</pre>
<pre>.</pre>
<p>Upload the file to the root level of your site, and done. Phew. SixApart, please take note, and save other customers some anguish.</p>
<div class="none"><div class="g-plusone" data-href="http://www.phillydesignblog.com/2009/08/typepad-domain-mapping/" size="medium" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.phillydesignblog.com/2009/08/typepad-domain-mapping/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Spry Gallery Goods</title>
		<link>http://www.phillydesignblog.com/2009/04/spry-gallery-goods/</link>
		<comments>http://www.phillydesignblog.com/2009/04/spry-gallery-goods/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 18:06:42 +0000</pubDate>
		<dc:creator>phillydesign</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Imagic Digital]]></category>

		<guid isPermaLink="false">http://www.phillydesignblog.com/?p=120</guid>
		<description><![CDATA[I am moving this post here from an old blog I started a few years back which has lain dormant for a while. The one post that did garner a bunch of attention was the Adobe Bridge script I cobbled together to automate creation of the XML needed to use the lovely photo gallery presented [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-131" title="example gallery" src="http://www.phillydesignblog.com/wp-content/uploads/2009/04/examplegallery.jpg" alt="example gallery" width="350" height="222" />I am moving this post here from an old blog I started a few years back which has lain dormant for a while. The one post that did garner a bunch of attention was the Adobe Bridge script I cobbled together to automate creation of the XML needed to use the <a href="http://labs.adobe.com/technologies/spry/demos/pe_gallery.html" target="_blank">lovely photo gallery</a> presented by the developers of <a href="http://labs.adobe.com/technologies/spry/" target="_blank">Adobe Spry</a>. I&#8217;ve used this script to create photo galleries for many <a href="http://www.nataliacharova.com/portfolio.html" target="_blank">client</a> sites as well as my <a href="http://www.imagicdigital.com/portfolios.php" target="_blank">own</a>.</p>
<p>I do plan on addressing code design here, so this is an appropriate place for the script to live.</p>
<p>Spry is a relatively new and easy-to-use AJAX library. AJAX use is very common on the web today, one of the technologies that powers what is often referred to as &#8220;Web 2.0.&#8221;</p>
<p>Basically, the technology allows webpages to change and update without requiring the user to &#8220;refresh,&#8221; &#8220;reload,&#8221; or navigate to another page.  For example: Gmail, which updates every incoming mail every so often without user interaction. And saves drafts every so often in the same fashion.</p>
<p>Find the download link and nuts and bolts of using the script after the jump.</p>
<p><span id="more-120"></span>The script is based on one I found at the Adobe User to User Bridge Scripting Forum for exporting a CSV file. It will generate a very useful photos.xml from Adobe Bridge, which makes it very easy to add titles, keywords, ratings — all kinds of metadata that one might use in a photo gallery.</p>
<p>The script generates the required XML nodes for each image, such as &#8220;path,&#8221; &#8220;width,&#8221; and &#8220;height,&#8221; calculates appropriate thumbnail width &amp; height per your chosen pixel size, and uses keywords as categories, titles as captions, and allows sorting by rating (stars in Bridge).</p>
<p>Note: this particular script doesn’t take into account CDATA that might exist in your metadata, like ampersands in your title. Thus far, I’ve just avoided using those, but one could also have the script write out a CDATA node for that info instead. Also, a commenter on my old post noted that the script will break if you have a folder nested inside your source folder of images.</p>
<p><a href="http://www.imagicdigital.com/spry/bridge_export_xml.zip">Download the script and readme here.</a></p>
<p><a href="http://www.imagicdigital.com/spry/bridge_export_xml.zip"></a></p>
<p>To Use:</p>
<p>The script goes in the folder “StartupScripts” in Program Files/Common Files/Adobe/ (Windows).</p>
<p>(Update: On a Mac, the script goes in Mac HD/Library/Application Support/Adobe/Bridge CS3 Extensions/Bridge Start Meeting/, at least in CS3.)</p>
<p>Launch Bridge and browse to a folder that contains the files you want in your gallery — the “source” folder.</p>
<p>Choose the menu command “Tools &gt; Export XML for Spry Gallery”.</p>
<p>Type a name for your XML file in the Save dialog box, choose a location, and hit “Save”.</p>
<p>In the dialog box that pops up, enter a max length/width for your thumbnails, in pixels. Some common sizes are “75″ , “100″ or “125″.</p>
<p>Hit “OK”. You should see an alert pop up telling you “XML file successfully created!”</p>
<div class="none"><div class="g-plusone" data-href="http://www.phillydesignblog.com/2009/04/spry-gallery-goods/" size="medium" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.phillydesignblog.com/2009/04/spry-gallery-goods/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

