HN user

wheresvic1

3,454 karma

https://smalldata.tech

Posts687
Comments177
View on HN
janbosch.com 4y ago

Structure Eats Strategy (2017)

wheresvic1
1pts0
smalldata.tech 4y ago

Detecting a permgen memory leak in a Java application

wheresvic1
22pts14
smalldata.tech 6y ago

Detecting a permgen memory leak in a Java application

wheresvic1
1pts0
medium.com 6y ago

Programmer Test Principles

wheresvic1
3pts0
bartoszmilewski.com 6y ago

Category Theory for Programmers: The Preface

wheresvic1
13pts0
blog.jessitron.com 6y ago

For cleaner code, write ugly code

wheresvic1
3pts1
smalldata.tech 6y ago

What to expect in a code quality assessment

wheresvic1
1pts0
smalldata.tech 6y ago

Docker in 10 Minutes

wheresvic1
1pts0
smalldata.tech 7y ago

A quick introduction to Go modules

wheresvic1
1pts0
www.bbc.com 7y ago

The Indian inventor who dazzled London

wheresvic1
2pts0
smalldata.tech 7y ago

The Merge Request Checklist

wheresvic1
2pts0
smalldata.tech 7y ago

Setting up a raspberry pi 4 home server

wheresvic1
3pts0
blog.logrocket.com 7y ago

Design patterns in Node.js: a practical guide

wheresvic1
3pts0
smalldata.tech 7y ago

Setting up a raspberry pi 4 home server

wheresvic1
3pts0
smalldata.tech 7y ago

Clean Code – Notes

wheresvic1
2pts0
www.bloomberg.com 7y ago

Workers of the World on Getting by in an Era of Wrenching Change

wheresvic1
1pts0
www.theguardian.com 7y ago

Generalise, don't specialise: why focusing too narrowly is bad for us

wheresvic1
2pts0
medium.com 7y ago

NPM Tricks for Faster JavaScript Development

wheresvic1
2pts0
blog.logrocket.com 7y ago

ES2019 features you can use today

wheresvic1
27pts0
ponyfoo.com 7y ago

JSON Web Tokens vs. Session Cookies: In Practice

wheresvic1
7pts1
smalldata.tech 7y ago

Setting up a raspberry pi 4 home server

wheresvic1
3pts0
smalldata.tech 7y ago

The case for single character Git commit message prefixes

wheresvic1
1pts0
smalldata.tech 7y ago

Setting up a raspberry pi 4 home server

wheresvic1
3pts0
medium.com 7y ago

Figuring out the future of distributed data systems

wheresvic1
3pts1
medium.com 7y ago

Application Programming Language

wheresvic1
2pts0
blog.regehr.org 7y ago

How to Debug (2010)

wheresvic1
97pts28
itsfoss.com 7y ago

After Developer Outrage, Ubuntu Decided to Keep 32-Bit Partially

wheresvic1
1pts0
itsfoss.com 7y ago

Open-Source Slack Alternative Mattermost Gets $50M Funding

wheresvic1
327pts110
blog.regehr.org 7y ago

How to Debug

wheresvic1
7pts0
smalldata.tech 7y ago

Docker in 10 Minutes

wheresvic1
3pts1

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

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 :)

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

Aha yes you are correct - it outputs an ISO string at the very least but does not parse it back to a date. I will update the article to reflect this!

I saw many examples on the net of people putting role/authorization and various other types of session information within the JWT and it just looked insane to me.

Why is this crazy? If you encrypt your JWT with a private key that is only known to the server, then any modification to the JWT will lead to an invalid token.

The only thing here is that the list of roles granted is visible to the user if they were to decode the JWT, which is something you might not be entirely comfortable with but I don't think it's totally crazy.

Totally agree with the author, for my side projects in Node.js, I use the following:

- pm2 for uptime (pm2 itself is setup as a systemd serivce, it's really simple to do and pm2 can install itself as a systemd service)

- I create and tag a release using git

- on the production server, I have a little script that fetches the latest tag, wipes and does a fresh npm install and pm2 restart.

- nginx virtual host with ssl from letsencrypt (setting this stuff was a breeze given the amount of integration and documentation available online)

Ridiculously simple and I only pay for a single micro instance which I can use for multiple things including running my own email server and a git repo!

The only semi-problem that I have is that a release is not automagically deployed, I would have to write a git hook to run my deployment script but in a way I'm happy to do manual deployments as well to keep an eye on how it went :)

This is a wonderful article and interestingly one of the more poignant bits is a quote from someone in the film industry (to paraphrase):

"We meet with a lot of startups and the only question is 'Can this be done?' Nobody is stopping to ask questions regarding the ethics."

That being said however, it is really tricky to come to any easy conclusions. We live in a complex world and it's not clear even after exhaustive questioning what damage could be done with the work that one is doing.

Fire was one of man's greatest discoveries - but if you stop and look at all the dangerous uses it could have been put to, it is quite possible we would not be sitting here today on HN...

Aha, you are correct - this is only JVM related.

In theory, the changes should really be minimal but to be sure we would need to have a very strong CI and stress testing platform to be sure about upgrading.

All good projects should have this in place anyways.

I'm not sure Java is worth the effort at this point. If I'm going to have to keep updating every 6 months, I would rather use Go, which seems to have all that Java has to offer + the backing of a huge corporation.

I can also second Zoho. It's primary target is small business and they have a massive suite of features but I'm just using their email and calendar.

Their web interface is a bit annoying as you need to make a couple of clicks to get to the email but they provide mobile apps as well as IMAP access.

So far I have not had any issues so I cannot say what their support is like.

While this is pretty cool, it's also not all that much of an effort to setup https using certbot and have it automatically configure nginx: https://smalldata.tech/blog/2015/12/29/nginx-nodejs-and-http...

Setting up the renew job is also a very simple cron job.

Moreover, something that one forgets is that once you have your posts, comments and any sort of data, you need to have backups and other sysadminy stuff.

Personally, I enjoyed learning about this while setting up my blog :)

This is offtopic but I just have a small suggestion for Hue - When I checked it out, it required me to login/register right away. It would be nice if you could provide a demo version where one can check out the service without having to register first.

This is quite unsubstantiated but I have a feeling that the trend is moving towards other Fb owned properties like Whatsapp and Instagram so I wouldn't be worrying about Facebook's profitability anytime soon.

Moreover, deleting the Facebook app from the phone does not mean that they are not simply using the web version. Although, apparently a majority of revenue was coming from the mobile ads.