Skip to content
Archive of posts filed under the General category.

Great syntax highlighting plugin for WordPress

At times, I think I spend more time writing about using wordpress than actually using it sometimes. I’ll need to fix that. Today, thanks to WordPress’s dashboard, I came across the WP-Codebox plugin. THanks to GeSHI, it can color up a lot of languages and fixes some problems I’ve had with other plugins. Honestly, I’ve never been satisfied with any of them. I think this could change that.

Just to show it off, I present to you some random ruby I wrote the other day when I was working on something. I’ll leave it to you to guess what I’m doing and why with this code. (And I also think I could do it better than using a while loop, but I was able to bang it out quickly for what I needed.)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env ruby
require 'fileutils'
 
srand(Time.now.to_i)
offset = 214
 
files = Dir['*']
 
count = 1
while !files.empty?
  file = files.delete_at(rand(files.size))
  extention = File.extname(file).downcase
  name = sprintf('%d%s', count + offset, extention)
  puts "#{file} -> #{name}"
  FileUtils.move(file, name)
  count += 1
end

Evan’s a tv star

He’s not a gangster!

This morning Dinah asked if she could watch the movie with “Jimmy the cricket.”  I caught the word ‘the’ in there and it just cracked me up, it just strikes me as a mafia nickname.

I can just see Jiminy coming in with a lead pipe and a blowtorch.

Heather Norton is the…

Heather Norton is the terrible person for introducing me to Jott. Now I think(?) to my blog. listen

Powered by Jott

I thought it was April showers…

not april flurries…

April Snow

Please change your language usage

It seems that the words ‘traditional’ and ‘conventional’ are too charged. I suggest using ‘old-tyme’ (pronounced ‘old time-ee’) instead of either word. It’ll always leave a smile on the face of who you are talking to and not the offense of the other words.

Day off == New Theme

So, I’ve wanted to make some changes to my WordPress theme for awhile.  The biggest one was to add my del.icio.us tags to the page.  I’m not sure why I wanted to do this, but I did.  A few months ago Dave posted about his switchover to sandbox and some other tweaks he had done.  He also talked about it on irc.

I made the switch this morning.  The ability to drag and drop the sidebar widgets is a killer feature and what will keep me on sandbox for awhile.  If you’re visiting the page, you can see i still need to tweak the CSS to be less ugly.  Its not a big deal and it can certainly wait.  Tweaking CSS always causes my brain to bleed.  However, this looks straight forward.  I made the big hurdle which was switching themes.

The Shroud of the Flying Spaghetti Monster

The Shroud of the Flying Spaghetti MonsterRecently, I took a trip to middle IL, and found a physical clue to the existence of the Flying Spaghetti Monster.  Much like the Shroud of Turin, this simple linen cloth bears the image of the FSM.  It shows appendages similar to his Noodly Appendage, and a where The Meatera rested above them.

I am certain it will be the subject of intense debate among some scientists, believers, historians and writers regarding where, when and how the shroud and its image were created.

(Click on the image for a bigger view.) 

Maintenence fun

I just upgraded to WordPress 2.0. It looks like everything went okay. For some reason on firefox the rich text editor isn’t working so well, but that’s something that effects me, not you as a reader.

Let me know if you see anything weird.

The Dark Tower returns!

This time in comic form!

STEPHEN KING BREAKS NEW GROUND AT MARVEL WITH ORIGINAL COMIC SERIES BASED ON HIS EPIC THE DARK TOWER

It looks like they’ll be following the young Roland when he started out his journey. Hopefully we’ll see Cuthbert and Alain.

Also, this marks the first time Stephen King has done original content for comics, so that’ll be good. I guess I’ll have to tell Keith to hold them for me.