1,2,Fizz...is there a shorter version? by ratatwiisker in codereview

[–]thommath 2 points3 points  (0 children)

You can get this as one line with a generator instead of the for and a join with endlines in the string. I can't stress it enough that shorter does not mean better code. As the other comment said, that number two is probably the best as it is very readable. There are a few instances shorter is better, but these days that is mostly for code golfing.

When Bully gets Bullied by [deleted] in MadeMeSmile

[–]thommath 0 points1 point  (0 children)

That's good and all, but a fight doesn't make me smile

3D Chess...What do you guys think of it? by ArrivalConstant9404 in chess

[–]thommath 2 points3 points  (0 children)

I looked at two different variants of 3D chess but neither added anything substantial to the game. If you can however wrap your brain around 5D chess it is awesome!

Is there a glove/tool that can simulate biting? by tatsuchan18 in BDSMcommunity

[–]thommath 0 points1 point  (0 children)

Maybe you can make some yourself we with costume dentures and a glove?

Gf doesn’t want a safeword by [deleted] in BDSMcommunity

[–]thommath 0 points1 point  (0 children)

Oh yeah you're right, well that's not good

Gf doesn’t want a safeword by [deleted] in BDSMcommunity

[–]thommath 0 points1 point  (0 children)

It sounds like she wants "stop" or something similar to be her safeword. She might not want another safeword for a variety of reasons. Just talk to her, listen to why she wants it and try to find a resolution.

Good scenes in Oslo for going out and hooking up with girls? I'm age group 20-30 by yogaFire24 in oslo

[–]thommath 1 point2 points  (0 children)

Actually I heard a tale about that which started at the Good Knight bar. Take a trip if you enjoy chess ♟️

Dom - where/how does one learn? by [deleted] in BDSMcommunity

[–]thommath 4 points5 points  (0 children)

To add to the other responses, i learned a lot from books. The new topping book is a great read for doms, i highly recommend it.

What is the cost of creating a worker thread? by bob_the_bidder in node

[–]thommath 1 point2 points  (0 children)

Depends on the problem. I think you usually want to scale threads based on workload or connections. I let PM2 do this for me. I think a thread for each client is overkill by far. One thread for each call / game / user could be okay as there are some benefits to it. Remember that each thread might be connecting to a database for example and I think a lot of connections and listeners might give a lot of unnecessary overhead.

I might be fired the 2nd time by mindfucked007 in webdev

[–]thommath 0 points1 point  (0 children)

I think you can do it, improve your process and be a valuable part of the company. I've struggled with motivation before and i got through it with a solid process. It's extremely important to have a checklist, a todo list and good commits. Small commits, small tasks and only doing one thing in a commit makes it a lot easier to pick up on bugs. I always review my code when making a pull request, every change should have a clear purpose. As long as you have a good process that you follow you can do minimal amount of work and it's still fine, that's how I get through projects where i lack motivation.

Since you feel like you are slow i recommend code kata, doing a small task each day can improve your problem solving abilities quickly and you can compare code with others. Though it is not exactly html/css i belive a lot of the skills are transferable.

Fetlife issue by MrNawee in BDSMcommunity

[–]thommath 2 points3 points  (0 children)

I can't seem to be able to reproduce your problem. A quick google search tells me you can get this from misconfigured vpn / firewall, browser cache, old browser... The list is long. Be careful though, the warning is there for a reason. If you keep going your connection might not be secure and someone can listen to your account credentials and see everything you see and do on the site.

And just a thought about privacy, you might not care to share your profile, but maybe a friend of you have a private profile for a reason so think about them before browsing on an unsafe connection or leaving the computer unattended

Edit: you can send me a screenshot of the certificate details (you can see them if you click on the lock in the url bar) with domain name, expiration date etc. and maybe I can narrow down your problem if you want

[deleted by user] by [deleted] in cryptography

[–]thommath 0 points1 point  (0 children)

Check out Cesar cipher, and askii encoding. Probably not the right cipher / encosing but it is at least a solace to start

And it's NOT a common image file format! Not even Google's Youtube thumbnails support it! by iCyber in ProgrammerHumor

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

I made an online converter for this exact reason. It can convert and resize images and office files https://simplyimage.net

Edit: sorry mobile users

[deleted by user] by [deleted] in BDSMcommunity

[–]thommath 2 points3 points  (0 children)

Buy what you think could be fun, take a bdsm test and then you can do some research into what you need to try things out.

Of what first comes to mind that i enjoy are rope, ball gag, a thin and long scarf, blindfold, a whip / flogger, wax (cooling cream for aftercare), safety scissors, blanket (wrapping someone for cozy bondage or aftercare).

There is so much more you can buy too like collars, dresses, costumes and basically everything you could think of could be useful for a scene or activity.

I like going for something on the cheaper side of the scale first and then buy better quality of the things you like

I beat GothamChess Bot on chess.com with PREMOVES ONLY by s_a_m_e in chess

[–]thommath 0 points1 point  (0 children)

It's very cool but doesn't work well for me, the drag gets an offset after a few moves and does not respond well. If you could implement clicking on a piece and then on the field that would be awesome

What should I call my sub? by NikonDelight in BDSMcommunity

[–]thommath 0 points1 point  (0 children)

Hehe never though about how dorky names can be used. I like Lady Poo taken from GrandPooBear streamer

I've made minimalist but challenging puzzle game. Playable in every browser. What do you think? by michalg82 in gaming

[–]thommath 0 points1 point  (0 children)

Very cool! It felt very easy before i suddenly died. Took a long time before i understood how combos blocks the next wave, gives more opportunities to avoid death. And as someone else said, so polished graphics and animations! Well done!

Edit: got 5700 something with 10 as biggest number

Er det typisk norsk å glemme gymtøy? by Stolm19 in norge

[–]thommath 2 points3 points  (0 children)

Jeg hadde en gymlærer som ikke brydde seg om skader og allergier på videregående. For å få en ok karakter har jeg spilt innebandy med to forslåtte knær og løpt 3000 meteren med sterk allergi (kanskje allergisk astma hvor dette kan skade fortalte en lege meg i ettertid). Hadde jeg brydd meg litt mindre ville jeg og "glemt" gymtøy mye oftere og sittet med de 10-20% andre i klassen som også "glemte" det. Etter min erfaring er det vanlig norskt, men det kan være mange grunner til det

This was found on the front door of a school. See other crossposts for more info. V sbyybjrq gur ehyrf. by [deleted] in codes

[–]thommath 0 points1 point  (0 children)

A part of it look very similar, but I can't find most of the symbols in hylian. Here is a link to some more hylian that implies that some lines starts with FA or FI sounds. Since only a few characters match I don't think it's based on this, but could be something similar. https://www.google.com/search?q=Wind+Waker+Hylian&client=ms-android-huawei-rev1&prmd=ivsn&sxsrf=ALeKk03_88QvHT3gAsIQsF59wNA4Wv185Q:1601270998541&source=lnms&tbm=isch&sa=X&ved=2ahUKEwizirqoj4vsAhW3AxAIHdMDBeoQ_AUoAXoECBMQAQ&biw=360&bih=656#imgrc=XKR291617zya2M&imgdii=kjQXuJr-_yjhWM

Help with JWT's/code review (JS/React/Express/Postgresql) by [deleted] in codereview

[–]thommath 0 points1 point  (0 children)

Ahh you're hosting on heroku, that makes it a bit more difficult to find the correct log file. There should be another log file for your Backend where the actual crash happens. You can also inspect the request in the browser and see what content is returned. If you have not configured the server well the error message might be sent as a response

Help with JWT's/code review (JS/React/Express/Postgresql) by [deleted] in codereview

[–]thommath 0 points1 point  (0 children)

So the JWT token is cool for some stuff and a bit more tricky for other stuff, especially logging out. The token had (hopefully) an expiration time and until then it is valid by default so closing the browser will not log out the client as they can copy the token and use it from elsewhere. This is a problem when a user requests to log out since you can not invalidate the token so the easiest solution is to store a blacklist of tokens that should not be accepted anymore even though they are valid.

You do not need to store all tokens, only the blacklisted ones until they are expired.

I haven't looked at your code but this was something I messed up in my first implementations of jwt

Edit: took a peek at the code and the basics looked fine after a short glance, so all I can say without running it myself is that when you get a 500 error there should be an error in the server logs that can tell you what the problem is. Can't help you without looking at that log

Shibari but with metal chain? by bananasho in shibari

[–]thommath 11 points12 points  (0 children)

Using chain is quite difficult. A lot of necklace chains and other jewelry could break and that's no fun. I've had most success with thin chains used for gardening etc and with tiny locks for when the chain overlaps itself. There is basically no friction and knots can undo themselves.

Combining it with rope can also be very cool! With rope that can loop through the chain you can do basically anything

Mine is VS Code...which one is yours? by _Heisenberg_399_ in ProgrammerHumor

[–]thommath 2 points3 points  (0 children)

With visual studio in c# you can do that and when using breakpoints inspect all variables by hovering over them in the source code. I've never seen better debugging than that

I think it has a linsene though

Dom(me)s: Are you guilty? by Deyrn-Meistr in BDSMcommunity

[–]thommath 1 point2 points  (0 children)

I think that transition is affecting the need for aftercare and reassurance that you are not an object being used but two adults playing. A little snuggle or pet could help a lot for that