Close

Photo calender using R

Create an elegant photo calendar completely using R.

I had this idea of using some of my travel photos to create a photo calendar. I would normally go about it using Adobe Photoshop or Adobe Illustrator. But, that would involve a lot of manual work placing dates and days for each month. I would also like to mark some public holidays and friend’s birthdays. So, I wondered if it might be possible to do it with R. After fiddling about with it over the weekend, I managed to make it work. It went better than I expected. And here I am recreating the calendar using some stock photos. All stock photos are royalty-free from Pexels. For the impatient ones, the whole code and images are available at this Github repository. For detailed guide, keep reading.

(more…)

Scraping Instagram and choosing hashtags

We scrap Instagram for basic public data using R to help us pick optimal hashtags.

If you are an Instagram user, at some point, you care going to be interested in the various metrics such as followers, number of posts by a certain user etc. You might want to compare these metrics between different users or to find out the number of posts with a certain hashtag etc. The casual way to do it is to go the relevant Instagram page and look at the metric and write it down somewhere, and go to next and so on. Clearly this is not ideal strategy if you want to look at a few hundred pages. It would be neat to get this data in an automated manner.

Read More

Texas

A conference trip to Austin, Texas and my experiences.

This was my first trip to the USA, mostly to attend a conference in Austin, Texas. And then I took a week to go around and explore the place. I managed to visit Houston and San Antonio as well.

(more…)

Iceland

My first trip to Iceland, pictures, route and some insights.

 

Iceland is a nature lover’s paradise. Same goes for a landscape photographer. The nature in Iceland is just out of this world. It’s just remarkable how diverse the topography is, for a relatively small island. It’s also a great location if you want to get away from people. You could be driving for hours without meeting a single car. In this post I want to talk about some of the experience and some of the practicalities of travelling in Iceland.

(more…)

Running ImageJ on a Linux cluster

A quick tutorial on running ImageJ on a Linux cluster.

I use ImageJ for many of my image analysis needs. My desktop computer runs Windows 7 and it has pretty solid specs with Core i7 processor and 16GB RAM. I recently had to handle some large tiff stacks (4-5gb) and it simply wouldn’t work on my desktop as I constantly ran into ‘out of memory’ errors. So I decided to run them on a computing cluster instead since I have access to one. Running on a cluster might be useful when handling data with large memory requirements or to perform computations on numerous files in parallel by distributing load to multiple cores. It took me a while to figure out how to get things to work, so I thought I would make a record of it. And this might hopefully be useful to others.

Read More