Ruby, what I’ve learned
Being a beginner at Ruby, I’ve found the language to be extremely easy to learn and use. Being used to, and fond of, the object oriented design pattern has made it fun for me to learn Ruby. The fact...
View ArticleWhy Test?
I come to PMA from a large corporation over 40,000 employees strong, including an entire army of QA Engineers testing every change and release we made, something we took full advantage of. At first, I...
View ArticleRegular Expression Lookahead
Using standard regular expressions is pretty easy for most tasks. However, there is one task that requires lookaheads. I am referring to using negative lookahead to check for strings that do not follow...
View ArticleSetting PowerDNS To Ignore Records For Downed Web Sites
If you are using PowerDNS for round robin on multiple websites, you can set it up so that it will return only the records for sites that are up. I set up a Ruby daemon to monitor sites and connect to...
View ArticleThe Scan() Method for Regular Expressions
As I was writing a simple script to display the education I received from reading The Ruby Way 2nd Edition chapters 2 and 3, I found a really neat method that helped me complete my task. If you didn’t...
View ArticleAsynchronous Processing with Workling and Starling
When working with applications whose actions may take some time to complete, it may be better to handle the request asynchronously. A quick and easy way to do this is using Starling and Workling....
View ArticleWorking with Git
This tutorial covers all the commands (hopefully) we’ll need for the projects we build here at PMA. If there’s anything that needs to be added to it, feel free to comment. Starting with the basics,...
View ArticleRuby file trimming app
We recently had an interesting experience with very large files. These were comma delimited files (.csv) containing hundreds of thousands of records, each with a dozen or so fields. e.g....
View ArticleDon’t Call it “Case Equality”
I’ve recently learned to love Ruby’s “triple equals” operator, sometimes referred to as the “case equality operator”. But I stand with Hal Fulton, author of The Ruby Way, in disliking the latter term,...
View ArticleDatabase syncronization woes
Database resyncronization depends on what went wrong but the steps below will most likely solve most issues. Run these commands on the slave database STOP SLAVE; # stop the Slave I/O threads RESET...
View Article