dmcdunn's posterous

less than a blog, more than a blank page

  • Node.js Installation

    • 25 Jan 2012
    • 0 Responses
    •  views
    • Edit
    • Delete
    • Tags
    • Autopost

    I played with node for about a day, around a year ago. Needed to clean that up and do a fresh install. Node's young, and will require more frequent upkeep. Here's my notes to myself during the installation.
    *note there's multiple methods to install node. I wanted less 'magic', so I avoided installing via homebrew or such.

     

    Installation Instructions can be found at their github (https://github.com/joyent/node/wiki/Installation). I choose 'install from the repo' version.  

    "Or, if youd like to install from the repository:
    git clone https://github.com/joyent/node.git
    cd node
    git checkout v0.6.7
    ./configure
    make
    sudo make install"

     

    So, to do this, find any nice location to make a temporary folder to put the repo clone (in this case, the home folder is the location, and swinstall is the temporary drop location):

    $ cd ~
    $ mkdir swinstall

    * this will be a worthless folder soon, but first go in there and grab the repo from git:

    $ cd swinstall/
    $ git clone https://github.com/joyent/node.git

    //Cloning into node...
    //remote: Counting objects: 58528, done.
    //remote: Compressing objects: 100% (15425/15425), done.
    //remote: Total 58528 (delta 45817), reused 54463 (delta 42254)
    //Receiving objects: 100% (58528/58528), 44.28 MiB | 1.25 MiB/s, done.
    //Resolving deltas: 100% (45817/45817), done.

     

    Now that you have a copy of the node repo, navigate into the new node folder to 'checkout' the version you'd like.

    Note - you can grab any version of node want. You can browse the versions by using 'git branch -a' from within the node folder:

    $ git branch -a 

    //(no branch)
    //master
    //remotes/origin/HEAD -> origin/master
    //remotes/origin/cryptopad
    //remotes/origin/debugProcess
    //remotes/origin/dlopen
    //remotes/origin/domains
    //remotes/origin/domains2
    //remotes/origin/eventsource
    //remotes/origin/hash-rand-0.6
    //remotes/origin/http_agent
    //remotes/origin/isolates
    //remotes/origin/isolates2
    //remotes/origin/issue2061//remotes/origin/master
    //remotes/origin/new-tty-binding
    //remotes/origin/pathfix
    //remotes/origin/pointer_bindings
    //remotes/origin/reload
    //remotes/origin/speed
    //remotes/origin/v0.2
    //remotes/origin/v0.4
    //remotes/origin/v0.6
    //remotes/origin/v8-3.1
    //remotes/origin/v8upgrade
    //remotes/origin/writev
    //remotes/origin/writev2

    However, following the directions we want v0.6.7

    $ cd node/
    $ git checkout v0.6.7

    //Note: checking out 'v0.6.7'....
    // And a bunch of info about being in a detached HEAD state.
    //...
    //configure' finished successfully (2.558s)

     

    After the repo is checked out, you need to configure it. Configure checks your local system and makes sure you have what it needs to be happy.

    $ ./configure

    //localhost:node damion$ ./configure
    //Checking for program g++ or c++          : /usr/bin/g++ 
    //Checking for program cpp                 : /usr/bin/cpp 
    //Checking for program ar                  : /usr/bin/ar 
    //Checking for program ranlib              : /usr/bin/ranlib 
    //Checking for g++                         : ok  
    //Checking for program gcc or cc           : /usr/bin/gcc 
    //Checking for gcc                         : ok  
    //Checking for library dl                  : yes 
    //Checking for openssl                     : not found 
    //Checking for function SSL_library_init   : yes 
    //Checking for header openssl/crypto.h     : yes 
    //Checking for library util                : yes 
    //Checking for library rt                  : not found 
    //Checking for fdatasync(2) with c++       : no 
    //'configure' finished successfully (2.558s)

     

    Once configure checks runs, and need to run 'make' which compiles node source into an executible file, ready for installation.

    $ make

     

    //Waf: Entering directory...
    //DEST_OS: darwin
    //DEST_CPU: x64
    //...
    //...
    //'build' finished successfully (4m33.951s)

     

    Almost there. Now you have the right version, it able to be run on your machine, and it has been compiled. All thats left is to actually install it.

    $ sudo make install
    Password:

    //Waf: Entering directory...
    //DEST_OS: darwin
    //DEST_CPU: x64
    //...
    //...
    //'install' finished successfully (0.938s)

     

    Tada! Node is now installed in the /usr/local/lib directory. You can check using:

    $ which node

    ///usr/local/bin/node

     

    To check that the version is definately not the ancient version you downloaded a year ago and played with for a day, you can use:

    $ node -v

    //v0.6.7

     

     

    • Tweet
  • Finished Codecademy (for now)

    • 25 Jan 2012
    • 0 Responses
    •  views
    • Edit
    • Delete
    • Tags
    • Autopost

    Codecademy is a fantastic browser-based javascript eduction site, and one of the reasons I started with Javascript (while they're gearing up for Ruby & Python, only js courses are currently offered). Courses are short & sweet, with good feedback along the way.

    From a ux standpoint - the site's wonderful. Gaming mechanics spur you on and a clear progression path make it easily addicting and rewarding. (It's social too, but that's less special) Most impressive, however, is how welcoming the site is for new visitors. No signup required to get going, and the homepage is the app... start typing! A couple yourName.length's later, and you're invested. (THEN register to save your progress). Brilliant.

    All in all, Codecademy took about a week of evenings to complete. They're still young, so by the time anyone reads this, I'm sure it will take longer. While going through the courses, I would suggest keeping a real text-editor handy (again, I'm loving sublime). I tried to avoid copying their starter code, instead re-writing from scratch in the editor and pasting it into codecademy. Also, I kept another browser window handy with the javascript console open (cmd+option+j in chrome on a mac). The chrome console sometimes offered more helpful error messages while trying to figure out what you did wrong. Also, the js console lets you go beyond the lesson, testing things that would fail in codecademy.. 

    The Hits Keep on Coming.
    While I finished everything today, not only does Codecademy keep adding courses, but they're supporting another initiative called Code Year, which offers interactive programming lessons every monday. They'll be plenty more to keep hitting those skillz.

    Now, I realize, everything has been 101, serious-noob level as of yet. I won't have a useful skill for months to come. But the point really is OK - then start now for goodness sake!  

     

    Second Thoughts:

    I'm still don't know if JS was the quickest path to 'making stuff do stuff'. I have the most experience in rails, the most opportunity in django, and I'm usually horking around in anything other but javascript (today was PHP, plus jquery lets me avoid any real work in javascript). However, JS is quickly becoming 'mine' because I'm not producing in it, it gives me a sense of 'play time', a sense of 'my time'. Not sure it's right, but that's a question tomorrow will answer.

    I believe the future is data, and I think node/js instinctively gets that. As screens fracture (mobile, tablet, e-reader, web, tv...) we are going to need to serve up the same data across ours and many others' cocofony of systems. I need to learn to serve and consume services, and kill the page-load paradigm. Sure other languages can, but node seems to have that philosophy baked-in.

     

    • Tweet
  • For Realz y'all. I am going to code this time.

    • 24 Jan 2012
    • 0 Responses
    •  views
    • Edit
    • Delete
    • Tags
    • Autopost

    For years n years, I've been on the front-side of the development seesaw. I could read code & modify other people's existng code, but I never was good at going from zero to hero. To get the seesaw to work, you need a back-end crew and front-end (make it purdy) folks. A good plan doesn't hurt either.

    There's no "I" in team, but conversly; there's no team with just an "I". I'm sick, dead sick of needing others to seesaw. I like teams, I'm just done being dead-in-the-water without one.

    For the record, I don't mean html and css when I say 'code'. Nor do I particularly mean java or .net. I mean "whatever skills it takes to make stuff, do stuff." If you can make great suff in joomla, more power to you. If you like a framework like rails or django - groovy. If it's iOS you want and you need Appcelerator - anything works, as long as you can get your ideas out to market.

    I've had a steady skills decline, spending more and more of my day in email...generally I get dumber everytime I touch a microsoft app. Meta-work (work about work) has got to stop. I'm sick of requirement docs, I'm sick of wireframes. " Documenting bugs is not a job I want (tho I love you skitch).

    I'm happy in html and css, I can't do without Photoshop, and I'm a mofo in Illustrator... this isn't going to be about those. This is about bare-bones noob-level programming. How to make stuff do stuff.

    To start off:
    I'll need a text editor - A couple of days ago I traded in TextMate (which is great) for Sublime. I'm loving it so far.  

    Which language?
    I've worked in rails/ruby, python/django, java, .net, php, coldfusion, asp, etc.. but where to plant the flag? I really like rails/ruby (miss the console), and have active development in django/python. Wordpress, language X - I'm happy... But as a baseline choice - I'm staring with javascript. 

    Why javascript? 
    Javacript has gone from a snippet-stealer to a first-class citizen. I'm planning to work backwards to python, starting with js 101, then node. I initiallly started in Python, but I was fighting the sytax ('whitespace is cool'). JS has been noob-friendly, will suffice on the server-side, and will have benefits on the client-side (no I'm not mentioning jquery).

    So. starting out... JS 101. I'm using codecadmy. I'm avoiding jquery, side-stepping helpers, and really just doing the dishes when it comes to learning how to code.

    Interested or not, it hardly matters. This is what I'm doing, and the world can choose to care. But on the off-chance there was another architect struggling with a dilbert-level existence, I thought i'd share.

    • Tweet
  • Popcock

    • 12 Apr 2011
    • 0 Responses
    •  views
    • Edit
    • Delete
    • Tags
    • Autopost
    Media_httpimagesinsta_cejhd
    • Tweet
  • Just handed a bag of falafel chips–they're awesome! Now if someone could hand me some hummas..

    • 24 Sep 2010
    • 0 Responses
    •  views
    • Edit
    • Delete
    • Tags
    • Autopost

    Photo

    Man, these are good.

    Organic, don't see wheat or potato for you allergy sufferers. I don't know where to get em, but here's their site: http://www.flamousbrands.com/products.php

     

    Crap! its an 8hr drive to the closest place to buy a bag. They're definitely not going to last that long.

    • Tweet
  • Mmm. Goat cheese caramel cashew gelato, at black dog

    • 9 Aug 2010
    • 0 Responses
    •  views
    • Edit
    • Delete
    • Tags
    • Autopost

    Photo

    Beyond heavenly

    http://www.blackdogchicago.com

     

    Update: The owner was just interviewed by GrubStreet:

    http://chicago.grubstreet.com/2010/08/jessica_oloroso_followed_her_p.html

    • Tweet
  • Next snack: Mo's Bacon (chocolate) Bar

    • 5 Aug 2010
    • 0 Responses
    •  views
    • Edit
    • Delete
    • Tags
    • Autopost

    Photo

     

    I'm not sure what I think of this... There's four of us trying it at the moment.

    Bad, no.. strange yes. There's immediate hit of fat–the lard-type fat, then it transforms to 'doggie treat'.... then surprisingly, is quite good! Once everything melts together, the salty, mapley, chocolatey tastes are quite satisfying.

    You just have to get over the initial taste-bud confusion.

     

    You can get your very own here: http://www.vosgeschocolate.com/product/bacon_exotic_candy_bar/exotic_candy_bars

    • Tweet
  • What do you fear

    • 5 Aug 2010
    • 0 Responses
    •  views
    • Edit
    • Delete
    • Tags
    • Autopost
    Photo

    Sent from my iPhone

    • Tweet
  • Book Rec's from friends

    • 13 Jul 2010
    • 0 Responses
    •  views
    • Edit
    • Delete
    • Tags
    • Autopost
    The Road | Cormac McCarthy | 2006
    apocalyptic dad/son jaunt to somewhere warm. (3votes!)
    http://en.wikipedia.org/wiki/The_Road
    http://www.amazon.com/Road-Cormac-McCarthy/dp/0307265439


    The Color Purple | Oprah | 1982
    Female black life in the 30's. Pulitzer winner
    http://en.wikipedia.org/wiki/The_Color_Purple
    http://www.amazon.com/Color-Purple-Musical-Tie/dp/0156031825/ref=ntt_at_ep_dpt_1


    The Falls | Joyce Carol Oates | 2004
    50's Husband falls into Niagra, lives some life
    http://www.amazon.com/Falls-Novel-Joyce-Carol-Oates/dp/0060722282


    unbearable lightness of being | Milan Kundera | 1984
    Umm...its about stuff, 60's Czech eastern brainy, phosphy, thinky stuff
    http://en.wikipedia.org/wiki/Unbearable_lightness_of_being
    http://www.amazon.com/Unbearable-Lightness-Being-Novel/dp/0061148520/ref=sr_1...

    A Dirty Job | Christopher Moore | 2006
    absurd/human, beta-male thrift store owner retrieves/protects souls
    from the underworld
    http://en.wikipedia.org/wiki/A_Dirty_Job
    http://www.amazon.com/Dirty-Job-Novel-Christopher-Moore/dp/0060590289/ref=sr_...


    The Girl With the Dragon Tattoo | Stieg Larsson | 2005 (swedish), 2008 UK
    europe best seller, murder mystery series. International,
    generational. (Swedish)
    http://en.wikipedia.org/wiki/Girl_with_The_Dragon_Tattoo
    http://www.amazon.com/Girl-Dragon-Tattoo-Vintage/dp/0307454541/ref=sr_1_1?ie=...


    The World Without Us | Alan Weisman | 2007
    nonfiction. environmental. What happens if everybody just left.
    http://en.wikipedia.org/wiki/The_World_Without_Us


    Zen and the Art of Motorcycle Maintenance | Robert M. Pirsig | 1974
    Yes. That book, wonder what my take would be now.
    http://en.wikipedia.org/wiki/Zen_and_the_Art_of_Motorcycle_Maintenance
    http://www.amazon.com/Zen-Art-Motorcycle-Maintenance-Inquiry/dp/0553277472


    Saucerful of Secrets | Nicholas Schaffner | 1992
    Pink floyd oddessy
    http://www.amazon.com/Saucerful-Secrets-Pink-Floyd-Odyssey/dp/0385306849/ref=...


    Lonesome Dove | Larry McMurtry | 1985
    Susie's favorite and Pulitzer's too, western. walkin cattle around the country
    http://en.wikipedia.org/wiki/Lonesome_Dove
    http://www.amazon.com/Lonesome-Dove-Novel-Larry-McMurtry/dp/1439195269/ref=sr...


    Lord of the rings | J. R. R. Tolkien | 1940ish
    A zillion page read about short people sticking it to the man
    http://en.wikipedia.org/wiki/The_Lord_of_the_Rings


    The Hobbit | J. R. R. Tolkien | 1937
    Only saw the cartoon as a kid...should read.
    http://en.wikipedia.org/wiki/The_Hobbit


    The Book Thief | Markus Zusak | 2005
    little nazi book narrated by Death. Childrens best seller for over a
    hundred weeks.
    http://en.wikipedia.org/wiki/The_Book_Thief
    http://www.amazon.com/Book-Thief-Markus-Zusak/dp/0375842209/ref=sr_1_1?ie=UTF...


    The Thirteenth Tale | Diane Setterfield | 2006
    gothic suspense novel. Young biographer ferrets out the life of a storyteller
    http://www.amazon.com/Thirteenth-Tale-Novel-Diane-Setterfield/dp/0743298039/r...


    Out Stealing Horses | Per Petterson | 2003
    Norwegian. Tragic postwar theft turns tragic. Experience n reflection on Loss?
    http://www.amazon.com/Out-Stealing-Horses-Per-Petterson/dp/0312427085/ref=sr_...


    A Voyage Long and Strange | Tony Horwitz | 2008
    history/travelogue trek through 1607, pre mayflower adventure
    http://www.tonyhorwitz.com/books/voyage-long-and-strange.php
    http://www.amazon.com/Voyage-Long-Strange-Rediscovering-World/dp/0805076034/r...


    Inherent Vice | Thomas Pynchon | 2009
    PI & pothead romp thru counter-culture LA in 69-70'
    http://www.thomaspynchon.com/inherent-vice.html
    http://en.wikipedia.org/wiki/Inherent_Vice
    http://www.amazon.com/Inherent-Vice-Novel-Thomas-Pynchon/dp/0143117564/ref=sr...


    The Lovely Bones | Alice Sebold | 2002
    haunting, heartbreaking. murdered girl watches friends lives go on,
    comes to terms with own death
    http://en.wikipedia.org/wiki/The_Lovely_Bones
    http://www.amazon.com/Lovely-Bones-Alice-Sebold/dp/0316044938/ref=sr_1_1?ie=U...


    Shit My Dad Says | Justin halpern | 2009
    based on a twitter feed. nonfiction. #1 NY bestseller
    http://en.wikipedia.org/wiki/Shit_my_dad_says#Book
    http://www.amazon.com/Sh-t-My-Dad-Says/dp/0061992704/ref=sr_1_1?ie=UTF8&s=boo...

    • Tweet
  • It is magical! iPad as motorcycle armor.

    • 6 Jul 2010
    • 0 Responses
    •  views
    • Edit
    • Delete
    • Tags
    • Autopost
    Need a little extra crash proofing, and want to ditch a backpack? Stow your pad in the armor sleeve.

    Photo

    Sent from my iPhone

    • Tweet
  • « Previous 1 2 3 4 5 6 7 8 9 Next »
  • About


    9643 Views
  • Archive

    • 2012 (3)
      • January (3)
    • 2011 (1)
      • April (1)
    • 2010 (14)
      • September (1)
      • August (3)
      • July (2)
      • June (3)
      • May (1)
      • April (1)
      • March (1)
      • January (2)
    • 2009 (66)
      • December (1)
      • November (18)
      • October (2)
      • August (1)
      • July (2)
      • June (8)
      • May (10)
      • April (2)
      • March (6)
      • February (16)

    Get Updates

    Subscribe via RSS
    TwitterFacebook