HN user

davide_v

49 karma

MSc in Computer Engineering.

Freelance Tech Lead / Full Stack Engineer.

https://github.com/davideviolante

https://davideviolante.com

Open HN links in a new tab: https://gist.github.com/DavideViolante/04e42628b9e6b4a2f8aec3875e44990c

Posts0
Comments34
View on HN
No posts found.

I'm still using the old way: "crontab -e" inside the same EC2 where I run the app. In case of failure I automatically send an email to me. This is the easiest scenario in case you already have an EC2 for some other things that is already running. Instead, from scratch (no EC2), I'd probably use Lambda.

AWS and Blockchain 4 years ago

In Italy a famous news website is using blockchain since 2020 to, I quote literally: "help readers check source of news", "strengthen bonds of trust between its organization and its readers and customers", "trace the history and source of each news item."

News (EN): https://www.ansa.it/english/news/science_tecnology/2020/04/0...

Example of news in the blockchain: https://blockchain.check.ansa.it/landing/b150aff9f028f7339f0...

The first time I saw it I was quite surprised. I'd like to hear opinions about it here. Eg: it's blockchain stricly necessary here?

This reminds me about Black Mirror's White Christmas episode where they create a digital clone inside a white "cookie" and then they use it for receiving tasks such as making toasts. This project is very similar actually. I found very interesting the part where you can track your food and automatically calculate the calories every day without writing anything anywhere.

I'm currently in a 6 months streak on Duolingo japanese and this article is actually very useful to understand the difference between ha, ga and he, that I think are the most tricky. In fact the ga explanation is the longest hehe :p Keep it going, the website is super well made and fast (what's the tech behind?).

Absolutely agree, but I think we are in the smaller size of the pie. I had for many years a Samsung Galaxy S4 Mini (4.3' 124mm), super small phone that I loved, then I switched to a Xiaomi Redmi 4 Pro (5.0' 141mm), reasonably small but bigger then S4 and still usable with one hand without risks. Then I switched to a Xiaomi Mi 9T for the huge body-display ratio and I always feel it's too big (6.39' 156mm) and sometimes I need 2 hands, and I've pretty big hands... Nowdays you can't find any good android phone around ~140mm in size, that I think is the perfect size.

I expected to start from a recipe and then have the veganized recipe. How it works now is a Google search, so I have to find another recipe, if there is. I would skip the Google part and start from a recipe URL and have as a result that specific recipe veganized (ingredients replacement). It would also prevent people from leaving the website.

Based on the title I was thinking the product was different. The "veganize" term is misleading here imho. I was expecting that, given a recipe, you replace non-vegan ingredients with vegan ingredients and so being able to cook that recipe, somehow. Actually it would be a very nice product...

You are absolutely right, I tested in on myself over several years. I want to share my story so far. Since I got a prescription of -4 I was so mad that I didn't want to wear those glasses. Furthermore I really felt like they were too "strong" for me. So I kept wearing the previous one that was at -3. Since then my myopia never got worse. But I wanted to go further and try to reverse it in some way. I have read many studies, like the one you mentioned about the animals with glasses/contact lenses that after some time develops myopia. That is the real proof that "too strong" glasses causes myopia. But what does "too strong" mean? It actually means 2 cases: the glasses that are actually stronger that the one you need (like -4 if you have -3.75), or the glasses that are used when you don't need them (short distance). In both cases you are slowly increasing your myopia (like the animal study). So to stop the myopia you just need to use the "right" correction for the "right" time. For example at PC you don't need full correction (for low myopia you don't even need glasses at all), because full correction is only for driving and looking at infinite distance. So the first thing to do, if you work at PC, is to buy less strong glasses (even super cheap one you can find on Amazon). What less strong means? It depends on your myopia and your distance from the screen. But you can calculate it using a ruler that has the diopters written on it (just print it: https://endmyopia.org/wp-content/uploads/2014/08/myopia-rule...). For example I've -3.5 but at PC I wear -1.5 because my screen is 70cm far. As other mentioned already, the best correction you need to use is the one that blurs the text a little bit, where you are still able to read but is not crystal clear. You may notice that this gets even harder if you have different myopia per eye, because one eye may blur, but not the other or viceversa (I still don't know what happens here, if it's better to cover 1 eye or not, etc). Btw, if you combine: less strong glasses at PC, regular intervals looking way far, no glasses for reading/phone, you will surely stop the myopia, and maybe you even improve. After years I just improved from -4 to -3.25, but it's better than nothing (and I was not so constant)... I'd love to hear some other experiences here.

Totally correct to discontinue the old AngularJS imho. Google, years ago, made one of the best choice adopting TypeScript for its new framework, Angular. I used to code in both AngularJS and Angular, and the improvement between the two is huge, thanks also to TypeScript. I'm a big Angular fan, even if I tried React, I highly prefer Angular for being more strict, complete and imho more suited for very big projects.

[dead] 5 years ago

"only a few hours" for Facebook is literally billions.

It's actually something good (expecially for Google) since the information found is now usually in the results itself instead of inside a website. If you notice, in the last years, Google shows you lists extracted from articles, makes calculations directly, answer simple questions like age, shows a lot of Wikipedia info for any person/movie on the right, etc, etc. It's not because there is more ads or because the results are irrelevant, actually I'm never disappointed by the results.

The original post where t0st explains how he did it it's fascinating. He improved the performance of a program without even having the source code. I can't image what he could do with the source code. I would instantly hire him as a QA and Performance Engineer or something like that. If R* won't get him, some other company will, and he will earn the money he deserves for sure.