Better HN
topnewbestaskshowjobs
Log inSign up

quicklime

2,911 karma · joined Oct 19, 2016 (10y ago) · 544 submissions

Submissions

comment 7y ago · link · parent

Thank you, it's nice to know that I'm not the only one who thinks this. You could use an alias to hide this:

alias df='df -x squashfs'

Given that squashfs is a read-only filesystem, I don't know why this isn't done by default. No one needs to worry about how much free space is left on an ro volume.

I also go a few steps further and disable udev (-x devtmpfs) and tmpfs (-x tmpfs) as well.

comment 7y ago · link · parent

> How do they not have a filter for speeds in excess of 60mph?

Pro cyclists can hit 80 mph downhill. I agree that they should do something, but whatever model Strava uses would need to be better than just filtering out anything >60mph.

https://www.cyclingweekly.com/news/racing/tour-de-france/122...

comment 7y ago · link · parent

I've been making it a point to visit grocery stores in every country I visit for the last 10 years. I tend to agree with you that grocery stores tend become homogenized within a country (and not just in the US), but there's always a lot of variation between countries.

You'll probably find this strange, but as a foreigner, I was really excited to see Walmart for the first time, and I found it just as interesting as visiting grocery stores in other countries.

There are things there that just seem comically American - like there's a McDonald's inside a supermarket! And there's a section where you can pick up guns and ammo while you're buying milk and eggs!

The chocolates section contains the same products as every other store across North America, but I'd never seen any of these while growing up in Australia, so we picked up a lot of these. Even basic things like bread taste different from back home.

Other stores are interesting in different ways. The size and scale of Costco is insane. Whole Foods and Trader Joe's carry different brands of everything, so it feels very different shopping there.

I'm really looking forward to my next visit to the States, and picking up the bacon flavored popcorn from Trader Joe's. I've never seen this anywhere else in the world, and it's as awesome as it sounds :)

comment 7y ago · link · parent

If this got popular, and an administrator wanted to disable comments, one thing that they could do is add a unique random prefix to every request to a URL. The web server would just generate a random prefix for each link it produces, and strip the random prefix from the path in every request it receives.

For example, HN's front page contains a set of URLs for each item. This item would be https://news.ycombinator.com/b149012c-56f4-4859-82b8-1f3f83e... for one request, and https://news.ycombinator.com/73e78d90-cc25-4091-8ffa-94783a2... for the next request. Both requests would get mapped to the same page, and serve up the same content (except with another uuid inserted into links).

Every comment would go into a unique SHA1 bucket and never seen again.

comment 7y ago · link · parent

Working link: https://www.theguardian.com/environment/2019/jun/23/great-pa...

comment 7y ago · link · parent

Can anyone comment on the difference in work-life balance between Google and Facebook? Maybe $/hour (or some non-linear equivalent) would be a better metric than just total compensation.

comment 7y ago · link · parent

> we're talking Chromium, the underlying browser engine. As it stands, Chromium is the basis for a variety of browsers, not just Google's flagship. From what I can tell (as a non-expert on Chromium's source, so please correct me), the Googley stuff that makes privacy advocates nervous is independent from the core Chromium browser engine

This might be just me being pedantic, but I thought it might be worth mentioning...

Chromium is basically the same thing as Chrome, except that it's missing a few proprietary blobs that Google is not legally allowed to put into Chromium: some DRM stuff, a licensed H.264 codec, a Flash plugin, etc. But if you're worried about privacy, Chromium still has all the Googley stuff. You can still log into Chromium with your Google account, and it'll sync your bookmarks and history and passwords just like Chrome. Chrome extensions are 100% compatible with Chromium, and you can install them into Chromium via the Chrome Web Store.

Some people might be familiar with "Blink", which is the browser engine (and is a fork of WebKit). There's also V8, which is the JavaScript VM. These two components aren't enough to form a usable browser though. So the Chromium Project develops what is called the "Content module" (see https://www.chromium.org/developers/content-module) which combines Blink and V8, and some other pieces, to form a basic web browser. This is what other browsers (like Opera, and I presume Edge as well) are built on top of, and does not contain all the Google integrations that Chrome/Chromium have.

While Content is missing a lot of the Chrome features that make privacy advocates nervous, it's still a problem because most Chromium/Content developers are Googlers, and will probably not implement things like WebKit's ITP or canvas fingerprinting prevention.

comment 7y ago · link · parent

The XOR trick looks cool, but requires three CPU instructions to execute. My favorite way to swap variables is to use:

tmp = a; a = b; b = tmp

When a compiler generates code, it maintains a mapping from variables to registers. So when the source code refers to the variable 'a', the compiler might map this to register %eax, and 'b' to %ebx, and it will use this to generate assembly code (or IR or bytecode or whatever).

A good compiler will recognize the three-line variable swap above, and optimize it so that the mapping simply changes at that point. So any references to the variable 'a' before the swap will refer to %eax, and after will refer to %ebx.

This requires zero instructions, and zero is less than three :)

comment 7y ago · link · parent

What do you consider an acceptably low rate, and what is the actual rate? I hear stories all the time about companies that are tracking their employees' GPS locations. Many of the stories involve people getting fired.

comment 7y ago · link · parent

What's the difference between brand advertising (2) and hacking your brain (3)?

To me, brand advertising is when marketing people try to associate a brand with "values" that may or may not actually reflect the values that a company has when manufacturing a product or providing a service. For example, they might subtly suggest that they care about quality design, but in fact only care about cost cutting.

Or in the car industry, where they try to create brands to give the impression that similar cars were designed and engineered with different values in mind, or even by different people/companies. What would be the purpose of splitting Chevrolet and Cadillac if it's not a brain hack?

comment 7y ago · link · parent

And, it's only available in a few countries (US, Canada, UK, France, Germany and Spain). People from other countries can't pay even if they want to.

This is not how I imagined the web would end up :(

comment 7y ago · link · parent

I'm lucky enough to have a low-vision person who works as a tester on my team, and does our accessibility testing. It's very impressive watching/listening to him use a screen reader - I was really amazed at how fast he has it set to read the screen.

He does suggest all the things you've mentioned above, and it's good advice.

However one thing he also says is: don't assume that low-vision is the only type of disability. You also need to build software for people who are: deaf, have slow motor skills (e.g. avoid putting strict time limits on user actions, or making things jump around on the screen too much while people are trying to hit a target), lack fine motor skills (e.g. don't make a target too small), etc.

comment 7y ago · link · parent

> Any Googlers around to explain why Canaries didn't catch configuration causing this side effect and stopping the deployment before the issue cascaded globally?

I'm not (any longer) a Googler, but according to the postmortem this was a load-related incident. Canary changes only have a small amount of traffic directed at them (by definition) and the problem probably didn't become apparent until after the change was promoted from canary.

comment 7y ago · link · parent

Not just business, but if a country wants diplomatic relations with mainland China, then it needs to not recognize Taiwan as a country.

comment 7y ago · link · parent

I'm reasonably comfortable with a company keeping records of its interactions with me, as long as they're taking proper precautions to keep it secure.

Where I draw the line is when they start sharing it with third parties, especially without my consent.

comment 7y ago · link · parent

Having grown up in a working class family, I find it strange that western hipsters are so taken by industrial chic architecture. It's an environment that I grew up hoping to escape from. But architectural styles come in and out of fashion, and yesterday's factories and warehouses are being converted into coffee shops and homes that people love and pay a premium for.

In particular, the neighborhood that my parents lived and worked in is now a very expensive and trendy part of town. There's little industry left; in fact a lot of local companies are complaining that there's not enough warehouse space left to rent, because it's all being converted into lofts! Sadly my family sold out way before it became cool :(

I've heard it said that it's the styles that have just recently gone out of fashion that are the least fashionable, whereas the styles that have been out of fashion for longer often make a comeback. This applies to clothes, cars, music, and architecture too.

So one thing I've wondered is: if the industrial style could go from being considered ugly to being loved, is it possible that this could happen to another style of architecture/design that we all currently consider to be an eyesore? And what style would be next?

It makes a lot of sense that Brutalism would be it, and maybe these Singaporeans are just ahead of the curve.

comment 7y ago · link · parent

In this specific case, I hope that's the outcome. But in the general case, I hope we don't end up in a world where global megacorps have that much sway over governments (maybe we're in that world already...)

comment 7y ago · link · parent

We will decide whether things should fall in this country, and the direction in which they fall!

comment 7y ago · link · parent

The article references a few studies that conclude that there is "no significant difference" between a low carb and a low fat diet. It also suggests that whether a keto (or any other) diet will work is an individual thing:

> In this regard, saying that “diet X is the best way to lose weight” is probably not a globally-correct statement given the evidence so far. Instead, it should be the much less interesting: “no diet performs meaningfully better on average, but there exists some diet that is the best way to lose weight for you.”

This matches up with my experience. I know a lot of people like yourself who swear by a low-carb/keto diet, whereas I find I have no problem maintaining a healthy weight (BMI=22) with a fairly high-carb diet with a lot of rice, noodles, pasta, oats and bread. I actually feel very unsatiated when I'm just eating meat/vegetables alone.

I love to eat, and once or twice a week I'll literally eat until my stomach physically hurts (and I do mean literally, kind of like how some people feel after a Thanksgiving dinner). I exercise, but not a lot - probably 3-4 hours a week. I'm not saying this to brag, or to make overweight people feel bad (I'm sorry if I do), but just to give some anaecdata to balance out what the keto people are saying.

One thing that I should mention is that I don't really eat much sugar, apart from fruit, and sports drinks and energy bars when I'm doing long bike rides. I just don't enjoy the taste of soft drinks (I almost exclusively drink water, and sometimes coffee or tea), or most heavily processed foods (most of my meals are home cooked, or at non-fast-food restaurants). I also find the sauces that most restaurants slather on food to be overpowering and over-sugared, so I don't eat a lot of that either (although this seems to be a US-only problem).

comment 7y ago · link · parent

There were some things that Windows 98 did better than the UIs of today, but overall I just don't agree that it was "excellent". I definitely wouldn't want to go back to it, and here are a few reasons why:

- Even purely from a UI perspective, I much prefer modern Chrome's flat and minimal UI over Internet Explorer 4, and I think most other people do too. At the time, Microsoft claimed that IE4 was an integral part of Windows 98, so I'm going to consider it as part of the Windows UI rather than just a standalone app :)

- The taskbar doesn't scale very well, and once you get more than a dozen or so windows, each entry with the same icon becomes indistinguishable. This was particularly bad because browsers at the time didn't have tabs. As I type this, I have 14 tabs open in various browser windows, and this just wouldn't have fit in a Windows 98 style taskbar. Note that I consider the non-tabbed single document interface ("SDI") to be an integral part of the Windows UI here. Both SDI and MDI (multi-document interface) were part of Microsoft's UI guides, and MDI was even worse than SDI.

- The Start menu also doesn't scale very well, and could get very deep, which confused users. It lacked a search function like Windows 10, Mac (via Spotlight) and most Linux DEs today have.

- No support for virtual desktops, which Windows 10, Mac and Linux DEs today all have.

- Network Neighborhood was slow af, and was confusing for users to configure. Apple's AirDrop has a much better UI for sharing files on a network.

- Active Desktop.

- At the time, Microsoft was experimenting with integrating the web with Windows, and one of the things they did was put hyperlinks all over the place. They even experimented with changing it so that desktop icons and icons in Windows Explorer were links, and this caused a lot of confusion due to the inconsistency between a single-click vs double-click.

Some of the problems here are that we have much more computing power now, and (at least I) tend to keep more things open at a time. There were also numerous Internet UIs that Microsoft was experimenting with at the time (NN, AD, MSN, etc.) and many of them didn't work out.

comment 7y ago · link · parent

The video attached to the article says that "they're still not safe to eat" (2:35)

comment 7y ago · link · parent

When my iPhone 5S died on me a few months ago, I bought a large Android phone to replace it. I've tracked screen-on time and noticed it ramp right up - from something like 90 minutes a day to 2 or even 3 hours now. Most of the increase is due to the fact that it's easier to use in bed before I get up in the morning, as well as before I go to sleep. So I tend to waste more time than I used to, watching YouTube or mindlessly browsing the web.

I'm going to try out the new Digital Wellbeing stuff in Android Pie, which lets me set restrictions on app use. But it feels like a smaller phone is a much better solution, as it doesn't have any compromise in terms of portability - what's the point of having a big screen if I'm just going to disable the things that it's good at?

It would be nice if Apple or Google or anyone else could commit to serving the small phone market.

comment 7y ago · link · parent

I signed up for WeChat a few months ago, and later found out that WeChat was warning my Chinese friends that my account was unverified and to be careful. I had no idea it was telling them this until one of them told me.

I was also unable to log into the web/desktop client. The error message just said that for security reasons, only verified accounts were allowed to use WeChat through the web, but didn't give any instructions on how to get the account verified.

comment 7y ago · link · parent

I wish I could tell both DDG and Google that I don't care about Java 7. Not sure why they both default to giving old Javadocs, but I suspect it's due to a lot of enterprise developers who are still stuck in old versions.

comment 7y ago · link · parent

The idea of mocking pedestrians who run across the road reminds me a lot about about the coining of the term "jaywalking", as described by 99 Percent Invisible: https://99percentinvisible.org/episode/episode-76-the-modern...

comment 7y ago · link · parent

What's crazy is that a fit cyclist on a road bike can easily beat a local Caltrain (stops at every station) all the way from San Francisco!

For example, travelling from Google's SF office to the Googleplex in MTV on the weekend will take about 2 hours and 45 mins via Caltrain/buses, and 2.5 hours via SF2G's Bayway route (http://sf2g.com/bayway.html).

comment 7y ago · link · parent

Exactly. There are a lot of people out there doing Strava art, which to me is undoubtedly a creative work, and more creative than a typical selfie or vacation shot. I believe copyright covers all photographs, regardless of their artistic merit. Why not also location data?

For those unfamiliar with Strava art: https://www.cyclingweekly.com/news/latest-news/five-best-str...

comment 7y ago · link · parent

Maybe we should think about location data in a similar way to photographs. Both are generated by smartphone hardware and software, but the person who presses the shutter button legally owns the copyright to the photo, not the device manufacturer or carrier.

Why don't I own the copyrights to my location data, and why doesn't the carrier need to license it from me in order to sell on to these bounty hunters?

1
1516171819