Παρουσίαση με Ετικέτες

HowTo: Extract numeric suffix from a string in Python
24 Αυγούστου 20 11:15 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I recently needed to extract a numeric suffix from a string value in Python. Initially I did the following: import re def extractNumSuffix(value):     return (None if (search:=re.search(‘^\D*(\d+)$’, value, re.IGNORECASE)) is None else search.group(1)) Note that return has a single-line expression. So print(extractNumSuffix("test1030")) prints 1030 Tried it online at: https://repl.it/languages/python3 However, then I found out […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , ,
HowTo: Install Python, PIP and cx_Oracle on MSYS2 / Windows
23 Αυγούστου 20 03:12 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Here’s how to install Python, PIP package installer and cx_Oracle extension module on MSYS2: $ pacman -S python warning: python-3.8.3-1 is up to date — reinstalling resolving dependencies… looking for conflicting packages… Packages (1) python-3.8.3-1 Total Installed Size:  108.66 MiB Net Upgrade Size:        0.00 MiB :: Proceed with installation? [Y/n] y … $ pacman -S […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , ,
Using cross-platform fswatch for monitoring file system changes
15 Αυγούστου 20 04:07 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I was just looking for a way to monitor for file system changs in a cross-platform way. After searching the answers here and the ones at the other question mentioned as possible duplicate in that question’s comments, I think I’d go with fswatch since it is has cross-platform support. It uses different kinds of monitors […]

Search

Go

Ιστορικό Δημοσιεύσεων

Συνδρομές