<?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>Young J. Yoon &#187; Web Design</title>
	<atom:link href="http://www.youngjyoon.com/category/portfolio/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.youngjyoon.com</link>
	<description>Cerebral Projections of Young J. Yoon</description>
	<lastBuildDate>Fri, 18 Mar 2011 20:04:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>@font-face with Unicode</title>
		<link>http://www.youngjyoon.com/portfolio/web-design/348/</link>
		<comments>http://www.youngjyoon.com/portfolio/web-design/348/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 07:33:21 +0000</pubDate>
		<dc:creator>Young</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.youngjyoon.com/?p=348</guid>
		<description><![CDATA[Last week I was contacted through this site to do a tutorial on how to use CSS @font-face for Korean fonts. I&#8217;ve been so busy working for a bunch of agencies and a giant freelance project on top of that that it took me this long to do it &#8211; I hope it&#8217;s not too [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I was contacted through this site to do a tutorial on how to use CSS @font-face for Korean fonts. I&#8217;ve been so busy working for a bunch of agencies and a giant freelance project on top of that that it took me this long to do it &#8211; I hope it&#8217;s not too late. Anyway, I first started using @font-face after reading <a title="The Essential Guide to @font-face @SR" href="http://sixrevisions.com/css/font-face-guide/" target="_blank">an article on Six Revisions</a>, one of the more engaging web design blogs out there. The article does a great job showing you how @font-face works with English characters, so I would read that first.</p>
<p>Honestly, the web-safe fonts for Korean totally suck. <em>Gulim</em> is too round for my taste, <em>Dotum </em>too pixelated, and <em>Gungsuh</em>&#8230; who wants to use that font for anything, really. The trick to use @font-face in Korean (or any other non-English characters) is to know your unicode range. Speaking Korean and Japanese (with some Chinese), I&#8217;ve had to work with unicode pretty extensively in my projects, working with PHP encode/decode methods, etc.. But I had to ask the guys at <a title="FontSquirrel" href="http://www.fontsquirrel.com/" target="_blank">FontSquirrel</a> to figure it out properly for Korean. For this quick tutorial, I&#8217;m going to use <a title="FontSquirrel @font-face Generator" href="http://www.fontsquirrel.com/fontface/generator" target="_blank">FontSquirrel @font-face generator</a> to get the appropriate fonts displaying in Korean.</p>
<p><strong>1. Pick your font.</strong></p>
<p><a href="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss01.jpg"><img class="alignnone size-full wp-image-349" title="ss01" src="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss01.jpg" alt="" width="308" height="179" /></a></p>
<p>Needless to say, you have to pick a font that&#8217;s compatible with the language of your choice. I&#8217;ve had hits and misses with this: some fonts decide to bail on you on browsers, but 99% of fonts that display fine on your local machine have worked for me. Newer browsers like Chrome tends to break some characters, but I&#8217;m hoping that improves over time. Here I&#8217;m going to work with <a title="Download Daum" href="http://blog.daum.net/daumcomm/15491553" target="_blank"><em>Daum</em></a>. <em>Daum </em>is a free font authored and distributed by <a title="Daum" href="http://www.daum.net/" target="_blank">daum.net</a>, one of the biggest portals in Korea. It&#8217;s very clean yet carries enough umph to draw attention, which is rare to find in a Korean font, not to mention it&#8217;s one of the very very few that are free.</p>
<p><strong>2. Figure out your Unicode range.</strong></p>
<p><a href="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss021.jpg"><img class="alignnone size-full wp-image-351" title="ss02" src="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss021.jpg" alt="" width="447" height="260" /></a></p>
<p>The unicode universe is well documented, and all you need to do is look.<br />
<a title="Unicode Charts" href="http://www.unicode.org/charts/" target="_blank">UNICODE CHARTS</a><br />
On the right side is our beloved Korean language under &#8220;Hangul (which is our writing system).&#8221; Unlike Japanese or Chinese writing systems, Koreans write by combining alphabets into characters, each of which represents a syllable. It&#8217;s so scientific, and I&#8217;m proud of it every time I learn a new language and realize how much sense our system makes. The &#8220;Jamo,&#8221; at 1100-11FF, are the 24 alphabets and their combinations. You could probably leave this out of the range, but that means you&#8217;re going to get broken characters if any syllable is incomplete. I like to leave them in just in case. The real range you want is in the &#8220;Hangul Syllables,&#8221; at AC00-D7AF.</p>
<p><strong>3. FontSquirrel Generator Adventure</strong></p>
<p>The FontSquirrel interface is pretty easy to work with as well. First, upload your font:</p>
<p><a href="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss06.jpg"><img class="alignnone size-full wp-image-355" title="ss06" src="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss06.jpg" alt="" width="450" height="166" /></a></p>
<p>To enable unicode characters, you must go into the Expert mode:</p>
<p><a href="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss03.jpg"><img class="alignnone size-full wp-image-352" title="ss03" src="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss03.jpg" alt="" width="450" height="169" /></a></p>
<p>Then, under Subsetting, click Custom Subsetting.</p>
<p><a href="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss04.jpg"><img class="alignnone size-full wp-image-353" title="ss04" src="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss04.jpg" alt="" width="450" height="124" /></a></p>
<p>This brings up a bunch of rows of options, and we are really only concerned with the Unicode Range setting. <strong>A word of caution</strong> though: FontSquirrel uses AJAX to let you preview the unicode ranges, and since the Hangul Syllables range is so large, it may freeze your browser while it loads. If you click in the input field and start typing &#8220;1100-11FF, AC00-D7AF&#8221; you will almost certainly freeze your browser for a few minutes with each letter you type. I would recommend copying it onto your clipboard like that, and pasting it. This will freeze the browser for&#8230;5 minutes max, then it will display:</p>
<p><a href="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss05.jpg"><img class="alignnone size-full wp-image-354" title="ss05" src="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss05.jpg" alt="" width="450" height="222" /></a></p>
<p>Voila!</p>
<p><strong>4. Download &amp; Implement CSS</strong></p>
<p>If all went well, you should be able to download the generated webfont package by clicking a button at the bottom. The ZIP archive will contain the TTF, EOT, WOFF and SVG fonts (for all sorts of compatibility) and automatically generated CSS (how kind of them) so you just have to stick it into your CSS file! The result is beautiful, simple, SEO friendly and clean renderings without involving sIFR or FLIR:</p>
<p><a href="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss07.jpg"><img class="alignnone size-full wp-image-356" title="ss07" src="http://www.youngjyoon.com/wp-content/uploads/2011/01/ss07.jpg" alt="" width="296" height="117" /></a></p>
<p>I&#8217;ve only tried this with Korean, but I&#8217;d expect this to work the same way with any language. Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.youngjyoon.com/portfolio/web-design/348/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nerdbots.com</title>
		<link>http://www.youngjyoon.com/portfolio/web-design/339/</link>
		<comments>http://www.youngjyoon.com/portfolio/web-design/339/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 20:15:04 +0000</pubDate>
		<dc:creator>Young</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.youngjyoon.com/?p=339</guid>
		<description><![CDATA[I recently started working for a few other web agencies, which means I&#8217;m getting more work but I don&#8217;t get to credit myself for any of it. Here is a freelance project I just finished &#8211; the client already had all the graphic elements ready, so I did not interfere in any way with the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.youngjyoon.com/wp-content/uploads/2010/11/nerdbotsSS.jpg"></a><a href="http://www.youngjyoon.com/wp-content/uploads/2010/11/nerdbotsSS.jpg"><img class="aligncenter size-full wp-image-341" title="nerdbotsSS" src="http://www.youngjyoon.com/wp-content/uploads/2010/11/nerdbotsSS.jpg" alt="" width="358" height="248" /></a></p>
<p>I recently started working for a few other web agencies, which means I&#8217;m getting more work but I don&#8217;t get to credit myself for any of it. Here is a freelance project I just finished &#8211; the client already had all the graphic elements ready, so I did not interfere in any way with the design save for the navigation, which is done in CSS(3) and jQuery (just for nice fade-ins. Looks completely harmless with JS disabled). Everything&#8217;s pretty straightforward HTML/CSS so&#8230;there&#8217;s that. I&#8217;m kind of bummed out I don&#8217;t get to upload all the other stuff I&#8217;ve been working on, but there are benefits to freelancing only half the time <img src='http://www.youngjyoon.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.youngjyoon.com/portfolio/web-design/339/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Japanese HTML/CSS Tricks</title>
		<link>http://www.youngjyoon.com/portfolio/web-design/308/</link>
		<comments>http://www.youngjyoon.com/portfolio/web-design/308/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 05:10:01 +0000</pubDate>
		<dc:creator>Young</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.youngjyoon.com/?p=308</guid>
		<description><![CDATA[The way we write web pages have not changed in about a decade. HTML and CSS have been pretty much the only front-end languages used for the web, and it&#8217;s only recently that they have started to make progress toward the more semantic and intuitive, with initiatives like HTML5 and CSS3. I have been writing [...]]]></description>
			<content:encoded><![CDATA[<p>The way we write web pages have not changed in about a decade. HTML and CSS have been pretty much the only front-end languages used for the web, and it&#8217;s only recently that they have started to make progress toward the more semantic and intuitive, with initiatives like HTML5 and CSS3.</p>
<p>I have been writing HTML and CSS codes since high school &#8211; about 10 years now &#8211; and thought I had learned most, if not all, tags and tricks to make my code do what I want. That is, until I was shown an HTML/CSS introductory page for Japanese people. If you can read Japanese, it&#8217;s <a href="http://www.heo.jp/tag/kowaza/index.html" target="_blank">here</a>, still containing a lot of deprecated tags. It reminds me of <a title="HTML Goodies" href="http://www.htmlgoodies.com/" target="_blank">HTML Goodies</a> years before the emergence of W3C standards.</p>
<p>Anyway, browsing through this page I found two tricks I had never known before &#8211; and rightfully so, because they are completely useless if you don&#8217;t code Japanese pages.</p>
<p><strong>Trick 1: Vertical write mode</strong></p>
<p>Japanese books, newspapers and other print media are often printed in vertical lines, with the lines moving from right to left. Though they for the most part have abandoned this for web and other screen media, it is possible to replicate this with a CSS styling <em>writing-mode</em>:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;div style=&quot;writing-mode: tb-rl;&quot;&gt;<br />
縦書きタグの良いところは、読み物サイトなど、<br />
小説や文章を扱ったホームページで実際に小説を読んでいるような感じで書く事が出来る点です。<br />
ネットスケープにはまだ対応しておりませんが、<br />
いずれ日本のネットの重要なスタイルシートになる事は想像できます。<br />
<br />
私のイチオシのスタイルシートです。<br />
&lt;/div&gt;</div></td></tr></tbody></table></div>
<p>Here&#8217;s how the above would look in Internet Explorer:</p>
<p><a href="http://www.youngjyoon.com/wp-content/uploads/2010/08/tategaki.jpg"><img class="alignnone size-full wp-image-309" title="tategaki" src="http://www.youngjyoon.com/wp-content/uploads/2010/08/tategaki.jpg" alt="tategaki" width="323" height="582" /></a></p>
<p>How cool is that!</p>
<p><strong>Trick 2: Furigana</strong></p>
<p><em>Furigana</em> is a way to clarify the Japanese pronunciation of <em>Kanji</em>, or Chinese characters. While <em>hiragana</em> and <em>katakana</em> are original, phonetic, Japanese characters, they also use Chinese characters extensively (as do Koreans, but we don&#8217;t usually write out the words in Chinese characters) in their writing. So they write <em>hiragana</em> pronunciations in tiny letters above the character to tell you how to read it. You would often find this in <em>manga</em>, since most kids would have trouble reading all the <em>kanji</em> in them. It turns out, since the early days of HTML, it had tags for this.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;div style=&quot;font-size: 50px;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp;&lt;ruby&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;rb&gt;鮑&lt;/rb&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;rt&gt;あわび&lt;/rt&gt;<br />
&nbsp; &nbsp; &nbsp;&lt;/ruby&gt;<br />
&lt;/div&gt;</div></td></tr></tbody></table></div>
<p>I made the font large so you can see the effect:</p>
<p><a href="http://www.youngjyoon.com/wp-content/uploads/2010/08/furigana.jpg"><img class="alignnone size-full wp-image-310" title="furigana" src="http://www.youngjyoon.com/wp-content/uploads/2010/08/furigana.jpg" alt="furigana" width="110" height="109" /></a></p>
<p>No separate lines, no tables, just in-line, semantic tags.</p>
<p>There&#8217;s also a trick to make your characters display from right to left, which I assume is useful for languages like Hebrew and Arabic, but I don&#8217;t know those. Granted, these tricks are so close to being useless, and possibly deprecated. They also only seem to be supported by *GASP* Internet Explorer. Having dealt with Korean clients, I know Asians are very reluctant about changing to a &#8220;better&#8221; browser like Firefox or Chrome, and I wonder if it has to do with IE&#8217;s support for international features like these.</p>
<p>I learned something today in a field I thought I knew everything about! And for the very first time in my life, I said, &#8220;way to go, Internet Explorer.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.youngjyoon.com/portfolio/web-design/308/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HappyKorean.com</title>
		<link>http://www.youngjyoon.com/portfolio/web-design/300/</link>
		<comments>http://www.youngjyoon.com/portfolio/web-design/300/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 00:29:34 +0000</pubDate>
		<dc:creator>Young</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[chicago]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[HappyKorean]]></category>
		<category><![CDATA[korean]]></category>
		<category><![CDATA[social networking]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.youngjyoon.com/?p=300</guid>
		<description><![CDATA[HappyKorean is a giant project I have been working on for the past four months or so. It is a start-up social networking site for the Korean community in Chicago (although they are open to expansion in the future), and I must say it was a grueling task to create this site from scratch &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.youngjyoon.com/wp-content/uploads/2010/08/ss21.jpg"><img class="alignnone size-full wp-image-304" title="ss21" src="http://www.youngjyoon.com/wp-content/uploads/2010/08/ss21.jpg" alt="" width="403" height="202" /></a></p>
<p>HappyKorean is a giant project I have been working on for the past four months or so. It is a start-up social networking site for the Korean community in Chicago (although they are open to expansion in the future), and I must say it was a grueling task to create this site from scratch &#8211; I delivered all the graphic components, front-end HTML/CSS/Javascript, back-end PHP and MySQL, not to mention the dual-language support requirement, allowing users to toggle between Korean and English at any time.</p>
<p><a href="http://www.youngjyoon.com/wp-content/uploads/2010/08/ss21_1.jpg"><img class="alignnone size-full wp-image-305" title="ss21_1" src="http://www.youngjyoon.com/wp-content/uploads/2010/08/ss21_1.jpg" alt="" width="403" height="202" /></a></p>
<p>Here&#8217;s my &#8220;profile.&#8221; You can add people as your &#8220;neighbors,&#8221; track your &#8220;groups,&#8221; send messages, winks, and follow blogs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.youngjyoon.com/portfolio/web-design/300/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kelsey Arlen Website</title>
		<link>http://www.youngjyoon.com/portfolio/web-design/277/</link>
		<comments>http://www.youngjyoon.com/portfolio/web-design/277/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 00:38:33 +0000</pubDate>
		<dc:creator>Young</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Actress]]></category>
		<category><![CDATA[Arlen]]></category>
		<category><![CDATA[Kelsey]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.youngjyoon.com/?p=277</guid>
		<description><![CDATA[This website has been sounding like a food blog lately, and I apologize. I haven&#8217;t really had the time to write about all the little things going on in my life but now, something other than food to update! I recently created a WordPress-powered website for my friend Kelsey Arlen, a budding actress and singer [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.youngjyoon.com/wp-content/uploads/2010/04/ka-site1.jpg"><img class="alignnone size-full wp-image-278" title="Kelsey Arlen" src="http://www.youngjyoon.com/wp-content/uploads/2010/04/ka-site1.jpg" alt="" width="460" height="326" /></a></p>
<p>This website has been sounding like a food blog lately, and I apologize. I haven&#8217;t really had the time to write about all the little things going on in my life but now, something other than food to update!</p>
<p>I recently created a WordPress-powered website for my friend <a title="Kelsey Arlen Website" href="http://www.kelseyarlen.com" target="_blank">Kelsey Arlen</a>, a budding actress and singer from New York City. There was a lot of CSS magic I had to work &#8211; the lower-right corner graphic gave me loads of trouble, but in the end I was able to create a fully flexible layout.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.youngjyoon.com/portfolio/web-design/277/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HappyKorean Newspaper Ads</title>
		<link>http://www.youngjyoon.com/portfolio/web-design/266/</link>
		<comments>http://www.youngjyoon.com/portfolio/web-design/266/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 03:36:33 +0000</pubDate>
		<dc:creator>Young</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Graphic]]></category>
		<category><![CDATA[HappyKorean]]></category>
		<category><![CDATA[Newspaper]]></category>
		<category><![CDATA[Print]]></category>

		<guid isPermaLink="false">http://www.youngjyoon.com/?p=266</guid>
		<description><![CDATA[In the past couple months I have been working for HappyKorean.com. It was designed to be a social networking portal for the local Korean community around Chicago. I do get to do a decent amount of graphic design for it with my Photoshop, Illustrator and Flash skill sets. This includes newspaper ads (shown to the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.youngjyoon.com/wp-content/uploads/2010/03/IMG_0369.jpg"><img class="alignleft size-medium wp-image-267" title="IMG_0369" src="http://www.youngjyoon.com/wp-content/uploads/2010/03/IMG_0369-225x300.jpg" alt="" width="225" height="300" /></a>In the past couple months I have been working for <a title="HappyKorean" href="http://www.happykorean.com/" target="_blank">HappyKorean.com</a>. It was designed to be a social networking portal for the local Korean community around Chicago.</p>
<p>I do get to do a decent amount of graphic design for it with my Photoshop, Illustrator and Flash skill sets. This includes newspaper ads (shown to the left), animated banners, pamphlets, posters, flags, and so much more. The one on the left represents my first newsprint publication &#8211; and full page! This was on Chicago Korea Weekly &#8211; sadly they don&#8217;t seem to have a website &#8211; and there have been other handful of newspaper ads I made on <a title="Kyocharo" href="http://www.kyocharo.com/" target="_blank">Kyocharo</a>, as well as all sorts of web ads since this.</p>
<p>I will wait because currently I am working on a complete redesign and reprogramming of HK to follow the standards (mainly CSS), do better with SEO and have a better user experience. This is probably going to take a few months, but do keep checking back because I will be sure to post about it when it is done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.youngjyoon.com/portfolio/web-design/266/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No-Plugin Twitter + WordPress</title>
		<link>http://www.youngjyoon.com/portfolio/web-design/230/</link>
		<comments>http://www.youngjyoon.com/portfolio/web-design/230/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 04:10:41 +0000</pubDate>
		<dc:creator>Young</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[latest tweets]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugin-free]]></category>
		<category><![CDATA[Snoopy]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.youngjyoon.com/?p=230</guid>
		<description><![CDATA[While one of the greatest strengths of WordPress as a web design tool is the wide range of open-source plug-ins it offers, I often find them quite difficult to customize. So when I wanted to link my Twitter to this website, I searched for a way to do it without plug-ins. I found a beautiful [...]]]></description>
			<content:encoded><![CDATA[<p>While one of the greatest strengths of <a title="Wordperss" href="http://wordpress.org" target="_blank">WordPress</a> as a web design tool is the wide range of open-source <a title="WP Plugins" href="http://wordpress.org/extend/plugins/" target="_blank">plug-ins</a> it offers, I often find them quite difficult to customize. So when I wanted to link my <a title="Young's Twitter" href="http://twitter.com/ysquared86" target="_blank">Twitter</a> to this website, I searched for a way to do it without plug-ins. I found a beautiful snippet of back-end code at <a title="Yoast's code to display your latest tweet" href="http://yoast.com/display-latest-tweet/" target="_blank">yoast.com</a> that allows me to access the Twitter API, snag the latest entry, and return an array containing its attributes. God bless yoast. I hope he doesn&#8217;t mind me posting this here.</p>
<p>The code uses PHP and its Snoopy object to crack into the API using JSON:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span>ABSPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'wp-includes/class-snoopy.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$snoopy</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Snoopy<span style="color: #339933;">;</span><br />
<span style="color: #000088;">$snoopy</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://twitter.com/statuses/user_timeline/ysquared86.json?count=1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$twitterdata</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/json_decode"><span style="color: #990000;">json_decode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$snoopy</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">results</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$pattern</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/\@([a-zA-Z]+)/'</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$replace</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;http://twitter.com/'</span><span style="color: #339933;">.</span><a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'\1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;@\1&lt;/a&gt;'</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pattern</span><span style="color: #339933;">,</span><span style="color: #000088;">$replace</span><span style="color: #339933;">,</span><span style="color: #000088;">$twitterdata</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;text&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> make_clickable<span style="color: #009900;">&#40;</span><span style="color: #000088;">$output</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$output</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>Line 2 and 3 includes the Snoopy files and creates a new Snoopy object to fetch your data. Line 4 specifies the location of the data. ysquared86 is my Twitter username &#8211; replace it with yours. The ?count=1 grabs the latest tweet. Line 5 decodes the data using JSON and creates an array named $twitterdata. Lines 6 through 8 finds any other usernames in the entries and creates a link to their twitter page (e.g. @ysquared86). Line 9 uses WordPress&#8217; <a title="WP Codex make_clickable" href="http://codex.wordpress.org/Function_Reference/make_clickable" target="_blank">make_clickable</a> function to retain any links, and Line 10 finally prints the entry onto the page.</p>
<p>Another important attribute you might want to display is the timestamp, but <a title="Yoast's code to display latest tweets" href="http://yoast.com/display-latest-tweet" target="_blank">yoast</a> did not cover the topic in his entry, and I had to do an extensive google search to figure it out on my own. Most WP plug-ins for Twitter do this successfully, but again, I&#8217;d rather know what my code is doing. It took me forever to find that, as the $twitterdata[0]["text"] was the body of the twitter entry, &#8220;created_at&#8221; returns the timestamp attribute. However, it turns out, this timestamp does not follow any conventional format, which meant I had to use PHP&#8217;s substr function to make it look nice:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <br />
<span style="color: #000088;">$timestamp</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$twitterdata</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;created_at&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$day</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$timestamp</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$month</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$timestamp</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$date</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$timestamp</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">8</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$time</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$timestamp</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">11</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">8</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$year</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$timestamp</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">26</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Posted at &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$time</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; on &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$day</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;, &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$month</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$date</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$year</span><span style="color: #339933;">;</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>So there it is. I wanted to be able to CSS my way around the positioning, and having these PHP chops worked perfectly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.youngjyoon.com/portfolio/web-design/230/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Lightbox + jQuery Problem</title>
		<link>http://www.youngjyoon.com/portfolio/web-design/153/</link>
		<comments>http://www.youngjyoon.com/portfolio/web-design/153/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 22:36:30 +0000</pubDate>
		<dc:creator>Young</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.youngjyoon.com/?p=153</guid>
		<description><![CDATA[As I was designing this personal website on the WordPress engine, I decided to use the famous Lightbox to display my Portfolio page. I had used it for other sites before (not on the plugin basis) but to my dismay, it failed to work. I then installed the Lightbox 2 Plugin for WordPress, thinking that [...]]]></description>
			<content:encoded><![CDATA[<p>As I was designing this personal website on the WordPress engine, I decided to use the famous <a href="http://www.huddletogether.com/projects/lightbox2/" target="_blank">Lightbox</a> to display my <a href="http://www.youngjyoon.com/?page_id=76" target="_self">Portfolio</a> page. I had used it for other sites before (not on the plugin basis) but to my dismay, it failed to work. I then installed the Lightbox 2 Plugin for WordPress, thinking that something in WordPress was screwing it up. It took me so long to find the answers, and I would like to present it here in the hopes of providing a more comprehensive and straightforward solution.</p>
<p>Many blogs out there will tell you that the first thing to check is whether you have wp_head() function in your header.php.</p>
<p>Including <code class="codecolorer php default"><span class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_head<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></span></code> in your header.php lets WordPress scan for all the enabled plugins, generate the code for CSS and Javascript declarations needed to style them, and dynamically insert them. Lightbox CSS and JS files fall within its realm and it&#8217;s a good idea to check this.</p>
<p>So you can imagine my frustration when this didn&#8217;t solve the problem. After hours of internet research, I realized that jQuery, which I was using to systematically add styling to my list items, interferes with the Prototype-based JS files used by Lightbox. This can be easily fixed by adding a declaring a no-conflict variable and using it to call every function:</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">var</span> $j <span style="color: #339933;">=</span> jQuery.<span style="color: #660066;">noConflict</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
jQuery<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
$j<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.pages ul li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">prepend</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;+ &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
$j<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.links ul li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">prepend</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;+ &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
$j<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.archives ul li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">prepend</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;+ &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
$j<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.categories ul li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">prepend</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;+ &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>I hope this saved someone hours of Googling.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.youngjyoon.com/portfolio/web-design/153/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>David A. Stein, DDS</title>
		<link>http://www.youngjyoon.com/portfolio/web-design/41/</link>
		<comments>http://www.youngjyoon.com/portfolio/web-design/41/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 22:24:01 +0000</pubDate>
		<dc:creator>Young</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://youngjyoon.com/?p=41</guid>
		<description><![CDATA[Dr. David A. Stein is a dentist in Albany, NY whose website I designed when I was first starting off. Last year, I offered to redo his website with more up-to-date codes, using table-less CSS, navigation sprites, DOCTYPE declarations, and cleaner graphics. I retained the mint-green color scheme he had picked for his first website. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter size-full wp-image-42" title="0010" src="http://youngjyoon.com/wp-content/uploads/2009/10/0010.jpg" alt="0010" width="414" height="201" /></p>
<p><a href="http://www.davidsteindds.com" target="_blank">Dr. David A. Stein</a> is a dentist in Albany, NY whose website I designed when I was first starting off. Last year, I offered to redo his website with more up-to-date codes, using table-less CSS, navigation sprites, DOCTYPE declarations, and cleaner graphics. I retained the mint-green color scheme he had picked for his first website.</p>
<p>status: <a href="http://www.davidsteindds.com" target="_blank">online</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.youngjyoon.com/portfolio/web-design/41/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Japan Club of Boston College</title>
		<link>http://www.youngjyoon.com/portfolio/web-design/39/</link>
		<comments>http://www.youngjyoon.com/portfolio/web-design/39/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 07:22:48 +0000</pubDate>
		<dc:creator>Young</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://youngjyoon.com/?p=39</guid>
		<description><![CDATA[I joined the Japan Club during my second year at Boston College. Seeing how their website was virtually non-existent, I took to the job of re-designing it, and above is the result. It featured image-map-based navigation (I would probably use CSS now), but it is also one of the classiest websites I&#8217;ve come up with [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="alignnone size-full wp-image-131" title="0008" src="http://www.youngjyoon.com/wp-content/uploads/2009/10/00081.jpg" alt="0008" width="384" height="293" /></p>
<p>I joined the Japan Club during my second year at Boston College. Seeing how their website was virtually non-existent, I took to the job of re-designing it, and above is the result. It featured image-map-based navigation (I would probably use CSS now), but it is also one of the classiest websites I&#8217;ve come up with in my opinion. I also served as their Culture Chair during my senior year, directing their Haru Matsuri (Spring Festival). That was a blast.</p>
<p>Now the new webmaster has changed out my design. I&#8217;m sure he wanted to signal a fresh start after my graduation, but he hasn&#8217;t been very good about updating it. He has been good enough to preserve this site <a href="http://www.bc.edu/clubs/japan/OldSite/" target="_blank">HERE</a>.</p>
<p>status: offline</p>
]]></content:encoded>
			<wfw:commentRss>http://www.youngjyoon.com/portfolio/web-design/39/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

