Playful Color

thumb

Playing around with color a bit…. It seems like a better idea to color images in photoshop, than to spend the effort to vectorize them.

February 19, 2008@10:28 am

Girl With Squid

thumb

Octopi and squids are such beautiful creatures, so unlike all the other fish in the sea… There’s something interesting about the way they move, with their flowing tentacles searching about for some morsel.

@9:55 am

Visualizing Geometric Series

Well, in some sort of spontaneous programming focus, I decided to actually write something outside of my dank office at work. My real interests with mathematics and art is visualizing abstract concepts — whether they be geometric series, or scantily clad women (they’re abstract for me at least).

So, I wrote a simple java applet (ohh the horror of applets!) that cutely visualizes the convergence and divergence of geometric series. It’s all open source under the GPL (not that anyone actually cares enough to reuse the code)…

Geometric Series Convergence Visualization

@9:37 am

Qt Dynamic Cast Issues

Writing this little memo entry highlights my need for some sort of tagging system… I’m writing this in hopes of people with this unique annoyance to be transfered here via the google bot….

Ok. So your coding with QT 4 and using dynamic_cast for your implementations of Qt’s widgets… There’s a very good reason for you not to be doing this… There seem to be some unique issues, and besides — QT has it’s own method of casting which does not require RTTI. In the Porting to QT 4 document on Trolltechs website I noticed a little blurb about the special casts available to you in QT. You’re probably thinking “Yea I know about the qobject_cast” from the QObject documentation on QT’s website. Hold on, my friend! QT has more than just one weird cast, there’s:

  • T *qobject_cast(QObject *)
  • T qgraphicsitem_cast(QGraphicsItem *)
  • T qstyleoption_cast(QStyleOption *)
  • T qvariant_cast(const QVariant &)
  • T qdbus_cast(const QDBusArgument &)

The one that interested me was qgraphicsitem_cast which is needed because QGraphicsItem does not inherit (indirectly or directly) from QObject. Oh yes, and to add to QT’s idiosyncrasies with casting it seems that if (QGraphicsItem*)->isVisible() returns false (the object is invisible), the cast fails for your subclasses… this might just be related to QT 4.3 though. Alright I’m done with my first geek sarcastic post. Hurrah!

@9:34 am

New Years Cleaning

Just in time for the new year I’ve made some substantial updates to the website. I got rather tired of the “externals” sections being so isolated, off in its own little page. So, I integrated that information on the main page, directly below the text you’re currently reading. Most noticeable are the del.icio.us links, which I plan to be updating more frequently. Hopefully, this will make up for the lack of textual updates. I do plan, however, to be committed to the Weekly Sketch idea in the upcoming year.

There has been some random artwork added as well, and the artwork section has gotten a revamp. I’ve still got a few things in my sketchbook that I would like to scan given the chance, so more to come. I think the About section needs some tidying and dusting as well…

I’ve got substantial improvements in mind for the next year, hopefully with a focus on mathematical visualization toys. The sole project thus far is the Geometric Series applet I wrote a few months ago, which is not nearly complete. I’ll probably keep posting blurbs about programming situations as well, at least with Qt and java issues. Hopefully, there of use to somebody.

February 1, 2008@9:33 am
« Older Posts