code

[FIX] MySQL Workbench 6.3 CE - SSHException: Incompatible ssh peer (no acceptable kex algorithm)

  • Posted on: 28 March 2016
  • By: davis

If you're getting the following error in MySQL Workbench after upgrading ssh, don't worry, there's a fix.

SSHException: Incompatible ssh peer (no acceptable kex algorithm)
[INF][     SSH tunnel]: TunnelManager.wait_connection authentication error: Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details
[ERR][     SSH tunnel]: Authentication error opening SSH tunnel: Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details

Download python-ecsda and paramiko

Install them to MySQL\MySQL Workbench 6.3 CE\python\site-packages

Bash - Get Name of Parent Directory

  • Posted on: 2 March 2016
  • By: davis

For the path /foo/bar/, if the current directory is bar, and we want to get the name of the parent directory (i.e. foo)

path="$( cd "$( dirname $0 )" && cd -P "$( dirname "$SOURCE" )" && pwd )"
parentName=$(basename -- "$(dirname -- "$path")")
echo $parentName # will return parent directory's name

This resolves symbolic links (sidestepping the error where it returns "." for the parent dir). Give it a try.

Alternative to Cron for NearlyFreeSpeech Users

  • Posted on: 16 February 2016
  • By: davis

I use the server host NearlyFreeSpeech for all of my personal website-related things nowadays. They are extremely cheap, and their community-driven support is great.

Unfortunately, they don't have crontab enabled. Here's a workaround for enabling cron-like functionality on a NearlyFreeSpeech hosting instance.

In my case, I needed to curl multiple public-facing URL's in order to refresh some vital information. I wanted to do that on a schedule.

Shittalk Generator Day 5 - Inital Reaction

  • Posted on: 7 January 2016
  • By: davis

Wow. 

140,000+ total upvotes/downvotes in five days.

 

I released the Shittalk Generator on Saturday, January. 2nd. It's Jan 7th now. Here are some stats over the first 5 days.

As of this writing:

Total Votes 140,570
Total Submissions 4,304
Total Deletions 3,745
Top Rated (+5 net votes and above) 311
Avg Votes / Insult 168
Config Downloads 1,606

A few things are clear. Firstly, holy hell, look at the total votes! People love sitting on the page voting on new content - awesome!

Secondly - It's very easy to get voted off. It's very hard to be a top insult.

And lastly, there are a lot of people in the world who are bad at insulting others. :)

Bootstrap Buttons with Loading Progress Bars

  • Posted on: 16 November 2015
  • By: davis

Here's how to add loading bars to bootstrap buttons.

To start, you'll need the following files:

progress_bar.css

progress_bar.js

In your header, you'll need to include the above Javascript file (adapted from http://tutorialzine.com/2013/10/buttons-built-in-progress-meters/)

Icons Aren't Informative

  • Posted on: 18 September 2015
  • By: davis

In a world of mobile-first design, native builds, and small screens, there's a horrible new trend underway.

This trend obfuscates meaning, looks cool, and offers virtually no help to the user.

Why are all of these apps and websites using cutesy icons instead of labels? I find myself having to become expert in each application that I use - oh yeah, in this program, the little hamburger menu opens options - in this program, the hamburger icon opens your friends list. Why do I need a friends list to turn down my thermostat? Who knows.

Wordpress RSS Broken After 4.3 Update

  • Posted on: 21 August 2015
  • By: davis

Final Verdict: W3TC Plugin was rendering cached RSS feeds as text/html, which broke most RSS readers. Disable W3TC until it's patched.


Well, this is annoying, I have scripts that use Simplepie to pull RSS information from our network of Wordpress sites. Unfortunately, this script no longer works since updating to Wordpress 4.3

According to a post in the help forums, W3TC may be the issue. Going to try disabling that now.

Wordpress - Fixing the White Screen of Death

  • Posted on: 11 August 2015
  • By: davis

There are lots of basic guides to getting around Wordpress's infamous WSOD (White Screen of Death). When you navigate to your Wordpress site and it simply shows a white screen, get ready to debug!

Here is a way to make this less painful. I appreciate this snippet I found on Github: https://github.com/stracker-phil/wp-no-white-screen/

Pages