News for hackers. Stuff that matters.

deafbybeheading

Re:Proving false in Coq using an implementation bug on Thursday March 26, 2015 @01:24AM (#9267972)
Only if you interrupt the actual `rm`, no? If you interrupt the main command, you won't get a 0 exit code so the `||` branch still executes.

Your mechanism is clearly safer, but the user is required to clean up `foo.tmp` themselves in case of failure, so it's not really comparable.

Re:Proving false in Coq using an implementation bug on Wednesday March 25, 2015 @02:19AM (#9261547)
Thanks, I know `||` in general--I meant I hadn't seen the specific construction GP had used. The error handling to delete the output file in case the command failed is really elegant.
Re:Proving false in Coq using an implementation bug on Wednesday March 25, 2015 @12:27AM (#9261291)
Can you explain what the program itself is doing to do that? That is, can you explain the Coq program itself (and how it triggers the bug)?
Re:Proving false in Coq using an implementation bug on Wednesday March 25, 2015 @12:21AM (#9261277)
Oh my! That `||` is gorgeous. I hadn't seen that before.
Re:XSV – A fast CSV toolkit in Rust on Sunday February 22, 2015 @02:33PM (#9090656)
>Fun fact: ASCII actually reserved control characters for this stuff. 1F is the "unit separator" and 1E is the "record separator". There is even a "group separator" (1D) and a "file separator" (1C).

Which means you can't safely use it for arbitrary data (since your records themselves could contain these separators). Most of the time that doesn't matter; sometimes it does.

Re:Lenovo Caught Installing Adware on New Computers on Thursday February 19, 2015 @03:11AM (#9072971)
A colleague uses the Dell XPS 13 and it's pretty good; I'm eyeing that for my next machine.
Why not have Apple require apps to run usefully with just basic permissions? Anything beyond access to own files is optional. This could certainly be gamed, but scrupulous app authors could gain a ton of trust from playing ball.
Re:Stop Changing UIs for No Good Reason on Thursday November 20, 2014 @10:09AM (#8636047)
Some valid points, but GitHub's UI evolution has been phenomenal over the last two years.
Re: Subtly Bad Things Linux May Be Doing To PostgreSQL on Friday April 04, 2014 @03:47AM (#7529890)
Stupid (and somewhat tangential) question: how do bypass kernels work with virtualization, if at all?
Re:KeePass: OpenSource Password Manager on Monday February 03, 2014 @10:02PM (#7175227)
...and a mechanism provided by the party you are attempting to secure passwords from. I use LastPass, but just sayin'.
Re:37signals Job Board is closing down on Thursday December 05, 2013 @10:48PM (#6859281)
In about a year of using Campfire, I never saw a single bug fix or new feature. We've since moved to HipChat, and while it's not perfect, it's so refreshing to pay for a service that gets regular updates (not to mention has decent mobile clients).
Re:Heroku Postgres 2.0 on Monday November 11, 2013 @12:14PM (#6712638)
Rollback is essentially like a fork to the past. It creates a new database, but only replays transactions up to a specific instant. It's based on the Postgres Point-in-Time Recovery feature: http://www.postgresql.org/docs/current/static/continuous-arc...
Oof, you're right--sorry about that. The addons page [1] has the right pricing, but our own pricing page is incorrect. I'll make sure we get this updated. Thanks for pointing it out!

[1]: https://addons.heroku.com/heroku-postgresql

While I agree this is not a huge engineering endeavor and Yahoo could do the Internet a solid by making this work, our free dev databases are limited to 10k rows (and, as the name suggests, intended for development). Please don't put a billion in them.
Re:Launched my iOS game as Open Source on Thursday October 03, 2013 @02:09AM (#6487451)
Microsoft sometimes licenses things like this and it's commonly referred to as "shared source."
Re:Big buttons are great, but they'd better make sense on Saturday September 21, 2013 @04:16PM (#6424307)
General usability is important in pretty much all interfaces, but discoverability isn't. There's a big difference between designing an interface a user will be instantly familiar with, and one that's optimally suited to the task at hand.
Re:Golang Automatic Reloads on Saturday September 21, 2013 @12:15PM (#6423391)
Not to mention the program sigkills itself before it attempts to `exit 0`...
Re:Less is exponentially more (2012) on Friday September 20, 2013 @03:47PM (#6420049)
That's absurd. The law of diminishing returns comes into play, and for most cases, assembly is just not worth it (whereas C or C++ is). Rust seems like another interesting take at that sweet spot, but it seems like in Go this was an afterthought (though to be fair, the performance benefits of C / C++ are often cargo-culted even when that kind of performance is completely irrelevant, so Pike still has some valid points).
Re:Postgresql 9.3 Released on Monday September 09, 2013 @01:16PM (#6354699)
The default is determined by initdb, but was capped at 32MB due to the above issue. With this change, the cap's been bumped to 128MB.
Re:Steam-powered Blender on Wednesday August 14, 2013 @10:54PM (#6215905)
As a big fan of the GPL, ...I'm skeptical. I don't think Valve would benefit from keeping any potential modifications (or even plugins) secret, given that these would be far removed from its bread-and-butter.

A friend once suggested that outside of licensing pressure, maintainership is a huge driving force behind open-source contributions: you find something that does almost what you need, then you make the changes you require, and if you get these accepted upstream, they're maintained for you for free, pretty much forever. In many situations, that's far more important than any IP you're trying to conceal.

Re:Ubuntu 13.04: Getting Excited About Ubuntu Again on Sunday July 07, 2013 @02:30AM (#6001267)
I'll take talking to my phone as a first step. Getting simple file transfers to my SIII has been a pain, not to mention anything more sophisticated...
Re:Schrödinger's 😻 and outside-the-box naming on Thursday April 11, 2013 @10:32AM (#5532159)
Don't forget --no-preserve-root
Re:Unix tricks on Thursday March 07, 2013 @10:35AM (#5338169)
Why not rsync?
Re:Why Discourse uses Ember.js on Sunday February 10, 2013 @09:36PM (#5198997)
Indeed. A few years ago, I worked in an Adobe Flex on a reporting front-end that had significant client-side complexity and required us to support relatively old browsers. We re-evaluated competing JavaScript solutions periodically, but we never found anything that was worth the gamble of moving off that platform (even though rumors of its death seemed less and less exaggerated every day). These days, I'd move to Ember or Angular in a heartbeat.
Re:The Bicycle Barometer on Friday January 25, 2013 @11:50AM (#5116341)
Sure, I was being facetious. Even with actions that are simple to execute, I'm somewhat skeptical that a black box with a single recommendation is the best answer. I think that presenting the analysis as "do this, and here is why" would be a nice alternative for more complex systems--frequently dashboards and such throw data at you and completely punt on helping you interpret it.
Re:The Bicycle Barometer on Friday January 25, 2013 @11:20AM (#5116112)
Then you can skip the middleman and just automate the taking-action part.
Re:Dependency injection is not a virtue on Sunday January 06, 2013 @01:52PM (#5017225)
The thing is, unit tests are another "use case" for a given piece of code. Many people here are saying, "I wouldn't do monkey patching in production, but it's not really a problem for stubbing in test code." And what happens when you want to make different use of that code in production? Sure, "YAGNI, rewrite as necessary" and so on, but ruthlessly applying YAGNI leads to code so inflexible that you need to rewrite a whole component to make a change in one class (or start playing with monkey patching in production code, but I have not seen anyone advocate doing that liberally).
>I know the warnings are in place for a reason, but why don't the affected people just bypass the warning.

Not caring about certificate expiration may be a sign of not caring about other, more serious, security issues.

Re:Redis in my Postgres on Friday October 19, 2012 @02:10AM (#4672473)
> Today was my first real usage of PostGres

Then let us welcome you with some pedantry! Postgres or PostgreSQL, but never PostGres or--FSM forbid--PostGreSQL.

More seriously,

> fdw looks easy to start, but probably hard to master it.

Yep, like a number of Postgres features, such as user-defined types and user-defined aggregates. It's a great system, and not nearly as stuffy or hard to use as you may have heard.

Older »