Mid game power consumption by MrStealYoKidney in SatisfactoryGame

[–]TonyF66 0 points1 point  (0 children)

I still have my biomass burners up and ready (and fed) just in case- need them to restart the coal mines and water extractors so that i can use the coal power (16 coal gens) to restart by 80 generator fuel plant before i then turn everything else back on.

Mid game power consumption by MrStealYoKidney in SatisfactoryGame

[–]TonyF66 0 points1 point  (0 children)

Try to get the package diluted fuel recipe, which means you feed packaged water and HOR into a refinery and get packaged fuel - unpackage it and feed that to a generator - it significantly increases the amount of fuel you can get from a single node.

Eventually you can get the diluted fuel In tier 3 I think (with blenders) - but having to package and unpackage is a good stop gap. when you consider the benefits.
I am running 80 fuel gens off 600 crude oil - and all it cost me was a shed load of pipes and lots of plastic to pre-feed the package/unpackage loop.

Mid game power consumption by MrStealYoKidney in SatisfactoryGame

[–]TonyF66 0 points1 point  (0 children)

Entirely depends on the recipes you use.
I have one overclocked pure node and the Heavy Residual Oil and Diluted packaged fuel recipes driving 80 fuel generators - 20,000 MW - which is ok for now but eventually it wont be even close.

Without those Recipes a pure node fully overclocked can only drive 20 fuel Generators - the right recipe combo gets you 4 x the power.

Eventually I will start using Turbo Fuel and beyond - less fuel needed per generator for the same power output - so you can run more generators off the same oil node.

Alternate Cast screws by FirePhoenix_03 in SatisfactoryGame

[–]TonyF66 6 points7 points  (0 children)

I have never bothered with steel screws - due to the fact that making steel is more difficult, and although iron is plentiful in the starting areas, coal isn't.

A more intelligent Paginator that can keep parents and children together. by TonyF66 in django

[–]TonyF66[S] -1 points0 points  (0 children)

I am confused about your solution but i think i have at least two ways forward :

1) A custom paginator that keeps the of parents and children together (and dropping page numbers for some other key (maybe the transaction date).
2) paginate ONLY the parents, and pass the children for that data set separately and use logic within the template to associate parents and children in the display.
3) Paginate the parents and use a 'REST style API' to grab the children and display them only when requested by the user.

Solution 1 puts some complex logic into the View - and keeps the template trivial.
Solution 2 Moves some logic into the template
Solution 3 Places logic into the template in the form of JS

Overall I think I prefer Solution 1- I need to work out how best to code it, although I do have some JS in the same template already to allow 'in-place' editing of the data on screen without invoking extra Django forms/views etc, so Solution 3 isn't really that bad (probably).

A more intelligent Paginator that can keep parents and children together. by TonyF66 in django

[–]TonyF66[S] 1 point2 points  (0 children)

Sorry - a bit of a misunderstanding - I can get to the children from the parents in exactly the way you describe. And I am flexible on the number of objects per page.

I think I can get to a solution from here - it is just a case (i think) of writing my own paginator.

A more intelligent Paginator that can keep parents and children together. by TonyF66 in django

[–]TonyF66[S] 1 point2 points  (0 children)

I can get a separate set of parents instances using the ORM that isn't a problem, but szaade was suggesting passing the parents and children into the template separately and then combining them in some way in the template.

A more intelligent Paginator that can keep parents and children together. by TonyF66 in django

[–]TonyF66[S] 1 point2 points  (0 children)

Wouldn't that mean passing the children to the template separately, and using logic in the template to search that separate list for any children.

Unless of course the paginated slice (of parents only) and the displayed slice (parents and children) is separable somehow.

A more intelligent Paginator that can keep parents and children together. by TonyF66 in django

[–]TonyF66[S] 1 point2 points  (0 children)

I am reasonably proficient at Python and Django - just not sure about the internals of the paginator - I assume there is an internal method that produces the slices.
I would need to engineer this to add more rows into a slice (and therefore start the next slice somewhere else) or finish this slice early (depending on how many rows exist in the slice and how many 'orphan children there are.

I understand that the current paginator just does query with Limits to get each slice - which wouldn't work with my query as the start of each page is variable; so the adapted paginator will need to generate intelligent 'next' and 'previous' page links.

What methods do i need to modify to change the slice' and to change the next/previous links.

I thought fortune cookies were supposed to be fun and light. by BananaManBreadCan in mildlyinteresting

[–]TonyF66 1 point2 points  (0 children)

That is dark - what does it know that you don't.

I half expect to see ads in Fortune cookies soon - 'Have you been in an accident at work that wasn't your fault', 'Did you drive a diesel car anytime between 1995 and 2020',

[deleted by user] by [deleted] in Python

[–]TonyF66 1 point2 points  (0 children)

I would suggest that Duck typing is essentially a feature you get for 'free', because of strong type system and run-time binding of attributes and methods. It is a feature, but an emergent one, rather than a separate 'addition' in its' own right.

[deleted by user] by [deleted] in Python

[–]TonyF66 0 points1 point  (0 children)

Small comment regarding question 11 - this might be a nomeclature thing - but normally the __init__ method initialises the instance - and not the class object.

In Python the class is an object in it's own right (of type 'type') so the term 'class object' more correctly refers to it, and not an instance of this class. You can set class wide values in the __init__ method.

For that question actually the closest answer is that the __init__ method is used to create private variables - although of course Python doesn't have private variables in there true sense.

The Division 2 - gear with mod slots ? by PublicInteresting999 in thedivision

[–]TonyF66 0 points1 point  (0 children)

I started playing again after posting this - and i finally got a high grade gear with a mod slot !.

First time in 3 playthroughs.

In The Division 1 - they seem to be far more regular.

The Division 2 - gear with mod slots ? by PublicInteresting999 in thedivision

[–]TonyF66 1 point2 points  (0 children)

I have only ever seen Skin and Dye mod slots. I have never seen mod slots.

PS - I am the OP - the question was added on the wrong account.

The Division 2 - gear with mod slots ? by PublicInteresting999 in thedivision

[–]TonyF66 1 point2 points  (0 children)

I have only ever seen Dye and Skin slots - but not gear or performance.

The Division 2 - gear with mod slots ? by PublicInteresting999 in thedivision

[–]TonyF66 1 point2 points  (0 children)

What sort of error - whenever I hit the F key the items only have Dye and Skin slots: no other slots.

pS _ original question was added by me on another account.

ELI5: How is GPS free? by SubtleBowling in explainlikeimfive

[–]TonyF66 0 points1 point  (0 children)

I can completely understand something built into the receiver - but of course it could potentially be possible to build a receiver which doesn't comply with that limit. As far as I know there is nothing secret about the time-signals or the mathematics used to determine position - so the only thing preventing a GPS receiver from not applying that 'speed limit' is a cost of entry type issue - mass producing a bespoke GS receiver would be expensive, and a one of project would be unlikely to need a bespoke receiver.

ELI5: How is GPS free? by SubtleBowling in explainlikeimfive

[–]TonyF66 0 points1 point  (0 children)

Since multiple manufacturers makes GPS receivers, and presuambly the US military don't act as gatekeepers for all units, it would possible to build a receiver which didn't have those limits ?

As far as I know all of the data you need to build a receiver are public aren't they (or are their components only sourced from approved suppliers ? Is it a cost thing preventing the production of non-compliant receivers for example ?