If you have a website with Google Analytics configured and want to be able to track its visits without needing to go to the Analytics Site (except when you need more advanced reports), then this online tool is for you…

Knowledge is inside
With this online tool, you can easily escape and unescape strings (among other powerful things, explained below)…
If you want to bookmark it, you may prefer this shorter address: http://www.neoegm.com/software/intelligent-escaper-unescaper/. [Press the right mouse button and select the option offered by your browser to add it to your bookmarks/favorites.]
Since I’ve been having lots of visits in my wxWidgets version of the Celsius to Fahrenheit converter, I’ve decided to prepare an online javascript version which lets you easily make the conversion.
| Celsius: | ||
| Fahrenheit: |
Convert Celsius to Fahrenheit Online is licensed under the GNU GPL v3…
Here is the complete source code:
<script type="text/javascript">
// *****************************************************************************
// Description: Convert Celsius to Fahrenheit Online by NeoEGM
// Author: Ezequiel Miravalles
// Last modification: 16/08/2009
// URL: http://www.neoegm.com/tech/online-tools/convert-celsius-to-fahrenheit-online/
// *****************************************************************************
/*******************************************************************************
Copyright (C) 2009 Ezequiel Gastón Miravalles
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
function isNumber(x)
{
return ( (typeof x === typeof 1) && (null !== x) && isFinite(x) ); //From http://snippets.dzone.com/posts/show/6937
}
function Round(number, digits)
{
return Math.round(number * Math.pow(10,digits)) / Math.pow(10, digits);
}
function CelsiusToFahrenheit(celsius, fahrenheit)
{
var num = celsius.value;
if (num == "" || !isNumber(Number(num)))
alert("Please type a number");
else
fahrenheit.value=Round((9/5)*num+32, 2);
}
function FahrenheitToCelsius(fahrenheit, celsius)
{
var num = fahrenheit.value;
if (num == "" || !isNumber(Number(num)))
alert("Please type a number");
else
celsius.value=Round((5/9)*(num-32), 2);
}
</script>
<table>
<tr>
<td>Celsius:</td>
<td><input type="text" name="celsius_field" id="celsius_field" style="width:100px" /></td>
<td><input type="button" value="To Fahrenheit" onclick="CelsiusToFahrenheit($('celsius_field'), $('fahrenheit_field'))" /></td>
</tr>
<tr>
<td>Fahrenheit:</td>
<td><input type="text" name="fahrenheit_field" id="fahrenheit_field" style="width:100px" /></td>
<td><input type="button" value="To Celsius" onclick="FahrenheitToCelsius($('fahrenheit_field'), $('celsius_field'))" /></td>
</tr>
</table>
As a new sequel to the Excel random password generator and the Random password generator, I’ve made a PHP random password generator service…
You can call it this way (if you hover the parameter values, you’ll get an explanation):
http://www.neoegm.com/services/random_password.php?length=8&upper=1&lower=1&numbers=1
So, for example, to generate a 10 characters numeric password you could access:
http://www.neoegm.com/services/random_password.php?length=10&upper=0&lower=0
As an easy and quick to use alternative to the Excel random password generator, I’ve made this online Javascript adaptation of the random password generation function code… You can watch its source code below…
Characters
Uppercase Lowercase Numbers
Random Password
The code is licensed under the GNU GPL v3…
Just in case you want to see the function code without looking into the source code:
/*************************************************************************************************
Random Password Generator by NeoEGM
Copyright (C) 2009 Ezequiel Gastón Miravalles
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*************************************************************************************************/
/*************************************************************************************************
Software: Random Password Generator by NeoEGM
Author: Ezequiel Gastón Miravalles
Website: http://www.neoegm.com/software/random-password-generator/
License: GNU GPL v3 (read above)
*************************************************************************************************/
function RandomPassword(Length, Upper, Numbers, Lower)
{
Upper = typeof(Upper) != 'undefined' ? Upper : true;
Numbers = typeof(Numbers) != 'undefined' ? Numbers : true;
Lower = typeof(Lower) != 'undefined' ? Lower : true;
if (!Upper && !Lower && !Numbers)
return "";
var Ret = "";
var Num;
var Repeat;
Chars = 26 * 2 + 10; //26 (a-z) + 26 (A-Z) + 10 (0-9)
//a-z = 97-122
//A-Z = 65-90
//0-9 = 48-57
for (i = 1; i <= Length; i++)
{
Repeat = false;
Num = Math.floor(Math.random()*Chars);
if (Num < 26)
if (Lower)
Ret = Ret + String.fromCharCode(Num + 97);
else
Repeat = true;
else if (Num < 52)
if (Upper)
Ret = Ret + String.fromCharCode(Num - 26 + 65);
else
Repeat = true;
else if (Num < 62)
if (Numbers)
Ret = Ret + String.fromCharCode(Num - 52 + 48);
else
Repeat = true;
if (Repeat)
i--;
}
return Ret;
}
Recent Comments