Archive for November, 2016

forgiving yourself is part of “being real” about life — codeinfig

November 30, 2016 Leave a comment

for the record, this is supposed to be a blog about programming. and theres a lot of stuff here about that; in the previous entry i linked to an entire book about it: i started blogging in february, and it is now november; and as i get to know the community better, two things […]

via forgiving yourself is part of “being real” about life — codeinfig

Categories: Interesting

The Case Against “The Case Against Python 3”

November 28, 2016 2 comments
Categories: Interesting, python

Surrender Python Mocking! I Have You Now.

November 28, 2016 Leave a comment
Categories: Interesting, python

November 28, 2016 Leave a comment

What is Prometheus?

Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud. Since its inception in 2012, many companies and organizations have adopted Prometheus, and the project has a very active developer and user community. It is now a standalone open source project and maintained independently of any company. To emphasize this and clarify the project’s governance structure, Prometheus joined the Cloud Native Computing Foundation in 2016 as the second hosted project after Kubernetes.

Read more here ->

Categories: Interesting Tags: , ,

Never Write For-Loops Again

November 25, 2016 3 comments

This is a challenge. I challenge you to avoid writing for-loops in every scenario. Also, I challenge you to find the scenarios that are so freaking hard to write anything else but a for-loop. Please share your findings. I’d like to hear about them.
It’s been a while since I started exploring the amazing language features in Python. At the beginning, it’s just a challenge I gave myself to practice using more language features instead of those I learned from other programming language. And things are just getting more fun! Not only the code become shorter and cleaner, but also code looks more structured and disciplined. I’ll get into those benefits more in this article.

Read more here->


Categories: Interesting, python

Graphite vs. Grafana: Build the Best Monitoring Architecture for Your Application

November 23, 2016 Leave a comment

A step-by-step walkthrough for choosing a Graphite monitoring architecture for your application

Graphite is an excellent open source tool for handling visualizations and metrics. It has a powerful querying API and a fairly feature-rich setup. In fact, the Graphite metric protocol is often chosen the de facto format for many metrics gatherers. However, Graphite isn’t always a straightforward tool to deploy and use. It runs into some issues with scale, thanks to its design and its use of huge amounts of small I/O operations, and can be a bit of a pain to deploy.

Read more here->

Categories: Interesting Tags: ,

Ctrl + Left or Right arrow

November 17, 2016 Leave a comment

A colleague introduced me to using “Option + Left” shortcut on OSX. I’d like to set this up on my debian box.

Option/Alt + Left or Right

This shortcut allows you to move the cursor between separate words in a command line. Use Option and the left arrow to move back and use Option with the right arrow to move forward down the line.

I’ll be using “Ctl + Left” to move back and “Ctl + Right” to move forward between separate words.

For bash:
Add the following to .inputrc

"\e[1;5D": backward-word
"\e[1;5C": forward-word

For zsh:
Add this to .zshrc

bindkey '^[[1;5C' forward-word
bindkey '^[[1;5D' backward-word

To find out what is being sent by the keyboard. Type Ctrl + C to quit.

$ cat -v    
# When pressing Ctrl + Left Arrow                           

# When pressing Ctrl + Right Arrow

Source: (Look at the “How can I see what my keyboard sends?” section)

Categories: bash, Interesting, zsh Tags: