frontcoded.com
A dumping ground for web development stuff
Moved blog to GitHub
Just a quick note - this blog has been moved to GitHub pages. The technological base is still the same because GitHub supports delivery of Jekyll pages out of the box. More information about Jekyll with GitHub here.
Deploy and Run a Rails 4 App on AWS Elastic Beanstalk
Once a rails 4 application is set up correctly on amazons elastic beanstalk, there is nothing easier than updating this application. But for me there was a bit of trouble to get things starting. Maybe this article is useful for you too. Note: This walkthrough is based on Elastic Beanstalk...
Manage your AWS RDS database with Sequel Pro on Mac
Sequel Pro is a really nice app for managing databases. With this technique you can remotely access your AWS RDS database from your mac. For my elastic beanstalk rails application I needed a way to inspect the live database which is managed by Amazon RDS. Unfortunately there seems to be...
Create unique ids in javascript
Need to create HTML id attributes dynamically? Use this simple helper function. /** * Creates a string that can be used for dynamic id attributes * Example: "id-so7567s1pcpojemi" * @returns {string} */ var uniqueId = function() { return 'id-' + Math.random().toString(36).substr(2, 16); };
Create and apply MySql dumps via command line
Database dumps are handy when you want to create backups or restore an old database state in case something went wrong in your application. With the following commands, it should be easy. Create dump The syntax for creating a dump into a SQL file named dump.sql is following: mysqldump -u...