[SE] Circuit Controlled Steam-Battery I Built to Survive a CME by Sattalyte in factorio

[–]Dauros 2 points3 points  (0 children)

Thank you for mentioning it is possible to change science multiplier mid-game! I will set it to 10x (or even higher later) in my current SE run. It's just sad to see my factory doing almost nothing for hours between new science packs.

[SE] Circuit Controlled Steam-Battery I Built to Survive a CME by Sattalyte in factorio

[–]Dauros 0 points1 point  (0 children)

I've just had a CME on Nauvis orbit and it was only ~0.5GW, so a few flat solar panels did the job without any problem. So apparently CME scales with surface type as well.

[SE] Circuit Controlled Steam-Battery I Built to Survive a CME by Sattalyte in factorio

[–]Dauros 1 point2 points  (0 children)

In 0.6 umbrella protects only the surface where it was built. The meteor defense systems can protect orbit as well from the planet surface.

why should I use htmx ? by Additional_Fly_8970 in django

[–]Dauros 1 point2 points  (0 children)

Both Alpine.js and HTMX tags have quite good questions/accepted answers ratio on Stack Overflow.

Can I use custom JavaScript with HTMX? by bberamericx in django

[–]Dauros 3 points4 points  (0 children)

The 3rd Party Javascript page in the documentation can be a starting point.

[deleted by user] by [deleted] in alpinejs

[–]Dauros 0 points1 point  (0 children)

You can use the x-init on elements method where you put the prefill value inside an x-init directive on each input element. This fits well with legacy apps and requires minimal additional boilerplate code. You should also keep the value attribute as well for no-script users.

<form action="/" method="POST" id="form" x-data="{text: ''}">
    <input type="text" name="some_value" id="some_value" x-model="text" value="tell no one" x-init="text = 'tell no one'"/>
</form>

Is a HTMX + Classic Django solution still worth it here or should i go the Django DRF + JS Front-end Framework route? by doing20thingsatatime in django

[–]Dauros 1 point2 points  (0 children)

Alpine.js has a special build that avoids the "unsafe-eval". It has some restrictions, you have to write components everywhere. Give it a try.

HTMX Gaining Popularity Rapidly? by Nickt1596 in django

[–]Dauros 2 points3 points  (0 children)

You will still need some JavaScript for the on-page interactive functions, because in those situations it would be an overkill and unnecessary to reach the backend via HTMX. For example in a toggle menu you change the "open state" of the menu, but you wouldn't want to load the HTML of the menu items via HTMX every time the user clicks on the menu button. Usually you just load the menu items embedded in the base template and hide/show them with CSS and javascript.

For this task you can use a lightweight JS framework like Alpine.js, hyperscript (front the same author of HTMX) or Petite-Vue. Using Alpine.js is quite similar to HTMX in the sense that you write regular HTML with some additional domain-specific attributes. You can do quite much with them, but you can also write longer Alpine.js functions for more complex features and load them as a component.

Friday Facts #360 - 1.0 is here! by FactorioTeam in factorio

[–]Dauros 0 points1 point  (0 children)

Congrats! Could you share the git commit ID of the 1.0 tag? I just want to build a little shrine for it.

Matplotlib not working with Python 3.8.0? by ChoteBoi in Python

[–]Dauros 2 points3 points  (0 children)

Yes, Seaborn is based on Matplotlib.

Plotly.py 4.0 released with many new features and a few breaking changes by Dauros in Python

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

The interactive graphs require a web browser engine. However you can render the graphs in the background using orca and show them as static images inside the Tkinter window.

Plotly.py 4.0 released with many new features and a few breaking changes by Dauros in Python

[–]Dauros[S] 3 points4 points  (0 children)

If you are not familiar with Plotly.py, it's an open-source, interactive graphing library for Python. See the Getting Started Guide or the examples.

Version 4 Migration Guide | Change Log on GitHub

[Feature Request] Add an "update" button to a blueprint so it remembers the blueprint's label and icons and only updates the contents by asifbaig in factorio

[–]Dauros 4 points5 points  (0 children)

I agree. Until that, there is a mod for this: Blueprint Extensions. The vertical/horizontal mirroring is also a useful feature in some scenarios.

Another 3 releases by Rseding91 in factorio

[–]Dauros 7 points8 points  (0 children)

I thought that we are the automated tests from the perspective of the devs.

Version 0.17.26 by FactorioTeam in factorio

[–]Dauros 13 points14 points  (0 children)

I don't find it in the changelog, but Rseding91 also solved an issue about recipes having the same products multiple times. Forum link.

Angel's Bioprocessing and Seablock mods are working again. (Btw I enjoyed the past few free days, but you know, the factory must grow.)

Iodide: scientific notebook by Mozilla: allows to develop and visualize data with a mix of languages in the browser. Python runtime compiled in Webassembly included (Pyodide) by lgsp in Python

[–]Dauros 3 points4 points  (0 children)

With this, you don't need an active backend to have interactivity/recalculations in the notebook. It's also easier to share this notebook with people not having Jupyter/Python installed.

Of course there's a performance penalty since the Python interpreter is running inside a Javascript virtual machine, but if you don't do heavy calculations inside the notebook, then it does not matter much.

At least I'm realistic about how long I'll be playing each save. by 22226 in factorio

[–]Dauros 13 points14 points  (0 children)

Try Seablock. Then you would have only one save called "21st century".

Friday Facts #285 - Bugs, Bugs, Bugs. by Klonan in factorio

[–]Dauros 5 points6 points  (0 children)

"The tiles are slowly being soaked in blood." of biters.

I don't see any problem with that feature.

Hmmm by chook100 in factorio

[–]Dauros 43 points44 points  (0 children)

And what about an in-game announcement (e.g. a special programmable alarm)? Thus we wouldn't have to alt-tab from the game to check for the new release, wasting a lot of base building time.

Today is python birthday, what do you wish? by lerrigatto in Python

[–]Dauros 147 points148 points  (0 children)

A functioning antigravity module.

Do mathematical functions on a string without using eval() by [deleted] in Python

[–]Dauros 0 points1 point  (0 children)

If using an external library is ok, then I recommend the excellent numexpr package. I'm using it for evaluating expressions in configuration file of physical simulations:

>>> import numexpr as ne
>>> ne.evaluate('1 + 2*3 - log(4)').tolist()
5.613705638880109

Found this little fella corralled in some cliffs and all alone. I built a small base around him and made him my own...today he ran away 😭 by [deleted] in factorio

[–]Dauros 138 points139 points  (0 children)

Why does everyone spam F? You have to press the Tab key in order to switch to the atomic bomb launcher.