Record and export Audio files in browser using Recorder.js and upload it on cloud.

Content posted here with the permission of the author, who is currently employed at Josh Software. Original post available here. In this article, Let’s see how audio recording is possible without any shim or plugin, but only by using the Recorder.js library in the browser and how to upload recorded file on s3 (Or anyContinue reading “Record and export Audio files in browser using Recorder.js and upload it on cloud.”

Redirect HTTP to HTTPS when using ELB

Background – I have my site hosted on AWS EC2 server which is behind ELB (Elastic Load Balancing). I wanted my site to work on HTTPS. So I provisioned SSL certificate through AWS certificate manager and uploaded it on ELB. ELB receives traffic on both ports 80 and 443 and forwards it to single portContinue reading “Redirect HTTP to HTTPS when using ELB”

RoR Tips & Tricks Series – #2

Tip : count is incorrect if used with limit in mongoid Database : Mongodb 1. campaigns = Campaign.all campaigns.count => 211943 2. campaigns = Campaign.limit(1000) campaigns.count => 211943 campaigns[1001] => nil I was expecting count as 1000 for second query, but it came out to be same as first one. But actual objects stored inContinue reading “RoR Tips & Tricks Series – #2”