Skip to main content

How to update installed Python packages

You can use the pip list --outdated command to view a list of installed Python packages that have newer versions available. This command will show you which packages are outdated and can be updated to the latest versions.

Here's how you can use it

Update a git feature branch to the latest branch (master)

In our projects, team members frequently generate new Git branches linked to the same Jira number, resulting in cluttered and disorganised structures that can pose challenges for both current and future developers. For instance:

Jira: ABC-123

Ticket work: Reformat headers

Over time, these branches accumulate and become disorganised, resulting in names like:

ABC-123-reformat-headers

ABC-123-format-headers

ABC-123-format-header

Solr commands

On an Ubuntu 20.02 system with Nginx, you can utilize the following commands to handle Solr:

Solr clearing out the data

Cleaning out or clearing data in Solr can be done in a few different ways, depending on your specific requirements.

 

Delete All Documents

You can use the Solr Admin interface or send a DELETE request to remove all documents from a Solr core.

Python error: in putheader if _is_illegal_header_value(values[i])

Snapshot of the error

File "/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1271, in putheader
    if _is_illegal_header_value(values[i]):

The above error points to the putheader definition in client.py file located 

How to check or compare files recorded in the files tables against actual file in the directory

Have you had the situation where you needed to compare the files recorded in the database (e.g., file_managed table) against the actual files in the file system directory (sites/default/files/...). This is useful for scenarios where you want to ensure that the database records and the physical files are in sync.  To do this perform the following steps:

Using Twig {% extends %}

In Twig, the {% extends %} tag is used to inherit and extend the contents of another template. In the case you provided:

Ignoring ffi-1.16.3 because its extensions are not built. Try: gem pristine ffi --version 1.16.3

The error you're encountering indicates an issue with the ffi gem during the CocoaPods update. The error message suggests trying to run the gem pristine command to fix it.

Using terminal - run the following command:

gem pristine ffi --version 1.16.3

This command will attempt to restore the ffi gem to its pristine state, resolving any issues with its extensions. After running this command, try running pod update again

Subscribe to