Appspot - un-pythonic.appspot.com - Toward a Secret Sky

Latest News:

Building a Haskell web app with Snap: Snap quickstart guide 26 Nov 2012 | 05:44 am

I'm a Haskell newbie, and it's fun. I thought I'd document my adventures. Starting with my attempt to build a web app. I could have spent months picking a web framework. There are decent comparisons ...

Keeping tallies in Python 26 Jul 2012 | 07:47 am

Python's collections module has some of the most consistently useful collection data structures you will need for everyday programming. Here's one I didn't know about: collections.CounterĀ (Python 2.7...

Watching a file system directory with inotify and Linux 19 Jul 2012 | 08:44 am

"Inotify is a Linux kernel subsystem that acts to extend filesystems to notice changes to the filesystem, and report those changes to applications." [Citation Needed]. You can use this service from Py...

Making two instances behave as the same instance in Python 18 Jul 2012 | 12:04 am

The use-case is this: So we want to be able to check an instance's presence inside a dict, set, or anything that hashes an instance for a key. You need two things: __hash__ method which returns an ...

Calling the Google Drive API and other Google APIs asynchronously with Twisted 6 Jul 2012 | 12:27 pm

You may know that the Google API Python Client is built on httplib2. This is a reasonable general choice, but the tight coupling is unhelpful in situations where a different HTTP library, or an entire...

Getting the command line arguments in Dart (vm) 11 Dec 2011 | 01:14 pm

Another hidden gem in the Dart library today, can you tell I am trying to write a command line thingy? Reading the command line options is really easy. Let us play: Nothing to add, I think, except c...

OAuth2.0 with Dart in a web browser 10 Dec 2011 | 01:36 am

I was trying to access a Google GData API using Dart in a browser. More for fun than profit, but it posed a few challenges, so I thought I should document them. The first step was to Authorize using ...

Running a subprocess with Dart and reading its output 9 Dec 2011 | 12:54 pm

Starting a foreign program, and reading its standard output stream is useful, and here is an example of listing the root directory. Notes: Argument list does not include the executable name like it ...

Reading a file as a String in Dart 9 Dec 2011 | 04:41 am

It took me a minute to work out how to read a file in Dart (vm), so here it is for posterity: Notes: A StringInputStream reads strings from an InputStream A FileInputStream is an implementor of Inp...

Things I love about Dart (so far) 25 Nov 2011 | 06:10 am

I've only been using DartĀ for a few hours in total, but already there are things to love about it. Forget the obvious "It's not JavaScript", because I don't hate JS, and if I did hate JS it would be b...

Recently parsed news:

Recent searches: