Skip Navigation

Posts
282
Comments
129
Joined
3 yr. ago

Python @programming.dev

Memray: the endgame memory profiler

PostgreSQL @programming.dev

PostgreSQL and FIPS mode

Austin Texas Community @lemmy.world

He thought tending bar sounded like fun. Then the entire kitchen staff quit on Christmas Eve.

Python @programming.dev

New Pythörhead release v0.19.1

SQL @programming.dev

SQL Reserved Words: Troublesome words in SQL

PostgreSQL @programming.dev

Setup Geocoder with PostGIS and Tiger/LINE - Blog @ RustProof Labs

PostgreSQL @programming.dev

EXPLAIN (ANALYZE, BUFFERS) and interpreting shared buffers hit in Nested Loops

PostgreSQL @programming.dev

Creating Custom Postgres Data Types (in Django)

Python @programming.dev

The different uses of Python type hints

Python @programming.dev

Python Type Hints: pyastgrep case study

PostgreSQL @programming.dev

pg_bm25: Elastic-Quality Full Text Search Inside Postgres - ParadeDB

Python @programming.dev

Python's tuple Data Type: A Deep Dive With Examples – Real Python

Python @programming.dev

How to setup duration based profiling in Sentry

Django @programming.dev

Django security releases issued: 4.2.6, 4.1.12, and 3.2.22

Python @programming.dev

Python 3.12: Cool New Features for You to Try – Real Python

LEGO @lemmy.world

Lego Ideas: Axolotl

LEGO @lemmy.world

Star Wars™ Venator-Class Republic Attack Cruiser 75367

PostgreSQL @programming.dev

PostgreSQL benefits and challenges: A snapshot

Django @programming.dev

Creating Custom Postgres Data Types in Django

Lego @lemmy.ml

More than 100K pieces later, Bellingham couple competes on ‘Lego Masters’

  • Immaculate Grid 82 7/9:

     
        
    🟩🟩⬜️
    🟩🟩🟩
    🟩⬜️🟩
    
    
      

    Aaaaaaaaand the streak is over, but it was fun while it lasted. I messed up on the COL and ATL (first guess) 30+ HR/30+ SB season. 🤦‍♂️

  • MLB Pickle #472 - 4/9

     
        
    ⬜⬜⬜⬜⬜🟩🟨⬜
    ⬜⬜🟨⬜⬜🟩🟩⬜
    ⬜⬜🟩⬜⬜🟩🟩🟩
    🟩🟩🟩🟩🟩🟩🟩🟩
    
      

    Should have had it in 3, but I wasn't paying attention to the bats/throws columns. 🫤

  • Would also be nice if I could use some sort of pattern in the --ignore-names option. Apologies if that's already there and I missed it.

  • Just coming back around on the count thing, in order to use wc -l, you need to ensure that stderr is piped too. Like:

     bash
        
    deadcode . --exclude=*/tests,conftest.py --ignore-names-in-files=core/settings.py 2>&1 | wc -l
    
      

    I ran this against a ~8 month old Django project and it turned up 11 unused names, of which 5 were expected and can be whitelisted. Nice!

  • This is great! I really appreciate that it returns a sensible exit code to the shell so that it can potentially fail a build. I also like the ability to maintain a list of excluded names in pyrpoject.toml so that you don't always have to sort through false positives.

    Would love to see some more output options, like maybe --quiet that simply passes/fails and returns the exit code with no output or --count that either just displays a count or includes a count in the regular output. I guess I could always pipe the output to wc -l instead of having --count.

    I'll see if I can't get this integrated in our CI system at work this next week.

  • Ha! Great catch. Yeah, I'll get that sorted.

  • Still getting used to this. I'm having a hard time opening side-by-side terminals.

    I think my next step is to reduce my config down to just this and make sure nothing is interfering. But if anybody already figured this out, I'm all ears.

  • Also includes Tkinter and other forms of QT.

  • Took me a while, found the division and the age pretty quickly, but took me a bit to get the right team and position.

    MLB Pickle #471 - 6/9

     
        
    ⬜⬜⬜🟩🟩🟩🟨⬜
    ⬜⬜🟩🟩🟩🟩⬜⬜
    ⬜⬜🟩🟩🟩🟩🟩⬜
    ⬜⬜🟩🟩🟩🟩⬜⬜
    ⬜⬜🟩🟩🟩🟩🟨⬜
    🟩🟩🟩🟩🟩🟩🟩🟩
    
      
  • Today's accomplishment was getting the DET/TBR player that less than 1% of other players had guessed.

  • Immaculate Grid 81 9/9:

    IMMACULATE!

     
        
    🟩🟩🟩
    🟩🟩🟩
    🟩🟩🟩
    
      
  • This is my favorite/most horrifying part:

    The control flow is so labyrinthine that some of the code is actually indented by 23 tabs. Forget the 80-column rule -- these lines don't even start until column 92! Even if we discard the inline data tables, then the longest line in the codebase is still a whopping 387 characters long (you'll have to scroll to the right to read it)

  • Thanks @forkball@lemmy.world , I think I was just in the right place at the right time.

    I'll see if I can dig up some old technical blog posts from work. On my current project, we're using Python for a research SaaS tool for sports information people, generally at broadcasters and league offices. We also have a fair amount of ETL type code in Python for aggregating and enriching data.