HNHacker News
TopNewBestAskShowJobs

no_protocol

1,145 karma · joined September 16, 2016

submissionscomments
no_protocol··on Revisiting How We Put Together Linux Systems
(2014)
no_protocol··on VIM Pays Excellent Dividends: Learn it early, if you can
Not sure if you'll find this delayed comment, but I can give it a shot.

There is a note on the linked video page about `set hidden`, but it doesn't spend much time explaining it. If we open Vim and type `:help hidden`, we get the following:

  'hidden' 'hid'          boolean (default off)
                        global
                        {not in Vi}
        When off a buffer is unloaded when it is abandoned.  When on a
        buffer becomes hidden when it is abandoned.  If the buffer is still
        displayed in another window, it does not become hidden, of course.
        The commands that move through the buffer list sometimes make a buffer
        hidden although the 'hidden' option is off: When the buffer is
        modified, 'autowrite' is off or writing is not possible, and the '!'
        flag was used.  See also windows.txt.
        To only make one buffer hidden use the 'bufhidden' option.
        This option is set for one command with ":hide {command}" :hide.
        WARNING: It's easy to forget that you have changes in hidden buffers.
        Think twice when using ":q!" or ":qa!".
The default state of `hidden` is off, so with that in mind, the explanation basically answers why Vim warns you about switching buffers. If you switch away, the buffer is "hidden" -- Vim keeps track of what is in it and doesn't unload it. That's probably what you expect, but can lead to loss of unsaved data if you switch away from a buffer, work on some other buffers for a while, then close Vim without coming back to the unsaved one. So by default, Vim wants you to be explicit when switching away from a buffer that will become hidden. In most cases you probably want to save it first.

Turning `hidden` on would remove the warning, you could switch away from an unsaved buffer with `:bn`.

So if you want to always work with unsaved hidden buffers floating around (view them with `:ls`!), you could add `set hidden` to your .vimrc. Alternatively, you could set up a command to automatically execute a save action every time you tried to switch away from an unsaved buffer. Notice that `autowrite` is mentioned in the help text above. Running `:help autowrite` shows:

  'autowrite' 'aw'        boolean (default off)
                        global
        Write the contents of the file, if it has been modified, on each
        :next, :rewind, :last, :first, :previous, :stop, :suspend, :tag, :!,
        :make, CTRL-] and CTRL-^ command; and when a :buffer, CTRL-O, CTRL-I,
        '{A-Z0-9}, or `{A-Z0-9} command takes one to another file.
        Note that for some commands the 'autowrite' option is not used, see
        'autowriteall' for that.
So if you added `set autowrite` to your .vimrc, instead of `set hidden`, you could avoid the warnings by automatically saving the file, rather than leaving it unsaved.

Hope this helps! One of the pain points of vim is that many of the defaults end up being somewhat unexpected choices. Many people get over that by just looking up someone's post online and copying in a bunch of settings. When you do that, you don't end up learning much about navigating vim and understanding the configuration process. You just end up with a new set of defaults that might also not quite be what you want. I try to keep my .vimrc pretty plain until I realize something could be better, then spend a moment to figure out how to do that and add it in.

no_protocol··on VIM Pays Excellent Dividends: Learn it early, if you can
Watch this three minute video or view the concise notes below it for some very nice tips on handling buffers.

http://vimcasts.org/episodes/working-with-buffers/

> You can quickly jump between the active buffer and the alternate buffer using the command <CTRL-^>. Pressing it again takes you back to where you were before.

If you don't like the <CTRL-^> command for this, you could map it to something else, such as the tab key, with a line in your .vimrc:

  nnoremap <TAB> <C-^>
----

> There's no single de-facto manager that's used by 90% of all vimmers.

Most recently updated plugins work with each of the managers. I use a handful of plugins with Pathogen, but the same plugins could be used with another manager.

However, the latest release of Vim now includes a built in plugin system, does that satisfy your need to have one blessed version?

https://shapeshed.com/vim-packages/

----

> 20 different buffer navigations

Keep in mind, all these commands can be shortened to the smallest unique prefix. So with `:bn` and `:bp` you can go forward and backward. But if you don't like typing three characters, just sacrifice something else by remapping it in your .vimrc!

----

> toggling between two open files, a pretty common use case

When I am working on two files at once, I'll usually put them both up at the same time. If I have "a.txt" open and I also want to work on "b.txt" I can type `:vsp b.txt" and now I have them up side-by-side. I can switch between them with whatever command I have set up to do that.

no_protocol··on Annotation is now a web standard
> It would be great to also get notified as discussion is happening in the various sites, without reading the spec, it's not clear to me if that's part of the standard.

Not really.

no_protocol··on Annotation is now a web standard
> If I leave an annotation with this standard must that annotation be public? Are there options for private annotations?

The protocol specifies that annotations are shared over HTTP, you can have them behind whatever kind of locks you want.

> How much private data about my browser and my host am I leaving when an annotation is created?

The specification doesn't store anything like this. But since everything happens over HTTP, the client/server you use may include things like that. Since it's a standard, you should be able to use whatever programs you wish.

There are fields specified to include things like author name, creation date, etc. It will depend on your client how they are used. They aren't required.

no_protocol··on Learning from Terminals to Design the Future of User Interfaces
I really like your tone throughout and the length is perfect. It is difficult to put down something everyone uses without coming off as arrogant and rude. Even the calls to action at the end seem gentle enough to not spark flame wars. It's a fine line, someone may disagree with me on that.

I can see this becoming one of those canonical pages that is still being referenced 10 years later. Being short enough to share and simple enough to understand makes this a great resource. I have tried to convey similar feelings to people who love the applications you've used as examples. Maybe this will help.

Great use of images to demonstrate your points. Many articles lately seem to just add in unrelated images for no reason.

> HTML and CSS gave developers perfect visual control over what their interfaces looked like, allowing them to brand them and build experiences that were pixel-perfect according to their own ends

I'm not sure this is quite right. It takes a ton of work to get an HTML/CSS page to display properly in every browser. I think my response is specifically related to the use of the word "perfect" -- maybe something else like "total" would be more appropriate.

All I could think of while watching the clip from Minority Report was how tired my arms would get from all that full-range motion.

I like the submitted title better than the title on the actual page. You should consider revising it!

no_protocol··on “What’s your current salary?” is a trap question–Here's how to answer it
To the author:

> You’ve told them your uncomfortable

your -> you're

no_protocol··on Cloudflare Reverse Proxies Are Dumping Uninitialized Memory
It appears that it could be from any site that passed through that server, not just those with these features enabled.

That's just how I read it.

no_protocol··on Cloudflare Reverse Proxies Are Dumping Uninitialized Memory
Is there a list of sites potentially affected?

I'm assuming I need to change my passwords on a significant number of sites. So far none of them have alerted me to a potential breach. Would love to have a head start.

no_protocol··on Ask HN: Quitting job to go freelancing
> it Quiting job

Quiting -> Quitting

> change my decition.

decition -> decision

no_protocol··on Show HN: How to write a tiny compiler
> a string of code and break it down into an array

break -> breaks

> There a three kinds

a -> are

> starts with a " and end with a "

end -> ends

> couple of tokenizer for a

tokenizer -> tokenizers

> a generic function that tokenize a single

tokenize -> tokenizes

> by means or regular expressions

or -> of

no_protocol··on In which, alas, I must rattle a tin cup
From [0]:

> By the time Raymond could legally sell his VA Linux shares in June 2000, they had plunged $31 million in value to a still-impressive $5.5 million.

> Thanks to the dot-com bust -- fed in large part by big-hype, no-hope companies like VA Linux, the worth of Raymond's shares had dropped to $195,000, a loss of more than $5 million.

From [1]:

> Back at IPO time I wrote an essay called "Surprised By Wealth" in which I tried to deal with how weird it felt to have a theoretical net worth of $41 million. Am I upset that all that "wealth" is gone, at least until the stock bounces back? Well...yes and no. As a member of VA's Board, it's my job to worry about our stock price, on behalf of all of our stockholders. So I care about that.

> But personally? Nah. I wasn't in this for the bucks then, and I'm not now.

[0] http://workbench.cadenhead.org/news/3149/eric-s-raymond-baza...

[1] http://www.linuxtoday.com/infrastructure/2001022100120OPBZCY

no_protocol··on Objective CS Rankings Through Papers Published at Top Conferences
This comment is probably on the rude side, but I've wanted to get this off my chest for years.

I had some exposure to several of the top listed faculty at one of the higher ranked schools. It seemed like at least a couple of them genuinely cared more about how many papers their name was on in DBLP than what the papers were about.

I mainly have a hard time believing someone who is a co-author on over 40 submissions per year has time to comprehend and fully understand them all. I was also unconvinced that many of the papers were even moderately significant. It seemed like they knew exactly what to do to get a paper accepted and optimized for that.

The end result was I decided to steer away from the academic track because it did not seem like an environment I would be comfortable in.

no_protocol··on Tarsnap – Online backups for the truly paranoid
Of course not. I'm mainly trying to show that it is incredibly cost-effective for this particular use case.
no_protocol··on Tarsnap – Online backups for the truly paranoid
I see some comments here from people wondering why anyone would use this or searching for use cases. I'll share mine.

I use tarsnap to keep daily backups of a web server with a handful of sites. I send over their content, configuration, and database backups. This isn't $$$-critical stuff so I just make a once-daily database backup and I'm fine with that. Every few months I verify one of the backups to make sure everything is still working, but it is extremely hands-off. I just don't have to think about it.

It is currently costing me about 3 cents per day. I could probably reduce that a bit with some pruning. It was 2 cents per day for a while.

Here is my most recent billing statement:

  2016-01-26 Balance                   43.152827492555316729
    Client->Server Bandwidth   8.2MB    0.002069643750000000
    Server->Client Bandwidth  41.2kB    0.000010296000000000
    Daily storage             3.35GB    0.027041509164110040
  2016-01-27 Balance                   43.123706043641206689
So far I have used a total of $7 of my $50 deposit. Let's hope Colin keeps the service running at least until I've worked through that. Might be a few more years, though. Here are my statistics:

  $ tarsnap --list-archives | wc -l
  496
  $ tarsnap --print-stats --humanize-numbers
                                         Total size  Compressed size
  All archives                               200 GB            86 GB
    (unique data)                            8.4 GB           3.3 GB
It appears I have been using it for about 496 days. I can access any specific day's snapshot and download it if I need. The 3.3GB here is the same as the 3.3GB for daily storage on my billing statement. I'm guessing that is also very close to the total amount of Client->Server traffic I have generated in my account's lifetime. Probably within a few percent? Not sure if I can quickly verify though.
no_protocol··on Ask HN: What's stopping you from using Firefox as your primary browser?
I use bookmark keywords to search various sites in Firefox.

For example, a bookmark to search Amazon:

  Name: Amazon Search
  Location: http://www.amazon.com/s/?field-keywords=%s
  Keyword: ams
So now if I enter the following in my address bar:

  ams keyboard
I am brought to an Amazon search results page for keyboards.

I don't like the tab-to-search version in Chrome very much by comparison. There is a service called Shortmarks that aims to emulate this behavior in Chrome, but I'm not sure how I feel about using it.

---

I switched to Chrome about 5 years ago because Firefox was getting slow for me. Recently I am strongly considering switching back. My biggest continual annoyance with Chrome is poor searching of previous visited pages when typing partial URLs into the address bar. The main thing holding me back right now is I am wondering how this will impact me when using a Chromebook.

no_protocol··on Show HN: A travel tool to discover destinations based on your budget
> - I'd like a map view of the destinations

I'm normally a huge map fan, but I actually like it the way it is, without a map. I had this cool moment where I thought, "It doesn't matter where in the world it is, as long as it is under your budget."

I haven't figured out how to pass all the menus after clicking a destination. I typed in an airport and clicked Search Flights, but it complains that I haven't entered dates. Can't find a place to enter them.

no_protocol··on How Discord Stores Billions of Messages Using Cassandra
Thanks for sharing. I guess I'm not quite in the target market. It seems like a very interesting evolution beyond prior closed chat systems like AIM, ICQ, etc.
no_protocol··on How Discord Stores Billions of Messages Using Cassandra
Neat. That seems like a major addition.

Can I download the full transcript of a channel for safekeeping in case things are deleted in the future?

no_protocol··on Study finds association between eating hot peppers and decreased mortality
I am not a trained statistician, so can someone help me understand why this is even publishable?

I read the abstract and found they quote their key statistic at P = 0.01. The "NHANES III" study that their data comes from has over 1000 variables. Can't you just cherry-pick a handful of "significant" variables at the P = 0.01 level, when there are 1000 variables to choose from?

no_protocol··on Ask HN: What's your total income?
Programmer + System Administrator, Middle US

$48,000, $0, $0

Edit: About 75% of respondents at this point are from green accounts. I wonder if that will sink it off the front page quickly.

no_protocol··on Racket Language – New website design
Thanks.

To the creator of this site:

Take into consideration the commonality between all of these:

https://www.python.org/

https://golang.org/

https://www.rust-lang.org/

https://dlang.org/

http://elm-lang.org/

http://plt-scheme.org/

Each of these language homepages clearly explains that they are introducing a programming language. This new racket-lang.org page doesn't. It has a huge impact on what users will think when they load the page.

The PLT Scheme homepage is leagues better than the new Racket one because it tells me exactly what it is for. Don't let yourselves go backwards.

no_protocol··on Racket Language – New website design
That's great, but it doesn't really seem to tell me anything at all about what it is.

From what I saw, it looks like a site that helps you make a variety of line drawings. Next time I need to make some line graphs, I'll check it out.

no_protocol··on GitLab 8.15 Released
Can you share what these items are? I have used GitLab quite a bit and GitHub just a little, and I so far have enjoyed using GitLab much more. I had a hard time finding my way around on GitHub.

The main parts I've used in both are creating Issues and Merge Requests, and in GitLab I've accepted them and managed teams/projects.

no_protocol··on Encrypted messengers: Riot, not Signal, is the future
Yes, I set up my own Synapse server and connected to it from the official Riot app on phone and web. Worked fine. Also connected with another Matrix client and that also worked.
no_protocol··on One Way to Improve Your Coding
Check out this recent comment and discussion. User TeMPOraL describes a similar wish and gets many nice responses.

https://news.ycombinator.com/item?id=13020845

no_protocol··on Ask HN: What have you achieved in 2016?
My salary increased. Yay! (I think this was due to new legislation, not anything I did.)
no_protocol··on Web app that generates a cozy and realistic window view
I perceive the rain as being on my side of the window.
no_protocol··on Git Cheat Sheet
No need for so much work.

Simple commands can be accomplished by adding a git alias. More complex commands can be just a shell script. Put it on PATH with a name like `git-something` and now you can run `git something`.

no_protocol··on Ask HN: Best Monitor Around $300 for Dev Work?
I have three of the following:

Dell Computer Ultrasharp U2415 24.0-Inch Screen LED Monitor

I purchased them from Amazon.com:

https://www.amazon.com/dp/B00NZTKOQI

This is a 24 inch screen in the 16:10 ratio, at a resolution of 1900x1200. It has four inputs (2x HDMI, 1x Mini Display Port, 1x Display Port). I am very happy with these monitors. I like the 16:10 ratio as it gives some extra height compared to 16:9 screens.

← PreviousPage 4 of 8Next →