Twitter
LinkedIn
RSS
Facebook
ClickBank1

Archive for July, 2012


PHP/MYSQL String Tricks

Here’s a couple things I always forget. I’m adding them here so I’ll have them for future reference.

How to “Scan and Replace” a String in MYSQL

(Note the AS400-ish wording of that title).

Big Note: Be very careful of serialized data!!!!

Thanks to http://www.mydigitallife.info/how-to-find-and-replace-text-in-mysql-database-using-sql/ for these little pieces of code.

The syntax of REPLACE is REPLACE(text_string, from_string, to_string)

Like this:

update TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, ‘find this string’, ‘replace found string with this string’);

update wp_posts set post_content = replace(post_content, ‘http://domain.com/blog/’, ‘http://domain.com/’)

The above statement will replace all instances of ‘http://domain.com/blog’ to ‘http://domain.com/’ in the field of post_content of wp_posts table.

Read More...

Marissa Mayer: Saving Yahoo?

SUNNYVALE, CA - JULY 17:  The Yahoo logo is di...

Is Marissa Mayer Yahoo’s savior?

Back in the day, I was a Yahoo freak. This was back when AOL was spamming our mailboxes with their crappy little disks (I must have collected about 50 of them), and there was no such think as a “homepage” if you weren’t part of AOL’s little “network”. That is, until Yahoo came along.

Read More...

Never Give Up. Stolen Car Recovered After 42 Years.

Bob Russell is the epitome of the “never give up” attitude.

Man Reunited With Stolen Car After 42 Years

From http://www.newser.com/story/150156/man-spots-his-stolen-car-on-ebay-42-years-later.html

English: Austin Healey 3000 BJ8 - Year 1967 De...

In 1970 Bob’s 3 year old Austin-Healey was stolen from outside his  Philadelphia apartment complex. 42 years later he and his beloved sports car have been reunited.

Bob, who now lives in Texas, would just never give up on that car. He would occasionally surf the Internet to look for the car and, believe it or not, finally spotted it on eBay! It had been posted by a dealer in California, and the vehicle identification numbers matched what Bob had on record. The dealer said he bought it from a man who claimed it had been in his family since 1970 (when it was originally stolen).

Read More...

Vindale Research Sucks

So, I decided to join one of those online survey programs called Vindale Research. It looked legit. I was wrong.

About Vindale Research

Vindale Research is an online research program that claims to offer rewards (including cash) for filling out surveys. I assume they are contracted by various companies or organizations to do the surveys. The pay is very low (a few bucks per survey), but hey – money is money.

Why Vindale Research Sucks

Vindale Research is, if anything, a rip-off (not of time specifically, but time I will never get back).

Read More...

Social Pressure

English: Logo for the Addicted to Social Media...

Jonathan Leger, on his blog, tells a cute story about social pressure. It goes something like this:

(A) research group went around neighborhoods in California and put one of four signs on people’s doors. Each sign encouraged the homeowner to conserve energy, and gave a reason to do so. The four reasons were: 1) to help the next generation, 2) to save money on your electricity bill, 3) to save the planet, and 4) because your neighbors are already doing it. After some time passed, the group went back to the houses and measured the electricity usage against the reading they took before putting up the signs.

Read More...