Posts

Moving From Wordpress To Jekyll - Discus

Now that I have the basics done, I’ve started setting up comments, ads, and Google Analytics.

Read More

Moving From Wordpress To Jekyll - Part 1

When I first started this blog I started with Wordpress because I already knew how to use it and it was SUPER easy to get going. 4 years into this process I’ve started looking around for alternative CMS projects because of annoyances I’ve run into with Wordpress. I started looking at static site generators because of the performance I knew it bring and Jekyll seems to be one of the more prominent players in this space (I’m actually writing this using my new Jekyll setup and I’ll post it into my Wordpress setup when I’m done).

Read More

TPT 2016

Last year I wrote about my goals for This Programming Thing in 2015. Unfortunately, I was unable to obtain any of my goals:
  1. Produce 52 new "content" blog posts (not link posts). I'm hoping to create a couple longer term series that I'll break into weekly posts.
  2. Produce a couple screen casts to see if people watch them (this will be an experiment)
  3. Double my readership. In 2014 I had at most 20 people on the RSS feed (hi peeps) and 66,308 page views (according to Google Analytics) so hopefully this time next year I can say I have 40 people on the RSS feed and 150,000 page views.

This year my goals are to:

  1. Produce 52 new "content" blog posts
  2. Produce a couple screen casts (maybe a podcast?)
  3. Double my readership
  4. Improve my social media footprint
  5. New Server
  6. Move to Jekyll - Maybe

Comments Moved to Disqus

I've moved the comment system over to https://disqus.com/. This is part of a longer term project that I thought would be a horrible process but I was super happy with the process. It basically involved the following:

  1. Install the plugin
  2. Configure the plug
  3. Push a button to import the existing comments

It was really that simple. I'm super happy with this process so far and I'll be interested in how this system works going forward.

What To Do When convert_tz Returns Null

If you're trying to use the mysql function convert_tz and it's returning null values:

mysql> select convert_tz(startTime, '+00:00', 'US/Eastern') from table where id = 12; 
+-----------------------------------------------+ 
| convert_tz(startTime, '+00:00', 'US/Eastern') | 
+-----------------------------------------------+ 
| NULL                                          | 
+-----------------------------------------------+ 
1 row in set (0.00 sec)

You need to run the following command on the server to load the timezone information:

$ mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql 
Enter password: 
Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it. 
Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.

Then everything will work just fine:

mysql> select convert_tz(startTime, '+00:00', 'US/Eastern') from table where id = 12; 
+-----------------------------------------------+ 
| convert_tz(startTime, '+00:00', 'US/Eastern') | 
+-----------------------------------------------+ 
| 2014-12-13 08:00:00                           |
+-----------------------------------------------+ 
1 row in set (0.06 sec)

Link Post and Podcast Roundup: November Edition

10 Questions Developers Should be Asking Themselves

How can I make this simpler?

Is my favorite.

Please, don’t commit commented out code

I totally agree. I can't tell you how often I see this and how it drives me insane.

13 Million Passwords Appear To Have Leaked From This Free Web Host

PHPUnit code coverage benchmark

I can't wait until I can use PHP 7 on my projects if just for improved PHPUnit performance.

PLACING BAD

This is a placeholder generator for developers to add to their sites, to help with testing. But what developer doesn't like Breaking Bad.

I want to use this but I have this strange feeling it would make it to production. I guess it would be good for temporary avatars though.

Slides: Enough about Classes, Let's Talk Templates

The 5 Laws of Software Estimates

Estimates are the hardest part of this job. I wish there was a better way to learn this than losing money for your company. :-)

Estimates are typically a necessary evil in software development. Unfortunately, people tend to assume that writing new software is like building a house or fixing a car, and that as such the contractor or mechanic involved should be perfectly capable of providing a reliable estimate for the work to be done in advance of the customer approving the work. This is pretty attainable by building contractors and auto mechanics, who generally are working with known materials building know things in known ways. Your auto insurance company already knows how long it should take and how much the parts should cost for just about anything you might need to fix on your car (not to mention everything about your model of car). With custom software, however, a great deal of the system is being built from scratch, and usually how it’s put together, how it ultimately works, and what exactly it’s supposed to do when it’s done are all moving targets. It’s hard to know when you’ll finish when usually the path you’ll take and the destination are both unknown at the start of the journey.

I love the graph under the 3rd Law.

Podcast: Full Stack Radio: Evan You - Diving Deep into Vue.js

Another JavaScript framework to look at. I like the idea that this one is very small.

Podcast: Three Devs and a Maybe - 'Hardcore' Functional Programming using Ramda with Andrew D'Amelio

Ramda sounds interesting. Again this is JavaScript but it interests me as well.

Installing a Current Version of Node Using Ansible

On of my client's servers requires nodejs for Gulp and the version in Ubuntu's repos are old (even Trusty uses version 0.10.25). I created a role in Ansible to install a more current version. I was able to get it down to just a task/main.yml file which is below. The tasks file should be easily changed to allow for other packages.

Read More

Great Lakes Bay Region Coders/PHPUG? - Intro

One of the downsides to living in Saginaw, MI is that it's hard to connect with other programmers in the area. The closest place I found that had some kind of a meetup was Flint and that's an hour drive for me and the talks don't always seem to be interesting to me.

My hope is that over the next couple months I can create a social group in the Great Lakes Bay Region for Coders or a PHP User's Group that are interested in having little meetings where we can share the things we've learned. I'm not even 100% sure what's completely needed for this process to occur but my plan is to document my process on this site (along with other things).

The first thing I did was post to the local Craigslist with the following:

Hello, I'm interesting in creating a group that will meet once a month to socialize and have a short talk on a topic of interest to the group related to programming, web design, and technology. If you're interested in joining or helping me setup the group please send me an email and we can discuss this further. If you know of someone else who might be interested please send them a link to this posting.

http://saginaw.craigslist.org/grp/5277635075.html

I'm going to see how that works and then see what other options there are for finding people...

Fixing g++: internal compiler error: Killed (program cc1plus)

I was trying to install nodejs in a VM and I received the following error:

g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make[1]: *** [/usr/local/src/node-v4.2.1/out/Release/obj.target/v8_base/deps/v8/src/hydrogen.o] Error 4
make[1]: Leaving directory `/usr/local/src/node-v4.2.1/out'
make: *** [node] Error 2

I traced this down to being not enough memory and after I increased the RAM to 1024MB it worked fine. I'm amazed node needs so much to compile.

\x16\x03 When Working With HAProxy

I was working with HAProxy today and I couldn't get it to validate the server but I did find hundreds of these in the access.log.

192.168.56.200 - - [06/Nov/2015:01:38:08 +0000] "\x16\x03" 400 0 "-" "-"

The problem was that I have the following set in my backend section without SSL enabled on the hosts it was checking:

option ssl-hello-chk

I deleted the option and everything worked smoothly after that.

RSS

Join Our Mailing List!

View previous campaigns.

Top Posts

  1. Working With Soft Deletes in Laravel (By Example)
  2. Fixing CMake was unable to find a build program corresponding to "Unix Makefiles"
  3. Upgrading to Laravel 8.x
  4. Get The Count of the Number of Users in an AD Group
  5. Multiple Vagrant VMs in One Vagrantfile
  6. Fixing the "this is larger than GitHub's recommended maximum file size of 50.00 MB" error
  7. Changing the Directory Vagrant Stores the VMs In
  8. Accepting Android SDK Licenses From The OSX Command Line
  9. Fixing the 'Target class [config] does not exist' Error
  10. Using Rectangle to Manage MacOS Windows

subscribe via RSS

All content copyright This Programming Thing 2012 - 2021
Blogging about PHP, MySQL, Zend Framework, MySQL, Server Administration and Programming in general