Truth be told 16.10 fixes the pulseaudio 8 bugs I've fixed in 16.04 by hand so I don't need the pulseaudio 9 update it contains. Besides I just want to learn about "snaps", Unity 8, and that new virtual printing thing they announced recently. I'm keeping my 16.04 on sdc and 14.04 on sdb and install 17.04 on sda which is the fastest SSD anyway. When it goes live in April I'll be prepared already.
@Serg Well you shouldn't VTC your friends, you should come to chat and just say "I'm concerned your thing might get nuked..."
Naah... you need professional curtesy... like when one doctor sees another screw up he doesn't go to the press he says "oh btw Joe that was the wrong drug to administer that's why the patient died".
@Serg I can understand that since pipes are dynamic, with buffers that might change size during execution a seek would need some extra thought but still sounds reasonable to let the user skip some parts of the buffer he already knows are unnecessary :/
@IanC well, at least as far as I understand , it's simply because pipe is FIFO structure, it's not exactly a set block of data on disk, which you can traverse
So far I am reading pipe line by line, but eventually I want to implement some form of circular buffer/queue so that i can discard unnecessary bits
@edwinksl that's the thing. Super generic code. Probably not even copyrightable. I never understood the giant licensing arguments on SO. 99% of the code there doesn't meet the originality requirements.
the other thing about attributes is the poster copied it from someone, who got it from someone, who copied it from someone... so the attribute chain would get very very long indeed if everyone did it.
I have no problem attributing someone's original work that I'm using, but I would question why I would be using that much of someone else's code in the first place.
@Serg that's the only reason I copied it, because it was literally the only correct way to do it and I would have just typed the exact same things myself :p
Meanwhile, I'm farming questions on scripts badge. I wanna hit that silver, so digging through all the old and forgotten and downvoted questions from god knows when
Some of the things OPs post are just ewww, like : for word in $(cat somefile.txt) ; do . . .done Just . . .ewww
I think AU and U&L made my standards set way too high . . .
lol I don't think so... I think he had different motives which I frankly can't devine.
It would be an interesting meta question... "why was this question protected for no apparent reason?"
Anyway I think I saved the OP's skin with my comment under his question after all the other comments flamed him to death and got incredible number of raised flags (upvotes).
I think the idea wouldn't be prevent the command usage, but restrict the users he sets up for his friends from accessing stuff it would be bad for him to be deleted, no worries if they can only delete stuff from their users home dir
I think all the comments flaming him assumed he let his friends use his login account and no one thought to suggest they use a guest account with restrictions. I suggested that in my comment under his question... but I still posted an answer to what he requested... however most popular voted answer (Thomas Wards) was an opinion "You don't want to password protect rm!"... he got 40 votes.
Imagine if I could get 40 votes on every question where I said "You don't want to ask that question!" and people agreed :p
@WinEunuuchs2Unix you don't want to password protect rm command simply because that command is used in many many scripts under /bin and /usr/bin . You password protect that command and all those scripts break, which leads to consequence of breaking your system
well, I don't think Thomas answer was only opinion-based, he kind of explained why setting up a password to protect rm can break things up and gave an alternative
@WinEunuuchs2Unix "Revise the password "WE2U" to anything you like. Keep in mind anyone smart enough to locate the rm command and figures out it's a script, can look at your password. So don't use the same password as your bank account."
That's a big problem. Not saying I agree with your approach but you could use a sha256 hash and the `sha256sum` command to make it 'alright' that the person can read the script
@IanC I've got $('a').click() handling clicking on the link elements of my page. Super simple page. All the links do almost the same thing, insert elements somewhere on the page. Just the somewhere and the element's id change. Is there a way I can refer to the <a> element that got clicked on? I tried this but that didn't work.
@IanC Encrypting a password within a script... buddy that sounds brilliant... I think you should post that question and answer it... bet you'll get 100 points at least :)
read PASSWORD
PASSWORD_HASH=$(printf $PASSWORD | sha256sum)
if [[ "$PASSWORD_HASH" != "14318b2b0ce00f00bea8138cb523d5ae8de6a1063bd279efaf48d972421bd2d6" ]]; then
#invalid password code
fi
don't forget the "" around "$PASSWORD" on your script, or a empty PASSWORD will crash the script @WinEunuuchs2Unix
@Seth I don't know much of web-dev to be honest, I played around with it a while back when trying to set a small functional blog. Since my purpose was learning the tools I wanted to go for the raw stuff, but I heard so many good things on jQuery I'm willing to learn it :)
@IanC oh someone in an organization I'm part of asked me if I could write a computer system for their elections. I don't think that's a good idea (paper is almost always best) but I thought it might be a fun challenge.
@Seth whoever loses the elections can blame Russian Hacking and Putin was personally involved because as Obama said "Nothing happens in Russia without Putin personally knowing about it".
@Seth there's this big controverse about whether paper votes are more fraud-safe then electronic votes, IMHO there are vulnerabilities on both for a person/organization with a bit will to fraud an election :/
I had an idea where voting machines have a smartcard in them, distributed by govt. All votes are stored in a DB with RSA sigs, and can be independently verified.
Votes can't be forged without the smartcard, so...
#!/bin/bash
# We'll want to report who called us when rm fails
PARENT_COMMAND="$(ps -o comm= $PPID)"
if [[ $(id -u) != 0 ]]; then # Running as root (ie "sudo rm ...") doesn't need password here
# Get password with no screen echo
stty -echo
printf "rm (Remove) Password: "
read PASSWORD
PASSWORD_HASH=$(printf "$PASSWORD" | sha256sum)
stty echo
echo
# Password matches?
# The compared hash is the output of $(printf "WE2U" | sha256sum). Other passwords can be used here.
I didn't test it, because I still don't think it's a good idea
@KazWolfe I said I upvoted it... I didn't say I read it :P
Weird but true story... I had to upvote 600 questions to get a gold badge... and in the process I dropped from top .12% to .20% for the quarter.... In essence I handed out 3000 points to others instead of writing answers to questions and making points. A manager at work calls that "chasing the shiny thing".
Ugghh I just bought DVD's from the dollar store and they are shiny on both sides... which side is supposed to be up????
I actually need to practice and bump up my level. I wanna go for HSK level 5 exam, which is like Chinese proficiency exam for foreigners ( aka non-chinese folks )
OOooo, very interesting. So apparently every streamer has their own set up. On come streamers you can select different servers, and other have only one server. Probably has something to do with ranking
I studied some spanish but . . . .it's like pushing a heavy car up the hill. I can feel interested for a while, but then i loose interest
I really want to learn Korean and Cantonese Chinese. Japanese would be nice, too, since that's what i originally wanted to learn
freakin' flash . . . You're gone - there's downside, but when using flash , it's not better either. Can't we have a better system for streaming stuff ?