1d
comment Minesweeper number placement
Submitting this question required more typing than it would have taken to implement both approaches and time them.
1d
comment Why does glBindVertexArray sometimes fail (but mostly not)?
So this was nothing to do with garbage collection at all. The problem was that you had multiple OpenGL contexts in one process, and you weren't setting the OpenGL context to use, before telling OpenGL to destroy objects. This meant that sometimes you were unintentionally deleting objects out of the wrong context. Which unsurprisingly leads to errors when you subsequently tried to draw using those deleted objects.
1d
comment Why does glBindVertexArray sometimes fail (but mostly not)?
Define "glBindVertexArray() fails". What does that actually mean? Is OpenGL reporting an error? What is the error message, if so?
1d
comment What is the highest quality way to render warped text on Windows?
How large will this text be on screen? DirectWrite (and similar systems) will make a big difference in very small text, such as body text on a web page, but its benefits are less dramatic when it comes to larger text, such as titles (which is usually the only place where one would even consider warping, which is why I ask)
Mar
24
awarded Supporter
Mar
22
answered opengl : Running at least 25 windows with different Draw callback
Mar
16
comment libsdl1.2-dev error messages in terminal and Synaptic
Agreed that this is an askubuntu.com question. But with that said, I had exactly this issue with almost exactly this set of packages (Though I was installing libsdl2-dev, rather than libsdl1.2-dev). It seemed to be related to using the xorg-edgers ppa with Ubuntu 14.04. Upgrading to Ubuntu 14.10 worked around the problem completely.
Mar
12
comment Two doors with two guards - one lies, one tells the truth
And the obligatory XKCD link.
Mar
12
comment Two doors with two guards - one lies, one tells the truth
Links to Wikipedia and TVTropes pages for this classic old puzzle.
Mar
9
comment Hostility Towards New Employees
When you say "How would you deal with it", do you mean as a hired junior developer, as an annoyed senior developer, as a manager, as a member of HR, as a company shareholder, or someone else? Who is "you" in this question; certainly the company-culture-fixing options available to a newly hired junior developer will be different to those open to the company's CEO.
Feb
24
awarded Supporter
Feb
24
comment The Erasmus dissection of a rectangle
If it's squares, do you really need the infinite number of triangles? You should be able to fill any square with just four similar non-right triangles, correct?
Feb
24
awarded Critic
Feb
24
answered Without me, you cannot survive
Feb
24
revised What are the numbers?
Added a note that this answer isn't valid for the latest revisions of the question. Not interested in deleting it, as I still think it's an interesting proof, even if the question was later changed. And the comments afterward are potentially illustrative.
Feb
23
comment What are the numbers?
Anyhow, I'm done. Have abused the comment system too much already. Best of luck with the puzzle; I've no interest in spending any more time on puzzles which require writing code to brute-force an answer. Too much like real work.
Feb
23
comment What are the numbers?
@Abidare001 ...really? Okay. With the new statement that x must be evenly divisible by y, you can immediately identify this set of (x,y) values, just based on the d values they produce: [(4,2),(6,3),(10,5),(14,7),(22,11),(26,13),(34,17),(38,19),(46,23),(58,29),(62,­31),(74,37),(76,2),(82,41),(84,2),(86,43),(88,2),(90,3),(90,5),(94,47),(96,2),(96­,3),(98,7),(100,2),(100,5)]. (100,2) is not even close to the only one that can be distinguished by its 'd' value. And you told me I was right to state that it was.
Feb
23
comment What are the numbers?
@Abidare001 So why would you tell me that my analysis is right, when the very first thing I said was completely wrong, according to how you understood the problem?
Feb
23
comment What are the numbers?
@Abidare001 Sentence one: "The only pair of (x,y) values which the first mathematician could identify without consulting the others, just based on the d value, would be (100,2)" This whole proof rests on that assertion. Absolutely everything else in it (apart from the logic around mathematician 3) rests on that. And it became wrong when you amended the puzzle to state that x must be evenly divisible by y (or that y must be evenly divisible by x).
Feb
23
comment What are the numbers?
@Abidare001 I'm feeling extremely frustrated that you would tell me that my "analysis is right" when the very first sentence of my analysis is rendered invalid and incorrect by the most recent set of revisions and clarifications you've made. Did you even read my analysis before telling me that it was right?
1 2 3 4 5