« first day (2523 days earlier)      last day (2725 days later) » 

01:01
@Kusalananda the close-vote review queue was probably my "fault"; I plow through Data Explorer queries when the data's "hot & fresh" on Sundays and muck around quite a bit-- grammar edits, VTC, re-tags, etc.
I think I actually ran myself out of close votes that day.
 
3 hours later…
04:30
isn't straight Python programming off topic here?
0
Q: Modification needed in python Script

stari need to sort a file by last column (ascending) and grep the top hundred lines import sys from operator import itemgetter file_name = sys.argv[1] with open(file_name) as file: file_contents = file.read() lines = file_contents.split("\n")[1:-1] #print lines data = [(i, float(line.split()[-1...

 
2 hours later…
06:58
@JeffSchaller Aha.
@FaheemMitha Yes, off-topic.
@FaheemMitha I voted to migrate it to SO, but @terdon always says not to migrate crap. I don't know if this is crap or not. It does contain everything needed to debug it, but it's not pretty.
 
1 hour later…
08:11
@Kusalananda Does that "on topic for SO" thing actually constitute a process to migrate the question to SO? That isn't clear to me.
It was migrated to SO.
This one is really confusing. The poster is trying to follow instructions, but the results aren't great. In case anyone feels like jumping in.
1
Q: APT commands stall on `update-initramfs: Generating /boot/initrd.img-4.8.0-58-generic`

techie716Whenever I try to use apt to install or upgrade and also when I try to launch Synaptic Package Manager I get an error that says: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. Then when I run the command It stalls always at: ***update-initram...

Generally these questions are easy to clear up, but of course the poster has to have some idea what he/she is doing.
08:51
@FaheemMitha It does, I think. And we don't want to migrate crap. This was not crap, but not very good either.
@FaheemMitha I'm not even reading that to the end.
@Kusalananda I'll try to bear that in mind.
@Kusalananda Yes, it's kind of a mess, isn't it?
 
5 hours later…
13:25
I'm trying to do:
pdfinfo *tax.2011-2012* | grep "Pages:"
but this doesn't work, because pdfinfo doesn't look about globs. So something else is needed. Possibly find and friends.
@FaheemMitha a for loop should suffice:
for pdf in *tax.2011-2012*; do pdfinfo $pdf; done | grep "Pages:"
@StephenKitt oh. Thanks.
Ah, only one file at a time...
I'm trying:
for pdf in *tax.2011-2012*; do qpdf --show-npages $pdf; done
But what do I add to get it to echo a filename before the qpdf call each time?
Something like this, perhaps:
for pdf in *tax.2011-2012*; echo $pdf; do qpdf --show-npages $pdf; done
14:02
@FaheemMitha for pdf in *tax.2011-2012*; do echo -n "$pdf: "; qpdf --show-npages $pdf; done
14:31
@StephenKitt Thank you.
 
4 hours later…
18:02
@Pseudohuman what is the meaning of life?
42
(according to the book The Hitchhiker's Guide to the Galaxy, by Douglas Adams)
@Pseudohuman how many people are alive on earth right now?
@JeffSchaller (data not available)
18:19
@Pseudohuman Who am I?
Hmm. Am I in Fargo?
Must be a proxy somewhere...
@Kusalananda maybe Pseudohuman's last known IP, as far as Wolfram Alpha's concerned -- presumably a Stack site?
@pseudohuman Who am I?
@JeffSchaller I do not understand.
@Pseudohuman Do you understand the words coming out of my mouth?
18:26
@JeffSchaller I do not understand.
@Pseudohuman OK, you knew this a few minutes ago: Who is Kusalananda?
@JeffSchaller I do not understand.
Obviously over my stupid questions limit for the day.
@JeffSchaller :-)
@JeffSchaller Got another golden hammer the other day, btw. Now every shell question is a nail... ohnoes!
@Kusalananda congratulations! A hammer for each hand!
18:32
See Kusalananda bash shell. Bash shell! Bash shell!
speaking of hands, I still get a chuckle out of your: "Dvorak user, but generally a nice guy"
to borrow a song,
Kusalananda sits on the old shell tree,
Merry merry king of the bash is he.
Laugh, Kusalananda laugh, Kusalananda
Gay your life must be!
It helped me with RSI (never got it, but could feel it creep up on me), or so I like to think.
@JeffSchaller I'll save that somewhere :-) thanks! Well done!
I tried it once; taped a printout to my monitor (without changing the physical keyboard) and figured out the relevant hotkeys to switch keyboard layouts; it would have been better except for all the special characters I frequently type for shell scripts.
@Kusalananda shamelessly googled from wordsforlife.org.uk/songs/…, as I couldn't remember all the lyrics
18:36
I couldn't have switched without going all the way and changing the actual keys. Took me a year to be as fluent as on QWERTY though.
Now I struggle as soon as I'm forced to use an old keyboard.
"That's no monkey, that's me." :-D
@Kusalananda lol; my coworkers at the time could tell when I was trying it out -- from a ~100 wpm to probably 10wpm
18:53
@JeffSchaller Yeah, that sounds about right.
I see the bot is back. Though it seems like a dim bot, as bots go.
19:10
@Pseudohuman how many monsters in Loch Ness
0
(For the most part, the scientific community considers evidence of the existence of such creatures to be a combination of misidentification and deliberate hoaxes.)
19:23
@Pseudohuman why don't you love me?
@JeffSchaller composer | Martin Johnson
@Pseudohuman how awesome is vi?
@JeffSchaller I do not understand.
wrong! the correct answer was: "awesome (English word)"
@Pseudohuman vi from swedish
19:34
(general) us
(person pronoun - subject) we
Correct!
@Pseudohuman sed from swedish
@Kusalananda (information not available)
Oh?
@Pseudohuman ed from swedish
(commitment) vow | oath
(law) oath
There you go, that's why we need to use ed!
("sed" is, btw, "custom" or "tradition")
19:38
so "sed" is a smaller "ed" ?
Only 16 questions tagged sniff
@JeffSchaller Yeah, that's kinda sad.
@JeffSchaller I love the fact that /bin/ed is just 24 bytes and timestamped in 1929! :-D
@Kusalananda 24 bytes?!? that's on a *BSD system?
@JeffSchaller That's from the joke that you linked, /usr/bin/emacs is "5.89824e37" bytes.
I've seen that text many times before, but haven't read the file listing properly before.
19:57
@Kusalananda ah! I clearly hadn't read it recently either :)
20:28
unix.stackexchange.com/questions/111204/… .... that is an odd "answer" to get awarded a bounty
@JeffSchaller man joke
anthony@Zia:~$ man joke
No manual entry for joke
@derobert that guy has been awarding bounties on all the sites, presumably as part of quitting SE
... so I'm afraid we're out of luck
some of his bounties have been refunded, but now that it's been awarded it's too late
20:37
This isn't a joke, but the title is hilarious. It's the title of the only unanswered ed-question on UL: Ed script only works if typed slowly
AFAICT, that's not actually an answer—I suppose it'll not actually matter if its deleted? I hope bountied answers can still be deleted...
@derobert it's plagiarized
@derobert as usual, it's wholly copy-pasted except for the content-free grammatically-incorrect sentences at the beginning and at the end
 
1 hour later…
21:56
Hello
I am facing an issue related to dynamic linking, looked online but couldn t find anything related to my specific case.
What happens is that on my laptop I apparently didn't install my library on the correct place.
I faced issues like "xyz.so not found: cannot open shared object" when running my code
I solved this issue by adding th path of my libraries to a conf file in /etc and updating the dynamic linker using ldconfig
now when I give my executable to somebody else and he tries to run this executable
he gets exactly the same error as I used to have "xyz.so not found: cannot open shared object"
What can the other person do in order to be able to run my code without having to install the entire library?
22:16
@LandonZeKepitelOfGreytBritn That's how dynamic linking works. The library is linked in at run-time, so it needs to be available at run-time.
There are a bunch of ways to distribute it with your app—from static linking to containers...
You can also specify the path for the dynamic linker to look for the library, outside the normal system locations (the rpath).
Most of these are more questions for Stack Overflow than here.
hmm I was hoping there would be an easy work around to statically link against openCV so's...
I saw people on SO using CMake in order to get around this issue
well, dynamic v. static linking to it depends on the linker flags you pass when building your app
Questions about that would go on Stack Overflow.
@derobert fine fine fine
Hello :D
22:32
Do we have a good thread for “put environment variables in .profile and bash settings in .bashrc”?
This keeps coming up again and again and again and again and again and again and again
but every time the answers tend to be specific to the asker's particular XY problem
the least worst I can easily find is
84
Q: Is there a ".bashrc" equivalent file read by all shells?

StefanIs ~/.bashrc the only place to specify user specific environment variables, aliases, modifications to PATH variable, etc? I ask because it seems that ~/.bashrc seems to be bash-only, but other shells exist too…

but that lacks a detailed answer and the accepted answer is a bit besides the point

« first day (2523 days earlier)      last day (2725 days later) »