// archives

Notes

This category contains 25 posts

Atheros Wireless in Ubuntu 8.10 Intrepid Ibex

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.

Using SIW to Find Hardware in Windows

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 [...]

Useful find Commands

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. [...]

Disable Recent Documents in Gnome 2.22.3

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 [...]

Join two .avi Videos with Mencoder/Mplayer

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.

Echo PHP Nested Array Contents + Keys

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.

My Apps List: Windows XP

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.

MySQL: Convert all Values in Column to Upper Case

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 [...]

PhotoRec Saved My Butt

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 [...]

My rsync Command

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.

Advertisement

Categories