Howdy. Welcome to our webdesign blog!

Thanks for dropping by! Please make yourself at home by leaving comments and subscribing to the RSS feed to stay updated.

  • Categories:

  • Blogroll

  • Archives:
  • HOW TO: Randomize/Shuffle an array in Flash (AS2)

    January 30, 2010

    I was creating a logo scroller in flash when a client of mine asked me if the logo’s could show up in a random order. This lead me to look to see if Actionscript 2.0 has a built in function to randomize an array. Well, I didn’t find a built in funciton, but i found a great blog entry describing how to build you own. The following code snippets come from:

    http://mrsteel.wordpress.com/2007/06/15/randomize-array-shuffle-an-array-in-flash/

    Prototype function and return function code is :

    1. Array.prototype.mixElements = function() {
    2.  var _length:Number = this.length, rn:Number, it:Number, el:Object;
    3.  for (it = 0; it<_length; it++) {
    4.  el = this[it];
    5.  this[it] = this[rn = random(_length)];
    6.  this[rn] = el;
    7.  }
    8. }
    1. function mixArray(array:Array):Array {
    2.  var _length:Number = array.length, mixed:Array = array.slice(), rn:Number, it:Number, el:Object;
    3.  for (it = 0; it<_length; it++) {
    4.  el = mixed[it];
    5.  mixed[it] = mixed[rn = random(_length)];
    6.  mixed[rn] = el;
    7.  }
    8. return mixed;
    9. }
    10.  

    Share and Enjoy:
    • Print this article!
    • Digg
    • StumbleUpon
    • del.icio.us
    • LinkedIn
    • Facebook
    • Twitter
    • MySpace
    • Reddit
    • Google Bookmarks
    • Live
    • Yahoo! Bookmarks
    • RSS
    • E-mail this story to a friend!

    HOW TO: Creating new users in Ubuntu Linux from the command line

    November 24, 2009

    This how to is written because I have had to look this up like 3 times already, and I wanted a central place where I could return and find the info. I found a good tutorial that I will copy for the most part in this post:

    Creating Linux Users Tutorial

    For this tutorial, I am using Ubuntu 8.04

    To create the user account:

    useradd username

    Set a password for this user

    passwd username

    Important Files (I hope to expand on this later on when I dig into them)

    • /etc/passwd – User account information.
    • /etc/shadow – Secure user account information such as password.
    • /etc/group – Group account information.
    • /etc/default/useradd – Default values for account creation.
    • /etc/skel/ – Directory containing default files.
    • /etc/login.defs – Shadow password suite configuration.
    Share and Enjoy:
    • Print this article!
    • Digg
    • StumbleUpon
    • del.icio.us
    • LinkedIn
    • Facebook
    • Twitter
    • MySpace
    • Reddit
    • Google Bookmarks
    • Live
    • Yahoo! Bookmarks
    • RSS
    • E-mail this story to a friend!

    4 Papercraft Fold-up Toy Websites

    June 20, 2009

    Tubbypaws Blog

    Tubbypaws GTA4 papercraft

    Tubbypaws GTA4 papercraft

    Tubbypaws has some really wierd but awesome drawings and papercrafts. I especially like the lolcat paper dolls on the website. This site is sure to kill the color cartridges in your printer. http://tubbypaws.blogspot.com/

    ReadyMech Paperdolls

    Ready Mech Monster Doll

    Ready Mech Monster Doll

    Readymech makes a set of free paperdolls. I got one in a Computer Arts magazine once on much nicer sturdy paper, and found them really fun. http://www.readymech.com/

    Cubecraft

    Cubecraft Dolls
    Cubecraft Dolls

    Cubecraft has a ton of papercraft dolls for making. From Penny Arcade to Xmen, cubecraft has you covered. http://www.cubeecraft.com/

    Creative Closeup 100 Paper Models

    Creative Closeup 100 Paper Models

    Creative Closeup 100 Paper Models

    Creative closeup has a blog entry displaying 100 paper models. Many of them are just plain amazing. Especially the battletech madcat paper model! http://www.creativecloseup.com/100-exceptional-free-paper-models-and-toys

    Share and Enjoy:
    • Print this article!
    • Digg
    • StumbleUpon
    • del.icio.us
    • LinkedIn
    • Facebook
    • Twitter
    • MySpace
    • Reddit
    • Google Bookmarks
    • Live
    • Yahoo! Bookmarks
    • RSS
    • E-mail this story to a friend!