News for hackers. Stuff that matters.

ayosec

Re:Firefox Local Files Theft – Not Patched Yet on Wednesday July 03, 2019 @10:09PM (#20350909)
Apparently not. You can create a test.html file with the following content:

    <script>
      fetch(".").then(r => console.log(r));
      fetch("/").then(r => console.log(r));
    </script>
The console show errors when these URLs are loaded:

    TypeError: NetworkError when attempting to fetch resource. test.html:2:1
Re:Modern C++ Won't Save Us on Tuesday April 23, 2019 @04:47AM (#19726650)
How is that different to this?

    if (my_pointer != NULL)
        do_stuff(*my_pointer)
Re:A surprisingly arcane little Unix shell pipeline example on Wednesday March 06, 2019 @05:29AM (#19317845)
sponge[1] is very useful in this scenario. The output file is written only when the `thing | thing | thing` finishes successfully.

[1]: https://linux.die.net/man/1/sponge

Re:GDPR Version of USA Today Is 500KB Instead of 5.2MB on Saturday May 26, 2018 @02:21PM (#17163516)
> I'd be willing to bet your "small number" of white listed websites is actually a lot more than you think. Turning off Javascript breaks a ton of sites, IME.

My experience is the opposite.

I used NoScript for almost 8 years, and then switched to uMatrix one year ago.

I don't need to enable JavaScript in most sites. And, if I need it, only enable some parts of the page. Most websites are much faster with this.

Re:Run JavaScript on Cloudflare with Workers on Wednesday March 14, 2018 @12:26AM (#16582335)
> It's a new stand-alone HTTP server.

Are you going to publish more info about that HTTP server? Like the technology used to write it.

Re:Why I Don't Like Golang (2016) on Monday February 19, 2018 @06:24PM (#16416589)
> Even serde has `#[serde(rename = "name")]` for this purpose.

You can use `#[serde(rename_all = "camelCase")]`[1] in the struct to apply the fix to all fields.

[1]: https://serde.rs/container-attrs.html#serderenameall--

Re:Demangling C++ Symbols in Rust on Wednesday February 22, 2017 @10:49PM (#13711466)
Out of curiosity, what version of c++filt are you using?

I tried with 2.27.51 (Debian), and it works:

    mozilla::EnableIf<mozilla::IsSame<decltype ((((JS::GCVector<jsid, 0ul, js::TempAllocPolicy>*)((decltype(nullptr))0))->begin)()), decltype ((((JS::GCVector<jsid, 0ul, js::TempAllocPolicy>*)((decltype(nullptr))0))->end)())>::value, void>::Type js::CompartmentChecker::check<JS::GCVector<jsid, 0ul, js::TempAllocPolicy> >(JS::GCVector<jsid, 0ul, js::TempAllocPolicy> const&)
Re:Python moved to GitHub on Tuesday February 14, 2017 @08:57AM (#13643497)
> Why do mobile browsers not provide the option to disable this bug?

In Firefox, you can set browser.ui.zoom.force-user-scalable to true.

Unfortunately, if have JavaScript enabled, some pages are still able to disable the zoom.

Re:Rust vs C Pitfalls on Wednesday December 28, 2016 @02:37PM (#13273026)
> No, the default integer is u32

Maybe I'm missing something, but it seems to be i32: https://play.rust-lang.org/?gist=c79d4afef7fa20c81ba14de61f5...

Re:Five years of Scala and counting: debunking some myths on Friday November 13, 2015 @03:25PM (#10562188)
> Man, using Perl professionally (as have I). What kind of job was it?

Ten years ago I was using Perl to write web applications with HTML::Mason, in a consulting firm. I can't say I miss that :-).

Re:Kemal: Fast, Simple Web Framework for Crystal on Thursday November 12, 2015 @05:22AM (#10552278)
What's the difference between Kemal and https://github.com/manastech/frank ?
Re:The 1,000-Year GIF on Tuesday September 22, 2015 @11:05AM (#10259025)
12G, according to a [1]picture in the post

1. http://hyperallergic.com/wp-content/uploads/2015/09/ASLAP-on...

Re:Bram Moolenaar responds to Neovim on Sunday February 23, 2014 @07:47PM (#7288490)
This reminds me to the origin of Inkscape, as a fork from Sodipodi. The (only) Sodipodi committer didn't want too many patches, and he wanted to stay with C (no C++ code).

Some people forked Sodipodi, and created Inkscape. I can remember that one of their first tasks was to make the code compatible with a C++ compiler.

Nowadays, Inkscape is a very good tool, and I hope that Neovim has a great success too.

Re:Choosing Scala on Friday November 29, 2013 @01:14AM (#6818121)
> being able to fire up FSC outside of IntelliJ and have your code recompile very, very quickly when you make changes

I guess that you can achieve the same benefits with an always-open SBT console.

I usually do

  ~ test
So SBT will recompile and launch test after every :w in VIM
Re:Rust 0.8 released on Friday September 27, 2013 @08:37AM (#6456626)
Actually, stuff like the headers and so on, are integrated in the parser, so it generates specific types while data is arrived.

For example, https://github.com/spray/spray/blob/master/spray-http/src/ma...

Re:Docker - the Linux container runtime on Wednesday March 20, 2013 @04:07PM (#5409866)
github: ayosec
Re:A C implementation of a Sass compiler on Monday April 23, 2012 @08:32PM (#3881805)
> I hope this'll save a few hundred milliseconds every time I hit `:w`.

“few hundred milliseconds”? In a project where I'm working, our SCSS files take almost 10 seconds to recompile after every little change.

Maybe this new compiler will make the development less painful.

Re:LLInt: new JS interpreter in webkit with 2-2.5x speedup on Tuesday February 21, 2012 @07:58AM (#3616288)
So, this means that Google will abandon V8? Or Chrome will continue with it?
Re:Play on Heroku on Monday August 29, 2011 @01:20PM (#2937950)
Play! with Mirah can be a very nice combination.