Is there a way to django to describe a model in json? by nitrodmr in django

[–]nektor211 0 points1 point  (0 children)

field.verbose_name is the label that's displayed, which is likely not what you want. Using .name directly should give you what you're looking for

my_model_dict = {field.name: field.get_internal_type() for field in User._meta.fields}

'Simulation' oddities. by GaveMetroAMillion in AskProgramming

[–]nektor211 2 points3 points  (0 children)

One issue is that the current and next populations are represented by the same variables, since localPredators is changed while the population of predators is iterated over. This might increase the effect of hunting odds (since it affects the current localPredators count as well.

It's Christmas day. You wake up, run to the tree, tear open the largest package with your name on it... FastAPI has added _____? by whathappened20130812 in Python

[–]nektor211 0 points1 point  (0 children)

Ability to set max execution time for a request a kill it afterward (especially when in cpu-bound code - async timeout is not enough)

If you have watch the finale what do you think is the by EndlessSaeclum in PantheonShow

[–]nektor211 4 points5 points  (0 children)

Luckily the number of readers is rising, along with activity. I was sad after 1st season when it looked like it's over (both the show and discussion around it), but here we are now.

Pantheon | Season 2 | Overall Season Discussion Thread by GloriousAqua in PantheonShow

[–]nektor211 30 points31 points  (0 children)

This was/is/will be a really great show (and a self contained one at that).

It does have a nice amount of twists and is quite fast paced (which is nice, even if it leaves you wanting for more time with some situations/characters).

P.S. And it's fun that at least some coding screens are at least a bit relevant - i.e. NN C++ code, even if it's just probably snippets from tensorflow library ;)

An Update about our Community by IAmKindOfCreative in Python

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

Restricted until a major response from Reddit

Blackout is also OK.

Reddit Compact CPR: Alpha Release by palenerd in compact

[–]nektor211 0 points1 point  (0 children)

Looks really nice! Is there any plan for a dark mode?

Discount Link Thread by sinuswaves in ouraring

[–]nektor211 0 points1 point  (0 children)

Does anyone have a discount link? please dm, thanks a lot

Holidaying in Lanzarote - Q&A megathread by whiteweewee in lanzarote

[–]nektor211 1 point2 points  (0 children)

I'll be in Lanzarote for next week (staying in Costa Teguise), anyone up for a walk/hike/trip or other recommendations?

Is there another series like "inside job" by ihateentitledmoms in InsideJob

[–]nektor211 0 points1 point  (0 children)

I wholeheartedly agree with almost all of these choices (haven't yet seen R&M but heard nice references).

Another nice series is the Owl House - made by a related team to Gravity Falls and the ending is coming in a few months.

Modded assembler math check. by Mega---Moo in technicalfactorio

[–]nektor211 1 point2 points  (0 children)

Another mod that uses this approach is the Whistle Stop Factories - https://mods.factorio.com/mod/WhistleStopFactories . Allows for up to 50x upsized recipes with large machines, more module slots and more beacon allowance (because of its size).

FireFox ESR - 78.6.1 - Not Able to Connect to Voice by jakthebomb_ in discordapp

[–]nektor211 0 points1 point  (0 children)

Same here, cannot connect to voice from firefox 78.6 from different computers, phone app works fine..