Don't wanna be here? Send us removal request.
Quote
... las olas no son como la obra de Gaudí, las olas son intercambiables, de manera que es como todos los fuegos el fuego, no? todos los mares el mar ... son el mismo mar
Julio Cortazar
youtube
0 notes
Quote
Un proyecto de modernización social y económica es imposible sin la democracia, si no podemos criticar al gobierno no tenemos posibilidades de enmienda. Sobre todo si el gobierno no nos oye, si el Estado no oye al pueblo, la modernización es una farsa, una manera de esclavizar a la gente. Democracia significa más y más democracia y libertad de crítica.
Octavio Paz
La justicia (impartida de manera imparcial y autónoma) es una componente fundamental de las verdaderas democracias. Sin justicia, el título no tiene mayor significancia.
0 notes
Quote
What do we gain by a long life when it is full of hardship and starved of joy and so wretched that we can only welcome death as our deliverer?
Civilization And Its Discontents
0 notes
Text
0G != gg
In the context of VIM, it is always true that there are several ways to achieve certain effect; at the minimum, there are both, the short and long ways as well as the wrong one.
In particular, on the issues of buffer navigation, the correct way to jump to the start of the 1st line of the current buffer is the command gg, conversely, when the goal is to move to the start of any other line, nnn G is the way to go; what it mneans is simple:
place te cursor at the start of the line which number is equal to nnn; the absense of the parameter denoted by nnn (count) means that the start of the last line is the target.
Now that the proper foundations have been set, it should be very straight forward to understand the following assertion:
gg != 0G
As a consequence, any sequence that neglects the former assertion to execute an operation relative to the 1st line of the current buffer using 0G is off base, or put if differently, assuming that 0G will move the cursor to the start of the 1st line of the current buffer is wrong.
In fact, the result of executing 0G is:
0 – jump to the start of current line.
G – jump to the last line of current buffer.
notice that (1) 0 is reserved to refer to the start of the current line therefore (2) the result is actually the opposite of what is expected.
Example
misconstruction: the sequence d0G deletes from current line (inclusive) to the 1st one (inclusive) of the current buffer
reality: it is not even 1 single sequence, it actually performs 2 operations:
d0 – edit the current buffer by deleting every character from the current cursor position to the start of the same line.
G – jump to the beginning of the last line of the current buffer.
In a large document, whatever it was deleted might be out of (visual) scope, forcing the user to undo the las change (u) or to navigate through the list of changes (g; g,) only to realize that things didn't happened as expected.
Consensus
When the need to perform an action relative to the (start of) 1st line of the current buffer arises, use gg as the reference.
Proper way to perform the aforementioned deed is: d gg.
Bonus
clear buffer
from the 1st line: dG.
from the last line: dgg.
elsewhere: dggdG or :%d.
0 notes
Quote
exceptions are no exception to the general rule that code reuse is good
J. Bloch
0 notes
Quote
the bigger the haystack, the more useful it is to have a metal detector
J. Bloch @ Effective Java 2nd Ed
0 notes
Quote
the bigger the haystack, the more useful it is to have a metal detector
J. Bloch @ Effective Java 2nd Ed
0 notes
Link
0 notes
Text
informative stat
information is power... may stat be with you
OS X
stat -f "[ %Mp%Lp | %Su: %SHp | %Sg: %SMp | a: %Sa | m: %Sm | c: %Sc ] ( %HT ) %SN %LT" -t "%d/%m/%y %H:%M"
Linux
stat -c "[ %A | %a ] [ a: %.16x | m: %.16y | c: %.16z ] ( %F ) %n"
0 notes
Link
just in case OpenSSH gets too mainstream or if an embedded Linux situation comes up...
0 notes
Link
0 notes
Quote
those who keep learning, will keep rising in life
Charlie Munger
0 notes