Kwebble : Blog

Archief van februari 2005

  • Winter in Haarlem

    Gepubliceerd op 26 februari 2005 in Foto's. 1 reactie

    Panoramafoto van een besneeuwd park waar meeuwen boven het water vliegen
    Een winters plaatje van Haarlem, vlakbij het station.

  • Waarschuwing: Prénatal – belangrijke veiligheidswaarschuwing

    Gepubliceerd op 23 februari 2005 in Links.

    In de nieuwe rubriek Waarschuwingen het volgende:

    Prenatal: Wij hebben geconstateerd dat een knuffelbeest in de vorm van een kikker, welke werd verkocht rond mei 2004, onderdelen bevat die kinderen kunnen inslikken.

  • Foxhunting in Fryslàn

    Gepubliceerd op 23 februari 2005 in Links.

    Een gat in de markt: jachtvakanties in Friesland.

    Nu in Engeland het jagen op vossen verboden is wordt het misschien wel lucratief om voor britse ex-vossenjagers reizen te organiseren naar Friesland nu daar de vossenjacht weer mogelijk is.

  • Fighting Flash with Firefox

    Gepubliceerd op 22 februari 2005 in Artikelen.

    Firefox, my browser of choice, does not show Flash content with the default installation, but you can easily download Flash support and it will show up. But do you want it to show up? For nearly all of the the sites I visit I don’t, because the Flash movies are only annoying.

    So, until recently I didn’t install the Flash support which meant I regularly got a little toolbar notifying me I was missing some content. If I suspected it was something I really wanted to see I switched to Internet Explorer. By the way, the Firefox IE view extension makes switching very easy by adding a ‘View This Page in IE’ option to the right-click menu.

    But I finally installed the Flash extension, because using IE became more and more frustrating, missing things like the Ctrl-click to open a link in a new tab and search-as-you-type. Not long after I installed Flash support, sites I thought I knew suddenly showed blinking ads and other distracting messages never visible before.

    What I wanted was to get rid of the Flash garbage but still have the ability to view it if I wanted. So I did some searching and found FlashBlock, an extension that replaces all Flash content on a page with a icon to that will show the Flash content when clicked. Now I’m in charge again.

    • firefox
    • flash
    • plugin
  • Watching time fly by

    Gepubliceerd op 22 februari 2005 in Links.

    A hypnotizing view of a day ticking away second by second on A dot for every second in the day.

  • Searching pages in WordPress 1.5

    Gepubliceerd op 20 februari 2005 in Programming. 2 reacties

    Update (march 6, 2004): David B. Nagle made a plugin which gives the same results as this hack, but does it the right way, using the plugin system. Use it instead of hacking as described below.

    A few days ago version 1.5 of WordPress was released. One of the interesting new features is the addition of pages. You use pages for static content on a site, which means you can now use WordpPress to build a larger part of you site. Very useful.

    But one thing I don’t understand is why pages are left out of search results? Through a thread on the support site I found a bug report that states This is intended behaviour until we revamp search.. So I looked for a solution.

    Hacking the search function

    Warning: This describes a change to one of the core WordPress files. It may introduce bugs or unwanted side effects when used. I haven’t done much testing, but it seems to work ok.
    I you decide to use this hack it’s your choice, you are responsible, not me. If you’re not comfortable with it don’t apply the change.

    To have the search function also return pages I changed classes.php. You find this file in the wp-includes directory. On line 493 this piece of code starts:

            if ($this->is_page) {
                $where .= ' AND (post_status = "static"';
            } else {
                $where .= ' AND (post_status = "publish"';
            }

    Change it to the following:

            // 2005-02-20, Rob Schluter: Hack to search posts & pages.
            if (!empty($q['s'])) {
                $where .= ' AND ((post_status = "static" or post_status = "publish")';
            } else{
                if ($this->is_page) {
                    $where .= ' AND (post_status = "static"';
                } else {
                    $where .= ' AND (post_status = "publish"';
                }
            }
            // end hack
    

    That’s it, put the changed file on your server and the search should work for pages also.

    • php
    • search
    • wordpress
  • The Generator Blog

    Gepubliceerd op 11 februari 2005 in Links.

    Around the web there are all sorts of sites that can generate more or less useful, inspiring or funny text or images. You’ve got the Music Genre Name Generator, the Mondrian Machine or the Barcode Generator.
    The Generator Blog collects them all.

  • Gmail invitations available

    Gepubliceerd op 7 februari 2005 in Artikelen.

    If you don’t have a Gmail address yet but want one, post a reply to this message with your e-mail address filled in and I’ll send you an invitation. While my supply lasts.

  • Gmail uitnodigingen te geef

    Gepubliceerd op 5 februari 2005 in Artikelen. 63 reacties

    Net als anderen her en der melden heb ik ook 50 Gmail uitnodigingen weg te geven.

    Dus wil je een Gmail postbus hebben, laat dan een reactie achter met je e-mailadres ingevuld en ik zal een uitnodiging naar je toe sturen. Uiteraard zolang de voorraad strekt.

    • gmail
  • Fighting comment spam

    Gepubliceerd op 4 februari 2005 in Artikelen.

    To stop online criminals from spamming my site’s comments I’ve added some checks to the incoming comments:

    • Some words are no longer allowed, like casino, poker etc.
    • Links are not allowed, no more <a> tags may be used.

    I don’t want to turn off comments totally, you never know if someday this site will actually attract some visitors that will want to comment on an message :-)

    • kwebble
  • « Oudere artikelen
  • Rubrieken

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

    • Stanford Web Applications course lectures
    • The importance of knowing Unicode
    • “If you are not paying for it, you’re not the customer; you’re the product being sold.”
    • Inzage in je gegevens bij Facebook
    • Tuning Oracle UCM 11 & Site Studio performance
  • Abonneren

    • Atom feed Artikelen
    • Atom feed Reacties
  • Archief

© Rob Schlüter - Contact