Ruby on Rails 1.2 and above automatically set a Content-type header including charset=UTF-8, which is well and good if you’re designing an application from scratch – JoelOnSoftware has a good introduction to character sets, for those who need a refresher – but breaks things in subtle ways if you are upgrading a legacy Rails 1.1…Details
It has been awhile since I created a custom service to use in a firewall policy on a Fortinet firewall and I was having trouble. I was thinking of the service as a NAT rule where you map the port one to one such as wanting to allow SSH you would have the firewall NAT…Details
The entire error I recieved was: Fatal error: Cannot redeclare tc_post() (previously declared in www/wp-content/plugins/text-control.php:20) in www/wp-content/plugins/text-control/text-control.php on line 33 When upgrading the WordPress plugin text-control I was getting this error when trying to activate text-control. I ended up remembering that the markdown.php had not worked on initial installation so I replaced it with the…Details
While working on this site I decided to not only have a tag cloud widget but also build out a page that included nothing but a list of all the tags marked for each article. This way someone could click on the tag page I wanted to list all the tags in alphabetical order and…Details
There are a couple settings that may need to be changed when uploading zip files via the NextGen Gallery admin interface within WordPress. The actual plugin notes that php.ini should have the following setting changed from the default of 2M to 20M like below.
The below code snipet was created to check the number of rows in a PostgreSQL database, log the output to a file, and warn if the number of rows is over a certain number. There are numerous variables in the code snipet below that will need to be modified for it to work properly including…Details
Output of a shell command can be written to a file by using > but if you don’t want to overwrite the contents of the file then you can use >> to write to the end of the file. The below will write the date to a file in /var/log: date > /var/log/currenttime The below…Details
The question is often raised of how to provide a redundant network solution when connecting your leased cabinet or cage to your colocation’s network. This goal can be achieved in numerous ways but most solutions are fairly expensive. Below I list an entry level option to provide network redundancy when connecting to your colo. One…Details