17 Dec, 2008
Posted by: Matt Williams In: jboss| tips
One, One database record!
Two, Two database record!
Muahahaha!
By default, when using datasources with JBoss, it does a count to validate a connection, both on creation and when it is requested from the connection pool. It looks something like:
select count(*) from x
Now, this can take take a while when working with tables containing 1.8 million rows and [...]
So, I have a piece of code which goes out and updates a list. I’m using Ajax.Updater from Prototype.js, to get data back from the server. In my javascript, however, I’m immediately after kicking off the Ajax.Updater, doing processing based on the results from the update. And they’re out of sync, of course.
It [...]
25 Nov, 2008
Posted by: Matt Williams In: ruby| tips
Maybe it’s me. Maybe it’s a feature of ubuntu, but on two separate systems, when I went to upgrade rubygems to the latest via
gem update –system
it didn’t work for me. So, I had to go the more extreme route of:
gem install rubygems-updateupdatee_rubygems
This is mostly for my own reference, it’s not the first time [...]
18 Nov, 2008
Posted by: Matt Williams In: idiocy
I just named a rails controller class ElmoController, because it gets invoked by a tickler…
14 Nov, 2008
Posted by: Matt Williams In: gotchas
To concatenate in PHP you use a ‘.’, not a ‘+’. Likewise, you don’t use ‘.’ to reference an object’s members, you use ‘->’.
Move along, nothing to see.
First off, let me say that I really like DIY Map. It’s quick, and responsive, with an easy to use interface, as well as allowing you to make changes on the fly easily.
That said, I discovered lastnight / this morning that there are some quirks with its updating through the Flash JavaScript Integration Kit. [...]
11 Nov, 2008
Posted by: Matt Williams In: gotchas
Been a while since I’ve written. I’ve been sick and working on a side project. That said, I’ll be writing more……
Today’s note/reminder is a gotcha about YUI datasources. If you have JSON feeding the datasource and you’re getting back more fields in the results than you’re expecting, the datasource will not behave properly. For example, [...]
I’m a stationary supply junkie. I admit it. I love pens, papers, notebooks…. I’ve just found a new favorite pencil. Barnes & Noble has a small section of art supplies in a local store and one of the items they have are graphite stick pencils. At first grasp, they feel a little heavy — about [...]
I have been doing some site scraping of late. And as a result, I have really come to appreciate the semantic web. It’d make life infinitely easier for grabbing data. Of course there are other, better reasons for using the semantic web, but right now, it’d make a difference in my life.
07 Oct, 2008
Posted by: Matt Williams In: idiocy| rants
Generally, if you are working with an external library, such as yui, it’s not a good idea to override the css for a widget’s css class. That means that every instance of the widget will have that property, whether you want it to or not. Moreover, it means that in order to fix it, you [...]