Better HN
topnewbestaskshowjobs
Log inSign up

nirui

2,090 karma · joined Jun 12, 2019 (7y ago) · 709 submissions

You know, I figured if I run this undefined behavior long enough, eventually one day that server will just jump down the shelf and fix the red black tree by itself.

[ my public key: https://keybase.io/nirui; my proof: https://keybase.io/nirui/sigs/oi8UKCZcYxKij-Pi43fDt35S1cHWmEKrFeMHZ4wW5Mo ]

Submissions

comment 6y ago · link · parent

Some information (https://github.com/atom/atom/issues/17060) indicates that the problem is related to `atom.config.set`. `linter-ui-default` is one plugin that triggers it.

So maybe it's not a bug of `linter-ui-default` after all. Sorry dear innocent man, my judgement is not always on point :)

comment 6y ago · link · parent

Maybe Microsoft helped killing Atom, but I don't think Atom is completely innocent by itself.

I was an user of Atom and later switched to VSCode. It took me few months of weighting all the options before I made the switch. That's how much I love Microsoft -- Very little.

Don't know if they got it fixed, but there was a design flaw in Atom: Bug inside some Atom plugin (`linter-ui-default` is one of it if my memory is correct) can reset the entire Atom into it's default setting, and it happens randomly (See link 1, 2 and 3).

This problem pisses me off so much and so many times. The last time it happened, I accidentally deleted my backup configuration `config.cson` when trying to recover the setting. Yes, it is technically my fault, but no, really, it is not. So, after seeing all my life flashed before my eyes, I decided to stop living ... with Atom, I had enough.

VSCode is generally a better editor when compare to Atom. I mean, VSCode has it own issues, sure. But for me, so far those issues are mild and usually got fixed quickly.

1: https://github.com/atom/atom/issues/14922 2: https://github.com/atom/atom/issues/14909 3: https://discuss.atom.io/t/atom-keeps-losing-settings/61617 (This one was in 2018 while the other two was in 2017)

comment 6y ago · link · parent

    Domain Name: SYMBOLICS.COM
    Registry Domain ID: 57551_DOMAIN_COM-VRSN
    Registrar WHOIS Server: whois.networksolutions.com
    Registrar URL: http://networksolutions.com
    Updated Date: 2020-01-16T08:51:05Z
    Creation Date: 1985-03-15T05:00:00Z
    Registrar Registration Expiration Date: 2021-03-16T04:00:00Z
    Registrar: Network Solutions, LLC
Probably renewed by an automatic system. Don't even think about it :D

comment 6y ago · link · parent

One question here: Do we have any scientific way to verify which strategy works? I been waiting for related research that can either proof or disproof the usefulness of the "Lock-down strategy" which China been using in the past couple of months and still not fully lifted.

We had little less than 30 total cases in our city with just over 1 million population, and the city was in lock down mode for few weeks. I can feel the slow rise of living costs during that period of time.

It's quite funny to see how people reacts to this, panic-buying all the face masks for example. Makes me think whether or not it's worth it to go full-out panic, because panic usually creates way more chaos/problems than the problem itself.

comment 6y ago · link · parent

> HTTP/3 is expected to use two to three times more CPU time than the earlier versions for the same bandwidth consumption.

I wonder the "for the same bandwidth consumption" is based on what. HTTP/2 with TLS I guess?

comment 6y ago · link · parent

I was having my 2 cents thought on the topic as well, my conclusion is: A shared blocking list (Or a blockchain system, hehe) can only be used as the last resort.

Systems like such already been developed, for example there is one for Twitter made by third-party called "Twitter Block Chain" (https://github.com/satsukitv/twitter-block-chain).

Yes, it can block "unwanted" posters and bots when a correct list is given, but it could also sometime block innocent accounts when somebody is been mistakenly added to the list (Or that somebody just simply changed their behavior for the better).

For such system to work, the maintainer of the list must be trustworthy, which is the hardest part and almost always falls apart.

Add to the injury, it can also be very hard for others to detect mistakes sneaked into the list, as the list may contains more than 10,000 items, makes it impossible to be completely verified manually.

And what to do if a mistake is indeed discovered? Maintain an unblock list to automatically request the user to unblock? Now user has to maintain their own "Yes I manually blocked this guy" list to counter act the automatic one.

My suggestion is: Yes, you can use a shared block list if there is no other way (The Twitter case). But since Mastadon is open sourced, maybe let's try something else first while still can?

Please give this a little thought: Can a system be designed in such way that makes it really hard for their user to accidentally come across some unwanted posts (without having to block the poster)?

comment 6y ago · link · parent

The logo situation is basically an aftermath of a joke in the Chinese programmer circle: Somebody made a PornHub logo generator out of probably their own boredom, and others got "inspired" by it and say, "They, I can do that too with even crapper code", "They I can try out that Vue/React/[Insert whatever front-end buzz word here] on this quick 'side-project'".

After that, you end up with many of crappy logo generators posted on the Internet.

Few month later: "HELP!!! I'm building a new project and I needed a logo. But I don't know how to design one".

Then here you go.

comment 6y ago · link · parent

Yeah somebody made a "PornHub Style Logo Generator": https://github.com/kasuganosoras/logo-maker (You can also found many of them online as well)

I guess that's where the logo was generated.

comment 6y ago · link · parent

Yes, a well-designed system can minimize the impact by for example lazy-load the font file or even `Font Face Observer`[0] them for manual hot swap.

But that is not the main point. The main point is: You are the one who's in charge of the user experience, not Google. Don't shift the responsibility to somebody (external service) you don't have control of.

The software works the best when all it's parts are predicable, and make it more self-sufficient can help.

[0] https://fontfaceobserver.com/

comment 6y ago · link · parent

I could add another point: A software should be self-sufficient (at least to a degree). When user opens the page, the page should not require an external service to function.

Imagine a user who can access your page but cannot access Google, the user then has to wait a long time looking at a blank page before the web browser stopped trying, that is some really really bad experience.

And your users won't blame Google for been too slow, they will just simply close your page, and try another search result instead.

comment 6y ago · link · parent

While the page itself is a fun joke, I must admit I've learned something from it.

Accidental learning for today I guess, Ha!

comment 6y ago · link · parent

Not with a webpage. But there are many two-part proxies supports Websocket or even HTTP as their back-end transport protocol.

The idea is basically:

Your SSH client <---SSH-Traffic---> Proxy front-end <----Websocket----> Proxy back-end <---SSH-Traffic---> Target SSH server

You can deploy the "Proxy front-end" inside the restricted network, and the "Proxy back-end" out side the network. After that, all you need to do it to config your SSH client to go through that proxy front-end.

There are many proxy software is capable of doing that, the GitHub keyword I believe is "socks5 websocket".

comment 6y ago · link · parent

> Unfortunately given the history of Microsoft & Firefox this was of course impossible due to Firefox being a derivative of Mozilla/Netscape

So, all that cakes was for nothing?

comment 6y ago · link · parent

This kind of tools is basically always less safe than straight SSH. This one specifically, by-passed the authenticator of your OS.

Yes, you can run `login` instead of a shell, but doing so require the tool to be executed as root, still sound bad.

I'd recommend to use a proxy that supports converting socket to Websocket(wss) and back, then you can by-pass the blockage from there. And since it's a proxy, it should not decrypt the SSH traffic.

comment 6y ago · link · parent

Probably because with C, you can control your resource better, which is important if your application is going to support low end router etc.

comment 6y ago · link · parent

Or, in my case, it tells me why I have to restructure my code :(

I mean, an early warning, before I actually made those mistakes would help a lot, if it can be done that is :)

comment 6y ago · link · parent

> 6. PWAs become more popular than apps due to lower cost to build and higher revenues.

I beg to differ. I think centralized online market service will become so dominant, there is no need for a small business to build and maintain any kind of app or website anymore. This is already happening, take look Amazon for retail, YouTube/Netflix for film/movie and Spotify for music as example. And the market for this is not saturated, so I'm guess there will be more and more online markets pop up in the future.

comment 6y ago · link · parent

I guess most of the people that you mentioned can be reached through Email?

Email is a very good system, completely decentralized and yet still agile. It is sad that the protocol (SMTP, POP and IMAP etc) is stopped advancing into today's world.

If somebody from IETF is watching, maybe consider renewing the email protocol standards to make it more modern (like what you guys did in HTTP/2: Binary protocol, multiplex, better security etc)?

comment 6y ago · link · parent

> I came to a similar conclusion. You should write every email as if it were public, because it's entirely likely that it will be

I think this is mainly governed by expectation and received benefits.

I would let my doctor see me naked, because I'm expecting the doctor will fix my problem if I agreed to do so, and I assume the doctor will respect my privacy by not leaking information about my physical characteristics and private parts with others.

But what if it's for example the owner of my favor restaurant asking to see the same? I don't think I would go there anymore.

comment 6y ago · link · parent

I think there is more to it.

For Internet company, user is what generates value. So it make since for those companies to grab their user as tight as possible especially when the competitors are doing the same.

On the same note, if a user just don't want to login or use the app, then the user is no value or even a negative value for the company. For that, a company can intentionally annoy (the actual word used is Convince) those users until they give in.

With all that been said, what I wanted to point out is, sometime, parasite can be successful. This is why we have many types of parasites in the real world. Automatically assuming "'parasites' will just die" is not going to help if the end goal is to kill all the parasites.

comment 6y ago · link · parent

I doubt it.

While you guys thinking Facebook, Twitter, Medium is bad enough, we in China is on another level.

Most top websites in China will "ask" (If pop a download window counts) user to download their apps if the user is on a phone, some websites are intentionally left dysfunctional to force user to use their app. And guess what's the first thing those apps ask you to do? "Please login(, and... maybe send ALL your information to us plus a secretly taken screenshot of your portrait)".

Since almost all of them are doing this, I assume it is a crucial strategy for them to keep their user active. Facebook Twitter etc maybe up to the same thing just not bold enough.

comment 6y ago · link · parent

About social features, wouldn't that be great if RSS itself can allow more interaction? For example: Allowing reader to post/view comment and "likes" directly on their RSS reader?

Read-only publishing system is less attractive than interactive ones, people love to talk about stuff.

comment 7y ago · link · parent

> In the age of Go and Rust, which already have a hard time finding niches

To make the time even harder, in that niche space, you already have decent enough languages like Nim and Zig etc.

So yeah, the market is really pretty saturated, I don't even have time and project idea to try them all, let alone bring them to work.

comment 7y ago · link · parent

That will be very sad if it's the case.

One reason of why I'm using Rust is because it's built by a group of people that I like, and Microsoft is not on that list.

However, I always keep a open-mind, I mean, I don't see anybody will be hurt if Microsoft become a direct contributor of Rust language itself. In fact, I could like Microsoft a bit if they did invest in Rust. I hope they do that <delete>instead of trying to fork things/build something alike (if that's the case here)</delete> (I watched their intro, their design is different than Rust and I somehow like what they did there).

comment 7y ago · link · parent

Oh I got it finally. I was wondering why the article does not mention how to actually _use (read/write)_ that buffer after it's been allocated other than just keeping it alive (and do nothing else).

Thank you for sum thing up.

comment 7y ago · link · parent

So the solution the article suggesting is to "Use a big buffer (and later slice it for each client(????)) instead of create buffer for each client"?

If above is true, then I have one question: What if some where down the line, somebody calls append on that buffer?

    bigBuffer := make([]byte, 1024)
    clientABuffer := bigBuffer[:512]
    clientBBuffer := bigBuffer[512:]

    clientABuffer = append(clientABuffer, []byte("Hello Client 2")...)

    // clientBBuffer will now be [72 101 108 108 111 32 67 108 105 101 110 116 32 50 0 0 .... even we didn't directly modify it.
Could be a downside.

https://play.golang.org/p/JiVKypGHQdR

comment 7y ago · link · parent

I can somehow relate to this. You know that Human Music from Earth Radio (1)? I only listened it once and now I can't get it out of my head.

Don't know why my brain thinks it's significant enough for maybe my survive(???).

I don't even like it.

1: https://rickandmorty.fandom.com/wiki/Human_Music

comment 7y ago · link · parent

So I guess the Generic Associated Types should be the next then?

I was trying to refactor one of my Rust project the other day and almost immediately got hit by the "No async fn in traits" and the "No lifetime on Associated Type" truck. Then few days later, comes this article: https://news.ycombinator.com/item?id=21367691.

If GAT can resolve those two problems, then I guess I'll just add that to my wish list. Hope the Rust team keep up the awesome good work :)

comment 7y ago · link · parent

It makes more sense now, but I still got questions.

You see, when you created an in-game location, you're inviting players to go there, regardless whether or not the location is popular in the real life. Dedicated players may take a detour from their normal day-to-day route just to hit that location to gain in-game advantages, which will generate data noise if the map software wants to use players data to improve their product for normal non-player users.

Also, let's don't forget products like Google Maps and Bing Maps are already collecting users locations. And in addition to the location, it also knows where the user was, where the user wants to go and how the user would go there (Take bus, drive, walk etc). That, is high quality data (Better than a Niantic game could provide) that generates profit directly.

All the reasons combine, I think I still have some doubts about that business model.

comment 7y ago · link · parent

Was a player, but to this day I still can't figure out why "Go there, take pictures, and 'capture' a location" can be THAT beneficial when it come to map software optimization.

I know the game certainly records my location which maybe good for discovering walk route, but other data they've collected seems (I guess) useless. How can picture of sculptures improve map quality? Kind curious.

1
2021222324