S E R V E R   S I D E
View current page
...more recent posts

I feel a little stupid about this one, but to be fair, you can't know everything. In MySQL you can 'update' part of a field (like search and replace) with the 'replace' function:

update [table_name] set [field_name] = replace([field_name], '[string_to_find]', '[string_to_replace]');

I've always just written a little program to select all records and then loop through and do the replace in PHP. This is obviously much easier. Google is my friend.
- jim 12-21-2008 8:02 pm [link] [1 ref] [add a comment]

NVIDIA's ion platform is a chipset for Intel's low power Atom processor. It's an "Atom CPU and a GeForce 9400M next to each other, a single SATA connector and a DDR3 SO-DIMM slot on the other side of the board. And this little thing is powerful enough to play HD video (8 - 25Mbps H.264)." The 9400M is the exact same graphics chip that's in the new MacBooks, but the entire chipset fits on a Pico ITX board which is considerably smaller than what's in a full size laptop.

This doesn't quite get into smartphone territory, but you could make a very small notebook ("netbook") with this that would really be full powered. I'll be very interested to see what people do with this. Due first half of 2009.
- jim 12-18-2008 3:28 pm [link] [3 comments]

Apple has annouced that this January will be the last time it participates in the MacWorld Expo trade show. This is huge news in Mac land since this was the one event that everyone went to (apple people, but more importantly the larger community of 3rd party developers.) And Steve Jobs has become rather famous by using the keynote speech to display his impressive public speaking skills. This is where many huge Apple products have been introduced to the public and the publicity surrounding the event was incredibly out of proportion for the size and importance of the market Apple serves. And not only will this be the last year, but Jobs isn't even giving the keynote this year! Quelle horror!


Read the rest of this post...



- jim 12-17-2008 3:57 pm [link] [4 comments]

Addonics USB to NAS adapter. $55. Sweet. Let's you plug any USB hard drive into your router and then share it over SMB or Samba with any connected computer.
- jim 12-11-2008 5:21 pm [link] [add a comment]

SmartMarkUp javascript textarea editor looks very nice. Usually these are too cluttered, and try to be way too clever, for my taste. I like the HTML mode on this one, where it actually sticks in the HTML tag when you click the associated button, rather than trying to display the result of the tag in the editor. Like it's not trying to be for complete idiots. Still I'm not sure this kind of thing is necessary (can't people remember the tag for bold?) but I might give this one a try.
- jim 12-11-2008 5:19 pm [link] [add a comment]

Drew Diller's blog: Fixing IE one band aid at a time. Impressive. I used his dd_roundies.js script recently to get rounded corners in an HTML document even in border-radius eschewing IE.
- jim 12-11-2008 4:39 pm [link] [1 comment]

All I want for Christmas is a Fusion IO 320GB solid state PCI-E disk drive. The numbers here are just insane, with the Fusion IO crushing an 8 disk 15K.6 15,000 RPM SAS RAID 0 array on an Areca controller (which is itself a complete fantasy setup no one would ever run!) These new SSDs really change the game. Too bad the 80GB is $3000 and the 320GB is $14,400 with a 640GB card (drive?) on the way.
- jim 12-11-2008 4:22 pm [link] [add a comment]

Google's Native Client plugin "allows web applications to securely run native code on the underlying platform." Works with all major platforms and browsers. Not ready for prime time yet, but that's pretty interesting stuff. The difference between code running locally and code running "out there" is getting smaller and smaller.
- jim 12-10-2008 2:18 pm [link] [1 comment]

[Updated: changed the command slightly and added stuff about directories]

For my own reference, this is one way to change every file in the current directory (and below) to 644 permissions:

find . -type f -print0 | xargs -0 chmod 0644

And to change all directories in the current directory (and below) to 755 permissions:
find . -type d -print0 | xargs -0 chmod 0755

And to delete all files in the current directory (and below) older than (say) 5 days:

find . -mtime +5 -print0 | xargs -0 rm

And to delete all empty directories in the current directory (and below):
find . -type d -empty -print0 | xargs -0 rmdir

- jim 12-08-2008 11:07 pm [link] [add a comment]

older posts...