Archive for the ‘General’ Category

Flash Fade In and Fade Out Effect

Friday, May 23rd, 2008

It pays for a programmer to learn some photoshop/flash skills … not only you will be more detail-oriented when coding the css layout (hence less chance to drive a designer crazy or be driven crazy by those anal designer comments), but also you can make some quick changes (like cropping off 2 pixels of extra […]

Edit the Windows Vista Hosts File

Wednesday, December 26th, 2007

I had been trying to edit the hosts file on vista but always receives a message saying no privilege. I didn’t even recall setting up an admin user during vista installation. Finally found a solution on the Internet: http://www.maximumpcguides.com/edit-the-windows-vista-hosts-file/ Open Notepad with Administrative privileges by clicking Start, All Programs, Accessories, and then right-click Notepad and […]

Print Labels – Mail Merge

Monday, December 3rd, 2007

I prepared a list of customers to send holiday card to then needed to print them out. Spent some time figure out things since this is the first time I used Mail Merge. Here are the steps that worked for me: Exported customer’s list from Quickbooks into an Excel file Cleaned up Excel file to […]

PHP Date Format Cheat Sheet

Thursday, November 29th, 2007

Please consult the original documentation for examples and more information. Usage Example: $format = “‘l M j, y \a\t g:iA'”; date($format, strtotime($date_str) Result: “Thursday Nov 29, 07 at 2:09PM” Format Character Description Example returned values Hour H 24-hour format of an hour with leading zeros 00 through 23 G 24-hour format of an hour without […]

Customize Pligg with Your Own Design

Thursday, November 8th, 2007

Last week, I spent some time customizing a Pligg installation. After reading many pages of code to familiarize myself with the process, I decided to share my findings in hopes that it will be helpful to some others who also need to customize the look of a Pligg site. This was my first time installing […]

CSS … be careful when using wildcard *

Saturday, November 3rd, 2007

I was working on a project today and found that the content in a table I created all squeezed together, even though that I had set “cellspacing=10”. After some investigation I found that in the CSS code, padding and margin of all elements was removed: body * { margin: 0; padding: 0; } I could, […]