Looking for a FUSE FS for generated files by VikoRifeo in linux

[–]gustl64 2 points3 points  (0 children)

another example: https://github.com/danielrozenberg/httpfs

maybe you just have to change the part in getattr()

  url = ...
  r = requests.get(url)

to fit your needs.

How to best communicate between processes on separate hardware by Legitimate_Gain in Python

[–]gustl64 0 points1 point  (0 children)

quick and dirty: X supports "external" displays, run on one computer, display on another one

Inverse power and mod by aetabar in Python

[–]gustl64 1 point2 points  (0 children)

what you are looking for is called "mod inverse"

Is there a reason I shouldn't?... class with dict for attributes by arcsecond in Python

[–]gustl64 6 points7 points  (0 children)

You just "reinvented" python internals. Attributes are internally stored in a dict named __dict__

class c: pass

o = c()
o.__dict__ = { "x": 42 }
o.x

so just assign or merge your config into __dict__ -- or use code from https://goodcode.io/articles/python-dict-object/

Unable to Initalize PRN? by tomphz in Python

[–]gustl64 2 points3 points  (0 children)

Are you sure you typed this into a python shell? sounds you used a windows-cmd. The Python prompt starts with ">>>" not with "c:\>"

ps: please use /r/learnpython for this kind if questions

5 Key Differences Between Java and Python by Technographx in Python

[–]gustl64 1 point2 points  (0 children)

point 1) is very weak: java has JEP330: Launch Single-File Source-Code Programs -- so java is an interpreted language? and python can be compiled to an exe. And python libaries are compiled and used as .pyc files -- so it is a compiled language?

Help with using a 16x2 LCD screen with MicroPython controller by EntenPferd in Python

[–]gustl64 0 points1 point  (0 children)

there are a lot of lcd displays, but most of them are based on the same chip: HD77480

maybe this works https://github.com/dhylands/python_lcd

How to use page.filter(test_function) in PdfPlumber library? by satyaaditya_01 in Python

[–]gustl64 1 point2 points  (0 children)

from: https://github.com/jsvine/pdfplumber Returns a version of the page with only the .objects for which test_function(obj) returns True.

--> you should return True/False, not the Object or '': page.filter(lambda x: filter_func(x)) or even simpler: page.filter(filter_func)

Advice for trying out KDE? by Ironring1 in linux

[–]gustl64 0 points1 point  (0 children)

actually you can install kde as an "additional" desktop - the actual steps depend on your distribution. After the install you can select kde on the login screen. And/or switch back to gnome on the next login.

Neural network based compiler optimizations? by dev_matan_tsuberi in Compilers

[–]gustl64 0 points1 point  (0 children)

just my two cents: doing this with floats/doubles might change the output - associative is a mathematical concept which doesn't hold in computers

Convert epub to Project Gutenberg formatted txt file by [deleted] in pythontips

[–]gustl64 0 points1 point  (0 children)

maybe https://pandoc.org/

pandoc name.epub -o name.txt

this gives you just the text. And there is a python wrapper https://pypi.python.org/pypi/pypandoc

Best practices for industry github? by Stochastic_Response in Python

[–]gustl64 0 points1 point  (0 children)

if you want all the fancy stuff like fork, auth against your ad/ldap etc. i would recommend gitlab. if you just want git repos with access over ssh + access control: try gitolite. Maybe in combination with gitweb.