Tsu's Blog<br><h5>同是天涯疲惫客,键盘声里忆平生。</h5>
alexela · 共 5 篇文章
Control external windows in your SWT application
Solution engineers were considering about a solution that a harness UI controls multiple applications, including CLI (SSH, TELNET, terminal server) and windows desktop applications. They needed to combine the various existing applications windows (maybe including CLI shell) into a standalone GUI ap…
2007-08-30 12:22 · Java Technologies · 评论(0)
Compute the CPU frequency by Java
By my previous article of "How to control the CPU occupation rate", someone came up with another idea - "How to get or compute the CPU frequency when I run the program in different PCs?" That's really a challenge! But it's not a big problem by the same theory of CPU occupation control. We know now …
2007-08-21 11:59 · Miscellaneous · 评论(0)
XML Schema Validation in J2SE 1.5
Perhaps you will need to validate a XML document to see whether it matches well as the rules. Perhaps you wish to use the validation freely with a direct existing stream, instead of an URL in file system. Do a search in Google, we can find dozens of discussions and samples. And there are usually tw…
2007-08-20 11:10 · Java Technologies · 评论(0)
Add a choice option in the context
In most of schema definition cases, developers will use the simple syntax to write and parse XML documents. They won't care about the complexity of set of conditional combinations. E.g. the simple use of <xsd:sequence> , <xsd:all> , <xsd:choice> . This article introduces a case of exclusive element…
2007-08-20 07:49 · XML and Schema · 评论(0)
Control the CPU occupation rate
This arcticle is to tell the methods to implement the topics of "How to control the CPU occupation rate at a specific percentage", and of "How to control the CPU occupation rate that goes by the track of a sinusoid curve". I accidentally got somewhere interview questions like that! Full of curiosit…
2007-08-16 09:37 · Miscellaneous · 评论(0)