Blog
Root cause.
Field notes from fixing production: Linux, NGINX and OpenResty, the JVM, Lucee, PHP, Node and MySQL. RSS feed
2026
-
NGINX truncating large responses? Check your proxy_temp ownershipNew
The page loads, the status is 200, and the HTML just stops. The cause was one line in NGINX's error log.
2025
-
Help! Where is my Sublime Context Menu option
How do I get the Open with Sublime Context Menu option back?
2024
-
How to search and replace text in VIM
This post is short and sweet for now. I plan on adding more commands as I get more familiar with VIM. Today I wanted to search and replace text in a JSON file using VIM. Turns out…
-
GIT fatal: refusing to merge unrelated histories
This is a short and sweet post. I often will start a project by initializing my project with git locally: git init . I then went to GitHub and created the project there. I chose…
-
How to install VirtualBox Guest Additions on Ubuntu Server Commandline
This morning, I struggled to get Guest Additions installed on my Ubuntu Server VBox, which I am going to use to prepare a codebase for migration to Linux. It has been a while…
2023
-
How to get the last 10 queries by table name in MySQL
Last 10 queries I had a situation where I wanted to check if some SQL changes I made were working properly. It involved a transaction with a bunch of queries. Yes I could verify…
-
How to find out the size of your database tables
Today I needed to find out which one of my database tables was taking up all my space. Here is how to to see the size in MB Here is how to see the size in GB
-
Querying rows that are 5 minutes old or more
Querying rows that are older than 5 minutes I recently had a couple separate tasks running on the same database and I wanted to make sure that the second task did not interefere…
2020
-
Boy I wish there was a way to create a table from a select query
I was doing some SQL work today when I had a thought: Boy I wish there was a way to create a table from a select query I started in Navicat to see if it was possible. After…
-
Adding Custom JDBC Options to your cfconfig datasource
I was getting a weird timezone error when connecting to a MySQL 8 database. The server time zone value 'EDT' is unrecognized or represents more than one time zone. You must…
2013
-
Git GUI for Windows
This past weekend I needed to upload code to github. I chose to use the GitHub for Windows which made it painless. Today I decided to research and see what other GUI clients I…
-
Handy JS Functions
Converting a string to an integer http://www.w3schools.com/jsref/jsref_parseint.asp Javascript For Loop http://www.w3schools.com/js/js_loop_for.asp
2012
-
UPS - User Id and Shipper Number combination is not qualified to receive negotiated rates.
Today I started to receive the following message from the UPS API: User Id and Shipper Number combination is not qualified to receive negotiated rates. and to make matters…
-
Jetty Locking Files on Windows
I went to edit a css file today on a server an OpenBD Jetty install and the file was locked. After doing some research I found this…
-
PostgreSQL 9.1 installation guide
I found this wiki article today about on how to install PostgreSQL 9.1 on CentOS. It was very easy to do.
-
How to determine which version of PostgreSQL you are running
Run this SQL command to see which version of PostgreSQL you are running: select version(); Reference: PostgreSQL Wiki
-
How did I manage to forget my railo admin password?
I have no idea how it happened but I forgot and apparently failed to document my railo admin password. Luckily a quick Google search pointed me in the right direction. Here is…
-
How to see what packages are installed using YUM
I am getting ready to do a database migration. While putting my project plan and documentation together I needed a way to find out what postgres packages were installed on the…
-
SPF Record for Google Apps and Sendgrid
Today I needed to update the SPF record for two domains that the email is hosted on Google Apps for Domains. The websites are hosted on the Rackspace Cloud and use Sendgrid.…
-
Test your apache config file
Test your apache config file This is a quick note to remind you about the command to test your apache config file before actually restarting apache: You can check your…
-
Basic iptables rules: open a port to one IP address
**Here is some basic iptable rules. Thanks goes to the cloud support team at Rackspace. This rule appends the rule. This particular rule opens inbound port 5432 to the…
-
How to do a cfdump in cfscript
Today I needed to do a cfdump in cfscript. Turns out this is easy in Coldfusion 9: WriteDump (var, output, format, abort, label, metainfo, top, show, hide, keys, expand,…
-
Using Vacuumdb in PostgreSQL
I read in the PostgreSQL docs that vacuumdb or vacuum should be used on the databases every day. I have been running it manually the last couple of days and it has made a…
-
How to create a database in PostgreSQL
Today I needed to create a database with SQL_ASCII encoding. Here is the command I used: CREATE DATABASE MyDB ENCODING 'SQL_ASCII' TEMPLATE template0; I had to use template0…
-
How to exit a psql command prompt
I had trouble figuring out how to exit the psql command prompt today in PostgreSQL. After reviewing the docs I found it rather easy. \q (back slash q)
-
How to Find and Uninstall a Package Using RPM
Today I needed to be able to find a package and uninstall the package. HowToForge saved the day with a great forum post To find packages: rpm -qa | grep -i webmin To unistall…
-
How to resume a ctrl-z stopped job
Today before I knew how to exit a psql command prompt in PostgreSQL I used ctrl-z to exit. I wanted to get back into psql so I went to Google to find out how. This time…
-
Installing PostgreSQL Server
I found this article today when looking for an install guide of PostgreSQL Server on CentOS 5. I had to switch the install commands to 91 but it went smoothly. An Almost Idiots…
-
PostgreSQL on the command line
I am just getting back into PostgreSQL. Here are the things I had to learn today: 1. Command line usage: su - postgres psql select version(); 2. Dumping data for import…
-
IIS 7 Coldfusion 500 error
This is a reminder to people that might be getting a 500 error when creating a site in IIS7 with coldfusion support. I used the Coldfusion web config tool but was still getting a…