News for hackers. Stuff that matters.

zeroimpl

Re:Show HN: A Project Board built for remote teams on Saturday March 07, 2020 @12:07PM (#22512599)
Sounds interesting, but the website has very little details on it so I can't really evaluate how well it would work for me.
Re:Python dicts are now ordered on Friday February 07, 2020 @09:19PM (#22273333)
The PHP documentation refers to them as "associative arrays", which is technically correct, but I agree I'm not sure how they could have conflated these concepts so badly.
Re:Python dicts are now ordered on Friday February 07, 2020 @09:15PM (#22273304)
Would you expect it to do that if somebody wrote the following?

    $id = 12835151;
    $arr[$id] = Get_thing_with_id( $id );
An oracle that doesn't always tell the truth? That seems like an odd thing for an algorithm to have to deal with.
To me it also seems like it should be:

    (elem (elem input "countries") 0)
Re:Don't Shave That Yak (2005) on Wednesday January 01, 2020 @11:38PM (#21933079)
Yeah, it seems the metaphor is about incorrectly performing a depth-first-search, when breadth-first-search is the right algorithm in general to find the optimal solution.
Re:A few comments on ‘age’ on Tuesday December 31, 2019 @09:23PM (#21926242)
As a user, if I have a key and an encrypted file, aside from actually decrypting the file, all I care about is ensuring that the software can confirm that the encrypted file was encrypted using the same key. Why should this be complicated?
Re:Venice Battles Flooding Amid Highest Tide in 50 Years on Wednesday November 13, 2019 @01:16PM (#21527400)
Indeed. Yet this port city with almost no land ruled over quite a significant empire for about 1000 years. I think it’s had a good run.
Re:Bad JSON Parsers on Friday November 08, 2019 @02:15PM (#21485682)
Validation better be done by the parser. Otherwise, subtle differences between the validator and the parser can lead to security flaws. Your solution is to make sure you use a good parser.
Re:Bad JSON Parsers on Friday November 08, 2019 @02:11PM (#21485632)
You'll need a data structure to store the results to return to the caller. This data structure by definition cannot be the call stack. So using a call stack is technically redundant.
Re:Stupid Unix Tricks on Thursday October 17, 2019 @10:50PM (#21288250)
Likely due to using the older version of bash preinstalled on Mac. Installing a new one and it should be virtually identical.
Re:Apple Content Cache Reverse Engineered on Saturday October 12, 2019 @11:23PM (#21238147)
The new "Content Caching" option in System Preferences is news to me. Probably a good feature if you have multiple identical iOS devices. I wonder how much sharing there is between different models, or even iPhone vs iPad.
Re:Libc++ 9.0.0 adds explicit support for WASI on Friday October 11, 2019 @11:17PM (#21230421)
If WebAssembly is running in the browser, it’s not calling into C/C++ modules. If WebAssembly isn’t running in the browser, it doesn’t need to be sandboxed. Thus I don’t think we need to be concerned over WASI sand boxing in the same way as applets.
Something like this would do the same, if somebody implemented a tool called jsed:

    jsed '
        Object.fromEntries( 
            $("Directory").map( 
                x => [ 
                    x.name + " has children", 
                    x.children && x.children.length != 0
                ]
            )
        )'  
Interestingly enough there is already a tool called jsed which seems to kind of do this... https://www.npmjs.com/package/jsed

Edit: Note the jQuery part of it is for advanced cases like searching for specific nodes in the tree, then navigating back up to the parent. Basically the cases like "<Work>[-1][children]" from the jtc guide, I would write as: '$("Work").parent().find("children")'

Re:Critical Security Issue Identified in iTerm2 on Wednesday October 09, 2019 @07:41PM (#21209400)
Yeah I was surprised recently to find out that the whole thing is basically maintained by one person. Since it's an essential tool for me, I contributed a few minor improvements for some usability things that were irritating me. Thanks George!
I’d really like a CLI tool which solves this problem using a syntax I already know. I struggle with jq because I use it quite infrequently.

IMO the ideal solution is something using pure JavaScript syntax, possibly with a library resembling jQuery for tree traversal.

Re:Checkm8 – Bootrom exploit for many iOS devices on Friday September 27, 2019 @01:37PM (#21094301)
In particular, it sounds like the same or similar bug also existed in the bootrom. So Apple patched iBoot but can't patch the bootrom.
Re:HTTP/3: the past, the present, and the future on Thursday September 26, 2019 @08:03PM (#21087045)
I suppose you'd rather they'd have named the headers "Session-Id" and "Set-Session-Id"?
Re:Notre-Dame’s Toxic Fallout on Saturday September 14, 2019 @12:50PM (#20972008)
I'm not a fan of how they hacked the scrollbar though
Re:Our Brains Are Not Multi-Threaded on Friday September 13, 2019 @08:02PM (#20967894)
I’ve generally found that a context switch from one programming task to another can be pretty easy (even if totally unrelated), but switching to something non-programming related is often much more painful.
Re:CSRF is really dead on Sunday September 08, 2019 @09:44AM (#20910522)
Ah so Strict is super strict, whereas Lax is still stricter than the current default.

Lax seems like it should have been named something else, like Partial or Moderate.

Re:CSRF is really dead on Saturday September 07, 2019 @08:58PM (#20907817)
Why is the default lax instead of strict?
Seems like if you tried to use transactions, you'd have the same problem?
Re:PostgreSQL WASM Extension on Thursday August 29, 2019 @08:15PM (#20834879)
> It will also be interesting to see what happens when JITted extension languages like this start to meet in the middle with postgres' own nascent JITted query plan support as it grows...

Does Postgres actively measure the performance of stored procedures and use that for future cost estimates? I thought most of these timing stats are off by default.

I think this article unnecessarily conflates the pre-rendering techniques used for JS-heavy websites with what I would call a static website build/compile process.

Using wget to compile your website is a clever idea. But it won't work if your website uses JS to generate links, so I wouldn't call it pre-rendering (since there better not be any post-rendering)

If you are using a web framework designed for dynamic processing - think something like Java servlets/JSP, or in the authors case Go - it's often non-trivial to find/implement a render_to_page function, let alone enumerate all possible pages.
Re:YAML: Probably not so great after all on Sunday August 18, 2019 @09:49PM (#20734263)
I just want mainstream/built-in JSON parsers to be able to ignore comments and trailing commas. What ever happened to lax parsing?
Re:The Beginning of the End of the Beef Industry? on Wednesday July 31, 2019 @11:40PM (#20580906)
lol sounds like you only read the headline. But even if the beef industry dies, that doesn’t mean beef itself is gone - there will certainly be non-industrial producers.
Re:The Beginning of the End of the Beef Industry? on Wednesday July 31, 2019 @09:16PM (#20580374)
Nobody said it would go away 100%. But it may become a niche product, like foie gras.
Re:The Beginning of the End of the Beef Industry? on Wednesday July 31, 2019 @07:53PM (#20579888)
I’ve tried these burgers and they are decent. But there are far better veggie burgers out there that don’t try to resemble meat at all. For some reason fast food companies stick with their garbage soy-based ones, so I’m happy to see them at least get some better veggie options.

But for reference, quinoa burgers, chickpea burgers, mushroom burgers, black bean burgers, sweet potato burgers, beet burgers - all taste great and are more appealing for most vegetarians/vegans.

Older »