mount_smbfs
This will only work when you have already connected to the share before and passwords are stored in your Keychain.
You can view the source using the following URL's:
mount_smbfs
This will only work when you have already connected to the share before and passwords are stored in your Keychain.
You can view the source using the following URL's:
Recently I've configured a RAID 1 setup on my home computer which consists of two 750GB hard drives. This setup will be used to synchronize and backup files that are stored on my Apple MacBook.
I've written a Bash script that will synchronize specific directories from my MacBook to my home computer.
Because of a recent hard-drive failure on my MacBook I had to replace my hard-drive and restore most of my data. Luckily I've been using my own automated backup script for Apple Mail which makes restoring a simple breeze.
I'm using a simple combination of bash and cron that automatically backups all my e-mail into one local .zip file. The local .zip file is automatically copied to my USB flashdrive the moment it's connected to my laptop.
/wp-includes/theme.php and modify two functions.
URL: Wordpress Hack to Debug Themes on a Live Site
This simple hack will use the specified theme only for one remote IP-address. Once the theme is good to go, merge the changes into the live template and undo the hack. #!/bin/sh
for f in *.$1
do
mv "$f" "${f%$1}$2"
done
I've named this script chgext, and use the following command to rename multiple filename extensions:
~$: chgext JPG jpg
This script will rename the filename extension, for example an uppercase 'JPG' extension, into a lowercase 'jpg' extension of all files in the same directory matching your criteria.
URL: Example using chgext
Continue reading... Decompressing *.RAR on a Mac OS X can't be done by default. Of course you could use UnRarX to do this job, though not my cup of tea. I like command-line utilities e.g. par2cmdline and unrar. This post will help you installing the freeware unrar command-line tool from Rarlab.
InstallationDownload the full package containing both rar (shareware) and unrar (freeware) from the Rarlab website. I've chosen the RAR 3.70 for Mac OS X package (rarosx-3.7.0.1.tar.gz). Decompress the package (just double click on the .tar.gz file) and you will see a new folder, named rar, containing the necessary files.
Continue reading...We all enjoy music, right? Playing your favorite music on a computer isn't difficult. But what if you are a Mac user having hundreds of GB's of MP3 files on an external harddrive?
Why
When I bought a new MacBook it came with iTunes as the default (and probably best) music player from Apple. I'm not going to discuss what music player is better. People claim you're able to work with an Apple right out of the box, so iTunes it is.
Having my music stored on an external drive will keep my laptop's harddrive clean and gives me enough free disk space for storing documents, pictures, games, videos...you know, fun stuff.
A permalink is a URL that points to a specific blogging entry even after the entry has passed from the front page into the blog archives. Because a permalink remains unchanged indefinitely, its use avoids link rot. Most modern weblogging, including Wordpress, support such links. Permalinks are often simply stated so as to be human-readable.
But what if you want to change your permalink structure, from:
/%year%/%monthnum%/%day%/%postname%/
to:
/blog/archive/%postname%/
Doing so will make all pages indexed by search engines become invalid, moreover, losing visitors from other sites or bookmarks that links to you.
Continue reading...