My Experiments with Raspberry Pi: Part 1

Today I am going to run a 7 segment display off of raspberry pi 4. The code I ran #!/usr/bin/env python import RPi.GPIO as GPIO import time pins = [11,12,13,15,16,18,22,7] dats = [0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x80] def setup(): GPIO.setmode(GPIO.BOARD) for pin in pins: GPIO.setup(pin, GPIO.OUT) # Set pin mode as output GPIO.output(pin, GPIO.LOW) def writeOneByte(val): GPIO.output(11, val & (0x01 << 0)) GPIO.output(12, val & (0x01 << 1)) GPIO.output(13, val & (0x01 << 2)) GPIO....

March 20, 2021 · 4 min · Harsh Kumar

Kolmogorov Arnold Representation Theorem

The most surprizing aspect of neural networks is their simplicity. I don’t mean that the whole of a neural network is simple. It is not. But at any given instant you are either adding numbers or applying a function on one number (a single variable function). Why these two kinds of operations will give you any old function of multiple variables is a mystry to me! Let me take a small step towards understanding this by reading this really old paper by Kolmogrov....

March 17, 2021 · 1 min · Harsh Kumar

Let's get Go-ing

Why Go? Computer evolution more cores programming languages based on one core programming Programming workflow evolution not written by single developer written at different times programmers write library or package to be used elsewhere open source code needs to be shared Go rethinks object-oriented development allows for code reuse let’s you use all cores no need to recompile evrytime. Learn concurrency model fast compiler syntax type system concurrency channels testing, etc How Modern programming challenges Go away Currently choice between rapid development : Ruby, python fast execution : C, C++....

March 8, 2021 · 4 min · Harsh Kumar

First look at Go In Action

Foreward Created by Rob Pike, Robert Griesmier, and Ken Thompson other contributions include UNIX, Java’s JVM Hotspot, Strontalk, UTF8 Open-sourse 2013: Gopher Academy; building community around Go. Go discussion board (slack) Gopher Academy blog GopherCon Go In Action Preface Began as GoingGo.net blog Member of founding team of Go reviewed suggested changes shared expertise Community effort ever scince About the Book Go is simple makes simple reliable and efficient software ides from existing languages unique and simple balances low-level language features, and high-level language features Book For intermediate level Requires experince with programming Goal intensive comprehensive idiomatic Focus on both specification, around implementation Topics include: syntax type system concurrency channel testing, etc Overview: Chapter 1 What is Go?...

March 8, 2021 · 2 min · Harsh Kumar

Microsoft Terminal: My Customizations

What is Microsoft Terminal?

March 7, 2021 · 1 min · Harsh Kumar