Today I had to lookup how to set the target frame of a form.
Basically you set the ‘target’ attribute on the form to the name of the frame you want to target.
Today I had to lookup how to set the target frame of a form.
Basically you set the ‘target’ attribute on the form to the name of the frame you want to target.
Today I discovered the $wgRawHtml setting which allows for the inclusion of HTML in MediaWiki pages. Wicked! :)
Today Apache complained about SSLCertificateChainFile being deprecated and it told me to use SSLCertificateFile instead.
SSLCertificateFile was already in use with the .crt file. I had to create a new ‘SSLCertificateFile’ by concatenating the .crt file with the ca-bundle, and that fixed the problem:
# cat trust.jj5.net.crt trust.jj5.net.ca-bundle.pem > trust.jj5.net.pem
I followed these instructions to install PHP 5.4 on Ubuntu 12.04 LTS.
Basically:
$ sudo apt-get install python-software-properties $ sudo add-apt-repository ppa:ondrej/php5 $ sudo apt-get update $ sudo apt-get dist-upgrade
I had a problem with my rewrite rules, that looked like this:
DocumentRoot /var/www/trust.jj5.net
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) http://trust.jj5.net/sorry.html [L,R]
I was trying to redirect any request which didn’t match a file or directory. The !-f and !-d requirements were failing because the path to the REQUEST_FILENAME wasn’t fully qualified. I fixed the problem by including the DOCUMENT_ROOT:
DocumentRoot /var/www/trust.jj5.net
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteRule (.*) http://trust.jj5.net/sorry.html [L,R]
Happy days! :)
I’m always forgetting the syntax for the jQuery ‘document ready’ event. Which is an embarrassment because it’s so simple:
$( document ).ready( handler ) $().ready( handler ) (this is not recommended) $( handler )
I used to use the $( document ).ready( handler ) syntax, but starting today I use the $( handler ) syntax.
Today I used the Datepicker for Bootstrap. I grabbed the files from the CDN.
Found a list of HTML Singleton Tags, the tags that don’t require a closing tag.
Using PHP Output Buffering Control…
Today I queried the $_SERVER[ ‘SERVER_PROTOCOL’ ] value in PHP to determine the HTTP version used by the request.