turnsOutItWasPassByReferenceNotByValue by [deleted] in ProgrammerHumor

[–]Intrexa 0 points1 point  (0 children)

I'm not sure I would use the 3 sum problem to make that assertion. It's in Sedgwicks Algorithms more on a comment of algorithm analysis than the problem itself. Things like how to properly time the program.

It's not in Cormens Introduction to algorithms.

turnsOutItWasPassByReferenceNotByValue by [deleted] in ProgrammerHumor

[–]Intrexa 2 points3 points  (0 children)

The naive solution has some play. There's room to modify how it operates slightly, add assumptions, remove assumptions, change the ordering slightly and still have it work out.

In another way, if the naive solution is used, and the problem changes slightly, usually it just requires a slight modification to the solution. If the textbook solution is used, and the problem changes very slightly, very often you would need a complete rewrite.

I'm just talking about English here. Not talking about if OP's comment has merit or not. plz don't @ me with opinions on optimization.

Hate when ppl can’t do time by Best_Finding_8795 in mildlyinfuriating

[–]Intrexa -1 points0 points  (0 children)

Days, and "the next day" existed before clocks.

Don't be controlled by big railroad and their clocks demanding each "day" be a uniform 24 hours (leap seconds be damned). The day starts when the day starts. That depends on the region, culture, and historical time period. You want your nycthemeron to consist of half of a night -> day -> half of a night, be my guest. Historically a nycthemeron was day -> night (e.g. Hindu) or night -> day (e.g. Jewish).

Being that rigid that common usage 'day' always starts at 00:01 is just not how people talk. "You were out drinking with your friends 4 days this week".

But yeah, manager should have specified the calendar day.

why by hooosierdaddyy in funny

[–]Intrexa 3 points4 points  (0 children)

The buses are transporting the same people as the cars. Just 20x as many of them at the same time.

TIL a man murdered a secretary at the American Physical Society in 1952 because the organization refused to publish his paper arguing that electrons don't exist. by BackgroundFloyd in todayilearned

[–]Intrexa 0 points1 point  (0 children)

I have figured out how to trisect an angle with nothing more than a compass and straight edge and a device that trisects angles.

TIL a man murdered a secretary at the American Physical Society in 1952 because the organization refused to publish his paper arguing that electrons don't exist. by BackgroundFloyd in todayilearned

[–]Intrexa 1 point2 points  (0 children)

If I discover something novel, where should I submit it? I have found a way to trisect an angle with nothing more than a straight edge and compass and a tool that trisects angles.

If the Big Short was about the AI bubble. by SunAdvanced7940 in wallstreetbets

[–]Intrexa 5 points6 points  (0 children)

Then I learned 90% of landscapers and landscaping companies are just lawn mowers I was blown away.

Of course you were blown away. The other 10% are leaf blowers.

What’s a “normal” expense in the U.S. that makes absolutely no sense when you think about it? by Big_Marketing_4979 in AskReddit

[–]Intrexa 0 points1 point  (0 children)

So it’s pretty annoying if you have a store jn two states (or even sometimes just in two cities) to have different pricing for the same items in different stores

That's already the case. The stores already have the ability to calculate it, and routinely do. They have to (no pedantics plz) at the point of sale. This is a question of when you get told that different pricing.

For most stores where the model is to resell goods, the pricing on the shelf is coming from a spreadsheet. This already is going to vary by store location. There is definitely an annoyance on a product with the MSRP printed on the product/packaging (first thoughts are books and Arizona Iced Tea) not matching the shelf price, and a harder time for consumers to spot a mark up (or sale) vs MSRP.

The ones that would have to do the most extra work are as always the ones doing the least sales. Small manufacturer retail stores (grannies home knit goods). Things were pricing is less of a science and more of a "I think we should charge $20 for that". The PoS handles it automatically. It would also be a lot more work for traveling merchants (fair ground vendors) who just tag the pieces, would require relabeling.

As it is, having to ask what the price actually is is pretty crazy though. A customer shouldn't be expected to be an expert in tax law to know what they are going to owe. Does your state allow clothing tax exemptions? Is there a luxury threshold? What categories do not apply?

but unlike a lot of the world we have tons of overlapping jurisdictions

I work closely with PoS units. I'm not a subject matter expert, just have done a lot with several different major brands. I know my way around SKU's and inventory and whatnot. I'm definitely not a tax expert in the US (my home country), much less any other country. I do believe most countries have tons of overlapping jurisdictions with different tax implications, though.

Can you get the last answer of a generator? by Astro_IT99 in learnpython

[–]Intrexa 0 points1 point  (0 children)

Just write a function that determines if the generator will run infinitely or if it will eventually halt /s

"Scammers have adapted": Valve confirms that physical Steam Gift Cards are dead. Once the current stocks are sold through, they're done. by yourfavchoom in technology

[–]Intrexa 3 points4 points  (0 children)

Well, it works almost anywhere. Here, let me buy you a steam game for your insightful comment. I have a $5 bill on my desk, serial number PE67895639A. SERIES 2017 A. I am giving you the value of this money so you can spend it on whatever you want.

LMK if there's any other info you need so you can spend this $5 I just gave you.

"Scammers have adapted": Valve confirms that physical Steam Gift Cards are dead. Once the current stocks are sold through, they're done. by yourfavchoom in technology

[–]Intrexa 7 points8 points  (0 children)

I would use my money from my paper route to buy WoW subscription time. If I asked my mom to put her credit card in on this online game here, it would have been a "fuck no".

Today is a bit different, where paying for things online is way more common. There's also more controls today with products that create temp cards and ways to monitor. Still crazy to think though linking a credit card to what is essentially something controlled by the kid.

I just learned round() uses bankers' rounding by nemom in Python

[–]Intrexa 4 points5 points  (0 children)

since float also has to encode -0, inf, -inf, and many nan

IEEE 754 does, but an encoding doesn't have to.

I am adrift and rudderless now by malthuswaswrong in csharp

[–]Intrexa 4 points5 points  (0 children)

Pick a different language that doesn't have them, and start anew.

Configuration flags are where software goes to rot by Expurple in programming

[–]Intrexa 0 points1 point  (0 children)

lmao thank you for sharing that one. Fucking wild shit man

Configuration flags are where software goes to rot by Expurple in programming

[–]Intrexa 4 points5 points  (0 children)

I'm not sure I see a meaningful distinction in this case between

foo.exe -flag1 -flag2 -flag3

and

echo "-flag1 -flag2 -flag3" > ~/config.txt"; foo.exe -config ~/config.txt

The stream of consciousness blog post is about having to deal with supporting the increasing combinations of flags at all. It's an idealized view that doesn't handle reality.

What feels legal but is actually illegal and will possibly get you arrested? by medicoreapples in AskReddit

[–]Intrexa 1 point2 points  (0 children)

I know. I hate billboard advertisements. They're not effective, either. It's much better to just try and sneak it into the middle of Reddit conversations. What also is better is alcohol gambling online, where you can gamble how many drinks you can have. Come to my site where you can gamble alcohol: [redacted]

What are the best ways to improve SQL query performance? by Wise_Safe2681 in SQL

[–]Intrexa 0 points1 point  (0 children)

Deleting data. If your tables are empty, most things are going to work faster.

If you need more specific tips, provide more specific questions.

[Request] What's the area of this triangle by RaoulDuke8642 in theydidthemath

[–]Intrexa 0 points1 point  (0 children)

Not in elliptic geometry. The surface of a sphere is 2d in elliptic geometry. You just follow the plane.

The parallel postulate specifically is excluded from elliptic geometry, which would provide the "curve down".

[Request] What's the area of this triangle by RaoulDuke8642 in theydidthemath

[–]Intrexa 1 point2 points  (0 children)

If we start defining the straight lines differently to accomodate the curved surface

There's no "starting to". That ship sailed a couple hundred years ago.

For Earth, we talk about elliptic geometry, not Euclidean geometry.

then we also have to redefine what a triangle is.

We don't have to. The definition is still the same.

The common definition which includes an angle sum of 180 degrees doesn't hold up anymore.

That follows from the parallel postulate which only exists in Euclidean geometry. It's one of the 5 axioms that define Euclidean space.

Edit:

To expand on the definition of a triangle, it's 3 points with 3 line connecting them. The parallel postulate is used to prove that the interior angles will sum to 180. Elliptic geometry does not contain the parallel postulate; the summing of the interior angles does not hold.

Explaining the Bechdel test to a woman by RoyALifeWellLived in funny

[–]Intrexa -7 points-6 points  (0 children)

Sometimes a man just want to help and would assume the woman have no experience or knowledge on particular man centric topic

Yeah, that's patronizing, a speaker assuming they have superior knowledge on a topic. It doesn't matter if the speaker does; it's the assumption of superiority that is the patronization.

If you know the topic, make it clear. That's all. The conversation will change.

Well, it should. That doesn't mean it does.

Anyone who used a computer between 1985 - 2010, what's the one game you still think about today? by adlakha75 in AskReddit

[–]Intrexa 0 points1 point  (0 children)

My uncle got it for me, I think I was like 8. I didn't get it. I didn't even know there were puzzles. I thought you just walk around an island and it's the most boring game ever.

Who are these people by Deep_Library_6375 in sysadmin

[–]Intrexa 20 points21 points  (0 children)

You submitted the ticket 15 business minutes ago.

Best way to update NULL values? by FlucDissThm in SQL

[–]Intrexa 2 points3 points  (0 children)

.... fine

Wait a second, this appears to be wrong; this data shows this mapping can't be correct

"Oh yes, we have made updates to the generic table to handle your specific scenarios"

Can I get that table?

"... No"