How To Sort A Multidimensional Array By One Element In PHP

I had a table’s worth of listings and had stored all the values in a multidimensional array in PHP. The problem was, I needed to sort the multidimensional array, but based on just one element. Here’s the easiest, fastest solution that I found from the array_multisort function page of PHP (thanks to zequez at gmail dot com!). Here’s his original solution taken from that page: $multiArray = Array( Array("id" => 1, "name" => "Defg"), Array("id" => 2, "name" => "Abcd"),

Continue Reading

How To Fix The Problem Of Icons Disappearing in Your Mac’s Dock

Sometimes certain icons in your Mac dock will just disappear. For example, the Firefox icon might disappear and you’ll see a blank space with just the Firefox name instead of the icon. I’m not sure why this occurs, but it’s some form of corruption to the dock settings file, so you’ll need to reset it. To do so, just do this: Use Spotlight and look for terminal. Launch it, and run the following commands. rm ~/Library/Preferences/com.apple.dock.plist killall Dock There you

Continue Reading

How To Fix The Problem Of Flash Always Crashing in Firefox

I love Firefox, but I hate how it works with Flash. Essentially, it doesn’t work and causes hair-pulling frustration. I tried looking around to see if any other people are facing the same problems, and it’s clear that I’m not alone in this situation. From the various posts online, it’s a problem that has plagued Firefox users since several versions ago, and up till now, the same issue persists. The problem with this is that it’s an issue with a

Continue Reading

How To Redirect or Disable BBPress Registration Page

BBPress is a great forum software that integrates nicely with WordPress. The problem is, it’s not as full-featured as the other forum software available. One of my gripes is the inability to change certain options. For instance, if you’ve integrated BBPress with your WordPress blog, then you want to redirect or disable the default BBPress registration page since it’s redundant. Well, there’s no easy, out-of-the-box switch that you flick on and off for this. Turns out that if you want

Continue Reading

Sliding Sidebar