Better HN
topnewbestaskshowjobs
Log inSign up

nirui

2,085 karma · joined Jun 12, 2019 (7y ago) · 704 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 1y ago · link · parent

Can you call it "auto-running" when they it don't even bother to pack in an autorun.inf? (based on https://x.com/evapro30/status/1878635208582562113)

comment 1y ago · link · parent

> Chinese CEO that would behave like Elon Musk to disappear quite quickly

Why would you assume Elon Musk himself would immune from such "disappearing" if they pissed off someone powerful (like Xi Jinping or someone from other nations)? Have you see the man desecrate Xi Jinping or Vladimir Putin? If he likes to critic politician, why the redline?

comment 1y ago · link · parent

Ah... Jack Ma, My favorite example on why nobody should try to be a communist propagandist.

The man traveled to the US back in 2017 and publicly criticized how US utilized their tax incomes etc see [Link 1], then just few years later he lost half of his wealth for criticizing Xi Jinpin [Link 2].

So, apparently be a communist lapdog did very little in helping him gain political shield.

[Link 1]: https://www.cnbc.com/2017/01/18/chinese-billionaire-jack-ma-...

[Link 2]: https://edition.cnn.com/2023/07/12/business/china-jack-ma-we...

comment 1y ago · link · parent

> I don't even know who the CEO is

Ah, the benefit of having a Chinese CEO, they tend to want less public attention to themselves. "Man don't want to be famous, like pig don't want to grow big" as people say.

That, plus the fact BYD's founder/CEO (same guy) was not as flashy (reads "Unhinged") as Elon Musk.

FYI: https://en.wikipedia.org/wiki/Wang_Chuanfu

comment 2y ago · link · parent

While you sipping on that coffee, I was crouched down on the same roof surrounded by the awful sound of the incoming sporty zombies. I hate those things, I still do.

comment 2y ago · link · parent

8:54 Holy shit I don't even know one could do something like that, jumping back to the room and hide in complete safety, very smart.

Also, at 0:30, turning off that living place hazard is very kind of you. And you also saved Bob and Jim from being cut in half by doing that. Father Grigori might not like it, but he's crazy too.

comment 2y ago · link · parent

Are you mad because everybody is down voting your 42133422 post to shit, so you're down voting everyone who replied you? Don't do that, because it will only give you more down votes.

> it involves less moving parts

Every sane person who experienced a few server updates will not put out claim like that. One day you ran `apt upgrade -y`, minutes later 30% of your clients PHP website somehow went down? "less moving parts"?

In fact, Docker was invented to address this exact "it worked on my machine, why not yours" problem, by actually introducing "less moving parts".

> cutting corners just because "this will run in a container, so they can just add another HTTPS terminator" is just carelessness IMHO

Stop trying to misrepresent anything. No one is trying to solve a problem by wrapping HTTPS terminator with "another HTTPS terminator". Also, for real, how can you terminate HTTPS twice?

Also, from your another post:

> Traefik plus my service is two layers. My service has a DB hidden behind it, it's three layers. I put a VPN in front of it, and now it's four.

Why stop there, if you start from user's keyboard as a layer, then there's 5, and screen 6, then countless Internet cable and routers. Man! so many layers, it's crazy!

Also, that's not how you structure things. You have a reverse proxy, and then a service, 2 layers total.

And VPN? Oh boy you'll probably be surprised that Docker has cross-node communication built right in (https://docs.docker.com/engine/network/drivers/overlay/), so you don't even need VPN to connect to your database.

Alright, alright, please, just admit that currently containerization is not a technology you can correctly take advantage of, and then you go ahead and learn more about it. It will be an useful tool for you, as it did for many, I'm sure.

comment 2y ago · link · parent

> Now, I have to install that service as a container to isolate that, then need to add a reverse proxy on top, etc.

You can setup a Traefik (or some other ingress service) instance in a container and let it handle all the reverse proxying thingies for you. And if you do it right, the services should automatically register to the ingress service as they start up, and a port/HTTP route should be automatically assigned to them.

Do it in the old bare is harder and probably will always be harder, since you will be directly interact with OS facilities that was probably designed for something else than what you might try to run. Container management service such as Docker and Kubernetes abstracted away a lot of these complexities.

Funny enough, Traefik is written in Go... guess we've gone some (maybe not full) cycle on this one.

comment 2y ago · link · parent

If it's a recipe focused app, then maybe it should not be a "swipe daily" thing, as what's in the fridge right not maybe not matching what's on the phone, and it takes time and effort to buy and store food.

You probably need a food purchasing to-do list feature, and allow user to plan ahead of purchase.

But overall, it's a very nice idea with many potentials.

When I was little, the feeling of anticipating a good dinner always keeps me excited the entire day. Maybe this app can bring that feeling back.

comment 2y ago · link · parent

> one of the richest men in the world and he never once offered a tip.... he was always very polite and warm so I can't be mad

I bet Mr. Ballmer saved a lot of money from his "polite and warm".

I once watched one of TED business talk videos. In the video the businessman proudly claimed that from a very young age, he learned to take advantage of people's empathy towards him as a kid to get a better business term (or something like that, it was long ago I can't fully remember).

From that video, I've learned to reduce my empathy/emotional reaction when making decisions. Because you just don't know if the other side is manipulating you into making mistakes. Money is money, you pay what you should've, we'll discuss extra things after that.

If Mr. Ballmer never pay the tips that he should've, then he needs to pay more for the product (in the form of added on convenience fee, for example). Of course, if you failed in charging such fee, then that's your fault, for falling into the "polite and warm" trap.

BTW: "sensitive" not. But comments on Hacker News are often trended to demand stuff for free, including kindness which is independent of the original stuff. That's very foolish.

Today at least you have 15% 20% 25% choice to punish or reward people who directly serve you. If everything is 20% included in the price (oh, it will be like this, it always goes like this), then you just have to sit there and take in whoever got the altitude that day. That's not even how capitalism let alone democracy works.

comment 2y ago · link · parent

Maybe the report was overblown, but I found it amusing that CUPS related facilities is shipped and activated by default in a lot of Linux distros (including Gnome Fedora in my case). I've never printed anything on this computer and yet there is this `cupsd` process running as root and listening TCP port 631 on local interface.

OK, sure, the program itself maybe safe (enough to run with root while listening a local port that everybody uses this computer can access), but is it really THAT evil if you don't run it 24/7 and instead only enable it when the user is actively using it?

comment 2y ago · link · parent

> If the connection breaks while an ACK is outstanding, the sender will have no way of knowing whether the segment was received

The real question is, why this should be a problem that TCP must solve? TCP gives you a bidirectional waterflow-like pipe, and that's enough for you to create many useful applications. TCP never provided guarantee for correct delivery, that's your job.

For example, if a HTTP request is interrupted before the respond is received, the sender should assume the request never reach the server and try again with a new connection, while the server should mitigate duplicated requests (reject or return a successful code).

Well, maybe that's the point of the article, because many web pages gets confused if you send duplicated requests to them.

comment 2y ago · link · parent

I think it's more of a problem on the implementation side.

IETF RFC 8441 (https://www.rfc-editor.org/rfc/rfc8441.html) described a way to bootstrap WebSocket under HTTP/2.

That said, I don't know whether or not people are actually doing it in the wild.

comment 2y ago · link · parent

Are you talking about Server-sent Events (https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...)? Which can be implemented under HTTP/1 too.

HTTP/2 Server Push is another thing. It allows server to send additional related resources to a client without the client explicitly requesting.

comment 2y ago · link · parent

My "theme" input: "we both at the bar".

The output: "What's the most memorable or unusual conversation you've ever had with a stranger at a bar, and what made it stand out?".

Like... this question itself?

I'm feeling the creator of this project didn't spend much time on the prompt design. It's probably because Nodejs, React, Webpack and OpenAI API etc alone is already too much of a struggle to get right lol

comment 2y ago · link · parent

There is a problem on simple TcpForwarding: audition. Some SSH Bastion allows all input and output to be logged for later inspection and forensic while DIY solutions often just ignored it's importance.

Notice that I said "forensic"? Yeah, assuming some very unfortunate situation has occurred, police are called and there will be a full incident report on it, a DIY'ed apparatus without detailed logging records will make the deployer of that apparatus look really bad. This is especially true if you're a contractor, since your hirer might not fully trust you.

Also, at very least, you'll probably want to be mentioned as "the proficient and diligent from one of our employee/partner allowed us to collect detailed information on what the attacker has done on our systems" than "the lack of consideration on the use of remote access tool made it impossible for us to know what else the attacker has done". It's good for your resume.

comment 2y ago · link · parent

For the SSH case mentioned in the article, `ssh -R` trick should already resolve some one-time contingencies (assuming SSH connection is not blocked).

But if you find yourself requesting `ssh -R` too often, maybe just ask those datacenter people to setup a proper SSH Bastion for you. There are opensource solutions and enterprise-level ones (Teleport for example: https://github.com/gravitational/teleport), some also allows you to do audit and access control, which maybe important if you work for a enterprise client.

The DIY solution described in the article literally punched a hole in the firewall. The firewall people might not like it.

comment 2y ago · link · parent

I would argue it's not about censorship. Twitter's previous administration are also anti-censorship, and user can post already almost whatever they wanted as long as it's legal before Musk. And yet this problem starts to occur after Musk.

After Musk took over, not only he removed the moderation team, he also introduced many policies that encourages extreme content (well actually, it encourages encouragements, but extreme content draws the most encouragements, which is a well-know phenomenon). For example the blue checkmark for sell and encouragement based revenue sharing.

Current problem that Twitter suffering is the result of those policies from Elon Musk himself. A YouTuber John Harris suspected that Musk is doing this to mock something (see https://www.youtube.com/watch?v=WYQxG4KEzvo), but I think it's just incompetent/lack of understanding, a bullied child turned an asshole, it often happens.

comment 2y ago · link · parent

I don't think you should put Twitter on the list among the rest, because it's completely on another league.

I followed zero person on Twitter and has zero followers, currently on my Twitter feed:

    - Racist shit like: https://x.com/barrystantonGBP/status/1828414194548461801, https://x.com/WarMonitors/status/1828498157589938272, 
    - People got bombed to shit: https://x.com/Nadira_ali12/status/1828380272322322536
    - People got shot: https://x.com/SteveInmanUIC/status/1828409629329760769, https://x.com/datsjackedup/status/1828372131727720509, https://x.com/Haqiqatjou/status/1828518967578706415
    - People fighting each other: https://x.com/SteveInmanUIC/status/1828440833835573529
    - People got mutated: https://x.com/_NicoleNonya/status/1828212958742081803, https://x.com/Nadira_ali12/status/1828241017096614366
    - Also post about this news: https://x.com/soaringeagle555/status/1828335179141963944
This is just what I saw when I hit F5 on the home page and then Page Down. You can see those are posted recently, and have very high engagement. Just take look the View and Liked count on those posts I listed, those people are insane. Sure, humans are animals, big fucking deal, I'm there for cute cat videos, not fucking WikiLeak.

And it's not the worst day either, in those worst days, you saw people getting shredded (literal), animals eating each other etc with all the blood and graphic and more, in full HD. As well as, of course, political propaganda lies and misinformation, you know something can be summarized to "why we should kill them" and "why you should kill yourself", which is probably the most lighthearted content among those.

I mean, yeah sure, everyone have their freedom of speech to post shit like that, but WHY I HAVE TO WATCH IT? I never responded (liked, commented etc) on any of those. Why I'm keep seeing these? AFTER I've blocked hundreds of those accounts?

At this point, Elon Musk might as well turn his X.COM into an actual porn network, and it'll still be less harmful to the public than what it is now.

Maybe this also showed why a person with unaddressed mental problems should not be left in charge of anything social, just my guess.

comment 2y ago · link · parent

At the current stage, no one should be using a RISC-V machine as their main machine. That's why I mentioned Framework, because with Framework, if the investment was a failure, I can just get a X86 board and the rest is not a total lost.

However, even through Framework ships to Taiwan, importing product from Taiwan to China is not significantly easier than importing from the US. I still need to handle shipment forwarding and customs etc. Plus, my knowledge is, Framework discourages/bans shipment forwarding. So before I can get the product in an official and legitimate way, I'll just keep waiting.

The tablet mentioned in the main article while promising, it just can't interest me as a consumer. For it's starting price at $149, I can buy a secondhand ThinkPad X230t to run Ubuntu 24.04 and it's also a tablet (arguably the best tablet in the entire tablet history in the entire tablet universe so far).

Maybe the Chinese government should buy those tablets as work equipment to prevent their employees/personals from playing Microsoft Solitaire during work hours.

comment 2y ago · link · parent

Isn't DeepComputing also announced a RISC-V based mainboard for Framework Laptop? See: https://x.com/DeepComputingio/status/1826582426807927121. I was hoping this would enable me to get a Framework in China, since DeepComputing is a HongKong based company. Plus, a RISC-V based product-grade project is nice to try out, maybe.

comment 2y ago · link · parent

Pulling off a Jia Tan Attack while being employed by US cybersecurity firm is probably a guaranteed way to get FBI involved, unlike the real Jia Tan Attack which did very little outside of shocking the community (at least known to the public).

comment 2y ago · link · parent

    > What tipped us off
    > 5. Background noise during their interview that indicated other people speaking in an interview-like setting
The rest maybe false flags, but this really seals the deal. (or... maybe it's just a recent day in Starbucks. But I don't take the risk)

Also, how dare those people apply jobs for an US based cybersecurity firm? Don't they know what cybersecurity firms do? Go apply a Web3 companies, they also uses Vue/React all front-end kids stuff and some of them still got deep pockets.

comment 2y ago · link · parent

It's the most annoying thing I felt when I using software too. So in my own project, I tend to just keep the message open and wait for user to decide what do to with it, but then that's not a toast anymore.

I don't think designers should put anything interactive in an arbitrarily timed interface aside from "Dismiss". A toast is the best when it's displaying what is currently going on, not as a pop up dialog box.

The best design for Undo I think is to make it a dedicated button, like the one in the text editors. When user clicked "Archive", a Toast pop up and displays message "Archiving N entries, please wait" and then change it to "N entries archived. You can press Control+C or click [Undo Icon] to undo if that was a mistake" then the Undo button lights up.

Also, IMO the message format "Archiving N entries, please wait" should be a standard, it tells the user in a clear way 1) what the software is doing, and 2) what should I the user do. On the other hand, the message "Conversation archived" don't really provide the same value, since user already saw it happened.

comment 2y ago · link · parent

There are many great editors out there, some free some not. If a newcomer wants to break into the market, they need to add something new to the table. Understandably, in this day and age, it might be AI. Plus, they need to find a way to make money, offering collaboration and AI related feature might enable that.

I tried Zed for one day, without collaboration or AI enabled. It has some un-rounded edges, for example, the scroll bar in some window frame don't even work, but I can still get some job done with it. I use VS Code daily, Zed reminded me how a faster and snappy interface should make me feel. I hope Zed succeed.

comment 2y ago · link · parent

This thing just gets repeatedly uploaded, I guess deletion is not that useful now.

Put that aside, Eric Schmidt did told the truth (maybe except AI and NVidia stock thing) and offered the public a glace of how things actually work within the industry.

One important thing he mentioned was (after simplified) "just steal, and deal with justice later", which actually mirrors what Steve Jobs once said "Great artist steal". This should remind everyone, that if you want to have significant achievement in this industry, you at least needs to guard against thefts, because there WILL BE (maybe ALREDY are) people who comeout with a "be shameless or be dead" mindset after been educated by people like that man.

(Also, I found it quite funny that one of Eric's girl friend has probably took his lesson too)

comment 2y ago · link · parent

I'm not a fan of cloud too, but I have to admit that the networks of these big cloud providers built is just better than self-hosted ones. When they say they'll distribute your file globally, they mean it, as long as you pay of course.

But I would rather say, cloud is not for everyone. Especially in the case mentioned in the article. Think this: do you really REALLY need to distribute enlarged images globally at top speed? I bet most people just don't.

Same thing goes for "scaling", it's true the cloud can do that very well, but do you really need it that bad?

comment 2y ago · link · parent

In addition to "signing" the URL, you may also require users to login to view the original image, and serve visitors a compressed version. This could give you the benefit of gaining users (good for VC) while respecting the guests, as well as protecting your investments.

Back in the old days where everyone operates their own server, another thing you could do is to just setup a per-IP traffic throttling with iptables (`-m recent` or `-m hashlimit`). Just something to consider in case one day you might grow tired of Google Cloud Storage too ;)

comment 2y ago · link · parent

> Web app technologies became incoherent, prioritizing developer experience over user, and not making the former great either.

The main background problem is (industry) consolidation, because the interest for Web techs is not that hot anymore, the fewer people who still left to improve it might also used their positions to advance their own gains. Sad, but not unheard of.

To bring Web back to it's previous glory, it must create enough opportunities in itself to get people are re-interested. But if you observe how today's people uses tech product (i.e. on a phones), you'll know it's really hard if possible at all.

The phone platforms (Android and iOS etc) has optimized their services so well, the entire flow, from discovering an tool (app, service etc) to signup/purchase can all be done within just seconds. Unlike back in the day, where you have to search (with a search engine) and compare (by reading online reviews) in order to find the tool you need.

Similar thing is also happening on desktop software/OS too. Maybe in this era, web and desktop computing is no longer considered modern?

comment 2y ago · link · parent

I would argue that self-hosting hundreds of Nodejs modules might still be a better choice than the alternatives, specially since it give a easier time for bundling tool such as Webpack to workout what it needs to do in order to bundle the project in a better way.

And, let's don't forget creating a self-hosted CDN service to serve those bundles is not really THAT hard. (also creates job ops)

1
8910
24