Blog

My Diary: Personal Notes and Insights

  • Philosophy Quotes

    Philosophy Quotes

    When I read an article or book about anything, I like to get some notes about the quotes or brief expressions about the topic. In this post, I’ll share them. Some of them are Turkish, but it is worth sharing them. The following ones are related to philosophy Diyelim ki, arzu ettiginiz deneyimi size yaşatacak…

  • Parallel, Concurrent and Using both of them in Ruby

    Parallel, Concurrent and Using both of them in Ruby

    Hi everyone, I’ve been working on a food delivery platform for over 1 year and we have some traveling salesman problems in the background. But this problem is a little different one the original problem, we add some time constraints to routing. So for this type of problem we need to make some fast calculations.…

  • What Happens When You Upgrade Rails 5.0 to 5.2 and Ruby 2.4.3 to 2.5.3

    What Happens When You Upgrade Rails 5.0 to 5.2 and Ruby 2.4.3 to 2.5.3

    4 days ago Rails v6.0.0.rc1 was released. This means new version will be released in a few weeks, this is important, because new version includes some performance improvements and the performance is everything for apps. In the beginning of this year (2019) I’ve started to work on legacy rails app that is version v5.0 and…

  • Heroku /Sidekiq error when kill/retry job – 403 Forbidden on Heroku

    Heroku /Sidekiq error when kill/retry job – 403 Forbidden on Heroku

    Hi everyone, I’ve faced this problem on heroku when i deployed Ruby on Rails web app to free dyno Solution for custom domains is like below; You need to force ssl your rails app in config file. Because heroku app use default https scheme for app url. If you do not force it, it will…

  • How can I deploy beego app to Heroku

    How can I deploy beego app to Heroku

    Recently I’ve searched go web app frameworks to create hobby project. I’ve been found this article https://nordicapis.com/7-frameworks-to-build-a-rest-api-in-go. Then I’ve looked all seven project github repos. I like https://github.com/astaxie/beego project and start to develop app. I’ve been created API project and tried to deploy it to heroku. But there is no documention for it. So I’ve…

  • Git commands that are I liked

    Git commands that are I liked

    Hi, I will share git commands that are I liked and used always in this post. Maybe it can be helpful for you. Have fun..

  • Custom field example for Ruby on Rails with Activerecord & PostgreSQL & Metaprogramming

    Custom field example for Ruby on Rails with Activerecord & PostgreSQL & Metaprogramming

    Hi, Sometimes instead of specific db fields, you want to store custom field on database that is changing according to user needs in same app. I coded following method to store this type of dynamic data. As you see in codes, it uses metaprogramming methods. Also, there is simple validation to custom field that is…

  • GitHub’da SMS İle İki Faktörlü Kimlik Doğrulamanın +90 Türkiye Numaraları İçin Aktif Hale Getirilmesi

    GitHub’da SMS İle İki Faktörlü Kimlik Doğrulamanın +90 Türkiye Numaraları İçin Aktif Hale Getirilmesi

    Merhabalar, GitHub bildiğiniz gibi açık kaynak proje kodlarının yanında özel projelerin kodlarının da depolandığı güzel bir servis. Bu servis her ülkede olduğu gibi ülkemizde de oldukça kullanılan hatta GitHub’a erişim engellendiğinde insanların mizahi bir şekilde bir çok sitem de bulunduğu günlük hayatımızda vazgeçilmez yerini almış bir servistir. Velhasıl gelelim sadede, GitHub üzerinde bir çok özel repo…

  • Capistrano 2 ve 3 İçin Git Remote Url’in Değiştirilmesi Sonucu Oluşan Hata Çözümleri

    Capistrano 2 ve 3 İçin Git Remote Url’in Değiştirilmesi Sonucu Oluşan Hata Çözümleri

    Merhabalar, Daha önceden Ruby on Rails uygulamarının sunuculara deploy edilmesi konusunda bir yazı yayınlamıştım. Bu günlerde git remote repolarımızı Github’dan Bitbucket’a taşınması ile ilgili kararlar aldık. Fakat git remote repolarını Bitbucket’a taşımak demek, deploy süreçlerinde capistrano 2 veya 3 kullanılan projelerde de set :repo_url, ‘git@github.com:your_username/your_repo_name.git’ ayarı ile belirttiğimiz repo url’i güncellemek anlamına geliyor. Başlangıçta basit bir işlem…

  • Ruby on Rails Uygulamasının Heroku Servisinde Çoklu Ortamda(Staging, Production) Yayınlanması

    Ruby on Rails Uygulamasının Heroku Servisinde Çoklu Ortamda(Staging, Production) Yayınlanması

    Merhaba, Sizlere daha önceden rails uygulamanın yayına alınması yöntemlerinden biri olan kendi ubuntu sunucunuzda uygulamanın yayınlanması işlemini anlatmıştım. İlgili yazıya şu linkten ulaşabilirsiniz. Bu yazıda ise uygulamanın Heroku servisi üzerinde, çoklu ortamlar(Staging, Production) için ayrı ayrı yayına alınması süreçlerinden ve her bir ortam için farklı git branch’lerinin kullanılması olayından bahsedeceğim. Heroku üzerinde yayına alacağımız uygulamanın…