Only load jQuery if not already present
Very useful method of ensuring jQuery is loaded before running the code that needs it — from How to build a web widget (using jQuery) — Alex Marandon
Very useful method of ensuring jQuery is loaded before running the code that needs it — from How to build a web widget (using jQuery) — Alex Marandon
Very useful method of ensuring jQuery is loaded before running the code that needs it — from How to build a web widget (using jQuery) — Alex Marandon
37: left 38: up 39: right 40: down
This post is a dumping ground for useful Ubuntu bits and pieces that aren’t worth a full post on their own. Useful Packages Lookit — captures screenshots and upload them to a specified server, then copies the URL to the clipboard … Continue reading
A while back, we close to filling up the partition on our desktop machine with photos, so I decided to get a second hard drive. In the end, instead of a hard drive, I decided to by the WD My … Continue reading
Been using these commands quite a bit recently as I experiment with moving the panels about. gconftool –recursive-unset /apps/panel pkill gnome-panel from Watching the Net
find /var/log/hostdb/* –type d –mtime +90 –exec rm –rf {} ; –type d only look at directories, f would be files –mtime +90 modified time greater than 90 days ago
wget –q http://tools.hursley.ibm.com/repo/pubkey –O– | sudo apt-key add -
load data local infile ‘export.csv’ into table table_name fields terminated by ‘,’ enclosed by ‘“‘ lines terminated by ‘n’ (field_list)
update [table_name] set [field_name] = replace([field_name], ‘[string_to_find]’, ‘[string_to_replace]’); Replace within a field