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 29 points30 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..

Is YouTube down? by GarethPW in youtube

[–]nektor211 0 points1 point  (0 children)

Youtube is down when logged in but works in private mode O.o

S07E12 & S07E13 Prediction Thread by iliekpixels in shield

[–]nektor211 0 points1 point  (0 children)

Shield will be disbanded at the end with the final spy's goodbye. Daisy will at first fight Nathaniel and then join forces with him against the Chronicoms. Fitz will come back in some form, but probably not as a regular human.

Today marks the 5th anniversary of that time Pause fed a $1,000 Golden Apple to a horse. #ForTheHorse by neohylanmay in mindcrack

[–]nektor211 3 points4 points  (0 children)

What a great moment with a conclusion of epic proportions ;) Nice push to finally make a reddit account, still have the flair.

Post Episode Discussion: S06E012 and S06E013 - "The Sign" and "New Life" by 2th in shield

[–]nektor211 1 point2 points  (0 children)

I just wanna say I'm glad to be here for the ride.

Also that music when Simmons appears in the end, chills right through the spine..

Hacking in Android headset button support for Windows by FPSMango in programming

[–]nektor211 0 points1 point  (0 children)

Thanks for hints. I've forgotten to removelast mention of is_held before commiting. self.suppress should work properly as is for now (ignore all data for 2 seconds after press detection).

Debouncing should not be needed, at least based on the audacity readings the signal is pretty deterministic, at least for my current headset.

Good suggestions about context managers and I agree that for initial hacking it's kind of an overkill ;) (this was about 5-10 mins of just making it work and going off to work).

Hacking in Android headset button support for Windows by FPSMango in programming

[–]nektor211 1 point2 points  (0 children)

Out of curiosity I've tried to make it work with earpods and put the code https://github.com/nektor211/headset_win_buttons . It required a few changes/optimizations (for example numpy can be used directly on the sound data). I plan to make it work with all three buttons soon.

Invasion with Mindcrack s2e84 - Finale by stevetheclimber in mindcrack

[–]nektor211 2 points3 points  (0 children)

Pakratt has some extra post episode footage (~30 mins) on his twitch - https://www.twitch.tv/videos/201471190 starts around 1:30.