We ran into an issue with sessions timing out while users were doing client side stuff with an Ember application we’re building. Once the session timed out they could no longer make authenticated requests of course and all ajax calls would fail. Here’s a couple of bits of code that might be helpful. First capture…
My Morning Coffee
Plenty of us working stiffs here in the United States wake up each morning a bit groggy as we prepare for another day as a cog in the grind. That means coffee is the most widely traded agriculture commodity in the world. Inject hot air, sugar and fat into coffee and a 25 cent cup…
If PostGreSQL Won’t Start Remember This
I rarely ever reboot my Mac. It sits on my desk loyally waiting for my next command ready to respond to my every whim. However, on occasion, something happens and it does need a reboot. Today was one of those days. Upon reboot everything appeared fine until I tried to work on some code. PostGreSQL…
Heroku Database Tips
Even on Heroku where most of the problems of sys ops is taken care of for you, you will occasionally run into strange database issues that are hard to explain. For me it the database issues showed up as some ugly entries when I tried to run a rake db:migrate on a deployed database: 2013-12-13T16:57:28.079781+00:00…
Ember Textfield ignores arrow keys. How to monitor key events in your textfield
Ember provides a text field view that makes generating text input fields pretty simple. What’s really cool is with the simple addition of onEvent=”keyPress” and action=”my_function” you can monitor changes to the field as the user types. It looks something like this: (On a side note you can also just add an observer to your…
Rails on Heroku Notes – some Asset Pipeline and a Frame issue
A tiny Rails asset pipeline thing if you are into bookmarklets This is more a general Rails issue rather than a Heroku issue, but I ran into the problem while deploying to heroku so I’m including it. Rails 3 generated digest as well as undigested version of your assets. Rails 4 no longer does that….
Rails on Heroku Notes – some Asset Pipeline and a Frame issue
A tiny Rails asset pipeline thing if you are into bookmarklets This is more a general Rails issue rather than a Heroku issue, but I ran into the problem while deploying to heroku so I’m including it. Rails 3 generated digest as well as undigested version of your assets. Rails 4 no longer does that….
Rails on Heroku Notes – some Asset Pipeline and a Frame issue
A tiny Rails asset pipeline thing if you are into bookmarklets This is more a general Rails issue rather than a Heroku issue, but I ran into the problem while deploying to heroku so I’m including it. Rails 3 generated digest as well as undigested version of your assets. Rails 4 no longer does that….
Using Chosen with Ember.js
Harvest’s Chosen select control is handy for cleaning up unwieldy or horribly long select boxes. It’s a nice little bit of UI sugar that can help make your users happier and we all like happy users right?. Ember.js is now our Javascript framework of choice but it doesn’t always play well with other libraries and…
Generate Ember.js models using your Rails Schema
I love Ember.js. I hate typing and I especially hate typing code that a machine could build. I got really tired of reading a Rails schema to build new Ember.js models so I create a rake task for it. I make no guarantees that this code will work for you or that it won’t delete…