Javascript basename() and dirname()

For my next stuff I needed the Javascript equivalents of PHP functions basename() and dirname(). Nothing genius: < View plain text > javascript function basename(path) {     return path.replace(/\\/g,'/').replace( /.*\//, " ); }   function dirname(path) {     return path.replace(/\\/g,'/').replace(/\/[^\/]*$/, ");; } It obviously supports paths like /home/ozh/stuff.php, http://site.com/file.ext or double backslashed Win32 paths such as C:\\dir\\document.txt. Edit:…

FeedBurner and Netvibes: Doing It Wrong

Something seems to be broken between Feedburner and Netvibes. Yesterday, Planet WordPress was showing off a cool 1050 feed readers, and today the counter has dropped down to 267. After logging in Feedburner's control panel to check some stats, I found out that: Netvibes users are not counted any longer Netvibes user count used to be… odd. Stats from last…

ShareWP : Digg for WordPress

ShareWP is a digg-like site (using Pligg I think) dedicated solely to, obviously, WordPress. It seems fairly new (domain registered a few months ago, only a handful or registered users) and I think it has some potential: overall it's nicely done, and well focused on WordPress, a topic that other socialish sites such as Reddit or Digg seem to neglect.…

WordPress Podcasts

WordCast, "Just another WordPress podcast". Add this one to your to-listen list along with The WordPress Podcast and Jeffro's WordPress Weekly if you can't get enough of WordPress related podcasted news.

Follow planetOzh on Twitter

For about one year now, I've been twittering this site's updates on my @ozh Twitter account, without really telling anyone about it. Call this a forgotten experiment. Well, I'm now telling you, so feel free to follow me! (Note: I'm not really a Twitter user, so don't expect anything from me if you twitt something to @ozh)

Cute Little Plugin: Better Plugin Page

My "Manage Plugins" page are getting quite lengthy: this blogs is running 31 plugins, my test blog is running nearly a hundred. Over the time I have been bringing a few custom enhancements to this page, which I'm now releasing as a plugin. Better Plugin Page adds some simple yet efficient (at least I think:) improvements and less clutter, with…