• 0 Posts
  • 17 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle

  • Python developer here. Venv is good, venv is life. Every single project I create starts with

    python3 -m venv venv

    source venv/bin/activate

    pip3 install {everything I need}

    pip3 freeze > requirements.txt

    Now write code!

    Don’t forget to update your requirements.txt using pip3 freeze again anytime you add a new library with pip.

    If you installed a lot of packages before starting to develop with virtual environments, some libraries will be in your OS python install and won’t be reflected in pip freeze and won’t get into your venv. This is the root of all evil. First of all, don’t do that. Second, you can force libraries to install into your venv despite them also being in your system by installing like so:

    pip3 install --ignore-installed mypackage

    If you don’t change between Linux and windows most libraries will just work between systems, but if you have problems on another system, just recreate the whole venv structure

    rm -rf venv (…make a new venv, activate it) pip3 install -r requirements.txt

    Once you get the hang of this you can make Python behave without a lot of hassle.

    This is a case where a strength can also be a weakness.




  • It’s normalized in the US to be fat. All the people around are fat too, so they are rarely shaming. You’ll fit right in.

    If you’re the only fat one in the group (like when you go to most of Asia) they usually make sure you know - repeatedly - that you’re the fat one. It’s a pretty big incentive to not be that one.

    If everyone else is fat too, then why bother (aside from the million health and happiness reasons)




  • I was the president of my HOA. Somewhat not intentionally.

    It was my first home, a condo, and I bought it at launch right after it was built. After about 6 months of living there, a neighbor approached me and said the whole rest of the board had flaked out, and would I like to be president of the HOA?

    I said sure, it seems interesting and I definitely want the value of my ownership to be protected.

    So me, him, and another guy formed a new board.

    Oh man, the messes we started to uncover. The super low dues didn’t even cover the trash removal, hallway electric lighting bill, elevator maintenance contract… Much less any landscaping. No wonder the place was looking rough.

    And of course there was no budget to put money away for long term needs like reroofing or whatever.

    So we worked hard on a plan to propose to the owners to increase the dues about 70% so that we’d have a well landscaped place and hopefully no surprise expenses ever because of an ample rainy day fund.

    Less than 10% of the owners even showed up to the HOA meeting, so we didn’t meet quorum.

    We tried again, and finally got quorum after knocking on doors and asking for people to please come and vote.

    This was just one issue. I’d get regular calls like hey, somebody dumped an old mattress by the dumpster. Can you call the removal company (the regular trash service wouldn’t take that kind of thing). Or calls like “there’s some sick trees in the front yard, when are you finally going to get an arborist out here?” And so and so’s room is leaving trash in the hallway, can you please go talk to them?

    I resigned within a year. Screw those guys and I’ll never co-own without getting to choose my partners again.


  • The US projects its own interests worldwide but those often overlap with the interests of other as well.

    For example, the US often stipulates intellectual property and worker rights in it’s trade deals. The US actively protects shipping lanes. The US actively negotiates visa-free entry for American passport holders to other countries. The US invests in the economies of foreign countries to stimulate trade opportunities. The US controls the SWIFT banking network which makes it so that we don’t need to send gold bullion or pallets of cash to buy things from other countries, and participating in the system requires member countries to have certain controls in place that attempt to block bad actors. The US, through it’s embassies and ambassadors, deploys it ideology to foreign governments, and makes deals that allow foreigners to invest in the USA and Americans to open businesses in foreign countries.

    The US actively shuns and makes life difficult for menace dictatorships on the global stage by creating trade exclusions.

    There have been coups since the beginning of time and always will be, as it’s human nature. Many citizens of other countries have no belief that the future of their country belongs to them after decades or centuries of dictatorships or kingdoms. On the whole, history shows that kingdoms rise and fall for many reasons and the people sometimes benefit and sometimes suffer for it.

    Obviously it’s a highly complex topic, but if the US wasn’t doing these things, then Russia or China would be, or there would be more powerful regional factions, which could reduce the size of the world in terms of travel and trade options for many.

    Whether the US is the right one to be in control of this at this point in history is a matter of intense debate among some, but it could absolutely be worse than it is now.


  • Driver support was so dicey. If you had anything even remotely not mainstream, you would be compiling your own video driver, or network driver, or basically left to figure it out for any other peripheral. So many devices like scanners and very early webcams just claimed zero Linux support at all, but you could at times find someone else’s project that might work.

    I tried to switch to Linux as a desktop system several times in the late 90s but kept going back to windows because hardware support just wasn’t there yet.





  • My company has an office in China and I’ve been there many many times.

    Chinese people are like all other people - same needs, same hopes and dreams, same fears, same drivers. In the city where our office is located, they are extremely hard working and want to ensure a better future for their family. Just like most American cities.

    Their city is very high tech, moreso than many American cities because they skipped a lot of legacy technology.

    They don’t necessarily subscribe to the same moral/value system as Americans, for example they often see copying each other’s ideas as a compliment whereas Americans see it as stealing. Kind of like - if it’s possible to copy, then it’s fair game - so don’t make it possible if you don’t want it copied. Perhaps that drives a different kind of innovation.

    Obviously there are many more cultural differences. But as a people, we are all essentially working with the same needs.

    All that being said I don’t appreciate the great firewall when I’mthere, the censorship, and the fear they have about discussing banned topics. I don’t appreciate the high-tech security cameras at every corner, or all the tracking of activities. The younger generations tolerate this for now because they are wealthier than their parents and told to cooperate, but that may not hold long term.



  • When I was a teenager, the people who are my age now seemed really old and because of that there was no attraction.

    Now when I see a grey hair, or a new wrinkle on my partner it’s the hottest thing. We connect with each other about real life, she knows me well and helps me center myself.

    I too hope that feeling continues to 60 years old and beyond, and I have a growing suspicion that it will so long as we both continue to work on staying healthy and attractive.