Running a PHP script from Command Line Shell | How to

To run a php script from the command line follow this procedure: Simply run the CMD command in windows and type the following command: :location\to\the\running\>php.exe -f “c:\location\of\php\scriptfolder\myscript.php” Ensure the local server is up and running – fire you WAMP/ XAMP or whatever bundle you are using. For WAMP server – the php.exe file is located […]

Free Green PSD Web Layout | Knowpapa Giveaway of the Week

The Free Green PSD Web Layout giveaway of the week by designer/author: Sangita Chaudhary License You are granted the use license which enables you to use this template FREE of charge. Because this is released under GPL, You can modify the theme in any way you like and even use it in commercial projects. Attribution […]

Line of Best Fit Calculator + Trend Line Graphing Tool

Enter one data set in the format x,y per line: For example: 4,5 5,6 8,7 3,4 5,11 11,13 14,11 Intercept(a): Slope(b): Line of Best Fit :(y=a+bx) About Linear Regression and Trend Line Formulating a equation for the line of best fit for two sets of variables allows us describe a relationship between the two variables expressed in the form of a […]

Truth Table Generator for Arbitary Boolean Expressions

Use the following symbols: AND * OR + NOT – NOR # NAND $ XOR ^ IMPLIES => or <= BICONDITIONAL(iff) <=> You can assign complex statement to a variable with “:” operator. For example: t:x*(x+y) q:y+(x*y) and you can even perform operations on each of the new variables that you created. For example: t*q […]

‘Numbers to Words’ Batch Converter (Indian Numbering System)

To convert numbers to equivalent Indian number system (Lakh, Crore Counting system) use the following converter. Important Features: Now forget adding those ugly looking code into your excel sheet, never understanding what it does under the hood.The following converter can be used to convert unlimited number of numbers to words. Features include: 1) Can be […]

‘Numbers to Words’ Batch Converter (Num to Text)

Recently I needed to convert a series of currency numbers to words equivalent. Strangely Microsoft Excel does not have any in-built corresponding function to handle this. I wrote this code to get this done with support up to quintillion values. Now that should be sufficient for most of the cases. Truth be told, I could […]

Macaulay Duration Calculator for Bond Instrument

Bond’s Face Value Coupon rate% Bond Purchase Price Maturity Value Term to maturity (yrs.) Yield to Maturity (YTM) (%) 1 Time Weighted Present Value of Coupon payments (A) 0.14463711368462775 Present Value of Maturity Amount (B) 5.374721077731093 Duration(A+B)(in yrs.) 5.51935819141572 Meaning that the price of the bond will decrease 5.52 % for a corresponding 1% increase […]

Online Calculator: Find Value of a Bond or Debt Instrument

Face Value: Maturity Date:(MM/DD/YYYY) Amount Redeemable at Maturity: Annual Coupon Rate: % Number of Coupon Payments per Year: Required rate of return:% A. Present Value of $1000 Maturity Value is $ 563.59 B. Present Value of 13 Coupons @ 35 is $ 339.43 C. Present Value of Bond (A + B) : $903.02 To use […]

Moving from HTML4 to HTML5 | Tips & Caveats

HTML5 is the result of ironing out of differences between all major browser-vendors. As more browsers gear up to support many features of HTML5 – it may be a ripe time to switch over to HTML5. Why switch to HTML5? I can hear you ask, Why change if HTML5 is fully backward compatible with HTML4 […]