Skip to main content

Posts

Showing posts from May, 2011

Things You Shouldn't Do During a Recession

provided by Investopedia In a very sluggish economy or a recession people should generally try to watch their spending and not take any undue risks that might put their future financial goals in jeopardy. There are several types of risks that everyone should avoid during a recession. Let's look at some of the most common mistakes people make and how to avoid them. 1. Becoming a Cosigner Cosigning a loan can be a very risky thing to do even in flush economic times. After all, if the individual taking the loan doesn't make the scheduled payments, the cosigner could well be asked to make them. However, during an economic downturn the risks associated with cosigning a note could be even greater as the person may be at greater risk of losing his or her job and the means to pay down the loan. Also, the cosigner is more likely to land in the unemployment line as well. With all that in mind, there are times when you may find it necessary to cosign for a family member or close fr...

Best Practices for Speeding Up Your Web Site

Yahoo has published a set of rules which outlines some of the methods that can be employed to make your website as lean and fast as possible. One of the methods suggested is to compress and  minify  external CSS and JavaScript files. http://developer.yahoo.com/performance/rules.html

Windows Run commands and Shortcuts

Windows XP Run Commands and Short Cuts How To - Click Start, Click Run and enter the command Click OK Run commands Calc - Calculator  Cfgwiz32 - ISDN Configuration Wizard  Charmap - Character Map  Chkdisk - Repair damaged files  Cleanmgr - Cleans up hard drives  Clipbrd - Windows Clipboard viewer  Cmd - Opens a new Command Window (cmd.exe)  Control - Displays Control Panel  Dcomcnfg - DCOM user security  Debug - Assembly language programming tool  Defrag - Defragmentation tool  Drwatson - Records programs crash & snapshots  Dxdiag - DirectX Diagnostic Utility  Explorer - Windows Explorer  Fontview - Graphical font viewer  Ftp - ftp.exe program  Hostname - Returns Computer's name  Ipconfig - Displays IP configuration for all network adapters  Jview - Microsoft Command-line Loader for Java classes  MMC - Microsoft Management Console  Msconfig - Configuration...

To Print a movieclip in actionscript2.0

on (press) { // 72 pixels = 1 inch // A4 printable height = 10.5 inches approx var printableHeight = 10.5; var objHeight = _root.targetMovieClip._height; var objWidth = _root.targetMovieClip._width; var numberOfPages = Math.ceil((objHeight/72)/printableHeight); var pixelsPerPage = 72*printableHeight; trace(numberOfPages) var myPrint:PrintJob = new PrintJob(); myPrint.start(); for(i=0;i<numberOfPages;i++) { yStart = i*pixelsPerPage; yEnd = ((i+1)*pixelsPerPage) - 1; printArea = {xMin:0, xMax:objWidth, yMin:yStart, yMax:yEnd}; myPrint.addPage(_root.targetMovieClip,printArea); } myPrint.send(); delete myPrint; }

[Actionscript] Function to translate a number into number of Indic or non-english numerals.

This function is very Useful in displaying numbers in Indic Languages. Input: Any Number in English. Output: String in Hindi/Any Language Used in the variable devNum . Environment: Flash/Actionscript 2.0 function fnTranslate(param){ var num = param.toString();  //Assuming the user input is a valid natural number in English. var devNum:String="०१२३४५६७८९";   //replace this string by Indic/Non-English numerals var strOut=""; for(i=0;i<num.length;i++){ s=num.charAt(i); strOut=strOut+devNum.charAt(s); } return strOut; }

[Actionscript] Function to randomise elements in an Array

Declare a array and send it to function "fnRandoms". The function returns an randomly sorted array. function fnRandoms(myArray:Array) { temp = new Array(); var flag = 0; for (i=0; i<myArray.length; i++) { randomSelection = myArray[Math.floor((Math.random()*myArray.length))]; flag = 0; for (j=0; j<temp.length; j++) { if (temp[j] == randomSelection) { flag = 1; i--; break; } } if (flag == 0) { temp[i] = randomSelection; } } return temp; }