hardware

Generating random numbers: CPU vs GPU, which currently wins?

丶灬走出姿态 提交于 2019-12-01 02:27:21
问题 I've been working on a physics simulations requiring the generation of a large amount of random numbers (at least 10^13 if you want an idea). I've been using the C++11 implementation of the Mersenne twister. I've also read that GPU implementation of this same algorithm are now a part of Cuda libraries and that GPU can be extremely efficient at this task; but I couldn't find explicit numbers or a benchmark comparison. For example compared to an 8 cores i7, are Nvidia cards of the last

VB.net Unique Hardware ID ideas

陌路散爱 提交于 2019-12-01 01:11:48
I was wondering if there would be anything else I could use in my Hardware ID protection that would make it much more unique. I am currently using Processor ID Volume ID MAC Address Graphics Card Name If you guys can provide source codes to anything else that would make it even more unique please tell me. I will suggest using the HDD Serial Number instead of the Volume ID. The Volume ID will change if you format your HDD but the HDD Serial Number will not. http://addressof.com/blog/archive/2004/02/14/386.aspx Here is a library that can read the unique hardware ID of you computer. MAC address

JPEG hardware Decode support in Android application

跟風遠走 提交于 2019-11-30 23:46:48
My Android app needs to decode large resolution based JPEG images on Android 2.2 phones(and above), currently I am using BitmapFactory.decodeStream API, i.e. SKIA library to decode the stream. 1) As per my knowledge SKIA uses software decoding, i.e. libJPEG to decode and doesnot use hardware decoders for the same. Correct me if I am wrong. 2) Is there any faster way to decode JPEG stream (other than SKIA) ? 3) Can "Media framework" be used to provide JPEG hardware decoding? As per my observation it can be only used for video and audio. skia supports hardware accelerated jpeg decoding.

Programmatically enabling/disabling hardware device [duplicate]

拟墨画扇 提交于 2019-11-30 22:55:09
Possible Duplicates: [.NET] How do I disable a system device? Win32 API function to programatically enable/disable device Is there a way, in C#, to programmatically disable and re-enable a device? I'm looking for essentially the same functionality that occurs when you go into device manager and right click on a device and disable or enable it. How can I do this in C#? Will A Take a look at net-how-do-i-disable-a-system-device . Keith Adler According to this link: http://bytes.com/topic/c-sharp/answers/513855-can-i-use-wmi-c-disable-enable-device You need to interface with CfgMgr32 (Win32 API)

Best way to generate a machine fingerprint?

耗尽温柔 提交于 2019-11-30 21:39:17
I need to generate a unique string that will differ from machine to machine -- a "device fingerprint". What are... possible approaches for custom implementations? (I've got a few ideas, but I figure you guys probably have BETTER ones) existing solutions? (both commercial / non commercial are acceptable) Device fingerprinting is a complex topic if you want to cover the many edge cases (e.g. hardware upgrades, OS upgrades, etc.) and if you are worried about people expending energy to either forge a known-good device fingerprint (good meaning the fingerprint is known to you and receives some

hardware-locked licensing: which hardware pieces should i use? [duplicate]

◇◆丶佛笑我妖孽 提交于 2019-11-30 21:31:19
This question already has an answer here: Is there really any way to uniquely identify any computer at all 4 answers I've recently implemented a hardware-locked licensing system with fuzzy-matching to handle changes in hardware without requiring a re-activation, but i need more hardware pieces to match to be more secure / create more reliable fuzzy-matching. Right now I'm matching against the following: Physical mac address Hard-drive serial number RAM part number / manufacturer / size Processor ID What are some other machine-specific non-changing hardware serial numbers that would be good to

Random number generation on Spartan-3E

血红的双手。 提交于 2019-11-30 18:14:26
I need to generate pseudo-random numbers for my genetic algorithm on a Spartan-3E FPGA and i want to implement it in verilog: could you give me any pointers on this? Adam Davis Typically you'd use the IEEE.math_real uniform function use IEEE.math_real.all; procedure UNIFORM (variable Seed1,Seed2:inout integer; variable X:out real); But do a tiny bit a research on pseudo random number generators (PRNGs) and you'll find many variants that are simple LFSR 's - which look remarkably similar to CRC generators. Here are several resources if you want to roll your own starting from existing, working

JPEG hardware Decode support in Android application

◇◆丶佛笑我妖孽 提交于 2019-11-30 18:07:43
问题 My Android app needs to decode large resolution based JPEG images on Android 2.2 phones(and above), currently I am using BitmapFactory.decodeStream API, i.e. SKIA library to decode the stream. 1) As per my knowledge SKIA uses software decoding, i.e. libJPEG to decode and doesnot use hardware decoders for the same. Correct me if I am wrong. 2) Is there any faster way to decode JPEG stream (other than SKIA) ? 3) Can "Media framework" be used to provide JPEG hardware decoding? As per my

Programmatically enabling/disabling hardware device [duplicate]

不问归期 提交于 2019-11-30 17:18:56
问题 This question already has answers here : Closed 9 years ago . Possible Duplicates: [.NET] How do I disable a system device? Win32 API function to programatically enable/disable device Is there a way, in C#, to programmatically disable and re-enable a device? I'm looking for essentially the same functionality that occurs when you go into device manager and right click on a device and disable or enable it. How can I do this in C#? 回答1: Take a look at net-how-do-i-disable-a-system-device. 回答2:

How can I find out if a device has a vibrator?

送分小仙女□ 提交于 2019-11-30 17:11:01
I have a device of which I don't know if it has a vibrator. Is there a way to query for the availability of the vibrator? The Vibrator class does just that. It's hasVibrator() method returns a boolean indicating if vibrating is supported. Get an instance of the Vibrator class which is a system service. Query the Vibrator class using the hasVibrator() method. String vs = Context.VIBRATOR_SERVICE; Vibrator mVibrator = (Vibrator)getSystemService(vs); boolean isVibrator = mVibrator.hasVibrator(); t2tk This may help for API<11: Context.getSystemService() returns a service object or null if no