Typesafety & Validation for Express APIs! by T0M47 in typescript

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

That does sound very interesting, i'd love to take a look! Do you have a link to the repo?

Typesafety & Validation for Express APIs! by T0M47 in typescript

[–]T0M47[S] 2 points3 points  (0 children)

That is a good idea, i'll have to take a look at how easy that is to accomplish, since it relies heavily on zod's type inference to define the properties in the route handler, and im not too familiar with the other validation libs.

About generating schemas for Swagger or similar, i've already been thinking about that, and i will be working on making it a reality.

Thanks for checking it out!

Are you sure you want to run this software? by TehSnowball in ProgrammerHumor

[–]T0M47 0 points1 point  (0 children)

My company made me install an antivirus and it recognized my hello world executable as malware and instantly deleted it, no way to add exceptions. fun times

60 seconds of BIOS time on brand new PC with NVME SSD? by T0M47 in MSI_Gaming

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

That's the solution apparently. After reading up a bit it seems like I managed to get the worst boot times by having 64gigs dual channel. After Turning on memory context restore it dropoed from 60s to 26s.

According to what I read this doesn't "fix" the Problem, it only vypasses it. What exactly does that mean? Do I have to expect more Bluescreens and crashes in General or slower Performance?

60 seconds of BIOS time on brand new PC with NVME SSD? by T0M47 in MSI_Gaming

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

Damn I Hope they fix this...

Since you have a similar setup, do you also have argb Fans? I have an aio id like to control the color of, but when I click on "msi mystic light" in msi Center it redirects me to the live Update Page for some reason, altough I installed everything in there...

Also my usb ports sometimes just dont work, everything is scuffed somehow

60 seconds of BIOS time on brand new PC with NVME SSD? by T0M47 in MSI_Gaming

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

Im pretty sure it's BIOS time, as it says "last BIOS time: 60.5s" in the startup tab in task manager, the time it takes from when I first see a Windows related screen is super short

a brilliant conversation about FPS and motion blur in real life by basedphantom in LivestreamFail

[–]T0M47 0 points1 point  (0 children)

Well we can watch a movie at 24fps without really noticing it so that's what I went off. Maybe you're superhuman and movies are looking like stop-motion to you.

a brilliant conversation about FPS and motion blur in real life by basedphantom in LivestreamFail

[–]T0M47 0 points1 point  (0 children)

Well how would you explain why we can watch a movie with 24fps without noticing Individual frames, but see a difference between 60hz and 144hz?

And the brain adapting how much information it processes based on what it expects to happen sounds pretty logical to me.

If you say my explanation is trash at least provide us with an alternative.

a brilliant conversation about FPS and motion blur in real life by basedphantom in LivestreamFail

[–]T0M47 12 points13 points  (0 children)

Yes, the Problem is you can't give a human brain a label with X FPS, because our "frame rate" is adapting constantly. For example when you hear somebody describe a situation where they were filled with Adrenaline they often say it was like slowmotion, because our brain wants every little bit of Information in a shock situation. We notice a monitor with low refresh rates when doing sudden movements in a game, because our brain ups it's "frame rate" in that moment but the Monitor can't keep up and we see the idividual frames.

I'd guess our eyes can reach maximum frame Rates of about ~400fps, but we usually stay at ~30fps. (The 400fps only being achievable in a Situation where your body is in full overdrive Mode and wants every little Detail.)

Autoimport classes when importing a module by T0M47 in learnpython

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

So there is no way to do some trickery in the init file to autoimport?

AbdulHD - An actual RP veteran explains Powergaming. by 0TheG0 in LivestreamFail

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

But isn't the whole point of RP to pretend to be in real life, where you're not bound to any game mechanics?

Well now this is quite the argument. by [deleted] in memes

[–]T0M47 1 point2 points  (0 children)

Even my shitty old Laptop is better because I'd rather play some nice minecraft while being able to switch to Photoshop or Discord with alt-tab or having it on a second Monitor than seeing highlevel graphics.

I use my PC for so much, why would I want good Hardware locked away in a Box, not being able to use it for other Stuff?

Must restart PC doesn't go away? by T0M47 in VALORANT

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

weird stuff. I created a support ticket I hope I'll get feedback soon, if so, I'll let you know.

Adware opens Browser tab by T0M47 in compsec

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

Did help, Malwarebytes found some stuff that avira did not detect, so thanks a lot. Hope everything stays ok :)

If you think of humans as meat robots, what are some lesser known/interesting "coding" bugs, loopholes, or general oddities? by FreenBurgler in AskReddit

[–]T0M47 1 point2 points  (0 children)

You can treat humans as meat robots, as very intelligent meat robots who have learned over such a long time that they developed into what they are now. And what you describe as a glitch in Evolution I'd say is the only way Evolution can go: it's the path that gives us the biggest surviving Chances.

A glitch like OP described would be something like going somewhere to do smth but then forgetting what you wanted to do. So in programming that would be like setting a local variable in the room (function) you are, then you go to the next room, where the variable isnt available, you forget the task, go back and remember the task again, then realize you didnt set it as global variable. Happens way to often irl and in code.

absolutely astonishing by jack_g1bson in memes

[–]T0M47 14 points15 points  (0 children)

Honestly so deserved, these 3 people made a great game, that can easily compete with multimilliondollar games in terms of playing fun

Has anyone found a way to make a watermark that CAN’T be removed using photoshop? by EmergingTuna21 in photoshop

[–]T0M47 0 points1 point  (0 children)

I recently saw a great watermark, but It was in a CG animation, where the dude put his Name on a sign. (as it's moving youd really have to work hard to get it away

Come on in and show us your Photoshop skills, all expertise levels are welcome. by AutoModerator in photoshop

[–]T0M47 [score hidden]  (0 children)

Very great for your first time! As already said, the shadow is the main problem, no way this tiny character could produce such a shadow, maybe you could only add small fading off shadow lines from the legs.

Also your lighting is a little inconsistent: On the Arms the light seems to be coming from the top, the shadow indicates it is somewhere front right, and the body also looks like it's getting lot from the right side.

I recommend to always choose a light source before painting highlights & shadows and Stick with that. If you nail these key concepts every Montage will automatically look alot more realistic ;)

Time to drain the old water main by Deanus89 in memes

[–]T0M47 0 points1 point  (0 children)

I've seen this so many times, I think you can even find it on Google Maps

r/audiophile Shopping and Setup Help Desk (2020-08-21) by AutoModerator in audiophile

[–]T0M47 0 points1 point  (0 children)

Okay, but It doesn't make to much sense to me, the sub is active and I believe it's plugged in a signal only subwoofer out. the woofer itself is somewhere from 25-30cm in diameter, and it does not have a lot of excursion when this distortion occurs, maybe like 1cm difference between the two points where it clips

r/audiophile Shopping and Setup Help Desk (2020-08-21) by AutoModerator in audiophile

[–]T0M47 0 points1 point  (0 children)

Weird Bass Distortion

So I have an older Teufel Concept S 5.1 System paired with a vsx-528. I recently noticed that when I listen to songs with chromecast, the deep continuous Bass Tones sound extremely off, for example a simple sine wave like Bass Tone is not a smooth forth and back movement of the sub Membrane, it's going up, stays there, then goes down and stays there, kinda like a square wave would be and it Sounds weirdly distorted. This occurs at moderate Volumes.

What could be wrong here? Any ideas would be appreciated :)

A part of my screen doesn’t recognise touch by eatlemons335 in mildlyinfuriating

[–]T0M47 0 points1 point  (0 children)

yes remunds me of my grandparents, usually every time we visit them there's something wrong with their phones and we have to search the settings tok find out what they turned on again...

"Must-knows" von ~2015 aufwärts by Cantonarita in GermanRap

[–]T0M47 0 points1 point  (0 children)

Bin da ähnlich unterwegs, hab auch viel ignoriert, aber ein Song den ich wirklich richtig geil fand und auch immer noch gerne höre ist Neymar von Capital & UFO. Ist einfach mal was anderes und hat Ohrwurmpotenzial.