"how can I do x" can't possibly be just a matter of opinion. There may be multiple ways but that doesn't mean they are only true/right for those who "agree"
I'm certain there are dissenting opinions (well duh, ofc), but we still shouldn't say "no" or "you don't get a real answer" because homework. We're not a forum.
Homework or not homework , is not really relevant. Any other text processing or script question could be potentially a homework in disguise. Just because question is simplistic to us , it doesn't mean it's automatically homework. What counts is whether or not people put in effort into their research. This guy didn't, but at least he knows what sort of tools to use. He just have to google it. Again, we are also not required to critique people for asking help on homework
but at least we can give a push in right direction
I installed Antergos on my laptop, then installed Ubuntu after that. Ubuntu detected that I had another Linux installed, so it added Antergos to its grub menu. Every time I boot up, grub is loaded from the Ubuntu partition. How can I make the other grub file the default one?
My partitions are:
...
@edwinksl To be perfectly honest, watching those is alright, but being in passengers sit is not as fun. After being spoiled by american relatively tame traffic , I thought we're gonna crash every time I sat into a car in Ukraine. And potholes. The drive from airport to my hometown was just . . . . pizdets
@terdon from my interface techniques i know there is a limit to amount of USB connections , but i forget what it is. Something in the range of like 256 or so
And would there be issue (attenuation or whatever) before reaching the max? If they're all connected through the same single port on the machine, I would expect to have serious bandwidth problems long before hitting max.
now if RMS could just stop taking credit for being one of the backers of the groups that made GCC which enabled Linux to work (and, well, code contributions under the GPL), that'd be greeeeaaaat.
@JamesTobin hehe I've been trying to download the manual from ftp.gnu.org using ftp (I love using ftp) so I can wc -l it but I can't seem to find it on the server... let's just say it would be a very big number
> Umm, this discussion has gone on quite long enough, thank you very much. > > It doesn’t really _matter_ what people call Linux, as long as credit is given where credit is due (on both sides). Personally, I’ll very much continue to call it “Linux”
> Proponents of the term “Linux” argue it’s a mistake to focus only on GNU, as the average distribution contains software from a variety of organizations and could be called Mozilla/KDE/Apache/X.org/GNU/Linux with similar justification.
i know! If GNU gets their name in, let's add the name of every single contributor to the linux project!
For the first time ever, the name of an OS will take up more space than the OS itself!
By calling it just GNU/Linux, you're pushing the very same culture that GNU is trying to oppose, ironically.
(and no, linux is a fully-fledged operating system)
GNU can call Hurd GNU/Hurd OS because they made it.
GNU was big. I'm not denying that. RMS did something amazing. Again, fact. But he shouldn't be forcing credit into an OSS project that could technically stand without GNU.
@Zanna Not really, actually. I'll admit it was a poor choice of words, but the argument there is "He wrote it, he gets to name it. Respect his right to name his stuff just like we respect your right to name your stuff". More of an appeal to authorship than authority.
> Considering Linus started Linux and GNU applications need to be ported to Linux. I'll still consider GNU the secondary contributor. So Linux should come first. Not only that, but I still lack any reason to believe GNU belongs in the name.
If the GNU Project themselves wrote >50% of the code, and were the project maintainers and managers, I'd be fine with GNU/Linux. Neither of these are true.
@SeverusTux Because i) pretty much anything is faster than a shell loop. Any dedicated programming language will be faster almost by default. ii) Arronical's shell answer iterates over each file, checks whether it matches and then deletes. The grep approach of perl is much more efficient. Here's a test with a few thousand files:
$ touch file.{01..64}.name.{00001..01000}.end
$ ls | wc
64000 64000 1472000
$ time for f in ./* ; do file="${f%.*}"; if [[ $((10#${file##*.} % 12)) -ne 0 ]]; then rm "$f"; fi; done
real 2m44.258s
user 0m9.183s
sys 1m7.647s
$ touch file.{01..64}.name.{00001..01000}.end
$ time perl -e 'unlink grep{/(\d+)\.end/ && $1 % 12 != 0}@ARGV;' *
real 0m0.610s
user 0m0.317s
sys 0m0.290s
I was testing the speed of Bash and Python by running a loop 1 billion times.
$ cat python.py
#!/bin/python
# python v3.5
i=0;
while i<=1000000000:
i=i+1;
Bash code:
$ cat bash2.sh
#!/bin/bash
# bash v4.3
i=0
while [[ $i -le 1000000000 ]]
do
let i++
done
Using the time command I found o...
Is using a while loop to process text generally considered bad practice in POSIX shells?
As Stéphane Chazelas pointed out, some of the reasons for not using shell loop are conceptual, reliability, legibility, performance and security.
This answer explains the reliability and legibility aspects:...
It's a great language, no argument there. I'm just still not used to the idea of whitespace having meaning. If we could do away with that, I'd be happy.
"Since there are no begin/end brackets there cannot be a disagreement between grouping perceived by the parser and the human reader." Guido van Rossum (c)
"Many coding styles place begin/end brackets on a line by themself. This makes programs considerably longer and wastes valuable screen space, making it harder to get a good overview of a program." Same dutch dude (c)
No true Scotsman is an informal fallacy, an ad hoc attempt to retain an unreasoned assertion. When faced with a counterexample to a universal claim ("no Scotsman would do such a thing"), rather than denying the counterexample or rejecting the original claim, this fallacy modifies the subject of the assertion to exclude the specific case or others like it by rhetoric, without reference to any specific objective rule ("no true Scotsman would do such a thing"; i.e., those who perform that action are not part of our group and thus criticism of that action is not criticism of the group).
== Examples... ==
$ time bash -c 'for i in $(seq 1 1000000); do true; done'
real 0m1.877s
user 0m1.843s
sys 0m0.037s
$ time dash -c 'for i in $(seq 1 1000000); do true; done'
real 0m0.304s
user 0m0.293s
sys 0m0.017s
$ time perl -e 'for $i (1..1000000){true}'
real 0m0.022s
user 0m0.020s
sys 0m0.003s
That is, after all, the first bug listed in bash:
$ man bash | grep -A1 BUGS
BUGS
It's too big and too slow.
Sir when I'm going to setting option and click shutdown button it will shutdown but after some time I open that the battery become used I think it was not properly shutdown any thing else I have to do??
I have a text document that has a load of text which has an extra space added after every letter!
Example:
T h e b o o k a l s o h a s a n a n a l y t i c a l p u r p o s e w h i c h i s m o r e i m p o r t a n t…
Visually:
T␣h␣e␣␣b␣o␣o␣k␣␣a␣l␣s␣o␣␣h␣a␣s␣␣a␣n␣␣a␣n␣a␣l␣y␣t␣i␣c␣a␣l␣␣...
Is there a possibility to delete a tag in Hamster Time Tracking?
I went through all graphical menus but couldn't find any option.
The closest one is the following but it doesn't list my own tags:
I'm trying to join a Ubuntu 16.04 to a Windows domain (active directory) using realmd + sssd. Basically I was following this post which worked pretty well and I was able to join my server and could successfully authenticate as AD user. However there are two pieces missing in the integration:
Re...
A heads-up - I have been trying to clean up questions relating to the c-state bug and voted on a bunch of them as dupes. If you see anything about Bay Trail/random freezes etc in the CV queue, please consider reading the answer to the dupe target question which has a list of affected processors. If you know of any more processors or devices that have them, please add them to the list.
@JourneymanGeek I just read a rant answer about Bay Trail with 2 upvotes... my machine is really tricky... it does some especially funky stuff if I forget to blacklist certain modules...
Singapore, but its a language spoken in south india and parts of sri lanka. There's a fair population of indians in singapore and malaysia, traditionally from those parts
@Zanna its the principle of it. Some folks try to use it as an excuse to break rules. So typically unless its for a short period of time, or a joke, I tend to remind people to stick to english ;p
unless of course its a language site
@IanC one of 4, along with english, mandarin chinese and malay