It’s been almost exactly two years since the last update, but here it is.

v1.0 Release Notes:

  • Tidied up code
  • Cleaned up default settings
  • Add support for HTML fragments before/after the widget and title. This is available in the Appearance > Widget configuration of WordPress.
  • If you’re upgrading from a previous version and have used the get_ZenfolioRSS() function directly, you may need to update your call to get_ZenfolioRSS() to pass a configuration array. See function docs for more detail.
Head on over to the ZenfolioRSS for WordPress page to download the source files.
 

Palm Pre PlusHaving decided to go back to Verizon after two years of AT&T, I started shopping for a new smartphone. My poor experience with the Blackberry Bold really made me shy away from spending more money on a new Blackberry — I was on my 4th replacement Blackberry Bold by the time the one-year warranty ran out on the phone. The shoddy data network and mediocre voice quality of the AT&T network were important factors for my switch to Verizon.

My choice of carrier meant that the iPhone was out, though the lack of a physical keyboard took the iPhone out long ago. That left me to choose between a Google Android phone or a Palm webOS phone. With a keyboard being a requirement, I could choose from the Motorola Droid, Palm Pixi Plus or the Palm Pre Plus.

Continue reading »

Tagged with:
 

To diff and ignore whitespace, create a script called ‘sd’ with the following content:

1
2
#!bin/sh
svn diff --diff-cmd diff -x -uw $1 | view -

Run it like so:

1
sd -r13788:head
 

This post is password protected. To view it please enter your password below:


 

Having upgraded to Snow Leopard, I wanted to wipe out my MacPorts installation and start clean. I’ve had tons of stuff installed and updated from the past (three versions of each port, in fact). Here’s how to uninstall MacPorts.

The first step is to uninstall all the installed ports:

1
sudo port -f uninstall installed

Then remove any trace files lingering about:

1
2
3
4
5
6
7
8
9
10
sudo rm -rf /opt/local \
/Applications/MacPorts \
/Applications/DarwinPorts \
/Library/Tcl/macports1.0 \
/Library/Tcl/darwinports1.0 \
/Library/LaunchDaemons/org.macports.* \
/Library/StartupItems/DarwinPortsStartup \
/Library/Receipts/MacPorts*.pkg \
/Library/Receipts/DarwinPorts*.pkg \
~/.macports
 

Here are three simple steps to uninstall the MySQL installation provided by MySQL.com. You should take care with these commands since a typo can obliterate portions of your OS, requiring a reinstall. If you’re comfortable with shell commands and understand what’s being done, here are the commands:

1
2
3
sudo rm -rf "/usr/local/mysql*"
sudo rm -rf "/Library/StartupItems/MySQLCOM/"
Go to System Preferences... > ctrl-click the MySQL icon and remove it.
 

DOS sums up the sizes of all the files it lists when using the dir command, but Linux ls does not. Here’s an awk script that will calculate that information.

1
ls -la [filenames] | awk '{ sum += $4 } END { print sum }'

An easier command (thanks Sunny):

1
du -hs * --total
 

I installed a  fresh copy of Magento v1.3.2.2 on my development box using the installer and Google Chrome. After completing the install, I was unable to login to the Admin Panel through Chrome. It seemed to work fine in Firefox though. Each time I entered the admin username and password, I got sent back to the login page. Upon further investigation, I was unable to create an account or login via the frontend user interfaces either. The frontend would send me to a page indicating that I should turn Cookies on. I took a look at Chrome’s cookie bin and surely enough, there were no cookies being stored for my domain (magento-1.myhost.com). Other sites seemed to work fine.

At this point, I was really unsure what was going on. I found some references online to Magento and Cookies, but nothing to do with Google Chrome. Perhaps my issue was a particular one, but it was repeatable and my problem criteria only partially matched the other problems found online (i.e. the localhost problem). I also found that Google’s diagnostic tools are severely lacking. Unlike Firefox, which has tools like Tamper Data to let users diagnose HTTP Header problems, Chrome had nothing like it.

After a bit of sleuthing, I was able to see that Magento sets the following default cookie parameters if nothing is configured in the Magento Admin Panel:

Cookie Domain: magento-1.myhost.com (it looks up HTTP_HOST)
Cookie Path: /
Cookie Lifetime: 3600

I thought these parameters looked fine, but they were not working for Chrome. On a hunch, I decided to change the Cookie Lifetime from 3600 to 0 to force the browser to only keep the cookie data until the browser is closed.

Magento Admin_1248045898014

Surprisingly, it worked! I have not had time to figure out why this is the case yet, but I don’t have any concerns setting Cookie Lifetime to 0, so it will stay that way for now.

 

Update 7/19/2009: It looks like Buddystats is gaining traction. A search on Twitter reveals that users are falling for the phishing scam. A couple of my friends have also received the mysterious URL from their friends. At this point, it looks like they are trying to gather as many passwords as they can. Quite probably for use later on to distribute malware or spam. These guys are slow and deliberate. It would not be a bad idea to change your AOL AIM password if you’ve typed it into a website recently.

Good thing is Google Chrome now marks the domain as malware. However, I’ve seen mention of links now containing direct IP addresses in the URL. Be wary of the scam and let your friends know that Buddystats is a dangerous website!

Just for your edification, here’s what the site looks like:

c871b9c7c7e481cd979e218ae0cb98cb

A moment ago, I got an IM from someone I hardly talk to on AOL Instant Messenger. The message said simply had a link in it:

http://www.buddystats.com/?sn1=mysn&sn2=friendsn

I clicked the link since it was an acquaintance and it presented a tidy looking site–somewhat official looking. There’s a big compare button in the middle that you can press and it will ask for a password. I thought it suspicious so I typed in an incorrect password. No go, I typed in the same bad password a couple more times and it presented a result.

Pretty sly phishers out there. Whatever you do, do not type in your real password. If you already have, go change it _immediately_ or it will use your AIM account to spread itself.

 

I think Paul Graham’s essay on The Founder Visa is a great one in principal. I think there are tremendous benefits in having foreigners come to the US to start businesses. It never hurt innovation to have many startups vying for market space. On the other hand, there is another source of people that are hugely capable of starting businesses… the millions of laid off workers in our very own country.

The system has a financial assistance package for these people–it’s called unemployment insurance. Unfortunately the system has promoted a culture of paying people to look for jobs rather than create jobs. A case in point is that I, in California, am not eligible for unemployment insurance because I am starting a business that has already employed several people rather than looking for work “full time.”

When my previous company hit the wall and laid everyone off, I had two choices: 1) look for a new job, or 2) start my own company. For a variety of reasons (mostly good ones), I decided that it was time for me to do the latter. I searched around for resources and stumbled upon a program by the US Department of Labor that suggests entrepreneurs can obtain assistance similar to unemployment benefits when starting a new business. It’s called Self-Employment Assistance and is characterized as a drop-in replacement for unemployment benefits for those who have become jobless and are looking to start a new business.

Rather than pay people to be unemployed, the program pays people to create businesses that in turn can create even more jobs. Unfortunately, only about seven states participate in the program and California isn’t one of them. I asked around at the California EDD, but no one seems to know what I’m talking about.

It’s really a shame. By the figures, there are hundreds of thousands of perfectly capable people that have been laid off in the past month alone. These are experienced people that can become contributors to renewed growth by creating new businesses.

While I agree with Paul’s thoughts and feel they are well-placed, I am quite certain we can find 10,000 jobless entrepreneurs in our own country perfectly willing to try their hand at starting up a company. There is a program available to encourage them to take this step, but unfortunately many of our states don’t subscribe to it.