Blog tag:  programming

  • #11 Python and empty strings behaviour

    I am working on an app programmed with Python and Kivy. I was getting a strange bug and ended up tracking it to this line: if string.startswith(word): ...do stuff I defined "word" empty by default (word=""), but that resulted in an unexpected behaviour: it always checks True, even if the string var ...

    Tags: programmingpython
    2018-09-08 16:45:00
  • #16 Thinkpad P53 + SSD Kingston A2000 = Freeze

    I have been testing Ubuntu 20 LTS on a Thinkpad P53. The laptop had only a SSD with 512GB by default, so I added a Kingston A2000 with 1TB (NVMe), making it my main drive for Ubuntu, while the original one had Windows 10 for dual boot with GRUB in cases of rare necessity (I have been avoiding W10 fo...

    Tags: programming
    2020-07-29 18:15:46