Excel: How to Format UPC With Leading Zero
Jul 17, 2012WindowsComments (1)
Having trouble getting UPC numbers to show up properly in Microsoft Excel? Excel may format a UPC strangely if the cell is formatted as Text (e.g. 8.08282E+11) or may remove leading 0's if the cell is formatted as a Number. Some solutions involve using a function or adding a single-quote to the beginning of each UPC, but those don't work well with bulk UPCs. The better solution is to use a Custom format for the UPC cells.
Continue Reading ›
All Your Favorite Bobby Kotick Quotes!
Jul 15, 2012PC Gaming
In case you don't know who he is, Robert (Bobby) Kotick is the CEO of Activision Blizzard, one of the largest "interactive entertainment" companies in the world. Through a "laser focus" on profits, Mr. Kotick has earned quite a reputation among gaming enthusiasts.

Many of the below quotes come from financial calls and the verbiage reflects this. We gamers understand the importance of profit, but feel that it should not be the main guiding principle in a gaming company.
Continue Reading ›
ActionScript 3: Determine if Object Property Exists
May 20, 2012Programming
There are two common methods to determine if a property/attribute/variable of some object exists. Both use the property name as a string and neither rely on checking for an error report.
Continue Reading ›
ActionScript 3 Error 1078: Label must be a simple identifier
May 20, 2012ProgrammingComments (1)
This error is often caused by the accidental use of a colon (:) to terminate a statement instead of a semi-colon (;). The error report should give you the error location.
Continue Reading ›
Windows 7: Literal Number File Name Sorting
Apr 25, 2012Windows
In Windows 7, numbered file names are sorted based on numerical value:
Continue Reading ›
How to Define Website Width on Mobile
Apr 17, 2012Web DevelopmentComments (1)
If your website has a fixed width and you want it to fill the screen, use these three meta tags for good browser coverage (replace 400 with the correct fixed width of your website):
Continue Reading ›
PHP: Using Ternary Operator Condition Checks
Apr 5, 2012Programming
Ternary is a short way to write if/else condition checks on a single line, and allows you to perform condition checks inline with variable assignments and more.
Continue Reading ›
PHP: Prevent MySQL Code Injection Exploits
Apr 5, 2012Programming
The information in this post is outdated. Please use PDO with real (non-emulated) prepared statments to properly prevent MySQL injection.

Any data that comes from the client-side needs to be properly validated and escaped before using. This is extra important if you're using that data to form part of a database query. Always assume that your users will try to input incorrect information and special characters into fields, and do not rely on HTML or JavaScript to prevent this.
Continue Reading ›
PHP: Avoid Using Undefined Variables and Indexes
Apr 5, 2012Programming
PHP is a fairly loose programming language, which causes many new developers (and experienced ones) to get lazy. If you suppress errors, you can get away with ridiculous things like using undefined variables, without anyone being the wiser. But just because you can get away with it, doesn't mean you should.
Continue Reading ›
Monitor Your Web Server Ping, Uptime, and Downtime
Apr 5, 2012Web Development
Want to see how well your web server is performing? It's a good idea to have some sort of 3rd party monitoring program that regularly pings your web server and logs the response time and timeout events. If your server is not being nice (or not meeting their claimed uptime), you can use this data as leverage for negotiating or just to inform them that you're seeing more downtime than you'd like.
Continue Reading ›
How to Spoof User Agent on Android Firefox Mobile Phone
Apr 3, 2012Mobile
You can spoof the user agent on your Android phone fairly easily, using Firefox and the Phony plug-in. This allows you to make websites think you're browsing on a desktop computer, iPhone, or something else.
Continue Reading ›
PHP: Use Identical Operator When Comparing User Input (Equals vs Identical)
Apr 1, 2012Programming
When comparing two values against each other, it is common to use the "equals" operator (==), and this is fine as long as you have control over the values that are being compared. But what if you're comparing user input against a value, such as in a sign-in script or captcha? Using the equals operator can potentially leave you open for security issues, since PHP handles comparisons between different data types non-intuitively.
Continue Reading ›
PHP: Detect Mobile User Agent Using preg_match Regular Expression
Mar 23, 2012Programming
Using PHP, you can change the whole site or redirect users to a different site when they browse from a mobile device, or just change the CSS.
Continue Reading ›
Effective Text Anchor Link Style for Web Design
Feb 26, 2012Web Development
The style of a text link on a web page (hyperlink) should do two things effectively. It should clearly distinguish the link from normal text, so that users can see it at a glance, and it should create a clear hover effect, so users know when their mouse is hovering over it and that a click will activate the link.
Continue Reading ›
NewerPage 17Older