Reputation
3,258
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
11 31
Newest
 Nice Answer
Impact
~272k people reached

Jan
26
comment Linux: How can I delete all files whose file name is more than X characters in length?
@Kitsos I did not say faster, but flexible. If you need to post-process the file list, then external programs may be easier than using a find regex. Your bash answer will fail with newlines. Consider a file name names foo\nbar (with an embedded newline). Then the first iteration will read foo and the second one bar. If you had files named foo or bar, then you will lose them, even if the length of foo\nbar is longer than five (seven). Another useful property find is that the -delete options removes empty directories too.
Jan
16
comment Linux: How can I delete all files whose file name is more than X characters in length?
Forking is expensive, this command does not scale up with thousands of file (yes, I have encountered that). The name=$(basename "$file") can be replace with name=${file##*/} (Bash prefix substitution with nothing).
Nov
30
comment Limit program's (Viber for Linux) access only to certain directory
Be very careful not to run Viber as root (after chroot, you will be root unless you change user). Since Viber is a presumably a GUI application, it will also have access to all other visisble windows by default. For the "easiest" separation using virtualization software, I would personally use QEMU (KVM), but others like VirtualBox should work fine too. In other cases, I try to use AppArmor.
Nov
9
comment What is the correct cipher name for RC4 in Chrome?
@gentmatt See iana.org/assignments/tls-parameters/… for a list of all cipher suites. You can ignore the anonymous, export, PSK and KRB5 cipher suites as they are not used. 0xC011 is TLS_ECDHE_RSA_WITH_RC4_128_SHA. Missing RC4 cipher suites in this list are 0xC002,0xC007,0xC00C.
Oct
21
comment What are the Compile time considerations to reduce the size of binary on Linux?
@nyk_mat Is this about the Linux kernel or a program that is intended to run on Linux? In case of the Linux kernel, use make menuconfig and disable what you do not need. For other programs, check whether you can disable features (for autoconf projects, ./configure --disable-FEATURE --without-PACKAGE where FEATURE and PACKAGE have to be replaced. See ./configure --help)
Oct
16
comment bbswitch fails to turn off discrete graphics
@bharat_iyengar Following the README, you see that you might have to update your initial ramdisk. I am not so familiar with Fedora, but according to their wiki, you can run mkinitrd. As Fedora seems to use systemd, they likely use kmod too. Usually you do not need to enable the card on shutdown.
Oct
5
comment Force https performance
Apache does not ship with this module by default, the performance issue that OP is describing is not related to HTTPS on its own, but premature optimization / stupid configuration.
Oct
5
comment Force https performance
Possible duplicate of security.stackexchange.com/q/43376/2630? (which has more context). David, you do not have to use Apache... you can also use nginx which has a very clean configuration syntax. See nginx.org/en/docs/http/converting_rewrite_rules.html if you want to switch.
Sep
9
comment How does SSD Wear Leveling work?
wrt AHCI vs IDE, have you tried superuser.com/q/471102/47108?
Aug
29
comment Logitech T400 Zone Touch Mouse not pairing to unifying receiver
Could it be paired with another receiver in your neighborhood while that machine is still powered on?
Aug
17
comment iftop - how to select a wireless USB device
Have you tried man iftop?
Jun
27
comment pidgin & pidgin-data version conflict
@Teifi You should use apt-cache policy pidgin pidgin-data to determine where the packages are installed from.
Jun
21
comment MiniITX-based NAS can't shutdown properly when Wake-on-Lan is enabled in BIOS
@Mr.Goodkat Still having this issue? Since you mentioned Debian, can you attach the full output of dmesg and pastebin the output of sudo acpidump > acpidump.txt somewhere?
Jun
18
comment Does VT-d need hardware support (besides the CPU)?
That user does not look like a GA employee. Isn't Z86 Express referred to from Z68X? My question still stands, is VT-d support dependent on the hardware (motherboard!) or firmware (BIOS)?
Jun
18
comment Does VT-d need hardware support (besides the CPU)?
I tried to keep this question more generic, but since you insisted, the motherboard is GA-Z68X-UD3H-B3 rev1.0. There is no official option, but the provided images in this forum thread do add an Enable VT-d option. (though I cannot confirm whether it works or not since I do not have a VT-d capable CPU yet.)
Jun
18
comment Simple daemon in C for constantly removing files from a user directory
D'oh, I was about to post an answer... @IlianZapryanov If you ask a new question about how to keep a directory empty, I will post the answer with inotify.
Jun
18
comment Simple daemon in C for constantly removing files from a user directory
@l0b0 With other programs, yes. I have tried it on pidgin and it works. Illian, instead of a busy loop, consider using inotify.
Jun
18
comment Simple daemon in C for constantly removing files from a user directory
Have you considered rm -r ~/.purple/icons; ln -s /dev/null ~/.purple/icons ? In that way, you do not even have to delete anything!
Jun
2
comment Connect a keyboard to my laptop
@WilliamHilsum I can confirm that such an adapter did not work for me with an old brand-less keyboard included with an old PC (256MB RAM). Another report on unix.stackexchange.com/q/52706/8250
May
27
comment should every TCP data packet be acknowledge or not?
@misteryes This is also real-world behavior. If you want to see the "practical behavior", install a monitor like Wireshark or consult one of the open-source TCP stacks (e.g. Linux).