Better HN
topnewbestaskshowjobs
Log inSign up

nirui

2,087 karma · joined Jun 12, 2019 (7y ago) · 706 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 4y ago · link · parent

If I'm allowed to guess, Tor Browser has Meek built in and it includes a few services hosted on Microsoft cloud. As far as I understand it, it can be quite expensive consider the total amount of traffic those Meek server must relay.

However, I wouldn't consider it "censorship-resistance".

From reading their Technical Overview document, I got the impression that they put a lot of faith on Domain Fronting which might not be a good thing

> ... the censor cannot block the broker without blocking all of Google, or all of Amazon, hence collateral freedom.

Yeah, true ... true ...

comment 4y ago · link · parent

It seems there is a web page based version as well at https://bitbucket.org/grumdrig/pq-web.

I did not inspect the code, but I did played it for a little. The most challenging part for me so far is to remember to periodically poke the mouse so screenlocker won't kick in.

comment 4y ago · link · parent

However, there maybe another darkside of the story.

Almost a decades back I talked a game dev, asking him why the game that they released demands such high hardware requirements. The two reasons that he offered was: 1) It costs money to produce & maintain content such as Level of Detail assets to enable support for low end devices, and 2) People cannot afford good computer usually also cannot afford to pay for the game.

I think it's also somewhat fitting in this case: the industry only focuses on making money out of the people who can or potentially can afford the service, and left out those who can't. The user-end requirement is just an implicit barrier that allows companies to generate rainbow farts.

No, I'm not criticizing those companies that actually employed such dark patterns. After all, everyone wants money. However, these kind of practice can be costly as well in the form of 1) bad UX for paying users, and 2) higher cost of bandwidth (for both the user and the company).

comment 4y ago · link · parent

> - Minecraft servers are being hacked all over the world ! Chaos and panic ! :)

It sounded funny, but last night I was laying on my bed watching my last video of the day uploaded by a Minecraft YouTuber (xisumavoid actually) who mentioned the "Critical Security Issue". Back then my first reaction was "HA! suck on that Mojang!" without a single awareness of how bad things actual turned out.

I guess if you're a Java dev, subscribe to Minecraft news really helps (a little, maybe) LOL.

comment 5y ago · link · parent

Here is a simple tip/formula for you: Thumbs Up / View Count. The higher the number, the better the "Like" quality.

Base on my personal experience during the last few days, a "Fairly Good" video should give you something close to 0.06 on the metric. (reminder: the sample matters, you have to do your own numbers)

I guess now they have to remove the view counts too LOL.

comment 5y ago · link · parent

Of course it's horrible. It's a cheap copy of a Chinese app which itself is designed horribly. YouTube added the feature out of pure panic instead of try to create something better, the poor result is expectable.

comment 5y ago · link · parent

No, please don't interpret it like this.

No matter what the format Nix script look like, it's still a script language designed to address something that has already been addressed (or can be addressed with light expansions). The very idea of "Hey let's build this whole new thing that does this specific old task a little bit better at the cost of learning many new concepts (and making many mistakes)" is not good at the core.

I would rather say, if the dudes there really wants to create a new language, fine, but at least make it big. By that, I mean don't just try to build a tool that preforms the old task a little bit better (at cost of learning), make a tool that does new things (in other words, "enables new possibilities") far better. Perhaps after that, the toolset could become something worth learning for.

(Currently, there are many ways to create reproducible builds. And even if you have reproducible builds, it does not mean the build will reproduce the same runtime result all the time. All factors combine, the benefit you can receive from the toolset is just not great enough at the moment. Hope you understand my point)

comment 5y ago · link · parent

Agreed with your opinion about `Dockerfile`. The article had me for a second until I saw the script code. I mean, my time is not infinite and I rather spend it to do things that are really important to me, not learning to write "yet-another build script" for a small system. So unless it's mainstream already, I'm not going to touch it.

`Dockerfile` is light enough for me to not hate it too much.

For the `docker-compose.yaml` story however, I can offer one reason: when you have so many variants(versions), so many setting options and so many data types (array, object, string etc), it's hard to find references to write one from scratch (have to read multiple documents to get it right). Your knowledge on docker command-line parameters does not translate to `docker-compose.yaml` smoothly(some option changed names, some don't work). And sometimes, some function works differently under docker-compose.

comment 5y ago · link · parent

If we're really going for the detail.... well, my neighbor is a contractor, he owns multiple almost-dead power drills with unlimited supply of dull bits (enough to get the door open). If that's not an option, there are few hardware shops within my walking distance where I can by a new cheap power drill as well as a cheap lock. And if I really messed it up, there is a market for home renovation supplies not really far, they sell doors with comes with lock.

Now that I thought about it this deep, I think I can be a locksmith too with all the nature advantages that I clearly have here. I don't even need a power drill, a battering ram is well enough for my job. And if somebody call me to open their door, I'll just ask which color they would like for the new door that whey about to own.

comment 5y ago · link · parent

I would probably (mentally) look down on the locksmith if he/she just going to drill it out without trying anything else first. I own a power drill too and I know how to use it to break a lock myself with zero knowledge on how lock works (for some weak locks, even a flat head screwdriver is enough to get it done).

On the other hand, if the locksmith clicked my lock out in just 30 seconds, I would probably ask him/her to sell me a better (and sometimes more expensive) lock based on his/her professional opinion.

comment 5y ago · link · parent

> Javascript doesn't have the size of build-in library. Golang is compiled and limited, blank spaces/tabs will kill a Python program. Ruby /rails is slower.

I have once heard an ancient prophecy (I think it's Greek) that says "Debating around PHP online summons the ghost of the dark behind your back" or something like that (I don't speak Greek, sorry).

In the Client/Server world now days, the most of the time you only need one or two languages, one running on the Client side (JavaScript for example) and one running on the server (**, Go, Java, JavaScript etc).

In that setting, JavaScript comes with the hard advantage of both-end compatibility, that gives you something like Server-side Rendering, which no other backend-only language could do, at least not "natively". If you have a foundation this good, people will build the library themselves when the language/runtime don't have it built-in. (the same is true when it comes to Swift/Dart/Kotlin. I bet there is someone/company out there writing both their app and their backend in Swift/Kotlin)

For "backend-only" languages, it's largely down to personal/team preference. Some needs performance, some wants "write-friendly" (contains many factors). But the problem is, the market now days is saturated with better options that also do more things (often in a better way). When you bring all the options on the table, then suddenly that-language-the-name-we-shall-not-say started to look way less attractive.

It's just that, comparison/competition kills things, no elite required.

comment 5y ago · link · parent

Speak of G+, I personally really love the idea: You have a personal space to post private stuff, you can set permission on who can read and who can't, and beyond that, G+ supports group where it functions like a forum where you can do your forum stuff and meet new people (Yeah... just like Facebook).

However, the implementation was rather poor. It's slow to load (under my network), it's unfriendly for long contents, it's almost impossible to have detailed discussions, and you still need multiple accounts to separate your personal and professional profile (Just like... you know, Facebook).

I'm not actively using Mastodon, but I'm a fan of their general idea where they're trying to let the information to flow from one site to another. However, if I got it right, Mastodon is trying to be "(just) another Twitter" if you look beyond the aspect of decentralization.

Now, if I put my Hat of Imagination on, personally, I think what the Internet really need, is a place/service/network where people can gather, explore and then got inspired. Those "web 1.0" forums are designed to do exactly that. So if it was me who's designing these kind of system:

- I'll put discussions related features as the utmost priority, and follower&following comes the second or third

- Not just a "forum-like" flat page discussions, I mean a structured discussions that lets you trace all conversations to figure out "Why we're talking about this now?" quickly and allows you to filter out "non-important" replies, that's the core of the system

- The "Twitter-ish" feature can be build on top of that discussion system

- I'll make it so everybody can host the system. You can put it on a 128MB memory router for you and your family, or a cluster of servers to provide service for the public, all the same good experience

- The systems exchanges data automatically between sites based on user interactions and follows etc. That also means the user can read contents from remote sites all on their local site.

comment 5y ago · link · parent

Not sure why you would think it'll reach geopolitical level, a good product is a good product.

But, based on the description in their Chinese page, the service is not self-hostable (???). If this is true then there is no real reason to use such service since there are many better alternatives (Notion for example).

comment 5y ago · link · parent

> In short, our experiment data showed a reduction in dislike attacking behavior

"attacking behavior"? This tone is giving me some weird feelings.

Here is a constructive opinion: Add it as an optional feature. Let the publisher select "Display both like and dislike counts", "Display only like counts" and "Don't display both count". YouTube has already implemented the "Display both" and "Hide both" option in their "Studio"/video manage page, they just need to add a new one.

comment 5y ago · link · parent

I started to heavily using vim since the last few months because writing code through SSH is very attractive for my current situation.

For me, learning vim is like learning an foreign language, a few hundred words (or few hotkey/:commands for vim) can get you started, but it's not easy to reach the level of native speakers, and some old rules in your language (for example, HJKL keys in vim vs the "natural" arrow keys) will interfere your progress.

Maybe I'm going to piss many people off here, but vim is not an user-friendly text editor. An user friendly editor should pop some kind of prompt when I pressed the first g/G key and show me what I could press the next, not telling me to read :help (which probably has the volume of a dictionary at this point).

Based on my 2 minutes with Micro and the information I read from it's `help defaultkeys`, the size of it's hotkeys are more healthy and manageable. So that's a plus from me.

comment 5y ago · link · parent

It's not a preference to Google, but I already have an Google account and it's in my Thunderbird. So it's simply the easiest way for me to use email, that's all.

comment 5y ago · link · parent

While I agreed that ProtonMail is not completely truthful about their claims on encryption, they are one of the few vendors out there who don't completely block user registration when the user is using TOR.

That means a ProtonMail account can be created completely anonymously. I call that an advantage over some other options if you want to create secondary/throwaway accounts (for example, you want to register a small forum and you don't truth their admin).

I personally won't recommend ProtonMail as someones main email service. If I want to send anything secretive such as sharing a password, code etc, I'd rather send GPG encrypted email via Gmail.

comment 5y ago · link · parent

> ... There is a more intriguing possibility, however. Work that is largely done remotely may be more efficient compared with an office-first model.

I don't think in-person real-time communication is always effective. No, I personally think it's one of the least method of communication that can happen in an office environment when the topic gets slightly complex (that is, if the topic is complex enough for you to write a memo about it).

For those topics, I love to communicate with some "written" form, such as in an email, posts etc. Because doing the "writing" part allow me to conduct some research and analyses on the topic (usually took 10 minutes), which will in turn increase the quality of my reply.

If you standing right in front of me and asked a question that require a complex answer, then my reply will probably make me look like an idiot, because I might not able to discover all the information that I need to process and output within 30 seconds. Not very effective in my opinion.

comment 5y ago · link · parent

A file named "index.js", when you open it, the tab says "index.php", and the file contains HTML code.

A comedy at it's finest.

comment 5y ago · link · parent

Maybe try streamhut: https://github.com/miguelmota/streamhut

Of course, both of them are not ready for security-related tasks such as terminal sharing. So treat them like a "console" streaming service there you broadcast your terminal to the world.

Streamhut can be made more secure with some configuration tricks, namely, don't expose it's TCP port to the public, instead, only expose it's HTTP service. Then you can create a back tunnel (with SSH -L for example) to feed data into it's TCP port in a safer manner.

However, I'd imagine a better option is to beg miguelmota the author to add support for websocket in the cli client, that way the feeder connection can be protected by TLS rather than just a raw TCP.

comment 5y ago · link · parent

> Except that when you are looking for kids, and to a lesser extent elderly people, they become afraid and hide.

Then maybe let each drone carry a Teddy Bear or/and a Rainbow Pony. I mean I would totally grab the wild drone for it's micro controllers.

Now, the truth is, we don't know how people would actually react to drones. Maybe a kid would hide even deeper, but that's an edge case here. The important thing is, this tool can generate real benefit for a rescue operation that no other tool can provide. How to use it properly is the responsibility of the rescue team.

Another thing is, with information provided by drones, the search and rescue operation itself can become safer. Which also enables a load of new possibilities.

comment 5y ago · link · parent

Let's don't get ourselves lost in the maze of arguments here.

The big picture is, if you give the rescue team a good tool, their success rate will then increase, sometime by a big number.

There is a documentary about children missing in the woods called Missing 411 (https://www.youtube.com/watch?v=zEA9-mEOZtA). If you take look their search efforts, it is not hard to realize how many weight can be lifted by an automatic area scanning system.

In the documentary, the search and rescue team had to walk step by step doing almost blind searches. If you have an automatic system, you can just launch a scanning array of say 50 drones, very quickly the data will come in and provide indications on where the search effort should be prioritized.

Bottom line is, such system is better than the current (human manual search) one. If the technology can be properly developed and utilized, it can help save more lives.

comment 5y ago · link · parent

Maybe a controversial opinion, but I think it's a rather reasonable trade-off compare to say left someone dying in the woods.

comment 5y ago · link · parent

Huh. Thanks for the update. My information was still in the "媒体报道显示,有高新区万达广场工作人员称,已报警处理,疑似同行恶意竞争干扰所致" time frame.

comment 5y ago · link · parent

Yeah, as if everything come out of China is wanting to kill you. From robotic space arms to toy drones. It's kind weird to have that kind of thoughts here, really.

That been said, the actual reason for cities to use these drones is surprisingly simple: China banned firework show few years ago for environmental reasons, so cities use drones as alternative to celebrate October 1 which is China's national day and the longest holidays (the Golden Holidays).

See? Just that simple.

Also, using drones is a smarter choice: Not only it's eco-friendlier, but also cheap, fixable and safer compare to fireworks. You can even put ads in the sky to cover part of the cost after the show is over, it just make more sense.

In this very case, I think the drones are doing fail-safe landing maneuvers, probably due to lost of control signal. Reportedly the drone company has already called the police on the suspicion of sabotage.

comment 5y ago · link · parent

The ecosystem of secure proxies are pretty advanced in China (Thanks to, you know ...), you can setup a home router that selectively reroute traffic through different proxies automatically and transparently based on latency, target IP and domain etc.

Since Airbnb is international, I guess if someone (assuming it's a small private operation) is offering rental service there, they might as well setup a proxy for foreign guests.

> Some solutions would sort of work, but unreliably, with extremely minimal bandwidth and would suddenly stop working after some time

The sad part is, anti proxy technology is also fairly advanced. Most of well-known VPN protocols such as OpenVPN, AnyConnect, IPSec and Wireguard etc can be identified via traffic analyze, once GFW detects suspicious traffic, it may launch probes to further investigate the service. That's why Chinese people use Shadowsocks, Clan and V2Ray, those proxies are designed to protect itself from these situations.

Shadowsocks and V2Ray require some know-hows to correctly setup. Notably, Shadowsocks requires AEAD ciphers to be relatively safe, and you should never run Tor through it due to flaws in it's transport protocol. As for V2Ray, avoid VMESS protocol since it's is known to be vulnerable to probe attacks.

comment 5y ago · link · parent

I don't think it would be that easy.

Think how the maintainers of third-party package will maintain their package after this: before, they just need to target the one and only `atomic` (or any other package mentioned in the GitHub discussion), now they might have to target both `atomic` and `atomic/v2` just to support generics.

I really hope they could come up a cleaner solution than this.

comment 5y ago · link · parent

The funny thing is, while advertising all of that, they're not providing free SMTP service that actually allow you to send properly GPG encrypted emails to protect your privacy.

So for me, ProtonMail is basically a web email service, a nice web email service to be completely fair, but without perks. I will never call them an "encrypted email" service.

1
171819
24