• 1 Post
  • 40 Comments
Joined 1 year ago
cake
Cake day: July 8th, 2023

help-circle










  • ugh Jira. At my first job in 2006 I was the Jira administrator. Every project wanted their own custom fields. We had a Jira project for “infra” problems it had 3 fields yall Title/Description/priority and it worked so well. Moved to a company with a simple ticket system with not much more but the concept of “tags” it was heavily



  • Rev@ihax0r.comtoTechnology@lemmy.worldPrinters
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    2
    ·
    1 year ago

    I have the HP Color LaserJet Pro M255dw I love it. I got it new last year. Sure its been complaining about low toner for 90% of that time but it still prints and they look great. I don’t have hp software installed, I have the wifi turned off and just use the ethernet hookup. airprint from my phone works great also. Its never once refused to print because one of the toner colors are empty. Sure it complains but it still prints. I can’t say the same for any inkjet I have ever owned.

    Never buy consumer grade printers. If the ink is more expensive than the printer you are going to get hosed in the long run.

    I had a brother laser before but it pulled so much current at warm up that it caused a brown out that tripped all the ups’s in the house.

    I





  • IMHO programs don’t belong on pypi only libraries. Its a waste of namespace.

    Explicit is better than implicit, read the zen of python(its short). Don’t be too magical. Don’t reach for a class if you have no state. Watch some jackdied talks from old pycons. You don’t need custom exceptions the stdlib has plenty. Also if its not documented don’t use it. Don’t use star imports.

    Black just use it don’t fight it, don’t waste brain space with formatting rules. “You can have any formatter you want as long as its black”. Use default black settings. People who don’t are heretics :P

    sys.path or PYTHONPATH is how imports are resolved. Much like shells looking for binaries. IMHO you should never adjust either. The current directory is always added to sys.path. but beyond that directories are packages. Use __init__.py when you want to provide a module for what happens when you import a package.

    python3.11 -m venv .venv

    This is how you should create your venv. After that activate it and use pip. You should setup a requirements.txt for your project, then you can use pip -r to configure your env. Global install of third-party libraries is always a bad idea in practice. Version constraints make that almost impossible these days.