Home ¦ Posts ¦ Books ¦ Articles ¦ Talks ¦ Notes > Category: software ¦ Atom

Posts on software

How does ping roughly work over IPv4 on Linux?

Introduction

The ping program is one of the most common programs which is used to check the "aliveness" of a host and a typical execution looks as follows:

$ ping 127.0.0.1 -c 1 -4

PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data …

Sorted Sets in Redis from CLI, Python and Golang

In this post, we will see a demo of sorted sets in redis. I just learned about them and I think they are really cool! This post shows how we can play with sorted sets first via the redis-cli, then from Python and Golang.

                            ┌────────────┐
 .───────────────.          │            │           .─────────────.
(    Redis CLI    )   ───▶  │   Redis    │  ◀─────  (    Golang     )
 `───────────────'          │            │           `─────────────'
                            └────────────┘
                                  ▲
                                  │
                                  │
                           .─────────────.
                          (    Python     )
                           `─────────────'

We …


Why RPC in Microservices instead of HTTP?

The Freelancer.com REST API is powered by a number of backend services. The API itself is powered by a Python HTTP server which communicates with the other services (Python, Golang and PHP) via RPC calls implemented using Apache Thrift. It is only during the past 2.5 years that …


Data in C and CPython

In the last two articles (Data in CPython and Data in C), as it turned out, I discussed two fundamental points in each language:

  • What happens in an assignment operation (such as a=2)?
  • Are separate copies of data created or references passed to the original when they are sent …

Using Travis CI to publish to GitHub pages with custom domain

As of yesterday, this blog is automatically being published via Travis CI. When I push a new commit to my GitHub repository it triggers a new build in Travis CI. The build completes and the the git repository is then updated with the generated output (mostly HTML with some static …


Tip: Rotating video frames using iMovie

I had to rotate a few video frames using iMovie. The instructions for rotating the frames were working, but the rotation was being applied to "neighboring" frames as well. It turns out the trick is to use "split clip" to split a frame so that you can isolate the exact …

© Amit Saha. Built using Pelican. Customised theme based on the one by Giulio Fidente on github.