Bucket List

Galvanized-buckets-pastel-300x221

I’ve had a long running mental list of things I want to eventually do, but I thought it might be fun to post a few examples.  This is only an “includes but is not limited to” sample, my list is pretty much endless, No order of priority implied:

  • Learn to fly a plane
  • Get reasonably good at Parkour
  • Visit Antarctica
  • Vist Tibet
  • Go flying in a wingsuit
  • Become competively good at Chess
  • Get a Phd in Physics
  • Go on a non-religuous service mission
  • Release a Musical Album that sells at least 1000 copies
  • Publish a fiction novel that sells at least 10,000 copies
  • Visit the great wall of China
  • Perform a life saving feat in a medical emergency
  • Learn to Wind Surf
  • Go Skydiving
  • Free Climb a 100 feet vertically (just enough to be life-threatening)

posted : Wednesday, January 25th, 2012

tags :

XML, Violence, Nokogiri and Xpath

I love Xpath.

 It makes XML easy to use and easy to query.  Gone are the days of parsing things with a SaxParser unless you’re really hard up for control of you text.

Also, I love the Ruby Nokogiri Gem.  

XML is like violence - if it doesn’t solve your problems, you are not using enough of it.

- Nokogiri docs

But I do have to say that there is a lack of good examples and documentation for anything particularly advanced.  I found a working solution to my issue, but thought I’d paste here what I wanted to do versus what I ended up doing.

Given the following XML, 

1 2 3 4 5 6 7 8 9 10 11 12 
<Container>
<Set >
<RecommendedCoverSong>Hurt by NiN - Johnny Cash</RecommendedCoverSong>
<RecommendedOriginalSong>She Like Electric by Smoosh</RecommendedOriginalSong>
<RecommendedDuetSong>Portland by Jack White and Loretta Lynn</RecommendedDuetSong>
<RecommendedGroupSong>SoS by Abba</RecommendedGroupSong>
<CoverSong>Kangaroo by Big Star - This Mortal Coil</CoverSong>
<OriginalSong>Pick up the Change by Wilco</OriginalSong>
<DuetSong>I am the Cosmos by Pete Yorn and Scarlett Johansen</DuetSong>
<GroupSong>Kitties Never Rest by Rex or Regina</GroupSong>
</Set>
 </Container>

I’d like to grab two elements that include “Cover” in the tag, and then operate on each of them.

Nokogiri’s use of Xpath easily allows the first query expression like so: price_xml = doc_xml.xpath('Container/Set/*[contains(name(), "Cover")]')

I’ve selected all the elements (using *) in Set, and then used an Xpath Expression function:

contains, in order to specify that Adult must be in the name.  This returns two Nokogiri XML Nodes in Nodeset.

What I wanted to do was then select one of these elements based on a pattern in the tagname use my favorite tool, Xpath.

But I just couldn’t get Nokogiri to give it to me, and several solutions ending up selecting way more than the 1 element I wanted. (Because the nodes in the Nodeset still contain relationships with their parents)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
songtypes = [‘Cover’, ‘Original’, ‘Duet’, ‘Group’]
songtypes.each do |song|

node_xml = doc.xpath(‘Container/Set/*[contains(name(), “Cover”)]’)
#I wanted to be able to do the following
#
FavoriteCover = node_xml.xpath(’./*[contains(name(), “Recommended”)]’)
RegularCover = node_xml.xpath(’./*[not(contains(name(), “Recommended”))]’)

#or
FavoriteCover = node_xml.xpath(’*[contains(name(), “Recommended”)]’)
RegularCover = node_xml.xpath(’*[not(contains(name(), “Recommended”))]’)
#But instead I had to resort to a Rails solution

RegularCover = node_xml.find{ |node| node.name !~ /Recommended/ }
FavoriteCover = node_xml.find{ |node| node.name =~ /Recommended/ }
    
#Do something with the songs here

end

 

I’m cross posting this on StackOverflow as a question, just in case any Nokogiri Xpath enthusiasts want to recommend a solution that doesn’t resort to find()

 

posted : Sunday, January 8th, 2012

tags :

Rails Rake tips

rake -T or bundle exec rake -T

posted : Friday, December 9th, 2011

tags :

Judge Not lest Ye Be Judged - Gigabit Google Challenge

Screen_shot_2011-11-30_at_8
Google is rolling out it’s experimental Gigabit Broadband FIber  networks across the country in lab like experiments.  One of the early locations is Kansas City and Think Big Partners, a local Incubator has sponsored a Business Plan competition worth 100,000K.  The Gigabit Challenge.

I’m honored to be a part of the judging panel with some very esteemed folks from  both local KC Enterprise like the Kauffman Foundation, and National players like Silicon Valley Bank.

 

I happened to be visitng KC for 2 weeks a few months back and thought: “Surely there’s a co-working space in town, or maybe even an incubator.”  After all,  I’ve recently discovered very vibrant startup scenes and icubators popping up in various parts of the midwest and hinterlands of America.  (Take Note Silicon Valley, Silicon Alley, Silicon Beach there is an engine of innovation and aspiration all across this great big country).  I stumbled upon ThinkBig via their relationship with Startup Weekend.  The first week, I ended up working with a resident freelance designer on several projects and eventually spent some time talking with Herb Sih, managing partner and co-founder of the incubator.  He turned me on to just how involved and important these local incubators can be to local business and entrepeneur communities.  While Tech Stars really has changed the way everything in Boulder Colorado works, I can’t say that YC or 500Startups have had much impact on their local communities.  That’s not part of their mission.  But when you’re dealing with cities that are more regional and less “National” cities, the impact can be huge, and the presence, strength or lack thereof for a Local Incubator can make an enormous difference in a community’s business culture, economic health, and overall quality of life.  I have a lot to say on this subject, but this post is actually about the Gigabit Challenge and not local Incubators.

I have 10 of the 100+ entries to score and I’m both delighted and disappointed.  

Disappointed:

Of the 10 I’m scoring, only 1 really focused on the Network, and what opportunies Google’s Fiber creates.  Of course, I’ve advised startups to enter as many competitions as they can in their early development phase so I suspect many of the entries are just entering a Startup Contest, and not really thinking about the speficis of this challenge, and how they can take advantage of new capabilties and access to consumers/business via the Hi Speed network.  I was also disappointed to see that a number of local startups are suffering from the same Think Small mentatlity that seems to be frothing the pool of Tech Crunch lately.  Little Bets! Build a feature/app that makes only incremental changes and keep iterating until you go viral.  Hooey, Hogwash.  That may be a successful project management strategy but it is fundamentally incompatible with Vision.

Excited:

Kansas City has been known for 2 major technical areas, healthcare IT and Telecommunications.  I was excited to come across several companies working in Medical Data (I don’t think I can talk about the companies until after the competition) and it’s companies dealing with Medical Data that have the strongest fit for doing something interesting with Really Fast broadband.  

Apologies:

To any panel judge I’ve ever slagged or insulted for being clue-less in the past, I’m sorry.  I didn’t realize Judging Startups and Business Plans is hard work, and trying to find a way to provide meaningful critique without being a jerk requires a lot of effort.

Best of luck to all the entrants, I look forward to getting a sneak peek at the Semifinalists to be announced next week.

posted : Wednesday, November 30th, 2011

tags :

childless white men at work - hipmunk.com

Sprites_big

Every now and then I look at meaningless numbers posted from Alexa.com about Travel companies and user growth etc.

But I always love the descriptions provided:

http://www.alexa.com/siteinfo/hipmunk.com

 

Statistics Summary for hipmunk.com

Hipmunk.com has a three-month global Alexa traffic rank of 15,128, and approximately 62% of visits to this site consist of only one pageview (i.e., are bounces). Visitors to the site view an average of 1.2 unique pages per day. The site is relatively popular among users in the cities of San Francisco (where it is ranked #1,325) and Seattle-Tacoma (#3,117). Compared with internet averages, Hipmunk.com appeals more to Caucasians; its audience also tends to consist of childless, highly educated men earning over $60,000 who browse from work.

 


posted : Sunday, November 13th, 2011

tags :

childless white men at work - hipmunk.com

[[posterous-content:pid___0]]

Every now and then I look at meaningless numbers posted from Alexa.com about Travel companies and user growth etc.

But I always love the descriptions provided:

http://www.alexa.com/siteinfo/hipmunk.com

 

Statistics Summary for hipmunk.com

Hipmunk.com has a three-month global Alexa traffic rank of 15,128, and approximately 62% of visits to this site consist of only one pageview (i.e., are bounces). Visitors to the site view an average of 1.2 unique pages per day. The site is relatively popular among users in the cities of San Francisco (where it is ranked #1,325) and Seattle-Tacoma (#3,117). Compared with internet averages, Hipmunk.com appeals more to Caucasians; its audience also tends to consist of childless, highly educated men earning over $60,000 who browse from work.

 


posted : Sunday, November 13th, 2011

tags :

childless white men at work - hipmunk.com

Every now and then I look at meaningless numbers posted from Alexa.com about Travel companies and user growth etc.

But I always love the descriptions provided:

http://www.alexa.com/siteinfo/hipmunk.com

Statistics Summary for hipmunk.com

Hipmunk.com has a three-month global Alexa traffic rank of 15,128, and approximately 62% of visits to this site consist of only one pageview (i.e., are bounces). Visitors to the site view an average of 1.2 unique pages per day. The site is relatively popular among users in the cities of San Francisco (where it is ranked #1,325) and Seattle-Tacoma (#3,117). Compared with internet averages, Hipmunk.com appeals more to Caucasians; its audience also tends to consist of childless, highly educated men earning over $60,000 who browse from work.

Sprites_big

posted : Sunday, November 13th, 2011

tags :

Laughing Jackass

So, I’m itching for a cliche of a tattoo (maybe on my left shoulder) and was thinking about using the Chinese symbol for Laughter but can’t figure out if there is just 1 unequivocal character for that. It’s funny how the symbol for Love seems to include the symbol for laughter.
I just don’t want to end up with “Laughing Jack-Ass” without knowing it. On the other hand, that would be pretty dang funny.

posted : Friday, November 4th, 2011

tags :

Travel needs 2ndary APIs

> They have my email address, they know my identity. They even know WHETHER I READ THE NYTIMES travel pages or not
> > Shouldn’t they know Im not a Ritz Carlton kind of guy?
>
Photo

> > > > > >

posted : Friday, November 4th, 2011

tags :

Startup Bubble Peaking or Popping

With all the talk about the Startup Bubble, one thing that is commonly lost is that we are MEASURING the wrong thing.  If we’re talking about the Startup Financing bubble, then by all means, it’s likely to peak, or even pop, and soon, for sure.  But today’s startups don’t require the same amount of capital to get going that the 1st DotCom Bubble’s startups did.  It’s easy to bootstrap with low cost Cloud Computing, Software frameworks that let developers get apps or sites up & running in 1-3 months, and a new clean startup philosophy to focuses on Customer Development and Iterating (pivots) over large scale tech investment.  These days, you never hear the phrase “If you build it they will come”.

Startupvaluations
This graph is from WallStreet Journal post in 2010 this time last year.  Of course it can’t/couldn’t continue.  I’ve read at least 10 posts in the last 2 weeks about the investment market peaking for Startups, and at a minimum that the Valuations are beginning to stablize or even decrease.

Now I’m glossing over an important point: which is

Nevertheless, the global economic slowdown, which already has begun according to America’s recession arbiters, will hurt sales at companies both large and small.

There is a lot to be said for this theory, but when you’re labor costs are 1 developer, 1 business development/sales guy, and 1 designer (most of whom are under 25 and don’t have families) then it doesn’t take a large amount of Revenue to keep the growth going strong.

It’s true folks, there is less money being sloshed around today than there was a year ago, and that’s going to have an impact on your next Round.  Blogger’s typical end this kind of post with “Better go get that money now!”

I’m with Fred Wilson.  Pay less attention to the money issues, and go build your damn product.

posted : Thursday, October 13th, 2011

tags :