5,993 reputation
1222
bio website
location
age
visits member for 4 years, 3 months
seen 1 hour ago

Dec
19
comment Generic shared resource locking techniques - is flock the solution?
To support @WarrenYoung's point, using files or directories as poor man's semaphores dates back to when semaphores didn't (portably) exist. If I found myself needing a mutex on the local machine, I'd probably use a POSIX semaphore because that's they were invented for.
Dec
18
comment Generic shared resource locking techniques - is flock the solution?
Is this file accessed across the net, for example, NFS or SMB/CIFS? There are a number of processes that have to coordinate flocks across those protocols and it will, of necessity, be slower than a local file.
Nov
13
comment How do I sftp to a server if the username contains @ symbol
+1 "Ok, my boss did."
Oct
26
comment Who wrote the “Linux kernel” (Linus Torvalds and his team)?
@jlliagre Nope: "An operating system (OS) is software that manages computer hardware and software resources and provides common services for computer programs. The operating system is an essential component of the system software in a computer system. Application programs usually require an operating system to function."
Oct
26
comment How can I prevent disk I/O from taking over my CPU?
If you've got more than 8 threads in disk-wait, the cores may report that they are idle, but the bus is jammed with the disk blitting blocks to core. Given any architecture I can bottleneck it with some arbitrarily large load; you found your limit.
Oct
26
comment Who wrote the “Linux kernel” (Linus Torvalds and his team)?
"Typically an OS would having a kernel, having one or more compilers…" nope. The OS is the kernel and nothing more.
Oct
24
comment pthreads and vfork
+1 thanks for promoting this to its own question. @Mat has already given a fine answer; anything I could add would be redundant.
Oct
23
comment When vfork is called is parent process really suspended?
Please present this as a new question and I'll be happy to. I'm not trying to be obnoxious, but them's the StackOverflow rules (and they make sense for a site that wants to be pure Q&A)
Oct
23
comment When vfork is called is parent process really suspended?
Yes, it is correct. Your test code contains actions that you don't fully understand, in particular how sleep() is implemented.
Oct
23
comment When vfork is called is parent process really suspended?
What this demonstrates is that if you write to the parent dataspace prior to vforking, then all the threads will have the same value for for that variable. It also shows that you don't understand how sleep() is implemented. Finally, this should be its own question because it is a question, not an answer.
Oct
15
comment CentOS 6.5 : machine with more that 1 TB RAM => “no free pages available” on boot
+1 self aanswers are good for SE, thanks for sharing what you learned.
Oct
10
comment Mint 17 Cinnamon: suddenly everything looks messed up
You changed nothing about the theme, but then you did change the theme. You've given us incomplete information as to what might have caused the problem. That's forgivable for a newbie. I'd reload the system from scratch and not touch any setting and see if that allows you play rogue (which was a bit too important to me in times past, too :)
Oct
10
comment Mint 17 Cinnamon: suddenly everything looks messed up
"I'm a complete newbie to linux." And with a day of experience, decided to change the visual theme. Don't do that; for reals. I've been using Ubuntu since April 2005 and other unixes for 20 years prior to that, I've never had a plug=in theme behave all 3 times I even bothered. True, I didn't give much effort, because they should need any. Switch back to default and learn about the system before you try to make it look coolz.
Oct
7
comment Cron Log File Outputs Nothing
See if you can get a Hello world! PHP program to give you output under cron and let that guide you to a more precise question.
Oct
5
comment Weird vertical bar on my desktop
If I understood your exchange with @Anthon restarting the machine (or X) works for a time but it fails again later. That is very diagnostic of a display chip set damaged by overheating. It can easily cost as much to replace the chips as it would to get a new machine. Also, even if the chips were replaced there could be a design defect with the cooling system which can cause the GPU to fail again. Vacuum all the ventilation holes in the laptop and if that doesn't work, consider getting a new one. Sorry.
Oct
5
comment Weird vertical bar on my desktop
I second @DavidKohen hypothesis that it is a GPU hardware fault. Swap out the GPU to test the hypothesis.
Oct
5
comment What is my sudo password?
You, user derek, may not have sudo permissions; ask your sysadmin. In your comment you gave a weird error message "hello is not in the sudoers file" I thought our hypothetical user:password was derek:hello; I would expect an error "derek is not in the sudoers file" but sudoers never contains passwords.
Oct
3
comment Why doesn't Ctrl+R do anything in Ubuntu's terminal?
Weird. I'm going with the "demonic possession hypothesis". Be careful if your toaster starts acting up. ;)
Oct
2
comment Why doesn't Ctrl+R do anything in Ubuntu's terminal?
If possible, take gnome-terminal out of the path and try the GUI gvim. If ^R doesn't work there, then xev will show you the KeyPress and KeyRelease events. If xev doesn't show a keysym CONTROL and keysym r, contact an exorcist.
Sep
21
comment Why thepiratebay.se showing the content of /var/www/index.html?
Your internet provider may be redirecting thepiratebay.se to localhost.