Friday, January 17, 2014

CSS equivalent of the center tag

From: <center>dataHere</center> to
To: <div style="margin: auto; text-align: center;">dataHere</div>

Thanks to Isaksen from Stack Overflow

Thursday, January 16, 2014

Online Wh to mAh Converter

Just a useful little utility :)

Wh (Eg: 4.44):
V (Eg: 3.7):
mAh:

Formula: mAh = Wh * 1000 / V

<script type="text/javascript">
function convertWhtomAh()
{
var WhValue = document.getElementById('convertWh').value;
var VValue= document.getElementById('convertV').value;
var result = (WhValue * 1000) / VValue;
void(document.getElementById('convertmAh').value = result);
}
</script>

HTML Font Size Conversion

Whilst getting rid of font tags today, I needed an easy reference point to find what size rating in one coding format was equivalent to another (Eg: Is <font size="1"> the same as <span style = "font-size: 8px;"> or... ?) and came across this fantastic chart!

http://www.trishasdesignstudio.com/font-size-conversion-chart.asp

As the link died, here is a version of it hosted on imgur.

Monday, January 13, 2014

How To Rename Google Maps Saved Locations

Whilst saving various places on Google Maps for navigation on my Android phone, I got annoyed that the phone only listed the address (Which gets confusing when you have a list)

To rename them to something more friendy, do the following:

1.) Star a place as per usual.
2.) Browse to https://www.google.com/bookmarks/
3.) Click "Edit" next to the one you want to change.
4.) Change the top line (That currently has the address) to the name you want.
5.) Click "Save"

Your Android device will automatically sync, and you will now see the user-friendly name when navigating :)