« first day (1346 days earlier)      last day (3610 days later) » 

12:16 AM
hey @terdon you're the one who uses Cinnamon, right?
can you check to see if this works?
1
A: How to recover from desktop freeze without losing running windows?

strugeeI don't know what the Cinnamon guys renamed gnome-shell when they forked, so you'll have to find this out. It's probably either cinnamon-shell or cinnamon or something. I'll assume it's called cinnamon. Now, the GNOME Shell - and by extension, Cinnamon - will respond to SIGHUP by completely rein...

 
 
4 hours later…
3:58 AM
@strugee - ***emacs***
The community of emacs editing enthusiasts was adamant that the full emacs editor not be included in the base documents because they were concerned that an attempt to standardize this very powerful environment would encourage vendors to ship versions conforming strictly to the standard, but lacking the extensibility required by the community. The author of the original emacs program also expressed his desire to omit the program. Furthermore, there were a number of historical UNIX systems that did not include emacs, or included it without supporting it, but there were
POSIX spec rationale:
 
@mikeserv yes, you showed this to me a while ago
it's in man posix
 
M-x shell<enter>vim<enter>:!emacs
inception
 
@casey even better:
M-x eshell<enter>vim<enter>:!emacs
 
@strugee - it's been awhile since I read the former - I didn't know this and that at the bottom of man sh were the same thing.
 
@mikeserv ah
 
 
7 hours later…
11:25 AM
anyone not using debian can check this answer? askubuntu.com/a/380765/169736 I'm guessing is either a bug in the manual or a bug in pulseaudio
 
@StéphaneChazelas You here?
If so comments are getting out of hand and I wanted to make sure I understood this correctly:
declare is the bash equivalent of ksh's typeset. bash, zsh also support typeset so in that regard, typeset is more portable. export -p is POSIX, but it doesn't take any argument and its output is shell dependent (though it's well specified for POSIX shells, so for instance when bash or ksh is called as sh). Remember to quote your variables; using the split+glob operator here doesn't make sense. — Stéphane Chazelas 19 hours ago
Do I rightly gather that the only bonus would be for shells other that bash/zsh? I don't have much experience testing that so I only tested my code in those two shells (and denoted it as such) but I can swap out declare for typeset if it's a net gain and makes it work on other shells.
 
@Caleb typeset is from ksh, but I don't think ksh has a typeset -g. ksh93 is now opensource (since around 2000) so you should be able to experiment with it.
Gilles already has the export -p covered though I don't think it would be useful to the OP. Anyway POSIX only specifies scalar variables, and serialising those by hand should be relatively easy (adding the quoting with awk for instance).
 
11:41 AM
@StéphaneChazelas I think I'll skip it. I'm not sure on whether to keep or ditch the last section on keeping the data in a single file. It's broken and warning or not I think it might be better to ditch it rather than encourage the use of broken code --- unless there is a way out of that mess.
 
 
1 hour later…
12:58 PM
@Braiam - I think its a manual bug. Most of those commands can be used several ways - but most of those ways are via standard-in - like via the http-shell or pacmd. So it works fine like echo ... -10 | pacmd but needs the extra shell safety of the -- so it doesn't get interpreted as an option on the command line.
 
1:24 PM
@Gilles I admit that I very consciously sometimes post (solid) assumptions on the assumption that if they are wrong, people are more likely to call this out ("This is wrong") than act on their own initiative ("Here's my answer"). That may not make for the best answer, but (casual estimate) it is a correct answer 95% of the time. The more in-depth answers in this particular scored lower because they were posted much later. I don't at all like the fact that S.E. encourages quicker...
...vs. more in-depth answers, but that is very clearly the case.
-> "When in Rome..."
 
@goldilocks Hey! Long time, no see :). Do you feel that's the case here as well? I feel that we tend to upvote in depth answers. A lot.
 
@terdon I think it's more noticeable on S.O., where the first sufficient (correct == sufficient) tends to collect all the points then the volume of viewers falls off rapidly. I think that is sort of inevitable, as opposed to indicating a moral failure of the participants, lol. Meaning, I agree we do do better, but probably mostly because we have a much lower volume (vs. being much better people). Systems involve trade-offs. The positive side of this is it entourages people to provide
a quick sufficient answer if they don't have time to get in-depth.
Punishing people for being correct but not in-depth would simply discourage answers.
 
True. I've just found that, in general, in depth answers do rise to the top here. On the flipside, very simple answers to silly little questions get way too many upvotes.
 
Life is imperfect ;)
 
1:39 PM
Yeah. I'm hoping they'll fix that one for life 2.0.
 
@goldilocks Which case of quicker vs in depth are we talking about here?
 
@Caleb Uh-oh, lol:
13
A: Where does uname really get its information from?

goldilocksThe uname utility gets its information from the uname() system call. It populates a struct like this (see man 2 uname): struct utsname { char sysname[]; /* Operating system name (e.g., "Linux") */ char nodename[]; /* Name within "some implementation-defined ...

I don't see how I possibly deserve any down votes, but there are some late answers there that definitely deserve up votes. Note that none of them is explicit about how to actually change the value, they just pinpoint its origin further.
@terdon BTW I don't think my assumption that if someone answers wrong, "people are more likely to call this out...than act on their own initiative" indicates a moral failing either. It just makes more sense. It is more important to correct what's wrong!
 
@goldilocks Absolutely.
 
@goldilocks Well first of all before I even read the answers involved let me suggest that you might be thinking about votes all the wrong way. Not all "downvotes" are because an answer is inherently bad.
The vote system is first and formost a crowd-sourced way to SORT posts. In the case of vote disparity, it might be somebody thought the sort order of posts was off and used the full weight of their vote (1 up + 1 down = sort weight of 2) to get the sort in line so the most useful answer would get to the top.
 
1:55 PM
@Caleb I upvote answers that deserve it, but I would never downvote a correct answer, period, as this is a discouragement to providing correct answers. Otherwise I would too much be in the position of downvoting (correct, but less thorough) answers to a question that I have answered, which seems like gaming the system excessively.
I do sometimes feel that I've gotten less votes for a better answer, but again, systems have trade-offs. I do not think that S.E. would be perfect "if only everyone used it properly", etc.
@Caleb Out of curiosity, have you ever down voted a question to, as you say, "correct the sort" and actually left a comment , "Although this is answer is correct, I am downvoting because there is a better answer"?
 
@goldilocks Maybe you would never do that. but you don't determine what votes mean to other people or control when they use them or don't use them. You need to realize it's' a crowd sourced system and different things trigger vote actions for different people. Some people may use it for the reason I described, and that is not wrong. That is the system working how it was designed to. The aggregate of different people's reasoning for voting is what makes the final result a useful metric.
@goldilocks As a matter of fact I have, but very infrequently (and not in this case!)
And no matter what the reason it is rarely a good idea to comment specifically that you downvoted. That does not lead to productive interactions. Instead downoting with a comment that only says what is wrong or how the post could be improved with no mention of voting at all is almost always more constructive.
 
@Caleb Sure -- although my opinion of democracy in general is that what it is best at is keeping tyranny in check, and not necessary producing the best result. That's a system and that's the trade-off. Using S.E. as an example, it is better at discouraging idiocy, etc, than encouraging quality (which it does, but to a lesser extent).
@Caleb This (the propensity for grudges and spiraling negativity) is the ONLY reason I think that leaving a comment for a downvote should not be mandatory. If not for that (e.g., if you could leave a comment anonymously), it should be. Punishment is not correction, and correction should be preferred to punishment. Down voting is inherently negative, but it is a necessity.
 
 
2 hours later…
4:17 PM
@Ramesh Wow, the OP really made things awkward for that question!
1 message moved from Unix 2014 Election
 
5:10 PM
@Caleb, yeah. I was hoping to fix the answer before which he accepted and that made things awkward for me.
Unfortunately, I was not even able to delete the answer .
 
5:21 PM
This is still broken. Read the question again for the files' locations. — Sparhawk 1 hour ago
So when giving some code to the OP, should we provide the exact locations and everything? I mean, is it that big a deal for the OP to figure that out?
 
Really depends on the question. I tend to give a generic example, and then provide more specific instructions depending on how I judge the OP to handle it on their own. For total newbies I usually provide both generic and full.
 
@Seth, even before I could realize my code was broken, the OP had accepted the answer.
 
@Ramesh If you are reasonably clear (which the current version is) then no, that's ridiculous -- this is the first time I've seen anyone complain "you didn't quote the exact same paths" and I pretty much always use /your/whatever/path unless the original is really short. Dumbing things down excessively is not productive.
 
@Ramesh Well apparently it worked for him then :)
I'm not sure what to do in this case..
 
@goldilocks, yeah. I checked the command before posting my answer. I normally check the commands that I give as an answer. Anyways, after I posted the answer when I realized, the cp won't work, I was trying to fix it. But in the mean time, the OP had accepted which is unbelievable :)
 
5:37 PM
That's a lot of "he's" in one sentence :S
(referring to my comment)
 
If anyone can figure this out, there's a 100 point bounty to gain:
5
Q: What used the linux memory? Low cache, low buffer, not a VM

JasonFirst of all, yes, I have read LinuxAteMyRAM, which doesn't explain my situation. # free -tm total used free shared buffers cached Mem: 48149 43948 4200 0 4 75 -/+ buffers/cache: 43868 4280 Swap: 38287...

 
can someone uptick this superuser.com/questions/764876/… along with derobert's comment
 
5:54 PM
Using VIM, why can't I just do :s/:/-/g to search-and-replace all colons with a dash?
 
@Ramesh I think you're reading something into that comment and missing the point it was trying to make. The issues is not that your code does not use the same path examples as the OP (that is never really expected) but that the OP describes a tree scenario where he wants instances of a file from multiple points in the tree to be flattened into a single dir structure. Your code does not handle a tree at all, it only handles the current directory.
Also @Seth re your comment there: your argument about the OP accepting it being evidence that it doesn't need fixing it because the OP for some reason accepted that answer before it was even fixed to do anything at all (the first version was broken in a way that would have totally messed things up and not done anything useful ever if the paths had been adapted).
 
@CanadianLuke You can, but that applies only to one line. If you want more, you need a number after the g.
 
@goldilocks Turns out I needed to use :%s, not just :s. Root Access chat room got it for me. Vim was complaining it couldn't find any patterns matching a colon.
 
6:09 PM
@CanadianLuke Seems odd since I did test that to be sure (i.e., :s/:/-/g works here, vim 7.4).
Although again, only to one line.
 
Weird... How do I tell what version of Vim I have?
7.2
OK
 
Did not know about using %s to make things apply to the whole buffer tho! I always use g100000 or something. WRT version, start vim with no doc and it says.
 
Still seems... Odd... I thought the search would have been the same?
 
@CanadianLuke Well -- g means global as per regexp generally, but what "global" means to vim is "the current line". So without g, you would replace only the first colon, with g you'd replace every colon in the line; with g10 it would apply to this line + the next 9. Hence, starting at the top and using g10000 generally covers things -- but as I just learned, %s will make it buffer wide :) Vim is an endless learning experience...
lol
 
The hell? Weird... Thanks though
 
6:19 PM
@Caleb No, I said the paths didn't need to be matched exactly to what the question said. That is just a silly nitpick.
Everyone agrees the first revision was broken and needed fixing.
 
@Seth And that's true enough, but I don't think that's what that comment was about in the first place.
(see my last post to Ramesh above^^^^).
 
Perhaps it wasn't, but that's what at least 3 people took it as so...
The entire thing is deleted now though
 
If it was, I would agree that the criticism is bogus. But I think the commenter just failed to explain the problem he saw (at least if he and I saw the same thing). Most of the other answers handle the tree scenario, that answer does not.
 
I'd blame the potential misinterpretation of the "wrong paths" on the person who wrote the comment although @Caleb thanks for clearing that up :/
 
6:34 PM
Am I the only person who, upon getting a new computer, immediately runs memtest on it?
 
No.
 
@derobert Depends. If it's a desktop, I'll have built it myself and thus bought new ram. In that case i usually memtest before installing winders. If it's a laptop that wasn't configurable the first thing i do is get a new SSD (if it needs one) and new ram. Then I memtest.
 
Well, yeah, after the hardware build is done. But definitely before using it, or probably even installing an OS on it.
 
The way I see it is there's no point in installing the OS if I don't know that i can trust my ram.
 
@DavidFreitag exactly. But sometimes I've just gone ahead and done the Debian install, when I'm fairly confident the RAM is good, and then I do the memtest from the grub menu.
Obviously, bad RAM would mean time to reinstall. But it was a 30-minute install, so no big loss.
 
6:43 PM
@derobert I have an 8gb super low-profile flash drive. I run some pretty extensive tests before I even think about installing an os
 
@DavidFreitag Ah, yeah, the fun of media that wears out from writes.
 
@derobert @Ramesh ok
This seems like the most complete answer, but only 3 upvotes?
3
A: Where does uname get its information from?

V13The data is stored in init/version.c: struct uts_namespace init_uts_ns = { .kref = { .refcount = ATOMIC_INIT(2), }, .name = { .sysname = UTS_SYSNAME, .nodename = UTS_NODENAME, .release ...

 
@derobert, consider it done ;)
@FaheemMitha, upvoted :)
 
@Ramesh Well, only if you agree.
 
Sometimes even if I have not completely understood something, I do upvotes for the effort and time the person has put in for answering.
 
6:53 PM
@derobert Nope. That's how I discovered my RAM had been miss packaged for the last desktop I put together. I ordered 16 Gigs. Memtest told me I had 32 Gigs when I got the build together.
 
@Ramesh I think you're supposed to upvote only for correctness and other factors like throughness and overall quality.
But voting is a pretty subjective thing. As witnessed by the cow question.
 
@FaheemMitha, I know but sometimes it will be encouraging for newer users to answer more questions if they are upvoted. Though I agree it should be for the quality rather than the quantity.
@Braiam, did you watch finale of GoT?
 
@Ramesh It's Ok to upvote as long as the answers are not rubbish, I guess.
 
Don't ever upvote anything incorrect.
 
6:56 PM
@FaheemMitha See my comment at 9:23 EST for a discussion about that. It's simply because those answers were posted much later than mine.
 
@goldilocks I think the times are all local to everyone.
 
@FaheemMitha That's why I put my zone ;) You'll have to do the math. I dunno how to link to my own chat comment.
 
I guess @Caleb is showing off his moderator chops. :-)
 
@Caleb A nice surprise, you are probably the only person to every get a pleasant surprise from memtest
 
This one?
5 hours ago, by goldilocks
I don't see how I possibly deserve any down votes, but there are some late answers there that definitely deserve up votes. Note that none of them is explicit about how to actually change the value, they just pinpoint its origin further.
 
6:59 PM
@derobert It was a first in 15 years of running it on every system I laid hands on (which is a lot)!
 
I agree. I mean it will be kind of difficult to choose now considering all the candidates are equally efficient.
 
I've run it for years on every system I've got my hands on (which is probably only 200 or so)... and I've only ever had bad news from it. You're lucky.
 
The answer I linked to above is not explicit about how to change the value (which I pointed out) but it did give all the relevant files, so unless the build actually rewrites stuff on the fly it should just be a matter of changing those lines.
@Caleb so you got double the RAM you ordered? Are you required to do anything about it?
 
@FaheemMitha Yes. I felt bad enough about it that I talked to my vendor; they said "oops" and "keep it".
 
@derobert It's a live environment. I'm not really worried about writes. Also, the drive was like $5
 
7:03 PM
@Caleb Well, that was very moral of you. I bet you leave notes under windshields when you ding a car too. :-)
@derobert any thoughts about
2
Q: Adjusting constrast when scanning using SANE

Faheem MithaI just did a scan with my new Brother multifunction CP-7065DN printer using the SANE frontend gscan2pdf. The paper in question was handwritten, and the scan was too light. When I reprinted the scan, it was significantly lighter than the original; too light. I'm interested in ways to fix this pro...

?
 
@FaheemMitha I think it starts ~15 minutes before that, but close enough.
 
@FaheemMitha I'll look in a few, currently trying to answer two different questions already...
 
@FaheemMitha, by efficient and experience, they will be knowing which questions are a good fit and which are not.
 
@derobert Ok. No problem. Don't feel obliged. It is just that you seem to be able to answer all my other questions, sometimes when nobody else can...
@Caleb You missed a few there.
 
7:11 PM
1 message moved from Unix 2014 Election
 
@CanadianLuke You can. Why do you think you can't? That will only replace one line though, to get the whole file you need :%s/....
 
@FaheemMitha LOL, sorry my scan filters were a little off. This is why automated spam filtering, reply threading, etc. are hard. Even humans can't always filter messages correctly.
 
@Caleb You are transferring messages automatically via filters? Sounds a little hit and miss if so.
 
@FaheemMitha I think by 'scan filter' he means his brain scanning through the comments quickly.
 
@derobert oh, ok.
 
7:18 PM
@FaheemMitha Ya. It's called point and click after eyeballing the room.
 
@Caleb Ah. I personally don't think moving messages to the Election Chat room is all that important, but then I'm not standing as mod. :-)
 
@FaheemMitha I'm a bit OCD, but at the same time it is rarely seen as important to the people already chatting out of place (after all you've already found somebody to chat with so why would you care) but if you are another visitor dropping by now or later looking for what the election buzz has been it's helpful to have it all in one place. A lot of things will get repeated as well and it's easier to search and quote in one room than across several.
 
wow, candidates are crawling out of the woodwork!
but still no Evan Carroll?
 
@Gilles Several of us just commented on that.
 
@Caleb Sure. Not a complaint, just an observation.
 
7:33 PM
@Caleb That's actually fairly nice to anyone coming in the future, it would indeed be a PITA to find all the election stuff otherwise.
@Caleb or, in other words, "thank you".
 
@derobert Ha, I didn't realise we were writing for posterity. Dammit, I'm going to have to pick my words more carefully. Four score and seven years ago...
 
@FaheemMitha LOL, fun fact: chat messages are FAR more durable that comments on the main SE sites. Harder to find, but not ephemeral.
 
@Caleb Because they can't be edited or removed after a few minutes?
 
@FaheemMitha Yep. You can always go back and delete a main-site comment. You can't with a chat comment.
Unless you win a moderator election. Then you can.
 
@derobert That's it, then. I'm standing for election.
 
7:39 PM
@FaheemMitha Ya, and they don't get obsoleted by edits or just removed as "too chatty" as frequently happens to comments.
 
I can see lots of opportunities for becoming drunk with power. I shall become Big Brother and rewrite history. Ha Ha!
 
slm
@Gilles Ugh...
 
@FaheemMitha Better hurry. Time is running out!
 
@derobert I thought it was already over.
 
@FaheemMitha 11 minutes left
 
7:48 PM
@derobert Ah. Nah, I think I'll pass...
 
@FaheemMitha BTW, I looked at your scanning question. It's weird that its substantially lighter, the default settings ought to produce more or less the same brightness. If you scan something and pull it into GIMP, check the histogram, is the entire space used?
 
@derobert what histogram is that?
I don't really use GIMP.
And space of what?
 
@FaheemMitha Of the color values used... let me find the exact name in GIMP
 
@derobert ok
@derobert feel free to post a comment there. then it won't get lost.
 
Colors -> Levels, you should see which values are used... You may need to click the logarithmic scale button above the chart to see colors other than white.
 
7:54 PM
@derobert You just lost a line.
 
Lost a line? I edited out the first bit, after I realized it didn't need repeating (was going to post as a comment, but decided to put it here, as it's going to lead to more discussion...)
 
@derobert Oh, I thought it didn't hurt to repeat...
@derobert well, I'm going to try to go to sleep soon (up early tomorrow), so I wasn't going to try it now.
 
@FaheemMitha Ok. Well, I guess I'll go put it as a comment then, so you'll have it in the morning.
 
@derobert That would be good. Thanks.
 
8:11 PM
@FaheemMitha comment left.
 
@derobert Great, thanks.
@derobert ideally one would ajust the software levels to make a better choice. Any idea how to do that?
 
@FaheemMitha the software levels are basically that interface in GIMP... those are the black point, white point, and gamma
So you can find the right values in GIMP very quickly (because as you move them, you instantly see the result) and then put them into the scanning software.
 
@derobert Oh. Just to be clear, the levels in the scanning software are in play during the scan, and don't change things after the scan, correct?
 
@FaheemMitha Generally, yes
 
@derobert Right. Thanks.
 
8:15 PM
unpaper is also worth a try, its supposed to do that stuff automatically
 
@derobert I don't any specific mention of improving constrast.
 
@FaheemMitha Good question. Let see if I can find if it actually deals with white/black point (which is I'm pretty sure the lack of contrast you're seeing)
 
@derobert Yes.
 
Ok, it appears unpaper does not do that. Though it will convert a grayscale image to B&W, which would definitely give some contrast!
 
@derobert I'm impressed you figured that out so fast.
 
8:28 PM
0
Q: fastest way to grep jar file for a particular name in it?

WebbyI am trying to find all the jars which has spring in its name. I am working with windows and using cygwin to run the linux commands. Does my below command looks right? find . -name "*.jar" -exec jar tf '{}' \| grep -H "spring" \; For some reason, it is still processing and haven't got the res...

can someone tell me why is this option wrong for this question?
find /some/dir -type f -name "*spring*.jar"
 
@FaheemMitha grayscale->B&W was in the docs. Black & white point weren't, and neither did grep'ing the source find anything about them. So I think it doesn't, but can't be entirely sure.
 
@derobert ok
 
8:43 PM
@Ramesh it looks right. I think 1_CR misread the question (or focused on the OP's attempt, which doesn't match the stated requirements or the example)
 
8:55 PM
@Gilles, thanks. But I cannot guarantee the above command is faster than the original command. So it would be better if my answer is there in the comment section itself.
 
@Ramesh which original command? find . -name "*.jar" -exec jar tf '{}' \| grep -H "spring" \; looks through the content, which isn't what the text around it or the examples say
 
@Gilles, in that case the OP has to clarify his question clearly right?
 
@Ramesh I don't see a contradiction: his requirements and his examples match
His command doesn't match, but he hasn't been able to verify it
A good answer would provide your command, explain how it works, and explains how his command is doing something different
 
@Gilles, when I test the OPs original command, I get the error in my system as find: jar: no such file or directory.
 
@Ramesh well, obviously, if you don't have that command installed
here unzip would do just as well, mind you
 
9:04 PM
Oh ok. Thanks @Giles.
@Gilles, I have put the answer with the bookmark of this chat transcript too.
 
9:38 PM
@Gilles, let me know if anything else needs to be added in this answer. unix.stackexchange.com/a/137477/47538
I have tried to cover the OP's command also.
 
9:50 PM
@Gilles @Ramesh I think that this portion is important:
> with windows and using cygwin to run the linux commands
 
 
2 hours later…
11:30 PM
hey guys I think that question is duplicated:
1
Q: Disallow Changing of Passwords

Eric WolfI have a spare computer running as a small server doing various things, and I'd like to create another account for my cousin, so she can learn how do manage a server/run minecraft etc. I'd like to give her sudo privileges, but I was wondering if it's possible to disallow the use of the passwd uti...

 
@Networker flag it as a duplicate and it'll go into the review queue
 
I have flagged it
@Patrick
 
then you're done
2 days ago, by Gilles
@Braiam this isn't urgent. We'd eventually get through it through /review. Post only urgent things in chat, like spam
 
@Networker yep, it just came up in the review queue.
I'm voting to close right now.
 
11:41 PM
under what circumstances does Community review edits?
 
and why it rejects it. I guess removing thanks message is a good editing !
 
@strugee in this case, because someone else submitted an edit (not a suggested edit) while the suggestion was pending
 
@Gilles gotcha.
 

« first day (1346 days earlier)      last day (3610 days later) »