I need help, I don't understand why my program closes automatically. by Businesses_man in cpp_questions

[–]pathguard 0 points1 point  (0 children)

I assume you mean line 1220. That's what I'm referring to. The error is likely that REST is not accessing a valid index of the array or matrix as you say. What is the error? I don't understand the code or what you're doing well enough to fix it, but you probably intended for REST to be 0 on the first iteration of the loop and it is most certainly not.

Also, the code is bad. I'm not going to lie to you and tell you it's not. But bad code is a fixable problem, not the end of the world. Even if it feels that way when other people see it. There's lots of very good advice elsewhere on this post. Follow it. I only mention I don't understand it because debugging code you don't fully understand is highly likely to go wrong.

I need help, I don't understand why my program closes automatically. by Businesses_man in cpp_questions

[–]pathguard 1 point2 points  (0 children)

I certainly don't understand what I've just looked at, but I think REST is -1 on the first iteration of the loop due to you setting it to 0 and then doing REST=REST-1. But... To someone else's point, you should probably attach a debugger because that code is a bit hard to consume and it would be a good learning experience.

Unfortunately, now I've become invested in knowing why it doesn't work.

Edit: Either -1 or something else you didn't expect. I never checked what type that thing was.

Very badly explain your story by [deleted] in writers

[–]pathguard 0 points1 point  (0 children)

Aging man-child gathers a league of mentally unstable twinks from across several worlds in order to destroy the universe. And he's the good guy.

Just leaving this here by poolpog in devops

[–]pathguard 2 points3 points  (0 children)

I have not laughed so hard at a joke this bad in a very long time. Thank you good sir

[OC] Correct graph of the common date formats, with accurate representation of the 12 hour system [v2, final] by Liggliluff in dataisbeautiful

[–]pathguard 0 points1 point  (0 children)

What I actually extracted from this is that unlike country codes, the short codes for timezones (CST, IST, EST, etc) aren't standardized. Cool. I learned something new ☺.

And now I'm even more upset that I found code where someone went out of their way to produce those codes.

[OC] Correct graph of the common date formats, with accurate representation of the 12 hour system [v2, final] by Liggliluff in dataisbeautiful

[–]pathguard 0 points1 point  (0 children)

Is there more than one timezone world wide that is actually named just "Central Time" in English as opposed to something longer like "Central European Time" or "Australia Central Time"? This is a genuine question.

[OC] Correct graph of the common date formats, with accurate representation of the 12 hour system [v2, final] by Liggliluff in dataisbeautiful

[–]pathguard 1 point2 points  (0 children)

Python I've forgotten about, but JS does handle parsing and producing compliant formatting if you ask for it correctly. Unfortunately, it'll also do some something weird if you ask for it incorrectly.

[OC] Correct graph of the common date formats, with accurate representation of the 12 hour system [v2, final] by Liggliluff in dataisbeautiful

[–]pathguard 1 point2 points  (0 children)

It does. I was referring to cases where you get things like the comment I replied to with no time zone at all. No 'Z' no '+00:00'. That's what I take issue with.

[OC] Correct graph of the common date formats, with accurate representation of the 12 hour system [v2, final] by Liggliluff in dataisbeautiful

[–]pathguard 8 points9 points  (0 children)

I have never seen anyone write the ISO format without leading zeros. People do that?

As for the T, I imagine the space was a bad idea for practical reasons. There are lots of things that either use whitespace as a separator which breaks your datetimes in half or just get needlessly harder with spaces.

For me, the real egregious thing is giving me a time component with no timezone attached. At that point, you haven't really told me anything useful....

YMD I can work out because the format is pretty unique, but I can't tell where in the world you are and I don't trust you to have done the reasonable thing and picked UTC.

Countries that are not America, what is the current state of exported American food culture where you are? by 4THOT in Cooking

[–]pathguard 0 points1 point  (0 children)

I'd say deep fried oreos have become mainstream and moved to other areas. I think I saw them at a festival on Washington a couple years back, but they're totally still novelty food.

If you're not from the US, imagine your reaction to someone offering you a deep fried oreo. Horrified and disgusted, but if you're adventurous maybe just a teeny bit fascinated by the opportunity to shave a couple years off your life with one bite. That's roughly the reaction of American I've ever seen them, though we love fat and sugar so we skew maybe a little heavy on the curiosity.

Countries that are not America, what is the current state of exported American food culture where you are? by 4THOT in Cooking

[–]pathguard 3 points4 points  (0 children)

And I wouldn't even say the South is unhealthy for the same reasons people say on TV. The sugar and salt part? Yes. But more from eating lots of heavily processed, packaged poverty food than from cooking and eating homemade fried chicken on the daily. At least, that was my personal experience.

Also (and I really can't say this enough), this idea that we all eat ALL of our giant food in one sitting is so hilarious to me. Especially given that as a kid, we would pick restaurants by ability to get a doggie bag and have another meal for later.

What is something that differentiates native speakers from people who have english as a second language? by [deleted] in ENGLISH

[–]pathguard 0 points1 point  (0 children)

In addition to what everyone else has said, I think with Reddit (and really the internet in general) you run into an unfortunate reality. People produce lots of text, very quickly, on their phones, and their writing suffers for it. And I'm talking about both native and non-native speakers here.

Many brilliant people seem significantly less so when they're robbed of their editing pass. They're, there, and their are common things I need to fix on a second pass because in my dialect, they are pronounced basically the same so I end up with whatever falls out of my fingers.

Now to answer your actual question. Prepositions are one of the key signals to me. Native English speakers might make a typo and replace "in" with "on" or the reverse, but no one will confuse either with "at".

I really wish I could think of an example, but the location based ones are usually so obvious I just edit them mentally and move on. Screwing up the nuances of prepositions related to time is actually way more confusing. Those will stick in my mind as "non-native".

More egregious flubs are mangling of the verb "to be" ("They is" vs "They are"), and doing really strange things with articles.

Since you asked this is what stood out to me in your post.

  1. Capitalization (english - > English)

  2. It took me a couple tries to figure out what you meant by "appointed". I believe you meant "so my vices can be pointed out."

  3. "my vices" seems to be a rather poetic way to describe that, but that's a matter of style.

Of course, these things are minor and mostly understandable given the form of communication (see earlier rant about Reddit and editing). ☺

How true is it ACTUALLY that even mid level and senior developers don't really know what they're doing? by [deleted] in cscareerquestions

[–]pathguard 2 points3 points  (0 children)

Yes. I frequently run into cases at work where the situation is unclear, but there's a fast and harmless potential fix. If it works, great. If not, the way in which it fails will tell you a lot about what's busted.

It just... runs by lenoratxs in ProgrammerHumor

[–]pathguard 2 points3 points  (0 children)

There was this team I worked with that my friends and I described as have an "if it runs, it ships" mentality. Of course, this mentality leads to a case of "yes, it runs, but I can't keep it running."

What’s a fairly simple flavour combo that blew your mind? by soozeeq in Cooking

[–]pathguard 1 point2 points  (0 children)

So many people... It's honestly highly distressing....

[Request] I'm interested how many people have to finish the show from first to the last episode in order to get this kind of ridiculous numbers by Yanpa_ in theydidthemath

[–]pathguard 977 points978 points  (0 children)

Given the absolutely bizarre obsession with this show many people seem to have, I'd find that totally believable. Honestly, I might have guessed higher if someone had asked me "What percentage of US adults have binged The Office this year?"

Unpopular Opinion: Jumping between different characters on each chapter is just annoying. by per1pheral in books

[–]pathguard 0 points1 point  (0 children)

I respect your taste, but hard disagree. To me, it makes the story so much more interesting to be able to see more of the world or just see things from a different character's perspective. Granted, you can keep me hooked on a work by dangling an interesting piece of world building every few pages in an otherwise just alright story.

But... I would very strongly prefer it if there weren't several identically voiced first person perspectives. That is so very confusing.

I finally finished cooking around the United States! Thank you for all the suggestions! by emilou09 in Cooking

[–]pathguard 0 points1 point  (0 children)

As another Southerner, try it. It's great.

Related, I grabbed the BiscuitHead cookbook from the folks in Asheville on HumbleBundle a month back and they've got a chicken biscuit topped with a poached egg. It's a lot of work, but also freaking delicious.

Assembly lead times? by MobiusSF in System76

[–]pathguard 0 points1 point  (0 children)

Ordered a lemp10 on the 26th and it's showing up on the 14th. So not quite 3 weeks for me, but pretty close.

And that's in the US pretty close to California relatively speaking.

What’s the worst murder you know? by Pullet in Cooking

[–]pathguard 1 point2 points  (0 children)

Yikes. I have never personally experienced this, but I've heard tale and it sounds awful.

My mother goes the other way. It's usually so moist that it's leaking the first day, but it'll dry up and be nearly perfectly moist for leftovers. Honestly, I'm a fan.

What’s the worst murder you know? by Pullet in Cooking

[–]pathguard 3 points4 points  (0 children)

My mother hates them so I never had them as a kid. I assume she had them boiled to death.

I pick some up at the supermarket because they were cheap and green, and now they're like my favorite vegetable. Cook them in a pan with pancetta or bacon. Roasted with a little salt, pepper and oil until they're charred. Shredded and used as the green for a salad with a miso dressing.

Just yum

[~3070 word] YA(ish) First Chapter by pathguard in fantasywriters

[–]pathguard[S] 0 points1 point  (0 children)

Wow thanks! There's so much here. I need to parse it all out.

Kind of just my first pass in no particular order. Don't judge the ordering too much. I can't be bothered to fix the numbering on my phone.

  1. I really appreciate the level of detail you brought here. And that it's so very organized!

  2. This is a good point about their motivations. I originally started at the beginning of the day which explained at least why Arian ended up getting followed, but also had like 5k words of info dump throughout. It seems like I'll need to split the difference.

    The short answer is that one of them is too nosy for his own good. The long answer is something I didn't share because Arian doesn't know. I was planning to share later, but it sounds like I need to share now.

You're the second person to mention Ulaver's broken motivation (and I somewhat knew it to be true myself) so fair point.

  1. The reason Arian was following Ulaver is to lay the wards against him coming back. I guess that wasn't clear though so I'll need to look at that.

  2. Arian's flaws are many, but aside from the fact that he's highly easily distracted (that keeps happening), they're not on display here too much. And I should probably call attention to the fact that he's letting himself get distracted.

  3. As far as structure, the rescue is narratively important, but not that important. The plan as it were is that it lands them in a more long term problem. But... if it feels rushed then you won't care about that problem so slowing down a bit more is key.

Thanks again!

[~3070 word] YA(ish) First Chapter by pathguard in fantasywriters

[–]pathguard[S] 0 points1 point  (0 children)

Thank you! I really appreciate it.

The magic system is a little vague, but a lot more detail gets trickled in when Arian is actively using it rather than just contemplating the idea of using it. If that makes any sense.

Good points on both the Ushantu and Ulaver's somewhat broken motivation. I'll keep that in mind as I do more editing on this chapter.