Jump to menu and information about this site.

Friday·20·January·2006

Garth’s test

sort

Sort these: ( [2005,6],[2005,8],[2004,2],[2002,12] ) (note: a good second question might be: what sort algorithm does Perl use and what alternatives are there)

iterator

write a sub that returns a closure, that when invoked, returns the successive elements of a passed-in array.

Artur’s test

The monk climbs the mountain from 6am to 6pm. And the next day while he is descending from 6am to 6pm, a priest climbs. The priest gets to the top at 6pm, which is the same time that the monk gets to the bottom.

Is there a time that they are ever at the same height?

I solved this equationally at shopzilla somehow. I solved it graphically at shopzilla. The next day, I realized, that the picture of someone going down the other side was a red herring: if I had only reflected the downward trip on the upward trip, I would have noticed that they would cross paths!

Sixapart is neck-deep in talent

  • Artur Bergman
  • Tatsuhiko Miyagawa
  • David Davis
  • wrote perlbal, mogilefs, memcached, gearman

My second technical test at IMDB

  1. If a SELECT is running too slowly how would you debug it?
  2. why not index a bunch of individual fields in a database
  3. Class::DBI iterators - how are they implemented? Are they efficient?
  4. how does CDBI differ from other DBIx::*
  5. least favorite Perl feature
  6. what are you going to learn next about Perl?

Thursday·19·January·2006

I cannot mount my 320gb external scsi hd

Here is the report from /var/log/syslog when I mount this drive:

Jan 19 07:50:25 localhost kernel: scsi2 : SCSI emulation for <acronym title="Universal Serial Bus; United States of Bush">USB</acronym> Mass Storage devices Jan 19 07:50:25 localhost kernel: usb-storage: device found at 14 Jan 19 07:50:25 localhost kernel: usb-storage: waiting for device to settle before scanning Jan 19 07:50:25 localhost kernel: hiddev96: <acronym title="Universal Serial Bus; United States of Bush">USB</acronym> HID v1.10 Device [Western Digital External HDD] on usb-0000:00:1d.7-1.2 Jan 19 07:50:26 localhost usb.agent[23682]: usbhid: already loaded Jan 19 07:50:26 localhost usb.agent[23701]: usb-storage: already loaded Jan 19 07:50:30 localhost kernel: Vendor: WD Model: 3200JB External Rev: 0112 Jan 19 07:50:30 localhost kernel: Type: Direct-Access ANSI SCSI revision: 00 Jan 19 07:50:30 localhost kernel: SCSI device sda: 625142448 512-byte hdwr sectors (320073 <acronym title="Megabyte">MB</acronym>) Jan 19 07:50:30 localhost kernel: sda: assuming drive cache: write through Jan 19 07:50:30 localhost kernel: SCSI device sda: 625142448 512-byte hdwr sectors (320073 <acronym title="Megabyte">MB</acronym>) Jan 19 07:50:30 localhost kernel: sda: assuming drive cache: write through Jan 19 07:50:30 localhost kernel: /dev/scsi/host2/bus0/target0/lun0: p1 Jan 19 07:50:30 localhost kernel: Attached scsi disk sda at scsi2, channel 0, id 0, lun 0 Jan 19 07:50:30 localhost kernel: usb-storage: device scan complete Jan 19 07:50:30 localhost scsi.agent[23786]: sd_mod: loaded successfully (for disk) Jan 19 07:50:30 localhost udev[23833]: run_program: exec of program &#8216;/usr/share/usbmount/usbmount&#8217; failed Jan 19 07:50:30 localhost udev[23853]: run_program: exec of program &#8216;/usr/share/usbmount/usbmount&#8217; failed I noted the usbmount issue above, but I think I should still be able to type mount /ernest based on my fstab:

/etc/fstab

Here is my /etc/fstab proc /proc proc defaults 0 0 /dev/hda2 / ext2 defaults,errors=remount-ro 0 1 /dev/hda3 none swap sw 0 0 /dev/sda2 /ernest ext3 rw,noatime 0 0 /dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto 0 0 /dev/sr0 /media/extdvd udf,iso9660 user,noauto 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

Saturday·14·January·2006

Setting version number of a file in CVS

<a href="http://www.cvshome.org/" class="ext">cvs</a> commit -r 4.0 [ filename ]

To remove sticky tag:

cvs update -A

Perl Software Design Blog

About...

This is the weblog of the Perl Software Design Group.

Who We Are

Terrence Brannon
Matthew Sisk
Brock Wilcox
Gary Aston-Jones


Calendar

← 2025 →
Months
Jun
Jul Aug Sep Oct Nov Dec
← June →
Mo Tu We Th Fr Sa Su
           
26 27 28 29
30            

Search


Advanced Search


Categories

Blogroll

People I know personally




Blogging Software Blogs