May
28
2010

I Hate You preg_replace()!

(Add / View Comments) (0)Friday, May 28, 2010 - 07:56:43 pm
(Posted Under: Development, PHP)
Well, this is just a plain annoying PHP gotcha...

Last year I ported some Perl code to PHP. A quite literally port as it would seem. Since then I've had some problems with dollar amounts going haywire by the time they get to the browser.

Just tracked down the problem - when digits follow a $ in a replacement string fed to preg_replace(), they're treated as back references. How annoying (I don't think this was true in Perl - at least I never noticed a problem)!

Since I am doing a preg_match() before the replace anyway, I've swapped to str_replace() and everything is copacetic, Generally speaking, I feel like I use preg_replace() a lot, so this is a rather disturbing revelation.
Now Playing: Beat Angels - Grow Up
May
28
2010

With Friends Like These...We Need New Friends

(Add / View Comments) (0)Friday, May 28, 2010 - 03:58:42 pm
(Posted Under: Tempe Music Scene Tempe Music Scene, Music Music)
The CD release is tomorrow, I'm looking forward to it, if you haven't gathered that from earlier blog entries.

It has been getting some good press this week, which I'm happy to see. The first mention was late last week in The Arizona Republic. We were kinda excited to see that, given that Katie's working there now. Local rockers Domo release new album. Around the same time, a new website went up: domorock.com. Simple, but a nice clean design, I like it a lot. This is our first look at the names of the tracks we've been listening to for months.

This week there have been mentions in the Phoenix New Times (Domo (CD release show), Truckers on Speed, Dagg Nabbit Stubbs, & The Haymarket Squares, Flier of the Week: Domo at Yucca Tap Room and Rockaroke, Suns Viewing Party, Domo, Deathface, and Other Memorial Day Weekend Thrills) and today a mention on So Much Silence: Saturday night: Domo CD release show.

Given how quiet things have been in regards to Dono for quite a while (we've only managed to catch them three times since we've moved here) I like the fanfare the album release is getting, at least in the local press.

The So Much Silence article was an interesting read, since I had no idea that Jason had left Source Victoria (ironically, I didn't even know he was in the band until about 6 months ago). I hope that means more time to devote to Domo. Music to my ears, if you ask me.

I was listening to the album on the way home from my job interview yesterday - god it's great album! Here's my middle finger, thanks for everything! [smile]

Oh, and this goes without saying, but I'm so glad that they titled "Oh Shit!" "Oh Shit!" Arguably the best song title of all time! As their domain name states - Domo rock!
Now Playing: Bowling For Soup - Get Happy

Switch Styles

About Style Switching.

!Weblog Index

Apr May 2010 Jun
SU MO TU WE TH FR SA
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

Categories

RSS FeedRSS Feed