Vault Basic Debug
HashiCorp Vault is a good off-the-shelf solution for secrets management and data protection.
At its core, its about setting some rules encoded in policies and getting a token that adheres to those rules.
At times, it could turn...
Off the Head
HashiCorp Vault is a good off-the-shelf solution for secrets management and data protection.
At its core, its about setting some rules encoded in policies and getting a token that adheres to those rules.
At times, it could turn...
Razorpay is one of the best payment gateway in India. With Subscriptions and other products, it surely has taken over other alternatives.
Razorpay APIs are available for use but SDK’s are not yet updated fully to interact with them....
NectarCommerce is an Ecommerce Framework written in Elixir/Phoenix. It provides Extension Framework to build and extend features not available in core.
We blogged out the whole experience on Vinsol Blog. I am adding the links for blogs contributed...
1 wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb 1' sudo dpkg -i erlang-solutions_1.0_all.deb 2 sudo apt-get update 3 sudo apt-get install elixir 5 mix local.hex 6 mix archive.install...
Rails 3 was using Devise 2.x.x and Rails 4 needed 3.x.x .
We did the change as needed and started getting weird issue of
TypeError: [125] is not
Read More
Rails4 Upgrade: Rollback / Downgrade to Rails 3
As with most upgrades / deploy on production, if things go awry, we may have to rollback.
Due to some unexpected behavior, we decided to rollback Rails 4 Upgrade and Boom !! started getting lot of exceptions
Read More
Rails4 Upgrade: XML Params Not Parsed
After Rails 4 Upgrade, one of our 3rd Party Integration Quickteller started failing.
No Transactions found post Rails4 Deploy when Reports Generated Later day
On inspecting further, we observed that Callback is failing at same point with message Read More
Rails4 Upgrade: Cross Origin Security in js/xhr Requests
After Rails 4 Upgrade, we started getting ActionController::InvalidCrossOriginRequest Exception almost every minute
ActionController::InvalidCrossOriginRequest at /method ====================================================== > Security warning: an embedded <script> tag on another site requested protected JavaScript....
Read More
Testing Concurrency and Parallel Processes Issues in Rails
While looking for ways to test concurrency issues and reliability of pessimistic and optimistic locking to solve them, came across
- Testing multiprocess behaviour is difficult and requires a way to synchronize processes at specific execution points and
Read More
3rd Party Integration using Rails Engines
What are Rails Engines ?
Engines can be considered miniature applications that provide functionality to their host applications
Popular Rails Engines
Read More
cannot load such file -- mysql2/mysql2 (LoadError)
While upgrading to Rails 4, lot of gem dependencies change as expected
To keep the dependencies clean, we decided to create a new gemset in rvm to install everything fresh and ensuring no existing dependencies / gems preventing us from...
Read More
Choose Optimstic vs Pessimitic Locking
We got hit by lot of bugs, all because of concurrency.
We had a case where returns are created for cancellations.
It was structured to tell cancelled_qty and a return would be created for that much quantity.
Return Creation will...
Read More
Understanding Enumerable#lazy Proactively
Ruby 2.0.0 introduced Enumerator::Lazy to make infinite lists possible in finite way.
E.g. If we need first n integers
As a first attempt, we will generate integers starting from 1 to a very big number, and pick first...
Read More
Clean Unused Git Branches
Git is a powerful tool to help developers work confidently and try different approaches without losing any of it.
Here is a Git workflow borrowed from here 
Its apparent that keeping things handy can...
Read More
Power up the Stats Pages
What you measure is what you get
Like every successful business app, our’s also shows important metrics relevant to business for daily operations and adjusting to strategies.
As already well-known, its mostly aggregation of data over a column.
...
Read More
Good Team Habits - Watch Logs
Most of Beginner Rails developers gets overwhelm with tremendous capabilities of Rails in getting the stuff done quickly and ignores the wealth / insights hidden in LOGS generated when dreams are getting turned into reality
Being a more experienced developer,...
Read More
Is MySQL Master Slave Replication Working
Often, the bottleneck and single point of failure to many big systems is Database.
There are slaves configured for Master to share atleast the READ load.
MySQL Master-Slave Replication is so robust at core, there are very less mentions of...
Read More
Git Key Gotchas - Deploy 2 Rails App on Servers
Its inevitable to avoid having No Api’s for a big Business.
Mobile presence comes chasing and forces to have an Api.
Api’s are fun but why it is sensed otherwise above.
Yeah, you guessed it right, its not the Api...
Read More
Http to Http(s) Checklist
To enter the mobile space, we created an Android App.
Everything finished with not much challenges and tested properly for good user experience.
Being contended, we started testing on Adroid 5.x series and Boom!!, the payment redirection in web view...
Read More
Status Store As Strings vs Ints
Synopsis
No Application exists without some status tracking. E-commerce tracks order payment / shipping status. CRM tracks page publishibility status etc…
There has been an internal debate on Status Representation as Strings vs Ints
- Payment Status
- Incomplete...
Read More
Migration Tips - MySQL - Assign Value on Collective Status of All
Background
- Order has 4 line_items
- 3 are shippable line_items
- 1 is service item so no shipping needed
- Logically, Order has 2 Packages for Processing Purposes
- first, package has 3 shippable line_items
- second, package has...
Read More
Myself
Pikender spent his last 8 years learning to and hacking code. Started as parasite on topcoder.com SRMs problems/solutions to get better at problem solving through inspiration and enjoys applying them to real world problems. He loves being expressive and Ruby...
Read More