A reblog via Kevin Kelly. (more…)
Tag: coding
M out of N
c++ boost circular buffer and stl map and set example
In an effort to become more familiar with boost data structures (as opposed to homebrewed ones), I took a crack at M out of N validator. It checks the last N updates and determines if M passed a certain criteria. Not all members are updated at each interval, and they are identified by an ID pair of two longs.
Imagebrowser Rails app ported from 2.3.4 to 3.1beta
Rails 3.1beta deployed to Heroku from your iPhone
The tools:
- Local shell, LogMeIn or an ssh shell to a terminal system on your phone/tablet
- a system with git and heroku (I haven’t tried installing these on my phone)
- Internet
- DropBox and DropText for easy mobile editing. Alternatively you could use github as a web editing/auto-commiting platform
Twitter’s List and Search APIs leave much to be desired
Like polishing up an old wooden rocking chair, over the past several evenings I’ve been migrating an old Rails application. I was able to get the 3.1beta Rails app (sweet updates) working locally without much trouble. But it’s the first Heroku app I’ve migrated from the 1.8.7 stack to 1.9.2 Badious Bamboo, and it’s not quite ready for prime time.
A Tale of Two Simulations
Poisoned by Pointers
The past few days at work I’ve been wrestling with an unruly1 interface which bridges two simulation frameworks. At the interface boundary, our local libraries have been pruned down to a few dozen hierarchical object pointers in nested objects, coupled with nontrivial initialization of state of each object. The sim I’m integrating with is characterized as a mini-soa2 which leverages a modified adevs event simulator as a driver and communication hub. With a rapidly approaching deadline I have taken to coding all sorts of hacks3 that I never would have implemented on calmer days. Alas, the calm days are far fewer than the hectic ones with little hope of change.
The Four Horsemen of Rails 3.1beta, Coffee-Script, jQuery, SCSS and Assets
A brief description of CoffeeScript, jQuery, SCSS and Assets
CoffeeScript is a translation and JavaScript with additional features to ease development, code readability, and functionality. It has all the best features of JavaScript as it IS JavaScript, but adds on essential development perks like terse syntax, local variable scoping, and utilities.
Duostack vs Nodester Node.js Hosting, Day Zero
This morning I’ll take a peak at two competing node.js hosting providers. Both Duostack and Nodester were straightforward to install and configure, if only other configurations were so easy. My first impression was that Duostack gets the slight edge due to supporting coffee-script out of the box, but Nodester get’s the service award and mentioned that coffee-script support is coming soon.
Wakeup with a fresh cup of CoffeeScript
I like programming languages with rich object models. I love dynamic languages. Sure, minimizing execution time and resource optimization may demand speed, and c variants and java (mirah!) are screamers. Yet after having coded heavily in one of these languages for years, it’s a breath of fresh air letting go of the training wheels of type safety and discarding the mental overhead of complex inheritance trees. Verbosity be damned! (more…)



