摘要:
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.
摘要:
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.
摘要:
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.
摘要:
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 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.
摘要:
The present invention is directed to topical compositions and methods for topically treating psoriasis comprising meisoindigo as an active ingredient. The topical compositions preferably further comprise skin penetration enhancers, pharmaceutical surfactants and solubility enhancers, oil phase components, aqueous phase components, emulsifiers, moisturizers, antioxidants, vitamins, lubricants, herbal extracts, preservatives, and other ingredients. In addition to meisoindigo, the compositions may comprise other agents commonly used to topically treat psoriasis. The disclosed methods have been demonstrated to effectually treat moderate and severe forms of psoriasis to a degree similar to a potent corticosteroid without side effects. Preferably, the method involves topical application of the disclosed compositions to affected epidermal areas twice a day. In addition, the disclosed methods may be used in conjunction with other common therapies in the treatment of psoriasis.
摘要:
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.
摘要:
A method for adjusting a central processing unit (CPU) utilization ratio of a cloud server of a datacenter using a remote server. The remote server sets a CPU utilization ratio range for a host operating system (OS) installed in a cloud server. The remote server calculates a score after the guest OS is transferred into the host OS, and calculates the score for revising CPU utilization ratio range after the guest OS is transferred out of the host OS. The remote server revises the CPU utilization ratio range according to the score.
摘要:
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.