Update: 21 Things

Wow. It’s been a while. Almost a month. Sorry about that.

This is the time of year when everything gets crazy for my department. Hopefully it will ease up around Christmas.

So, anyway, here’s what I’ve been up to. Since my last post I…

  1. cleaned someone else’s vomit off of my PowerBook. 
  2. made huge changes to Tangelo (mostly in the area of FTP publishing).
  3. took my family on our annual trip to Ocean City, NJ.
  4. cried several times because I miss our most recent foster daughter so much.
  5. received a ridiculous amount of compliments on how cool our stroller/backpack combo is. Although, truth be told, it is pretty cool.
  6. took two vacation days.
  7. released an updated version of Kodiak.
  8. made lego versions of my coworkers.Lego Brad, Casual
  9. went back on Atkins. Several times, in fact.
  10. ate pizza at Mack & Manco’s.
  11. finally made another batch of my homemade raspberry iced tea.
  12. helped my church purchase a Korg Triton LE 88 to replace the out of tune piano our host building lets us use as part of the rental.
  13. ran my USB jump drive through the wash. Still works, though. All part of my “data cleansing” project at work.
  14. rented a dumpster and began the monumental task of dejunkifying my house.
  15. was quoted in a REAL Software press release about the REAL World conference.
  16. had quite a few long discussions about what Pennsylvania really means when it says “Attribution School” on PSSA results.
  17. couldn’t think of any more witty death matches.
  18. got to visit Tanya.
  19. bought some new jeans.
  20. acquired yet another hideous green PowerSchool t-shirt.
  21. attended Parent Visitation Day at Gracie’s school. I got to eat lunch with her. It was really, really nice.

Pushing My Buttons

My continuing adventures with composite windows, listboxes, toolbars, and HTMLViewers

I am a happy user of Electric Butterfly’s MaxiToolbarPro. I use it because it makes it so easy to maintain a nice set of cross-platform toolbars, and they look native enough for me on OS X.

And then REALbasic 2005 shipped, with a feature I’ve been waiting for: the HTMLViewer. The HTMLViewer is a platform-native control for rendering HTML. On OS X, it uses WebKit, the rendering engine behind Safari. On Windows, it uses IE. On Linux, it uses Mozilla if available. But I don’t plan to ship a Linux version of Tangelo anyway.

But this great feature comes with a price: on OS X, it can only be used with composite windows. I didn’t think that would be a problem. Of course, I hadn’t used composite windows before, but I didn’t see why it should cause any trouble.

Then the trouble started.

My toolbar buttons would randomly disappear or draw incorrectly. I spent a few weeks going back and forth with Dave from Electric Butterfly, and in the end, we determined that it was a bug in REALbasic itself, that only occurs when using a custom canvas on a composite window with a listbox. Which describes my interface pretty well, actually. Dave was incredibly helpful, but since the bug is in RB, there wasn’t anything more he could do.

Time passed.

I finally decided that instead of waiting for RB to fix the bugs with listboxes on composite windows screwing with the toolbars, that I’d just go ahead and use native toolbars on that window (REALbasic has support for native OS X toolbars, but they’re not cross-platform, of course). No harm done, just a little extra code to shift things around a bit. So I add native toolbar buttons to the window and write a bunch of conditional code to put things in the right places depending on the platform (because Windows is fine, and I can still use MaxiToolbarPro without a hitch). Now it crashes on quit. Every time.

So I narrow it down and discover a conflict between RB’s native toolbar support and the HTMLViewer. Grrr. I filed a bug report and tried to drum up some support on the NUG, but no bites. So start thinking and I remember Thom McGrath wrote some wrapper code for using “real” toolbars, not just the partial RS implementation. I download it, start to add it to my project. Now it won’t compile. Thom’s classes require the app to be Mach-O, one of two executable formats available for Mac OS X (the other being PEF). OK, so I compile it as Mach-O and now it crashes on startup. SQLitePluginPro error. I confirm the bug with Will from SQLabs, but there’s no fix yet. Crap! Well, I’ll just switch to using REALSQLDatabase, the new database engine in RB 2005, since that’s based on SQLite, right? Wrong! REALSQLDatabase is SQLite 3, but SQLitePluginPro is SQLite 2. And they’re not compatible. And there’s no way to migrate without the SQLitePluginPro working. More thinking.

I end up downgrading SQLitePluginPro to 1.1 or something like that, and it starts working on Mach-O. Cool. Finally some progress. But now I hit another problem: using Thom’s HIToolbar classes, I can apply stock Apple icons to my toolbar buttons, but no custom icons. Well, that sucks. So I go back and forth with Thom a bit, and in doing so, I find that it works with RB 5.5.x, which, of course, does me no good since the whole point was to use the HTMLViewer in the first place! After a bit, Thom tells me that RB2005, all of his declares to Quartz need to be declared to Carbon instead. So I change about four or five methods making those declares, and after only three weeks, my window works now!

So, long story short, expect a new Tangelo beta real soon now.

A List

Via Ramblings:

I don’t usually do lists like this, but this one seemed fairly interesting. You’re supposed to bold stuff that applies to you.

I have..

smoked a cigarette
smoked a cigar
smoked a joint
crashed someone’s car
stolen a car
been in love
been dumped
been fired
been in a fist fight
snuck out of my parent’s house
had feelings for someone who didn’t have them back
been arrested
made out with a stranger
gone on a blind date
lied to a friend
had a crush on a teacher
been to Europe
skipped school
seen someone die (if parakeets count)
been to Canada
been to Mexico
been on a plane
seen the Rocky Horror Picture Show
thrown up in a bar
purposely set a part of myself on fire
eaten Sushi
been snowboarding
met someone in person from the internet
been moshing at a concert
been in an abusive relationship (emotional or physical)
taken painkillers
love someone or miss someone right now
laid on your back and watched cloud shapes go by
made a snow angel
had a tea party
flown a kite
built a sand castle
gone puddle jumping
played dress up
jumped into a pile of leaves
gone sledding
cheated while playing a game
been lonely
fallen asleep at work/school
used a fake ID
watched the sun set
felt an earthquake
touched a snake
slept beneath the stars
been tickled
been robbed
been misunderstood
pet a reindeer/goat
won a contest
run a red light
been suspended from school
been in a car accident
had braces
felt like an outcast
eaten a whole pint of ice cream in one night
had deja vu
danced in the moonlight
hated the way you look
witnessed a crime
pole danced
been obsessed with post-it notes
squished barefoot through the mud
been lost
been to the opposite side of the country
swam in the ocean
felt like dying
cried yourself to sleep
played cops and robbers
recently colored with crayons/colored pencils/markers
sung karaoke
paid for a meal with only coins
done something you told yourself you wouldn’t
made prank phone calls when you were younger
laughed until some kind of beverage came out of your nose
caught a snowflake on your tongue
danced in the rain
been kissed under the mistletoe
watched the sun rise with someone you care about
blown bubbles
made a bonfire on the beach
crashed a party
gone rollerskating
had a wish come true
humped a monkey
worn pearls
jumped off a bridge
screamed PENIS in public
ate dog/cat food
told a complete stranger you loved them
kissed a mirror
sang in the shower
have/had a little black dress
had a dream that you married someone
glued your hand to something
got your tongue stuck to a flag pole
kissed a fish
worn the opposite sex’s clothes
been a cheerleader
sat on a roof top
screamed at the top of your lungs
done a one-handed cartwheel
talked on the phone for more than 6 hours
stayed up all night
didn’t take a shower for a week.
picked and ate an apple right off the tree
climbed a tree
had a tree house
are scared to watch scary movies
believe in ghosts
have more than 30 pairs of shoes
worn a really ugly outfit to school just to see what others say
gone streaking
pushed into a pool/lake with all your clothes on
been told you’re beautiful/handsom by a complete stranger
broken a bone
been easily amused
caught a fish then ate it
caught a butterfly
laughed so hard you cried
cheated on a test
have a Britney Spears CD
forgotten someone’s name
French braided someone’s hair
fallen asleep with your bf / gf
fallen asleep with someone you weren’t going out with
cried so hard you laughed
mooned someone
had someone moon/flash you
slept naked

Reference

Big Ranch, Deadly Disease

I came across a great quote today:

Two Texans were trying to impress each other with the size of their ranches. One asked the other, “What’s the name of your ranch?” The rancher replied, “The Rocking R, ABC, Flying W Circle C, Bar U, Staple Four, Box D, Rolling M, Rainbow’s End, and Silver Spur Ranch.” Duly impressed, the questioner exclaimed, “Wow! That’s sure some name! How many head of cattle do you run?” With a sad shake of his head, the rancher answered, “Not many. Very few survive the branding.” And so it is with pride. Very few survive this deadly disease.
– Mary Southerland