unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Convert JavaScript String to be all lower case? === How can I convert a JavaScript string value to be in all lower case letters? Example: "Your Name" to "your name".
0
[ 2, 8406, 8247, 8741, 3724, 20, 44, 65, 987, 610, 60, 800, 3726, 3726, 184, 92, 31, 8406, 21, 8247, 8741, 3724, 1923, 20, 44, 19, 65, 987, 610, 2516, 60, 823, 45, 13, 7, 4314, 204, 7, 20, 13, 7, 4314, 204, 7, 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, 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...
Validating and reparing xml === Is there a way to get more useful information on validation error? XmlSchemaException provides the line number and position of the error which makes little sense to me. Xml document after all is not about its transient textual representation. I'd like to get an enumerated error (or an error code) specifying what when wrong, node name (or an xpath) to locate the source of the problem so that perhaps I can try and fix it.
0
[ 2, 7394, 1880, 17, 302, 3574, 68, 23504, 800, 3726, 3726, 25, 80, 21, 161, 20, 164, 91, 4811, 676, 27, 27999, 7019, 60, 23504, 7526, 540, 10066, 872, 1927, 14, 293, 234, 17, 649, 16, 14, 7019, 56, 1364, 265, 1259, 20, 55, 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...
What do you do if you cannot resolve a bug? === Did you ever had a bug in your code, you could not resolve? I hope I'm not the only one out there, who made this experience ... There exist some classes of bugs, that are very hard to track down: - **timing-related bugs** (that occur during inter-process-communication for example) - **memory-related bugs** (most of you know appropriate examples, I guess!!!) - **event-related bugs** (hard to debug, because every break point you run into makes your IDE the target for mouse release/focus events ...) To be honest, from time to time I fail to fix such a bug on my own ... After debugging for hours (or sometimes even days) I feel very demoralized. What do you do in this situation (apart from asking others for help which is not always possible)? Do you - use pencil and paper instead of a debugger - face for another thing and return to this bug later - ... Please let me know!
0
[ 2, 98, 107, 42, 107, 100, 42, 1967, 9854, 21, 6256, 60, 800, 3726, 3726, 144, 42, 462, 41, 21, 6256, 19, 154, 1797, 15, 42, 110, 52, 9854, 60, 31, 1376, 31, 22, 79, 52, 14, 104, 53, 70, 80, 15, 72, 117, 48, 1496, 13, 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...
Perl: $hash{$key} |= {} ? === I was wrestling with some Perl that uses hash references. In the end it turned out that my problem was the line: $myhash{$key} |= {}; That is, "assign $myhash{$key} a reference to an empty hash, unless it already has a value". Dereferencing this and trying to use it as a hash reference, however, resulted in interpreter errors about using a string as a hash reference. Changing it to: if( ! exists $myhash{$key}) { $myhash{$key} = {}; } ... made things work. So I don't have a *problem*. But I'm curious about what was going on. Can anyone explain?
0
[ 2, 416, 255, 45, 5579, 25436, 1, 4403, 4237, 1, 13, 1, 3726, 13, 1, 13, 60, 800, 3726, 3726, 31, 23, 3381, 29, 109, 416, 255, 30, 2027, 19170, 7231, 9, 19, 14, 241, 32, 412, 70, 30, 51, 1448, 23, 14, 293, 45, 5579, 915, 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...
SSIS (DTSX) Execute package failing on production server. === So I have created a SSIS package and it works great on my dev machine. But, when I try to run it on the production server, it errors our on me. Here is there error: ---------- Error: The AcquireConection method call to the connection manager "DestinationConnectionOLEDB" failed with error code 0xC0202009. ---------- I have figured out the cause, but am not sure how to get it fixed. The password isn't in the connection string. But I have set the password in the SSIS project. For some reason though, when I deploy and run this on the production server, it won't run since the password isn't part of the connection string. Is there some setting in the SSIS project that I need to change in order to get this to work right? Thanks.
0
[ 2, 13, 18, 4557, 13, 5, 43, 38, 18, 396, 6, 15644, 6030, 7250, 27, 637, 8128, 9, 800, 3726, 3726, 86, 31, 57, 679, 21, 13, 18, 4557, 6030, 17, 32, 693, 374, 27, 51, 9664, 1940, 9, 47, 15, 76, 31, 1131, 20, 485, 32, 27, 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...
Any tips for managing a project with basecamp? === I'm going to be using basecamp for the first time on new project. Does anyone have any good tips / pitfalls for using basecamp. For example, can you end up spending more time playing with the to-do lists than actually getting on with the project?
4
[ 2, 186, 11034, 26, 5616, 21, 669, 29, 1000, 8789, 60, 800, 3726, 3726, 31, 22, 79, 228, 20, 44, 568, 1000, 8789, 26, 14, 64, 85, 27, 78, 669, 9, 630, 1276, 57, 186, 254, 11034, 13, 118, 4175, 5660, 18, 26, 568, 1000, 8789, 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...
Apache/Rails/Passenger Displaying Site Index? === I have a Rails app that I have successfully tested with Mongrel and Webkit. Now I want to test deployment. I set up a VMWare Image using Ubuntu 8.04. I have installed Rails following this method [https://help.ubuntu.com/community/RubyOnRails][1] with the exception of using Gems 1.3 instead of 1.2. I have configured and installed Passenger. However, when I visit my sites index (http://some.ip.that.i'm.testing/) I simply get the directory index of my rails site. I should note that since I'm testing I just dumped my app in /var/www. My Apache2 error.log file shows this and this only: > [Tue Sep 30 15:10:41 2008] [notice] Apache/2.2.8 (Ubuntu) Phusion_Passenger/2.0.3 configured -- resuming normal operations Any idea what could be causing this problem? It seems Passenger is configured properly, but I'm not sure why my rails app is not displaying and why the site's directory listing is. Thanks. [1]: https://help.ubuntu.com/community/RubyOnRails
0
[ 2, 17140, 118, 7301, 18, 118, 6201, 219, 1674, 17418, 689, 4348, 60, 800, 3726, 3726, 31, 57, 21, 2240, 18, 4865, 30, 31, 57, 3673, 7631, 29, 21028, 7256, 17, 2741, 13703, 9, 130, 31, 259, 20, 1289, 10475, 9, 31, 309, 71, 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...
How do you avoid adding timestamp fields to your tables? === I have a question regarding the two additional columns (timeCreated, timeLastUpdated) for each record that we see in many solutions. My question: Is there a better alternative? Scenario: You have a huge DB (in terms of tables, not records), and then the customer comes and asks you to add "timestamping" to 80% of your tables. I believe this can be accomplished by using a separate table (TIMESTAMPS). This table would have, in addition to the obvious timestamp column, the table name and the primary key for the table being updated. (I'm assuming here that you use an int as primary key for most of your tables, but the table name would most likely have to be a string). To picture this suppose this basic scenario. We would have two tables: PAYMENT :- (your usual records) TIMESTAMP :- {current timestamp} + {`TABLE_UPDATED`, `id_of_entry_updated`, `timestamp_type`} Note that in this design you don't need those two "extra" columns in your native payment object (which, by the way, might make it thru your ORM solution) because you are now indexing by `TABLE_UPDATED` and `id_of_entry_updated`. Ian addition, `timestamp_type` will tell you if the entry is for insertion (e.g "1"), update (e.g "2"), and anything else you may want to add, like "deletion". I would like to know what do you think about this design. I'm most interested in best practices, what works and scales over time. References, links, blog entries are more than welcome. I know of at least one patent (pending) that tries to address this problem, but it seems details are not public at this time. Cheers, Eduardo
0
[ 2, 184, 107, 42, 2658, 4721, 436, 38, 10158, 2861, 20, 154, 7484, 60, 800, 3726, 3726, 31, 57, 21, 1301, 3467, 14, 81, 1351, 7498, 13, 5, 891, 18475, 15, 85, 8558, 576, 43, 1669, 6, 26, 206, 571, 30, 95, 196, 19, 151, 6776, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 log analysis tool that you used? === I'm starting to work on an existing project that has very verbose logging and the logs are a real pain to go through. Have you guys ever used any tools for log analysis/parsing? Can you recommend me something powerful and easy to customize and use? At first I thought I should write a tool to parse the logs, but I'm thinking maybe something like that already exists. Thank you for the help in advance.
0
[ 2, 98, 25, 14, 246, 6738, 2495, 5607, 30, 42, 147, 60, 800, 3726, 3726, 31, 22, 79, 1422, 20, 170, 27, 40, 3149, 669, 30, 63, 253, 9504, 6641, 13, 13919, 17, 14, 18893, 50, 21, 683, 1257, 20, 162, 120, 9, 57, 42, 2776, 462, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Reading .resx files programatically === I have an application where the contents of e-mails that get sent are stored in a .resx file. This is an ASP.Net application, the .resx file lives in /App_GlobalResources When I need to send an e-mail, i'm reading this using: HttpContext.GetGlobalResourceObject("MailContents", "EmailID").ToString Now, I need to use the same mailing method from another project (not a website). The mailing method is in a DLL that all the projects in the solution share. In this other project, I obviously don't have an HttpContext. How can I read these resources? My current approach is, inside the Mailing class, check whether HttpContext.Current is null, and if so, use a separate method. The separate method I'm looking at right now (after resigning myself to the fact that there's nothing better) is to have the path to the .resx file of the website stored in the app.config file, and somehow read that file. I started trying with System.Resources.ResourceReader, but it looks like it wants a .resources file, not a .resx one. Any ideas?
0
[ 2, 1876, 13, 9, 99, 18, 396, 6488, 625, 721, 8438, 800, 3726, 3726, 31, 57, 40, 3010, 113, 14, 8478, 16, 13, 62, 8, 8079, 18, 30, 164, 795, 50, 8214, 19, 21, 13, 9, 99, 18, 396, 3893, 9, 48, 25, 40, 28, 306, 9, 2328, 301...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Beginner Help for Developing Web Pages for Smart Phones === I have just started authoring web pages for use on "smart phones". I need to target Blackberry, WinCE, iPhone, etc. What resources or books would you recommend for someone with ample web and software development experience but no experience developing UI for these devices? What emulation kits would you recommend, and how accurately do they represent the real thing?
0
[ 2, 26931, 448, 26, 3561, 2741, 4434, 26, 3978, 14830, 800, 3726, 3726, 31, 57, 114, 373, 1314, 68, 2741, 4434, 26, 275, 27, 13, 7, 18, 9534, 14830, 7, 9, 31, 376, 20, 2935, 27367, 15, 26818, 15, 21024, 15, 2722, 9, 98, 2566, 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...
Ruby / Perl / Python / etc. tutorial site - only code === A few weeks ago I've run into a site that had tutorials for many languages including Perl, Ruby, Python... the concept was that it basicly showed you the code itself of the given language and teached you like that, so the whole tutorial was a great amount of code and some comments in it. The only problem is that I forgot to bookmark it and I can't find it anywhere... anyone knows its address? Thanks.
0
[ 2, 10811, 13, 118, 416, 255, 13, 118, 20059, 13, 118, 2722, 9, 29724, 689, 13, 8, 104, 1797, 800, 3726, 3726, 21, 310, 1342, 1464, 31, 22, 195, 485, 77, 21, 689, 30, 41, 29724, 18, 26, 151, 2556, 215, 416, 255, 15, 10811, 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...
What is the easiest way to find out how much memory an object uses in .NET? === What is the easiest way to find out how much memory an object uses in .NET? Preferably without having to resort to a third party tool. Marshal.SizeOf or the sizeof operator look useful but only work with a restricted range of types. Some related posts: - [Object Memory Analysis in .NET][1] - [Does an empty array in .NET use any space?][2] [1]: http://stackoverflow.com/questions/109836/object-memory-analysis-in-net [2]: http://stackoverflow.com/questions/151936/does-an-empty-array-in-net-use-any-space
0
[ 2, 98, 25, 14, 27237, 161, 20, 477, 70, 184, 212, 1912, 40, 3095, 2027, 19, 13, 9, 2328, 60, 800, 3726, 3726, 98, 25, 14, 27237, 161, 20, 477, 70, 184, 212, 1912, 40, 3095, 2027, 19, 13, 9, 2328, 60, 6369, 4801, 366, 452, 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...
SQLAlchemy and kinterbasdb in separate apps under mod_wsgi === I'm trying to develop an app using turbogears and sqlalchemy. There is already an existing app using kinterbasdb directly under mod_wsgi on the same server. When both apps are used, neither seems to recognize that kinterbasdb is already initialized Is there something non-obvious I am missing about using sqlalchemy and kinterbasdb in separate apps? In order to make sure only one instance of kinterbasdb gets initialized and both apps use that instance, does anyone have suggestions?
0
[ 2, 4444, 10834, 2569, 915, 17, 680, 6280, 6093, 9007, 19, 1725, 4865, 18, 131, 7226, 1, 10268, 2234, 800, 3726, 3726, 31, 22, 79, 749, 20, 2803, 40, 4865, 568, 12036, 834, 5446, 17, 4444, 10834, 2569, 915, 9, 80, 25, 614, 40, 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...
How can I have two different drop down menus depend on the same parent menu? === I have two drop down menus that I want populated with identical data depending on what is selected on the parent drop down menu. Right now, I am using a javascript library that populates one child drop down menu based on a parent, but I need to have two drop down menus populated simultaneously.
0
[ 2, 184, 92, 31, 57, 81, 421, 2804, 125, 11379, 18, 12547, 27, 14, 205, 4766, 11379, 60, 800, 3726, 3726, 31, 57, 81, 2804, 125, 11379, 18, 30, 31, 259, 11111, 29, 6323, 1054, 4758, 27, 98, 25, 1704, 27, 14, 4766, 2804, 125, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Development PC: AMD vs Intel and 32-bit vs 64-bit === I am looking to purchase a new development PC. My budget is not more than $1,000 USD (including monitor). I am open to laptop (desktop replacement type) or the traditional desktop PC would do just fine. My primary development environment will be Microsoft, Visual Studio 2008 (and support of older Visual Studio 6 code as well). SQL Server 2005, 2008 as well as legacy support of SQL Server 2000. Microsoft Office 2003, potential to install 2007 but support as far back as Office 2000. The software I will wrote and support will be Windows XP mostly, but some Vista. I am going to have to assume there are 64-bit implementations out there to install to. My first confusion begins with choosing AMD or Intel. My concern is that there is a compatibility issue with building software using Visual Studio in an AMD environment. I dont have any evidence, its just a concern that hopefully someone will clear up for me. Last, I am confused about 32-bit and 64-bit installations. Should I stick with the least common denominator (32-bit) even though 64-bit is steadily gaining ground? I am aware that the 64-bit operating systems will address over 4G of RAM and that I like because I would like to set up as many Virtual Machines for test environments as possible, and may have many active at once.. I am not looking for the dream machine, just a machine with a monitor and the best processor for about $1000 that will allow me to write software for the majority of machines out there.
0
[ 2, 522, 5168, 45, 589, 43, 4611, 14635, 17, 2512, 8, 3326, 4611, 4384, 8, 3326, 800, 3726, 3726, 31, 589, 699, 20, 3301, 21, 78, 522, 5168, 9, 51, 3391, 25, 52, 91, 119, 28995, 182, 43, 13, 5, 3970, 7626, 6, 9, 31, 589, 368,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
brokenImageSkin dimensions in Flex === I am trying to implement a custom "broken image" icon to appear if I cannot load an image. To accomplish this, I used the brokenImageSkin parameter, but it renders the image at its true resolution, which ends up cutting off the image if the size of the control is constrained. <mx:Image brokenImageSkin="@Embed('/assets/placeholder.png')" source="http://www.example.com/bad_url.png"/> How can I scale the brokenImageSkin to a custom width and height?
0
[ 2, 2023, 22039, 18, 1767, 9913, 19, 14409, 800, 3726, 3726, 31, 589, 749, 20, 8713, 21, 5816, 13, 7, 27660, 1961, 7, 9801, 20, 1893, 100, 31, 1967, 6305, 40, 1961, 9, 20, 14570, 48, 15, 31, 147, 14, 2023, 22039, 18, 1767, 18906,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 one get started with procedural generation? === [Procedural generation][1] has been brought into the spotlight recently (by Spore, MMOs, etc), and it seems like an interesting/powerful programming technique.<br /><br /> My questions are these: - Do you know of any mid-sized projects that utilize procedural generation techniques? - What language/class of languages is best for procedural generation? - Can you use procedural generation for "serious" code? (i.e., not a game) [1]: http://en.wikipedia.org/wiki/Procedural_generation
0
[ 2, 184, 630, 53, 164, 373, 29, 26429, 2782, 60, 800, 3726, 3726, 636, 15617, 69, 10018, 2782, 500, 2558, 165, 500, 63, 74, 809, 77, 14, 19135, 1989, 13, 5, 779, 13, 18, 11742, 15, 1620, 759, 15, 2722, 6, 15, 17, 32, 2206, 101,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Simple Debounce Routine === Do you have a simple debounce routine handy to deal with a single switch input? This is a simple bare metal system without any OS. I would like to avoid a looping construct with a specific count, as the processor speed might fluctuate.
0
[ 2, 1935, 12406, 11792, 8275, 800, 3726, 3726, 107, 42, 57, 21, 1935, 12406, 11792, 8275, 20277, 20, 1183, 29, 21, 345, 5521, 6367, 60, 48, 25, 21, 1935, 4856, 1484, 329, 366, 186, 13, 759, 9, 31, 83, 101, 20, 2658, 21, 5293, 68,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0...
Stored Procedure Default Value === I'm a newbie when it comes to SQL. When creating a stored procedure with parameters as such: @executed bit, @failure bit, @success bit, @testID int, @time float = 0, @name varchar(200) = '', @description varchar(200) = '', @executionDateTime nvarchar(max) = '', @message nvarchar(max) = '' This is the correct form for default values in T-SQL? I have tried to use NULL instead of ''. When I attempted to execute this procedure through C# I get an error referring to the fact that description is expected but not provided. When calling it like this: cmd.Parameters["@description"].Value = result.Description; result.Description is null. Should this not default to NULL (well '' in my case right now) in SQL? Here's the calling command: cmd.CommandText = "EXEC [dbo].insert_test_result @executed, @failure, @success, @testID, @time, @name, @description, @executionDateTime, @message;"; ... cmd.Parameters.Add("@description", SqlDbType.VarChar); cmd.Parameters.Add("@executionDateTime", SqlDbType.VarChar); cmd.Parameters.Add("@message", SqlDbType.VarChar); cmd.Parameters["@name"].Value = result.Name; cmd.Parameters["@description"].Value = result.Description; ... try { connection.Open(); cmd.ExecuteNonQuery(); } ... finally { connection.Close(); }
0
[ 2, 8214, 7004, 12838, 1923, 800, 3726, 3726, 31, 22, 79, 21, 78, 5893, 76, 32, 1624, 20, 4444, 255, 9, 76, 2936, 21, 8214, 7004, 29, 12905, 28, 145, 45, 13, 1, 1706, 17194, 1427, 1142, 15, 13, 1, 24910, 4221, 1142, 15, 13, 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...
Separator attribute not working in SolPartMenu on DotNetNuke skin.ascx === I can get rootmenuitemlefthtml and rootmenuitemrighthtml to emit but not separator. Tried CDATA wrapping and setting SeparatorCssClass. I just want pipes between root menu items. <dnn:SOLPARTMENU runat="server" id="dnnSOLPARTMENU" Separator="<![CDATA[|]]>" SeparatorCssClass="MainMenu_SeparatorCSS" usearrows="false" userootbreadcrumbarrow="false" usesubmenubreadcrumbarrow="false" rootmenuitemlefthtml="&nbsp;&lt;span&gt;&nbsp;&nbsp;&nbsp;" rootmenuitemrighthtml="&nbsp;&nbsp;&nbsp;&lt;/span&gt;" rootmenuitemcssclass="rootmenuitem" rootmenuitemselectedcssclass="rootmenuitemselected" rootmenuitembreadcrumbcssclass="rootmenuitembreadcrumb" submenucssclass="submenu" submenuitemselectedcssclass="submenuitemselected" submenuitembreadcrumbcssclass="submenuitembreadcrumb" CSSNodeSelectedRoot="rootmenuitembreadcrumb" CSSNodeSelectedSub="submenuitembreadcrumb" MouseOverAction="False" MouseOutHideDelay="0" delaysubmenuload="true" level="Root" />
0
[ 2, 1353, 3574, 3457, 35, 14755, 52, 638, 19, 7176, 3091, 755, 291, 27, 14123, 2328, 4215, 1048, 1188, 9, 472, 150, 396, 800, 3726, 3726, 31, 92, 164, 5900, 755, 11193, 1503, 9742, 15895, 17, 5900, 755, 11193, 1503, 4183, 15895, 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...
Flash rendering: optimisation tips and tricks === I'm about to push out a website soon and so I've gotten in the last stages. Time to optimize the baby! The website performs pretty good overall, with an average framerate of 32fps. But at some heavy animation parts it likes to drop a couple of frames to about 22fps. Which is not that horrible. But I'm tweaking it as much as possible to keep it running at the highest speed possible. I might overlooked some tips and tricks to make this baby run even smoother. So hereby I open this thread to share whatever ninja tricks ever helped you in the past. A couple of mine which I can think of right now: **Sequencing the animation:** Let as less as possible transitions happen at the same time, try to make it act more as a transformer, one thing at a time. Next to gaining speed in animation, you probably end up gaining more flow. **Keep the animating objects as small as possible:** So flash has to calculate less pixels at the same time. **cacheAsBitmap = true:** Those big movieclips, vector shapes being moved around, are probably quicker moved when they are cached as a bitmap. Might take up some space in your memory, but anything for higher framerates ;) **Destroy everything you do not use:** Set those unused movieclips to null and then remove it as a child. So your garbage collector takes care of it.
4
[ 2, 4433, 15307, 45, 19259, 4330, 11034, 17, 13747, 800, 3726, 3726, 31, 22, 79, 88, 20, 3250, 70, 21, 2271, 651, 17, 86, 31, 22, 195, 4094, 19, 14, 236, 4891, 9, 85, 20, 22864, 14, 1578, 187, 14, 2271, 11563, 1772, 254, 1677, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 inherit from a sealed class using reflection in .Net? === Before you start firing at me, I'm NOT looking to do this, but someone in [another post][1] said it was possible. How is it possible? I've never heard of inheriting from anything using reflection. But I've seen some strange things... [1]: http://stackoverflow.com/questions/154698/how-can-i-keep-a-class-from-being-inherited-in-c
0
[ 2, 184, 92, 42, 17569, 37, 21, 10854, 718, 568, 9138, 19, 13, 9, 2328, 60, 800, 3726, 3726, 115, 42, 799, 7139, 35, 55, 15, 31, 22, 79, 52, 699, 20, 107, 48, 15, 47, 737, 19, 636, 14945, 678, 500, 2558, 165, 500, 87, 32, 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...
Microsoft Excel mangles Diacritics in .csv files? === I am programmatically exporting data into a .csv test filie. Example data: Numéro 1 (note the accented e). When I open this file in MS excel is displays as Numéro 1 I am able to open this in a text editor (UltraEdit) which displays it correctly. UE reports the character is decimal 233. How can I export text data in a .csv file so that MS excel will correctly render it?
0
[ 2, 7099, 20700, 17200, 1355, 6842, 10982, 11677, 19, 13, 9, 6824, 710, 6488, 60, 800, 3726, 3726, 31, 589, 625, 6732, 1326, 7487, 68, 1054, 77, 21, 13, 9, 6824, 710, 1289, 21830, 62, 9, 823, 1054, 45, 15764, 111, 137, 13, 5, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Make DocumentBuilder.parse ignore DTD references === When I parse my xml file (variable f) in this method. I get an error *C:\Documents and Settings\joe\Desktop\aicpcudev\OnlineModule\map.dtd (The system cannot find the path specified)*. I know I do not have the dtd, nor do I need it. How can I parse this File object into a Document object while ignoring DTD reference errors. private static Document getDoc(File f, String docId) throws Exception{ DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(f); return doc; }
0
[ 2, 233, 4492, 20904, 9, 3574, 870, 7174, 13, 43, 38, 43, 7231, 800, 3726, 3726, 76, 31, 2017, 870, 51, 23504, 3893, 13, 5, 8220, 579, 398, 6, 19, 48, 2109, 9, 31, 164, 40, 7019, 1637, 150, 45, 1, 28132, 18, 17, 12410, 1, 198...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 come classes in subfolders in my App_Code folder are not being found correctly? === I am getting the following error when I put class files in subfolders of my App_Code folder: errorCS0246: The type or namespace name 'MyClassName' could not be found (are you missing a using directive or an assembly reference?) This class is not in a namespace at all. Any ideas?
0
[ 2, 184, 340, 2684, 19, 972, 8814, 445, 19, 51, 4865, 1, 9375, 19294, 50, 52, 142, 216, 12044, 60, 800, 3726, 3726, 31, 589, 1017, 14, 249, 7019, 76, 31, 442, 718, 6488, 19, 972, 8814, 445, 16, 51, 4865, 1, 9375, 19294, 45, 701...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 a good source to learn about QEMU? === What book or website would you recommend to learn about QEMU? I'd like to see some usage examples as well as how to use the APIs.
0
[ 2, 98, 22, 18, 21, 254, 1267, 20, 2484, 88, 2593, 62, 3677, 60, 800, 3726, 3726, 98, 360, 54, 2271, 83, 42, 12360, 20, 2484, 88, 2593, 62, 3677, 60, 31, 22, 43, 101, 20, 196, 109, 7514, 3770, 28, 134, 28, 184, 20, 275, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Best methodology for developing c# long running processor apps === I have several different c# worker applications that run various continuous tasks: sending emails from queue, importing new orders from website database to orders database, making database backups and restores, running data processing for OLTP -> OLAP, and other related tasks. Before, I released these as windows services, but currently I release them as regular console applications. They are all based on a common task runner framework I created, and I am happy with that, however I am not sure what is the best way to deploy these types of applications. I like the console version because it is quick and easy, and it is possible to quickly see program activity and output. The downside is that the worker computer has several console screens running and it gets messy. On the other hand the service method seems to take to long to deploy and I have to go through event logs to see messages. What are some experiences/comments on this?
0
[ 2, 246, 18653, 26, 3561, 272, 5910, 175, 946, 14762, 4865, 18, 800, 3726, 3726, 31, 57, 238, 421, 272, 5910, 7444, 3767, 30, 485, 617, 6357, 8674, 45, 4907, 8517, 18, 37, 22521, 15, 9010, 68, 78, 3204, 37, 2271, 6018, 20, 3204, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Filter ASP.NET web application's files when deploying === I want to deploy my web application (asp.net mvc), and I need to remove all the codebehind files from my project. Any scripts that you guys know of to do this?
0
[ 2, 11945, 28, 306, 9, 2328, 2741, 3010, 22, 18, 6488, 76, 17617, 68, 800, 3726, 3726, 31, 259, 20, 17617, 51, 2741, 3010, 13, 5, 472, 306, 9, 2328, 307, 8990, 6, 15, 17, 31, 376, 20, 4681, 65, 14, 1797, 24878, 6488, 37, 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, 0, 0, 0, 0...
How can I share application configuration in a .net application? === I've got a relatively large .Net system that consists of a number of different applications. Rather than having lots of different app.config files, I would like to share a single configuration file between all the apps. I would also like to have one version when developing on my machine, one version for someone else developing on their machine, one version for a test system and one version for a live system. Is there an easy way of doing this?
0
[ 2, 184, 92, 31, 1891, 3010, 8091, 19, 21, 13, 9, 2328, 3010, 60, 800, 3726, 3726, 31, 22, 195, 330, 21, 3109, 370, 13, 9, 2328, 329, 30, 2043, 16, 21, 234, 16, 421, 3767, 9, 864, 119, 452, 7503, 16, 421, 4865, 9, 14093, 2816...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Nested dropdown === I'm building a form with php/mysql. I've got a table with a list of locations and sublocations. Each sublocation has a parent location. A column "parentid" references another locationid in the same table. I now want to load these values into a dropdown in the following manner: --Location 1 ----Sublocation 1 ----Sublocation 2 ----Sublocation 3 --Location 2 ----Sublocation 4 ----Sublocation 5 etc. etc. Anyone got an elegant solution for doing this?
0
[ 2, 5618, 69, 2804, 2968, 800, 3726, 3726, 31, 22, 79, 353, 21, 505, 29, 13, 26120, 118, 915, 18, 22402, 9, 31, 22, 195, 330, 21, 859, 29, 21, 968, 16, 4095, 17, 972, 19032, 18, 9, 206, 972, 19032, 63, 21, 4766, 1474, 9, 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...
Embedded Web Server in .NET === I would like to embed a light weight web server in a Windows application developed in .NET. The web server has to support PHP. I have looked at Cassini, but it seems it is ASP.NET only. Any idea?
0
[ 2, 12138, 2741, 8128, 19, 13, 9, 2328, 800, 3726, 3726, 31, 83, 101, 20, 11911, 69, 21, 471, 1763, 2741, 8128, 19, 21, 1936, 3010, 885, 19, 13, 9, 2328, 9, 14, 2741, 8128, 63, 20, 555, 13, 26120, 9, 31, 57, 292, 35, 5913, 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, 0...
Connection error for sqlserver rake db:migrate === I am getting the following error: <blockquote> Open OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server <br> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.<br> HRESULT error code:0×80020009<br> Exception occurred.<br> </blockquote> I have tried following the directions here with no luck: http://wiki.rubyonrails.org/rails/pages/HowtoConnectToMicrosoftSQLServer Any ideas?
0
[ 2, 2760, 7019, 26, 4444, 255, 10321, 106, 21009, 13, 9007, 45, 10183, 5487, 800, 3726, 3726, 31, 589, 1017, 14, 249, 7019, 45, 13, 1, 12048, 8970, 591, 1, 368, 12116, 7019, 1797, 45, 28064, 7114, 264, 19, 7099, 12116, 13, 9007, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Setting background colour of Silverlight Listbox === How do I set the background colour of a listbox? I have a listbox with textblocks in it and there does not appear to be anyway that actually works to set the background colour of these controls, why is this seemingly so hard? In the interests of full disclosure I asked a similar [question][1] earlier [1]: http://stackoverflow.com/questions/152376/dynamically-setting-background-colour-of-a-silverlight-control-listbox#152502
0
[ 2, 2697, 2395, 4609, 16, 1172, 3130, 968, 5309, 800, 3726, 3726, 184, 107, 31, 309, 14, 2395, 4609, 16, 21, 968, 5309, 60, 31, 57, 21, 968, 5309, 29, 1854, 12048, 18, 19, 32, 17, 80, 630, 52, 1893, 20, 44, 2774, 30, 1121, 693,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Handling exceptions raised during method called via NSObject's performSelectorOnMainThread:withObject:waitUntilDone: === What happens to exceptions raised while in `myMethod:` if it is invoked via NSObject's `performSelectorOnMainThread:withObject:waitUntilDone:`? In particular, can I catch them in the scope of the call to `performSelectorOnMainThread` like this... @try { [self performSelectorOnMainThread:@selector(myMethod) withObject:nil waitUntilDone:YES]; } @catch(NSException *e) { //deal with exception raised in myMethod here?? } I realize that the semantics of this are weird if waitUntilDone is `NO`.
0
[ 2, 7988, 13392, 1127, 112, 2109, 227, 1197, 13, 2172, 23793, 22, 18, 11563, 16964, 248, 218, 6232, 96, 10647, 45, 1410, 23793, 45, 8195, 12772, 43, 849, 45, 800, 3726, 3726, 98, 5531, 20, 13392, 1127, 133, 19, 13, 1, 915, 5909, 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...
Ideal user feedback for HTML input === Let's face it: writing proper, standards compliant HTML is quite difficult to do. Writing semantic HTML is even more so, but I don't think it's possible for a computer to figure that out. So my question to you is what would the "ideal" feedback for a user who entered HTML be? Would it be a W3C validator style list of errors and corresponding line numbers and columns? Would it be a annotated code display of highlighted lines, explanations of the errors, and possible fixes? A spell-check style mode where you handle each error separately? Would it be <em>not</em> giving them any error information at all? Also, what types of errors are a good idea to tell users? (Some broad classes of errors include parsing errors, nesting errors (i.e. putting a div in a b tag) and well-formedness errors.)
0
[ 2, 5628, 4155, 13111, 26, 13, 15895, 6367, 800, 3726, 3726, 408, 22, 18, 276, 32, 45, 1174, 4119, 15, 3364, 13, 25509, 13, 15895, 25, 1450, 1956, 20, 107, 9, 1174, 17220, 13, 15895, 25, 166, 91, 86, 15, 47, 31, 221, 22, 38, 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...
Trigger button click with JavaScript on Enter key in Text Box === I have a simple page, one text input and one button (see below). How can I use JavaScript to trigger the button's click event when the Enter key is pressed inside the text box? <input type="text" id="txtSearch" /> <input type="button" id="btnSearch" value="Search" onclick="doSomething();" />
0
[ 2, 7286, 5167, 10840, 29, 8247, 8741, 27, 2830, 1246, 19, 1854, 1649, 800, 3726, 3726, 31, 57, 21, 1935, 2478, 15, 53, 1854, 6367, 17, 53, 5167, 13, 5, 1798, 1021, 6, 9, 184, 92, 31, 275, 8247, 8741, 20, 7286, 14, 5167, 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...
Windows API commctrl.h using application doesn't work on machines without the Platform SDK === I have written something that uses the following includes: #include <math.h> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <commctrl.h> This code works fine on 2 machines with the Platform SDK installed, but doesn't run (neither debug nor release versions) on clean installs of windows (VMs of course). It dies with the quite familiar: --------------------------- C:\Documents and Settings\Someone\Desktop\DesktopRearranger.exe --------------------------- C:\Documents and Settings\Someone\Desktop\DesktopRearranger.exe This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. --------------------------- OK --------------------------- How can I make it run on clean installs? Which dll is it using which it can't find? My bet is on commctrl, but can someone enlighten me on why it's isn't with every windows? Further more, if anyone has tips on how to debug such a thing, as my CPP is already rusty, as it seems :)
0
[ 2, 1936, 21, 2159, 11951, 4812, 6362, 9, 252, 568, 3010, 1437, 22, 38, 170, 27, 6035, 366, 14, 2452, 13, 18, 43, 197, 800, 3726, 3726, 31, 57, 642, 301, 30, 2027, 14, 249, 1103, 45, 6926, 22640, 13, 1, 14825, 9, 252, 1, 6926, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
"network location cannot be reached" error in IIS6. === I am troubleshooting an issue with IIS6 where all sites bound to ip addresses other than the default give an error message "network location cannot be reached" when trying to start any of these sites. The nic has all the ip addresses configured. When I do a httpcfg query iplisten, I see only the default ip address. When I added them with httpcfg, then all the web sites stopped working so I figured I didn something wrong so I removed them. Two questions: 1- Why are those websites refusing to start? 2- What should be in the result of httpcfg query iplisten? All ip addresses or just one? The websites used to work fine and something has changed. I applied a few Windows updates but I am not sure if they broke anything (I doubt it.. otherwise hundreds of web hosting companies would be screaming)
0
[ 2, 13, 7, 24106, 1474, 1967, 44, 664, 7, 7019, 19, 595, 18, 379, 9, 800, 3726, 3726, 31, 589, 2572, 12511, 68, 40, 1513, 29, 595, 18, 379, 113, 65, 3259, 4138, 20, 15735, 12636, 89, 119, 14, 12838, 590, 40, 7019, 2802, 13, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Another locking question (ugh) === I'm trying to get my multithreading understanding locked (har har!) down. I'm doing my best to teach myself, but some of these issues need clarification. I've gone through three iterations with a piece of code, experimenting with locking. The simple, procedural approach, with minimalistic locking. var managerThread = new Thread ( new ThreadStart(this.ManagerThreadEntryPoint) ); lock (this.locker) { managerThread.Priority = this.managerThreadPriority; } managerThread.Name = string.Format("Manager Thread ({0})", managerThread.GetHashCode()); managerThread.Start(); A single statement to create and launch a new thread, but the lock appears to be scoped too large, to include the creation and launching of the thread. The compiler doesn't somehow magically know that the lock can be released after this.managerThreadPriority is used. This kind of naive locking should be avoided, I would assume. lock (this.locker) { new Thread ( new ThreadStart(this.ManagerThreadEntryPoint) ) { Priority = this.managerThreadPriority, Name = string.Format("Manager Thread ({0})", GetHashCode()) } .Start(); } A single statement to create and launch a new thread, with a "embedded" lock only around the shared field. new Thread ( new ThreadStart(this.ManagerThreadEntryPoint) ) { Priority = new Func<ThreadPriorty>(() => { lock (this.locker) { return this.managerThreadPriority; } })(), Name = string.Format("Manager Thread ({0})", GetHashCode()) } .Start(); Care to comment about the scoping of lock statements? For example, if I need to use a field in an <code>if</code> statement and that field needs to be locked, should I avoid locking the entire <code>if</code> statement? E.g. bool isDumb; lock (this.locker) isDumb = this.FieldAccessibleByMultipleThreads; if (isDumb) ... Vs. lock (this.locker) { if (this.FieldAccessibleByMultipleThreads) ... }
0
[ 2, 226, 17538, 1301, 13, 5, 9294, 6, 800, 3726, 3726, 31, 22, 79, 749, 20, 164, 51, 1889, 96, 22883, 3260, 4011, 13, 5, 2269, 2431, 187, 6, 125, 9, 31, 22, 79, 845, 51, 246, 20, 5348, 992, 15, 47, 109, 16, 158, 1549, 376, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Dynamic SQL - Search Query - Variable Number of Keywords === We are trying to update our classic asp search engine to protect it from SQL injection. We have a VB 6 function which builds a query dynamically by concatenating a query together based on the various search parameters. We have converted this to a stored procedure using dynamic sql for all parameters except for the keywords. The problem with keywords is that there are a variable number words supplied by the user and we want to search several columns for each keyword. Since we cannot create a separate parameter for each keyword, how can we build a safe query? Example @CustomerId AS INT @Keywords AS NVARCHAR(MAX) @sql = 'SELECT event_name FROM calendar WHERE customer_id = @CustomerId ' --(loop through each keyword passed in and concatenate) @sql = @sql + 'AND (event_name LIKE ''%' + @Keywords + '%'' OR event_details LIKE ''%' + @Keywords + '%'')' EXEC sp_executesql @sql N'@CustomerId INT, @CustomerId = @CustomerId What is the best way to handle this and maintaining protection from SQL injection?
0
[ 2, 7782, 4444, 255, 13, 8, 2122, 25597, 13, 8, 7612, 234, 16, 1246, 12827, 800, 3726, 3726, 95, 50, 749, 20, 11100, 318, 2732, 28, 306, 2122, 1406, 20, 2196, 32, 37, 4444, 255, 13646, 9, 95, 57, 21, 13, 20468, 400, 1990, 56, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I get the build to automatically update a web service reference in Flex? === From within FlexBuilder3, I can go to "Data/Manage Web Services..." select a web service, and click "Update" to ensure that my code and the server are in sync. How do I automate this so that each time I build, the automatically generated web service code is regenerated? If the server interface changes during development but my code doesn't, it won't work anyway - I'd rather have a compilation error than a runtime error I had to track down to a changed web service interface.
0
[ 2, 184, 107, 31, 164, 14, 1895, 20, 7499, 11100, 21, 2741, 365, 2801, 19, 14409, 60, 800, 3726, 3726, 37, 363, 14409, 20904, 240, 15, 31, 92, 162, 20, 13, 7, 18768, 118, 177, 1303, 2741, 687, 9, 9, 9, 7, 5407, 21, 2741, 365, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Capistrano not restarting Mongrel clusters properly === I have a cluster of three mongrels running under nginx, and I deploy the app using Capistrano 2.4.3. When I "cap deploy" when there is a running system, the behavior is: 1. The app is deployed. The code is successfully updated. 2. In the cap deploy output, there is this: - executing "sudo -p 'sudo password: ' mongrel\_rails cluster::restart -C /var/www/rails/myapp/current/config/mongrel_cluster.yml" - servers: ["myip"] - [myip] executing command - ** [out :: myip] stopping port 9096 - ** [out :: myip] stopping port 9097 - ** [out :: myip] stopping port 9098 - ** [out :: myip] already started port 9096 - ** [out :: myip] already started port 9097 - ** [out :: myip] already started port 9098 3. I check immediately on the server and find that Mongrel is still running, and the PID files are still present for the previous three instances. 4. A short time later (less than one minute), I find that Mongrel is no longer running, the PID files are gone, and it has failed to restart. 5. If I start mongrel on the server by hand, the app starts up just fine. In my deploy.rb, I am specifying this: require 'mongrel_cluster/recipes' set(:mongrel_conf) { "#{current_path}/config/mongrel_cluster.yml" } set :application, "myapp" set :keep_releases, 5 set :runner, nil set :domain, "myip" set :scm, :git set :deploy_via, :checkout ssh_options[:paranoid] = false set :use_sudo, true .... # standard roles stuff and some callbacks omitted. set :deploy_to, "/var/www/rails/#{application}" task :update_config, :roles => [:app] do cluster_config = %{--- ## My cluster config is here. } run "cp -Rf #{shared_path}/config/* #{release_path}/config/" put cluster_config, "#{release_path}/config/mongrel_cluster.yml" end It seems like 'mongrel\_rails cluster::restart' isn't properly waiting for a full stop before attempting a restart of the cluster. How do I diagnose and fix this issue?
0
[ 2, 2605, 702, 17555, 52, 22767, 68, 21028, 7256, 14497, 7428, 800, 3726, 3726, 31, 57, 21, 7460, 16, 132, 21028, 7256, 18, 946, 131, 13, 2723, 108, 396, 15, 17, 31, 17617, 14, 4865, 568, 2605, 702, 17555, 172, 9, 300, 9, 240, 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...
Cheapest Java Code Signing Certificate? (not self-signed) === Does anyone know where I can get an inexpensive Java code signing certificate? Everywhere I look wants $200 to $300 per year! Unfortunately I cannot use a self-signed one, I'm trying to get rid of the scary warnings so that users will be more likely to accept my application. And as far as I know (per [this question][1]), it has to be a code signing certificate, it cannot be a SSL certificate. [1]: http://stackoverflow.com/questions/78869/java-code-signing-certificatessame-as-ssl-certificate
2
[ 2, 9148, 1430, 8247, 1797, 5479, 6259, 60, 13, 5, 1270, 1119, 8, 13472, 6, 800, 3726, 3726, 630, 1276, 143, 113, 31, 92, 164, 40, 25985, 8247, 1797, 5479, 6259, 60, 6417, 31, 361, 2846, 28448, 20, 5341, 2032, 416, 159, 187, 6200, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Why is it impossible, without attempting I/O, to detect that TCP socket was gracefully closed by peer? === As a follow up to a recent question (http://stackoverflow.com/questions/151590/java-how-do-detect-a-remote-side-socket-close), I wonder why it is impossible in Java, without attempting reading/writing on a TCP socket, to detect that the socket has been gracefully closed by the peer? This seems to be the case regardless of whether one uses the pre-NIO <code>Socket</code> or the NIO <code>SocketChannel</code>. When a peer gracefully closes a TCP connection, the TCP stacks on both sides of the connection know about the fact. Why isn't there a method in <code>Socket</code> or <code>SocketChannel</code> that can query the TCP stack to see whether the underlying TCP connection has been terminated? Is it that the TCP stack doesn't provide such status information? Or is it a design decision to avoid a costly call into the kernel? (I understand that it's not always possible for the TCP stack to know whether the connection was closed by peer, because packets might be lost, but I'm talking about the situation where the graceful TCP close succeeded on both sides.)
0
[ 2, 483, 25, 32, 3992, 15, 366, 6314, 31, 118, 111, 15, 20, 9092, 30, 13, 38, 7439, 18482, 23, 28138, 827, 34, 7617, 60, 800, 3726, 3726, 28, 21, 1740, 71, 20, 21, 1764, 1301, 13, 5, 21127, 6903, 25325, 2549, 9990, 9, 960, 118,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you truncate all tables in a database using TSQL? === I have a test environment for a database that I want to reload with new data at the start of a testing cycle. I am not interested in rebuilding the entire database- just simply "re-setting" the data. What is the best way to remove all the data from all the tables using TSQL? Are there system stored procedures, views, etc. that can be used? I do not want to manually create and maintain truncate table statements for each table- I would prefer it to be dynamic.
0
[ 2, 184, 107, 42, 22328, 62, 65, 7484, 19, 21, 6018, 568, 13, 38, 18, 22402, 60, 800, 3726, 3726, 31, 57, 21, 1289, 2307, 26, 21, 6018, 30, 31, 259, 20, 27339, 29, 78, 1054, 35, 14, 799, 16, 21, 4431, 4150, 9, 31, 589, 52, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Help me understand how QA works in Scrum === Apparently we use the Scrum development methodology. Here's generally how it goes: Developers thrash around trying to accomplish their tasks. Generally the tasks take most of the sprint to complete. QA pesters Dev to release something they can test, Dev finally throws some buggy code out to QA a day or two before the sprint ends and spends the rest of the time fixing bugs that QA is finding. QA can never complete the tasks on time, sprints are rarely releasable on time, and Dev and QA have a miserable few days at the end of the sprint. How is scrum supposed to work when releasable Dev tasks take up most of the sprint?
0
[ 2, 448, 55, 1369, 184, 7234, 693, 19, 26562, 800, 3726, 3726, 3083, 95, 275, 14, 26562, 522, 18653, 9, 235, 22, 18, 1469, 184, 32, 1852, 45, 10168, 14746, 140, 749, 20, 14570, 66, 8674, 9, 1469, 14, 8674, 247, 127, 16, 14, 6672,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 < > functionality within C# === I have been learning about the basics of C# but havent come across a good explenation of what this is. var l = new List<string>(); I dont know what the < string > is doing or if its the List that is doing the magic. I have also seen objects been thrown within the < > tags. Can someone explain this to me please with examples. Also i would like to discourage fastest gun in the west with the no-fast-gun tag, so if you want to explain this in detail i will encourage it and downvote any fast gun replies. Thank you
0
[ 2, 98, 25, 14, 13, 1, 13, 1, 18548, 363, 272, 5910, 800, 3726, 3726, 31, 57, 74, 2477, 88, 14, 2125, 18, 16, 272, 5910, 47, 12460, 340, 464, 21, 254, 1396, 5106, 7914, 16, 98, 48, 25, 9, 4033, 644, 800, 78, 968, 1, 11130, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 hide the text limit line in netbeans 6.5? === Is there a way to hide the text limit line in netbeans 6.5?
0
[ 2, 184, 20, 3077, 14, 1854, 4496, 293, 19, 4275, 863, 5950, 400, 9, 264, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 3077, 14, 1854, 4496, 293, 19, 4275, 863, 5950, 400, 9, 264, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How do I sort in a Flex AdvancedDataGrid - callback isn't being called === I have an AdvancedDataGrid that uses customer grouping of data. Not all of the groups will be at the same level in the hierarchy, and groups can contain both groups and members. We have a sort callback, but it's not being called except for groups at the leaf-most levels. See code below for an example -- expand all of the groups, then click the sort column on "date of birth" to get a reverse sort by date of birth. (Oddly, for some unfathomable reason, the first ascending sort works.) We're not getting called for any of the data that's grouped at the same level as a group member. How do I fix this? Thanks. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" > <mx:Script> <![CDATA[ import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn; import mx.collections.HierarchicalData; import mx.utils.ObjectUtil; private var arrData : Array = [ { name: "User A", dob: "04/14/1980" }, { name: "User B", dob: "01/02/1975" }, { name: "Group A", children: [ { name: "User E", dob: "09/13/1972" }, { name: "User F", dob: "11/22/1993" } ] }, { name: "Group B", children: [ { name: "Group B1", children: [ { name: "User I", dob: "01/23/1984" }, { name: "User J", dob: "11/10/1948" } ] }, { name: "User G", dob: "04/09/1989" }, { name: "User H", dob: "06/20/1963" } ] }, { name: "User C", dob: "12/30/1977" }, { name: "User D", dob: "10/27/1968" } ]; private function date_sortCompareFunc(itemA:Object, itemB:Object):int { if ( itemA.hasOwnProperty("dob") && itemB.hasOwnProperty("dob")) { var dateA:Date = new Date(Date.parse(itemA.dob)); var dateB:Date = new Date(Date.parse(itemB.dob)); return ObjectUtil.dateCompare(dateA, dateB); } else if ( itemA.hasOwnProperty("dob")) { return 1; } else if (itemB.hasOwnProperty("dob")) { return -1; } return ObjectUtil.stringCompare(itemA.name, itemB.name); } private function date_dataTipFunc(item:Object):String { if (item.hasOwnProperty("dob")) { return dateFormatter.format(item.dob); } return ""; } private function label_dob(item:Object, col:AdvancedDataGridColumn):String { var dob:String=""; if(item.hasOwnProperty("dob")) { dob=item.dob; } return dob; } ]]> </mx:Script> <mx:DateFormatter id="dateFormatter" formatString="MMMM D, YYYY" /> <mx:AdvancedDataGrid id="adgTest" dataProvider="{new HierarchicalData(this.arrData)}" designViewDataType="tree" width="746" height="400"> <mx:columns> <mx:AdvancedDataGridColumn headerText="Name" dataField="name"/> <mx:AdvancedDataGridColumn dataField="dob" headerText="Date of birth" labelFunction="label_dob" sortCompareFunction="date_sortCompareFunc" showDataTips="true" dataTipFunction="date_dataTipFunc" /> </mx:columns> </mx:AdvancedDataGrid> </mx:Application>
0
[ 2, 184, 107, 31, 2058, 19, 21, 14409, 2255, 18768, 16375, 13, 8, 645, 1958, 2532, 22, 38, 142, 227, 800, 3726, 3726, 31, 57, 40, 2255, 18768, 16375, 30, 2027, 7705, 19288, 16, 1054, 9, 52, 65, 16, 14, 1170, 129, 44, 35, 14, 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...
Can HTML checkboxes be set to readonly? === I thought they could be, but as I'm not putting my money where my mouth was (so to speak) setting the readonly attribute doesn't actually seem to do anything. I'd rather not use Disabled, since I want the checked check boxes to be submitted with the rest of the form, I just don't want the client to be able to change them under certain circumstances.
0
[ 2, 92, 13, 15895, 2631, 5309, 160, 44, 309, 20, 1302, 4965, 60, 800, 3726, 3726, 31, 289, 59, 110, 44, 15, 47, 28, 31, 22, 79, 52, 3873, 51, 875, 113, 51, 725, 23, 13, 5, 656, 20, 1960, 6, 2697, 14, 1302, 4965, 35, 14755, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Adding Combo Box to setup using Orca === I am trying to display a combo box in a dialog during setup of a component. Currently, we have a Radio Button Group. I figured that replacing it with the combo box should be as simple as adding proper entries in the "ComboBox" table in the MSI and in the "Control" table, replacing the references to the radio button group with combobox in the appropriate dialog box. However this is not working. The setup blows up and gives an error #2885. [Windows Installer Error 2885: Failed to create the control [3] on the dialog [2]. from <a href="http://www.appdeploy.com/msierrors/detail.asp?id=564">here</a>.] Any ideas on how to do this? I can only use Orca apparently (thats what has been used since anyone can remember).
0
[ 2, 4721, 22621, 1649, 20, 18161, 568, 54, 793, 800, 3726, 3726, 31, 589, 749, 20, 3042, 21, 22621, 1649, 19, 21, 28223, 112, 18161, 16, 21, 5912, 9, 871, 15, 95, 57, 21, 603, 5167, 214, 9, 31, 5700, 30, 5496, 32, 29, 14, 22621...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
.NET - How can you split a "caps" delimited string into an array? === How do I go from this string: "ThisIsMyCapsDelimitedString" ...to this string: "This Is My Caps Delimited String" Fewest lines of code in VB.net is preferred but C# is also welcome. Cheers!
0
[ 2, 13, 9, 2328, 13, 8, 184, 92, 42, 2132, 21, 13, 7, 4666, 18, 7, 121, 23012, 3724, 77, 40, 7718, 60, 800, 3726, 3726, 184, 107, 31, 162, 37, 48, 3724, 45, 13, 7, 1565, 756, 93, 4666, 18, 546, 23012, 11130, 7, 13, 9, 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...
Cross browser "jump to"/"scroll" textarea === I have a textarea with many lines of input, and a JavaScript event fires that necessitates I scroll the textarea to line 345. `scrollTop` sort of does what I want, except as far as I can tell it's pixel level, and I want something that operates on a line level. What also complicates things is that, afaik once again, it's not possible to make textareas not line-wrap.
0
[ 2, 919, 16495, 13, 7, 21925, 20, 7, 118, 7, 3862, 8694, 7, 1854, 17760, 800, 3726, 3726, 31, 57, 21, 1854, 17760, 29, 151, 1560, 16, 6367, 15, 17, 21, 8247, 8741, 807, 11327, 30, 22486, 160, 31, 12159, 14, 1854, 17760, 20, 293, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 get PHP to work with ADOdb and MySQL? === I'm trying to get a PHP site working in IIS on Windows Server with MySQL. I'm getting this error... Fatal error: Call to undefined function mysql_connect() in C:\inetpub\...\adodb\drivers\adodb-mysql.inc.php on line 363
0
[ 2, 184, 107, 31, 164, 13, 26120, 20, 170, 29, 21, 537, 9007, 17, 51, 18, 22402, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 164, 21, 13, 26120, 689, 638, 19, 595, 18, 27, 1936, 8128, 29, 51, 18, 22402, 9, 31, 22, 79, 1017, 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...
boost: fire and forget asyncronous function call? === I would like invoke a function call in a one shot manner. Whats the best way to do this in boost / c++? I would like to pass it two parameters and do not need a result.
0
[ 2, 10419, 45, 535, 17, 3856, 21, 9507, 19587, 1291, 1990, 645, 60, 800, 3726, 3726, 31, 83, 101, 28371, 21, 1990, 645, 19, 21, 53, 999, 3832, 9, 98, 18, 14, 246, 161, 20, 107, 48, 19, 10419, 13, 118, 272, 20512, 60, 31, 83, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0...
How do I get a Video Thumbnail in .Net? === I'm looking to implement a function that retrieves a single frame from an input video, so I can use it as a thumbnail. Something along these lines should work: // filename examples: "test.avi", "test.dvr-ms" // position is from 0 to 100 percent (0.0 to 1.0) // returns a bitmap byte[] GetVideoThumbnail(string filename, float position) { } Does anyone know how to do this in .Net 3.0? The correct solution will be the "best" implementation of this function. Bonus points for avoiding selection of blank frames.
0
[ 2, 184, 107, 31, 164, 21, 763, 5078, 325, 947, 19, 13, 9, 2328, 60, 800, 3726, 3726, 31, 22, 79, 699, 20, 8713, 21, 1990, 30, 11917, 18, 21, 345, 3523, 37, 40, 6367, 763, 15, 86, 31, 92, 275, 32, 28, 21, 5078, 325, 947, 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...
What columns can be used in OUTPUT INTO clause? === I'm trying to build a mapping table to associate the IDs of new rows in a table with those that they're copied from. The OUTPUT INTO clause seems perfect for that, but it doesn't seem to behave according to the documentation. My code: DECLARE @Missing TABLE (SrcContentID INT PRIMARY KEY ) INSERT INTO @Missing ( SrcContentID ) SELECT cshadow.ContentID FROM Private.Content AS cshadow LEFT JOIN Private.Content AS cglobal ON cshadow.Tag = cglobal.Tag WHERE cglobal.ContentID IS NULL PRINT 'Adding new content headers' DECLARE @Inserted TABLE (SrcContentID INT PRIMARY KEY, TgtContentID INT ) INSERT INTO Private.Content ( Tag, Description, ContentDate, DateActivate, DateDeactivate, SortOrder, CreatedOn, IsDeleted, ContentClassCode, ContentGroupID, OrgUnitID ) OUTPUT cglobal.ContentID, INSERTED.ContentID INTO @Inserted (SrcContentID, TgtContentID) SELECT Tag, Description, ContentDate, DateActivate, DateDeactivate, SortOrder, CreatedOn, IsDeleted, ContentClassCode, ContentGroupID, NULL FROM Private.Content AS cglobal INNER JOIN @Missing AS m ON cglobal.ContentID = m.SrcContentID Results in the error message: Msg 207, Level 16, State 1, Line 34 Invalid column name 'SrcContentID'. (line 34 being the one with the OUTPUT INTO) Experimentation suggests that only rows that are actually present in the target of the INSERT can be selected in the OUTPUT INTO. But this contradicts the docs in the books online. The article on **OUTPUT Clause** has example E that describes a similar usage: > The OUTPUT INTO clause returns values > from the table being updated > (WorkOrder) and also from the Product > table. The Product table is used in > the FROM clause to specify the rows to > update. Has anyone worked with this feature? (In the meantime I've rewritten my code to do the job using a cursor loop, but that's ugly and I'm still curious)
0
[ 2, 98, 7498, 92, 44, 147, 19, 5196, 77, 9040, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 1895, 21, 13305, 859, 20, 4169, 14, 13, 9178, 16, 78, 11295, 19, 21, 859, 29, 273, 30, 59, 22, 99, 18225, 37, 9, 14, 5196, 77, 9040, 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...
bandwidth and traffic simulator for web apps ? === can you suggest how to create a test enviroment to simulate various types of bandwidths and traffic in a web app ? Or maybe a program open source wich does this against localhost ? I think this is a very important subject when programming web apps but it is not a usual topic, the only way i can imagine to create such kind of enviroment is to use somekind of proxy in a local network but before start looking into the squid documentation i would like to hear your suggestions .
0
[ 2, 23392, 17, 2227, 24565, 26, 2741, 4865, 18, 13, 60, 800, 3726, 3726, 92, 42, 5601, 184, 20, 1600, 21, 1289, 21314, 661, 1130, 20, 24969, 617, 2551, 16, 23392, 18, 17, 2227, 19, 21, 2741, 4865, 13, 60, 54, 913, 21, 625, 368, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 the best resources for learning CIL (MSIL) === I'm an expert C# 3 / .NET 3.5 programmer looking to start doing some runtime codegen using System.Reflection.Emit.DynamicMethod. I'd love to move up to the next level by becoming intimately familiar with IL. Any pointers (pun intended)?
0
[ 2, 98, 50, 14, 246, 2566, 26, 2477, 13, 12837, 13, 5, 79, 8556, 6, 800, 3726, 3726, 31, 22, 79, 40, 5390, 272, 5910, 203, 13, 118, 13, 9, 2328, 203, 9, 264, 17968, 699, 20, 799, 845, 109, 485, 891, 1797, 1863, 568, 329, 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...
Control.Enter event doesn't fire when switching tasks. Is there an alternative that does? === Rep steps: 1. create example .NET form application 2. put a TextBox on the form 3. wire a function up to the TextBox's Enter event When you run this application, the **Control.Enter** event fires when focus first goes to the TextBox. However, if you click away into another application and then click back into the test application, the event will not fire again. So **moving between applications does not trigger Enter/Leave**. Is there another alternative *Control-level* event that I can use, which will fire in this scenario? Ordinarily, I would use **Form.Activated**. Unfortunately, that is troublesome here because my component is hosted by a docking system that can undock my component into a new Form without notifying me.
0
[ 2, 569, 9, 13679, 807, 1437, 22, 38, 535, 76, 13027, 8674, 9, 25, 80, 40, 2676, 30, 630, 60, 800, 3726, 3726, 9411, 2382, 45, 137, 9, 1600, 823, 13, 9, 2328, 505, 3010, 172, 9, 442, 21, 1854, 5309, 27, 14, 505, 203, 9, 6511,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does Oracle have something like Change Data Capture in SQL Server 2008? === Change Data Capture is a new feature in SQL Server 2008. From MSDN: > Change data capture provides > historical change information for a > user table by capturing both the fact > that DML changes were made and the > actual data that was changed. Changes > are captured by using an asynchronous > process that reads the transaction log > and has a low impact on the system This is highly sweet - no more adding CreatedDate and LastModifiedBy columns manually. Does Oracle have anything like this?
0
[ 2, 630, 15759, 57, 301, 101, 753, 1054, 3683, 19, 4444, 255, 8128, 570, 60, 800, 3726, 3726, 753, 1054, 3683, 25, 21, 78, 1580, 19, 4444, 255, 8128, 570, 9, 37, 4235, 43, 103, 45, 13, 1, 753, 1054, 3683, 1927, 13, 1, 1668, 753...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
XMLHttpRequest POST multipart/form-data === I want to use XMLHttpRequest in JavaScript to POST a form that includes a file type input element so that I can avoid page refresh and get useful XML back. I can submit the form without page refresh, using JavaScript to set the target attribute on the form to an iframe for MSIE or an object for Mozilla, but this has two problems. The minor problem is that target is not W3C compliant (which is why I set it in JavaScript, not in XHTML). The major problem is that the onload event doesn't fire, at least not on Mozilla on OS X Leopard. Besides, XMLHttpRequest would make for prettier response code because the returned data could be XML, not confined to XHTML as is the case with iframe. Submitting the form results in HTTP that looks like: Content-Type: multipart/form-data;boundary=<boundary string> Content-Length: <length> --<boundary string> Content-Disposition: form-data, name="<input element name>" <input element value> --<boundary string> Content-Disposition: form-data, name=<input element name>"; filename="<input element value>" Content-Type: application/octet-stream <element body> How do I get the XMLHttpRequest object's send method to duplicate the above HTTP stream?
0
[ 2, 23504, 21127, 99, 10351, 678, 1889, 3091, 118, 4190, 8, 18768, 800, 3726, 3726, 31, 259, 20, 275, 23504, 21127, 99, 10351, 19, 8247, 8741, 20, 678, 21, 505, 30, 1103, 21, 3893, 1001, 6367, 4520, 86, 30, 31, 92, 2658, 2478, 2490...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Why do I need OleDbCommand.Prepare()? === I'm working with a datagrid and adapter that correspond with an MSAccess table through a stored query (named "UpdatePaid", 3 paramaters as shown below) like so: OleDbCommand odc = new OleDbCommand("UpdatePaid", connection); OleDbParameter param; odc.CommandType = CommandType.StoredProcedure; param = odc.Parameters.Add("v_iid", OleDbType.Double); param.SourceColumn = "I"; param.SourceVersion = DataRowVersion.Original; param = odc.Parameters.Add("v_pd", OleDbType.Boolean); param.SourceColumn = "Paid"; param.SourceVersion = DataRowVersion.Current; param = odc.Parameters.Add("v_Projected", OleDbType.Currency); param.SourceColumn = "ProjectedCost"; param.SourceVersion = DataRowVersion.Current; odc.Prepare(); myAdapter.UpdateCommand = odc; ... myAdapter.Update(); It works fine...but the really weird thing is that it *didn't* until I put in the **odc.Prepare()** call.<br><br>My question is thus: Do I need to do that all the time when working with OleDb stored procs/queries? Why? I also have another project coming up where I'll have to do the same thing with a SqlDbCommand... do I have to do it with those, too?
0
[ 2, 483, 107, 31, 376, 12116, 9007, 16239, 9, 3515, 1060, 99, 5, 6, 60, 800, 3726, 3726, 31, 22, 79, 638, 29, 21, 1054, 16375, 17, 9924, 106, 30, 14217, 29, 40, 4235, 20604, 859, 120, 21, 8214, 25597, 13, 5, 11482, 13, 7, 576, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 increment a float by its smallest increment (or close to it)? === I have a <code>double</code> value <code>f</code> and would like a way to nudge it very slightly larger (or smaller) to get a new value that will be as close as possible to the original but still strictly greater than (or less than) the original. It doesn't have to be close down to the last bit—it's more important that whatever change I make is guaranteed to produce a different value and not round back to the original.
0
[ 2, 184, 20, 13, 28461, 21, 11510, 34, 82, 11056, 13, 28461, 13, 5, 248, 543, 20, 32, 6, 60, 800, 3726, 3726, 31, 57, 21, 13, 1, 9375, 1, 14368, 1, 118, 9375, 1, 1923, 13, 1, 9375, 1, 410, 1, 118, 9375, 1, 17, 83, 101, 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...
Interface questions. === suppose that i have interface MyInterface and 2 classes A, B which implements MyInterface, i declared 2 objects MyInterface a = new A() , and MyInterfave b = new B(). when i trying to pass a to function - function doSomething(A a){} i am getting error. This is my code: public interface MyInterface { } public class A implements MyInterface{ } public class B implements MyInterface{ } public class Tester { public static void main(String[] args){ MyInterface a = new A(); MyInterface b = new B(); test(b); } public static void test(A a){ System.out.println("A"); } public static void test(B b){ System.out.println("B"); } } My problem that i am getting from some component interface which can be all sorts of classes and i need to write function for each class so one way is to get interface and to check which type is it. (instance of A) I would like to know how others deal with this problem?? Thx
0
[ 2, 6573, 2346, 9, 800, 3726, 3726, 5787, 30, 31, 57, 6573, 51, 6280, 6413, 17, 172, 2684, 21, 15, 334, 56, 8713, 18, 51, 6280, 6413, 15, 31, 2482, 172, 3916, 51, 6280, 6413, 21, 800, 78, 21, 5, 6, 13, 15, 17, 51, 6280, 1473,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Difference between a BitmapFrame and BitmapImage in WPF === What is the difference between a BitmapFrame and BitmapImage in WPF? Where would you use each (ie. why would you use a BitmapFrame rather than a BitmapImage?)
0
[ 2, 2841, 128, 21, 1142, 15022, 8361, 17, 1142, 15022, 22039, 19, 619, 7721, 800, 3726, 3726, 98, 25, 14, 2841, 128, 21, 1142, 15022, 8361, 17, 1142, 15022, 22039, 19, 619, 7721, 60, 113, 83, 42, 275, 206, 13, 5, 660, 9, 483, 83,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0...
Is there any one website which contains many good C# screencasts? === Is there any one website which contains many good C# screencasts?
4
[ 2, 25, 80, 186, 53, 2271, 56, 1588, 151, 254, 272, 5910, 2324, 6146, 18, 60, 800, 3726, 3726, 25, 80, 186, 53, 2271, 56, 1588, 151, 254, 272, 5910, 2324, 6146, 18, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
FIPS compatible password encryption for .NET === I've working on a WinForms in VB.NET (3.5) application that requires the user to enter domain administrator credentials. To make things easier on the user, they should only have to enter the user name and password once, and then just rely on my app to save these credentials. I'd like to save these credentials with the other user settings, but for security reasons, the password needs to be encrypted. What's an easy way to encrypt and decrypt this password? I'm wanting the encryption method to be FIPS compatible. The methods I've tried so far result in this exception: > System.InvalidOperationException: This > implementation is not part of the > Windows Platform FIPS validated > cryptographic algorithms.
0
[ 2, 6028, 1919, 14961, 20884, 24420, 26, 13, 9, 2328, 800, 3726, 3726, 31, 22, 195, 638, 27, 21, 628, 4190, 18, 19, 13, 20468, 9, 2328, 13, 5, 240, 9, 264, 6, 3010, 30, 4781, 14, 4155, 20, 2830, 4603, 8890, 5059, 43, 10107, 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...
The best way to assert pre-condition and post-condition of arguments and values in .NET? === I have been thinking about design by contract lately and I was wondering what people think is the best way to assert pre-condition and post-condition of values in .NET? i.e. validating argument values to a method. Some people recommend Debug.Assert while others talk about using an if statement plus throwing an exception. What are the pros and cons of each? What frameworks are available that you recommend?
0
[ 2, 14, 246, 161, 20, 10908, 782, 8, 22141, 17, 678, 8, 22141, 16, 10553, 17, 4070, 19, 13, 9, 2328, 60, 800, 3726, 3726, 31, 57, 74, 1440, 88, 704, 34, 1305, 10434, 17, 31, 23, 5712, 98, 148, 277, 25, 14, 246, 161, 20, 10908...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 resequence dropdown list controls like the NetFlix queue from the client side (Javascript) === We have a series of drop down controls that determine the sort order of columns. The problem we are having is when the user selects a column as the 2nd column the other dropdown lists need to have their values changed so that there is only one "2nd". 1. Column A [1] 2. Column B [2] 3. Column C [3] 4. Column D [4] 5. Column E [5] In the list above, when you change Column D to [2], Column B becomes [3], C becomes [4], etc. I can manage it on the server side but I was wondering if anybody had some clues how to do this on the client side with javascript.
0
[ 2, 184, 107, 31, 302, 29413, 2804, 2968, 968, 8671, 101, 14, 23233, 22521, 37, 14, 6819, 270, 13, 5, 1004, 1385, 8741, 6, 800, 3726, 3726, 95, 57, 21, 231, 16, 2804, 125, 8671, 30, 3746, 14, 2058, 389, 16, 7498, 9, 14, 1448, 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...
Why does IE give unexpected errors when setting innerHTML === I tried to set innerHTML on an element in firefox and it worked fine, tried it in IE and got unexpected errors with no obvious reason why.
0
[ 2, 483, 630, 13, 660, 590, 9380, 11908, 76, 2697, 3754, 15895, 800, 3726, 3726, 31, 794, 20, 309, 3754, 15895, 27, 40, 4520, 19, 535, 18219, 17, 32, 577, 1123, 15, 794, 32, 19, 13, 660, 17, 330, 9380, 11908, 29, 90, 4674, 1215, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How can I escape a DOM name in javascript? === I have a form element that I want to address via javascript, but it doesn't like the syntax. <form name="mycache"> <input type="hidden" name="cache[m][2]"> I want to be able to say: document.mycache.cache[m][2] but obviously I need to indicate that `cache[m][2]` is the whole name, and not an array reference to `cache`. Can it be done?
0
[ 2, 184, 92, 31, 2220, 21, 11859, 204, 19, 8247, 8741, 60, 800, 3726, 3726, 31, 57, 21, 505, 4520, 30, 31, 259, 20, 3218, 1197, 8247, 8741, 15, 47, 32, 1437, 22, 38, 101, 14, 22649, 9, 13, 1, 4190, 204, 3726, 7, 915, 793, 256...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
ColdFusion: pick first non null value from a list === In JavaScript, you can do this: var a = null; var b = "I'm a value"; var c = null; var result = a || b || c; And 'result' will get the value of 'b' because JavaScript short-circuits the 'or' operator. I want a one-line idiom to do this in ColfFusion and the best I can come up with is: <cfif LEN(c) GT 0><cfset result=c></cfif> <cfif LEN(b) GT 0><cfset result=b></cfif> <cfif LEN(a) GT 0><cfset result=a></cfif> Can anyone do any better than this?
0
[ 2, 1191, 9818, 45, 2036, 64, 538, 16203, 1923, 37, 21, 968, 800, 3726, 3726, 19, 8247, 8741, 15, 42, 92, 107, 48, 45, 4033, 21, 800, 16203, 73, 4033, 334, 800, 13, 7, 49, 22, 79, 21, 1923, 7, 73, 4033, 272, 800, 16203, 73, 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...
Unit test naming best practices? === What are the best practices for naming unit test classes and test methods?
0
[ 2, 1237, 1289, 10929, 246, 5242, 60, 800, 3726, 3726, 98, 50, 14, 246, 5242, 26, 10929, 1237, 1289, 2684, 17, 1289, 3195, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Automatic Chart Pagination with Report Parameters === Based on several report parameters in SQL Server 2005 reporting services, I would like to automatically generate one or several chart(s) for each row in the return result and paginate or space them out. How do I go about that?
0
[ 2, 6715, 1795, 19006, 108, 857, 29, 1330, 12905, 800, 3726, 3726, 432, 27, 238, 1330, 12905, 19, 4444, 255, 8128, 812, 6670, 687, 15, 31, 83, 101, 20, 7499, 7920, 53, 54, 238, 1795, 5, 18, 6, 26, 206, 3131, 19, 14, 788, 829, 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, 0, 0, 0...
How do I have YAHOO.util.KeyListener disabled when an input element is focused? === I have a MenuBar setup with [YUI's MenuBar](http://developer.yahoo.com/yui/menu/) widget, and I have a YAHOO.util.KeyListener attached to 'document' to get quick keyboard access to the menus and submenu items (e.g. 's' to open the Setup menu). The problem is that the keylistener will still fire when a user is in an input element. For example, a user might be typing 'soup' into a text field, and the 's' character will cause the Setup menu to pop open. One solution would be to disable the keylistener when focus is on an input element, and enable it on blur. How would I go about doing this? Is there a better solution?
0
[ 2, 184, 107, 31, 57, 23553, 9, 14255, 9, 4237, 13891, 106, 10154, 76, 40, 6367, 4520, 25, 2604, 60, 800, 3726, 3726, 31, 57, 21, 11379, 1850, 18161, 29, 636, 4703, 49, 22, 18, 11379, 1850, 500, 5, 21127, 6903, 26051, 106, 9, 104...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 auto-generate ctags === Right now I have the following in my `.vimrc`: au BufWritePost *.c,*.cpp,*.h !ctags -R There are a few problems with this: 1. It's slow -- regenerates tags for files that haven't changed since the last tag generation. 2. I have to push the enter button *again* after writing the file because of an inevitable "press Enter or type command to continue". When you combine these two issues I end up pushing the additional enter too soon (before `ctags -R` has finished), then see the annoying error message, and have to push enter again. I know it doesn't sound like a big deal, but with the amount of file writes I do on a given day it tends to get really annoying. There's gotta be a better way to do it!
0
[ 2, 1790, 79, 3108, 8, 17083, 1373, 272, 8628, 18, 800, 3726, 3726, 193, 130, 31, 57, 14, 249, 19, 51, 13, 1, 9, 1755, 79, 5453, 1, 45, 10343, 3183, 410, 23716, 6962, 1637, 9, 150, 15, 2483, 9, 150, 3421, 15, 2483, 9, 252, 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 do you know how much design is too much? === I am supposed to write "detailed" design documents for my job, but I always find myself overspecifying parts and getting burnt out when I realize I can't specify everything exactly in the doc or I would basically be writing the code all over again! Is there a good rule of thumb when it comes to writing design documents to help guide me to know how much is too much and how little is too little?
0
[ 2, 184, 107, 42, 143, 184, 212, 704, 25, 266, 212, 60, 800, 3726, 3726, 31, 589, 2293, 20, 2757, 13, 7, 546, 13204, 7, 704, 4374, 26, 51, 1205, 15, 47, 31, 550, 477, 992, 84, 18, 12610, 10874, 1341, 17, 1017, 12066, 70, 76, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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# object is not null but (myObject != null) still return false === I need to do a comparaison between an object and NULL. When the object is not NULL I fill it with some data. Here is the code : if (region != null) { .... } This is working but when looping and looping sometime the region object is NOT null (I can see data inside it in debug mode). In step-by-step when debugging, it doesn't go inside the IF statement... When I do a Quick Watch with these following expression : I see the (region == null) return false, AND (region != null) return false too... **why and how?**
0
[ 2, 272, 5910, 3095, 25, 52, 16203, 47, 13, 5, 915, 23793, 13, 187, 3726, 16203, 6, 174, 788, 4997, 800, 3726, 3726, 31, 376, 20, 107, 21, 6479, 2704, 6827, 128, 40, 3095, 17, 16203, 9, 76, 14, 3095, 25, 52, 16203, 31, 3509, 32...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
LINQ Submit Changes not submitting changes === I'm using LINQ to SQL and C#. I have two LINQ classes: User and Network. User has UserID (primary key) and NetworkID Network has NetworkID (primary key) and an AdminID (a UserID) The following code works fine: user.Network.AdminID = 0; db.SubmitChanges(); However, if I access the AdminID before making the change, the change never happens to the DB. So the following doesn't work: if(user.Network.AdminID == user.UserID) { user.Network.AdminID = 0; db.SubmitChanges(); } It is making it into the if statement and calling submit changes. For some reason, the changes to AdminID never make it to the DB. No error thrown, the change just never 'takes'. Any idea what could be causing this? Thanks.
0
[ 2, 6294, 1251, 12298, 1693, 52, 28848, 1693, 800, 3726, 3726, 31, 22, 79, 568, 6294, 1251, 20, 4444, 255, 17, 272, 5910, 9, 31, 57, 81, 6294, 1251, 2684, 45, 4155, 17, 982, 9, 4155, 63, 275, 5175, 13, 5, 29584, 1246, 6, 17, 98...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is "for" in Ruby === In Ruby for i in A do # some code end is the same as A.each do |i| # some code end for is not a kernel method. - What exactly is "for" in ruby - Is there a way to use other keywords to so the similar things? Something like total = sum i in I {x[i]} mapping to total = I.sum {|i] x[i]}
0
[ 2, 98, 25, 13, 7, 1106, 7, 19, 10811, 800, 3726, 3726, 19, 10811, 26, 31, 19, 21, 107, 6926, 109, 1797, 241, 25, 14, 205, 28, 21, 9, 14322, 107, 13, 1, 49, 1, 6926, 109, 1797, 241, 26, 25, 52, 21, 17007, 2109, 9, 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, 1...
Extending chart functionality in SSRS === The default chart object in the SQL Server (2005) Business Intelligence Development Studio doesn't seem to some have formatting options like : 1. specifying the text direction of labels in the x and y axis 2. adding a trendline to a bar chart 3. arbitrarily resizing items in a chart - for example, if I resize the chart object, everything gets resized accordingly but I can't keep the size of the chart the same while extending the area of the legend for instance. 4. multiline chart labels So what I want to know is (i) is there any easy answer to the formatting problems mentioned above? (ii) what websites/books/resources/examples would you recommend I look into for extending the functionality of the chart object?
0
[ 2, 8176, 1795, 18548, 19, 22118, 18, 800, 3726, 3726, 14, 12838, 1795, 3095, 19, 14, 4444, 255, 8128, 13, 5, 2835, 6, 508, 2872, 522, 1120, 1437, 22, 38, 2260, 20, 109, 57, 2595, 1203, 6368, 101, 13, 45, 137, 9, 19077, 68, 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...
independent OS API to monitor file system? === I would like to experiment with ideas about distributed file synchronization/replication. To make it efficient when the user is working, I would like to implement some kind of daemon to monitor changes in some directory (e.g. /home/user/dirToBeMonitored or c:\docs and setts\user\dirToBeMonitored). So, I could be able to know which filename was added/changed/deleted at every time (or within a reasonable interval). Is this possible with any high-medium level language?. Do you know some API (and in which language?) to do this? Thanks.
0
[ 2, 1124, 13, 759, 21, 2159, 20, 7626, 3893, 329, 60, 800, 3726, 3726, 31, 83, 101, 20, 5737, 29, 3478, 88, 4387, 3893, 13, 16023, 1829, 118, 99, 20669, 9, 20, 233, 32, 8243, 76, 14, 4155, 25, 638, 15, 31, 83, 101, 20, 8713, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
download mail attachment with Java === I had a look in the reference doc, and Spring seems to have pretty good support for sending mail. However, I need to login to a mail account, read the messages, and download any attachments. Is downloading mail attachments supported by the Spring mail API? I know you can do this with the Java Mail API, but in the past I've found that very verbose and unpleasant to work with. Cheers, Don
0
[ 2, 7121, 4216, 14575, 29, 8247, 800, 3726, 3726, 31, 41, 21, 361, 19, 14, 2801, 9765, 15, 17, 1573, 2206, 20, 57, 1772, 254, 555, 26, 4907, 4216, 9, 207, 15, 31, 376, 20, 6738, 108, 20, 21, 4216, 2176, 15, 1302, 14, 7561, 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 do I create a directory from within Emacs? === How exactly can I create a new directory using Emacs? What commands do I use? (If possible, please provide an example)
0
[ 2, 184, 107, 31, 1600, 21, 16755, 37, 363, 13, 62, 6893, 18, 60, 800, 3726, 3726, 184, 1890, 92, 31, 1600, 21, 78, 16755, 568, 13, 62, 6893, 18, 60, 98, 14294, 107, 31, 275, 60, 13, 5, 821, 938, 15, 2247, 1181, 40, 823, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to convert a utf-8 string to a utf-16 string in PHP === How do I convert a utf-8 string to a utf-16 string in PHP?
0
[ 2, 184, 20, 8406, 21, 287, 11720, 8, 457, 3724, 20, 21, 287, 11720, 8, 1091, 3724, 19, 13, 26120, 800, 3726, 3726, 184, 107, 31, 8406, 21, 287, 11720, 8, 457, 3724, 20, 21, 287, 11720, 8, 1091, 3724, 19, 13, 26120, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Cancelling a long running process in VB6.0 without DoEvents? === Is it possible to cancel out of a long running process in VB6.0 without using DoEvents? For example: for i = 1 to someVeryHighNumber ' Do some work here ... if cancel then exit for end if next Sub btnCancel_Click() cancel = true End Sub I assume I need a "DoEvents" before the "if cancel then..." is there a better way? It's been awhile...
0
[ 2, 14815, 802, 21, 175, 946, 953, 19, 13, 20468, 379, 9, 387, 366, 107, 4943, 38, 18, 60, 800, 3726, 3726, 25, 32, 938, 20, 14815, 70, 16, 21, 175, 946, 953, 19, 13, 20468, 379, 9, 387, 366, 568, 107, 4943, 38, 18, 60, 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...
Strict XHTML compliance in ASP.NET 2.0/3.5 === Are there any good methods for getting ASP.NET to valid under the XHTML strict DTD? I'm interested to hear some ideas before I hack up the core of the HTTP response.
0
[ 2, 8170, 993, 15895, 14969, 19, 28, 306, 9, 2328, 172, 9, 15928, 240, 9, 264, 800, 3726, 3726, 50, 80, 186, 254, 3195, 26, 1017, 28, 306, 9, 2328, 20, 7394, 131, 14, 993, 15895, 8170, 13, 43, 38, 43, 60, 31, 22, 79, 3158, 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, 0, 0...
How can I tell when .Net System.Diagnostics.Process ran sucessfully or failed? === I'm writing a scheduler or sorts. It's basically a table with a list of exes (like "C:\a.exe") and a console app that looks at the records in the table every minute or so and runs the tasks that haven't been run yet. I run the tasks like this: System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo.UseShellExecute = false; p.StartInfo.FileName = someExe; // like "a.exe" p.Start(); How can I tell if a particular task failed? For example what if a.exe throws an unhandled exception? I'd like the above code to know when this happens and update the tasks table with something like "the particular task failed" etc. How can I do this? p.s. I'm not using the Sql Agent or the Windows Scheduler because someone else told me not to. He has more "experience" so I'm basically just following orders. Feel free to suggest alternatives. Thanks!
0
[ 2, 184, 92, 31, 494, 76, 13, 9, 2328, 329, 9, 4286, 21944, 18, 9, 16835, 717, 21792, 160, 18, 5655, 54, 1702, 60, 800, 3726, 3726, 31, 22, 79, 1174, 21, 4345, 139, 54, 14357, 9, 32, 22, 18, 11374, 21, 859, 29, 21, 968, 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...
globally unique integer based ID (sequential) for a given location === I need to create a unique ID for a given location, and the location's ID must be sequential. So its basically like a primary key, except that it is also tied to the locationID. So 3 different locations will all have ID's like 1,2,3,4,5,...,n What is the best way to do this? I also need a safe way of getting the nextID for a given location, I'm guessing I can just put a transaction on the stored procedure that gets the next ID?
0
[ 2, 18861, 2619, 13820, 432, 4924, 13, 5, 870, 5495, 10107, 6, 26, 21, 504, 1474, 800, 3726, 3726, 31, 376, 20, 1600, 21, 2619, 4924, 26, 21, 504, 1474, 15, 17, 14, 1474, 22, 18, 4924, 491, 44, 1353, 5495, 10107, 9, 86, 82, 113...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Exception thrown in a referenced .dll how do I debug? === I'm using watermark extenders on textboxes and an exeption is being thrown from the AJAX Control Toolkit .dll. It's strange beause this just started happening. I tried debugging from the Ajax solution and Ajax examples (but with my code), but no dice. Is there a way to step into the Ajax .dll from my solution to see where this is happening?
0
[ 2, 5391, 6027, 19, 21, 17571, 13, 9, 43, 211, 184, 107, 31, 121, 16254, 60, 800, 3726, 3726, 31, 22, 79, 568, 308, 4527, 7206, 445, 27, 1854, 5309, 160, 17, 40, 1396, 3492, 3309, 25, 142, 6027, 37, 14, 20624, 569, 5607, 13703, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you use git svn? === Please provide tips for effectively using git with svn. What are your "best practices"?
0
[ 2, 184, 107, 42, 275, 13, 10404, 13, 18, 16578, 60, 800, 3726, 3726, 2247, 1181, 11034, 26, 5463, 568, 13, 10404, 29, 13, 18, 16578, 9, 98, 50, 154, 13, 7, 4936, 5242, 7, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Understanding code metrics. === I recently installed the Eclipse Metrics Plugin and have exported the data for one of our projects. It's all very good having these nice graphs but I'd really like to understand more in depth what they all mean. The definitions of the metrics only go so far to telling you what it really means. Does anyone know of any good resources, books, websites, etc, that can help me better understand what all the data means and give an understanding of how to improve the code where necessary?
0
[ 2, 3260, 1797, 11544, 18, 9, 800, 3726, 3726, 31, 1989, 4066, 14, 11652, 11544, 18, 10922, 108, 17, 57, 18011, 14, 1054, 26, 53, 16, 318, 2314, 9, 32, 22, 18, 65, 253, 254, 452, 158, 2210, 7210, 18, 47, 31, 22, 43, 510, 101, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Any clean css method to make each letter in a word a different color? === I need a way to allow each letter of a word to rotate through 3 different colors. I know of some not so clean ways I can do this with asp.net but I'm wondering if there might be a cleaner CSS/javascript solution that is more search engine friendly.
0
[ 2, 186, 2745, 272, 18, 18, 2109, 20, 233, 206, 1748, 19, 21, 833, 21, 421, 1665, 60, 800, 3726, 3726, 31, 376, 21, 161, 20, 1655, 206, 1748, 16, 21, 833, 20, 21448, 120, 203, 421, 5268, 9, 31, 143, 16, 109, 52, 86, 2745, 284...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there an existing way to turn source code back into a CodeCompileUnit? === We use the DesignSurface and all that good IDesignerHost goodness in our own designer. The designed forms are then persisted in our own bespoke format and all that works great. WE also want to export the forms to a text-based format (which we've done as it isn't that difficult). However, we also want to import that text back into a document for the designer which involves getting the designer code back into a CodeCompileUnit. Unfortunately, the Parse method is not implemented (for, no doubt, good reasons). Is there an alternative? We don't want to use anything that wouldn't exist on a standard .NET installation (like .NET libraries installed with Visual Studio). My current idea is to compile the imported text and then instantiate the form and copy its properties and controls over to the design surface object, and just capture the new CodeCompileUnit, but I was hoping there was a better way. Thanks.
0
[ 2, 25, 80, 40, 3149, 161, 20, 805, 1267, 1797, 97, 77, 21, 1797, 11103, 3599, 15464, 60, 800, 3726, 3726, 95, 275, 14, 704, 18830, 17, 65, 30, 254, 31, 19862, 106, 11694, 18509, 19, 318, 258, 4742, 9, 14, 1006, 1997, 50, 94, 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...
How can I determine the number of users on an ASP.NET site (IIS)? And their info? === Is there a way to determine the number of users that have active sessions in an ASP.NET application? I have an admin/tools page in a particular application, and I would like to display info regarding all open sessions, such as the number of sessions, and perhaps the requesting machines' addresses, or other credential information for each user.
0
[ 2, 184, 92, 31, 3746, 14, 234, 16, 3878, 27, 40, 28, 306, 9, 2328, 689, 13, 5, 2865, 18, 6, 60, 17, 66, 15404, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 3746, 14, 234, 16, 3878, 30, 57, 1348, 5763, 19, 40, 28, 306, 9, 23...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 is File I/O a performance factor in web development? === I know the mantra is that the database is always the long pole in the tent anytime a page is being generated server-side. But there's also a good bit of file i/o going on on a web server. Scripted code is replete with include/require statements. Moreover, its typically a practice to store templated html outside the application in files which are loaded and filled in accordingly. How much of a role does file i/o play when concened with web development? Does it ever become an issue? When is it too much? Do web servers/languages cache anything? Has it ever really mattered in your experience?
0
[ 2, 184, 212, 25, 3893, 31, 118, 111, 21, 956, 3932, 19, 2741, 522, 60, 800, 3726, 3726, 31, 143, 14, 25060, 25, 30, 14, 6018, 25, 550, 14, 175, 5233, 19, 14, 6797, 19711, 21, 2478, 25, 142, 6756, 8128, 8, 1416, 9, 47, 80, 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...
What is the best way to learn about RDF / OWL? === What references offer a good summary/tutorial for using RDF/OWL? There seem to be enough tools (Protege, Topbraid, Jena, etc.) that knowing the syntax of the markup languages is not necessary, but knowing the concepts is, of course, still critical. I'm working through the w3c documents (particularly the [RDF Primer][1]) but I'd like to find other resources/techniques to use as well. [1]: http://www.w3.org/TR/rdf-primer/
0
[ 2, 98, 25, 14, 246, 161, 20, 2484, 88, 13, 897, 410, 13, 118, 11170, 60, 800, 3726, 3726, 98, 7231, 1994, 21, 254, 14740, 118, 2473, 9819, 192, 26, 568, 13, 897, 410, 118, 3581, 255, 60, 80, 2260, 20, 44, 511, 4672, 13, 5, 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 it possible to use Mac Mail with MS Exchange if IMAP is disabled === Our network admins have disabled IMAP and POP for our exchange server, but do have RDP over HTTP enabled. Does Mac Mail only use IMAP to communicate with exchange servers, or does it also know how to use RDP over HTTP?
0
[ 2, 25, 32, 938, 20, 275, 1572, 4216, 29, 4235, 1950, 100, 31, 15022, 25, 10154, 800, 3726, 3726, 318, 982, 21, 43, 2160, 18, 57, 10154, 31, 15022, 17, 1675, 26, 318, 1950, 8128, 15, 47, 107, 57, 13, 897, 306, 84, 7775, 9338, 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...