Welcome to my website. I am always posting links to photo albums, art, technology and other creations. Everything that you will see on my numerous personal sites is powered by the formVistaTM Website Management Engine.

icon.linkedin.jpgicon.twitter.jpg

  • Subscribe to this RSS Feed
  • Online Subversion Book
    12/20/2007 3:26PM
  • Using svn over ssh on Windows to access a Subversion repository
    12/20/2007 10:31AM
    I'm working on a project whereby I need to access an svn Subversion repository over ssh (svn+ssh) on a Windows box.  Following is a step by step of how I got it all working using the svn command line client on Windows XP connecting to a Subversion repository on a linux box running CentOS 5.

    Click on "Read More" for the whole article on how to get it all set up.
    First I downloaded and installed a windows binary of subversion, so that I would have the svn client executables.

    I went the extra step and set up ssh keys between the widows client and the server so that I could svn without having to enter a password each time.  To so so:
    • Download plink.exe, pageant.exe, and puttygen.exe from the Putty website.
    • Run puttygen.exe to generate a private and public key.
    • After the key has been generated, click on the "Save private key" button towards the bottom of the puttygen dialogue box.  Put it somewhere handy, you'll need to refer to it later when calling your ssh client.
    • Towards the top of the window is a field that says "Public key for pasting into OpenSSH authorized_keys file:"  Login to your server where your Subversion repository resides.  Append this string to your home/.ssh/authorized_keys file (if it doesn't yet exist, create it and add the key string).
    • Make sure that you chmod 600 your authorized_keys file so that it is only readable and writeable by the owner of the /home/.ssh directory, otherwise you won't be able to use it to ssh to your server.
    Start pageant.exe and load the private key you just generated. Copy a Pageant shortcut to "Startup" under the "All Programs" item on your Start menu. Add the path to your directory that contains plink:
    • Right-click on My Computer and select Properties
    • Click on the Advanced tab and click on Environmental Variables
    • Append the following to the Path System variables:
    • C:\Path\to\plink\dir
    • Restart your machine
    Test:  From the command line type: plink.exe username@server If it is set up properly you'll find yourself logged into your serve without a password prompt.
    Next, we'll configure Subversion to use plink for the ssh client.
    • Before you can edit the Subversion config file, you need to fire up a command line terminal and simply type svn.
    • You should get Type 'svn help' for usage.  That means Subversion in installed and ready to go.
    • Once you have done that, your configurations file will have been generated in your users Documents and Settings Directory.
    • Edit the Subversion config file for your user.  You should be able to find it under C:\Documents and Settings\username\Application Data\Subversion\config.
    • In some instances the Subversion directory isn't created in Application Data directory for the user.  In that case, I've included a .zip file attached to this article entry.  Simply download the Subversion.zip file, unzip and place the folder in your C:\Documents and Settings\username\Application Data\ folder.
    • If you are running Windows 7 or Windows Server 2008 the folder will be C:\Users\username\AppData\Roaming\
    Scroll down until you find the [tunnels]section. Add the following:  ssh=plink To add a configuration for the text editor program that you will use to enter notes with each svn commit command, add the following line:  editor-cmd = notepad That should do it.

    Try checking out a copy from your repository.
    • Open up a Command Prompt and type:
    • svn co svn+ssh://user@server/path/to/repository dir_name_for_code
    • That should check out a version of your code from your repository and you should be good to to.
    Attachment: subversion.zip 8136 bytes
  • Using FlashVars with ActionScript 3.0
    12/17/2007 6:07PM
    I'm working on a video component in AS 3.0 that takes the location of a dynamically generated xml file and passes it to a SWF via FlashVars.

    3.0 deals with FlashVars and query string variables much differently than 2.0.

    Here's an article that'll get you going in the right direction.
  • Quick Overview of Flash CS3 V3 Components
    12/17/2007 6:39AM
  • Creating Dynamic Scrolling Text Boxes with Flash CS3
    12/12/2007 8:47AM
    Here's a quick how to for creating dynamic scrolling text boxes in flash.  (This also works with Flash 8, Flash MX, and Flash MX 2004.) Let's say that you would like to have a text box in your flash movie and that you will be loading arbitrary amounts of text data into it.  You can set it up so that no matter how much text you add to the text instance you will have the scroll bar controls dynamically update to match.

    This requires only two things, a text instance and an instance of the UIScrollBar component that ships with Flash.

    1. Create your text instance on the stage and size it appropriately.  Then drag an instance of the UIScrollBar to the stage.
    2. In the properties window set your text instance to "Dynamic" text, set it to "Multiline", and give it an instance name.  In this case, we'll call it test_txt.
    3. Size the UIScrollBar instance vertically so that it matches the height of the text instance.
    4. Then next step is slightly different between CS3 and previous versions of flash.
      1. For CS3: Drag the UIScrollBar so that it is over either the left or right edge of the text instance.  When it snaps such that the edge of the text instance lines up with the middle of the UIScrollBar instance release the mouse.  It will move to the outside edge of the text instance and then be associated with that text instance
      2. For Flash 8, MX, MX 2004:  Drag the UIScrollBar so that it is inside the text instance.  Release it closest to either the left or right side of the text instance.  It will move to the outside of the text instance and then be associated appropriately.
    Here is some sample code you can add to frame 1 of your sample movie to test it out.  Make sure that your text box isn't so big that all of this text will be displayed without you having to scroll

    test_txt.text = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";

    stop();

Advanced Search

Categories

Archives