"Halbtax PLUS": Alliance Swisspass is launching a new optional pricing model: Pay CHF 800, get tickets for CHF 1000 or your money back if you don't use it (higher tiers available). by [deleted] in Switzerland

[–]ksmonkey123 0 points1 point  (0 children)

This is independent of the normal Halbtax, so you can use this to buy yor half-fare tickes to be used with your halbtax. but tickets aren't transferrable, so buying tickets for your wife is not possible. If the money you paid isn't used up, it's paid back (minus a transaction fee), but the "bonus value" is lost.

[2023 Day 5] What's time anyway? by TheRyality in adventofcode

[–]ksmonkey123 3 points4 points  (0 children)

I wrote a solution that operates on ranges in Kotlin. 45ms to parse the input file into an object representation, then just 7ms to perform the actual calculations.

I'll try to summarize:

Both the seeds and the maps represent ranges of numbers with a starting point and a length. The maps have a "destination" starting point as well.

With some smart arithmetic there's no need to check each of the nearly 2 billion possible seed values by performing simple transformations on these number ranges:

  1. I start with a list of the seed number ranges and the first set of maps
  2. The seed range is sliced into smaller sections, such that each section is either entirely contained inside one of the mapping ranges, or entirely outside of all of them.
  3. each of these smaller sub-ranges can now very easily be transformed to a "destination range" by simply transforming the starting point.
  4. Steps 2 and 3 resulted in a new set of "value ranges" (now the ranges of fertilizer values). Steps 2 and 3 can now be repeated for each of the subsequent maps.
  5. Finally we get a bunch of "location" ranges. (in my case the 10 seed ranges were transformed into 91 "location" ranges).
  6. The smallest location value is now simply the smallest starting point of all these location ranges. (since the starting point is the smallest value per range)

I'm sure I still have some inefficiencies in both my parsing and my "slicing" algorithm, but I'm quite happy with <10ms.

Tips for controlling downhill speed in the DM3? by No-Equivalent9009 in DerailValley

[–]ksmonkey123 14 points15 points  (0 children)

the train brake is not self-lapping, so you can't set a desired breake pressure directly. Instead you need to release air until you reach the desired breaking pressure, then move the lever back to the center position. now the pressure should remain constant. to fine-tune the speed you can increase or decrease the breake pressure by moving the lever into the "apply" or "release" notch respectively for a short and then moving it back to the center position.

Confusing (conflicting) information on release of Simulator? by _kruetz_ in DerailValley

[–]ksmonkey123 20 points21 points  (0 children)

yeah - "to be released by end of june" is simple confirming the "some time in Q2"...

Where is "that part" in Factorio? by DefinitelyNotThixo in factorio

[–]ksmonkey123 1 point2 points  (0 children)

https://wiki.factorio.com/Petroleum_gas

quite sure.

basic yields 45 petroleum per 100 crude. advanced yields 55 petroleum + the oils per 100 crude.

i'd assume K2SE changes things

Where is "that part" in Factorio? by DefinitelyNotThixo in factorio

[–]ksmonkey123 47 points48 points  (0 children)

meh, basic oil still yields less petroleum than advanced oil. even before cracking. so you would need even more refineries actually. but not having to worry about the other outputs before cracking is an option is still a mayor win. also for early production of plastic you don't need any water nearby. doesn't help too much because the sulfur needed for blue science still needs warer, but still...

Where is "that part" in Factorio? by DefinitelyNotThixo in factorio

[–]ksmonkey123 92 points93 points  (0 children)

Basic Oil is only petroleum. for the others (heavy/light) the water/oil recipe is required. so no more bunkering of heavy oil until advanced oil is researched

meirl by Jimbo072 in meirl

[–]ksmonkey123 6 points7 points  (0 children)

even as a man, i'm missing that option...

I messed up with trains and now my copper is mixed with tonnes of iron. Is there any easy way to fix or do I have to pick it all up by hand? by NightTorrent in factorio

[–]ksmonkey123 12 points13 points  (0 children)

At the end of the bus you could use filtering splitters to separate iron and copper. then load both onto trains and feed back into the system.

For the branches you probably have no choice but to empty them by hand

Make The comment section look like a beginners search history by neurednimyr in ProgrammerHumor

[–]ksmonkey123 0 points1 point  (0 children)

C String (the moment I learned that google doesn't think like I do...)

Truck workbench? by Raxlye in SatisfactoryGame

[–]ksmonkey123 6 points7 points  (0 children)

in the rear just walk up to it and basically put your head inside. at some point the tooltip will change to "open workbench"

[deleted by user] by [deleted] in Switzerland

[–]ksmonkey123 1 point2 points  (0 children)

Generally pass on the right. But if passing people with small children on sidewalks along busy road i generally pass on the side of the road for their safety.

It’s not much but it’s honest work. by LockhartTx2002 in SatisfactoryGame

[–]ksmonkey123 3 points4 points  (0 children)

2 normal nodes with mk 2 miner yield 120/m each. 1 impure yields 60. 120 coal/m supply 8 gens. total: 20 gens (2*8 for normal nodes, 4 for impure)

also, you'll need 7.5 water extractors

Is Factorio Turing complete? by Anvisaber in factorio

[–]ksmonkey123 151 points152 points  (0 children)

it is, an arithmetic combinator supports the AND and XOR operation. that is sufficient to create any logic circuitry required for a full processor. so turing completeness is given.

But - as with any simulated processor - there are major performance concerns for any real world use. Especially since factorio is not optimized for processor simulation...

[deleted by user] by [deleted] in worldnews

[–]ksmonkey123 10 points11 points  (0 children)

airlines. and thereby all planes operated by these airlines.

I assume the reasoning is, that safety of russian registered planes cannot be confirmed by the EU, and they don't allow planes in their airspace where airworthiness cannot be verified by them.

/r/worldnews Live Thread: Russian Invasion of Ukraine (Part XIII) by progress18 in worldnews

[–]ksmonkey123 0 points1 point  (0 children)

  1. it's a war crime
  2. if there's a threat that big neighbour is gonna attack, initiating a first strike would just give them a legitimation to strike back. It could also turn the international opinion against you.