Blogs

The Zipf Principle

The principle of least effort argues that people will act so as to minimize their probable average rate of work (i.e., not only to minimize the work that they would have to do immediately, but taking due consideration of future work that might result from doing work poorly in the short term).

Chapter 1, Foundations of Statistical NLP

Ruby / Rails Testing information

Some testing related information (for ruby/rails):

gems to install:

sudo gem install term-ansicolor treetop diff-lcs nokogiri builder
sudo gem install ZenTest redgreen autotest-rails rspec rspec-rails cucumber webrat

cucumber.yml: (in config in rails project)

autotest-all: --require features --require lib --format progress features
autotest: --require features --require lib features
default: --format pretty --color
html: --format html --out features.html

.profile: (add)

Patch to get rid of rspec warnings

I started playing with rspec and am getting some annoying warnings. I created a simple patch to get rid of the warnings.

Four Essential Lessons to Pass Down

If you could boil down everything you know into something concise that you would like to convey to the younger people in your life, what would you say? Below are some of my thoughts.

First, would be "Do unto others, as you would have done to yourself". The golden rule. With this, you don't need any other religion or morality.

Second would be to exercise. Exercise has so many benefits. Besides the obvious fitness, there are the self esteem and confidence benefits and I believe a strong relation to drive and intelligence.

Business Value

Last night we went to the BMA Awards dinner, the keynote speaker was Keith Pigues. He gave a very good speech about delivering value. Here are a couple of the key points that I wanted to remember.

The top priorities for marketing companies should be to either increase their clients revenue or decrease their costs. This brings real value to their clients.

Cisco Password Recovery

How to update a lost cisco password

Steps to password recovery:

Power cycle the router.
Sending a BREAK within 60 seconds.
From ROM mode, change config register to 2142.
Reboot router.
Get into Priv Exec (enable) mode.
Load up config with “copy start run”.
Change password and reset config-register to 2102.
Save config with “copy run start” and reload.

Language Mismatch

 
One of the reasons that I believe communication between developers and non-developers is difficult is because developers must work in a world of specifics and details whereas a non-developer can casually neglect those details without even knowing they've been neglected.
 

Ruby, Python, Perl, Haskell, etc.

I recently read a post by Don Stuart regarding haskell blowing away ruby and python. While it's interesting to see the haskell code and the code is faster for this specific application, this post leaves so much unquestioned. Is speed the most important factor? Why not use C or some other compiled language? How do you compare the speed of a compiled language with the speed of a dynamic language?

USB Linux Install

 

create usb net inst device for x41 tablet. Because of conflicts with SATA and the usb cdrom I couldn't get an install to work with the usb cdrom. I could get the installer to start, but it wouldn't detect the hard drive no matter what I did. I tried loading t he drivers manually, but nothing worked. I decided to try my luck with an old Lexar Jump Drive (256M). It worked! See my notes below.
 

Syndicate content