Now that I have the basics done, I’ve started setting up comments, ads, and Google Analytics.
Read MoreWhen 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 MoreThis year my goals are to:
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:
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.
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)
How can I make this simpler?
Is my favorite.
I totally agree. I can't tell you how often I see this and how it drives me insane.
I can't wait until I can use PHP 7 on my projects if just for improved PHPUnit performance.
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.
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.
Another JavaScript framework to look at. I like the idea that this one is very small.
Ramda sounds interesting. Again this is JavaScript but it interests me as well.
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.
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...
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.
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.
subscribe via RSS