Better HN
topnewbestaskshowjobs
Log inSign up

jbnicolai

113 karma · joined Mar 18, 2013 (13y ago) · 54 submissions

username at jbna.nl
Submissions

comment 3y ago · link · parent

That's essentially what axioms are. Wether it's reasonable or not depends on your intuition of both axiom & implications.

This is where the axiom of choice is interesting; many people feel that it seems intuitively reasonable, but the implications are counterintuitive (e.g. banach-tarski)

comment 8y ago · link · parent

    "Extraordinary claims require extraordinary evidence"
Always resonated with me as a good summary.

Where a (naive) frequentist might assume, for instance, that after a 90% accurate test comes back positive the hypothesis is likely to be true, a Bayesianist would ask how likely it was to be true in the first place; all the test did was make it ten times more likely, which may or may not make it probable.

You may enjoy https://www.lesswrong.com/posts/XTXWPQSEgoMkAupKt/an-intuiti...

comment 8y ago · link · parent

Agreed. The problem is the risk of small, relatively hard to spot & nearly impossible to properly debug mistakes.

> A{2,4} -> AA(A|AA)

comment 8y ago · link · parent

You might enjoy the essay The Tyranny Of Structurelessness, which articulates this exact point, if you weren't already referencing it https://news.ycombinator.com/item?id=7409611

comment 10y ago · link · parent

You seem to have commited a merge conflict in https://npmcdn.com/nlp-syllables@0.0.4/builds/nlp-syllables....

Library looks fantastic!

comment 10y ago · link · parent

Thanks! Definitely going to look at these. Can't believe I wasn't aware AWS came with an API gateway service as well.

comment 10y ago · link · parent

Good question! I didn't include too much context in the top-level question to keep the discussion as broad as possible, and hopefully have advice applicable to others as well, but am more than happy to expand a bit here.

It concerns a large multinational in the transport sector. While we have built up a strong digital department, there's a lot of catching up to do, so the more 'batteries included' any given solution has the better.

On the other hand, it's crucial that we can extend any given tool as there will undoubtedly be unforeseen or non-default scenarios. For example: we'd love to perform some analytics on not just what customers are calling the APIs, but perform more detailed queries based on e.q. request parameters, geoIP, or perhaps even User Agent headers. It is absultely no problem to have to do this ourselves by performing raw queries on the database, and perhaps built our own dashboard around it, but again; if there's something that already covers a lot of these cases that'd be ideal.

The minimum required functionality is that the tool can operate as an authenticating proxy, only passing on requests when the e.g. OAuth2 headers are verified. Other security aspects, such as throttling and rate limiting are a requirement as we're dealing with systems that must be protected from unforeseen load.

Nice to haves are features such as autogenerated documentation pages, where clients can test the APIs from within their browser. On the other hand: rolling this ourselves using Swagger wouldn't be a problem either.

Research so far has included looking at some open source tools, e.g. Kong[1] from Mashable, apigee[2], reading up on Gartner's magic quadrant re. API management, and demos from IBM and CA. Costs of these vendor tools aren't a major concern, lack of modifiability absolutely is. I'm currently leaning towards Kong, but am wondering if others have interesting experiences to share.

[1]: https://getkong.org/ [2]: https://apigee.com/ [3]: https://www.gartner.com/doc/reprints?id=1-2DC669J&ct=150409&...

comment 10y ago · link · parent

Previous discussion related to Kong [open source product from Mashape]: https://news.ycombinator.com/item?id=9451947

9.

Ask HN: Best API management solution

11 points · by jbnicolai · 10y ago · 8 comments

comment 10y ago · link · parent

Just serialize the state in the hashfragment of the URL ;)

comment 11y ago · link · parent

In the python example you're running a function, while in the grep example you're launching a program (grep) from your shell.

To make the comparison more fair you'd store the python program and time starting and running both from a shell.

comment 11y ago · link · parent

    So close to haiku,
    only one more syllable,
    great embarrassment.

comment 11y ago · link · parent

Glad to hear!

Small plug, but I suppose the only people reading these comments are interested in tmux: https://github.com/tmux-plugins

comment 11y ago · link · parent

Rather, 'under the hood' it _is_ a lisp (that is, an AST). The powerful feature here is that you visualize (project) the AST into a more concise representation

comment 11y ago · link · parent

There's VisualReview[0], but only self-hosted.

[0]: https://github.com/xebia/VisualReview

comment 11y ago · link · parent

Made this weekend url tmp[0], a simple plugin/package manager for tmux.

See also tmux-fpp, a Facebook PathPicker wrapper for tmux[1]

[0]: https://github.com/tmux-plugins/tpm [1]: https://github.com/jbnicolai/tmux-fpp

17.

Show HN: Tmux urlview – Quickly open any url on your terminal window(github.com ↗)

1 points · by jbnicolai · 11y ago · 1 comment

18.

Show HN: Tmux wrapper for Facebook PathPicker(github.com ↗)

1 points · by jbnicolai · 11y ago · discuss

comment 11y ago · link · parent

I wrote a small snippet to integrate this with tmux. Simply press <Leader-i> for the current buffer to be run through fpp.

See a small example here: http://recordit.co/U2TYvbPC9p

And here's the corresponding code: https://github.com/jbnicolai/tmux/blob/master/.tmux.conf#L12...

comment 11y ago · link · parent

Because <Leader-Z> didn't exist in the latest version of tmux at the time. I've removed it now though, thanks!

comment 11y ago · link · parent

I use <C-s> myself, but <C-Space> works just as well I suppose. Not bound to any OS utilities on OS X afaict.

Thank you so much for pointing me towards that vim+tmux gist!

comment 11y ago · link · parent

You're absolutely correct, although I do all my terminal work locally in tmux as well (and often nest any remote work in a secondary remote session).

Liking the plugin you wrote!

comment 11y ago · link · parent

You're absolutely right, thank you!

comment 11y ago · link · parent

> But if I open Terminal C, which is yet another size, and attach to my existing session [...]

I might be misunderstanding, but could you not use `tmux new-session -t 0` again for the third terminal?

> and when I disconnect from Terminal C, those panes do not appear to switch back to what they now should be, unconstrained by Terminal C.

Odd. Unrelated to your earlier issue, but that's not what I'd expect or am seeing when I try to reproduce is locally.

comment 11y ago · link · parent

Odd. I'd consider myself a 'power user', but I hardly ever find I have that need. Could you describe what you do when you're entering several command-mode lines in succession?

comment 11y ago · link · parent

Exactly! And don't forget about <C-a> to move your cursor to the start-of-line in your terminal.

comment 11y ago · link · parent

For a while I ran a setup where I did all of my work in a local tmux session, but part of this work involved SSH-ing and attaching to a screen session.

When using both, especially nested, I found it beneficial to have a different leader for each.

I also use <^-a> to go to the start of the line, so I'd miss that.

comment 11y ago · link · parent

I do. It's closer to the prefix/leader I was used to when using screen (<C-a>), and I find it easier to type.
12