David Marr

Mar 02

Without a future for growth and development, romantic love can extend only so far. Its distinction from, say, a friendship with benefits begins to become effaced.

There is, of course, in all romantic love the initial infatuation, which rarely lasts. But if the love is to remain romantic, that infatuation must evolve into a longer-term intensity, even if a quiet one, that nourishes and is nourished by the common engagements and projects undertaken over time.

[There] is not merely the necessity of time itself for love’s intensity but the necessity of a specific kind of time: time for development.

” — The New York Times’ philosophy blog tackles the interplay of love and death. See also: 5 essential books on the psychology of love. (via explore-blog)

(via explore-blog)

Feb 14

Monitor your Router with Cacti

Devices attached to your router in some way — whether wired or wireless, use bandwidth on your network. Most homes have plenty of devices that are always connected and some of which connect periodically (Xbox, Wireless printer, etc.) 

Cacti is a tool for monitoring, amongst other things, network usage. There are other tools for the job (mrtg, AirPort Utility, etc.,) however, Cacti feels the best overall to me.

Just starting out with the app, so I only have a couple of hours of data. Here is what you can expect to see after completing this tutorial:

Cacti traffic graph

The steps below are for OS X using Homebrew, follow this link for instructions to install it.

  1. brew install mysql
  2. brew install rrdtool
  3. brew install net-snmp
  4. Download Cacti

Next, copy the folder above to your /Library/WebServer/Documents folder. If you’d like to be able to see the site at /cacti, just create a symlink:

cd /Library/WebServer/Documents && ln -s cacti-0.8.7i cacti

Open up the default cacti config and update your database connection information. The file is found here: /Library/WebServer/Documents/cacti/include/config.php.

Truc Using ‘localhost’ for $database_hostname did not work for me. Use ‘127.0.0.1’ if you are having trouble connecting.

Browse to http://localhost/cacti and you should be well on your way. The first thing to do is setting up devices. Click the “Devices” link on the left after going through the file locations.

Notes:

Feb 13

laughingsquid:

non-committal valentines

laughingsquid:

non-committal valentines

Aug 23

laughingsquid:

Native Foods of San Francisco

laughingsquid:

Native Foods of San Francisco

Jun 28

Google Swiffy

Jun 16

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.

Jun 07

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

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

Jun 06

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

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

May 27

“@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

May 25

motherjones:

doodleofboredom:

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

Oh, goodness.

motherjones:

doodleofboredom:

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

Oh, goodness.