HNHacker News
TopNewBestAskShowJobs

dagoat

103 karma · joined August 2, 2018

submissionscomments
dagoat··on Why We Chose Rails to Build Gitlab
> For the most part you don't actually want to roll back schemas as you would lose data

Can you name a framework where you roll back schema changes and don't lose data?

> being careful not to take down the whole thing

You still need this caution if you don't use rails

> a certain change required a full table lock or a certain index would take so long to create, etc.

I feel like you're just describing working with a relational database in a production setting. This isn't rails specific

> Rails, it's set up to be nice and simple for a hello world example

Sure. I'm also pretty sure it's used in production by some great companies whose applications/APIs are a pleasure to use - SendGrid, Github, Stripe, and last time I checked Hulu to name just a few.

Just because it's not the framework of choice for the majority of companies doesn't make it incapable of being used at scale.

dagoat··on On whether changes in bedroom CO2 levels affect sleep quality
Surely he'd have to tuck them in at night to verify that...
dagoat··on Federal HTTPS domains that'll expire soon because of US government shutdown
Just to clarify, are you saying you're able to recycle your oil without inspection and also wont't have to undergo a full site inspection (if the gov remains shutdown)?
dagoat··on Rappers, sorted by the size of their vocabulary (Updated January 16, 2019)
Also a shame that Project Pat[0] is not included

[0] https://en.wikipedia.org/wiki/Project_Pat

dagoat··on Security Checklist
The best recommendation to be secure from your linked article:

> Use a bluetooth keyboard for easier typing.

dagoat··on US is an oligarchy, not a democracy (2014)
Not sure why you are so angry and defensive. But why can't it all be recorded in a single place?
dagoat··on Yelp claims Chicago area's best restaurant is 40 miles away in Waukegan
Last I checked Yelp is used by Apple on their maps in the US (and perhaps elsewhere). As for Google reviews - they always appear inflated whenever I cross check them, so you're always eating somewhere good. Same thing for facebook reviews.
dagoat··on Ask HN: Is it good idea to take protein supplements in your diet?
It’s likely a lack of calories. You’ll need a surplus to gain any mass. Keep in mind that you will gain fat and muscle at the same time - if you’re already lean then you’ll gain relatively lean too. But understand you will get “fatter” too

Sounds like if you workout already and aren’t seeing results you probably aren’t eating enough. But your workout might also not be ideal.

For things diet related Alan Aragon is a decent resource. If you’re visual Jeff Nippard on YouTube isn’t bad.

For calculating your daily intake requirements: https://tdeecalculator.net isn’t terrible.

As it sounds like you’re an ectomorph, I’d suggest going higher carb.

Using the linked calculator, you should be given a macronutrient split and total calorie intake for bulking.

Try following that for 4 weeks.

I’d suggest picking up a scale that measures body fat too. They aren’t completely accurate, but better than nothing. Something like: https://www.amazon.com/gp/aw/d/B01N1UX8RW

You should get a couple of baseline readings from this in the mornings now. After 4 weeks of bulking get a couple more.

Once you start to plateau, increase your calories by 3-500 (try to keep the same macronutrient split).

Repeat this process.

Decide what amount of body fat you are ok with and bulk until you reach that. Then decide what you’d like to do from there

You should plan to bulk for 3-6 months at a time to notice a real difference.

I’m sure you are already, but drink plenty of water. 2-4L of fluid per day (water, milk, etc). Keep in mind that your body can only handle around ~800ml per hour - so if you’re behind don’t try to “catch up” because you’ll end up dehydrating yourself. I’d post a source for this, but I’m on phone

Make sure you eat enough fiber, don’t overdo added sugars, etc

As for should you use protein supplements:

Only if you cannot (for whatever reason) eat the required amount from food.

I use protein supplementation, but I also get a lot from milk, meat, eggs, etc

Protein supplements are not harmful and you shouldn’t experience side effects. Just don’t rely on them heavily (I use at most 2 scoops a day) and choose quality brands.

There’s a lot more to gaining mass than I’ve posted here, but what I’ve posted isn’t a bad start.

Make sure you’re working out with intensity, giving yourself adequate rest, sleeping enough, reducing stress, not training to failure all the time, and progressing steadily in your workouts.

As others have stated, adding mass and eating more is taxing to the body in the long run. So staying lean and eating less might be more beneficial for you long term

dagoat··on Ask HN: What should I do when I'm bored with my career?
Not sure if trolling. But unless you elaborate, very few people are going to read this and comprehend what you are on about
dagoat··on Ask HN: What do you use for authentication and authorization?
If you have the budget for it just use auth0 or similar. You will likely spend less time wiring it up than coming up with a solution yourself.

Going off your question only, this will also likely end up being the most secure implementation for you (relying on a third party service)

dagoat··on Ask HN: What do you use for authentication and authorization?
I thought the problem with JWTs was the whole “stateless JWTs”.
dagoat··on Top Patreon creators launching an alternate crowdfunding platform
Yes, but spend some time watching him speak about preferred pronouns and it is clear he has inherent distaste for them.
dagoat··on How the pilots of Lion Air Flight 610 lost control
OP says primary cause. Which it was. Pilot error happened after, and because of, instrument error.

Being well lit is one part. But also, if the pilots had been in a Boeing that may have helped as well.

Airbus joystick vs Boeing yoke. The latter would have provided feedback to the pilot not panicking and pulling up incessantly

dagoat··on Top Patreon creators launching an alternate crowdfunding platform
The only reason I've heard of Peterson is because of his criticism of using preferred pronouns. Here is an overview of some of the pronouns: https://lgbtqia.ucdavis.edu/educated/pronouns
dagoat··on A New Connection Between the Gut and Brain
> This is bullshit.

From my observations, it isn't.

> Doctors know quite a lot more than most people

In general, I don't think most doctors do.

Saying they know "very little about what food does to the body" might be stretching it a bit far. It's more like:

_most_ people know very little and doctors, on the whole, appear to know a little more than most people.

Having said that, there are doctors who know their stuff. I just don't think it's fair to say this characterizes most doctors

dagoat··on Ask HN: How do you manage UI/UX for your side projects?
Not affiliated, but if you’re using rails, rapidrailsthemes is quite nice.
dagoat··on How to cure a hangover: what one man found after a 10-year quest
dioralyte works well too
dagoat··on Ask HN: Which is the richest IT niche for a 2-3 years project?
Struggling to understand that logic. The only way I've been able to arrive at the same conclusion is if I pretend I don't know what a dictionary is, or what Craigslist's front page looks like. Or both
dagoat··on Medium is a poor choice for blogging
Disagree slightly on the width. Perhaps a little wider, but I don't hate it. On the font size: Home page gets it, actual posts the font size is far too small IMO
dagoat··on Long-Awaited Study Results on Vitamin D and Fish Oil Supplements
It’s been known for a while that supplemental omega 3s are probably best avoided until there’s more data out there.

https://www.health.harvard.edu/blog/fish-oil-friend-or-foe-2...

Vitamin C, E, and many other supplements have similarly questionable benefits with possible harsh side effects.

I wouldn’t reach for almost any supplement unless a doctor + blood tests + my own research suggested I should. And even then I believe diet and lifestyle modifications could be attempted beforehand.

dagoat··on Facebook chooses Canada for Dating feature launch
> it doesn't happen for most people.

Is there data showing that?

dagoat··on Tesla Model 3 Performance with Track Mode Beats a Ferrari's Record
I wonder how many straights there are on this track, and what its times are like on the N ring and other larger circuits
dagoat··on Analyzing the Walmart site performance
Click on hotels and you get this: http://www.foundem.co.uk/hygiene/Temporary_Announcement_2016...
dagoat··on A single-page app is almost always worse than a multi-page app
You don't have to use jQuery... https://news.ycombinator.com/item?id=18336429
dagoat··on Porsche to Cull Diesels in Shift Toward Electric Vehicles
Does “I drive a 911” have the same implications?

Porsche’s success has meant many other “cool” brands following suit.

Also Lamborghini, by your metric, ceased being cool when they released the LM002. Were they still cool between the years they ceased production of the LM002 and began production of the Urus?

Really does suck for cool kids these days. Can’t buy RR, Bentley, Maserati, Porsche, Lamborghini, and soon enough Ferrari ( after they release the Purosangue). Oh and to play it safe avoid Aston Martin, because the DBX concept.

dagoat··on Porsche to Cull Diesels in Shift Toward Electric Vehicles
Hardly terrible mistakes when they are two of their best, if not their best, selling models globally.
dagoat··on Ask HN: What's the mission of your company and why does it matter?
Just an observation, but I hear and read “democratize X” and “Uber for X” quite frequently these days. Your platform uses both
dagoat··on Why should I use DuckDuckGo instead of Google?
I have to frequently fall back, so every time I make the switch to DDG - I quickly switch back out of frustration
dagoat··on Ask HN: What is the best-designed software you've used?
Ambiguous question but off the top of my head: SendGrid, Stripe, Heroku, GitHub, Redis
dagoat··on Writing a JIT Compiler in C#
For those interested in writing their own compiler in C#. There was a decent article a while back written by Microsoft employees with example code provided. Looks like MS have archived the post, but you can still browse the code (almost unadulterated) here:

https://github.com/johandanforth/good-for-nothing-compiler (not my github)

And read an expanded/in depth version of the original article (with a link to download the original source) here:

https://www.cs.helsinki.fi/u/vihavain/k14/code_generation/pr...

← PreviousPage 2 of 4Next →