Programming related articles.
The other day, I needed to share files with a Windows based computer. I did not have any ftp nor samba server installed on my machine. For some reason ssh did not work either. As a quick solution, I decided to use a trick I saw some time ago. I started a python process which works as a simple HTTP server. Next, I opened a browser on remote machine and connected to my HTTP server and downloaded the files through HTTP.
This is the follow up for basic emacs setup post. In this post I will explain how to update your emacs setup for web development. I will cover
This is the follow up for basic emacs setup post. In this post I will explain how to update your emacs setup for python development. I will cover
Emacs is a great editor. But it is really hard to set it up. So I decided to write a document for my current emacs setup. In this post, I will explain how to install emacs with a basic setup.
I will cover how to:
Curl is a linux utility that is used to make HTTP requests to a given url. It outputs HTTP response to standard output and is actually very easy to use. Here are some examples to show its usage...
If you need to pretty print the json output of a terminal command (so you can inspect it more easily), you can use python's json module. I usually use it to pretty print the output of curl command. Here is an example
:::bash curl http://somesite.com/my/json/ | python -m json.tool
This utility can also be used to pretty print json files like following
:::bash python -m json.tool minified.json > prettyprint.json