HNHacker News
TopNewBestAskShowJobs

ayushnix

499 karma · joined April 15, 2021

https://ayushnix.com
submissionscomments
ayushnix··on KeePassXC 2.7.0
> The only issue for me is the autotype support on Wayland

Are you using a wlroots compositor like sway or GNOME/KDE?

ayushnix··on Random number generator enhancements for Linux 5.17 and 5.18
awesome work, thanks for eliminating the confusion between /dev/random and /dev/urandom.
ayushnix··on uBlock Origin becomes top addon on Firefox
I wonder how the post manifest v3 world will look like and how much it'll affect uBlock Origin on Chromium based browsers. Even now, several features, such as CNAME uncloaking, happen only on Firefox.
ayushnix··on Cron best practices
Can I implement something similar to systemd transient timers using cron jobs?

https://wiki.archlinux.org/title/Systemd/Timers#Transient_ti...

In addition, I also want to see the status of the transient cron job and see how much time is left before it executes, like `systemctl list-timers temporary.timer` would show.

ayushnix··on Some tiny personal programs I've written
This may not be as impressive but I wrote a script to eliminate one of the primary roadblocks I faced when I moved to Wayland on my Linux desktop — a script to copy and autotype password store and gopass data, kinda like rofi-pass

https://github.com/ayushnix/tessen

ayushnix··on Some tiny personal programs I've written
YouTube is one of the few websites which I wouldn't trust to have a video that I watched today be available tomorrow. The reason can be anything — local geographic censorship, copyright strike, uploader removing his own video, video becoming private, lots of other things I can't recall right now.
ayushnix··on The perils of the “real” client IP
> Do you not have the ability to lease a static IP from the ISP for a nominal amount?

and this is why IPv6 isn't coming anytime soon, at least not within the next few decades.

ayushnix··on No_color
> I can't even think of situations where the colors chosen by a developer were so bad I wanted to disable them completely.

PuTTY comes to mind immediately upon reading this sentence. It is used more often than I like.

https://www.chiark.greenend.org.uk/~sgtatham/putty/

The default colorscheme is extremely bad and if you use Vim to open log files, the comments are unreadable because they're colored as dark blue on a black background. Most of the other colors are unreadable as well. The widespread usage of PuTTY in my organization is the reason I have never written scripts or programs with colors, even though colors would help a lot of people differentiate between benign, warning, and error messages.

ayushnix··on No_color
> Why is this so annoying? It's a very common workflow that allows you to customize how an application behaves and simplify how you run it.

I don't know about others but I'm not a fan of monstrosity like this

https://github.com/ayushnix/dotfiles/commit/2eb66eff8a03a5bf...

If I stuff it into a wrapper script, I'm essentially trying to emulate config files, which is what should've been used in the first place. This is why I prefer using config files rather than creating uglier and harder to maintain wrapper scripts.

> I'm a big fan of following the 12factor[1] approach.

I guess if you don't want state associated with your deployments, environment variables are better but I would still argue that they aren't manageable when their values become large as shown above or if their numbers start approaching double digits because when that happens, you're essentially emulating config files anyways.

ayushnix··on No_color
Environment variables are fine when used for things that usually don't change once they're set. For example, XDG_CONFIG_HOME or GOPATH. They are, however, absolutely awful when used to configure values that will probably change inside a session. A good example is BEMENU_OPTS from the bemenu program, which is used to change colors, font etc. Should I relogin into my session just to make a program use dark mode colors?

https://github.com/Cloudef/bemenu#environment-variables

In such cases, environment variables lose their intended purpose and they need to be stuffed into wrapper scripts or overridden on the command line before executing a command, which is extremely annoying.

ayushnix··on An enhancement request I submitted to Bugzilla 15 years ago was just closed
Maybe vertical tabs would work for you? If you want something simple and fast, Tab Center Reborn is nice. If you want something more with more features, Tree Style Tabs is good enough but it is somewhat slow and and hard to configure.
ayushnix··on NewPipe: A lightweight YouTube experience for Android
> then I question why you'd want to go through the hassle of this over just paying not to see ads

Can I set the YouTube app to open directly to my list of subscriptions rather than the YouTube home page?

Can I hide the thumbnails from all videos on the YouTube app?

Can I skip annoying sponsored segments? (I usually end up blocking the entire channel which has annoying sposnored segments on my browser with BlockTube)

Can I turn off comments?

Can I turn off suggestions for videos to watch?

If the answer to any of these questions is no, I don't wanna use the official YouTube app, even if there are no ads after paying for Premium.

ayushnix··on I have no capslock and I must scream
> The subject looks to be the absence of competition to Chrome

The presence of a proprietary web browser that only works on a specific platform restricted to a certain class of individuals which can afford to be on that platform doesn't really add much to the competition.

> another reason might be handing Google de-facto control over standards

I don't see Apple having that control to be any better although from what I've been reading about web browser engines and the underlying technology, I doubt anyone else, besides a few behemoth tech companies, can take any sort of control. The web is too far gone for that.

ayushnix··on The next best thing to OLED is getting cheaper
Got it, so I should get the panel, the driver, and an eDP cable (to connect the driver and the panel?) from a single seller.

I assume that the use of 3D printer was mentioned to build an enclosure for the panel, like for using a VESA mount?

ayushnix··on The next best thing to OLED is getting cheaper
I've been going crazy and frustrated with the lack of HiDPI monitors on the market which can do integer scaling (27 inch 5K, 32 inch 8K) and here's a website that lists panels for such monitors.

I have no idea how to go about making a custom monitor but if it's feasible to solve my problem, I'm willing to learn.

So let's say I want to buy the LM270QQ1-SDA2, should I order that panel from an e-commerce website? Or should I find a monitor with that specific panel? Why is 3d printing needed here? Any article or detailed guide you can point me to?

ayushnix··on I have no capslock and I must scream
inside its walled garden.
ayushnix··on Things that used to be hard and are now easy
I can think of couple of reasons for it

- they get money for selling static/public IPv4 addresses right now and they wouldn't want this money going away when IPv6 arrives

- can't imagine how the world will look like with shitty insecure routers everywhere and everyone having a public IPv6 address, ISPs might provide NAT connections to protect non-tech people

If I'm not mistaken, one of the largest ISPs in my country has begun to roll out IPv6 but it was either broken the last time I checked or it had some form of NAT on it.

ayushnix··on Things that used to be hard and are now easy
CGNAT will be here for the forseeable future and I wouldn't be surprised if ISPs end up deploying some version of CGNAT on IPv6, assuming they're somehow forced to use IPv6 in the future.
ayushnix··on Nix: An idea whose time has come
> Yeah, the hard part is maintaining a file just to have the tools you want

I'd be okay doing that to install packages but what I don't like is the N number of ways to install packages. Do I use nix-env? Do I use the new nix CLI? Do I make an entry in configuration.nix? Do I use this thing called flakes which is marked as experimental but almost everyone seems to be onboard with it?

There's no central and definitive source of documentation either. There's the official NixOS website, nix pills, nixos.wiki, blog posts from prominent developers, and other sources I don't remember.

Seems like a fragmented mess to me.

ayushnix··on Nix: An idea whose time has come
> I've never really understood the use case for nix-env.

If that's the case, perhaps `nix-env` shouldn't be mentioned as the command to use to install packages on search.nixos.org?

I checked the NixOS manual right now but the last time I did, it instructed to use nix-env to install packages. The declarative package management using configuration.nix wasn't highlighted before as it is now.

This is exactly the kind of thing the parent comment mentioned. I'm not willing to go through these kinds of papercuts to get whatever NixOS has to offer with its radical changes.

Oh, and the nix package manager is still unbearably slow. It reminds me of my (unpleasant) time using dnf. Once you're used to package managers like apk and pacman, its an extremely jarring experience to stare at your screen and wait for a package to get installed.

ayushnix··on OpenVi: Portable OpenBSD vi for Unix systems
I've been using busybox vi as my root editor but it doesn't have secure mode which disables shell access within vi. It looks like OpenVi and nvi2 have them. Are they preferable to busybox vi if I want better security as a root editor?
ayushnix··on Text Rendering Hates You (2019)
I don't think those displays are available for retail purchase as an external monitor if someone doesn't want to use a Mac, at least not where I live.
ayushnix··on Text Rendering Hates You (2019)
I've resigned to cynicism when it comes to certain things such as IPv6 and integer scaling HiDPI monitors. I doubt I'll see either of them for the next decade or two, perhaps more.
ayushnix··on Text Rendering Hates You (2019)
> I'd rather have 1080p 144hz than 4k 60hz

If you do gaming all day, then yeah, sure, go for a million Hz. I work with text on my terminal all day and fonts on a 24 inch 1080p screen look like crap compared to 27 inch 4K.

Besides, I was calling out displays with 240Hz or 300Hz+ which seem stupid but I guess if people will buy it thinking that they'll be able to make more kills in CSGO, monitor OEMs will make them.

ayushnix··on Text Rendering Hates You (2019)
> The fix, honestly, is moving to 200% resolution screens (such as 4k 24" replacing everyone's 1080p 24", or 2880p 27" replacing everyone's 1440p 27")

I'd absolutely love to do that but there are only 2 or 3 monitors available on the market right now which would work well with integer scaling at 4k or higher resolution. The Apple Pro XDR, Dell 8K, and LG 5K monitors are the only ones that come to mind. There is an old 24 inch 4k monitor from LG but it wouldn't be a wise decision to buy it at this point.

It seems that all the progress in monitor hardware is happening towards increasing referesh rate to unreasonable and unnecessary standards.

ayushnix··on Discord is a black hole for information
> Machine specs?

A ThinkPad with Ryzen 3500U, 16G RAM and NVMe SSD.

> I think you'll find that Discord is lightweight, relative to the majority of users.

Sorry, Discord is nowhere near the concept of being lightweight. I use both web based and desktop IRC clients and none of them make my laptop sound like it's about to be launched into outer space. Sure, they may not have all the features that Discord offers but both of them let me talk to thousands of users, which is what I expect.

Again, third party clients would definitely help here but Discord is hostile towards them. Spotify is a good example in this case. Their website is just as sluggish but at least I can use several desktop and terminal clients and not worry about buying a better laptop or more RAM.

> This is internet moderation in a nutshell. If you're surprised and disappointed at this, administering internet communities probably isn't for you.

I'm more suprised and disappointed with Discord than this behaviour by people on the Internet. Their rules say that they don't allow spam and raiding servers and even when we provide detailed screenshots of people talking about raiding us and leaving spam on our servers, they don't bother the least bit about taking any sort of action. The only response that we got from them, just once, after sending them multiple reports was "ban them". No shit, I didn't know I could do that, thanks Discord.

ayushnix··on Discord is a black hole for information
> The issue is that it's a highly attractive, lightweight, easy to use platform.

It's anything but lightweight. Using Discord is one of the few reasons for my laptop fans running at almost full speed and this is when I haven't even installed their desktop chromium instance. I'm kinda suprised that someone would call such a bloated and sluggish website as lightweight. Not to mention that Discord is hostile against apps which use their API to create third party clients.

Ease of use isn't necessarily always a good thing either. A Discord community that I moderate frequently gets filled with spam messages with links to discord nitro gifts and other scams, despite our efforts to use bots and automate removal of such bullshit. The influx of large numbers of people also tends to lower the quality of discussion and before you know it, you're an unpaid warden who ends up annoying a few members of your community who end up forming hostile communities and raid your servers.

Of course, Discord doesn't really care about any of this. We've sent multiple reports with screenshots but we were either ignored or basically told that "we don't give a shit".

ayushnix··on Framework Raises $18M Series A
Unusable for me because it needs to be scaled fractionally. Unless they come out with a v2 which supports integer scaling, the laptop in its current form isn't worth buying if you don't like high input latency.
ayushnix··on Reclaiming the lost art of Linux server administration
> I hear you, Nix definitely does feel slow and I must day over the few years I’ve been using it it has definitely slowed down even more.

I don't know about others but once you become used to package managers like pacman and apk, it's a jarring experience to use apt and dnf, especially dnf. And Nix feels just as slow, if not slower, than all of them.

I have to install hundreds of MBs of metadata before I can install a package with dnf and the fastestmirror=true has essentially been useless in the history of my years of usage of dnf. The end result is me downloading hundreds of megs at speeds less than 1MBps.

> In terms of the DSL, I’m really surprised that people find it a problem as much as they do. When I first tried Nix I moved my first nonprod server over to it that very afternoon.

I find it much easier to use a combination Ansible, python/shell scripts, and dotfiles on multiple git forges. This setup may not be as declarative as NixOS but it is much easier to grok and use. I have no motivation to learn an obscure DSL to manage my system.

ayushnix··on Reclaiming the lost art of Linux server administration
> It's easy and painless

It was probably the most difficult thing I tried to, unsuccessfully, use on my desktop. I imagine learning how to use Vim/Emacs as a complete beginner would probably be several magnitudes of order easier than learning the Nix DSL and the Nix way of doing things. And from what I've read about the experience of other people who do use NixOS and talk about both the good AND the bad, using it seems like an unhealthy relationship.

Not to mention that the Nix package manager feels slow as hell and reminds me of my unpleasant hours spent using rpm and dnf.

← PreviousPage 3 of 7Next →