I have now worked my way past this particularly opaque Safari error message twice, which is one time too many, so I am putting the explanation for my error case online. Safari seems to have a few cases where it throws up this utterly useless error message. It does include a line number reference, and double-clicking the error line in the log will take you to the offending line, but heaven help you if it is not clear what is wrong at that point.
I found another reference to this problem on the web, but it wasn't the problem I had.
My problem was that I used "abstract" as a variable name. Because I am working on web pages for viewing presentation abstracts, this seemed natural, however I guess "abstract" is a reserved word of some kind in Safari's Javascript implementation. Firefox showed no errors and happily ran code that Safari could not even parse.
Friday, May 25, 2007
Tuesday, May 22, 2007
Cognitive Dissonance
Try to hold these two concepts in my head at once... Ed Parsons, at the Open Street Map conference... Ed Parsons, at the Open Street Map conference... Ed Parsons, at the Open Street Map conference...
Just as in Hollywood, casting against type is sure to bring in the punters.

Ed Parsons, former CTO of the Ordnance Survey (organization dedicated to the monetization of proprietary data), current geospatial evangelist for Google (organization dedicated to the monetization of proprietary data), speaking to Open Street Map (organization dedicated to the free public domain data). Will there be a mud wrestling pit too?
Just as in Hollywood, casting against type is sure to bring in the punters.

Ed Parsons, former CTO of the Ordnance Survey (organization dedicated to the monetization of proprietary data), current geospatial evangelist for Google (organization dedicated to the monetization of proprietary data), speaking to Open Street Map (organization dedicated to the free public domain data). Will there be a mud wrestling pit too?
Friday, May 18, 2007
Mass Shape File Load into PostGIS
I needed some test data to do some performance investigations, and had to load 235 shape files, all of identical schema. Here's what I did.
First, get the table schema into the database, by loading a small file, and then deleting the data. We delete the data so we can loop through all the files later without worrying about duplicating the data from the initial file.
Then use the shell to loop through all the shape files and append them into the table.
Note the "-a" switch to tell
Seven hundred thousand line segments, ready to play!
First, get the table schema into the database, by loading a small file, and then deleting the data. We delete the data so we can loop through all the files later without worrying about duplicating the data from the initial file.
shp2pgsql -s 3005 -i -D lwssvict.shp lwss | psql mydatabasepsql -c "delete from lwss" mydatabaseThen use the shell to loop through all the shape files and append them into the table.
foreach f (*.shp)foreach? shp2pgsql -s 3005 -i -D $f -a lwss | psql mydatabaseendNote the "-a" switch to tell
shp2pgsql we are in append mode, rather than the default create mode. Add a spatial index, and we're done.psql -c "create index lwss_gix on lwss using gist (the_geom)" mydatabaseSeven hundred thousand line segments, ready to play!
psql -c "select count(*) from lwss" mydatabase count-------- 755373(1 row)
Monday, May 07, 2007
Titanic Exhibit @ Royal BC Museum
For our reception at FOSS4G 2007 we have rented several galleries at the Royal BC Museum, for a stand-up reception amongst the exhibits. Should be very cool.
The Museum is currently hosting a "special traveling exhibit" of artifacts from the Titanic, but the cost of renting the Titanic gallery was exorbitant (more than the rest of the galleries put together), so we did not rent it. Thank goodness!
This weekend was rainy, so I took my daughter to the Museum on Sunday, and the price of getting in included the Titanic exhibit. So in we went. In fairness to the exhibitors, they did their best with what they had to work with. But let's remember what those things are: artifacts just 100 years old, and pretty ordinary; the limited selection of things they could drag up from 2 miles under the ocean that had not been completely pulped by time.
"Wow, what an attractive chamber pot." "Goodness, who knew they had taps back then." "Hm, a bottle full of an unknown fluid."
If you want a visceral experience of the Titanic... watch James Cameron's blockbuster movie. There is also an IMAX movie with underwater shots of the wreck showing at the theater attached to the Museum, which might be a bit more impressive.
While the Titanic exhibit is garnering all the hoopla, upstairs in the First Nations gallery is where the really good stuff is (we've got that one rented)! 100 year old totem poles, exquisite art, great historical presentation. And, especially good right now, they have the Dundas collection of Tsimshian art, collected 150 years ago. Really magnificent stuff, very museum-worthy and worth seeing. Sadly, the Dundas is also a traveling exhibit, and by the time FOSS4G rolls into town it will have already moved on.
The Museum is currently hosting a "special traveling exhibit" of artifacts from the Titanic, but the cost of renting the Titanic gallery was exorbitant (more than the rest of the galleries put together), so we did not rent it. Thank goodness!
This weekend was rainy, so I took my daughter to the Museum on Sunday, and the price of getting in included the Titanic exhibit. So in we went. In fairness to the exhibitors, they did their best with what they had to work with. But let's remember what those things are: artifacts just 100 years old, and pretty ordinary; the limited selection of things they could drag up from 2 miles under the ocean that had not been completely pulped by time.
"Wow, what an attractive chamber pot." "Goodness, who knew they had taps back then." "Hm, a bottle full of an unknown fluid."
If you want a visceral experience of the Titanic... watch James Cameron's blockbuster movie. There is also an IMAX movie with underwater shots of the wreck showing at the theater attached to the Museum, which might be a bit more impressive.
While the Titanic exhibit is garnering all the hoopla, upstairs in the First Nations gallery is where the really good stuff is (we've got that one rented)! 100 year old totem poles, exquisite art, great historical presentation. And, especially good right now, they have the Dundas collection of Tsimshian art, collected 150 years ago. Really magnificent stuff, very museum-worthy and worth seeing. Sadly, the Dundas is also a traveling exhibit, and by the time FOSS4G rolls into town it will have already moved on.
Subscribe to:
Posts (Atom)
