Michael Haubenwallner #dartlanghttps://www.googleapis.com/plus/v1/people/108931164613660994654/activities/public?2012-02-20T10:22:48.000ZMichael Haubenwallnerhttps://plus.google.com/108931164613660994654/aboutApplication Developer#dartlang If you are looking for a simple local webserver there is always python -m SimpleHTTPSer...2012-02-20T10:22:48.000Z2012-02-20T10:22:48.000ZMichael Haubenwallnerhttps://plus.google.com/108931164613660994654tag:plus.google.com,2012-02-20:/plus.google.com/108931164613660994654/posts/fvBUY3DrNHZG+ post, published at 2012-02-20, file under dartlang
If you are looking for a simple local webserver there is always
python -m SimpleHTTPServer
Opens a webserver for static files at port 8000, document root is the current directory.
In your Dart editor open 'Tools > Manage launches...', at 'Launch Target > URL' insert localhost:8000.
(Dart Editor Build 4349)]]>#dartlang #files Class NodeFileSystem File system implementation using nodejs api's (for self-hos...2012-01-29T02:48:07.000Z2012-01-29T02:48:07.000ZMichael Haubenwallnerhttps://plus.google.com/108931164613660994654tag:plus.google.com,2012-01-29:/plus.google.com/108931164613660994654/posts/GepmhLwac5YG+ post, published at 2012-01-29, file under dartlang, files
Class NodeFileSystem File system implementation using nodejs api's (for self-hosted compiler).
An easy method of synchronous file reading/writing ...
]]>#dartlang #searching A new set of docs is available at code.d2m.at/dartlang/dartdocs/latest/ Ther...2012-01-22T12:17:30.000Z2012-01-22T12:17:30.000ZMichael Haubenwallnerhttps://plus.google.com/108931164613660994654tag:plus.google.com,2012-01-22:/plus.google.com/108931164613660994654/posts/hDP7naDa2DDG+ post, published at 2012-01-22, file under dartlang, searching
Changes +Bob Nystrom checked in cool changes to dartdoc in bleeding_edge on Friday. In short, he split the docs creation into 2 modes: a static mode, creating the whole docs in HTML and a live-nav mode, creating all but the navigation in HTML and rendering the left column navigation bar at runtime - a big reduction in overall documentation file size. With a small downside: the live navigation data is read from a JSON file though an XMLHTTPRequest with every new page, thus you need a webserver to render the live nav and you experience a page flicker because of the extra request.
More changes I wanted to integrate the search functionality with the new rendering modes. After all there now were 4 possible combinations the app needs to handle in code: with/without live-nav with/without search functionality. But integration went smooth. It took an afternoon and i pushed the results to my github mirror ( github.com/d2m/dartdoc ) of bleeding_edge dartdoc.
Did i already mention that dart is a fantastic environment to do things like that?
Even more changes The page flicker made me crazy - i decided to remove the XMLHTTPRequest and serialize the navigation data to a dart file (as i did before with the search data). There is a 'serialize map to dart' method now that takes a Map and writes its contents to a dart file for further import/source into other files. tl;dr the page flicker is gone and live-nav mode works from the filesystem again - see yourself at code.d2m.at/dartlang/dartdocs/latest/
github The code is in github, based on bleeding_edge r3445, i hope to get the changes back into svn
Code is working ok in recent Chrome and what is even more cool, it works on my HTC Desire running Android 2.2 and my Galaxy Tab running Android 3.2. Recent FF has minor troubles again. I use a pretty fast laptop and UI experience is fine, is it fast enough for you too?
]]>#dartlang #gplus #feed Atom feed from G+ postings I switched my blog to Google+ in July last year...2012-01-18T11:47:58.000Z2012-01-18T11:47:58.000ZMichael Haubenwallnerhttps://plus.google.com/108931164613660994654tag:plus.google.com,2012-01-18:/plus.google.com/108931164613660994654/posts/b7axFqEsqFvG+ post, published at 2012-01-18, file under dartlang, gplus, feed
Atom feed from G+ postings I switched my blog to Google+ in July last year and was happy - and more than ever - blogging since then. The only thing i missed was an RSS/Atom feed. Some time later the great plusfeed.appspot.com service appeared, but was shut-down in December. While working on the search-features for dart documentation and waiting for a small change in bleeding_edge to publish the search library i had some time to touch the feed issue again.
Dart, gplus, feedgenerator You need a stack of libraries to get that done: - gplus.dart requests the public activity feed for a certain user and stores the JSON data into an object structure. - feedgenerator.dart is a port from python webhelpers/feedgenerator package. - gplus2feed.dart finally creates an atom feed and writes it to disk.
There is no way to create a server side HTTPClient connection with dart atm, so a shell and a python script are needed to glue that thing together ( if you need that functionality too please star dartbug.com/1182 )
]]>#dartlang #search hacking on dartdocs update A new set of docs is available at http://code.d2m.at...2012-01-11T05:25:00.000Z2012-01-11T05:25:00.000ZMichael Haubenwallnerhttps://plus.google.com/108931164613660994654tag:plus.google.com,2012-01-11:/plus.google.com/108931164613660994654/posts/P381YqpoitBG+ post, published at 2012-01-11, file under dartlang, search
rewriting was fun I had a great time iterating the current release, there are quite a few changes since last week.
reducing resources In the last release the data needed for searching was loaded from a JSON file; the combined JSON and JS files were more than 2.6MB in size. While parsing the JSON data was fast in Chrome, FF turned out to be a lot slower. The searchable data is now serialized to a dart file, sourced and compiled into a 900KB JS file - a big gain in size and speed. Once minfrog creates optimized, minified code the filesize will drop another 50%.
reusing existing docs The search results are applied to the existing documentation files by filtering matching member entries and hiding other information. By that it is possible to use the searchable docs from the filesystem or with a static webserver.
works in recent chrome :) fails in recent FF :( must be due to compiler implementation details
Give it a try and tell me what you think.
]]>#dartlang #search hacking on dartdocs update you now search (by default) for the exact term in th...2012-01-04T13:18:47.000Z2012-01-04T13:18:47.000ZMichael Haubenwallnerhttps://plus.google.com/108931164613660994654tag:plus.google.com,2012-01-04:/plus.google.com/108931164613660994654/posts/iYuv9LoVUkpG+ post, published at 2012-01-04, file under dartlang, search
hacking on dartdocs update you now search (by default) for the exact term in the currently selected library, both wildcard matching and searching the whole dartdocs is selectable through the top-right checkboxes. Search term and selections are stored in cookies.
]]>#dartlang #repl dart checkout includes a command line REPL. This is nice if you want to test a fe...2012-01-03T09:23:25.000Z2012-01-03T09:23:25.000ZMichael Haubenwallnerhttps://plus.google.com/108931164613660994654tag:plus.google.com,2012-01-03:/plus.google.com/108931164613660994654/posts/2upCNiCDgSaG+ post, published at 2012-01-03, file under dartlang, repl
dart checkout includes a command line REPL. This is nice if you want to test a few things without a browser at hand.
Description: install and run the dart command line REPL. Public Clone URL: git://gist.github.com/1554220.git. Give this clone URL to anyone. git clone git://gist.github.com/1554220.git gist-1554220. E...
]]>#dartlang #search Weekend hacking on dartdocs, adding a search functionality was fun - the modifi...2012-01-01T23:13:03.000Z2012-01-01T23:13:03.000ZMichael Haubenwallnerhttps://plus.google.com/108931164613660994654tag:plus.google.com,2012-01-01:/plus.google.com/108931164613660994654/posts/AwBJwmMVTrnG+ post, published at 2012-01-01, file under dartlang, search
Searching Search terms include library, class, interface, variable, field, function and method names. Searching is case insensitive, you can choose exact or substring matching.
Performance Search data is stored in a JSON file, loading the 2MB file is fast with Chrome, parsing takes under a second. Subsequent requests use a cached copy of the data. Using a recent Firefox is slower, parsing the JSON data takes longer.
Prototype This is an example implementation of searching the dart documentation - to start a discussion on adding/changing search features and data structure. Comments?
]]>#dartlang
Keep your dart dev environment (bleeding_edge) up-to-date2012-01-01T08:57:33.000Z2012-01-01T08:57:33.000ZMichael Haubenwallnerhttps://plus.google.com/108931164613660994654tag:plus.google.com,2012-01-01:/plus.google.com/108931164613660994654/posts/5B18LKYMPegG+ post, published at 2012-01-01, file under dartlang
Keep your dart dev environment (bleeding_edge) up-to-date
gist. Login; Signup for a GitHub Account. New Gist; All Gists; Back to GitHub. d2m (owner). Revisions. 4f086d d2m January 01, 2012. gist: 1546778 Download_button fork. public. Private Gist. All pages ...
]]>#dartlang2011-12-22T06:44:19.000Z2011-12-22T06:44:19.000ZMichael Haubenwallnerhttps://plus.google.com/108931164613660994654tag:plus.google.com,2011-12-22:/plus.google.com/108931164613660994654/posts/RJV6j7qfGad Dart API Reference
Dart API Reference. Libraries. dart:core. dart:coreimpl. dom. html. htmlimpl. json. Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, ...
]]>#dartlang #tdd
Nice start of TDD in dart, source at https://github.com/masaru-b-cl/DartUnit2011-12-18T11:57:58.000Z2011-12-18T11:57:58.000ZMichael Haubenwallnerhttps://plus.google.com/108931164613660994654tag:plus.google.com,2011-12-18:/plus.google.com/108931164613660994654/posts/FnpJTVB8zcNG+ post, published at 2011-12-18, file under dartlang, tdd