View RSS Feed

All Blog Entries

  1. Viewing your site in Responsive Design Mode

    Hi everyone,
    The latest version of Firefox (24.0) offers some interesting new features, among which the possibility to view your site (any site) in Responsive Design Mode. So if you want to know how your site looks like with a mobile device (Iphone, Ipad etc.), view it using Firefox.
    (Not that I care much about people who use devices that inherently offer poor website vision, of course).
    Categories
    Uncategorized
  2. 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 06:44 PM by molendijk

    Categories
    Uncategorized
  3. 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 09:09 PM by traq

    Categories
    PHP coding , Off beat topics
  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 04: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 03:49 AM by traq

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