xk3's recent activity
-
Comment on What does your computer setup look like? in ~tech
-
Comment on Crashing a server by charging a vape battery in ~comp
xk3 (edited )LinkBear.Rootz sounds like a rootkit lol... I have a really long >15m USB cable and the past couple days it has been pretty flaky but I don't get any of the issues you mentioned. I can still SSH in...Bear.Rootz sounds like a rootkit lol...
I have a really long >15m USB cable and the past couple days it has been pretty flaky but I don't get any of the issues you mentioned. I can still SSH in and run dmesg:
kern :err : [Dec17 11:40] usb 1-4-port1: disabled by hub (EMI?), re-enabling... kern :err : [ +0.059393] usb 1-6-port1: disabled by hub (EMI?), re-enabling... kern :warn : [ +0.009705] usb 1-4.1: Device not responding to setup address. kern :warn : [ +0.208603] usb 1-4.1: Device not responding to setup address. kern :err : [ +0.206995] usb 1-4.1: device not accepting address 26, error -71 kern :err : [ +0.000477] usb 1-4-port4: disabled by hub (EMI?), re-enabling... kern :err : [ +0.111037] usb 1-6-port2: disabled by hub (EMI?), re-enabling... kern :err : [Dec17 12:48] usb 1-8.4.4.1: device descriptor read/all, error -71 kern :err : [ +0.015326] usbhid 1-8.4.4.1:1.0: can't add hid device: -71 kern :err : [ +0.000233] usbhid 1-8.4.4.1:1.0: probe with driver usbhid failed with error -71 kern :err : [ +0.006351] usbhid 1-8.4.4.1:1.1: can't add hid device: -71 kern :err : [ +0.000036] usbhid 1-8.4.4.1:1.1: probe with driver usbhid failed with error -71 kern :err : [ +0.004344] usbhid 1-8.4.4.1:1.2: can't add hid device: -71 kern :err : [ +0.003029] usbhid 1-8.4.4.1:1.2: probe with driver usbhid failed with error -71 kern :err : [Dec17 13:03] hub 1-8:1.0: hub_ext_port_status failed (err = -71) kern :err : [ +0.208016] hub 1-8:1.0: hub_ext_port_status failed (err = -71) kern :err : [ +0.000138] usb 1-8-port4: cannot reset (err = -71) kern :err : [ +0.000125] usb 1-8-port4: cannot reset (err = -71) kern :err : [ +0.000127] usb 1-8-port4: cannot reset (err = -71) kern :err : [ +0.000001] usb 1-8-port4: Cannot enable. Maybe the USB cable is bad? kern :err : [ +0.000132] usb 1-8-port4: cannot disable (err = -71)
When I run this usb_reset script then everything works again for another 10 minutes:
#!/bin/bash if [[ $EUID != 0 ]] ; then echo This must be run as root! exit 1 fi for xhci in /sys/bus/pci/drivers/?hci_hcd ; do if ! cd $xhci ; then echo Weird error. Failed to change directory to $xhci exit 1 fi echo Resetting devices from $xhci... for i in ????:??:??.? ; do echo -n "$i" > unbind echo -n "$i" > bind done done
But it sounds like your USB issues are lower level... probably interrupt or power!? related
edit: potentially interesting links:
- https://askubuntu.com/questions/1290450/usb-bug-which-locks-the-kernel#
- https://linuxmusicians.com/viewtopic.php?t=10385
- https://stackoverflow.com/a/40586456/697964
None of those will likely help solve your problem but they were interesting to read
-
Comment on What programming/technical projects have you been working on? in ~comp
xk3 I made a website to search Hard Drive prices ($/TB) on eBay: https://unli.xyz/diskprices/ There are still a few bugs but so far it's coming along very nicely. Not bad for a few days of...I made a website to search Hard Drive prices ($/TB) on eBay: https://unli.xyz/diskprices/
There are still a few bugs but so far it's coming along very nicely. Not bad for a few days of head-scratching! A little bit more regex has been burned into my muscle memory. I still have a pretty long TODO list but any initial feedback would be helpful.
You can add custom filters at the bottom of the page. I think having a button at the top or maybe enabling some defaults will help make that feature more discoverable. I've really enjoyed using the DataTables.net library. It has been a godsend!! But it does block the event loop for a couple seconds when loading the page the first time...
-
Comment on Man suspected of killing UnitedHealthcare CEO is ordered held without bail after brief court appearance in Pennsylvania in ~news
xk3 In a for-profit system the gap between costs and profit can be a bit blurred. But this can certainly be a great excuse to make more money! Idk... people are pretty big fans of Richard Li and FWD...which will, yet again, increase the cost of healthcare
In a for-profit system the gap between costs and profit can be a bit blurred. But this can certainly be a great excuse to make more money!
there would be some benevolent insurance company out there run by a great guy who everyone would love
Idk... people are pretty big fans of Richard Li and FWD Group. But it is a bit of an outlier. Hard to think of a similar person within the boundaries of North America
-
Comment on US Department of Justice suspends controversial airport search program after investigation in ~transport
xk3 Well... if police destroy evidence you need to prove that it was done "maliciously". If the bodycam was accidentally lost or the footage accidentally deleted then there's not much you can do...Well... if police destroy evidence you need to prove that it was done "maliciously". If the bodycam was accidentally lost or the footage accidentally deleted then there's not much you can do
-
Comment on What programming/technical projects have you been working on? in ~comp
xk3 The past couple weeks I took a break from my other projects and wrote a few utilities for automating qBittorrent. The first one, torrents-add extracts data from torrent files and imports it into a...The past couple weeks I took a break from my other projects and wrote a few utilities for automating qBittorrent.
- The first one,
torrents-add
extracts data from torrent files and imports it into a SQLite database. - The second,
computers-add
scans computers via SSH and sees how active the disks are over 5 minutes and how much free space there is. allocate-torrents
uses the data generated by the first two commands to allocate the biggest torrents to the largest free space drive until either all torrents or all free space has been allocated (with a default buffer of 50GiB).torrents-info
shows some interesting stats so that it is easier to useqBittorrent-nox
from the CLI without needing to open a web browser. You can also use this subcommand to search for specific torrents or files of torrents and print that info or delete them from qBit.torrents-stop
helps to filter out torrents where the activity has died down. I use this in conjunction withprocess-media
to extract data from archives (iso
,rar
, etc) and shrink it down so that I can seed more stuff...
- The first one,
-
La Chica - ARTE Concert Piano Day (2023)
2 votes -
Comment on Great shows with interesting premises? in ~tv
xk3 Twin Peaks (1990-1991, 2017): What if the line between reality and the supernatural was as thin as the fog that blankets a small town? Alias (2001-2006) was dreamt up by J.J. Abrams while working...- Twin Peaks (1990-1991, 2017): What if the line between reality and the supernatural was as thin as the fog that blankets a small town?
- Alias (2001-2006) was dreamt up by J.J. Abrams while working on Felicity. What if the lie you thought you knew was just the tip of a much deeper truth?
- The Rehearsal (2022-). What if you could simulate real-life scenarios to perfection, preparing for every possible outcome?
- Xavier: Renegade Angel (2007-2009). What if a half-man, half-animal sought enlightenment?
-
Comment on Top US senator calls Salt Typhoon ‘worst telecom hack in our nation’s history’ in ~tech
xk3 Realistically this is because there is a lot of different equipment (model numbers * manufacturers). It is costly to make firmware updates and at some point things become deprecated. For simple...why do they say that many routers will need to be replaced
Realistically this is because there is a lot of different equipment (model numbers * manufacturers). It is costly to make firmware updates and at some point things become deprecated.
For simple equipment a patch to fix this might be relatively small--certain government agencies might even already have patches for these backdoors but they aren't going to make that information public so we all have to suffer.
It takes 4-8 hours just to check if a single line (voice-only phoneset + wires) is bugged. So it also might just be the case that it's cheaper to replace it but it still takes time to replace equipment.
-
Comment on What's on your Christmas wish list? in ~life
xk3 A job where I can learn and grow! Or maybe a DS4246... and a P570FA job where I can learn and grow!
Or maybe a DS4246... and a P570F
-
Comment on Top US senator calls Salt Typhoon ‘worst telecom hack in our nation’s history’ in ~tech
xk3 Given that the US doesn't really have separate networks for civilian and military use... this is pretty alarming!booting the hackers out could involve physically replacing “literally thousands and thousands and thousands of pieces of equipment across the country,” specifically outdated routers and switches
Given that the US doesn't really have separate networks for civilian and military use... this is pretty alarming!
-
Comment on What programming/technical projects have you been working on? in ~comp
xk3 (edited )LinkI've been reading a lot about LTO archival. So far I've learned that: tape is kind of a pain. Even if you think that you are storing them correctly, if you don't test your backups regularly, you...I've been reading a lot about LTO archival. So far I've learned that:
- tape is kind of a pain. Even if you think that you are storing them correctly, if you don't test your backups regularly, you might find on the day that you need it that the data is unrestorable.
- random seeks and specific file retrieval likely doesn't scale well because it adds wear to the expensive tape drives. Although there is likely an "island of stability" here where if you have a few dozen tape libraries and mirror >1GB large chunks in some S3-like system it might work pretty well... assuming you have someone on staff that could repair drives as they fail from extended use.
- one other thing to think about is that, although some LTO tapes have lasted for more than 30 years this is likely abnormal for most home environments if you live somewhere where the humidity levels are not constant. Another thing to consider is, similar to VHS tapes, there are a lot less VHS players nowadays than 30 years ago... it's still pretty easy to find working LTO-2 drives but LTO-1 drives are already pretty rare. Yes, LTO-2 and LTO-3 drives can read LTO-1 tapes but it is still something to think about...
- one reason why I didn't really seriously consider LTO-4 ... LTO-7 is that the quantity of tapes needed when operating at a scale where this makes financial sense is that it requires a lot of space. 384 GB of LTO-7 is already 64 tapes and that takes up quite a bit of shelf space. LTO-7 is very similar in price to LTO-8 as well.
I only have a couple hundred TBs and I'm pretty content now--I'm not looking to extend into the >600 TB range right now so my conclusion is that a tape drive probably doesn't make sense for me right now. But if someone wants to pay me to sign up to USENET and just download stuff then I would invest in a tape library first.
Other than that I've been researching parallel/cluster compute platforms like HTCondor, Nomad, Triton DataCenter, and other tools listed here: https://github.com/dstdev/awesome-hpc. This week I've started writing something lightweight for spinning up systemd services across PCs (a bit like telefork, Outrun, or Exodus) taking into account (simple polling) resource allocations like %iowait, cpu_idle, available memory and excess network capacity.
-
Comment on Help with Email & Changing Name Servers/Webhost? in ~comp
xk3 I wrote records not record types. You still very much need SPF information but yes, most DNS information is stored as TXT record types. I hadn't heard of the SPF record type before but SPF records...records
I wrote records not record types. You still very much need
SPF
information but yes, most DNS information is stored asTXT
record types. I hadn't heard of theSPF
record type before but SPF records are still very important to email systems -
Comment on Help with Email & Changing Name Servers/Webhost? in ~comp
xk3 (edited )LinkAside from MX, you'll need to copy the SPF, DKIM, and DMARC records. As long as both nameservers are serving the same content then there will be no downtime when switching to the new nameservers....Aside from
MX
, you'll need to copy theSPF
,DKIM
, andDMARC
records. As long as both nameservers are serving the same content then there will be no downtime when switching to the new nameservers.One thing to note: eg. if you are sending mail from a server like self-hosted wordpress, and you are migrating that to a new server you'll want to switch that over in the
SPF
record. This might show up as anip4:169.254.0.0
or something like that, if169.254.0.0
is the old server IP address then replace that with the new IP address. -
Comment on What games have you been playing, and what's your opinion on them? in ~games
xk3 I've been playing Lego Horizon Adventures with the wife and it's been okay so far. It definitely feels like a baby's toy. You mostly walk around and point at stuff with your hands. I think this...I've been playing Lego Horizon Adventures with the wife and it's been okay so far. It definitely feels like a baby's toy. You mostly walk around and point at stuff with your hands.
I think this video review is pretty thorough and I share many of the same thoughts: https://youtu.be/x7-Dc8p9u1s
The game is trying to do too many things at once. It seems like there's less brick-building compared to the Lego Star Wars games I guess because they're trying to preserve a lot of the game mechanics from Horizon Zero Dawn but they don't want to overwhelm the player with too many interaction points. Overall, it's an interesting experience but the lack of open-world really takes away a lot of the mystique...
-
Comment on Air France flight 736, December 31st 2020 in ~transport
xk3 Oh for sure, I also think Captain Joe and Admiral Cloudberg are a bit better from the technical perspective and I prefer that. Mentour's are likely more approachable for the average person. I...Oh for sure, I also think Captain Joe and Admiral Cloudberg are a bit better from the technical perspective and I prefer that. Mentour's are likely more approachable for the average person. I haven't read/seen coverage on this flight from those or other sources and I liked that he focused on the group psychology aspect in this video.
I'm a big fan of aviation safety culture and wish more industries were as rigorous, preemptive, and holistic in making processes more efficient and safe. It's amazing to me that we have such in-depth and transparent retrospectives on largely "uneventful" accidents (no injuries).
-
Air France flight 736, December 31st 2020
13 votes -
Comment on Daily driving linux (Fedora KDE) - My experiences after a week in ~tech
xk3 ahh yeah... I switch between different monitor setups (and freerdp / NoMachine) throughout the day and I frequently need to restart plasma: function restartplasma bash -c 'kquitapp6 plasmashell ||...ahh yeah... I switch between different monitor setups (and freerdp / NoMachine) throughout the day and I frequently need to restart plasma:
function restartplasma bash -c 'kquitapp6 plasmashell || killall plasmashell; systemd-run --user kstart plasmashell' systemd-run --user kwin_x11 --replace end
A bit annoying but other than that Linux pretty much stays out of the way and lets me be productive~!
-
Comment on If our worst fears about Donald Trump play out, how will we know when it's time to leave? in ~society
xk3 well... since slavery was abolished, and even to this day, almost all state and federal adult prisons in the United States have some form of work program, "employing" around 800,000 people. But a...a very dark opportunity to create labor camps
well... since slavery was abolished, and even to this day, almost all state and federal adult prisons in the United States have some form of work program, "employing" around 800,000 people. But a lot of those jobs, even though the pay is criminal, is usually related to prison maintenance (cleaning, food services, etc).
But you are right that most of those jobs aren't industry jobs (goods and services for the world outside the prison) and Trump's private interests make it seem like this would be the kind of thing he might do under the guise of making the market more free...
Scary thought! But it takes a while to construct more prisons... and I would say the current 1.8 million people incarcerated is already both a problem and stretching the limits of what is feasible for society.
There are likely many federal and state laws which would make this difficult for Trump to actually do, for instance:
private-sector companies are legally obligated to pay prisoners “prevailing wages” in order to avoid undercutting non-prison labor
https://en.wikipedia.org/wiki/Prison%E2%80%93industrial_complex#Prison_labor -
Comment on If our worst fears about Donald Trump play out, how will we know when it's time to leave? in ~society
xk3 (edited )LinkBy the time you know that it is time to leave it will be, logistically speaking, far past the optimal time to emigrate. If you have a high degree of confidence that the worst will happen, I would...By the time you know that it is time to leave it will be, logistically speaking, far past the optimal time to emigrate. If you have a high degree of confidence that the worst will happen, I would leave before the new year.
We are certainly in for interesting times. My wife's visa was finally approved after 16 months and we just came back to the US last Monday (Nov. 4th). I seem to have poor timing... though I arrived in time to vote.
I feel like some of these fears are irrational. I hope I'm not wrong. I would never vote for Trump and I am sad that he won but I also feel like it's not the end of the world. I would put it at a 6.5 on the BAD-o-meter. Materially speaking, what are the changes that you fear most?
edit: For me, one Trump with dementia and PTSD isn't a worry. What worries me is if there are enough incompetent loyalists in his cabinet to misjudge a situation and cause a tragedy.
Cables run like tentacles into the different rooms of my house from one relatively powerful computer. It is a bit Beneath a Steel Sky. I have custom global keyboard shortcuts that I press to switch to another room. Each room has at least one "station" with a keyboard (usually K400 or similar) and a monitor or TV.
When I use my laptop or phone I'm usually connected to it by ssh, nomachine, or freerdp.