• 62 Posts
Joined 2Y ago
Cake day: Oct 17, 2020


Open the fridge, light turns on. Close the fridge, light turns off. Can’t explain that.

I heard this story on NPR as well. And of course, some far right asswipes say he’s a communist. Just some guy trying to help the most vulnerable and they have to make it political.

If I sell my Ferraris then how am I supposed to travel from my private island to my day job at the office?

One of my programming instructors had a mug that said “you can’t lie to the compiler”.

Running 2 instances on one VPS
I'm thinking of setting up another lemmy instance and was considering just hosting it on the same VPS as my current instance. I know lemmygrad is hosted on the same server as lemmy.ml. How difficult is this?

I believe the devs host their code on multiple repositories including Codeberg.

Thanks! Yeah, I’m not actually trying to do anything useful with this code. Just testing out the concepts that I’m reading about.

How to retrieve value of EnumItemStruct property?
I'm playing with the following code and can't seem to find an example where I can get the values of one of the coordinates. ``` enum Coordinates { Point1 { x: i32, y: i32 }, Point2 { x: i32, y: i32 }, } fn main() { let p1 = Coordinates::Point1{ x: 0, y: 45}; let x = p1.x; //Doesn't work } ``` How can I get the value of x or y?

I’m glad to know it’s not just my instance.

Cannot fetch comments
I'm currently going through some logs and when I do a search from my instance to a post on lemmy.ml, I get the following: ``` lemmy_1 | 2022-03-03T02:26:39.044892Z INFO Websocket Request{trace_id=00000000000000000000000000000000}:perform{self=ResolveObject { q: "https://lemmy.ml/post/184244/comment/125405", auth: Some(Sensitive) }}:search_by_apub_id: lemmy_apub_lib::object_id: Fetching remote object https://lemmy.ml/post/184244/comment/125405 lemmy_1 | 2022-03-03T02:26:39.096253Z ERROR Websocket Request{trace_id=00000000000000000000000000000000}: lemmy_websocket::handlers: Error during message handling couldnt_find_object: error decoding response body: EOF while parsing a value at line 1 column 0 lemmy_1 | 0: lemmy_apub::fetcher::search::search_by_apub_id lemmy_1 | at crates/apub/src/fetcher/search.rs:20 lemmy_1 | 1: lemmy_api::site::perform lemmy_1 | with self=ResolveObject { q: "https://lemmy.ml/post/184244/comment/125405", auth: Some(Sensitive) } lemmy_1 | at crates/api/src/site.rs:399 lemmy_1 | 2: lemmy_websocket::handlers::Websocket Request lemmy_1 | with trace_id=00000000000000000000000000000000 lemmy_1 | at crates/websocket/src/handlers.rs:68 ```

I’m still having federation issues after the upgrade. At this point I wonder if it’s my firewall or something. I watch the lemmy logs when upvoting for example and my server doesn’t even see the request come in.

The post @cypherpunks@lemmy.ml made to !theonion@midwest.social doesn’t show up to users on midwest.social, but shows up fine on lemmy.ml.

Rich capitalists with morals? Pssh…

This is what it looks like when you use 100% of your brain.

I drink milk like it’s water and I’m 31 lol.

I second this. If someone/something is banned and removed from an instance it shouldn’t still be visible on a linked instance. If this isn’t already a pending feature request I’ll happily make one for it.

Knowing Elon it’s probably just a Nintendo switch you duct tape to your face.

I was camping in the Pennsylvania woods and had to go so I dug a shallow hole and did my business.

Hmm, on my instance it still says who did what in the modlog.

Imagine not getting the vaccine and dying of covid because the computer tricked you.

Thanks for your hard work!

I can’t seem to add my instance to the app for some reason. I put in midwest.social and it says it can’t find the instance. It’s definitely up and running.

Underwater structures that are generally made of metal. Buoys, oil rigs in the ocean, reactor pools. I shudder thinking about swimming near anything like that.

The main thing I want to do is free up space on my phone by having the pictures/videos backed up to a server, but also be viewable at any time.

Which image hosting software do you recommend?
I've been researching open source image/video hosting software because I sure as hell don't want to use Google Photos. I'm leaning toward PhotoPrism, but I thought I'd get your opinions first.

There are definitely teacher and nurse unions here.

Meetup.com worked for me this past year. I wish there was a FOSS alternative to it though.

This is unfortunately what worries me about the future in the US. People get more extreme, they elect more extreme politicians, then when the more moderate voices in their party defect, they vote them out and elect more extreme politicians.

I already blocked wolfballs on mine.

Only getting seeing posts from ~13 hours ago at any time
My instance is subscribed to a few lemmy.ml communities and I'm only seeing content after it's been up around 13 hours.

Hello everyone, I have my Midwest, USA oriented instance up. It's not federated yet, although I think it's ready for federation since I added lemmy.ml and sopuli.xyz to it. This is very much a personal project of mine, so there may be mistakes made in deploying it from time to time.

Need help with Nginx SSL setup
Hello, I am setting up a HTTPS server for the first time and I am using Nginx. I had Certbot get a cert for me and it edited the config file. Now my site (midwest.social) times out. I just wanted to test it by opening the default Nginx web page. Here is my sites-available config file: `server { # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Note: You should disable gzip for SSL traffic. # See: https://bugs.debian.org/773332 # # Read up on ssl_ciphers to ensure a secure configuration. # See: https://bugs.debian.org/765782 # # Self signed certs generated by the ssl-cert package # Don't use them in a production server! # # include snippets/snakeoil.conf; root /var/www/html; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name midwest.social; # managed by Certbot location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # location ~ /\.ht { deny all; } listen [::]:443 ssl ipv6only=on; # managed by Certbot listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/midwest.social/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/midwest.social/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot }`

A midwest USA oriented lemmy instance
So I bought a domain name the other day. I'm thinking of starting a lemmy instance that is oriented around those of us who happen to live in the midwest of the US. I'd have a similar CoC as this instance and would like to federate with it. Thoughts?

Buying a domain name
Hello everyone, I'm considering starting a Lemmy instance and am looking at domain names. Any tips on where to buy? I was told to avoid GoDaddy and I'd rather not give Google my money.

Lemmy wikipedia page
Tonight I tried to create a Wikipedia page for Lemmy to try and raise awareness, but it was quickly rejected for the following reason: > This submission's references do not show that the subject qualifies for a Wikipedia article—that is, they do not show significant coverage (not just passing mentions) about the subject in published, reliable, secondary sources that are independent of the subject. Before any resubmission, additional references meeting these criteria should be added (see technical help and learn about mistakes to avoid when addressing this issue). If no additional references exist, the subject is not suitable for Wikipedia. I guess we'll have to start getting journalists to write about it? ![](https://lemmy.ml/pictrs/image/gLaF1CYmTX.jpg)

Best Rust concepts for contributing to Lemmy?
I'm currently working my way through the Rust book provided on rust-lang.org so that I can one day contribute to this project. Are there any sections I should specifically focus on? Skip?

Can we do something about the Glasgow instance?
It's filling up All with blog spam. I remember this came up a while ago, but don't remember if it got resolved.

Latest release of Alacritty not installed
I'm running Debian 10 and I saw that there was a new release of Alacritty, so I checked the version I was running which was 0.4.2 and went to apt update and it said everything was up to date? Am I somehow running a super stable Debian version?

Mobile development with Rust
Does anyone have any experience with this? Is Rust mature enough to be able to do this?

What happened to my post?
I posted a meme to c/memes the other day. It got like 6 upvotes and then later disappeared. If it got removed by the mods then whatever but I thought it would still show up in my post history just marked as removed.

Force update Android to latest version
I have a bunch of Android phones configured a specific way that haven't been turned on in a long while and therefor their OS version hasn't been updated in a long while. In order to get to the latest version I have to update the app over and over again incrementally until it reaches the newest version. Is there a way to force update this to the latest Android version?

Open source alternative to Knox Manage mobile device management
The company I work for sells a medical device that transmits data via Bluetooth Low Energy to a smartphone app that is then pushed to a database. For some of our customers they request that we provide phones with our app pre-installed that have most features locked down so that only the a select few apps are able to run (to prevent people using them for reasons other than the medical device data). We use Knox Manage, mobile device management software that is installed on all Samsung devices to configure the restrictions. With this installed we can perform updates on the phone remotely, check the location, and disable the device as well as other things. I know Linux phones are still in their early stages but has anyone heard of similar admin software like this?

The Supreme Court ruled Monday in favor of Google in a long-running copyright dispute against Oracle that has huge implications for Silicon Valley — with the court finding that Google did not violate the law when it used more than 11,000 lines of Oracle’s software code in developing its Android mobile operating system. The U.S. tech industry has been deeply invested in the outcome of the case because it will shape the country’s rules around building software, the process upon which the multi-trillion-dollar sector rests. It also gives Google a key win at a time when scrutiny of the search giant has hit a fever pitch in Washington, including a Justice Department antitrust suit against Google and and questions over whether Obama-era federal regulators erred by not taking action against the search giant in an earlier antitrust investigation. Monday's 6-2 decision is a key ruling on how U.S. copyright applies to API, software code that enables programs to work with each other. In the case, which dates back to 2010, Google had stood accused of pilfering chunks of API code developed by Sun Microsystems, which was later acquired by Oracle. “We assume, for argument’s sake, that the material was copyrightable,” the decision said. “But we hold that the copying here at issue nonetheless constituted a fair use. Hence, Google’s copying did not violate the copyright law." Google had argued that this type of code is often used freely by developers to increase interoperability between different products, and that even if such code is copyrightable — as Oracle had argued — it should be covered by the law’s “fair use" provisions, which allow the unlicensed use of otherwise copyrighted material under some circumstances. Oracle had argued that the code was copyrightable, that it should have been paid for Google’s use of it and that while some standard code is exempt from the protections, the Java code was anything but standard. Each side in the case claimed that it was, here, the true champion of innovation. Google argued that applying stringent copyright protections to APIs would chill developers who would otherwise build using shared code. That, the company said, would bad for developers, slowing the process of creating new products, and bad for consumers, minimizing the utility of products they already own. Oracle had argued that a Google victory would discourage programmers from investing deeply in software developing, knowing that the resulting code could be used by others without compensation. The Supreme Court said Google's use of the Java API "included only those lines of code that were needed to allow programmers to put their accrued talents to work in a new and transformative program." Justice Stephen Breyer, who wrote the majority opinion in favor of Google, was joined by Sonia Sotomayor, Elena Kagan, Neil Gorsuch and Brett Kavanaugh. Justices Clarence Thomas and Samuel Alito dissented. Kent Walker, Google's senior vice president of global affairs, described the ruling as a victory for innovation. "The decision gives legal certainty to the next generation of developers whose new products and services will benefit consumers," he said. Google and Oracle are fierce political adversaries, with each side arguing that the other plays unfair not simply in business, but in the tech policy debates that have gripped Washington in recent years. Those range from antitrust to privacy to how much latitude online platforms should have in policing user posts on their sites. Google’s victory in the case could provide it — and its allies — with political momentum as it wages those larger policy battles in the months and years to come.