Better HN
topnewbestaskshowjobs
Log inSign up

vukers

17 karma · joined Apr 5, 2013 (13y ago) · 8 submissions

Submissions

comment 11y ago · link · parent

I think all the front-end frameworks are pretty similar, but if you are building Office add-ins, or some other application that lives in that ecosystem, then there is value in adhering to consistent UI elements.

I think there may be additional insights on their announcement post: https://blogs.office.com/2015/08/31/introducing-office-ui-fa...

comment 11y ago · link · parent

He might be referring to the next tier up, "Prime Fresh", though I haven't come across exact pricing yet:

https://fresh.amazon.com/about

Free for Amazon Prime members! Through the end of September, all Amazon Prime members in eligible zip codes in the New York metro area can use AmazonFresh for free. Sign in with your Amazon account to get started. If you are not an Amazon Prime member, you can start your Amazon Prime 30-day free trial today. After September, you will need a Prime Fresh membership (an upgraded tier of Amazon Prime) to continue enjoying free delivery from AmazonFresh. You will not be automatically charged for Prime Fresh.

comment 11y ago · link · parent

Absolute centering only works when the element you are trying to center has a defined height. If you are trying to center an element with unknown height inside a container with unknown height, the table-cell is likely the front-runner, sadly.

4.

Ask HN: What are the differences between Influxdb+Grafana and ELK?

5 points · by vukers · 11y ago · 1 comment

comment 12y ago · link · parent

I've been thinking about the same problem lately and have come up with an approach for my use-case that might work:

* Set expiration to a low value (~15 minutes)

* Every generated JWT also gets added to an "issuedTokens" collection for each user

During JWT validation, if the expiration has passed, an "Expired" response would be returned from the server (ex. 401 w/ "Expired" in body). When the client receives this status, it should initiate a refresh process which trades an expired token for a new one.

The refresh endpoint on the server should take an expired token and perform the following:

1. Validate token (except expiration)

2. Retrieve user ID and check if token is in its issuedTokens collection

3. Issue a new JWT

4. Remove the expired token from the collection and add the new one

Upon failure of any of these steps, an Unauthorized error should be sent to client which then requires logging in again.

To prevent a never-ending build-up of issued tokens, we can set a TTL on the tokens in the issuedTokens collection. Set the TTL value to the amount of time that a login should be active for before requiring logging in again.

This approach doesn't hit the database unless you keep trying to refresh an expired token. In which case you can make use of a cached blacklist of failed tokens. This can reside next to the application itself if treated as a cache layer.

This is definitely just a work-in-progress solution that I'm about to test out. Let me know your thoughts on it.

comment 12y ago · link · parent

At a minimum, a CDN automatically caches and serves content from multiple servers globally.

comment 12y ago · link · parent

"The only requirement is that you use at least one Google technology from any of the four groups below:"

You can use Go or Chrome or Android.

comment 13y ago · link · parent

Completely agree... this includes domain names.

At some point, searching for terms like "best hdtv 2013" would return a page full of sites with perfect urls like http://www.best-hdtv-2013.com/, and all of them would be extremely spammy and lacking in actual content. Seems less prevalent these days.