If you use the Georgia font on your web pages, you probably set a CSS font family similar to this: The Georgia font is not included in Ubuntu or other Linux systems. So, visitors to your website that are on Ubuntu or Linux, instead of seeing your attractive Georgia font, will see a boring serif […]
Archive for “Misc Tips and Tricks”
Tips and tricks for web developers and designers regarding fonts, text editors, HTML specs and more.
This is a quick and simple way to add a honeypot field to any form. This works in WordPress, as well as in any form. Adding a honeypot field to forms is a quick and simple way to limit spam on your forms. A honeypot field is simply a field which is added to forms, […]
These regular expression examples are useful in Sublime Text 3 when you enable “Find” by Regular Expression. You can search for an HTML element’s opening tag, with or without specifying attributes. This example will search for just the opening tag of an HTML element. In this case, it’s an “a” link element. You can change […]
These regular expression examples are useful in Sublime Text 3 when you enable “Find” by Regular Expression. You can search for an HTML element’s opening tag, closing tag, and included content in between. Also, you can specify attributes, or not. Please see the caveat below. This is a regex example to find an HTML element […]
These are my favorite Sublime Text 3 shortcuts, as well as Sublime SFTP shortcuts. These work on Ubuntu/Linux. Selecting Select the entire current line: Ctrl + L Select everything inside the current HTML tag: CTRL + SHIFT + A Select word – Repeat select others occurrences: Ctrl + D Split selection into lines: Ctrl + […]
This key binding for the “close all” command will work with Sublime Text 3. You’ll be able to close all open files by using the shortcut: Ctrl + Alt + w. In Sublime Text, go to Preferences -> Key Bindings -> Default. Paste this on a new line, right above the last closing square bracket: […]
This key binding for the “save all” command will work with Sublime Text 3. You’ll be able to save all open files by using the shortcut: Ctrl + Shift + Alt + S. In Sublime Text, go to Preferences -> Key Bindings -> Default. Paste this on a new line, right above the last closing […]
Compare the timezone ID’s given by GeoNames.org and the PHP/Iana/Olson timezone databases. Compare also the time offset by the two databases for a city and historical date and time.
This is a table of timezone discrepancies between two timezone databases: 1. Timezone id’s from GeoNames Timezone Database 2. PHP’s built-in Timezones from the IANA Time Zone Database (also known as Olson timezone database) This table lists timezone id’s for specific latitude and longitude coordinates for historical times (a time in the past). This table […]
These are some image sizes of 3 x 4 ratio. 34 x 45 45 x 60 40 x 53 50 x 67 95 x 127 111 x 148 150 x 200 175 x 233 180 x 240 185 x 247 200 x 267 300 x 400 360 x 480 375 x 500 400 x 533 […]