News for hackers. Stuff that matters.

wheresvic1

Re:A Raspberry Pi-powered live train station sign on Wednesday July 31, 2019 @01:42PM (#20576521)
I'd love to see a writeup of doing something like this but without any of the balena cloud stuff.
Re:Fork: A fast and friendly Git client for Mac and Windows on Wednesday July 24, 2019 @01:44PM (#20517649)
Why not linux? :(
Re:HTTP Security Headers – A Complete Guide on Friday July 19, 2019 @07:12AM (#20477622)
For Node.js servers running on express, check out helmet[1] which adds a lot of these headers for you :)

[1] https://www.npmjs.com/package/helmet

I think you can be honest without badmouthing anyone necessarily: "startup went bankrupt due to reasons beyond my control".

As for letting your startup founders know why you're leaving - it really depends on your relationship with them but i would got for a professional - "i'd like to expole other opportunities and i wish you all the very best!"

Re:QuickJS JavaScript Engine on Friday July 12, 2019 @12:15PM (#20421788)
Awesome thanks!
Re:QuickJS JavaScript Engine on Friday July 12, 2019 @11:09AM (#20421252)
I'm asking this here because I don't really know where else to do so: I'm trying to compile a binary from a js source that uses the standard modules (they are loaded by default if you run the interpreter) so the following works:

    std.printf("%d\n", 1);
    std.printf("%s\n", os.platform);
However it does not compile to a binary and doing something like:

    import std from "std";
    import os from "os";

    std.printf("%d\n", 1);
    std.printf("%s\n", os.platform);
compiles via `./qjsc -m -o default_modules examples/default_modules.js` however does not execute:

    $ ./default_modules 
    SyntaxError: export 'default' in module 'std' is ambiguous
Source: https://github.com/smalldatatech/quickjs/blob/master/example...

Older »