This Blog Is Not For Reading

A blog, just like any blog, only more so

  • Subscribe

  • Categories

  • RSS Bob Jonkman’s Microblog

    • New note by bobjonkman 14 January 2023
      I seem to recall there's a standard API that should be common to all the #StatusNet derivitave servers. I'm pretty sure that in its infancy Mastodon conformed to that API. But Mastodon's API expanded beyond that, and I suspect some of the common API was removed, probably around the time #OStatus was dropped from Mastodon […]
    • New note by bobjonkman 14 January 2023
      Twidere has stopped working for Twitter accounts. My Mastodon account still works nicely. I thought maybe the Twidere API keys for the developer had been revoked, or that something had gone wrong with my phone (It's a vanilla Samsung with Android 12, but I've refused to install any of the Samsung or Google apps). I […]
    • bobjonkman repeated a notice by heluecht 14 January 2023
      RT @heluecht !Friendica Admins As you might have heard, there are issues with the Twitter API. Several favourite clients stopped working, while others (still) do. By now there hadn't been any word if there is some massive Problem or if this was some deliberate action. Whatever is causing these issues, at least my connection still […]
    • Favorite 5 January 2023
      bobjonkman favorited something by lnxw48a1: https://imaginary.ca/blog/2017/06/16/top-hat/#more-231 [imaginary ca] I am glad this instructor thinks this way. Too many don't seem to care how badly a vendor's product affects students.
    • Favorite 5 January 2023
      bobjonkman favorited something by lnxw48a1: https://500ish.com/mastodon-brought-a-protocol-to-a-product-fight-ba9fda767c6a #Medium link; don't be surprised if it does weird things before showing you the article. "Mastodon brought a protocol to a product fight" > Yes, yes, the network is under immense strain as people flee the Elon strain infecting Twitter. But come on, there are folks who really believe […]
    • bobjonkman repeated a notice by lnxw48a1 5 January 2023
      RT @lnxw48a1 https://500ish.com/mastodon-brought-a-protocol-to-a-product-fight-ba9fda767c6a #Medium link; don't be surprised if it does weird things before showing you the article. "Mastodon brought a protocol to a product fight" > Yes, yes, the network is under immense strain as people flee the Elon strain infecting Twitter. But come on, there are folks who really believe this is going […]
    • Favorite 5 January 2023
      bobjonkman favorited something by lnxw48a1: > For now, I’ll just say that while I fully understand why everyone wants Mastodon to be the new Twitter. Or the better Twitter. The more ideal Twitter. Or whatever. It’s just not going to happen. Mastodon brought a protocol to a product fight. Maybe Ivory or another client can […]
    • bobjonkman repeated a notice by clacke 4 January 2023
      RT @clacke NZ PM Jacinda Ardern called ACT leader David Seymour a prick on a hot mike in parliament. She apologized, he accepted, they had a laugh, and now together they've framed and signed a transcript of the exchange, selling it to the highest bidder, currently at 100 kNZD. The proceeds will go prostate cancer […]
    • Favorite 4 January 2023
      bobjonkman favorited something by clacke: NZ PM Jacinda Ardern called ACT leader David Seymour a prick on a hot mike in parliament.She apologized, he accepted, they had a laugh, and now together they've framed and signed a transcript of the exchange, selling it to the highest bidder, currently at 100 kNZD. The proceeds will go […]
    • New comment by bobjonkman 14 December 2022
      @lnxw48a1 "Pop" is also the Canadian word for carbonated soft drinks...

OpenDataDay Hackathon at Kwartzlab

Posted by Bob Jonkman on 27th February 2013

Open Data Waterloo Region

 

On International OpenDataDay four teams of hackers from OpenDataWR gathered at Kwartzlab to work on Food Premise Inspection Data, modelling new transit routes and route changes with GTFS data, improving the server for the Catchr transit app, a proof-of-concept pushbutton app for Android, and creating a Get Map button for OpenStreetMap in the Thunderbird Lightning add-in.


Hackers at Kwartzlab OpenDataDay Hackathon at Kwartzlab. Clockwise: Koo (back to camera), Ralph, Michael, Mike, Brett, Jonathan. Missing: Darcy, William, Katherine, Bob.

 

William and I worked on the Get Map button. Although we had hoped to create some working code, we got only as far as making a mock-up of Lightning’s Edit Event screen:

Screenshot of Thunderbird Lightning Edit Event screen
Lightning “Edit Event” screen, showing the new “Get Map” button

 

The first hurdle we ran into is that Lightning source code is kept in a Mercurial repository. Although William was familiar with Perforce (another code revision system), I haven’t used Mercurial until now. And the repository contained all of Thunderbird, Firefox, SeaMonkey, and the Mozilla addins. We certainly didn’t want to clone the entire Mozilla code base! So William found the Lightning tarball, which I unpacked in a new folder. This let us poke around the source files to find where our new code should go.

Then we found that Lightning isn’t straight Javascript, it’s mostly XUL. XUL is close enough to XHTML, CSS and DTD files that we could figure out what needed to be done. But we had a limited amount of time, and I didn’t want to spend it waiting for source code to build. So I created a new profile in Thunderbird, installed a fresh copy of the Lightning add-in, and we hacked at the installed files directly. This gave us instant feedback on the changes we made, just by restarting Thunderbird and running Lightning. Some of the changes were in plain text files, but others needed to be made to files in JAR format. One of those was the localized language file. We weren’t sure which language file we were using, en-GB or en-US. Of course, we picked the wrong one to start with, and spend maybe two hours trying to debug a misleading error message about a missing entity definition while we were working on the wrong file.

But it all turned out OK in the end. Now we need to take the work we did on the installed files and replicate it on the source files from the Mercurial repository, properly build Lightning from source, and offer our changes to the Mozilla Calendar project. And, once we’ve got it working, we’ll make the changes available on this site too.

–Bob and William.

Tags: , , , , , , , , , , , , , , , , , , , ,
Posted in code, FLOSS, Open Data, Software | Comments Off on OpenDataDay Hackathon at Kwartzlab

 
Better Tag Cloud