« June 2010 | Main | August 2010 »

July 28, 2010

Return to Propeller Head Dept.




It's been a while, but here's a fresh collection of Linux, computer and programming wit and wisdom. Who says geeks don't have a sense of humour?


General
The Internet‭? ‬Is that thing still around‭?
 - ‬Homer Simpson

If the automobile had followed the same development cycle as the computer,‭ ‬a Rolls-Royce would today cost‭ ‬$100,‭ ‬get a million miles per gallon,‭ ‬and explode once a year,‭ ‬killing everyone inside.‭
 - ‬Robert X.‭ ‬Cringely

Never trust a computer you can‭’‬t throw out a window.‭
 - ‬Steve Wozniak

A computer lets you make more mistakes faster than any invention in human history ‭- ‬with the possible exceptions of handguns and tequila.‭
 - ‬Mitch Radcliffe

Fix a computer for a friend or family member,‎ ‏and you‭’‬ll be tech support for life.‭
‎ - ‏Danny Allen

Any significant boost in technology is indistinguishable from a rigged demo.

Most computer problems occur between the keyboard and the chair.


For Linux Fans
Q:‭ ‬What's the difference between a Windows PC and a Trampoline‭ ?
‬A:‭ ‬You take your boots OFF to jump on a trampoline.

Computers are like air conditioners‭ ‬- they stop working properly if you open Windows.‭

The box said that I needed Windows‭ ‬7‭ ‬or better‭ ‬...‭ ‬so I installed Linux.

The only people who have anything to fear from free software are those whose products are worth even less.‎
 - David Emery

UNIX is basically a simple operating system,‭ ‬but you have to be a genius to understand the simplicity.
‎ - ‏Dennis Ritchie‭

Q: What's the difference between Microsoft and‭ '‬Jurassic Park‭'?
A: In one,‭ ‬a mad businessman makes a lot of money with prehistoric brutes that should be extinct. The other is a film.

Spotted on IRC:
‎<‏timer‭> M‬y penis has a Linux distribution on it.‭
<‬defz‭> M‬inix‭?


Programmers' Corner
Endless Loop:‎ ‏n.,‭ ‬see Loop,‭ ‬Endless.‭
‬Loop,‭ ‬Endless:‭ ‬n.,‭ ‬see Endless Loop.

Hacking is like sex.‎ ‏You get in,‭ ‬you get out,‭ ‬and hope that you didn't leave something that can be traced back‭ ‬to you.

Programmers are tools for converting caffeine into code.

In Ruby,‭ ‬symbols are represented with‭ ‬a prepended colon,‭ ‬eg.:flag.‭ ‬So some guy turned up in a T-shirt that said‭ "‬:sex‭" ‬which everyone at Railscamp knew meant‭ "‬Sex symbol‭"‬.‭ ‬He wore it until someone pointed out that to non-Rubyists it said‭ "‬Colon sex.‭"

If Java had true garbage collection,‭ ‬most programs would delete themselves upon execution.‭
 - ‬Robert Sewell

Saying that Java‭ ‬is nice because it works on all OSes is like saying that anal sex is nice because it works on all genders.‭
 - ‬Alanna

The first‭ ‬90%‭ ‬of the code accounts for the first‭ ‬90%‭ ‬of the development time. The remaining‭ ‬10%‭ ‬of the code accounts for the other‭ ‬90%‭ ‬of the development time.‭
 - ‬Tom Cargill

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.‭
 - ‬Martin Golding‭

The three most dangerous things in the world are a programmer with a soldering iron,‭ ‬a hardware type with a program patch and a user with an idea.‭
 - ‬Rick Cook‭

C makes it easy to shoot yourself in the foot.‭ ‬C++‭ ‬makes it harder,‭ ‬but when you do,‭ ‬it blows away your whole leg.‭
 - ‬Bjarne Stroustrup‭

BASIC programmers never die,‎ ‏they just GOSUB and don't RETURN.‭

Real programmers are surprised when the odometers in their cars don't turn from‎ ‏99,999‎ ‏to‭ ‬99,99A.

Any sufficiently advanced bug is indistinguishable from a feature.

Science is to computer science as hydrodynamics is to plumbing.‎

If at first you don't succeed,‎ ‏you must be a programmer.‭

Real programmers don't comment their code.‭ ‬It was hard to write,‭ ‬it should be hard to understand.

The ‬3‭ ‬Biggest Software Lies:‭
 ‬-‭ ‬The program's fully tested and bug-free.‭
 ‬-‭ ‬We're working on the documentation.‭
 ‬-‭ ‬Of course we can modify it!

The software isn't finished until the last user's dead.


Real geeks only
There are‭ ‬10‭ ‬kinds of people in the world ...‭ ‬those that can read binary and those that can't.

To err is human ...‭ ‬to really foul up requires the root password.

A picture is worth‭ ‬128K words.

The gates in my computer are AND,‭ ‬OR and NOT‭; ‬they are not Bill.

Q:‭ ‬What's tiny and yellow and very,‭ ‬very,‭ ‬dangerous‭?
A:‭ ‬A canary with the super-user password.

Q:‭ ‬What did Linux say to the Windows partition‭?
‬A:‭ ‬Go fsck yourself‭!

Be it ever so humble, there's no place like‭ ~

Q: Why do programmers always get Christmas and Halloween mixed up‭?
A: Because DEC‭ ‬25‭ = ‬OCT‭ ‬31

This is wonderfully subtle. If you get it, you're definitely a geek!
sudo chown‭ ‬-R us‭ ‬./allyourbase

‎And where would we be with XKCD?


Follow Geoff Palmer on Twitter

July 22, 2010

Hidden Linux : agt-get secrets


apt-get is the package handling utility behind Debian-based Linux systems such as Ubuntu, Mint and Mepis. You may be using it ‘by proxy’ via GUI-based package managers such as Synaptic, but hardened Linux users tend to prefer the command line - especially as the latter has a couple of neat tricks up its sleeve.

(Not that if you’re not a super-user you’ll need to prefix the following commands with sudo - well, all but the last one ...)

The basics

apt-get update
Resynchronise installed packages with their sources. (Always do this before an upgrade.)

apt-get upgrade
Install the newest version of all packages installed on the system.

apt-get dist-upgrade
Upgrade to the latest version of your distribution.

apt-get install xxx yyy zzz
Install programs xxx, yyy and zzz along with all their dependencies.

apt-get remove xxx yyy zzz
Remove programs xxx, yyy and zzz.

apt-get purge xxx yyy zzz
Remove programs xxx, yyy and zzz and delete any configuration files that they used.

apt-get check
Update the package cache and check for any broken dependencies.

apt-get clean
Clean out retrieved package files.

apt-get autoclean
Clean out retrieved package files, but only those that are no longer needed.

apt-get autoremove
Remove any packages that were installed to satisfy dependencies but are no longer required.



Advanced stuff
So much for the basics, what about those neat tricks I mentioned? Well, did you know you can use apt-get to get a package’s source code?

apt-get source xxx
Retrieve source files for package xxx.

Or its build dependencies?

apt-get build-dep xxx
Get all the dependencies needed to build package xxx.

Or that you could get it to fetch and build the package for you?

apt-get source xxx -b
Fetch the source code then compile it. (The -b switch means ”build it„.)

The result with be a .deb package which you can install using the Debian package manager command:

dpkg -i xxx.deb



Really advanced stuff

apt-get moo
Try it! :)




Previous Hidden Linux





Follow Geoff Palmer on Twitter

July 18, 2010

Ouch!


Just how bad is Windows' latest effort to capture the cellphone market? According to InfoWorld:

"Windows Phone 7 is a waste of time and money. It's a platform that no carrier, device maker, developer, or user should bother with. Microsoft should kill it before it ships and admit that it's out of the mobile game for good. It is supposed to ship around Christmas 2010, but anyone who gets one will prefer a lump of coal. I really mean that."

More here: Windows Phone 7: Don't bother with this disaster


Follow Geoff Palmer on Twitter

July 13, 2010

Telecom pinged (yet again)


What do you think when you see a Telecom ad? Personally, I think of a certain brand of beer because -- whatever Telecom are pushing -- my reaction is an ironical, "Yeah, right!"

Look at the company's history. Since 2003 they've been they've been warned or fined eight times for breaching the Fair Trading Act. The latest FTA case, for a 2008 "Broadband at Dial-Up prices" campaign, was settled a few weeks ago with the company crediting more than 1,300 customers who'd been misled and forking out $75,000 so Consumer New Zealand could establish "a price comparison website across all providers." (Kudos to Consumer, but don't we already have one of those in the superlative New Zealand Connections site?)

To cap it all, a few days ago Telecom Wholesale was forced to compensate Vodafone and Orcon to the tune of $1.6 million for breaching its own separation undertakings "not to discriminate between or against its wholesale customers". Add to that last October's High Court ruling that between 2001 and 2004 "Telecom used and/or took advantage of its dominant position/market power ... for the purposes of deterring potential or existing competitors in the wholesale market ..." and you have a picture company that's more like a serial offender. They just can't seem to stick to the straight and narrow and stop telling porkies.

So what do you think when you see a new Telecom campaign? "Oh goody, I must get some of that" or "Oh yeah, where's the catch?"



Follow Geoff Palmer on Twitter
Subscribe
Newsletter & SubscriptionsPC World is New Zealand’s top selling computing and technology magazine.

It provides up-to-the-minute editorial, insight and buying advice for personal computing, cell phones, game consoles, digital entertainment and broadband.
SIGN UP
PCWorldUpdate
PC World's weekly round-up of tech news, gear and game reviews, software selections, and handy How Tos.