HNHacker News
TopNewBestAskShowJobs

vladgur

962 karma · joined October 21, 2010

submissionscomments
vladgur··on Don't use JSON web tokens for sessions
That correct. You would use the timer to auto-refresh the token.

Note: if you close the tab, if you use a session cookie for token storage, its likely to remain, but like you said will become invalid within 5 minutes.

If you close the browser however, a Session cookie will be deleted, which mitigates an issue in a shared setting.

Depending on the requirements, you can ask a user whether they are using a shared pc or a private pc and choose cookie storage at that point.

vladgur··on Don't use JSON web tokens for sessions
Ill chime in with my $0.02

* Inability to invalidate stateless JWT tokens can be more or less be remedied with a short expiration time of the token and a token refresh flow. If a token is only valid for 5 minutes, and you can only refresh the token during that 5 minute window, it greatly reduces the attack vector. If that risk is too high, you should easily implement state with the same Redis setup that author mentions

* a classic CSRF example where youre logged into your app in one tab and you open a malicious link in another tab is not a threat if you, like the author suggests, use cookies for storage, but not for authentication. If you pass a token around in an "Authentication" header and have the server IGNORE the cookie which will inadvertently be sent, the request made in another tab via a malicious website is not going to be authenticated.

There are definite Usability and security pros to using Session cookies for storage:

* Unlike Session Storage, the cookies are visible by your application if you have two instances of it running in different tabs/windows.

* Unlike Local Storage, session cookies get wiped out when the user closes their browser

vladgur··on Web Storage: the lesser evil for session tokens
I was going to reply that localStorage persists even when entire browser is closed, whereas cookies do not, but i cant find the docs to confirm it.

One use case would be somebody logging into a sensitive site from a public computer and expecting the session to end when the browser is closed.

vladgur··on Web Storage: the lesser evil for session tokens
I would agree that Session storage is an ideal way for handling your session token if it wasnt for the fact that its only visible in a current window/tab.

I do want my users to be able to keep their session across tabs and not be forced to sign in again and as far as I know the only way to do this is to use cookie storage

Does anyone have a strategy use one of Web Storage APIs AND keep your session across tabs/windows?

vladgur··on Ask HN: Do I have to go through recruiters nowadays, how do you find new jobs?
I beg to differ. Hiring is hard. Internal recruiters play an important role in helping your company grow. For technical recruiting, recruiters are essential if you want to grow your eng team beyond single digits unless youre prepare to have one or more engineers devote their full time to fielding applications and screening candidates.
vladgur··on The Chrome Distortion: how Chrome negatively alters our expectations
My experience with every new release of safari on IOS would break something that worked before. Last one screwed with SVG sprites This one already had issues https://news.ycombinator.com/item?id=11366468
vladgur··on We don't need a thinner iPhone if that means killing the headphone jack
Whats being overlooked in most of the comments here is that Apple is killing off the only non-licensed hardware input that their iDevices had since the beginning, and the one without which a number of companies, including Square would probably not exist.

Im not sure about this day in age, but as someone working on hardware adapter feeding a stream of data into the iPhone in 2009 and 2010, the cost of getting into an MFI(or whatever the licensing term for hardware/bluetooth interoperability with iDevices was) was cost prohibitive and largely NDA-d out for smaller startups. So we went with the audio input just like Square did.

Unless something has changed in Apple's attitude to licensing and interoperability, the door has just been shut close for companies trying to innovate with other hardware products interacting with iDevices.

vladgur··on ADP Sues Zenefits for Defamation
Reading over the ADP filing(obviously one-sided), it amazes me that a company like Zenefits would do something that would make any tech professional cringe:

"Zenefits also asked the ADP client to take a screenshot of the temporary username/password screen for the account and email it to a Zenefits email. “

"ADP identified several potential concerns with Zenefits’ approach, including clients granting Zenefits admin user credentials to allow Zenefits access to the clients’ employee and company data in a manner that may not meet ADP’s security standards, and allowing Zenefits to make changes requiring a payroll admin level access. “

And this is ladies and gents why you should really worry when you base your business on scraping

vladgur··on Lily – Drone camera
Since this looks like a drone that automatically follows you, how does it negotiate with other drones that are around them.

What if there is another person snowboarding on that slope with Lily? And he/she slides close to you?

vladgur··on Angular 2 Rendering Architecture
Your timelines are off.

What youre referring to is that the early FB IOS app essentially wrapped a webview in order to display its stream, but the webview performance at the time was atrocious and they quickly abandoned it for natively build components. More recently(2013), post Instagram acquisition, Facebook developed a virtual dom framework named react and its currently used in several places of their web app.

Similarly with Angular which was introduced ~5 years ago, they decided that for the new rewrite it makes sense to use a virtual-dom like technology at the render level. The change is evolutionary.

FWIW Polymer is an effort by a completely different team and at this point is independent of Angular.

vladgur··on DoorDash Raises $40M, Led by Kleiner Perkins Caufield and Byers
im just waiting for the promo codes that follow these funding rounds
vladgur··on A new way to lock your computers: just walk away
Is anyone concerned that you are providing your admin/filevault/etc password to an app that knows when you are away from the screen?
vladgur··on Ask HN: What would attract you to a job in flyover country?
FYI 'unlimited' vacation is not a perk, its an accounting trick that more often than not IS NOT in employee's interest.
vladgur··on In Defense of Recruiters
What would be great is finding out how much exactly recruiters and referral services charge. For instance, how much can Hired.com charge per referral to afford to give several thousand back to the employee.
vladgur··on Beyond Pricing – Automatic Dynamic Pricing for Airbnb
20% increase in income is pretty dramatic :)
vladgur··on Beyond Pricing – Automatic Dynamic Pricing for Airbnb
Given that you expect people to share their AirBnB login and password, can you specify which locations you actually support prior to us handing this sensitive info over
vladgur··on iCloud for Developers
so from what I can see(and i did a very very cursory overview) , there are no web apis for icloud :( no cross platform integration i guess
vladgur··on Dropbox Webhooks
Whats the best/recommended way to test webhooks with a server running locally? Do you require webhook urls to be SSLd?

P.S. Also eagerly waiting for your Shared Folder API [1] :)

https://news.ycombinator.com/item?id=7484409

vladgur··on Classy: Cleaner class-based controllers for AngularJS
"- Moves actions out of the scope and onto the controller itself, where they belong"

Based on the Classy's docs, it doesnt "move" actions out of the scope and onto the controller, but the other way around. It adds controller's actions to the scope unless you prefix the names with an underscore.

Based on my experience debugging angular performance issues associated with expensive $digest cycles, I do NOT WANT it to happen automagically. I only want those functions on the scope that i explicitly place there.

vladgur··on E-Go: A sub-$1000 electric longboard
HEre is what somebody shared on facebook

https://www.facebook.com/photo.php?fbid=10152007349208170&se...

vladgur··on E-Go: A sub-$1000 electric longboard
Im a lucky owner of a Boosted Board and i can tell that with my 220lb frame the board can go much faster than I would feel comfortable and its torque is scary good. Whether its 3 times better than this board, I wouldnt know untill i try the E-GO if ever.

One thing that jumped at me right away from the E-Go pics is that the singular compartment that probably holds the battery and the controller is placed across almost entire length of the bottom of the board. And when somebody flexes it by moving around, the whole compartment flexes. [1]

I think that makes the plastic more prone to cracking than that of a Boosted Board where controller is placed on one side and the batteries are placed on another with nothing in between them.[2]

[1] http://youtu.be/_MqTg2bGv3E?t=41s

[2] http://boosted.staging.wpengine.com/wp-content/uploads/2014/...

vladgur··on Dropbox for Business
Finally they have a free trial available

Previously if you had to develop against Dropbox business features like SSO you had to shell out $$$

vladgur··on Blue Bottle acquires Tonx
There was a freakonomics episode called 'Do more expensive wines taste better' which essentially presented wine experts with a a blind test of different wines and they were not able to tell which ones were cheaper and which ones were pricier based on the 'flavor profiles' that they detected.

While it doesnt mean that there are no flavor profiles on roasted coffee beans, what it means is detection of the flavor profile is probably very subjective. In my experience flavor profiles are rarely guaranteed between roasts, one thing i could always tell if this particular roast is acidic or too dark.

This is just my perception. I usually make my coffee using a Capresso Burr grinder and aeropress. You can usually find me at whole foods sniffing the timestamped paper bags of coffee until i settle on something that doesnt smell too burnt or too acidic.

vladgur··on Blue Bottle acquires Tonx
I generally pick coffee beans by smell and i get them at whole foods, oftentimes within a day or two of the roast date. Ive tried sightglass, ritual, four barrel and blue bottle(not available at whole foods, but some other places in the bay area).

Pretty much none of them are ever labeled dark, medium or light roasted and instead they come up with these imaginative flavor descriptions which I never appreciated in wines and I definitely dont appreciate in coffee.

Based on my fairly good sense of smell, ive learned to distinguish medium roasts from dark and light onces because dark ones are generally too burnt and bitter for my taste while light ones are too acidic.

All of these coffee brands do have dark roasts(yes even Blue Bottle -- do you think Three Africans is light?) and medium roasts and plenty of light roasts. Its just tough to find any that are labeled as such

vladgur··on Blue Bottle acquires Tonx
Man I wish these companies stopped assigning flavors to the their roasts and just listed them as medium, dark or light.

I like medium roasts, every other is either lost on me or is not guaranteed to be consistent between roasts.

vladgur··on Amazon Fire TV
oh my, it looks like it supports mkv containers.
vladgur··on The Dropbox Shared Folder API Beta
Thanks, I think your second answers covers my use cases. Let me explain them:

Currently, file's metadata has no ownership information. If I see it in my files or my deltas, it could be because either I created or somebody else created them in a shared folder or somebody else shared a folder with me and i accepted.

In other words, if user X adds a file to a shared a folder with user Y, when User Y requests for deltas from the API, I cant tell if the User Y is the creater of these files.

It looks like Id be able navigate the revision to figure out who created the file. or who placed it in the shared folder, so this api is certainly a welcome addition

vladgur··on The Dropbox Shared Folder API Beta
Does this mean we would soon be able to tell who initiated the sharing with somebody else? or who updated something shared?

Please say yes, please say yes :)

vladgur··on Lessons from a Silicon Valley job search
What this doesnt say is whether the salary was on par with BayArea market or London Market. He did go through the Developer Auction/Hired so that gave him some idea of what companies offer.

I remember when Buffer "open sourced" their salaries and revealed that they were below the market rates in the Bay area(for Buffer's bay area employees).

vladgur··on Prominent GitHub Engineer Quits, Alleging Gender-Based Harassment
OMFG, seriously Recode? you registration that requires a password sends it over plain text to an http post? I was about to register to comment, but now i will have to use a throwaway email, password
← PreviousPage 11 of 12Next →