Archive for February, 2021
Python classes, metaclasses, and instances at a glance
Tuesday, February 16th, 2021For more details: http://www.thedigitalcatonline.com/blog/2014/09/01/python-3-oop-part-5-metaclasses/
git-strip-above
Monday, February 15th, 2021git format-patch $1..HEAD -o wip && git reset –hard $1
Getting files from sources in Scala
Sunday, February 14th, 2021// Java-based ways getClass.getResource(“/html/myfile.html”) println(Source.fromInputStream(getClass.getResourceAsStream(“/html/myfile.html”)).mkString) // Scala-native way // Note: NO LEADING SLASH println(Source.fromResource(“html/myfile.html”).getLines.toList)
Epson DS-30 on Ubuntu Linux
Saturday, February 13th, 2021https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1728012/comments/36 Use the attached ds-30-bundle, download fromhttp://support.epson.net/linux/en/iscan.php?model=ds-30&version=1.0.1 Install the deb packages with ./install.sh –dry-run Use simple-scan to run the scan. Insert paper face down above/next tothe little scan marker and press the button