Mehic.info

Category Archives: Technology

Posts related to my job or interests

How To Format A USB Flash Drive in Ubuntu (Linux)

Trying to format a USB drive in Ubuntu? So was I. The following instructions were the most helpful solution I could find.   Determine where your USB is mounted. Insert your USB Right-click the icon, properties, volume tab: take note of the mount point. It might be, for example, /media/USB Open a command prompt, type […]

Read more

UTF8 without BOM

Printing a list of files with byte order mark (BOM) character in folder : grep -rl $’\xEF\xBB\xBF’ folderName   Removing BOM from file  : tail –bytes=+4  fileName.php > fileName.php   Or just insert in your .php code next line : //Set the encoding to UTF-8, so when reading files it ignores the BOM       mb_internal_encoding(‘UTF-8’); Happy coding:)

Read more