HNHacker News
TopNewBestAskShowJobs

y4mi

2,780 karma · joined July 10, 2013

submissionscomments
y4mi··on Ask HN: Why is there no Django/Rails equivalent in JavaScript world?
I thought emberjs was a frontend toolkit and even looking at their webpage I cannot see any obvious way to connect to a database etc.

Is there something I'm missing?

y4mi··on Kape Now Owns ExpressVPN, CyberGhost, PIA, Zenmate, and VPN “Review” Sites
Honestly I don't see a 5 star rating as being euphoric/excited about the product.

The 5 stars are basically baseline if the product is good enough for the price it's sold at. Giving anything besides a 5 star is a massive FU to the vendor, as dropping below 4 is basically a death sentence for the listing. That can be warranted for sure, but only if there was something very wrong.

The biggest issue I'd see with your approach is how hard it's going to be to separate bots talking to each other from actual people writing these messages.

Most research on the matter seems to conclude that anything between 25 and 70% are written by bots.

The high range is because it's actually quite hard to confidently assess wherever a message is written by a human. Surprisingly not because it's hard to classify bots, but because people often write borderline incoherent messages too.

y4mi··on Container security best practices: Ultimate guide
I somehow think that their opinion was a little more nuanced then that.

And fwiw, Rob Pike definitely did make mistakes. Golang is a great language, but it's not perfect.

y4mi··on How Laravel Livewire works
The idea isnt new though, GWT has been around since 2006 (the ancient Java version of writing the frontend code in Java, which is then served as JS to the client)

I dont think we're going to go back to that anytime soon, the performance hit is just too big compared to a well written js implementation.

To be fair, Blazor uses wasm, which is significantly better then the cross-compilation of GWT back then. nonetheless, the performance (esp. time to first render) is just not good enough for a lot of consumer facing apps

It definitely has its niche though. Especially if you're able to cache the .net runtime that gets executed through wasm locally (PWA style)

y4mi··on Showing GUIs from Shell Scripts
> The only thing missing is that I can't close the tab using JavaScript when it's finished, so the user (usually me) has to close it himself.

how come? doesn't window.close() work for you?

    save(event) {
      ...take the action you wanted...
      window.close()
    }
    <button onclick="(event) => save(event)">
y4mi··on SHA-1 'fully and practically broken' by new collision (2020)
What is the thread model though?

I don't think it's possible to create a collision that's also executeable code which adds a security hole or anything.

So what exactly would they achieve with the collision?

And how do they push these gigantic files that have the hash collisions to a server? The upload time would be significant.

y4mi··on How I built a modern website in 2021
No, it's redirect.

You generally have two "servers" open, one on port 80, another on 443.

Request on port 80 get a http 301 or 302 to https://${server}${request_uri}

Usually both ports are served by the same daemon, but different vhosts/servers or whatever you want to call it

Rewrite would normally map /arbitrary/ to /something-else/ or similar things, generally transparently so the client never notices

y4mi··on Black Children Were Jailed for a Crime That Doesn’t Exist
> There's a pandemic and yet school is still in session and in person.

I thought the risk to children is super low though?

And if it is, wouldn't switching to a remote setting be way worse, because school at the lower levels isn't about teaching topics but about learning how to interact with people?

One or two years go by quickly as a working adult, but it's an incredibly long time for a child, having only online contact with people for such a long time will surely be worse for them, no?

y4mi··on Mozilla to put ads in Firefox address bar suggestions
> That has to include facilities too

does it? whats the remaining 25% (100 million) for in that case?

> It's hard not to read into your message the suggestion that you'd like Mozilla to outsource development to lower-wage countries

i do not want them to do that particularly. i just pointed out that not all 800 employees will be getting the $137,000 with a $54,800 bonus wage to point out that i'm being extremely generous in my calculation of how much they're likely paying to actual employees.

there are no conclusive numbers i know of, but if you just look at their open positions portal (https://careers.mozilla.org/listings/) you will surely agree that few of these will be getting that $190k...?

this is quite offtopic but what i find especially disheartening about mozilla is that almost all of its revenue comes from google.

every nation i know of is trying to build up their online/web presence, and yet we have only one mega corporation sponsoring web browsers to a significant degree. why isn't every nation like the USA, Canada, Australia etc each investing at least 10 million into a fund to build an open source web browser or contribute to one? why is every nation fine with that situation?

y4mi··on Mozilla to put ads in Firefox address bar suggestions
they generally get more then 400 million yearly revenue, though there was one outlier with over 800 million. this is money they generally don't have to pay taxes on because of their status as a non-profit.

mozilla employs at the moment around 800 people.

according to their FAQ

> https://www.mozilla.org/en-US/foundation/annualreport/2015/f...

> More than 75% of Mozilla spending is on people-related investments to produce the products and programs that support our mission: keeping the web open, free, and accessible.

this would mean they had around 300 million to spend on these 800 employees, averaging around 375 000 per employee.

Sr. Software Engineers get <$200 000, so IF all of their 800 employees were senior software engineers (extremely unlikely), their salary would be around 160 million, which is slightly more then 50% of what was available. a more realistic calculation would be around 20-30%, because not everyone will be getting SV wages. They've got global presence after all with offices SF, Toronto, Berlin, Beijin etc.

you'd have to verify in which unrelated projects by third parties mozilla invests and generally follow the money to figure out anything more, but that is simply out of scope of a hn comment.

y4mi··on Mozilla to put ads in Firefox address bar suggestions
It's not as clear cut as you seem to think.

A lot of people just think that Mozilla should be a nonprofit and not aim to primarily enrich it's CEO and leadership. This isn't the case at the moment, which is clear if you paid any attention to what they've been doing for the last few years.

Little of the money that's going to be raised by this will end up paying for engineers to improve or maintain the Firefox code base and the vast majority of it will end in the pockets of said leadership, and this is kinda displeasing.

y4mi··on Sqlfluff the SQL Linter for Humans
jetbrain IDEs have it configured by default for most situations, so its generally just an auto-format away if you're actually writing sql and not embedding sql queries in some other code.
y4mi··on Twitch source code and customer data has reportedly been leaked
your pastebin was deleted. too bad
y4mi··on Twitch source code and customer data has reportedly been leaked
Twitch is not porn. It's maybe a gateway to onlyfans, but you cannot have sexual content on twitch.

Even YouTube allows more nudity then twitch.

So yes, there are girls wearing bikinis and underwear on camera, but that's as far as it goes.

y4mi··on We need to take CO2 out of the sky
We could use both, but only one option is viable with current technology.

Existing carbon capture should not be subsidized because it's pointless. Sponsoring research into carbon capture would be good, but existing methods don't achieve anything wrt the climate crises.

y4mi··on Is this the simplest (and most surprising) sorting algorithm?
it doesnt work though

        def swap(lst, a, b):
            tmp = lst[a]
            lst[a] = lst[b]
            lst[b] = tmp

        def optimized_sort(numbers):
            i = 0
            while i < len(numbers):
                swapped = False
                j = i + 1
                while  j < len(numbers):
                    if numbers[i] > numbers[j]:
                        swapped = True
                        swap(numbers, i, j)
                    if swapped == False:
                        break
                    j +=1 
                i+=1
            return numbers

        numbers  = [1, 4,7,3,7,12,55,3,11,2,9,88,8]
        optimized_sort([*numbers]) => [1, 4, 2, 7, 7, 12, 3, 3, 8, 9, 55, 11, 88]

removing the break gets you the correct order: [1, 2, 3, 3, 4, 7, 7, 8, 9, 11, 12, 55, 88]
y4mi··on Web Scrapers Claim to Sell Personal Data on Facebook Users on a Hacker Forum
I agree that it's highly unlikely to be a deliberate action, but your listed mitigations would only help against security issues that impact the web services.

It could be the only way to go in the highly unlikely scenario that attackers are able to compromise the management APIs of various infrastructure devices like routers, baremetal servers etc.

These APIs are usually on airgapped networks though, which makes this extremely unlikely

y4mi··on New USB-C logos make picking USB cables, chargers less confusing
i stand corrected. it is indeed usb4.

the point i made is just as true though, as the announcement that thunderbolt switched to the usb-c form-factor is 6yrs old now. (and was even linked to from someone else in this thread!)

the downvotes just show once again how hilariously dumb the average hn-reader is.

y4mi··on New USB-C logos make picking USB cables, chargers less confusing
I'm speechless and stand corrected. $9 is incredibly cheap.

> The default card, supporting USB4, 20V/5A charging, and DisplayPort Alt Mode for connecting monitors, all on either side of the notebook.

I'm really looking forward to them finally getting more keyboard layouts, only reason why i havent bought one yet

y4mi··on New USB-C logos make picking USB cables, chargers less confusing
USB 3.2 is thunderbolt, so they've been the same for over 6yrs now.

tgaj probably just hasn't paid any attention to hardware in years but still feels like he should talk about it with confidence.

y4mi··on New USB-C logos make picking USB cables, chargers less confusing
I've never seen a laptop that didn't label the thunderbolt capable ports, are you sure that wasn't just you not paying attention?

Or do you honestly expect all ports to be thunderbolt capable? If so, you'd have to expect a massive increase in price for that

y4mi··on In-ears headphones fit matters a lot
I cannot say anything wrt tinnitus, but I do own some aftershockz headphones as well.

They're extremely interesting, mainly because they're so different but there are a few caveats... The sound quality is pretty lack lustre if you don't plug your ears somehow, especially the base is very shallow otherwise. It's a very entertaining experience when you literally plug you ears with your fingers and the sound quality as well as loudness increases, because the sound waves get reflected back by whatever you plugged your ears with. I generally use significantly more expensive headphones though, so maybe I'm just spoiled.

It really doesn't cut through ambient noise in my experience, it's more like background sound unless your ears are plugged, so noisy surroundings will make it impossible to listen to the headphones as well.

y4mi··on Deaf Man Who Couldn't Hear Police Commands Was Tased and Spent 4 Months in Jail
Doesn't the sentence say that the victims leg was broken? And their excuse for doing that was "he was resisting arrest"
y4mi··on Treating beef like coal would make a big dent in greenhouse-gas emissions
You're clearly misunderstanding what I wrote, which is likely because of my poor phrasing.

To phrase it differently:

Climate scientists generally think that cows are an issue, but I do not have the qualification to judge wherever Dojis claim (that they don't matter) has any truth to it, as I'm not informed enough to form an opinion on the matter.

Doji did not claim that modern agriculture isn't harmful, they just addressed cows specifically.

y4mi··on Treating beef like coal would make a big dent in greenhouse-gas emissions
They didn't say that.

> In practice, farms regularly use synthetic fertilizers. They might cut down trees to clear fields for animals. They use heavy, oil burning equipment. These, and many other practices, actually increase atmospheric carbon, and for that reason should be discouraged.

I cannot say anything wherever cows really are inconsequential wrt the warming effect, but it definitely goes against what's generally said by climate scientists.

y4mi··on The Reactive Monolith – How to Move from CRUD to Event Sourcing
it sounds pretty straightforward to implement with basic crud too, though. you'd just need an inserted timestamp field so that you can rerun the analysis with

    where inserted >= the_date
    order by inserted
y4mi··on Private censorship is not the best way to fight hate or defend democracy (2018)
They already were at that point, regardless of what people claim.

Facebook had the ability to paint whatever picture they wanted as truth by controlling what their users saw at what time. And they utilized it proudly long before COVID to increase engagement.

y4mi··on The GIL and its effects on Python multithreading
Your phrasing makes it sound like the GIL is a net-negative, and thats just false. There is a tiny subset of applications that would benefit from its removal, everyone else would have their performance reduced by ~40% (last attempt to remove it ended with a 40% performance penalty).

the project is generally open to PR to remove it as long as the performance doesn't suffer.

and i'll be honest: if you're writing code thats so performance critical that you're worrying about the GIL... why the hell do you use python in the first place? use at least a compiled language.

y4mi··on Sirubo: Packet filtering to block Google and Facebook tracking
> but there's nothing inherently immoral about advertising.

That's debatable or at least strongly depends on your definition of advertising.

moral advertisment could in my opinion only tell a person about something when they actually need that thing.

For example telling the person what kind of options are available if a person needs to travel from x to y.

Any other form eventually ends right where we are right now, with with scientists and psychologists trying to figure out how to manipulate people into doing things they wouldn't otherwise.

y4mi··on Europe’s energy crisis is about to go global as gas prices soar
Only in aggregation when everyone else changes their behaviour as well. Each individuals contribution is too tiny to have an impact, which is why we need a systematic change or legislation, so that its no longer a choice/personal responsibility to take action.

Kurzgesagt's recent video (sponsored by bill gates notes)e xpressed the issue much better then I ever could, so i'll only link to it here.

https://www.youtube.com/watch?v=yiw6_JakZFc

← PreviousPage 8 of 34Next →