drivers

Connecting to mongodb using PDO driver

拟墨画扇 提交于 2019-12-04 23:08:15
Will I be able to connect to this database using php's php_mongo.dll driver? If so, could you please provide some sample code as I was not able to get it in any forum? MongoDB requires its own driver. In your case, the PHP driver is located here: http://php.net/manual/en/book.mongo.php The instructions for installing it are on that page. There is also some sample code. I think that PDO is only for relational databases. There's no PDO driver for mongodb. There is list of databases which you can use with PDO driver: http://php.net/manual/en/pdo.drivers.php MongoDb is not among them. 来源: https:/

A HR timers precision study case

淺唱寂寞╮ 提交于 2019-12-04 22:02:53
With this topic I would better discuss HR timers and the real precision issue. I studied a lot of documentation about them and I got confident them are the best and most reliable solution to the problem of delaying execution inside linux kernel modules, with the lesser cost for the CPU, and the greater timing precision (e.g. some time critical drivers use them too, like this one https://dev.openwrt.org/browser/trunk/target/linux/generic/files/drivers/pwm/gpio-pwm.c?rev=35328 ). Is it right for you too? Here is one of the most comprehensive and detailed document I have ever seen on this topic:

kinect as a webcam

丶灬走出姿态 提交于 2019-12-04 20:50:47
I need to get my kinect device on to the list of cameras in skype. I tried this one, http://www.e2esoft.cn/kinect/ , but it doesn't work. Maybe it's because I use OpenNI version 2.x. I installed it as a PrimeSense device, as I'm not allowed to use Microsoft SDK. May be I should write my own driver. But I can't find any source that covers webcam driver writing. Here is another alternative that uses OpenNI drivers : http://www.softpedia.com/get/Internet/WebCam/Kinect-Virtual-Camera.shtml . If this doesn't work you can remove those drivers and install Microsoft Kinect SDK , you might find some

Can .inf file reference a built-in driver such that it won't give warning during installation?

眉间皱痕 提交于 2019-12-04 16:58:13
Our device relies on a built-in windows driver (usbser.sys). Do we still need to go through WHQL testing or can we install in such a way that the user won't see a warning about not passing Logo testing? I found http://support.microsoft.com/kb/837637 but it's not clear to me if this will do what I want. Does it matter whether I use DPInst program or have my own program that calls DriverPackagePreinstall? [Edit: changed "Our code" to "Our device" based on comment] Ilya You don't need to sign usbser.sys (KMCS) but you still need to sign your .inf, because the matching of usbser.sys to your

TransactionScope won't work with DB2 provider

那年仲夏 提交于 2019-12-04 16:19:40
I've been trying to use TransactionScope with a DB2 database (using DB2 .Net provider v 9.0.0.2 and c# 2.0) which SHOULD be supported according to IBM. I have tried all the advice i could find on the IBM forums (such as here ) to no avail. I have enabled XA transactions on my XP Sp2 machine, tried also from a Win 2003 Server machine but i consistently get the infamous error: ERROR [58005] [IBM][DB2/NT] SQL0998N Error occurred during transaction or heuristic processing. Reason Code = "16". Subcode = "2-80004005". SQLSTATE=58005 The windows event log says: The XA Transaction Manager attempted to

docker镜像,容器和存储驱动

孤街浪徒 提交于 2019-12-04 12:32:57
镜像和层 镜像是由一些只读并且描绘文件系统区别的层组成的.它们一层一层堆叠起来,组成了镜像的基础文件系统.这些层都是只读的. 下图是由4层构成的ubuntu镜像: 而docker存储驱动的职责就是将这些层堆叠起来.并提供一个统一的视图.让我们觉得跟普通文件系统没什么区别. 当你创建了一个容器时.会在镜像的层上再添加一层叫做"容器层(container layer)",所有在运行中的容器中所做的修改操作,都是影响的这一层. 看下图 内容可寻址的存储 docker 1.10 开始,介绍了一种全新的寻址镜像和层上数据的存储模型.之前的镜像和层上数据的存放,都是通过随机UUID存放.新模型采用一种安全的内容hash来存放. 新模型特点包括提高了安全性.防止了id冲突,保证了pull,push,load,save操作后的数据一致性.并且更好的提供了层之间的共享问题. 参考图片: 容器层还是random uuid 对于新的模型,原先旧模型的镜像数据需要重新计算id来迁移.这些操作会在你运行新版本docker进程后自动执行. 镜像较多的话会比较耗资源.如需手工迁移请参考官方文档. 容器和层 容器和镜像主要区别就在于容器多了最上层的容器层.所有在容器中的修改操作,都是影响的容器各自的容器层.底下镜像的层都是只读不变的. 下图展示了多个容器共享同一个镜像,但是拥有各自的容器层.互相不受影响.

Why is there no DirectX API for Linux?

我只是一个虾纸丫 提交于 2019-12-04 09:04:05
问题 Upon considering the driver side implementation for DirectX API on windows systems for modern video cards I was wondering why this implementation is not available on non-windows system, most notably linux. Since there is an obvious absence of this functionality I can only assume there is a good reason which I am blind to, but in my primitive understanding I simply see the DirectX calls as no more than function entry points on the hardware device. And for the record I am not referring to a

USB programming

倾然丶 夕夏残阳落幕 提交于 2019-12-04 07:46:29
问题 I want to program a microcontroller (AVR) to control some leds through USB. It's just out of interest in how to build and program USB devices. There are some AVR microcontrollers that support the USB protocol or I could implement the USB protocol in an another microcontroller myself, but I wonder what to use to write your own drivers on the computer. My level in system programming: total noob (hence the question) So what is the literature you people would advice to get good knowledge of the

How do I install drivers using Burn and DPInst after MSI installation?

痞子三分冷 提交于 2019-12-04 05:28:55
问题 I have a setup MSI for our application, and I also have signed FTDI drivers that need to be installed as well. I'd like for them to be installed with Burn rather than the WiX MSI to keep CustomActions out of the MSI (however, I've tried the CA route as well). I've tried putting the instruction in an ExePackage, but the SourceFile attribute asks for the file location during build, not runtime (e.g. <ExePackage Id="InstallDrivers" DisplayName="Installing Drivers" SourceFile="[InstallFolder

Is there a way to communicate with USB devices on Android?

倖福魔咒の 提交于 2019-12-04 03:57:47
I have a really short question: Is it possible to communicate/use USB devices on Android OS? I assume it might be tablet device. Lest say i want to connect some sort of USB card scanner to android tablet. Will it work? Do i need to write drivers by myself? Thanks. First, you need a USB host port on your tablet. Except for On-the-Go (which is a special design that can be either host or device), it is not possible to connect two USB devices together. The incompatibility is electrical, no amount of software changes can make it work. Yes, some phones can work as hosts, like the DROID. Do a Google