-
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…
-
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…
-
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()…
