Kwebble : Blog

  • A trim() method for the JavaScript String class

    Gepubliceerd op 25 juni 2010 in Programming.

    Just rediscovered that IE still doesn’t include the trim() method on the String class. Here’s a snippet of code, based on an answer on StackOverflow, to make sure there’s a trim method available:

    if (typeof String.prototype.trim !== 'function') {
        String.prototype.trim = function() {
            return this.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
        }
    }
    

    On the positive side I also found out about the debugger included in IE 8. Just like Firebug, available via F12!

    • javascript
  • Is u iets opgevallen?

    Gepubliceerd op 11 mei 2010 in Media.

    Nu gebruikt in De Wereld Draait Door, oorspronkelijk in een bioscoopjournaal van 1978 over de beeldplaat:

    bron: Open Beelden

    • beeldplaat
    • dwdd
    • video
  • Tip: use the axis:axis:1.4 Maven artifact if you need Axis 1.4 support

    Gepubliceerd op 29 december 2009 in Programming.

    For a Java program that can be run from the command line I used the Maven Assembly plugin to generate a JAR file with all dependencies included.

    Although the build was successful, running the software generated a NoClassDefFoundError, caused somewhere in Axis. After a lot of time I finally found some information about the existence of two Axis artifacts in the central Maven repository. Axis 1.4 is available under groupid axis and org.apache.axis.

    The POM file of the axis:axis:1.4 artifact includes a number of runtime dependencies, which are not included in the other. Since I used the incomplete version the resulting JAR missed some necessary classes.

    So if you use Axis 1.4, define a dependency on the axis:axis:1.4 artifact, not org.apache.axis:axis:1.4.

    • axis
    • java
    • maven
    • maven assembly
  • Google Closure tools

    Gepubliceerd op 6 november 2009 in Programming.

    Google announced the availability of Google Closure Tools, a set of JavaScript tools to help development of web applications. The set contains:

    • Closure Compiler: a JavaScript optimizer
    • Closure Library: a JavaScript library with reusable UI widgets and controls, utilities for the DOM, server communication, animation, data structures, unit testing, rich-text editing etc.
    • Closure Templates: a client- and server-side templating system that helps you dynamically build reusable HTML and UI elements.
    • javascript
  • Google en Microsoft indexeren tweets

    Gepubliceerd op 22 oktober 2009 in Links.

    Zowel Google als Microsoft kondigen aan dat ze tweets in de resultaten van hun zoeksites gaan opnemen.

    • twitter
    • zoeken
  • De route van de Stad Amsterdam

    Gepubliceerd op 18 oktober 2009 in Artikelen.

    De clipper Stad Amsterdam vaart de reis na die Charles Darwin met de Beagle maakte en de VPRO heeft daar een mooie site voor gemaakt.

    Op de site kon ik geen data over de positie van schip en de berichten vinden om te hergebruiken. Daarom heb ik zelf maar een programma gemaakt dat de positie van het schip ophaalt. Daarmee kun je bijvoorbeeld een kaart met de route maken, of een KML bestand.

    • beagle
    • charles darwin
    • google maps
    • kml
    • stad amsterdam
  • Analoog of digitaal – maak je keuze

    Gepubliceerd op 14 oktober 2009 in Links.

    32 boeken met met 65.000 artikelen voor €1283 óf 1 gadget met meer dan 3.000.000 artikelen voor €66.

    Wat zou jij nemen?

    • boek
    • encyclopedie
    • gadget
    • wiki
  • Astronomy picture of the day feed met grote foto’s

    Gepubliceerd op 5 oktober 2009 in Artikelen.

    De RSS feed van Astronomy Picture of the Day (APOD) waarop ik geabonneerd ben is er mee gestopt. Toen viel me pas op dat het niet de feed van de site zelf was, maar een versie die iemand zelf in elkaar had gezet. Nu heeft de APOD site zelf wel een feed, maar daar staan alleen kleine fotootjes in. En ik zie liever de hele foto direct in mijn feed lezer.

    Daarom heb ik zelf maar een feed gemaakt met de grote foto’s.

    • astronomie
    • foto
    • rss
  • Inleidingen toegevoegd aan atletieknieuws

    Gepubliceerd op 30 september 2009 in Artikelen.

    Een toevoeging aan het atletieknieuws: indien mogelijk wordt er nu ook een korte inleiding bij een bericht getoond. Standaard staat deze mogelijkheid uit, je maakt de tekst zichtbaar met de instelling Toon samenvattingen die je kunt vinden in de balk om berichten te kiezen.

    • atletiek
    • kwebble
    • nieuws
  • Stof verduistert Sydney

    Gepubliceerd op 23 september 2009 in Links.

    Tegen een rood gekleurde atmosfeer laat een man zijn hond uit in een park The Big Picture heeft een mooie set foto’s van de stofstorm die vanmorgen Sydney (Australië) bedekte.

    • lucht
    • stof
    • sydney
    • weer
  • « Oudere artikelen
  • Rubrieken

    • Artikelen
    • Foto's
    • Links
    • Media
    • Overheid
    • Programming
  • Recente Berichten

    • A trim() method for the JavaScript String class
    • Is u iets opgevallen?
    • Tip: use the axis:axis:1.4 Maven artifact if you need Axis 1.4 support
    • Google Closure tools
    • Google en Microsoft indexeren tweets
  • Abonneren

    • Atom feed Artikelen
    • Atom feed Reacties
  • Archief

© Rob Schlüter - Contact