2018

Streaming audio from Linux to Android using PulseAudio over LAN

19 Nov 2018 - 1 minute read
categories: notes tags: android linux

Suppose you are in a situation where you want to watch a movie on your TV or monitor but don’t want to use speakers. Maybe you are looking to listen to an audio book stored on your laptop but don’t want to transfer it to your phone. Or you just want to buy an audio jack splitter. Look no further, PulseAudio to the rescue. PulseAudio provides streaming via SimpleProtocol on TCP via a simple command.

Convolutional Neural Network Basics

14 Oct 2018 - 3 minute read

Convolution It is a matrix operation in which we add each element with local neighbors with respect to the weight of the kernels. Mathematically, it is the element-wise product of each element of the kernel with the image-piece followed by a sum. These filters can be used to detect various things like edges etc. Filters/Kernels Filters/Kernels capture features in their receptive field using matrices containing values (weights) with convolution. A higher result of this operation implies that the feature captured by the kernel is in the image, and a lower score implies the opposite.

Whistle Project – Winner EthIndia 2018 Hackathon

25 Sep 2018 - 5 minute read

Recently I took part in EthIndia Hackathon that took place in Bengaluru. This time I was participating without a team after a long time and made a team on the day of the event. All three of us (Ronak, Ayush and I) had a different idea of what we should work on but we finally came to a consensus on an idea that I had got from my current workplace’s CTO (Kailash Nadh).

Automate fast download of a large files through FTP

20 Aug 2018 - 1 minute read
categories: notes tags: linux productivity

lftp -e 'set net:timeout 10; pget -n 10 BigFile.zip; bye' -u UserName,PassWord ftp://BigFiles.com

Rewriting Lyric API in Golang

01 Aug 2018 - 2 minute read
categories: notes tags: golang js lyrics music node spotify

I had originally written a Lyric API as a hobby project way back using Node. I published it on github as a combination of API server hosted on heroku along with a library hosted on NPM. It still gets 50 downloads a week and the hosted heroku API server is actually used by many people even though it offers little to no functionality. I was recently looking at wtf dashboard and even contributed a small patch to it.

Functional Options for testing without mocks in Golang

30 Jul 2018 - 3 minute read
categories: notes golang tags: api golang notes

Suppose you have a HTTP request to be sent but don’t care about the result or errors. This request is sent through a function which is usually called inside a goroutine and is not in any way a core aspect of your main logic. The only important part is forming the actual request and the payload. When you wrote this function, you did not write tests as it would be a pain to make the function return something and check it.

Emacs starts a bit slow…

07 Jun 2018 - 1 minute read
categories: uncategorized

Emacs starts a bit slow but it can be started as a daemon emacsclient -c -n -e '(switch-to-buffer nil)'

Reviving an old Samsung N150 Netbook and making it a solid Dev Environment

16 May 2018 - 4 minute read

I had an old Samsung N150 netbook lying around in my parent’s house. It was an amazing netbook and I remember fondly using it when my parents were not using it to browse the internet and sometimes even use it for school work. It came with Windows Vista if I recall correctly but I had installed Windows XP service pack 3 on it because as we know, Vista sucked! Well, the netbook was very solid, it even ran small games such as Fifa Manager etc and came with a solid keyboard, ethernet and VGA as well for connecting to a big screen.

Genie – The Voice Enabled Coding Companion – Winner Dell Intern Hackathon

11 May 2018 - 1 minute read

Genie is a Voice Assistant made up of three agents who talk to you and help you automate software engineering tasks. Watch the video to understand what it can do for you.

My personal opinion about learning frameworks

11 May 2018 - 1 minute read
categories: uncategorized

My personal opinion about learning specific topics and frameworks is that it is not required to be done. In fact, it is only due to our education that we end up learning frameworks in the “learn first – then apply” kind of way. I would suggest trying a different approach. Decide on what you want to automate. What I mean by this is think of your day to day activities that you do online which you can automate.