Detect USB drive insertion in C (Windows)

I tried looking around and found a few solutions to detect a USB drive insertion, but none that I found were actually working in C. I wanted to ask, how do I approach this problem? What is the idea behind the detection process (Like, how is it done)...
more »

2017-09-10 10:09 (1) Answers

Get attached device serial number in C#

I am trying to get data from attached devices through C#. Specifically I need to get the serial number from iOS devices. I see the data is available to me from the attached photo, but I am looking for a way to get this information in C#. Does a...
more »

2017-09-05 22:09 (0) Answers

How to disable windows sounds in WPF listbox?

I made a styled listbox in WPF, whenever someone clicks an element or presses an arrow key in my listbox, windows plays its "select sound". This is not appropriate in this specific listbox, how can I disable it? Or how can I disable all the "default...
more »

2017-09-05 00:09 (2) Answers

"wrong first argument" exception in Process.spawn

I'm trying to spawn a process like this # name I get from network (I'm using webrick) Process.spawn(name) however I end up with ArgumentError: wrong first argument But it's a bit weird. When I use binding.pry to break right before the Process.s...
more »

2017-09-04 18:09 (1) Answers

Capture events from other windows applications

I have a third party application which I did not create myself. I need to create an application which is able to listen for button clicks and read data from tables in that application. I believe that the third party application is made in C# but I do...
more »

2017-09-03 21:09 (1) Answers

Cannot get BHO working in 64 bit

I'm working on IE11 Browser Helper Object. I got it working when I build it in x86. The problem is, I want to use the project on x64 the BHO extension isn't working when it's built on x64. The extension shows up in the Internet Explorer add-ons scre...
more »

2017-09-01 17:09 (0) Answers

Unable to install Logstash plugin on Windows 7

I need to install a Logstash plugin on Windows 7, but when I try to run this command: C:\dev\apps\logstash\bin>logstash-plugin install logstash-filter-rest I'm getting the following error: Validating logstash-filter-rest Unable to download dat...
more »

2017-08-29 22:08 (0) Answers

How to Append to Array Field in Python Django

I am making an E commerce site, I want to store Cart elements in an integer Array Field. I am using PostGreSql as my database. I have created model for cart by extending Django User model. Here is my models class UserCart(models.Model): user=mod...
more »

2017-08-26 08:08 (2) Answers

Unable to exchange encryption keys

I'm facing a hard problem at the moment and I didn't find anything online that can help me. I want to connect from my server to another one through SSH in order to send instructions (the second server manage Wi-Fi authorizations). As much as I can ...
more »

2017-08-25 15:08 (0) Answers

Sort svn tags based on creation date

Is it possible to get the svn tags sorted based on creation date. Current command which we use is svn --non-interactive list URL This is returning the tags sorted based on tag name. Is there any way we could get tags based on creation date. ...
more »

2017-08-23 17:08 (1) Answers

git stash not working after windows reinstall

I recently re-installed windows. Now, when executing git stash on any of my github repositories, an error message is returned: $ git stash Cannot save the current worktree state That's everything I get. Trying git -v stash was of no help as stash ...
more »

2017-08-18 22:08 (0) Answers

Python - Unix commands not recognized in Jupyter

I have installed Git Bash, python 3.6 and Anaconda for the course which requires me to use Unix commands within Jupyter, such as !ls, !cat, !head etc. However, for each of these commands I get (e.g.): 'ls' is not recognized as an internal or exte...
more »

2017-08-09 21:08 (1) Answers

Does using print() too much cause it to fail?

TL;DR: The print() result is not updating in a Windows Console. Executes fine in IDLE. Program is executing even though Windows Console is not updating. Background I have a file, test.py that contains: Edit: Included the conditions that I use...
more »

2017-08-08 19:08 (3) Answers

restart and login to remote windows

we have a requirement to run automation scripts on multiple machines, these scripts works on windows dialog box and other gui objects automation scripts are failing when windows logoff and as per security our machines logoff automatically i tried ...
more »

2017-08-08 15:08 (1) Answers