I’ve had to use Facebook login inside an iframe twice now. Combine Devise with omniauth and omniauth-facebook and you have a pretty great user authentication system. Now try to login via Facebook inside an iframe and nothing will happen. If you check your Javascript console you’ll see a error that looks something like this: Refused…
Open Assessments Code Sprint with OERPub, MIT and Lumen
I’ve been spending a lot more hours driving back and forth between Salt Lake City and Logan lately than I normally like. Today was spent integrating Open Assessments with OERPub. Soon you’ll be able to author an open text book via OER Pub, add an assessment via Open Assessments and embed objective’s via MIT’s MC3…
Session timeout for your Ember application
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….