Posts

Adventures with Raspberry Pi - Part 2

Image
Continuing from the previous post , let us now put the Pi to some practical uses. File Server The Pi can serve as a file server for home use. One could use it to store files for use across multiple computers, backup files, share media (songs, photos and videos) etc. As most of us use Windows at home, you can setup a Samba file server. You can read/write files easily from Windows computers.  In addition, there are Apps for iOS and Android, so you can access these files from mobile/tablets too. You can SSH into the Pi and run the following commands to install Samba sudo apt-get update sudo apt-get upgrade sudo apt-get install samba samba-common-bin You could give all access to the Public folder under /home/pi/ folder using the command -  chmod +777 . Create a Samba user and password using the command - sudo smbpasswd -a pi Configure Samba as shown below - Edit the Samba configuration - sudo vi /etc/samba/smb.conf [share] Comment = Pi shared folder Path...

Adventures with Raspberry Pi - Part 1

Raspberry Pi has been around for a few years. It was initially launched in 2012 by the UK based Raspberry PI foundation . Over the years, many flavors of the Raspberry PI have been created. While the Pi computer has been created as a learning tool, it can be used for some practical use cases too. These can be for both home and business use. Below is my Raspberry Pi setup at home. Imperial storm troopers protecting their precious cargo of Raspberry Pi, Mi power bank and Western Digital hard disk. All the secrets of the empire are safe! #starwars #raspberrypi #stormtrooper #maker #diy A post shared by Rajan (@rajanmanickavasagam) on May 9, 2018 at 8:33pm PDT The bill of parts for the above setup consists of (left to right) - Mi 20000 maH Power Bank USB to Micro USB cable with a power on/off switch Raspberry Pi case with heat sink Raspberry PI Model 3 Class 10 SD Card 16 GB capacity Western Digital 1 TB external hard drive The storm troopers just show...

Let Us Say Grace

Image
As we head into another new year, the calendar has changed to 2018. But the differences in the world continue to remain. As long as the human condition prevails, these differences will always exist. These differences periodically surface as flash points in politics, economics, societies, arts and personal freedoms. Saying Grace by Norman Rockwell (Source - Wikipedia) There is a painting "Saying Grace" by the iconic American illustrator Norman Rockwell. It was created for the cover of the Saturday Evening Post in 1951. As is characteristic of Norman Rockwell paintings, it captures an ordinary moment with extraordinary detail. A boy and his mother say their prayers in a restaurant before a meal in a restaurant. We can also see the reactions of the other diners, some fully, some partially and some not at all.  What is truth? What is justice? What is equality? What is morality? Before we even debate these topics, we must search for the meaning of them individ...

Tech - Lets Chat

Image
Instant messenger applications (like Yahoo Chat) have been around since the beginning of the web, but the web was initially bound by the desktop. With the emergence of mobile, messenger applications (like Whatsapp, Facebook Messenger etc.) have seen a explosive rise. According to recent statistics , billions of messages are shared using these applications. While these messages are largely between humans, technology cannot be far behind. The DevOps movement in the world of IT accelerated the move towards automation. Except perhaps design and coding, a lot of activities such as testing, integration, deployment etc. are becoming automated. One of the last vestiges of manual intervention was tasks like - monitoring, troubleshooting etc. Bots were created to automate these repetitive tasks too. Diagram using iPad App - Paper I decided to explore this world of Chat and Bots, also called by some as ChatBot. There are a few mature frameworks that can help build this capability. C...

Fiio and Sony - Music to the ears

Image
Fiio is a relatively unknown brand in India when it comes to portable music players. The Chinese company manufactures reasonably priced high resolution digital audio players. The Fiio X1 player is the entry level model. It is built using aluminium, making it light for everyday use. It has a basic user interface similar to the earlier Ipods. The key to the player producing great sound is the separate DAC chip - Texas Instruments PCM 5142 and an Intersil Amplifier. In addition, the player can play a variety of audio file formats (FLAC, MP3, WMA, AAC, ALAC, WAV And OGG). Now, that we get professional grade sound from the player, we need a professional grade headphone to listen to the music. The Sony MDR 7506 has been around for decades unchanged. It handles all genres of music effortlessly and cleanly. There is almost no distortion, be in the vocals or the background music. For those who are keen listeners of music, I would recommend the Fiio X1 (Gen 1 or 2) and the Sony...

Biryani with a Persian twist

Image
Biryani with a Persian twist Anyone who likes Indian cuisine is familiar with the Biryani. Few know that the word Biryani is derived from the Farsi word "Birian". Some believe that the dish could therefore have originated somewhere in erstwhile Persia. Today's attempt was to make a biryani with a persian twist, right from the choice of meat to the spices. So, I used mutton and only persian dry spice powder. Contributed by  Rajan Manickavasagam . Published  11. December 2016 Ingredients Salt (to taste) Crushed black pepper  Persian dry spices 1 cup natural/greek yoghurt 2 cups of basmati rice 500 gm of mutton chops  2 tablespoons of olive oil 2 tablespoons of clarified butter (ghee) 1 large onion chopped into juliennes 10-12 cashew nuts Assorted whole spices - mace, cinnamon sticks, cardamom and star anise Instructions Marinate the mutton in salt, pepper, persian dry spices and olive oil for 10 minutes. Heat a wok...

Single Malt infused Burger

Image
Single Malt infused Burger I have been fascinated with the various barbecue sauces from America. There's a wide variety of them ranging from the Kansas City, Louisiana, Tennessee and Texas. Largely, they use similar ingredients with some regional variations.  I thought of making a variation of the Tennessee sauce by using Single Malt instead of an American bourbon. Contributed by  Rajan Manickavasagam . Published  02. January 2016 Ingredients Salt (to taste) Crushed black pepper  2 tablespoon Tabasco sauce 200 ml Tomato puree 1 tablespoon of Worcestershire sauce (or to taste) 2 chicken breasts  2 tablespoons of olive oil 1 tablespoon of Apple Cider vinegar 1 tablespoon of Soy sauce 2 tablespoons of Glenfiddich 12 year single malt  1 finely chopped onion 2 burger buns Instructions Heat the oil in a wok. Saute the onions. Add the salt and pepper.  Add the various sauces as you cont...

Musings from a Decade

So far, I have had a career in technology spanning 17 years. Recently, I completed 10 years in my current organization. I had the opportunity to work with great leaders, articulate managers, creative technical experts and incredibly hard working developers. While 10 years in an organization is a milestone, there are others who have served for many decades. In the words of the American poet Robert Frost, "There are miles to go before I sleep".  I was reflecting on the decade gone by. Here are a few musings for a fulfilling career. The Astrologer's Dilemma This is a folktale from Birbal. He was the advisor to the Mughal emperor Akbar. Birbal once had a merchant as his neighbour. The merchant's fancy was to constantly consult astrologers about his fate. An astrologer once read the merchant's palm and predicted various things. Towards the end, he also proclaimed that the all the near and dear ones would die before the merchant himself. This enraged the...

When a photograph get a life

Image
Photographs usually capture a slice of life. But sometimes, they get a life of their own too. I count a few of my photographs as my favourites. But one in particular seems to have become very popular. This is a photograph of the UK Parliament on a winter evening. I took it from the opposite bank on the Thames. It is licensed under creative commons license. Around a dozen sites have used this photograph. While some ask for permission, most of them use it along with attribution. It is interesting to see the number of topics that are linked to this photograph, ranging from education, diversity, health, news, current affairs and politics. http://www.involve.org.uk/blog/2013/09/27/analysis-of-the-ogp-independent-reporting-mechanism-report-on-uk-progress/ https://leedsunicareers.wordpress.com/2015/09/08/getting-into-parliamentary-and-public-affairs-summary-of-panel-event/ https://www.organic-center.org/news/uk-parliament-body-discusses-health-risks-of-roundup/ https://www...

Tech - Setup CI-CD in under an hour

Image
I was always curious about the badges that some Github repositories sport. Largely, the badges are related to continuous integration and automated tests. I thought of exploring some of the cloud based tools related to engineering a piece of software. I was pleasantly surprised at the variety and ease of use of these tools.  To start with, I needed some code to start with. I already had Java based REST API that I use for trainings on Elasticsearch. My repository is at Github . I have integrated my repository with the following tools - Continuous Integration and Deployment - Travis-CI Code Coverage - Coveralls Cloud Provider - Heroku Depending on the type of application and programming language, all the above tools provide documentation on integration with Github. Based on the size of the code, it takes a few minutes for build, tests, code analysis and deployment steps to be executed. The application is finally deployed to heroku.  The diagram below describes the fl...