hardware

DRAM cache miss

≡放荡痞女 提交于 2019-12-12 01:47:36
问题 I read a paragraph about DRAM(main memory) cache miss and SRAM(L1,L2,L3) cache miss and I am not sure what it means. Since DRAM is slower than SRAM, the cost for cache misses is expensive because DRAm cache misses are served from disk, while SRAM cache misses are usually served from DRAM based main memory. Here is my understanding : if there is a cache miss in DRAM, it goes into disk(second memory) to find datum. while if there is a cache miss in SRAM, it goes into SRAM to find the datum.

OpenGL hadware overlay

孤街醉人 提交于 2019-12-12 00:42:58
问题 How to make a hardware overlay in Qt 5.1? This is what I have so far: QGLFormat fmt; fmt.setSamples(16); fmt.setOverlay(true); MainWidget w(fmt); w.show(); //////////////////////////////////////////////////////////////////////////////// MainWidget::MainWidget(const QGLFormat &format, QWidget *parent) : QGLWidget(format, parent) { qDebug() << format().hasOverlay() ? "Hardware overlay is supported" : "No hardware overlay support"; qDebug() << "OpenGL " + QString::number(this->format()

How to check whether the device's display is turned on/off with Python?

三世轮回 提交于 2019-12-11 20:29:00
问题 I want to write a Python script that checks whether my device has a display and whether that display is turned on or off. I googled it, there is a third-party library named "WMI", but it can only get some information like CPU/HDD/process/thread, so I am confused about it. I am using Windows 10, in case that matters. Is it possible to get that kind of low level hardware information via Python, and if it is, how can I do it? 回答1: It looks like Windows does not really have a way to tell you if

Why are the outputs of this pseudo random number generator (LFSR) so predictable?

你说的曾经没有我的故事 提交于 2019-12-11 18:06:06
问题 Recently I asked here, how to generate random numbers in hardware and was told to use an LFSR. It will be random but will start repeating after a certain value. The problem is that the random numbers generated are so predictable that the next value can be easily guessed. For example check the simulation below: The next "random" number can be guessed by adding the previous number with a +1 of itself. Can someone please verify if this is normal and to be expected. Here is the code I used for

Android hardware and Adobe AIR

半世苍凉 提交于 2019-12-11 16:42:16
问题 Do any of you know a method that an Android application built using Adobe Flash can access hardware API on the device? For example, I launch Flash CS5 and create a new AIR for Android application. The application consists only of a button. When that button is pressed the wireless on the device toggles. This is easy to do in Java by just creating a wifiManager: WifiManager wifiManager = (WifiManager)this.getSystemService(Context.WIFI_SERVICE); wifiManager.setWifiEnabled(true/false); But how

How close can we programmatically get to the hardware of an Android device?

家住魔仙堡 提交于 2019-12-11 12:55:30
问题 the camera of my mobile (running Eclair-update1) keeps being non-responsive in 90% of the time, so I assumed a hardware defect at first. After whiping the cache and the phone user data sereval times it worked again. At least for a while. Now it stopped working again. Browsing the net I found quite some users who experience the same problem and had a hard time after whiping their user data off the device. So my question would be: how close can I get to the hardware with the SDK? I'd like to

Swich table in case of CRC error

跟風遠走 提交于 2019-12-11 12:36:08
问题 I'm really confused about how the basic idea of updating the switch table works. In the case that the CRC is wrong it still updates the SMAC to use it next time maybe? Maybe because the error could be there (SMAC) the switch drops the SMAC with the message? Another thing is what happened first, update the table or first send the message in case of store&forward mode? 回答1: first look at this picture The Scenario is PC1 10.0.0.2 try to Ping PC3 10.0.0.4 : PC1 Send ARP Message (BroadCast)

How can I determine the type of a particular drive?

南笙酒味 提交于 2019-12-11 08:57:50
问题 I feel somewhat noob yet with this of getting the Information of Hardware of the CPU, so i come with this request: Hard Drive, CD/DVD/Bluray reader, Floppy and if it's possible USB. I've been looking on MSDN GetDriveType but seems i'm bad at searching or i don't understand it. Any idea? 回答1: I'm not sure what you didn't understand about the documentation you linked to... The sole argument accepted by the function is the root directory of the drive you want to get information about (including

Windows Temperature Monitor

偶尔善良 提交于 2019-12-11 07:47:26
问题 As part of an application for a client, I need to have a section which reports temperature information (motherboard, CPU, HDD). I know there are standalone applications such as Hardware Monitor by CPUID, but again, these are standalone and I require something that I could interface with. Is there any app like this which has an API or is open source so I can utilize their source code? I have language preferences other than it needs to run on Windows XP. Thanks. 回答1: You get info like this from

Get Hardware Information for HWs that is not installed

老子叫甜甜 提交于 2019-12-11 06:45:16
问题 I am pretty sure how to retrieve hardware information with WMI classes. but WMIs have a big limitation: They Just can get information for installed hardwares . I need to retrieve information about CPU (model,speed,etc..),Video Card, Sound Card, USB Ports, etc. I found a really good software (HWiNFO) that can do this even the drivers for hardware parts is not installed. It seems that HWiNFO uses a internal database to give a name for each hardware part. So is there any free library/DLL