776 reputation
58
bio website ninjalj.blogspot.com
location
age
visits member for 3 years, 10 months
seen 15 hours ago

Jun
27
comment Testing the Success of a Congestion Algorithm
I have enough imaginary Internet points (see my stackoverflow account), I'm not sure of what exactly you want to test there, and it's Friday, so I don't trust my ability to write more than two consecutive coherent sentences.
Jun
27
comment Testing the Success of a Congestion Algorithm
Right now, you can probably write a better answer than me, since you know better which application metrics you can access (that's why I said ideally, since I don't expect all TCP applications to expose relevant metrics).
Jun
27
comment Testing the Success of a Congestion Algorithm
I'm not sure. I think a long running non-fair high-throughput connection could increase the latency of short-lived connections, while not needing to recover from "lending" bandwidth to those other connections.
Jun
27
comment Testing the Success of a Congestion Algorithm
Increased througput for a connection can mean increased latency for the rest of the connections.
Jun
27
comment Testing the Success of a Congestion Algorithm
TCP connections finishing earlier indicates higher throughput, not lower latency. Ideally, you could get latency and/or throughput figures from your TCP-using applications (some games may show latency figures, http/ftp downloads show throughput,...)
Jun
17
awarded  Constituent
Jun
9
awarded  Caucus
Jun
2
comment Any way in Bash to write to a file every X seconds without closing it?
@ChrisDown: in this case, it protects against hardware lockups, and some kinds of kernel lockups (on SMP you can have a CPU locked up and still be running on the others).
Dec
18
comment The meaning of output of pmap
0x601000 is the data segment. It contains .data, .bss and can be extended via brk(). [anon] indicates non-file backed memory (so backed by swap), obtained via mmap(). dlmalloc uses brk() for allocations smaller than ~64Kb IIRC, and mmap() for larger allocations. The heap is everything allocated by malloc, both the extended part of the data segment, and the mmap()-based allocations.
Dec
17
comment Can the empty spaces/background in a terminal be replaced with a random(but pretty) pattern of ASCII characters?
@illuminÉ: well, my first comment was just to point out that bash will under some circumstances clear part of your background. E.g: fill the screen with Ms, go to the middle of it, and then write a char and backspace it: for i in $(seq 1 $(expr $(tput lines) \* $(tput cols))); do echo -n M; done; tput cup 15 1, then at the prompt type a char and backspace it.
Dec
17
comment Can the empty spaces/background in a terminal be replaced with a random(but pretty) pattern of ASCII characters?
@illuminÉ: \33 is ESC, the escape character (decimal 27, hex \x1f). The sequence ESC[ is 7-bit CSI (8-bit CSI is \x9f), the Control Sequence Introducer, which introduces many control sequences. In particular, CSI K is Erase in Line (EL, clr_eol), which by default erases from the current position to the end of the line. CSI 1 K erases to the left, and CSI 2K erases the whole line. You may want to skim into terminfo(5), console_codes(4), and/or /usr/share/doc/xterm-*/ctlseqs.*
Dec
16
comment Can the empty spaces/background in a terminal be replaced with a random(but pretty) pattern of ASCII characters?
zsh apparently does a clr_eos (clears from the current position to the end of the screen) on every prompt.
Dec
16
comment Can the empty spaces/background in a terminal be replaced with a random(but pretty) pattern of ASCII characters?
I think bash mostly assumes a line-oriented display. In particular, under some circumstances it may send clr_eol, which clears from the current position to the end of the line. (tested under bash 4.2.37(1) (4.2+dfsg-0.1) on Debian, just write some character and backspace it).
Dec
13
comment Mail character set for norwegian characters
There is Quoted Printable for supersets of 7-bit US-ASCII, Base64 for non-supersets of US-ASCII (notably for binary files), and variants of both for use in headers.
Dec
5
comment What's .deb and .rpm and how is it different from .msi?
@FaheemMitha: rpm2cpio package.rpm | cpio -idv
Dec
2
awarded  Custodian
Dec
2
reviewed Approve suggested edit on A better paste command
Dec
2
comment A better paste command
@rubo77: the field separator can be set with -F\\t
Dec
2
comment How do I get a websites title using command line?
@RobinGreen: and the number of HTML parsers that work for almost everything is approximately 3.
Dec
2
comment Why do /usr and /tmp directories for Linux miss vowels in their spellings?
It could be argued that semitic languages don't actually use consonants, but syllables with indeterminate vowels. So, the root syllables provide semantic meaning, while the specific vowels add grammatical meaning.