HNHacker News
TopNewBestAskShowJobs

Adrock

3,813 karma · joined May 17, 2009

submissionscomments
Adrock··on Counting Stars on GitHub
D3 is awesome. It was really nice when working on the post to just be able to re-run the queries to generate new CSV or JSON and not have to go through a whole separate visualization generation pipeline.
Adrock··on Counting Stars on GitHub
OP here. I agree that the language categorization is questionable. It's all based on what the GitHub Search API returns as the language.

Looking at Bootstrap, the classification doesn't seem to be strictly based on percentage:

- CSS 59.8% - JavaScript 39.7% - Python 0.5%

...but GitHub Search says JavaScript. I do see that if I do a search query with a language filter, I get different results.

Adrock··on Prototype ergonomic mechanical keyboards
It's a shame that the images were lost after geekhack.org was hacked, but the most compelling solution I saw was the mod to add a trackpoint:

http://geekhack.org/index.php?topic=32232.0

You can see some attempts here:

https://www.google.com/search?q=kinesis+trackpoint&tbm=isch

When I first got my Kinesis Advantage, I secured the Adesso Smart Cat trackpad to the middle:

http://www.amazon.com/Adesso-Button-Glidepoint-Touchpad-GP-4...

It's what the other Kinesis users around me were using and it's the only wired touchpad that could fit. It's a piece of garbage and I've given up on it. I've fallen back on using my Evoluent Vertical Mouse, as it's the only mouse that doesn't leave me in pain.

The real answer is that I've adapted my tools and workflow to be as keyboard operational as possible, using a tiling window manager, Emacs, and Conkeror for everything.

Adrock··on A programmer's oath
I like the idea behind this and there's some good stuff here. This one irked me a little because it's lacking nuance:

> I will remember that technology always improves, and will never stop learning, and the purpose of my life will be continuous self-improvement.

"The purpose of my life" is too strong of a phrase that makes this one sound like it trumps the others.

"Technology always improves" is true at the macro level, but there are a lot of fads, minor regressions, and forgotten gems from the past.

Adrock··on Most frequently enabled Emacs packages
It is enabled by default. I've updated the list to indicate that transient-mark-mode and blink-cursor-mode are on by default in modern Emacsen and that uniquify will be enabled by default in 24.4.
Adrock··on The real reason for pensions
Related: I recently was chatting with a retired 401k salesperson who explained to me the real reason for employer-matched contributions. The highest compensated employees, typically executive management, are subject to deferral limits that are based on the contribution rates of the regular employees.

> Why is it important for companies to encourage their employees to save? Aside from “it’s the right thing to do,” there are actually compliance reasons why this is necessary. “It helps with nondiscrimination tests,” says Robert Richter, vice president of SunGard’s wealth & retirement administration business in Jacksonville, Florida. He adds, “Highly compensated employees are subject to deferral limits that are based on non-highly compensated employee contribution rates. If non-highly compensated employees defer at low rates, then it will limit the amount that the highly compensated employees can defer. Safe harbor plans are a way to eliminate that test, but in order to use the safe harbor provisions the employer is required to contribute to the non-highly compensated employees either a minimum matching contribution or an across-the-board contribution, even for those who do not defer.”

- http://fiduciarynews.com/2013/11/are-401k-plan-sponsors-pois...

Adrock··on People Don’t Actually Like Creativity
That's a quote from here:

https://michaelochurch.wordpress.com/tag/corporate-behavior/

Why not include a link to the source or even the author's actual name?

Adrock··on Fold the DOM like paper
There's also a rich field of algebraic analysis of origami:

http://www.google.com/search?q=algebraic%20origami

Adrock··on Removed use of gendered pronoun
You can do both. And if you do change the documentation, it's not necessarily about making yourself feel good. It can also be about creating a welcoming environment or a host of other things. I'm not attributing the basest motivations to your statements, so please don't do that to mine.

Your suggestion is to do something that will hopefully have some sort of macroscopic impact. That's great and should be done, but it doesn't mean that the microscopic impacts don't matter. I'm concerned about the actual small set of women that I work with on a daily basis not being marginalized.

Adrock··on Removed use of gendered pronoun
What if our pronouns were racial instead of gendered? I'd have a problem with the white versions being used in all my technical documentation.
Adrock··on Steps to Getting Users’ Insights while Avoiding a Bruised Ego
I don't usually do this, but the timing is just so perfectly aligned with today's SMBC:

http://www.smbc-comics.com/?id=3188#comic

Adrock··on Motherfucking Website
"Good design is as little design as possible." - Dieter Rams

http://en.wikipedia.org/wiki/Dieter_Rams

Adrock··on What is the enlightenment I'm supposed to attain after studying finite automata?
The informal answer is that you can treat two stacks like one tape. The top of the first stack is the current location on the tape. You can move the tape head to the left by popping from Stack 1 and pushing that value onto Stack 2. Pop from Stack 2 and push on Stack 1 to move to the right.

What's really funky is that a DFA with a queue is a Turing machine. You can show this by putting a sentinel value in the queue that separates two stacks and having some crazy loop structures that allow you to push and pop from the two stacks it represents.

Adrock··on How Big Tech uses GitHub
Copy the link and replace https with http.
Adrock··on Ferro: A keyboard interface to Chrome
If this appeals to you, I recommend checking out Conkeror:

http://conkeror.org/

It's nice having a browser that was designed from the ground up to be used with only a keyboard.

Adrock··on What is the enlightenment I'm supposed to attain after studying finite automata?
The list in the 1st answer is amazing, but the 2nd highest answer has one of my favorite things:

> Turing machines (we think) capture everything that's computable. However, we can ask: What parts of a Turing machine are "essential"? What happens when you limit a Turing machine in various ways? DFAs are a very severe and natural limitation (taking away memory). PDAs are a less severe limitation, etc. It's theoretically interesting to see what memory gives you and what happens when you go without it. It seems a very natural and basic question to me.

I like to think of it the other way, though. A DFA with a stack is a PDA. A DFA with two stacks is a Turing machine. Looking at the 3 different classes as DFAs with 0, 1, or 2 stacks is just so beautiful...

Adrock··on Protean Echo – Fuse All Your Cards into One
Or to buy a house.
Adrock··on 30 Window Managers in 30 Days
Yep. It's remarkably stable and gets so many things right. I recommended it in my recent post on why you should try a tiling window manager:

http://adereth.github.io/blog/2013/10/02/why-you-should-try-...

Adrock··on Ask HN: Pay Rent With Micro Equity?
It seems like the valuation algorithm could be used more lucratively and directly in a more traditional VC way.
Adrock··on What are the math heavy CS areas with high demand?
I did a dual degree in Computer Science and Math. My recommendation is to take the classes in both areas that you find the most interesting, with no concern for your career. Your career will span decades and unlikely to involve a steady focus on a single area, as either the environment or you will change. Personally, I've been working for 11 years in a variety of roles (PM at Microsoft, Product Analyst at a SF startup, Quantitative Developer in finance).

You never know where the most valuable lessons will come from and how they will pay off. For example, my second Real Analysis class leveled up my ability to communicate clearly and precisely in a way that no writing class could have. Graph theory, automata theory, numerical methods, abstract algebra, and statistics have each made their way into my work, sometimes in ways that I never would have expected.

If you want to ignore this, Machine Learning.

Adrock··on Why You Should Try a Tiling Window Manager
Notion does a pretty good job of letting you mix floating and tiled windows. I do it manually by pressing Win+D, which I have bound to ioncore.detach. It's nice because all child windows that spawn from that program are floaters by default. It also lets you specify that new windows of particular programs should float by default or open in specifically named frames.

I wouldn't be able to GIMP without this...

Adrock··on A Week with Elixir
I'm quibbling with a quibble, but I don't agree that it's orthogonal to closures.

Your example doesn't really demonstrate the eponymous "closing" aspect of the closure and doesn't solve the problem that the OP is calling out. Closures are functions that refer to non-local variables. [1] [2] Whether the language provides lexical or dynamic scoping [3] is critical to how and when closures can be used in that language.

[1] http://en.wikipedia.org/wiki/Closure_(computer_science) [2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guid... [3] http://en.wikipedia.org/wiki/Scope_(computer_science)#Lexica...

Adrock··on A Personal Lisp Crisis (2012)
Hi tom_b, I'm one of the co-organizers of the NYC Clojure meetup. I don't know if that's the one you attend, but I'm definitely interested in any specific ideas you might have for better introductions and ice breakers.
Adrock··on Airlines offer no-crying sections
I've experienced this to different degrees in my travels. One time it felt like I was being stabbed in the brain with an ice pick for the entire 6 hour cross country flight and no amount of blowing/swallowing/yawning would help.

It's a form of Eustacian tube dysfunction:

http://en.wikipedia.org/wiki/Eustachian_tube#Disorders

My ENT recommends taking a hit of Afrin nasal spray during takeoff and again just before descent.

Adrock··on Clojure Debugger?
> Once in a while, I have felt the need to find out exactly what was going on at a certain point, and had to awkwardly put in (do (pprint x) x) statements everywhere.

Use this:

https://github.com/dgrnbrg/spyscope

Less awkward and more informative!

Adrock··on How to avoid the Emacs Pinky problem
At work, I use the LF (reds). At home, I use the browns with O-rings (40A hardness, 0.2mm travel reduction):

http://www.wasdkeyboards.com/index.php/cherry-mx-rubber-swit...

I think the LF with no O-ring modification is the way to go.

Adrock··on How to avoid the Emacs Pinky problem
I tried almost everything listed on that page. Far and away, the most effective thing was to just buy a keyboard that puts CTRL and ALT under my thumb instead. The Kinesis Advantage is the most popular and I love mine:

http://www.amazon.com/gp/product/B000LVJ9W8/linkCode=as2&tag...

(affiliate link)

I was in a training class yesterday and had to use my laptop keyboard for the whole day. Halfway through, my left hand was cramping arthritically and it renewed my faith that this was an important purchase.

Adrock··on Learn Datalog Today – An interactive Datomic query tutorial
> The order of the data patterns does not matter (aside from performance considerations)

I just started using Datomic for a little project. The performance implications of the order of the data patterns matters a lot. It's not a minor performance consideration when swapping two patterns results in having a full cartesian product of two moderately large fact sets stored in memory. You fill up your heap and wait a long time to just get an OOM error. Very quickly, you realize that you need to think about how the query engine will deal with your request.

It seemed strange to me to dismiss this when it's something that I had to face on day 1.

Adrock··on Ricon East 2013 Videos
I was there and a lot of the talks were great, but Dr. Seltzer's Automatically Scalable Computing was my favorite by far:

http://ricon.io/archive/2013/east.html%23automatically-scala...

It's a crazy approach and they've made impressive progress on it. I could see it becoming a standard technique in a few decades...

Adrock··on Poll: What is your favorite programming font?
I generated one programmatic comparisons of a bunch if fixed width fonts a couple years ago:

http://1overn.com/2011/01/31/iterating-on-font-pair-comparis...

I should update it with this list...

← PreviousPage 3 of 8Next →