Tags
Best Of Today bing black hole Bourne Certification Computers Configuration Database Databases Eclipse Entertainment Escaping Finished Gadget google guitar GWT Hardware Hobbies IDE jquery Korn Languages Linux microsoft Oracle Oracle Photography pictures Portfolio Programming Robot search engine seo Servers Shell snorkeling tabs underwater Unfinished/Prototype Vim Wave Web Design Widget Wordpress
Sweet 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.
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.
Stack Overflow
Should have posted this months ago…
If you haven’t been to stackoverflow… get outside of the cave you’re in.
Posted in Computers
Leave a comment
Vim global search and replace
%s/search_string/replacement_string/g
g – global
Line Count
wc -l
Counts the number of lines in the output or file
File listing
ls -altr
List all files in long format based on reverese timestamp (most recent last)
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”
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