Skip to main content

Posts

Part 0: Introduction: The pragmatic programmers guide to Ruby and Ruby on Rails

Recently I had the opportunity for contributing to a project with which I really connected. The project started off with Ruby on Rails for both frontend and backend but now it is rapidly shifting to React on Frontend and Rails on the backend. Coming from a Golang world where things are simply what they are supposed to be, Rails was filled with surprises. My team is very supportive in answering my stupid questions but I've decided to double down on this beast. This is what I know about Ruby so far.  1. Ruby on Rails is known to be a 'developer friendly' framework - At the moment I disagree with this. Maybe once you get to know the framework well it is a breeze, but right now Rails is simply doing things without telling me. That is just confusing. 2. Rails documentation is really good - I had an internal BootCamp about rails(in my current company) which was a bit helpful but nothing beats the documentation. So for this series, I'm going to go through the documentation pa
Recent posts

Trying to cram all of computer science into one post and failing - Part one

1. It all starts with a bit It's very common to hear in your CS 101 class, 'Everything is 1's and 0's in the computer world'. Let me explain, So there is something called ASCII - you can google it. It's just a number assigned to most of the characters (i.e. letters and punctuation) that we use. Ok, so what? If you put a bunch of 1's and 0's together, you can represent any number. Kind of like Morse code. Don't worry if you don't know it. The idea is just there exists a mapping between a set of 1's and 0's and the normal numbers that we use. It goes something like this if we take 3 bits: 00 is 0 01 is 1 10 is 2 11 is 3 With 3 bits we can represent 9, with 4 -16, with 32 bits you can represent more than 4.2 billion numbers and so on. Watch the movie The Matrix . It takes this idea to the next level. So if a bit(a single 1 or 0 is called a bit) can be mapped to a number and a number can be mapped to a character(using ASCI

Selenium script to check a Website for updates

In my 4 years of college, my university never announced the result dates. This being the last year everyone is anxious as the results decide if we get to sit in campus placements. To save time constantly manually check the Pune University results webpage for updates, i wrote a small selenium script that constantly checks the website for results. This script can be easily generalized to check for an update on any website. The following script looks for a specific result on the webpage. Here's a more generalised version that checks for any change in the webpage contents.

Mac theme on Ubuntu 17.04

1. Install Cario-Dock sudo add-apt-repository ppa:cairo-dock-team/ppa  sudo apt-get update sudo apt-get install cairo-dock cairo-dock-plug-ins 2. Tweak Tools sudo apt-get install unity-tweak-tool sudo apt-get install gnome-tweak-tool 3. Download the theme Download  Gnome-OSX-II-2-6.tar.gz Just copy the extracted file to a '.themes'-folder you make in your home directory.  Then use Tweak-tool to select the GTK and shell theme. You may need to log out and log back in for changes to take effect! 4. Get the Icons sudo add-apt-repository ppa:noobslab/macbuntu  sudo apt-get update  sudo apt-get install macbuntu-os-icons-v9 sudo apt-get install macbuntu-os-ithemes-v9 Just copy the extracted file to a '.icons'-folder you make in your home directory.  Then use Tweak-tool to select the icons. 5. For Animation effects Install and configure -  compizconfig-settings-manager sudo apt-get install compizconfig-settings-manager