Open in app

Sign In

Write

Sign In

Nitesh Turaga
Nitesh Turaga

36 Followers

Home

About

Apr 4, 2022

Convert multiple jpg into pdf using `imagemagick-docker`

Use the convert tool on ‘imagemagick’ to convert the jpg files into pdf. Get the docker image from here (dockerhub), instead of installing it locally. ## Pull image docker pull dpokidov/imagemagick ## Run the convert command ## -v to mount the volume ## --entrypoint to use the command from imagemagick ## jpg files are in /img/input_*.jpg and produce /imgs/output.pdf docker run --entrypoint=convert \ -v /Documents/local-images/:/imgs dpokidov/imagemagick \ '/imgs/input_*.jpg' /imgs/output.pdf

Docker

1 min read

Docker

1 min read


Mar 27, 2021

`useFancyQuotes=FALSE` in important in my`.Rprofile`

I want to highlight a single option I added to my .Rprofile about two years ago, that helped me immensely, options(useFancyQuotes=FALSE) If I’m working on a remote machine, I make it a point to add this one line at least. Let me explain why. I build and install packages while…

Rstats

1 min read

Rstats

1 min read


Mar 26, 2021

F1 drivers by nationality till the year 2020

Data : https://www.kaggle.com/rohanrao/formula-1-world-championship-1950-2020 Code: library(tidyverse) dat <- read_csv('drivers.csv') color_scheme <- c("#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7", "#fdbb84", "#bcbddc", "#a6bddb") dat %>% group_by(nationality) %>% count() %>% filter(n > 20) %>% ggplot(aes(x = reorder(nationality, n), y = n)) + geom_bar(aes(fill=nationality), stat = "identity") + ggtitle("Number of F1 drivers by Nationality (till 2020)") + xlab("Nationality") + ylab("Number of drivers") + coord_flip() + scale_fill_manual(values = my_scheme) + geom_text(aes(label = n), size = 4, hjust = 1.5) + theme(legend.position = "none") + theme_minimal()

Formula 1

1 min read

F1 drivers by nationality till the year 2020
F1 drivers by nationality till the year 2020
Formula 1

1 min read


Jun 19, 2020

Create new git repo from the subdirectory of an existing git repo

Goal Create a git repository from the subdirectory of an existing git repository. Furthermore, preserve the log of only that subdirectory. Let us unpack this statement. The context will also help understand it a little better. There is a git repository hosted on a private git server, let us call this…

Git

2 min read

Git

2 min read


Jun 10, 2020

Open data resources spanning multiple areas of science

I’m interested in looking at data sets that span a wide range but not limited to social, climate, energy, sports, and healthcare. Some of the useful data sources I’ve looked at to understand the world around me better are listed below in no particular order: The World Bank: The world…

Data Science

2 min read

Data Science

2 min read


Jan 8, 2020

No local installation of R or RStudio from now!

I only use Docker images now for my R and RStudio needs. I’ve not installed R or RStudio on my local machine, though I work at Bioconductor, *a total R shop*. I spend most of my day in R. I’ve implemented a couple of new images called the bioconductor/bioconductor_docker …

Docker

2 min read

Docker

2 min read


Jul 19, 2019

How to make Docker images smaller

Github: nturaga; Twitter: niteshturaga — Trying to make Docker images smaller is a little bit easier if you know how the filesystem works and have a few handy resources. My first naive effort, I was trying to delete stuff from the top layer of a 5Gb image (with plenty of layers). Once I saved the…

Docker

3 min read

Docker

3 min read


Jul 2, 2019

How I use Bioconductor with Docker (part 2): More memory, faster Bioconductor with Docker

Github: nturaga, twitter: niteshturaga My previous posts showed “How I use Bioconductor with Docker”, think of this as an extension to that. It was the case (way back when) that I found Docker containers “slow” and not a very efficient way of using R. This is because R is an…

Docker

3 min read

How I use Bioconductor with Docker (part 2): More memory,  faster Bioconductor with Docker
How I use Bioconductor with Docker (part 2): More memory,  faster Bioconductor with Docker
Docker

3 min read


Jul 1, 2019

Lesson learnt: use iTerm2 and tmux

Github: nturaga, twitter: niteshturaga A terminal multiplexer would be a great way to work(in theory), but learning and re-learning the shortcuts for tmux seems to be too much work, unless I was using it on a daily basis. iTerm2’s tmux integration solves these problems for me. Especially when i’m writing…

Terminal

2 min read

Terminal

2 min read


Jun 30, 2019

How I use Bioconductor with Docker

Github: nturaga , twitter: niteshturaga This is how I use the image, bioconductor/bioconductor_full:devel in my daily use. I use this particular image because it has all the system dependencies to install most Bioconductor packages. docker pull bioconductor/bioconductor_full:devel Start up the docker image, and share a folder for the library-store and…

Docker

2 min read

Docker

2 min read

Nitesh Turaga

Nitesh Turaga

36 Followers
Following
  • Barack Obama

    Barack Obama

  • Tomas Pueyo

    Tomas Pueyo

  • Vinod Khosla

    Vinod Khosla

  • Sean Davis

    Sean Davis

  • Jeff Leek

    Jeff Leek

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech