While reading this blog I came across a new concept called “string interning”. Lately, I am making a habit of writing a blog on any new concept that I come across on the internet or other places. So that I don’t forget new things that I learn. I also use my twitter account for posting useful links etc.
O(log*n) with Union with path compression, O(logn) with keeping track of size of subsets, O(n) with keeping root as the parent instead of root(i) = i, O(n^2) with setting all the elements of a subset a same value.
[Bookmark] for me.
How to copy files from one machine to another using ssh?
Secure copy or SCP is a means of securely transferring computer files between a local host and a remote host or between two remote hosts. It is based on the Secure Shell (SSH) protocol.
Feeling really awesome after being able to successfully run Raspberry Pi. After struggling for 4-5 hours, breaking my wifi hotspot(no solution till I format my laptop. A bug in Fedora), reading many blogs etc. Finally! I am able to run it.
This is a bookmark for me. I keep on facing this error while converting the string to dict (JSON) and vice-verse. The error is:
TypeError: blah blah blah is not JSON serializable
Thanks to recent addition of Python to the Topcoder python is the first language besides C++, Java and C# available on all major programming competitions (I did’t count ACM, because I can’t compete in it after finishing university).
I’m going to write about my perspective on using Python in programming contests.
Some of the points are targeted at people who didn’t use python at all yet, so for people knowing python they may sound basic.
Vexorian already had written a good piece about python in programming contests.
I am going to extend some arguments, disagree with some and provide some new ones. I’ll start with the things I like and end on the things I don’t like.
Python code during programming competitions resembles “real world” better
Common complaint about programming contests is that people write throwaway C++ code, while outside of programming competitions C++ is used to write highly…
View original post 1,324 more words
Open Source is a great way to learn and grow – to look at huge codebases written by world class developers, and to be mentored by them when you try to write a patch for an existing issue. You learn the entire workflow of starting a patch to having it committed to the central source code repository, which can be a very enriching experience. The discussions that accompany the process are also priceless in terms of how much you learn about software development as well as practicality.
Earlier this year I had decided that I would start with contributing to the Python project. Being one of my favorite languages with a vibrant, large and intellectual community (and also increasing industry support – check out the sponsors at PyCon 2013), it was a natural choice. I might decide to get involved with the Scala community at a later point…
View original post 627 more words
I love Heroku.
Flask is awesome.
Lately, I have been using Heroku heavily for my flask web apps. So, this is a little post as my notes on Heroku deployment commands. I will keep on updating this.
Flask App Deployment