Read C Pointers Fundamentals Explained with Examples today to brush up on my rusty C skills.
Category Archives: Programming
QuirkTools Screenfly
Found out about this handy utility the other day: ScreenFly.
It allows you to test your website on various device form-factors. Handy!
Round corners with CSS
Today I had to look up the CSS syntax for curved corners and I found this article which suggested:
#example1 {
-moz-border-radius: 15px;
border-radius: 15px;
}
Align an HTML table in the center of the page
Today I found this discussion which showed how to align a table in the center of the page in HTML:
table {
width: 50%;
margin-left: auto;
margin-right: auto;
}
or:
table {
width: 200px;
margin-left: auto;
margin-right: auto;
}
JavaScript values, variables, and literals
Found myself reading about values, variables, and literals in JavaScript.
Array splice method
Found myself looking up the syntax of the Array splice method.
Text Escaping and Unescaping in JavaScript
Found a handy web-based utility for encoding/escaping text in JavaScript: Text Escaping and Unescaping in JavaScript.
Trimming new line in bash
To trim new lines in bash:
tr -d '\r\n'
Getting a file by HTTP and redirecting file contents to stdout
To download a file from the web and send its contents to standard out, try this:
wget -O - -o /dev/null https://www.unconfusable.com
XML on the Web Has Failed
Here’s an interesting article from way back in 2004: XML on the Web Has Failed.