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

GUI and windows service communication

If you are going to be developing with .NET, use WCF for your interprocess communication. WCF greatly simplifies development because the intricacies associated with a specific communication mechanism (e.g., sockets, pipes, etc.) are abstracted behind a unified programming model. Thus, it doesn’t matter if you choose to use http, tcp, or named pipes for your … Read more

Can Selenium interact with an existing browser session?

This is a duplicate answer **Reconnect to a driver in python selenium ** This is applicable on all drivers and for java api. open a driver driver = webdriver.Firefox() #python extract to session_id and _url from driver object. url = driver.command_executor._url #”http://127.0.0.1:60622/hub” session_id = driver.session_id #’4e167f26-dc1d-4f51-a207-f761eaf73c31′ Use these two parameter to connect to your driver. … Read more

Communicating between a fragment and an activity – best practices

The easiest way to communicate between your activity and fragments is using interfaces. The idea is basically to define an interface inside a given fragment A and let the activity implement that interface. Once it has implemented that interface, you could do anything you want in the method it overrides. The other important part of … Read more