Wednesday, December 29, 2004

Burning an ISO image under Linux

On my laptop with an internal CDROM:


cdrecord -v -pad -tao -eject speed=8 dev=/dev/hdc sarge-i386-netinst.iso


BTW:
The image came from here: http://www.debian.org/devel/debian-installer/

Or even just:


cdrecord dev=/dev/cdrom sarge-i386-netinst.iso


And this time I went for:

http://cdimage.debian.org/pub/cdimage-testing/daily/i386/

which fixed some problems I was having with the 2.6 kernel not wanting to mount the root image on my old 233MHz machine... (turning off things in the BIOS and managing to boot Knoppix under 2.6 let me know it was possible)

Thursday, December 23, 2004

Sea Pearl

It's funny how I know quite a lot about the history of the C Language, but don't write very much C, and know comparatively little about the history of Perl and write a LOT in it...!!!

I would love to be able to rattle off C programs the way I churn things out in Perl, but somehow I don't think that C really lends itself to that kind of development.

There certainly are times I wish I could write something in C to get better performance out of it, but when I try I often get muddled with where I am at and am not sure if I'm going about things the right way.

One day Conrad, I'll do the C course that you recommended I do (*cower* 10 years ago now!!!) which I still haven't done! :o(

I sometimes wonder if Casey is still using C as much as he did back then, and if so, what kinds of things he's using it for...

Thursday, December 16, 2004

Xsession error: open: Permission denied


Xsession: X session started for USER at Day Mon DD HH:MM:SS Zone YYYY
open: Permission denied


try:


chmod 1777 /tmp



Thursday, September 16, 2004

Vim bits...

Today I learned that if I want to run the current line as a command and get
the output, all I have to do is:

<Esc>yy!!<Ctrl-R>"<BS><Enter>

:-) happy now!?

Careful if you've got a % in the line...

Vim documentation: cmdline

I needed \% for the %20 in the URL I was passing out.

The <BackSpace> was because it put a ^M on the end of the line.
I could have just gone 0y$ instead of yy

I just KNOW I'm going to use this one a lot!!!

So you know, the secret engrdient here is ^R which puts the content of the
un-named register on the command line.

the other (unrelated) thing that I looked up and clarified was the :a (short for *:append*) command (and discovered that there's also :i (short for *:insert*) which can be read about with :he :a and :he :i :o) I discovered :a quite by accident a long time ago and use it when I want to paste in text and don't want it to be auto-indented (if it has tabs or indents in it - e.g. when pasting code)

Tuesday, September 07, 2004

Island sizes...

Isle of Man is 53km (33 miles) long, 20km (13 miles) wide, land area 572 sq km (227 sq miles)

Great Barrier Island is 40km (25 miles) long, 16km (10 miles) wide, land area 285 sq kilometres (110 sq miles)

Chatham Island 61 km (38 miles) long, 40 km (25 miles) wide, 963 square km (372 sq miles)

Stewart Island is 70 km long (45 miles) long, 40 km (25 miles) wide, land area 1,746 square km (674 sq miles)

Jersey is 16km (10 miles) across, 8 km (5 miles) from north to south and has an area of 115 square km (44 sq miles)

(Don't quote me on the Chathams length and width - they're from the 1911 encyclopedia which is full of inaccuracies.)

Sunday, September 05, 2004

USB Mouse with 2.6 Kernel

To get my USB mouse working with the 2.6 kernel (in Debian Sarge with 2.6.7)
I had to add these modules to /etc/modules:

usbhid
uhci_hcd
mousedev

I didn't need usbcore because it loaded itself.

I found that these also work for the 2.4.27 kernel, and I don't need the usbmouse module.

Tuesday, August 31, 2004

Windows Journal Viewer returns the alert 'The feature you are trying to use is...unavailable' when you start Acrobat (6.0 on Windows 2000 or XP) - Sup

Windows Journal Viewer returns the alert 'The feature you are trying to use is...unavailable' when you start Acrobat (6.0 on Windows 2000 or XP) - Support Knowledgebase

Suckful little thing!!!

Goes into a "I will beat on you until I am installed on your hard disk - at any cost!" loop...

Only way to break out is with Task Manager...

Microsoft Windows Journal Viewer 1.5

"This accessory enables users who do not have a computer running Microsoft® Windows® XP Tablet PC Edition to view files that were created in Microsoft® Windows® Journal on a Tablet PC."

Oh yeah, looks damn useful to ME... NOT!