Google Street Maps [www.clasohm.com]

After Google has added street maps for Germany and Austria, I have changed my Google Maps module so it displays the normal map by default and allows you to switch to the satellite or hybrid view. For example, here's where I went for the last hike of this winter: Pürschling

13:29, 30 Apr 2006 by Carsten Clasohm Permalink | Comments (0)

Greasemonkey Script for Bloglines [www.bloglines.com]

Another Greasemonkey script, this time for focusing the right frame on bloglines.com: bloglines-com-focus.user.js

Bloglines has been offering hotkeys for some time, but I still like to click in the left frame to select a feed, and use the Space key in the right frame to scroll through the article list. Problem is that clicking in the left frame leaves the keyboard focus there. This script automatically moves the keyboard focus to the right frame when new content is loaded, getting rid of one annoying mouse click.

10:52, 02 Mar 2006 by Carsten Clasohm Permalink | Comments (0)

Google Sitemaps [www.google.com]

Recently, Google published the Google Sitemaps protocol that allows Web sites to inform Google about new content, like this blog entry.

I have done an implementation for OpenACS, which allows modules like lars-blogger to generate Google Sitemaps.

The infrastructure package can be found at

http://www.clasohm.com/prj/clasohm.com/browser/trunk/packages/google-sitemaps/

The code that generates the sitemap for lars-blogger is in

http://www.clasohm.com/prj/clasohm.com/browser/trunk/packages/lars-blogger/tcl/sitemap-procs.tcl
http://www.clasohm.com/prj/clasohm.com/browser/trunk/packages/lars-blogger/tcl/sitemap-init.tcl
http://www.clasohm.com/prj/clasohm.com/browser/trunk/packages/lars-blogger/www/index.vuh

For this to work, you will also need the directory "google-sitemaps" in the server root, which must be writable by the Web server.

The generated sitemaps can be downloaded at [ad_url]/google-sitemaps.xml. See

http://www.clasohm.com/google-sitemaps.xml

for an example.

If you want to retrieve a copy of the code, you can do so with Subversion and the URL http://www.clasohm.com/svn/clasohm.com/trunk/

22:52, 17 Sep 2005 by Carsten Clasohm Permalink | Comments (0)

Wikimania 2005 [wikimania2005.wikimedia.org]

I spent the last weekend at the Wikimania 2005 in Frankfurt, the first international Wikipedia conference.

One hot topic at Wikipedia is geographic information and creation of digital maps. After attending Arnulf Christi's presentation on Open Geo Data Projects, my Google Maps enthusiasm has cooled off a bit. Google decided to create their own API instead of following an existing standard. On the other hand, Google Maps just works too well to not use it for my hiking maps.

The second geo-related workshop I attended was done by Tobias Dahinden, and covered the graphical design of maps. From what I learned, map design is hard, and science has not made much progress in automatic map drawing in the last 30 years. And things get worse when it comes to displaying maps on a computer screen. The most devastating examples were side-by-side pictures of MapQuest and manually drawn maps. Another topic of this workshop was how to get the geographic coordinates for drawing maps. Unfortunately, only the USA makes data freely available when it has been created with tax money. Over here in Germany, geographic information is sold by the states, and may not be redistributed.

09:58, 09 Aug 2005 by Carsten Clasohm Permalink | Comments (0)

Google Maps Source [www.google.com]

As promised, the source code for my OpenACS Google Maps application is now available. You can either browse it, or download your copy with Subversion. The repository URL is

http://www.clasohm.com/svn/clasohm.com/trunk/packages/google-maps/

The two most interesting aspects of my implementation are the UI for creating a location, and the way the map is displayed.

When I designed the application, I first had to find a way for getting the geographic coordinates for all those locations. Manually copying the coordinates from a desktop mapping application would have been too tedious, and Wikipedia does not have an entry for all the points I want to display.

Fortunately, the Google Maps API provides the means for a clever solution. Just embed a map in the form page, and use the click event to store the geographical coordinates of a mouse click in run-of-the-mill form text fields.

The source for this can be found in location-edit.adp and location-edit.tcl, and here is a screenshot.

Now that it is easy to enter a long list of locations, the next exercise is to include them in the map. You cannot display them all at once, because you do not want to clutter the map when it is zoomed out.

Solving this has become easy when Google added GMarkerManager to the Maps API.

In location-view.adp, I extract the locations from the XML provided by location-list.tcl, and pass them to the marker manager.

At the same time I switched to GMarkerManager, I started to use the Google Earth icons.

23:20, 30 Jul 2005 by Carsten Clasohm Permalink | Comments (1)

Google Maps [www.google.com]

I still go mountain climbing and photo shooting without GPS, but the Google Maps API looked too interesting to be ignored. The API allows a site to control, interact with, and extend Google Maps. After a little programming, you can now track my hikes via satellite.

As an example, take the Schinder. The map link on the trail page will take you to a satellite map centered on the mountain. All interesting locations in the area are marked, and clicking the markers will give you information about each location. You can also view a list of all locations.

This cannot replace a hiking map. But it gives a nice spatial view of the trails database, which previously could only be navigated by browsing discrete, and sometimes arbitrary regions.

The Google Maps API and OpenACS made it very easy to implement this custom application on top of Google Maps. The geographic coordinates and all additional information for the locations are stored by this site, and integrated into the map with a few JavaScript lines. Defining a new location involves not much more than clicking on a map - you don't even have to know the difference between latitude and longitude. If you are interested in the source, let me know.

23:23, 25 Jul 2005 by Carsten Clasohm Permalink | Comments (0)

Here's my first Greasemonkey script which improves a Web site's usability.

itconversations-download.user.js modifies the details page for shows on IT Conversations so that you can download the MP3 with one click.

Because Greasemonkey scripts are only executed after the page has been loaded completely, and the IT Conversation pages use their own Javascript to slowly display ads, using this Greasemonkey script only makes sense when you block the ads with Privoxy or a similar tool.

Update 18 Aug 2006: The Greasemonkey script no longer works, as the IT Conversations index page is now dynamically built with Javascript.

22:07, 07 Jul 2005 by Carsten Clasohm Permalink | Comments (0)

Greasemonkey Script for golem.de Articles [greasemonkey.mozdev.org]

Another Greasemonkey script, this time for removing the inline banner and right-side navigation of golem.de articles: golem-de-cleanup.user.js

22:50, 17 Jun 2005 by Carsten Clasohm Permalink | Comments (0)

Another Greasemonkey script, this time for removing the top banner and right-side navigation of sueddeutsche.de articles: sueddeutsche-de-cleanup.user.js

13:46, 16 Jun 2005 by Carsten Clasohm Permalink | Comments (0)

While the Computerwoche news site has a nice RSS feed, the article pages are too cluttered with navigation elements, which you do not need when opening articles directly from an RSS reader. So I wrote a little script for the Greasemonkey Firefox extension, which removes the banner at the top and clears the left and right navigation columns. If you have Greasemonkey installed, right click on computerwoche-de-cleanup.user.js and select "Install User Script" from the menu.

Another Greasemonkey script useful for Computerwoche readers is DumbTxt, which removes the annoying Intellitxt popups. When installing it, just add "http://www.computerwoche.de/*" to the list of included pages.

Update 2005-11-06: I have uploaded a new version of the Greasemonkey script that works with the recent layout changes on www.computerwoche.de. Because the page URLs have changed, too, it is easiest if you uninstall the old script and reinstall using the above link.

15:43, 13 Jun 2005 by Carsten Clasohm Permalink | Comments (0)

Because they are funded by the public and already offer their content as streaming audio on the Web, I have been wondering why Germany's non-commercial radio stations have not jumped onto the podcasting band waggon yet.

Well, two radio stations are already on their way: DeutschlandRadio and Deutschlandfunk, whose programs not only consist of the usual news, but also of diverse topics ranging from a study on birds killed by wind mills, to the Danish press coverage of the recent election in Germany's northern-most state.

Each of these 3-20 minute contributions is available as an MP3 file, with two different user interfaces:

  • HTML, simple and easy to use, good for downloading the files and listing to them later, but no RSS feed.

  • Flash, also nice, and best for immediate listening.

All this content is in German. The international broadcasting station Deutsche Welle has English Audio on Demand, but you need Real Player and judging from the list, it's only a collection of complete programs, without any information about the contents. Pretty disappointing compared to DeutschlandRadio, or the BBC, which offers RSS feeds and content summaries for two of their programs.

Update 2005-03-07: There's still no RSS feed, but Deutschlandradio Kultur had a nice piece about podcasting today. Unfortunately, the MP3 is no longer available as of 2005-09-15.

18:21, 02 Mar 2005 by Carsten Clasohm Permalink | Comments (0)

Rails on Fedora Core 3 [wiki.rubyonrails.org]

Installing the Web application framework Rails on Fedora Core 3 is not as straightforward as the instructions suggest. FC3 comes with the required Ruby 1.8.1 RPM, but if you try to install Rails with Ruby Gems, it crashes with the error /usr/lib/ruby/1.8/yaml.rb:39: [BUG] Segmentation fault.

So, deinstall the ruby and ruby-libs RPMs, and install Ruby and Gem from the source:

  1. Download Ruby 1.8.2+. Install it with ./configure && make && make install

  2. Download rubygems 0.8.1+. Install it with ruby install.rb

Update 29 Jan 2005: The new Ruby 1.8.2 RPM in the FC3 update channel can be used to install Rails. Just be sure to also install irb and ruby-devel. The latter is needed for installing the Ruby PostgreSQL driver, and probably other database drivers.

21:37, 26 Dec 2004 by Carsten Clasohm Permalink | Comments (2)

Captcha [en.wikipedia.org]

Captcha of smwmTo prevent spam bots from automatically creating accounts and posting content, people have come up with these distorted images of numbers and letters, which only a human can decipher and type into a text field. Since our corporate blog became the target of spammers recently, I read a bit about captcha images, and found out that spammers have devised a clever way to decode them. Optical character recognition would be too easy to block. What you need is a human to decode the image for you. So the spam bot takes the image from the site it wants to access, puts it onto the entry page of a free porn site run by the spammer, and waits for a human to decode it for him, without knowing that the captcha is recycled from somewhere else.

21:55, 01 Nov 2004 by Carsten Clasohm Permalink | Comments (1)

New Ideas Through Your Headphones [www.itconversations.com]

With the server move done, I had some to time to check out what could be the next big thing on the Web, or the Pointcast of 2005: Podcasting. The first thing I listened to was an interview with Adam Curry, a good introduction to podcasting itself and the rationale behind it. Not to mention Adam's stories about mtv.com and his former business partners, who either turned out to be on Scotland Yard's wanted list, or who ran off to Columbia.

Even more entertaining was Steve Wozniak's Gnomedex presentation, where he talks about his high school pranks, Captain Crunch and the founding of Apple.

Paul Graham's OSCON presentation was not much more than a reading of his (excellent) essays, but the interview is worth the download. One thing he says is that programming languages which people wrote to use themselves, like C, are superior to Frankenstein languages designed in a lab, like Java. I'm not sure if this is true for languages, but it certainly is for application frameworks. David Hansson mentions it in his two-hour video about Ruby on Rails, when he compares the current J2EE frameworks with Rails. And I learned it the hard way when we ported Siemens ShareNet to OpenACS in 2001. Since then, OpenACS has matured, but people still stick to four-year old lab-designed stuff which we gladly threw overboard while making ShareNet work.

16:32, 01 Nov 2004 by Carsten Clasohm Permalink | Comments (0)

RSS

Archive

June 2013
S M T W T F S
           
10  11  12  13  14  15 
16  17  18  19  20  21  22 
23  24  25  26  27  28  29 
30             
September 2008
July 2008
June 2007
May 2007
March 2007
January 2007
December 2006
September 2006
June 2006
April 2006
March 2006
February 2006
January 2006
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
January 2005
December 2004
November 2004
October 2004

Blog Categories

Hiking (5)
Desktop Linux (28)
Server Linux (5)
Palm (3)
Photography (5)
Politics (2)
Web Applications (15)

Notifications

Request notifications

Syndication Feed

RSS

Recent Comments

  1. Anonymous Visitor: @Anonymous Visitor
  2. Anonymous Visitor: Still a security issue
  3. Anonymous Visitor: OOPS Blacklist
  4. Anonymous Visitor: Fedora 15 Palm Tx sync failure
  5. Anonymous Visitor: imap-password patch
  6. Anonymous Visitor: Not a security issue
  7. Anonymous Visitor: Another thanks
  8. Anonymous Visitor: Vodafone Performance Manager
  9. Anonymous Visitor: How do I show the palm using udevinfo
  10. Anonymous Visitor: Palm tungsten not creating ttyUSB but is creating /dev/pilot