Hacker News new | past | comments | ask | show | jobs | submit | wheresvic1's comments login

I'd love to see a writeup of doing something like this but without any of the balena cloud stuff.


Hey - I wrote the original code that was forked (exquisitely, I should add!) by Balena. The original code is just a Python script.

I haven’t written it up into a blog yet, but everything to get you started is on my GitHub at https://github.com/chrishutchinson/train-departure-screen. Very happy to help answer any questions too


Thanks for the inspiration!


I agree, what is the benefit of running balena here? You have Pi Zero, OLED screen (SPI library), and some code to access a 3rd party API.


For me, repeatability and ease of management - I used to be really demotivated by having to start from scratch with a Raspbian install whenever I built a project but all the prebuilt base images for different languages/OS and configuration as code due to Docker make the Pi so much nicer to use for stuff like this.


Why not linux? :(


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!"


"startup went bankrupt due to reasons beyond my control"

Unless they had a position in the C suite, that can probably be shortened to "Company went bankrupt" with zero further explanation volunteered. Though it helps to think things through ahead of time and figure out how to address any questions that may come up.

The most PC thing to say would be along the lines of "Starting a new business is always a gamble and lots of new businesses simply don't succeed."


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...


    import * as std from "std";
    import * as os from "os";

    std.printf("%d\n", 1);
    std.printf("%s\n", os.platform)


Awesome thanks!


This sounds pretty cool but tbh, if I'm willing to try out a beta product with all my images (and the risk of losing them due to some bug or any other risk) and provide feedback, I'd like to have a bigger carrot than just using the product for free in beta only :)


Fair enough. I've suffered from so many bugs in commercial software that I made some design decisions at the beginning of the project, in an effort to avoid more egregious faults.

Primarily, PhotoStructure doesn't touch, move, or delete any file that it hasn't generated. It only copies into your library (if you pick that option). See https://support.photostructure.com/why-doesnt-photostructure...


Professionally, I'm really lucky as I am working in R&D at a university hospital and I have a couple of cool projects going:

- The current medical application used in our hospital does not have a way to track if a case is a re-admission or not. This information is very important in surgery and urology. The doctors are using an excel file to track this information at the moment and we are building an app so that this information gets put into a database and will also later be integrated into the main medical system.

- Currently, students in radiology do not get very many chances to actually look at images to practice so we are building a crowdsourcing platform for radiology images. This will also be useful for interviewing or general practice for professionals.

On the side, I've been working on https://ewolo.fitness - a workout tracking app that also has running and weight tracking built-in. I found all existing solutions too gimmicky and annoying - a workout tracker should be as flexible as possible and let you add your data and get out of your way...


Great list! I was surprised to see that wesnoth is not tagged as playable though!


This is absolutely brilliant - I think that this is the way to go for hiring tests! Either that or you get paid for the hours you put in.


Very neat! How can we get this on bash (ubuntu)?


Take a look at the example: https://github.com/romkatv/gitstatus#gitstatusd. Even though this example uses ZSH, it's just for exposition. It launches gitstatusd, writes a request to its stdin, reads the request from stdout and prints it. You can discern from it the format it uses for requests and responses.

There is also a formal description of request/response format in `gitstatusd --help`, or in https://github.com/romkatv/gitstatus/blob/master/src/options....


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: