Catalin Ionescu

Consulting Software Engineer

Senior Ruby on Rails and React Engineer. Passionate about data science. Aspiring 10% entrepreneur. Blogging about tech and side-project growth.

Git Revert File To Master

Git Revert File To Master $ git checkout origin/master -- [file_name]

Read the rest

Git List Remotes

Git List Remotes $ git remote -v The output looks like: origin git@github.com:remote/branch.git (fetch) origin git@git...

Read the rest

Git Checkout Remote Branch

With Git versions ≥ 1.6.6, with only one remote, you can do: $ git fetch $ git checkout <branch_name> If you have m...

Read the rest

Git Delete Local Branch

You can delete a Git Branch using the -d option $ git branch -d <branch_name> According to the Git documentation, -d ...

Read the rest

How to install Ruby on Rails 6 on MacOS Catalina?

I will walk you through installing Ruby on Rails for development on macOS 10.15 Catalina.

Read the rest

How to Create the Initial Postgresql Database?

You've just installed PostgreSQL and attempt to run psql and get the following error: FATAL: database 'user' does not exist. Here's how to fix that

Read the rest

How to Install a Specific Version of a Ruby Gem?

You can use the -v flag $ gem install GEM_NAME -v VERSION_NAME You can also use the longer --version flag $ gem install ...

Read the rest

How to use the Annotate Gem in Rails 6

Get a summary of the Active Record schema at the top or bottom of relevant files.

Read the rest

Implicit Declaration of Function is Invalid in C99

I ran into this error when installing the thin Ruby Gem on MacOS and found the solution.

Read the rest

Heroku R13 Attach Error

I ran into this weird error today and nothing worked.

Read the rest

Partial index in postgres

What is a partial index? A partial index is an index built over a subset of a table; the subset is defined by a conditional...

Read the rest

Ruby 2.3 added to_proc

Hash#to_proc returns a proc that takes a key a parameter and returns the matching value. a = { name: "Catalin", email: "ci...

Read the rest