Mark ModakSending Pageviews to Google Measurement ProtocolIf your site works with Google Analytics to gather data about user visits to your site, there can be situations where you would need to…Oct 25, 2019Oct 25, 2019
Mark ModakBrowser sniffing with User Agent, is it always bad?It seems like a common set up: when someone visits your website, you want to know what browser they are using. There are lots of reasons…Oct 14, 2019Oct 14, 2019
Mark ModakBasic web scraping in Rails using NokogiriWeb scraping is almost as easy as it is fun! All of the work is already done for us, all we have to do is harvest it. Nokogiri makes it…May 12, 2019May 12, 2019
Mark ModakAPI Calls in Rails: from Basic to Better and some important considerationsGrabbing data from and API in Rails is not overly complex. Doing it correctly, and with a little security, is a tougher task. Let’s first…May 5, 2019May 5, 2019
Mark ModakRails 5: Asset pipeline and Heroku production (images)I had my Rails 5 app ready to go! It looked great on localhost:3000, beautiful background, good content, links working. Awesome, I’ve done…Apr 5, 20194Apr 5, 20194
Mark ModakSetting up Redis on a Rails app for deployment through HerokuYou’ve got an app with realtime updates! You built it on Rails. (Yay! You’re on Rails!) You used ActionCable! You run it locally and it’s…Mar 14, 2019Mar 14, 2019
Mark ModakUser authentication in Rails: The easy/quick way if you already have a rails app and know how it…There are various ways to add users to your Rails app and have them log in and out securely. For example, there are gems like Devise…Mar 9, 2019Mar 9, 2019
Mark ModakVariety: making things you can see while studying backend developmentThey say that variety is the spice of life. No reason to thing that this would not hold true for learning programming as well, right?Mar 2, 2019Mar 2, 2019
Mark ModakComparison operators: .rb != .jsUsing comparison operators of equality Ruby and JavascriptFeb 5, 2019Feb 5, 2019
Mark ModakObject instantiation and permanence in RubyWhen I first learned to drive a stick-shift car, I didn’t know that there was a “friction point” or that the clutch and the gas had to be…Jan 7, 2019Jan 7, 2019