pleasantpolitics Pleasant Politics Dislike both candidates? Thinking of sitting this election out? Consider this...
Jump
  • houseofleft houseofleft 2 days ago 100%

    I think that's a really strong argument for voting with choice you have, not the one you should have.

    It makes me sad to hear you say voting Greens "weighs heavy" on you though! Democracy often isn't as strong as it should be, and people are forced between supporting candidates they dislike, or accepting their vote won't count, but that isn't your fault!

    This article is a really good think piece on how to vote. But if people choose to vote for neither of the two major candidates, I really hope nodody feels bad about it. The system sucks, not the voters!

    1
  • climate Climate - truthful information about climate, related activism and politics. Eating less beef is a climate solution. Here's why that's hard for some American men
    Jump
  • houseofleft houseofleft 3 days ago 100%

    This is such a good attitude! I cut all meat out of my diet a long time ago, and when I mention it, people often say something like "I'd love to but I couldn't commit to never having meat again".

    You don't have to! It's amazing if you do, but you're still gonna make a sizable impact on the cause you care about if you reduce your intake.

    It's odd that people don't have this with other issues, the idea of "reducing purchases of disposable plastic" or "buying fairtrade more" make total sense to people, but food is still often cashed out in these "all or nothing" terms.

    9
  • energy Green Energy Wind powers a record summer for renewable energy in Britain
    Jump
  • houseofleft houseofleft 6 days ago 100%

    Yeah, but remember that data is live and it's currently night time in the UK! (I think average solar is pretty liw in the UK though- something like 5%)

    3
  • energy Green Energy Wind powers a record summer for renewable energy in Britain
    Jump
  • houseofleft houseofleft 6 days ago 100%

    We need to do a lot more still, but the fact that the UKs energy generation is 20% of the CO2 emmisions per MW that it was just 10 years ago, despite a very conservative government, is pretty awesome.

    (20% figure from this page which has sone cool data and visualisations on it:https://grid.iamkate.com/ data is all sourced from the UK's National Energy Operator)

    3
  • python Python uv under discussion on Mastodon
    Jump
  • houseofleft houseofleft 1 week ago 100%

    I think short answer is yes, but longer answer is also that Pixi is a drop in replacement for Conda, which is a lot less used than Pip (which uv is a replacement for).

    1
  • programming Programming What languages/frameworks for small, very low usage apps on limited hardware?
    Jump
  • houseofleft houseofleft 1 week ago 85%

    I feel like in a lot of ways, most languages are great candidates for this, for lots of different reasons!

    • Rust: Great choice because it produces a small, very well optimised binary. If you just care about the output binary being small and non-memory intensive, then this is probably a good call.

    Buuuuut, Rust's compilation can be pretty resource intensive, so if you're actually developing on limited hardware:

    • C (or curveball option, Hare): produces a small, well optimised binary, with faster compilation. But less framework type things to help you on your way to apis/servers/etc.

    Then there's the fact that it's a home server, so always on, meaning you actually have generous resources in some ways, because any available CPU is kinda just there to use so:

    • Python: has a runtime and can be pretty heavy CPU wise, but lots of frameworks, and in all honesty, would wind up being a lot faster to put stuff together in than Rust or C. Probably a great default option until you hit resource issues.

    And then why not go whole hog into the world of experimental languages:

    • Roc: Doesn't have versions yet, so super new, but should produce a pretty small binary and give you higher level ergonomics than something like Rust or C, especially if you're into FP.

    And then we're forgetting about:

    • Haskell: Haskell is the only true programming language, and any time there's a selection of programming languages, picking the one that isn't Haskell is the wrong choice. Just ask anyone who programs in Haskell.

    But that doesn't factor in:

    • Javascript: Sooner or later, everything is just javascript anyway, why even try to resit?

    Plus:

    • Assembly: Can you even trust that it's well optimised unless you're writing the assembly yourself?

    Edit: My actual serious answer is that Rust + Rocket would be great fun if you're interested in learning something new, and you'd get very optimised code. If you just want it to use less memory that java and don't want to spend too much time learning new things then python is probably fine and very quick to learn. Go is a nice halfway point.

    5
  • tidalpunk Ocean Conservation & Tidalpunk About 6% of the total uptake of carbon dioxide by the ocean is due to rainfall
    Jump
  • houseofleft houseofleft 1 week ago 100%

    Thanks for sharing! I think there's a perception that carbon capture is mostly trees, but it's so interesting how complex everything actually is.

    I only found out about the Ocean Carbon Pump a year ago, which is a pretty big deal for carbon capture: https://en.m.wikipedia.org/wiki/Biological_pump

    6
  • energy Green Energy Elements of Renewable Energy
    Jump
  • houseofleft houseofleft 1 week ago 100%

    Well yes, but how is that any different from putting batteries in your wind farm?

    2
  • energy Green Energy Elements of Renewable Energy
    Jump
  • houseofleft houseofleft 1 week ago 94%

    This is a cool diagram, but I think it makes it look like you can't combine stuff. Obviously solar and wind in a lot of cases just plugged straight into batteries for storage.

    On the flippy floppy, hydropower can do both, but in completely different ways. If you build a dam, you can't generate electricity, and if you build a turbine, you can't store it.

    I don't know what my point overall is. I guess just that energy is complicated, and there probably isn't a "one size fits all" fix.

    16
  • programming Programming parquet vs csv
    Jump
  • houseofleft houseofleft 2 weeks ago 100%

    I'm a data engineer, use parquet all the time and absolutely love love love it as a format!

    arrow (a data format) + parquet, is particularly powerful, and lets you:

    • Only read the columns you need (with a csv your computer has to parse all the data even if afterwards you discard all but one column)

    • Use metadata to only read relevant files. This is particularly cool abd probably needs some unpacking. Say you're reading 10 files, but only want data where "column-a" is greater than 5. Parquet can look at file headers at run time, and figure out if a file doesn't have any column-a values over five. And therefore, never have to read it!.

    • Have data in an unambigious format that can be read by multiple programming languages. Since CSV is text, anything reading it will look at a value like "2022-04-05" and say "oh, this text looks like dates, let's see what happens if I read it as dates". Parquet contains actual data type information, so it will always be read consistently.

    If you're handling a lot of data, this kind of stuff can wind up making a huge difference.

    3
  • climate Climate - truthful information about climate, related activism and politics. US squandering billions on unproven climate solutions, critics say
    Jump
  • houseofleft houseofleft 2 weeks ago 100%

    This is so true!

    I think people are so in love with the idea of "innovation" because secretly we all just know that it means "easy-fix" and that sounds a lot better than "hard work".

    3
  • solarpunk Solarpunk Solarpunk media recomendations?
    Jump
  • houseofleft houseofleft 3 weeks ago 100%

    Oh nice! I didn't know about it- thanks for the link

    3
  • solarpunk
    Solarpunk houseofleft 3 weeks ago 100%
    Solarpunk media recomendations?

    Hey folks, appologies if this has been asked before (although surprisingly I couldn't find a similar post) - what solarpunk book, film, game, tv, etc recommendations does every have? I'm only just discovering the genre, looking for some good starting points!

    37
    17
  • houseofleft houseofleft 3 weeks ago 100%

    Well not for the people taking them, but you can make heaps of cash doling then out! (sarcasm)

    10
  • collapse collapse of the old society Boiling Point: Is it ethical to have children in the face of climate change?
    Jump
  • houseofleft houseofleft 3 weeks ago 100%

    Yeah, should be clear that I don't think choosing not to have children makes you in any way a climate facist.

    I totally hear you on thinking those things won't have an effect. But I would say this: the only people who benefit from climate change activism being a lost cause, are the people looking to exploit our planet. Will you or me or a big group of us stop climate change in its tracks? Sadly no. But the future isn't written, and we can still do a lot to mitigate the worst impacts and hold corporations to account.

    3
  • programming Programming What is your preferred API error response and why?
    Jump
  • houseofleft houseofleft 3 weeks ago 100%

    I'm a data engineer, and have seen an ungodly ammount of 200-but-actually-no-stuff-is-broken errors and it's the bane of my life!

    We have generic code to handle pulling in api data, and transforming it. It's obviously check the status code, but any time an API implements this we have to choose between:

    • having code fail wierdly further down the line because can't parse the status
    • adding in some kind of insane if not response.ok or "actually no there's an error really" in response.content logic

    Every time you ignore protocols and invent your own, you are making everyone sad.

    Will take recommendations of support groups I can join for victims of terrible apis.

    23
  • collapse collapse of the old society Boiling Point: Is it ethical to have children in the face of climate change?
    Jump
  • houseofleft houseofleft 3 weeks ago 92%

    I've heard this argument a lot, and honestly in scares me for a bunch of reasons. It feels like flirting with climate facism, but more than that, it feels like giving up on the world as a whole, and I don't think that helps.

    If you care about climate change, get involved in activism, vote for policies that will make a difference, do whatever you can to make the future a place that isn't a burden to inhabit.

    11
  • programming Programming Where do I start to make something like this?
    Jump
  • houseofleft houseofleft 3 weeks ago 100%

    Take a look at retropi, which is more or less what you're talking about!

    Depending what you're wanting to get out the project:

    • You might be happy just using retropi
    • You might be happy working on top of retropi
    • You might want to build something from scratch and just use retropi as a refence

    Anywag, I'll stop being a shill now and just give you the link: https://retropie.org.uk/

    4
  • programming Programming SQL Has Problems. We Can Fix Them: Pipe Syntax In SQL
    Jump
  • houseofleft houseofleft 4 weeks ago 100%

    I lile this a lot. This reminds me a lot of KQL (a microsoft query language that's used for a bunch if azure logging).

    I use a lot of python pandas/dask- I've definitely got used to viewing a table as a series of operations to perform rather than the kind of declarative queries you get in SQL.

    At what point is it no longer SQL? If we're changing fundamental stuff, I'd love a way of writing loops or if statements that isn't painful too.

    4
  • urbanism Solarpunk Urbanism Swimmable Cities
    Jump
  • houseofleft houseofleft 4 weeks ago 100%

    I though this would be some kind of scifi future Venice type thing, and was pretty stoked. Even more exciting that it's a real project!

    I surf and it's amazing just how many beaches aren't always safe to swim at, let alone city rivers and lakes. I think we forget how surreal it is how little lives in those waters.

    5
  • collapse collapse of the old society The Far Right Is Becoming Obsessed With Race and IQ
    Jump
  • houseofleft houseofleft 4 weeks ago 100%

    This is such an interesting topic!

    I completely agree that race as an idea as steeped in false science and racism, but I always find it really difficult to consider race when it's used as a positive force as well- movements like US civil rights have massively reduced racism, partly by using race as a concept (such as black pride).

    On the flip side, neoliberalism often advocates "color-blindness" as an idea (don't acknowledge/consider people's race) which is a great ideal, but in practice often seems to amount to turning a blind eye to on going racism.

    7
  • houseofleft houseofleft 4 weeks ago 100%

    Thanks for sharing! I heard some people on a podcast talking about 'shift left' the other day and had absolutely no idea what they were talking about. This came at the exact right time for me 😁

    2
  • technology Technology Any “small-web” search engines?
    Jump
  • houseofleft houseofleft 4 weeks ago 100%

    Ah Marginalia is absolutely awesome! I feel like modern search is almost an extension of website names now, so if I want to find netflix but don't know it's website, I might search for "netflix". Marginalia is actually a cool way to find new stuff- like you can search "bike maintenance" and find cool blog posts about that topic.

    I honestly can't remember if that's something google and the like used to do, but doesn't now, or if they never did. Either way, I love it!

    5
  • degrowth Degrowth Anti-consumerism hobbies?
    Jump
  • houseofleft houseofleft 4 weeks ago 100%

    There are some awesome hobbies that involve no consumerism, but wanted to give a shout out for making existing consumerist hobbies more sustainable:

    • With cosplay- try making more costumes from existing clothes/costumes rather than buying everything new. Even picking themes that let you reuse stuff hekps reduce waste.
    • You can often loan things, if you like reading you don't have to buy new books for everything! Libraries are a great resource and often stock new bestsellers.
    • When you can't loan, second hand items are also great. Fast fashion is particularly unsustainable, but buying second hand clothing is a lot more sustainable.
    2