Better HN
topnewbestaskshowjobs
Log inSign up

ericmo

64 karma · joined Dec 4, 2014 (11y ago) · 62 submissions

Submissions

comment 9y ago · link · parent

I find if/else to be more confusing than ternary operators. One of the reasons is that it always defines what the else clause is, while that usually doesn't happen when using if.

I'd agree that someone who is not used ternary operators might be confused with this, as I have been before, but I find it to be much cleaner now that I've been using it. It's also a little harder to debug.

comment 9y ago · link · parent

One thing that really annoyed me in some monospaced fonts with ligatures is the [] ligature, I never understood why would someone rather see a box instead of two brackets. I'm no typographer, but I think that it makes the text lose its uniformity, because [] and [0] will look weird close to each other.

I guess I'm not alone in this, because in the Fira Code repo there's this commit from 2 months ago: "Remove [] ligature from specimen".

comment 9y ago · link · parent

IDK how NLL's ACR works, but Android API doesn't expose audio output devices because it could lead to piracy issues, such as recording whatever is playing on Spotify. I don't think there's a way to bypass that, and if there were it would probably be banned from Google Play Store.

comment 9y ago · link · parent

The point of exclusivity is creating a safe space for women; for men most spaces are safe spaces - I can assert that as a male.

It doesn't mean, though, that we can deal with toxic masculinity without men being involved. I do remember seeing some serious effort within Thoughtworks (and I haven't even worked there) to discuss gender issues without excluding men, so it's not a impossible thing.

comment 9y ago · link · parent

What kind of projects you work on? I think I'd have some difficult coding on a machine with 2GB of RAM.

comment 9y ago · link · parent

Example pictures are kind of small, hard to see the quality of the result. Also, I'd use this for a Kindle device, not an iPad, so it'd be also good to see how it looks in a Kindle.

comment 9y ago · link · parent

How does it compare to PDFLower?

comment 9y ago · link · parent

Arnold said he's got help from lots of people and it's very likely that most of them didn't get anything in return. Were these people adept of ethical egoism, none of them would've helped him.

comment 10y ago · link · parent

I'm a Sansei in Brazil, which essentially means most people think I'm Japanese while the Japanese think I'm not, so I've peeked both sides and I can tell you this: yes, childhood in Japan can be amazing, but certainly Japanese culture in general isn't about independence, it's actually quite the opposite, it's about order and individuals adhering to his/her role in this order. "Do as your parents said, get into college, respect your boss." It's even kind of bittersweet that childhood in Japan is so good, because you'll grow up knowing what you've lost. On the other hand, it's also not all smell of flowers, because children being independent also means that if mom isn't home, you have to be the responsible sibling, it could be a form to shorten childhood.

comment 10y ago · link · parent

Has anyone tried on Firefox? I'm running FF49 and in gen 50 it has less than 400 max score.

comment 10y ago · link · parent

> Let me just start by saying that there is no good reason not to wear a helmet when riding a bike in NYC.

One common argument is that drivers have more respect for cyclists without helmets, i.e. they're more afraid of hitting a cyclist without a helmet.

The discussion goes back a long time, this article for instance is 9.5 years old: https://www.scientificamerican.com/article/strange-but-true-...

I guess, most cyclists think it's more likely that they'll be hit by a car, not a pedestrian.

It could also be that some cyclists don't have the money to buy a helmet - or other types of safety gear.

comment 10y ago · link · parent

Even being pessimistic about solar power, it still has the greatest potential: http://energypost.eu/reality-check-renewable-energy-potentia...

comment 10y ago · link · parent

What about regenerative braking?

comment 10y ago · link · parent

Paper says that "those in lambda group received no benefits in regard to [...] compiler errors".

Really, would anyone expect lambdas to improve compiler errors? Also, isn't that a problem of the compiler, and not of the lambda idiom in C++ or C++ language itself?

I mean, idk about clang, but at least compiler errors from msvc and gcc have always been hard to understand, with or without lambdas.

comment 10y ago · link · parent

> The KDE was the shortest test. I spen an hour just rying to change the wallpaper and gave up. (sic)

http://lmgtfy.com/?q=how+to+change+kde+wallpaper&l=1

* Edit after down votes: Sarcasm is specially regarded as negative behavior in HN, but negativeness for negativeness, this article shouldn't even be here. It's filled with destructive criticism and unjustified claims. I'd accept the wallpaper argument from any person who hardly sits in front of a computer, not from someone whose primary occupation is to write about technology, not from someone who's been using Linux for 20 years (first thing to do? check man pages, do your research). I understand the down votes, but seriously, this article only makes me angry - maybe that's why John Dvorak is widely regarded as a troll.

comment 10y ago · link · parent

Very good, but needs a option for resizing. I've tried looking at monospaced fonts and couldn't see them at a size that a monospaced font would actually be used (default is huge).

comment 10y ago · link · parent

I was excited until I reached the Windows Store part.

comment 10y ago · link · parent

I've listened to a few pieces of audio in this Lit2Go and also had some mixed quality. This is a very good one: http://etc.usf.edu/lit2go/220/a-defence-of-free-thinking-in-...

This other one seems to be missing a pop filter during recording, there are a lot of awkward mouth sounds, and the audio is muffled: http://etc.usf.edu/lit2go/168/common-sense/2961/part-1/

Still, audio quality is better than LibriVox. Are the recordings also public domain in Lit2Go?

comment 10y ago · link · parent

It's in the official changelog as a new feature: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?p=ffmpeg.git;...

comment 10y ago · link · parent

You're right, C++14 is pretty much out there already - problem is I'm still not using latest compilers, lol.

comment 10y ago · link · parent

"If all you have is a hammer, everything looks like a nail". In C you have to build everything from scratch. If you need classes, hack some structs. If you need string concatenation, write some mallocs and strcpy, and so on. C is cool, but really, there's no way C is more "practical" than C++11, and C++14 will be even better.

comment 10y ago · link · parent

> Having emerged from authoritarian rule just 30 years ago, Brazilians are especially sensitive to encroachments on their basic freedoms, including digital ones.

Actually, I'd say most people don't care.

> For a while, the country looked to be a progressive voice for digital freedom. No one expected Brazil to become a leader in cyber surveillance and censorship.

President Dilma Rousseff has used her influence to get "Marco Civil da Internet" approved in Congress. Most people who backed this project thought it would probably not be approved because ISPs have lobbied against it.

comment 10y ago · link · parent

Maybe this? http://research.microsoft.com/en-us/um/people/ranveer/docs/m...

comment 10y ago · link · parent

Isn't that the same book as the one posted by OP, but an older version?

Also, latest version seems to have some ugly boxes around text. Latest version that seems ok here is this one: http://goodfeli.github.io/dlbook/version-2015-11-24/index.ht...

comment 10y ago · link · parent

> (from the article) [...] It did unquestionably require more time to code in lots of low-level functionalities that were simply missing from Android's SDK — and even after all that work, the end result was still far from ideal.

That being said, it's not clear whether the improved latency on newer platforms can be achieve without using Android NDK. I haven't used it, but I know Android 4.0+ supports OpenSL through NDK, and I'm guessing that if you want low latency you need OpenSL. By skimming through the docs, it looks like that's the case, isn't that so? http://source.android.com/devices/audio/latency_app.html

So, maybe it does solve the latency issue, and I would gladly use NDK because I like C++ stuff, but I think most developers wouldn't want to do it.

comment 10y ago · link · parent

Did you mean that the one you use is similar to the one from @dkbrk comment, or that it is similar to the one in [0]? I liked the one from [0], very clean, where do I get it?

comment 11y ago · link · parent

@chrisvasselli:

When I was a child, my parents tried to teach me Japanese as my first language, but we live in Brazil and that didn't work out, as soon as I got into school I dropped it and started to speak exclusively in Portuguese. Still I have some knowledge of "spoken Japanese", even though I don't know how to write the kanjis.

That's why I found this clippings feature really great. I can read the pronunciation over the kanjis and deduce what it means by context, I've always missed that when trying to study Japanese, and if I can't deduce its meaning, it's also easier to lookup in the dictionary if I know its pronunciation (in the app it's probably just a click). Some people think that going through this trouble actually helps memorizing the kanjis, but for me it's just a time consuming task.

Too bad I have no plans to buy an iPhone. No plans for an Android or a web version?

Also, how did you get these texts to feed the clippings? By hand? Scraping?

comment 11y ago · link · parent

Most of the time I'm typing, but definitely yes! I mean, just ask these guys! http://www.pri.org/stories/2015-06-29/mathematicians-mourn-l...

comment 11y ago · link · parent

Well, couldn't be simpler than that, thanks for clearing that up for me!

comment 11y ago · link · parent

If Android usage of Java is in violation of Oracle's copyright, than why isn't OpenJDK? I don't code much in Java and when I do I use Oracle's version, so I don't know how different it is, but I guess the "API" should be the same, no?

Also, I don't see how is it better for Google to be sued by Oracle than using OpenJDK just because it is GPL-ed. Why? It doesn't make sense!

123