• 0 Posts
  • 11 Comments
Joined 2 years ago
cake
Cake day: June 21st, 2023

help-circle
  • My TikTok feed is full of content that I find interesting and educational, from creators who work hard to make something valuable.

    For them, banning TikTok means the work they put in to curating an audience will be partially lost, they’ll retain only the followers who find them on another app. If they are monetizing, they’ll potentially have to start over. That may discourage some who are just getting started from developing their craft.

    If china, bytedance, meta, or any other platform is collecting user data in such a way as to be a national threat they definitely need to cut it out and this should be regulated. For example, it should be impossible to identify the location of military generals based on where their wives access TikTok from, or who’s having an affair with who based on proximity to each other, or to develop a vast dataset of individually identifiable profiles of every user that could be used to selectively damage their character.

    Aside from these problems, which are potentially solvable, I think the individual creator/maker economy is an awesome way to give more power to the people.


  • The TOTP changes every time. For modern totp hashing I’m not sure how many sequential codes a keylogger would need but I’m guessing more than I will ever enter.

    Edit, asked ai for an answer to that because I was curious (maybe it’s right):

    Start AI

    That being said, if an attacker were able to collect a large number of TOTP codes, they might be able to launch a brute-force attack to try to guess the private key. However, this would require an enormous amount of computational power and time.

    To give you an idea of the scale, let’s consider the following:

    Assume an attacker collects 1000 TOTP codes, each 6 digits long (a common length for TOTP codes).
    Assume the private key is 128 bits long (a common length for cryptographic keys).
    Assume the attacker uses a powerful computer that can perform 1 billion computations per second.
    

    Using a brute-force attack, the attacker would need to try approximately 2^128 (3.4 x 10^38) possible private keys to guess the correct one. Even with a powerful computer, this would take an enormous amount of time - on the order of billions of years.





  • Hah, I installed Postiz just yesterday, interesting to see this thread. It’s like buffer or one of the other paid tools to schedule your social media posts and track engagement. Of course, of particular interest to our community, Postiz is self hosted.

    It doesn’t have as many features yet as the major SaaS businesses, but the software is looking good and quite usable right now. I’m sure the more people who use it and support the developer, the more this tool can grow.

    For example you can plug in your OpenAI API key and get an LLM chat interface inside the software while writing social posts. But I don’t think it learns your style or creates posts using any kind of system prompt yet unless you type it in each time.

    Another thing I couldn’t figure out so far is how to limit which social media channels individual users can see. For example my business has several different units and there’s a different marketing team on each unit, so they shouldn’t be able to post into other channels.

    If you’re in the business of needing to post regularly on a lot of channels I think postiz is worth checking out.




  • Global trade drove the cost of supplies and goods down to the lowest available prices, so while setting tariffs may encourage local production because it makes overseas less attractive, the price of goods still goes up on both scenarios.

    If moved locally, there will be more local labor required for production but it’s not clear if that is a net benefit.

    Hypothetically under globalism more developed countries shed their “dirty manufacturing labor jobs” and move more people upmarket. Of course this is matter of nonstop debate among economists because as we all know the whole population of a country can’t move upmarket together and a lot of people were/are screwed because of lack of education and opportunity to develop themselves.

    In an ideal implemention of this, more people would be moving to the arts, self expression, and technology, while fewer are involved in survival activities like shelter and food.

    I think the unsolved problem now is that average people believe way too much of that wealth went to the top while the middle class is working harder than ever and getting less.



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