<?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>Jayel Aheram &#187; code</title>
	<atom:link href="http://aheram.com/topics/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://aheram.com</link>
	<description>The official website of Jayel Aheram. Student journalist, Iraq War and Marine veteran, internationally-published photographer, artist, polymath, etc.</description>
	<lastBuildDate>Wed, 18 Jan 2012 06:35:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<atom:link rel='hub' href='http://aheram.com/?pushpress=hub'/>
		<item>
		<title>Tweaks and Plugins</title>
		<link>http://aheram.com/blog/journal/tweaks-and-plugins/</link>
		<comments>http://aheram.com/blog/journal/tweaks-and-plugins/#comments</comments>
		<pubDate>Sat, 30 May 2009 03:12:32 +0000</pubDate>
		<dc:creator>Jayel Aheram</dc:creator>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[Art & Design]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://aheram.com/?p=880</guid>
		<description><![CDATA[And Being Standards-Compliant First things first. This website now validates for both CSS 2.1 and XHTML 1.0 Strict. That took quite a bit of scrubbing of my previous markup of silly things I did, like not nesting input elements within<br/><br/><a href="http://aheram.com/blog/journal/tweaks-and-plugins/" class="more-link">Continue reading →</a>]]></description>
			<content:encoded><![CDATA[<h3 class="byline">And Being Standards-Compliant</h3>
<p>First things first. This website now validates for both <a href="http://jigsaw.w3.org/css-validator/validator?profile=css21&#038;warning=0&#038;uri=http%3A%2F%2Faheram.com%2F">CSS 2.1</a> and <a href="http://validator.w3.org/check?verbose=1&#038;uri=http%3A%2F%2Faheram.com%2F">XHTML 1.0 Strict</a>. That took quite a bit of scrubbing of my previous markup of silly things I did, like not nesting <code>input</code> elements within a block-level element or having improper markup for ampersands in the HTML (like using <code>&#038;</code> instead of the correct <code>&amp;amp;</code>). Most of the errors in my markup were very minor and most can be attributed to the Twitter and Flickr widgets I was using. My CSS was nearly spotless except for a single error, my defining the <code>list-style-type</code> with an erroneous value of <code>bullet</code> as oppose to the correct <code>disc</code>.</p>
<p>I got so giddy in excitement that I walked down to Isaac&#8217;s room to announce to him that my blog&#8217;s CSS and HTML markup validates. But apparently, there are other things I can still do to make my website even more kick-ass in the back-end.</p>
<p><span id="more-880"></span>Which led me to the <a href="http://developer.yahoo.com/yslow/">Yslow plugin for Firebug</a>. Developed by Yahoo!, the plugin allows web developers to run tests on their websites based on a set of rules for high-performance web pages. I managed to improved my score from a very lousy 64 percent (a big fat D) to a very respectable 89 percent (B). I can raise that easily and gain an A-rating by reducing the number of my <abbr title="domain name system">DNS</abbr> lookups. I am, however, unwilling to part with either Google Analytics, Flickr, or Twitter. I can attempt to find a way to force my server to GZIP the Javascript, but it is rather difficult. On the other hand, I managed to find a way to use GZIP site-wide which has resulted in at least 1.5 seconds difference in load times.</p>
<h4>CSS and Plugins</h4>
<p>Did you notice that I changed the styling of my <code>h4</code> tags? No, well, that is good as you are not supposed to notice it.</p>
<p>One thing that separates a good designer from a bad one is his attention to details. The devil is very much in the details, especially in web design. Except that I get a bit carried away sometimes with CSS and I find myself spending 30 minutes switching between two different font-sizes with just .05em of difference between them. And footer at the bottom? I reduced the extra space by 75px. Not really important, but I spent tens of minutes tweaking the code until it felt <em>just right</em>.</p>
<p>I recently installed <i>µAudio Player, WP-PageNavi, Post Template, GZIP Output, WP CSS, WP JS,</i> and <i>WP Super Cache</i> plugins for WordPress. All of the are quite nifty with the first three providing a functionality that I needed and the rest working in consort with each other to provide my website with boosts in speed.</p>
<h4>Internet Explorer 6</h4>
<p>I hate that stupid browser. That being said, for the most part my website looks somewhat similar in IE6 as it is with IE7, Firefox, and Safari. There were a few minor discrepancies (the logo is not completely showing) and a major one (mostly an issue with <code>padding-left</code>), but all in all it degrades quite beautifully.</p>
]]></content:encoded>
			<wfw:commentRss>http://aheram.com/blog/journal/tweaks-and-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cat&#8217;s Eye 2.2 and More</title>
		<link>http://aheram.com/blog/journal/web-design-cats-eye-22-and-more/</link>
		<comments>http://aheram.com/blog/journal/web-design-cats-eye-22-and-more/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 06:54:00 +0000</pubDate>
		<dc:creator>Jayel Aheram</dc:creator>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[minimalist]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=185</guid>
		<description><![CDATA[Adventures in Web Design Instead of working on a new version of Creativist Pursuits, I had been tinkering with my photography website (Cat&#8217;s Eye: Photography by Jayel Aheram). After four straight days of struggling with CSS, HTML, and Javascript, I<br/><br/><a href="http://aheram.com/blog/journal/web-design-cats-eye-22-and-more/" class="more-link">Continue reading →</a>]]></description>
			<content:encoded><![CDATA[<h3 class="byline">Adventures in Web Design</h3>
<p>Instead of working on a new version of <a title="Creativist Pursuits" href="http://www.aheram.com">Creativist Pursuits</a>, I had been tinkering with my photography website (<a href="http://photos.aheram.com">Cat&#8217;s Eye: Photography by Jayel Aheram</a>). After four straight days of struggling with CSS, HTML, and Javascript, I finally got it to work on all major browsers.</p>
<p><span id="more-185"></span>Cosmetically, few things have changed. It has the same color scheme, nearly identical layout, and identical content from the previous versions. Structurally, it is now a fully horizontally-scrolling website. I originally experimented with it with the portfolio pages, but I have decided to implement it across the entire website. I have installed both Central Scrutinizer&#8217;s <a href="http://lab.centralscrutinizer.it/the-tiny-scrollings/">The Horizontal Way</a> and Particle Tree&#8217;s <a href="http://particletree.com/features/lightbox-gone-wild/">Lightbox Gone Wild</a>. There were problems, of course. For one, Lightbox Gone Wild was not made for horizontally-scrolling websites. There were some <a href="http://particletree.com/features/lightbox-gone-wild/#comment-25232">problems I ran into</a>:</p>
<blockquote class="excerpt"><p>I have implemented Lightbox in this mockup (http://www.aheram.net/photos/) of my photography website. In IE 7, when you activate lightbox, the page in the background scrolls to the very beginning (left), whereas in Firefox and Safari it stays put. This is unacceptable behavior from IE7.</p>
<p>I need the page to stay where it is at so that when the user exits the Lightbox, he will be right back where he started. This discrepancy in behavior between the browsers is quite upsetting.</p></blockquote>
<p>But I eventually <a href="http://particletree.com/features/lightbox-gone-wild/#comment-25236">figured it out on my own</a>.</p>
<blockquote class="excerpt"><p>I was looking at the lightbox.js and for the IE part of the code, there is not a snippet in the code to get what the page’s current X-position.</p>
<p>Just add this:</p>
<p><code>if (self.pageXOffset) { this.xPos = self.pageXOffset; } else if (document.documentElement &amp;&amp; document.documentElement.scrollLeft){ this.xPos = document.documentElement.scrollLeft; } else if (document.body) { this.xPos = document.body.scrollLeft; }</code></p>
<p>After this:</p>
<p><code>if (self.pageYOffset) { this.yPos = self.pageYOffset; } else if (document.documentElement &amp;&amp; document.documentElement.scrollTop){ this.yPos = document.documentElement.scrollTop; } else if (document.body) { this.yPos = document.body.scrollTop; }</code></p>
<p>And replace this:</p>
<p><code>if (browser == "Internet Explorer"){ this.setScroll(0,this.yPos); this.prepareIE("auto", "auto"); this.hideSelects("visible"); }</code></p>
<p>With this:</p>
<p><code>if (browser == "Internet Explorer"){ this.setScroll(this.xPos,this.yPos); this.prepareIE("auto", "auto"); this.hideSelects("visible"); }</code></p>
<p>Now, you can implement Lightbox Gone Wild with Horizontal Way websites.</p></blockquote>
<p>The great thing about this is that I did not need to resort to Flash to achieve the slideshow-like scrolling.</p>
<p>Next project involves merging this blog with Creativist Pursuits (and phasing out my almost four-year old template to be more consistent with Creativist Pursuits) and utilizing a heavily modified <a href="http://www.sweetcron.com">Sweetcron</a> for my lifestream (<em>it is</em> the future of blogging). You can check out my test lifestream in <a href="http://www.aheram.net">aheram.net</a>. I have other web-based projects in the works, but my military commitments is getting in the way. ETA for the launch would be at least the next Marine Corps Ball.</p>
]]></content:encoded>
			<wfw:commentRss>http://aheram.com/blog/journal/web-design-cats-eye-22-and-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic Creativist Pursuits</title>
		<link>http://aheram.com/blog/journal/web-design-dynamic-creativist-pursuits/</link>
		<comments>http://aheram.com/blog/journal/web-design-dynamic-creativist-pursuits/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 13:31:00 +0000</pubDate>
		<dc:creator>Jayel Aheram</dc:creator>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[Art]]></category>
		<category><![CDATA[Art & Design]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=121</guid>
		<description><![CDATA[Adventures in Web Design After working for five incredibly long days and producing several pages of code revisions, an updated version of Creativist Pursuits went live early Monday morning. It is nearly identical to its previous incarnation, but this time<br/><br/><a href="http://aheram.com/blog/journal/web-design-dynamic-creativist-pursuits/" class="more-link">Continue reading →</a>]]></description>
			<content:encoded><![CDATA[<h3 class="byline">Adventures in Web Design</h3>
<p>After working for five incredibly long days and producing several pages of code revisions, an updated version of <a href="http://www.aheram.com">Creativist Pursuits</a> went live early Monday morning. It is nearly identical to its <a href="http://blog.aheram.com/2008/02/web-design-challenges-and-new-logo.html">previous incarnation</a>, but this time it has <em>dynamic</em> content.</p>
<p><span id="more-121"></span>
<div class="caption med"><a title="Anatomy of a Website by Jayel Aheram, on Flickr" href="http://www.flickr.com/photos/aheram/2431266470/"><img src="http://farm4.static.flickr.com/3006/2431266470_e5ba4a10a3.jpg" alt="Anatomy of a Website" /></a></p>
<p>Anatomy of a website.</p>
</div>
<p>My friend Stacy Wiedmaier was the one who originally implanted the idea into my head of turning Creativist Pursuits into one-stop shop for everything Aheram. The goal is to create a sort of web portal that follows everything I do in the online medium and publishes snippets and previews of every content produced by me. A sort of supra-MySpace that is more than twice as fun to create and with an underlying code that looks as good and clean as its graphics.</p>
<h3>Not a Vanity Page</h3>
<p>One thing Creativist Pursuits is not is a vanity site. I believe it offers something more than your usual vanity page. It is a self-updating website that pulls from various sites the content generated by me. It is not static and people can actually find new content everyday, from Twitter updates to newest Flickr uploads to recently published articles from my blogs. However, it is not my intention to keep the casual visitor in Creativist Pursuits. My goal is to funnel them as quickly as possible to my content.</p>
<div class="med caption"><a title="cp-flowchart by Jayel Aheram, on Flickr" href="http://www.flickr.com/photos/aheram/2433038409/"><img src="http://farm4.static.flickr.com/3056/2433038409_37c1f060c5.jpg" alt="cp-flowchart" /></a></div>
<p>An overwhelming number of visitors to Creativist Pursuits landed there not because of direct traffic, but rather were referred there by external sites.</p>
<ol>
<li>Most people do not type the address of my website into their address bar from memory in order to access my site. Most are referrals. A lot of it from outside sites like MySpace and Flickr. Some are referred to the website by other people talking about me in blogs or news articles. And a few are referred to my website by the <a href="http://www.moo.com">Moo</a> cards I hand out. In many of the social networking profiles I have, I link to my main website.</li>
<li>If they are interested enough, they will usually click the link and land&#8230;</li>
<li>On Creativist Pursuits. Successful implementation of the ideas I am putting forward in this post will ensure that people are</li>
<li>..properly funneled to my&#8230;</li>
<li>&#8230;content. Whether it be my blog, my about me page, my contact information, my Flickr photographs, or one my many social networking profiles, the goal of Creativist Pursuits is to guide people to those pages.</li>
</ol>
<p>It is the digital middleman, the online concierge, the traffic warden in a world of Aheram-generated content.</p>
<h3>User Interface</h3>
<p>If it is takes more than five seconds for people to find what they are looking for in this website, I have failed. User interface does not apply to just iPods and computers, it also applies to the website. One of the challenges I faced was how I can best make sure that the design of the website complements its function in streamlining the user experience of the casual visitor. I made generous use of <em>obvious navigational graphics</em>. They are displayed in a very easy-to-read font, yet remain aesthetically consistent with the design scheme. Also, I made sure that the graphics I use worked for me and the website. They are not merely there to look pretty, they actually do serve multiple important functions. Not only do they provide a preview of the content they link to, they also serve to attract the attention of the casual visitor to the information that surrounds it. The visitor&#8217;s eyes are drawn to the distinctive graphic that accurately represents the content the graphic itself links to.</p>
<p>The interface of my website should not be a hindrance between my audience and my content. I utilized white-space to effectively compartmentalize each block of information so that the casual visitor can easily navigate and separate different <em>kinds of content</em> from each other.</p>
<h3>Social Networking and Feeds</h3>
<p>There is a bit more emphasis now with social networking in Creativist Pursuits. My Twitter and Flickr, as well as my profiles in MySpace, Facebook, and LinkedIn are prominently linked to in the index page. Joining those are links to various RSS feeds of my regularly updated content. Clicking <em>&gt;&gt; SOCIAL NETWORKS</em> will lead the visitor to an even larger list of social networks I am a part of.</p>
<h3>Dynamic Content and XML Parsing </h3>
<p>One of the biggest changes implemented in the site is the addition of an XML parser. Using a Magpie derivative called <a href="http://feed2js.org/">Feed2JS</a>, I am able to republish snippets of my blog posts in my website. Unlike the original Magpie RSS (which was quite unwieldy), Feed2JS was painless to install. It parses RSS feeds from FeedBurner and converts it to a simple JavaScript code that I am able to include in my website&#8217;s source code. It looks clean, it is painless to edit, and it just works. The republished feeds joins the Twitter and Flickr badges in providing new content to Creativist Pursuits.</p>
<h3>Thinking Ahead</h3>
<p>I created a <a href="http://www.flickr.com/photos/aheram/2432998587/">mock up</a> of what I intend to do if I were to announce an important event or news like an upcoming gallery exhibition or something. Of course, it will be temporary and will most likely go up and remain up from a week prior to the event until the duration of the event. I am debating if there is some way I can automate this to make this as painless as possible for me. Most likely, just adding the HTML snippet is a lot simpler and easier.</p>
<h3>The Purpose of All of This</h3>
<p>The purpose of Creativist Pursuits two-fold and quite simple. Create an audience of my work and then facilitate opportunities by exposing audiences to my work. By providing ways to easily contact me, friend me on MySpace, drop me a line, follow me on Twitter, or view my work while making it very easy to do so, I am creating a base of audience that will appreciate and enjoy my creativist pursuits.</h4>
]]></content:encoded>
			<wfw:commentRss>http://aheram.com/blog/journal/web-design-dynamic-creativist-pursuits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

