Monthly Archives: April 2014

Heroku pg migration error “PG:DataCorrupted: Error”

Heroku’s database system is having issues at the moment, if you use a command like this: heroku rake db:migrate You’ll see some details saying: Heroku pg migration error “PG:DataCorrupted: Error” This looks like a system-wide error on Heroku’s side. The complete error is something like: One option may be to try this: heroku run rake Although at this time the Heroku dashboard does not report any issues officially: Now one day later we see the results from the Heroku Support Bot: Your database HEROKU_POSTGRESQL_CRIMSON_URL on yourapp requires maintenance. During this period, your database credentials will become read-only. Once it has completed, your database URL will have changed, but we will update your app’s config variables accordingly. This automated maintenance is a necessary part of our Starter tier plans, Dev and Basic. Should you need more control over maintenance windows, a production database (Crane or higher) offers more control over database maintenance, as we are able to schedule them in advance and provide better tools for self-served maintenance. We expect maintenance to last just a few moments. We will update this ticket when maintenance begins, and again once it’s complete.

Posted in Linux, Server Admin | Leave a comment

Black Studio TinyMCE plugin and WordPress 3.9

If your Black Studio TinyMCE widget seems to have disappeared after upgrading to WordPress 3.9 you’re not alone. Many users are looking for the missing widget after the most recent upgrade. According to the plugin page, the plugin lists that it is compatible up to WordPress 3.9 ( as of April 2014 ) – however you may still be having a hard time finding the editor on the widgets page ( widgets.php ) The issues is that the plugin has had some name / title changes. While still called Black Studio TinyMCE plugin the name of the widget is just called “Visual Editor”

Posted in Uncategorized | Leave a comment

Wireshark GUI on Mac OS X with Homebrew

To get the GUI of wireshark running on Mac OS X please note that the latest version requires QT and uses this for it’s GUI. They are no longer using X / X11 (because it is no longer free?) so the with-x option is not a good solution. You have probably already installed Wireshark with brew install wireshark so what you need to do to get the GUI working is run: brew reinstall wireshark –with-qt From their blog: Today I released the next development version of Wireshark, 1.11.0. This marks a major change in the direction of the project. We’re switching our user interface library from GTK+ to Qt. Both libraries make it easy for developers write applications that will run on different platforms without having to rewrite a lot of code. GTK+ has had a huge impact on the way Wireshark looks and feels and on its popularity but it doesn’t cover our supported platforms as effectively as it should and the situation is getting worse as time goes on. Also note: If you’re a power user you should probably keep using the GTK+ flavor for the time being. You should also test the Qt flavor from time to time to see how your workflow will change. Both are installed by default on Windows and Linux.

Posted in Uncategorized | Leave a comment

Syntax Specific Key Bindings in Sublime Text

I wanted to remap one of the key bindings for selecting a paragraph / expanding the current selection – but just in the Ruby syntax. Here’s what I added to my Default (OSX).sublime-keymap file: // when using ruby syntax, set cmd+shift+b to run “expand selection to indentation (or paragraph)” { “keys”: [“super+shift+b”], “command”: “expand_selection”, “context”: [ { “key”: “selector”, “operator”: “equal”, “operand”: “source.ruby” } ], “args”: {“to”: “indentation”} // “args”: {“to”: “paragraph”} }, // when not using ruby, set that shortcut to “expand selection” { “keys”: [“super+shift+b”], “command”: “expand_selection”, “context”: [ { “key”: “selector”, “operator”: “not_equal”, “operand”: “source.ruby” } ], “args”: {“to”: “scope”} },

Posted in Uncategorized | Leave a comment

Select a Ruby Block (scope) in Sublime Text

Coming from PHP to Ruby you may wonder if there is a way to select Ruby ( or Ruby on Rails ) block scope that starts with things like begin or def and finishes with end In PHP it was possible using the commands like Expand Selection to Scope or Expand Selection to Block and in PHP it works nicely: But in the Ruby syntax neither of these items work. So how can you select a ruby block scope in Sublime Text 2 / 3 ? Easier than you might imagine: just use “Expand Selection to Paragraph” instead

Posted in Tech Tips | Tagged , | Leave a comment

Centos – 3 Ways to Check openSSL Version / Heartbleed vulnerability

If you’re running a Centos server or cPanel WHM and want to see if your server’s OpenSSL version is affected by Heartbleed you can do a few things. Here are three ways to check Check your OpenSSL version via the command line run this: openssl version It should result in something like this: OpenSSL 1.0.1e-fips 11 Feb 2013 While 1.0.1e is listed as being vulnerable, your system may have already had a patch installed to fix that version, so to check for that patch run: rpm -q –changelog openssl-1.0.1e | grep -B 1 CVE-2014-0160 If the patch has been applied you should get a result like this: * Mon Apr 07 2014 Tomáš Mráz <tmraz @redhat.com> 1.0.1e-16.7 – fix CVE-2014-0160 – information disclosure in TLS heartbeat extension</tmraz> Check for Heartbleed using this website http://filippo.io/Heartbleed/ Build the Heartbleed command line checker tool ( requires golang ) https://github.com/FiloSottile/Heartbleed

Posted in Server Administration | Leave a comment