Time Capsule with Shared Network External Hard Drive

May 15, 2011

I have Time Capsule installed on my home network. My HP Pavilion has a direct cable connection into the back of the Time Capsule (no wireless network board since the machine is very old). My mac book pro connects to the Time capsule using wireless. I wanted to set up a local network drive to share photos and music files with my family.

I purchased a Western Digital Elements 2 TB hard drive to use as my local network hard drive. The hard drive comes preformatted for windows. My pre reading indicated I would need to format the hard drive for apple in HFS+ format to work with all machines via Time Capsule. The Time capsule provides AFP protocols to apple based machines and SMB protocols to windows based machines to interface with the hard drive. This was based on the apple site reference page about USB storage device supported formats and protocols USB storage device supported formats and protocols.

The instructions that came with the hard drive pointed Macintosh users to support.wdc.com and to look up knowledge based question id#287. Doing a knowledge based search on the id brought up this link:
How to partition and format a WD drive on Windows(7,Vista,XP) and Mac OSX.
I then selected my OS which was MAC OSX 10.5 or 10.6. This brought up a step by step instruction on how to format the external hard drive in the MAC OS EXtended (Journaled) format. The only deviation from the directions was in step 4 where I selected GUID Partition table partition scheme rather than the Apple Partition Map choice. These directions were also presented at this site Things You Must Know When Connecting a USB Hard Drive to Airport Extreme.

After reformatting the hard drive, I plugged it into my Time Capsule. I then used my Airport Utility which I have installed on my windows machine to configure the Time Capsule per the instructions on How to Add An External Hard Drive To Time Capsule. The fact that I had the Airport Utility installed on my windows machine may be why I had no trouble seeing the hard drive on my windows HP machine.

Ironically, on my apple mac pro laptop the network drive was visible but when I clicked on the drive I got the following error message:
“The operation cannot be completed because the original item for “drive” (the name of my drive) cannot be found”

I did some googling but thought I would try an old Windows trick and just rebooted my laptop. That did the trick and the laptop recognized the hard drive on the Time Capsule and allowed me to view the test photos I had placed there. I think the reboot forced the time capsule settings to be refreshed on the laptop which is rather windowy behavior.

Advertisements

Flash CS5 Dynamic Text Formatting – Part 5

May 4, 2011

Embedding Font Class in a Flash CS5 Component Class

I created a document class for a fla file which has

  • font embedded
  • traces the font info when the class is instantiated
  • creates a text field to display embedded font

Here is the document class EmbedFontTest.as which is in the same directory as the Font Classes which it references(ArialEmbedder and MsRefEmbedder):
Continue reading


Flash CS5 Dynamic Text Formatting – Part 4

May 4, 2011

Embedding font in a Class file

My next approach was to read up on embedding fonts programmatically. So I broke out my Essential Actionscript 3.0 book and on page 740 read up on embedding fonts and going through the exercises in that chapter.

The following is an example of embedding font in a class which can then be used in a class to control the rendering of text in a TextField.

package {
	
	//-------------------------------------------------------------------------
	// Class
	//-------------------------------------------------------------------------
	/**
	 *
	 * Class used to embed Arial Regular font 
     * ONLY in a font library
	 * for use by Flash 5 Pro generated swc libraries
	 *
	 **/ 
	public class ArialEmbedder {
		
		public static const FONT_NAME:String = "_arial";
		
		//these are the elements of the font family 
		//we want to embed using direct path location 
        //to Font directory on Windows XP
		[Embed(source='C:/Windows/Fonts/ARIAL.TTF', 
			   fontFamily='_arial',
			   fontWeight='regular',
			   fontStyle='regular',
			   embedAsCFF='false')]
		public static var _arial:Class;
		
	}
}

Continue reading


Flash CS5 Dynamic Text Formatting – Part 3

May 4, 2011

Creating Flex Component View using Flash CS5 – FONT Conflicts

We created some Flex based component views using Flash CS5 by following the instructions in the Adobe Article Combining animation and ActionScript using Flash Professional CS5 and Flash Builder 4 which we used inside our course player. These View components had text fields which would dynamically resize when the player was resized on the fly(Only for firefox and safari, IE and chrome do not allow resizing). These views also had images which would scale appropriately as well.

Continue reading


Flash CS5 Dynamic Text Formatting – Part 2

May 4, 2011

Mixing TextFormats within a TextField
We would like to highlight text within a paragraph. I would follow the instructions in Part 1 of this series, then follow these instructions to modify the text format within a paragraph:

  • create a new TextField with the desired font to be used
  • embed the font in the TextField
  • Set the font to be exported for actionscript*

* see the instructions at this site: AS3: Text Fields and Formats to set the linkage properties for the font in the IDE.

Continue reading


Flash CS5 Dynamic Text Formatting – Part 1

May 4, 2011

Retrieving TextFormat from TextField with Embedded Font
Creating notes for myself to reference when creating flash pages using the Flash CS5 IDE.

This post is going to cover how to retrieve TextFormat settings when I would like to change the text in dynamic text fields on the fly. I typically layout flash pages with TextFields placed in the desired location on the stage. When an interaction has been setup and the values of the text fields needs to change dynamically, I always struggle to remember exactly what I did each time.

Simple approach Part 1:

  • Embed the font in the dynamic TextField with desired attributes set in property tab
  • TextField paragraph setting set to Justify*
  • Programmatically retrieve the TextFields text format properties to be used later

* – this seems to prevent cropping of characters in the text field when values are changed. When I tried to set this attribute programmatically, the text characters would get cropped when I mixed font attributes within a text field vs setting the whole TextField from the stage (so just set this item globally on the stage properties tab view for the designated TextField).

Continue reading