too appropriate for words
I should really be asleep right now. But I saw this and could not resist putting it here.
Gah. Well, here it is.
www.groundhog.org
There. I can sleep now.
Gah. Well, here it is.
www.groundhog.org
There. I can sleep now.

4 Comments:
Hey, what can you say: go to sleep,Jon.
Hey Jon, has Eva let you know her
plans re: birthday(s) visit?
Yeah, I did. :D
I stayed up late last night improving my programing skills; ruby in specific. See on the left of the window, the 'Pragmatic Ruby' link? That's a link to a programming manual for a scripting language called Ruby. I recently found the Boston Ruby Users Group and went to a meeting of theirs. If I'm going to count myself among them then I need to use Ruby on more of a daily basis; I use it at work, but there I have examples to work by.
Anyway, here's some sample code. If I write from 'the ground up' a little more I'll have the basics down pat.
#!/usr/bin/ruby
require "find"
# brushing up on the ol' sckills ; working as of 2006Feb08
NL = "\n"
fn = ARGV[0]
puts NL
puts "Here is some text on the screen." << NL*2 << "Print, text, print." << NL*2
unless ( fn.nil? )
puts "Looks like you passed an argument. In this file that is handled as a filename handle, 'fn'." << NL << "You set it's value to '#{fn}'." << NL
fh = File.new("#{fn}.txt", 'w')
fh << "Here is some text in a file." << NL*9
Find.find("/home/jon/Documents/firefoxIncoming", "/tmp/") do | fn |
fh << fn << NL
end
fh.close
puts "Hopefully the output of a 'find' command ended up in that file as text." << NL
else
puts "You might have given the program a word to play with." << NL << "It's much more interesting that way. ;)" << NL
end
So what do you think? Not very advanced or interesting looking, is it? :D
See ya.
No plans for birthday visits yet; I know Maggie turns 6 tomorrow though!
Post a Comment
<< Home