HNHacker News
TopNewBestAskShowJobs

no_protocol

1,145 karma · joined September 16, 2016

submissionscomments
no_protocol··on Getting Started with Rust: Reference and Lifetime
Thank you for the informative link.

I have spent some time reading about rust in the past but rarely actually used it.

When reading about rust I am constantly bombarded with what I would describe as lazy terminology.

In this case, the same term, `lifetime`, is being used to describe several distinct aspects of a system. Between the link you shared, the "Rust Book" that is available online, the book "Programming Rust", the compiler's error messages, and all the various blog posts, there is a definite lack of clear language. Many of these sources are even inconsistent within themselves.

It seems like the clearest, most agreed usage is that "lifetime" in general is very close to a concept many other languages have, usually called "scope".

The problem starts when eventually all these sources start talking about these things that look like `'a`. Suddenly they're calling `'a` the `lifetime`. That's a poor reuse of the same term.

It appears the compiler's error messages are calling this a `lifetime parameter`. The "Rust Book" at one point calls them `lifetime annotations`. Many sources just continue calling them `lifetimes` over and over again.

It would be nice if someone could come up with very precise language to describe each aspect of the system so that anyone writing about it can communicate clearly.

This problem is not limited to lifetimes at all. As I mentioned above, almost every time I read about rust I'm finding this reuse of terms, misuse of terms, and lack of precision. It's quite frustrating and a major turn off.

no_protocol··on Getting Started with Rust: Reference and Lifetime
> the compiler will elide them for you

Surely the compiler isn't going to remove or ignore things that you typed.

You probably meant to say the compiler will allow you to elide them.

no_protocol··on Slack client for the terminal
You could try this libpurple plugin for Mattermost [0]. Should work fine with finch if you want it to live in a terminal or tmux session or something, or else Pidgin or Adium if you want a more GUI look.

Haven't tried this plugin myself though.

[0]: https://github.com/EionRobb/purple-mattermost

no_protocol··on GitLab Pages Security Issue Notification
At least when using the web interface, you need to delete the domain and then re-add it. I'm not sure if there is an alternate option via an API, never looked into it.
no_protocol··on GitLab Pages Security Issue Notification
Thank you for the warning. I have a similar setup and luckily just renewed my Let's Encrypt cert a couple weeks ago.

That's pretty brutal for anyone whose cert is expiring right around this time, though.

no_protocol··on HiFive – RISC-V-based Linux development board
The PCEngines APU2C0 is their most stripped down APU2 model, it's $99.

https://www.pcengines.ch/apu2c0.htm

Quad-core, 2GB RAM, 2x Gigabit Ethernet, m-SATA, 12V DC power

No audio port, no HDMI port, this model leaves off the GPIO headers, no camera, 2 total USB ports, 1 MicroSD connector.

It's about $99 and the case is another $10. I have several.

no_protocol··on Show HN: More feedback for Show HN stories
I really enjoy commenting on Show HN posts here but I can hardly think of a time where I would have responded with something as simple as an up or down arrow with one of these short responses.

Since this is mostly a UI improvement attempt, I guess you're basically just competing with https://news.ycombinator.com/show?

My biggest issue with this approach is it seems like a "poll" of arrows isn't really going to give enough useful feedback to be meaningful. If I've taken the time to actually review a Show HN, I'm not going to skimp out on the feedback phase by using a 1-click option. I'll probably have 3-5 paragraphs to write out.

Psychologically, it seems a bit rude to leave just a down arrow on someone's best effort project without explaining it. An up arrow alone seems fine. Of course, HN already has these built in.

If you want quick-hit feedback, can you also include a textbox for typing a quick note in addition to the short reasons already there?

A popup bar alerting about cookie usage is extremely off-putting to me and was almost enough to get me to just close out of the site before doing a review. If there is anything you can do to stop using so many cookies that you need to warn users of them....

The entire list isn't that long, can you get a deeper backlog? The /show page lists them chronologically which seems pretty nice to me since then a DevelopmentKitchen user can always pick up where they left off. You're currently sorting them some other way and it doesn't quite make sense? If I'm going to use JUST this site to monitor Show HNs, I'll want to know which ones I've seen and which I haven't.

Good luck!

no_protocol··on Status.im Invests $5M in Riot.im
I'm not sure.

But I'm also not sure they need to have any of your data.

The riot.im client lets you connect to your own Matrix server rather than an "official" one, so they're not really able to monitor your usage or know who you are unless the app is phoning home.

Maybe it's collecting analytics data? Would love to know. I only use the Riot.im app on mobile and use other clients for desktop usage.

no_protocol··on Status.im Invests $5M in Riot.im
I'm connected to Discord, Slack, and irc chats from Matrix/riot.im. It's working great for me after about a year of use.

I also invited some friends to join my Matrix server directly, but there wasn't much pickup yet. But that doesn't matter since I'm already connected to the places where people are via Matrix.

no_protocol··on Layoffs strike as Firefox's Mozilla reworks Asian operations
I would probably really enjoy working for a company like Mozilla where the motive/mission is Generally Good. I'm not easily motivated to go build some silly App or Website to make money for Investors....

But seeing that they're willing to just ditch a bunch of employees scares me away quite effectively. I'd have expected the company to have hired bright, talented employees who could be repurposed and moved to other teams.

I guess even if you're off doing Good Stuff that isn't really a guarantee that you will be treated as a long term investment rather than a gap plugger.

no_protocol··on 'Picasso', the Painter on GDAX?
> the price quickly falls and the bot lost a lot of money

If the trader already holds 1,000 BCH and is able to spend $800,000 to raise the price he can get rid of it at by $1000, he didn't lose money.

Doesn't necessarily mean it was a bot, though.

no_protocol··on Ask HN: Resources for learning about boot loaders?
I quite like rEFInd. It seems to be still getting regular updates and has definitely improved since forking from rEFIt.
no_protocol··on Using an IDE Hard Drive with a 8051 Board and 82C55 Chip (2005)
(2005)

Also, warning:

The link to "US Software" now leads to an adults-only website. I recommend not clicking this link, it has nothing to do with software.

no_protocol··on Show HN: A New, Clean Geolocation API
I wonder if you can change the pricing plans and language around them a little. What happens if I'm going along happily on the 2500/day plan and suddenly I get hit with a traffic spike and need 20,000/day for 3 days until things calm down? If you're going to use pricing buckets like this it probably needs to also come with an automated way to bump the plan if needed.

Someone else in the thread suggested Maxmind as an alternative. Their prices seem to be several times higher than yours. Can you double your prices? It seems really cheap. Too cheap?

Also, the location identified for me was off by 60 miles.

On your Documentation page you've used 8.8.8.8 as an example IP address. And 1.1.1.1, and 2.2.2.2... I'd rather see you use the IPv4 address blocks reserved for documentation by RFC 5737 [0]. That's what they're for! Unfortunately, they probably don't have any actual data associated with them so the examples would need to be fabricated...hmm.

And it looks like actually using one of those results in some output that does not conform to the format on your documentation page, so you'd best also add documentation about error handling.

[0]: https://tools.ietf.org/html/rfc5737

no_protocol··on Where People Spend the Most and Least on Rent in America
> In our new data study, we analyzed the anonymized data spanning three years from tens of thousands of verified loan applicants from Priceonomics customer Earnest to see how much people actually pay in rent across America.

The sample may be fairly large but it is almost certainly not representative. These figures only represent the subset of the population who would use an online financial services company AND actually did use it.

I would expect data from sources such as the Census Bureau to be much more representative of reality. Here is one visualization of such data I found [0]. These figures are much, much closer to the actual conditions I have personally observed in multiple states.

My guess is that the reported figures from Earnest miss large categories such as low-income and elderly people. The numbers are way too high for many states.

[0]: http://overflow.solutions/demographic-data/national-data/sta...

no_protocol··on N.Y. Times Scales Back Free Articles to Get More Subscribers
I haven't reviewed the policy recently, but I believe the digital crossword subscription is totally separate from the digital news subscription. So if you are more interested in the crossword, you can subscribe to just that without subscribing to news. And if you did subscribe to just news, it wouldn't come with the digital crossword.
no_protocol··on In hospital for 34 years
It seems like a needle piercing the skin between two ribs to a distance of at least 2-3 cm could become lodged in tissue inside and be pulled in completely when the rib cage expands on the next breath. Once the needle is inside the body, anything goes. The heart is only approximately 3-4 cm from the skin. The heart's beating could grab the needle and pull it even farther in.

A web search brings up several instances. This one [1] at least seems to somewhat confirm my intuition.

[1]: https://timesofindia.indiatimes.com/india/Docs-use-magnet-to...

no_protocol··on Stamps for UX and Product designers
It can be much larger or smaller than actual size and still be "to scale" -- the term indicates that all proportions within the image are correct, not that it is the same size as the original.

At a glance, it looks like the product actually is to scale so saying "not to scale" is a disadvantage and will scare away potential customers.

If it really is not to scale, it's almost worthless.

no_protocol··on Stamps for UX and Product designers
Edit: At the time I posted this comment, the title of the thread was a "Show HN", now it is no longer a "Show HN". The comments below were made specifically in response to a "Show HN" as helpful advice for the creator.

There's a payment box at the bottom left of the page that says "Test - No Grid" -- maybe this wasn't supposed to be there?

The wording next to the first two options "(Not to scale)" concerns me. Is there a reason you can't draw it to scale?

Or are you just trying to say that it is a scaled down representation?

Usually "not to scale" indicates that a drawing or other representation is a different size than the real object AND individual portions of the representation are not shown with correct proportions. In the case of a design tool, it seems very important that the stamp have proper proportions.

If it is just scaled down but has correct proportions, you would say "to scale" and/or indicate the scale as a fraction of the original size. If it is the exact same size as the actual object, you could indicate that as well.

If it is actually not to scale, what is the point? Any drawing you make in it won't fit in the actual product the same way.

no_protocol··on Vim plugins and config walkthrough
There are many ways, depending on what you specifically need.

For the most basic command that will probably work immediately, just start up vim with multiple files like so:

    vim -p file1 file2
This will open file1 and file2 in separate vim tabs.

But vim tabs may not behave the way you would expect them to coming from other programs. You might prefer to just list all the buffers within one window instead. There are many plugins dealing with buffer management on the vim wiki and elsewhere. Here are two I found with a Google search that look at a glance like they might work [0], [1] (haven't tried, just looked at the page briefly)

[0]: https://github.com/ap/vim-buftabline

[1]: https://github.com/bling/vim-bufferline

no_protocol··on Faster Growth Begins with a Land Tax in U.S. Cities
> Case A: ------- Undeveloped, small city. LVT kills any incentive for developers to purchase and build.

I'm not sure this is right.

There would be an incentive to purchase unused or underused land -- the price will be lower! Relatively high taxes will encourage the landowner to sell the underperforming property rather than hold onto it for years waiting for its value to increase (speculation).

There would also be an incentive to build -- the developer can build as extravagantly as he wishes without dramatically increasing taxes. Want to build a giant tower? Tax is almost the same as if you built a parking lot.

no_protocol··on Some problems of URLs
It was initially difficult to understand the motivation because the first half of the post failed to establish "the problem" clearly. I hard to read the entire thing before I had some idea who this was written for and regarding.

The second half clarified most of this but I think the article could do with some revision.

Under any URL-ish scheme, including any simplifications suggested here, nontechnical users will be unlikely to do anything except clicking and copy/pasting. So it really doesn't matter at all to them what the actual text string's structure is. It seems like maybe the article is trying to suggest "advanced" users would benefit from a better system.

Notice that in the screenshots posted, each browser varies somewhat in how it displays the current location. Regardless of the syntax used in a URL-ish string, the browsers can certainly improve the display of this important information.

What about something like this:

https://i.imgur.com/PTs55Tl.png

Where you only show "nonstandard" portions if they are present, and they can be given special coloring to help alert the user.

When the user interacts with that portion of the UI, they can paste in a URL like normal, just when it is displayed, the parsed version can be shown instead to help them see clearly what they are looking at.

no_protocol··on Being less friendly to advertisers insulates Snapchat from viral hoaxes
Snapchat is full of "news".

I just opened the app and swiped one panel to the right, here are some of the "news" cards I can view:

  The New York Times
  The Washington Post
  Wall Street Journal
  Daily Mail
  ESPN
  NFL
  NBA
  National Geographic
  Bleacher Report
  Wired
  BuzzFeed
  IGN
  VICE
  Mashable
  Cosmopolitan
no_protocol··on Ask HN: Does a good desk setup make you more productive?
This image [0] of the setup used for "The Mother of All Demos" [1], [2 - video] reminds me that the way we currently use computers and desks may not be the only way.

The keyboard and mouse controls are on a panel that is connected to the chair so they stay in the correct position relative to your body even if you turn one way or the other.

Just thinking about this video sometimes gives me shivers.

[0] https://cdn.arstechnica.net/wp-content/uploads/2015/04/Willi...

[1] http://sloan.stanford.edu/mousesite/1968Demo.html

[2] https://www.youtube.com/watch?v=yJDv-zdhzMY

no_protocol··on Show HN: Build circuit boards faster with computer vision
The Elements of Computing Systems book/course doesn't really cover electronics design at all. Terms like "resistor" and "voltage" aren't covered. It just asks students to construct some basic patterns using a software package.

I think the user is looking for something more like this:

https://learningtheartofelectronics.com/

That's a pretty big mouthful to swallow on your own, though. There are probably more gentle approaches available.

no_protocol··on Apple Open Source
Was there something new in here you found interesting? This site is posted quite often:

https://hn.algolia.com/?query=opensource.apple.com&type=stor...

The most recent time was just a couple weeks ago, there was a large discussion along with it.

The most interesting thing to me would be if someone would highlight all the patches Apple has added to these packages.

no_protocol··on Hn-Gopher: Hacker News Over the Gopher Protocol
I also had this happen trying to open a PDF in Firefox recently.
no_protocol··on “The moon blew up without warning and for no apparent reason”
I enjoyed this book immensely. My only complaint about it is that I knew ahead of time that there was a split. If I had been unspoiled I would have enjoyed it more.
no_protocol··on “The moon blew up without warning and for no apparent reason”
I think that is a spoiler, can you remove it?
no_protocol··on How to Quickly and Correctly Generate a Git Log in HTML
`gitweb` is a server that comes with your git install.

The `gitweb` web interface includes both a log and shortlog view for repositories. You can probably use those to some benefit.

This seems to be the source of the shortlog command:

https://github.com/git/git/blob/master/gitweb/gitweb.perl#L5...

← PreviousPage 2 of 8Next →