unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Running VisualWorks under OpenBSD === Has anyone gotten <a href="">VisualWorks</a> running under OpenBSD? It's not an officially supported platform, but one of the Cincom guys was telling me that it should be able to run under a linux compatibility mode. I already have Squeak running without a problem, so I'm not looking for an alternative. I specifically need to run VisualWorks's Web Velocity for a project. Thanks,
0
[ 2, 946, 3458, 7684, 131, 368, 4562, 43, 800, 3726, 3726, 63, 1276, 4094, 13, 1, 58, 746, 14057, 3726, 7, 7, 1, 20893, 7684, 1, 118, 58, 1, 946, 131, 368, 4562, 43, 60, 32, 22, 18, 52, 40, 2320, 1827, 2452, 15, 47, 53, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best technology for adding plugin support to a J2SE application? === I'm writing a J2SE desktop application that requires one of its components to be pluggable. I've already defined the Java interface for this plugin. The user should be able to select at runtime (via the GUI) which implementation of this interface they want to use (e.g. in an initialisation dialog). I envisage each plugin being packaged as a JAR file containing the implementing class plus any helper classes it may require. What's the best technology for doing this type of thing in a desktop Java app?
4
[ 2, 246, 1099, 26, 4721, 10922, 108, 555, 20, 21, 487, 135, 870, 3010, 60, 800, 3726, 3726, 31, 22, 79, 1174, 21, 487, 135, 870, 17404, 3010, 30, 4781, 53, 16, 82, 5090, 20, 44, 10922, 263, 579, 9, 31, 22, 195, 614, 2811, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best he-aac encoder on linux ? === I need an encoder that can convert mp3 files to he-aac (aka aac+). So far the best one I have found is [nero aac encoder][1] . I have two problemes with it : - Only one input format : wav . It is a little bit slow to transform mp3 files to wav and then to he-aac. - a free license for **non commercial** use. Too bad ffmpeg does not support he-aac ... There is a commercial solution, [on2 flix][2], but it seems to be a golden hammer for the simple task I need to do. [1]: http://www.nero.com/eng/down-ndaudio.php [2]: https://flix.on2.com/
0
[ 2, 246, 24, 8, 58, 1738, 20523, 139, 27, 13024, 13, 60, 800, 3726, 3726, 31, 376, 40, 20523, 139, 30, 92, 8406, 4628, 240, 6488, 20, 24, 8, 58, 1738, 13, 5, 4176, 21, 1738, 2430, 6, 9, 86, 463, 14, 246, 53, 31, 57, 216, 25...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Probability of finding TCP packets with the same payload? === I had a discussion with a developer earlier today re identifying TCP packets going out on a particular interface with the same payload. He told me that the probability of finding a TCP packet that has an equal payload (even if the same data is sent out several times) is very low due to the way TCP packets are constructed at system level. I was aware this may be the case due to the system's MTU settings (usually 1500 bytes) etc., but what sort of probability stats am I really looking at? Are there any specific protocols that would make it easier identifying matching payloads? Thanks, A
0
[ 2, 10177, 16, 3007, 13, 38, 7439, 12795, 18, 29, 14, 205, 18348, 60, 800, 3726, 3726, 31, 41, 21, 5460, 29, 21, 10058, 1201, 786, 302, 13785, 13, 38, 7439, 12795, 18, 228, 70, 27, 21, 1498, 6573, 29, 14, 205, 18348, 9, 24, 470...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to suppress Terminated message after killing in bash? === How can you suppress the 'Terminated' message that comes up after you kill a process in a bash script? I tried set +bm, but that doesn't work. I know another solution involves calling 'exec 2> /dev/null', but is that reliable? How do I reset it back so that I can continue to see stderr? Thanks
0
[ 2, 184, 20, 12451, 13780, 2802, 75, 2389, 19, 13158, 60, 800, 3726, 3726, 184, 92, 42, 12451, 14, 13, 22, 3964, 12721, 22, 2802, 30, 1624, 71, 75, 42, 1177, 21, 953, 19, 21, 13158, 3884, 60, 31, 794, 309, 2754, 13178, 15, 47, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
scheduled web synchronization with MS Sql Server 2005 === I have settled a web synchronization between SQLSERVER 2005 as publisher and SQLEXPRESS as suscriber. synchronisation is working fine except that I did not find a way to automate the synchro, which I still have to launch manually through internet explorer. Any idea?
0
[ 2, 3758, 2741, 13, 16023, 1829, 29, 4235, 4444, 255, 8128, 812, 800, 3726, 3726, 31, 57, 2200, 21, 2741, 13, 16023, 1829, 128, 4444, 255, 10321, 106, 812, 28, 5916, 17, 4444, 255, 21230, 28, 2538, 12543, 139, 9, 13, 16023, 4330, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does SCJP help? === I was just wondering if SCJP helps ? Does it enhance your programming skills? Or just kinda another exam with emphasis on syntax?
0
[ 2, 630, 4729, 12851, 448, 60, 800, 3726, 3726, 31, 23, 114, 5712, 100, 4729, 12851, 7778, 13, 60, 630, 32, 10734, 154, 3143, 3207, 60, 54, 114, 21096, 226, 11796, 29, 6238, 27, 22649, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to set an HTTP header while using a Flex RemoteObject method ? === I am running blazeds on the server side. I would like to filter http requests using an http header. My goal is to implement a security mechanism without changing the signatures of my blazeds services. On the client side, I am using Flex **RemoteObject** methods. With Flex WebService components, it is possible to set an http header using the property **httpHeaders**. I have not fount anything similar on the RemoteObject class...
0
[ 2, 184, 20, 309, 40, 7775, 157, 106, 133, 568, 21, 14409, 5388, 23793, 2109, 13, 60, 800, 3726, 3726, 31, 589, 946, 9849, 43, 18, 27, 14, 8128, 270, 9, 31, 83, 101, 20, 11945, 7775, 12279, 568, 40, 7775, 157, 106, 9, 51, 1195,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the fastest way to copy the values and keys from one dictionary into another in C#? === There doesn't seem to be a dictionary.Copy() method. Does anyone know a better way to copy the items to another dictionary without using a foreach loop. I'm using the System.Collections.Generic.Dictionary.
0
[ 2, 98, 22, 18, 14, 7518, 161, 20, 4344, 14, 4070, 17, 5534, 37, 53, 9186, 77, 226, 19, 272, 5910, 60, 800, 3726, 3726, 80, 1437, 22, 38, 2260, 20, 44, 21, 9186, 9, 19625, 5, 6, 2109, 9, 630, 1276, 143, 21, 574, 161, 20, 43...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Prevent implicit import of units in Delphi packages === Is there a way to prevent packages in Delphi to implicitly import units that are not listed in the "Contains" list? I'm looking for a compiler directive that makes the build to fail if it tries to do an implicit import. Problems occur when you install a package into the IDE that implicitly imports unit A and then you try to install another package that really contains unit A and the IDE tells you that it cannot install that package because unit A is already contained in the first package even if it shouldn't be!
0
[ 2, 2501, 20290, 9010, 16, 1398, 19, 23030, 16875, 800, 3726, 3726, 25, 80, 21, 161, 20, 2501, 16875, 19, 23030, 20, 20290, 102, 9010, 1398, 30, 50, 52, 1510, 19, 14, 13, 7, 1126, 5851, 18, 7, 968, 60, 31, 22, 79, 699, 26, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
override constraint from no action to cascading at runtime === I feel like I have a verry basic/stupid question, yet I never saw/read/heard anything in this direction. Say I have a table *users(userId, name)* and a table *preferences(id, userId, language)*. The example is trivial, but could be extended to a situation with multi-level relations and way more tables.. When my UI requests to delete a user I first want to show a warning stating that also its preferences will be deleted. If at some point the database gets extended with more tables and relationships, but the software isn't adapted accordingly (client didn't update) a generic message should be shown. How can I implement this? The UI cannot know about the whole data structure and should not be bothered to walk down all the relations to manually delete all the depending records. I would think this would be with constraints. The constraint would be *no action* at first so the constraint will throw an error that can be caught by the UI. After the UI receives a confirmation, the constraint should become a *cascade*. Somehow I'm feeling like I'm getting this all wrong..
0
[ 2, 84, 11891, 28804, 37, 90, 1028, 20, 7167, 13489, 68, 35, 485, 891, 800, 3726, 3726, 31, 583, 101, 31, 57, 21, 2494, 622, 2125, 118, 18, 2473, 11031, 1301, 15, 768, 31, 243, 441, 118, 10647, 118, 438, 1514, 602, 19, 48, 1400, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to do web scripting/web macros? === I'm trying to streamline some of our tasks at my place of work, and it seems that quite a lot of our developers' time is spent doing semi-mechanical tasks on the web (specifically, editing online stores that use web-based interfaces). As such, I've been looking into some solutions that will allow these tasks to be done by scripts since I figure that could save us quite a bit of time per task. So before I really started digging into any of these, I was just wondering if the Stack Overflow community had any recommendations about which web scripting/macro solution would be the best. Here are the requirements: - Must be able to interact with web forms (not just downloading a page and scraping the file - the script must edit controls within a web form and then submit that form) - The forms we have to edit are secure forms, so the scripting solution must be able to handle that (ie it's of no use for us to have an incredibly powerful scripting solution if a human being will have to sit there and watch it and manually re-login every few minutes) - It would be really, really, really preferable if it could read local files and do some basic string replacement/manipulation on them (e.g. it would be nice to have a list of variables or some HTML code in a text file and then have the script replace the token "STORENAME" with that particular store's name before it inserts the code into the form) Here are the scripting solutions that are on my radar so far (I haven't really looked into any of these, although I have played around with Chickenfoot): - [Chickenfoot][1] - [iMacros for Firefox][2] - libwww-perl - libwww for unix and C (while searching for libwww for perl I came across this, which I did not know existed until now) Has anyone here on Stack Overflow tried any of these solutions? If so, what did you like or dislike about them? Can anyone recommend one that is not on the list? (This is by no means an exclusive or exhaustive list). I would really love to automate a lot of our mechanical processes, and I hope the Stack Overflow community can help us out so we can hopefully avoid that much of the mind-numbing part of the work :). Thanks in advance! [1]: http://groups.csail.mit.edu/uid/chickenfoot/ [2]: http://www.iopus.com/imacros/firefox/
0
[ 2, 98, 25, 14, 246, 161, 20, 107, 2741, 3884, 68, 118, 14113, 9069, 18, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 3766, 1143, 109, 16, 318, 8674, 35, 51, 209, 16, 170, 15, 17, 32, 2206, 30, 1450, 21, 865, 16, 318, 10168, 22,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you handle different Java IDEs and svn? === How do you ensure, that you can checkout the code into Eclipse or NetBeans and work there with it?
0
[ 2, 184, 107, 42, 3053, 421, 8247, 13, 8153, 17, 13, 18, 16578, 60, 800, 3726, 3726, 184, 107, 42, 4062, 15, 30, 42, 92, 2631, 1320, 14, 1797, 77, 11652, 54, 4275, 863, 5950, 17, 170, 80, 29, 32, 60, 3, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What's the single most important thing that Executives want from their software development folks? === Busy executives in technology businesses (that's most every business, these days - not just software development houses and software product companies) are generally less than happy with the performance of their software development folks (whether in-house or out-of-house). What, in your experience, is the *one* most important things they'd like to see improve?
4
[ 2, 98, 22, 18, 14, 345, 127, 681, 584, 30, 17103, 259, 37, 66, 2306, 522, 14563, 60, 800, 3726, 3726, 4394, 17103, 19, 1099, 4426, 13, 5, 887, 22, 18, 127, 352, 508, 15, 158, 509, 13, 8, 52, 114, 2306, 522, 1947, 17, 2306, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What GUI to use for Python === As a Python newbie, it is interesting to know what GUIs/editors others use for Python coding. If you can just give the name (e.g. Textpad, Eclipse ..) that will be enough. But if you can also give some more comparative information, that will much appreciated. Thanks.
0
[ 2, 98, 9457, 20, 275, 26, 20059, 800, 3726, 3726, 28, 21, 20059, 78, 5893, 15, 32, 25, 4883, 20, 143, 98, 9457, 18, 118, 13401, 18, 654, 275, 26, 20059, 13, 15458, 9, 100, 42, 92, 114, 590, 14, 204, 13, 5, 62, 9, 263, 9, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Migrating an Existing Application to accept Unicode. === We have in the process of upgrading our application to full Unicode comptibility as we have recently got Delphi 2009 which provides this out of the box. I am looking for anyone who has experience of upgrading an application to accept Unicode characters. Specifically answers to any of the following questions. - We need to change VarChars to NVarchar, Char to NChar. Are there any gotchas here. - We need to update all sql statements to include N in front of any sql strings. So Update tbl_Customer set Name = 'Smith' must become Update tbl_Customer set Name = **N**'Smith' . Is there any way to default to this for certain Fields. It seems extraordinary this is still required. - Is it possible to get any defaults set up in SQLServer that will make this simpler? Thanks. ps We also need to upgrade our Oracle code
0
[ 2, 28749, 40, 3149, 3010, 20, 3440, 28010, 9, 800, 3726, 3726, 95, 57, 19, 14, 953, 16, 26939, 318, 3010, 20, 503, 28010, 6479, 38, 14264, 28, 95, 57, 1989, 330, 23030, 588, 56, 1927, 48, 70, 16, 14, 1649, 9, 31, 589, 699, 26,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to clear connections in Sql Server 2005 === My workplace has sales people using a 3rd party desktop application that connects directly the a Sql Server and the software is leaving hundreds of sleeping connections for each user. Is there anyway to clear these connection programmatically?
0
[ 2, 184, 20, 1207, 6760, 19, 4444, 255, 8128, 812, 800, 3726, 3726, 51, 16932, 63, 2598, 148, 568, 21, 203, 897, 346, 17404, 3010, 30, 8534, 1703, 14, 21, 4444, 255, 8128, 17, 14, 2306, 25, 1107, 4541, 16, 4777, 6760, 26, 206, 41...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
How can I set triggers for sendmail? === If my email id receives an email from a particular sender, can I ask sendmail to trigger a different program and pass on the newly arrived email to it for further processing? This is similar to filters in gmail. Wait for some email to arrive, see if it matches the criteria and take some action if it does.
0
[ 2, 184, 92, 31, 309, 7286, 18, 26, 2660, 8079, 60, 800, 3726, 3726, 100, 51, 8517, 4924, 8359, 40, 8517, 37, 21, 1498, 2660, 106, 15, 92, 31, 1349, 2660, 8079, 20, 7286, 21, 421, 625, 17, 1477, 27, 14, 2771, 1568, 8517, 20, 32...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
remove unused references(!= "using") visual studio === How can I find and delete unused references in my projects? I know you can easely remove the using statements in vs 2008, but this doesn't remove the actual reference in your projects. The referenced dll will still be copied in your bin/setup package.
0
[ 2, 4681, 18927, 7231, 5, 187, 3726, 13, 7, 12655, 7, 6, 3458, 1120, 800, 3726, 3726, 184, 92, 31, 477, 17, 27448, 18927, 7231, 19, 51, 2314, 60, 31, 143, 42, 92, 6378, 102, 4681, 14, 568, 9015, 19, 4611, 570, 15, 47, 48, 1437,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
is Microsoft sort.exe able to sort unicode UTF-16 (LE) files? === Is Microsoft sort.exe 5.1.2600.0 (xpclient.010817-1148) able to sort UTF-16 (LE) files?
0
[ 2, 25, 7099, 2058, 9, 1706, 62, 777, 20, 2058, 28010, 287, 11720, 8, 1091, 13, 5, 413, 6, 6488, 60, 800, 3726, 3726, 25, 7099, 2058, 9, 1706, 62, 331, 9, 165, 9, 135, 7664, 9, 387, 13, 5, 396, 5779, 18513, 38, 9, 3026, 3099,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I hide/delete the "?" help button on the "title bar" of a QT Dialog? === I am using QT Dialogs in one of my application. I need to hide/delete the help button. But i am not able to locate where exactly i get the handle to his help button. Not sure if its a particular flag on the QT window. Kindly let me know if you know how to achieve this.
0
[ 2, 184, 92, 31, 3077, 118, 24249, 591, 14, 13, 7, 60, 7, 448, 5167, 27, 14, 13, 7, 22235, 748, 7, 16, 21, 2593, 38, 28223, 60, 800, 3726, 3726, 31, 589, 568, 2593, 38, 28223, 18, 19, 53, 16, 51, 3010, 9, 31, 376, 20, 3077,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Building a query string based radiobutton values === I'd like to build a query string based on values taken from 5 groups of radio buttons. Selecting any of the groups is optional so you could pick set A or B or both. How would I build the querystring based on this? I'm using VB.NET 1.1 The asp:Radiobuttonlist control does not like null values so I'm resorting to normal html radio buttons. My question is how do I string up the selected values into a querystring I have something like this right now: HTML: <input type="radio" name="apBoat" id="Apb1" value="1" /> detail1 <input type="radio" name="apBoat" id="Apb2" value="2" /> detail2 <input type="radio" name="cBoat" id="Cb1" value="1" /> detail1 <input type="radio" name="cBoat" id="Cb2" value="2" /> detail2 VB.NET Public Sub btnSubmit_click(ByVal sender As Object, ByVal e As System.EventArgs) Dim queryString As String = "nextpage.aspx?" Dim aBoat, bBoat, cBoat bas String aBoat = "apb=" & Request("aBoat") bBoat = "bBoat=" & Request("bBoat") cBoat = "cBoat=" & Request("cBoat ") queryString += aBoat & bBoat & cBoat Response.Redirect(queryString) End Sub Is this the best way to build the query string or should I take a different approach altogether? Appreciate all the help I can get. Thanks much.
0
[ 2, 353, 21, 25597, 3724, 432, 603, 811, 444, 4070, 800, 3726, 3726, 31, 22, 43, 101, 20, 1895, 21, 25597, 3724, 432, 27, 4070, 658, 37, 331, 1170, 16, 603, 12861, 9, 20764, 186, 16, 14, 1170, 25, 12832, 86, 42, 110, 2036, 309, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.htaccess mod rewrite 301-redirect === I want: all links which not contained filename (not .html, .jpg, .png, .css) redirect with state 301 to directory, for example: http://mysite.com/article -> http://mysite.com/article/ But http://mysite.com/article/article-15.html not redirects. What regulat expression I must write to .htaccess?
0
[ 2, 13, 9, 9020, 20604, 7226, 27891, 13, 18979, 8, 99, 14706, 800, 3726, 3726, 31, 259, 45, 65, 6271, 56, 52, 3437, 3893, 7259, 13, 5, 1270, 13, 9, 15895, 15, 13, 9, 12851, 263, 15, 13, 9, 306, 2723, 15, 13, 9, 6824, 18, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do get element out of xml file === From a service i get a xml-file. Now I want to get one of those element out of the file. I think I should go into some xpath - any good starter reference ?
0
[ 2, 184, 107, 164, 4520, 70, 16, 23504, 3893, 800, 3726, 3726, 37, 21, 365, 31, 164, 21, 23504, 8, 16877, 9, 130, 31, 259, 20, 164, 53, 16, 273, 4520, 70, 16, 14, 3893, 9, 31, 277, 31, 378, 162, 77, 109, 993, 8353, 13, 8, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Where do I find the current {X} standard? === For many questions, especially for C-related ones, the answer seems to be found in "the standard". However, where do we find that - online? Googling can sometimes feel futile, again especially for the C standards, since they are drowned in the flood of discussions on programming forums ;) To get this started, since these are the ones I am searching for right now, where are there good online resources for: <ul> <li>C89 <li>C99 <li>C++ </ul>
0
[ 2, 113, 107, 31, 477, 14, 866, 13, 1, 396, 1, 1236, 60, 800, 3726, 3726, 26, 151, 2346, 15, 1118, 26, 272, 8, 6203, 53, 18, 15, 14, 1623, 2206, 20, 44, 216, 19, 13, 7, 124, 1236, 7, 9, 207, 15, 113, 107, 95, 477, 30, 13,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
The most efficient way to move psql databases === What is the most efficient, secure way to pipe the contents of a postgresSQL database into a compressed tarfile, then copy to another machine? This would be used for localhosting development, or backing up to a remote server, using *nix based machines at both ends.
0
[ 2, 14, 127, 8243, 161, 20, 780, 8613, 22402, 6018, 18, 800, 3726, 3726, 98, 25, 14, 127, 8243, 15, 4315, 161, 20, 7642, 14, 8478, 16, 21, 678, 13026, 22402, 6018, 77, 21, 18472, 2475, 16877, 15, 94, 4344, 20, 226, 1940, 60, 48, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there an RTF display widget in SWT === I would like to display an RTF document in an SWT (actually Eclipse RCP) application. I know there is a Swing widget for displaying and editing RTF text, but it is Swing and quite alien in look and feel when used in the otherwise platform (not to mention that to the last of my knowledge it did not display images and had only limited support for formatting) Other options is to use COM interface on windows, but that works only on the windows platform and requires that an ActiveX RichEdit contol be installed on the customer machine... which can make the deployment of the application quite horrendous... What are the other options for displaying rich documents inside Eclipse/SWT application?
0
[ 2, 25, 80, 40, 761, 11720, 3042, 4807, 43, 3060, 19, 8783, 38, 800, 3726, 3726, 31, 83, 101, 20, 3042, 40, 761, 11720, 4492, 19, 40, 8783, 38, 13, 5, 15661, 11652, 761, 7439, 6, 3010, 9, 31, 143, 80, 25, 21, 5587, 4807, 43, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to check if an object is serializable in C# === I am looking for an easy way to check if an object in C# is serializable. As we know you make an object serializable by either implementing the *ISerializable* interface or by placing the *[Serializable]* at the top of the class. What I am looking for is a quick way to check this without having to reflect the class to get it's attributes. The interface would be quick using an *is* statement.
0
[ 2, 184, 20, 2631, 100, 40, 3095, 25, 5956, 3186, 579, 19, 272, 5910, 800, 3726, 3726, 31, 589, 699, 26, 40, 2010, 161, 20, 2631, 100, 40, 3095, 19, 272, 5910, 25, 5956, 3186, 579, 9, 28, 95, 143, 42, 233, 40, 3095, 5956, 3186,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a folder in both WinXP and WinVista to which all users have writing permissions? === We have a NET app that gets installed to the Program Files folder. The app itself writes some files and creates some directories to its app folder. But when a normal windows user tries to use our application it crashes because that user does not have permission to write to app folder. Is there any folder in both WinXP and WinVista to which all users have writing permissions by default? All User folder or something like that? Thanks in advance
0
[ 2, 25, 80, 21, 19294, 19, 156, 628, 396, 306, 17, 628, 22034, 20, 56, 65, 3878, 57, 1174, 5572, 18, 60, 800, 3726, 3726, 95, 57, 21, 4275, 4865, 30, 3049, 4066, 20, 14, 625, 6488, 19294, 9, 14, 4865, 1145, 6215, 109, 6488, 17,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Task/issue tracking system with command-line interface === Are the any task tracking systems with command-line interface? Here is a list of features I'm interested in: - Simple task template Something like plain-text file with property:type value, for example: > description:string > some-property:integer required - command line interface for example: > // Creates task > <task tracker>.exe -create {description: "Foo", some-prperty: 1} > // Search for tasks with description field starting from F > <task tracker>.exe -find { description: "F*" }
0
[ 2, 3005, 118, 12565, 10353, 329, 29, 1202, 8, 1143, 6573, 800, 3726, 3726, 50, 14, 186, 3005, 10353, 1242, 29, 1202, 8, 1143, 6573, 60, 235, 25, 21, 968, 16, 967, 31, 22, 79, 3158, 19, 45, 13, 8, 1935, 3005, 22894, 301, 101, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MinGW "stdio.h : No such file or directory" === I am trying to use MinGW to compile a C program under Windows XP. The gcc.exe gives the following error: **stdio.h : No such file or directory** The code (hello.c) looks like this: #include < stdio.h > void main() { printf("\nHello World\n"); } I use a batch file to call gcc. The batch file looks like this: @echo off set OLDPATH=%PATH% set path=C:\devtools\MinGW\bin;%PATH% set LIBRARY_PATH=C:\devtools\MinGW\lib set C_INCLUDE_PATH=C:\devtools\MinGW\include gcc.exe hello.c set path=%OLDPATH% I have tried the option **-I** without effect. What do I do wrong?
0
[ 2, 12069, 499, 13, 7, 384, 6921, 9, 252, 13, 45, 90, 145, 3893, 54, 16755, 7, 800, 3726, 3726, 31, 589, 749, 20, 275, 12069, 499, 20, 26561, 21, 272, 625, 131, 1936, 23045, 9, 14, 489, 3384, 9, 1706, 62, 2352, 14, 249, 7019, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Generic Method Type Safety === I have the concept of `NodeType`s and `Node`s. A `NodeType` is a bunch of meta-data which you can create `Node` instances from (a lot like the whole Class / Object relationship). I have various NodeType implementations and various Node implementations. In my AbstractNodeType (top level for NodeTypes) I have ab abstract `createInstance()` method that will, once implemented by the subclass, creates the correct Node instance: public abstract class AbstractNodeType { // .. public abstract <T extends AbstractNode> T createInstance(); } In my `NodeType` implementations I implement the method like this: public class ThingType { // .. public Thing createInstance() { return new Thing(/* .. */); } } // FYI public class Thing extends AbstractNode { /* .. */ } This is all well and good, but `public Thing createInstance()` creates a warning about type safety. Specifically: > Type safety: The return type Thing for > createInstance() from the type > ThingType needs unchecked conversion > to conform to T from the type > AbstractNodeType **What am I doing wrong to cause such a warning?** **How can I re-factor my code to fix this?** *`@SuppressWarnings("unchecked")` is not good, I wish to fix this by coding it correctly, not ignoring the problem!*
0
[ 2, 12733, 2109, 1001, 2108, 800, 3726, 3726, 31, 57, 14, 2420, 16, 13, 1, 251, 546, 4474, 1, 18, 17, 13, 1, 251, 546, 1, 18, 9, 21, 13, 1, 251, 546, 4474, 1, 25, 21, 7653, 16, 7618, 8, 18768, 56, 42, 92, 1600, 13, 1, 251...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cleanest way to stop a process on Win32 ? === While implementing an applicative server and its client-side libraries in C++, I am having trouble finding a clean and reliable way to stop client processes on server shutdown on Windows. Assuming the server and its clients run under the same user, the requirements are: <ul> <li>the solution should work in the following cases: <ul> <li>clients may each feature either a console or a gui.</li> <li>user may be unprivileged.<li> <li>clients may be or become unresponsive (infinite loop, deadlock, user attached a debugger).</li> <li>clients may or may not be children of the server (direct or indirect).</li> </ul> <li>unless prevented by a client-side defect, clients shall be allowed the opportunity to exit cleanly (free their ressources, sync some data to disk...) and some reasonable time to do so.</li> <li>all client return codes shall be made available to the server during the shutdown procedure.</li> </ul>
0
[ 2, 2745, 1430, 161, 20, 747, 21, 953, 27, 628, 3125, 13, 60, 800, 3726, 3726, 133, 17333, 40, 4865, 4663, 3366, 8128, 17, 82, 6819, 8, 1416, 8649, 19, 272, 20512, 15, 31, 589, 452, 2572, 3007, 21, 2745, 17, 11398, 161, 20, 747, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What Prevents a Thread in C# from being Collected? === In .NET, after this code, what mechanism stops the Thread object from being garbage collected? new Thread(Foo).Start(); GC.Collect();
0
[ 2, 98, 2501, 18, 21, 9322, 19, 272, 5910, 37, 142, 3674, 60, 800, 3726, 3726, 19, 13, 9, 2328, 15, 75, 48, 1797, 15, 98, 6534, 6604, 14, 9322, 3095, 37, 142, 15024, 3674, 60, 78, 9322, 5, 4120, 111, 6, 9, 13680, 5, 6, 73, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I kill a VMware virtual machine that won't die? === I've got a virtual machine running on a server that I can't stop or reboot - I can't log onto it anymore and I can't stop it using the VMware server console. There are other VM's running so rebooting the host is out of the question. Is there any other way of forcing one machine to stop?
0
[ 2, 184, 107, 31, 1177, 21, 13, 20147, 5011, 6599, 1940, 30, 230, 22, 38, 1327, 60, 800, 3726, 3726, 31, 22, 195, 330, 21, 6599, 1940, 946, 27, 21, 8128, 30, 31, 92, 22, 38, 747, 54, 25312, 13, 8, 31, 92, 22, 38, 6738, 1204, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best technology to build an online gambling / poker system ? === What technology / software / framework could be the best match to build an online gambling / poker system (website, standalone applications) ? Would you recommend Java/J2EE, .Net / Erlang ? Thank you.
0
[ 2, 98, 25, 14, 246, 1099, 20, 1895, 40, 2087, 13323, 13, 118, 12453, 329, 13, 60, 800, 3726, 3726, 98, 1099, 13, 118, 2306, 13, 118, 6596, 110, 44, 14, 246, 730, 20, 1895, 40, 2087, 13323, 13, 118, 12453, 329, 13, 5, 14113, 90...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Avoid hanging when closing a Yahoo map with lots of markers === I have a Yahoo map with lots of markers (~500). The map performs well enough until I close the page, at which point it pauses (in Firefox) and brings up a "Stop running this script?" dialog (in IE7). If given long enough the script does complete its work. Is there anything I can do to reduce this delay? This stripped down code exhibits the problem: <script type="text/javascript"> var map = new YMap(document.getElementById('map')); map.drawZoomAndCenter("Algeria", 17); for (var i = 0; i < 500; i += 1) { var geoPoint = new YGeoPoint((Math.random()-0.5)*180.0, (Math.random()-0.5)*360.0); var marker = new YMarker(geoPoint); map.addOverlay(marker); } </script> I'm aware of some memory leaks with the event handlers if you're dynamically adding and removing markers, but these are static (though the problem may be related). Oh, and I _know_ this many markers on a map may not be the best way to convey the data, but that's not the answer I'm looking for ;)
0
[ 2, 2658, 4505, 76, 4239, 21, 23553, 2942, 29, 7503, 16, 19482, 800, 3726, 3726, 31, 57, 21, 23553, 2942, 29, 7503, 16, 19482, 13, 5, 1, 6000, 6, 9, 14, 2942, 11563, 134, 511, 163, 31, 543, 14, 2478, 15, 35, 56, 454, 32, 6911, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is anyone developing facebook apps on Grails === I have not seen much support for Grails to develop facebook apps.I was just wondering if people around are developing facebook apps on grails
0
[ 2, 25, 1276, 3561, 9090, 4865, 18, 27, 489, 7301, 18, 800, 3726, 3726, 31, 57, 52, 541, 212, 555, 26, 489, 7301, 18, 20, 2803, 9090, 4865, 18, 9, 49, 23, 114, 5712, 100, 148, 140, 50, 3561, 9090, 4865, 18, 27, 489, 7301, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
C# - Excluding unit tests from the release version of your project === How do you usually go about **separating your codebase and associated unit tests**? I know people who create a separate project for unit tests, which I personally find confusing and difficult to maintain. On the other hand, if you mix up code and its tests in a single project, you end up with binaries related to your unit test framework (be it NUnit, MbUnit or whatever else) and your own binaries side by side. This is fine for debugging, by once I build a **release version**, I really do not want my code to **reference the unit testing framework** any more. One solution I found is to enclose all your unit tests within #if DEBUG -- #endif directives: when no code references an unit testing assembly, the compiler is clever enough to omit the reference in the compiled code. Are there any other (possibly more comfortable) options to achieve a similar goal?
0
[ 2, 272, 5910, 13, 8, 13, 14938, 1237, 4894, 37, 14, 830, 615, 16, 154, 669, 800, 3726, 3726, 184, 107, 42, 951, 162, 88, 13, 1409, 18, 14189, 15073, 154, 1797, 8436, 17, 1598, 1237, 4894, 1409, 60, 31, 143, 148, 72, 1600, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I add new methods to the String class in Java? === I'd like to add a method AddDefaultNamespace() to the String class in Java so that I can type "myString".AddDefaultNamespace() instead of DEFAULTNAMESPACE + "myString", to obtain something like "MyDefaultNameSpace.myString". I don't want to add another derived class either (PrefixedString for example). Maybe the approach is not good for you but I personally hate using "+". But, anyway, is it possible to add new methods to the String class in Java? Thanks and regards.
0
[ 2, 92, 31, 3547, 78, 3195, 20, 14, 3724, 718, 19, 8247, 60, 800, 3726, 3726, 31, 22, 43, 101, 20, 3547, 21, 2109, 3547, 13862, 9708, 7259, 5582, 5, 6, 20, 14, 3724, 718, 19, 8247, 86, 30, 31, 92, 1001, 13, 7, 915, 11130, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What 3rd Party Controls are .Net Developers using === I am re-evaluating my 3rd party controls. I currently use the Infragistic suite for ASP.Net and WinForms. What controls do you use and would you recommend them?
0
[ 2, 98, 203, 897, 346, 8671, 50, 13, 9, 2328, 10168, 568, 800, 3726, 3726, 31, 589, 302, 8, 7067, 2377, 1880, 51, 203, 897, 346, 8671, 9, 31, 871, 275, 14, 19, 22133, 3771, 6160, 26, 28, 306, 9, 2328, 17, 628, 4190, 18, 9, 98...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
Deadlock in ThreadPool === I couldn't find a decent ThreadPool implementation for Ruby, so I wrote mine (based partly on code from here: http://snippets.dzone.com/posts/show/3276 , but changed to wait/signal and other implementation for ThreadPool shutdown. However after some time of running (having 100 threads and handling about 1300 tasks), it dies with deadlock on line 25 - it waits for a new job there. Any ideas, why it might happen? require 'thread' begin require 'fastthread' rescue LoadError $stderr.puts "Using the ruby-core thread implementation" end class ThreadPool class Worker def initialize(callback) @mutex = Mutex.new @cv = ConditionVariable.new @callback = callback @mutex.synchronize {@running = true} @thread = Thread.new do while @mutex.synchronize {@running} block = get_block if block block.call reset_block # Signal the ThreadPool that this worker is ready for another job @callback.signal else # Wait for a new job @mutex.synchronize {@cv.wait(@mutex)} end end end end def name @thread.inspect end def get_block @mutex.synchronize {@block} end def set_block(block) @mutex.synchronize do raise RuntimeError, "Thread already busy." if @block @block = block # Signal the thread in this class, that there's a job to be done @cv.signal end end def reset_block @mutex.synchronize {@block = nil} end def busy? @mutex.synchronize {!@block.nil?} end def stop @mutex.synchronize {@running = false} # Signal the thread not to wait for a new job @cv.signal @thread.join end end attr_accessor :max_size def initialize(max_size = 10) @max_size = max_size @workers = [] @mutex = Mutex.new @cv = ConditionVariable.new end def size @mutex.synchronize {@workers.size} end def busy? @mutex.synchronize {@workers.any? {|w| w.busy?}} end def shutdown @mutex.synchronize {@workers.each {|w| w.stop}} end alias :join :shutdown def process(block=nil,&blk) block = blk if block_given? while true @mutex.synchronize do worker = get_worker if worker return worker.set_block(block) else # Wait for a free worker @cv.wait(@mutex) end end end end # Used by workers to report ready status def signal @cv.signal end private def get_worker free_worker || create_worker end def free_worker @workers.each {|w| return w unless w.busy?}; nil end def create_worker return nil if @workers.size >= @max_size worker = Worker.new(self) @workers << worker worker end end
0
[ 2, 828, 3966, 19, 9322, 13378, 800, 3726, 3726, 31, 711, 22, 38, 477, 21, 12238, 9322, 13378, 6123, 26, 10811, 15, 86, 31, 738, 1114, 13, 5, 1281, 5794, 27, 1797, 37, 235, 45, 7775, 6903, 29061, 18, 9, 43, 11661, 9, 960, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Looking for DOS/DDOS protection tools and strategies === I am working on a java application that exposes webservices for a flash client. Any idea on how to prevent DOS/DDOS attacks ? I cannot use mechanism unfriendly for the end user such as captcha. So far I have found mod_evasive, an apache module which looks quite promising... Any suggestions, best practives, tools I might use ? Thanks in advance
0
[ 2, 699, 26, 107, 18, 118, 43, 8609, 2057, 4672, 17, 10272, 800, 3726, 3726, 31, 589, 638, 27, 21, 8247, 3010, 30, 13833, 18, 2741, 11449, 18, 26, 21, 4433, 6819, 9, 186, 882, 27, 184, 20, 2501, 107, 18, 118, 43, 8609, 3080, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Rails or grails ? === Grails vs rails .Which got better support?And which one is better to develop medium size apps ?Most importantly which one got more number of plugings
4
[ 2, 2240, 18, 54, 489, 7301, 18, 13, 60, 800, 3726, 3726, 489, 7301, 18, 4611, 2240, 18, 13, 9, 2140, 330, 574, 555, 60, 290, 56, 53, 25, 574, 20, 2803, 4152, 1072, 4865, 18, 13, 60, 4630, 16922, 56, 53, 330, 91, 234, 16, 109...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What is the best resource for learning about Safety Critical Systems Development (C/C++) === I'm looking to locate a good resource (book or otherwise) on safety critical systems development techniques/methodologies, especially something that will cover both hardware and software . I have a sound working knowledge of C/C++, so even if it is just code on SourceForge etc I would still appreciate a link to it to have a browse. Thanks.
0
[ 2, 98, 25, 14, 246, 6577, 26, 2477, 88, 2108, 2507, 1242, 522, 13, 5, 150, 118, 150, 20512, 6, 800, 3726, 3726, 31, 22, 79, 699, 20, 12717, 21, 254, 6577, 13, 5, 5199, 54, 3190, 6, 27, 2108, 2507, 1242, 522, 4212, 118, 5909, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What single plugin would you recommend for gedit? === I've just discovered the power of gedit thanks to all of the [plugins that are available][1] for it. Edit > Preferences > Plugins Which plugin could you not live without? [1]: http://live.gnome.org/Gedit/Plugins
0
[ 2, 98, 345, 10922, 108, 83, 42, 12360, 26, 13, 6430, 242, 60, 800, 3726, 3726, 31, 22, 195, 114, 1848, 14, 414, 16, 13, 6430, 242, 3669, 20, 65, 16, 14, 636, 18527, 17040, 30, 50, 904, 500, 2558, 165, 500, 26, 32, 9, 9392, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I send an email attachment using the designated client, programmatically from Java === I'd like to encourage our users of our RCP application to send the problem details to our support department. To this end, I've added a "Contact support" widget to our standard error dialogue. I've managed to use URI headers to send a stacktrace using Java 6's JDIC call: [`Desktop.getDesktop().mail(java.net.URI)`][1]. This will fire up the user's mail client, ready for them to add their comments, and hit send. I like firing up the email client, because it's what the user is used to, it tells support a whole lot about the user (sigs, contact details etc) and I don't really want [to ship with Java Mail][2]. What I'm like to do is attach the log file and the stacktrace as a file, so there is no maximum length requirement, and the user sees a nice clean looking email, and the support department has a lot more information to work with. Can I do this with the approach I'm taking? Or is there a better way? [1]: http://java.sun.com/javase/6/docs/api/java/net/URI.html [2]: http://www.catb.org/~esr/jargon/html/Z/Zawinskis-Law.html
0
[ 2, 184, 107, 31, 2660, 40, 8517, 14575, 568, 14, 3232, 6819, 15, 625, 6732, 1326, 37, 8247, 800, 3726, 3726, 31, 22, 43, 101, 20, 8333, 318, 3878, 16, 318, 761, 7439, 3010, 20, 2660, 14, 1448, 3289, 20, 318, 555, 604, 9, 20, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Print variable type in C++ === Is it possible in standard C++ to print a variable type. I think this is being addressed in C++0x but not sure it already exists. I would like something like this: int a = 12; cout << typeof(a) << endl; That would print: int
0
[ 2, 4793, 7612, 1001, 19, 272, 20512, 800, 3726, 3726, 25, 32, 938, 19, 1236, 272, 20512, 20, 4793, 21, 7612, 1001, 9, 31, 277, 48, 25, 142, 7832, 19, 272, 20512, 387, 396, 47, 52, 562, 32, 614, 5636, 9, 31, 83, 101, 301, 101, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to start facebook app? === Just want to know what is better way to get start developing faccebook app?Any tutorial recommnedation?And which is better to start up -php or rails?
0
[ 2, 184, 20, 799, 9090, 4865, 60, 800, 3726, 3726, 114, 259, 20, 143, 98, 25, 574, 161, 20, 164, 799, 3561, 1399, 150, 1105, 5199, 4865, 60, 6001, 29724, 302, 960, 79, 3725, 857, 60, 290, 56, 25, 574, 20, 799, 71, 13, 8, 26120,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Sending 'application/javascript' MIME t Type Header Causes 500 Error with PHP5 & IIS7 === I have a script that works fine on my test server (using IIS6). The script processes an ajax request and sends a response with the following line: header( 'application/javascript' ); But on my live server, this line crashes the page and causes a 500 error. Do I need to allow PHP to send different MIME types in IIS7? If so, how do I do this? I can't find any way on the interface. Thanks
0
[ 2, 4907, 13, 22, 2552, 20669, 118, 1004, 1385, 8741, 22, 26193, 13, 38, 1001, 157, 106, 4047, 3033, 7019, 29, 13, 26120, 264, 279, 595, 18, 465, 800, 3726, 3726, 31, 57, 21, 3884, 30, 693, 1123, 27, 51, 1289, 8128, 13, 5, 12655,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to find and kill running Win-Processes from within Java? === I need a Java way to find a running Win process from which I know to name of the executable. I want to look whether it is running right now and I need a way to kill the process if I found it. Thank you! Greetz, GHad
0
[ 2, 184, 20, 477, 17, 1177, 946, 628, 8, 16835, 160, 37, 363, 8247, 60, 800, 3726, 3726, 31, 376, 21, 8247, 161, 20, 477, 21, 946, 628, 953, 37, 56, 31, 143, 20, 204, 16, 14, 1396, 17194, 5924, 9, 31, 259, 20, 361, 1472, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Quicker way to create deplicate Virtual PC images? === I use Virtual PC to create fresh environments for testing my installer. But I must be doing something wrong because a VPC image with Vista or XP inside is taking around 15GB of disk space (that includes VS2005/S2008 installed in them). To create a new copy for testing I copy and paste the folder that has the .vhd, .vmc and .vsv files inside. After using the new VPC image for testing I then delete that copied folder. This works but it takes a looong time to copy 15GB each time. Is there some faster/more efficent approach?
0
[ 2, 21927, 161, 20, 1600, 121, 26811, 6599, 5168, 3502, 60, 800, 3726, 3726, 31, 275, 6599, 5168, 20, 1600, 3180, 11246, 26, 4431, 51, 16146, 106, 9, 47, 31, 491, 44, 845, 301, 1389, 185, 21, 566, 5779, 1961, 29, 13520, 54, 23045, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Transact-SQL to sum up elapsed time === I have a table in my database the records start and stop times for a specific task. Here is a sample of the data: Start Stop 9/15/2008 5:59:46 PM 9/15/2008 6:26:28 PM 9/15/2008 6:30:45 PM 9/15/2008 6:40:49 PM 9/16/2008 8:30:45 PM 9/15/2008 9:20:29 PM 9/16/2008 12:30:45 PM 12/31/9999 12:00:00 AM I would like to write a script that totals up the elapsed minutes for these time frames, and wherever there is a 12/31/9999 date, I want it to use the current date and time, as this is still in progress. How would I do this using Transact-SQL?
0
[ 2, 2982, 5183, 8, 18, 22402, 20, 3907, 71, 13, 62, 17057, 43, 85, 800, 3726, 3726, 31, 57, 21, 859, 19, 51, 6018, 14, 742, 799, 17, 747, 436, 26, 21, 1903, 3005, 9, 235, 25, 21, 5717, 16, 14, 1054, 45, 799, 747, 13, 12766, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Easy way to export a SQL table without access to the server or phpMyADMIN === I need a way to easily export and then import data in a MySQL table from a remote server to my home server. I don't have direct access to the server, and no utilities such as phpMyAdmin are installed. I do, however, have the ability to put PHP scripts on the server. How do I get at the data? *I ask this question purely to record my way to do it*
0
[ 2, 2010, 161, 20, 7487, 21, 4444, 255, 859, 366, 1381, 20, 14, 8128, 54, 13, 26120, 915, 1283, 2160, 800, 3726, 3726, 31, 376, 21, 161, 20, 2351, 7487, 17, 94, 9010, 1054, 19, 21, 51, 18, 22402, 859, 37, 21, 5388, 8128, 20, 51...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unicode debug visualizer in Visual Studio 2008 === Is there a unicode debug visualizer in Visual Studio 2008? I'm sure there was one in 2005 but all I see now is the ANSI version of the string. When looking at a piece of unicode XML it shows up perfectly when I view it in the Xml visualizer.
0
[ 2, 28010, 121, 16254, 3458, 11907, 19, 3458, 1120, 570, 800, 3726, 3726, 25, 80, 21, 28010, 121, 16254, 3458, 11907, 19, 3458, 1120, 570, 60, 31, 22, 79, 562, 80, 23, 53, 19, 812, 47, 65, 31, 196, 130, 25, 14, 40, 18, 49, 615,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Setting Remote Launch in DCOM === I can use DCOMCNFG to disable remote launch on my DCOM application, but I would like to do this programatically. I looked at CoInitializeSecurity, but that does not seem to do it. Anyone done this? I am using Delphi BTW.
0
[ 2, 2697, 5388, 3394, 19, 13, 43, 960, 800, 3726, 3726, 31, 92, 275, 13, 43, 960, 9881, 19109, 20, 1460, 579, 5388, 3394, 27, 51, 13, 43, 960, 3010, 15, 47, 31, 83, 101, 20, 107, 48, 625, 721, 8438, 9, 31, 292, 35, 326, 27313...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
'Looser' typing in C# by casting down the inheritance tree === The question I want to ask is thus: Is casting down the inheritance tree (ie. towards a more specialiased class) from inside an abstract class excusable, or even a good thing, or is it always a poor choice with better options available? Now, the example of why I think it can be used for good. I recently implemented [Bencoding from the BitTorrent protocol](http://www.bittorrent.org/beps/bep_0003.html#the-connectivity-is-as-follows) in C#. A simple enough problem, how to represent the data. I chose to do it this way, We have an `abstract BItem` class, which provides some basic functionality, including the `static BItem Decode(string)` that is used to decode a Bencoded string into the necessary structure. There are also four derived classes, `BString`, `BInteger`, `BList` and `BDictionary`, representing the four different data types that be encoded. Now, here is the tricky part. `BList` and `BDictionary` have `this[int]` and `this[string]` accessors respectively to allow access to the array-like qualities of these data types. The potentially horrific part is coming now: BDictionary torrent = BItem.DecodeFile("my.torrent"); int filelength = (BInteger)((BDictionary)((BList)((BDictionary) torrent["info"])["files"])[0])["length"]; Well, you get the picture... Ouch, that's hard on the eyes, not to mention the brain. So, I introduced something extra into the abstract class: public BItem this[int index] { get { return ((BList)this)[index]; } } public BItem this[string index] { get { return ((BDictionary)this)[index]; } } Now we could rewrite that old code as: BDictionary torrent = BItem.DecodeFile("my.torrent"); int filelength = (BInteger)torrent["info"]["files"][0]["length"]; Wow, hey presto, MUCH more readable code. But did I just sell part of my soul for implying knowledge of subclasses into the abstract class?
0
[ 2, 13, 22, 10165, 4104, 22, 25266, 19, 272, 5910, 34, 9087, 125, 14, 13852, 1541, 800, 3726, 3726, 14, 1301, 31, 259, 20, 1349, 25, 1086, 45, 25, 9087, 125, 14, 13852, 1541, 13, 5, 660, 9, 1016, 21, 91, 621, 9814, 69, 718, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Issues with using ruby (on rails) in 64-bit multiple platforms === Has anyone used ruby in 64-bit environments in various platforms (HP=UX, Solaris, AIX etc.) in a commercial production environment that heavily relies on database. Have you faced any issues / bugs during these times?
0
[ 2, 1549, 29, 568, 10811, 13, 5, 218, 2240, 18, 6, 19, 4384, 8, 3326, 1886, 6843, 800, 3726, 3726, 63, 1276, 147, 10811, 19, 4384, 8, 3326, 11246, 19, 617, 6843, 13, 5, 12491, 3726, 7147, 15, 4535, 403, 15, 21, 4028, 2722, 9, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
A potentially dangerous Request.Form value was detected from the client === Everytime a user posts something containing < or > in a page in my webapp, I get this exception thrown. I don't want to go into the discussion about the smartness of throwing an exception or crashing an entire webapp because somebody entered a character in a textbox, but I am looking for an elegant way to handle this. Trapping the exception and showing "An error has occured please go back and re-type your entire form again, but this time please do not use <" doesn't seem professional enough to me Disabling post validation ( validateRequest="false" ) will definitelly avoid this error, but it will leave the page vulnerable to a number of attacks. Ideally: when a postback occurs containing HTML restricted caracters, that posted value in the Form collection will be automatically HTML encoded. So the .Text property of my text-box will be " something & lt; html & gt; " Any way I can do this from a handler?
0
[ 2, 21, 9465, 3342, 3772, 9, 4190, 1923, 23, 11968, 37, 14, 6819, 800, 3726, 3726, 352, 891, 21, 4155, 9868, 301, 3503, 13, 1, 54, 13, 1, 19, 21, 2478, 19, 51, 2741, 7753, 15, 31, 164, 48, 5391, 6027, 9, 31, 221, 22, 38, 259,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to get login credentials by openId? === Is is possible to get login credentials such as name/id if user does login by openId
0
[ 2, 184, 20, 164, 6738, 108, 5059, 43, 10107, 18, 34, 368, 1340, 60, 800, 3726, 3726, 25, 25, 938, 20, 164, 6738, 108, 5059, 43, 10107, 18, 145, 28, 204, 118, 1340, 100, 4155, 630, 6738, 108, 34, 368, 1340, 3, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Why would'nt DB2 let me have a column in WHERE clause? === I have a remote DB2 database that I'm accessing through ODBC. When I have a query like SELECT t.foo, t.bar, t.problemcolumn FROM problemtable t WHERE t.bar < 60; it works like a charm. But if I specify the problem column in the WHERE clause SELECT t.foo, t.bar, t.problemcolumn FROM problemtable t WHERE t.problemcolumn = 'x' AND t.bar < 60; it gives me an error Table "problemtable" does not exist. What could possibly be the reason for this?
0
[ 2, 483, 83, 22, 2877, 13, 9007, 135, 408, 55, 57, 21, 4698, 19, 113, 9040, 60, 800, 3726, 3726, 31, 57, 21, 5388, 13, 9007, 135, 6018, 30, 31, 22, 79, 1381, 68, 120, 12340, 7229, 9, 76, 31, 57, 21, 25597, 101, 5407, 13, 38, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Non-unicode XML representation === I have xml where some of the element values are unicode characters. Is it possible to represent this in an ANSI encoding? E.g. <?xml version="1.0" encoding="utf-8"?> <xml> <value>受</value> </xml> to <?xml version="1.0" encoding="Windows-1252"?> <xml> <value>&#27544</value> </xml>
0
[ 2, 538, 8, 8843, 9375, 23504, 5442, 800, 3726, 3726, 31, 57, 23504, 113, 109, 16, 14, 4520, 4070, 50, 28010, 1766, 9, 25, 32, 938, 20, 3501, 48, 19, 40, 40, 18, 49, 19608, 60, 13, 62, 9, 263, 9, 13, 1, 60, 396, 8184, 615, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Are .NET languages really making any kind of dent in consumer desktop applications? === Do you write consumer desktop applications with .NET languages? If so what type? My impression is that most consumer desktop applications are still native compiled applications in C, C++ and the like. Whilst .NET languages are growing in up take and popularity, do these new breed of applications ever break out of the enterprise & web domain to become high street consumer applications? My company develops high end CAD/CAE applications we leverage new technology but our core development is still done with C++.
0
[ 2, 50, 13, 9, 2328, 2556, 510, 544, 186, 825, 16, 13156, 19, 6461, 17404, 3767, 60, 800, 3726, 3726, 107, 42, 2757, 6461, 17404, 3767, 29, 13, 9, 2328, 2556, 60, 100, 86, 98, 1001, 60, 51, 6394, 25, 30, 127, 6461, 17404, 3767, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is a good programming language for AI? === Besides Lisp and Prolog what is a good programming language for programming intelligent systems?
0
[ 2, 98, 25, 21, 254, 3143, 816, 26, 21, 49, 60, 800, 3726, 3726, 3410, 2093, 3401, 17, 895, 5567, 98, 25, 21, 254, 3143, 816, 26, 3143, 9214, 1242, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Validating XML files against schema in Oracle PL/SQL === I have a requirement to validate an incoming file against an XSD. Both will be on the server file system. I've looked at dbms_xmlschema, but have had issues getting it to work. Here's a simple example: DECLARE v_schema_url VARCHAR2(200) := 'http://www.xxx.com/schema.xsd'; v_blob bLOB; v_clob CLOB; v_xml XMLTYPE; BEGIN begin dbms_xmlschema.deleteschema(v_schema_url); exception when others then null; end; dbms_xmlschema.registerSchema(schemaURL => v_schema_url, schemaDoc => ' <xs:schema targetNamespace="http://www.xxx.com" xmlns:ns="http://www.xxx.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="3.0"> <xs:element name="something" type="xs:string"/> </xs:schema>', local => TRUE); v_xml := XMLTYPE.createxml('<something xmlns="http://www.xx.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xxx.com/schema.xsd"> data </something>'); IF v_xml.isschemavalid(v_schema_url) = 1 THEN dbms_output.put_line('valid'); ELSE dbms_output.put_line('not valid'); END IF; END; This gets an error: ORA-01031: insufficient privileges ORA-06512: at "XDB.DBMS_XDBZ0", line 275 ORA-06512: at "XDB.DBMS_XDBZ", line 7 ORA-06512: at line 1 ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 3 ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 14 ORA-06512: at line 12
0
[ 2, 7394, 1880, 23504, 6488, 149, 23874, 19, 15759, 12443, 118, 18, 22402, 800, 3726, 3726, 31, 57, 21, 8981, 20, 7394, 1373, 40, 17126, 3893, 149, 40, 993, 18, 43, 9, 156, 129, 44, 27, 14, 8128, 3893, 329, 9, 31, 22, 195, 292, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Deserializing Client-Side AJAX JSON Dates === Given the following JSON Date representation: "\/Date(1221644506800-0700)\/" How do you deserialize this into it's JavaScript Date-type form? I've tried using MS AJAX JavaScrioptSerializer as shown below: Sys.Serialization.JavaScriptSerializer.deserialize("\/Date(1221644506800-0700)\/") However, all I get back is the literal string date. Many Thanks, Brian
0
[ 2, 1746, 106, 2815, 3335, 6819, 8, 1416, 20624, 487, 528, 4076, 800, 3726, 3726, 504, 14, 249, 487, 528, 1231, 5442, 45, 13, 7, 1, 118, 8209, 5, 918, 17608, 26399, 3370, 8464, 8, 387, 7915, 6, 1, 118, 7, 184, 107, 42, 1746, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
A regex for version number parsing === I have a version number of the following form: version.release.modification where version, release and modification are either a set of digits or the '*' wildcard character. Additionally, any of these numbers (and any preceding .) may be missing. So the following are valid and parse as: 1.23.456 = version 1, release 23, modification 456 1.23 = version 1, release 23, any modification 1.23.* = version 1, release 23, any modification 1.* = version 1, any release, any modification 1 = version 1, any release, any modification * = any version, any release, any modification But these are not valid: *.12 *123.1 12* 12.*.34 Can anyone provide me a not-too-complex regex to validate and retrieve the release, version and modification numbers? Many thanks!
0
[ 2, 21, 7953, 1706, 26, 615, 234, 2017, 18, 68, 800, 3726, 3726, 31, 57, 21, 615, 234, 16, 14, 249, 505, 45, 615, 9, 15202, 9, 13670, 4634, 113, 615, 15, 830, 17, 16135, 50, 694, 21, 309, 16, 19076, 54, 14, 13, 22, 2483, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WCF MSMQ - How do I handle message failure === I have create a WCF service and am utilising netMsmqBinding binding. This is a simple service that passes a Dto to my service method and does not expect a response. The message is placed in an MSMQ, and once picked up inserted into a database. What is the best method to make sure no data is being lost. I have tried the 2 following methods: 1) Throw an exception This places the message in a dead letter queue for manual perusal. I can process this when my strvice starts 2) set the receiveRetryCount="3" on the binding After 3 tries - which happen instantanously, this seems to leave the message in queue, but fault my service. Restarting my service repeats this process. Ideally I would like to do the follow: Try process the message If this fails, wait 5 minutes for that message and try again. If that process fails 3 times, move the message to a dead letter queue. Restarting the service will push all messages from the dead letter queue back into the queue so that it can be processed. Can I achieve this? If so how? Can you point me to any good articles on how best to utilize WCF and MSMQ for my given sceneria. Any help would be much appreciated. Thanks!
0
[ 2, 11801, 410, 4235, 79, 1251, 13, 8, 184, 107, 31, 3053, 2802, 2990, 800, 3726, 3726, 31, 57, 1600, 21, 11801, 410, 365, 17, 589, 13, 14255, 7552, 4275, 79, 18, 79, 1251, 22260, 8728, 9, 48, 25, 21, 1935, 365, 30, 3789, 21, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should a Log4J logger be declared as transient? === I am using Java 1.4 with Log4J. Some of my code involves serializing and deserializing value objects (POJOs). Each of my POJOs declares a logger with private final Logger log = Logger.getLogger(getClass()); The serializer complains of org.apache.log4j.Logger not being Serializable. Should I use private final transient Logger log = Logger.getLogger(getClass()); instead?
0
[ 2, 378, 21, 6738, 300, 728, 13, 29480, 44, 2482, 28, 26008, 60, 800, 3726, 3726, 31, 589, 568, 8247, 137, 9, 300, 29, 6738, 300, 728, 9, 109, 16, 51, 1797, 6569, 5956, 3335, 17, 1746, 106, 2815, 3335, 1923, 3916, 13, 5, 1638, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Are Delphi class vars global or thread in scope? === My guess is that class variables ("class var") are truly global in scope (that is, one instance for the entire application). But I am wondering whether this is the case, or whether they are thread in scope (eg similar to a "threadvar"). Anyone know?
0
[ 2, 50, 23030, 718, 4033, 18, 2062, 54, 9322, 19, 9914, 60, 800, 3726, 3726, 51, 2321, 25, 30, 718, 12157, 13, 5, 7, 1898, 4033, 7, 6, 50, 4574, 2062, 19, 9914, 13, 5, 887, 25, 15, 53, 4851, 26, 14, 1078, 3010, 6, 9, 47, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Initialization Troubles with BIRT Runtime Engine API === I'm new to BIRT and I'm trying to make the Reprt engine running. I'm using the code snippets provided in http://www.eclipse.org/birt/phoenix/deploy/reportEngineAPI.php But I have a strange exception: java.lang.AssertionError at org.eclipse.birt.core.framework.Platform.startup(Platform.java:86) and nothing in the log file. Maybe I missed something in configuration? Could somebody give me a hint what can I try to make it running?
0
[ 2, 2104, 1829, 16615, 29, 8719, 38, 485, 891, 1406, 21, 2159, 800, 3726, 3726, 31, 22, 79, 78, 20, 8719, 38, 17, 31, 22, 79, 749, 20, 233, 14, 9411, 5256, 1406, 946, 9, 31, 22, 79, 568, 14, 1797, 13, 29061, 18, 1173, 19, 777...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Displaying build times in Visual Studio? === Our build server is taking too long to build one of our C++ projects. It uses Visual Studio 2008. Is there any way to get devenv.com to log the time taken to build each project in the solution, so that I know where to focus my efforts? Improved hardware is not an option in this case.
0
[ 2, 17418, 1895, 436, 19, 3458, 1120, 60, 800, 3726, 3726, 318, 1895, 8128, 25, 741, 266, 175, 20, 1895, 53, 16, 318, 272, 20512, 2314, 9, 32, 2027, 3458, 1120, 570, 9, 25, 80, 186, 161, 20, 164, 121, 3124, 710, 9, 960, 20, 673...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What software tools do people recommend to map business processes? === I'm thinking of using Visio + Sharepoint. Are there any other low-cost packages or Visio add-ons that would be appropriate?
0
[ 2, 98, 2306, 4672, 107, 148, 12360, 20, 2942, 508, 5102, 60, 800, 3726, 3726, 31, 22, 79, 1440, 16, 568, 9060, 1963, 2754, 1891, 3132, 9, 50, 80, 186, 89, 708, 8, 15155, 16875, 54, 9060, 1963, 3547, 8, 4710, 30, 83, 44, 4593, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
producing 2 or more short sounds when a web page loads. === I have 6 sound files (1.wav 2.wav etc..) of which 3 different ones have to be heard each time the web page opens. The numbers are selected randomly. I have tried multiple "embeds" but only the last sound selected gets produced. I have also tried javascript routines that fiddle the bgsound attribute, however, I was not able to produce more than one sound at a time. The sounds are required to play either automatically on page open or they can be triggered by a click on a button or link, however, only one click is acceptable for the three sounds. Is there another way to do this? suggestions very welcome.
0
[ 2, 4081, 172, 54, 91, 502, 2795, 76, 21, 2741, 2478, 19069, 9, 800, 3726, 3726, 31, 57, 400, 646, 6488, 13, 5, 165, 9, 1608, 710, 172, 9, 1608, 710, 2722, 9, 9, 6, 16, 56, 203, 421, 53, 18, 57, 20, 44, 752, 206, 85, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a fast, accurate Highlighter for Lucene? === I've been using the (Java) [Highlighter for Lucene][1] (in the Sandbox package) for some time. However, this isn't really very accurate when it comes to matching the correct terms in search results - it works well for simple queries, for example searching for two separate words will highlight both code fragments in the results. However, it doesn't act well with more complicated queries. In the simplest case, phrase queries such as "Stack Overflow" will match all occurrences of Stack or Overflow in the highlighting, which gives the impression to the user that it isn't working very well. I tried applying the fix [here][2] but that came with a lot of performance caveats, and at the end of the day was just plain unusable. The performance is especially an issue on wildcard queries. This is due to the way that the highlighting works; instead of just working on the querystring and the text it parses it as Lucene would and then looks for all the matches that Lucene has made; unfortunately this means that for certain wildcard queries it can be looking for matches to 2000+ clauses on large documents, and it's simply not fast enough. Is there any faster implementation of an accurate highlighter? [1]: http://lucene.apache.org/java/docs/lucene-sandbox/index.html#Term%20Highlighter [2]: http://www.gossamer-threads.com/lists/lucene/java-user/15528
0
[ 2, 25, 80, 21, 1512, 15, 8137, 14373, 106, 26, 18515, 556, 60, 800, 3726, 3726, 31, 22, 195, 74, 568, 14, 13, 5, 1004, 1385, 6, 636, 4542, 3130, 106, 26, 18515, 556, 500, 2558, 165, 500, 13, 5, 108, 14, 1965, 5309, 6030, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Build setup project with NAnt === I've already got a NAnt build script that builds/runs tests/zips web project together, etc. but I'm working on a basic desktop application. How would I go about build the setup project using NAnt so I can include it with the build report on TeamCity.
0
[ 2, 1895, 18161, 669, 29, 13, 11028, 800, 3726, 3726, 31, 22, 195, 614, 330, 21, 13, 11028, 1895, 3884, 30, 1895, 18, 118, 3169, 18, 4894, 118, 2553, 1919, 2741, 669, 429, 15, 2722, 9, 47, 31, 22, 79, 638, 27, 21, 2125, 17404, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PyQT and PyCairo === I know it's possible to place a PyCairo surface inside a Gtk Drawing Area. But I think QT is a lot better to work with, so I've been wondering if there's anyway to place a PyCairo surface inside some qt component?
0
[ 2, 7103, 1251, 38, 17, 7103, 793, 8412, 800, 3726, 3726, 31, 143, 32, 22, 18, 938, 20, 209, 21, 7103, 793, 8412, 1490, 572, 21, 9509, 197, 3533, 217, 9, 47, 31, 277, 2593, 38, 25, 21, 865, 574, 20, 170, 29, 15, 86, 31, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Public Cell ID databases === I'm building a location aware mobile application which uses GPS, but i'd like to be able to add cell location too. The best thing I have found so far is to use Google Gears, which has a location API available, but my application is not web based. Are there any good public cell id databases that can be accessed from any kind of application? I have found a few interesting projects out there like OpenCellID, but the database is very poor right now.
0
[ 2, 317, 1667, 4924, 6018, 18, 800, 3726, 3726, 31, 22, 79, 353, 21, 1474, 3854, 3241, 3010, 56, 2027, 18298, 15, 47, 31, 22, 43, 101, 20, 44, 777, 20, 3547, 1667, 1474, 266, 9, 14, 246, 584, 31, 57, 216, 86, 463, 25, 20, 275...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way of speccing plugins with RSpec? === I'm creating a plugin, and am looking to use RSpec so I can build it using BDD. Is there a recommended method of doing this?
0
[ 2, 98, 25, 14, 246, 161, 16, 12737, 6302, 10922, 108, 18, 29, 13, 1224, 12610, 60, 800, 3726, 3726, 31, 22, 79, 2936, 21, 10922, 108, 15, 17, 589, 699, 20, 275, 13, 1224, 12610, 86, 31, 92, 1895, 32, 568, 334, 8096, 9, 25, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do you customize the RSS feeds in SharePoint === In the early days of SharePoint 2007 beta, I've come across the ability to customize the template used to emit the RSS feeds from lists. I can't find it again. Anybody know where it is?
0
[ 2, 184, 107, 42, 5816, 2952, 14, 13, 1224, 18, 17058, 19, 1891, 3132, 800, 3726, 3726, 19, 14, 274, 509, 16, 1891, 3132, 624, 8434, 15, 31, 22, 195, 340, 464, 14, 2165, 20, 5816, 2952, 14, 22894, 147, 20, 8468, 38, 14, 13, 122...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I use calculated value date in Sharepoint lists field to find a date+30 days? === I have a list I've built in Sharepoint, where one of the fields is a date that the user enters. I want to add another field, which is a calculated value field that needs to be the date provided by the user + 30 days. What formula do I need to pass to the calculated value field to achieve that?
0
[ 2, 184, 107, 31, 275, 10785, 1923, 1231, 19, 1891, 3132, 7227, 575, 20, 477, 21, 1231, 2430, 1762, 509, 60, 800, 3726, 3726, 31, 57, 21, 968, 31, 22, 195, 392, 19, 1891, 3132, 15, 113, 53, 16, 14, 2861, 25, 21, 1231, 30, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it worth the effort to move from a hand crafted hibernate mapping file to annotaions? === I've got a webapp whose original code base was developed with a hand crafted hibernate mapping file. Since then, I've become fairly proficient at 'coding' my hbm.xml file. But all the cool kids are using annotations these days. So, the question is: Is it worth the effort to refactor my code to use hibernate annotations? Will I gain anything, other than being hip and modern? Will I lose any of the control I have in my existing hand coded mapping file? Thanks, dear SOpedians, in advance for your informed opinions.
0
[ 2, 25, 32, 2715, 14, 2150, 20, 780, 37, 21, 224, 24637, 4148, 2102, 8820, 13305, 3893, 20, 4161, 7060, 5757, 60, 800, 3726, 3726, 31, 22, 195, 330, 21, 2741, 7753, 1196, 501, 1797, 1000, 23, 885, 29, 21, 224, 24637, 4148, 2102, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Configure IIS7 to allow downloading *.exe files === I have a little site inside the corporate network which contains a virtual directory with an exe file inside it. In addition I have an html file with a link to that exe. When I click the link, instead of asking me whether to open or save it just runs the exe. The permissions on that virtual directory are read and script.
0
[ 2, 1065, 15951, 595, 18, 465, 20, 1655, 7121, 68, 1637, 9, 1706, 62, 6488, 800, 3726, 3726, 31, 57, 21, 265, 689, 572, 14, 4871, 982, 56, 1588, 21, 6599, 16755, 29, 40, 1396, 62, 3893, 572, 32, 9, 19, 848, 31, 57, 40, 13, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a Problem with JPA Entities, Oracle 10g and Calendar Type properties? === I'm experiencing the following very annoying behaviour when using JPA entitys in conjunction with Oracle 10g. Suppose you have the following entity. @Entity @Table(name = "T_Order") public class TOrder implements Serializable { private static final long serialVersionUID = 2235742302377173533L; @Id @GeneratedValue(strategy = GenerationType.AUTO) private Integer id; @Column(name = "activationDate") private Calendar activationDate; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Calendar getActivationDate() { return activationDate; } public void setActivationDate(Calendar activationDate) { this.activationDate = activationDate; } } This entity is mapped to Oracle 10g, so in the DB there will be a table T_ORDER with a primary key NUMBER column "ID" and a TIMESTAMP column "activationDate". Lets suppose I create an instance of this class with the activation date "15. Sep 2008 00:00AM". My local timezone is CEST which is GMT+02:00. When I persist this object and select the data from the table T_ORDER using sqlplus, I find out that in the table actually "14. Sep 2008 22:00" is stored, which is ok so far, because the oracle db timezone is GMT. But now the annoying part. When I read this entity back into my JAVA program, I find out that the oracle time zone is ignored and I get "14. Sep 2008 22:00 CEST", which is definitly wrong. So basically, when writing to the DB the timezone information will be used, when reading it will be ignored. Is there any solution for this out there? The most simple solution I guess would be to set the oracle dbs timezone to GMT+02, but unfortunatly I can't do this because there are other applications using the same server. We use the following technology MyEclipse 6.5 JPA with Hibernate 3.2 Oracle 10g thin JDBC Driver
0
[ 2, 25, 80, 21, 1448, 29, 487, 1060, 12549, 15, 15759, 332, 263, 17, 7036, 1001, 3704, 60, 800, 3726, 3726, 31, 22, 79, 15138, 14, 249, 253, 17610, 7727, 76, 568, 487, 1060, 9252, 18, 19, 9558, 29, 15759, 332, 263, 9, 5787, 42, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Testing StarTeam operation === In a Java application I need to checkout files from Borland Starteam 2006 R2 using Starteam API. Is there any framework that helps to write automatic tests for such functionality?
0
[ 2, 4431, 778, 6575, 1453, 800, 3726, 3726, 19, 21, 8247, 3010, 31, 376, 20, 2631, 1320, 6488, 37, 3895, 618, 778, 6575, 592, 761, 135, 568, 778, 6575, 21, 2159, 9, 25, 80, 186, 6596, 30, 7778, 20, 2757, 6715, 4894, 26, 145, 1854...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I use sudo to redirect output to a location I don't have permission to write to? === I've been given sudo access on one of our development RedHat linux boxes, and I seem to find myself quite often needing to redirect output to a location I don't normally have write access to. The trouble is, this contrived example doesn't work: sudo ls -hal /root/ > /root/test.out I just receive the response: -bash: /root/out.txt: Permission denied How can I get this to work?
0
[ 2, 184, 107, 31, 275, 13, 18, 18601, 20, 302, 14706, 5196, 20, 21, 1474, 31, 221, 22, 38, 57, 5572, 20, 2757, 20, 60, 800, 3726, 3726, 31, 22, 195, 74, 504, 13, 18, 18601, 1381, 27, 53, 16, 318, 522, 402, 6775, 13024, 8120, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HTML drag and drop sortable tables === Ever wanted to have an HTML drag and drop sortable table in which you could sort both rows and columns? I know it's something i'd die for. There's a lot of sortable lists going around but finding a sortable table seems to be impossible to find. I know that you can get pretty close with the tools that script.aculo.us provides but i ran into some cross-browser issues with them.
0
[ 2, 13, 15895, 5501, 17, 2804, 2058, 579, 7484, 800, 3726, 3726, 462, 417, 20, 57, 40, 13, 15895, 5501, 17, 2804, 2058, 579, 859, 19, 56, 42, 110, 2058, 156, 11295, 17, 7498, 60, 31, 143, 32, 22, 18, 301, 31, 22, 43, 1327, 26, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
pseudo-streaming of wmv files === Is it possible to do pseudo-streaming(eg start playback at any point) with wmv files and silverlight? This is possible using Flash in a progressive download setup but can it be done on the Microsoft track?
0
[ 2, 8452, 8, 11260, 68, 16, 19312, 710, 6488, 800, 3726, 3726, 25, 32, 938, 20, 107, 8452, 8, 11260, 68, 5, 5431, 799, 21306, 35, 186, 454, 6, 29, 19312, 710, 6488, 17, 1172, 3130, 60, 48, 25, 938, 568, 4433, 19, 21, 5546, 7121...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
Launch Local Mail Client from App Hosted on Citrix === I have a desktop application (Windows Forms) which my client hosts on a Citrix server. I would like to launch the user's locally configured mail client to send mail from my application. How do I do this? In addition to this, I will need to attach a file to the email before it is sent.
0
[ 2, 3394, 375, 4216, 6819, 37, 4865, 2812, 27, 5486, 17224, 800, 3726, 3726, 31, 57, 21, 17404, 3010, 13, 5, 27508, 18, 1997, 6, 56, 51, 6819, 5397, 27, 21, 5486, 17224, 8128, 9, 31, 83, 101, 20, 3394, 14, 4155, 22, 18, 6680, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Tools for command line file parsing in cygwin. === I have to deal with text files in a motley selection of formats. Here's an example (Columns A and B are tab delimited): A B a Name1=Val1, Name2=Val2, Name3=Val3 b Name1=Val4, Name3=Val5 c Name1=Val6, Name2=Val7, Name3=Val8 The files could have headers or not, have mixed delimiting schemes, have columns with name/value pairs as above etc. I often have the ad-hoc need to extract data from such files in various ways. For example from the above data I might want the value associated with Name2 where it is present. i.e. A B a Val2 c Val7 What tools/techniques are there for performing such manipulations as one line commands, using the above as an example but extensible to other cases?
0
[ 2, 4672, 26, 1202, 293, 3893, 2017, 18, 68, 19, 6728, 263, 4181, 9, 800, 3726, 3726, 31, 57, 20, 1183, 29, 1854, 6488, 19, 21, 13, 7662, 631, 3155, 16, 13767, 9, 235, 22, 18, 40, 823, 13, 5, 716, 4404, 2172, 21, 17, 334, 50,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I use the same field type in multiple lists on SharePoint? === I have a SharePoint site with multiple lists, some of which have the same fields - a choice of products or countries. How can I build the lists in a way that I configure the choice field once and use it in multiple lists, so that in the future, if I add a value to the choice, I add it only once?
0
[ 2, 184, 107, 31, 275, 14, 205, 575, 1001, 19, 1886, 7227, 27, 1891, 3132, 60, 800, 3726, 3726, 31, 57, 21, 1891, 3132, 689, 29, 1886, 7227, 15, 109, 16, 56, 57, 14, 205, 2861, 13, 8, 21, 1837, 16, 1985, 54, 1166, 9, 184, 92,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Placing Share Documents subfolder as a webpart in SharePoint === I want to place a Webpart on a page that holds a subfolder of the Document Library in SharePoint, but somehow, the only thing I get is the root folder of the document library. Is there a Webpart that fills this need?
0
[ 2, 5861, 1891, 4374, 972, 8814, 106, 28, 21, 2741, 3091, 19, 1891, 3132, 800, 3726, 3726, 31, 259, 20, 209, 21, 2741, 3091, 27, 21, 2478, 30, 2763, 21, 972, 8814, 106, 16, 14, 4492, 1248, 19, 1891, 3132, 15, 47, 3625, 15, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there any open source library in C++ for 3D chart? === I knew G3D, but it seems to me too much heavy. I want to know some light library which able to generate basic bar or pie charts.
0
[ 2, 25, 80, 186, 368, 1267, 1248, 19, 272, 20512, 26, 203, 43, 1795, 60, 800, 3726, 3726, 31, 404, 489, 240, 43, 15, 47, 32, 2206, 20, 55, 266, 212, 1278, 9, 31, 259, 20, 143, 109, 471, 1248, 56, 777, 20, 7920, 2125, 748, 54,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Is it possible to build a Linux/Motif Eclipse RCP application? === Greetings, I am trying to build an Eclipse application that would work with a linux/motif installation target. However, this seems not to be possible even though the export option is available in the product export wizard. I've checked the content of the delta pack and indeed, the packages for linux/motif are missing. After checking the downloads page for eclipse 3.4 at: http://download.eclipse.org/eclipse/downloads/drops/R-3.4-200806172000/index.php I see that even though there is an Eclipse version marked for Linux/motif, it is marked as ***Testing only***. Additionally, there is no delta pack for this target. Has anyone been successful building an RCP application targeting linux/motif? Would it work if I download this testing only version of eclipse and copy the missing plugins? Thanks,
0
[ 2, 25, 32, 938, 20, 1895, 21, 13024, 118, 7662, 821, 11652, 761, 7439, 3010, 60, 800, 3726, 3726, 13769, 18, 15, 31, 589, 749, 20, 1895, 40, 11652, 3010, 30, 83, 170, 29, 21, 13024, 118, 7662, 821, 7758, 2935, 9, 207, 15, 48, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Hunting for the principles of programming, what programming language next? === Ok, where do I go now? I have studied 1. C, C++, C# 2. Lisp 3. Prolog 4. Forth What programming language can help me find the core principles of the lost art, hacking.
0
[ 2, 5038, 26, 14, 5624, 16, 3143, 15, 98, 3143, 816, 328, 60, 800, 3726, 3726, 5854, 15, 113, 107, 31, 162, 130, 60, 31, 57, 1449, 137, 9, 272, 15, 272, 20512, 15, 272, 5910, 172, 9, 2093, 3401, 203, 9, 895, 5567, 268, 9, 588...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I determine the length of a .wav file in C#? === In the uncompressed situation I know I need to read the wav header, pull out the number of channels, bits, and sample rate and work it out from there: (channels) * (bits) * (samples/s) * (seconds) = (filesize) Is there a simpler way - a free library, or something in the .net framework perhaps? How would I do this if the .wav file is compressed (with the mpeg codec for example)?
0
[ 2, 184, 92, 31, 3746, 14, 1476, 16, 21, 13, 9, 1608, 710, 3893, 19, 272, 5910, 60, 800, 3726, 3726, 19, 14, 367, 960, 5890, 69, 1858, 31, 143, 31, 376, 20, 1302, 14, 3142, 710, 157, 106, 15, 2201, 70, 14, 234, 16, 6328, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Set Grid Column MaxWidth depending on Window or Screen Size in XAML === I guess the title says it all. I have a 3 column grid in a window with a GridSplitter on the first column. I want to set the MaxWidth of the first column to a third of the parent Window or Page Width (or ActualWidth) and I would prefer to do this in XAML if possible. This is some sample XAML to play with in XamlPad (or similar) which shows what I'm doing. <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <Grid> <Grid.ColumnDefinitions> <ColumnDefinition x:Name="Column1" Width="200"/> <ColumnDefinition x:Name="Column2" MinWidth="50" /> <ColumnDefinition x:Name="Column3" Width="{ Binding ElementName=Column1, Path=Width }"/> </Grid.ColumnDefinitions> <Label Grid.Column="0" Background="Green" /> <GridSplitter Grid.Column="0" Width="5" /> <Label Grid.Column="1" Background="Yellow" /> <Label Grid.Column="2" Background="Red" /> </Grid> </Page> As you can see, the right column width is bound to the width of the first column, so when you slide the left column using the splitter, the right column does the same :) If you slide the left column to the right, eventually it will slide over half the page/window and over to the right side of the window, pushing away column 2 and 3. I want to prevent this by setting the MaxWidth of column 1 to a third of the window width (or something like that). I can do this in code behind quite easily, but how to do it in "XAML Only"?
0
[ 2, 184, 20, 309, 7354, 4698, 2049, 3976, 43, 96, 4758, 27, 1463, 54, 2324, 1072, 19, 13, 6791, 8184, 800, 3726, 3726, 31, 2321, 14, 581, 898, 32, 65, 9, 31, 57, 21, 203, 4698, 7354, 19, 21, 1463, 29, 21, 7354, 25603, 815, 27, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using CreateItemFromTemplate to process an olEmbeddeditem Outlook attachment === I am using C# to process a message in my Outlook inbox that contains attachments. One of the attachments is of type olEmbeddeditem. I need to be able to process the contents of that attachment. From what I can tell I need to save the attachment to disk and use CreateItemFromTemplate which would return an object. The issue I have is that an olEmbeddeditem can be any of the Outlook object types MailItem, ContactItem, MeetingItem, etc. How do you know which object type a particular olEmbeddeditem attachment is going to be so that you know the object that will be returned by CreateItemFromTemplate? Alternatively, if there is a better way to get olEmbeddeditem attachment contents into an object for processing I'd be open to that too.
0
[ 2, 568, 1600, 2119, 79, 2665, 9577, 6554, 20, 953, 40, 12116, 79, 4283, 7424, 2119, 79, 19837, 14575, 800, 3726, 3726, 31, 589, 568, 272, 5910, 20, 953, 21, 2802, 19, 51, 19837, 19, 5309, 30, 1588, 14575, 18, 9, 53, 16, 14, 1457...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to specify a different session store with Tomcat? === Tomcat (version 5 here) stores session information in memory. When clustering this information is periodically broadcast to other servers in the cluster to keep things in sync. You can use a database store to make sessions persistant but this information is only written periodically as well and is only really used for failure-recovery rather than actually replacing the in-memory sessions. If you don't want to use sticky sessions (our configuration doesn't allow it unfortunately) this raises the problem of the sessions getting out of sync. In other languages, web frameworks tend to allow you to use a database as the primary session store. Whilst this introduces a potential scaling issue it does make session management very straightforward. I'm wondering if there's a way to get tomcat to use a database for sessions in this way (technically this would also remove the need for any clustering configuration in the tomcat server.xml).
0
[ 2, 25, 80, 21, 161, 20, 19077, 21, 421, 3723, 1718, 29, 2067, 5782, 60, 800, 3726, 3726, 2067, 5782, 13, 5, 10898, 331, 235, 6, 4134, 3723, 676, 19, 1912, 9, 76, 7460, 68, 48, 676, 25, 19886, 1992, 20, 89, 17595, 19, 14, 7460,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Charting in web-based applications === What are the various charting tools that are available for displaying charts on a web page using ASP.NET? I know about commercial tools such as Dundas and Infragistics. I could have "googled" this but I want to know the various tools that SO participants have used? Any free charting tools that are available are also welcome to be mentioned.
0
[ 2, 22544, 19, 2741, 8, 1281, 3767, 800, 3726, 3726, 98, 50, 14, 617, 22544, 4672, 30, 50, 904, 26, 17418, 5158, 27, 21, 2741, 2478, 568, 28, 306, 9, 2328, 60, 31, 143, 88, 1439, 4672, 145, 28, 29320, 17, 19, 22133, 3771, 18, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...