driver

How to create virtual keyboard in osx?

不羁岁月 提交于 2020-01-01 07:22:29
问题 I want to create a virtual keyboard in osx. Is it possible? I mean can I make a program that gives same signals than real keyboard. Example of this kind of keyboard would be onscreen keyboard, or keybord viewer (does it have necessary interface btw). How low should I start? Should I make a device driver e.g. virtual (wireless) keyboard? Or does cocoa etc. have the necessary stuff? The requirements I have are: - a list of tuples (time, key_down/key_up, key_code) corresponds to person typing -

Difference between an API and a device driver

≡放荡痞女 提交于 2020-01-01 07:18:10
问题 I try to understand how they both relate to each other. As far as I know, they both can be a part of the HAL. In case of a communication between an application and a graphics card - can an API get the job done on its own or do we have to rely on them both? Can an API directly communicate with the hardware or do we always need a driver in-between, which translates the command of the API? 回答1: TL;DR Think of an API as a specification that describes what to do, while a driver is an

Check if MongoDB PHP Driver is installed

谁说胖子不能爱 提交于 2020-01-01 04:55:20
问题 I am developing an install script for my application, how would I go about checking if MongoDB is installed or not with a PHP driver on a server?? Many thanks 回答1: The easiest way of checking it would be to run: echo extension_loaded("mongo") ? "loaded\n" : "not loaded\n"; See also: http://php.net/manual/en/function.extension-loaded.php 回答2: get_loaded_extensions — Returns an array with the names of all modules compiled and loaded. print_r(get_loaded_extensions()); 回答3: You can check by using

How does a Windows Kernel mode Driver, access paged memory?

只愿长相守 提交于 2020-01-01 03:49:07
问题 1) A usermode process has its own "address context", which maps the user-mode virtual addresses to a unique collection of physical page frames. That is, the meaning of any particular virtual address changes from one moment to the next as the Windows XP scheduler switches threads. Part of work of "switching threads" is to change the page tables so that they refer to the incoming thread’s process context. _ 2) A Windows Kernel-mode Driver executes in "arbitrary thread context". A driver may

Why I2C_SMBUS_BLOCK_MAX is limited to 32 bytes?

青春壹個敷衍的年華 提交于 2020-01-01 03:29:06
问题 I'm trying to configure a SAA6752HS chip (a MPEG-2 encoder) through I2C bus using a Raspberry Pi as a development kit. It was a piece of cake until I had to write at the address 0xC2 of the chip. For this task, I have to use an I2C command that expects a payload of size 189 bytes. So then I stumbled upon a 32 bytes limitation inside the I2C driver, defined by I2C_SMBUS_BLOCK_MAX, in /usr/include/linux/i2c.h. It is not possible to force different values of max limit. Everything around I2C lib

Do I need to “enable” a PCIe memory region in a Linux 3.12 driver?

淺唱寂寞╮ 提交于 2020-01-01 03:21:13
问题 I have code, called from the probe() function of my PCIe driver (loosely based on this post): EDIT: Based on Andreas Bombe's response, I changed the code to use pci_iomap() , but I'm still experience the system hang static my_pci_dev pci_dev; /* local structure */ static int pci_setup_region(struct pci_dev *dev) { int bar = 0; pci_dev.physical.addr = pci_resource_start(dev, bar); pci_dev.physical.size = pci_resource_len(dev, bar); pci_dev.virtual.addr = pci_iomap(dev, bar, pci_dev.physical

printer spool monitor

[亡魂溺海] 提交于 2019-12-31 05:11:46
问题 I want to capture following attributes from print server spool on print of any page. i am able to capture 3 of 4 attributes through these APIs(FindFirstPrinterChangeNotification, FindNextPrinterChangeNotification). but still i am not able to get data of file(so i can keep the thumbnail of this file by page by page) Computer Name - DONE User Name - DONE File Name -DONE Data of file -??? please suggest me some solution to achieve this. 回答1: Papercut does this. My Previous employer has been

How, and where to install a database driver into an IDE?

≯℡__Kan透↙ 提交于 2019-12-31 03:11:09
问题 I want to install a Firebird database driver, and to have it available within the Delphi XE IDE. I want the database driver to be usable on the same basis as other, supplied database drivers (eg Interbase, SQL - from within the Data Explorer in the IDE). I have obtained an appropriate driver. The driver consists of a Delphi project, which compiles to a DLL; and modifications to two .ini configuration files (dbxconnections.ini and dbxdrivers.ini). I assume that the DLL is the actual driver,

missing JDBC driver oracle 10g android 4.x

懵懂的女人 提交于 2019-12-31 02:14:33
问题 I've got a few problems with my running projet but this one is the worst : String url="jdbc:oracle:login/pwd@host:1521:etudom"; Connection co = null; try { Class.forName("oracle.jdbc.driver.OracleDriver"); co= DriverManager.getConnection(url); popUp("Ok"); } // Driver Oracle : Should never happen catch (ClassNotFoundException e){ popUp("ERROR: Oracle Driver's missing"); //System.exit(1); } // Internet Connection Problem catch (SQLException e) { popUp("ERREOR : " + e.getMessage()); //System

missing JDBC driver oracle 10g android 4.x

时光怂恿深爱的人放手 提交于 2019-12-31 02:14:12
问题 I've got a few problems with my running projet but this one is the worst : String url="jdbc:oracle:login/pwd@host:1521:etudom"; Connection co = null; try { Class.forName("oracle.jdbc.driver.OracleDriver"); co= DriverManager.getConnection(url); popUp("Ok"); } // Driver Oracle : Should never happen catch (ClassNotFoundException e){ popUp("ERROR: Oracle Driver's missing"); //System.exit(1); } // Internet Connection Problem catch (SQLException e) { popUp("ERREOR : " + e.getMessage()); //System