Shane

Ruby On Rails: Mongoid has_secure_password

rails No Comment

Here are some things to do to ensure that you can use has_secure_password in your Rails app using Mongoid (Note, my class name is developer. Yours might be user or something else) :

If you scaffolded the user, you might see that password_digest is in the form as a text field. You will want […]

Read more
Shane

How to do ‘IN’ and ‘NOT IN’ in DBIx::Class

perl, programming No Comment

 

Read more
Shane

I Forgot to make a Git branch!

programming, version control No Comment

One of the great things about GIT is the ease of branching locally. So it is a great idea to branch for each bug fix and feature and then merge those into master when they are fully tested and ready. But what if you get a bug report and go to town on it realizing […]

Read more
Shane

Angular Websocket Factory

programming No Comment

Websockets are a great way to communicate between client and server applications. Since I am an Angular nut, I had to wrap this in a factory. I also came up with a scheme to allow controllers to listen form websocket broadcasts since promises do not fit the bill for websockets.   A websocket response from […]

Read more