Is there a term for that phenomenon where someone gets so far into a topic that they become unaware of how much contextual knowledge they have about it?...
Pretty much my whole genre is obscure - appalachian “old time” fiddle music.
The best way to experience this genre - sitting the middle of a jam, preferably with an instrument. Here’s boys them buzzards are flying from that perspective.
Some more examples I like:
Here’s Dan Gellert being funky on fretless banjo. Tune is black eyed susie.
Here’s his daughter Rayna Gellert & co on red steer
I sort of solved this part of it, or at least got it to compile. I’ve got a reddit post of this too! Someone there hinted that I should use another struct ‘above’ ZkNoteStream. I’m doing that in the code listing below.
ZnsMaker has an init() fn, then you call make_stream() and it returns a ZkNoteStream. The intent is ZnsMaker should be managed so it lasts as long as the ZkNoteStream needs to last. All this bit compiles, great! But when I go to use it in my actix handler, I get a borrowing problem there instead. So I may have just kicked the can down the road.
This part compiles. Wrong types still, should produce Bytes instead of ZkListNotes.
Ok and here’s the handler function where I receive a query and make the ZnsMaker. But if I create a ZkNoteStream with it, I get a borrowing error. Maybe it would be ok if I immediately consumed it in an HttpResponse::Ok().streaming(znsstream). Got to fix the types first though.
<span style="color:#323232;">pub async fn zk_interface_loggedin_streaming(
</span><span style="color:#323232;"> config: &Config,
</span><span style="color:#323232;"> uid: i64,
</span><span style="color:#323232;"> msg: &UserMessage,
</span><span style="color:#323232;">) -> Result<HttpResponse, Box<dyn Error>> {
</span><span style="color:#323232;"> match msg.what.as_str() {
</span><span style="color:#323232;"> "searchzknotesstream" => {
</span><span style="color:#323232;"> let msgdata = Option::ok_or(msg.data.as_ref(), "malformed json data")?;
</span><span style="color:#323232;"> let search: ZkNoteSearch = serde_json::from_value(msgdata.clone())?;
</span><span style="color:#323232;"> let conn = sqldata::connection_open(config.orgauth_config.db.as_path())?;
</span><span style="color:#323232;"> let mut znsm = ZnsMaker::init(&conn, uid, &search)?;
</span><span style="color:#323232;"> {
</span><span style="color:#323232;"> // borrowed value of znsm doesn't live long enough! wat do?
</span><span style="color:#323232;"> let znsstream = &znsm.make_stream(&conn)?;
</span><span style="color:#323232;"> }
</span><span style="color:#323232;"> Err("wat".into())
</span><span style="color:#323232;"> }
</span><span style="color:#323232;"> wat => Err(format!("invalid 'what' code:'{}'", wat).into()),
</span><span style="color:#323232;"> }
</span><span style="color:#323232;">}
</span>
The problem is that the return from the actix handler has to be HttpResult::Ok().stream(my_znsstream). Anything else in the function will get dropped before the HttpResult. So either the pstmt is somehow embedded in my_znsstream, or it doesn’t compile… : (
I’m not quite ready to give up, but its not looking good. One of the rusqlite maintainers issued this haiku-like missive:
<span style="color:#323232;">yeah you just have to collect
</span><span style="color:#323232;">you can't return that as an iterator
</span><span style="color:#323232;">it needs to borrow from the statement
</span>
Got to wondering how Vec does this interator-with-internal-state thing, and its with unsafe.
update from the maintainer on discord:
<span style="color:#323232;">fundamentally you're asking for a self-referential type. e.g. one field borrows from another field of the same struct. cant be done without unsafe
</span><span style="color:#323232;">very easy to have soundness holes even if you use unsafe
</span>
I’ve been looking into it a bit - not pinning per se but self referential. There’s a library called ouroboros that looks helpful. There’s even an example on github where someone uses rusqlite and ouroboros together.
<span style="color:#323232;">error[E0597]: `pstmt` does not live long enough
</span><span style="color:#323232;"> --> server-lib/src/search.rs:880:1
</span><span style="color:#323232;"> |
</span><span style="color:#323232;">880 | #[self_referencing]
</span><span style="color:#323232;"> | ^^^^^^^^^^^^^^^^^^-
</span><span style="color:#323232;"> | | |
</span><span style="color:#323232;"> | | `pstmt` dropped here while still borrowed
</span><span style="color:#323232;"> | | borrow might be used here, when `pstmt` is dropped and runs the `Drop` code for type `Statement`
</span><span style="color:#323232;"> | borrowed value does not live long enough
</span><span style="color:#323232;"> |
</span><span style="color:#323232;"> = note: this error originates in the attribute macro `self_referencing` (in Nightly builds, run with -Z macro-backtrace for more info)
</span>
So close! But no cigar so far. No idea why its complaining.
I’m between distros and looking for a new daily driver for my laptop. What are people daily driving these days? Are there any new cool things to try?...
So i have my main system, i have been running NixOS on for over a year. It has been a pleasure to daily drive. And ive recently been playing with gentoo and funtoo. And althought alot of information, which is somewhat overwhelming but is slowly growing on me and making me appreatate linux as a whole. So i was wondring what other...
Pretty happy with my Dell precision 5520 with nixos. Except that the oem batteries swell up, but a lower capacity 3rd party battery is fine. I’m going to be looking at the snapdragon x elite laptops when they come out next year
I’ve noticed YouTube specifically has become more addictive, I never used to be one to sit and scroll for long durations before but I often catch myself spending way too long on shorts now...
Lately I’ve been more conscious of my decisions to watch trash on you tube. You watch a few traffic cam videos and pretty soon that’s half your feed. So I’m finding myself thinking twice before clicking.
Shorts I mostly avoid because I feel that feature is toxic clickbait.
2020 was… truly unique. It was so hard to stay away from doom scrolling, and I (and many others) were pretty disillusioned by the sad fact that so much of our country legitimately supported the Orange Man. I didn’t get a wink of sleep the night of the election because I genuinely considered it to be a make or break decision...
The crash happened around 6:30 a.m. when the driver of a 2009 Honda Civic tried to outrun deputies from the Zavala County Sheriff’s Office and attempted to pass a semi truck, the state Department of Public Safety said. The Civic collided with a 2015 Chevrolet Equinox, which caught fire....
Sounds like he shouldn’t have been near the robot while it was active. Normally robots in factories will operate inside a cage or in a limited access area. They want the robots moving as fast as possible for productivity, and you don’t want to be near that.
Qualcomm brought a company named Nuvia, which are ex-Apple engineers that help designed the M series Apple silicon chips to produce Oryon which exceeds Apple’s M2 Max in single threaded benchmarks....
The Qualcomm x elite benchmarks as faster than the M3 for multicore. Not too surprising as I think it’s 12 cores vs 10. For single core its something like 2700 vs 3200.
Laptops running x elite are supposed to be available mid 2024.
The global thermal spray coating market in the oil and gas sector had a total value of USD 292 billion in 2022. It is anticipated to grow to USD 574 billion by 2032, with a robust compound annual growth rate (CAGR) of 7.8% throughout the forecast period. A primary driver of this revenue surge is the increasing demand for safe,...
I use nextcloud, thunderbird, and on android caldav-sync and simple calendar pro.
Its all fine for personal use, but nextcloud with a team is not great. Want to have an event and invite the whole team? Add then one by one. Want to see how many people are coming to the event? I guess ask them?
Performance is basically the same (in microbenchmarks), they went as far as preserving the use of red black trees for an apples to apples comparison, but it’s going to improve security as binder runs inside every process....
The fascinating thing about PeerTube right now is that the frontend experience actually seems to be best on other services. This is primarily because discoverability between instances is fairly poor due to both federation mechanics and due to the nature of bootstrapping social. Because Lemmy and Mastodon feature their own human...
I’m using a lemmy app on my phone. When I click the above links I get a ‘format error’. If I put the addresses into search I just get this post and a few similar posts, not any peertube content.
I think I’m reading this blogpost correctly: Mobian devs working on maintaining Linux kernel support for Pinephone painted themselves into a corner with tech debt, and may not be able to continue porting new kernel updates. Pinephone Pro runs a different chipset with wider community support, so it’s not affected....
The pinephone is cool but so underpowered. Hoping to get some use out of of it as a audio looper controller. Looks like I can anticipate a sharp drop in support in the next year or two.
Clarence Thomas never repaid a millionaire friend’s $267,000 loan which the Supreme Court justice used to buy a 40-foot luxury motorcoach, Senate investigators announced Wednesday....
I miss RPAN! I could connect with my phone and stream any time, and there would be viewers, if only a few at times. Sometimes a lot though. It was great practice playing for an audience. Lots of great feedback and interactions, helped get me through the pandemic....
I like their directory page. Presumably that shows current live streams from different instances. Having one place to go to see all streams seems key, casual viewers will not visit lots of different instances looking for streams.
A YouTube prankster who was shot by one his targets told jurors Tuesday he had no inkling he had scared or angered the man who fired on him as the prank was recorded....
People get scared because they think they are in danger. The delivery driver didn’t know where things were going to stop in this encounter, and I don’t blame him one bit for putting a stop to it before he got beaten or stabbed.
But if the delivery driver wasn’t scared it wouldn’t have been a fun prank for mr 6 foot 5 and his dimwit subscribers. He relies on intimidation to get away with his shenanigans, if he wasn’t so physically threatening he would have had his ass beat before now, and deservedly so. Fuck that guy.
People have a legitimate right to defend themselves. For instance waking up to an unannounced armed intruder in your house justifies the use of force. In this case an unhinged large crazy person was actually harassing someone in a threatening way. They weren’t going about their business with a hoodie on, or delivering a pizza. The court agreed with the defendant that it was a self defense situation and so do I.
A few years ago we were able to upgrade everything (OS and Apps) using a single command. I remember this was something we boasted about when talking to Windows and Mac fans. It was such an amazing feature. Something that users of proprietary systems hadn’t even heard about. We had this on desktops before things like Apple’s...
I’m currently running Arch and it’s great, but I’m noticing I’m not staying on the ball in regards to updates. I’ve been reading a bit about Nix and NixOS and thinking of trying it as my daily driver. I’ve got a Lenovo x1 xtreme laptop, I don’t do much gaming (except OSRS), use firefox, jetbrains stuff, bitwarden,...
Regular nixos user here. Also failed on pinebook nixos, then bricked it trying to install something else. Ah well, seemed like it would be a cool machine.
Its been a while since I did it. I needed towboot but you couldn’t install that with the default distro, then I tried installing another distro and now it doesn’t even show an LED when I plug it in. Is it flash, is it something else? Dunno. Just hasn’t been enough of a priority for me to spend more time on it.
I have recently jumped head first into the Linux space. I’ve installed Arch on my daily driver and I’ve become overwhelmed/overjoyed with my options. I’d like to hear from the community about your Linux favorites....
A term for lack of perspective on your own contextual knowledge?
Is there a term for that phenomenon where someone gets so far into a topic that they become unaware of how much contextual knowledge they have about it?...
Do you have a preferred artist or band that isn't widely recognized in the mainstream?
Borrow checker woes - lifetime of borrowed var vs closure.
Ed: solved with the help of the async_stream crate....
What are people daily driving these days?
I’m between distros and looking for a new daily driver for my laptop. What are people daily driving these days? Are there any new cool things to try?...
Query about your linux daily drivers?
So i have my main system, i have been running NixOS on for over a year. It has been a pleasure to daily drive. And ive recently been playing with gentoo and funtoo. And althought alot of information, which is somewhat overwhelming but is slowly growing on me and making me appreatate linux as a whole. So i was wondring what other...
Has anyone else noticed smartphones have got significantly more addictive recently
I’ve noticed YouTube specifically has become more addictive, I never used to be one to sit and scroll for long durations before but I often catch myself spending way too long on shorts now...
Americans of Lemmy, what is your approach to next year's election?
2020 was… truly unique. It was so hard to stay away from doom scrolling, and I (and many others) were pretty disillusioned by the sad fact that so much of our country legitimately supported the Orange Man. I didn’t get a wink of sleep the night of the election because I genuinely considered it to be a make or break decision...
How to get rid of factory applied laptop stickers?
Hi, I got a used laptop from an family member. It did have this this annoying sticker on it (see picture). Apparently for years already....
8 dead in crash after police chased a suspected human smuggler, Texas officials say (apnews.com)
The crash happened around 6:30 a.m. when the driver of a 2009 Honda Civic tried to outrun deputies from the Zavala County Sheriff’s Office and attempted to pass a semi truck, the state Department of Public Safety said. The Civic collided with a 2015 Chevrolet Equinox, which caught fire....
Man crushed to death by robot in South Korea (www.bbc.com)
The incident occurred when the man, a robotics company employee in his 40s, was inspecting the robot....
Imagine Linux on an Arm SoC that benchmark better than Apple's M2 Max! (youtu.be)
Qualcomm brought a company named Nuvia, which are ex-Apple engineers that help designed the M series Apple silicon chips to produce Oryon which exceeds Apple’s M2 Max in single threaded benchmarks....
Thermal Spray Coating Oil Gas Market is Projected to reach USD 574 Billion by 2032
The global thermal spray coating market in the oil and gas sector had a total value of USD 292 billion in 2022. It is anticipated to grow to USD 574 billion by 2032, with a robust compound annual growth rate (CAGR) of 7.8% throughout the forecast period. A primary driver of this revenue surge is the increasing demand for safe,...
Is it possible to rip audio from youtube without loss of quality or online conversions?
I read somewhere that it is possible to rip youtube videos (music only) without the need for converting it into an mp3 as such....
What calendar infrastructure do you use?
Which calendar app do you use? And if you host a calendar server yourself, which one?...
Binder (Android's core IPC) Rust rewrite posted to LKML (lore.kernel.org)
Performance is basically the same (in microbenchmarks), they went as far as preserving the use of red black trees for an apples to apples comparison, but it’s going to improve security as binder runs inside every process....
The Best PeerTube Frontends are Mastodon and Lemmy
The fascinating thing about PeerTube right now is that the frontend experience actually seems to be best on other services. This is primarily because discoverability between instances is fairly poor due to both federation mechanics and due to the nature of bootstrapping social. Because Lemmy and Mastodon feature their own human...
The Paperweight Dilemma: Original Pinephone might lose future kernel updates if devs can't pay down tech debt (blog.mobian.org)
I think I’m reading this blogpost correctly: Mobian devs working on maintaining Linux kernel support for Pinephone painted themselves into a corner with tech debt, and may not be able to continue porting new kernel updates. Pinephone Pro runs a different chipset with wider community support, so it’s not affected....
Clarence Thomas didn't repay $267K luxury RV loan: Senate committee (www.rawstory.com)
Clarence Thomas never repaid a millionaire friend’s $267,000 loan which the Supreme Court justice used to buy a 40-foot luxury motorcoach, Senate investigators announced Wednesday....
Anyone remember RPAN from reddit? Does the fediverse offer anything similar?
I miss RPAN! I could connect with my phone and stream any time, and there would be viewers, if only a few at times. Sometimes a lot though. It was great practice playing for an audience. Lots of great feedback and interactions, helped get me through the pandemic....
YouTube prankster says he had no idea he was scaring man who shot him (www.nbcwashington.com)
A YouTube prankster who was shot by one his targets told jurors Tuesday he had no inkling he had scared or angered the man who fired on him as the prank was recorded....
Did we kill Linux's killer feature?
A few years ago we were able to upgrade everything (OS and Apps) using a single command. I remember this was something we boasted about when talking to Windows and Mac fans. It was such an amazing feature. Something that users of proprietary systems hadn’t even heard about. We had this on desktops before things like Apple’s...
Pope says 'backward' US conservatives replaced faith with ideology (www.euronews.com)
Pope Francis condemned the “very strong, organised, reactionary attitude” in the US church and said Catholic doctrine allows for change over time....
Thanks to the people taking such risk for us. (lemmy.ca)
Context: literature.cafe/post/987996
Is anyone using NixOS as their daily driver?
I’m currently running Arch and it’s great, but I’m noticing I’m not staying on the ball in regards to updates. I’ve been reading a bit about Nix and NixOS and thinking of trying it as my daily driver. I’ve got a Lenovo x1 xtreme laptop, I don’t do much gaming (except OSRS), use firefox, jetbrains stuff, bitwarden,...
Favorite Terminal Emulator
I have recently jumped head first into the Linux space. I’ve installed Arch on my daily driver and I’ve become overwhelmed/overjoyed with my options. I’d like to hear from the community about your Linux favorites....
GNOME Devs Are Working on a New Window Management System (9to5linux.com)
The only political map I need (i.imgur.com)