« first day (2800 days earlier)      last day (2452 days later) » 

10:09
Ah, now I remember why I didn't investigate the Meson build system further... You write your build specs in Python.
I don't really do Python.
I do however do shell scripts and Makefiles. Which is why I ended up with GNU autotools.
 
1 hour later…
11:37
@Kusalananda I thought you did do Python.
12:16
@FaheemMitha Only when really forced to, and then I do it badly.
 
4 hours later…
15:59
@Kusalananda Python isn't such a hard language to do well.
This is kind of a funny one:
101
Q: I prepared my CV in LaTeX and exported it to PDF. How to deal with a recruiter who insists on CV in Word format?

matandkedFOREWORD I prefer to create documents in formats such as LaTeX, Markdown or RMarkdown. They're platform and version (of the particular editor) independent. You can export them to good looking PDF that is (I think) de facto standard for the CV. Unfortunately some recruiters force to "provide the...

A world without proprietary binary formats for text would be a slightly better and happier one. Unfortunately, this isn't the world we live in.
16:18
@FaheemMitha If I sit down to try to learn Python, I have a whole bunch of passwords and PIN-numbers that I'm assuming I will forget in the process :-) My head is full and I have no desire to learn more stuff I'm not going to use.
@Kusalananda Why do you think you would specifically forget passwords and PIN-numbers?
Even assuming you would forget something if you learn something new.
Which I'm not convinced is the case.
@FaheemMitha I'm just joking. No, I just "don't feel like it". I don't know Python, and I will quite happily continue to not know Python.
@Kusalananda Fair enough.
Hi @FaheemMitha @Kusalananda godag dag
@PrabhjotSingh Hi
16:26
@FaheemMitha you heard of Jean dreze?
16:39
@PrabhjotSingh No.
16:52
I have a question regarding add -ons on mozilla
This asks for permission to data for all websites, browser tabs and browser activity
@PrabhjotSingh Yes, unfortunately they tend to do things like that.
If you are asking how much risk this kind of thing involves, Security SE would be a better fit.
I want to know, is it mozilla or add-on i want to add.
@FaheemMitha there is a browser Cliqz, that's not thse things. but that is for 64-bit distributions only.
@PrabhjotSingh Not following.
BTW, do you actually mean Mozilla? Because these days it's either Chrome/Chromium or Firefox.
Well, those are the free software options, anyway.
Though Chrome might technically not be free software - I'm not sure.
I mean Firefox browser
@PrabhjotSingh Ok.
17:05
@FaheemMitha one more thing.
when i try to install texlive, "bash: udo: command not found"
@PrabhjotSingh What command are you using?
@PrabhjotSingh Did you type udo instead of sudo?
@FaheemMitha that was my mistake
@Jesse_b yes
@Jesse_b Namaste BTW
17:09
mr odus
@Jesse_b Don't call me mr.
I like Monsieur
@PrabhjotSingh yeoboseyo to you and @FaheemMitha
@Jesse_b Monsieur Odus
@Jesse_b yeoboseyo?
@FaheemMitha It's Korean for "Hello"
17:11
@Jesse_b Oh. Going international, are we?
@FaheemMitha :) Although "annyeong sesang" is Korean for "Hello world"
@Jesse_b I am googling this. How to pronounce.
@Jesse_b That first word sounds like "annoying".
@Jesse_b I will write a c program "annyeong sesang" "'
@PrabhjotSingh Why?
17:14
@FaheemMitha @Jesse_b finally texlive is installed. thankfully
@PrabhjotSingh Congratulations. Are you a TeX user?
@FaheemMitha This would be my first korean c program. and would irk some people at c class.
@FaheemMitha yes, new tex user.
@PrabhjotSingh Make it overly and unnecessarily complex
17:17
but you ought to tell me some basics.
@PrabhjotSingh You mean a C program that prints out Korean UTF8 characters?
@PrabhjotSingh Who, me?
@FaheemMitha yes
output is annyeong sesang.
@Jesse_b yes . i added for(; ;), now this goes infinite.
17:36
@Jesse_b I want annyeong sesang. in korean script.
@PrabhjotSingh 여보세요
@Jesse_b isn't this yeoboseyo?
yeoboseo is annyeong sesang.?
@PrabhjotSingh Oh yea sorry it's 안녕 세상
@Jesse_b Thanks
17:51
My review queues are broken
18:08
@Kusalananda:
$ ! echo 'bar' | grep 'foo' && echo yes
yes
$ echo 'bar' | ! grep 'foo' && echo yes
-bash: syntax error near unexpected token `!'
Although it seems like a flawed command for sure
Nvm it seems to work
@PrabhjotSingh If you want to learn LaTeX just use it. Start with a very simple document. You can find tutorials on the web. Do you use Emacs? Because AUCTeX makes things easier.
@Kusalananda Are you a TeX user?
@PrabhjotSingh Nice
@FaheemMitha Tomorrow i m free. i try tex. installed this now. if and when needed i will ask you.
@PrabhjotSingh Yes, but do you know/use Emacs?
18:21
BTW i don't use Emacs.
@FaheemMitha as long as you are here i need not worry about tex.
@PrabhjotSingh I'm not sure what that means... :-)
@Jesse_b Huh?
$ echo 'bar' | ! grep 'foo' && echo yes
yes
@Kusalananda Doesn't work for me
@Jesse_b Hm... It doesn't work in bash.
@FaheemMitha if i come across some difficulty , you are here.
18:24
GNU bash, version 4.4.12(1)-release (x86_64-apple-darwin16.3.0)
@Jesse_b I'm running sh which is pdksh on my system.
@PrabhjotSingh Oh, dear. You realise I'm not an expert, right?
There's a whole site for that. TeX SE. With actual experts.
$ /bin/sh -c 'echo "bar" | ! grep "foo" && echo yes'
/bin/sh: -c: line 0: syntax error near unexpected token `!'
/bin/sh: -c: line 0: `echo "bar" | ! grep "foo" && echo yes'
So Incredibles 2 is going to be out soon.
@FaheemMitha you are afr far far better than me. thsi is enough for me.
18:26
@FaheemMitha I am not. I wrote a lot in LaTeX 25 years ago. I even wrote a 100 page tutorial that was in use in my old department for over a decade. I've forgotten everything now.
I think @FaheemMitha has a latex fetish
Sorry, 20 years ago, not 25, but still... latexintro.sourceforge.net (in Swedish though)
Hallå världen
@Kusalananda I don't see how that is possible. You you don't use it regularly? How do you write documents?
18:29
@FaheemMitha Plain text, or groff.
And some Markdown here.
@Kusalananda Groff? Huh.
Yep
@Jesse_b :-)
TeX beats all those hands down. IMO, of course.
@FaheemMitha Not for manual pages :-P
I mean, it's not even a competition.
@Kusalananda You write manual pages?
@Kusalananda I wrote a rudimentary man page once. It was too much trouble.
@FaheemMitha Last time I wrote a CV, it was with groff.
@Kusalananda Oh. Weird.
I'm guessing that was not recent, though.
@FaheemMitha 2013/2014 or so
@Kusalananda So actually quite recent.
18:33
@FaheemMitha I prefer "different" :-)
@Kusalananda Fair enough. But I don't see why would use groff if TeX is available.
@Jesse_b what is Hallå världen?
@PrabhjotSingh Hello world in Swedish
Although I think we should lobby to have all versions of "Hello world" changed to "Hello Faheem"
I wonder how terrible groff error messages are, though. I doubt they could be worse than TeX error messsages.
@Jesse_b should I write a c program in swedish too.
18:44
CS students all over the globe should be learning to write "Hello Faheem" programs
@Jesse_b no comments.
My first c program was Hello world. A simple c program.
Speaking of Faheem. Is it just me or does his name look italicized in the left hand column? Everyone else's name seems normal font but then it's Faheem Mitha
@FaheemMitha Groff is tiny. TeX is a beast to install in comparison. Also, I know Groff.
@Jesse_b when you said this is Hello world in Korean , I thought I should wrrite this.
@Jesse_b It looks that way to me too.
18:47
I knew it! @FaheemMitha is a government spy!
@Kusalananda I don't understand. TeX is trivial to install on any Linux distribution. It's probably equally easy on the BSDs.
@Jesse_b You are right about name. it looks
One question can i change my name in chatroom?
@Kusalananda Also, I'm sure you could pick up TeX again in no time flat if you were so minded.
@FaheemMitha Are you the "owner" of this chat?
18:50
Incidentally, did you happen to learn any actual TeX programming when you were using TeX?
@Kusalananda I believe I'm one of them. Why?
3
Q: What does an Italicized username mean in a chat room, and how much can a room owner penalize somebody that doesn't like somebody else?

barlopI was in a room and one of the characters there whose name was in italics, didn't like the discussion another was engaged in. The person whose name was in italics, then wrote some incorrect information (probably trolling saying something blatantly wrong) (I'll include it here since he appeare...

I just didn't know.
The system automatically assigns owners to rooms depending on how much they talk in the room. Which can have some odd results.
@FaheemMitha No, I exclusively used LaTeX.
@FaheemMitha So, you're very chatty then :-)
@Kusalananda Well, TeX/LaTeX programming.
@Kusalananda I can be. And I've been in this room a long time.
@FaheemMitha Not more than defining a few handy macros.
@FaheemMitha I see
18:52
Faheem is indeed listed as an owner
cowers
Yes @FaheemMitha is the owner of chat room.
@Kusalananda TeX programming is pretty hairy. I've had the folks in TeX chat try to explain it to me - they're very helpful. But it hurts my brain.
Though I imagine with some focus one could get over the hump.
I should imagine I'm back in grad school with someone cracking the whip.
@StephenKitt What's your level of expertise with TeX programming? Just curious.
@FaheemMitha Alright now you're talking about latex and whips, this is starting to get various shades of grey
@Jesse_b can i change my name in chatroom?
@Jesse_b No, it's just your BDSM fixation.
18:59
@PrabhjotSingh I'm not sure
@FaheemMitha I din't understand?
@PrabhjotSingh Just responding to Jesse.
@FaheemMitha what is Kick-mute users?
19:15
@PrabhjotSingh Dunno. I think you can throw people out of the chat room, or something. I'm not sure - ask the mods.
@FaheemMitha readind about this on meta site. have you seen somebody being kicked out of chat?
@PrabhjotSingh Me personally? I don't think so.
@PrabhjotSingh The real power of TeX comes from TeX programming, but that's hard. At least, I think so.
Or maybe I'm just a weenie.
@FaheemMitha I will start Tex tomorrow. let me start first. I will exercise this. I am totally free tomorrow. I will ask you if need be.
@FaheemMitha can i ask you one thing?
19:29
@PrabhjotSingh Sure. What?
It occured to me when you were talking about whips.
@FaheemMitha Once you said that the way in which corporations work are not democratic. right?
Anti-defection law or party whips in parliament for that matter are democratic?
@PrabhjotSingh A law is in itself not democratic. The way laws are created is (hopefully) democratic.
@Kusalananda right about law but MPs are treated with whips in parliament.
@PrabhjotSingh You are thinking about party whips: en.wikipedia.org/wiki/Whip_(politics)
I wish someone would whip both of the US political parties
19:40
>The expression whip in its parliamentary context has its origins in hunting terminology. The Oxford English Dictionary defines the term whipper-in as, "a huntsman's assistant who keeps the hounds from straying by driving them back with the whip into the main body of the pack".
>According to that dictionary, the first recorded use of the term whipper-in in the parliamentary sense occurs in 1772. However, P. D. G. Thomas in House of Commons in the Eighteenth Century cites two examples of the use of the term that pre-date 1772."
@Kusalananda yes my question is that are party whips democratic in nature?
now I'm sad thinking about people whipping dogs :(
A government that runs a country as if it was a corporation is called "Fascist".
@Kusalananda such a govt if comes to power by a coup or even if eleted by people.
Thanks for answer.
@PrabhjotSingh Yes, it's a weakness of democracy to allow itself to be voted away.
19:50
@PrabhjotSingh Corporations aren't democratic, because all the power lies at the top. Was that your question?
Well, most of the power. I suppose there is some power across the heirarchy. But generally speaking corporations are owned by rich people.
And the actions of those corporations is dictated by those rich people.
@FaheemMitha are anti-defection law or party whips in parliament for that matter are democratic?
@PrabhjotSingh I don't know anything about that.
@FaheemMitha When you say rich people you mean plutocracy?
@FaheemMitha no problen @Kusalananda jsut now answered this.
@PrabhjotSingh By rich people I just meant rich people.
Person or persons with a lot of money.
okay
@FaheemMitha my question was basically that the way in which MPs are treated that is not democratic?
19:56
I don't know much about how corporations work, but the basics are pretty obvious.
@PrabhjotSingh I don't know.
@Jesse_b you dint start vacation?
@PrabhjotSingh Today is my last day of work, tomorrow is vacation. Although I'm not going anywhere
My wife's family is coming to stay with us for a week
You will be here tomorrow?
@PrabhjotSingh probably not much if at all. I have to do yard work and other misc errands
@PrabhjotSingh You will have to find a new way to say "Hello Faheem" tomorrow for me :-P
@Jesse_b I will write a program with else-if loop with following arguments:
Bonjour le monde, Hola Mundo, Hallå världen and Hallo Wereld
I forgot annyeong sesang.
@Jesse_b I will try to make my new c program unnecessarily complex.
20:11
Hah, don't tell anyone that was my idea I'm already hated enough :-P
@Jesse_b This is a top secret idea. my name is Cody Banks
@PrabhjotSingh I thought you were mr odus
Monsieur Odus is my name when I try sudo commands.
@Jesse_b Monsieur odus is getting:
To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix the issue.
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
@Kusalananda: I modified that answer, however I really wish I knew what OP is actually trying to do
@Jesse_b Yep
20:24
Is there a way to check which profile I'm running in terminal (Mac)? If I'm running "basic" I want to run a script to change my atom theme to be light, if I'm running "homebrew" I want to change my atom theme to be dark. Any ideas?
By "profile", I mean the color of the window. Basic is a white background with black text, homebrew is a black background with green text.
@JBallin How is that being set?
I have different keybindings for which profile I want to open
printenv doesn't return anything noteworthy when comparing the two profiles
There doesn't seem to be anything, though you could run whatever command you wanted and do something distinctive,
@JBallin Within the "Shell tab" of that profile manager you can specify it should "run command"
maybe you can have it run something like export TERM_PROFILE=brew or similar
and then act on that env variable
@Jesse_b what is corrupted RPMDB?
20:31
@PrabhjotSingh Sounds like a corrupted RPM database
@PrabhjotSingh RPM = RedHat Package Manager, DB = database.
At the time I didn't find any of the answers in the following question understandable or didactic. Therefore I've yet to mark any as correct/most helpful. I feel I didn't find an answer for Are if-fi segments necessary when iterating on a pushd-popd directory list there. If someone wants to add (or maybe improve) an answer, this by itself could be helpful. Thank you for your time anyway:
-1
Q: Are if-fi segments necessary when iterating on a pushd-popd directory list?

user9303970I use the following code which is part of this script that I use to update my WordPress websites: #!/bin/bash drt="/var/www/html" for dir in ${drt}/*/; do if pushd "$dir"; then wp plugin update --all --allow-root wp core update --allow-root wp language core update --a...

@Jesse_b good call. Set to "toggle_theme dark; clear", seems to work well!
@user9303970 The if pushd statement ensures that the commands within are not executed if the directory can't be changed. That's the essence of it.
20:38
@JBallin :-) Michael Homer got to it first
@Kusalananda can't be changed?
@user9303970 Yes, if the indicated directory does not exist, or if the permissions on it does not permit changing into it.
Ah, thank you @MichaelHomer!
@user9303970 If the pushd failed, you would not want those other commands to actually be executed.
@user9303970 It's defensive programming.
... also known as "taking precautions to handle unexpected circumstances".
But I loop only on a directory that does indeed exist and that does indeed have the permissions to be changed (my aim is to update the entire dir trees I run on).
20:44
I prefer offensive programming fortune -o
But I understand the point of defensive programming (especially in delicate environments like operating systems and when working from shell after I destroyed my own environment in the past).
@user9303970 Well, if there is no reason to believe that the directory would vanish between the evaluation of the for loop's first line and when you need to go into it, the if statement may be removed.
I don't think the if construct will add very much overhead and so it's probably best to leave it in even if you are mostly certain it wont be needed
Thx @Kusalananda that might be the detail I missed in all the answers. I didn't recognize any of the answers reminded such a fact.
I thought that this syntax is obligatory anyway.
It's just a fairly common idiom. Usually it's written as ( cd "$dir" && somecommand ).
@user9303970 The syntax is not obligatory, no.
20:47
@Jesse_b rpm -qa and rpm --rebuilddb solved RPMDB.
Or possibly ( cd "$dir" && { cmd1; cmd2; ... ; } ) or similar.
@user9303970 But then again, it's not required to write defensive code.
... only sane people do that.
Especially when writing code that will run on other people's machines, about which one knows nothing (apart from that it runs Unix).
Not my machine not my problem, that's what I say
@Jesse_b Hmmm...
Anyway. Bedtime over here. Be well.
I see your point, I agree it's generally best, especially in a case like this where it doesn't add much.

I think you actually answered my question with:

1. This explanation that this is not obligatory and that it's defensive.

2. Mentioning that `if there is no reason to believe that the directory would vanish between the evaluation of the for loop's first line and when you need to go into it, the if statement may be removed`.

3. With the example to a non defensive alternative.

4. With explaining why it's important anyway.
@Kusalananda Hejdå världen
20:54
I thank you dearly. Have a fine night!
@user9303970 You too
@Jesse_b I hope not! God natt!
:-) Goodnight
what is difference between cd "$dir" && dnf install vlc
and dnf install vlc?
@PrabhjotSingh One will cd into $dir first and not execute dnf install vlc if cd did not succeed
the other will just execute dnf install vlc
okay thats why called defensive. right?
21:04
@PrabhjotSingh Yeah but I'm not sure that is the best example. Maybe if you were going to try to remove a file or something
You could write:
cd "$dir"
rm *.tmp
But then if cd "$dir" failed it would remove all .tmp files in whatever your current dir is
If you wrote cd "$dir" && rm *.tmp it would never try to remove anything if it wasn't able to change to the correct directory first
@Jesse_b Today learnt new rhing.
very interesting.
@Jesse_b many of my friends say stack exchange is not good for newbies. They say there is so much bashing. So far i ve never felt this.
bonne nuit
@PrabhjotSingh I see it and have been accused of it. I think many people read too much into text based forms of communication and there is no way of knowing the writers inflection or intent from reading it
I also think people on here are very blunt and to the point and many people see that as rudeness
21:20
@Jesse_b but people here teach you almost everything about Linux if you ask them.
I've been glued to stackexchange for a month or so, whenever I've asked someone has reponded and that's good.
@Jesse_b bonne nuit
As verbose as possible
Is there a difference between source vs. `.` vs `\.`?

Saw `\.` for the first time here: https://github.com/creationix/nvm/blob/master/README.md#manual-upgrade

(
cd "$NVM_DIR"
git fetch --tags origin
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
) && \. "$NVM_DIR/nvm.sh"

As an aside, why do you think he wrote the first few commands in parens instead of using `&&`?
I'm asking about the last line: \. "$NVM_DIR/nvm.sh"
@JBallin They are functionally the same
I think the first few commands are in a subshell to ensure they all succeed but I'm not sure that is even valid
$ (
> echo hello
> bad command
> echo world
> ) && echo pass
hello
-bash: bad: command not found
world
pass
I wasn't a fan of the things that NVM did to my profile
21:38
@Jesse_b, what was ur issue? the increased shell startup time?
why would you ever want to use \., it just makes things more confusing
@JBallin I don't remember exactly what it put in there but I know I took it out and just put this in:
[[ -s "${NVM_DIR}/nvm.sh" ]] && \. "${NVM_DIR}/nvm.sh"  # This loads nvm
[[ -s "${NVM_DIR}/bash_completion" ]] && \. "${NVM_DIR}/bash_completion"  # This loads nvm bash_completion
hmm that's basically what they put in, with some minor changes (single [] etc.), the bash completion is added manually
I also didn't like that they modify the PATH so I had to manually change my path back to what I want it to be at the end of my bashrc
although I suppose I could just tell nvm.sh to stop changing the path
22:02
@Jesse_b checkout the script I'm using gist.github.com/JBallin/17758cfed06e7415209ce3335490745b
@JBallin Nice. I would probably make them functions instead of aliases but I normally avoid aliases in general :-p
interesting. can you explain that trade-off? @Jesse_b
@JBallin I think in this case a function would just be easier to read, would use more lines though
23:05
@PrabhjotSingh You should probably try Ubuntu instead of whatever RH distribution you are using. Fedora?

« first day (2800 days earlier)      last day (2452 days later) »