Santosh Srinivas

227 posts •
Mac

Show task switcher on CMD+TAB on Laptop Display

I was running into an irritating issue where my Task Switcher on pressing CMD+TAB was showing up on my external display. I prefer to choose using the laptop display that I use

MongoDB

Installing MongoDB on Ubuntu 16.04

Following steps worked for installing MongoDB on Ubuntu 16.04 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu

Visualization

Creating Waffle Charts in R for infographics

Came across this pretty cool post to create waffle charts using R. I had to install fontawesome font on my mac from Font Awesome. First download, then double click fontawesome-webfont.ttf and FontAwesome.

Shiny

Shiny Server on Ubuntu

Install Shiny Server on ubuntu following the instructions here. * Install rbase sudo apt-get install r-base * Install shiny R package sudo su - \ -c "R -e \"install.packages('shiny', repos=

Tools

ripgrep - Command line based text manipulation

I love the command line and love command line tools! They are just so minimalistic and efficient! Just discovered ripgrep that seems to be a great alternative to ack and ag!! ripgrep is

Visualization

Drawing Capitan America Logo!

This post is motivated by this post on KANDINSKY (http://giorasimchoni.com/2017/07/30/2017-07-30-data-paintings-the-kandinsky-package/) library(grid) grid.newpage() grid.circle(x = 0.5, y = 0.5, r = 0.4, gp = gpar(

Scraping

Puppeteer - API to control headless Chrome

I've used various options available for scraping in a headless mode including PhantomJS, Nightmare, ScraperJS, etc. Unfortunately, most of these options required xvfb which makes things slower, less reliable and utilizes

Visualization

Enable WebGL on Chrome on a Macbook Pro 2011

This took me a while to figure out. I was trying to play with Mapbox-GL maps shown at Play map locations as a slideshow | Mapbox. I was getting an error that WebGL is

rstats

Understanding Paul Grahams Thoughts using R

Paul Graham posted this tweet on A hypothesis about how you might discover the next Twitter. Unfortunately, the tweet was an image which makes quoting it in this post very difficult! :( Fortunately, Jeroen

Tools

Cleanup over sized files on Mac and Ubuntu

My Macbook SSD is running out of space and I am trying to figure out which directories are the biggest in my attempt to clean them up. The best utility I could find

Ghost

Upgrading Ghost to v1.0.0

In this post, I will cover the steps I followed to run Ghost v1.0.0 with **Sqllite**

hat-tip

SOLVED: "Application" is damaged and can't be opened in macOS Sierra

Recently stuck with the following error message when in installing third party apps on macOS Sierra. "Application" is damaged and can't be opened! Apparently, the issue lies with "

Charts

My notes for charting with ggplot2

Useful packges * jrnold/ggthemes: ggplot themes and scales [https://github.com/jrnold/ggthemes] * wilkelab/cowplot [https://github.com/wilkelab/cowplot] * daattali/ggExtra: Add marginal histograms to ggplot2, and more ggplot2 enhancements [https://github.

Tools

Clearly Extension on Google Chrome

I'm addicted to the Clearly extension that was previously released by Evernote and is no longer available!! Here is the way to install the last one available: * Download extension from Clearly

Tools

SQL Client for the Terminal

I frequently need to peek into my database table using an SQL client and have been using Adminer - A single file database management tool to do it. While Adminer works great, ability

Health

Talk by Gary Taubes on Why We Get Fat: And What to Do About It?

Great Talk by Gary Taubes on Why We Get Fat: And What to Do About It. I feel it is very well researched and good advice to reducing fat! Enjoy!

rstats

Data Pasta is a must have to working with R and the Web

Just came across this package called MilesMcBain/datapasta from r-bloggers! Here is a quick demo of why it is a boon for working with RStudio! No repetitive tasks of parsing and munging for

Code Igniter

Run certain sites with PHP 5.6 on Ubuntu 16.04

I ran into a terrible problem today with one of my webapps. TLDR: PHP 7 has changes that break certain code that was working on PHP 5.6. It had something to do

Code Igniter

Codeigniter with PHP 7 on MAMP - Troubleshooting

I had codeigniter app that was running well with PHP 5.6 on MAMP. I got the latest version of MAMP Pro with the latest PHP 7. Everything was fine, till I browsed

Trading

Backtesting Model - Trade top 5 stocks from the previous day

Trying out a toy model that follows the following rule set: * Pick top 5 stocks from the previous day * Invest a fixed amount of INR 5000 in each stock * Exit the stocks the

Photography

Joy of Freedom

Loved this awesome pic that came free from iStockPhoto!

Startups

One Person Company - For Indian Startups

This just popped up on my LinkedIn feed from ICICI Bank. Interesting company structure that can be used by freelancers.

Ghost

Upgrading Ghost

Ghost [https://ghost.org/] is my favorite blogging platform. There are frequent releases on Ghost and I usually upgrade my version a little late .. mainly because I'm lazy. The docs explain

rstats

Creating an Organization Chart using R

I needed an "Organization Chart" (all the hierarchy yadda yadda) for an application to the government. The typical procedure would be to use Microsoft Visio or Powerpoint. But, I hate all

Trading

Using RQuantLib on MacOSX

Using RQuantLib on MacOSX * First install QuantLib as mentioned here [http://quantlib.org/install/macosx.shtml] * Install Boost brew install boost * Download QuantLib A version that slightly lags using: brew install QuantLib This

© 2025
Latest Posts Ghost