Default image

coder

HTML Character Entities in Javascript

Sometimes you need to write html character entities in javascript, but html character entities can’t be used, because they don’t get interpreted by javascript. In javascript, you need to use the equivalent unicode character codes instead. HTML character entity, wrong:…

Handy MySQL Commands

Log into mysql: (enter password on next prompt) Show all databases on server: To reset an auto_increment field to 1: To load a local csv file into an empty existing table: (This assumes you’ve already created your empty table with…

block ads with hosts files

Anyone with 15 minutes of free time can edit their hosts file to block 99% of the ads that appear on web pages, for free. This works on PCs, Macs, and Linux/Unix computers. What’s a “hosts” file?  It’s a file…