Posts

Venture Capital

I am talking to the world out there... What are the VC's saying? Check out the latest in iPhone mobile. http://www.mobilecrunch.com/2010/04/08/everything-you-need-to-know-about-iphone-os-4-0/

Torn - business, engineering, venture capital vs random thoughts

I am a little torn, because I don't write enough to have multiple blogs worth of content. Additionally people don't like to follow blogs that are all over the map. Basically my content is a little too diverse(lately very tech heavy) to keep an audiences attention. What to do what to do.... Not really sure about that one. I have followed a few of my friend blogs as of late ... they are pretty good. Writing has never been a strength of mine, but a skill that I admire in people none the less. I really want to improve my writing. Did you know that Benjamin Franklin had a very interesting technique growing up when he discovered his writing was poor. He would read a famous essay or article by a master writing, summarize it's main points. They try and rewrite the article making the same points. Then afterward would do a comparison of the two. This helped make Benjamin Franklin become the great writer he was. I might try doing that one day if I can find the time. Friends...

How to start a single hadoop tasktracker

/usr/local/hadoop/bin/hadoop-daemon.sh --config /usr/local/hadoop/bin/../conf start tasktracker

How to start a single hadoop datanode

/usr/local/hadoop/bin/hadoop-daemon.sh --config /usr/local/hadoop/bin/../conf start datanode

Excel short cut to edit the active cell in a mac

Control U will let you edit the active excel in a mac

Learning Software Maintenance from old continuous systems

Great software article promoting continuous software maintenance model which was invented in some systems over 40 years ago. You Don't Know Jack About Software Maintenance We can learn a thing or two for modern software development

Apple App Store Process is Frustrating

I have had lot's of frustration with the App Store process. Namely with the feed back on rejections being so poor. Developers leaving the Apple App Store . I am not leaving but it is a crappy position to put developers in whom put in their own hard time into producing something that might be rejected or floating in limbo for ever.

Programming words of wisdom

1. Either leave the existing brace style the hell alone and live with it, or completely re-write the code. Going the middle road leaves two unhappy parties, leaving it alone or replacing it leaves just one. And while you should err on the side of just living with what’s already there, you shouldn’t be shy about cleaning up a train wreck. 2. Good programs do not contain spelling errors or have grammatical mistakes. I think this is probably a result of fractal attention to detail; in great programs things are correct at all levels, down to the periods at the ends of sentences in comments. “Aw, c’mon! You’re kidding!” You might think that nit-picking like this is beneath you, whereupon I will start pointing out errors in your code. It was embarrassing the first couple times this happened to me. 3. Crack open your current project. Now, delete as much stuff as you can and still have it work. Done? Okay, now toss out more, because I know that your first pass was too timid. Pretend that you’r...

Bash how to write a file using cat and multi line string

Thought this was a cool example cat >hello.go <<EOF package main import "fmt" func main() { fmt.Printf("hello, world\n") } EOF

Bash Single Line For Loop Example

Here is a example of a for each loop in a single line in Bash # for hi in 1 2 ; do echo $hi; echo "wow"; done; 1 wow 2 wow #

mysql get first and last day of the month

mysql get first and last day of the month mysql> select SUBDATE('2009-08-20',DAYOFMONTH('2009-08-20')-1),DAYOFMONTH('2009-08-20'),LAST_DAY('2009-08-20') from dual; +--------------------------------------------------+--------------------------+------------------------+ | SUBDATE('2009-08-20',DAYOFMONTH('2009-08-20')-1) | DAYOFMONTH('2009-08-20') | LAST_DAY('2009-08-20') | +--------------------------------------------------+--------------------------+------------------------+ | 2009-08-01 | 20 | 2009-08-31 | +--------------------------------------------------+--------------------------+------------------------+ 1 row in set (0.00 sec)

mysql get first day of the month

This will return the first day of the month '2009-08-01' in mysql select SUBDATE('2009-08-31',DAYOFMONTH('2009-08-31')-1) from dual;

perl test if directory exists

In perl to test if a directory exists use -d "somedir" example: if(-d "/home/username") { print "User directory exists\n"; }

Ten most common mistakes in advertising

10 Most Common Mistakes in Online Advertising This is interesting

lucent in tenebris

Apparently the Morin family motto. "lucent in tenebris" which is latin for "light in darkness"

test if variable exists in ruby

Testing if a variable exists in ruby is pretty easy. irb(main):001:0> defined? variablename This will return if it's defined but not just variables but a few things "local-variable" "global-variable" nil # (undefined) "method" "super" "yield"

Interesting bash loop snippet

for r in `git rev-list master...master-fubar --since="8:00" --before="12:00" --no-merges`; do git revert --no-edit -s $r; done

Hadoop pid file location and file name

The default pid file location for a hadoop cluster as of 19.1 and 19.2, might also be the same for earlier versions of hadoop /tmp/hadoop-[USERNAME]-[NODETYPE].pid I usually run hadoop as root so here is an example of the default pid file for a datanode /tmp/hadoop-root-datanode.pid NODETYPES namenode datanode tasktracker

perl convert a string to a number

All you have to do is call int to change a string to a int my $someint = int($somestring);

python print standard error

Printing is very simple to the standard error sys.stderr.write('Printing to the stderr')