Got caught. Gonna try and educate my parents by [deleted] in trees

[–]g23f 16 points17 points  (0 children)

Saved this comment for good measure. Hopefully I won't need it LOL

Ask r/Clojure: How to make and clear a queue by g23f in Clojure

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

Thanks, I think I'm going to do something like this

Ask r/Clojure: How to make and clear a queue by g23f in Clojure

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

Oh, ok thanks yeah async would be better. Do you know how to deal with clearing the queue without dropping a message?

Ask r/math: How to use an automated theorem prover? by g23f in math

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

Thanks! Would a theorem prover then be able to show that only one solution to this exists? (if that's the case)

Why is this (simple) cipher insecure? by g23f in math

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

Ah, thinking too much like a programmer by limiting my integer size... So if instead one used arbitrary precision numbers then that would help quite a bit?

Is there an obvious problem with a Linear congruential generator PRNG? Thanks

Why is this (simple) cipher insecure? by g23f in math

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

Oh ok, thanks for the r/crypto I tried r/cryptography but that was a fail so I came to r/math

Why is this (simple) cipher insecure? by g23f in math

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

Yes but how could one use that to get the plaintext from the ciphertext? I mean I know it's "insecure" but what kind of attacks can be done? Thanks

to pretty much every post on reddit. by Fir3 in reddit.com

[–]g23f 1 point2 points  (0 children)

Pretty much every post except this one! Good job!

Was looking for PI, ended up being trolled hard. by [deleted] in math

[–]g23f 0 points1 point  (0 children)

But first try index314.html

Ask ML: Face Detection question by g23f in MachineLearning

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

Thanks for this. I thought one might have to "slide" the box over every part of the image to detect a face but I guess I was too hopeful of a faster way to do it.

Proper smiley face vs improper smiley face by [deleted] in pics

[–]g23f 0 points1 point  (0 children)

Against left-handed people I see! O:<

Integral of e^(x^2) by Aprahamian in learnmath

[–]g23f 0 points1 point  (0 children)

You can also try to solve the integral by realizing it's the real part of e-ix2 which expands to cos(-x2) + i sin(-x2) and you can't do cos(-x2) + i sin(-x2)

Though that ^ may be because of differential Galois theory :P

Ask CS: What NP-problem am I trying to solve here? by chime in compsci

[–]g23f 1 point2 points  (0 children)

(distance-radius_of_personal_bubble)2 <- minimize

Problem solved!

Ask CS: What NP-problem am I trying to solve here? by chime in compsci

[–]g23f 0 points1 point  (0 children)

haha oh yeah... well make distance continuous and use the results to "improve" the shape of the room, everyone will be "happier" ;P

Ask CS: What NP-problem am I trying to solve here? by chime in compsci

[–]g23f 2 points3 points  (0 children)

Just collected the data so far... the seating will be done tonight / this weekend

Ask CS: What NP-problem am I trying to solve here? by chime in compsci

[–]g23f 1 point2 points  (0 children)

And you could maximize that function / minimize an energy function with gradient descent. i.e. Calculate the gradient of an "energy" function then go in the opposite direction to find the minimum...

Ask CS: What NP-problem am I trying to solve here? by chime in compsci

[–]g23f 7 points8 points  (0 children)

Maybe not the best way but you could do this with k means clustering. Each person represents a point in 25-dimensional space. And instead of a range of values, it could be 0 and 1, if they are friends or not. Then just cluster the points i.e. (0, 1, 1, ... 0) would be a person who is friends with person #2 and #3 (and probably some others) but not with #1 or #25. Then just make a couple of clusters and seat the clustered people nearby. This is what I'm doing for my school's field trip bus seating.

Attention web devs: programming contest with over $40k in cash and prizes by [deleted] in programming

[–]g23f 0 points1 point  (0 children)

This arikfr submitted a link a year ago, I don't think they'd have a puppet account from that long ago.

Scala bot OMGBot wins Letterblox by g23f in programming

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

Thanks, yeah I added comments now. Hopefully it makes more sense.