fl42v

joined 1 year ago
[–] [email protected] 2 points 13 hours ago

It'd likely be yet another instance of spyware on wheels, tho

[–] [email protected] 3 points 16 hours ago (1 children)

Given those options, you may want to try vim :) It's a bit different in how you interact with it (pressing stuff on the keyboard instead of clicking stuff in menus, plus it's more of an imperative vs declarative approach, i.e. you tell vim how to do stuff instead of what you need to be done; the good part is being independent of what sb thought you may need to do, the bad -- having to learn editing primitives and stuff), but it can certainly do stuff you've mentioned, sometimes with some help from external programs:

  • dupcicate current line - yyp [(yy)ank_curren and (p)aste];
  • join lines depends on how you want to join them, in the simplest case it's J or gJ to join current line with the one below with or without space as a separator respectively. You can also combine it with :g or :v and norm or macros to make this edit on lines matching (g) or not (v) a specific regex (e.g. :g/join me/norm J will join all lines containing "join me" with that below). Splitting also depends;
  • reverse, randomize and sorting can be done via calling external stuff: v10j:.!tac will reverse 11 lines, including the one with the cursor, via calling (!) tac on the selection (v) of the current line and 10 below (10j) and pasting its output in the file you're editing (.) (it'll replace stuff you've selected). Replace tac with shuf or sort for the other options mentioned. Removing duplicates without sorting - https://stackoverflow.com/questions/11532157/remove-duplicate-lines-without-sorting#11532197

Bonus: neovim integrates with vscode quite well, and on itself it handles reasonably huge files without an issue.

[–] [email protected] 9 points 1 day ago

Tnx, the funniest thing I've read in a while

[–] [email protected] 1 points 1 day ago* (last edited 1 day ago)

Apparently in 2011 or so there sb was making a catastrophe movie situated in Moscow metro. Here are some different pics. And here sb said it's from that movie; same here. Given the damage to the windows you can see in the background, I'm inclined to believe it's indeed the case

Addit: Probably this movie

[–] [email protected] 3 points 1 day ago

May I interest you in using unwrap_or instead of unwrap

[–] [email protected] 8 points 1 day ago

Depends on your definition of "what", and the server you're talking to, and what DNS you're using, and your VPN provider, and maybe the phase of the moon.

So, pretty much the best-case scenario is when the site works via https, and the server supports "encrypted client hello" (ech), and your browser has ech enabled. In this case your VPN provider can see that you've sent something to the IP (one IP can host multiple websites with different domains).

Https and no ech = can see IP, can see the domain.

Http = can see everything (thankfully, quite rare now).

Some VPN providers may as well use their own DNS, then they can see what domains you've talked to regardless of ech (afaik, since domain lookup should happen before client hello, since you're basically looking up whom to "greet")

Some providers are Facebook with fake mustache and will shamelessly try to mitm you

[–] [email protected] 3 points 2 days ago

It depends... 3d printing works fine :D

[–] [email protected] 3 points 2 days ago (1 children)
[–] [email protected] 6 points 2 days ago (1 children)

The closest Friday is in December, so depending on the definition of "soon"...

[–] [email protected] 7 points 2 days ago

Well, newpipe has channel groups for quite a while now.

Screenshot_20241001-114916_Tubular~2

Screenshot_20241001-114941_Tubular~2

Screenshot_20241001-114947_Tubular

Screenshot_20241001-114955_Tubular~2

[–] [email protected] 10 points 2 days ago (2 children)

it used to be "see source, but no touch source" when it came out, and now it's "see source, touch source, no sell source". Not exactly proprietary, not free as in freedom. Kinda gray zone here, pun intended

 

So, yet another "if you're in the middle of nowhere and can't/don't_want_to wait for proper tools to arrive" kind of post.

Firstly, there's pico-serprog with quite good instructions from the libreboot project. Unfortunately, it didn't want to detect the chip at all in my case (in hind sight, likely due to the board pinouts being different between my board and a regular pico and them providing pico pins and not gpio numbers)

What worked, albeit rather slowly, was pico-dirtyjtag. If using this one, the connections are as follows:

  • cs - gp19
  • miso - gp17
  • mosi - gp16
  • clk - gp18
  • gnd - gnd
  • 3v3 - 3v3

The chip pinouts can be sourced from the libreboot guide/a laptop schematic/ic datasheet. Flashing with sudo flashprog -p dirtyjtag_spi -w rom.rom (or flashrom instead of flashprog). It may complain that there are multiple definitions matching the chip, in which case you manually choose one of the mentioned with -c (in my case -c W25Q32FV and -c W25Q64BV/W25Q64CV/W25Q64FV for top and bottom chips respectively).

Also applicable to stm boards with the main dirtyjtag repo.

 

So, I've dug up my corebooted t440p and decided to check if it'll work with the battery from my t480, and it did! Well, sort of.

Since coreboot also replaces the embedded controller firmware (mb sometimes they keep blobs of it, idk, but certainly not in case of t440p), we won't get those nasty "battery not supported, pay me" messages even if they've changed the verification since then.

However, I suspect some batteries may be unprepared for the power draw of earlier models. I've tested it on 2 batteries, one was a 22wh → 72wh conversion with BMS built on top of a cheap controller with rather unpleasant feedback from battery repair people; the other one was a more trustworthy 72wh clone powered by bq8050. The latter one worked ootb, while the former somewhat worked: fine in uefi, fine in grub, drop voltage to 0 as soon as the os starts loading → poweroff. If the power supply is plugged in during boot, the battery works fine (may drop voltage again under load, haven't tested it myself).

Soo, basically the use case is that you can try to retrofit the guts of a newer battery into older thinkpads if those run core/libreboot.

 

I've replaced cells in my fake battery a few days ago, and while recalibrating the bms I noticed what looked like it trying to overcharge the cells -- the voltage went up to above 12.6v and stabilized at around 12.9 (which amounts to ~4.3v per cell and is 0.1v above what cell manufacturers generally recommend). Idk if that's the intended behavior or clone manufacturers trying to shorten the lifetime of said batteries, so if the owners with genuine batteries can provide that info, I'd really appreciate it.

On linux, you can check this with cat /sys/class/power_supply/BAT*/voltage_now (as your usual user, those files are world-readable); not sure about windows, tho.

 

Out of curiosity, I've been watching a few restorations of those spectrums, and I've noticed the keyboards having a rather peculiar construction, judging by today's standards. They have 2 springs, the small one, as far as I understand, presses the membrane layers together, and the larger one returns the key into neutral position once the key is released.

I personally haven't used any spectrums, yet I've encountered the very same construction on a keyboard of a Russian clone of said machines (namely, zx atas), and to this day I haven't touched anything worse... The only way I can describe it is like trying to type on a piece of raw meat.

So, if anyone here had a chance to type on the original spectrums, was it this bad? I suspect otherwise since I haven't heard of crowds of people requesting PTSD treatment, but the whole thing still somewhat bothers me 😅

 

Just thought I'd share. Probably nothing new or fancy, but may help some of you find a way to repurpose devices that aren't worth repairing into home servers or something: e.g. op5 I've used has better CPU compared to raspberry pi 4, can run linux (postmarketos, albeit with some caveats), and costs less if bought with broken display (or nothing if you have one lying around)

82
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]
 
 
 
 
 

Tinkering is all fun and games, until it's 4 am, your vision is blurry, and thinking straight becomes a non-option, or perhaps you just get overly confident, type something and press enter before considering the consequences of the command you're about to execute... And then all you have is a kernel panic and one thought bouncing in your head: "damn, what did I expect to happen?".

Off the top of my head I remember 2 of those. Both happened a while ago, so I don't remember all the details, unfortunately.

For the warmup, removing PAM. I was trying to convert my artix install to a regular arch without reinstalling everything. Should be kinda simple: change repos, install systemd, uninstall dinit and it's units, profit. Yet after doing just that I was left with some PAM errors... So, I Rdd-ed libpam instead of just using --overwrite. Needless to say, I had to search for live usb yet again.

And the one at least I find quite funny. After about a year of using arch I was considering myself a confident enough user, and it so happened that I wanted to install smth that was packaged for debian. A reasonable person would, perhaps, write a pkgbuild that would unpack the .deb and install it's contents properly along with all the necessary dependencies. But not me, I installed dpkg. The package refused to either work or install complaining that the version of glibc was incorrect... So, I installed glibc from Debian's repos. After a few seconds my poor PC probably spent staring in disbelief at the sheer stupidity of the meatbag behind the keyboard, I was met with a reboot, a kernel panic, and a need to find another PC to flash an archiso to a flash drive ('cause ofc I didn't have one at the time).

Anyways, what are your stories?

view more: next ›