2,911 karma · joined Oct 19, 2016 (10y ago) · 544 submissions
comment 7y ago · link · parent
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
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
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
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
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
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
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
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
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
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 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
- 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
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 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
comment 7y ago · link · parent
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
For those unfamiliar with Strava art: https://www.cyclingweekly.com/news/latest-news/five-best-str...
comment 7y ago · link · parent
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?