HNHacker News
TopNewBestAskShowJobs

trungaczne

141 karma · joined January 6, 2016

submissionscomments
trungaczne··on Principles of bot design
Looks fine on my Ubuntu

http://imgur.com/ZwPb3dl

trungaczne··on They Have to Be Monsters
Addiction doesn't happen by choice but rehabilitation does.

Not all ailments are the same. There's room for human intervention in addiction, both from oneself and their family. We can't always be blaming God for our misery.

trungaczne··on Ditching tmux
Thanks for the explanation. I actually just downloaded neovim to try out this feature, and I must say that with neovim-remote this is incredible. I think i3 and neovim's terminal mode is about as close as I can get to an ideal desktop setup. Having a terminal that can send arbitrary keystrokes to your editor open up endless possibilities.
trungaczne··on Ditching tmux
I have been using i3, tmux, vim's conque, ... haven't used neovim's conque yet so I can't comment on it, but here's my experience:

* i3 is fantastic for 90% of your tiling window activities: stacking a LOT of windows on the same screen without any problem, its different modes (stacked, windowed, tabbed) are ingenious, it makes it possible to use minimal number of keystrokes to navigate between any arbitrary windows. The ugly side is that once you've set up your screen with the windows you want, you probably want to keep them like that, while i3 allows you to shift your windows around it gets a bit messy (how do I group these windows together under a different layout?). Also, on Ubuntu, i3 doesn't have the nice "stuff" of other DE, the worst part is that windows don't carry over gnome themes properly and there are bugs with some applications (chrome). Also integrating an "Open another terminal in the current directory" is a headache.

* tmux is great for everything terminal related, it's not as good as i3, but it does its job well (splitting, windowing, saving sessions). It has a few interesting features that makes the move to i3 difficult, such as 1) opening another terminal in the same directory 2) scrollback with vim keys (so that you can run a command, do a reverse search on the output, and copy part of it out) and finally 3) sending the same keystroke to multiple terminals (handy when ssh'ing to multiple hosts for testing). The downsides is that tmux doesn't seem to handle the console all that well (editing in the middle of a bash command kind of breaks on my machine) and it can be annoying to make a script that works with tmux (since it breaks the process parent/child tree, this probably won't affect anyone though)

* I have tried vim's conque plugin, but the terminal freezes from time to time. I'm not sure if neovim's plugin is gonna have the same issue.

Overall I don't think there's a single piece of software that handles everything completely satisfactory yet. i've been satisfied with tmux for a long time, now making the move to i3 (it's everything I never knew I wanted), despite its several issues I think I'm gonna stick with it for a long time.

trungaczne··on YouTube now shows "An error has occurred" while ads running
uBlock can also do this. I suppose if the ads cannot be retrieved, the video is supposed to handle it smoothly.

The only ads that cannot be blocked are those that streams over the same origin server, like Twitch's new embedded ads.

trungaczne··on On the Madness of Optimizing Compilers
Not all software need to be speed critical but all softwares benefit from being faster. Part of the reason why we can afford to be less optimal when writing software is because many libraries have already been optimised for us (and it's not uncommon for these libraries to map to C or assembly code to utilise the hardware more efficiently), ranging from serialisation libraries to crytography libraries. This is not to mention the OS that we run the software on and other tools that the software depend on (such as databases). A small compiler optimisation improvement across the entire ecosystem can have a dramatic effect.
trungaczne··on On the Madness of Optimizing Compilers
To add to this, performance is very important in certain domains.

Take game development for instance, if your code runs a bit faster that's more frames you're rendering per second. This can mean the difference between a laggy, unplayable mess and a good gaming experience on an average machine (a laptop, or a non-gaming rig).

trungaczne··on 4chan founder Chris Poole will try to fix social at Google
The title is misleading, there hasn't been any statement about what he's going to be working on.

The way I see it Poole is just a good programmer who has experience working with a large user base. I think if you ignore the controversy over his user base, he's a good addition to any engineering team.

trungaczne··on Why privacy is important, and having “nothing to hide” is irrelevant
The issue here is more or less. A kitchen knife is bound to cause less casualty than a machine gun in the hand of a psycho, hence we require licenses for gun. It's not to eliminate death through violence, it's to reduce and deter it. We don't want people to reach for the nearest machine gun whenever they have a domestic quarrel (obviously we don't want people to reach for a knife either, but I hope you get my point) or when their neighbor's dog poops in their yard.
trungaczne··on Pome – Postgres Metrics Dashboard Written in Go
I suppose he's referring to embedding files (usually web resources such as js, css files) into the source code, using a tool such as go-bindata [1]. The assets are then accessed as variables.

[1] https://github.com/jteeuwen/go-bindata

← PreviousPage 2 of 2