776 reputation
47
bio website ninjalj.blogspot.com
location
age
visits member for 3 years, 6 months
seen 2 days ago

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.
Dec
2
comment A better paste command
@rubo77: awk -f paste-awk file1 file2 should work, at least for GNU awk and mawk.
Nov
25
comment Weird logging behavior in Berkeley mail on a Mac
Is this typed at the start of a line? ssh escape sequences start with ~ at the start of a line. Output of ~? ?
Nov
25
answered How does the kernel know how much user addressable memory to set aside?
Nov
11
comment How does a BIOS password work?
DOS functions are not alongside BIOS functions, they are on top of BIOS functions. The BIOS provides the machine-dependent part of the OS (CP/M, PC-DOS, MS-DOS), and the BDOS/DOS part provides the machine-independent part, built on top of what the BIOS provides.
Nov
11
comment AIX open() : file descriptor is zero (!?)
Re: there's nothing wrong. Daemons should really open either "/dev/null" or a logger on file descriptors 1 and 2 before execve'ing other programs. Otherwise, you may end up with log output on data files. Bear in mind that even if the program doesn't appear to output anything to std{out,err}, libraries may. Even glibc can output to stderr if LIBC_FATAL_STDERR_ is set ot if it cannot open "/dev/tty".
Nov
11
comment Can the kernel be moved to a different mtd while the system is running?
@derobert: well, there is XIP (eXecute In Place), which allows running code without moving it to RAM. But it's typically only used on systems with very little RAM.
Nov
11
comment More tiling with KDE
@queueoverflow: should work fine as long as the WM correctly supports the NetWM/EWMH spec.
Nov
7
comment Do I need a special firewall on a personal computer
egress (outgoing) filtering is good nettiquete: if your host ends up being compromised, please don't allow it to be automatically turned into a bot.