Better HN
topnewbestaskshowjobs
Log inSign up

kniwor

116 karma · joined Sep 25, 2009 (17y ago) · 39 submissions

Submissions

comment 17y ago · link · parent

I am surprised no one's mentioned http://www.thesixtyone.com/ yet...

comment 17y ago · link · parent

They might be not from the US?

comment 17y ago · link · parent

Firefox history shows only page titles and I am always glad for the "Hacker News |". Though I wouldn't mind it being shortened to "HN|". But then again, page titles are prominently picked up by google and the ilk, so I suppose that will have to factor into the decision somewhere.

comment 17y ago · link · parent

For a web app, what is the least painful way to achieve internationalization? What language/framework would you use if you were writing a fresh one from scratch?

I had tried to convert a php web-app to handle utf8 correctly through and through a few years ago and gave up after a lot of pain. Is life any better now? Any guides/resources? Is life in ruby or python frameworks significantly better in this respect?

comment 17y ago · link · parent

I did the same, except it's been a month and I am still waiting for the documents to arrive. Director registration took a week and then name verification itself took another couple of weeks. :(

comment 17y ago · link · parent

Duck. Rubber duck actually... ( http://en.wikipedia.org/wiki/Rubber_duck_debugging )

comment 17y ago · link · parent

Fair enough. I guess I will just have to learn to take HN articles on science with much much bigger grains of salt.

comment 17y ago · link · parent

This got posted to slashdot and from the discussion there, it appears likely that this is not true.

http://science.slashdot.org/comments.pl?sid=1401739&cid=...

http://science.slashdot.org/comments.pl?sid=1401739&cid=...

We had a similar incident with the kids who had a hair solar panel. Not knowing much about superconductors, I had no idea what to look for. This being HN, I somehow expected the submitter to be knowledgeable enough.

Can we have some submitter guidelines for preventing people from posting such stuff. Digg and reddit fail pretty regularly at preventing this and it would be great if HN could dodge this bullet.

comment 17y ago · link · parent

Oh I know and use a lot of their open source software but what has that got to do with fb connect?

"FB connect" is a session management and authentication product from facebook. I find it obnoxious. It is pretty much literally the antithesis of openid. FB open source: good, FB connect: horrible.

comment 17y ago · link · parent

Yea... That page is next to useless. Had heard of them a while ago and thought they would have more write up then that on their home page.

Anyway, this is very simple to do. You first create a server that can authenticate you just for itself over the web. You send it your id, it sends a random string. You sign it and send it a random string of your own. Server signs your random string and sends it back. You both know you are authentic, server leaves a signed cookie at your end. Now this server can act as an openid server too. You give random web-app your openid residing on this server... random web app asks this server. It confirms or denies and life is good.

comment 17y ago · link · parent

Also facebook to the best of my knowledge is not an openid provider.

comment 17y ago · link · parent

https://www.myopenid.com/tutorial Is that good enough?

comment 17y ago · link · parent

This can be easily done using openid. Openid providers are free to authenticate you any which way including exotic means like those. Here's an implementation in private beta: http://pgpopenid.com/

comment 17y ago · link · parent

Good openid providers like wordpress train their users not to expect a login page on anything a authenticating website redirects them to.

comment 17y ago · link · parent

Your initial concerns are addressed by openid "personas". myopenid.com has them implemented and is free (or you could set up your own server to achieve it). https://www.myopenid.com/help#personas

Your later concerns are solved by openid delegation. Any uri you own can be made an alias of any openid you want. Thus if you switch openid providers all you need to do is edit a page you own and make it point to a new provider. https://www.myopenid.com/help#own_domain

comment 17y ago · link · parent

OAuth and openid solve totally different problems. Openid is federated login and oauth is about authorizing access.

comment 17y ago · link · parent

In fact, FB connect is pretty much the antithesis of openid. Openid is open, federated and gives user control. FB connect is closed, centralized and basically allows FB to play big brother.

comment 17y ago · link · parent

In case you really want to just replicate your old workflow, look up personas and openid delegation. Together they should resolve all your problems.

https://www.myopenid.com/help#personas https://www.myopenid.com/help#own_domain

comment 17y ago · link · parent

I hope this helps. I think the problem with writing simple introductions to openid is that it just offers too many options and it is difficult to decide how to approach.

Here is an equivalent but by no means equal workflow[a].

Pre0. Choose your openids before you have the sites needing them! This is username/password registration/recovery/emails as it always was[b].

You come across a new site (web-app) and it supports openid login.

Registration workflow:

Reg0. We choose some openid from Pre0. Login into that openid at the openid provider's website in a new tab[c].

Reg1. We tell web-app our openid. What happens then is similar to a net banking/credit card transaction. Web-app takes us to openid provider's website. We say yes, we would like to register/authenticate/allow this and we are now registered and logged in.

Reg2. We can now safely log out of our openid provider in the other tab if we want. We will still remain logged in at the web-app. Rule of thumb: Openid provider doesn't know what is going on at the webapp and vice a versa and they cannot affect each other in any way at this stage. (Separate cookies, no shared sessions.)

You visit the website again.

Login Workflow:

Log1. We go to our openid provider first and login.[d]

Log2. Then we go to our web-app and put our openid in. Webapp does some talking behind the scenes with the openid server and logs us in.

Log3. After this point, web-app and openid provider do not talk or know whats going on at the other place. We logout of either server separately.

End of workflow.

[a] Initially, I replicated your workflow feature for feature but that felt like replicating a svn workflow in git. Just like git, openid is a new paradigm. One can replicate old workflow features in many many ways but methods of doing so are hardly instructive or interesting. If you want me to do so or bring back some/all feature(s) back into this workflow I will gladly do so, if only just to show that it can be easily done. openid is very much the git of the authentication world. It is a surprisingly elegant federated and distributed replacement for old small centralized island situations with a similar price in inertia and the learning curve.

[b] May I recommend not mixing your existing ids (yahoo/gmail/etc) with these openids. The single tool for a single job philosophy is nice. wordpress.com is my favourite openid provider, simple interface, minimal and trustworthy enough. myopenid.com is a more fully featured option.

[c] At the risk of sounding verbose and simultaneously committing the sin of not using example.com, here is an actual example. I am looking at the openid login box at stackoverflow.com (SO) and I own user.wordpress.com as an openid. I login to wordpress.com as "user" in a tab and then tell SO that I am user.wordpress.com. SO talks to WP and redirects me to WP. WP asks me what it should tell SO on my behalf. I am then taken back to SO. After this SO and WP do not talk amongst each other and I am logged in separately to both even though my username and password are stored and known only on WP. Neat.

[d] That takes care of any possibility of phising. (There is a chance of phising if you are not already logged in to your openid provider and web-app redirects you to a false page. To mitigate this, any respectable openid provider doesn't show a login form ever on a page that you could reach after redirection from a web-app.)

--

Here is the part about the home page thing I mentioned. You can make any page whose head portion you can edit an alias for an openid. So to carry forward our example in [c]. I put

  <link rel="openid.server" href="http://user.wordpress.com/?openidserver=1" >
  <link rel="openid.delegate" href="http://user.wordpress.com/" >
in the head of kniwor-home-page.com which I own. Now kniwor-home-page.com is an openid. If tomorrow I lose faith in wordpress I just edit kniwor-home-page.com and let someone more trustworthy handle my username password login process. (I could potentially host a openid server myself on my own machine if I am paranoid enough.) This as I said is uber cool. I thus truly own my id!

And I think you one already see all the wonderful things this brings to the table once one is past the initial learning curve. Nothing of value from the old system is really lost and all of the old can be replicated easily. You could just sign up with a new open id provider every time you need a new registration if you want to replicate the old days but it is much more neat to distribute control and trust by importance and other personal metrics. Points of failures are just shifted from places that were not created to handle them (email providers) to places that are now designed with that explicit purpose in mind and a lot of emails double up as openids if you insist that that is where you want your points of failure.

comment 17y ago · link · parent

New login. There is a new login on your profile page.

That will allow you to associate an alternate openid. You can swap alternate and primary openid on the profile page and every new login overwrites your primary openid.

comment 17y ago · link · parent

> I would explain further, but since you don't seem to bother to read carefully, I won't take the time.

That's not fair. I discarded 2 long drafts of the reply above and went with the most succinct one I could find.

This is exactly what inertia is. "I will not move to $new because I truly believe it destroys all the benefits I get from $old and now I have to invest time and effort to learn $new and rework my workflow to account for it."

I sincerely believe that the original parent is describing inertia.

Also, the one leak destroying all my accounts is a misunderstanding of openid. You can use separate openid providers and openids for various services. (I do.) Login without openid is a n to n problem, after openid it becomes a m to n problem and you can choose m as and how you want to. If you want you can still go with n to n.

And again, can you elaborate on what current capabilities does openid destroy? I can't see any.

comment 17y ago · link · parent

I haven't come across a scenario where openid did not work. Care to elaborate?

I think of openid as the git of the login systems. Elegant in it's simplicity but comes with a minor learning curve and the benefits of climbing the learning curve far outweigh the cost of doing so. And very much like git, it takes 15 minutes to get over the learning curve if you are good with google and/or have some guidance.

comment 17y ago · link · parent

So, to summarize, inertia.

Nothing wrong with that but that just says you are a late adopter as far as this technology is concerned.

My stackoverflow is not inextricably linked to anything. My identity is my own home page (which by itself is uber cool). And my workflow has never been simpler.

(Oh and you can change your openid url on your stackoverflow profile page.)

comment 17y ago · link · parent

> [OT]the taj mahal in the logo might not have been the best idea. historically, taj mahal represents the muslim occupation of india -- a dark period for the nation

From HN guidelines: Please avoid introducing classic flamewar topics unless you have something genuinely new to say about them.

And this isn't even a classic flamewar, this is some new fangled absurd religious fundamentalism and probably the worst troll I have seen on HN. I am Indian, Hindu and feeling a bit insulted right now. Unfortunately, I don't have enough karma to be able to downvote you.

12