Better HN
topnewbestaskshowjobs
Log inSign up

foo101

982 karma · joined Jul 7, 2016 (10y ago) · 339 submissions

Submissions

comment 9y ago · link · parent

Can someone shared the URL to the said HN story where someone was rejected right away even with a phone call for blogging about studies and preparations for BigG interview?

comment 9y ago · link · parent

That's pretty much the point, isn't it? If I need true multithreading, then I am forced to write an extension in C or offload the multithreading work to another process (such as RDBMS in your case). It would have been nice if true multithreading was possible in Python itself. It would immediately make Python more useful in a variety of scenarios where splitting the work into multiple processes is not optimal or more convoluted.

comment 9y ago · link · parent

Let us take it case by case.

Case 1: Have a child. Take care of the child until the child is an adult. It has an irreversible effect on one's lifestyle and schedule. Even after the child has grown up, the parent and the child are still emotionally bonded to varying degree.

Case 2: Have a child. Put the child up for adoption. Once the child is adopted, two cases emerge.

Case 2.1: The adoption lasts life long, thus being irreversible by definition.

Case 2.2: The adoption is reversed, thus bringing the biological parent back to Case 1 and thus facing the irreversible effects of Case 1.

Thus, in all cases, having a child has 100% probability of having life long effects.

I am honestly unable to understand if you are arguing for argument's sake or if you are genuinely trying to make a point. I think most people would agree that issues like having a child or putting a child up for adoption has a 100% probability of serious irreversible effect on one's schedule, lifestyle and emotions than something like high-risk physical activity which has less than 100% of probability of such an irreversible effect.

comment 9y ago · link · parent

I don't see how Roe v Wade contradicts the claim that "having children" is "considered good". Roe v Wade is about abortion, i.e. a situation that applies to unwanted pregnancy, something we are not discussing in this thread. When we say "having children", I thought it is understood that we are talking about planned/wanted pregnancy with planned parenthood.

comment 9y ago · link · parent

I don't think this list comes anywhere close to having a baby. None of the items have a 100% probability of causing irreversible life choices. For example, the choice of performing a crime may not end up in conviction, the choice of drunk driving may not end up in a crash, one may not get HIV even after having unprotected sex, one may be able to repay the student loan even after choosing an unoptimal field, etc.

But having a baby has a 100% probability of altering one's schedule for the rest of the life!

comment 9y ago · link · parent

Can you provide us a list of those 12 other irreversible life choices that you can count? I am genuinely cuious to know what other such life choices are there that I need to be careful about.

comment 9y ago · link · parent

Can you explain in what way is it easier to reason about separating the search operation from the validation operation?

I can argue that it is easier to reason about simply hashing and then looking up because once hashed, the lookup does not leak any timing information, whereas in your solution the lookup does leak timing information.

Can you refute my argument?

comment 9y ago · link · parent

If that's the case, then why not hash the entire token and store hash(token) in the database. Then you can just query for:

    SELECT tokenid, userid FROM password_reset_tokens WHERE hashed_token = :hashed_token AND NOW() < expire_time
If you are worried that two tokens may collide to have the same hash, well that problem is there with your split-token solution too where token1 and token2 may collide such that token1 and token2 have the same selector and the same hash(verifier).

comment 9y ago · link · parent

> If you're also concerned about read-write SQL injection being used to forge tokens for arbitrary user accounts, you may want to worry instead about the attacker using their access to compromise the filesystem and OS.

I don't get this part. Read-write SQL injection does not imply that the attacker has access to the filesystem. The concern about RW-SQL injection is still valid. If I can somehow protect an attacker from modifying tokens via RW-SQL injection, it is still an improvement, and I may not have to worry about the filesystem being accessed because that may require a non-SQL attack vector.

comment 9y ago · link · parent

Your point about ideal world vs. real world makes sense. But your personal attack on sjtgraham is unwarranted.

311.

Fix TLS: Let's get rid of certificates: A clarification and some improvements(blog.xot.nl ↗)

3 points · by foo101 · 9y ago · discuss

comment 9y ago · link · parent

> If your database's primary key is 32 bits (SERIAL in PostgreSQL, INT(11) in MySQL, etc.), you want at least 8 bytes for the selector.

32 bits = 4 bytes. How can we store a 8 byte selector in a 32 bit integer then?

comment 9y ago · link · parent

Why is the author using a convoluted scheme of splitting token into selector and verifier, and then storing hash(verifier) in the database, why not use a simpler scheme of accepting username and token from the user and storing hash(token) in the database?

In other words, my question is: Why do you need to split the token at all? Why not store the hash of the entire token in the database?

So now, the username of the user becomes the selector, and the token becomes the verifier. What is wrong with this simpler approach?

comment 9y ago · link · parent

This post makes no sense to me.

How is the proposed solution where MITM attack could be going on the very first time I visit a website I want to trust a better solution than the current state of PKI?

The proposed solution demands that we trust the website on the first visit if the website behaves well. So now it is very easy for Mallory to perform MITM and behave well so that I trust Mallory's public key. Now Mallory can see all my traffic in subsequent visits. How can even one imagine that this is an acceptable solution?

comment 9y ago · link · parent

I am seriously unable to tell if you are genuinely appreciating the appearance of the blog or sarcastically mocking it.

comment 9y ago · link · parent

Can someone elaborate who or what is YP?

comment 9y ago · link · parent

> My freedom to express that opinion actually /is/ a right.

Sure, but https://xkcd.com/1357/

comment 9y ago · link · parent

The current state of software development has been bothering me. Having spent several years in the software industry, I don't find the motivation to write good code, or design elegant fixes for bugs. I have worked in large MNCs as well as small companies and I see the same trend every where: The management does not care about code quality or elegance. They just want to ship things ASAP. As a result, even if a few developers care about code quality and elegance, majority of the developers don't. They just want to put together a working software, no matter how it is achieved, and be done with their job.

Now, even if the minority of developers have coded a few modules that look absolutely elegant and neat, it interacts with the majority of the software that is complex, ugly and sometimes bloated. On top of that, in many teams, developers often touch each others' code and modules to make bug fixes, enhancements, etc. which means all code (whether currently elegant or not) tends towards ugly.

How, under these circumstances, do you maintain your motivation to write good, clean and elegant code after having worked about 10 years in the software industry?

comment 9y ago · link · parent

I am just an engineer. I don't understand a lot of the terms and concepts necessary to understand the linked article. I tried going through the Wikipedia articles for the terms I was interested in but I don't think I can make sense of it all without a kind teacher to help me out. So here I am turning to you, HN, to be my teacher. Here are the questions I have. If one of you could answer just one question from this list, it would help me a lot. I am sure it would help other people like me.

While answering, please quote my entire question with the Q<number> so that people don't have to scroll up and down to correlate the answers with the question.

Q1. Quote from article: "Your options have a strike price and private companies generally have a 409A valuation to determine their fair market value. You owe tax on the difference between those two numbers multiplied by the number of options exercised." My question: What is strike price? If I have accumulated say $30K worth of options, but I can afford only $10K, can I buy only $10K worth of options while leaving the startup?

Q2. Quote from article: "Due to tax law, there is a ten year limit on the exercise term of ISO options from the day they're granted. Even if the shares aren't liquid by then, you either lose them or exercise them, with exercising them coming with all the caveats around cost and taxation listed above." My question: Say I get buy ISO options for 30000 options for $30K from a startup while I leave the startup in 2017. Say, that startup still remains private in 2027. What are my options? Am I going for a total loss of $30K? If the startup hasn't gone IPO, how can I possibly exercise my 30000 options in 2027? What does the article mean by "exercise them" in this case? Does "exercise" mean buy the 30000 options for $30K or does "exercise" mean selling the options for a possibly larger price after the startup goes IPO?

Q3. Quote from article: "Some companies now offer 10-year exercise window (after you quit) whereby your ISOs are automatically converted to NSOs after 90 days." My question: How is NSO different from ISO? When the article mentions that NSOs are "strictly better" does it mean that I don't have to pay a penny to buy the NSOs but they remain in my account for free?

Q4. Quote from article: "Employees want some kind of liquidation event so that they can extract some of the value they helped create" My question: What are the events that count as liquidation events?

Q5. Quote from article: "Even if you came into a company with good understanding of its cap table" My question: What is the cap table? Why do I need to know this number? Can you explain this with some examples?

Q6. Quote from article: "New shares can be issued at any time to dilute your position. In fact, it's common for dilution to occur during any round of fundraising." My question: How does additional funding dilute my position? If I bought 30000 ISO options at say $1 per option, and I can sell it one day for say $2 per option, I am still making money. Why does it matter if additional funding occurred between buying and selling?

Q7. Quote from article: "If the company sells for a more modest $250M, between taxes and the dilution that inevitably will have occurred, your 1% won't net you as much as you'd intuitively think. It will probably be on the same order as what you might have made from RSUs at a large public company, but with far far more risk involved." Can someone show some approximate calculation for this? This is what I see: 1% of $250M is $2.5M. Say I lose 30% in tax I am still left with 0.70 * $2.5M = $1.75M. Can one really earn $1.75M from RSUs? The RSUs I have got at large public companies are of the order of $10K to $50K only.

Q8: Quote from the article: "Tender Offers". Can someone elaborate this? Can a startup force me to return my options in exchange for tender offers? Or is it a choice I have to make, i.e. to keep the options or go with the tender offer?

Q9: Quote from the article: "How many outstanding shares are there? (This will allow you to calculate your ownership in the company.)" How? Can you provide an example to calculate my ownership? Can you also provide an example of what that ownership means for me, if the company is sold for say $200M? Can you also provide another example of what that ownership means for me, if the company goes public and the price of each stock option is $10 after it goes public?

Q10: Quote from article: "Have there been any secondary sales for shares by employees or founders? (Try it route out whether founders are taking money off the table when they raise money, and whether there has been a tender offer for employees.)" What does this mean? How does it affect me?

comment 9y ago · link · parent

Can you explain the calculation to me? I am interested to understand the calculation so that I can perform similar calculations when I have two opportunities to choose from.

superqd mentioned he would have made $300K more (i.e. in addition to the fixed salary he was earning) if he had bought the options. I assume that after paying for taxes, he would have still made $200K. Since he worked for 8 years, this is indeed $25K of additional income for every year. If he worked for $35/hour for 40 hours/week for say 50 weeks in a year, his total income would have been 35 * 40 * 50 = 70K. How is this better than his original job which was probably paying him say $80K or greater than $80K as fixed salary every month? It sounds like it would have put him behind by at least $10K. What am I missing?

comment 9y ago · link · parent

All patents in the 3rd URL seem to be the same patent.

comment 9y ago · link · parent

Are you serious? Do you work for Oracle or have you taken their interviews?

Oracle has many many departments. Do you know about Server Technologies (the RDBMS department)? When I applied for Oracle Server Technologies in 2016, I found their interviews to be of the same difficulty level as that of Amazon and Google. They expect a single candidate to know everything from real world work involving Linux kernel details and system programming to abstract concepts like probabilistic data structures, hash trees, distributed computing algorithms, etc. And they expect you to write working code free of bugs and syntax errors in the interview to prove that you know what you are talking about.

In my experience, not many companies in the Silicon Valley expect this kind of rigor and knowledge in the interviews except for the likes of Amazon and Google.

comment 9y ago · link · parent

Anyone took this test mentioned at the end of the article?

https://cityss.az1.qualtrics.com/jfe/form/SV_bKSkV69EJ6TKmKV

I did not experience "hearing motion" in any of the test videos. Try this out and if you experience "hearing motion", please post here and let us know what a certain video sounds like.

comment 9y ago · link · parent

Thanks for the lucid explanation!

comment 9y ago · link · parent

I don't understand how this website works. If I visit http://neverssl.com/ I just see a home page that explains how it works which is to visit http://neverssl.com/. Can someone explain me step by step how to use http://neverssl.com/?

comment 9y ago · link · parent

For those of us who have not yet cracked the technique of finding clients via IRC, could you please share the name of a few channels where you could network and find clients?

comment 9y ago · link · parent

Why don't we have similar threads for open source projects (say single-author projects on GitHub) where the single author is looking for project partners or project contributors to share the responsibility?

comment 9y ago · link · parent

I am curious. Is this project going to be making money in future? If not, what does 25% equity mean?

comment 9y ago · link · parent

Why wouldn't fruit juices contain fiber? Say I put an apple in my mixer grinder, add some water, grind and mix to create apple juice, what part of this mixing and grinding process would get rid of the fiber?

As far as I understand, the fiber should still stay in the juice because I did nothing to take the fiber out of this mixture.

1
89101112