-
Using Layers with AWS Lambda
We run some Python functions on AWS Lambda, and we originally used serverless. We set up the config files, node packages, etc. for that to deploy to our different environments. It worked pretty well. The main benefit is that serverless packaged up Python dependencies and deployed them with our main function code. Believe it or…
-
Switching from Hosted to Self-hosted WordPress
Today was moving day. I started blogging in 2012 at the very beginning of my career as a developer (though it only lasted about 8 months the first time). It was fun and a good way to keep track of what I was working on. I had no experience working with server admin, so I…
-
Arduino Breadboard Tutorial with LEDs
I added a breadboard and LEDs to my Morse Code project (http://crashinginthecloud.com/2013/03/14/arduino-arrays-for-loops-switch-case-examples/)! It’s something I wanted to do since I first had the idea to create my own Morse Code parser on the Arduino. How will anyone Save [My] Ship if all I’m using is the tiny, built-in LED on pin 13? The final product…
-
Arduino Switch Case Example
I wanted to share something before I get into the example… if (you.likeMovies && you.areInterestedInMormons) { you.should.watch(‘http://www.hulu.com/watch/543302’); } else if (you.areInterestedInMormons) { you.should.read(‘http://www.mormon.org’); } Now, on to the example – I wrote a program a little while ago that translated (hard-coded) messages into light emissions on the Arduino. The program iterates through each character in…
-
Debugging PHP, JavaScript, jQuery, and Code in General
First, the TDD folks would say, “write tests.” If you’re not doing that, continue reading for an alternative. Here’s the process I follow: 0. Isolate: Think about the parts of your app that might be causing trouble. What is it doing? What should it be doing? And where is the code that should be handling…
-
Learn CSS Position, CSS Display, & More
Learn CSS Layout. This is, by far, the very best tutorial on creating web page layouts with css that I’ve ever read. Great examples and simple, clear explanations. If you are interested in learning or improving your understanding of css position, css display, css float, etc. properties, go read every page of this tutorial. I…
-
Arduino – arrays, for loops, switch case examples
Arduinos are pretty fun little machines. Using them combines programming with electronics, which is a great combination. I’m starting Arduino with a background in PHP and Javascript. While some things are quite different (Arduino programs, called sketches, are C and C++ at heart), I felt fairly comfortable diving right in and learning things as…
-
Git Undo Delete or Removal of Files
So, silly me. I wanted to remove a single directory from my changes. It was the only change made. I tried git rm . Git told me I needed to use -r to recursively delete files. I figured that meant it would delete recursively delete the files in that directory. NOT SO! It deleted all…
-
AWS Git Push Rejected – remote: error: Unable to create application version: null
I was trying to push to AWS through their CLI, and I got this error: remote: error: Unable to create application version: null … ! [remote rejected] HEAD -> master (hook declined) error: failed to push some refs to … I doubted that the issue was common enough that I would find a useful answer…
-
Could not convert javascript argument arg 0 — Solution
I got this error when I was trying to fill in a DOM node called cartDiv that would eventually be appended to the body with .appendChild(). It was working fine until I replaced the argument in cartDiv.appendChild(cartDetails); with a different variable. It had been working fine when cartDetails was the argument. Summary: .appendChild()…