Voder-Vocoder

The Log of Hal Canary

Navigation: Home | THE LOG | Log Archives | Resume | Contact Info | Public Key | SSL | Math Applets | Site Map | WP Backend | RSS2 | Atom

Archive for 2003-07

« Previous Entries

Standard Keybinding for Emacs

;; $HOME/.emacs ;;
(global-set-key
   [(control s)]
   'save-buffer)
(global-set-key
   [(control f)]
   'isearch-forward)
 (define-key isearch-mode-map
   [(control f)]
   'isearch-repeat-forward)

Code from This message

I’ve been working on this for a while now. I’d like to produce a .emacs file that will completely remap the keybindings to some kind of standard.

The biggest problem seems to be the ctrl-x and ctrl-c behavior.

To those in the emacs community who say that the default behavior is superior, I won’t disagree. But ctrl-f is search in my browser, and whenever I hit ctrl-s to search, it tries to save the web page. So I figured I needed to retrain myself and emacs to a single standard.

Hal Canary | Computers & Code | 2003-07-24 21:49:52 EDT
Permanent Link | Comments Off

Robots!

An essay on Robots. Yes, robots will take over the world. Or worse, take away that menial labor job you have. So buy stock in RobotCorp now and reap the profits when they take away your job!

Hal Canary | Robots | 2003-07-24 17:53:48 EDT
Permanent Link | Comments Off

Photo Printing

I went to Woodman’s (a local supermarket) yesterday to get a few of my digital photos printed. They came out great. Photos taken with a 2Mpixel digital look great printed at 8"x12".

Hal Canary | Photos | 2003-07-21 19:35:19 EDT
Permanent Link | Comments Off

MLP

[1] and [2] and [3]

Hal Canary | Mindless Link Propagation | 2003-07-21 01:07:22 EDT
Permanent Link | Comments Off

Dreams

All of my recent nightmares have been about high school lit classes. I guess tenth grade english left a lasting impression on me.

Hal Canary | Dreams | 2003-07-20 17:43:41 EDT
Permanent Link | Comments Off

despaceify script

It now gets rid of apostrophies as well as spaces. It will then convert to lowercase unless it is a directory.

#!/usr/bin/perl
## ~/bin/despaceify ##
#DTPD#
foreach my $file (glob "*") {
  my $new = $file;
  $new =~ s/ /_/g;
  $new =~ s/\'//g;
  $new =~ tr/A-Z/a-z/
    if (system "test -d \"$file\"");
  system "mv -vi \"$file\" $new"
    if ($new ne $file);
}

Hal Canary | Computers & Code | 2003-07-19 03:50:10 EDT
Permanent Link | Comments Off

Photos

[Thumb]

I found some cool old photos floating around my hard drives. This one’s a gem. Also check out Mark’s Photos, which have been updated recently.

Looking at old photos it would seem that I gained a lot of weight while working at Epic. Desk jobs suck. Maybe I’ve got enough self control to stick to diet and excercise. But I doubt it.

While moving files around my harddrive, I was forced to update my…

Hal Canary | Photos | 2003-07-19 03:49:10 EDT
Permanent Link | Comments Off

Screenshots

[] [] []

This is what this pages looks likes in various browsers. Notice how NS47 degrades gracefully and IE60 ouputs garbage.

Hal Canary | Computers & Code | 2003-07-19 03:48:10 EDT
Permanent Link | Comments Off

Google Fun

Hal Canary | Mindless Link Propagation | 2003-07-17 21:11:40 EDT
Permanent Link | Comments Off

Photos

[Thumb] I put up more photos from last month’s traveling.

I learned a few cool things recently. How to rotate an image with the gimp (especially useful when there is a horizonatal horizon): Use the transform tool. I had never noticed that button before; I kept looking for rotation in the context menu, but that’s the wrong place to look.

Also, if you’ve got a B&W printer and want to print off a color image, use the “convert -charcoal” command to create a new image.

Hal Canary | Photos | 2003-07-17 21:10:40 EDT
Permanent Link | Comments Off

<hr> considered harmful.

90% of the time you use a <hr> you are putting a divider between sections or subsections that are already (or should already) be divided by <h2>’s or <h3>’s. Instead use <div>’s to break up sections and subsections. So

<!--document.html-->
<h2>Welcome</h2>
<p>Paragraph</p>
<hr />

<h2>Blog</h2>
<p>Paragraph</p>
<hr />

becomes

<!--document.html-->
<div class="section">
  <h2>Welcome</h2>
  <p>Paragraph</p>
</div>

<div class="section">
  <h2>Blog</h2>
  <p>Paragraph</p>
</div>

The following css will produce a <hr> style border:

/* style.css */
div.section {
   border-bottom:
    solid 3px #000000 ;
 }

At this point you can have more fun with the css, without touching the html any more. (Isn’t that the point?) Try putting each <div class=”section”> in its own little colorful box.

Hal Canary | Computers & Code | 2003-07-16 19:20:59 EDT
Permanent Link | Comments Off

perl tip of the day

Dont’s use “s/bleg/blarg/” when you mean to use “s/bleg/blarg/g”!

Hal Canary | Computers & Code | 2003-07-16 19:19:59 EDT
Permanent Link | Comments Off

« Previous Entries

Copyright 1997-2007 by Hal Canary.
mailto: h3 at halcanary dot org
xmpp:halcanary@jabber.org
aim:halwcanary
http://halcanary.org