Can I control the architecture (32bit vs 64bit) when building a pyinstaller executable?

Pyinstaller produces a binary depending from the python you used to build it. So if you use python 2.7 64 bit it is not possible, as far as I know, to produce a 32 bit executable. This is because Pyinstaller archives all modules and their dependencies (dlls, pyds etc..) which are 64 bit due to … Read more

How to emulate USB devices?

Edit: Proof of concept here I strongly recommend this project, USB IP. It is a way of connecting USB devices over the network. There is a Windows client. What this means is, you install the client on your Windows computer. This device then expects to talk to a USB device connected to a Linux computer, … Read more

Simple way to query connected USB devices info in Python?

I can think of a quick code like this. Since all USB ports can be accessed via /dev/bus/usb/< bus >/< device > For the ID generated, even if you unplug the device and reattach it [ could be some other port ]. It will be the same. import re import subprocess device_re = re.compile(“Bus\s+(?P<bus>\d+)\s+Device\s+(?P<device>\d+).+ID\s(?P<id>\w+:\w+)\s(?P<tag>.+)$”, re.I) … Read more

Working with USB devices in .NET

I’ve tried using SharpUSBLib and it screwed up my computer (needed a system restore). Happened to a coworker on the same project too. I’ve found an alternative in LibUSBDotNet: http://sourceforge.net/projects/libusbdotnet Havn’t used it much yet but seems good and recently updated (unlike Sharp). EDIT: As of mid-February 2017, LibUSBDotNet was updated about 2 weeks ago. … Read more

USB device access pop-up suppression?

When you request permission inside your app it seems that the checkbox “use by default for this USB device” does nothing (I am not sure why this checkbox even shows up on this popup. Instead you should register an intent handler for your activity in the manifest: <activity … … > <intent-filter> <action android:name=”android.hardware.usb.action.USB_DEVICE_ATTACHED” /> … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)