Did a fresh install + updates of Kubuntu 8.10 on a customer’s laptop and had no wireless even though it’s an Atheros chipset.
I’ve often resorted to loading up a Linux livecd and running “lspci” just to get an idea of what hardware is in a box. Let’s face it, even if box manufacturers do provide the drivers you need, that model may have shipped with one of 4 different NICs, video cards, etc. So it used to [...]
Recursive, multi-file find and replace with grep and xargs for performance: Source: http://www.jonasblog.com/2006/05/search-and-replace-in-all-files-within-a-directory-recursively.html grep -rl 'what_to_find' ./ | xargs sed -i 's/what_to_find/what_to_replace_with/g' PutĀ a not in front of that expression: find ./ ! -type d Escape wildcards to avoid the shell expanding them: If you just quote it; “*.avi” you can often run into trouble. [...]
So even Windows lets you disable the Recent Documents feature, but for some reason Gnome really wants to remember what files you’ve been messing with. Personally I never use this menu item (usually under Places in the Gnome Main Menu) and find it to be a bit of a privacy concern. Surprisingly enough there are [...]
A lot of videos available from various sources are often encoded as .avi files close to 700MB in order to fit on a singleCD-R. This works out just great, but sometimes vids are split into two 700MB .avi files to fit two CDs so you get a Coolest-Movie-EVER_-_[2010][xVid](mp3)_dUff-mAn_CD1.avi and another but with “CD2” instead.
I’ve always had some trouble with the syntax for accessing Nested Arrays and their Keys in PHP so I wanted to make note of this.
I’ve been doing a few reinstalls on my workstation boxes lately so I put together this list to save myself some time. This will change as I remember/find stuff.
Recently using osCommerce I had a customer who wished to have all the products’ names in uppercase but they had been entered in mixed case. After having some trouble finding a simple answer through Google, I pieced together this simple query that can also be adapted to other situations. The below is a MySQL query [...]
So my reckless typing really got me into trouble this time. I was attempting to zero-out a usb drive when I managed to put the wrong device in the dd command – I automatically typed sda1 (the primary HD) out of habit instead of sdb1 – the usb drive. I caught my mistake and gave [...]
Ok so I started out using rsync with the options ‘-a –progress –delete’ and I thought that was doin’ the job just fine. But recently I migrated our old 600mhz Dell Optiplex GX110 to a Sans Digital MobileNAS MN2L dual drive RAID NAS and the rsyncs weren’t going as planned.