Category: How To
-
Read HFS+ volume on Linux
When attaching a HFS+ formatted USB drive, Ubuntu 12 reports that I can’t read it because I don’t have permissions. To get around this, run the following command from the command line: gksudo nautilus
-
Truncate x characters from a string
Here’s a clever little function that enables you to, as the title suggests (!), truncate a predetermined number of a characters from a string: myStr = myStr.slice(0, -x) (where x is the number of characters to remove)
-
Split a string into an array based on a character
var foo = “09/22/2011”; var arr = foo.split(“/”); document.write(arr[0]+”<br>”) document.write(arr[1]+”<br>”)document.write(arr[2])