Sweet office

http://www.biscade.com/office/

Posted in Computers | Leave a comment

Computer Scientist

From SO (StackOverflow) – “The majority of computer science and software engineering degrees are bull. If your first programming language is Java or C#, then you’re doing something wrong. If you don’t get several courses full of algebra and math, it’s wrong. If you don’t delve into functional programming, it’s incomplete. If you can’t apply loop invariants to a trivial for loop, you’re not worth your salt as a supposed computer scientist. If you come out with experience in x and y languages and object orientation, it’s full of s***. A real computer scientist sees a language in terms of the concepts and syntaxes it uses, and sees programming methodologies as one among many, and has such a good understanding of the underlying philosophies of both that picking new languages, design methods, or specification languages should be trivial.” -

Slowly realizing the above as I learn more languages.

Posted in Computers | Tagged , , , | Leave a comment

Escaping dates in Vi Search and Replace

So, you want to search for 8/18/2010 and replace it with 08/18/2010 , here’s how you’d do it:

%s/8\/18\/2010/08\/18\/2010/g

\ Escapes the /’s

Win.

Posted in Computers | Tagged , , , | Leave a comment

Jquery cheatsheet

JQueryCheatSheet-1.3.2

Posted in Computers | Tagged | Leave a comment

Stack Overflow

Should have posted this months ago…

If you haven’t been to stackoverflow… get outside of the cave you’re in.

http://www.youtube.com/watch?v=NWHfY_lvKIQ

Posted in Computers | Leave a comment

Vim global search and replace

%s/search_string/replacement_string/g

g – global

Posted in Computers | Tagged , | Leave a comment

Line Count

wc -l

Counts the number of lines in the output or file

Posted in Computers | Tagged , | Leave a comment

File listing

ls -altr

List all files in long format based on reverese timestamp (most recent last)

Posted in Computers | Tagged , | Leave a comment

Safe Linux upgrade

sudo aptitude safe-upgrade

“It is sometimes necessary to remove or install one package in order to upgrade another; this command is not able to upgrade packages in such situations. Use full-upgrade instead”

Posted in Computers | Tagged , | Leave a comment

Declare locale

sudo locale-gen en_GB.UTF-8

Declare a locale, in this case English, so it downloads English manuals when you do system updates

Posted in Computers | Tagged , | Leave a comment