A place to log my programming solutions.

6
Sep 09

Claiming this Blog on Technorati

Here goes: wshkb4gy8m

So in order for me to “claim” this blog for submission on Technorati, I have to create a post with a certain jumbled string in it. Technorati will then read the jumbled string and verify that I am indeed the owner of this site.

Technorati is a search engine for blogs. I believe I’m jumping onto the bandwagon a little later than most people, but it’s better late than never.

Hopefully that works, otherwise I’m stuck with a useless post.

[edit] – it worked.

1
Sep 09

mod_rewrite Reference

Having a reference for basic mod_rewrite examples on hand is always a good idea.  About once every two weeks, I have to set up a server’s URL rewrites, and because I don’t use it that often, I’m susceptible to forgetting its exact syntax.

Read more »

31
Aug 09

Fortune++; Fortune++;

(5:39:37 PM) Tim: two fortunes for me today
(5:39:44 PM) Antonio David: nice
(5:39:50 PM) Tim: do they both count?
(5:40:01 PM) Tim: or is only one “real” and the other is a decoy
(5:40:02 PM) Antonio David: haha maybe they’re only half as effective

Read more »

30
Aug 09

Mario Party 3 – Nintendo 64

Found this picture from a long time ago. This is from Mario Party 3. Mario has 4 stars and 836 coins while the other players are far behind.

Read more »

20
Aug 09

Clear Magento Customers, Orders, Searches, and Tags

From the Magento dashboard, there is no intuitive way of deleting/clearing/resetting customer, order, search, or tag data. As developers, we have to test the various functions of our specific Magento setup before presenting it to the client. Before the site can go live, all of the test data has to be removed so it doesn’t interfere with the client’s other business functions such as accounting and inventory.

Read more »

18
Aug 09

Magento Configurable Product Pricing

Let’s say for example that configurable product A is defined to have 2 attributes “color” and “size”.  Values for color may be: Black, White, Chrome while values for size may be: 1″, 2″, 3″, and 4″.

One would expect that there should be a price matrix that might look like:

1″ 2″ 3″ 4″
Black $1.00 $1.20 $1.40 $1.60
White $1.05 $1.25 $1.45 $1.65
Chrome $1.15 $1.35 $1.55 $1.75

Read more »

14
Aug 09

Solution to Excel’s CSV Output Formats

Recently I’ve had to import a client’s catalog data from Excel 2007 to the Magento eCommerce Platform. The data in Excel was unsurprisingly in a format that was unsupported by Magento’s import methods. Using code, I needed to parse Excel data into the format Magento required. In PHP, I wasn’t aware of any way to interface with .xls or .xlsx files, so I tried exporting the data to flat-file CSV, where it could be easily manipulated using PHP’s native CSV functions.

Read more »

12
Aug 09

You Can Only Pick One

If you’re here for my opinion on the choice between universal healthcare and freedom, then you can navigate away. I’m here to showcase a poorly designed form:

Read more »

About NVNCBL and Myself

Contact Me