Tutorials Page 183
MacBook
Forgive me Father, for I have sinned -- I sold my soul for a MacBook. So I didn't necessarily sell my soul but after much prodding and advice from the MooTools team, I've decided to buy a 15" MacBook Pro. Everyone told me I needed...
Adding Events to Adding Events in MooTools
Note: This post has been updated. One of my huge web peeves is when an element has click events attached to it but the element doesn't sport the "pointer" cursor. I mean how the hell is the user supposed to know they can/should click on...
PHP’s Alternate Control Structure Syntax
If you've ever had the pleasure experience of digging through WordPress' code, you've probably run into PHP's alternate control structure syntax. An example of this can be seen in the following code: The same works with while, for, and foreach loops, as well as the switch...
Image Protection Using PHP, the GD Library, JavaScript, and XHTML
Warning: The demo for this post may brick your browser. A while back I posted a MooTools plugin called dwProtector that aimed to make image theft more difficult -- NOT PREVENT IT COMPLETELY -- but make it more difficult for the rookie to average user...
PHP, SSL, and cURL SSL3_GET_SERVER_CERTIFICATE Errors
I recently developed a complex system for a customer that involved PHP, cURL, and a SSL connection to a third party vendor. The third party vendor would validate the security certificate of the source (the system I created) and either allow or reject access.
iPhone
I'll cut to the chase. My birthday is coming up on July 5th and my girlfriend wants to buy me an iPhone (like I need more time being connected to the web). Anyways, I don't know a ton about the iPhone or the must-have apps that...
WordPress-Style Comment Controls Using MooTools or jQuery
WordPress has a nice little effect on the Admin Dashboard where it shows and hides the comment control links when you mouseover and mouseout of the record's container. Here's how to achieve that effect using MooTools or jQuery. The XHTML Notice that we place the links into...
Break Out of Frames Using JavaScript
I thought frames went out of style a decade ago but apparently everyone feels the need to duplicate the Digg Bar. I don't trust these framed services so I choose to use a JavaScript snippet that prevents my site from being in someone else's frame. The...
JavaScript: The Good Parts by Douglas Crockford
Rarely do I ever command you to do something but I've watched this video three times now and I'm completely mesmerized by Douglas Crockford's tech talk, JavaScript: The Good Parts. During this hour long talk, Douglas Crockford shares his insight about both the good and bad parts...
Method Chaining in MooTools and PHP
One of the great parts of most every JavaScript and PHP framework these days is the ability to chain class methods. I've gotten quite a few question about how this is possible so I want to cover the basics of allowing chaining in your own...