Archive for April, 2010

|

Best Blonde Joke EVER! – Watch this video

Friday, April 30th, 2010

How do you keep a blonde in suspense?
(It takes a while to load but it’s worth it!)

Tags: , ,
Posted in For Fun | 3 Comments »

Steve Jobs’s Goal: Destroy Adobe

Thursday, April 29th, 2010

In a recent letter from Steve Jobs, he posts a self-aggrandizing letter to give debating fuel for his fans and to slap Adobe in the face! You can read the article here: Thoughts On Flash. His solution? Everyone switch to HTML5! Here’s my take on it. (more…)

Tags: , , , , , , ,
Posted in News | 3 Comments »

Testing Javascript On ANY Page

Wednesday, April 28th, 2010

Did you know you can run Javascript on any page? It’s easy. All you do is type javascript: in the navigation bar of your browser and then your Javascript code and it will run it on the page!

(more…)

Posted in Programming, Tutorial | 1 Comment »

Reenabling Right-Click

Wednesday, April 28th, 2010

Some websites disable right-click to prevent people from stealing their images. The problem is that this does NOT slow down people from stealing their images. People that steal images have SOOO many different ways about getting their images. Disabling right-click is the least effective way to prevent image stealing.

(more…)

Tags: , , ,
Posted in Web Tricks | 2 Comments »

How to Use GoTo in PHP, C, C++, Obj-C, Java, Perl, Python, Flash, Actionscript, Java or Javascript

Tuesday, April 20th, 2010

Here is the secret to using GoTo in ANY programming language:

How to use GoTo

Yes, that’s right. You will be eaten by a raptor! So don’t use it!

Tags: , , ,
Posted in Programming, Tutorial | 1 Comment »

Anonymous Functions and Closure in PHP

Tuesday, April 20th, 2010

It’s about time that PHP joined the band wagon of anonymous functions. Anonymous functions, also known as closures, are functions with no specified name. These functions are stored in variables and can be passed around. Anonymous functions have been in other programming languages like Javascript, so if you know Javascript then anonymous functions are nothing new.

(more…)

Tags: , , ,
Posted in Programming, Tutorial | 2 Comments »

Ternary Operators

Monday, April 19th, 2010

If you don’t know what ternary operators are then you are missing out! The day I learned about ternary operators I nearly passed out. There are so many wasted lines of code if you don’t know about them. This is what a standard if ... else ... statement looks like using C, Obj-C, C++, C#, Java, or JavaScript:

(more…)

Tags: , , ,
Posted in Programming, Tutorial | 5 Comments »

Colon Syntax in PHP

Monday, April 19th, 2010

Colon syntax is another way to style your PHP code. Instead of using curly braces you use colons. Below I have included an example of a couple different curly brace styles and also each statement using the colon syntax. I don’t know of any performance benefits or loss to using this syntax over any other. Please comment here if you have any more information about its affects on performance.

(more…)

Tags: , ,
Posted in Programming, Tutorial | 6 Comments »

Do While vs While

Monday, April 19th, 2010

When I started programming I only learned about do ... while statements and I didn’t know about while statements. There are some times when my code would’ve been a lot cleaner if I had known about while statements. To save you all the trouble of what I had to go through I’m writing this post. For those of you who already know the difference between while and do ... while I have included a little-known trick that may interest you. Just skip on down to the bottom.

(more…)

Tags: , , , ,
Posted in Programming, Tutorial | 6 Comments »

Chrome is killing Firefox

Monday, April 5th, 2010

I’m proud of our online community for making progress in ridding ourselves of Internet Explorer. Microsoft’s heavy grasp has made it difficult for the masses of internet users to notice myriad of other, faster, more reliable browsers. Firefox has made a great deal of progress to get us where we are. But now, even Firefox is leveling off as Google’s Chrome increases rapidly every month. As of August 2009, Chrome has increased its market share by 89%, from 3.6 to 6.8.

Source: http://www.w3counter.com/trends

(more…)

Tags: , , ,
Posted in Other | 1 Comment »