Josh Nock

Code Craftsman

YahooFinance.NET

So I started my first open source project this week. Simply put it is a .NET/C# class library for getting stock quotes from Yahoo Finance. I had mentioned (over a year ago) that yahoo has a really great API for their open data tables. Yahoo! Query Language is what I’m using in the YahooFinance.NET library, to connect to the data tables and pull stock quotes. I have been learning to master GIT from Rob Connery @ TekPub so I decided to put the project up at Github.com. As expected the project is named YahooFinance.NET… whoa… I know!! Feel free to greatly improve my code on this project!!

YQL Yahoo Query Language and Json.NET

 

So I’ve been working on a new finance application and learned about yahoo’s new (to me) YQL.  I was immediately curious to know if they offered their finance data.  Lo and Behold…. YQL Blog Team posteth.  So after reading the post and looking at the YQL console the decision is….  Use Linq to XML or deserialize the Json?   Being a devout C# user, I wasn’t to keen on ham0fisting my way through the the Linq, which admittedly the VB team has created and amazingly powerful version of Linq to XML. (side note: the C# team should just admit the VB guys beat you, just please add those features already) that being said.  I just wanted to deserialize the json into a C# object.  After a few seconds on searchdotnet.com I found Json.NET.  While Linq to XML is powerful, I have chosen to start developing my app using YQL with Json being returned.   The Json will have a smaller bandwith (maybe insignificant, depending on the volume with my app) and once it is deserialized I’m hoping will allow for quicker development and easier for reuse.  Maybe I’ll take the component open source on codeplex.  We’ll see how it turns out first.

Phone Call Probability

In the digital world I have found that the chance of someone calling is inversely proportional to the convenience of that call with regards to both time and location! 

EXHIBIT A:

 

Examples:

 

HIGH PROBABILITY

  • I've been waiting for a call, all day.  I put my phone down on the counter and proceed to the restroom. 
  • My phone is across the room, on 'Loud' and I just fell asleep.
  • I've been hunting for Moose all day, and I just spotted a Sasquatch
  • There's an Axe murderer with a strange mask in my house, and I'm hiding in the closet.

LOW PROBABILITY

  • I'm expecting a call, everyone has left the house, I just sat down on the couch to relax. 
  • I'm talking a walk by myself.
  • I just blinded myself, with some kind of spray? OMG Help I can't see my phone!

 

 

Getting Things Done… soon, I hope.

A while back I read a hilarious article in Wired magazine about productivity self-help books.  The article “Diary of a Self-Help Dropout: Flirting With the 4-Hour Workweek” by Chris Hardwick was enjoyably incomplete but enough to pique my interest (months later).  So as my work has outgrown the amount of hours in a day, I’ve weighed Mr. Hardwick’s opinion and bought “Getting Things Done” by David Allen.  Now, I just need to find the time to finish reading it!  = \