Hacker Newsnew | past | comments | ask | show | jobs | submit | vtesucks's commentslogin

If you're okay with pointing out that statistically Indians are much more likely to make stupid answers, what's wrong with saying statistically blacks are much more likely to commit crimes.

Choose both or none.


Crimes are/ might be more likely to be committed by blacks, in some countries. Being black doesn't make you more likely to commit a crime.


[flagged]


I think he's talking about the difference between correlation and causation.

You're right though in that from a law enforcement POV the two look roughly the same.


You don't execute all the paths all the time.

The framework is basically the entire Scala runtime. You need a list - you execute that code. Not a biggy


Quora logs you in automatically if you're logged in to google.

Also makes it extremely hard to log out.

Not to mention they have no respect for users.


I don't know how you think this is actually possible. It sounds to me like you just logged in using oauth…

Edit: Hey, downvoters, it's not possible to just use Google's login mechanism without prompting an initial OAuth flow at some point in time. If it is, instead of proving me wrong here, tell Google how and you can make some good money out of it.

As was said below, if you want, you can revoke tokens here: https://myaccount.google.com/permissions


When a service typically uses an external identity provider, they usually still have local accounts that are created and linked to that form of authentication. Of course the user will always need to authenticate using that same external identity provider ,but it can be forced by the application server by initiating oauth without provocation in the backend.

What this seems like is after the user initially logged in and consented with Google, Quora went ahead and decided that they would initiate the oauth flow whenever the user visits the page regardless of whether the user explicitly hits the login button or not.


I did, once. But after that one entirely new sessions, they automatically "click" the sign in to google button behind the scenes and log me in with the token.

Very creepy


The first time you logged in with Google, you were presented with a User Consent screen that said "this website wants access to this information, do you agree?" and you clicked yes.

To break the link, go into Google and see what sites, apps, etc you granted access to. That's a good thing to do regularly anyway with every social provider.

I wrote about the implications of poorly implemented and abusive social authentication practices last month: https://www.scmagazine.com/home/security-news/using-social-a...


Revoke the auth with google and clear any cookies you have with Quora. Worse that will happen if they redirect you to google to login.


I don't like Quora, but... that's just how OAuth is meant to work.


I will say I appreciate Facebook's approach to this - after 60-90 days, you have to affirmatively reconfirm your initial authorization when they send you through the OAuth flow.



For those that don't know- scalatags is an amazing html-ish library that allows you to write html once and render both from server and from client. SSR and SPA in one for you cool kids out there.

Not to mention no more misspellings of attributes with strong typed html


I hope lightbend will spend some marketing dollars when it reaches 1.0!


Doraene doesn't work for Lightbend though.


No, but I do work for the Scala Center (https://scala.epfl.ch/).


Then lightbend should buy Scala.js and scalatags and add a virtual Dom based reactive renderer. (currently string and Dom are available)


There are several Scala libraries providing this (the most popular probably being https://github.com/japgolly/scalajs-react). Have you tried one of them?


I want something very simple. Scala.rx + scalatags.


And OneNote which was hands down the only thing keeping me on windows until wsl came along.


I love OneNote too so I have to ask: what is WSL?


Microsoft if you're reading this this is your fault for not marketing enough.

WSL is windows subsystem for Linux. Think of it like this- say you have an 'ls' binary from UNIX machine. You have WSL enabled on your machine in Windows. Windows will start the ls process and the UNIX calls will be handles in windows. (the kernel has mappings).

It's possible, and actually its wonderful experience, to run full "linux" environment right from windows at native speed.

It's not perfect and one of the biggest issues has been file system speed but besides that and some other smaller issues its the absolute best of both worlds- OneNote + excel + outlook + i3


I'm a very satisfied WSL user after having made a switch 3 months back and I cannot imagine going back.


I don't understand the point of selling a DRM free eBook. It's going to be pirated, wouldn't it? What could be some reasons behind him doing so?


I don't understand the point of buying an eBook with DRM. I'm going to run into an issue trying to get it to work on one of my devices at one point or another. The lack of a DRM-free option is what would tempt me to piracy.

And can you point to a single piece of media which has never been pirated, DRM or no?


Having it be DRM-free means he doesn't have to mess around with every store under the sun. I'm not a Google Play user normally, but this lets me purchase it through the web interface, download the PDF, and then read it however I want. For his book on Wolfenstein, I did just that by reading it in Apple Books on my iPad.


What format is the book in? A regular PDF isn’t as good in Apple Books, for example. Taking notes, night mode, bookmarks, ...


> What could be some reasons behind him doing so?

Giving his readers the ability to read the book without requiring them to install proprietary software.


It might be pirated, but probably not very much. First, a book PDF is probably 100MB or more, so too big to email. Second, it's a niche market, so there probably won't be enough seeders for a decent torrent. Third, it takes some amount of effort to host a copy on the web, and there's very little benefit in doing so.


If it's digital it's going to be pirated regardless the DRM attempts .


Some people like to share knowledge more than they like (or need, seeing the numbers) to make money.


I like your list but its missing the one language that I feel is most suited- Lua.


Do we really want kids' first experience with programming to be a language with 1-indexed arrays? That's just going to set them up for failure ;)


Is there a crash course in typography I can get somewhere? I have trouble deciding whether slim fonts are better or wide fonts are for legibility. And what other factors matter more.


I recommend http://practicaltypography.com, though it won't answer your question (iirc).

By ‘slim’ fonts, do you mean lighter lines? If so, afaik it's not a matter of prescriptive typography, and in addition, heaviness may vary with the font. For headings and short inscriptions, light fonts are alright (personally I often outright prefer them for headings), but for body text, you should check legibility of the chosen font on non-hidpi displays, and preferably ask someone with older and more tired eyes—as light fonts tend to cause strain for people with worse eyesight. Generally, of course, the ‘regular’ weight is the recommended one, since it's tailored for setting main text in the first place. The current fashion of using light fonts is brought about by graphic designers, not typesetters.

If you mean condensed fonts instead, those are only suited for short runs of text, since the lines become too dense.


I mean slender, less width. The latter. I saw that in the Mozilla post about goodbye edgehtml, the headline was in wide font.


Ah, it seems Zilla Slab is indeed rather wide, though not as spaced-apart as e.g. Verdana, partly due to the slabs (which are an idiosyncratic choice for body text).

In my experience, wide fonts such as Verdana can be tiring in long texts, as the eye has to move more to consume the same words. However, in the case of Zilla, the letters are still close together, so overall the font is barely wider than more traditional serif ones. Note that it's also very well kerned and there are no irregularities in the type. So, the challenge would be to find a wide font that doesn't put letters too far apart and has good kerning. (Zilla itself is free, btw, like other Mozilla fonts, but again slabs are peculiar―it might remind too much of Mozilla sites if used in headings, but may be ok in body text.)

On the other side of the scale, narrower fonts are also ok until a certain point, where they become too dense and are suited only for short inscriptions.

Basically, there's an optimal width, and that's what most fonts use. Large deviations are risky, and you need to make sure that the chosen font works well in other aspects―'blackness' and kerning―or the reading experience will begin to fall apart.

Note that headings are very forgiving in regard to font experimentation, compared to body text―as the reader will glance over them pretty briefly.


https://practicaltypography.com

> "I have trouble deciding whether slim fonts are better or wide fonts are for legibility."

There are quite a few additional aspects you need to consider with respect to legibility as well, including size, use (such as for body text or headlines), and media (e.g., web versus print).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: