View RSS Feed

All Blog Entries

  1. Preventing flicker when navigating between pages

    Pages that contain heavy script files may produce a white flash (flicker) when the user navigates between them. This flicker often occurs in IE and Chrome, less often so in Firefox. There are different solutions proposed on the Internet for solving the problem. I noticed they don't always work.

    There's a good chance the flicker goes away if you do the following:
    - Put your html-lines before your js-lines as much as possible. We can often move scripts (normally put in the head ...

    Updated 08-12-2013 at 05:44 PM by molendijk

    Categories
    Uncategorized
  2. Heaps o' Fun

    yes, I'm still doing the tutorial. : )

    Did you know ...?

    PHP Code:
    <?php

    class alphaHeap extends SplHeap{
        public function 
    compare$a,$b ){
            return 
    strcmp$b,$a );
        }
    }

    $alpha = new alphaHeap;

    # IN put:
    $alpha->insert'cat' );       // C
    $alpha->insert'dog' );       // D
    $alpha->insert'boy' );       // B
    $alpha->insert'elephant' );  // E
    ...

    Updated 12-23-2012 at 08:09 PM by traq

    Categories
    PHP coding , Off beat topics
  3. New windows, new tabs and popup blockers

    (To see and test what this is all about, you should download Safari if you haven't already done so. After that, use the code below with popup blocker enabled AND with popup blocker disabled, using Safari).

    When a new window or tab is not explicitly requested by the visitor of a site i.e. when the window's appearance is attached to such events as onload or onunload, popup blockers (if enabled) will prevent a file from being opened. But when the window's appearance is attached to an ...

    Updated 12-07-2012 at 10:58 PM by molendijk

    Categories
    Uncategorized
  4. Not My Type... : )

    Yes, the tutorial is still coming. It's big. It's in progress.

    I read this recently and was intrigued. Don't know if anyone else would care or not ...

    The author, nikic, does a great job summarizing the difficulties and potential benefits of type hinting, as well as giving a good explanation as to why PHP's implementation is incomplete. Personally, I look forward to being able to type-hint any type. It could save me a lot of code validating args, and I could ...

    Updated 12-01-2012 at 03:48 AM by traq

    Categories
    PHP coding , Off beat topics
  5. Before You Start: the basics, for PHP in particular and for programming in general

    I wanted to take a few moments to talk about some of "the basics" that are all-to-often glossed over...

    A Matter of Style

    In general, I find that most PHP programmers fall into one of three main programming styles:
    • procedural: a simple ordered set of instructions, nested if's/ else's, etc.
    • functional: functions are little code containers that you can call on when needed. You [usually] give them arguments, they [usually] return values to you.
    • object-oriented:
    ...

    Updated 12-17-2012 at 02:49 AM by traq

    Categories
    PHP coding
Page 5 of 19 FirstFirst ... 3456715 ... LastLast