What did you learn today?

New post

Check cache exists and value in rails console

by @rinas

TIL in rails how to check which database a model is connected to from rails console

by @rinas

TIL that field order in structs matter

by @0xi4o

TIL in Flutter we can do "flutter pub deps" to list all dependencies used in a nice format.

by @rinas

TIL about sync.WaitGroup in Golang

by @0xi4o

TIL how to check index creation progress in postgres

by @rinas

Loading Rails models during migrations can lead to problems during seed

by @mzrnsh

TIL about Streaming and Server Sent Event

by @rinas

TIL in rails: `Time.current.all_month` to get the whole range

by @rinas

Ruby double equal in views <%== pagy_info(@pagy) %>

by @rinas

"be", "eq" and "eql", "equal" are different in rspec

by @rinas

TIL we can do `array1 | array 2` to merge them and get unique ones

by @rinas

TIL in Rails: How to change column defaults with :from and :to option for making it a reversible migration

by @rinas

TIL in rails: `Model.none` returns a chainable relation with zero records

by @rinas

TIL about unaccent (PostgreSQL extension)

by @rinas

TIL Variable hoisting in ruby

by @rinas

TIL about 'bin/rails runner' in Rails

by @rinas

TIL in Ruby: `arity`

by @rinas

[Ruby][Rails] Learned about a new gem decent_exposure

by @rinas

TIL what bare git repositories and git worktrees are

by @0xi4o

GitHub has a "template repository" feature

by @mzrnsh

TIL about PostgreSQL follower database in Heroku

by @rinas

TIL in Golang: Identifying Isograms & difference of squares

by @0xi4o

TIL in Golang: Time, Type Conversion & Assertion, First class functions

by @0xi4o

TIL in Flutter, we can specify the app version and build number in pubspec.yaml

by @rinas

TIL we can use `xed` to open Xcode with given folder or project

by @rinas

TIL in Golang: Interfaces & Errors

by @0xi4o

TIL in Javascript, Date `getMonth()` does not give the correct month as we expect 🤯

by @rinas

Netlify serves Jekyll 404 pages out of box

by @mzrnsh

TIL in Golang: Regular Expressions

by @0xi4o

TIL in Golang: Methods & Runes

by @0xi4o

TIL in Golang: Pointers

by @0xi4o

TIL in Golang: Range Iteration & Type Definitions

by @0xi4o

TIL we can compare versions in Ruby using `Gem::Version` without any gems

by @rinas

How to add images to a README.md file

by @alahirajeffrey

SimpleHTTPServer has become even simpler in Python 3

by @mzrnsh

TIL in Flutter (iOS): No transparent images allowed in assets

by @rinas

TIL How to change screenshot directory in macOS

by @rinas

Heroku cli for rails console

by @rinas

TIL in Rails: Code after redirect_to gets executed

by @rinas

TIL about using counter_cache in rails to save association's count in parent model

by @rinas

TIL about beginless and endless ranges in Ruby

by @joemasilotti

TIL how to select values from one column without `nil` in Rails

by @rinas

TIL How to change progress bar colour in Rails

by @rinas

TIL how to set default ruby version using RVM

by @rinas

TIL what policy to use for AWS S3 to work with Rails Active Storage

by @rinas

TIL how to colour console logs

by @rinas

Regarding privacy concerns, it's simple - we don't sell your data. In fact, we try to use privacy-focused software/services like Fathom Analytics whenever we use any third-party services.