Angular 4.x – Integrate a jQuery Plugin

I’m using a very old twitter bootstrap template which is using jQuery Colorbox plugin to handle image preview modal like lightbox did. It took me more or less 4 hours to figure it out given I’m fairly new to Angular … Continue reading

Posted in Angular | Tagged , | 5 Comments

Rails – Encrypting Database Columns with Key Rotation

Encryption is not an easy task. You have to manage the encryption itself, key rotation and securing the keys. In this post, I’ll describe how we managed to encrypt our database columns and enable key rotation as well. This post … Continue reading

Posted in Rails | Tagged , , , , | Leave a comment

AWS RDS In A VPC

For the past few days, I’m trying to replicate a setup in AWS where the database server access is secured in a private subnet while the web server is located in a public subnet. The documentation is pretty straightforward for … Continue reading

Posted in AWS | Tagged , , | Leave a comment

1Password button not working on Firefox

It’s been 2 weeks now my 1Password extension is not working on Firefox. The button is not clickable even after upgrading to the latest Firefox version. After asking help from 1Password on Twitter, it turns out that the fix is … Continue reading

Posted in Personal Blog | Tagged , | 1 Comment

Rails 5 – API Only – Enable Cookies and Sessions

So you’ve been trying a lot of trial and errors just to enable cookie based session on a API only rails app? Are you trying to customize the cookie expiration but it simply defaulting to default session only cookies? The … Continue reading

Posted in Ruby, Web Development | Tagged , | Leave a comment

Carrierwave AWS – copying files from one model to another

We have already a working code for copying Carrierwave files from one model to another, however, it is only working for file based storage. For Amazon S3 storage, it is quite not working. Here is our old code: Every time … Continue reading

Posted in Ruby | Tagged , | Leave a comment

Re: Backup Internet

Being a web developer who works at home, would you believe that I survived working for more than one year with just one internet connection? It was just fine until issues arise from my main internet provider. Today, I couldn’t … Continue reading

Posted in Personal Blog | Leave a comment

Rails 5 – Self Join belongs_to – entity must exist error

Wow, this is my first post for Ruby on Rails and Ruby in general! So what I’m trying to do is very simple: create a self join relationship for the user table like a parent/child relationship. However, Rails always complains … Continue reading

Posted in Ruby, Web Development | Tagged | 1 Comment

Install Gearman Module to Ubuntu Xenial with PHP 7

The Gearman PHP module is the last piece of dependency missing in our stack before we can consider moving to PHP7. I’m currently testing Ubuntu 16.04 Xenial on PHP7 and unfortunately, the gearman module is not yet available on official … Continue reading

Posted in Linux, php | Tagged , | 2 Comments

PHPStorm – open an editor window without creating a new file – stormrant

Coming from SublimeText, I missed opening an editor window and start typing or copying and pasting content that I would throw away later. With PHPStorm, you have to create a new file under the project. However, a handy plugin comes … Continue reading

Posted in PHPStorm | Leave a comment