Swaathi Kakarla - Get Steve.

Get Steve.

Redirecting Devise Users To Their Last Visited Page

It’s always a nice gesture to redirect your users to the page they were last visiting. Imagine a scenario where your app sends out mailers with a link to a page that requires a login to see. You can’t assume that your user would always be logged in, so when clicking on this, he/she would be redirected to the sign in page. They then sign in and… they’re back on the homepage. So they leave. Retention 0, distrust 1.

Read All 636 Words →

GitHub's amazing UX

I was explaining to a colleague of mine how he can host his static website on GitHub for free. He was super happy about this, so to get him started I shared the help page that he could follow.

Read All 258 Words →

100DaysOfCommits

Of all the innovative ideas to bring more people into open source, this has got to take the prize. #100DaysOfCommits is a social movement to promote open source development. All you need to do is commit on Github, to an open source project of your choice for the next 100 days! 1 commit (or more, common challenge yourself!) per day.

Read All 222 Words →

Offsetting Ruby Time

Managing local time is such a huge challenge when making webapps. There’s always going to be users from all over the world clocking in on different timezones. Basecamp’s local_time solves this problem in a elegant way – it doesn’t care how you store timezone, it interprets the users local time and prints it out on the view accordingly.

But, all hell breaks loose when you try to recreate this on the server side. Here there’s no information on what user is from what timezone. And even if you persist the users timezone information, surprisingly Rails doesn’t come with an out of the box solution to offseting time(s).

Read All 202 Words →

Scheduling Backup Jobs With Crontab

Backup is an insanely useful gem for, well backups. I use it in production all the time. It can run independent of your Rails app, which in in production can be quite helpful. I’m going to skip ahead and assume your Backup jobs are already set.

Read All 260 Words →