32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions
comment 10y ago · link · parent
From the README:
-DPULSE: Enables the PulseEvent function. PulseEvent() on Windows is
fundamentally broken and should not be relied upon — it will almost
never do what you think you're doing when you call it. pevents includes
this function only to make porting existing (flawed) code from WIN32 to
*nix platforms easier, and this function is not compiled into pevents by
default.comment 10y ago · link · parent
https://msdn.microsoft.com/ja-jp/library/cc429076.aspx?f=255...
It mentions it's supported on Windows 95 and NT 4.0
(On a side note, I'm completely baffled that the metadata for MSDN is not locale-independent In their documentation generation engine/system. I would have thought only the page text would change from one language to another.)
comment 10y ago · link · parent
(I forgot to add: the library is also free of spurious-wakeups, which I feel is massive gotcha in pthreads.)
comment 10y ago · link · parent
I'm a bit ashamed that I opted to write it in C++ originally. It doesn't have much in terms of standard library dependencies (just dequeue), but in the process of porting it to C I decided to also change how the inner notifications system works with regards to the cleanup of allocated memory for completed waits and now I'm stuck on a particularly nasty decision of whether to add a mutex, use reference counting, or let memory grow until an event is destroyed... and so the code is still C++ :)
comment 10y ago · link · parent
Since you're being pedantic, you might want to go back and change that to "weren't" instead of "wasn't," as it is a hypothetical supposition. (And yet, I agree with you.)
(please no one comment on the comma inside the quotes. I think we're at this awkward point in grammar history where we're seeing a transition from "all punctuation must be inside the quotes" to "sometimes it really really doesn't make sense for the punctuation to be inside the quote, especially if you're not quoting a person saying a full phrase.")
comment 10y ago · link · parent
The whole "we need twenty characters to set aside the destination" was such a hollow rational that never made any sense. IIRC, it was revealed at some point that the 140 character message limit for tweets was basically the result of someone sitting down and doing a brief, informal testing of whatever they thought to be "the average sms message" and that's the number they ended up with.
comment 10y ago · link · parent
5833.
Unmasking Modi: The New Face of India(newrepublic.com ↗)
1 points · by ComputerGuru · 10y ago · discuss
5835.
Man failed for refusing to decrypt hard drives(bbc.co.uk ↗)
7 points · by ComputerGuru · 10y ago · 1 comment
comment 10y ago · link · parent
According to "System Information", I've done a mere 359 cycles - and according to their website, "Your battery is designed to retain up to 80% of its original capacity at 1000 complete charge cycles." [0]
Of course their warranty on defective batteries conveniently runs out after just one year. I've been meticulous about only charging it with genuine ($80+) chargers, including at home, at work, one in the car, and one in the carry-on. Someone should tell them about this new tech.
comment 10y ago · link · parent
https://en.m.wikipedia.org/wiki/Advanced_Propulsion_Physics_...
comment 10y ago · link · parent
Edit: And it failed. I tried the emoji for the record: http://emojipedia.org/clapping-hands-sign/
comment 10y ago · link · parent
Use MacDown on OS X http://macdown.uranusjr.com and MarkdownPad on Windows http://markdownpad.com
I don't have any recommendations for Linux, unfortunately.
Then again, the whole point of Markdown is that it's basic plain-text syntax that can be prettified as HTML. Its entire raison d'être is that you _don't_ have to learn (or test) another markup language, but whatever.
5841.
Tomorrow's buildings: Is world's smartest building also the greenest?(bbc.co.uk ↗)
3 points · by ComputerGuru · 10y ago · discuss
comment 10y ago · link · parent
comment 10y ago · link · parent
https://news.ycombinator.com/item?id=9647253
Full link to the original study: https://www.dropbox.com/s/2mmdmty3nxfe5u8/2015-louveau.pdf
comment 10y ago · link · parent
Regardless of who is right and who is wrong in this matter, I think if everyone took a step back we could at least agree that it makes absolutely no sense to fix this on a (single Linux) distribution level. For Debian to configure/patch compilers on their platform to "narrow" undefined behavior is insane and ineffectual. Software isn't "validated" on/against a particular OS, it's validated on a compiler basis.
Breaking this assumption introduces a massive schism. While Debian is an amazing distro with plenty of clout (I'm a FreeBSD guy, but Debian comes second), it's terrifying to imagine a new generation of "cross-platform" C/C++ software that can only be verified working on Debian (or with Debian's fork/re-configured compiler). We've come so close to making truly cross-platfrom C++ code a reality (even bringing Windows, I repeat WINDOWS, into the fold) with C++11 (and the subsequent releases) and it's, in my humble opinion, utter folly to try and change the way code will fundamentally compile depending on the distribution you run.
If Debian cares, make a proposal to the C++ committee, bribe^H convince members to see their way (or threaten^H blackmail^H show them the dangers of continuing down the road they're on). Heck, fork C/C++ and call it E or C+++ or c-safe or something - or more reasonably - write a tool to convert C to rust or D-without-the-standard-library and announce only tools in that/those languages will be allowed in the standard distribution. But for Heaven's sake, please don't try to redefine C.
comment 10y ago · link · parent
comment 10y ago · link · parent
The'most unusually popular car by city' was rather poorly described and I think the results reveal that it was not a very proper query, as the 328i is hardly an 'unusual' car by any means (New York)..
The article mentions the extreme loyalty of the Midwest to buying American but makes no mention of the fact that the biggest city in the Midwest (Chicago, obviously) has only 51% American ownership. No mention of age of vehicles, which is very odd.
5847.
China's 'Great Firewall' blocks its own creator(bbc.co.uk ↗)
2 points · by ComputerGuru · 10y ago · discuss
comment 10y ago · link · parent
Just an FYI :)