arrakark

joined 2 weeks ago
[–] arrakark@10291998.xyz 1 points 2 days ago (1 children)

First of all, I agree with almost everything you have said. Trudeau has stated that he wants to keep the price of housing "flat". I'm sure the NDP can also implement policies to do that if they wanted. Do you think that this is a way to get out of the pyramid scheme? I feel like just because we've built the scheme up a lot, it doesn't mean all hope is lost

[–] arrakark@10291998.xyz 2 points 6 days ago (1 children)

Just go for it bro /s

[–] arrakark@10291998.xyz 2 points 6 days ago (3 children)
[–] arrakark@10291998.xyz 6 points 6 days ago (1 children)

What a weird question...

[–] arrakark@10291998.xyz 6 points 6 days ago (4 children)

What do you mean in your second sentence?

[–] arrakark@10291998.xyz -1 points 6 days ago (2 children)

No, bombs and the defence industry was not was I was on about. I see your point. Yes there's been some downturn recently, but the tech industry has always been cyclical. It's difficult to get hired today, and there's certainly favoritism towards senior employees.

My point was simply about economics; supply and demand. In my university, about half of all degrees issued are in the arts. If employers want someone with that kind of training, then they have all of the selection in the world. Compare this to a tech company. If a tech company wants to expand their business and they need to implement a technology to do that, depending on what technology it is, there might be like, 1k.. maybe 100k, maybe 1M people on the planet that have that specialty? Employers are going to pay a lot more for a person with that kind of training.

[–] arrakark@10291998.xyz 0 points 1 week ago (12 children)

Supply and demand. There's less people in STEM so they get paid more.

[–] arrakark@10291998.xyz 9 points 1 week ago* (last edited 1 week ago) (2 children)

I straight up never got a nice answer from StackOverflow on this. Say you have 5 classes, each requiring access to the data members/functions of the others. What's a nice way to solve this problem? I've thought of only two ~~nice~~ shit methods:

  • Pass pointers/shared-pointers etc to each class, but not through the constructor but a setter function
  • Pass lambdas or std::function everywhere. Yuck! Still doesn't put each object in a valid state in the constructor.
[–] arrakark@10291998.xyz 10 points 1 week ago* (last edited 1 week ago)

blasphemy!

void main(int argc, char ** argv, char ** envp)
[–] arrakark@10291998.xyz 8 points 1 week ago (2 children)

Quite the HD meme

 

It's interesting how different countries are dealing and are effected by the declining worldwide birth rates. The most astounding statistic to me is that wildlife populations have dropped +70% over the past 50 years. Frankly, if humans think that we are in the right to drop wildlife populations by such a staggering amount, a slight drop in human populations only seems like a fair way to balance the scales.

 

I am relieved to hear that this tennant got some money back.

There seems to be a difference in views on what housing means to people. To the landlords, it's an exchange, a source of income for losing access to space. Landlords think it's fair to evict a tennant if it means they can charge more for rent. To the tennant, it's literally where they eat, live, and sleep. Their SOL if the landlord kicks them out. The because of this, the demand-curve on a demand-supply graph is steep. This causes the sensitivities were seen in the rental market these past couple years. The supply side is also steep because of NIMBY's.

So what happens? Prices go up and quantities don't change. Current landlords are rewarded, new landlords are hardly created, and tenants are left scrambling as they move from place to place, having their entire life uprooted each time.

And then people wonder why Canada isn't having kids. LOL

 

Hey; I just got a Lemmy instance up and running. I'd like to share some tips and things that helped me along the way.

I used the Ansible installer found here. Just following the instructions is pretty clear if you've ever set up a server before. I did have a couple of hickups though:

  • In the hosts config file, there's a like that says "myuser@example.com: replace with the destination you use to connect to your server via ssh."" There's a typo down below where there is no myuser@example.com, it actually says example.com instead. Do replace it with your username and domain.
  • The customPostgresql.conf DOES need to be tuned for your server memory and CPU; the default did not work for me
  • When it says Configure a DNS A Record to point at your server's IP address. it means you need an IPv4 address for your server. Unfortunately, this means you can't use the cheapest Vultr tier at $2.5/mo, but you have to use the $3.5/mo instance at least.
  • I used the $5/mo Vultr instance instead of $3.5 because 512MiB of RAM caused my server to run out of memory and start killing processes. For some reason nginx would be the first to go.
  • Speaking of nginx; it was not configured to start on startup for some reason. A quick sudo systemctl enable nginx fixed that.
  • To diagnose the memory issue; I had to go docker ps | grep postgres, get the hash/ID for postgres, then do sudo docker logs 5115641fc0b2 to see the logs
  • To see the server logs, the /srv/lemmy/<domain name here> is where the docker-compose.yml file is, so if you cd into this dir, only then can you run docker compose logs -f lemmy or docker compose logs -f lemmy lemmy-ui pictrs to see the lemmy logs
  • Sometimes, pressing a button in the config menu doesn't do anything. Generally, it's a backend issue and not a frontend one, but the front-end does not tell you that anything has gone wrong. If you "Inspect" and open up the console in your browser, you'll see the server request done and you can see the response.
  • I was surprised to learn that you can't make a federated AND private Lemmy instance. I guess it makes sense? I kind of want to save on server bandwidth/resourse by being the only user though...
  • My ISO of Debain did not have a swap file or partitioned any swap space. Create a swap file and make it permanent through the following commands: sudo fallocate -l 1G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile and then edit sudo nano /etc/fstab and add the line /swapfile none swap sw 0 0. Without the swap Lemmy would crash the server.

Anyways, hope these notes help someone! If you've got any tips I'd love to hear.

view more: next ›