A A

Archive | Tips

Bulk Upload Images as Simple Products in Magento

Friday, September 14, 2012

0 Comments

The client has thousands of images, each of which is a (simple) product they want in Magento. Each image is named the associated product’s SKU number with a JPG extension. I began by using a recorded Batch script in Photoshop to resize all the images to reduce filesize and make the image more web-friendly. The [...]

Add Items to Category Programmatically in Magento

Wednesday, September 12, 2012

0 Comments

The code on the bottom will take the following array: The $lineItems array contains a line of category+sku-items in the format “CategoryNick SKU1 SKU2 SKU3.” CategoryNick is matched against the $categories array above to figure out the Magento category ID. If the product is already in the category, it doesn’t do anything. The product will [...]

Using Rsync to Copy Remote Files to Local Machine on OS X / Linux

Monday, September 3, 2012

0 Comments

The following is used to copy files from a remote server to your local machine using Rsync to keep both synchronized. This is useful for things like backing up important directories on your web server to your external hard drive or elsewhere. Rsync can incrementally synchronize files between two locations whether local or remote. This [...]

This vs That — Be Tech Agnostic

Tuesday, August 21, 2012

0 Comments

Linux (Ubuntu) vs Windows 8 vs OS X iOS vs Android vs Windows Mobile vs Whatever … I’m not a “frontend developer.” That’s not my job. I’m a “backend” developer” and I only code PHP and MySQL on OS X.

Quake Live Tips

Sunday, February 21, 2010

7 Comments

Quake Live is a free, manly game to play. QL is a version of Quake 3 that runs as a browser plugin for Firefox, Safari, and IE. It features a skill-matched game finder, a friend’s system, and other modern features. Think a Lite, browser-based version of Steam. Quake 3 came out in 1999, and people [...]

Learning to Program on Your Own

Tuesday, December 15, 2009

3 Comments

Learning how to code is like learning anything else – You have to do it. The hardest part is figuring out where to begin, and then you need some mechanism to show you that you’re making progress. The latter is important because it motivates you to keep going. First, have a goal. I initially wanted [...]

Small Vim Shortcut for PHP Tags

Wednesday, September 30, 2009

0 Comments

The short tags in PHP have been deprecated as of 5.3.0. Short tags provided a shorter alternative to the annoying-to-type <?php and <?php echo. Instead, you could use <? and <?= respectively. This was great but it caused problems when working with XML files, and the short_tags option was disabled in the PHP config by [...]

The Gmail Captcha is Optional

Tuesday, June 16, 2009

2 Comments

When you try to login with bad credentials, Gmail gives you a captcha to fill in before your next login attempt. Not only does this captcha appear randomly (keep putting in the wrong username and it will sometimes appear, sometimes not) (update: now it appears to be more consistent), but it’s also optional*. Just put [...]

Bash Tips for Power Users

Wednesday, June 10, 2009

2 Comments

Every Geek site needs an obligatory Bash Tips post Copy Files Securely Between Two Machines I used to always forget the syntax for this, until I realized that the syntax is exactly like the standard cp command. In fact, you can copy files like you normally would using scp, on your local machine. The following [...]

Do You Keep Old Programming Books?

Monday, June 1, 2009

0 Comments

I knew HTML and learned ActionScript (actually ActionScript wasn’t out yet. Flash only had basic scripting support) , and around 1999 I wanted to learn Javascript. I ended up getting a book on Java, thinking it was Javascript. It didn’t take more than a day to figure out they’re completely different languages, but for some [...]