More (unannounced) League of Legends Skins in v10096

July 15, 2010 by Reboot · Leave a Comment 

Mental Note: Zend_Date compare method is slow?

July 13, 2010 by Reboot · Leave a Comment 

Can someone explain why the standard Zend_Date comparison slowed the performance of an application of mine by a significant amount.
It was checking a date to be within a specific timespan for like 90 times.

$date = new Zend_Date();
if ($date->compare($otherDate) >= 0) {
...

// Now fetching the timestamps to compare those against each other.
// For example:
if ($date->getTimestamp() >= $otherdate.getTimestamp()) {
...
}

Advanced Date Pick Restriction with the jQuery UI Datepicker

June 22, 2010 by Reboot · Leave a Comment 

You can implement the “beforeShowDay” method to restrict the days which can be selected from the datepicker.

As noted in the sourcecode:

beforeShowDay: null, // Function that takes a date and returns an array with
// [0] = true if selectable, false if not, [1] = custom CSS class name(s) or ”,
// [2] = cell title (optional), e.g. $.datepicker.noWeekends

An example (you can also run this code at jsfiddle):

[/sourcecode]
$(function(){
    $('#picker').datepicker({
        beforeShowDay: function(date) {
            var t = new Date();
            t = new Date(t.getFullYear(), t.getMonth(), t.getDate());

            var days = [];
            for (var i=0;i<7;i++) {
                t.setDate(t.getDate() + 1);
                days.push(t.getTime());
            }

            var day = date.getTime();
            return [$.inArray(day,days) > -1,''];
        },
        onSelect: function(dateText, inst) {
            $("#pickerresult").html($(this).datepicker( "getDate").toString());
        }
    });
});
[sourcecode]

Guild Wars 2 : Warrior Skill Gameplay (GameTrailers)

June 16, 2010 by Reboot · Leave a Comment 

Awesome!!!

Zend OAuth + Hyves … ERROR

June 15, 2010 by Reboot · Leave a Comment 

Although Zend OAuth works with all the other social networks, it doesn’t play very well with the dutch social network called Hyves. As a work-around the library from Mark Bekkers can be used: Open & Sociaal Hyves PHP Library

LoL-Base Signature

June 9, 2010 by Reboot · Leave a Comment 

Signature for RebootGPF (EU)

RIOT EU Server Migration: Work Complete!

May 26, 2010 by Reboot · Leave a Comment 

OMG, I got STATS!!!!

From Blog

RIOT: Your content is way TOO cool, will buy at any price O_o. “Jedi Master Yi” released.

May 25, 2010 by Reboot · Leave a Comment 

From Blog

Next Page »