摘要:
A mobile computing device and method performed by a mobile computing device are provided. The mobile computing device includes a touch screen display, a touch enabled border surface, and a processor. The processor is configured to generate image data representing a viewport of the device. The processor is configured to add a graphic representation of at least one user interface element to the image data. The processor is configured to determine a press intensity of a touch pressure applied by a user of the device to the touch screen display in a region where the graphic representation of the at least one user interface element is displayed. The processor is configured to determine a position of the hand of the user using the touch enabled border surface. The processor is configured to slide the viewport downwards based on the press intensity and the position of the hand of the user.
摘要:
Described are methods for automatically adjusting a set of display settings. At least one image sample is displayed at a first display according to display settings of the first display. Electromagnetic radiation generated from the first display is collected. The electromagnetic radiation includes first image data related to the at least one image sample at the first display. An image sample is displayed at a second display according to display settings of the second display. Electromagnetic radiation generated from the second display is collected. The electromagnetic radiation includes second image data related to the image sample at the second display. A margin of error is determined between the first image data and the second image data. The display settings of the second display are adjusted to reduce the margin of error.
摘要:
A mechanism is provided for controlling a distributed application. An indication of a computational capability of a client computing machine and of a server computing machine is detected. At least part of a page is built in response to a request received by the server computing machine from the client computing machine. The at least part of the page comprising a set of commands each one for submitting a next request on the client computing machine. Processing logic for serving each next request being split between a client processing component and a server processing component. The page with the client processing component for each command is returned to the client computing machine for causing the client computing machine to load the page and execute each client processing component in response to the corresponding next request. Each server processing component is executed in response to the corresponding next request.
摘要:
A mechanism is provided for de-serializing a representation of a source object of a source software component written in a source language into a target software component written in a target language. A representation of the source object is received and a determination is made of a set of candidate types among a plurality of available types that are in the target language for the target software component, each candidate type being compatible with the representation of the source type. A set of match metrics is calculated, each one for a corresponding candidate type, where the match metric being indicative of a difference in information content between the candidate type and the representation of the source object. One of the candidate types is selected according to the match metrics and a mapping of the representation of the source object onto a target object of the selected candidate type is created.
摘要:
A method, computer program product, and system identify a low-cost time to re-boot a system. The method includes a processor obtaining a request for a re-boot of a system. The processor obtains identifiers of uncompleted tasks executing in the system. Based on obtaining the identifiers, the processor obtains a task cost of each task of the uncompleted tasks, where a value of the task cost of each task relates to a portion of each task completed by the processor at a given time. The processor determines, based on the task costs associated with the uncompleted tasks, a re-boot cost for re-booting the system at the given time. The processor determined a system cost for not re-booting the system at the given time. The processor compares the re-boot cost to the system cost to determine whether to re-boot the system at the given time in response to the request.
摘要:
A method, computer program product, and system identify a low-cost time to re-boot a system. The method includes a processor obtaining a request for a re-boot of a system. The processor obtains identifiers of uncompleted tasks executing in the system. Based on obtaining the identifiers, the processor obtains a task cost of each task of the uncompleted tasks, where a value of the task cost of each task relates to a portion of each task completed by the processor at a given time. The processor determines, based on the task costs associated with the uncompleted tasks, a re-boot cost for re-booting the system at the given time. The processor determined a system cost for not re-booting the system at the given time. The processor compares the re-boot cost to the system cost to determine whether to re-boot the system at the given time in response to the request.
摘要:
A mechanism is provided for de-serializing a representation of a source object of a source software component written in a source language into a target software component written in a target language. A representation of the source object is received and a determination is made of a set of candidate types among a plurality of available types that are in the target language for the target software component, each candidate type being compatible with the representation of the source type. A set of match metrics is calculated, each one for a corresponding candidate type, where the match metric being indicative of a difference in information content between the candidate type and the representation of the source object. One of the candidate types is selected according to the match metrics and a mapping of the representation of the source object onto a target object of the selected candidate type is created.
摘要:
Described are methods for automatically adjusting a set of display settings. At least one image sample is displayed at a first display according to display settings of the first display. Electromagnetic radiation generated from the first display is collected. The electromagnetic radiation includes first image data related to the at least one image sample at the first display. An image sample is displayed at a second display according to display settings of the second display. Electromagnetic radiation generated from the second display is collected. The electromagnetic radiation includes second image data related to the image sample at the second display. A margin of error is determined between the first image data and the second image data. The display settings of the second display are adjusted to reduce the margin of error.
摘要:
A mechanism is provided for automatically testing a web application running inside a web browser. Pieces of test code are included in the web application code. An HTTP server provides a test service to the web application instrumented with test code. Through an API interface, the test code requests to the HTTP server that user inputs be simulated and sent to the browser. The HTTP server generates simulated system events corresponding to the user input and sends them to the browser. The browser processes the system events for the web application as usual. In this way the test code will check the data structure of the web application and the entire environment of the web application will be included as well.
摘要:
A method, computer program product, and system identify a low-cost time to re-boot a system. The method includes a processor obtaining a request for a re-boot of a system. The processor obtains identifiers of uncompleted tasks executing in the system. Based on obtaining the identifiers, the processor obtains a task cost of each task of the uncompleted tasks, where a value of the task cost of each task relates to a portion of each task completed by the processor at a given time. The processor determines, based on the task costs associated with the uncompleted tasks, a re-boot cost for re-booting the system at the given time. The processor determined a system cost for not re-booting the system at the given time. The processor compares the re-boot cost to the system cost to determine whether to re-boot the system at the given time in response to the request.