sorted by: new top controversial old
[-] TheButtonJustSpins@infosec.pub 3 points 2 hours ago

Looks like pin 5 is no good for this; switched to pin 19 and all is well.

5
submitted 3 hours ago* (last edited 3 hours ago) by TheButtonJustSpins@infosec.pub to c/python@programming.dev

New to CircuitPython, this feels like it should work according to the docs but it prints six Falses. Any ideas?

#!/usr/bin/env python
import board
import digitalio
import time

class body_controller:

  def __init__(self):
    SWDIO = board.D5
    self._reset_pin = digitalio.DigitalInOut(SWDIO)
    print(self._reset_pin.value)
    self._reset_pin.switch_to_output(True)
    print(self._reset_pin.value)

  def turn_on(self):
    print(self._reset_pin.value)
    self._reset_pin.value = False
    print(self._reset_pin.value)
    time.sleep(1)
    print(self._reset_pin.value)
    self._reset_pin.value = True
    print(self._reset_pin.value)

body = body_controller()
time.sleep(1)
body.turn_on()
time.sleep(1)
[-] TheButtonJustSpins@infosec.pub 19 points 2 days ago

I believe you're looking for Christmas tree farms.

Also, there are so many year-round Christmas shops.

Also also, Spirit is mostly for costumes, which aren't relevant to Christmas.

[-] TheButtonJustSpins@infosec.pub 14 points 3 days ago

I highly recommend taking the time to learn docker instead of running directly.

Thanks! That makes a lot of sense.

[-] TheButtonJustSpins@infosec.pub 57 points 6 days ago

Therapy. Also focusing on your hobbies and filling your life with joys that don't focus on a datemate. But definitely therapy.

So I'd have to rebuild the kernel, not just provide a kernel argument? That's definitely not a step I'm ready for.

While I believe you, I haven't been able to enable hibernation with it on.

[-] TheButtonJustSpins@infosec.pub -2 points 1 week ago

You have to turn off Secure Boot to enable hibernation, and I value hibernation enough to do so.

9

This happens if I use set_time or set_position. Is this typical, or am I just not doing it right?

This is on a Pi Zero 2 W, so not the most powerful, but should be able to handle this.

These are the relevant bits of how I'm setting up the player:

    self._vlc = vlc.Instance()
    self._player = self._vlc.media_player_new()
    self._list_player = self._vlc.media_list_player_new()
    self._list_player.set_media_player(self._player)

    playlist = self._vlc.media_list_new()
    for index in self._play_order:
      playlist.add_media(self._vlc.media_new_path(self._songs[index]))

    self._list_player.stop()
    self._list_player.set_media_list(playlist)
    self._list_player.play()

And trying to seek is just this:

    self._player.set_time(_s_to_ms(seconds))

Any ideas would be greatly appreciated!

9

I have a Keybow MINI hooked up to a Raspberry Pi Zero W, and I'm using Python to respond to events. I have one button that kicks off playing a song on a passive buzzer, and I'm wondering if there's a way to have a button press stop the song before it completes.

10
Keybow OS (infosec.pub)

Does anyone know if it's possible to have events from the Keybow keyboard cause effects on the Pi Zero W running the keyboard instead of outputting to another machine? Or do I need to go with a different OS and figure out the handling of the keys myself?

28
Integrated Login? (infosec.pub)
submitted 8 months ago* (last edited 8 months ago) by TheButtonJustSpins@infosec.pub to c/selfhosted@lemmy.world

So, I have a bunch of services behind Authelia, utilizing LDAP hosted on my NAS. I log in once and it carries through my other services that are secured by Authelia, which is great.

However, since my wife rarely visits these services - mostly when I send her links - she has to log in basically every time. I've contemplated putting our laptops on a network login backed by the same LDAP, though I haven't started researching how to do that yet. If I do, though, is there a way to have the laptop login integrate with Authelia or another solution to prevent login prompts?

I know I could do it with Windows and AD, but we're both on Linux, so that complicates things a bit.

19
Is this a good deal? (www.ebay.com)

It seems good based on the price of just the CPU. If it's good, what kind of server case would it need?

8
submitted 9 months ago* (last edited 9 months ago) by TheButtonJustSpins@infosec.pub to c/homelab@lemmy.ml

Hello! I am doing some if-I-die planning, and I want to create a machine that is separate from my current homelab that can a) host paperless-ngx and b) be used with keyboard/mouse/monitor if needed. I want it to replace my current paperless-ngx instance that's hosted in my lab.

Ideally, I'd want two SSDs in RAID 1, possibly with a third drive for the OS? I'll be backing up to my NAS and from there to the cloud, but I want to separate this machine from the rest of my infrastructure and still be able to have reliable access to the documents on it.

In theory, I could just sync the files to a USB drive and tell her to grab it if anything should happen to me, but finding the right files while stressed without the metadata stored in paperless wouldn't be the nicest thing to make her do.

tl;dr: What should I buy to build a homelab-in-a-box that can be attached to my homelab normally but also function separately as a PC.

13
submitted 11 months ago* (last edited 11 months ago) by TheButtonJustSpins@infosec.pub to c/moviesandtv@lemmy.film

Edit: This is Being Erica. Thank you, @FoxFireX@lemmy.sdf.org and @robolemmy@lemmy.world!

So, I watched a TV show a while ago and have forgotten what it's called and can't find it. Anyone have any ideas on this one?

  • Woman is going through something rough and a person gives her a card and is like come talk to me
  • That person functions kind like a therapist but there's something mystical going on
  • There are doors that go to other places
  • Her therapist retires after a season or two
  • She starts helping others in the same way
  • There's a bartender that does the same thing at some point

Maybe not much to go on, but I'm hoping someone recognizes it.

57
submitted 11 months ago* (last edited 11 months ago) by TheButtonJustSpins@infosec.pub to c/moviesandtv@lemmy.film

Edit: It's Lovesick! Thank you, @magic_window@lemmy.world!

Hi! I'm hoping someone can help me out. I'm trying to find a show I streamed a while ago. Here's what I remember:

  • It was a British show
  • Two guys were roommates; I think the apartment was messy
  • They had a woman friend
  • One of the roommates and the friend were in love but they kept having bad timing
  • I think the other friend was a manager at a company?
  • I think the woman had to move in with them at some point?
  • There was a guy named Jono (sp?) who kept saying, "I'm Jono"
58
submitted 1 year ago* (last edited 1 year ago) by TheButtonJustSpins@infosec.pub to c/selfhosted@lemmy.world

I want to be able to control my thermostat from my phone, so I'm looking for recommendations for one that meets the following:

  • Works with no network access (as in, I can access it but it can't access anywhere else, enforced via VLAN on my firewall)
  • Lets me control my single apartment thermostat (temperature, heat/cool, maybe programming but it's okay if I have to do that on the unit directly)
  • Not hundreds of dollars
  • No microphone

Any thoughts? Really just want something simple.

Edit: I have no other smart home devices right now, if that matters.

7
AC adapters (infosec.pub)

I have a bunch of equipment on my rack that has AC adapters as part of the cable. How do people manage those so that they're secured and out of the way?

41

I wasn't sure where to ask this, so please feel free to direct me to a different community if there's a good one for this question.

Are there any US banks that allow their clients programmatic access to their own data? As far as I'm aware, that's not really a thing in the US, but I might be willing to switch banks if there are any that provide access.

view more: next ›

TheButtonJustSpins

joined 1 year ago