How-To Guides

Practical solutions to specific development problems.

Ruby

How to solve different problems with Ruby.

Kotlin

Practical Kotlin tips and solutions.

Java

How use Java for various projects.

Unix

How to do various tricks in unix/linux.

Databases

How to setup, manage and interact with various databases.

Postgres

How use postgres for various projects.

Git

How to use distributed version control such as git.

AI

Artificial intelligence and machine learning how-tos.

Architecture

How to design software and when to use what technology.

AWS

Amazon Web Services tips and solutions.

Go

Practical Go tips and solutions.

Mac

How to do various tricks in macOS.

Sass

Sass and CSS preprocessing tips and solutions.

Ruby

How to solve different problems with Ruby.

Run SQL updates in Rails migration

An approach to running rails migration sql code after adding a column

Http status Codes in Rails

A list of http status codes in rails

Add Character Encoding to Heroku buildpack

Using charlock homes library in your heroku application

Add Image Processing to Heroku buildpack

Process images in your heroku application

Cancel Recurly Subscription Programmatically

Different ways to cancel a recurly subscription using the ruby sdk.

Convert a string to class

Change a string into a class reference in ruby

Custom Ruby buildpack

Adding compilation steps to ruby build pack for heroku

Custom tag with attributes in Jekyll

Process attributes in a tag within Jekyll

Eager load children in ActiveRecord

Using includes to eager load active record relationships

Fix Issue with Psych Yaml gem on RVM and OSX

How to fix the issue with path2class error using RVM and OSX

Fix the handlebars.vm error

Mismatches of gems sometimes cause issues with handlebars.vm or other gems

Flatten a Hash into a String

Using join to create a key value string

Recover a Load Error

Installing a gem from a load error

Rspec tips and tricks

How to run multiple and individual tests. How to add details to the tests.

Size of active record collection

Know the size method to use for activerecord lists

Unique list with records

When you need to have a uniq array with a given set of records

Url encode strings

Using standard ruby features to encode strings

Use modules for testing

An approach to mocking behavior can be using modules to mock interactions

Kotlin

Practical Kotlin tips and solutions.

How to get started with Spring Boot

Using Spring boot with Kotlin

How to override the TypeIdResolver in Jackson

Sometimes when the field isn't present in json the type resolving fails.

How do I configure jackson object mapper?

Using Jackson and Spring to configure and Object mapper with Kotlin.

How to use Mockk in Testing

Using mockk to make testing easier

How nest annotations with kotlin

Nested annotations in Kotlin are a bit tricky if you don't know what to do.

How to create lists in Kotlin

Using lists and arrays in kotlin

Java

How use Java for various projects.

How to generate test numbers in Java

Using Google Phone Utils

How to use certs with Java keystore

Using certs and migrating certs from different version and debugging with keytool.

Gotchas with numbers in Java

Using numbers in Java can be tricky if you don't know what shadowing is doing with them.

How to disable Redis loading in Spring boot

When you don't want your app to fail on redis connections on startup.

Spring Autowiring Tips

How to support null properties, clean up component scan and nullable beans

Using JPA to make an IN Query

How to query a database table with an IN statement in JPA.

How to load a file into a String

Using Apache Commons IO for copying streams and loading a file into a String.

How to use a simple string template in java

Using Apache Commons Lang for simple string templates

Unix

How to do various tricks in unix/linux.

How to resolve dependencies in apt-get

Resolve all dependencies when installing a package with apt-get.

Decrypt GPG data

How to decrypt data that is base64 encoded and gpg encrypted.

Flush Memcached

How to flush memcached

Databases

How to setup, manage and interact with various databases.

Debugging Postgres Sequences

How to determine if your postgres sequences are working.

Restore local mysql db

Restoring a corrupt mysql db based on laptop sleeping or other inproper shutdown scenarios

Setup Memcached

Setup and configuring memcached for development

Setup Postgres

Setup and configuring a postgres server for development

Setup Redis

Setup and configuring redis for development

Git

How to use distributed version control such as git.

How to remove files from Git history

Opps you put some sensistive data in your git repo.

Export files from github

Archive a remote repository into a directory

Ignore file in Git

Excluding files from a git repo

AI

Artificial intelligence and machine learning how-tos.

Architecture

How to design software and when to use what technology.

Use Seamonkeys as architecture case study

Non-proprietary case study to evaluate architectural concepts

Mac

How to do various tricks in macOS.