• 1 Post
  • 20 Comments
Joined 7 months ago
cake
Cake day: November 24th, 2023

help-circle



  • Time to turn your laptop into a router! Let’s say you’ve got 2 network interfaces on your laptop, eth0 and wifi0. wifi0 is joined to your university WiFi as normal. Connect your iPad to your laptop via ethernet (with a USB-C adapter).

    iPad -> usb-c-ethernet -> eth0
    wifi0 -> internet
    

    Rather than setting up a DHCP server or IPv6 stuff, I’d just configure the wired interfaces manually. Let’s use the network 192.168.69.0/24. Laptop will be 192.168.69.1, iPad will be at 192.168.69.2. On the laptop:

    ip addr add 192.168.69.1/24 dev eth0
    

    On your iPad, go to Settings -> Ethernet:

    • address: 192.168.69.2
    • subnet mask: 255.255.255.0
    • router: 192.168.69.1

    Curious to see if that works. We haven’t set up DNS or DHCP or done any sysctl for IP forwarding or any nftables.

    How can we test if it works? We can set up a TCP listener using nc(1) on the laptop that the iPad’s web browser could hit. On the laptop:

    nc -l 8080
    

    On your iPad, open Safari and browse to http://192.168.69.1:8080

    Curious to see if that all works!


    See also:





  • On reddit and now lemmy, I can engage with other people in both appreciation and discussion on and about things I don’t really get to otherwise, at a depth I don’t really get to otherwise.

    Nicely worded. The microblog format never “clicked” for me the same way these threaded discussions do. Now I have a way to say why - thanks!

    I think if I was born in a different decade I would have enjoyed Usenet or mailing lists.






  • I think IRC is a bit healthier because it is a direct interaction and there is no upvotes or any fake internet points involved.

    Totally see what you mean. The points and “likes” can be tiring. In a Lemmy client I made, I don’t even bother rendering the votes. This helps. But I havent implemented threaded replies (yet?).

    If there was a way to interact with Lemmy more like a mailing list I’d be using that instead.


  • “Reproduction of the Disney logo is clear trademark infringement. I would imagine that is why the AI might be jumbling the logo,” Andrew White, partner at IP law firm Mathys & Squire, tells The Financial Times.

    Doesn’t seem clear to me.

    I’m allowed to sketch out the Disney logo by hand, right? But I’m not allowed to place their trademark on any of my own products or services.

    Microsoft’s tool reproduces the Disney logo. Searching “Disney logo” in Google Images also reproduces the Disney logo. I can print the logo from my shitty black and white printer to my heart’s content, right?

    From Bing’s terms of use, section 7:

    Use of Creations. Subject to your compliance with this Agreement, the Microsoft Services Agreement, and our Content Policy, you may use Creations outside of the Online Services for any legal personal, non-commercial purpose.


  • otl@lemmy.srcbeat.comtoAsklemmy@lemmy.mlShould I leave Lemmy?
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    7 months ago

    Think about how and why you joined in the first place, and see if that is being fulfilled. For example, I joined because I wanted to be able to practice communicating with people in writing and to share some of my stories. Interacting on here still gives me that feeling. It’s not the same sense of community I get from the programming language community in my city. But there’s a little bit of something here that I can’t seem to find elsewhere yet.

    You mentioned “isolating addiction”. If you have that feeling it’s time to take a break.




  • Let’s say a function, about 20 lines. Something too small to warrant an external dependency but tricky enough that you don’t want to keep rewriting it.

    I have things like a function to read through a file of newline delimited text of key-value pairs separated by whitespace. It skips comments (lines beginning with “#”), and returns the pairs. I’m happy to do a little copying instead of having a little dependency.