HNHacker News
TopNewBestAskShowJobs

predakanga

358 karma · joined December 17, 2013

submissionscomments
predakanga··on HTTP/2 is not the future, it’s the present
That's not correct - while any HTTP/2 capable servers along the path may implement server push, the most important one is the closest server to the user (i.e. the CDN). The only requirement is that the intermediate servers must not strip out the server push headers/tags, so that the edge server knows what to actually push.

It's quite possible to have your own server provide HTTP/1.1 and still take advantage of server push, and this is a usecase supported by Akamai[1], Cloudflare[2], and I suspect other CDNs (can't find details) - you may get better performance using HTTP/2 on that intermediate link, but that's less likely to be because of server push.

[1]: https://blogs.akamai.com/2016/04/are-you-ready-for-http2-ser... [2]: https://blog.cloudflare.com/announcing-support-for-http-2-se...

predakanga··on 3D support for X11 guests
KVM isn't an option on OS X or Windows - in those cases, VirtualBox is the most mature free VM software available.
predakanga··on Beyond Bash: Microsoft Refines the Windows Subsystem for Linux
All FUD aside, "developers looking for an alternative to the new MBP" is a pretty decent market to capture. I have no doubt that Microsoft are directing their efforts to try and take advantage of them.
predakanga··on Thunderbolting your video card
I don't see many usecases for that - besides the cable length problem mentioned in the article, it would have the effect of reducing choice for the consumer.

I could perhaps see displays including a very basic GPU and advertising it as a plug & play display, no need to check if your video card has enough ports, but I believe (citation needed) multiple display outputs have been standard for years now.

If that's the usecase you're after, I'd also suggest that you're better served by USB - there have been basic USB external GPUs available for years now that would do the trick.

predakanga··on Ask HN: What's the actual fallout been from the Cloudflare bug?
It's not much to go on, but it seems they are looking into better isolation going forward: https://disqus.com/home/discussion/cloudflare/incident_repor...
predakanga··on Teaching Kubernetes
Load balancers are particularly useful when it comes to cloud applications because they let you keep your routing logic server-side, meaning that you can make adjustments quickly without needing to release a new client version.

Your load balancer definitely shouldn't be a bottleneck - you can deploy multiple LBs to handle the traffic and provide redundancy, though you need to use other methods to balance between them (DNSRR, anycast, etc).

predakanga··on Teaching Kubernetes
I'm familiar with proxy-protocol, and while I haven't injected it with nginx, it seems that it does support it: https://nginx.org/en/docs/stream/ngx_stream_proxy_module.htm...

For reference, the feature was added in nginx 1.9.2, and the ingress-nginx controller appears to use nginx 1.11.9: https://github.com/kubernetes/ingress/blob/0.9.1/images/ngin...

Regardless, would I be right in assuming that your issues are mostly related to the ingress of TCP streams? My usecase is almost exclusively HTTP, so I might be missing the worst of it.

Thanks for the pointer to the #sig-onpremise channel, I'll be sure to check it out. Been meaning to look into the SIGs since reading https://coreos.com/blog/self-hosted-kubernetes.html

predakanga··on Teaching Kubernetes
Could you provide some more detail about your statement that "nginx-ingress will lose source-ip info"?

I'm currently working towards a k8s-on-metal system using nginx for ingress and was led to believe that I could use either X-Forwarded-For or proxy_protocol to preserve the originating IP address. Is the traffic bounced through an SNAT rule on it's way to the ingress controller or similar?

predakanga··on Takeover.sh – Wipe and reinstall a running Linux system via SSH without reboot
For anyone interested in adding this to their toolkit, I would suggest reading this StackOverflow answer: http://unix.stackexchange.com/a/227318/189858

In short, the answer details how to switch your running system to use an in-memory only root filesystem, without restarting. This allows installing a new OS, resizing the OS disks, etc.

It's a risky operation, but the linked answer covers many pitfalls that you might run into - I recently used it to shrink the root partition on a remote server, very much appreciated the detail.

predakanga··on Container orchestration: Moving from fleet to Kubernetes
The issue that I have with the newly imagined Docker Swarm is that it continues Docker's trend of trying to be a jack of all trades.

I have no specific examples for Docker Swarm, but using this approach in other areas has led to some pretty major deficiencies in Docker's design that they have been slow to fix, and I'm not keen on seeing that happen again.

For a concrete example, see https://github.com/docker/docker/issues/19474 - in a minor release, they completely changed how DNS worked and broke previously working systems (i.e. https://github.com/weaveworks/weave/issues/2157), all in the name of service discovery

predakanga··on Dwarf Fortress and the Terrible, Horrible, No Good, Very Bad Interface
Depends on what you mean by "Dwarf fortress", I suppose - there have been a great many DF-likes, the current darling being Rimworld, and more are definitely in the pipeline (keep an eye out for Klei Entertainment's Oxygen Not Included, which tries to incorporate the "losing is fun" aspect).

Edit: Klei Software -> Klei Entertainment

predakanga··on Where has my disk space gone? Flame graphs for file systems
I'm sure there are arguments as to whether it's the "best" representation, but I'd contend that it's the most intuitive.

It's probably the first OS X App where I bought licenses for the whole family; they all benefited from it.

predakanga··on NHS staff trigger Google cyber-defences
Seems like quite the overblown headline, but it reminded me of the recent self-inflicted email DoS at the NHS: https://www.theguardian.com/society/2016/nov/14/186m-needles...

I suppose articles like this are a worthy reminder to remember the extreme cases in our engineering

predakanga··on How Etsy Manages HTTPS and SSL Certificates for Custom Domains on Pattern
I can't speak for Apache configurations, but on-the-fly cert lookup is possible in nginx using the lua_nginx module[1] - IIRC that feature was developed by Cloudflare, to power their SSL termination.

[1]: https://github.com/openresty/lua-nginx-module/#ssl_certifica...

predakanga··on UnblockOz: Helps Australians reclaim their unfiltered Internet access
Additionally, the copyright holders were ordered to pay costs incurred by the ISPs in implementing the block.

I think the case was a good balance between upholding the law and making it clear that it wouldn't be a system over which the copyright holders have total control.

predakanga··on Show HN: Fluor a macOS app to switch Fn keys depending on active application
I've been using a hacked up solution to do this using ControlPlane (to detect the foreground application) and fntoggle (https://github.com/nelsonjchen/fntoggle) for a while.

It's mostly for use with IntelliJ's IDEs, but it's been a real productivity boost for me. Will definitely be checking this out as a replacement.

predakanga··on Goroutines, Nonblocking I/O, and Memory Usage
One of the features which I would most love to see in Go is a Selectable interface, which could make things like this doable (albeit as a bit of a hack).

Even if a socket's Selectable implementation just abstracted away the goroutine from your first example, it would make the developer experience a lot nicer for me.

predakanga··on Proposed server purchase for GitLab.com
I believe the downvotes are due to "+1" not adding anything to the conversation, as opposed to people disagreeing with the sentiment.
predakanga··on Fitbit is reportedly buying Pebble for around $40M
As someone who never wore a watch before I got a Pebble, I have to disagree with your first statement.

I bought mine (and a subsequent Pebble Time) specifically because I wanted a less obtrusive way of checking messages and controlling my music, and it's filled the role superbly.

I don't generally need nor want fitness trackers either, but the accelerometer does come in handy for use with sleep tracking programs.

predakanga··on Reddit CEO admits to altering user comments that were critical of him
I've been wondering about exactly that - would the perception of this be so negative if spez had inserted javascript to rewrite the messages on that subreddit instead?
predakanga··on Automatic Security Updates for Developers
> its generally a very bad idea to automatically update your production software without running it through your own localized battery of tests

To me, this begs the question: How do we enable clients to react quickly to releases?

The most easily available solution would seem to be webhooks. It's standard practice for them to be used to trigger things internally, but is it time to turn them outwards?

Side note: It's always seemed a bit of a waste to me that sites like Github will only allow the owner of a repository to create web hooks. My personal use-case for that is automating Docker builds of various projects, but I'm sure others exist.

predakanga··on Docker in Production: A History of Failure
I'd extend your point on zpool expansion to ZFS's general inflexibility when it comes to reshaping pools or rebalancing ZRAIDs.

I'm sure it's not an issue in enterprise environments, but I've personally been bit by ZFS's inability to shrink or rebalance pools (even offline) several times now through personal use.

Those sort of use cases need to be handled if ZFS is to become a more general use filesystem.

predakanga··on Docker in Production: A History of Failure
One potential reason is to handle version promotion.

For instance, you may want to run an image for a while on a staging server before re-tagging it as the current stable release.

predakanga··on Continuous MySQL backup validation: Restoring backups
Very nice, thanks for the link!

I'll definitely be seeing if I can replace my system with that; reducing the overhead to a single transaction would be a big win.

predakanga··on Continuous MySQL backup validation: Restoring backups
Interesting, though I was hoping for a bit more focus on the validation part - unless I'm missing something, there's nothing protecting the actual SQL dumps against bitrot.

I had to design against that particular problem recently, ended up taking a pt-table-checksum at the time-of-dump and verifying newly restored backups against that to ensure the backup's integrity.

Unfortunately that requires halting replication temporarily, so I was hoping to hear of a more ingenious solution.

predakanga··on Firefox Launches More Experimental Features
The frustrating thing is that Always On Top is implemented in Windows, just not exposed to the user in any useful way.

For years I used a simple ~30 LOC program that mapped Alt+F5 to maximize/restore and Alt+F6 to toggle Always On Top. Sadly, I seem to have lost it.

It really did wonders for my workflow, especially in the days before Dash or Aero Snap. Being able to have a little documentation window up was fantastic!

predakanga··on Fully Countering Trusting Trust Through Diverse Double-Compiling (2009)
Interestingly, this problem appears in some pretty diverse circumstances.

The one that springs to mind is video game emulation, from more than a decade ago - the communities there needed a means to reproducibly compress their ROMs, both for verifying dumps and for sharing large sets of ROMs. The tools created have been through many iterations, but they're still in use today in the form of TorrentZip[0] and various relatives like torrent7z.

[0]: https://github.com/uwedeportivo/torrentzip

predakanga··on Cloudflare and RSS
When the website owner decides to use Cloudflare in front of their site, it is absolutely their responsibility to ensure that it's configured properly. Not Cloudflare's and certainly not the user's.

And for that matter, it's entirely possible that they consider this correct behaviour. They may have a poorly written dynamic RSS feed that doesn't cache for instance, and want it protected.

Moreover, Cloudflare provides plenty of ways for the website owner to avoid this behaviour - the global security level can be adjusted, settings for individual endpoints can be adjusted, even settings for individual IP ranges can be adjusted.

As a user, you have no idea what settings the website owner has selected; it seems rash to blame Cloudflare in that context.

predakanga··on MySQL Remote Root Code Execution/Privilege Escalation Exploit
An additional safeguard against this exploit would be using the `secure_file_priv` option, which restricts the location that queries can write to.

According to the docs[0], this has been configured to '/var/lib/mysql-files' by default for most distribution packages since 5.7.6. Still worth updating though, in case CVE-2006-6663 bypasses that.

[0]: https://dev.mysql.com/doc/refman/5.7/en/server-system-variab...

predakanga··on Ping pong with Facebook
As far as I'm aware, it always has been. They link to their source code from the footer of their homepage, licensed as GPLv3: https://adblockplus.org/en/source
← PreviousPage 4 of 5Next →