archived
stringclasses
2 values
author
stringlengths
3
20
author_fullname
stringlengths
4
12
body
stringlengths
0
22.5k
comment_type
stringclasses
1 value
controversiality
stringclasses
2 values
created_utc
stringlengths
10
10
edited
stringlengths
4
12
gilded
stringclasses
7 values
id
stringlengths
1
7
link_id
stringlengths
7
10
locked
stringclasses
2 values
name
stringlengths
4
10
parent_id
stringlengths
5
10
permalink
stringlengths
41
91
retrieved_on
stringlengths
10
10
score
stringlengths
1
4
subreddit_id
stringclasses
1 value
subreddit_name_prefixed
stringclasses
1 value
subreddit_type
stringclasses
1 value
total_awards_received
stringclasses
19 values
True
notfancy
null
The principle of using rejection is sound. If all the bits are equidistributed, you mask off as many bits as necessary to cover your range, *and then* reject, with less than 2 calls to `rand()` required on average. *Edit:* Better yet, [see this comment](http://www.reddit.com/r/programming/comments/lfsfk/how_to_really_...
null
0
1318914004
True
0
c2sdaoo
t3_lfsfk
null
t1_c2sdaoo
t1_c2scxzb
null
1427746989
13
t5_2fwo
null
null
null
True
thenickdude
null
Yes, but 78.5% of those random points will fall inside the circle. rand() is often used to randomly choose between small numbers of items, like 100, where only 0.3% of the numbers randomly generated will be accepted (with RAND_MAX at the lowest possible number allowed by the C++ spec, 32767).
null
0
1318914040
False
0
c2sdat9
t3_lfsfk
null
t1_c2sdat9
t1_c2sd3kh
null
1427746991
5
t5_2fwo
null
null
null
True
[deleted]
null
While this might be true, the "N" I was referring to is the target range. A right arithmetic shift of a `x`-bit value by `y` essentially limits the result to `|N| = 2^(x - y)`. *Just caught your edit. Thanks.*
null
0
1318914041
False
0
c2sdatg
t3_lfsfk
null
t1_c2sdatg
t1_c2sd9ef
null
1427746991
1
t5_2fwo
null
null
null
True
codygman
null
Why is syntax highlighting so necessary? I can code with or without it honestly, it just feels nicer to have it. Do you use it to easily track down when you make syntax errors?
null
0
1318914129
False
0
c2sdb5l
t3_lf038
null
t1_c2sdb5l
t1_c2s9hjz
null
1427747001
1
t5_2fwo
null
null
null
True
ryandury
null
The best way to learn is to come up with an idea that motivates you to learn what's necessary to tackle it. Program in stages. But don't overwhelm yourself. Simplify.
null
0
1318914150
False
0
c2sdb9n
t3_lf038
null
t1_c2sdb9n
t1_c2s7b2c
null
1427746996
3
t5_2fwo
null
null
null
True
tomaszmi
null
There is a semicolon missing in the line where directories found are inserted to the dirsToDo vector, that is: std::copy(result.dirs.begin(), result.dirs.end(), std::back_inserter(dirsToDo))
null
0
1318914246
False
0
c2sdboa
t3_lfl0o
null
t1_c2sdboa
t3_lfl0o
null
1427746999
2
t5_2fwo
null
null
null
True
[deleted]
null
It seems we largely agree then, I just didn't particularly like the tone of the last bit or its implication that the "abstraction wankery" is *so powerful that you have to actively fight against it no matter what, no matter who you are.* Like it's an epidemic or something. It probably goes without question to say the H...
null
0
1318914257
False
0
c2sdbpm
t3_lfm1k
null
t1_c2sdbpm
t1_c2sd7qp
null
1427747001
4
t5_2fwo
null
null
null
True
OnTheR0cks
null
This might just be one of the cruelest jokes I've ever seen...
null
0
1318914272
False
0
c2sdbrp
t3_lfsfk
null
t1_c2sdbrp
t1_c2sd7lb
null
1427747001
16
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1318914363
False
0
c2sdc5p
t3_lf038
null
t1_c2sdc5p
t1_c2scve0
null
1427747004
1
t5_2fwo
null
null
null
True
reventlov
null
So many things are wrong with this article. Let's start with the worst one: the magical "uniform deviate" solution he presents doesn't work, for the same reason the other solutions can't work. C's rand() provides a random integer in [0, RAND_MAX], with a (theoretically) even chance of getting any integer in that rang...
null
0
1318914371
True
0
c2sdc6n
t3_lfsfk
null
t1_c2sdc6n
t3_lfsfk
null
1427747005
63
t5_2fwo
null
null
null
True
i8beef
null
DI Frameworks are all about the configuration and resolution of dependencies. As such, more accurately, they move configuration (boilerplate code) to a centralized location for easier maintenance. They also provide a SINGLE factory method usually for resolving based on the object graph, instead of having to keep track ...
null
0
1318914426
False
0
c2sdcev
t3_lf1px
null
t1_c2sdcev
t1_c2sa5hy
null
1427747007
2
t5_2fwo
null
null
null
True
reventlov
null
You can adjust the algorithm a bit, and it works fine. Basically, you pick M such that N\*M <= RAND_MAX, and only throw out anything >= N\*M. In your example, M would be 327, and you'd only throw out 32700..32767. The worst thing about the article is that the "uniform deviate" method it recommends does not (an...
null
0
1318914598
True
0
c2sdd38
t3_lfsfk
null
t1_c2sdd38
t1_c2sdat9
null
1427747017
7
t5_2fwo
null
null
null
True
i8beef
null
Unfortunately, property setter injection (what you are talking about) is a necessity sometimes. Thinking of you, ASP.NET MVC ActionFilters. When you can not control how an object is instantiated inside of someone else's framework, like ASP.NET MVC ActionFillters, constructor injection is not POSSIBLE, and so property s...
null
0
1318914650
False
0
c2sddax
t3_lf1px
null
t1_c2sddax
t1_c2s5izr
null
1427747020
1
t5_2fwo
null
null
null
True
i8beef
null
Makes mocking for unit tests easier. Also, moves the decision about what implementation a class is going to use to the calling code instead of making the class dependent on a specific implementation, which WAS the Factory's place for many years, but the added benefit of the inversion of control (IoC) for testing purpos...
null
0
1318914866
False
0
c2sde4j
t3_lf1px
null
t1_c2sde4j
t1_c2sa4qd
null
1427747028
3
t5_2fwo
null
null
null
True
jpfed
null
That made me cringe. I'm sure there's a German word for feeling the embarrassment that another person should (but probably doesn't) feel.
null
0
1318914905
False
0
c2sde9y
t3_lfsfk
null
t1_c2sde9y
t1_c2scfrz
null
1427747030
15
t5_2fwo
null
null
null
True
i8beef
null
I think you are confused about the problem that is being solved. Separation of concerns is a different issue. All modules of a system have to interact with other modules at some point (they are essentially mini-APIs) and at that point is where breaking dependence on a specific implementation is useful. This is easily a...
null
0
1318915306
False
0
c2sdftu
t3_lf1px
null
t1_c2sdftu
t1_c2s7937
null
1427747052
1
t5_2fwo
null
null
null
True
i8beef
null
I assume you were going for the This. Is. SPARTA! meme, but all I heard was Cobra Commander...
null
0
1318915466
False
0
c2sdghh
t3_lf1px
null
t1_c2sdghh
t1_c2s74qv
null
1427747062
2
t5_2fwo
null
null
null
True
turgid
null
For me it was the error messages: they are nearly impossible to decipher. Sometimes it took upwards of an hour to find the one character that I misplaced.
null
0
1318915478
False
0
c2sdgja
t3_lfm1k
null
t1_c2sdgja
t3_lfm1k
null
1427747062
5
t5_2fwo
null
null
null
True
FeepingCreature
null
If you aren't balls deep in nested #defines and compiler-specific features, it's not proper trickery.
null
0
1318916035
False
0
c2sdima
t3_lc090
null
t1_c2sdima
t1_c2ril27
null
1427747095
1
t5_2fwo
null
null
null
True
i8beef
null
ApplicationService(Repository) Repository(UnitOfWork) UnitOfWork(DBConnection) DBConnection(ConnectionString) That is probably the deepest one I ever have (Note, DBConnection could instead be an instantiated ORM session) where this is useful.
null
0
1318916039
False
0
c2sdims
t3_lf1px
null
t1_c2sdims
t1_c2s8fmv
null
1427747095
2
t5_2fwo
null
null
null
True
codese38
null
Welcome to reddit where comments are more often than not misunderstood.
null
0
1318916044
False
0
c2sding
t3_lf038
null
t1_c2sding
t1_c2sa2os
null
1427747088
1
t5_2fwo
null
null
null
True
PrimaxAUS
null
I'm in Melbourne, Australia. I'll keep you in mind though, most of my work is encryption work and I have hired a few graduates from the US to work from home and it's worked quite well.
null
0
1318916156
False
0
c2sdj27
t3_lf038
null
t1_c2sdj27
t1_c2scx8j
null
1427747096
1
t5_2fwo
null
null
null
True
i8beef
null
I'm torn here, because I often don't have dependencies more than 3 or 4 deep that need to be managed. The only real example I have is configuring a ORM session, for instance, and while it IS useful for that, the number of places that you really need to worry about that ARE limited usually. Which is why some people don'...
null
0
1318916303
False
0
c2sdjkt
t3_lf1px
null
t1_c2sdjkt
t1_c2s89o7
null
1427747102
1
t5_2fwo
null
null
null
True
wot-teh-phuck
null
> I like to use a lot of ^U and ^D when scrolling around - it's faster than j/k One mistake I've seen folks make is use `*CTRL-D*` and `*CTRL-U*` for navigating a large file (around gigs). A good solution would be to use line number based or percentage based jumps in this case. For line based jumps, just enter *com...
null
0
1318916348
False
0
c2sdjqm
t3_lfblq
null
t1_c2sdjqm
t1_c2s9slq
null
1427747103
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1318916599
False
0
c2sdknn
t3_lfcpb
null
t1_c2sdknn
t3_lfcpb
null
1427747114
1
t5_2fwo
null
null
null
True
merehap
null
greenspans pretty clearly isn't trolling. He's just pointing out that seeing a very general criticism of something but having the author not want to go into specifics is frustrating, since it leaves a negative view of the thing criticized, while not providing for any possibility of dialog. Now calling something someone...
null
0
1318916611
True
0
c2sdkpf
t3_lfm1k
null
t1_c2sdkpf
t1_c2sd2rd
null
1427747114
12
t5_2fwo
null
null
null
True
chironshands
null
Hah, I know what you mean! Thankfully, not *all* projects are like that.
null
0
1318916611
False
0
c2sdkpi
t3_lfm1k
null
t1_c2sdkpi
t1_c2sc816
null
1427747114
5
t5_2fwo
null
null
null
True
[deleted]
null
> There is really nothing wrong with rand(), despite what you may be told. The problem is with the people who use it, and how they use it incorrectly and without having all of the facts. Another problem is that one can use rand() incorrectly and still get seemingly random results, so the incorrect use appears to wor...
null
0
1318916976
False
0
c2sdm0l
t3_lfsfk
null
t1_c2sdm0l
t3_lfsfk
null
1427747132
5
t5_2fwo
null
null
null
True
psygnisfive
null
Your refusal to answer any questions is trolling. Answering questions is never trolling. Have a downvote.
null
0
1318917002
False
0
c2sdm47
t3_lfm1k
null
t1_c2sdm47
t1_c2scpo8
null
1427747133
1
t5_2fwo
null
null
null
True
[deleted]
null
ten years ago you would have fit right in on lisp usenet groups.
null
0
1318917086
False
0
c2sdmf7
t3_lfm1k
null
t1_c2sdmf7
t1_c2sd41m
null
1427747136
8
t5_2fwo
null
null
null
True
psygnisfive
null
Yeah but that's true of any programming language.
null
0
1318917133
False
0
c2sdmlb
t3_lfm1k
null
t1_c2sdmlb
t1_c2sda1b
null
1427747139
1
t5_2fwo
null
null
null
True
lpsmith
null
People have gotten pretty reasonable performance out of Haskell raytracers. So I'd assume there is something wrong with your code. And looking over your code, there are quite a few things that are wrong: you need to add strictness annotations to your Vec3 record and compile with `-funbox-strict-fields`, for starte...
null
0
1318917137
True
0
c2sdmlu
t3_lfm1k
null
t1_c2sdmlu
t1_c2scyjm
null
1427747139
23
t5_2fwo
null
null
null
True
[deleted]
null
no he's trolling, but he sucks at it
null
0
1318917251
False
0
c2sdmys
t3_lfm1k
null
t1_c2sdmys
t1_c2sdkpf
null
1427747149
-7
t5_2fwo
null
null
null
True
imrofli
null
really? i'm sorry for that, he praised that thing in one lecture and never said that you had to get some login. i don't have one either. seems like a case for "scumbag teacher" ^^
null
0
1318917380
False
0
c2sdnfo
t3_l57iw
null
t1_c2sdnfo
t1_c2s93gj
null
1427747153
1
t5_2fwo
null
null
null
True
elbeno
null
Fremdschämen.
null
0
1318917429
False
0
c2sdnlp
t3_lfsfk
null
t1_c2sdnlp
t1_c2sde9y
null
1427747159
40
t5_2fwo
null
null
null
True
harlows_monkeys
null
Is it called the normal distribution? False. Is it called the uniform distribution? True. False or True == True in most programming languages, so what's the problem? :-)
null
0
1318917659
False
0
c2sdoey
t3_lfsfk
null
t1_c2sdoey
t1_c2scfrz
null
1427747166
17
t5_2fwo
null
null
null
True
DrBartosz
null
The semicolon is there, it was just pushed off the screen. I really compile these programs live.
null
0
1318917770
False
0
c2sdosl
t3_lfl0o
null
t1_c2sdosl
t1_c2sdboa
null
1427747173
3
t5_2fwo
null
null
null
True
Smallpaul
null
Did you read the article?
null
0
1318918009
False
0
c2sdplh
t3_lfm1k
null
t1_c2sdplh
t1_c2sdmlb
null
1427747181
2
t5_2fwo
null
null
null
True
wnoise
null
> That's true, it also has to do with the observer effect where the act of observing changes quantum state. I'm a physicist. No, it doesn't. This is one of the more common misconceptions about quantum mechanics. The "observer effect" is that measurements don't leave a system alone, but project the state to some ...
null
0
1318918275
True
0
c2sdqgf
t3_lfm1k
null
t1_c2sdqgf
t1_c2sc9ql
null
1427747190
6
t5_2fwo
null
null
null
True
wnoise
null
I have written exactly one web program. It's a CGI written in C. It does precisely what I want it to.
null
0
1318918459
False
0
c2sdr2b
t3_lfm1k
null
t1_c2sdr2b
t1_c2scc7w
null
1427747198
6
t5_2fwo
null
null
null
True
akdas
null
Very interesting; thanks for the corrections. Yeah, I guess Emacs' Viper Mode is a big culprit here if doesn't implement text objects (again, I'm not sure if it does, but if it does, then the Vimpulse documentation could be much clearer on that point). That said, I'm sure there are a lot of people, like myself, use a...
null
0
1318918507
False
0
c2sdr7k
t3_lfblq
null
t1_c2sdr7k
t1_c2sd6si
null
1427747200
2
t5_2fwo
null
null
null
True
reddit_clone
null
Try some white noise or noise cancelling head phones.
null
0
1318918578
False
0
c2sdrfj
t3_ld22x
null
t1_c2sdrfj
t1_c2s60ic
null
1427747203
1
t5_2fwo
null
null
null
True
gthemagician
null
...where the points don't matter and everything's made up
null
0
1318918674
False
0
c2sdrq3
t3_lf038
null
t1_c2sdrq3
t1_c2sding
null
1427747206
1
t5_2fwo
null
null
null
True
elperroborrachotoo
null
If you worry about portability and statistical quality of your random numbers, you don't use rand() anyway.
null
0
1318918781
False
0
c2sds29
t3_lfsfk
null
t1_c2sds29
t3_lfsfk
null
1427747211
14
t5_2fwo
null
null
null
True
wot-teh-phuck
null
Also `*CTRL-O*`.
null
0
1318918856
False
0
c2sdsb0
t3_lfblq
null
t1_c2sdsb0
t1_c2sb7j9
null
1427747214
1
t5_2fwo
null
null
null
True
zsakuL
null
Adding to this comment, this is one of the most popular [method](http://en.wikipedia.org/wiki/Marsaglia_polar_method)s for generating normally distributed samples.
null
0
1318918888
False
0
c2sdsf2
t3_lfsfk
null
t1_c2sdsf2
t1_c2sd3kh
null
1427747215
3
t5_2fwo
null
null
null
True
wnoise
null
(1) is (at least partially) addressed by the book _[Real World Haskell](http://book.realworldhaskell.org/)_. As to (2), Haskell's FFI is the easiest to use I've ever seen. It unfortunately still takes a while to figure out how to use it well, especially wrapping C libraries with constants and so forth. And yes, it c...
null
0
1318918900
False
0
c2sdsgn
t3_lfm1k
null
t1_c2sdsgn
t1_c2sd7f3
null
1427747228
2
t5_2fwo
null
null
null
True
skew
null
From a quick look Using a linked list of bytes for an image buffer seems like a bad idea. Something more like Vector is probably a better idea. -funbox-strict-fields isn't going to do anything without making some strict fields. parList already evaluates each item in parallel, so using rpar for the element function i...
null
0
1318918939
True
0
c2sdskx
t3_lfm1k
null
t1_c2sdskx
t1_c2scyjm
null
1427747217
30
t5_2fwo
null
null
null
True
OrangeredStilton
null
Ah, the bootsector demo. I recall EFnet #asm doing something similar many years ago. Found a link: http://www.haxor.me.uk/asmcompo/
null
0
1318919107
False
0
c2sdt39
t3_lfqqr
null
t1_c2sdt39
t3_lfqqr
null
1427747224
7
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1318919135
False
0
c2sdt6j
t3_lfm1k
null
t1_c2sdt6j
t1_c2sdqgf
null
1427747225
0
t5_2fwo
null
null
null
True
MaximKat
null
Yeah, it's hard to take the rest seriously after that.
null
0
1318919171
False
0
c2sdtak
t3_lfsfk
null
t1_c2sdtak
t1_c2scfrz
null
1427747236
2
t5_2fwo
null
null
null
True
gmartres
null
That's actually the only correct method, see http://www.reddit.com/r/programming/comments/lfsfk/how_to_really_use_rand/c2sdc6n
null
0
1318919247
False
0
c2sdtj6
t3_lfsfk
null
t1_c2sdtj6
t1_c2scz7y
null
1427747230
5
t5_2fwo
null
null
null
True
captain-asshat
null
I thought the article said that the bottleneck was with the MongoDB queries? >After a few rounds of profiling our Django requests, I determined that the main bottleneck was with a database query. The queries required in rendering the index of famigo.com are preposterously complex. Why is that? It's because we allow...
null
0
1318919341
False
0
c2sdtta
t3_lcoln
null
t1_c2sdtta
t1_c2s8a6n
null
1427747234
1
t5_2fwo
null
null
null
True
[deleted]
null
There are a lot of dimensions to this argument (realistic difficulties with pure code) and I think there's quite a bit of truth to a lot of them, but the nice thing is that Haskell, while it tries to force you into a specific style is not a very condescending language when you want to roll a different way a lot of the ...
null
0
1318919558
True
0
c2sdufw
t3_lfm1k
null
t1_c2sdufw
t1_c2scxx7
null
1427747241
11
t5_2fwo
null
null
null
True
rlbond86
null
It's called *rejection testing* and is a very valid solution for this sort of thing.
null
0
1318919628
False
0
c2sduni
t3_lfsfk
null
t1_c2sduni
t1_c2scz7y
null
1427747245
7
t5_2fwo
null
null
null
True
_maggus
null
Some university assignment. A program that would take a deck of playing cards, split it on the n-th position shifted the second half of the stack for m times (i.e. placing the top card on the bottom) and then putting the second half of the stack on top of the first. The concept of pointers and structs was not that cle...
null
0
1318919640
False
0
c2sdunr
t3_lf7o7
null
t1_c2sdunr
t3_lf7o7
null
1427747245
1
t5_2fwo
null
null
null
True
AReallyGoodName
null
I'm still not impressed by the article. The ISO C rand() function isn't very good. It's just fast. It's not usable by any algorithm that requires good randomness. eg. ["the ISO C rand() function would not create “good” cryptographic keys"](http://csg.csail.mit.edu/pubs/memos/Memo-481/Memo-481.pdf) The amount of random...
null
0
1318919675
True
0
c2sdurs
t3_lfsfk
null
t1_c2sdurs
t1_c2sciw6
null
1427747246
16
t5_2fwo
null
null
null
True
rlbond86
null
> he magical "uniform deviate" solution he presents doesn't work Did you read the article? She says that it doesn't work and the only true solution is rejection testing.
null
0
1318919817
False
0
c2sdv6l
t3_lfsfk
null
t1_c2sdv6l
t1_c2sdc6n
null
1427747252
-4
t5_2fwo
null
null
null
True
wnoise
null
Yes (in the standard formulation -- there are other formulations, but I don't want to get into them). > eigenvalues ... matrices It's a slight generalization from that, but almost all the properties are the same. (I should have said eigenvector up there, and will go change it. The eigenvalue is the associated va...
null
0
1318919859
False
0
c2sdvat
t3_lfm1k
null
t1_c2sdvat
t1_c2sdt6j
null
1427747253
2
t5_2fwo
null
null
null
True
bo1024
null
> you need to add strictness annotations to your Vec3 record and compile with -funbox-strict-fields, for starters. And people wonder why Haskell is hard to learn or get decent at? Anyway, I'm with snakepants, it's either really hard to get good performance out of Haskell, or really hard to figure out how to do so.
null
0
1318919958
False
0
c2sdvkq
t3_lfm1k
null
t1_c2sdvkq
t1_c2sdmlu
null
1427747256
28
t5_2fwo
null
null
null
True
Gotebe
null
>But unless you already know what these words mean, you have no idea what they mean. Yeah. Like the word "bread". I mean, really, it's only useful if we all know that it's the thing we slice to smear butter and jelly all over it and then eat it. Really, you're just complaining that people working in the field don'...
null
0
1318920180
False
0
c2sdw8b
t3_lf1px
null
t1_c2sdw8b
t1_c2sa2ml
null
1427747266
2
t5_2fwo
null
null
null
True
makwa
null
Well, they apparently failed to test the contact page, as it loops forever on an iPad. Most JavaScript interacts with the Dom tree and has a visual effect which will likely be different for the various browsers. I don't see how this service would help me asses the visual impact on the various browsers.
null
0
1318920199
False
0
c2sdw9q
t3_lfqzj
null
t1_c2sdw9q
t3_lfqzj
null
1427747266
1
t5_2fwo
null
null
null
True
[deleted]
null
>Why, and where was Go found to be easier, for example? In parsing? Surely you're joking, Dr. Stewart! Parsing is one of the few things where Haskell is undeniably strong. Haskell shines because it allows a lot of things. It gives you immeasurable power, but it's large and difficult to master. It was designed by a...
null
0
1318920340
True
0
c2sdwo5
t3_lfm1k
null
t1_c2sdwo5
t1_c2sacmj
null
1427747273
24
t5_2fwo
null
null
null
True
bo1024
null
I like Haskell a lot, although I haven't gained much competency with it yet. The problem I have with Haskell is that it's so damn hard to write high-performance code. Memoization takes an unreasonable amount of effort, for instance. One simulation I wrote ran almost as quickly as the equivalent in C++; but due to laz...
null
0
1318920386
False
0
c2sdwsi
t3_lfm1k
null
t1_c2sdwsi
t3_lfm1k
null
1427747283
3
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1318920436
False
0
c2sdwx1
t3_lfsfk
null
t1_c2sdwx1
t1_c2sd9tj
null
1427747277
1
t5_2fwo
null
null
null
True
wnoise
null
A good random number generator has almost no problem with either division or modulo to select the choices. So use a good random number generator. (Yes there is slight biasing. And it's worth knowing about if it's a problem in your use cases. But it's almost certainly not. I can live with a bias of 1 in 2^32 . If ...
null
0
1318920467
True
0
c2sdx0d
t3_lfsfk
null
t1_c2sdx0d
t3_lfsfk
null
1427747280
2
t5_2fwo
null
null
null
True
Gotebe
null
>they move configuration (boilerplate code) to a centralized location for easier maintenance That's not a good thing in it's own right. In fact, it's actually a bad one. When you see e.g. class name for an artifact in code in area X next to another class for another artifact in area Y that has nothing to do with X,...
null
0
1318920484
False
0
c2sdx23
t3_lf1px
null
t1_c2sdx23
t1_c2sdcev
null
1427747280
6
t5_2fwo
null
null
null
True
[deleted]
null
> because it's nothing but flamebait and frankly I'm no longer ever interested in addressing matters like this without real, tangible code on hand with examples Don't appreciate this. Adding logging to an application is a perfectly reasonable example of something that is hard in haskell because it may require a des...
null
0
1318920549
True
0
c2sdx7v
t3_lfm1k
null
t1_c2sdx7v
t1_c2scsgd
null
1427747289
-1
t5_2fwo
null
null
null
True
encepence
null
Because CPAN is kind of authority. You have to register to upload. You can see reviews and some tests run. Additionally, you can always install in your $HOME and thats much better way of doing things in any development environment - also perl. /me never do any "hack and try" development as root even without security ...
null
0
1318920607
False
0
c2sdxdc
t3_lfcd0
null
t1_c2sdxdc
t1_c2sc1cn
null
1427747284
2
t5_2fwo
null
null
null
True
MatrixFrog
null
Oh come on. You can see the difference between main = do putStrLn "Hello!" putStrLn "Isn't this fun?" and main = do putStrLn "Hello!" putStrLn "Isn't this fun?"
null
0
1318920998
False
0
c2sdygf
t3_lfm1k
null
t1_c2sdygf
t1_c2scngj
null
1427747296
3
t5_2fwo
null
null
null
True
acow
null
Other than the annoyance of all the unnecessary new terms and some limitations, I think the Arduino IDE is a pretty fantastic thing. It is cross platform, and it exposes the things that most users wouldn't have a clue how to do, such as getting code onto the chip, and opening a serial connection. In addition, I think h...
null
0
1318921046
False
0
c2sdyld
t3_lf57z
null
t1_c2sdyld
t3_lf57z
null
1427747298
3
t5_2fwo
null
null
null
True
TrivialSolutions
null
At first I thought your program made a fractal image derived from the bootsector for easy human categorization. I get paranoid somebody's gonna call my operating system a virus, the bastards! http://www.losethos.com
null
0
1318921077
False
0
c2sdyoi
t3_lfqqr
null
t1_c2sdyoi
t3_lfqqr
null
1427747300
3
t5_2fwo
null
null
null
True
AReallyGoodName
null
Average complexity should be O( RAND_MAX / range ) by my reckoning. The real issue is the worst case complexity. There's no upper limit. I might want a number under 2 but the chance of random hitting that are not guaranteed even after a billion tries (by definition of being random).
null
0
1318921434
False
0
c2sdzlt
t3_lfsfk
null
t1_c2sdzlt
t1_c2sd3ua
null
1427747311
5
t5_2fwo
null
null
null
True
zzing
null
Would that be like class diarrhea in C++ among some university programmers?
null
0
1318921536
False
0
c2sdzvx
t3_lfm1k
null
t1_c2sdzvx
t1_c2sd7qp
null
1427747313
-1
t5_2fwo
null
null
null
True
[deleted]
null
That page is worth visiting for the mouse pointer alone.
null
0
1318921840
False
0
c2se0rj
t3_lfqqr
null
t1_c2se0rj
t1_c2sdt39
null
1427747324
6
t5_2fwo
null
null
null
True
AReallyGoodName
null
The uniform deviate that relentlov refers to was mentioned after the rejection testing method. It's presented as a performance boost to the rejection method in the article without the drawbacks being mentioned. >Not only does this fix the distribution problem, it also avoids the low order bit problem entirely. The ...
null
0
1318921937
False
0
c2se101
t3_lfsfk
null
t1_c2se101
t1_c2sdv6l
null
1427747327
6
t5_2fwo
null
null
null
True
elperroborrachotoo
null
Pointless, information-free, far from the state of the art of visualization - I like it!
null
0
1318922023
False
0
c2se17n
t3_lfqqr
null
t1_c2se17n
t3_lfqqr
null
1428192157
18
t5_2fwo
null
null
null
True
optomas
null
>I'm still using IDE's to manage my projects and all that jazz though, one step at a time.| After a while, the OS *is* the ide. vi seems to provide the least restrictive access. My current tool chain is bash, vi, gcc, gdb, cvs. You surely know about ! access to the command line, right? :! ls or :! gc...
null
0
1318922188
True
0
c2se1nr
t3_lfblq
null
t1_c2se1nr
t1_c2s9bud
null
1427747340
2
t5_2fwo
null
null
null
True
[deleted]
null
"Lol what the fuck am I looking at?"
null
0
1318922551
False
0
c2se2ju
t3_lfqqr
null
t1_c2se2ju
t3_lfqqr
null
1427747356
-2
t5_2fwo
null
null
null
True
mango_feldman
null
> Issue 463: Add support for tracking of CPU time on a per-thread basis Probably the biggest?
null
0
1318922739
False
0
c2se2yl
t3_lff0t
null
t1_c2se2yl
t1_c2s94mm
null
1427747359
1
t5_2fwo
null
null
null
True
mango_feldman
null
I've recently used the netbeans profiler (supposedly almost the same thing) and the cpu profiler (non-sampler) actually worked
null
0
1318922804
False
0
c2se33z
t3_lff0t
null
t1_c2se33z
t1_c2s9h7z
null
1427747360
1
t5_2fwo
null
null
null
True
sidneyc
null
> The ISO C rand() function isn't very good. It's just fast. That is a nonsensical statement. ISO C doesn't prescribe any specific pseudo-random generator algorithm.
null
0
1318922811
False
0
c2se34k
t3_lfsfk
null
t1_c2se34k
t1_c2sdurs
null
1427747360
10
t5_2fwo
null
null
null
True
boa13
null
Huh? I don't see anything particular.
null
0
1318922867
False
0
c2se399
t3_lfqqr
null
t1_c2se399
t1_c2se0rj
null
1427747362
3
t5_2fwo
null
null
null
True
acecool
null
the shell language in PowerShell sucks, why cant MS make their own Ruby compiler and use that as a shell language? or at least give the option to support alternative languages
null
0
1318922942
False
0
c2se3g8
t3_lfby4
null
t1_c2se3g8
t3_lfby4
null
1427747362
-1
t5_2fwo
null
null
null
True
sidneyc
null
Her statement on that is wrong, too: > The first solution only works when N evenly divides into RAND_MAX. Nope. The distribution is uniform if N divides (RAND_MAX + 1), since there are (RAND_MAX + 1) possible outcomes of the rand() function.
null
0
1318922999
False
0
c2se3ku
t3_lfsfk
null
t1_c2se3ku
t1_c2sciw6
null
1427747371
5
t5_2fwo
null
null
null
True
[deleted]
null
When you hover the mouse over the page the cursor turns into this for me. I'm running Chrome on Linux. http://www.haxor.me.uk/asmcompo/images/amiga.cur
null
0
1318923052
False
0
c2se3pe
t3_lfqqr
null
t1_c2se3pe
t1_c2se399
null
1427747365
1
t5_2fwo
null
null
null
True
hackmiester
null
What is a message queue? All the resources I have found are too vague or over my head.
null
0
1318923067
False
0
c2se3qk
t3_lff3n
null
t1_c2se3qk
t3_lff3n
null
1427747365
6
t5_2fwo
null
null
null
True
sporkexec
null
Much of the time, your commit messages and comments carry the only remaining traces of your personality and achievements once someone takes your place at a company. Is this how you want to be remembered, as that guy who swears and has bad grammar in every commit message? Also, that solitary "fucktits" isn't much help w...
null
0
1318923162
False
0
c2se3yl
t3_lf898
null
t1_c2se3yl
t3_lf898
null
1427747367
1
t5_2fwo
null
null
null
True
nemoTheKid
null
I am still a baby when it comes to Haskell but I have always found that "pleasing some sort of system" that is not assbackwards tends to have its benefits.
null
0
1318923275
False
0
c2se48q
t3_lfm1k
null
t1_c2se48q
t1_c2sb9ed
null
1427747370
3
t5_2fwo
null
null
null
True
boa13
null
Ah ah, indeed. This works on Chrome, not Firefox. It's rather obvious when it works. :)
null
0
1318923287
False
0
c2se49p
t3_lfqqr
null
t1_c2se49p
t1_c2se3pe
null
1427747371
2
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1318923335
False
0
c2se4dq
t3_lfm7z
null
t1_c2se4dq
t3_lfm7z
null
1427747371
1
t5_2fwo
null
null
null
True
sidneyc
null
rand() isn't random, it's a pseudo-random generator. Although it is not strictly defined as such in the standard (C99), in practice all rand() implementations will be periodic and visit all possible outcomes equally often.
null
0
1318923349
False
0
c2se4f0
t3_lfsfk
null
t1_c2se4f0
t1_c2sdzlt
null
1427747372
5
t5_2fwo
null
null
null
True
Slime0
null
I don't think he's presenting it as a practical solution, but just as an illustration of a technically correct method before he goes into the real solution.
null
0
1318923584
False
0
c2se4xs
t3_lfsfk
null
t1_c2se4xs
t1_c2scz7y
null
1427747379
3
t5_2fwo
null
null
null
True
cincodenada
null
Okay, does anyone want to explain to me what this is? I know fractals, my fair share of coding, am somewhat familiar with the Assembly/machine language, and know the basic idea of an MBR/filesystem, but this is just fractals with text in it as far as I can tell.
null
0
1318923586
False
0
c2se4y0
t3_lfqqr
null
t1_c2se4y0
t3_lfqqr
null
1427747381
3
t5_2fwo
null
null
null
True
AeroNotix
null
Would you like to start a project which does just that? I believe you are correct in saying that the Arduino IDE is awful and I wouldn't mind giving it a shot to create something better. I use Python and I am quite adept with PyQT. Interested?
null
0
1318923792
False
0
c2se5f7
t3_lf57z
null
t1_c2se5f7
t1_c2s5yj7
null
1427747386
1
t5_2fwo
null
null
null
True
Slime0
null
No, she presents the uniform deviate as "an alternative." Though you are correct that it is "not a true solution" in that the distribution is (very slightly) incorrect. This is why the article confuses me.
null
0
1318923870
False
0
c2se5ll
t3_lfsfk
null
t1_c2se5ll
t1_c2sdv6l
null
1427747392
2
t5_2fwo
null
null
null
True
Slime0
null
> Floating-point can be used to solve the problem, but probably not the way you were thinking. She later goes into an explanation of exactly the way I was thinking. So, what was I supposed to be thinking?
null
0
1318924054
False
0
c2se60o
t3_lfsfk
null
t1_c2se60o
t3_lfsfk
null
1428192154
8
t5_2fwo
null
null
null
True
bart2019
null
Haskell is hard. Let's go shopping!
null
0
1318924200
False
0
c2se6c1
t3_lfm1k
null
t1_c2se6c1
t3_lfm1k
null
1427747399
6
t5_2fwo
null
null
null
True
cockmongler
null
I generally agree with this, but I'd again change the wording of the last sentence, "Tools can *help* prevent ..."
null
0
1318924268
False
0
c2se6ho
t3_lehrj
null
t1_c2se6ho
t1_c2s84ap
null
1427747402
1
t5_2fwo
null
null
null
True
AeroNotix
null
Haha, as soon as I saw it I asked my English Major friend because I was so confused. He agreed with my confusedness and lulz was had by all.
null
0
1318924300
False
0
c2se6ka
t3_ld2gi
null
t1_c2se6ka
t1_c2rpoq5
null
1427747402
1
t5_2fwo
null
null
null