• 62 Posts
  • 181 Comments
Joined vor 2 Jahren
cake
Cake day: Okt. 17, 2020

help-circle
rss




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?
fedilink

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?
fedilink



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 ```
fedilink

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.








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.
fedilink






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.
fedilink


midwest.social
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.
fedilink


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 }`
fedilink