content top

rsync

rsync

Everyone backs up their data. The problem I ran into is that I have 2TB’s of data to backup, and I couldn’t find a cloud based solution that uploaded my data fast enough. So, I went to plan B. As you can tell by the title of this blog, I am going to use rsync. rsync is a software application and network protocol for Unix-like systems with ports to Windows that synchronizes files and directories from one location to another while...

Read More

Rename files to create date – YYYY-MM-DD HH.MM.SS

Rename files to create date – YYYY-MM-DD HH.MM.SS

Have you ever wanted to rename all your iPhone photos to the create date when they were taken, down to the second? Yeah, me too. So I wrote a little script that runs through your current directory and renames all the specified files to the format YYY-MM-DD HH.MM.SS.EXTENTION. I got the idea from my Dropbox mobile upload. Dropbox renames all your files with the same format, and I just thought it was a really good idea. WARNING: USE AT YOUR...

Read More

Prevent Hard Drive from Going To Sleep or Spinning Down

Prevent Hard Drive from Going To Sleep or Spinning Down

If you own an external Western Digital drive like myself, you may have noticed that the drive has a built-in sleep function that spins down the drive if not used in a 10 minute time period. This feature is really annoying to me. Every time I attempted to access a file on my external, Finder would hang until the drive spun back up. Here’s a quick and dirty solution. Create a script that touches a hidden file every 5 minutes. I added...

Read More

Drop-down to Anchor or URL

Drop-down to Anchor or URL

I wanted to figure out a way to have a simple drop-down menu that brought the user directly to an Anchor that I placed within my web page. You can easily replace the Anchor link with a URL. <script language="JavaScript"> function goto(form) { var index=form.select.selectedIndex if (form.select.options[index].value != "0")...

Read More

PHP Switch Statement – output result from selected option

I was asked to come up with a way to give users a list to choose from and output a result based on their selection. I decided to use PHP. I ended up using a Switch Statement to accomplish this task. I am not a PHP expert or anything but I was happy to figure this out on my own. Create the form: <form action="choice.php" method="post"> <b>Choose your Selection:</b><br /><br /> <input...

Read More
content top