<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>financecoding</title>
	<atom:link href="http://financecoding.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://financecoding.wordpress.com</link>
	<description>Hello World!</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:16:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='financecoding.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>financecoding</title>
		<link>http://financecoding.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://financecoding.wordpress.com/osd.xml" title="financecoding" />
	<atom:link rel='hub' href='http://financecoding.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Dart classify markup example</title>
		<link>http://financecoding.wordpress.com/2012/02/09/dart-classify-markup-example/</link>
		<comments>http://financecoding.wordpress.com/2012/02/09/dart-classify-markup-example/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 08:27:29 +0000</pubDate>
		<dc:creator>financecoding</dc:creator>
				<category><![CDATA[Dart]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://financecoding.wordpress.com/?p=541</guid>
		<description><![CDATA[I was looking for a simple way to create some markup dynamically of syntax highlighted dart code, in dart! A big thanks to Bob Nystrom from the Dart team for suggesting the simplest solution. Use classify from dartdoc. A live example of this can be found here along with the source code. Example of how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=541&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was looking for a simple way to create some markup dynamically of syntax highlighted dart code, in dart! A big thanks to <a href="https://plus.google.com/100798142896685420545/posts">Bob Nystrom</a> from the Dart team for suggesting the simplest solution. Use <a href="http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/utils/dartdoc/classify.dart">classify</a> from <a href="http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/utils/dartdoc/">dartdoc</a>.</p>
<p>A live example of this can be found <a href="http://financecoding.github.com/dart-classify-example/index.html">here</a> along with the <a href="https://github.com/financeCoding/dart-classify-example">source code</a>.</p>
<p><strong>Example of how to use dartdoc/classify.dart</strong><br />
<a href="http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/utils/dartdoc/">dartdoc</a> is used for generating static HTML for the <a href="http://api.dartlang.org">api.dartlang.org</a> site. This example shows how importing <a href="http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/utils/dartdoc/classify.dart">dartdoc/classify.dart</a> one could generate syntax highlighted dart code at runtime.</p>
<p><strong>Patching</strong><br />
Currently you need to modify the import statement to reference the location of classify.dart.<br />
<pre class="brush: java;">
#import('../../dart_bleeding/dart/utils/dartdoc/classify.dart', prefix:&quot;classify&quot;);
</pre></p>
<p><strong>Building</strong><br />
Build with minfrog for best results. At the moment dart editor does not seem happy with me on importing dartdoc/classify.dart. So compiling with minfrog worked best.<br />
<pre class="brush: bash;">
minfrog --compile-only --out=ClassifyExample.dart.js ClassifyExample.dart
</pre></p>
<p><strong>Using classify</strong><br />
This is the easiest part! Create a <a href="http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/frog/source.dart">SourceFile</a> and add pass it along to <a href="http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/utils/dartdoc/classify.dart">classifySource</a> which will return a properly formatted string of span elements that has class attributes set. From that point you can add a css style to the span elements.<br />
<pre class="brush: java;">
    String code = &quot;main() { print('hello world'); }&quot;;
    classify.SourceFile sf = new classify.SourceFile(&quot;sf.dart&quot;, code);
    String c = classify.classifySource(sf);
</pre><br />
<pre class="brush: xml;">
   &lt;span class=&quot;i &quot;&gt;main&lt;/span&gt;&lt;span class=&quot;p &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;p &quot;&gt;)&lt;/span&gt;&lt;span&gt; 
   &lt;/span&gt;&lt;span class=&quot;p &quot;&gt;{&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span class=&quot;i &quot;&gt;print&lt;/span&gt;
   &lt;span class=&quot;p &quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s si&quot;&gt;'hello world'&lt;/span&gt;
   &lt;span class=&quot;p &quot;&gt;)&lt;/span&gt;&lt;span class=&quot;p &quot;&gt;;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span class=&quot;p &quot;&gt;}&lt;/span&gt; 
</pre></p>
<p>Example css style<br />
<pre class="brush: css;">
/* Syntax highlighting. */
/* Note: these correspond to the constants in classify.dart. */
.e { color: hsl(  0, 100%, 70%); } /* Error */
.c { color: hsl(220,  20%, 65%); } /* Comment */
.i { color: hsl(220,  20%, 20%); } /* Identifier */
.k { color: hsl(220, 100%, 50%); } /* Keyword */
.p { color: hsl(220,  20%, 50%); } /* Punctuation */
.o { color: hsl(220,  40%, 50%); } /* Operator */
.s { color: hsl( 40,  90%, 40%); } /* String */
.n { color: hsl( 30,  70%, 50%); } /* Number */
.t { color: hsl(180,  40%, 40%); } /* Type Name */
.r { color: hsl(200, 100%, 50%); } /* Special Identifier */
.a { color: hsl(220, 100%, 45%); } /* Arrow */

/* Interpolated expressions within strings. */
.si {
  background: hsl(40, 100%, 90%);
}

.s.si { background: hsl(40, 80%, 95%); }
.i.si { color: hsl(40, 30%, 30%); }
.p.si { color: hsl(40, 60%, 40%); }
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/financecoding.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/financecoding.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/financecoding.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/financecoding.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/financecoding.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/financecoding.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/financecoding.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/financecoding.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/financecoding.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/financecoding.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/financecoding.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/financecoding.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/financecoding.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/financecoding.wordpress.com/541/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=541&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://financecoding.wordpress.com/2012/02/09/dart-classify-markup-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a4934622dd18e3b7d88e3064f457378?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">financecoding</media:title>
		</media:content>
	</item>
		<item>
		<title>Dart: Quick 0-60 with DartEditor and Dartium on MacOSX.</title>
		<link>http://financecoding.wordpress.com/2012/01/29/dart-quick-0-60-with-darteditor-and-dartium-on-macosx/</link>
		<comments>http://financecoding.wordpress.com/2012/01/29/dart-quick-0-60-with-darteditor-and-dartium-on-macosx/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 05:55:02 +0000</pubDate>
		<dc:creator>financecoding</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://financecoding.wordpress.com/?p=533</guid>
		<description><![CDATA[Quick 0-60 with DartEditor and Dartium on MacOSX. The DartEditor now comes with the ability to launch Dartium directly. The key to getting that to work is to have Chromium folder located in the dart-sdk. Below is a simple script to bootstrap your MacOSX from the latest builds. Note, if you move the directory around [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=533&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Quick 0-60 with DartEditor and Dartium on MacOSX. The DartEditor now comes with the ability to launch Dartium directly. The key to getting that to work is to have Chromium folder located in the dart-sdk. Below is a simple script to bootstrap your MacOSX from the latest builds. Note, if you move the directory around you&#8217;ll need to adjust the  runDartEditor.sh script. <del datetime="2012-02-03T02:58:52+00:00">DartEditor expects an absolute path for the -debug flag. By the time Dartium hits the dart-sdk, his route will be obsolete.</del><br />
Now support for choosing frogc or dartc is available in the GUI options.<br />
<pre class="brush: bash;">
git clone git://gist.github.com/1702746.git DartEditor
cd DartEditor
chmod +x get_and_unpack.sh 
./get_and_unpack.sh &amp;&amp; cd dart &amp;&amp; ./runDartEditor.sh
</pre><br />
<a href="https://gist.github.com/1702746">https://gist.github.com/1702746</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/financecoding.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/financecoding.wordpress.com/533/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/financecoding.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/financecoding.wordpress.com/533/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/financecoding.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/financecoding.wordpress.com/533/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/financecoding.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/financecoding.wordpress.com/533/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/financecoding.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/financecoding.wordpress.com/533/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/financecoding.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/financecoding.wordpress.com/533/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/financecoding.wordpress.com/533/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/financecoding.wordpress.com/533/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=533&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://financecoding.wordpress.com/2012/01/29/dart-quick-0-60-with-darteditor-and-dartium-on-macosx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a4934622dd18e3b7d88e3064f457378?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">financecoding</media:title>
		</media:content>
	</item>
		<item>
		<title>Dart: A short introduction to dart.</title>
		<link>http://financecoding.wordpress.com/2012/01/29/dart-a-short-introduction-to-dart/</link>
		<comments>http://financecoding.wordpress.com/2012/01/29/dart-a-short-introduction-to-dart/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 19:16:35 +0000</pubDate>
		<dc:creator>financecoding</dc:creator>
				<category><![CDATA[Dart]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://financecoding.wordpress.com/?p=527</guid>
		<description><![CDATA[On 1/28/2012 I was fortunate to give an introduction to dart at a GTUGsf Mobile HTML5 Codelab event. Conrad Wade did a spectacular job of arranging the event and promoting the DartSF meetup group. I truly enjoy the GTUGsf events!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=527&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On 1/28/2012 I was fortunate to give an <a href="http://financecoding.github.com/dart-html5-slides/IntroToDart/">introduction to dart</a> at a <a href="http://www.gtugsf.com/">GTUGsf</a> <a href="http://www.gtugsf.com/events/47556102/">Mobile HTML5 Codelab</a> event. <a href="https://plus.google.com/104245214374914659147">Conrad Wade</a> did a spectacular job of arranging the event and promoting the <a href="http://www.meetup.com/DartSF">DartSF</a> meetup group. I truly enjoy the GTUGsf events!<br />
<a href="http://financecoding.github.com/dart-html5-slides/IntroToDart/"><img src="http://financecoding.files.wordpress.com/2012/01/dartpresentation.png?w=630&#038;h=498" alt="" title="dartpresentation" width="630" height="498" class="alignnone size-full wp-image-529" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/financecoding.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/financecoding.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/financecoding.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/financecoding.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/financecoding.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/financecoding.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/financecoding.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/financecoding.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/financecoding.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/financecoding.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/financecoding.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/financecoding.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/financecoding.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/financecoding.wordpress.com/527/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=527&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://financecoding.wordpress.com/2012/01/29/dart-a-short-introduction-to-dart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a4934622dd18e3b7d88e3064f457378?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">financecoding</media:title>
		</media:content>

		<media:content url="http://financecoding.files.wordpress.com/2012/01/dartpresentation.png" medium="image">
			<media:title type="html">dartpresentation</media:title>
		</media:content>
	</item>
		<item>
		<title>Dart: Updated Dartium builds with breakpoint support for Linux and Mac</title>
		<link>http://financecoding.wordpress.com/2012/01/25/dart-updated-dartium-builds-with-breakpoint-support-for-linux-and-mac/</link>
		<comments>http://financecoding.wordpress.com/2012/01/25/dart-updated-dartium-builds-with-breakpoint-support-for-linux-and-mac/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 07:15:32 +0000</pubDate>
		<dc:creator>financecoding</dc:creator>
				<category><![CDATA[Dart]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Dartium]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://financecoding.wordpress.com/?p=518</guid>
		<description><![CDATA[As Seth Ladd has commented on google plus, Dartium now has breakpoint support. Big win in such an early stage of the project. Providing Release builds for Mac and Linux below. While I was trying breakpoints out, one thing noticed was to getting scripts to show up properly in inspector you need to hit an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=518&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As <a href="https://plus.google.com/118397406534237711570/posts">Seth Ladd</a> has commented on <a href="https://plus.google.com/118397406534237711570/posts/M6FCHkixfuL">google plus</a>, <a href="http://code.google.com/p/dart/wiki/BuildingDartium">Dartium</a> now has breakpoint support. Big win in such an early stage of the project. Providing Release builds for Mac and Linux below. While I was trying breakpoints out, one thing noticed was to getting scripts to show up properly in inspector you need to hit an extra refresh on the page. My public is can be found on <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x66ED7ACDB02CE8A1">pgp.mit.edu</a>. </p>
<p><pre class="brush: bash;">
wget http://dl.dropbox.com/u/33138127/dartium_macosx/Chromium.app.tar.gz
wget http://dl.dropbox.com/u/33138127/dartium_macosx/Chromium.app.tar.gz.sig
wget http://dl.dropbox.com/u/33138127/dartium_macosx/Chromium.app.tar.gz.md5
wget http://dl.dropbox.com/u/33138127/dartium_macosx/README.txt
gpg --verify Chromium.app.tar.gz.sig Chromium.app.tar.gz
md5sum -c Chromium.app.tar.gz.md5
</pre><br />
<pre class="brush: bash;">
wget http://gsdview.appspot.com/dart-editor-archive-continuous/latest/DartBuild-linux.gtk.x86.zip
wget http://dl.dropbox.com/u/33138127/dartium/dartium-linux-32bit-Release.tar.gz
wget http://dl.dropbox.com/u/33138127/dartium/dartium-linux-32bit-Release.tar.gz.sig
wget http://dl.dropbox.com/u/33138127/dartium/dartium-linux-32bit-Release.tar.gz.md5
wget http://dl.dropbox.com/u/33138127/dartium/README.txt
gpg --verify dartium-linux-32bit-Release.tar.gz.sig dartium-linux-32bit-Release.tar.gz
md5sum -c dartium-linux-32bit-Release.tar.gz.md5
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/financecoding.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/financecoding.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/financecoding.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/financecoding.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/financecoding.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/financecoding.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/financecoding.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/financecoding.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/financecoding.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/financecoding.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/financecoding.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/financecoding.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/financecoding.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/financecoding.wordpress.com/518/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=518&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://financecoding.wordpress.com/2012/01/25/dart-updated-dartium-builds-with-breakpoint-support-for-linux-and-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a4934622dd18e3b7d88e3064f457378?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">financecoding</media:title>
		</media:content>
	</item>
		<item>
		<title>Dart: Example of WebGL on Dart</title>
		<link>http://financecoding.wordpress.com/2012/01/23/dart-the-status-of-webgl/</link>
		<comments>http://financecoding.wordpress.com/2012/01/23/dart-the-status-of-webgl/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 07:52:51 +0000</pubDate>
		<dc:creator>financecoding</dc:creator>
				<category><![CDATA[Dart]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://financecoding.wordpress.com/?p=499</guid>
		<description><![CDATA[My hacking attempts with webgl on dart has made me revert to using &#8216;dart:dom&#8217;. While I really enjoy &#8216;dart:html&#8217;, one might not be able to use some of the more important webgl methods. The reason would be the missing constructors on Float32Array, an issue has been filed. For now the following sample with code could [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=499&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My hacking attempts with <a href="http://en.wikipedia.org/wiki/WebGL">webgl</a> on <a href="http://api.dartlang.org/html/WebGLRenderingContext.html">dart</a> has made me revert to using <a href="http://api.dartlang.org/dom.html">&#8216;dart:dom&#8217;</a>. While I really enjoy <a href="http://api.dartlang.org/html.html">&#8216;dart:html&#8217;</a>, one might not be able to use some of the more important <a href="http://api.dartlang.org/html/WebGLRenderingContext.html#bufferData">webgl</a> methods. The reason would be the missing constructors on <a href="http://api.dartlang.org/html/Float32Array.html">Float32Array</a>, an <a href="https://code.google.com/p/dart/issues/detail?id=560">issue</a> has been filed. For now the following <a href="http://financecoding.github.com/dart-webgl-example/">sample</a> with <a href="https://github.com/financeCoding/dart-webgl-example">code</a> could help guide those excited to play with webgl on dart. Thank you <a href="http://learningwebgl.com/blog/?page_id=2">Learning WebGL</a> for the sample <a href="http://learningwebgl.com/blog/?p=28">code</a> work with. </p>
<p><a href="http://financecoding.files.wordpress.com/2012/01/webglscreenshot.png"><img src="http://financecoding.files.wordpress.com/2012/01/webglscreenshot.png?w=630" alt="" title="webglscreenshot"   class="alignnone size-full wp-image-500" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/financecoding.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/financecoding.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/financecoding.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/financecoding.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/financecoding.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/financecoding.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/financecoding.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/financecoding.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/financecoding.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/financecoding.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/financecoding.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/financecoding.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/financecoding.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/financecoding.wordpress.com/499/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=499&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://financecoding.wordpress.com/2012/01/23/dart-the-status-of-webgl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a4934622dd18e3b7d88e3064f457378?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">financecoding</media:title>
		</media:content>

		<media:content url="http://financecoding.files.wordpress.com/2012/01/webglscreenshot.png" medium="image">
			<media:title type="html">webglscreenshot</media:title>
		</media:content>
	</item>
		<item>
		<title>Dart: fillstyle on cavnas</title>
		<link>http://financecoding.wordpress.com/2012/01/22/dart-fillstyle-on-cavnas/</link>
		<comments>http://financecoding.wordpress.com/2012/01/22/dart-fillstyle-on-cavnas/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 05:32:40 +0000</pubDate>
		<dc:creator>financecoding</dc:creator>
				<category><![CDATA[Dart]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Canvas]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://financecoding.wordpress.com/?p=486</guid>
		<description><![CDATA[To be able to draw on canvas in Dart you need two things. A canvas element defined and a canvas rendering context to draw on. In this example we use a CanvasRenderingContext2D to fillstyle a set of rectangles with rgb colors of size x and y. Modified for Dart, mozilla developer example can be done [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=486&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To be able to draw on <a href="http://en.wikipedia.org/wiki/Canvas_element">canvas</a> in <a href="http://www.dartlang.org">Dart</a> you need two things. A canvas element defined and a canvas rendering context to draw on. In this example we use a <a href="http://api.dartlang.org/html/CanvasRenderingContext2D.html">CanvasRenderingContext2D</a> to <a href="http://api.dartlang.org/html/CanvasRenderingContext2D.html#fillStyle">fillstyle</a> a set of <a href="http://api.dartlang.org/html/CanvasRenderingContext2D.html#fillRect">rectangles</a> with rgb colors of size x and y. Modified for Dart, mozilla <a href="https://developer.mozilla.org/samples/canvas-tutorial/4_1_canvas_fillstyle.html">developer</a> example can be done the following way. Check a live example <a href="http://financecoding.github.com/dart-canvas-fillstyle/">here</a>. </p>
<p><pre class="brush: xml;">
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;CanvasFillstyleExample&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;canvas id=&quot;canvas&quot; width=&quot;600&quot; height=&quot;600&quot;&gt;&lt;/canvas&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;CanvasFillstyleExample.dart.app.js&quot;&gt;&lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre></p>
<p><pre class="brush: java;">
  draw() {
    var ctx = document.query('canvas').getContext('2d');
    for (var i=0;i&lt;6;i++){
      for (var j=0;j&lt;6;j++){
        ctx.fillStyle = 'rgb(' + (255-42.5*i).floor().toString() + ',' + 
                         (255-42.5*j).floor().toString() + ',0)';
        ctx.fillRect(j*25,i*25,25,25);
      }
    }
  }
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/financecoding.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/financecoding.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/financecoding.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/financecoding.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/financecoding.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/financecoding.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/financecoding.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/financecoding.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/financecoding.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/financecoding.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/financecoding.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/financecoding.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/financecoding.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/financecoding.wordpress.com/486/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=486&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://financecoding.wordpress.com/2012/01/22/dart-fillstyle-on-cavnas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a4934622dd18e3b7d88e3064f457378?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">financecoding</media:title>
		</media:content>
	</item>
		<item>
		<title>Dart: CSS3 Slider Carousel</title>
		<link>http://financecoding.wordpress.com/2012/01/21/dart-css3-slider-carousel/</link>
		<comments>http://financecoding.wordpress.com/2012/01/21/dart-css3-slider-carousel/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 08:44:34 +0000</pubDate>
		<dc:creator>financecoding</dc:creator>
				<category><![CDATA[Dart]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">https://financecoding.wordpress.com/?p=479</guid>
		<description><![CDATA[The slider carousel by html5rocks now comes with an example in dart. I may have loaded to many  images into the single page, might take a few seconds to load. The source code can be found on github. Dart provides a simpler way to deal with client side programming, cleaner syntax and simple access to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=479&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The slider carousel by <a href="http://studio.html5rocks.com/samples/coverflow/index.html">html5rocks</a> now comes with an example in <a href="http://financecoding.github.com/dart-coverflow-example/index.html">dart</a>. I may have loaded to many  images into the single page, might take a few seconds to load. The source code can be found on <a href="https://github.com/financeCoding/dart-coverflow-example">github</a>. Dart provides a simpler way to deal with client side programming, cleaner syntax and simple access to the DOM. Go Dart!</p>
<p><a href="http://financecoding.github.com/dart-coverflow-example/index.html"><img style="float:left;" title="screenshot.png" src="http://financecoding.files.wordpress.com/2012/01/carouselscreenshot.png?w=554&#038;h=418" border="0" alt="screenshot" width="554" height="418" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/financecoding.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/financecoding.wordpress.com/479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/financecoding.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/financecoding.wordpress.com/479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/financecoding.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/financecoding.wordpress.com/479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/financecoding.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/financecoding.wordpress.com/479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/financecoding.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/financecoding.wordpress.com/479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/financecoding.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/financecoding.wordpress.com/479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/financecoding.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/financecoding.wordpress.com/479/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=479&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://financecoding.wordpress.com/2012/01/21/dart-css3-slider-carousel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a4934622dd18e3b7d88e3064f457378?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">financecoding</media:title>
		</media:content>

		<media:content url="http://financecoding.files.wordpress.com/2012/01/carouselscreenshot.png" medium="image">
			<media:title type="html">screenshot.png</media:title>
		</media:content>
	</item>
		<item>
		<title>Dart: Updated Dartium builds for Linux and Mac</title>
		<link>http://financecoding.wordpress.com/2012/01/20/dart-updated-dartium-builds-for-linux-and-mac/</link>
		<comments>http://financecoding.wordpress.com/2012/01/20/dart-updated-dartium-builds-for-linux-and-mac/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 06:05:33 +0000</pubDate>
		<dc:creator>financecoding</dc:creator>
				<category><![CDATA[Dart]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Dartiu]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://financecoding.wordpress.com/?p=470</guid>
		<description><![CDATA[Following the similar posts as before, you can get the latest Dartium builds for Mac OSX and 32bit Linux here. My public is can be found on pgp.mit.edu. Please contact me if you have any issues, only providing these until Dartium hits the prime time. Keep in mind that nothing is guaranteed to work at [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=470&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following the similar posts as before, you can get the latest Dartium builds for <a href="http://financecoding.wordpress.com/2012/01/16/dartium-mac-osx-build-rev-117836/" target="_blank">Mac OSX</a> and <a href="http://financecoding.wordpress.com/2012/01/11/dartium-build-rev-116980-in-4-easy-steps/" target="_blank">32bit Linux</a> here. My public is can be found on <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x66ED7ACDB02CE8A1" title="financeCoding@gmail.com public key" target="_blank">pgp.mit.edu</a>. Please contact me if you have any issues, only providing these until Dartium hits the prime time. Keep in mind that nothing is guaranteed to work at this point&#8230; but some stuff does.<br />
<pre class="brush: bash;">
wget http://dl.dropbox.com/u/33138127/dartium_macosx/Chromium.app.tar.gz
wget http://dl.dropbox.com/u/33138127/dartium_macosx/Chromium.app.tar.gz.sig
wget http://dl.dropbox.com/u/33138127/dartium_macosx/Chromium.app.tar.gz.md5
wget http://dl.dropbox.com/u/33138127/dartium_macosx/README.txt
gpg --verify Chromium.app.tar.gz.sig Chromium.app.tar.gz
md5sum -c Chromium.app.tar.gz.md5
</pre><br />
<pre class="brush: bash;">
wget http://gsdview.appspot.com/dart-editor-archive-continuous/latest/DartBuild-linux.gtk.x86.zip
wget http://dl.dropbox.com/u/33138127/dartium/dartium-linux-32bit-Release.tar.gz
wget http://dl.dropbox.com/u/33138127/dartium/dartium-linux-32bit-Release.tar.gz.sig
wget http://dl.dropbox.com/u/33138127/dartium/dartium-linux-32bit-Release.tar.gz.md5
wget http://dl.dropbox.com/u/33138127/dartium/README.txt
gpg --verify dartium-linux-32bit-Release.tar.gz.sig dartium-linux-32bit-Release.tar.gz
md5sum -c dartium-linux-32bit-Release.tar.gz.md5
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/financecoding.wordpress.com/470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/financecoding.wordpress.com/470/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/financecoding.wordpress.com/470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/financecoding.wordpress.com/470/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/financecoding.wordpress.com/470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/financecoding.wordpress.com/470/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/financecoding.wordpress.com/470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/financecoding.wordpress.com/470/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/financecoding.wordpress.com/470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/financecoding.wordpress.com/470/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/financecoding.wordpress.com/470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/financecoding.wordpress.com/470/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/financecoding.wordpress.com/470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/financecoding.wordpress.com/470/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=470&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://financecoding.wordpress.com/2012/01/20/dart-updated-dartium-builds-for-linux-and-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a4934622dd18e3b7d88e3064f457378?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">financecoding</media:title>
		</media:content>
	</item>
		<item>
		<title>Dart: Web terminal sample</title>
		<link>http://financecoding.wordpress.com/2012/01/18/dart-web-terminal-sample/</link>
		<comments>http://financecoding.wordpress.com/2012/01/18/dart-web-terminal-sample/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 06:08:54 +0000</pubDate>
		<dc:creator>financecoding</dc:creator>
				<category><![CDATA[Dart]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">https://financecoding.wordpress.com/?p=455</guid>
		<description><![CDATA[I&#8217;ve always been impressed by the css/html5/javascript web terminals that show off the filesystem API. Now Dart has a sample web terminal with minimal implementation. Simply add your command implementations to the Terminal.dart by adding commands to the CMDS list and providing functions to the matching switch statement. With in the next day or so the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=455&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always been impressed by the css/html5/javascript web terminals that show off the <a href="http://www.html5rocks.com/en/tutorials/file/filesystem">filesystem API</a>. Now <a href="http://financecoding.github.com/dart-web-terminal/TerminalExample/">Dart</a> has a sample web terminal with minimal <a href="https://github.com/financeCoding/dart-web-terminal">implementation</a>.</p>
<p><a href="http://financecoding.github.com/dart-web-terminal/TerminalExample/"><img style="display:block;margin-left:auto;margin-right:auto;" title="webterminal.png" src="http://financecoding.files.wordpress.com/2012/01/webterminalwebterminal.png?w=599&#038;h=238" alt="webterminal" width="599" height="238" border="0" /></a></p>
<p>Simply add your command implementations to the <a href="https://github.com/financeCoding/dart-web-terminal/blob/master/TerminalExample/Terminal.dart">Terminal.dart</a> by adding commands to the CMDS list and providing functions to the matching switch statement.</p>
<p><img title="cmds.png" src="http://financecoding.files.wordpress.com/2012/01/webterminalcmds.png?w=442&#038;h=153" alt="cmds" width="442" height="153" border="0" /><br />
<br />
<img title="switch.png" src="http://financecoding.files.wordpress.com/2012/01/webterminalswitch.png?w=600&#038;h=210" alt="switch" width="600" height="210" border="0" /></p>
<p>With in the next day or so the <a href="https://github.com/financeCoding/dart-web-terminal/">dart-web-terminal</a> should include an example with filesystem API in dart.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/financecoding.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/financecoding.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/financecoding.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/financecoding.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/financecoding.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/financecoding.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/financecoding.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/financecoding.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/financecoding.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/financecoding.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/financecoding.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/financecoding.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/financecoding.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/financecoding.wordpress.com/455/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=455&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://financecoding.wordpress.com/2012/01/18/dart-web-terminal-sample/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a4934622dd18e3b7d88e3064f457378?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">financecoding</media:title>
		</media:content>

		<media:content url="http://financecoding.files.wordpress.com/2012/01/webterminalwebterminal.png" medium="image">
			<media:title type="html">webterminal.png</media:title>
		</media:content>

		<media:content url="http://financecoding.files.wordpress.com/2012/01/webterminalcmds.png" medium="image">
			<media:title type="html">cmds.png</media:title>
		</media:content>

		<media:content url="http://financecoding.files.wordpress.com/2012/01/webterminalswitch.png" medium="image">
			<media:title type="html">switch.png</media:title>
		</media:content>
	</item>
		<item>
		<title>Dart: dart:builtin</title>
		<link>http://financecoding.wordpress.com/2012/01/17/dart-dartbuiltin/</link>
		<comments>http://financecoding.wordpress.com/2012/01/17/dart-dartbuiltin/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 07:49:27 +0000</pubDate>
		<dc:creator>financecoding</dc:creator>
				<category><![CDATA[Dart]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Dart Native Access]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">https://financecoding.wordpress.com/?p=424</guid>
		<description><![CDATA[dart:builtin are the runtime libraries available to the DartVM. They provide some of the more system level API you would expect such as streams I/O, filesystem I/O, basic TCP socket I/O, platform information, native process invocation.  Most of these class implementations do call &#8220;native&#8221;, which from the point of view of the DartVM means invoking [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=424&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/builtin_runtime.dart">dart:builtin</a> are the runtime libraries available to the DartVM. They provide some of the more system level API you would expect such as streams I/O, filesystem I/O, basic TCP socket I/O, platform information, native process invocation.  Most of these class implementations do call &#8220;native&#8221;, which from the point of view of the DartVM means invoking native VM <a href="http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/bin/builtin_natives.cc">code</a>. &#8220;native&#8221; tells the VM to look up in a list for the entry that maps to the following argument after &#8220;native&#8221;.</p>
<p><img title="_DirectoryNative.png" src="http://financecoding.files.wordpress.com/2012/01/dartbuiltin_directorynative.png?w=552&#038;h=174" alt="_DirectoryNative" width="552" height="174" border="0" /></p>
<p><img title="nativedirectory.png" src="http://financecoding.files.wordpress.com/2012/01/dartbuiltinnativedirectory.png?w=481&#038;h=257" alt="nativedirectory.png" width="481" height="257" border="0" /></p>
<p>While Dart is still Alpha these builtin may not be written in stone, so try not to depend on them too much. They can and do provide you with some neat access to native functionality you would commonly need when written shell/system applications.</p>
<p>By including #import(&#8216;dart:builtin&#8217;); you can view the builtin dart files from DartEditor. Currently the DartEditor might show  warnings when including this module but runtime should not be affected. The truth of the matter is, if you explicitly include &#8216;dart:builtin&#8217; or not, it is still available to you from implicit inclusion in the DartVM.</p>
<p><img title="dartbuiltin.png" src="http://financecoding.files.wordpress.com/2012/01/dartbuiltindartbuiltin.png?w=194&#038;h=425" alt="dartbuiltin" width="194" height="425" border="0" /></p>
<p>The following should give an idea of what built in objects are accessible and how they may be used. The examples should not be considered best practices, just an idea of how you could use them and that they exist. The code is taken from a sample that can be found on <a href="https://github.com/financeCoding/dart-builtins-example">Github</a></p>
<p><a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/directory.dart#L5">Directory</a><br />
<pre class="brush: java;">
    Directory d;
    if (l.length &gt;= 2) {
      d = new Directory(l[1]);
    } else {
      d = new Directory(&quot;.&quot;);
    }
    d.dirHandler = (var dir) {
      print(&quot;${dir}&quot;);
    };
    d.fileHandler = (var file) {
      print(&quot;${file}&quot;);
    };
    d.list(true);
</pre></p>
<p><a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/file.dart#L17">File</a><br />
<pre class="brush: java;">
    File f = new File(l[0]);
    if (!f.existsSync()) {
      print(&quot;Error: file does not exist&quot;);
      return;
    }
    RandomAccessFile r = f.openSync(FileMode.READ);
    int length = r.lengthSync();
    List buffer = new List(length);
    int readLength = r.readListSync(buffer, 0, length);
    r.close();
    String s = new String.fromCharCodes(buffer);
    print(s);
</pre></p>
<p><a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/input_stream.dart#L171">ChunkedInputStream</a><br />
<pre class="brush: java;">
    ChunkedInputStream chunkedInputStream = new ChunkedInputStream(f.openInputStream(), 16);
    List c = chunkedInputStream.read();
    while(c!=null) {
      StringBuffer sb = new StringBuffer();
      c.forEach((int b) {
        sb.add(&quot;0x&quot;);
        if (b.toRadixString(16).length == 1) {
          sb.add(&quot;0&quot;);
        }
        sb.add(b.toRadixString(16));
        sb.add(&quot; &quot;);
      });
      print(sb.toString());
      c = chunkedInputStream.read();
    }
</pre></p>
<p><a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/input_stream.dart#L37">InputStream</a><br />
<a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/output_stream.dart#L16">OutputStream</a><br />
<pre class="brush: java;">
    File src = new File(arg[1]);
    File dest = new File(arg[2]);
    var srcStream = src.openInputStream();
    var destStream = dest.openOutputStream();
    destStream.write(srcStream.read());
    srcStream.close();
    destStream.close();
</pre></p>
<p><a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/input_stream.dart#L108">StringInputStream</a><br />
<a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/list_stream.dart#L38">DynamicListInputStream</a><br />
<a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/list_stream.dart#L5">ListInputStream</a><br />
<a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/list_stream.dart#L76">ListOutputStream</a></p>
<p><a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/platform.dart#L9">Platform</a><br />
<pre class="brush: java;">
 Platform p = new Platform();
 print('{&quot;operatingSystem&quot;:${p.operatingSystem()},&quot;numberOfProcessors&quot;:${p.numberOfProcessors()},&quot;pathSeparator&quot;:${p.pathSeparator()}}');
</pre></p>
<p><a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/process.dart#L5">Process</a><br />
<pre class="brush: java;">
    Process ps = new Process.start('ps', []);
    StringBuffer messages = new StringBuffer();
    ps.exitHandler = (int status) {
      ps.close();
      print(messages.toString());
    };
    ps.stdout.dataHandler = () =&gt; _readAll(ps.stdout, messages);
    ps.stderr.dataHandler = () =&gt; _readAll(ps.stderr, messages);
</pre></p>
<p><a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/socket.dart#L5">ServerSocket</a><br />
<pre class="brush: java;">
    // initialize the server
    serverSocket = new ServerSocket(host, 0, 5);
    if (serverSocket == null) {
      throw &quot;can't get server socket&quot;;
    }
    serverSocket.connectionHandler = onConnect;
    print(&quot;accepting connections on ${host}:${serverSocket.port}&quot;);
</pre></p>
<p><a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/socket.dart#L35">Socket</a><br />
<pre class="brush: java;">
    sendSocket = new Socket(host, serverSocket.port);
    if (sendSocket == null) {
      throw &quot;can't get send socket&quot;;
    }
    // send first 4 bytes immediately
    for (int i = 0; i &lt; 4; i++) {
      sendByte();
    }
    // send next 4 bytes slowly
    new Timer.repeating((Timer t) {
      sendByte();
      if (bytesSent == bytesTotal) {
        sendSocket.close();
        t.cancel();
        print(&quot;finished sending&quot;);
      }
    }, 500);
</pre></p>
<p><a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/socket_stream.dart#L5">SocketInputStream</a><br />
<a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/socket_stream.dart#L78">SocketOutputStream</a></p>
<p><a href="https://github.com/financeCoding/dart-builtins-example/blob/master/builtin/runtime/timer.dart#L5">Timer</a><br />
<pre class="brush: java;">
&lt;pre&gt;    if (l.length &gt;= 2) {
      try {
        milliSeconds = (Math.parseInt(l[1]).abs()*milliSeconds);
      } catch (BadNumberFormatException ex) {}
    }
    timer = new Timer((var t) {
      print(&quot;\nTime elapsed on Timer&quot;);
    }, milliSeconds);
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/financecoding.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/financecoding.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/financecoding.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/financecoding.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/financecoding.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/financecoding.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/financecoding.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/financecoding.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/financecoding.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/financecoding.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/financecoding.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/financecoding.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/financecoding.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/financecoding.wordpress.com/424/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=financecoding.wordpress.com&amp;blog=18608612&amp;post=424&amp;subd=financecoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://financecoding.wordpress.com/2012/01/17/dart-dartbuiltin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a4934622dd18e3b7d88e3064f457378?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">financecoding</media:title>
		</media:content>

		<media:content url="http://financecoding.files.wordpress.com/2012/01/dartbuiltin_directorynative.png" medium="image">
			<media:title type="html">_DirectoryNative.png</media:title>
		</media:content>

		<media:content url="http://financecoding.files.wordpress.com/2012/01/dartbuiltinnativedirectory.png" medium="image">
			<media:title type="html">nativedirectory.png</media:title>
		</media:content>

		<media:content url="http://financecoding.files.wordpress.com/2012/01/dartbuiltindartbuiltin.png" medium="image">
			<media:title type="html">dartbuiltin.png</media:title>
		</media:content>
	</item>
	</channel>
</rss>
