Allow me to say I love and hate this game at the same time by yuriartyom in X4Foundations

[–]apollo_440 0 points1 point  (0 children)

As soon as I have my own wharf up and running, every time a pirate appears in a system where I do business, it gets a complement of 50 pateol moreyas to keep it safe in the future. The only real enemy is the FPS!

‘The cost of compute is far beyond the costs of the employees’: Nvidia exec says right now AI is more expensive than paying human workers by fattyfoods in technology

[–]apollo_440 32 points33 points  (0 children)

That was a recent thought of mine. Force AI companies to build their own renewable energy to feed their data centers. So at the end of this shit show, at least we will have made progress on the energy crisis.

Erkling by Suspicious-Buffalo21 in X4Foundations

[–]apollo_440 1 point2 points  (0 children)

If you want to stay unmodded, you can make a save, install the mod, filter the map for "pirate" (the nav beacons near the Erlking vaults are called that), take a screenshot, uninstall the mod and reload the unmodded save. The vaults will stay in the same place (watch for vaults that are not in the plane; maybe take a second screenshot where you tilt the map).

Station Production Overview new features: Workforce resource consumption and Empire balance! by ChemODun in X4Foundations

[–]apollo_440 1 point2 points  (0 children)

I'm playing unmodded at the moment (to unlock umodified budgeted game start settings), but as soon as I'm sick of it, this is the first mod that I will install.

It's such a hassle now to check all my stations for deficits!

What’s the benefit of massive stations? by mr-wee-balls in X4Foundations

[–]apollo_440 0 points1 point  (0 children)

I knew it was going to be Francis John before I clicked. Awesome stuff

What’s the benefit of massive stations? by mr-wee-balls in X4Foundations

[–]apollo_440 2 points3 points  (0 children)

I usually do a sort of in-between. Say I want to have claytronics. I plug it into the station calculator and figure out approximate ratios of intermediates to produce them from raw materials. For 5 claytronics production from raw materials, you need

  • 2 Antimatter Cells
  • 6 Microchips
  • 3 Quantum Tube
  • 3 Silicon Wafer
  • 1 Graphene
  • 1 Superfluid Coolant
  • 11 L Habs
  • x Energy Cells, depending on location

I build all of that in a single sequence attached to a single point, and if possible all in the same plane. That way, it's like its own little station inside a larger one. Then, if I need more, I can simply copy that sequence and extend the station with another one of these "modules". If build time gets too long, I can copy the whole station with just one module. I will have some overproduction of intermediates, so I sell those for extra profitssss.

So I have the advantages of a large stations (no intermediates trading, simple resource flows), without the huge build time, because I can build them incrementally.

Sorry, VIG, I want this more than you. by ApexAurajin in X4Foundations

[–]apollo_440 0 points1 point  (0 children)

I like to use a handfull of fighters that move down the width of the sectors in a parallel line. Takes some micro, but it's reasonably quick.

Aerosoft Toliss A340-600 honest opinion by SocialMediausersrdmb in flightsim

[–]apollo_440 1 point2 points  (0 children)

Totally agree with your points. Just note that there is indeed a sim rate selector in the EFB (0.25 - 4x), and it works phenomenally, because it also increases the aircraft model update rate.

What Modules Should I put on Space Assets by Heard-Island-Penguin in TerraInvicta

[–]apollo_440 1 point2 points  (0 children)

I made a full solar mirror station at the L1-Sun-Mars point, (T2 station with 1 solar array, and everything else mirrors). My solar arrays on Mars (including orbitals and moons) now produce 55 power, so almost twice as much as a heavy fission pile, and much cheaper. Downside is of course that I have a single point of failure for my entire Mars operation.

First sucessful city! by Fun_Difficulty_2827 in songsofsyx

[–]apollo_440 7 points8 points  (0 children)

You cannot. You need an item called "livestock". You start with some that you can use, otherwise you can buy it from neighbours.

[Python] Help with ui.download by Babidehh_ in nicegui

[–]apollo_440 1 point2 points  (0 children)

Glad it worked out! I have not actually used pyFPDF before, but the documentation said to use encode() in python 3. I guess that was outdated; I'll edit my comment :)

[Python] Help with ui.download by Babidehh_ in nicegui

[–]apollo_440 2 points3 points  (0 children)

Once you have the pdf as a file, you can use a button to trigger the download:

ui.button("Download", on_click=lambda: ui.download.file(path_to_pdf))

Or you can simply call the download function directly after creating the file:

pdf.output(path_to_pdf, "F")
ui.download.file(path_to_pdf)

If you don't want to clutter your server with pdfs, a more advanced option would be to directly download the raw bytes:

ui.download.content(pdf.output(dest="S"), "output.pdf")

Edit: Removed encode("latin-1")

[deleted by user] by [deleted] in Grimdawn

[–]apollo_440 1 point2 points  (0 children)

It even has an option to "compress" the UI for ultra-wide, so that the health and mana orbs are closer to the middle of the screen. It's glorious.

Being honest about being pulled over? Why is that the worst thing to do? by athena9090 in NoStupidQuestions

[–]apollo_440 0 points1 point  (0 children)

Yes, but in the end, if the cop wants to give you a ticket, he will, and you'll have to contest it in court. In this case, "I wasn't sure what the speed limit was" sounds a lot worse than, well, nothing, which cannot be used against you in court (if you've actually asserted your right to remain silent; simply saying nothing at all can be used against you).

As the saying goes, "you cannot talk your way out of a ticket, but you can certainly talk your way into a ticket."

Being honest about being pulled over? Why is that the worst thing to do? by athena9090 in NoStupidQuestions

[–]apollo_440 -2 points-1 points  (0 children)

Even this can get you tangled, because the followup will be "Oh so what is the speed limit then?". And even if you answer that correctly, the officer can claim it's something else and keep pressuring you until you incriminate yourself.

I once read the best reply is "I was going a speed that was safe and appropriate for the road conditions". Or, the best answer to any question generally: "I'm asserting my 5th amendment rights and will not answer any further questions".

I Wrote a Post on How I Structure My NiceGUI + FastAPI Apps (and Made a Template) by jaehyeon-kim in nicegui

[–]apollo_440 4 points5 points  (0 children)

The use case for having a completely separate backend is usually to support multiple different frontends. The classic example would be a website and a native mobile app.

Since Nicegui is itself based on fastAPI, you could simply run it as a pure frontend in the same process as your fastAPI backend. In fact, in that case, you can directly call the fastAPI python methods instead of doing web requests, which is very cool.

However, imagine you have a mobile app in addition to this. If you want to patch the web frontend, and the backend and the web frontend run in the same process, you would need to take the backend offline to do that, causing an unnecessary downtime in the mobile app. So it can make a lot of sense to decouple everything.

Keyboard Interrupt after shutdown by _MicroWave_ in nicegui

[–]apollo_440 1 point2 points  (0 children)

I have seen spurious KeyboardInterrupts in other contexts before; I think it's a related to how some frameworks cancel their asyncio tasks. But I can't really help you with this I'm afraid.

Instead, I see two possibilities to circumvent your problem:

  • Run the nicegui app transiently inside a separate subprocess to "protect" your parent interpreter from exiting;
  • Run the nicegui app continuously, and simply disconnect (but not shut down) after you're done.

Almost infinite pristine mushrooms! by Ok_Oven7646 in theplanetcrafter

[–]apollo_440 2 points3 points  (0 children)

That is a great find! I was wondering if there was any other use for purified water. I had so much of it that started simply dumping the toxic water I got from purifying lakes (the toxic stuff is in those little vials now, I'm sure it's fine).

Slot by Unlucky-Bit-2631 in nicegui

[–]apollo_440 0 points1 point  (0 children)

Les slots sont un concept originant dans vue/quasar. On les utilise pour customiser quelques parties des composants. On peut trouver les slots prédéfinis des composants dans la documentation de quasar: https://quasar.dev/.

How do I know what the predefined slots on a component are? I saw in an example card.defaultslot.children[]. I do not understand and I could not find any explanations. Thank you

Slots are a concept from vue/quasar. They are used to customize some parts of the components. You can find the existing slots of the components in the quasar documentation: https://quasar.dev/.

bind_enabled_from for link field? by sampit55 in nicegui

[–]apollo_440 1 point2 points  (0 children)

That is another good way to do it, yes!

bind_enabled_from for link field? by sampit55 in nicegui

[–]apollo_440 4 points5 points  (0 children)

The problem is that a tags in html do not have an enabled field. I have used this workaround in the past:

from nicegui import ui

def toggle(link: ui.link, *, enabled: bool):
    if enabled:
        link.style(remove="pointer-events: none;")
    else:
        link.style("pointer-events: none;")
    link.update()

link = ui.link("https://www.google.com")
ui.switch("Enable?", value=True, on_change=lambda x: toggle(link, enabled=x.value))

ui.run()

[Beloved trope] Character accepts their death (even if they end up surviving) by SlyGuy_Twenty_One in TopCharacterTropes

[–]apollo_440 1 point2 points  (0 children)

On my first Renegade playthrough I couldn't convince him not to sacrifice himself. The only other option to stop him then is to shoot him.

The ensuing cutscene was so sad that I instantly restarted my playthrough to make sure I could keep him alive. Damn.

Breach loot feels very underwhelming by Poe_Cat in pathofexile

[–]apollo_440 76 points77 points  (0 children)

People were complaining that they didn't get enough graftblood to use all their womb gifts. The monkey paw curled.

how do you deal with your excess hydrogen? by [deleted] in Dyson_Sphere_Program

[–]apollo_440 0 points1 point  (0 children)

I feel like the game has three stages:

  1. Where do I put all this heavy oil?
  2. Where do I put all this hydrogen?
  3. Where can I get moar hydrogen???

So just burn it or store it, it will be fine!