189 reputation
110
bio website jacksblackboard.blogspot.it
location Montereale Valcellina (Italy)
age 22
visits member for 1 year, 9 months
seen Jul 25 at 10:44

I'm a Computer Science student at the Scuola Superiore of the University of Udine. I've been interested in Computer Science since my third high-school year, and thus I've decided to apply to join one of the Schools of Excellence, and succeeded in this task.


Jul
2
comment Why is my tar file bigger than the directory backed up
As a theoretical note: it's easy to show that, given any data-compressing algorithm, there exists texts such that the resulting output is at least as long as the original text. Otherwise, given a string of any length, X you could compress it to Y, a string of length strictly less than the length of X. This means that any file could be compressed, by multiple applications of the algorithm, to the empty file, which is absurd since data-compressing algorithms must be bijective/reversible. Hence it's not strange for archives to have bigger size than the original data.
Jun
23
comment Why using more threads makes it slower than using less threads
Your example is misleading. It would be better to say something like: "You have a corridor that you can fit four people down, side by side and it is used by you and other people for different tasks. There is a referee that decides who can go through the corridor. Then the most efficient number of people is bigger than 4 and less than some number, where your people start to queue[highly context dependent]." Usually having some threads more than the number of CPUs performs better than using exactly 4 threads. If you are the only one using the CPU, then 4 is the best number.
May
25
comment Why are reboot, shutdown and poweroff symlinks to systemctl?
The arguments to the main are reversed. argc comes before argv.
Apr
16
comment Why do some Linux files have a 'd' suffix?
Oh my God! I'd have never guessed that it was taken from Maxwell's daemon!
Nov
26
accepted Check if the residence's connection has internet access
Nov
26
answered Check if the residence's connection has internet access
Nov
22
comment Where should I keep the source files of the compiled applications?
The PATH variable is only used to search for executables. Libraries are searched in a different set of directories and headers in yet an other set. If you use gcc there is an option -print-search-dirs that prints the default paths.
Nov
22
comment Where should I keep the source files of the compiled applications?
I'm not a Slackware user, but generally headers go under /usr/include or /usr/local/include. There should also be a /usr/src and /usr/local/src where you can put the source code.
Nov
19
comment Check if the residence's connection has internet access
This does not work. It will always return "true" even when I don't actually have internet access.
Nov
19
comment Check if the residence's connection has internet access
No, I'm not on a VM.
Nov
19
comment Check if the residence's connection has internet access
Yes, but I have to connect through an Ethernet cable and not wifi.
Nov
18
comment Check if the residence's connection has internet access
Uhm. So I should test ifconfig's output and when the IP changes I should kill the browser and restart it?
Nov
18
comment Check if the residence's connection has internet access
@jippie I've added some more information at the bottom of the question. As I say there, it's definitely not ssh dropping the connection. I'm wondering if it could be a dynamic IP issue. Maybe the computer's IP get reassigned and thus ssh connections drop(but I thought IP would not change if the computer does not at least reboot...)
Nov
18
revised Check if the residence's connection has internet access
Added more information.
Nov
18
comment Check if the residence's connection has internet access
On a side note, during this weekend I tested that ssh works from home, but after some hours the connection was lost.
Nov
18
awarded  Commentator
Nov
18
comment Check if the residence's connection has internet access
@jippie I tried now but it does not seem to work, it returns the same output when having internet access and when not having it. Maybe the DNS lookup is cached? If so how to clear the cache?
Nov
18
asked Check if the residence's connection has internet access
Nov
14
comment Remove /var partition and replace it with /var into / (root) partition
I strongly doubt this works. At least reading @rozcietrzewiacz's answer I believe this will break your system.
Nov
14
accepted Remove /var partition and replace it with /var into / (root) partition