ADB is not recognizing my device

The problem was that windows does not recognize the device driver, therefore is needed install it manually. The way I solved this: 1. Open Device Manager and locate your device under “Other devices”. 2. Right click on your device and then click on “Update driver software”. 3. Now click on “Browse my computer for driver … Read more

What is spark.driver.maxResultSize?

assuming that a worker wants to send 4G of data to the driver, then having spark.driver.maxResultSize=1G, will cause the worker to send 4 messages (instead of 1 with unlimited spark.driver.maxResultSize). No. If estimated size of the data is larger than maxResultSize given job will be aborted. The goal here is to protect your application from … Read more

dma vs interrupt-driven i/o

I’m a little unclear on differences between DMA and interrupt I/O Differences between DMA and interrupts are bogus because they are not opposing concepts. DMA and interrupts are orthogonal concepts, and both concepts are typically used together. The alternative to DMA is programmed I/O, aka PIO. The alternative to interrupts is polling. Interrupt-driven You need … Read more

How to add poll function to the kernel module code?

You can find some good examples in kernel itself. Take a look at next files: drivers/rtc/dev.c, drivers/rtc/interface.c kernel/printk/printk.c drivers/char/random.c To add poll() function to your code follow next steps. Include needed headers: #include <linux/wait.h> #include <linux/poll.h> Declare waitqueue variable: static DECLARE_WAIT_QUEUE_HEAD(fortune_wait); Add fortune_poll() function and add it (as .poll callback) to your file operations structure: … Read more

Downloading a file at a specified location through python and selenium using Chrome driver

I found the accepted solution didn’t work, however this slight change did: from selenium import webdriver chrome_options = webdriver.ChromeOptions() prefs = {‘download.default_directory’ : ‘/path/to/dir’} chrome_options.add_experimental_option(‘prefs’, prefs) driver = webdriver.Chrome(chrome_options=chrome_options)