A couple of days ago, I noticed that I have IE10 on my computer, although I did not install this latest IE-version myself. Apparently, Microsoft has started automatic upgrades of IE to its latest version(s). So I wanted to know how my sites looked like with IE10 (I normally use Firefox). They looked normal, but the javascript on certain pages produced unwanted results that were not problematic until now (with IE7/8/9). At first, I was unable to find out what caused ...
Hey guys, I hope everyone has had a great start to the new year. If you're just joining us, we're making hedgeclipper: a user log-in system. Last time, we outlined the basics of how hedgeclipper will work, and wrote a controller function for the whole thing. This time, we're going to focus on checking if the user is logged in or not. Before we start demanding a username and password, we're going to check if our user already logged in on a previous page visit. Have a look: ...
The javascript location.search propery sets / returns the query portion of a URL, including the question mark (?). This means that if we put <a onclick="location.search='this is a test'">test</a> in a file named our_file.html, the URL (our_file.html) will be replaced with our_file.html?this is a test after a click on the link. Having arrived at our_file.html?this is a test, we can go back to our_file.html by using the browser's history (back) button. The content of our_file.html?this ...
Updated 01-01-2013 at 09:49 PM by molendijk
. Who Is This For? I'm going to make some assumptions about you, as a programmer: You're probably not an expert with PHP, but you know at least "the basics." If you're a copy+paste PHP coder, that's okay, but hopefully you won't be once we're done.You have some patience. Yes, you want to see results; but you can trust that they're coming.You're "okay" with doing things you've never tried before. There are some things I would like you to know ...
Updated 01-13-2013 at 11:30 PM by traq (added 'expiry' config option)
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 ...
<?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