David Marr

  • Archive
  • RSS
  • Ask me anything
laughingsquid:

Native Foods of San Francisco
Pop-upView Separately

laughingsquid:

Native Foods of San Francisco

Source: thebolditalic.com

  • 5 months ago > laughingsquid
  • 112
  • Permalink
  • Share
    Tweet

Google Swiffy

  • 7 months ago
  • Permalink
  • Share
    Tweet

Debugging with NodeJS and Expresso

NodeJS

git clone https://github.com/joyent/node.git

Expresso

git clone https://github.com/visionmedia/expresso.git

After installing NodeJS and Expresso you will have to make a change to your Expresso file to allow for debugging.

Add the following statement to your code to set a breakpoint in the debugger:

debugger;

Next, run the following to start up the NodeJS debugger and use Expresso for your unit tests.

Using TextMate

mate $(which expresso)

Using vim

vim $(which expresso)

Change the first line to read:

#!/usr/bin/env node debug

Executing your tests with expresso now uses the node debugger.*

expresso test.js

For those looking for a browser based debugging environment, check out node-inspector.

Node Inspector

git clone https://github.com/dannycoates/node-inspector.git

To get this to work with Expresso, I had to change the hashbang to be:

#!/usr/bin/env node —debug-brk
node-inspector &

Now, running expresso test.js will open your file in a web browser for debugging. You will have to point your browser to node-inspector and you can explore your breakpoints and watch variables just like you were in WebKit.

Happy coding, twitternets!

* There are mixed feelings about this in the develosphere, as debugging unit tests is a bit like betting on black /and/ red. I am illustrating how to do it, not advocating its use. Personally I think its better to rely on the unit testing framework to surface errors but stepping through with debugger; statements is sometimes the only way to dive deep into the problem.

    • #nodejs
  • 7 months ago
  • 4
  • Permalink
  • Share
    Tweet
Screenshot of a tree I built in the #creativejs class with @seb_ly.
Pop-upView Separately

Screenshot of a tree I built in the #creativejs class with @seb_ly.

  • 7 months ago
  • Permalink
  • Share
    Tweet
Kinect capture from Cinder. Looking into finding a way recognize the skeletal composition of the image. 
Pop-upView Separately

Kinect capture from Cinder. Looking into finding a way recognize the skeletal composition of the image. 

  • 8 months ago
  • Permalink
  • Share
    Tweet
@brunofonzi solves some reoccurring developer issues with creating new projects and keeping up-to-date with their dependencies. Worth checking out and can apply to non-flash projects as well.
Lessons learned; starting a new project base42.nl

Source: blog.base42.nl

  • 8 months ago
  • Permalink
  • Share
    Tweet
motherjones:

doodleofboredom:

Barack Obama’s signature is totally a cartoon baby Tyrannosaurus playing with a ball of yarn. 

Oh, goodness.
Pop-upView Separately

motherjones:

doodleofboredom:

Barack Obama’s signature is totally a cartoon baby Tyrannosaurus playing with a ball of yarn. 

Oh, goodness.

Source: doodleofboredom

  • 8 months ago > doodleofboredom
  • 14746
  • Permalink
  • Share
    Tweet
View Separately

(via einmalistkeinmaleinmalistkeinmal)

Source: clock3.com

  • 8 months ago > einmalistkeinmaleinmalistkeinmal
  • 350
  • Permalink
  • Share
    Tweet
ilikeartalot:

Peaceful Days by Kokuu
View Separately

ilikeartalot:

Peaceful Days by Kokuu

(via ilikeartalot-deactivated2011102)

  • 8 months ago > ilikeartalot-deactivated2011102
  • 786
  • Permalink
  • Share
    Tweet
americandrink:

The Graffiti Cocktail Shaker by William Kellog
($20 at Amazon)
Pop-upView Separately

americandrink:

The Graffiti Cocktail Shaker by William Kellog

($20 at Amazon)

Source: americandrink

  • 8 months ago > americandrink
  • 34
  • Permalink
  • Share
    Tweet
← Newer • Older →
Page 1 of 4

About

Check out my about.me profile!

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr