Better HN
topnewbestaskshowjobs
Log inSign up

mrinterweb

2,175 karma · joined Jan 21, 2009 (17y ago) · 789 submissions

Submissions

comment 3y ago · link · parent

My heat pump is advertised to operate as low as -13F. One thing to note is the efficiency of heat pumps is not optimal when they are operating close to their extremes.

comment 3y ago · link · parent

I have a Mitsubishi Hyper Heat, and it operates to -13f, which would be unheard of in Western Oregon (where I live). So long as your house is well insulated, you'd likely be fine with a heat pump. Pay attention to R-Value for insulation, but if you choose the right materials, that goes a long way for heat storage.

I know there exceptions in Minnesota where it can get considerably colder than -13f, but I don't know how long those super low temps are sustained. You would definitely need some sort of emergency heating system. An outdoor propane tank (the larger variety) and a propane heater would likely do the trick as an emergency backup. Not great for air quality in your house, but plenty of people use that as their normal heating.

comment 3y ago · link · parent

Since they have everyone's password vaults, it is likely a matter of time before your vault is decrypted. You should change all of your last pass passwords.

comment 4y ago · link · parent

Let's not confuse or conflate A/B testing with making ethical decisions.

comment 4y ago · link · parent

In my experience 9/10 web application performance problems are related to database interactions. Is the query using an index? Are you hammering your DB with 300 N+1 queries to render an API response. These are usually the biggest offenders when poor performance is observed. If you're interactions with you DB are bad, it doesn't matter what programming language you use, performance will be mostly equally awful regardless of language.

comment 4y ago · link · parent

Pebble understood what a smartwatch should be. Everyone else was trying to make a nearly phone independent device, and pebble's take was more of a phone accessory. Also the battery life was incredible. You had an always on display with a week long battery. There was a lot of love about Pebble. I still have two in my drawer, and I had no idea the devices were still usable. I might dust one off now.

comment 4y ago · link · parent

From what I've researched, there dioxins, PFAS, heavy metals, and particulate matter result from burning plastic. I haven't seen anything that would suggest that only water and CO2 are the only byproducts of burning plastic.

Edit: source -> https://www.sciencedirect.com/science/article/pii/S187802961...

comment 4y ago · link · parent

Placing blame and responsibility on consumers to not purchase single-use plastic is not the right approach. Discouraging the use of single-use plastics should be done at government policy level to heavily tax the sale of single-use plastics, and subsidize sustainable alternatives.

comment 4y ago · link · parent

> Burning plastic does not release pollutants

Very false

comment 4y ago · link · parent

It is probably more of a liability concern where Google doesn't want a headline starting with: "Google created a video of ____ (horrific thing)"

comment 4y ago · link · parent

I would think this would have limited usefulness for most web applications as the latest trend for web apps is to think of the deployed code as ephemeral, and local files are not something devs often rely on. I guess if you're mounting block storage or some other virtual file system that would be another thing. For non-web applications, this could be a simplistic replacement for what people often use sqlite for. The readme doesn't talk much about concurrent access to the store other than the transactions, so concurrent operations may also be a limitation.

comment 4y ago · link · parent

I wonder what the longevity of electrically heated clothing is after it has been through the wash and dryer many cycles. That is an important detail.

comment 4y ago · link · parent

You may be safe most of the time. No one is perfect. Buying increasingly large vehicles is an kinetic energy arms race.

comment 4y ago · link · parent

This is basic and obvious physics. I always was frustrated any time I heard someone say they liked their massive vehicle because it made them feel safer. It is such a selfish way of thinking. Sure you're safe, but think what you're going to do to the other car and people inside. Might as well add missiles that preemptively fire and blast the other car off the road in a detected collision. That would even be safer for you.

comment 4y ago · link · parent

I didn't know it was that high. I don't think it is trivial to completely change how one eats. In theory it is a simple solution, but in practice it is hard for people to accomplish.

comment 4y ago · link · parent

I think we're mostly agreeing. I do think that calorie for calorie not all foods are equal, and simply eating less is not quite the right thing to focus on. Eating 100 cals of sugar will do different things to your body that 100 cals of protein. Sugar signals the body to store fat. It also makes people crave more food. It is difficult to avoid added sugar these days. I do think people would naturally eat less if there were less sugars in food.

comment 4y ago · link · parent

> High BMI is such a problem in the west and so trivially preventable.

Hardly. Tell that to the 1/3rd Americans who are overweight. If you know the secret to easy weight loss, please don't hold out.

It mostly comes down the the food we eat. Added sugars have made their way into nearly everything you can buy at a grocery store. Buying food that doesn't include added sugars is tricky because nearly everything has added sugar. The evidence that added sugars (especially high fructose corn syrup) are mostly to blame for the obesity epidemic, is becoming overwhelming. Significantly changing what you eat is not easy for everyone.

The biggest change needs to come as regulation to the food industry to discourage adding excessive amounts of sugars to foods. Also, stop subsidizing corn and the production of high fructose corn syrup. Obesity is a systemic problem that needs a systemic solution.

comment 4y ago · link · parent

Of course mileage varies. I think it is fair to say that it is still the case that for many rails apps most of the request/response time is spent waiting on I/O. The DB I/O performance can be greatly improved by minimizing number of queries, indexing, query optimizations, ETC. DB I/O performance bottleneck is not a problem unique to rails, but maybe felt by rails devs more because the abstraction ActiveRecord provides doesn't make it obvious when you're misusing the DB.

comment 4y ago · link · parent

One advantage I didn't see in the article was the performance costs of network latency. If you're running everything on one server, every DB interaction, microservice interaction, etc. would not necessarily need to go over the network. I think it is safe to say, IO is generally the biggest performance bottleneck of most web applications. Minimizing/negating that should not be underestimated.

comment 4y ago · link · parent

For audit trails in rails, I still like papertrail. https://github.com/paper-trail-gem/paper_trail. It provides the ability to restore records as well as auditing abilities.

comment 4y ago · link · parent

Unions are kind of like electing congressional representatives. You and your peers elect someone to represent their interests. Its democratic representation. When it comes to a company making changes benefiting workers, collective bargaining is far more powerful than a single worker voice.

comment 4y ago · link · parent

Is the real exam more involved than this exam? This is too simple. This seems like a test most middle schoolers should be able to pass without studying for.

comment 4y ago · link · parent

Even if it is not the norm, people hear about situations like this, and become fearful. Fear of CPS taking kids is enough to make many parents not willing to allow their children freedom.

comment 4y ago · link · parent

So maybe your problem is there is too much documentation that spans too far back and getting current relevant examples and docs is the hard part. The rails guides are kept current, but any popular framework that has been around for a while is going to have a similar problem. Rail's guides are pretty good compared to many others I've seen. Also there are books, courses, video series, and plenty of other resources that are up-to-date. There is no shortage of high quality up-to-date learning content available. It just may take some work to weed out some of the older content.

comment 4y ago · link · parent

In my experience, Docker for Mac has always had significant performance problems primarily because of its built in host <-> volume sync strategy. The problem has persisted for many years. Different 3rd party (open source) solutions can relieve this performance bottleneck like docker-sync and mutagen. It just blows my mind that after all these years, the docker for mac team hasn't found a decent file sync strategy to include by default. If you're working on a project with a lot of files, docker for mac's built-in sync strategy is likely crushing your CPU.

comment 4y ago · link · parent

My favorite documentation trick for ruby is to run your own doc server locally documenting the versions of the gems you are using. I use the "yard" gem.

yard server --gems --reload

For rails and ruby docs, I use Dash (on Mac). I use Dash for local docs for other languages and systems as well. Just a handy tool for local docs.

comment 4y ago · link · parent

I think it used to be harder to host than it is now. I think the only thing that might be hard now is sifting through all the tools for hosting and the analysis paralysis that can come with that. Heroku can get pricey at scale, but heroku and others are options that make it dead simple. Then there are a ton of options for how you might want to self-host. There are plenty of guides for getting docker setup with it, opensource heroku-like alternatives (most using docker under the hood), and plenty of resources (maybe too much).

comment 5y ago · link · parent

> One benefit to squash merging that you might have overlooked is that it can encourage frequent (and messy) committing, knowing that the churn will disappear without having to work hard to clean it up.

I've noticed the opposite. Developers who know all of their work will be smashed into one commit at the end tend to not commit as frequently, and the commits they do make are just checking in all of their work at intervals. It is more of a process of saving state. It doesn't matter how frequently they commit if all the commits will become one.

comment 5y ago · link · parent

I feel that having a default merge strategy to squash and merge all commits in a branch is a version control anti-pattern. This discourages thoughtful and frequent commits that express the intent of a change because all the commits are just smashed together anyway so why bother. I think context and intent is lost when looking through git history of large smashed commits.

I prefer using a precommit hook to automatically prepend a Jira ticket number to each commit so when you look at the history you'll see multiple commits grouped together with the same ticket prefix, but the commits still retain the intention of the commit. Knowing that commits will not be squashed promotes devs to make meaningful commits. I still advocate for cleaning up and squashing your own commits as you see fit with an interactive rebase before your branch is merged. Having discrete commits can also help when running git bisect to find when a bug was introduced so you identify the specific commit instead of a feature being merged.

comment 5y ago · link · parent

As long as the final battle takes place on Mars, I'd watch that.
1
101112
27