• Activity
  • Votes
  • Comments
  • New
  • All activity
    1. What is a class in Python?

      I've been learning a bit more Python, going through a Udemy course to expand my skills a little. One of the programs the course guides you to make is a little dictionary, but it currently only...

      I've been learning a bit more Python, going through a Udemy course to expand my skills a little. One of the programs the course guides you to make is a little dictionary, but it currently only runs once and then quits.
      I'd like to adapt it to use a nice TUI that keeps itself open until the user specifies they want to quit, using something along the lines of npyscreen. However, this library uses classes, and that's not something I'm yet familiar with. I'd rather have an understanding of what classes are, how they work, and why to use them before I take the plunge and start fiddling around with npyscreen (although I'd be interested to hear if you think that I should Just Do It instead).
      Can anyone give or point me towards a good explanation of the what, how, and why of Python classes? Or better yet, a tutorial that will give me something to write and play with to figure out how it all fits together?
      Thanks!

      9 votes
    2. Where would you live if you had no ties to where you are now?

      The US emigration thread brought back a lot of thoughts I've had about leaving the UK, and I imagine a decent number of us have at least idly wondered about a serious move - especially after a...

      The US emigration thread brought back a lot of thoughts I've had about leaving the UK, and I imagine a decent number of us have at least idly wondered about a serious move - especially after a year like we've just had.

      For me, the difficulty has always been figuring out where to go: politics/climate/healthcare/lifestyle/language are a delicate balancing act, and I don't think anywhere's a slam dunk. Everyone's going to have their own take on what perfect looks like, and what compromises to make mapping that to the real world!

      So let's assume you're packed and ready to go, nothing holding you back. You've still got to navigate inbound immigration, handle the language, find a job, all that good stuff - but the world is your oyster. Where would you choose to go?

      16 votes
    3. How do you think we should deal with compliments?

      Compliments are, technically, to be tagged as 'noise' and often also 'offtopic' for usually being only loosely related to the commment or post they're replying to. But the warm fuzzies empathy is...

      Compliments are, technically, to be tagged as 'noise' and often also 'offtopic' for usually being only loosely related to the commment or post they're replying to. But the warm fuzzies empathy is pretty important in a community, and I don't remember seeing an unnecessary compliment anywhere so, unsurprisingly, people don't noise compliments. But they still might clutter space for a potential reply giving advice. So do you think the current arrangement is fine? I personally would probably make a label for compliments which would either be neutral or slightly positive, and maybe publically visible so everyone can (but don't have to) see the compliments of the receiver but I haven't thought about this too deeply.

      5 votes
    4. Ubuntu sends http requests to Google cloud, here’s a fix

      Ubuntu has this package installed by default: network-manager-config-connectivity-ubuntu It's only purpose is to provide settings for NetworkManager to send requests to...

      Ubuntu has this package installed by default:
      network-manager-config-connectivity-ubuntu

      It's only purpose is to provide settings for NetworkManager to send requests to connectivity-check.ubuntu.com , and based on the result (AFAIK) detect redirection by captive portals and open an ISP's page (think public WiFi, or hotel rooms, where you need to authorize to access the net).

      Well, connectivity-check.ubuntu.com is hosted on Google cloud (you can check that by running:

      dig connectivity-check.ubuntu.com
      whois [the IP from previous query]
      

      ), so by default Ubuntu sends requests to a Google cloud page.
      I don't say Google counts daily active Ubuntu users (because many of those have the same IP), or that Google actively logs and analyzes that data. But some of you guys may not like that behavior.

      So what's the fix?

      Purge the package

      sudo apt purge network-manager-config-connectivity-ubuntu
      

      If you do need a captive portal detection, create your own config file to query some HTTP (not HTTPS) page of your choice, in the example below I have a Debian page used for the same purpose. Use your favorite text editor to create and edit /etc/NetworkManager/conf.d/90-connectivity-custom.conf :

      [connectivity]
      uri=http://network-test.debian.org/nm
      

      Restart NetworkManager

      sudo systemctl restart NetworkManager
      

      If you run an Ubuntu derivative, please report if you have network-manager-config-connectivity-ubuntu installed in the comments.

      11 votes
    5. What did you do this weekend?

      As part of a weekly series, these topics are a place for users to casually discuss the things they did — or didn't do — during their weekend. Did you make any plans? Take a trip? Do nothing at...

      As part of a weekly series, these topics are a place for users to casually discuss the things they did — or didn't do — during their weekend. Did you make any plans? Take a trip? Do nothing at all? Tell us about it!

      8 votes
    6. Show off your Factorio factory, and share tips/tricks/blueprints you find useful

      Inspired by a comment here from @Don_Camillo and @Omnicrola Show me pics of your Factorio setup, brag about how cool and automated everything is, share any blueprints you find useful (either ones...

      Inspired by a comment here from @Don_Camillo and @Omnicrola

      Show me pics of your Factorio setup, brag about how cool and automated everything is, share any blueprints you find useful (either ones you've designed yourself or found online), and any other tips & tricks.

      16 votes
    7. Thoughts on moving out

      So recently I've been kind of hating big parts of where I am in life, most of all where I live. I am still living with my family, and while they are all good people, our place isn't the biggest so...

      So recently I've been kind of hating big parts of where I am in life, most of all where I live. I am still living with my family, and while they are all good people, our place isn't the biggest so there isn't too much privacy most of the day. So over the years I have basically started to quietly resent everyone in this house, which got exacerbated over the quarantine (and even much more when we were all stuck at home for 14 days when we got the corona and were in isolation).

      I've been thinking that basically the only way to make sure I don't go fully insane is to finally move out. Also, I don't really want to admit it to myself, but I am not very independent, and I feel like I really need to change that. This year I will be finishing my Bachelor's degree, so that seems like the perfect time I would like to aim for. The problem is that after I am done with the degree I want to continue by doing a Masters in the same place. The obvious easy solution is to just rent some place with roommates I'd have to find, which is probably what I'll try to do.

      But I have also been engaging in a lot of fantasizing - escapist thoughts involving doing my Masters in a different country. I was already thinking about this a bit before starting my Bachelor's degree, but I ultimately decided not to, which might have been a good call as I was definitely even more of a baby back then. But now, as I have another opportunity I have again been thinking about this a lot.

      I am from the EU, so I could study in any other EU country for free. Mostly I've been thinking about Finland, or other Scandinavian countries (maybe kind of cliche?). It would definitely be really hard though, and I am not sure am I strong enough to do this. As I said I am kind of a not very independent wuss, so I am kind of scared if I could survive by myself in a different country with basically no one I could fall back on. Finding a place to live would also probably be quite hard and I would very likely need to find a part time job there, because even though I spent almost 2 years saving up money at a part time job, the countries I am looking at are more expensive than mine so my savings wouldn't most likely be enough. Hopefully there would be some student dormitories available that would be quite cheap? I don't really care too much about how prestigious my university is, but it could also be nice that I could choose a better rated one somewhere.

      I hope I wouldn't lose my current best friends. I probably have some very overblown expectations about this though. I always dream how I would meet some new cool friends, maybe even find a relationship. I am quite an anxious person, especially socially anxious which I'd also hope I would have to overcome a bit. But I probably wouldn't magically become more extroverted, and less anxious. I might even just be unable to make any friends there, but I'd hope that I would be kind of forced to make some and get out of my shell so to speak. Suddenly having to do everything by myself, while having a job, in a foreign country might be too much though.

      Also another random thing that I would like about this is I would kind of like to change my name at the same time and I am fantasizing that it would work out nicely. I don't dislike my name too much, but I feel like I would like a different one much more, and that it would kind of help me become myself more or something? I don't really want to change my name legally, I am more thinking that I would just start telling people that my name is <name I like more>, so it would kind of be more like a nickname. Yeah, writing that out I should probably try telling some friends to just start calling me by the name, even though I feel like they would just be like why and cringe a bit.

      I know I am probably fantasizing about studying abroad too much, and that it wouldn't be that great, studying abroad most likely wouldn't help me find a relationship or anything, but I'd think it would definitely force me to become more independent. I feel like I am once again coming up on quite a big decision in my life and I am still not really sure how to proceed. Did anyone here study abroad, for the whole degree, or even as an exchange student - Erasmus or similar stuff? Any other thoughts would be appreciated too. Thank you for reading, I hope my writing isn't too much of a messy stream of thoughts.

      Edit: Thanks to everyone for your responses, you are all so nice, uplifting and motivating <3. I will definitely be seriously researching much more about studying abroad, and while I can't guarantee I'll go forward with this plan, I'll try working towards it for now. I still have almost 2 months to decide, and if I decide to go ahead with it, it would still be at least a year away. But I promise to you guys, that I will at least move out of my parents house for my sanity, one way or another.

      21 votes