HNHacker News
TopNewBestAskShowJobs

dsgrillo

53 karma · joined October 27, 2016

submissionscomments
dsgrillo··on Tell HN: Amazon delivered just the box with the product removed
Happened with me when buying a nvm-e samsung evo 970 (if I'm not mistaken). I was getting a full new PC and only opened the ssd box after all components arrived, two weeks after receiving it.

I opened a ticket with amazon explaining what happened, got a call from their support to confirm that the violated box was the product one and not the carrier one, and then got reimbursed by the end of the same day.

dsgrillo··on Ask HN: How do you start your remote work day?
During the week I'm not shutting down my Mac, only putting it to sleep. Thus, in the morning, Slack (and all the other stuff I was working) is already open so it's easy to jump back doing whatever I was doing yesterday.

Each day varies... Usually, early in the morning is the least crowded time to deploy stuff, and when I'm mostly doing mine (we're doing Trunk-based development). Other than that, is the best time for doing code reviews before the daily meetings begin. Then there are meetings, incidents to follow up, interviews to conduct, features to implement and so on.

dsgrillo··on Ask HN: What is the best solution to monitor your infrastructure in 2022?
datadog
dsgrillo··on Ask HN: Are managed DB so important?
It depends on how much you can invest (time and money) vs the risk for your business.

I have 2 projects running a similar setup as yours: everything on a single machine. So far, running since 2014 without any large issues with both of them.

Once, I got locked out of the provider (due to my fault, but it doesn't matter). They've kept the server running, even though I couldn't ssh to the machines. I was ready to redeploy everything on another provider in less than 1 hour, with a DB backup of the day prior of the incident.

If my DB crashes, get corrupts, etc. I have a couple of backup for the last day, week and month, all saved in a different provider.

Thus, in short, I don't think the managed DB really worth for me. I also don't have HA, but I can cope with that. I'd rather get beefier machines for the extra price.

dsgrillo··on Ask HN: I've got my first paying customer. Now what?
Thanks for your advice and for the links!

What would be the advantage of setting up something (either a company or a sole trader)?

I wanna have the least amount of work in those "administration tasks", but I'm also afraid that it can bite me in a future. Do you have an idea of when is the proper time for caring in those tasks? After 1 customer? 10? Or maybe is related to the MRR?

Right now, the system should be stable (with tested backups) and the only bad thing that comes to my mind is not being paid. I'm totally fine if it happens and will worry about only if/when happens.

Am I being naive?

dsgrillo··on Ask HN: I've got my first paying customer. Now what?
Hey, thanks for your suggestion!

Although it got me thinking, what's the worst thing that can happen if I have no contract at all?

dsgrillo··on Ask HN: Solo-preneurs, how do you DevOps to save time?
In my case I'm dumping + zipping the entire database at the application level. In my case is as simple as adding a library [1], scheduling the job and transferring to AWS S3 (my main application is on DigitalOcean)

[1] https://github.com/spatie/laravel-backup

dsgrillo··on Ask HN: Solo-preneurs, how do you DevOps to save time?
You bring up good points, fair enough.

I might being naive here, still:

   - losing customer data: the backup must be done frequently enough. So I'm not risking losing data.
   - downtime: I'd expect that RDS could still go south as well, maybe less frequently, but still. In my case I start another VM, run again the container and apply the backup.
   - data breaches: Of course one can misconfigure something here, but not sure how it'd be different using a managed database. 

Regarding the cost, I know that there are companies spending hundreds of $$ on their infra, but it just baffles me for most use cases. I still feel that one can get really far with just a budget of 50$/month.
dsgrillo··on Ask HN: Solo-preneurs, how do you DevOps to save time?
My experience says to backup to a different vendor.
dsgrillo··on Ask HN: Solo-preneurs, how do you DevOps to save time?
> Don't: manage your own DBs for production. [...]

Why, though?

If you're really on a low budget, the extra $$ for a managed DB doesn't really pay for itself. I'd rather prefer spinning up a container running whatever DB I need and run daily backups to an external vendor.

In my case, the website is free, living on ads revenue, so every penny counts.

dsgrillo··on Ask HN: Solo-preneurs, how do you DevOps to save time?
If you have any migration, you probably want to rollback them as well
dsgrillo··on Ask HN: Solo-preneurs, how do you DevOps to save time?
I have currently 2 projects with some traffic (5k req/day) running in production.

Both have a similar setup:

   - 1 droplet with docker pre-installed from DigitalOcean
   - clone directly the repo from github
   - together with the code, I have a folder with a bunch of docker images (caddy, mysql, php, redis, etc.) that I can easily spin up.
   - for any release, I manually ssh, git pull and run the migrations (if any) and manually rebuild any docker image if needed
   - I have daily jobs that dumps and zip the entire DB to S3
   - if I have some deployment that I know will break any functionality during deployment, I warn the users before and accept that downtime.
   - never had to handle a "hard" rollback till now.
I've planned to change this setup for while, but until now, didn't find any reason that justifies the effort.

I spend 20$ (10$ per droplet) + few cents on S3 per month with them.

dsgrillo··on Ask HN: Software engineers who have been promoted with a large salary increase?
10 years of experience.

In my first job had multiple promotions varying from 5% to 50%. The lower ones (5% ~ 10%) were given proactively by my employer and for the bigger one (50%) I've ended up changing position inside the company, after asking for a bigger raise.

I agree with others that it's way more easy to have a substantial increase moving jobs.

dsgrillo··on Ask HN: Favorite purchases of last two years?
Secretlab TITAN
dsgrillo··on Building a Distributed Turn-Based Game System in Elixir
This sounds quite interesting!

Any chance you mind sharing that code on GitHub?

dsgrillo··on Ask HN: Largest speedup you ever achieved by only changing a few lines of code?
Sending campaign flow would create tens of thousands records on DB. After each record insertion, there was a sleep(0.1) - in place to solve problems related to master/slave setup in other flows - just conditionally disabling the sleep was enough to reduce the procedure time from ~5min to ~30 secs
dsgrillo··on Ask HN: What is your current side-project?
I have 2:

1. https://www.criarenquete.com.br - an easy and quick way to create a poll and share a link or embed it in your site.

2. https://www.gpebahia.com.br/gpe-pesquisa - a mobile app to collect surveys (with GPS tracking and random audio recording) and a dashboard administration to manage/monitor the surveys and extract data (pivot, frequency tables, etc.)

dsgrillo··on Ask HN: What websites do you visit every day?
1. hacker news

2. news.google.com

3. lichess.org (mostly for doing some puzzles)

4. globo.com

dsgrillo··on Ask HN: How to talk to my parents and older family members about fake news?
I have the exactly same issue with my mom.

I've been trying to avoid to discuss the facts (f.e. about hydroxychloroquine) itself (unlike my siblings), but instead elucidate that spreading misinformation is way easily than before. The important thing is that she doesn't see me as "the other side".

What (I think) worked for me was showing fake news about flat earth 'theory' and compare with what she was reading/sharing.

dsgrillo··on Ask HN: What were/are you doing at age 25? What would you change?
I'm 25. In the last year, after dating for 2 months (with a person that I knew for more than 15yrs), we married and decided to move into Italy, without much planning. I had a great job in Brazil, since 2010, and they let me keep working remote.

We struggled a little to live in Europe with only my salary from Brazil, but in general, I'd said that its being an incredible experience. We are traveling a lot!

After the bureaucracy to get the visa here, I've found a nice job in a start up and I've been working here for 3 months now. My wife also found a job as a engineer.

Now, things are becoming more stable and hopefully soon we are buying a car. Although, I don't expect to become rich anytime soon.