Wordpress Directory View

Written by jason.malwitz on 25.04.2009 | General

The default setting for creating a Wordpress site with Dreamhost’s one click setup configures the site to allow viewing of directory contents.  I am not a fan of that.

Fortunately, the fix is really simple -

Create a .htaccess file and place it in the root of the Wordpress directory:

# Prevents directory listing
Options -Indexes 

No more viewing my folder details… sorry.

No Comments so far

iPhone Calendaring

Written by jason.malwitz on 04.01.2009 | General

In line with my recent fallout with Apple, I have found a way to implement what should have been done for free by Apple or Google. Using nuevasync.com’s offering, I added a useful calendar sync with my Google calendar. When I first set up my account everything went smoothly, except I did not get any of my “shared” calendars.

Tonight I found a workaround – if my permissions on the shared calendar are changed to “make changes,” the calendar details will be added to my iPhone calendar. It’s nice to sync with my wife’s calendar and see what’s planned!

No Comments so far

Creating a backup audio CD on a mac

Written by jason.malwitz on 19.12.2008 | General

My mac has a lot of nice features, but every once in a while I stumble across something that annoys me. Today it is the perceived inability to create an ISO of an audio CD.

After looking around to find a viable solution, I stumbled across this submission from SlashDot. The comments added some additional insight and I arrived at the following (which still does not work properly, so look at final sentences to see solution):

Semi-functional Approach
Two commands are supposed to do it all – I located my desktop in Terminal and ran the following:
1. diskutil unmountDisk /dev/disk1
2. hdiutil makehybrid -o ~/Desktop/file.iso /dev/disk1

This created a semi-successful iso… the problem is that when I opened it in Windows, the .cda tracks appear as .aiff. How lame is that? Overall it is a neat process, but it does not do what I set out to do for audio CDs.

Real Solution

I then moved on to FireStarter FX. It took a bit longer, but created a Binary file and TOC which proved to be an exact replica burnable to CD. I burned the CD and it works as expected.

No Comments so far

Adding Video to a Wordpress Blog

Written by jason.malwitz on 28.06.2008 | General

Adding video to a blog can be a bit of an ordeal.  One solution I have employed in the past is to upload the video to Google Video and use the embeded video code snippet in my blog.  That works, but it does require you to download a video.

Another viable solution is to reference the video and play it from another location.  This is the solution I have been looking for.  ShadowBox was the answer.  Despite having excellent documentation, I got a bit lost in the bare minimum required to utilize the tool.  In the end, the following proved successful.

  1. Download the code – I used the js and css folders.
  2. Download the Yahoo User Interface Library – all you will need is the utilities.js file.  I renamed this to yui-utilities.js and placed it in a lib folder.
  3. Upload the js, css, and lib folder to your wordpress blog

Insert the following code into the <head> section of the header.php page:

<link rel="stylesheet" type="text/css"
href="/wp-admin/css/shadowbox.css">

<script type="text/javascript" 
src="/wp-admin/js/lib/yui-utilities.js"></script>
<script type="text/javascript" 
src="/wp-admin/js/adapter/shadowbox-yui.js"></script>
<script type="text/javascript" 
src="/wp-admin/js/shadowbox.js"></script>

<script type="text/javascript">
YAHOO.util.Event.onDOMReady(Shadowbox.init);
</script>

Voila!  You have set everything up!

There are two major rules to adding video:

  1. Specify a rel attribute
  2. Specify the size of the video

The following is an example provided by the author:

<a href="http://mjijackson.com/shadowbox/gallery/skip.swf"
rel="shadowbox;height=140;width=120">My Movie</a>

My Movie

Continue reading Michael Jackson’s description for further details.

1 Comment so far




Shelfari: Book reviews on your book blog