spacemanspiffy

joined 2 years ago
[–] [email protected] 6 points 1 day ago

2, obviously

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

Are you me at my job? Because this sounds like you are me, and you work at my job.

[–] [email protected] 6 points 6 days ago

What a great episode

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

Wait so which one is you?

[–] [email protected] 1 points 1 week ago

I'm not familiar with the band. I just listened to a few random bits of this and can tell it is up my alley.

I have a drive to make later tonight. I think you've gifted me a soundtrack for the ride :).

[–] [email protected] 18 points 1 week ago (4 children)

Well, Thunderbird, for one. Outlook makes me sad.

[–] [email protected] 3 points 1 week ago* (last edited 1 week ago) (2 children)

I had a music teacher in college. We were talking about kind of just mixing up rhythm of the main melodies on pop songs and she mentioned how that was kind of what jazz was at its core.

It just struck me as interesting because maybe at its inception, what she said is very true. But I look at jazz through the opposite lens. My introduction was with modern prog rock and jazz fusion, and working my way backwards in jazz and music history.

I feel like we are at a very different place in the genre, now.

Edit: Alternative answer - its kinda like porn vs art. It can be hard to describe where the line is, but you know it when you see/hear it.

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

I have been using SP at my job for like a decade now and I still cannot find my way around it and have to bookmark specific pages/folders so I can find them again.

It's aggressively, in-your-face bad.

[–] [email protected] 11 points 1 week ago (1 children)

I think most everyone who is sane has moved on to coding in MS Word by now. Much better, and you can italicize and bold parts of the code for emphasis.

[–] [email protected] 4 points 1 week ago (1 children)
[–] [email protected] 2 points 2 weeks ago

Oh I would probably love it

[–] [email protected] 22 points 2 weeks ago (2 children)

Let this be a lesson. We should never, ever, use software.

3
Frost* - Evaporator (www.youtube-nocookie.com)
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 

I recently came across this band and can't recommend this enough to prog or prog metal fans. This whole album is gold.

 

I'm your average American citizen with no contacts to Trump, the Whitehouse, or the Federal Government.

I'm sure the answer is no, but is there any way I could send him a message that he would actually receive?

Ex.

Donnie,

Go choke on broken glass.

From, {My Name}

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

I'm normally pretty ok at naming things in code, but I'm struggling here and would love some new ideas.

I'm building part of a game for the dialog with NPCs. It functions just like Fallout:

  • Player initiates dialog with NPC.
  • NPC says a few sentences.
  • Player gets a list of replies and can pick one.
  • Depending what the player picks, either the conversation will end, or the NPC will say some new stuff and start this over.

Here's the names of objects that I have so far that I'm not exactly in love with. I'd love suggestions on any of these.

  1. Dialog: This is a "container" object. Clicking on an NPC will start the Dialog. This contains many Chats.
  2. Chat: This is the name I dislike most. A Chat contains the text the NPC will say, and a list of ChatReply objects.
  3. ChatReply: This contains the text of the reply (what the player is saying back to the NPC), as well as a pointer to either a new Chat, or to end the Dialog.

Any suggestions?


Update: From the replies, I think I like Dialog / Prompt / Reply.

 

This is admittedly a lazy post where I show that I haven't done much research.

Whenever I start searching around online, I find tons of smaller companies selling ergo keyboards or parts for keyboards, but they are always very pricey and don't match the layout I want. I quickly give up since it can take long to search store-by-store online.

The keyboard of my dreams has:

  1. All (104) the keys. This means arrow keys and as numpad. I like the layout of my current keyboard (below). I guess this is called a "full keyboard"?
  2. Mechanical and with plenty of clackedy clack in the keys.
  3. Corded with USB (I still miss PS/2 :))
  4. Is curved, similar to this one.
  5. Has the "Y" key on the left side of the gap! This is my biggest sticking point. I have realized that I type the "Y" key with my left hand 99% of the time and I don't want to change.
  6. I am also willing to investigate split design keyboards if the "Y" is on the left and a numpad can exist separately which I could put to the right of my mouse. But still I'd prefer that to be attached.
  7. I don't care about RGB or lights or much else. Take it or leave it.

For reference, this is my current keyboard and I actually quite love it. I just wish it was curved.

 

Background: I am working on a Python project where, given a set of input files (text/image/audio), it generates an executable game. The text files are there to describe the rules of the game.

Currently, the program reads and parses the files upon each startup, and builds a Python class that contains these rules, as well as links to image/audio files. This is fine for now, but I don't want the end executable to have to bundle these files and re-parse them each time it gets run.

My question: Is there a way to persist the instance of my class to disk, as it exists in memory? Kind of like a snapshot of the object. Since this is a Python project, my question is specific to Python. But, I'd be curious if this concept exists anywhere else. I've never heard of it.

My aim is not to serialize/de-serialize the class to a text file, but instead load the 1's and 0's that existed before into an instance of a class.

 

Why doesn't this exist?

Take dried beans, roast 'em, grind 'em, and brew some bean juice?

I have no idea if it would taste good or not, but we don't know if we don't try.

Edit: I need to see what dried beans I have and maybe go shopping. I will give this a try with a couple different types of beans and report back if I fart or not.

 

Current setup: We have four beautiful hens. We have a small (https://s3.amazonaws.com/images.ecwid.com/images/17432132/1357042818.jpg) metal container right now in our chicken run. It's set up on a small wooden platform that I built, and it sits on top of a water heater that turns on/off via a timer during the cold months (similar to this but different brand/model https://www.picclickimg.com/40EAAOSwewpmTaBO/Chicken-Water-Heater-Heated-Chicken-Waterer.webp). It works, but it's not a great solution.

Problems:

  • It is maybe 1.5 years old max, and it already starting to rust along the bottom where they drink from.
  • 3 gallons is ok, but we don't have running water out near the chicken run, and so we need to bring this back and forth to the house to fill it up. It's fine in warm months (can fill from the hose), but it sucks in the winter since I need to bring it inside and fill it in the tub in our basement.
  • Even 4-5 inches off the ground, they kick a lot of dirt, feathers, and probably chicken shit in here. I spray it out clean with each re-fill.
  • The heater barely works to thaw out the bottom so they can drink. It works, but often I find I still need to go out with some warm water to break up the ice a bit.

What I'd like:

  • Bigger container
  • Doesn't rust
  • Rain water collection?

I'm open to any suggestions on products or DIY projects to help improve this for our chickens. Below is a picture of our chicken run so y'all can see what I have to work with.

https://imgur.com/a/D0SmkYn

So, cool chicken-havers of Lemmy... Do you have any suggestions on how I can up my game here? Especially any recommendations on how I can do something to collect rainwater for this. Any guides that may have worked well for you. I'm open to any information.

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

cross-posted from: https://lemmy.world/post/15144957

Can anyone help me figure out Frigate/go2rtc

I have two cameras in Frigate.

One is a Raspberry Pi 3 running Monocle server, and this stopped working in Frigate some time back (driveway). The second is a Galayou G7 (nursery). The nursery camera is the one I am concerned about with this post.

Problem: Up until a month or two ago (I must have ran an update but I don't know) the audio from the Galayou camera worked in Home Assistant. I'd like to get that working again. Some searching led me to try setting up go2rtc in my config.

Here is my config before making any changes:

mqtt:
  host: 192.168.1.10
cameras:
  nursery:
    ffmpeg:
      inputs:
        - path: rtsp://redacted:[email protected]:554/live/ch1
          roles:
            - detect
    detect:
      width: 1280
      height: 720
  driveway:
    ffmpeg:
      inputs:
        - path: rtsp://192.168.1.240:554/recording/7824851880350319106/replay?trackid=8836591
          roles:
            - detect
    detect:
      width: 1920
      height: 1080

This currently provides only jsmpeg video in Frigate. If I add something like this to the end:

go2rtc:
  streams:
    nursery:
      - rtsp://redacted:[email protected]:554/live/ch1

this adds mse and webrtc as options in Frigate. But, mse plays only video, no audio. And webrtc loads neither audio nor video. I have tried adding lines like - "ffmpeg:nursery#video=h264#audio=aac" and also with opus but to no avail.

Finally, if I ffplay rtsp://redacted:[email protected]:554/live/ch1 it loads audio/video without a problem. I'm also able to connect via ONVIF at onvif://192.168.1.241:8899 from onvif-gui.

So, something is wrong in my Frigate config, and I don't know what. I'm hoping someone here is a little more familiar and can give me a pointer or two here?

Update: Here is the fix, in case anyone comes across this later:

go2rtc:
  streams:
    nursery:
      - "ffmpeg:rtsp://[email protected]:554/live/ch1#video=copy#audio=copy#audio=opus"
  webrtc:
    candidates:
      - <server-ip>:8555

The webrtc section got webrtc to work in the Frigate and video back in HASS. The #audio=copy#audio=opus got audio working in webrtc.

 

I have two cameras in Frigate.

One is a Raspberry Pi 3 running Monocle server, and this stopped working in Frigate some time back (driveway). The second is a Galayou G7 (nursery). The nursery camera is the one I am concerned about with this post.

Problem: Up until a month or two ago (I must have ran an update but I don't know) the audio from the Galayou camera worked in Home Assistant. I'd like to get that working again. Some searching led me to try setting up go2rtc in my config.

Here is my config before making any changes:

mqtt:
  host: 192.168.1.10
cameras:
  nursery:
    ffmpeg:
      inputs:
        - path: rtsp://redacted:[email protected]:554/live/ch1
          roles:
            - detect
    detect:
      width: 1280
      height: 720
  driveway:
    ffmpeg:
      inputs:
        - path: rtsp://192.168.1.240:554/recording/7824851880350319106/replay?trackid=8836591
          roles:
            - detect
    detect:
      width: 1920
      height: 1080

This currently provides only jsmpeg video in Frigate. If I add something like this to the end:

go2rtc:
  streams:
    nursery:
      - rtsp://redacted:[email protected]:554/live/ch1

this adds mse and webrtc as options in Frigate. But, mse plays only video, no audio. And webrtc loads neither audio nor video. I have tried adding lines like - "ffmpeg:nursery#video=h264#audio=aac" and also with opus but to no avail.

Finally, if I ffplay rtsp://redacted:[email protected]:554/live/ch1 it loads audio/video without a problem. I'm also able to connect via ONVIF at onvif://192.168.1.241:8899 from onvif-gui.

So, something is wrong in my Frigate config, and I don't know what. I'm hoping someone here is a little more familiar and can give me a pointer or two here?

 

https://www.amazon.com/dp/B07RR9XBXJ?ref=ppx_yo2ov_dt_b_product_details&th=1

I ordered one of these a few months back.

Then I installed it.

Then I realized that this wasn't the same Zigbee Dimmer switch I was already using elsewhere, and that this wouldn't work for me :)

It's now past the return window for Amazon. I have zero use for this.

tl;dr - Me dumb. If you live in the continental US and want this, I will pay the couple bucks to ship it to you so I can get it off my table.

5
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

Here is my problem:

Our TV is connected to a SBC running a GNOME/Wayland desktop, where we watch Jellyfin and sometimes Netflix/Hulu through Firefox.

I'd like to be able to trigger pause/play (space button) from Home Assistant, which is running on my home server.

What I am thinking of would be a server/daemon running on the TV computer that my home server would be able to send keys to via a CLI tool (in this case the space key). I am surprised to find that I cannot locate any program like this.

Can anyone provide any suggestions here?

Other ideas:

  • Jellyfin's HA integration doesn't let me pause/play from it, and that still doesn't handle Hulu/Netflix.
  • I was able to get this working through SSH and there are tools like ydotool/wtype here that work, but I found waiting for SSH to be a bit slow to connect.

Update: I got frustrated and coded up a solution: https://gitlab.com/neilsimp1/kbsrv

view more: next ›