Open links in new tab
  1. How to list all installed packages and their versions in Python?

    Is there a way in Python to list all installed packages and their versions? I know I can go inside python/Lib/site-packages and see what files and directories exist, but I find this very awkward. ...

  2. terminal - List of ANSI color escape sequences - Stack Overflow

    Jan 30, 2011 · On most terminals it is possible to colorize output using the \\033 ANSI escape sequence. I'm looking for a list of all supported colors and options (like bright and blinking). As …

  3. Getting a list of all subdirectories in the current directory

    Jun 10, 2009 · Is there a way to return a list of all the subdirectories in the current directory in Python? I know you can do this with files, but I need to get the list of directories instead.

  4. TypeError: list indices must be integers or slices, not str

    Sep 14, 2015 · 1. A list is used as if it were a dictionary 1.1. Index a list as if it was a dictionary This case commonly occurs when a json object is converted into a Python object but there's a …

  5. How to list npm user-installed packages? - Stack Overflow

    Jul 30, 2013 · How do I list the user-installed / environment package only in npm? When I do npm -g list, it outputs every package and their dependencies. Instead I'd like to see the packages …

  6. ip - List ALL devices on local network? - Stack Overflow

    Jun 4, 2015 · I want to generate a list of all devices on a local network. I have tried the command arp -a and it has listed some devices, but not all of them. The ifconfig command shows my IP …

  7. How do I list all the columns in a table? - Stack Overflow

    For the various popular database systems, how do you list all the columns in a table?

  8. List all environment variables from the command line

    Mar 16, 2011 · Is it possible to list all environment variables from a Windows' command prompt? Something equivalent to PowerShell's gci env: (or ls env: or dir env:).

  9. How to delete all items from list? - Stack Overflow

    Jul 23, 2014 · The list view will load Select all items in the list and delete Strangley setting the view to 1k of rows started producing delete issues for me - perhaps I'm causing an issue on …

  10. How can I list all remote existing branches in Git?

    Feb 28, 2020 · I have tried git remote -r to view all remote existing branches, but I found the result includes those branches that are deleted remotely. Is there a way to filter out these …