Calculate Ratio Snippets


This example code calculates the ratio between the X and Y columns of the RATIO table.

22 July, 2013   

It can be useful to be able to resize images using jQuery

27 September, 2014   

How to measure the Buffer Cache Hit Ratio. Note that hit ratio based tuning is not recommended.

07 December, 2014   

Note that hit ratio based tuning is not recommended.

19 October, 2013   

Mysql code shows how to calculate last 7 days

MySQL code example to calculate age from Date Of Birth

This is a PHP Class that calculates the size, number of files & folders of a specific directory.

How to calculate distance between Mouse and Element

Scripts used to calculate Daylight Saving Time (DST) for the US and EU. Valid for years 1900 to 2099. [DST wasn't adopted until the 1950s-1960s for US and 1990s for the EU] By: brad degrandis

PHP code to calculate the difference between two dates

23 August, 2014   

Correctly calculate the date of Easter Sunday.

24 July, 2014   

Calculate distance between two zip codes or postal codes.

11 November, 2013   

These are two JavaScript functions that should of course be properly called on "onkeyup" event in the appropriate fields.

13 June, 2011   

This C# code snippet calculates a Fibonacci number using recursion, i.e., the Fibonacci method calls itself when necessary.

30 August, 2011   

Calculates the total size of a MySQL database in KB/MB or GB...

Calculate the more near point belonging to a given segment.

Have you ever wanted to know how much memory one of your PHP scripts uses when it runs? You might want this information if your script has a memory leak or takes a long time to execute. If that's the case then there's a great built-in function called memory_get_usage, which will display the exact amount of memory being used by your script. This...

16 January, 2013   

How to calculate age in years and months

13 June, 2011   

This C# code snippet inputs the principal and interest amounts and calculates simple interest.

03 May, 2012   

MYSQL code example for calculation of Easter Day This code taken from en.wikipedia.org