摘要:
A computing device and a method for controlling access to driver programs obtains a first system time at the time that an application uses a CTL_CODE to access a driver program. The first system time and the CTL_CODE is encrypted to generate an encrypted CTL_CODE which is then sent to the driver program. The encrypted CTL_CODE is decrypted to obtain the first system time and the CTL_CODE therein. A second system time at the time that the driver program receives the encrypted CTL_CODE is obtained and compared with the first system time. Access to the driver program is allowed if a difference between the first system time and the second system time falls within a predetermined range, and access to the driver program is forbidden if the difference is beyond the predetermined range.
摘要:
In a method for validating speed of a fan of an electronic device, different speeds of the fan are set for validation. The method controls the fan to operate under each of the set speeds in turn, and controls a camera device to continuously capture images of the fan with a shutter speed of the camera device corresponding to the set speed. The images are transmitted to a comparison unit to be analyzed for sameness and clarity. The fan is determined to work abnormally if not all the images are sameness or if at least one image is unclear, and the fan is determined to work normally if all the images are sameness or clear. A validation report is generated to indicate whether the fan is normal or abnormal according to the determination.
摘要:
An electronic device includes a network interface port, a processing unit, a network card, a serial interface, and a microchip. The network interface port connects to a debugging host or connects to an external network. The processing unit is connected to the network interface port. The network card is connected to the processing unit. The microchip is connected to the processing unit through the serial interface. The processing unit determines whether the network interface port is connected to the debugging host or connected to the external network, and selectively connects the network card or the serial interface to the network interface port according to the determination.
摘要:
In a method for debugging programs of an electronic device, the method adds an appended block to one or more memory blocks allocated by one or more memory allocation functions of a specified program, so as to obtain one or more appended blocks, stores an identifier of each memory allocation function into a corresponding appended block, and executes a memory leak test to determine one or more unqualified memory allocation functions. The method further searches for one or more identifiers from the appended blocks if the memory leak test fails, and obtains a position of each unqualified memory allocation function in the specified program according to each found identifier if source codes of the specified program are available in a storage device of the electronic device.
摘要:
In a method for marking discrepancies of a captured image of an object, an image is captured and compared to a standard image. A discrepant image showing any discrepancies of the captured image is generated, and is separated into an R grayscale image, a G grayscale image, and a B grayscale image. An R channel matrix group, a G channel matrix group, and a B channel matrix group are created. R channel negative matrixes, G channel negative matrixes, and B channel negative matrixes are determined from the RGB channel matrix groups. RGB pixel groups are calculated based on the R channel negative matrixes, the G channel negative matrixes, and the B channel negative matrixes. A target pixel group to be marked is determined by calculating an intersection of the RGB pixel groups. The discrepancies of the digital image are marked out according to the target pixel group.
摘要:
A method and system controls an optical disk driver (ODD) of a computer. The method detects whether an eject button connected with an I/O (input/output) chip of the computer has been pressed, and determines if an optical disk exists in the ODD when the eject button has been pressed. Additionally, the method sends a control signal to the ODD, and control the ODD to eject the optical disk when the optical disk exists in the ODD.
摘要:
A method captures images of objects using an image capturing apparatus. The method obtains x-coordinate values, y-coordinate values, and z-coordinate values of the accelerations of a camera device sensed by a gravity sensor in a default time interval, calculates three-dimensional coordinate differences according to the obtained x-coordinate, y-coordinate, and z-coordinate values, and determines whether the three-dimensional coordinate differences are less than corresponding predefined thresholds. If at least one coordinate difference is not less than a corresponding predefined threshold, the method delays a period of time to obtain the x-coordinate, y-coordinate, and the z-coordinate values in a next default time interval. If all the three-dimensional coordinate differences are less than the corresponding predefined thresholds, the method controls the camera device to capture images of the subject object.
摘要:
A method for transferring one or more guest operating system (OS) using a remote server. The remote server periodically obtains a central processing unit (CPU) utilization ratio of each guest OS installed in each cloud server of the data center. The remote server counts the number of times of obtaining the CPU utilization ratio, and calculates a predicted average of the CPU utilization ratio for each cloud server if the counted number of the times is equal to a predetermined number. The remote server transfers one or more guest OS from the cloud server to other cloud servers before a predetermined time, in response to a determination that the predicted average of the CPU utilization ratio of the cloud server is greater than a predetermined average.
摘要:
A method corrects trapezoid distortion of projected images using a projector. The projector includes a projection lens, a driver device, an image capturing device, and a storage system. A rectangular picture is read from the storage system and projected on a projection area by the projection lens. The method controls the image capturing device to capture an image from the projection area when the projection lens increases one trapezoid row correction grade, and corrects each trapezoid row of the captured image if the captured image has trapezoid rows. The method further controls the image capturing device to capture an image from the projection area when the projection lens increases one trapezoid column correction grade, and corrects each trapezoid column of the captured image if the captured image has trapezoid columns.
摘要:
A method for automatically focusing a projector includes a projection lens, a driver device and an image capturing device. The method sets an interval step according to a focusing range of the projection lens, reads a predefined picture from a storage system of the projector, and controls the projection lens to project the picture to a projection area. The method controls the image capturing device to capture an image of the picture from the projection area when the projection lens moves at every interval step, and analyzes a contrast of each of the images to determine an optimal image from the images. The method determines a current focus of the projection lens having the optimal image as an optimal focus of the projection lens, and drives the driver device to control the projection lens to move at the optimal focus.