Posts tagged “sharing”.

Script it

I had another IcyDock, firewire, external, drive enclosure fail again. So instead of throwing good money after bad, I instead acquired a NAS (network attached storage) device. Specifically, I got a Synology DS211J from Amazon with reward points on my credit card. Yes, I paid $0 for it and it’s the best money I never spent.

The NAS, which I named NASty, holds two SATA drives and has a host of RAID configurations available. I have two 2TB drives mirrored, split into three Volumes, with access controls, users, passwords, and a smorgasbord of applications, not the least of is a VPN server so I can access my files remotely when I’m away from home. On one Volume I moved all of my Music, and set iTunes to look on the remote drive for my music database. Which is good for sharing my music through the house, but was causing me some pain and mental anguish on my laptop when I forgot to first ‘mount’ the drive before opening iTunes.

When opening iTunes prematurely, as the case is, my podcasts would download to the local drive and I would have to clean it up manually to get it back onto the NAS and have it recognized in the iTunes program. Annoying. So, I thought to myself, I should script it so the NAS music share mounts first, then iTunes opens. So… I programmed an iTunes Launcher for my new setup.

-- iTunes Launcher
-- for use with a music database stored on a remote NAS

-- define our Function to check if an application is running
on appIsRunning(appName)
	tell application "System Events" to (name of processes) contains appName
end appIsRunning

-- check for the existence of our music share
try
	alias "/Volumes/music"
on error
	-- if the share doesn't exist mount it
	tell application "Finder"
		mount volume "music" on server "NASty" in AppleTalk zone¬
			"*" as user name "music-user" with password "pass-word"
		-- not my username nor my password… 
	end tell
end try

-- Test to see if our mount is really there.
tell application "Finder" 
	if not (exists POSIX file "/Volumes/music/itunes/.NAStyIsMounted") then
		display alert "NASty Music Share not Mounted!" as critical giving up after 90
		return
	end if
end tell

-- Is iTunes running 
if appIsRunning("iTunes") then
	-- if so, do nothing
else
	-- otherwise start iTunes
	launch application "iTunes"
end if

-- bring iTunes window to the foreground
tell application "iTunes"
	activate
	tell window 1
		if not visible then set visible to true
	end tell
end tell

So just a tiny little script that checks to see if the music share is mounted already. If not, I mount it. I then make sure it mounted, if I can’t see the hidden file on the share I go OLD SCHOOL and ABEND. Otherwise I continue and check to see if iTunes is running. If not, I start it. And to finish up, now that I know iTunes is running, I bring it to the front.

I saved the script as an application. I changed the icon from the default AppleScript icon to a custom icon. Then I dropped the Launcher program onto my dock. So now I not only have a graphical reminder on my dock, but I removed the iTunes icon so I can’t accidentally open just the program without mounting the share first.

Amazingly, it works like a charm.

Candy Hearts Bingo

I put together this game way back in 2007 for my daughter’s Valentine’s Day party. If you are a teacher or student, please feel free to use this in your class. I think it’s a fun, free, holiday children’s game that can liven up any school party.

You can download one convenient file, which includes the rules, all of the calling tiles and 30 playing cards. You can also download a pack of 30 additional playing cards if needed.

Game Contents

In the PDF package there are 30 randomly generated color game cards, 10 sheets of color calling tiles, and 2 sheets of monochrome calling tiles. Print the number of game card pages you need and the type of calling tiles you’ll use. There are different variations of game play all explained below.

Game Play

Variation #1 – Simple Rules

In this variation, you only need to print out the number of cards you need and the last two pages of the PDF file with the monochrome heart calling tiles. Cut the calling tiles out. Place the calling tiles in a hat or other container. Mix the calling tiles up. Distribute the cards to the players. Everyone gets to mark the center square because it’s a free spot. Pull a calling tile out of the hat. Read the saying out loud, for example “Red Hot” or “Love me” or “Wow!”. Players will mark their cards if they have a heart of ANY COLOR in ANY COLUMN with that saying. Play continues until the first player gets five in a row across, down, or diagonally across their playing card. That player will call out “Candy Hearts!” and is the winner.

Variation #2 – Color Rules

In this variation, you only need to print out the number of cards you need and the nine pages of color heart calling tiles. Cut the calling tiles out. Place the calling tiles in a hat or other container. Mix the calling tiles up. Distribute the cards to the players. Everyone gets to mark the center square because it’s a free spot. Pull a calling tile out of the hat. Read the color of the heart and the saying out loud, for example “Purple, Red Hot” or “Yellow, Love me” or “White, Wow!”. Players will mark their cards if they have a heart of that color and phrase in ANY COLUMN upon their playing card. Play continues until the first player gets five in a row across, down, or diagonally across their playing card. That player will call out “Candy Hearts!” and is the winner.

Variation #3 – Auditorium rules

In this variation, you will need to print out the number of cards you need, the nine pages of color heart calling tiles and the last page of HEART tiles. Place the calling tiles in a hat or other container. Place the HEART tiles in another hat or other container. Mix both sets of tiles up. Distribute the cards to the players. Everyone gets to mark the center square because it’s a free spot. Pull a calling tile out of each hat. Read the letter of the column heart and the color of the second heart and the title out loud, for example “H, Purple, Red Hot” or “E, Yellow, Love me” or “T, White, Wow!”. Players will mark their cards if they have a heart of that color and phrase in the particular column upon their playing card. Play continues until the first player gets five in a row across, down, or diagonally across their playing card. That player will call out “Candy Hearts!” and is the winner.

Note:

In all variations of play, the game cards were created randomly, and do not have two of the same sayings on a card. Variation #1 has 63 different saying. This will produce a “Candy Hearts!” winner relatively quickly. Variation #2 has 63 different sayings, in six different colors, for a total of 378 combinations. Variation #3 has 63 different sayings, in six different colors, which can occur in one of five columns, for a total of 1890 combinations. This is best suited for large groups and will need many more randomly generated cards to avoid multiple simultaneous winners.

Feel free to mix and match to your liking.

Happy Valentine’s Day!

Free Olympic Ringtone

Last Winter Olympics I decided I needed the Olympic theme music as a ringtone. So, I made one and I have enjoyed it a lot, especially during the winter and summer games. I thought I’d share it with everyone. You can download your very own free copy, which is a 29 second, 234kb, 22Khz Stereo MP3 file, here. (Hint, right click and choose save.)

I offer no help to you about how to get this MP3 onto your phone as a ringtone. I’m sure there is a lot of information out there to help you, try googling with the make and model of your phone and the search string “add ringtone”. Also try the free program BitPim, which can be found at http://bitpim.org/.

Enjoy!