unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
newline character(s) === Does your software handle newline characters from other systems? Linux/BSD linefeed ^J 10 x0A Windows/IBM return linefeed ^M^J 13 10 x0D x0A old Macs return ^M 13 x0D others? For reasons of insanity, I am going with using the Linux version of the newline character in my text files. But, when I bring my text files over to say Windows, some programs do not play nicely with newline characters in my text. How would you deal with this?
0
[ 2, 78, 1143, 925, 5, 18, 6, 800, 3726, 3726, 630, 154, 2306, 3053, 78, 1143, 1766, 37, 89, 1242, 60, 13024, 118, 4562, 43, 293, 20954, 13, 1, 728, 332, 993, 387, 58, 1936, 118, 4598, 79, 788, 293, 20954, 13, 1, 79, 1, 728, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Moving WCF service from IIS to a Windows service === We have an existing WCF service that makes use of wsDualHttpBinding to enable callbacks to the client. I am considering moving it to netTcpBinding for better performance, but I'm quite wary of moving away from the IIS-hosted service (a "comfort zone" we currently enjoy) into having our own Windows service to host it. I was hoping we could still host this on IIS 7 but Win2K8 won't be reality for us for some time. What things should I watch out for when creating our own Windows service to host our WCF service? Things like lifetime management and request throttling are features that come free with IIS hosting so I'd also like to know how we can effectively host our service on our own without the convenience of having IIS do the hard work for us. Thanks! :)
0
[ 2, 1219, 11801, 410, 365, 37, 595, 18, 20, 21, 1936, 365, 800, 3726, 3726, 95, 57, 40, 3149, 11801, 410, 365, 30, 1364, 275, 16, 619, 18, 43, 6948, 21127, 22260, 20, 9240, 645, 1958, 18, 20, 14, 6819, 9, 31, 589, 5154, 1219, 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...
Determining whether an object is a member of a collection in VBA === How do I determine whether an object a member of a collection in VBA. Specifically, I need to find out whether a table definition is a member of the TableDefs collection.
0
[ 2, 13521, 1472, 40, 3095, 25, 21, 322, 16, 21, 1206, 19, 566, 969, 800, 3726, 3726, 184, 107, 31, 3746, 1472, 40, 3095, 21, 322, 16, 21, 1206, 19, 566, 969, 9, 3524, 15, 31, 376, 20, 477, 70, 1472, 21, 859, 5465, 25, 21, 322...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Using "final" modifier whenever applicable in java === In Java, there is a practice of declaring every variable (local or class), parameter final if they really are. Though this makes the code a lot more verbose, this helps in easy reading/grasping of the code and also prevents mistakes as the intention is clearly marked. What are your thoughts on this and what do you follow?
0
[ 2, 568, 13, 7, 4932, 7, 7226, 16292, 6634, 14535, 19, 8247, 800, 3726, 3726, 19, 8247, 15, 80, 25, 21, 1345, 16, 15594, 352, 7612, 13, 5, 15580, 54, 718, 6, 15, 18906, 426, 100, 59, 510, 50, 9, 362, 48, 1364, 14, 1797, 21, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to change directory security attributes using InstallShield? === I'd like to change the security attribute of a directory that InstallShield creates under the `CSIDL_COMMON_APPDATA` - can someone please advise on how to do that during the installation process? Thank you.
0
[ 2, 184, 20, 753, 16755, 1221, 13422, 568, 16146, 29026, 60, 800, 3726, 3726, 31, 22, 43, 101, 20, 753, 14, 1221, 35, 14755, 16, 21, 16755, 30, 16146, 29026, 9695, 131, 14, 13, 1, 16166, 8643, 1, 17130, 1, 7753, 18768, 1, 13, 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, 1, 1, 1, 1, 1, 1, 1, 1, 0...
Can JQuery.Validate plugin prevent submission of an Ajax form === I am using the JQuery form plugin ([http://malsup.com/jquery/form/][1]) to handle the ajax submission of a form. I also have JQuery.Validate ([http://docs.jquery.com/Plugins/Validation][2]) plugged in for my client side validation. What I am seeing is that the validation fails when I expect it to however it does not stop the form from submitting. When I was using a traditional form (i.e. non-ajax) the validation failing prevented the form for submitting at all.... which is my desired behaviour. I know that the validation is hooked up correctly as the validation messages still appear after the ajax submit has happened. So what I am I missing that is preventing my desired behaviour? Sample code below.... <form id="searchForm" method="post" action="/User/GetDetails"> <input id="username" name="username" type="text" value="user.name" /> <input id="submit" name="submit" type="submit" value="Search" /> </form> <div id="detailsView"> </div> <script type="text/javascript"> var options = { target: '#detailsView' }; $('#searchForm').ajaxForm(options); $("form").validate({ rules: { username: {required:true}}, messages: { username: {required:"Username is a required field."}} }); </script> [1]: http://malsup.com/jquery/form/ [2]: http://docs.jquery.com/Plugins/Validation
0
[ 2, 92, 487, 8190, 93, 9, 18506, 8209, 10922, 108, 2501, 10923, 16, 40, 20624, 505, 800, 3726, 3726, 31, 589, 568, 14, 487, 8190, 93, 505, 10922, 108, 13, 5, 2558, 21127, 6903, 3482, 18, 576, 9, 960, 118, 728, 8190, 93, 118, 4190...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 you automate Firefox from C# application? === Start with the simplest task of capturing the URL in Firefox from a C# application. It appears using user32.dll Windows API functions will not work as is the approach for capturing the URL within IE.
0
[ 2, 184, 92, 42, 3108, 5281, 535, 18219, 37, 272, 5910, 3010, 60, 800, 3726, 3726, 799, 29, 14, 24384, 3005, 16, 12859, 14, 287, 6362, 19, 535, 18219, 37, 21, 272, 5910, 3010, 9, 32, 1780, 568, 4155, 3125, 9, 43, 211, 1936, 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...
C# Mono - Low Level Keyboard Hook === I'm using code that I found on the [CodeProject.com for a low-level keyboard hook][1]. The only problem is it uses external DLL calls that don't work in mono. I was wondering if anyone knew of a way to accomplish the same thing as that code, but will run in both Windows using .net, and Linux using mono? [1]: http://www.codeproject.com/KB/cs/CSLLKeyboardHook.aspx
0
[ 2, 272, 5910, 4129, 13, 8, 708, 662, 8896, 5559, 800, 3726, 3726, 31, 22, 79, 568, 1797, 30, 31, 216, 27, 14, 636, 9375, 21011, 9, 960, 26, 21, 708, 8, 3906, 8896, 5559, 500, 2558, 165, 500, 9, 14, 104, 1448, 25, 32, 2027, 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...
Should I publish a File Format or an API? === I'm contemplating an application that is, at a glance, a "free form" database. A collection of notes and artifacts. However, at the same time there are some higher level structures within the system. My 10 second back-of-napkin design entails storing individual "entries" in small files (perhaps XML), organized in directories, and then indexing the entire set using something like Lucene. The premise behind it is that it will be trivial for folks to "interface" with the system, since they need to merely "put files in to the right places". And since they're simple text files, they can be generated by any program (such as scripting languages), and, if necessary, even a text editor. The detail is maintaining the index, and any other possible relationships. In theory, on startup, the program could scan the directory for changed files and update the index. It could even do this in the background. I don't anticipate this being a horribly long process, as I don't anticipate having 1000's of entries. But it could always be an option to have the system scan only when instructed if the size gets too large. Or I could require that some special file is updated with "new files" or somesuch thing that the system can check on start. The alternative, is to use some other format rather than individual file. Use a database of some kind, they're a dime a dozen. But by doing that, all of a sudden this data is effectively "opaque" to a casual user. This makes scripting and such potentially more difficult. Now, I could use something like, say, SQLLite which has broad support, and publish a database schema. Or I was thinking I could create a service layer in the application. If I write it in Java, I could publish a Java API that a tool could use, but only if it too was written in Java. Or I could expose the API as, say, lightweight Web Services (POX over HTTP, or REST over HTTP). HTTP support is far and wide today. That would require that the application be running in order to use any utility. As with everything, it's a balance. I think the File solution is simpler, potentially less efficient, but perhaps limiting in the internal complexity. The API can be much more powerful, but is harder to use, and certainly not useful for a casual user. How do you think you might approach this kind of problem?
0
[ 2, 378, 31, 10824, 21, 3893, 2595, 54, 40, 21, 2159, 60, 800, 3726, 3726, 31, 22, 79, 27412, 40, 3010, 30, 25, 15, 35, 21, 4828, 15, 21, 13, 7, 4639, 505, 7, 6018, 9, 21, 1206, 16, 2434, 17, 10996, 9, 207, 15, 35, 14, 205,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 best way to add tags to the head in Plone? === I want to add the link tags to redirect my web-site to my OpenID provider. These tags should go in the head element. What's the best way to add them in Plone?
0
[ 2, 98, 22, 18, 14, 246, 161, 20, 3547, 3383, 18, 20, 14, 157, 19, 351, 16285, 60, 800, 3726, 3726, 31, 259, 20, 3547, 14, 3508, 3383, 18, 20, 302, 14706, 51, 2741, 8, 9097, 20, 51, 368, 1340, 11747, 9, 158, 3383, 18, 378, 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...
What is your single most effective interview question? === What single question, more than any other, enables you to sort the wheat from the chaff when interviewing developers?
4
[ 2, 98, 25, 154, 345, 127, 3140, 2421, 1301, 60, 800, 3726, 3726, 98, 345, 1301, 15, 91, 119, 186, 89, 15, 14645, 42, 20, 2058, 14, 8072, 37, 14, 2438, 2460, 76, 2421, 68, 10168, 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, 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...
Is Firebug on Firefox 3 stable yet? === I really should upgrade to Firefox 3, but I'm very dependent on Firebug working properly. I know there is a version of Firebug that is supposed to work with Firefox 3, but last time I looked, there seemed to be problems with it. So, for those that have made the jump, is Firebug on Firefox 3 ready for prime time?
0
[ 2, 25, 535, 16254, 27, 535, 18219, 203, 4521, 768, 60, 800, 3726, 3726, 31, 510, 378, 9483, 20, 535, 18219, 203, 15, 47, 31, 22, 79, 253, 9063, 27, 535, 16254, 638, 7428, 9, 31, 143, 80, 25, 21, 615, 16, 535, 16254, 30, 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...
What is the best scripting language to embed in a C# desktop application. === We are writing a complex rich desktop application and need to offer flexibility in reporting formats so we thought we would just expose our object model to a scripting langauge. Time was when that meant VBA (which is still an option), but the managed code derivative VSTA (I think) seems to have withered on the vine. What is now the best choice for an embedded scripting language on Windows .NET?
0
[ 2, 98, 25, 14, 246, 3884, 68, 816, 20, 11911, 69, 19, 21, 272, 5910, 17404, 3010, 9, 800, 3726, 3726, 95, 50, 1174, 21, 1502, 2042, 17404, 3010, 17, 376, 20, 1994, 19401, 19, 6670, 13767, 86, 95, 289, 95, 83, 114, 13833, 318, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 jump to an occurrence from Vim search list === In Vim editor I opted ]I on a function (in C++ code). This presented a list, which says 'Press ENTER or type command to continue'. Now to jump to an occurrence say 6, I type 6 - but this is not working. What commands can I type in such case, and how do I jump to N occurrence from this list?
0
[ 2, 184, 20, 3936, 20, 40, 12933, 37, 1790, 79, 2122, 968, 800, 3726, 3726, 19, 1790, 79, 1835, 31, 13920, 13, 500, 49, 27, 21, 1990, 13, 5, 108, 272, 20512, 1797, 6, 9, 48, 1831, 21, 968, 15, 56, 898, 13, 22, 5890, 2830, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How does cherrypy handle user threads? === I'm working on a django app right and I'm using cherrypy as the server. Cherrypy creates a new thread for every page view. I'd like to be able to access all of these threads (threads responsible for talking to django) from within any of them. More specifically I'd like to be able to access the thread_data for each of these threads from within any of them. Is this possible? If so, how do I do it?
0
[ 2, 184, 630, 9257, 6448, 3053, 4155, 20396, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 3857, 14541, 4865, 193, 17, 31, 22, 79, 568, 9257, 6448, 28, 14, 8128, 9, 9257, 6448, 9695, 21, 78, 9322, 26, 352, 2478, 1418, 9, 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...
Vim Markdown highlighting (list items and code block conflicts) === I decide to learn more about vim and its syntax highlighting. Using examples for others, I am creating my own syntax file for Markdown. I have seen [mkd.vim](http://www.vim.org/scripts/script.php?script_id=1242) and it has this problem too. My issue is between list items and code block highlighting. Code Block [definition](http://daringfireball.net/projects/markdown/syntax#precode): - first line is blank - second line begins with at least 4 spaces or 1 tab - block is finished with a blank line Example: Regular text this is code, monospaced and left untouched by markdown another line of code Regular Text My Vim syntax for code block: syn match mkdCodeBlock /\(\s\{4,}\|\t\{1,}\).*\n/ contained nextgroup=mkdCodeBlock hi link mkdCodeBlock comment Unorder List item [definition](http://daringfireball.net/projects/markdown/syntax#list): - first line is blank - second line begins with a [-+*] followed by a space - the list is finished with a blank line then a normal (non-list) line - in between line items any number of blank lines can be added - a sub list is specified by indenting (4 space or 1 tab) - a line of normal text after a list item is include as a continuation of that list item Example: Regular text - item 1 - sub item 1 - sub item 2 - item 2 this is part of item 2 so is this - item 3, still in the same list - sub item 1 - sub item 2 Regular text, list ends above My Vim syntax for unorder list item definition (I only highlight `[-+*]`): syn region mkdListItem start=/\s*[-*+]\s\+/ matchgroup=pdcListText end=".*" contained nextgroup=mkdListItem,mkdListSkipNL contains=@Spell skipnl syn match mkdListSkipNL /\s*\n/ contained nextgroup=mkdListItem,mkdListSkipNL skipnl hi link mkdListItem operator I cannot get the highlighting to work with the last two rule for list and with a code block. This is an example that breaks my syntax highlighting: Regular text - Item 1 - Item 2 part of item 2 - these 2 line should be highlighted as a list item - but they are highlighted as a code block I currently cannot figure out how to get the highlighting to work the way I want it too
0
[ 2, 1790, 79, 943, 2968, 23102, 13, 5, 5739, 3755, 17, 1797, 1921, 10344, 6, 800, 3726, 3726, 31, 4073, 20, 2484, 91, 88, 1790, 79, 17, 82, 22649, 23102, 9, 568, 3770, 26, 654, 15, 31, 589, 2936, 51, 258, 22649, 3893, 26, 943, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Hudson job hangs at Runtime.exec === I'm running Hudson as a windows service through Tomcat, with no slaves involved. The last build step in the job is a batch file that invokes some Java code. The code uses PostgreSQL's command line tool psql (via Runtime.exec()) to create a database on the local machine and eventually run some tests against it. The job will progress to this point, then hang indefinitely without starting to create the database. If I run the batch file from the command line, it works perfectly. I don't think <http://hudson.gotdns.com/wiki/display/HUDSON/Spawning+processes+from+build> applies, since the process spawned doesn't even seem to begin executing, but I'm new to this so please let me know if I'm wrong.
0
[ 2, 6195, 1205, 4546, 18, 35, 485, 891, 9, 1706, 3319, 800, 3726, 3726, 31, 22, 79, 946, 6195, 28, 21, 1936, 365, 120, 2067, 5782, 15, 29, 90, 6476, 1013, 9, 14, 236, 1895, 1424, 19, 14, 1205, 25, 21, 13064, 3893, 30, 28371, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is so bad about Singletons === The Singleton pattern is a fully paid up member of the [GoF Patterns Book][1] but lately seems rather orphaned by the developer world. I still use quite a lot of singletons, especially for Factory classes, and while you have to be a bit careful about multithreading issues (like any class actually) fail to see why they are so awful. This site especially seems to assume that everyone agrees that Singletons are evil. Why? [1]: http://www.amazon.com/Design-Patterns-Object-Oriented-Addison-Wesley-Professional/dp/0201633612
0
[ 2, 98, 25, 86, 896, 88, 345, 444, 18, 800, 3726, 3726, 14, 345, 444, 3732, 25, 21, 2337, 2192, 71, 322, 16, 14, 636, 263, 1041, 6282, 360, 500, 2558, 165, 500, 47, 10434, 2206, 864, 11728, 69, 34, 14, 10058, 126, 9, 31, 174, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Q's on pgsql === im newbie for pgsql.... I have few q's on it.. 1) as I know it is possible to access column by <schema>.<table_name>, but when I try to access column like <db_name>.<schema>.<table_name> is throwing error like "***cross-database references are not implemented***" ? how to implement it...!!!??? 2) we have 10+ tables and 6 of have rows 2000+.... is it fine maintain all of them into one <db> ??? OR create dbs to maintain them....!!! 3) from above q's tables which have rows 2000+, for particular process I need few rows of data... I have created VIEWs to get those rows.... example table contain details of employee, they divide into 3 part manager, architect, engineer... very obvious thing this table not getting each every process... process use to read data from it... I think there are two ways to get data SELECT * FROM emp WHERE type='manager' OR create VIEWs for manager, architect n engineer and get data SELECT * FROM view_manager Well u can suggest me if there is any other better approach to do this...??? 4) DO VIEWs ALSO HOLDS SPACE IN DB LIKE TABLE ??? Thanx in advance.... (" ,)
0
[ 2, 2593, 22, 18, 27, 13, 9623, 18, 22402, 800, 3726, 3726, 797, 78, 5893, 26, 13, 9623, 18, 22402, 9, 9, 9, 9, 31, 57, 310, 2593, 22, 18, 27, 32, 9, 9, 137, 6, 28, 31, 143, 32, 25, 938, 20, 1381, 4698, 34, 13, 1, 7526, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 make XMLHttpRequest work over HTTPS on Firefox? === When I try to send an HTTP GET request through XMLHttpRequest it works on non-secure HTTP. But when sent over HTTPS, different browsers gave different results: On Firefox 3.0.2: - The GET request doesn't reach the web server. On IE 7: - The GET request reached the web server. Does this have something to do with Firefox 3 getting stricter with untrusted certificates? Is there a way around this? I've already added the URL as an exception in Firefox's Certificate Manager. Thanks, Kenneth
0
[ 2, 184, 20, 233, 23504, 21127, 99, 10351, 170, 84, 7775, 18, 27, 535, 18219, 60, 800, 3726, 3726, 76, 31, 1131, 20, 2660, 40, 7775, 164, 3772, 120, 23504, 21127, 99, 10351, 32, 693, 27, 538, 8, 22917, 7775, 9, 47, 76, 795, 84, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Do you know update site addresses for *latest* eclipse (3.5) components ? === I am looking for all addresses related to: - 3.5 eclipse itself (milestones and/or integration builds) - 3.5 other components (GEF, GMF, EMF, ...) In the spirit of [answering my own question][1], I do have an [answer for 3.5 eclipse itself, with some details and **caveats**][2]. However, If you have further addresses, either for eclipse or other eclipse components, please publish them here. [1]: http://stackoverflow.com/questions/18557/how-does-stackoverflow-work-the-unofficial-faq#119658 [2]: http://stackoverflow.com/questions/138004/do-you-know-update-site-addresses-for-latest-eclipse-35-components#138013
0
[ 2, 107, 42, 143, 11100, 689, 12636, 26, 1637, 6554, 384, 2483, 11652, 13, 5, 240, 9, 264, 6, 5090, 13, 60, 800, 3726, 3726, 31, 589, 699, 26, 65, 12636, 1597, 20, 45, 13, 8, 203, 9, 264, 11652, 1145, 13, 5, 5635, 2426, 18, 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...
Is the best approach a typed or not typed view in ASP.NET MVC? === In ASP.NET MVC it's possible to choice between having a typed view were you define in the codebehind what kind of data the view can should expect. But it's also possible to not define this and just pass any kind of data to view in a ViewData container. What would the best model here or should I mix depending on what kind of data we're talking about (maybe just make sure to have data that's critical to the functionality of the view typed and other data not typed?)? I don't really understand why there is a option here ...
0
[ 2, 25, 14, 246, 2141, 21, 1001, 43, 54, 52, 1001, 43, 1418, 19, 28, 306, 9, 2328, 307, 8990, 60, 800, 3726, 3726, 19, 28, 306, 9, 2328, 307, 8990, 32, 22, 18, 938, 20, 1837, 128, 452, 21, 1001, 43, 1418, 46, 42, 9267, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 possible to call a COM API from Java? === Is it possible to call a COM API from Java (specifically the HP/Mercury Quality Center OTA API)? If so, what's the best way? Is something like JACOB appropriate? Code fragments would be helpful for the basics :-)
0
[ 2, 25, 32, 938, 20, 645, 21, 13, 960, 21, 2159, 37, 8247, 60, 800, 3726, 3726, 25, 32, 938, 20, 645, 21, 13, 960, 21, 2159, 37, 8247, 13, 5, 9219, 1326, 14, 5301, 118, 1263, 4734, 93, 2190, 459, 13, 7060, 21, 2159, 6, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Get Bound Event Handler in Tkinter === After a bind a method to an event of a Tkinter element is there a way to get the method back? >>> root = Tkinter.Tk() >>> frame = Tkinter.Frame(root, width=100, height=100) >>> frame.bind('<Button-1>', lambda e: print 'Click') >>> frame.pack() >>> bound_event_method = frame.???
0
[ 2, 164, 4138, 807, 24641, 19, 13, 38, 1767, 815, 800, 3726, 3726, 75, 21, 10193, 21, 2109, 20, 40, 807, 16, 21, 13, 38, 1767, 815, 4520, 25, 80, 21, 161, 20, 164, 14, 2109, 97, 60, 13, 1, 5900, 800, 13, 38, 1767, 815, 9, 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...
Find the next TCP port in .Net === I want to create a new net.tcp://localhost:x/Service endpoint for a WCF service call, with a dynamically assigned new open tcp port. I know that TcpClient will assign a new client side port when I open a connection to a given server. Is there a simple way to find the next open TCP port in .Net?
0
[ 2, 477, 14, 328, 13, 38, 7439, 1295, 19, 13, 9, 2328, 800, 3726, 3726, 31, 259, 20, 1600, 21, 78, 4275, 9, 38, 7439, 6903, 15580, 11694, 45, 396, 118, 11449, 241, 3132, 26, 21, 11801, 410, 365, 645, 15, 29, 21, 7782, 1326, 246...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 something like Python's getattr() in C#? === Is there something like [Python's getattr()][1] in C#? I would like to create a window by reading a list which contains the names of controls to put on the window. [1]: http://effbot.org/zone/python-getattr.htm
0
[ 2, 25, 80, 301, 101, 20059, 22, 18, 164, 10303, 139, 5, 6, 19, 272, 5910, 60, 800, 3726, 3726, 25, 80, 301, 101, 636, 6448, 11570, 22, 18, 164, 10303, 139, 5, 6, 500, 2558, 165, 500, 19, 272, 5910, 60, 31, 83, 101, 20, 1600,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
When editing Lisp code, can emacs be configured to display each nested level of parentheses in a different color? === In other words, a block of code like this: (setq initial-major-mode (lambda () (text-mode) (font-lock-mode) )) ... would come out looking like something like this: ![alt text][1] If something like this already exists, what is it? And if it doesn't exist, how should I go about writing it? [1]: http://spothopping.com/img/emacs-example.gif
0
[ 2, 76, 9510, 2093, 3401, 1797, 15, 92, 13, 62, 6893, 18, 44, 28895, 20, 3042, 206, 5618, 69, 662, 16, 28273, 19, 21, 421, 1665, 60, 800, 3726, 3726, 19, 89, 715, 15, 21, 1921, 16, 1797, 101, 48, 45, 13, 5, 3554, 1251, 2104, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Detecting file being reopened in Java === I'm working on a small Java application (Java 1.6, Solaris) that will use multiple background threads to monitor a series of text files for output lines that match a particular regex pattern and then make use of those lines. I have one thread per file; they write the lines of interest into a queue and another background thread simply monitors the queue to collect all the lines of interest across the whole collection of files being monitored. One problem I have is when one of the files I'm monitoring is reopened. Many of the applications that create the files I'm monitoring will simply restart their logfile when they are restarted; they don't append to what's already there. I need my Java application to detect that the file has been reopened and restart following the file. How can I best do this?
0
[ 2, 9092, 68, 3893, 142, 12713, 19, 8247, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 284, 8247, 3010, 13, 5, 1004, 1385, 137, 9, 379, 15, 4535, 403, 6, 30, 129, 275, 1886, 2395, 20396, 20, 7626, 21, 231, 16, 1854, 6488, 26, 5196...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
TFS Build Server drop location error === We're using TFS Build Server to ensure that all files checked in by developers are going to compile to a working source tree, cuz there's nothing worse than a broken build! Anyway we've having some problems with the drop location that Build Server wants to use, we keep getting this error: > TFS209011: Could not create drop location \\build-server\drops\project\BuildNumber. No more connections can be mades to this remote computer at this time because there are already as many connections as the computer can accept Since this is being used in a pilot program at the moment we only have 2 projects which are using the Build Server. I've checked the network share and the allowed number of connections is about 100 so I don't really get what the problem is. Only occationally does the problem raise it's head, quite often we'll not have one for days, and then we'll have a bunch in a row. I can't seem to find much info on this either.
0
[ 2, 13, 11720, 18, 1895, 8128, 2804, 1474, 7019, 800, 3726, 3726, 95, 22, 99, 568, 13, 11720, 18, 1895, 8128, 20, 4062, 30, 65, 6488, 6505, 19, 34, 10168, 50, 228, 20, 26561, 20, 21, 638, 1267, 1541, 15, 3141, 380, 80, 22, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Catching exceptions within .aspx and .ascx pages === The questions says everything, take this example code: <ul id="css-id"> <li> <something:CustomControl ID="SomeThingElse" runat="server" /> <something:OtherCustomControl runat="server" /> </li> </ul> Now if an error gets thrown somewhere inside these controlls (that are located in a master page) they will take down the entire site, how would one catch these exceptions?
0
[ 2, 9436, 13392, 363, 13, 9, 472, 306, 396, 17, 13, 9, 472, 150, 396, 4434, 800, 3726, 3726, 14, 2346, 898, 796, 15, 247, 48, 823, 1797, 45, 13, 1, 1287, 4924, 3726, 7, 6824, 18, 8, 1340, 7, 1, 13, 1, 1210, 1, 13, 1, 9099, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 protect application against duplication of a virtual machine. === We are using standard items such as Hard Disk and CPU ID to lock our software licenses to physical hardware. How can we reduce the risk of customers installing onto a virtual machine and then cloning the virtual machine, bypassing our licensing?
0
[ 2, 184, 20, 2196, 3010, 149, 1052, 20669, 16, 21, 6599, 1940, 9, 800, 3726, 3726, 95, 50, 568, 1236, 3755, 145, 28, 552, 8582, 17, 17578, 4924, 20, 3991, 318, 2306, 3962, 18, 20, 1825, 7610, 9, 184, 92, 95, 4136, 14, 2029, 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...
How to add a Page to Frame using code in WPF === I have a Window where I have put a Frame. I would like to add a Page to the Frame when I click a button that is also on the Window but not in the Frame. There are several buttons in the Window and each click on a button should load a different Page in the Frame. Since I'm a total newbie on this WPF stuff it's quite possible that this approach is not the best and I have thought about replacing the Frame with a Canvas and then make UserControls instead of Pages that will be added to the Canvas. I welcome any ideas and suggestions on how to best solve this. I aiming for a functionality that is similar to the application Billy Hollis demonstrated in dnrtv episode 115. (<http://dnrtv.com/default.aspx?showID=115>).
0
[ 2, 184, 20, 3547, 21, 2478, 20, 3523, 568, 1797, 19, 619, 7721, 800, 3726, 3726, 31, 57, 21, 1463, 113, 31, 57, 442, 21, 3523, 9, 31, 83, 101, 20, 3547, 21, 2478, 20, 14, 3523, 76, 31, 10840, 21, 5167, 30, 25, 67, 27, 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...
How do I find my PID in Java or JRuby on Linux? === I need to find the PID of the current running process on a Linux platform (it can be a system dependent solution). Java does not support getting the process ID, and JRuby currently has a bug with the Ruby method, Process.pid. Is there another way to obtain the PID?
0
[ 2, 184, 107, 31, 477, 51, 13, 11031, 19, 8247, 54, 2000, 291, 779, 27, 13024, 60, 800, 3726, 3726, 31, 376, 20, 477, 14, 13, 11031, 16, 14, 866, 946, 953, 27, 21, 13024, 2452, 13, 5, 242, 92, 44, 21, 329, 9063, 4295, 6, 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...
How do I add a type to GWT's Serialization Policy whitelist? === GWT's serializer has limited java.io.Serializable support, but for security reasons there is a whitelist of types it supports. The documentation I've found, for example <a href="http://code.google.com/support/bin/answer.py?hl=en&answer=78126">this FAQ entry</a>, says that any types you want to serialize "must be included" on the whitelist, and that the list is generated at compile time, but doesn't explain how the compiler decides what goes on the whitelist. How can I add a type to the list?
0
[ 2, 184, 107, 31, 3547, 21, 1001, 20, 14094, 38, 22, 18, 5956, 1829, 1486, 359, 5739, 60, 800, 3726, 3726, 14094, 38, 22, 18, 5956, 11907, 63, 1317, 8247, 9, 1963, 9, 4104, 2815, 3186, 579, 555, 15, 47, 26, 1221, 2932, 80, 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...
Delphi Pop Up menu visibilty === Is there a way in Delphi 7 to find out if a pop-up menu is visible (shown on the screen) or not, since it lacks a Visible property.
0
[ 2, 23030, 1675, 71, 11379, 9060, 49, 9168, 1084, 800, 3726, 3726, 25, 80, 21, 161, 19, 23030, 453, 20, 477, 70, 100, 21, 1675, 8, 576, 11379, 25, 4560, 13, 5, 9303, 103, 27, 14, 2324, 6, 54, 52, 15, 179, 32, 1792, 18, 21, 45...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Who to create a very big bitmap in C++/MFC / GDI === I'd like to be able to create a large (say 20,000 x 20,000) pixel bitmap in a C++ MFC application, using a CDC derived class to write to the bitmap. I've tried using memory DCs as described in the MSDN docs, but these appear to be restricted to sizes compatible with the current display driver. I'm currently using a bitmap print driver to do the job, but it is extremely slow and uses very large amounts of intermediate storage due to spooling GDI information. The solution I'm looking for should not involve metafiles or spooling, as the model that I am drawing takes many millions of GDI calls to render. I could use a divide and conquer approach via multiple memory DCs, but it seems like a pretty cumborsome and inelegant technique. any thoughts?
0
[ 2, 72, 20, 1600, 21, 253, 580, 1142, 15022, 19, 272, 20512, 118, 79, 7061, 13, 118, 489, 1115, 800, 3726, 3726, 31, 22, 43, 101, 20, 44, 777, 20, 1600, 21, 370, 13, 5, 6366, 11047, 993, 11047, 6, 18146, 1142, 15022, 19, 21, 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...
BUILTIN\Administrators removed - how to undo it === SQL Server 2000 Standard, Windows 2003<br> My coworker removed 'BUILTIN\Administrators' group from SQL Server which results in 'SQL Server Agent' not working. All my TSQLs to synchronize databases stopped working. <br> <br> I have Administrator rights on the server and my database user is in sysadmin role. <br> <br> Does any one have idea how to bring 'BUILTIN\Administrators' back without restoring master database from backup?
0
[ 2, 392, 108, 1, 1283, 6840, 19129, 1224, 1974, 13, 8, 184, 20, 367, 537, 32, 800, 3726, 3726, 4444, 255, 8128, 824, 1236, 15, 1936, 973, 1, 5145, 1, 51, 326, 22560, 1974, 13, 22, 8607, 108, 1, 1283, 6840, 19129, 1224, 22, 214, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 in your Powershell profile.ps1file? === What essential things (functions, aliases, start up scripts) do you have in your profile?
0
[ 2, 98, 22, 18, 19, 154, 414, 15984, 5296, 9, 1919, 165, 16877, 60, 800, 3726, 3726, 98, 5832, 564, 13, 5, 22359, 18, 15, 15794, 160, 15, 799, 71, 17505, 6, 107, 42, 57, 19, 154, 5296, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
ncurses in windows === please list a ncurses libraries in C/C++ for windows that emulate ncurses in native resizable win32 windows **NOT** in console mode.
0
[ 2, 9276, 9679, 160, 19, 1936, 800, 3726, 3726, 2247, 968, 21, 9276, 9679, 160, 8649, 19, 272, 118, 150, 20512, 26, 1936, 30, 23804, 9276, 9679, 160, 19, 1275, 10719, 3186, 579, 628, 3125, 1936, 13, 1409, 1270, 1409, 19, 8650, 3740, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Java - Console-like web app. === Hey, I've been developing an application in the windows console with Java, and want to put it online in all of its console-graphics-glory. Is there a simple web applet API I can use to port my app over? I'm just using basic System.out and System.in functionality, but I'm happy to rebuild my I/O wrappers. I think something along these lines would be a great asset to any beginning Java developers who want to put their work online.
0
[ 2, 8247, 13, 8, 8650, 8, 1403, 2741, 4865, 9, 800, 3726, 3726, 8409, 15, 31, 22, 195, 74, 3561, 40, 3010, 19, 14, 1936, 8650, 29, 8247, 15, 17, 259, 20, 442, 32, 2087, 19, 65, 16, 82, 8650, 8, 12084, 18, 8, 6725, 622, 9, 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...
PHP alias @ function === I'm new to PHP and I'm confused seeing some examples calling a function with a @ prefix like @mysql_ping(). What is it for? Googling / searching is not much of a help since @ gets discarded and 'alias' is not good enough keyword.
0
[ 2, 13, 26120, 15794, 13, 1, 1990, 800, 3726, 3726, 31, 22, 79, 78, 20, 13, 26120, 17, 31, 22, 79, 4230, 2078, 109, 3770, 2555, 21, 1990, 29, 21, 13, 1, 14315, 101, 13, 1, 915, 18, 22402, 1, 3181, 5, 6, 9, 98, 25, 32, 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...
Wildcards in a hosts file === I want to setup my local development machine so that any requests for *.local are redirected to localhost. The idea is that as I develop multiple sites, I can just add vhosts to apache called site1.local, site2.local etc, and have them all resolve to localhost, while apache serves a different site accordingly. I am on Windows XP. I tried adding 127.0.0.1 *.local to my c:\windows\system32\drivers\etc\hosts file, also tried: 127.0.0.1 .local Neither of which seem to work. I know I can set them up on different port numbers, but that is a pain since it is hard to remember which port is which. I don't want to have to setup a local DNS server or anything hard, any suggestions?
0
[ 2, 23003, 18, 19, 21, 5397, 3893, 800, 3726, 3726, 31, 259, 20, 18161, 51, 375, 522, 1940, 86, 30, 186, 12279, 26, 1637, 9, 15580, 50, 302, 14147, 20, 375, 11694, 9, 14, 882, 25, 30, 28, 31, 2803, 1886, 3259, 15, 31, 92, 114, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 would you go about auto-detecting Textile versus Markdown? === I'm considering supporting both **[Textile][1]** and **[Markdown][2]** on a current project. I would prefer not forcing users to choose one or the other. Is there a way to auto-detect which the user is using? How would you go about this? I'd like to find / develop both a JavaScript and a PHP solution so I can provide live previews as well as process the user input on the server-side. [1]: http://textism.com/tools/textile/ [2]: http://daringfireball.net/projects/markdown/
0
[ 2, 184, 83, 42, 162, 88, 3108, 8, 28262, 68, 9770, 5706, 943, 2968, 60, 800, 3726, 3726, 31, 22, 79, 5154, 3134, 156, 13, 1409, 2558, 11969, 3599, 500, 2558, 165, 500, 1409, 17, 13, 1409, 2558, 4527, 2968, 500, 2558, 135, 500, 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...
DotNetNuke vulnerabilities === Anyone familiar with specific security issues in the current version of DotNetNuke? (I've already checked out their site, securityfocus, etc...)
0
[ 2, 14123, 2328, 4215, 1048, 13, 12708, 1031, 58, 9168, 3808, 800, 3726, 3726, 1276, 3694, 29, 1903, 1221, 1549, 19, 14, 866, 615, 16, 14123, 2328, 4215, 1048, 60, 13, 5, 49, 22, 195, 614, 6505, 70, 66, 689, 15, 1221, 23371, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Moving from ints to GUIDs as primary keys === I use several referenced tables with integer primary keys. Now I want to change ints to GUIDs leaving all references intact. What is the easiest way to do it? Thank you!
0
[ 2, 1219, 37, 19, 38, 18, 20, 9457, 43, 18, 28, 1256, 5534, 800, 3726, 3726, 31, 275, 238, 17571, 7484, 29, 13820, 1256, 5534, 9, 130, 31, 259, 20, 753, 19, 38, 18, 20, 9457, 43, 18, 1107, 65, 7231, 10572, 9, 98, 25, 14, 2723...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0...
In Visual Studio, when would I want to use the Test View? === For managing unit tests in Visual Studio, I use the Test List Editor. There's also a Test View which looks similar but more limited. **When would I want to use the Test View as opposed to the Test List Editor or any of the other test windows?**
0
[ 2, 19, 3458, 1120, 15, 76, 83, 31, 259, 20, 275, 14, 1289, 1418, 60, 800, 3726, 3726, 26, 5616, 1237, 4894, 19, 3458, 1120, 15, 31, 275, 14, 1289, 968, 1835, 9, 80, 22, 18, 67, 21, 1289, 1418, 56, 1879, 835, 47, 91, 1317, 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...
Patch flex framework to show preloader instantly? === In the Flex framework a custom preloader can be used while the site is loading. In the [Adobe docs][1] it specifies that '**the progress bar [preloader] is displayed if less than half of the application is downloaded after 700 milliseconds of downloading.**' However I ALWAYS want the preloader to appear instantly since I know that 95% of our users are first time visitors and the site is over 500kb. I dont want people to have to wait .7 seconds for the preloader animation to appear. I would think in theory that it is possible to 'monkey patch' the framework to remove this .7 second limitation. I dont have time to figure out how, and I've never done it before. Anybody help? [1]: http://livedocs.adobe.com/flex/3/html/help.html?content=app_container_4.html
0
[ 2, 7331, 14409, 6596, 20, 298, 782, 8294, 106, 6064, 60, 800, 3726, 3726, 19, 14, 14409, 6596, 21, 5816, 782, 8294, 106, 92, 44, 147, 133, 14, 689, 25, 12797, 9, 19, 14, 636, 5672, 863, 9765, 18, 500, 2558, 165, 500, 32, 27669, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 generate a PDF from an embedded report definition without server or UI? === Is it possible for a stand alone executable to generate a report and output it as PDF (or one of the other export options available from the report viewer) without displaying the ReportViewer control? The report definition should be embedded in the executable and should not use the Reporting Services web service.
0
[ 2, 184, 20, 7920, 21, 13, 11124, 37, 40, 12138, 1330, 5465, 366, 8128, 54, 13, 5661, 60, 800, 3726, 3726, 25, 32, 938, 26, 21, 1261, 1056, 1396, 17194, 5924, 20, 7920, 21, 1330, 17, 5196, 32, 28, 13, 11124, 13, 5, 248, 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...
Read the rgb value of a given pixel in Python, Programaticly === If i open an image with `open("image.jpg")`, how can i get the rgb values of a pixel, if i have the 'coordinates' ( or co-ordinates?) of the pixel? Then how can i do the reverse of this? Starting with a blank graphic, 'write' a pixel with a certain rgb value? It would be so much better if i didn't have to download any additional libraries
0
[ 2, 1302, 14, 761, 11400, 1923, 16, 21, 504, 18146, 19, 20059, 15, 625, 12479, 102, 800, 3726, 3726, 100, 31, 368, 40, 1961, 29, 13, 1, 10157, 5, 7, 22039, 9, 12851, 263, 7, 6, 1, 15, 184, 92, 31, 164, 14, 761, 11400, 4070, 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...
Calling WMPLib.mediaCollection methods from ASP.NET on IIS return empty lists === I am trying to access a Windows Media Player library from ASP.NET. The following code: WMPLib.WindowsMediaPlayer mplayer = new WMPLib.WindowsMediaPlayer(); WMPLib.IWMPStringCollection list = mplayer.mediaCollection.getAttributeStringCollection("artist", "audio"); Returns an non-empty list when run using the VS2005 development web server but an empty list when using IIS. Setting impersonation with: System.Security.Principal.WindowsImpersonationContext impersonationContext = ((System.Security.Principal.WindowsIdentity)User.Identity).Impersonate(); Doesn't help. It seems that WMPLib still doesn't thinks its running as a user who has a library. Is there a way to get around this?
0
[ 2, 2555, 619, 2554, 8326, 9, 8260, 15015, 872, 3195, 37, 28, 306, 9, 2328, 27, 595, 18, 788, 2424, 7227, 800, 3726, 3726, 31, 589, 749, 20, 1381, 21, 1936, 941, 517, 1248, 37, 28, 306, 9, 2328, 9, 14, 249, 1797, 45, 619, 2554,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 would I go about taking a snapshot of a process to preserve its state for future investigation? Is this possible? === Whether this is possible I don't know, but it would mighty useful! I have a process that fails periodically (running in Windows 2000). I then have just one chance to react to it before having to restart it and painfully wait for it to fail again. I didn't write the process so don't have the source to debug. The failure is seemingly random. With a snapshot of the process I could repeatedly and quickly test reactions to the failure. I had thought of running inside a VM but this isn't possible in this instance.
0
[ 2, 184, 83, 31, 162, 88, 741, 21, 29946, 16, 21, 953, 20, 6224, 82, 146, 26, 1022, 3193, 60, 25, 48, 938, 60, 800, 3726, 3726, 1472, 48, 25, 938, 31, 221, 22, 38, 143, 15, 47, 32, 83, 11955, 4811, 187, 31, 57, 21, 953, 30,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Select Query in SQL + All the values in columns === I am having a table Table1 with columns id1, id2, id3 all the columns are nullable I may enter null or value to all columns in rows. My question is I need to select the rows whose all the column values should not be null. Thanks
0
[ 2, 5407, 25597, 19, 4444, 255, 2754, 65, 14, 4070, 19, 7498, 800, 3726, 3726, 31, 589, 452, 21, 859, 859, 165, 29, 7498, 4924, 165, 15, 4924, 135, 15, 4924, 240, 65, 14, 7498, 50, 16203, 579, 31, 123, 2830, 16203, 54, 1923, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 are hashtables and hashmaps and their typical use cases? === I have recenty run across these terms few times but I am quite confused how they work and when they are usualy implemented?
0
[ 2, 98, 50, 19170, 5924, 18, 17, 19170, 15022, 18, 17, 66, 3874, 275, 1871, 60, 800, 3726, 3726, 31, 57, 1764, 93, 485, 464, 158, 1663, 310, 436, 47, 31, 589, 1450, 4230, 184, 59, 170, 17, 76, 59, 50, 3820, 93, 6807, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Is the Hash of a GUID uniqe? === I create a GUID (as a string) and get the Hash of it. Can I consider this Hash to be unique?
0
[ 2, 25, 14, 19170, 16, 21, 9457, 43, 367, 9908, 62, 60, 800, 3726, 3726, 31, 1600, 21, 9457, 43, 13, 5, 472, 21, 3724, 6, 17, 164, 14, 19170, 16, 32, 9, 92, 31, 3563, 48, 19170, 20, 44, 2619, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How can I improve CVS performance in a multi-site scenario? === I am currently working in a project with developers working on three sites. One of the sites is in Delhi, India while the other two are in Europe. The communication between the European offices and the office in Delhi has poor bandwidth and quite bad latency, and a CVS update from there often takes 5-10 minutes even though only a few files have changed. Is there any good CVS proxies out there, or any neat way of keeping separate CVS servers in sync? Do you have any other tips on how the performance can be improved in this scenario? Unfortunately, we will be stuck with CVS during the scope of this project, so switching to something completely different is not an option in the short-term.
0
[ 2, 184, 92, 31, 3545, 13, 12732, 18, 956, 19, 21, 1889, 8, 9097, 12705, 60, 800, 3726, 3726, 31, 589, 871, 638, 19, 21, 669, 29, 10168, 638, 27, 132, 3259, 9, 53, 16, 14, 3259, 25, 19, 5999, 15, 739, 133, 14, 89, 81, 50, 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...
For your semantic web type application, do you use RDF or a proprietary model for the internal representation? === If you've worked on a project that stores data for use with the semantic web, do you use RDF or even OWL as the internal data format or do you have your own data model/ontology that you map to RDF for interoperability? If you use RDF, what are your experiences with implementing various things like cyclical class hierachies? If you do your own thing, how does it differ from RDF/OWL?
0
[ 2, 26, 154, 17220, 2741, 1001, 3010, 15, 107, 42, 275, 13, 897, 410, 54, 21, 18856, 1061, 26, 14, 3117, 5442, 60, 800, 3726, 3726, 100, 42, 22, 195, 577, 27, 21, 669, 30, 4134, 1054, 26, 275, 29, 14, 17220, 2741, 15, 107, 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...
Delphi 2009 and Informix dbExpress problem with Windows 2003 === I have simple application that uses dbExpress to connect Informix database. If I compile it with TurboDelphi it works on both WinXP and Win2003. When I use new Deplhi 2009 my app works ok on WinXP but do not start on Win2003. No MessageBox with error, only info in EventLog: Faulting application inf_dbexpress_test.exe, version 0.0.0.0, faulting module kernel32.dll, version 5.2.3790.4062, fault address 0x0000bee7. I think this is problem with dbExpress driver while my other app compiled with Delhi 2009 that uses ODBC to connect Informix works on Win2003. Anybody can test if Informix dbExpress drivers from Delphi 2009 works with Windows 2003? Regards, Michal Niklas
0
[ 2, 23030, 588, 17, 10361, 4028, 13, 9007, 21230, 1448, 29, 1936, 973, 800, 3726, 3726, 31, 57, 1935, 3010, 30, 2027, 13, 9007, 21230, 20, 6379, 10361, 4028, 6018, 9, 100, 31, 26561, 32, 29, 12036, 3436, 7805, 32, 693, 27, 156, 628...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Config Files for Biztalk Host Processes === A single Biztalk Server can have multiple Host processes. Is it possible to create an application config file for each host process? For example I would like to use Unity or log4net or whatever which needs such a configuration file.
0
[ 2, 13, 14093, 2816, 6488, 26, 1732, 380, 9718, 2015, 5102, 800, 3726, 3726, 21, 345, 1732, 380, 9718, 8128, 92, 57, 1886, 2015, 5102, 9, 25, 32, 938, 20, 1600, 40, 3010, 13, 14093, 2816, 3893, 26, 206, 2015, 953, 60, 26, 823, 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...
Calling javascript in an svg document from html === I have made a svg image, or more like mini application, for viewing graphs off data. I want to include this in a html page, and call methods on the svg image. Example: <object id="img" data="image.svg" width="500" height="300"/> <script>document.getElementById("img").addData([1,23,4]);</script> Is it at all possible to call methods on the svg document? If so, how do I declare the methods to expose in the svg file, and how do I call them from the html document?
0
[ 2, 2555, 8247, 8741, 19, 40, 13, 18, 22955, 4492, 37, 13, 15895, 800, 3726, 3726, 31, 57, 117, 21, 13, 18, 22955, 1961, 15, 54, 91, 101, 4236, 3010, 15, 26, 11244, 7210, 18, 168, 1054, 9, 31, 259, 20, 468, 48, 19, 21, 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...
How to I turn off CSRF protection in a rails app? === The CSRP prevention built in to rails is causing some problems for some automated load testing we are doing, and I want to turn it off for the duration of the process. How do I do this?
0
[ 2, 184, 20, 31, 805, 168, 272, 18, 8291, 2057, 19, 21, 2240, 18, 4865, 60, 800, 3726, 3726, 14, 272, 18, 6952, 10173, 392, 19, 20, 2240, 18, 25, 3242, 109, 1716, 26, 109, 14904, 6305, 4431, 95, 50, 845, 15, 17, 31, 259, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0...
How to extract img src, title and alt from html using php? === I would like to create a page where all images which reside on my website are listed with title and alternative representation. I already wrote me a little program to find and load all html files, but now I am stuck at how to extract src, title and alt from the html < img <b>src</b>="/image/fluffybunny.jpg" <b>title</b>="Harvey the bunny" <b>alt</b>="a cute little fluffy bunny"/> I guess this should be done with some regex, but since the order of the tags may vary, and I need all of them, I don't really know how to parse this in an elegant way (I could do it the hard char by char way, but thats painful).
0
[ 2, 184, 20, 10962, 797, 263, 13, 18, 5453, 15, 581, 17, 7051, 37, 13, 15895, 568, 13, 26120, 60, 800, 3726, 3726, 31, 83, 101, 20, 1600, 21, 2478, 113, 65, 3502, 56, 14670, 27, 51, 2271, 50, 1510, 29, 581, 17, 2676, 5442, 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...
linux to compile multiple java file === here is my directory structure. /user/a /user/b /user/b inside folder a,b,c there is a file person.java (it is the Same file, just a one line modification. now, on my shell, im on my /user/ directory and i try to do javac */person.java the shell returns the following error, person.java:14: duplicate class: person Is there anything to resolve this?
0
[ 2, 13024, 20, 26561, 1886, 8247, 3893, 800, 3726, 3726, 235, 25, 51, 16755, 1411, 9, 13, 118, 16704, 118, 58, 13, 118, 16704, 118, 220, 13, 118, 16704, 118, 220, 572, 19294, 21, 15, 220, 15, 150, 80, 25, 21, 3893, 840, 9, 1004, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 use ClearCase to "add to source control ..." recursively? === I unpacked a zip-file delivery into a clearcase view. Now I want to add the complete file tree to the repository. The GUI only provides an "Add to source control ..." for individual files/directories. Do you know how to recursively add the whole tree?
0
[ 2, 184, 92, 31, 275, 1207, 10325, 20, 13, 7, 14854, 20, 1267, 569, 13, 9, 9, 9, 7, 302, 24244, 102, 60, 800, 3726, 3726, 31, 367, 8573, 69, 21, 12133, 8, 16877, 6010, 77, 21, 1207, 10325, 1418, 9, 130, 31, 259, 20, 3547, 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...
Any decent diff/merge engine for .NET ? === Requirements: - free, preferably open-source - implemented in one of the .NET langs Google found these: - [A Generic, Reusable Diff Algorithm][1] on codeproject - [An O(ND) Difference Algorithm for C#][2] - [Diff/Merge/Patch Library for C#/.NET][3] by Joshua Tauberer [1]: http://www.codeproject.com/KB/recipes/diffengine.aspx [2]: http://www.mathertel.de/Diff/ [3]: http://razor.occams.info/code/diff/
0
[ 2, 186, 12238, 20811, 118, 1263, 834, 1406, 26, 13, 9, 2328, 13, 60, 800, 3726, 3726, 4786, 45, 13, 8, 551, 15, 6369, 4801, 368, 8, 12097, 13, 8, 6807, 19, 53, 16, 14, 13, 9, 2328, 4544, 18, 8144, 216, 158, 45, 13, 8, 636, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Starting to learn Windbg === After being troubled by [an issue][1] that I simply did not have the knowledge to debug, I've just decided that I *have* to learn how to use Windbg. My only problem: I have no clue where to start :-( I'm not really a WinApi-Guy, having use languages that abstract the Windows Api away from me usually. So I just wonder: What is the best souce (Book, Website) to learn Windbg for someone who knows programming but not much about the inner depths of Windows? (And yes, I do read oldnewthing every day :)) [1]: http://blogs.cozi.com/tech/2008/03/transparent-png.html
0
[ 2, 1422, 20, 2484, 1511, 19924, 800, 3726, 3726, 75, 142, 12896, 34, 636, 210, 1513, 500, 2558, 165, 500, 30, 31, 1659, 144, 52, 57, 14, 1918, 20, 121, 16254, 15, 31, 22, 195, 114, 868, 30, 31, 1637, 5815, 2483, 20, 2484, 184, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Playground Projects or Tempraroy === When i am unsure about some thing for a project, i usually use a small separate project and make it my playground for things need to be tested.How do you do that ?
0
[ 2, 14530, 2314, 54, 13, 9577, 525, 7592, 800, 3726, 3726, 76, 31, 589, 13815, 88, 109, 584, 26, 21, 669, 15, 31, 951, 275, 21, 284, 1725, 669, 17, 233, 32, 51, 14530, 26, 564, 376, 20, 44, 7631, 9, 1544, 107, 42, 107, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Dynamic radio button creation === In wxPython, if I create a list of radio buttons and place the list initially, is it possible to change the contents in that list later? For example, I have a panel that uses a boxSizer to place the widgets initially. One of those widgets is a list of radio buttons (I have also tried a normal radiobox). I would like to dynamically change the list based on variables from another class. However, once the list is placed in the sizer, it's effectively "locked"; I can't just modify the list and have the changes appear. If I try re-adding the list to the sizer, it just gets put in the top left corner of the panel. I'm sure I could hide the original list and manually place the new list in the same position but that feels like a kludge. I'm sure I'm making this harder than it is. I'm probably using the wrong widgets for this, much less the wrong approach, but I'm building this as a learning experience. class Job(wiz.WizardPageSimple): """Character's job class.""" def __init__(self, parent, title, attribs): wiz.WizardPageSimple.__init__(self, parent) self.next = self.prev = None self.sizer = makePageTitle(self, title) self.charAttribs = attribs #---Create widgets self.Job_list = ["Aircraft Mechanic", "Vehicle Mechanic", "Electronics Specialist"] box1_title = wx.StaticBox( self, -1, "" ) box1 = wx.StaticBoxSizer( box1_title, wx.VERTICAL ) grid1 = wx.BoxSizer(wx.VERTICAL) for item in self.Job_list: radio = wx.RadioButton(self, -1, item) grid1.Add(radio) ##Debugging self.btn = wx.Button(self, -1, "click") self.Bind(wx.EVT_BUTTON, self.eligibleJob, self.btn) #---Place widgets self.sizer.Add(self.Job_intro) self.sizer.Add(self.btn) box1.Add(grid1) self.sizer.Add(box1) def eligibleJob(self, event): """Determine which Jobs a character is eligible for.""" if self.charAttribs.intelligence >= 12: skillList = ["Analyst", "Interrogator", "Fire Specialist", "Aircraft Pilot"] for skill in skillList: self.Job_list.append(skill) print self.Job_list ##Debugging #return self.Job_list
0
[ 2, 7782, 603, 5167, 2502, 800, 3726, 3726, 19, 619, 396, 6448, 11570, 15, 100, 31, 1600, 21, 968, 16, 603, 12861, 17, 209, 14, 968, 1537, 15, 25, 32, 938, 20, 753, 14, 8478, 19, 30, 968, 138, 60, 26, 823, 15, 31, 57, 21, 411...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Calling .NET assembly from Java: JVM crashes === I have a third party .NET Assembly and a large Java application. I need to call mothods provided by the .NET class library from the Java application. The assembly is not COM-enabled. I have searched the net and so far i have the following: C# code (cslib.cs): using System; namespace CSLib { public class CSClass { public static void SayHi() { System.Console.WriteLine("Hi"); } } } compiled with (using .net 3.5, but the same happens when 2.0 is used): csc /target:library cslib.cs C++ code (clib.cpp): #include <jni.h> #using <CSLib.dll> using namespace CSLib; extern "C" _declspec(dllexport) void Java_CallCS_callCS(JNIEnv* env, jclass cls) { CSLib::CSClass::SayHi(); } compiled with (using VC 2008 tools, but the same happens when 2003 tools are used): cl /clr /LD clib.cpp mt -manifest clib.dll.manifest -outputresource:clib.dll;2 Java code (CallCS.java): class CallCS { static { System.loadLibrary("clib"); } private static native void callCS(); public static void main(String[] args) { callCS(); } } When I try to run the java class, the Java VM crashes while invoking the method (it is able to load the library): <pre> # # An unexpected error has been detected by Java Runtime Environment: # # Internal Error (0xe0434f4d), pid=3144, tid=3484 # # Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing windows-x86) # Problematic frame: # C [kernel32.dll+0x22366] # ... Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j CallCS.callCS()V+0 j CallCS.main([Ljava/lang/String;)V+0 v ~StubRoutines::call_stub </pre> However, if I create a plain cpp application that loads clib.dll and calls the exported function Java_CallCS_callCS, everything is OK. I have tried this on both x86 and x64 environments and the result is the same. I have not tried other versions of Java, but I need the code to run on 1.5.0. Moreover, if I modify clib.cpp to call only System methods everything works fine even from Java: #include <jni.h> #using <mscorlib.dll> using namespace System; extern "C" _declspec(dllexport) void Java_CallCS_callCS(JNIEnv* env, jclass cls) { System::Console::WriteLine("It works"); } To wrap up: 1. I am ABLE to call System methods from Java -> clib.dll -> mscorlib.dll 2. I am ABLE to call any methods from CPPApp -> clib.dll -> cslib.dll 3. I am UNABLE to call any methods from Java -> clib.dll -> cslib.dll I am aware of a workaround that uses 1. above - I can use reflection to load the assmebly and invoke desired methods using only System calls, but the code gets messy and I am hoping for a better solution. Thanks.
0
[ 2, 2555, 13, 9, 2328, 1475, 37, 8247, 45, 487, 20147, 21563, 800, 3726, 3726, 31, 57, 21, 422, 346, 13, 9, 2328, 1475, 17, 21, 370, 8247, 3010, 9, 31, 376, 20, 645, 4317, 5648, 18, 1173, 34, 14, 13, 9, 2328, 718, 1248, 37, 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 much faster is c++ than c#? === Or is it now the other way around? From what I've heard there are some areas in which c# proves to be faster than c++, but I've never had the guts to test it by myself. Thought any of you could explain these differences in detail or point me to the right place for info on this. Thanks.
0
[ 2, 184, 212, 4233, 25, 272, 20512, 119, 272, 5910, 60, 800, 3726, 3726, 54, 25, 32, 130, 14, 89, 161, 140, 60, 37, 98, 31, 22, 195, 752, 80, 50, 109, 924, 19, 56, 272, 5910, 4220, 18, 20, 44, 4233, 119, 272, 20512, 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...
Class structure pattern question. What should I choose? === What are (if any)the implied assumptions or restrictions and the differences of designing like: A) this: class SampleClass1 { IWorker workerA; IWorker workerB; void setWorkerA(IWorker w); void setWorkerB(IWorker w); WorkResult doWork(); } B) versus this: class SampleClass2 { WorkResult doWork(IWorker workerA, IWorker workerB); } I know it depends on the specific project but what if the above class is a part of a small framework? The first Class is able to maintain state and separate the steps more naturaly but Second class ensures "real time communication" with the external caller more naturaly since Worker are passed each time doWork() is called. Are there any recommended usages or generic practices that guide the choice between the two above ways? Thanks.
0
[ 2, 718, 1411, 3732, 1301, 9, 98, 378, 31, 3538, 60, 800, 3726, 3726, 98, 50, 13, 5, 821, 186, 6, 124, 14719, 20751, 54, 9245, 17, 14, 4921, 16, 15026, 101, 45, 21, 6, 48, 45, 718, 5717, 1898, 165, 13, 1, 31, 22560, 7444, 58,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
PHP: close a connection early === I'm attempting to do an AJAX call (via JQuery) that will initiate a fairly long process. I'd like the script to simply send a response indicating that the process has started, but JQuery won't return the response until the PHP script is done running. I've tried this with a "close" header (below), and also with output buffering; neither seems to work. Any guesses? or is this something I need to do in JQuery? &lt;?php echo( "We'll email you as soon as this is done." ); header( "Connection: Close" ); // do some stuff that will take a while mail( 'dude@thatplace.com', "okay I'm done", 'Yup, all done.' ); ?&gt;
0
[ 2, 13, 26120, 45, 543, 21, 2760, 274, 800, 3726, 3726, 31, 22, 79, 6314, 20, 107, 40, 20624, 645, 13, 5, 5034, 487, 8190, 93, 6, 30, 129, 17014, 21, 6647, 175, 953, 9, 31, 22, 43, 101, 14, 3884, 20, 1659, 2660, 21, 1627, 795...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
HGetFolderPath 32 vs 64 === What happens if I use HGetFolderPath api call in a 32 bit system with CSIDL_PROGRAM_FILESx86 folder id, instead of the CSIDL_PROGRAM_FILES id ? Theoretically CSIDL_PROGRAM_FILESx86 should map to C:\program files (x86) in a 64 bit system but what does it map to in a 32 bit system where this path doesn't exists? Thanks in advanced.
0
[ 2, 746, 3060, 8814, 106, 8353, 2512, 4611, 4384, 800, 3726, 3726, 98, 5531, 100, 31, 275, 746, 3060, 8814, 106, 8353, 21, 2159, 645, 19, 21, 2512, 1142, 329, 29, 13, 16166, 8643, 1, 19746, 1, 16877, 18, 396, 3274, 19294, 4924, 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...
Colored grep? === Sometimes coloring a logfile or other gives a good overview when looking for *stuff* and *behaviors* I just saw that grep have a coloring feature grep -C 99999 --color <regexp> <filename> I also have a *short* c program I sometimes use, will post here after lunch... What other methods are there?
0
[ 2, 10133, 5604, 306, 60, 800, 3726, 3726, 1030, 1665, 68, 21, 6738, 16877, 54, 89, 2352, 21, 254, 21598, 76, 699, 26, 1637, 384, 5386, 2483, 17, 1637, 863, 20358, 248, 18, 2483, 31, 114, 441, 30, 5604, 306, 57, 21, 1665, 68, 158...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Simple toggle function with IE6 === I'm facing a problem with IE6. I took the toggle function from this [website][1] but when I apply it to my page I get the error (only in IE6): > Could not get the display property. > Invalid argument. I can get the display property, but the error is thrown when I want to set to the new value. I'am a little bit desparate now, your help will be really welcome. [1]: http://www.dustindiaz.com/seven-togglers/
0
[ 2, 1935, 20, 263, 4875, 1990, 29, 13, 660, 379, 800, 3726, 3726, 31, 22, 79, 4325, 21, 1448, 29, 13, 660, 379, 9, 31, 199, 14, 20, 263, 4875, 1990, 37, 48, 636, 14113, 9097, 500, 2558, 165, 500, 47, 76, 31, 5645, 32, 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...
Can you run a version 3 .Net binary on a version 2 CLR install? === We're considering writing the next version of out project in using .Net 3, but are wondering if we can take the hit on forcing end users to install the .net framework version 3.
0
[ 2, 92, 42, 485, 21, 615, 203, 13, 9, 2328, 14171, 27, 21, 615, 172, 10842, 139, 16146, 60, 800, 3726, 3726, 95, 22, 99, 5154, 1174, 14, 328, 615, 16, 70, 669, 19, 568, 13, 9, 2328, 203, 15, 47, 50, 5712, 100, 95, 92, 247, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
ToolTipping a Drop Down list === I have a drop down list in a GridView. The data inside the drop down list has variable length but the drop down list is of a fixed size. How can a tooltip be displayed over each item without selecting any item from the drop down list? I have googled but come across samples where the tooltip is displayed over a currently selected item of drop down list. Can anybody in the SO community give me a hint?
0
[ 2, 5607, 1388, 5574, 21, 2804, 125, 968, 800, 3726, 3726, 31, 57, 21, 2804, 125, 968, 19, 21, 7354, 4725, 9, 14, 1054, 572, 14, 2804, 125, 968, 63, 7612, 1476, 47, 14, 2804, 125, 968, 25, 16, 21, 3535, 1072, 9, 184, 92, 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...
Catching a tab close event in web browser? === Is there any way of knowing if the user closes a tab in a web browser? Specifically IE7, but also FireFox and others as well. I would like to be able to handle this situation from our asp code if the current tab containing our web site closes.
0
[ 2, 9436, 21, 6523, 543, 807, 19, 2741, 16495, 60, 800, 3726, 3726, 25, 80, 186, 161, 16, 2506, 100, 14, 4155, 543, 18, 21, 6523, 19, 21, 2741, 16495, 60, 3524, 13, 660, 465, 15, 47, 67, 535, 18219, 17, 654, 28, 134, 9, 31, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Sort columns in an ASP.NET GridView if using a custom DataSource? === I can't get my GridView to enable a user to sort a column of data when I'm using a custom SqlDataSource. I have a GridView in which the code in the ASP reference to it in the HTML is minimal: <asp:GridView id="grid" runat="server" AutoGenerateColumns="False" AllowSorting="True"> </asp:GridView> In the code-behind I attach a dynamically-created SqlDataSource (the columns it contains are not always the same so the SQL used to create it is constructed at runtime). For example: I set up the columns... BoundField column = new BoundField(); column.DataField = columnName; column.HeaderText = "Heading"; column.SortExpression = columnName; grid.Columns.Add(column); the data source... SqlDataSource dataSource = new SqlDataSource( "System.Data.SqlClient", connectionString, generatedSelectCommand); then the gridview... grid.DataSource = dataSource; grid.DataKeyNames = mylistOfKeys; grid.DataBind(); At the moment nothing happens when a user clicks on a column heading when I'd expect it to sort the column data. Anyone any ideas what I'm missing? If there's a nicer way of doing this that would be helpful too as this looks messy to me!
0
[ 2, 184, 20, 2058, 7498, 19, 40, 28, 306, 9, 2328, 7354, 4725, 100, 568, 21, 5816, 1054, 12097, 60, 800, 3726, 3726, 31, 92, 22, 38, 164, 51, 7354, 4725, 20, 9240, 21, 4155, 20, 2058, 21, 4698, 16, 1054, 76, 31, 22, 79, 568, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
SQL Compact select top 1 === While poring an app from SQL 2005 to SQL Server Compact, I need to port command SELECT TOP 1 Id FROM tblJob WHERE Holder_Id IS NULL But SQL Server Compact does not know the TOP keyword. Any idea how to port such command? Than you for your answers in advance!
0
[ 2, 4444, 255, 8285, 5407, 371, 137, 800, 3726, 3726, 133, 5156, 68, 40, 4865, 37, 4444, 255, 812, 20, 4444, 255, 8128, 8285, 15, 31, 376, 20, 1295, 1202, 5407, 371, 137, 4924, 37, 13, 38, 6287, 1636, 220, 113, 8979, 1, 1340, 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...
Landscape printing from HTML === I have a HTML report, which needs to be printed landscape because of the many columns. It there a way to do this, without the user having to change the document settings? And what are the options amongst browsers.
0
[ 2, 4453, 7312, 37, 13, 15895, 800, 3726, 3726, 31, 57, 21, 13, 15895, 1330, 15, 56, 2274, 20, 44, 5317, 4453, 185, 16, 14, 151, 7498, 9, 32, 80, 21, 161, 20, 107, 48, 15, 366, 14, 4155, 452, 20, 753, 14, 4492, 12410, 60, 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, 0, 0, 0, 0, 0, 0, 0, 0...
What's the best way to detect web applications attacks ? === What is the best way to survey and detect bad user's behavior or attacks like deny of service or exploit on my web app ? I know server's statistics (like Awstats) are very useful for that kind of purpose, specially to see 3XX, 4XX and 5XX errors which are often bots or bad intentioned users that try well-known bad or malformed URLs. Is there others (and betters) ways to analyze and detect attacks that kind of tentative ?
0
[ 2, 98, 22, 18, 14, 246, 161, 20, 9092, 2741, 3767, 3080, 13, 60, 800, 3726, 3726, 98, 25, 14, 246, 161, 20, 3431, 17, 9092, 896, 4155, 22, 18, 3257, 54, 3080, 101, 9258, 16, 365, 54, 10880, 27, 51, 2741, 4865, 13, 60, 31, 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...
How to figure out the current Biztalk Host Process === I would like to know at runtime in which of several possible host processes my current code is executing. The host processes have configured names at the Biztalk management level, but I need to know which process I'm in from inside the code. I didn't find any supported way to do this and I'm even stuck with the search for an unsupported method :-)
0
[ 2, 184, 20, 1465, 70, 14, 866, 1732, 380, 9718, 2015, 953, 800, 3726, 3726, 31, 83, 101, 20, 143, 35, 485, 891, 19, 56, 16, 238, 938, 2015, 5102, 51, 866, 1797, 25, 25836, 9, 14, 2015, 5102, 57, 28895, 1817, 35, 14, 1732, 380,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
SQL Reporting services - Out of Memory Exception === I am having some 10 lac records in my single SQL Table. I need to load this much record in my record. I need to know whether this will load. when i tried loading to report its showing out of memory exception.
0
[ 2, 4444, 255, 6670, 687, 13, 8, 70, 16, 1912, 5391, 800, 3726, 3726, 31, 589, 452, 109, 332, 8213, 742, 19, 51, 345, 4444, 255, 859, 9, 31, 376, 20, 6305, 48, 212, 571, 19, 51, 571, 9, 31, 376, 20, 143, 1472, 48, 129, 6305, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0...
Is there any way to create a stand-alone ButtonSpec in Krypton Toolkit? === I need to create a button that has the same style as `ButtonSpec` with its type set to `Context`, is there any way to create a `ButtonSpec` that isn't directly attached to another control, or have I missed a simple style option on another control?
0
[ 2, 25, 80, 186, 161, 20, 1600, 21, 1261, 8, 17979, 12861, 12610, 19, 28896, 5607, 13703, 60, 800, 3726, 3726, 31, 376, 20, 1600, 21, 5167, 30, 63, 14, 205, 1034, 28, 13, 1, 811, 444, 18, 12610, 1, 29, 82, 1001, 309, 20, 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...
How to convert a Unicode character to it's ASCII equivalent === Here's the problem: In C# I'm getting information from a legacy ACCESS database. .NET converts the content of the database (in the case of this problem a string) to Unicode before handing the content to me. How do I convert this Unicode string back to it's ASCII equivalent? For instance: <hr> The database contains a field with "^" (ASCII char 94) as content. .NET converts this "^" (ASCII char 94) to "^" unicode char 710. How do I convert this Unicode char 710 back to ASCII char 94? <hr> Here's what I've tried: string myInput = Convert.ToString(Convert.ToChar(710)); byte[] asBytes = Encoding.ASCII.GetBytes(myInput); But this does not result in 94 but a byte with value 63...
0
[ 2, 184, 20, 8406, 21, 28010, 925, 20, 32, 22, 18, 28, 1892, 49, 4602, 800, 3726, 3726, 235, 22, 18, 14, 1448, 45, 19, 272, 5910, 31, 22, 79, 1017, 676, 37, 21, 7780, 1381, 6018, 9, 13, 9, 2328, 8406, 18, 14, 2331, 16, 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...
Javascript: How to reload entire frameset onload() event including frame where Javascript is called === Is there a way to reload an entire frameset using Javascript onload() event? function logout() { ... // reload entire frame top.location.reload(); } <body onload="logout()"> This cause all frames to reload but the URL of the frame where this was called didn't changed to the URL specified in the framset.
0
[ 2, 8247, 8741, 45, 184, 20, 27339, 1078, 3523, 3554, 27, 8294, 5, 6, 807, 215, 3523, 113, 8247, 8741, 25, 227, 800, 3726, 3726, 25, 80, 21, 161, 20, 27339, 40, 1078, 3523, 3554, 568, 8247, 8741, 27, 8294, 5, 6, 807, 60, 1990, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Get address of current page in Internet Explorer from toolbar === I'm trying to wrap my head around creating a toolbar for Internet Explorer. Is it possible to get the address of the currently viewed page (i.e., http://stackoverflow.com/questions/ask in my case :-) ) from the toolbar? If so, what should I look in to? Thanks!
0
[ 2, 164, 3218, 16, 866, 2478, 19, 2620, 8520, 37, 5607, 1850, 800, 3726, 3726, 31, 22, 79, 749, 20, 8118, 51, 157, 140, 2936, 21, 5607, 1850, 26, 2620, 8520, 9, 25, 32, 938, 20, 164, 14, 3218, 16, 14, 871, 6084, 2478, 13, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 do a SQL NOT NULL with a DateTime? === This might be simple, but I cant figure out how to do a simple DateTime with a NOT NULL? I want to do something like this: SELECT * FROM someTable WHERE thisDateTime IS NOT NULL But that obviously doesn't work. I am using MS SQL 2005 if that matters. Thank you.
0
[ 2, 184, 20, 107, 21, 4444, 255, 52, 16203, 29, 21, 1231, 891, 60, 800, 3726, 3726, 48, 530, 44, 1935, 15, 47, 31, 2973, 1465, 70, 184, 20, 107, 21, 1935, 1231, 891, 29, 21, 52, 16203, 60, 31, 259, 20, 107, 301, 101, 48, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Training Users In Security === Firstly: this may be a not-programming-related-question. However: As a programmer who is very concerned about security, this _is_ a question which weighs heavily on my mind, and directly affects my activities as a programmer. The weak point in my systems is nothing about the systems themselves, but rather the users. So, what I need to do is to educate my users about security. Things I would like to tell them about include: - what the cost of a breach could be - the computers really can't solve the problem (it's down to people) - phishing / spear-phishing - some awareness of the kinds of vulnerability that are out there - why it can be disastrous just to click a nastly link in an email Do you have any tips on how to educate users in this stuff? In particular (bearing in mind that I am but a lowly grunt), any helpful suggestions about how to get senior people intersted in real-world solutions (not just rhetoric)?
0
[ 2, 838, 3878, 19, 1221, 800, 3726, 3726, 64, 102, 45, 48, 123, 44, 21, 52, 8, 19746, 3863, 8, 6203, 8, 24652, 9, 207, 45, 28, 21, 17968, 72, 25, 253, 3518, 88, 1221, 15, 48, 13, 1, 403, 1, 21, 1301, 56, 13415, 18, 2991, 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...
Generating a report by date range in rails === How would you go about producing reports by user selected date ranges in a rails app? What are the best date range pickers?
0
[ 2, 13500, 21, 1330, 34, 1231, 978, 19, 2240, 18, 800, 3726, 3726, 184, 83, 42, 162, 88, 4081, 2813, 34, 4155, 1704, 1231, 9230, 19, 21, 2240, 18, 4865, 60, 98, 50, 14, 246, 1231, 978, 2036, 445, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
batch scripting iterating over files in a directory === How could I iterate over each file in a directory using **for** ? And also , how could I tell if a certain entry is a directory , or if it's just a file ?
0
[ 2, 13064, 3884, 68, 32, 106, 1880, 84, 6488, 19, 21, 16755, 800, 3726, 3726, 184, 110, 31, 32, 106, 1373, 84, 206, 3893, 19, 21, 16755, 568, 13, 1409, 1106, 1409, 13, 60, 17, 67, 13, 15, 184, 110, 31, 494, 100, 21, 1200, 2792,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0...
Sorting nvarchar column as integer === I have mixed data i nvarchar column (words and numbers). Which is fastest way to sort data in this column in Numeric Order. Result example: - 1 - 2 - 3 - ... - 10 - 11 - ... - aaaa - aaab - b - ba - ba - ...
0
[ 2, 2058, 68, 13, 103, 3311, 5433, 4698, 28, 13820, 800, 3726, 3726, 31, 57, 2198, 1054, 31, 13, 103, 3311, 5433, 4698, 13, 5, 12827, 17, 2116, 6, 9, 56, 25, 7518, 161, 20, 2058, 1054, 19, 48, 4698, 19, 15764, 596, 389, 9, 829,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Pure Python XSLT library === Is there an XSLT library that is pure Python? Installing libxml2+libxslt or any similar C libraries is a problem on some of the platforms I need to support. I really only need basic XSLT support, and speed is not a major issue.
0
[ 2, 4267, 20059, 993, 18, 255, 38, 1248, 800, 3726, 3726, 25, 80, 40, 993, 18, 255, 38, 1248, 30, 25, 4267, 20059, 60, 25429, 13, 8326, 396, 8184, 21812, 8326, 396, 18, 255, 38, 54, 186, 835, 272, 8649, 25, 21, 1448, 27, 109, 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...
Easiest and quickest way of Web enabling old VBA apps === Given an small Excel VBA app (single form, small amount of records saved in single worksheet) that runs quite happily locally on the workstation, what would be the easiest and quickest way of providing the same app on the web? Re-writing the app is an option but I thought it was worth checking if there was a quicker solution out there.
0
[ 2, 27237, 17, 2231, 1430, 161, 16, 2741, 13168, 315, 566, 969, 4865, 18, 800, 3726, 3726, 504, 40, 284, 20700, 566, 969, 4865, 13, 5, 14031, 505, 15, 284, 2006, 16, 742, 4377, 19, 345, 170, 17627, 6, 30, 1461, 1450, 12356, 6680, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
MVC, where do the classes go? === My understanding of the MVC is as follows (incase it's horribly wrong, I am afterall new to it) 1. Models are the things that interface with the database 2. Views are the design/layout of the page 3. Controllers are where everything starts and are essentially the page logic I'm using [CodeIgniter][1] but I would hazard a guess it's not just limited to that or possibly even just to PHP frameworks. Where do I put global classes? I may have a model for Products and I then run a query that collects 20 products from the database. Do I now make 20 models or should I have a separate class for it, if the latter, where do I put this class (other controllers will need to use it too) [1]: http://codeigniter.com/
0
[ 2, 307, 8990, 15, 113, 107, 14, 2684, 162, 60, 800, 3726, 3726, 51, 3260, 16, 14, 307, 8990, 25, 28, 2415, 13, 5, 108, 10325, 32, 22, 18, 28441, 1389, 15, 31, 589, 75, 1233, 78, 20, 32, 6, 137, 9, 2761, 50, 14, 564, 30, 65...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 are Java command line options to set to allow JVM to be remotely debugged ? === I know there's some JAVA_OPTS to set to remotely debug a Java program. What are them and what does they mean ?
0
[ 2, 98, 50, 8247, 1202, 293, 6368, 20, 309, 20, 1655, 487, 20147, 20, 44, 23288, 121, 2345, 15186, 13, 60, 800, 3726, 3726, 31, 143, 80, 22, 18, 109, 8247, 1, 111, 13531, 20, 309, 20, 23288, 121, 16254, 21, 8247, 625, 9, 98, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How can I set the ValidationGroup dynamically === I have a ASP.NET 2.0 webpage with 2 UserControls (.ascx). Each UserControl contains a bunch of validators. Placing a ValidationSummary on the page will display all validation errors, of both UserControl's. Placing a ValidationSummary in each UserControl will display all the errors of both controls twice. What I want is a ValidationSummary for each UserControl, displaying only the errors on that UserControl. I've tried to solve this by setting the ValidationGroup property of the validators on each usercontrol dynamicaly. That way each validationsummary should display only the errors of its UserControl. I've used this code: foreach (Control ctrl in this.Controls) { if (ctrl is BaseValidator) { (ctrl as BaseValidator).ValidationGroup = this.ClientID; } } ValidationSummary1.ValidationGroup = this.ClientID; This however seems to disable both clientside and server side validation, because no validation occurs when submitting the form. Help? -Edoode
0
[ 2, 184, 92, 31, 309, 14, 27999, 8024, 7782, 1326, 800, 3726, 3726, 31, 57, 21, 28, 306, 9, 2328, 172, 9, 387, 2741, 6486, 29, 172, 4155, 12898, 18, 13, 5, 9, 472, 150, 396, 6, 9, 206, 4155, 12898, 1588, 21, 7653, 16, 7394, 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...
Text diff visualization control for WinForms or WPF === In continuation of the my [previous question][1], are the any good control for text diffs visualization. Something like StackOverflow's revision diff viewer but for WinForms or WPF Requirements: - free, preferably open-source - based on WPF or WinForms No apps please, only components. **I'm not interested in OSS diff tools** [1]: http://stackoverflow.com/questions/138331/any-decent-text-diffmerge-engine-for-net
0
[ 2, 1854, 20811, 28873, 569, 26, 628, 4190, 18, 54, 619, 7721, 800, 3726, 3726, 19, 15503, 16, 14, 51, 636, 3515, 1755, 1291, 1301, 500, 2558, 165, 500, 15, 50, 14, 186, 254, 569, 26, 1854, 20811, 18, 28873, 9, 301, 101, 7566, 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...
Is it feasible to compile Python to object code? === How feasible would it be to compile Python (possibly via an intermediate C representation) into object code? Presumably it would need to link to a Python runtime library, and any parts of the Python standard library which were Python themselves would need to be compiled (and linked in) too. Also, you would need to bundle the Python interpreter if you wanted to do dynamic evaluation of expressions, but perhaps a subset of Python that didn't allow this would still be useful. Would it provide any speed and/or memory usage advantages? Presumably the startup time of the Python interpreter would be eliminated (although shared libraries would still need loading at startup).
0
[ 2, 25, 32, 13, 23707, 20, 26561, 20059, 20, 3095, 1797, 60, 800, 3726, 3726, 184, 13, 23707, 83, 32, 44, 20, 26561, 20059, 13, 5, 21628, 1197, 40, 6889, 272, 5442, 6, 77, 3095, 1797, 60, 12411, 32, 83, 376, 20, 3508, 20, 21, 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...
Java Swing: Ctrl+F1 does not work globally, but each other key combination === I have a swing gui with a tabbed pane in the north. Several key events are added to its input map: InputMap paneInputMap = pane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); paneInputMap.put( KeyStroke.getKeyStroke( KeyEvent.VK_E, KeyEvent.CTRL_MASK ), "finish"); paneInputMap.put( KeyStroke.getKeyStroke( KeyEvent.VK_F1, KeyEvent.CTRL_MASK ), "toggletoolbar"); If the tabbed pane or another button in a toolbar has the focus, Ctrl+F1 has no function. If another component is focused (e.g. JTree), Ctrl+F1 executes the action. The problem is, that it workes everywhere if I change the Keycode to e.g. VK_F2. The key F1 is'nt used anywhere else in the program. Any idea? Thanks, André
0
[ 2, 8247, 5587, 45, 13, 4812, 6362, 2430, 410, 165, 630, 52, 170, 18861, 15, 47, 206, 89, 1246, 3733, 800, 3726, 3726, 31, 57, 21, 5587, 9457, 29, 21, 6523, 4283, 13, 16660, 19, 14, 200, 9, 238, 1246, 963, 50, 905, 20, 82, 6367...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...