Saturday, March 14, 2009

Go Figure - TWM and .twmrc

When you have a .twmrc, even if it's blank, you're exterm title bar looks like this:



And, when you don't, it looks like this :



What gives? Tom LaStrange said it best in his reply to me:

Sorry, I can't help you. I haven't used twm for 20 years.

--
Tom L.

Wednesday, March 11, 2009

What Desktop Environment Are You Running?

Simple one, but I don't know how to fine out. The top right of the windows look like this. If I know which desktop environment this was, I could google for some keyboard+mouse shortcuts. This particular one doesn't seem to have any - really sucks.



Answer :

You are using twm http://xwinman.org/vtwm.php It is configurable but it is an ancient unmaintained version!

You really need to be using KDE especially KDE 4.1. Download and install Kubuntu 8.10 - it comes with KDE pre-configured. It's very very nice (like Apple's OS X). :-)

Resources :

The author's desk : LaStrange himself.
UWO.CA

Saturday, February 28, 2009

Foreach on Cygwin

Not only does my cygwin not have a manual entry for foreach, but it doesn't work.

foreach dir (*)

gives

bash: syntax error near unexpected token `(`

Any clues?

Yes. use:

for dir in *
do
whatever
done

Tuesday, February 10, 2009

Programs from G:

Simple one, but not for me.

I've installed some programs on my 80G HDD G:/ProgramFiles because my C: tends to fill up quickly.

Win XP is installed on C:

Question - now, if I reinstall XP on C:, is there anyway I can tell windows about the wonderful programs that I have on my G: and get them in my Programs list accessible from the Start menu?

Aus gurus:

Some may work out of the box. The ones that need registry entries won't and will require a reinstall. For the ones which work, you can drag shortcuts onto the start menu.

Tuesday, January 13, 2009

CPAN Bugs

Cockroaches and Pests Associated Network. Bugs for short. This page seems to have some useful help on this error :

cpan> i Term::ReadLine
Going to read /home/perl/sources/authors/01mailrc.txt.gz
Can't call method "value" on an undefined value at /usr/lib/perl5/vendor_perl/5.8/IO/Uncompress/RawInflate.pm line 64.

What idallen says is :

I ran an "install Bundle::CPAN" without first doing "apt-get install
build-essentials", and that was a mistake. Many things didn't build
fully, and CPAN wedged itself into a state where RawInflate.pm was
broken and nothing could be done. Make sure you run "apt-get install
build-essentials" first. It would be nice if CPAN would know this
somehow so that it didn't let you fail and wedge itself.

Running "apt-get remove libcompress-raw-zlib-perl" got CPAN un-wedged and
allowed "install Bundle::CPAN" to complete; but, when I did "apt-get
install spamassassin", it brought back the broken old version of
RawInflate.pm and CPAN was broken again! Looks like the Ubuntu package
for the compress library is too old for the current CPAN, and of course
CPAN and APT don't share version information and get along nicely.

------

Unfortunately, no one seems to have messed with this on Cygwin - so I can't find any non-guru-level stuff. Hmmm...

Here seems to be a helpful page that details how perl can behave differently on cygwin. Fascinating stuff if you don't have a life:

http://www.xav.com/perl/lib/Pod/perlcygwin.html

Saturday, January 3, 2009

Email with Cygwin

How? If you don't have mail or exim or mutt (last two I haven't heard of) ?

I want to hook up a motion-detector and a webcam to my PC. When the motion-detector fires, I want the PC to cature a picture from the webcam and make it available online - say on a blog, and send an email to my cellphone.

Friday, December 12, 2008

OLPC(s) Will Go

I'd rather cash in on the $400 potential dollars than keep these cutting edge icons of Nincompoop's inefficacy in my living room. Here's a guy who seems to know what to do about the passwords (really, any decent linux guy - i.e., not me - would probably know)

http://thoughtsbyclayg.blogspot.com/2008/09/olpc-default-no-password.html