AutoComplete Text Field in Flutter

AutoComplete is a nice feature for any possible input field, be it on Web or Mobile. In flutter you can implement a AutoComplete text field in various ways, starting from using your very own TextEditingController.

How to parse first and last name from full name

Sometimes we need to split a full name into first name and last name parts. In Ruby String#split is the default thinking. If the name is just two parts, like "John Doe" it'd work like breeze.

How to generate slug with multiple candidate in Rails

Whenever working with any kind of of CMS, human readable URL comes as a natural requirement. I used to use firendly_id for this. It's a solid gem for this purpose and featureful.

Rails UNIQUE INDEX allowing null or empty values

It's a common scenario we need to place a UNIQUE INDEX database constraint for data integrity. But sometime the requirements comes like we need to allow null/empty values for that column.

Discard nil Hash values in Ruby

Sometime we need to cleanup a hash based for nil values. If you're using Rails/ActiveSupport it's really easy.

Live preview Rails Mailer templates while developing

Developing email templates and sending a new mail every time to view a change is very inefficient and painful. Rails comes in rescue again. With mailer preview, you can view the changes in your browser just like any other page template.