Installing and configuring pantheon greeter

lightdm is a display manager that handles running X server and login in Linux systems. The flexbility of lightdm allowed it to be used with different greeters (login screen). Though the default is Unity greeter, not every distribution uses it as default. Elementary OS project uses their own fork, named pantheon greeter, which in my opinion is most visually appealing.

»
Author's profile picture Anwar Shah on linux, lightdm, pantheon, greeter, and elementary

Notes from 99 bottles of OOP

This is a post of notes I am taking from the book, 99 bottles of OOP by Sandi Metz and Katrina Owen. I’m hoping that I can finish it timely and also complete the post with all notes. This post will have notes only from Chapter 1 (Shameless Green)

»
Author's profile picture Anwar Shah on oop, ruby, clean-code, and notes

How to pair a bluetooth device from terminal

Bluetooth has been a headace for us all. Works sometimes and doesn’t work some other times. Here I’m creating a checklist of tasks to successfully connect a bluetooth device in Linux. I’ve tested this in Ubuntu 16.04.

»
Author's profile picture Anwar Shah on bluetooth, linux, and command-line

How to generate Rails documentation with Yardoc

The default rake doc:rails generate api documentation for rails using sdoc format. But, if you want to get yardoc formatted api documentation, you need to generate it manually. One way to generate this api documentation is by navigating to rails source and using the command yard doc. Assuming you are using rvm to manage rubies and gems, It’s not easy, Because rvm store all gems including rails dependencies in a single directory. That makes it hard to filter which comes with rails and which are not. For example, action-controller is a rails component but yard is not. But all lives in the same gems folder.

»

Diving inside Ruby Blocks-1

New Ruby users often become confused by it’s Block. So was I. Today, I determined to dive into these block thingy once more. And Alhamdulillah, I want to share with you the knowledge. Mostly, for myself.

»

Using form_for for nested resources in rails

Using object with form_for in rails in really nice things. But, it can get tricky when we need a form for nested resources. For example, we could have a @result resource, inside a @course resource. What should be done in these cases?

»

How to change the default font using font-config

If you want to replace the default font used for a certain family such as sans-serif or monospace or just want to replace every occurrence of a font, you need to deal with font-config. This is very simple.

»
Author's profile picture Anwar Shah on anti-aliasing,, ubuntu,, and font-config

How to enable anti-aliasing for Monaco font in Ubuntu

Monaco was the standard monospace typeface installed by default in Apple computers until it is replaced by Menlo in Mac OSX 10.6 (Snow Leopard) . But, This font, when used in Ubuntu, renders pixelated in small sizes (to be accurate, sizes less that 14px). This is quiet dissapointing since it is a very nice font. Below is a picture of the problem.

»
Author's profile picture Anwar Shah on anti-aliasing,, monaco,, ubuntu,, and font-config

How to make Firefox's zoom settings persistent or saved

When you make changes to a site’s zoom settings, that change will not be saved for all pages of that particular site and, of course not across all the other sites too. This is particularly problemetic for site’s whose has low sized fonts such as Django’s offline documenation site. You have to zoom everytime you navigate around sites.

»