[-] pr06lefs@lemmy.ml 3 points 1 day ago

The debate site is stormed by fascist militia, most democrats in the building are killed. Trump survives thanks to far right connections and mainstream media plays him up as a profile in courage.

10
submitted 1 day ago by pr06lefs@lemmy.ml to c/music@lemmy.world
[-] pr06lefs@lemmy.ml 1 points 2 days ago

never stopped at my house

[-] pr06lefs@lemmy.ml 3 points 2 days ago

From this page it seems you need libclang 13+, then you need to set the LLVM_INSTALL_DIR appropriately. There's llvmPackages_13.libclang in nixpkgs, and some later versions too.

Unfortunately this will probably not fix your missing qt lib issues. Dumb thing to try there, only have full, not both full and qtbase.

[-] pr06lefs@lemmy.ml 10 points 3 days ago

Plastic bottles weren't invented in the 21st century

[-] pr06lefs@lemmy.ml 91 points 3 days ago

Hot take: tire particulates are a conservative anti-EV talking point. "My V8 mustang weighs less than an EV, therefore its better on pollution than a EV because tire particulates". Totally disregarding the impact of tailpipe emissions.

[-] pr06lefs@lemmy.ml 52 points 4 days ago

proof-of-work blockchains. instead of a utopian decentralized currency we have a utopia for scammers and day traders, and uses a ton of energy at a time when we need to conserve to combat global warming.

[-] pr06lefs@lemmy.ml 76 points 1 week ago

aw, he may be a genocide loving nazi, but at least its from the heart. won't someone give him some money?

21
submitted 1 month ago by pr06lefs@lemmy.ml to c/nix@programming.dev

Power on my dell laptop is getting wonky so I'm pulling the thinkpad x201 out of retirement. Hadn't booted it since 2019! For some reason the wifi wasn't working so connected it to wired ethernet.

Updated the channel to 23.11 and did nixos-rebuild switch. Had to fix a few things where packages no longer exist or options have changed. Rebooted and wifi is working now!

What other OS could you upgrade like that?

[-] pr06lefs@lemmy.ml 108 points 1 month ago

Because the Fediverse itself is a response to enshittification.

20
submitted 2 months ago by pr06lefs@lemmy.ml to c/opensource@lemmy.ml

I'm looking for an audio app for learning tunes by ear. Ideally would have:

1- slow playback, without adjusting pitch.
2- loop selection - to play a segment of the audio over and over
3- pitch adjustment (some old recordings are out of tune)

Anyone have one they like? For android the closest I've found is Fossify music player, which offers feature 1.

For PC, audacity has all these features, but its pretty clunky to use.

[-] pr06lefs@lemmy.ml 59 points 2 months ago

call social programs 'entitlements'.

[-] pr06lefs@lemmy.ml 90 points 3 months ago

another key I can map to something useful in linux!

[-] pr06lefs@lemmy.ml 60 points 3 months ago

To me a main use case is transporting windmill turbine blades. Blade size is currently limited by rail and truck capacity, but with an airship transport you don't have to fit the blade through tunnels and around corners.

54
submitted 3 months ago by pr06lefs@lemmy.ml to c/opensource@lemmy.ml

Just missed a meeting today because I accepted an event on Thunderbird this morning, that should have synced to Nextcloud, and then to my phone running a calendar app from 'simplemobiletools'. Never made it. After I missed the meeting I didn't see the event on nextcloud, then went to look at the event on thunderbird, and now lo and behold its on nextcloud, two hours after it was over. Cool. Still not on the phone.

Anyone have a solid calendar stack they like? I'd like to reliably get from emailed invite to alert on my phone.

[-] pr06lefs@lemmy.ml 82 points 3 months ago
13
submitted 5 months ago by pr06lefs@lemmy.ml to c/fdroid@lemmy.ml

I've just been using the audio player on ES File Explorer. It tends to forget all its state and has various other UI problems.

I'm interested in an audio player that will keep playlists for me, and remembers its state so I can resume playback. My main use case is to cue up podcasts for driving, so I want it to save my place when I don't finish listening to a whole episode during my drive. Saving my place in multiple playlists would be great too, like an audiobook and a series of podcast episodes would both have saved state so I could switch between them.

Ideally it would also activate playback whenever the phone connects to a particular bluetooth device - my car audio. The use case is I hop in the car, turn on my bluetooth receiver, and audio resumes without me needing to take the phone out of my pocket. Turn off bluetooth, playback stops.

54
submitted 6 months ago by pr06lefs@lemmy.ml to c/asklemmy@lemmy.ml

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?

Then they write some inscrutable technical docs, use unexplained acronyms, or tell a story about “he”, "she’ and/or “they” where you have no idea who they’re talking about.

7
submitted 7 months ago* (last edited 6 months ago) by pr06lefs@lemmy.ml to c/rust@lemmy.ml

Ed: solved with the help of the async_stream crate.

I'm struggling with the borrow checker!

My problem: I'm using actix-web and rusqlite. I want to return an unlimited number of records from an rusqlite query, and actix provides a Stream trait for that kind of thing. You just impl the trait and return your records from a poll_next() fn.

On the rusqlite side, there's this query_map that returns an iterator of records from a query. All I have to do is smush these two features together.

So the plan is to put the iterator returned by query_map into a struct that impls Stream. Problem is the lifetime of a var used by query_map. How to make the var have the same lifetime as the iterator??

So here's the code:

pub struct ZkNoteStream<'a, T> {
  rec_iter: Box<dyn Iterator<Item = T> + 'a>,
}

// impl of Stream just calls next() on the iterator.  This compiles fine.
impl<'a> Stream for ZkNoteStream<'a, serde_json::Value> {
  type Item = serde_json::Value;

  fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
    Poll::Ready(self.rec_iter.next())
  }
}

// init function to set up the ZkNoteStream.
impl<'a> ZkNoteStream<'a, Result<ZkListNote, rusqlite::Error>> {
  pub fn init(
    conn: &'a Connection,
    user: i64,
    search: &ZkNoteSearch,
  ) -> Result<Self, Box<dyn Error>> {
    let (sql, args) = build_sql(&conn, user, search.clone())?;

    let sysid = user_id(&conn, "system")?;
    let mut pstmt = conn.prepare(sql.as_str())?;

    // Here's the problem!  Borrowing pstmt.
    let rec_iter = pstmt.query_map(rusqlite::params_from_iter(args.iter()), move |row| {
      let id = row.get(0)?;
      let sysids = get_sysids(&conn, sysid, id)?;
      Ok(ZkListNote {
        id: id,
        title: row.get(1)?,
        is_file: {
          let wat: Option<i64> = row.get(2)?;
          wat.is_some()
        },
        user: row.get(3)?,
        createdate: row.get(4)?,
        changeddate: row.get(5)?,
        sysids: sysids,
      })
    })?;

    Ok(ZkNoteStream::<Result<ZkListNote, rusqlite::Error>> {
      rec_iter: Box::new(rec_iter),
    })
  }
}

And here's the error:

error[E0515]: cannot return value referencing local variable `pstmt`
   --> server-lib/src/search.rs:170:5
    |
153 |       let rec_iter = pstmt.query_map(rusqlite::params_from_iter(args.iter()), move |row| {
    |                      ----- `pstmt` is borrowed here
...
170 | /     Ok(ZkNoteStream::<Result<ZkListNote, rusqlite::Error>> {
171 | |       rec_iter: Box::new(rec_iter),
172 | |     })
    | |______^ returns a value referencing data owned by the current function

So basically it boils down to pstmt getting borrowed in the query_map call. It needs to have the same lifetime as the closure. How do I ensure that?

1
submitted 8 months ago by pr06lefs@lemmy.ml to c/nixos@lemmy.ml
45
submitted 8 months ago by pr06lefs@lemmy.ml to c/asklemmy@lemmy.ml

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.

What's out there in the fediverse that's similar, if anything?

34
submitted 10 months ago* (last edited 10 months ago) by pr06lefs@lemmy.ml to c/guitars@lemmy.world

Does having too many pickups affect guitar tone, or sustain? Let's suppose a guitar has eight pickups while another one has just one of the same type. Would there be a tone difference, if the mega-pickup one was only using one of its pickups in a similar position to the single pickup guitar? Or would the effect of the extra pickups be too small to notice?

8
submitted 11 months ago by pr06lefs@lemmy.ml to c/lemmy_support@lemmy.ml

cross-posted from: https://lemmy.ml/post/2365391

I'm on lemmy.ml, and I want to subscribe to https://lemmy.world/c/songaweek. There it says to put !songaweek@lemmy.world into search on my instance to subscribe, but it doesn't turn up anything. Anyone know why this might be, and/or how to work around it?

12
submitted 11 months ago by pr06lefs@lemmy.ml to c/lemmy@lemmy.ml

I'm on lemmy.ml, and I want to subscribe to https://lemmy.world/c/songaweek. There it says to put !songaweek@lemmy.world into search on my instance to subscribe, but it doesn't turn up anything. Anyone know why this might be, and/or how to work around it?

view more: next ›

pr06lefs

joined 11 months ago