Convert letter to imageTLDR: α -> You can download the script from here. This scripts accepts a letter such as A, σ, हिॆ etc. By default, this script uses …
In Python3, converting slice to rangeIf you want to override [] operator in Python, you may need to handle slice as well. For example in the following __getindex__ method which …
Dense Associative MemoryJohn Hopfield in 1982 proposed a neat idea. It was a network that could store memories and recall them when presented with a partial cue. …
Managing multiple versions of Python using pyenvI recently discovered pyenv. I think it’s cool. It lets me setting up Python version easily on my Linux box. It is not written in Python and …
How to Fix or Get Rid of "Briefly Unavailable for Scheduled Maintenance" message in WordPressReason: During the update of a plugin or a theme, you refreshed the page, moved to another page, or the upgrade failed due to some other …
Fix "LaTeX Error: File `flushend.sty' not found."Install package texlive-sttools. I am using OpenSUSE at the time of writing this post. $ sudo zypper install texlive-sttools
Where is the center of mass of India?You want to lift India on your fingertip. You have already sliced the country using a cosmic knife 1 km below the sea level. Where would you …
How do we remember for so long?Recently my paper was published in eLife. It deals with an important question: How do we maintain long-lasting memories?. The eLife feature …
Making figures with TikZ/pgfplots for scientific publishing in BiologyI am a heavy user of matplotlib but secretly I am in love with tikz (well who isn’t!). I’ve been training myself with tikz and pgfplots for …
An optical illusionToday while working, I notice something weird in my terminal. Here is a screenshot of it. Focus near 0.064 in this stream. Do these lines …