Better HN
topnewbestaskshowjobs
Log inSign up

selectnull

2,376 karma · joined Nov 25, 2010 (16y ago) · 453 submissions

I write software, mostly Python guy, have love/hate relationship with JavaScript, love exploring programming languages.

Email: sasha@selectnull.com

meet.hn/city/45.3267976,14.442208/Grad-Rijeka

Socials: - bsky.app/profile/https://bsky.app/profile/selectnull.com - github.com/https://github.com/selectnull

Interests: Networking, Programming, Web Development

---

Submissions

121.

European Parliament votes on eIDAS, averting threat to web security(twitter.com ↗)

2 points · by selectnull · 2y ago · discuss

comment 2y ago · link · parent

$ uptime

21:08 up 30 days, 23:09

M2 Air. Restart only after OS finally nags me down into an upgrade.

comment 2y ago · link · parent

Because at the moment someone would need to use mysqldump, if they wanted to be sure that this is browser only app, they would need to evaluate the JS source safety. And even if that was feasible (which it is not), they would have to evaluate it again on every use.

One does simply not trust a 3rd party (random browser) app.

Congrats on the launch, it's always great to launch something. If it's useful to you, happily use it. But don't expect others to do so.

comment 2y ago · link · parent

I don't know what browser you use, but when I do:

    const el = <p>Hello, world!</p>;
I get `Uncaught SyntaxError: Unexpected token '<'`. I even tried in several browsers, no luck.

comment 2y ago · link · parent

I might be wrong, but the way I see it is that Web Components give the basic blocks of writing those frameworks easier. Of course, most of those frameworks are older than WCs and they made their own choices about how to implement components and probably (I don't really know) don't use WC (or use only parts of it).

But, if someone wanted to make a new framework, today, I see no reason why they wouldn't use WCs. And let's not have an argument about JSX being a nicer developer experience, because sure it is nicer to use JSX and have autocompletion and all, but JSX does not run natively in the browser. WCs do. There are compromises.

comment 2y ago · link · parent

I really don't understand the hate for Web Components (this article is certainly not the first one to hate on it). To me, WebComponents are great (as far as anything related to the web can be).

Let's say you need a custom favorite/like button in your app? Cool, define `<myapp-like>` tag with `customElements.define('myapp-like', MyAppLike)` and `class MyAppLike extends HTMLElement {}` gives you a way to really make it work for you.

It works in any modern browser (I've been using it natively for 2 years now). It works in React, Vue, Solid, whatever... because it doesn't care for your frontend or backend stack the same way that you use `<div>` anywhere.

In my case, I'm using web components natively and with Lit framework. Very happy with the choice.

And yes, web components are not the solution for everything. Semantic tags? Nope, it doesn't work that way.

comment 2y ago · link · parent

Walkabout MiniGolf. I haven't played anything else since I bought that game, more than 2 years ago.

comment 3y ago · link · parent

As someone who has actively avoided LinkedIn, I've decided to give it a chance after all.

First, I wanted to disable all email notifications. For each type of notification event, I had to click and disable it (while leaving in-app notifications on).

Then I wanted to install mobile app. There is "Get the app" link which is cool but when you click it, you get a prompt to enter the phone number with this message: "Note: Standard SMS fees may apply. Your phone number will not be saved."

Do I trust you that you will not save my number? I don't think so. Do I want you to give you my number? Definitely not (fully understanding that they probably already have it by accessing the contact list of all users that they gave the permission to). Why don't you email me the link to download the app, if not just giving me the link?

LinkedIn and me have not started on good terms.

comment 3y ago · link · parent

13112221

comment 3y ago · link · parent

I use M2 with 24GB and in a nutshell, it's fantastic machine.

I do backend and frontend, most of my dev time is spent in terminal and browser. Before buying it, I was worried about being fanless and was considering the Pro. I'm so happy I went with the Air. It's light, the battery lasts all day with no problem: when I go for an all day out of office work, I simple don't even think about bringing the charger with me. And if I really need to charge it (didn't happen yet), USB-C works.

Docker is always on, occasional ffmpeg transcoding, some Rust compiling... the machine does not care.

comment 3y ago · link · parent

Few years ago I started working on a project and didn't want any heavy framework. I used customElements and liked it.

When the project grew enough, I found out about Lit and it was a clear winner for me. I've ported my custom elements to Lit with ease, it's a pleasure to work with.

Well done Lit team.

comment 3y ago · link · parent

Firebird will always have a special place in my heart. Such a wonderful database engine: small, fast and full-featured.

I've worked with it long time ago (up to v2.0 era) and loved it. After that, I worked for a company that used MySQL and hated every moment of it. Such a shame that a well developed tech is not a good enough reason for wider adoption.

comment 3y ago · link · parent

Let's all hope w3.org doesn't forget to renew their domain. Because if they do, all these links to "Cool URIs don't change" will suddenly become extremely ironic. We're safe at least up to 2029...

comment 3y ago · link · parent

I've been using difftastic as default diff for the past few months. Thank you.

It works well, and the only time I switch back is when comparing long strings.

comment 3y ago · link · parent

Something about CORS and Origin header.

comment 3y ago · link · parent

Rest in peace, Bram. Thank you for Vim.

comment 3y ago · link · parent

There is a diff tool called difftastic: https://github.com/Wilfred/difftastic

The idea is that it does not show diff based on text change, but on syntastic meaning. For that, it uses tree-sitter.

I think it still shows the trailing comma in the situation as shown in the article, but it's quite different experience than the standard text based diff.

comment 3y ago · link · parent

They require passport or some sort of ID on registration, and it is weird when compared to others. I was not happy with that part, but I am happy customer since (almost a decade now).

As far as I know, they do not require any ID when canceling the service.

comment 3y ago · link · parent

I had to try it and after back and forth, this was my prompt:

me: can you recite the litany in some other form? ChatGPT:

I apologize for the confusion earlier. Here is the complete Litany Against Fear in a different form, as a poem:

"Fear is not for me, it must not come,

Fear, the mind-killer, bringing thought to numb.

Fear, the little-death, in shadows cast,

With total obliteration's hand it grasp.

I'll face my fear, let it pass me by,

Through and over me, beneath the sky.

And when the fear is gone, I'll look, I'll peer,

Where the fear has gone, there will be nothing, I swear.

Only I will remain, only I to steer,

In the vast expanse, where once dwelled fear."

edit: linebreaks

comment 3y ago · link · parent

> If you’re signed in to a Google Workspace account, your admin may not have enabled access to Bard.

Well, I'm sure that when I enable it, I will be told that Bard isn't available in my country.

comment 3y ago · link · parent

Even worse: "This initial release of WebGPU is available on ChromeOS, macOS, and Windows. Support for other platforms is coming later this year."

I guess Linux support will come right after they ship Google Drive client.

comment 3y ago · link · parent

It's easy to downvote, but the question is not totally out of place.

On my machine:

* WezTerm 224 MB

* iTerm2 74 MB

* Terminal (default MacOS) 10 MB

And yet, I have read comments proclaiming that iTerm is bloatware.

p.s. I've been using Wezterm for more than a year, and I love it.

comment 3y ago · link · parent

According to the docs (https://dragon-lang.org/documentation#loops), loops may but do not have to use curly brackets around the body (it would seem they use C-style and Lua-style interchangeably).

I can't imagine the reason why would a language designer make this choice, but I would love to hear about it.

comment 3y ago · link · parent

Materialistic for Anroid.

comment 3y ago · link · parent

I also had a problem. Figured it out by submitting with dev console open and reading HTTP response. There were no messages for errors: required fields, pronouns had a min lenght and stuff like that.

Really like the idea and willing to try it out. Hope it works well. Good luck.

comment 3y ago · link · parent

Official Django docs do NOT say the `class Meta` comes __immediately__ after the fields.

The docs give the example (as linked by you) looking like that, but few chapters down you can find this:

The order of model inner classes and standard methods should be as follows (noting that these are not all required):

All database fields

Custom manager attributes

class Meta

...

comment 3y ago · link · parent

Terraforming Mars, with all the expansions. Not a new game, but one of the best nevertheless.

comment 3y ago · link · parent

Honestly, you're in a minority. Most Mac users install and use iTerm2, Alacritty, (my favorite) WezTerm, etc... So obviously, there is a market for terminals. Warp though, definitely not for me.

comment 4y ago · link · parent

I guess they said breakpoints would be gone because of css container queries. Nothing else comes to my mind.

Technically, that means media size queries will be gone, and not the breakpoints themselves.

comment 4y ago · link · parent

The Ruby creator is Japanese but if you want to start using it today, you don't even have to know who Matz is. The website with the documentation is in English and translated to quite a number of other languages.

It really is not the fair comparison and I get what the parent was refering to.

1
456
16