November 2007

wxRuby animation demo not quite working…

Posted this to the wxruby-users mailing list. Let’s see if anyone else has attempted anything like this.

OK, I have a basic blit demo working (thanks to Alex Fenton for his reply, which I finally saw).

However, there’s a great deal of “tearing” on the screen - flickering grey lines in the black background. It looks like the blit isn’t always complete when the screen refreshes.

Can anyone look at this and tell me what I might be doing wrong? Any help would be most appreciated!

-Jay McGavren
http://jay.mcgavren.com/zyps

Continue Reading »

ruby
zyps

Permalink

CNN was on the TV in the cafeteria, and I looked up and saw the ticker: “Hostage Situation at Clinton Campaign Office”. There was no audio, so I asked the lady behind the counter, “Did Hillary finally snap?”

general

Permalink

Gamer/Game Maker

gamer_gamemaker.jpg

This picture was not (completely) staged.

general

Permalink

She must think I’m senile.

My vague recollection is something like this… 5:30 AM: Diana’s alarm goes off. I get up and turn off the baby monitor. Diana calmly corrects me, tells me to go back to bed, and turns the baby monitor back on.

general

Comments (1)

Permalink

Hmmm, editing the search in GMail URLs seems to be working properly now…

https://mail.google.com/mail/?shva=1#search/zyps+label%3Astarred

Time to update a few shortcuts…

general

Permalink

turn_rate => 180, turn_angle => 80

turn_100.png

ruby
zyps

Permalink

Hmmm…

		#Clear the background on the buffer.
		graphics_context.rgb_fg_color = Gdk::Color.new(0, 0, 0)
# 		buffer.draw_rectangle(
# 			graphics_context,
# 			true, #Filled.
# 			0, 0, #Lower-left corner.
# 			@width, @height #Upper-right corner.
# 		)

turn_chase_noerase.png

Or…

		@view = TrailsView.new(
			:width => options[:view_width],
			:height => options[:view_height])#,
			:trail_length => 100
		)

turn_flee_100.png

push_pull_100.png

Definitely gonna put no-erase and trail length options into the GUI. Hell, add a few effects, and it might be time to open an exhibition.

general
ruby
zyps

Permalink

Finally got my Enso extension server working. I’ve begun replacing all my pipe-clipboard-to-batch-file utilities with EnsoExtension::Command objects, and the “feel” is pretty nice so far.

Unfortunately, I can’t publish them more widely yet. Anything that uses getUnicodeSelection followed by setUnicodeSelection makes line separators go all wonky in Word and Notepad. (But not Notetab Light, Wordpad, or Eclipse, oddly enough.) I’m sure the solution would be perfectly obvious to anyone who works with Unicode (or GUI selections) more regularly, but it’s giving me some trouble.

Oh, well, my own setup is pretty nice. I won’t worry about those using lesser editors for now.

I also finally set up a personal Ruby lib under my home directory, something I’d been meaning to do for a while. All the shared functionality between my different utilities is finally going to be consolidated into a few modules.

general

Permalink

Wanna know what retarded #@##@$ song is stuck in my head TODAY?!

You gotta be bold
you gotta be bad
you gotta be wiser
all I know
all I know
love will save the day

I think I’d rather have the goddamn Barney theme.

general

Permalink

Dreamt last night that I was testing a new jet for the Air Force. It was made of plastic, completely recyclable, and intended to be disposable.

It worked off of voice commands or thought, and ran a preprogrammed mission schedule - in fact I’m not really sure why it needed a human pilot, unless something went wrong. But there I was in the pilot’s seat, and I put the jet through its paces according to instructions from the ground.

Then my alarm went off. Hit snooze. The jet was gone, and replaced with the power to fly unaided. Alarm went off again. Hit snooze. Now I could fly and perform Christ-like healing miracles. Yeah. Then Diana burst into the room, saying we were going to be late for our appointment. Dream over, man.

general

Permalink