language-agnostic
How to show that a class/interface is the interface of a package in ArgoUML
Suppose I have the following package represented in ArgoUML: 开发者_运维技巧 How could I emphasize that the User interface is the only component of the package that is known by external clients? For[详细]
2023-03-30 06:46 分类:问答Make browser cache the image
I have an image on my site which is rather big (about 200kb). I have no plans to change it in near future. How can I tell browsers to ca开发者_运维百科che it?Setting correct headers helps you a lot.[详细]
2023-03-30 00:00 分类:问答How to get the division part of a number
Say I have 1.234I want to get the .234 I tried echo 1.234%1 //I get 0 I am rusty, what is the correc开发者_高级运维t way?[详细]
2023-03-29 19:12 分类:问答Most-specific matching wild card path
Given a resource structure of Unix-like paths: e.g. /foo/bar/baz/phleem/abc.txt and a set of ant-style wildcard patterns:[详细]
2023-03-29 14:34 分类:问答Creating unflushed file output buffers
I am trying to clear up an issue that occurs with unflushed file I/O buffers in a couple of programs, in different languages, running on Linux.The solution of flushing buffers is easy enough, but this[详细]
2023-03-29 13:04 分类:问答When to use sentinel values?
I recently had to use a GPS location API where each location object had among other things two properties altitude and verticalAccuracy. A negative verticalAccuracy signifies that altitude is invalid,[详细]
2023-03-29 12:40 分类:问答OS X: menu naming (File Edit View ... Windows Help)
Apple suggests to stick with the known menu naming: File Edit View ... Windows Help. What to do if our application does not work on files directly, but rather on \"proj开发者_开发问答ects\" (a project[详细]
2023-03-29 12:15 分类:问答Rotating one vector to face another but slowly?
I have t开发者_开发百科wo vectors: heading and target.How can I turn heading to face target by some factor?Say 10% every frame or something.[详细]
2023-03-29 08:27 分类:问答General Interface Syntax : using variable names
In languages like Java and c#, when you declare an interface the parameters on the functions have variable names. Could you make it more minimal and have the syntax work like this:[详细]
2023-03-29 06:58 分类:问答How to check which language supports which Support Level in Unicode Regular Expressions?
The various levels of Unicode Regular Expression support are described in UTS#18. Is there a way to to have a few tests for every requirement, so it is possible to port the tests to the language in q[详细]
2023-03-29 02:55 分类:问答