Programming

Words related to programming

Duplicate RSA Key on Github

I have a github account: http://github.com/mwolfe38
which I just created a month or two ago for hosting some scripts I was working on at the time.
Just today I updated my virtualbox ubuntu guest OS on my work laptop (running windows xp) . I now have version 9.04 of ubuntu linux and it runs great.

So anyways, I installed git and went to clone my github repositories, and then remembered that I needed to generate an rsa public/private key first. So I ran the command

ssh-keygen

Find Google Rank with Ruby

Have you ever wondered where your site ranks on google for a given search?

Try this ruby script out to find out (be nice with it!).
You'll need ruby installed of course. Also do a

gem install hpricot

since this requires the hpricot gem to be installed.

It will search up to 20 pages deep on google (I wouldn't recommended altering this since nobody is going to search more than 20 pages deep for your webpage).

Largest subsequence

Ok so I was looking into possible interview questions for a job and I saw one was the problem of how to find the largest subsequence of integers in an array of positive and potentially negative integers.
For example, given the set of numbers:
2, -1, 3, 5, -10, 4, 8, -1,10, 2
the largest subsequence would be
4,8, -1,10,2 since it adds up to 23.