How do you have both arguments AND flags be optional? getopt() will get the flags, so that's not a problem, but what about depending on something like "if (argc < 2)" but still letting flags on? What do you do then?
Have you people seen this coronavirus video: https://www.youtube.com/embed/DrsCgdVLkzw?feature=oembed&enablejsapi=1 We should copy what SouthKorea, Japan, Singapore and HonKong have already proven that could be done: contain the virus.
@JohnnyApplesauce Remove all flags with getops, do the argument count if if [ "$#" -lt 2 ] after the flags have been removed.
@AaronHall The problem to that is that there is a big bump on the road (literally) to get there (herd immunity) if the curve is left to grow without restrain. The health system will collapse causing many deaths (as has happened in Italy already). Other than that, yes, that will be the end result for sure, either "herd immunity" or "vaccines". That's a given.
@FaheemMitha I don't mind the language, and they say the interpreter is rather on the small side, which is nice in some uses, but the object system could be saner. The fact that they just provide you the minimal tools needed so you can build the scaffolding needed to actually get something useful done both leads to less-than-useful work and gives good chances to implement things wrong
Lua would do much better with a sensible standard library. And there actually is some library that tries to do that, it's just not a standard part of the distribution (I forget the name)
Now that I think about it, When I'm copying from the Konsole buffer, it does seem to be copying a lot of whitespace. So perhaps a solution is to go back to using methods which insert the file directly.
Or figure out a more intelligent way to copy text from Konsole.
@Tim It's spelled coronavirus.
I think I'll have to use Atomic Chrome or something similar.
I don't know if it's cold feet but I've install Cygwin on my windows 10 machine instead of reformatting and installing a Linux OS. When you open the Cygwin terminal, where is it's home directory?
lol thanks I deserved this public humiliation I really did
also seeking reccomendations of non free software, does anyone use something similar to Microsoft word but tailored to assisting with building regular expressions? I was thinking of just using netcat to pipe a command to a virtual machine, which then sends the output to the local machine, but that wont really help much. Basically I'm looking for a "spell check" for writing regular expressions, like predictive text describing the outcome of the presently typed command if I hit enter
Like I completely wiped my Ubuntu installation in one command a while ago so it would be helpful to have such a text editor
I think he didn't mean the regex did it, but the input of a command that was a regex did it.
Anything that involves deleting and the use of ".*" should probably involve a very careful check of question marks on the symbols on either side of ".*"
For the past year I have been quite active on SO and a bit on meta, but I had never heard of the timeline of a post until today in a comment on meta.
There was an announcement by Jeff Atwood two years ago of this feature as "experimental". (Timeline for that question).
This feature was requeste...
Let's say I see a very interesting question, one to which I do not the answer but would very much like to have. I see no way to "watch" that question. Is there a trick to doing this? Is this a feature we can add to this site? I would expect a blue or yellow pip in my mailbox when someone posts an...
@FaheemMitha You might want to edit that question on money, by the way. At least the first paragraph ("ofIndian", "I'm try", and the dangling final sentence).
Personally, I would also put the quoted text in quote blocks since it's really hard to understand where your words end and the quotes begin.
@Tim I used R for a long time. But not for many years. More recently I've been using Python. And I've been writing a bit of Lua as a backend to LuaTeX.
But I don't do much programming these days.
R from around 1999 to around 2006/2007, give or take.
When I started using it, it was much younger in its lifecycle than it is now. I think the first version of R I downloaded was like 0.67.
@Tim You don't have to do anything. Lots of people don't program at all, and they seem perfectly happy, though I haven't actually taken any surveys. Nor am I aware of any.
@Tim I've never particularly enjoyed using R. It's never really felt like a properly designed language. More like a junkyard of syntax and routines just thrown together. With the odd unexpected sharp edge.
I don't think IIPs say much about anything, really. ... Though sometimes they make palindromes, which is fun. --> IIPS say --> ipsay --> sip (in Pig Latin)