HNHacker News
TopNewBestAskShowJobs

vkjv

792 karma · joined January 16, 2014

submissionscomments
vkjv··on The Rule of 72 (2007)
At least in my US state, it is taught as part of high school economics which is a graduation requirement.
vkjv··on A Simple Explanation of How Image Recognition Works
I really liked the visual representation of the "8" bitmap! It's kind of neat how `0` has a fairly pixel density compared to `255`, so even as numbers the `8` is still recognizable.
vkjv··on Don't use JSON web tokens for sessions
The nice thing is that you get quite a bit of middle ground to play with performance. Examples:

* Refresh TTLs that allow for some caching before hitting a DB (revoking). * Using a Bloom filter to revoke to limit the number of affected users, but also bound memory.

vkjv··on Light Pollution Masks the Milky Way for a Third of the World’s Population
I've lived on the US East Coast my whole life. I like to camp, so I thought I had seen the Milky Way before. Then, I took a canoeing trip in northern Minnesota and camped a night on an island in the middle of a lake. It was a crystal clear night and there was zero light pollution. Gorgeous! Here I was a decently well educated adult and I had no idea the sky could look like that.
vkjv··on A Lament for the LAN Party
I am about the age and had a very similar experience, but it went beyond LAN parties. In retrospect, I went to a very quirky school. It was public, but you need to apply to go there--it was no one's default school.

Despite that, we had some of the best sports teams in the state, debate teams, and engineering teams. It was a culture of excellence and it was difficult to even classify geeks and jocks because so many individuals fit into both groups.

I'm not sure what this school did to get it right, but it's sad to see it not replicated many times over.

vkjv··on How to win the coding interview
While I might not agree with the GP that this should be an automatic failure, I do think it is very important to emphasize to students that when the code is working, they are not done. They still need to go back, re-format, clean things up, and possibly add tests.

Working is the lowest bar of quality.

vkjv··on 85 percent of Facebook video is watched without sound
Judging exclusively by the number of videos I see with captions, I imagine this statistic was at least intuitively known if not specifically.
vkjv··on Scaling to 100M: MySQL Is a Better NoSQL
IIRC, Github does this for Pages via an nginx module that queries MySQL.

http://githubengineering.com/rearchitecting-github-pages/

vkjv··on Universal.css
I've had a very different experience with designers. I would say that ~95% of them something is a couple pixels off, a slightly different font size, or a shade off in color, it was a mistake.

Usually a quick follow-up question will reveal the mistake and the designer is happy to make the correction.

This has been my best weapon against CSS bloat.

vkjv··on Creating Objective-C and C++ Packages Using Swift Package Manager
Substack did a similar thing with NPM, but for C.

https://github.com/substack/dotc

vkjv··on Redis Loadable Modules System
Maybe you can relay the information to the appropriate person, but on http://redismodules.com, I can neither right click "open in new tab" or ctrl+click to open in a new tab.

This breaks my normal browsing habit of opening new tabs as I see something that interests me, but waiting until I finish skimming the list to read.

vkjv··on Show HN: Gitsome: A Git/Shell Autocompleter with GitHub Integration
It looks like it can be set as part of `gh configure`.

https://github.com/donnemartin/gitsome/blob/47322f4fc1daa956...

vkjv··on Learning Chess at 40
> ...and part of that is having a lot of things to relate any new concept to.

This is an interesting way to put it that I haven't thought about before. I have found it hard to explain that sometimes new things are easy to learn and sometimes hard.

I usually attribute this to the difficulty of the concept, but maybe it's that I'm not really learning the easy things but finding a very similar concept to relate it to that I already know.

vkjv··on Suspect jailed indefinitely for refusing to decrypt hard drives
My guess would be in data found on unencrypted drives that reference files on the encrypted drive. For example, you might have filenames that hint at child pornography in metadata (itunes, WMP, etc.) or CLI history.

Sure, the file might be unfortunately named, but, in this case maybe it was enough evidence to hold him?

vkjv··on Proposed JavaScript Standard Style
I'm on the fence about this syntax.

    var
        foo = 1,
        foo = 2;
The reason being that things will align whether you use a tabs with a width of 2 or 4.

I also use spaces for mid-line alignment and tabs exclusively for identation. I think this is called "smart tabs"?

vkjv··on Proposed JavaScript Standard Style
It depends on the engine, but most, when parsing, will look-ahead and see that `.` in `.filter(func2)` is an invalid start to an expression and assume it is part of the previous line.
vkjv··on Proposed JavaScript Standard Style
I am well aware that we are in the minority when it comes to preferring tabs over spaces in JS, but, as useless as this decision is, I will fight over it the street.

It's misplaced passion and I don't care.

vkjv··on Ocean Mobile Linux Server
There are many reasons, but I think the simplest is that using a language in house has a very real and non-trivial cost. Expertise, coding standards, library vetting, etc.

By using Node.js in a Web shop, you can eliminate one language.

Other benefits include re-use of client side code, async everywhere, and popularity.

vkjv··on Bluebird in the wild: Advanced promise-based workflows
Very neat! If you are interested in high level promises without any dependencies, like these, I have a small library inspired by some of the more useful helpers in Bluebird:

[extends-promise](https://github.com/kjvalencik/extends-promise)

Fair warning, it has an emphasis on simplicity of code rather than speed. It does a few things that are very likely inefficient. I wrote it primarily to scratch an itch I had--embedding in one-off node.js scripts without any dependencies.

vkjv··on Kindle Unlimited scammers on Amazon
I don't think you gain much by forging this number on a single device and you wouldn't be able to manipulate this on ALL devices.

The reason the scam worked is that it encourages all readers to jump to the end of the book (via a link on the first page). I don't think there would be an equivalent way to force people to page through and pause on each page.

vkjv··on Kindle Unlimited scammers on Amazon
This. It doesn't even really need to be a log. A bitset with each bit representing a page and a `1` representing "this page read" would do the trick. On a massive 8000 page tomb, that's only 1kb.

If Amazon doesn't need the exact pages read, POPCNT the total and send that.

vkjv··on My Disastrous Experience with Ubuntu 14.04 LTS Trusty Thar (2015)
My thought as well. I've used Mint Mate (Mate being the Gnome 2 fork) for the last few years on Ubuntu certified laptops (Lenovo 4xxs) and have not had any issues.

My complaint about the linux desktop experience is the amount of research necessary. If you are careful to purchase hardware that is well supported, everything will go swimmingly. This isn't really different with other OSs, but that information seems a little more difficult to discover (especially with bleeding edge hardware).

vkjv··on Design better databases
I barely ever use uuids. As you say, it solves a fairly specific problem. Usually when you need to scale to multiple datacenters, it's easier and faster to add a datacenter column and starting using it with id as a composite key.

The only time I use UUIDs is when I need to pass that id out, but I want to hidr how many rows there are or the rate that they are being created. However, I usually use COMBs to prevent fragmentation.

vkjv··on Show HN: Triangul-Art – make pixel art but with triangles
I always wondered how Hashicorp designed their logos and now I know!
vkjv··on Two out of three developers are self-taught, and other trends from a survey
Does self taught simply mean "doesn't have a CS degree?" I don't have a CS degree but I don't consider myself self taught because I didn't learn in a vacuum. I would say that 75% or more of what I know, I learned from great colleagues.
vkjv··on Writing a very fast cache service with millions of entries in Go
I was wondering the same. I.e., how this might compare to an NGINX module talking to a caching process on a unix socket.

https://github.com/openresty/memc-nginx-module

https://github.com/openresty/redis2-nginx-module

This has the added benefit of being able to take advantage of other nginx features. For example, you could set different permissions on `set` and `get` routes.

vkjv··on Does Running Java on Docker Containers Violate Agreements?
tl;dr: "...it is clear that distribution of these images may open both the users and the publishers of these images to public repositories to legal action."

If you build your own images that include the Oracle JDK, host them in a private registry, and don't distribute them to 3rd parties you are probably fine. Otherwise, you may be in violation.

I am definitely not a lawyer, but I don't see how this is something specific to docker. Wouldn't this apply to VMs as well?

vkjv··on On asking job candidates to code
I don't know the specific reasoning behind it. It's not specific to github. We aren't supposed to look at any reference that isn't provided by the candidate. This includes linkedin, facebook, etc.

It's most likely an overly broad means of protecting against employment discrimination.

vkjv··on On asking job candidates to code
I over simplified to make a simple bullet list. This is not a "code in front of my while I sit in silence" kind of thing. It's collaborative, it's discussing requirements, strategies, etc. It's back and forth and suggestions. It's also open Internet and questions are encouraged.

FWIW, we follow-up on what candidates thought of the interview process and it is overwhelmingly positive. I don't think it is overly stressful. Although, I'm not sure it's possible to make an interview not stressful at all! :)

EDIT: It's simple if you think of it in terms of a single project. But, if you think of it in terms of many, most of which are no contribution or a small bug fix, it can represent a large time investment. That's why I recommend candidates point out a specific piece of code.

vkjv··on On asking job candidates to code
A couple of quick notes:

* If you don't provide a link to your github profile, I'm not supposed to look at it. This an HR requirement. Other companies may use this same policy.

* I definitely look at github, but it's not always easy to tell if a project is original or not. Quite often I'm presented with either 30 forks, or a few projects that seem like they started as some boilerplate.

* Don't just provide github, also provide a specific project to look at. Even better, point out a particular section that you are proud of.

* Even with a well-stocked github, I will still ask you to code. This likely isn't to tell if you can code, but to figure out what it would be like to work with you.

← PreviousPage 5 of 12Next →