Fueling Curiosity, One Insight at a Time
At Codemancers, we believe every day is an opportunity to grow. This section is where our team shares bite-sized discoveries, technical breakthroughs and fascinating nuggets of wisdom we've stumbled upon in our work.
Jul 25, 2018
This is a pretty good read if one is setting up SSL on their own https://sanderknape.com/2016/06/getting-ssl-labs-rating-nginx/
Yuva
Co-founder
Jul 19, 2018
Ruby by default has certain mutable and immutable object types. Booleans and numbers for example are immutable, and this in turn affects the way how a variable is passed to a method i.e pass by value or reference.
manu
Jul 18, 2018
Ruby has a class called SimpleDelegator which can be used to used to implement decorator pattern. It can be used to delegate all supported method calls to the object passed into the constructor.
akshay
Jul 15, 2018
You can use a tool called [Telepresence](https://www.telepresence.io) to create a 2-way proxy between your local dev machine and a k8s cluster. Uses : be able to inherit env vars and other configs from k8s locally, make use of other services running in the cluster when running your dev instance of a service you want to test
emil
Jul 12, 2018
Arel is a SQL abstract syntax tree manager for ruby. It helps to simplify creating complex SQL queries and interfaces with various RDBMS. Arel modifies it's AST nodes based on the methods you call on it and ActiveRecord makes use of this to build composable chainable queries and then executes them. A detailed post on Arel: https://jpospisil.com/2014/06/16/the-definitive-guide-to-arel-the-sql-manager-for-ruby.html
akshay
Jul 6, 2018
You can speed up image builds by making use "--cache-from". This is useful when 1) you already have a previous version of the image which you can pull 2) docker pull is faster than docker build 3) intermediate layers in the previous version can be reused. This is useful for speeding up builds in docker container builder
emil
Jul 5, 2018
There is something called QoS for pods using which we can prevent unwanted rescheduling of pods
Yuva
Co-founder
Jun 28, 2018
Yuva
Co-founder
Jun 26, 2018
you can use GCP cloud shell and use it to run kubectl commands instead of having to create a k8s context on your local kubectl CLI tool. This is very useful for doing some adhoc debugging on a k8s cluster you have access to. Just login to google cloud using google auth, and then click on "Connect" next to the cluster you want to connect to, then use cloud shell.
emil
Showing 60 to 62 of 76 results
Ready to Build Something Amazing?
Codemancers can bring your vision to life and help you achieve your goals
- Address
2nd Floor, Zee Plaza,
No. 1678, 27th Main Rd,
Sector 2, HSR Layout,
Bengaluru, Karnataka 560102 - Contact
hello@codemancers.com
+91-9731601276