<?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>Baylus.com &#187; My Work</title>
	<atom:link href="http://www.baylus.com/tag/my-work/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.baylus.com</link>
	<description>Asa Baylus is a Website Designer working in Washington DC</description>
	<lastBuildDate>Thu, 29 Dec 2011 19:00:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Convert Milliseconds into digital time [ 00:00 ]</title>
		<link>http://www.baylus.com/convert-milliseconds-into-digital-time-0000/</link>
		<comments>http://www.baylus.com/convert-milliseconds-into-digital-time-0000/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 04:47:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[My Work]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://www.baylus.com/?p=386</guid>
		<description><![CDATA[JavaScript works with time in milliseconds, which is less then convenient when you want to present time back to your users.
Here's a little function that can help you convert milliseconds into a more human readable digital clock style string.]]></description>
			<content:encoded><![CDATA[<p>JavaScript works with time in milliseconds, which is less than convenient when you want to present time back to your users. Here&#8217;s a little function that can help you convert milliseconds into a more human readable digital clock style string.</p>
<h3><span id="more-386"></span>Properties</h3>
<p>The function will return a object which contain the properties</p>
<p>var obj = convertMilliseconds(3661000);<br />
obj.hours         //&#8211;&gt; 1 hour<br />
obj.minuets    //&#8211;&gt; 1 min<br />
obj.seconds    //&#8211;&gt; 1 sec<br />
obj.clock        //&#8211;&gt; &#8220;01:01:01&#8243;</p>
<h3>Usage</h3>
<div>convertMilliseconds accepts two arguments</div>
<div><strong>milliseconds</strong>: number of milliseconds to convert ex: 1000 <em> type: number</em></div>
<div><strong>pattern</strong>:  formats the returned value of  clock property ex: hh:mm:ss or ss:mm:h or ss:mm etc. <em>type: string</em></div>
<div>A few more examples  of convertMilliseconds(milliseconds, pattern);</div>
<div>convertMilliseconds(3661000);<br />
convertMilliseconds(3661000, &#8220;hh:mm:ss&#8221;);<br />
convertMilliseconds(3661000, &#8220;mm:hh:ss&#8221;);<br />
convertMilliseconds(3661000, &#8220;ss:mm:hh&#8221;);<br />
convertMilliseconds(3661000, &#8220;mm:ss&#8221;);<br />
convertMilliseconds(3661000, &#8220;ss&#8221;);<br />
convertMilliseconds(3661000, &#8220;h:m:s&#8221;);<br />
convertMilliseconds(3661000, &#8220;m:s&#8221;);<br />
convertMilliseconds(3661000, &#8220;s&#8221;);</div>
<h3>Gist</h3>
<script src="http://gist.github.com/866265.js?file=convert-milliseconds.js"></script><noscript><link rel="stylesheet" href="https://gist.github.com/stylesheets/gist/embed.css"><div id="gist-866265" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="cm">/**</span></div><div class='line' id='LC2'><span class="cm"> * Convert milliseconds in regular style time</span></div><div class='line' id='LC3'><span class="cm"> * @author Asa Baylus</span></div><div class='line' id='LC4'><span class="cm"> **/</span></div><div class='line' id='LC5'><br/></div><div class='line' id='LC6'><span class="kd">function</span> <span class="nx">convertMilliseconds</span> <span class="p">(</span><span class="nx">ms</span><span class="p">,</span> <span class="nx">p</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC7'><br/></div><div class='line' id='LC8'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kd">var</span> <span class="nx">pattern</span> <span class="o">=</span> <span class="nx">p</span> <span class="o">||</span> <span class="s2">&quot;hh:mm:ss&quot;</span><span class="p">,</span></div><div class='line' id='LC9'>			<span class="nx">arrayPattern</span> <span class="o">=</span> <span class="nx">pattern</span><span class="p">.</span><span class="nx">split</span><span class="p">(</span><span class="s2">&quot;:&quot;</span><span class="p">),</span></div><div class='line' id='LC10'>			<span class="nx">clock</span> <span class="o">=</span> <span class="p">[</span> <span class="p">],</span></div><div class='line' id='LC11'>			<span class="nx">hours</span> <span class="o">=</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">floor</span> <span class="p">(</span> <span class="nx">ms</span> <span class="o">/</span> <span class="mi">3600000</span> <span class="p">),</span> <span class="c1">// 1 Hour = 36000 Milliseconds</span></div><div class='line' id='LC12'>			<span class="nx">minuets</span> <span class="o">=</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">floor</span> <span class="p">((</span> <span class="nx">ms</span> <span class="o">%</span> <span class="mi">3600000</span><span class="p">)</span> <span class="o">/</span> <span class="mi">60000</span><span class="p">),</span> <span class="c1">// 1 Minutes = 60000 Milliseconds</span></div><div class='line' id='LC13'>			<span class="nx">seconds</span> <span class="o">=</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">floor</span> <span class="p">(((</span> <span class="nx">ms</span> <span class="o">%</span> <span class="mi">360000</span><span class="p">)</span> <span class="o">%</span> <span class="mi">60000</span><span class="p">)</span> <span class="o">/</span> <span class="mi">1000</span><span class="p">)</span> <span class="c1">// 1 Second = 1000 Milliseconds</span></div><div class='line' id='LC14'><br/></div><div class='line' id='LC15'><br/></div><div class='line' id='LC16'><br/></div><div class='line' id='LC17'>		<span class="c1">// build the clock result</span></div><div class='line' id='LC18'>		<span class="kd">function</span> <span class="nx">createClock</span><span class="p">(</span><span class="nx">unit</span><span class="p">){</span></div><div class='line' id='LC19'><br/></div><div class='line' id='LC20'><br/></div><div class='line' id='LC21'>		<span class="c1">// match the pattern to the corresponding variable</span></div><div class='line' id='LC22'>		<span class="k">if</span> <span class="p">(</span><span class="nx">pattern</span><span class="p">.</span><span class="nx">match</span><span class="p">(</span><span class="nx">unit</span><span class="p">))</span> <span class="p">{</span></div><div class='line' id='LC23'>			<span class="k">if</span> <span class="p">(</span><span class="nx">unit</span><span class="p">.</span><span class="nx">match</span><span class="p">(</span><span class="sr">/h/</span><span class="p">))</span> <span class="p">{</span></div><div class='line' id='LC24'>				<span class="nx">addUnitToClock</span><span class="p">(</span><span class="nx">hours</span><span class="p">,</span> <span class="nx">unit</span><span class="p">);</span></div><div class='line' id='LC25'>			<span class="p">}</span></div><div class='line' id='LC26'>			<span class="k">if</span> <span class="p">(</span><span class="nx">unit</span><span class="p">.</span><span class="nx">match</span><span class="p">(</span><span class="sr">/m/</span><span class="p">))</span> <span class="p">{</span></div><div class='line' id='LC27'>				<span class="nx">addUnitToClock</span><span class="p">(</span><span class="nx">minuets</span><span class="p">,</span> <span class="nx">unit</span><span class="p">);</span></div><div class='line' id='LC28'>			<span class="p">}</span></div><div class='line' id='LC29'>			<span class="k">if</span> <span class="p">(</span><span class="nx">unit</span><span class="p">.</span><span class="nx">match</span><span class="p">(</span><span class="sr">/s/</span><span class="p">))</span> <span class="p">{</span></div><div class='line' id='LC30'>				<span class="nx">addUnitToClock</span><span class="p">(</span><span class="nx">seconds</span><span class="p">,</span> <span class="nx">unit</span><span class="p">);</span></div><div class='line' id='LC31'>			<span class="p">};</span></div><div class='line' id='LC32'>			<span class="p">}</span></div><div class='line' id='LC33'>		<span class="p">}</span></div><div class='line' id='LC34'><br/></div><div class='line' id='LC35'>		<span class="kd">function</span> <span class="nx">addUnitToClock</span><span class="p">(</span><span class="nx">val</span><span class="p">,</span> <span class="nx">unit</span><span class="p">){</span></div><div class='line' id='LC36'><br/></div><div class='line' id='LC37'>			<span class="k">if</span> <span class="p">(</span> <span class="nx">val</span> <span class="o">&lt;</span> <span class="mi">10</span> <span class="o">&amp;&amp;</span> <span class="nx">unit</span><span class="p">.</span><span class="nx">length</span> <span class="o">===</span> <span class="mi">2</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC38'>				<span class="nx">val</span> <span class="o">=</span> <span class="s2">&quot;0&quot;</span> <span class="o">+</span> <span class="nx">val</span><span class="p">;</span></div><div class='line' id='LC39'>			<span class="p">}</span></div><div class='line' id='LC40'><br/></div><div class='line' id='LC41'>			<span class="nx">clock</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">val</span><span class="p">);</span> <span class="c1">// push the values into the clock array</span></div><div class='line' id='LC42'><br/></div><div class='line' id='LC43'>		<span class="p">}</span></div><div class='line' id='LC44'><br/></div><div class='line' id='LC45'><br/></div><div class='line' id='LC46'>		<span class="c1">// loop over the pattern building out the clock result</span></div><div class='line' id='LC47'>		<span class="k">for</span> <span class="p">(</span> <span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span> <span class="nx">j</span> <span class="o">=</span> <span class="nx">arrayPattern</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">j</span><span class="p">;</span> <span class="nx">i</span> <span class="o">++</span> <span class="p">){</span></div><div class='line' id='LC48'><br/></div><div class='line' id='LC49'>			<span class="nx">createClock</span><span class="p">(</span><span class="nx">arrayPattern</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span></div><div class='line' id='LC50'><br/></div><div class='line' id='LC51'>		<span class="p">}</span></div><div class='line' id='LC52'><br/></div><div class='line' id='LC53'>		<span class="k">return</span> <span class="p">{</span></div><div class='line' id='LC54'>			<span class="nx">hours</span> <span class="o">:</span> <span class="nx">hours</span><span class="p">,</span></div><div class='line' id='LC55'>			<span class="nx">minuets</span> <span class="o">:</span> <span class="nx">minuets</span><span class="p">,</span></div><div class='line' id='LC56'>			<span class="nx">seconds</span> <span class="o">:</span> <span class="nx">seconds</span><span class="p">,</span></div><div class='line' id='LC57'>			<span class="nx">clock</span> <span class="o">:</span> <span class="nx">clock</span><span class="p">.</span><span class="nx">join</span><span class="p">(</span><span class="s2">&quot;:&quot;</span><span class="p">)</span></div><div class='line' id='LC58'>		<span class="p">};</span></div><div class='line' id='LC59'><br/></div><div class='line' id='LC60'><span class="p">}</span></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/866265/cf79597943570396649fc58ec7518d849eb04ed7/convert-milliseconds.js" style="float:right;">view raw</a>
            <a href="https://gist.github.com/866265#file_convert_milliseconds.js" style="float:right;margin-right:10px;color:#666">convert-milliseconds.js</a>
            <a href="https://gist.github.com/866265">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>
</noscript>
]]></content:encoded>
			<wfw:commentRss>http://www.baylus.com/convert-milliseconds-into-digital-time-0000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why I&#8217;m developing with Yahoo Astra</title>
		<link>http://www.baylus.com/why-im-developing-with-yahoo-astra/</link>
		<comments>http://www.baylus.com/why-im-developing-with-yahoo-astra/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 00:18:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ACS]]></category>
		<category><![CDATA[American Chemical Society]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[Yahoo! Astra]]></category>

		<guid isPermaLink="false">http://www.baylus.com/?p=259</guid>
		<description><![CDATA[Yahoo Astra is Yahoo&#8217;s answer to the components that are missing from flash, such as: tree menu, alert windows, carousel, charts, auto suggest, menu, menu bar, tab bar and layout managers. Many of these elements can be found in Flex Flash Builder, but that won&#8217;t do you much good if you are developing in the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://developer.yahoo.com/flash/astra-flash/">Yahoo Astra</a> is Yahoo&#8217;s answer to the components that are missing from flash, such as: tree menu, alert windows, carousel, charts, auto suggest, menu, menu bar,  tab bar and layout managers.</p>
<p>Many of these elements can be found in <del datetime="2009-07-04T12:53:51+00:00">Flex</del> Flash Builder, but that won&#8217;t do you much good if you are developing in the flash IDE.</p>
<p>I&#8217;m using these components in a few projects I&#8217;m working on at ACS. By using Astra I&#8217;m getting the not insignificant benefit of standing on the shoulders of some very smart and accomplished programmers. Yahoo Astra components have numerous features which accommodate most common situtations and the components can of course be extended to fit your sites specific needs.</p>
<p>You can find Yahoo Astra at: <a href="http://developer.yahoo.com/flash/astra-flash/">http://developer.yahoo.com/flash/astra-flash/</a>   </p>
<p>There seems to be a lot going on with flash this past week. Adobe has posted Flash Builder 4 on labs along with Flash Catalyst aka Thermo. This is seems like a good time to check out labs.adobe.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.baylus.com/why-im-developing-with-yahoo-astra/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hello World!</title>
		<link>http://www.baylus.com/hello-world/</link>
		<comments>http://www.baylus.com/hello-world/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 18:41:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[My Work]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.baylus.com/?p=55</guid>
		<description><![CDATA[Hello and welcome to my site, which represents highlights from my past 10 years of work as a graphic designer and art director. During my time in the industry, I&#8217;ve been fortunate to work as a designer and developer for &#8211; and with &#8211; some great people. My designs are clearly informed by my background [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="Hello World!" src="/Images/thumb-hello-world.png" alt="" width="292" height="180" />Hello and welcome to my site, which represents highlights from my past 10 years of work as a graphic designer and art director. During my time in the industry, I&#8217;ve been fortunate to work as a designer and developer for &#8211; and with &#8211; some great people.<br />
<span id="more-55"></span></p>
<p>My designs are clearly informed by my background in fine art &#8211; I spent most of my formal education sketching, painting, sculpting, and of course, doodling.  Upon occasion, I even did these things in Legitimate Art Classes (as opposed to, say, Geology or Psychology classes, where impromptu design &#8211; particularly large-scale sculpture &#8211; was woefully underappreciated).  In 1998 I started working as a freelance web designer in the emerging internet.  I&#8217;ve had the chance to work with some truly talented people and continue to enjoy the personal connections this career affords me &#8211; artists and programmers whose work and passion I respect, and the gifted managers of people and resources who make this work possible. In my varied career, I have appreciated the unique challenges of novelty, and have consequently worked in a broad range of settings and with a diverse client base, from my ground-up work as the number two man in a design-house start-up to large, established organizations catering to millions from all across the globe.</p>
<h2>What do I do now?</h2>
<p>I’m currently a salaried consultant with Comsys, presently deployed as the consulting Art Director for the American Chemical Society, Web Strategy and Operations department. This means I lead a team of exceptionally talented individuals with whom I collaborate, creating new and better websites to meet the needs of this large and diverse organization.</p>
<p>On a day-to-day basis I am responsible for overseeing the design and art direction of ACS.org websites, including the recently launched Member Network, a social networking site that now claims greater than 30,000 members.  Though projects of this size necessarily require me to delegate many tasks to my highly-skilled team of designers, I continue to maintain a hands-on role in the design and production of these and other projects.</p>
<p>-A</p>
]]></content:encoded>
			<wfw:commentRss>http://www.baylus.com/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ACS Release 2 designs approved</title>
		<link>http://www.baylus.com/acs-release-2/</link>
		<comments>http://www.baylus.com/acs-release-2/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 10:47:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[My Work]]></category>
		<category><![CDATA[ACS]]></category>
		<category><![CDATA[American Chemical Society]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[portfolio]]></category>

		<guid isPermaLink="false">http://www.baylus.com/?p=61</guid>
		<description><![CDATA[Working with the creative professionals at the American Chemical Society has been a pleasure. Recently the ACS embarked on a new branding campaign developed by Gyro International. I am pleased to have had the opportunity to develop the web initiative. On the right I&#8217;ve posted a conceptual mock-up developed for the ACS.org home page.]]></description>
			<content:encoded><![CDATA[<p><img style="float:right; padding-left:6px;" src="/Images/med-acs-chem-for-life.jpg" alt="ACS Branding" width="330" height="165" />Working with the creative professionals at the American Chemical Society has been a pleasure. Recently the ACS embarked on a new branding campaign developed by Gyro International. I am pleased to have had the opportunity to develop the web initiative. On the right I&#8217;ve posted a conceptual mock-up developed for the ACS.org home page.</p>
<p><br style="clear:both;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.baylus.com/acs-release-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sample Websites</title>
		<link>http://www.baylus.com/sample-sites/</link>
		<comments>http://www.baylus.com/sample-sites/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 10:43:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[My Work]]></category>
		<category><![CDATA[American Chemical Society]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[Sacred Spaces Inc]]></category>
		<category><![CDATA[Smithsonian Insitution]]></category>
		<category><![CDATA[Soloana Business Forum]]></category>
		<category><![CDATA[US Sedan]]></category>

		<guid isPermaLink="false">http://www.baylus.com/?p=57</guid>
		<description><![CDATA[The following URL&#8217;s represent a few samples of my work. I will make more samples available as time permits. If you are prompted for a password and would like to see more please feel free to contact me and I will arrange for a private viewing. ACS Network: http://www.acs.org/network Solana Business Forum: http://www.solanabusinessforum.com Sacred Spaces [...]]]></description>
			<content:encoded><![CDATA[<p>The following URL&#8217;s represent a few samples of my work. I will make more samples available as time permits. If you are prompted for a password and would like to see more please feel free to <a href="/contact.cfm">contact me</a> and I will arrange for a private viewing.</p>
<ul>
<li>ACS Network: <a href="http://www.acs.org/network">http://www.acs.org/network</a></li>
<li>Solana Business Forum: <a href="http://www.solanabusinessforum.com/">http://www.solanabusinessforum.com</a></li>
<li>Sacred Spaces Inc: <a href="http://www.sacredspacesinc.com/">http://www.sacredspacesinc.com</a></li>
<li>The Virtual Smithsonian: <a href="http://2k.si.edu">http://2k.si.edu</a></li>
<li>US Sedan: <a href="http://www.ussedan.com">http://www.ussedan.com</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.baylus.com/sample-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

