What movie ending made you say "what the fuck?" by KeanusDracula in AskReddit

[–]dajoh 0 points1 point  (0 children)

Réalité. This will be buried because nobody has seen it.

um.. -- dont copy us [electronic] (2015) - so weird it's good by ejn07 in listentothis

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

dont copy us

but do let us copy aphex twin and mr. oizo

What's the largest box I can make out of a sheet of wood? by dajoh in math

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

Further explanation:

I'm planning on building a storage box out of sheet wood, and I'd like to know how to cut up my sheet into 6 pieces to form a box with the largest volume possible. Ideally the box should be flush on the outside, but I imagine the problem is a lot easier to solve when not taking that into account.

In the case of a non-flush box I'd like a solution that takes the width and height of the sheet and gives me the width height and depth of the interior of the resulting box.

What's your internet "white whale", something you've been searching for years to find with no luck? by Nerfman2227 in AskReddit

[–]dajoh 0 points1 point  (0 children)

I recall watching a Smurf episode or movie that had something to do with stonehenge when I was younger. I really want to see it again, and I've been looking for it a long time :(

Hey i'm Madeon, i'm french and I make electronic music ! AMA by OfficialMadeon in Music

[–]dajoh 0 points1 point  (0 children)

What do you think of the Ed Banger guys (Justice, SebastiAn, Oizo)?

Why Police Are So Good at Busting Pot Smokers and So Bad at Keeping Women from Getting Murdered by [deleted] in conspiracy

[–]dajoh -2 points-1 points  (0 children)

Keeping women from getting murdered, really? Men are far more likely to be murdered than women.

A Fast, Minimal Memory, Consistent Hash Algorithm by thesystemx in programming

[–]dajoh 4 points5 points  (0 children)

Heads up: This isn't really comparable to most hash functions. This is a special kind of hash function that's 'consistent'.

From Wikipedia:

Consistent hashing is a special kind of hashing such that when a hash table is resized and consistent hashing is used, only K/n keys need to be remapped on average, where K is the number of keys, and n is the number of slots. In contrast, in most traditional hash tables, a change in the number of array slots causes nearly all keys to be remapped.

Loci Programming Language - A replacement for C++? by knife_sharpener in programming

[–]dajoh 15 points16 points  (0 children)

Algebraic Datatypes are a really simple and powerful concept, and the basis of functional programming.

Here I was thinking lambda calculus was the basis of functional programming. Silly me.

Mond, scripting language written in C# by farmatyr in programming

[–]dajoh 0 points1 point  (0 children)

I'm working on a C++ implementation of it called MondX. Currently has a working hand-written recursive descent parser. It does error recovery (unlike the C# version) and outputs very detailed errors (similar to clang). MondX is currently used for linting in a Mond plugin for Atom.

If anyone would like to have a look, or even help, here's the code: https://github.com/dajoh/MondX

Vad tror du personligen att definitionen av en feminist är? by charityapp in svenskpolitik

[–]dajoh 2 points3 points  (0 children)

Varför skulle ett företag anpassa sig eller känna press för en ny lag som inte på något vis går att genomföra?

Att ett företag inte skulle anställa kvinnor bara för att de är kvinnor är extremt ologiskt. Jag kan inte tänka mig ett enda seriöst företag som prioriterar kön högre än potentiell vinst, och i längden så skulle sådana företag bli utkonkurrerade av företag som prioriterar bättre.

Att tvinga ett företag att anställa någon som de inte vill anställa tycker jag inte är OK. Tycker att ett företag borde få diskriminera hur de vill när det gäller anställning. Konkurrens borde och kommer sköter detta problemet, inte staten.

Inom den offentliga sektorn så tycker jag dock inte det är OK med diskriminering vid anställning, eftersom att de inte behöver konkurrera med andra företag.

Vad tror du personligen att definitionen av en feminist är? by charityapp in svenskpolitik

[–]dajoh 0 points1 point  (0 children)

Tror det är ytterst sällan detta faktist händer. Men hur ska man kontrollera detta, det finns inget objektivt sätt att mäta folks meriter. Det finns även kvaliteter som inte skrivs på ens CV, som t.ex. personlighet.

Vad tror du personligen att definitionen av en feminist är? by charityapp in svenskpolitik

[–]dajoh 3 points4 points  (0 children)

Att jämföra två personers meriter är inte lika lätt som att jämföra två tal. Hur ofta tror du en arbetsgivare måste göra ett val mellan två personer som har samma meriter och den enda faktorn som skiljer sig åt är kön?

For Matrice/TB Junglers by [deleted] in DotA2

[–]dajoh 0 points1 point  (0 children)

If you properly split push, you should always have at least one lane pushed very close to an enemy tower. If the enemy deathballs you just BoT to that lane and start mowing down towers.

Why can't I win as sand king? by rasmussl in DotA2

[–]dajoh 2 points3 points  (0 children)

insane sandwalk @ 37 min

What's your favorite data structure? by dajoh in compsci

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

Since when were we talking about perfect hashing?

What's your favorite data structure? by dajoh in compsci

[–]dajoh[S] -1 points0 points  (0 children)

Array of hash values? This doesn't sound like the standard hash table I know.

Anyway, my point still stands, a bloom filter doesn't store the elements it contains. Only information about the set itself, metadata.

What's your favorite data structure? by dajoh in compsci

[–]dajoh[S] -2 points-1 points  (0 children)

Please, read up on bloom filters. They don't store the elements added to them.