Better HN
topnewbestaskshowjobs
Log inSign up

mrinterweb

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

Submissions

comment 9y ago · link · parent

Alcohol is the tough one for me. I love micro brews and wine. Beer and wine are a frequent enough part of my diet to know that alcohol is a significant amount of my calories. When I'm not drinking alcohol, I'm drinking water. I enjoy beer and wine too much to completely cut them out; but this month, I am going to try to abstain from alcohol.

comment 9y ago · link · parent

The problem with eating out is often you don't know what ingredients they are using. Does the bread they use have added sugar. Is the dressing on that salad full of sugar? There are so many unknowns with eating out, that it is not easy to avoid sugar when eating out. Generally speaking, food that you did not make, is going to likely have unwanted sugars.

Buying fresh is not exactly easy because that means going to the grocery store every day or thereabouts. I'm not going to argue that buying and eating fresh food isn't better for you, but it is certainly not easier.

It takes some practice to find the foods that work for you that don't have added sugar. It does get easier, but I would not say it is an easy diet considering how much food you need to avoid.

comment 9y ago · link · parent

I don't know about "not particularly difficult". Eating out is really tricky, so it is best to assume you can't eat out. Finding groceries that don't have added sugar is also tricky. I guess you can get into a routine of what foods you know are safe to eat. I don't think it is a very easy diet. I do think it is a very healthy and effective diet though.

comment 9y ago · link · parent

I find it helpful to hear success stories like yours. I'm obese, and I need to correct that. I believe sugar is one of the primary culprits. I'm going to attempt again to remove sugar from my diet for a month. I removed sugar from my diet for a couple weeks, and the weight loss results were very satisfying.

It is a hard diet to do though. I found that eating out was very tricky, and that shopping at the grocery store was also challenging. It required meal planning, and just thinking of most food in the grocery store as non-edible.

There are good documentaries, books, etc. on why sugar is so bad for us. I really enjoyed the documentary ["Fed Up"](http://fedupmovie.com).

comment 10y ago · link · parent

I haven't given up on Docker for Mac yet, but I could not agree more about them taking it out of beta. It is not ready for primetime yet. The shared volume driver, osxfs, is complete garbage in terms of performance. I use this solution as what I hope to be a temporary work around: https://github.com/EugenMayer/docker-sync.

comment 10y ago · link · parent

Years ago, this used to be the default in Firefox. Since Ctrl+Tab has not been the default, I've been using Ctrl+Tab extension. Other browser like Chrome do not provide APIs to allow extensions access to override tab order. Accessing tabs by order of last used, is a requirement for my daily web browsing, which is why I've stuck with Firefox for so long. I'm glad this is now part of the preferences, and does not require an extension.

comment 10y ago · link · parent

Rest/JSON is not a RPC. Technologies like Thrift can be used for RPC. It depends on how you define low friction for rest + JSON. JSON is schemaless, and that can be great for prototyping, but as soon as deployed services get out of sync, in terms of how they communicate, it becomes more of a burden than an advantage. Thrift, protobuf, avro, can enforce schemas and can raise exceptions for communication mismatches so less defensive programming is needed checking json responses. For internal service communication, I really think using a schema enforcing communication protocol is a good thing.

comment 10y ago · link · parent

I haven't found uBlock origin to consume much memory when looking at about:memory (Show memory reports). Perhaps another add-on is chewing up your memory. I often have 20+ tabs open. If I have 20 or more tabs with Chrome open, and I add up the memory for all the per-tab processes Chrome spawns, Chrome eats up way too much memory. Chrome is great as long as you don't have many open tabs. Firefox is great for those of us that just can't close our tabs.

comment 10y ago · link · parent

If you often have many tabs open, Firefox the better choice in terms of memory consumption. I use Chrome for more "appy" web sites, and Firefox for the rest of my casual browsing.

comment 10y ago · link · parent

LOL. I can see how that could be confusing. In theory a hybrid app could compete, if it was written well; yet, there are plenty of bad hybrid apps that give hybrid apps a bad name. I think it is a matter of effort that developers are willing to put into making a hybrid app. With a hybrid app, having good UI design is more of a challenge because they can not always leverage OS UI components, and when they try to mimic OS UI components, they never look quite right. With custom UI design, many users may never know if they are using a hybrid app or native. Obviously, hybrid apps are not an option for all types of apps, but I'd argue that hybrid is a viable option for many if not most types of apps. So long as the performance of the hybrid app is not noticeably slow to the end user, hybrid apps can be great apps.

comment 10y ago · link · parent

I don't believe so. My opinion is that well optimized hybrid apps can often compete with the quality of native apps. It is not easy crafting a good hybrid app, and few good ones exist. Many of the low quality hybrid apps have given hybrid apps a bad reputation. Ember + cordova can be a good toolset for creating good hybrid apps.

comment 10y ago · link · parent

I would expect that this ruling does not exclusively apply to the FBI. Would this mean that hackers can legally hack any computer connected to the internet?

comment 10y ago · link · parent

Vim can do ctags out of the box. If I remember right, the command is C-] (ctrl+ close bracket) to jump to a ctags definition.

For rails projects I wrote a script that kicks off ctags with the following options. "ctags --tag-relative -Rf.git/tags.$$ --exclude=.git --exclude=log --exclude=tmp --exclude=public --languages=ruby --languages=javascript `bundle show --paths` $MY_RUBY_HOME ."

I'd wager there is a better way. That's just the way I roll.

comment 10y ago · link · parent

I find it strange seeing non-pebble smartwatches on people's wrists where the display is off by default. I don't think having a device that is passively in sleep mode by default is very fashionable. Kind of like looking at an elaborate painting frame minus the painting. When I hear about people spending top dollar for the higher-end Apple watches, I just think it is so strange that the expensive fashion accessory they are wearing will be seen by others as being off most of the time.

comment 10y ago · link · parent

Semantic UI is far from a light-weight CSS framework. I was recently working on a project using semantic, and I saw that the CSS alone was around ~960KB. I'm guessing that something must have been misconfigured for CSS output to be that high just for the Semantic UI framework, but offhand I didn't see it. That didn't include the icon fonts or the JS with Semantic. I'm guessing with some work, that CSS payload could have been trimmed down, but I doubt it could be trimmed enough to be considered light-weight.

I prefer CSS frameworks to provide the bare minimum instead of the kitchen sink. The only exception I make is if I am working on a project that I know will not have design provided. If a project does have a provided design, overriding framework defaults is counterproductive. Just write your own styles when you need them.

comment 10y ago · link · parent

Imgix has good libraries that can automatically determine client device pixel ratio and other factors that make it easy to request the right sized image per client. I don't work for imgix or get paid by them, I just like their service.

comment 10y ago · link · parent

~0.2% is relative to how much the company could be sold for. Maybe do some research into what similar companies have been sold for or are worth. If the company is not willing to budge on options, perhaps see if they would be willing to split the difference of your salary with a convertible note. I would think that would be a fair option.

comment 10y ago · link · parent

Vim's fugitive plugin also gives a similar split diff view. The command is "Gdiff".

comment 10y ago · link · parent

I guess that depends if they eventually figure out how to fully connect the nerve endings in the spine.

comment 10y ago · link · parent

I can't help but think of a potentially horrifying black market that preys on the young and healthy, who's clients are old and rich.

comment 11y ago · link · parent

I would think the larger danger to birds would be running into the kites' high tension cables.

comment 11y ago · link · parent

You're right, Google Photos is a separate app. Google Photos is one of my favorite apps. Great UI and great functionality.

comment 11y ago · link · parent

Not totally sure what you mean. Elixir will never run rails, but the phoenix framework has some similarities to rails.

comment 11y ago · link · parent

"They feel after him and when they have found him they kiss him under the tail." - That is funny and gross, but still funny.

comment 11y ago · link · parent

Why is there a monitor on the bottom? Is the monitor used for watching TV/Movies? I can understand the benefit of naps at work, but a TV? Come on. If you must watch recreational videos, do so upstairs on your normal monitor.

Also overhang of the desk suggests that your feet would occupy that space when sitting. Why is the monitor facing away and the chair on the wrong side? The staging of this nap desk, makes me suspicious.

comment 11y ago · link · parent

I wrote a Docker deployment tool that has many similarities to Beluga https://github.com/mrinterweb/freighter. I'm going to sound awfully biased here, but I believe Freighter has more features than Beluga. Then again there may be some things about Beluga I don't know about.

Freighter can handle multiple environment config files, environment var management, old image and container cleanup. Freighter uses Docker's REST API and therefore does not need ruby installed on the hosts, but it does need the REST API enabled to be accessible on 127.0.0.1. If you'd like to know more about Freighter reach me at @mrinterweb or ask your question here.

comment 11y ago · link · parent

This is a good example of class-warfare. Making a life-saving treatment unaffordable will ultimately lead to deaths of those without the financial means for treatment. It is hard to believe that this kind of practice can be legal.

comment 11y ago · link · parent

That is incredible that a presidential front-runner has that kind of market influence in one tweet. It is clear that Bernie Sanders also has similar intentions as the article mentioned him pursuing punishing these business practices in August. It is insane that Medicare Part D made it so the US federal government is not allowed to negotiate drug prices.

comment 11y ago · link · parent

I'm confused. What does your library have to do with GraphQL?

comment 11y ago · link · parent

I'm excited to try React Native for that reason alone. I love Ember.js, but developing good mobile applications with ember and Cordova (while possible) is not easy.
1
121314
27