-
PHP: The difference between the sqlsrv (Windows) and mssql (Linux) drivers
Summary: sqlsrv is the PHP driver for Windows environments, mssql is for Linux. The mssql driver and functions used to exist in PHP on Windows but are now deprecated. Connection settings/syntax used with the sqlsrv driver may not work with mssql. We had to change the hostname from “hostname,\port_number”; to “hostname:port_number”; Lesson # 1:…
-
This Is an Easy One: Fixing Invalid S3 location Bucket Error
I was getting this message (or something like it) when I tried to upload my application on AWS Elastic Beanstalk: “Invalid S3 location Bucket: elasticbeanstalk-**-**-******** Key: ******* 2012-11-3 filename.zip.” The problem was that I had dashes “-” in the name of the file I was uploading. I took them out (and the spaces, just to…
-
EmberJS JavaScript MVC Framework
UPDATE: Since this post is still getting some traffic, I thought I’d update the resources it contains. Here is a better list of sites that can help you get started with Ember: http://ember101.com/ http://www.embercasts.com/ https://kerricklong.com/articles/why-ember-js-rocks.html http://freecourses.tutsplus.com/lets-learn-ember/ – a recent and comprehensive set of video tutorials on all the basics of the quality you’d expect from…
-
AWS SimpleDB and Auto Incrementing Primary Keys
I wanted some of my items in simpledb to have unique identifiers. SimpleDB does not provide this function natively because it’s not an RDBMS. Here’s my solution: Before inserting a new item, get the id from the last item in the domain with this select: $query = $sdb->select(“select id from `domain` where id is not…
