Green is the color...
Many avid Pink Floyd fans like to divide the legendary journey of the band in two distinct timeframes1 -- Waters Era (led by Roger Waters) and Gilmour Era (led by David Gilmour).
Python micro-ideas : Does tuple require parentheses as a must?
The answer is No.
This has tripped many Python developers, many times. I have come across this once again while answering this question on Stack Overflow.
The OP (Original Poster) asked:
A Saucerful of Secrets
So many things said, without actually saying anything... Pink Floyd : A Saucerful of Secrets...
An intro to "gnuplot" -- command line plotting tool for GNU/Linux
After a long time, I've started commit-ting to GitHub again (will keep on using GitLab too). While roaming around, found an old Gist of mine, discussing about gnuplot
-- the command line plotting tool for GNU/Linux systems. The Gist is just a basic intro.
HAT : New "one time run" job scheduler for GNU/Linux
I've started on a new project, basically sort of a side project; It is about trying to replace the typical one time task/job scheduling engines/systems, used in GNU/Linux, namely at
, atrm
, atq
, batch
and other similar ones.
I've named it hat (hyper-at). The idea is to replace all of the mentioned ones with a single engine, with more option and flexibility.
RegEx : Non-greedy operation without non-greedy operators
In the world of RegEx (Regular Expressions), not all engines support non-greedy or lazy matching capability of input; the lazy matching was introduced in Perl, so any Regex engine that implements PCRE (Perl Compatible Regular Expression) supports lazy matching out of the box.
If you're on an engine that does not support non-greedy match, you can use some trick to achieve that.
Primer on Bash variables, logical builtins/commands, and operators
bash
is written in C
, so one might expect some remnants of C
, but the fact is bash
is very different from it -- bash
(or any other shell, for that matter) was never designed to be a
full-fledged programming language. bash
was initially written to execute various *nix
standard commands directly, in essence, an interface to do fork()
-exec()
(and brothers) calls.
Python : Turning a sequence into an iterator without iter(), keeping the sequences' properties intact
From time to time, we have come across questions like -- How can I make an iterator out of a sequence without explicitly calling the iter() function?
A follow-up question to that would be -- Can we preserve the sequences' properties intact, with just adding the needed properties to make it an iterator?
In answering these, we are also answering the obviously inferred question -- How can I expand functionalities of a class without modifying the class itself?
Abstracting the inits -- run "service action" commands with ease!
On GNU/Linux, from time to time, we tend to face the issue with mistakenly using wrong service action commands on various init systems. For example, on a system with upstart
being the init, one can mistakenly run
systemctl restart sshd
whoops! this is not a major mistake by itself but could easily turn into one (damn you muscle memory!)
Hello, World!
The title is a must, isn't it? :)
Hello there, Not sure when you are reading this, but glad you are here! -- reading the first post on my blog.