unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Perl Best Practices: What not to use? === For those of us who are familiar with Damian Conway's [Perl Best Practices][1], it may be the case that you're applying it somewhat selectively. Which of the Best Practices do you elect **not** to follow, if any, and for what reasons? Or do you always apply as many of the best practices as possible? For example, the following Best Practices I've chosen to sometimes ignore, though I'm not sure I should have: - Always use named args when passing more than 3 arguments - Using POD boilerplates - Never use low-precedence logical operators (except for fallback conditions) Which of the Best Practices do you feel it's safe to ignore or apply sparingly? [1]: http://oreilly.com/catalog/9780596001735/
0
[ 2, 416, 255, 246, 5242, 45, 98, 52, 20, 275, 60, 800, 3726, 3726, 26, 273, 16, 182, 72, 50, 3694, 29, 19602, 17413, 22, 18, 636, 1432, 255, 246, 5242, 500, 2558, 165, 500, 15, 32, 123, 44, 14, 610, 30, 42, 22, 99, 11989, 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...
UTF8 to/from wide char conversion in STL === Is it possible to convert std::string to std::wstring and vice versa in a platform independent manner? In a Windows application I would use MultiByteToWideChar and WideCharToMultiByte. However, the code is compiled for multiple OSes and I need to use STL at most.
0
[ 2, 287, 11720, 457, 20, 118, 2665, 1051, 4892, 6263, 19, 354, 255, 800, 3726, 3726, 25, 32, 938, 20, 8406, 354, 43, 45, 45, 11130, 20, 354, 43, 45, 45, 499, 11130, 17, 1821, 18596, 19, 21, 2452, 1124, 3832, 60, 19, 21, 1936, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
why in below code predicate returns true only for a = 1 === main(){ int a = 10; if (true == a) cout<<"y i am not getting executed"; }
0
[ 2, 483, 19, 1021, 1797, 28712, 4815, 1151, 104, 26, 21, 800, 137, 800, 3726, 3726, 407, 5, 6, 1, 19, 38, 21, 800, 332, 73, 100, 13, 5, 13398, 800, 3726, 21, 6, 272, 1320, 1, 7, 93, 31, 589, 52, 1017, 5557, 7, 73, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Removing buttong while progress is displayed === I have a button on an ASP.NET wep application form and when clicked goes off and posts information a third party web service. I have an UpdateProgress associated with the button. how do disable/hide the button while the progress is visible (i.e. the server has not completed the operation) I am looking at doing this to stop users clicking again when the information is being sent (as this results in duplicate information being sent)
0
[ 2, 9096, 5167, 263, 133, 3455, 25, 6115, 800, 3726, 3726, 31, 57, 21, 5167, 27, 40, 28, 306, 9, 2328, 95, 306, 3010, 505, 17, 76, 15802, 1852, 168, 17, 9868, 676, 21, 422, 346, 2741, 365, 9, 31, 57, 40, 11100, 2740, 13026, 159...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Free Erlang Screencasts/Tutorial series === Does anyone know some and could point me to it? I know there is a good series on [pragprog][1] but not for free. I'm a fan of "big" tutorials where something gets build up step by step and you come out with an application. Do you know any of this kind? [1]: http://pragprog.com
0
[ 2, 551, 13, 106, 9949, 2324, 6146, 18, 118, 2473, 9819, 192, 231, 800, 3726, 3726, 630, 1276, 143, 109, 17, 110, 454, 55, 20, 32, 60, 31, 143, 80, 25, 21, 254, 231, 27, 636, 7310, 13321, 13692, 500, 2558, 165, 500, 47, 52, 26,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get the content of a <script> tag? === If I have a script tag like this: <script id = "myscript" src = "http://www.example.com/script.js" type = "text/javascript"> </script> I would like to get the content of that script tag. I'm thinking about something like `document.getElementById("myscript").text` but it doesn't work in this case.
0
[ 2, 184, 20, 164, 14, 2331, 16, 21, 13, 1, 8741, 1, 3383, 60, 800, 3726, 3726, 100, 31, 57, 21, 3884, 3383, 101, 48, 45, 13, 1, 8741, 4924, 800, 13, 7, 915, 8741, 7, 13, 18, 5453, 800, 13, 7, 21127, 6903, 6483, 9, 29041, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use sed to replace only the first occurrence in a file? === I want to update a large number of C++ source files with an extra include directive before any existing #includes. For this sort of task I normally use a small bash script with sed to re-write the file. How do I get sed to replace just the first occurrence of a string in a file rather than replacing the every occurrence? If I use sed s/#include/#include "newfile.h"\n#include/ it replaces all #includes. Alternative suggestions to achieve the same thing are also welcome.
0
[ 2, 184, 20, 275, 13924, 20, 3934, 104, 14, 64, 12933, 19, 21, 3893, 60, 800, 3726, 3726, 31, 259, 20, 11100, 21, 370, 234, 16, 272, 20512, 1267, 6488, 29, 40, 2230, 468, 15626, 115, 186, 3149, 6926, 22640, 18, 9, 26, 48, 2058, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
webinars resource === where can find on the net good archive of webinars on java and stuff related, spring, hibernate etc?
0
[ 2, 2741, 108, 5446, 6577, 800, 3726, 3726, 113, 92, 477, 27, 14, 4275, 254, 9250, 16, 2741, 108, 5446, 27, 8247, 17, 3217, 1597, 15, 1573, 15, 4148, 2102, 8820, 2722, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Java 2D Drawing === I'm in the process of writing a Java 2D game. I'm using the built-in Java 2D drawing libraries, drawing on a Graphics2D I acquire from a BufferStrategy from a Canvas in a JFrame (which is sometimes full-screened). I'm having some performance issues though, especially on Linux - and that corner of Java has so very many ways of creating graphics buffers and drawing graphics that I just don't know if I'm doing the right thing. I've been experimenting with graphics2d.getDeviceConfiguration().createCompatibleVolatileImage, which looks promising, but I have no real proof it it's going to be any faster if I switch the drawing code to that. In your experience, what is the fastest way to render 2D graphics onto the screen in Java 1.5+? Note that the game is quite far ahead, so I don't want to switch to a completely different method of drawing, like OpenGL or a game engine. I basically want to know how to get the fastest way of using a Graphics2D object to draw stuff to the screen.
0
[ 2, 8247, 172, 43, 3533, 800, 3726, 3726, 31, 22, 79, 19, 14, 953, 16, 1174, 21, 8247, 172, 43, 250, 9, 31, 22, 79, 568, 14, 392, 8, 108, 8247, 172, 43, 3533, 8649, 15, 3533, 27, 21, 8351, 135, 43, 31, 8942, 37, 21, 17497, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Advantages and drawbacks of chainable methods? === I really love the philosophy of chaining methods, like [jQuery](http://www.jquery.com) emphasys in its library. I found it quite elegant and clear. Being primarily Java developper, I've always wondering myself why this practice was not more used in this language. For example, the Collection interface was not designed in the that way (for adding/removing methods), and I found it quite sad. Is there real cons against this practice or is it just something that has not enough "sex-appeal" before?
0
[ 2, 14683, 17, 2003, 1958, 18, 16, 2858, 579, 3195, 60, 800, 3726, 3726, 31, 510, 339, 14, 3177, 16, 2858, 68, 3195, 15, 101, 636, 728, 8190, 93, 500, 5, 21127, 6903, 6483, 9, 728, 8190, 93, 9, 960, 6, 16453, 6482, 93, 18, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Advanced database concepts === I have agreed to become a teacher's assistant in a database course and have also been asked to look into changes that can be made to the course. The course is called "Advanced Databases", but its name is a bit deceptive. The students are not computer science majors but some kind of "IT management"-students and thus lack much of the underlying concepts that computer science major needs (higher level math, etc). They have already had an introductory course in databases and should already know the following: <ul> <li>ER-modeling</li> <li>Normalization</li> <li>SQL</li> </ul> So, my question to you all is: What additional concepts could this course teach? The course is primarily aimed for the "advanced use" of databases, so I gladly accept answers with concepts that are not exactly advanced databse concepts, but are related to some kind of "advanced use of databases". Simple data mining or using external web services like Amazon have been discussed as possible subjects. The course will contain a project that requires the student to make some kind of frontend (in PHP or whatever) to their database (MySQL), so they will have to do some programming.
0
[ 2, 2255, 6018, 8700, 800, 3726, 3726, 31, 57, 1771, 20, 533, 21, 2197, 22, 18, 1482, 19, 21, 6018, 674, 17, 57, 67, 74, 411, 20, 361, 77, 1693, 30, 92, 44, 117, 20, 14, 674, 9, 14, 674, 25, 227, 13, 7, 1283, 2686, 11014, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Limiting range of value types in C++ === Suppose I have a LimitedValue class which holds a value, and is parameterized on int types 'min' and 'max'. You'd use it as a container for holding values which can only be in a certain range. You could use it such: LimitedValue< float, 0, 360 > someAngle( 45.0 ); someTrigFunction( someAngle ); so that 'someTrigFunction' knows that it is guaranteed to be supplied a valid input (The constructor would throw an exception if the parameter is invalid). Copy-construction and assignment are limited to exactly equal types, though. I'd like to be able to do: LimitedValue< float, 0, 90 > smallAngle( 45.0 ); LimitedValue< float, 0, 360 > anyAngle( smallAngle ); and have that operation checked at compile-time, so this next example gives an error: LimitedValue< float, -90, 0 > negativeAngle( -45.0 ); LimitedValue< float, 0, 360 > postiveAngle( negativeAngle ); // ERROR! Is this possible? Is there some practical way of doing this, or any examples out there which approach this?
0
[ 2, 17567, 978, 16, 1923, 2551, 19, 272, 20512, 800, 3726, 3726, 5787, 31, 57, 21, 1317, 15165, 718, 56, 2763, 21, 1923, 15, 17, 25, 18906, 1333, 27, 19, 38, 2551, 13, 22, 2160, 22, 17, 13, 22, 8304, 22, 9, 42, 22, 43, 275, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
does nmake have build tasks ? === Using ant I could unzip an archive before proceeding with the build per-se ... Is this possible using nmake ? Could I call an external application ? Or even a batch script ?
0
[ 2, 630, 13, 103, 11115, 57, 1895, 8674, 13, 60, 800, 3726, 3726, 568, 40, 38, 31, 110, 367, 2553, 306, 40, 9250, 115, 20459, 29, 14, 1895, 416, 8, 870, 13, 9, 9, 9, 25, 48, 938, 568, 13, 103, 11115, 13, 60, 110, 31, 645, 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, 0, 0, 0, 0...
How to Regex search/replace only first occurrance in a string in .NET? === It seems the .NET Regex.Replace method automatically replaces all matching occurrences. I could provide a MatchEvaluator delegate that returns the matched string after the first replacement, rendering no change, but that sounds very inefficient to me. What is the most efficient way to stop after the first replacement?
0
[ 2, 184, 20, 7953, 1706, 2122, 118, 99, 5119, 104, 64, 3744, 14866, 19, 21, 3724, 19, 13, 9, 2328, 60, 800, 3726, 3726, 32, 2206, 14, 13, 9, 2328, 7953, 1706, 9, 99, 5119, 2109, 7499, 3934, 18, 65, 10120, 12933, 18, 9, 31, 110,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Entlib versus ACA.Net - Does ACA.Net provide any advantage? === My understanding is that Entlib has picked-up and included concepts from ACA.Net. Is there any point to using ACA.Net on a new .net project?
0
[ 2, 13, 2291, 8326, 5706, 21, 793, 9, 2328, 13, 8, 630, 21, 793, 9, 2328, 1181, 186, 3314, 60, 800, 3726, 3726, 51, 3260, 25, 30, 13, 2291, 8326, 63, 2114, 8, 576, 17, 506, 8700, 37, 21, 793, 9, 2328, 9, 25, 80, 186, 454, 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, 0, 0...
NoClassDefFoundError with a long classname on Tomcat with java 1.4.2_07-b05 === I have a java class. it.eng.ancona.view.RuoliView$TabElaborazioneFattureValidazione$ElencoDettaglioElaborazioneFattureValidazione$RigaElencoDettaglioElaborazioneFattureValidazione Is so long for inner class. If i use 1.4.2_07-b05 on Eclipse and i call this class, all go fine. If i use 1.4.2_07-b05 on Tomcat 5.0 it throw NoClassDefFoundError. I try to cut the class name and after this all work fine. I search on internet and i find that the max lenght for a class name is > 65000, so the lenght should be ok. And on eclipse all work. The OS is Vista. Someone know if it's a bug o whatelse? Thanks. ps.Sorry for my bad english :\
0
[ 2, 90, 1898, 13862, 12235, 29992, 29, 21, 175, 718, 7259, 27, 2067, 5782, 29, 8247, 137, 9, 300, 9, 135, 1, 2984, 8, 220, 4071, 800, 3726, 3726, 31, 57, 21, 8247, 718, 9, 32, 9, 4367, 9, 210, 21698, 9, 4725, 9, 1820, 4614, 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...
Whats a greate tool for remote pair development === I'm basicly looking for something like VNC but with some extra features: 1. The server should send only the part of the screen the client is looking at. 2. It would be greate if we could have 2 mice on the client's desktop. Or at least if the client could point to somthing without interupting the server's mouse. 3. A shared whiteboard would be greate.
0
[ 2, 98, 18, 21, 374, 62, 5607, 26, 5388, 2146, 522, 800, 3726, 3726, 31, 22, 79, 2125, 102, 699, 26, 301, 101, 566, 6897, 47, 29, 109, 2230, 967, 45, 137, 9, 14, 8128, 378, 2660, 104, 14, 141, 16, 14, 2324, 14, 6819, 25, 699,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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++ Creating my own Iterators === I'm trying to learn C++ so forgive me if this question demonstrates a lack of basic knowledge, you see, the fact is, I have a lack of basic knowledge. I want some help working out how to create an iterator for a class I have created. I have a class 'Shape' which has a container of Points. I have a class 'Piece' which references a Shape and defines a position for the Shape. Piece does not have a Shape it just references a Shape. I want it to seem like Piece is a container of Points which are the same as those of the Shape it references but with the offset of the Piece's position added. I want to be able to iterate through the Piece's Points just as if Piece was a container itself. I've done a little reading around and haven't found anything which has helped me. I would be very grateful for any pointers. Cheers
0
[ 2, 272, 20512, 2936, 51, 258, 32, 106, 9922, 800, 3726, 3726, 31, 22, 79, 749, 20, 2484, 272, 20512, 86, 8591, 55, 100, 48, 1301, 19466, 21, 1792, 16, 2125, 1918, 15, 42, 196, 15, 14, 837, 25, 15, 31, 57, 21, 1792, 16, 2125, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Access a 2nd project in the same solution with MSBuild === I'm new to MSBuild, and am learning as I need to know how to do things. Currently, I am working form the MSBuild file that is generated from the Web Deployment Project extension for Visual Studio. I have been ab;e to access and manipulate files which are directly in my Web project by creating properties form this block of XML: <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProductVersion>9.0.21022</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{0B9F9B60-7AD7-49F0-A168-9D4D29FB1A21}</ProjectGuid> <SourceWebPhysicalPath>..\ARP_FORMS</SourceWebPhysicalPath> <SourceWebProject>{7FCA4A38-0FEE-4D46-82EF-AD0089F9CAA2}|ARP_FORMS\ARP_FORMS.csproj</SourceWebProject> <SourceWebVirtualPath>/ARP_FORMS.csproj</SourceWebVirtualPath> <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> </PropertyGroup> I need to create properties do the same thing to manipulate other files from additional projects in my solution. Can anyone point me to the proper syntax for this?
0
[ 2, 1381, 21, 172, 706, 669, 19, 14, 205, 4295, 29, 4235, 29361, 800, 3726, 3726, 31, 22, 79, 78, 20, 4235, 29361, 15, 17, 589, 2477, 28, 31, 376, 20, 143, 184, 20, 107, 564, 9, 871, 15, 31, 589, 638, 505, 14, 4235, 29361, 38...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Storing database data in files? === I'm currently working on a school project, in java, and I'm coding a database application. Something like the MySQL Monitor where you type in queries and get results / whatever. In applications I've coded before, I used databases to store data, like user profiles, settings, etc. Now, obviously, I can't use a database to store data generated from this school project, otherwise what's the point? I'm thinking about storing the data in files but that's the only idea I have in my mind right now and I'm kinda running dry.. and to be honest, I don't want to start banging at code and then I discover a better way of doing it. So if anyone has any idea how to store the data (like CSV?), or has some kind of knowledge of how database applications work internally, can you please shed some light?
0
[ 2, 25615, 6018, 1054, 19, 6488, 60, 800, 3726, 3726, 31, 22, 79, 871, 638, 27, 21, 116, 669, 15, 19, 8247, 15, 17, 31, 22, 79, 13, 15458, 21, 6018, 3010, 9, 301, 101, 14, 51, 18, 22402, 7626, 113, 42, 1001, 19, 9386, 2829, 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...
Using pre-compiled headers with CMake === I have seen a few (old) posts on the 'net about hacking together some support for pre-compiled headers in CMake. They all seem a bit all-over the place and everyone has their own way of doing it. What is the best way of doing it currently?
0
[ 2, 568, 782, 8, 11103, 49, 1294, 157, 445, 29, 272, 11115, 800, 3726, 3726, 31, 57, 541, 21, 310, 13, 5, 1218, 6, 9868, 27, 14, 13, 22, 2328, 88, 25787, 429, 109, 555, 26, 782, 8, 11103, 49, 1294, 157, 445, 19, 272, 11115, 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...
Using emacs tramp vs. rsync for remote development === I have been doing some remote development using emacs tramp and found that it was quite slow. Every time I save a file, it takes about 10 seconds to complete the save. So, now I am using rsync to transfer the files remotely and it works much faster, it takes about a second plus the local saves from emacs are instant. Are there any configuration options within tramp to get it to run as fast as rsync does on the command line? Are there any advantages to using tramp instead of rsync even though I am seeing such poor performance?
0
[ 2, 568, 13, 62, 6893, 18, 17388, 4611, 9, 761, 9507, 150, 26, 5388, 522, 800, 3726, 3726, 31, 57, 74, 845, 109, 5388, 522, 568, 13, 62, 6893, 18, 17388, 17, 216, 30, 32, 23, 1450, 2276, 9, 352, 85, 31, 2079, 21, 3893, 15, 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...
Has anyone written a thread-safe BindingList<T>? === I am currently getting exceptions when modifying an IBindingList on multiple threads. Does anyone have a threadsafe version before I write my own?
0
[ 2, 63, 1276, 642, 21, 9322, 8, 18166, 8728, 5739, 1, 38, 1, 60, 800, 3726, 3726, 31, 589, 871, 1017, 13392, 76, 17579, 68, 40, 31, 22260, 5739, 27, 1886, 20396, 9, 630, 1276, 57, 21, 9322, 18166, 615, 115, 31, 2757, 51, 258, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Customizing AntRunner output === I'm using Eclipse's AntRunner to build a set of plugins, but I'm having trouble in configuring the logging behavior. Specifically, I'd like AntRunner not to display empty tasks. Anybody knows how to do this?
0
[ 2, 5816, 3335, 40, 38, 12993, 5196, 800, 3726, 3726, 31, 22, 79, 568, 11652, 22, 18, 40, 38, 12993, 20, 1895, 21, 309, 16, 10922, 108, 18, 15, 47, 31, 22, 79, 452, 2572, 19, 1065, 13549, 68, 14, 13, 13919, 3257, 9, 3524, 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...
Regular expression to filter files in OpenFileDialog === I would like to know how to filter files in a open file dialog (in winforms) based on a regular expression. Files have all same extensions (.xml). Big files are split up into several files with the same name only to be separated with _1 ... We only want to show the files without _1 (first data file) the open file dialog has a property filter but i dont know how to specify this in our filename format, hence the regular expression. Thankx, Niki
0
[ 2, 1290, 1803, 20, 11945, 6488, 19, 368, 16877, 4286, 5567, 800, 3726, 3726, 31, 83, 101, 20, 143, 184, 20, 11945, 6488, 19, 21, 368, 3893, 28223, 13, 5, 108, 628, 4190, 18, 6, 432, 27, 21, 1290, 1803, 9, 6488, 57, 65, 205, 17...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Oracle: is there a tool to trace queries, like Profiler for sql server? === i work with sql server, but i must migrate to an application with Oracle DB. for trace my application queries, in Sql Server i use wonderful Profiler tool. is there something of equivalent for Oracle? Thank you for any Advice.
0
[ 2, 15759, 45, 25, 80, 21, 5607, 20, 5565, 9386, 2829, 15, 101, 5296, 139, 26, 4444, 255, 8128, 60, 800, 3726, 3726, 31, 170, 29, 4444, 255, 8128, 15, 47, 31, 491, 22985, 20, 40, 3010, 29, 15759, 13, 9007, 9, 26, 5565, 51, 3010...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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/efficient way to update one list with another list? === Suppose I have one list: IList<int> originalList = new List<int>(); originalList.add(1); originalList.add(5); originalList.add(10); And another list... IList<int> newList = new List<int>(); newList.add(1); newList.add(5); newList.add(7); newList.add(11); How can I update originalList so that: 1. If the int appears in newList, keep 2. If the int does not appear in newList, remove 3. Add any ints from newList into originalList that aren't there already Thus - making the contents of originalList: { 1, 5, 7, 11 } The reason I'm asking is because I have an object with a collection of children. When the user updates this collection, instead of just deleting all children, then inserting their selections, I think it would be more efficient if I just acted on the children that were added or removed, rather than tearing down the whole collection, and inserting the newList children as if they are all new. Ideas?
0
[ 2, 98, 25, 14, 246, 118, 23702, 161, 20, 11100, 53, 968, 29, 226, 968, 60, 800, 3726, 3726, 5787, 31, 57, 53, 968, 45, 31, 5739, 1, 6391, 1, 501, 5739, 800, 78, 968, 1, 6391, 1, 5, 6, 73, 501, 5739, 9, 14854, 5, 165, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Local variables with Delegates === **This is clearly not a best practice**, but can someone explain why or how this works. Or recommend a good book to learn more. //The constructor public Page_Index() { //create a local value string currentValue = "This is the FIRST value"; //use the local variable in a delegate that fires later this.Load += delegate(object sender, EventArgs e) { Response.Write(currentValue); }; //change it again currentValue = "This is the MODIFIED value"; } The value that is output is the second value _"Modified"_. So what part of the compiler magic is making this work? Or is this just as simple as keeping track of the value on the heap and retrieving it again later?
0
[ 2, 375, 12157, 29, 10845, 800, 3726, 3726, 13, 1409, 1565, 25, 2885, 52, 21, 246, 1345, 1409, 15, 47, 92, 737, 3271, 483, 54, 184, 48, 693, 9, 54, 12360, 21, 254, 360, 20, 2484, 91, 9, 12894, 124, 6960, 248, 317, 2478, 1, 2567...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is the fact that Microsoft decided to support JQuery such a big deal ? === I see all this fuss about Microsoft's decision to support JQuery withing ASP.NET MVC. There where signs that people open-minded started to have some say in the matters of marketing for a while now. And even the way they do business started to switch. But at it's core it's still the response at customers requests. I for one don't know what to make of it, except that it brings back to Microsoft's sphere of influence a product that is very well seen.
0
[ 2, 25, 14, 837, 30, 7099, 868, 20, 555, 487, 8190, 93, 145, 21, 580, 1183, 13, 60, 800, 3726, 3726, 31, 196, 65, 48, 20053, 88, 7099, 22, 18, 1401, 20, 555, 487, 8190, 93, 29, 68, 28, 306, 9, 2328, 307, 8990, 9, 80, 113, 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...
How do I refresh the relationships in a dataset? === I a working in VisualStudio 2005. I have a dataset with sevaral datatables in it already. I had to modify the database to add a new foreign key that I forgot about. How do I get visual studio to recognize the new relationship?
0
[ 2, 184, 107, 31, 24905, 14, 5833, 19, 21, 1054, 3554, 60, 800, 3726, 3726, 31, 21, 638, 19, 3458, 21026, 812, 9, 31, 57, 21, 1054, 3554, 29, 1353, 3311, 192, 1054, 5924, 18, 19, 32, 614, 9, 31, 41, 20, 17579, 14, 6018, 20, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unloading classes in java? === I have a custom class loader so that a desktop application can dynamically start loading classes from an AppServer I need to talk to. We did this since the amount of jars that are required to do this are ridiculous (if we wanted to ship them). We also have version problems if we don't load the classes dynamically at run time from the AppServer library. Now, I just hit a problem where I need to talk to two different AppServers and found that depending on whose classes I load first I might break badly... Is there any way to force the unloading of the class without actually killing the JVM? Hope this makes sense
0
[ 2, 367, 16866, 2684, 19, 8247, 60, 800, 3726, 3726, 31, 57, 21, 5816, 718, 6305, 106, 86, 30, 21, 17404, 3010, 92, 7782, 1326, 799, 12797, 2684, 37, 40, 4865, 10321, 106, 31, 376, 20, 930, 20, 9, 95, 144, 48, 179, 14, 2006, 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...
iSeries Export to CSV === Is there a simple way to export the data in an iSeries table to CSV format. I want to have this run automatically after the data is written, so the Windows utilities won't do.
0
[ 2, 31, 8231, 7487, 20, 272, 18, 710, 800, 3726, 3726, 25, 80, 21, 1935, 161, 20, 7487, 14, 1054, 19, 40, 31, 8231, 859, 20, 272, 18, 710, 2595, 9, 31, 259, 20, 57, 48, 485, 7499, 75, 14, 1054, 25, 642, 15, 86, 14, 1936, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to bind from a ContentTemplate to the surrounding custom Control? === I've got the following user control: <TabItem x:Name="Self" x:Class="App.MyTabItem" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:app="clr-namespace:App" > <TabItem.Header> <!-- This works --> <TextBlock Text="{Binding ElementName=Self, Path=ShortLabel, UpdateSourceTrigger=PropertyChanged}"/> </TabItem.Header> <TabItem.ContentTemplate> <DataTemplate> <!-- This binds to "Self" in the surrounding window's namespace --> <TextBlock Text="{Binding ElementName=Self, Path=ShortLabel, UpdateSourceTrigger=PropertyChanged}"/> This custom TabItem defines a `DependencyProperty` 'ShortLabel' to implement an interface. I would like to bind to this and other properties from within the `TabItem`'s `DataTemplate`. But due to strange interactions, the `TextBlock` within the `DataTemplate` gets bound to the **parent container** of the `TabItem`, which also is called "Self", but defined in another Xaml file. I also tried variations with `RelativeSource` or `TemplateBinding`. The former seems to be also affected by the scoping issue, i.e. doesn't find a `MyTabItem` as ancestor. The latter tries to bind to the `ContentPresenter` of the `TabItem` itself, which of course doesn't have the property I'm looking for. Why does the Binding work in the TabItem.Header, but not from within TabItem.ContentTemplate, and how should I proceed to get to the user control's properties from within the DataTemplate? I assume I could replace the whole `ContentTemplate` to achieve the effect I'm lookg for, but since I want to preserve the default look and feel of the `TabItem`, I'm very reluctant to do so.
2
[ 2, 184, 20, 10193, 37, 21, 2331, 9577, 6554, 20, 14, 2470, 5816, 569, 60, 800, 3726, 3726, 31, 22, 195, 330, 14, 249, 4155, 569, 45, 13, 1, 536, 3326, 1503, 993, 45, 7259, 3726, 7, 8411, 7, 993, 45, 1898, 3726, 7, 7753, 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...
User Control Public Shared Variables in ASP.NET 1.1 Not Working As Expected === Let's say I have a web form that includes some user controls. The title tag for my "main" web form is generated in one of the user controls. Passing this data to the web form is currently done like this. Public Sub SetPageValues(ByVal sTitle As String, ByVal sKeywords As String, ByVal sDesc As String) MySystem.Web.UI.Main.PageSettings(sKeywords, sDesc, sTitle) End Sub Main is the name of the web form. Here's the sub that sets that values in Main. Public Shared Sub PageSettings(ByVal strKeywords As String, ByVal strDesc As String, ByVal strTitle As String) Dim _lblTitle As System.Web.UI.webcontrols.Literal = lblTitle Dim _lblMetaDesc As System.Web.UI.webControls.Literal = lblMetaDesc Dim _lblMetaKeywords As System.Web.UI.WebControls.Literal = lblMetaKeywords Dim _lblMetatitle As System.Web.UI.WebControls.Literal = lblMetaTitle _lblTitle.Text = strTitle _lblMetaDesc.Text = "<meta name=""description"" content=""" + strDesc + """>" _lblMetaKeywords.Text = "<meta name=""keywords"" content=""" + strKeywords + """>" _lblMetatitle.Text = "<meta name=""title"" content=""" + strTitle + """>" End Sub After all of this we are running pooled memory and recycle it every 400 minutes, however, page titles get corrupted and display incorrectly. Does anyone have any ideas other than moving to a new version .net?
0
[ 2, 4155, 569, 317, 2592, 12157, 19, 28, 306, 9, 2328, 137, 9, 165, 52, 638, 28, 1727, 800, 3726, 3726, 408, 22, 18, 395, 31, 57, 21, 2741, 505, 30, 1103, 109, 4155, 8671, 9, 14, 581, 3383, 26, 51, 13, 7, 6232, 7, 2741, 505, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP.NET MVC Input Validation === I'm currently working on a blog application in asp.net mvc. I can't quite figure out how to handle my input validation! As far as I understand the view itself cannot know about input validation!? So how am I going to do this?
0
[ 2, 28, 306, 9, 2328, 307, 8990, 6367, 27999, 800, 3726, 3726, 31, 22, 79, 871, 638, 27, 21, 8146, 3010, 19, 28, 306, 9, 2328, 307, 8990, 9, 31, 92, 22, 38, 1450, 1465, 70, 184, 20, 3053, 51, 6367, 27999, 187, 28, 463, 28, 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...
Scrollable JDesktopPane? === I'd like to add scrolling capability to a `javax.swing.JDesktopPane`. But wrapping in a `javax.swing.JScrollPane` does not produced the desired behavior. [Searching the web](http://www.google.com/search?q=scrollable+jdesktoppane) shows that this has been an issue for quite some time. There are some solutions out there, but they seem to be pretty old, for example: [http://jscroll.sourceforge.net](http://jscroll.sourceforge.net) What actively maintained solutions do you know?
0
[ 2, 12159, 579, 487, 3196, 197, 3880, 16660, 60, 800, 3726, 3726, 31, 22, 43, 101, 20, 3547, 13, 28166, 11480, 20, 21, 13, 1, 1004, 1385, 396, 9, 18, 3546, 9, 728, 3196, 197, 3880, 16660, 1, 9, 47, 13437, 19, 21, 13, 1, 1004, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Intercept Windows Vista shutdown event in C# === I want to be able to intercept the shutdown event in C# for Windows Vista. Due to the advanced security features with Vista, any applications that are running after the shutdown command is called are halted and displayed in a list, prompting the user to do something with them. Does anybody know how to overcome this and what events I need to be using in Vista. Thanks.
0
[ 2, 18324, 1936, 13520, 28450, 807, 19, 272, 5910, 800, 3726, 3726, 31, 259, 20, 44, 777, 20, 18324, 14, 28450, 807, 19, 272, 5910, 26, 1936, 13520, 9, 397, 20, 14, 2255, 1221, 967, 29, 13520, 15, 186, 3767, 30, 50, 946, 75, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to detect if any specific drive is a hard drive? === In C# how do you detect is a specific drive is a Hard Drive, Network Drive, CDRom, or floppy?
0
[ 2, 184, 20, 9092, 100, 186, 1903, 1493, 25, 21, 552, 1493, 60, 800, 3726, 3726, 19, 272, 5910, 184, 107, 42, 9092, 25, 21, 1903, 1493, 25, 21, 552, 1493, 15, 982, 1493, 15, 1745, 8541, 15, 54, 28425, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What is the difference between a framework and a library? === I was asked this question today: What is the difference between a ***framework*** and a ***library***? I always thought of a library as a set of objects and functions that is focussed around solving a particular problem or around a specific area of application development (i.e. database access); a framework on the other hand is a collection of libraries centred around a particular methodology (i.e. MVC) and covers all areas of application development. Can anyone help me out on this?
0
[ 2, 98, 25, 14, 2841, 128, 21, 6596, 17, 21, 1248, 60, 800, 3726, 3726, 31, 23, 411, 48, 1301, 786, 45, 98, 25, 14, 2841, 128, 21, 8980, 8361, 3783, 2483, 1409, 17, 21, 8980, 1210, 2559, 622, 2483, 1409, 60, 31, 550, 289, 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...
Silverlight and Rails === Hopefully this will not spark a religious war... We have a web based app in RoR based on an earlier version we build in .net 2.0. So we currently have both .net and RoR skills in house. We want to add a RIA app that interfaces with the rails web app. This should be capable of running offine, with some (perhaps relational) persistence. Considering our inhouse experience we leaning toward leveraging the sliverlight framework over the likes of Flex etc. Would appreciate any thoughts you might have. Thanks Dominic
0
[ 2, 1172, 3130, 17, 2240, 18, 800, 3726, 3726, 13416, 48, 129, 52, 9026, 21, 1631, 176, 9, 9, 9, 95, 57, 21, 2741, 432, 4865, 19, 761, 248, 432, 27, 40, 1201, 615, 95, 1895, 19, 13, 9, 2328, 172, 9, 387, 9, 86, 95, 871, 57,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a list of the common show routines in Vxworks? === In the vxWorks shell, there are a number of routines you can use to display information about the system. These routines are usually referred to as **show** routines because they tend to have the form of "xxxShow". Is there a list of these routines available?
0
[ 2, 25, 80, 21, 968, 16, 14, 757, 298, 8275, 18, 19, 566, 396, 7684, 60, 800, 3726, 3726, 19, 14, 566, 396, 7684, 3593, 15, 80, 50, 21, 234, 16, 8275, 18, 42, 92, 275, 20, 3042, 676, 88, 14, 329, 9, 158, 8275, 18, 50, 951, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 shift items in an array? === I have an array of items that are time sensitive. After an amount of time, the last item needs to fall off and a new item is put at the beginning. What is the best way to do this?
0
[ 2, 184, 20, 4471, 3755, 19, 40, 7718, 60, 800, 3726, 3726, 31, 57, 40, 7718, 16, 3755, 30, 50, 85, 7830, 9, 75, 40, 2006, 16, 85, 15, 14, 236, 9101, 2274, 20, 1080, 168, 17, 21, 78, 9101, 25, 442, 35, 14, 997, 9, 98, 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, 0, 0, 0, 0, 0, 0, 0, 0...
What is the standard SQL Query to retrieve the intersection of tables? === select * from table1 union select * from table1_backup selects the union, what is the query to select the intersection?
0
[ 2, 98, 25, 14, 1236, 4444, 255, 25597, 20, 11917, 14, 5351, 16, 7484, 60, 800, 3726, 3726, 5407, 1637, 37, 859, 165, 667, 5407, 1637, 37, 859, 165, 1, 1958, 576, 5407, 18, 14, 667, 15, 98, 25, 14, 25597, 20, 5407, 14, 5351, 60...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to deploy complex SQL solutions through an installer? === Part of the setup routine for the product I'm working on installs a database update utility. The utility checks the current version of the users database and (if necessary) executes a series of SQL statements that upgrade the database to the current version. Two key features of this routine: - Once initiated, it runs without user interaction - SQL operations preserve the integrity of the users data The goal is to keep the setup/database routine as simple as possible for the end user. However, I find that in some cases, these two features are at odds. For example, I want to add a unique index to one of my tables - yet it's possible that existing data already breaks this rule. I could: - Silently choose what's "right" for the user and discard (or archive) data; or - Ask the user to understand what a unique index is and get them to choose what data goes where Neither option sounds appealing to me. I could compromise and not create a unique index at all, but that would suck. I wonder what others do in this situation?
0
[ 2, 184, 20, 17617, 1502, 4444, 255, 6776, 120, 40, 16146, 106, 60, 800, 3726, 3726, 141, 16, 14, 18161, 8275, 26, 14, 2374, 31, 22, 79, 638, 27, 16146, 18, 21, 6018, 11100, 10082, 9, 14, 10082, 16602, 14, 866, 615, 16, 14, 3878,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to find unused attributes/methods in Visual C++ 2008 === Is there a way to identify unused attributes/methods in Visual C++ 2008 Professional? If it's not possible by default, recommendations of 3rd-party tools are also much appreciated. Thanks, Florian
0
[ 2, 184, 20, 477, 18927, 13422, 118, 5909, 1807, 43, 18, 19, 3458, 272, 20512, 570, 800, 3726, 3726, 25, 80, 21, 161, 20, 5808, 18927, 13422, 118, 5909, 1807, 43, 18, 19, 3458, 272, 20512, 570, 736, 60, 100, 32, 22, 18, 52, 938, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get a list of files on server with ASP.NET using a picker === Is there a component available list FileUpload which shows files on the server, not the client? I am basically looking for a clean dialog box to select server side files, like the one used in FileUpload.
0
[ 2, 164, 21, 968, 16, 6488, 27, 8128, 29, 28, 306, 9, 2328, 568, 21, 2036, 106, 800, 3726, 3726, 25, 80, 21, 5912, 904, 968, 3893, 576, 8294, 56, 1285, 6488, 27, 14, 8128, 15, 52, 14, 6819, 60, 31, 589, 11374, 699, 26, 21, 27...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to emulate .c# as-operator in Java === There are situations, where it is practical to have a type-cast return a null value instead of throwing a ClassCastException. C# hast the as-operator to do this. Is there something equivalent available in Java so you don't have to explicitly check for the ClassCastException?
0
[ 2, 184, 20, 23804, 13, 9, 150, 5910, 28, 8, 9477, 3457, 19, 8247, 800, 3726, 3726, 80, 50, 8329, 15, 113, 32, 25, 5713, 20, 57, 21, 1001, 8, 6146, 788, 21, 16203, 1923, 700, 16, 6033, 21, 718, 6146, 10066, 872, 9, 272, 5910, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Will .Net 4.0 include a new CLR or keep with version 2.0 === Will .Net 4.0 use a new version of the CLR (v2.1, 3.0) or will it stick with the existing v2.0? Supplementary: Is it possibly going to keep with CLR v2.0 and add DLR v1.0? Update: Whilst this might look like a speculative question which cannot be answered, the VS team appear to be releasing more and more info on VS10 and .Net 4.0 so this may very soon not be the case. (Info available here -> http://msdn.microsoft.com/en-us/vstudio/products/cc948977.aspx)
0
[ 2, 129, 13, 9, 2328, 268, 9, 387, 468, 21, 78, 10842, 139, 54, 643, 29, 615, 172, 9, 387, 800, 3726, 3726, 129, 13, 9, 2328, 268, 9, 387, 275, 21, 78, 615, 16, 14, 10842, 139, 13, 5, 710, 135, 9, 165, 15, 203, 9, 387, 6,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I configure Apache 2.2 for Ruby on Rails in Windows? === I'm trying to get started writing some Ruby on Rails apps and have been successful with Mongrel but, I'd like to deploy my apps to my Apache 2.2 instance on Windows? All the tutorials I've found seem out of date and are for older versions of Apache/Rails. Does anyone know of a good, current tutorial for configuring Apache 2.2 for Ruby on Rails apps?
0
[ 2, 184, 107, 31, 1065, 15951, 17140, 172, 9, 135, 26, 10811, 27, 2240, 18, 19, 1936, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 164, 373, 1174, 109, 10811, 27, 2240, 18, 4865, 18, 17, 57, 74, 1300, 29, 21028, 7256, 47, 15, 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...
ASP.net MVC with Ajax === Does anybody know of an up to date tutorial on using Ajax with ASP.net MVC? Most of what I can find seems to talk about older versions of MVC and I suspect that this is an area where there has been a lot of change of late.
0
[ 2, 28, 306, 9, 2328, 307, 8990, 29, 20624, 800, 3726, 3726, 630, 11181, 143, 16, 40, 71, 20, 1231, 29724, 27, 568, 20624, 29, 28, 306, 9, 2328, 307, 8990, 60, 127, 16, 98, 31, 92, 477, 2206, 20, 930, 88, 1234, 3281, 16, 307, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Caching in urllib2? === Is there an easy way to cache things when using urllib2 that I am over-looking, or do I have to roll my own?
0
[ 2, 1658, 7192, 19, 13, 911, 211, 4598, 135, 60, 800, 3726, 3726, 25, 80, 40, 2010, 161, 20, 16522, 564, 76, 568, 13, 911, 211, 4598, 135, 30, 31, 589, 84, 8, 7940, 15, 54, 107, 31, 57, 20, 3001, 51, 258, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Adding rows to datagridview with existing columns === I have a datagridview with several columns created. I add some rows and they get added correctly, but when i click on the cells, the content disappears... (?!) What am I doing wrong? The code is as follows: foreach (SaleItem item in this.Invoice.SaleItems) { DataGridViewRow row = new DataGridViewRow(); gridViewParts.Rows.Add(row); DataGridViewCell cellQuantity = new DataGridViewTextBoxCell(); cellQuantity.Value = item.Quantity; row.Cells["colQuantity"] = cellQuantity; DataGridViewCell cellDescription = new DataGridViewTextBoxCell(); cellDescription.Value = item.Part.Description; row.Cells["colDescription"] = cellDescription; DataGridViewCell cellCost = new DataGridViewTextBoxCell(); cellCost.Value = item.Price; row.Cells["colUnitCost1"] = cellCost; DataGridViewCell cellTotal = new DataGridViewTextBoxCell(); cellTotal.Value = item.Quantity * item.Price; row.Cells["colTotal"] = cellTotal; DataGridViewCell cellPartNumber = new DataGridViewTextBoxCell(); cellPartNumber.Value = item.Part.Number; row.Cells["colPartNumber"] = cellPartNumber; } Thanks!
0
[ 2, 4721, 11295, 20, 1054, 16375, 4725, 29, 3149, 7498, 800, 3726, 3726, 31, 57, 21, 1054, 16375, 4725, 29, 238, 7498, 679, 9, 31, 3547, 109, 11295, 17, 59, 164, 905, 12044, 15, 47, 76, 31, 10840, 27, 14, 2934, 15, 14, 2331, 2034...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using P/Invoke correctly === I need to call an external dll from c#. This is the header definition: enum WatchMode { WATCH_MODE_SYSTEM = 0, WATCH_MODE_APPLICATION = 1 }; LONG ADS_API WDT_GetMode ( LONG i_hHandle, WatchMode * o_pWatchMode ); I've added the enum and the call in C#: public enum WatchMode { WATCH_MODE_SYSTEM = 0, WATCH_MODE_APPLICATION = 1 } [DllImport("AdsWatchdog.dll")] internal static extern long WDT_GetMode(long hHandle, ref WatchMode watchmode); This generates an AccessViolationException. I know the dll is 'working' because I've also added a call to GetHandle whcih returns the hHandle mentioned above. I've tried to change the param to an int (ref int watchmode) but get the same error. Doesn anyone know how I can PInvoke the above call?? -Edoode
0
[ 2, 568, 351, 118, 108, 2625, 1048, 12044, 800, 3726, 3726, 31, 376, 20, 645, 40, 4886, 13, 43, 211, 37, 272, 5910, 9, 48, 25, 14, 157, 106, 5465, 45, 1957, 723, 1455, 15570, 13, 1, 1455, 1, 15570, 1, 10724, 800, 713, 15, 1455,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 opposite of 'parse'? === I have a function, parseQuery, that parses a SQL query into an abstract representation of that query. I'm about to write a function that takes an abstract representation of a query and returns a SQL query string. What should I call the second function?
0
[ 2, 98, 25, 14, 2794, 16, 13, 22, 3574, 870, 22, 60, 800, 3726, 3726, 31, 57, 21, 1990, 15, 2017, 870, 8190, 93, 15, 30, 2017, 7202, 21, 4444, 255, 25597, 77, 40, 8502, 5442, 16, 30, 25597, 9, 31, 22, 79, 88, 20, 2757, 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 I move a TFS file with c# API? === I have been googling for a good time on how to move a file with c# using the TFS API. The idea is to have a folder on which the developers drop database upgrade scripts and the build process get's to the folder creates a build script and moves all the files on the folder to a new folder with the database build version that we just created. I cannot seriously find any reference about moving files programatically in TFS... (aside of the cmd command line) does anybody know of a good guide / msdn starting point for learning TFS source control files manipulation via c#? Kind regards L
0
[ 2, 184, 107, 31, 780, 21, 13, 11720, 18, 3893, 29, 272, 5910, 21, 2159, 60, 800, 3726, 3726, 31, 57, 74, 162, 5598, 802, 26, 21, 254, 85, 27, 184, 20, 780, 21, 3893, 29, 272, 5910, 568, 14, 13, 11720, 18, 21, 2159, 9, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to exclude a certain member from a MDX call that gets all descendants of a member at a higher level === In an OLAP database I work with there is a 'Location' hierarchy consisting of the levels Company -> Region -> Area -> Site -> Room. I am using the following MDX to get all the descendants of a particular member at company level. DESCENDANTS([Location].[Test Company],[Location].[Site], SELF_AND_BEFORE) I now have a requirement to exclude a particular Region, named "Redundant", from the report. How can I change the above MDX to exclude this particular Region (and all its descendants)? I know this Region will be called "Redundant" but I do not want to hard-code any of the other Region names, as these may change.
0
[ 2, 184, 20, 21077, 21, 1200, 322, 37, 21, 8138, 396, 645, 30, 3049, 65, 8568, 16, 21, 322, 35, 21, 1184, 662, 800, 3726, 3726, 19, 40, 13, 2268, 306, 6018, 31, 170, 29, 80, 25, 21, 13, 22, 19032, 22, 14417, 4160, 16, 14, 221...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 my .NET application crash when run from a network drive? === My .NET application fails when run from a network drive even when the very same executable runs perfectly fine from a local hard drive? I tried checking for "Full trust" like so: try { // Demand full trust permissions PermissionSet fullTrust = new PermissionSet( PermissionState.Unrestricted ); fullTrust.Demand(); // Perform normal application logic } catch( SecurityException ) { // Report that permissions were not full trust MessageBox.Show( "This application requires full-trust security permissions to execute." ); } However, this isn't helping. Any ideas?
0
[ 2, 483, 630, 51, 13, 9, 2328, 3010, 4597, 76, 485, 37, 21, 982, 1493, 60, 800, 3726, 3726, 51, 13, 9, 2328, 3010, 13614, 76, 485, 37, 21, 982, 1493, 166, 76, 14, 253, 205, 1396, 17194, 5924, 1461, 5759, 1123, 37, 21, 375, 552,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 append a large amount of rich content (images, formatting) quickly to a control without using tons of CPU? === I am using wxWidgets and Visual C++ to create functionality similar to using Unix "tail -f" with rich formatting (colors, fonts, images) in a GUI. I am targeting both wxMSW and wxMAC. The obvious answer is to use wxTextCtrl with wxTE_RICH, using calls to wxTextCtrl::SetDefaultStyle() and wxTextCtrl::WriteText(). However, on my 3ghz workstation, compiled in release mode, I am unable to keep tailing a log that grows on average of 1 ms per line, eventually falling behind. For each line, I am incurring: 1. Two calls to SetDefaultStyle() 2. Two calls two WriteText() 3. A call to Freeze() and Thaw() the widget When running this, my CPU goes to 100% on one core using wxMSW after filling up roughly 20,000 lines. The program is visibly slower once it reaches a certain threshold, falling further behind. I am open to using other controls (wxListCtrl, wxRichTextCtrl, etc).
0
[ 2, 184, 107, 31, 4865, 2451, 21, 370, 2006, 16, 2042, 2331, 13, 5, 22039, 18, 15, 2595, 1203, 6, 976, 20, 21, 569, 366, 568, 5278, 16, 17578, 60, 800, 3726, 3726, 31, 589, 568, 619, 396, 3976, 43, 3060, 18, 17, 3458, 272, 2051...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using events rather than exceptions to implement error handling === I'm working on some code that uses a pattern in its business and data tiers that uses events to signal errors e.g. resource = AllocateLotsOfMemory(); if (SomeCondition()) { OnOddError(new OddErrorEventArgs(resource.StatusProperty)); resource.FreeLotsOfMemory(); return; } This looked superficially rather odd, especially as the code that calls this needs to hook into the events (there are four or five different ones!). The developer tells me that this way they can refer to the properties of the allocated resource in the error handling code, and that responsibility for cleaning up after the error is kept by this tier. Which makes some kind of sense. The alternative might be something like resource = AllocateLotsOfMemory(); if (SomeCondition()) { BigObject temporary = resource.StatusProperty; resource.FreeLotsOfMemory(); throw new OddException(temporary); } My questions are: 1. As this "`BigObject`" is freed when the exception object is released, do we need this pattern? 2. Has anyone else experience of this pattern? If so, what pitfalls did you find? What advantages are there? Thanks!
0
[ 2, 568, 963, 864, 119, 13392, 20, 8713, 7019, 7988, 800, 3726, 3726, 31, 22, 79, 638, 27, 109, 1797, 30, 2027, 21, 3732, 19, 82, 508, 17, 1054, 7197, 18, 30, 2027, 963, 20, 2800, 11908, 13, 62, 9, 263, 9, 6577, 800, 65, 111, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a better way to do optional function parameters in Javascript? === I've always handled optional parameters in Javascript like this: function myFunc(requiredArg, optionalArg){ optionalArg = optionalArg || 'defaultValue'; //do stuff } Is there a better way to do it? Are there any cases where using **||** like that is going to fail?
0
[ 2, 25, 80, 21, 574, 161, 20, 107, 12832, 1990, 12905, 19, 8247, 8741, 60, 800, 3726, 3726, 31, 22, 195, 550, 9006, 12832, 12905, 19, 8247, 8741, 101, 48, 45, 1990, 51, 16638, 150, 5, 99, 3003, 2095, 10663, 15, 12832, 10663, 6, 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 properly branch post-commit and revert the trunk in svn? === I have some commits that I've decided, after the fact, are going to be more branch work then trunk work. How do I create the branch and revert the trunk while still ensuring merging isn't painful later? Is it as simple as copying the current trunk to a branch and reverting the trunk? Or will this create headaches later?
0
[ 2, 184, 107, 31, 7428, 1686, 678, 8, 960, 5130, 17, 24156, 14, 6436, 19, 13, 18, 16578, 60, 800, 3726, 3726, 31, 57, 109, 9686, 18, 30, 31, 22, 195, 868, 15, 75, 14, 837, 15, 50, 228, 20, 44, 91, 1686, 170, 94, 6436, 170, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is the DLR going to be capable of compiling client-side code? === Is the DLR intended to be used to compile code exclusively prior to distribution or will it potentially be used to compile client-side Javascript in a JIT fashion?
0
[ 2, 25, 14, 13, 43, 12988, 228, 20, 44, 3868, 16, 24378, 6819, 8, 1416, 1797, 60, 800, 3726, 3726, 25, 14, 13, 43, 12988, 2081, 20, 44, 147, 20, 26561, 1797, 7008, 1313, 20, 2523, 54, 129, 32, 9465, 44, 147, 20, 26561, 6819, 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, 0, 0, 0, 0, 0, 0, 0, 0...
Returning form, querystring, cookie values by priority in ASP.NET MVC === I'm wondering why query string is preferred when getting values from user request. Where? 1) Code of DefaultModelBinder looks like this (only part of it): HttpRequestBase request = controllerContext.HttpContext.Request; if (request != null) { if (request.QueryString != null) { values = request.QueryString.GetValues(modelName); attemptedValue = request.QueryString[modelName]; } if ((values == null) && (request.Form != null)) { invariantCulture = CultureInfo.CurrentCulture; values = request.Form.GetValues(modelName); attemptedValue = request.Form[modelName]; } } 2) If I have a method in controller with this signature: public ActionResult Save(int? x, string y) {... the parameters (x, y) are bound to values from query string, not from form. I would expect that values from Request.From have higher priority than from Request.QueryString. What's the motivation behind?
0
[ 2, 2485, 505, 15, 25597, 11130, 15, 19980, 4070, 34, 9857, 19, 28, 306, 9, 2328, 307, 8990, 800, 3726, 3726, 31, 22, 79, 5712, 483, 25597, 3724, 25, 5981, 76, 1017, 4070, 37, 4155, 3772, 9, 113, 60, 137, 6, 1797, 16, 12838, 1399...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which Dependency Injection Tool Should I Use? === I am thinking about using Microsoft Unity for my Dependency Injection tool in our User Interface. Our Middle Tier already uses Castle Windsor, but I am thinking I should stick with Microsoft. Does anyone have any thoughts about what the best Dependency Injection tool is? * Autofac * Castle MicroKernel/Windsor * ObjectBuilder * PicoContainer.NET * Puzzle.NFactory * Spring.NET * StructureMap * Ninject * Unity * NauckIT.MicroKernel * WINTER4NET
0
[ 2, 56, 26835, 13646, 5607, 378, 31, 275, 60, 800, 3726, 3726, 31, 589, 1440, 88, 568, 7099, 8385, 26, 51, 26835, 13646, 5607, 19, 318, 4155, 6573, 9, 318, 772, 7197, 614, 2027, 1339, 10784, 15, 47, 31, 589, 1440, 31, 378, 5258, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Send query results to Excel from ASP.NET website === We let users create ad-hoc queries in our website. We would like to have the user select their criteria, then click submit and have the results streamed automatically to Excel. I have the application populating a DataTable, then using the datatable to create a tab delimited string. The problem is getting that to excel. What is the best way to stream data to Excel? Preferrably, we wouldn't have to make users close an empty window after clicking the submit button.
0
[ 2, 2660, 25597, 1736, 20, 20700, 37, 28, 306, 9, 2328, 2271, 800, 3726, 3726, 95, 408, 3878, 1600, 21, 43, 8, 1807, 150, 9386, 2829, 19, 318, 2271, 9, 95, 83, 101, 20, 57, 14, 4155, 5407, 66, 9157, 15, 94, 10840, 12298, 17, 57...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 mysqldump --password really do what it says? === I'm trying to use `mysqldump` to dump a schema, and it mostly works but I ran into one curiosity: the `-p` or `--password` option seems like it is doing something other than setting the password (as the `man` page and `--help` output say it should). Specifically, it looks like it's doing what is indicated here: <http://snippets.dzone.com/posts/show/360> - that is, setting the database to dump. To support my somewhat outlandish claim, I can tell you that if I do not specify the `--password` (or `-p`) option, the command prints the usage statement and exits with an error. If I do specify it, I am immediately prompted to enter a password (!), and then the database specified in the `--password` option is dumped (or an error is given in the usual case that a password not matching any database name was specified). Here's a transcript: <pre> $ mysqldump -u test -h myhost --no-data --tables --password lose Enter password: <entered user test's password> -- MySQL dump 10.10 mysqldump: Got error: 1044: Access denied for user 'test'@'%' to database 'lose' when selecting the database </pre> So, what gives? Is this the way this is supposed to work? It surely does not appear to make sense nor does it match the official documentation. And finally, if this just the way it works, how am I meant to specify the password to be used in an automated job? Using `expect`??? I'm using `mysqldump Ver 10.10 Distrib 5.0.22, for pc-linux-gnu (i486)`.
0
[ 2, 630, 51, 18, 22402, 43, 11134, 13, 8, 8, 6201, 9587, 510, 107, 98, 32, 898, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 275, 13, 1, 915, 18, 22402, 43, 11134, 1, 20, 11424, 21, 23874, 15, 17, 32, 1555, 693, 47, 31, 717, 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...
Keeping GUIs responsive during long-running tasks === Keeping the GUI responsive while the application does some CPU-heavy processing is one of the challenges of effective GUI programming. [Here's a good discussion][1] of how to do this in wxPython. To summarize, there are 3 ways: 1. Use threads 2. Use wxYield 3. Chunk the work and do it in the IDLE event handler Which method have *you* found to be the most effective ? Techniques from other frameworks (like Qt, GTK or Windows API) are also welcome. [1]: http://wiki.wxpython.org/LongRunningTasks
0
[ 2, 2882, 9457, 18, 13, 22153, 112, 175, 8, 11325, 8674, 800, 3726, 3726, 2882, 14, 9457, 13, 22153, 133, 14, 3010, 630, 109, 17578, 8, 19870, 5511, 25, 53, 16, 14, 7595, 16, 3140, 9457, 3143, 9, 636, 6836, 22, 18, 21, 254, 5460,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Encrypting Salary value in ASP .NET 2.0 and SQL Server 2005 === I have an ASP .NET 2.0 website connected to a SQL Server 2005 database. The site is pretty simple and stores information about staff, including salary. What is the best way to encrypt the salary value so no-one (including myself) can ever see what it is, except for the authorised staff using the web-app? I don't want to encrypt / decrypt on the SQL Server because I could just run SQL Profiler to view the information, so I assume the encrypt/decrypt happens in the BLL on the web server? Also, do I need SSL to stop someone sniffing HTTP responses between the browser and the web server? Many thanks! Anthony
0
[ 2, 1957, 11435, 68, 10925, 1923, 19, 28, 306, 13, 9, 2328, 172, 9, 387, 17, 4444, 255, 8128, 812, 800, 3726, 3726, 31, 57, 40, 28, 306, 13, 9, 2328, 172, 9, 387, 2271, 2587, 20, 21, 4444, 255, 8128, 812, 6018, 9, 14, 689, 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...
DOS batch files: .bat or .cmd? === As I understand it, `.bat` is the old 16-bit naming convention, and `.cmd` is for 32-bit Windows, i.e., starting with NT. But I continue to see .bat files everywhere, and they seem to work exactly the same using either suffix. Assuming that my code will never need to run on anyhting older than NT, does it really matter which way I name my batch files, or is there some **gotcha** awaiting me by using the wrong suffix?
0
[ 2, 107, 18, 13064, 6488, 45, 13, 9, 4900, 54, 13, 9, 9095, 43, 60, 800, 3726, 3726, 28, 31, 1369, 32, 15, 13, 1, 9, 4900, 1, 25, 14, 315, 347, 8, 3326, 10929, 3087, 15, 17, 13, 1, 9, 9095, 43, 1, 25, 26, 2512, 8, 3326, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual Studio Keyboard Shortcut to automatically add the needed Using statement === What is the keyboard shortcut to expand the little red line that gives you the menu where you can choose to have the necessary Using statement added to the top of the file? My Googling skills have not proved fruitful.
0
[ 2, 3458, 1120, 8896, 502, 4118, 20, 7499, 3547, 14, 851, 568, 3331, 800, 3726, 3726, 98, 25, 14, 8896, 502, 4118, 20, 6073, 14, 265, 402, 293, 30, 2352, 42, 14, 11379, 113, 42, 92, 3538, 20, 57, 14, 2378, 568, 3331, 905, 20, 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, 0...
recursivity in XSD Schemas === I need to create an XSD schema that validates a tree structure of an XML document. I don't know exactly the ocurrences or deepth level of the tree. XML example: <node> <attribute/> <node> <attribute/> <node> </node> </node> </node> Which is the best way to validate it? Thanks
0
[ 2, 26604, 18, 9633, 19, 993, 18, 43, 23874, 18, 800, 3726, 3726, 31, 376, 20, 1600, 40, 993, 18, 43, 23874, 30, 7394, 7759, 21, 1541, 1411, 16, 40, 23504, 4492, 9, 31, 221, 22, 38, 143, 1890, 14, 635, 4734, 2789, 5052, 54, 855...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Archiving VMware images on ESXi === Is there a way to compress a VMWare image on a ESXi server for archival purposes?
0
[ 2, 13, 25328, 68, 13, 20147, 5011, 3502, 27, 13, 160, 5845, 800, 3726, 3726, 25, 80, 21, 161, 20, 26060, 21, 13, 20147, 5011, 1961, 27, 21, 13, 160, 5845, 8128, 26, 24601, 4612, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Rhino Mocks, MbUnit: Best way to check if object has raised an event === I have an object that I'm testing that raises an event. What is the best way of using Rhino Mocks to check that it was raised? Best I could come up with (I am certain it gets better than this): public void MyCallback(object sender, EventArgs e) { _flag = true;} [Test] public void DoSomethingRaisesEvent() { _flag = false; using(_mocks.Record()) { Expect.Call(delegeate { _obj.DoSomething();}); } using(_mocks.Playback()) { _obj = new SomethingDoer(); _obj.SomethingWasDoneEvent += new EventHandler(MyHandler); Assert.IsTrue(_flag); } }
0
[ 2, 18642, 10506, 18, 15, 14023, 15464, 45, 246, 161, 20, 2631, 100, 3095, 63, 1127, 40, 807, 800, 3726, 3726, 31, 57, 40, 3095, 30, 31, 22, 79, 4431, 30, 15303, 40, 807, 9, 98, 25, 14, 246, 161, 16, 568, 18642, 10506, 18, 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...
NSCoder vs NSDictionary, when do you use what? === I'm trying to figure out how to decide when to use NSDictionary or NSCoder/NSCoding? It seems that for general property lists and such that NSDictionary is the easy way to go that generates XML files that are easily editable outside of the application. When dealing with custom classes that holds data or possibly other custom classes nested inside, it seems like NSCoder/NSCoding would be the better route since it will step through all the contained object classes and encode them as well when an archive command is used. NSDictionary seems like it would take more work to get all the properties or data characteristics to a single level to be able to save it, where as NSCoder/NSCoding would automatically encode nested custom classes that implement the NSCoding interface. Outside of it being binary data and not editable outside of your application is there a real reason to use one over the other? And along those lines is there an indicator of which way you should lean between the two? Am I missing something obvious?
0
[ 2, 13, 103, 8328, 1157, 4611, 13, 2172, 22595, 1857, 15, 76, 107, 42, 275, 98, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 1465, 70, 184, 20, 4073, 76, 20, 275, 13, 2172, 22595, 1857, 54, 13, 103, 8328, 1157, 118, 2172, 15458, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What does the POP3 CAPA UIDL command do? === What does the POP3 CAPA UIDL command do?
0
[ 2, 98, 630, 14, 1675, 240, 2605, 58, 13, 5661, 8643, 1202, 107, 60, 800, 3726, 3726, 98, 630, 14, 1675, 240, 2605, 58, 13, 5661, 8643, 1202, 107, 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...
[ 1, 1, 1, 1, 1, 1, 1, 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...
When should I write a Linux kernel module? === Some people want to move code from user space to kernel space in Linux for some reason. A lot of times the reason seems to be that the code should have particularly high priority or simply "kernel space is faster". This seems strange to me. When should I consider writing a kernel module? Are there a set of criterias? How can I motivate keeping code in user space that (I believe) belong there?
0
[ 2, 76, 378, 31, 2757, 21, 13024, 17007, 12613, 60, 800, 3726, 3726, 109, 148, 259, 20, 780, 1797, 37, 4155, 726, 20, 17007, 726, 19, 13024, 26, 109, 1215, 9, 21, 865, 16, 436, 14, 1215, 2206, 20, 44, 30, 14, 1797, 378, 57, 165...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JMS message receiver filtering by JMSCorrelationID === <P>How can I instantiate a JMS queue listener in java (JRE /JDK / J2EE 1.4) that only receives messages that match a given JMSCorrelationID? The messages that I'm looking to pick up have been published to a queue and not a topic, although that can change if needed.</P> Here's the code that I'm currently using to put the message in the queue: /** * publishResponseToQueue publishes Requests to the Queue. * * @param jmsQueueFactory -Name of the queue-connection-factory * @param jmsQueue -The queue name for the request * @param response -A response object that needs to be published * * @throws ServiceLocatorException -An exception if a request message * could not be published to the Topic */ private void publishResponseToQueue( String jmsQueueFactory, String jmsQueue, Response response ) throws ServiceLocatorException { if ( logger.isInfoEnabled() ) { logger.info( "Begin publishRequestToQueue: " + jmsQueueFactory + "," + jmsQueue + "," + response ); } logger.assertLog( jmsQueue != null && !jmsQueue.equals(""), "jmsQueue cannot be null" ); logger.assertLog( jmsQueueFactory != null && !jmsQueueFactory.equals(""), "jmsQueueFactory cannot be null" ); logger.assertLog( response != null, "Request cannot be null" ); try { Queue queue = (Queue)_context.lookup( jmsQueue ); QueueConnectionFactory factory = (QueueConnectionFactory) _context.lookup( jmsQueueFactory ); QueueConnection connection = factory.createQueueConnection(); connection.start(); QueueSession session = connection.createQueueSession( false, QueueSession.AUTO_ACKNOWLEDGE ); ObjectMessage objectMessage = session.createObjectMessage(); objectMessage.setJMSCorrelationID(response.getID()); objectMessage.setObject( response ); session.createSender( queue ).send( objectMessage ); session.close(); connection.close(); } catch ( Exception e ) { //XC3.2 Added/Modified BEGIN logger.error( "ServiceLocator.publishResponseToQueue - Could not publish the " + "Response to the Queue - " + e.getMessage() ); throw new ServiceLocatorException( "ServiceLocator.publishResponseToQueue " + "- Could not publish the " + "Response to the Queue - " + e.getMessage() ); //XC3.2 Added/Modified END } if ( logger.isInfoEnabled() ) { logger.info( "End publishResponseToQueue: " + jmsQueueFactory + "," + jmsQueue + response ); } } // end of publishResponseToQueue method
0
[ 2, 487, 79, 18, 2802, 6264, 25272, 34, 487, 79, 18, 4966, 99, 10832, 1340, 800, 3726, 3726, 13, 1, 306, 1, 1544, 92, 31, 6322, 15882, 21, 487, 79, 18, 22521, 21772, 19, 8247, 13, 5, 728, 99, 13, 118, 728, 43, 197, 13, 118, 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...
Is there a way to define which fields in the model are editable in the admin app? === Assume the following: *models.py* class Entry(models.Model): title = models.CharField(max_length=50) slug = models.CharField(max_length=50, unique=True) body = models.CharField(max_length=200) *admin.py* class EntryAdmin(admin.ModelAdmin): prepopulated_fields = {'slug':('title',)} I want the slug to be pre-populated by the title, but I dont want the user to be able to edit it from the admin. I assumed that adding the fields=[] to the admin object and not including the slug would have worked, but it didnt. I also tried setting editable=False in the model, but that also didnt work (infact, stops the page from rendering). Thoughts?
0
[ 2, 25, 80, 21, 161, 20, 9267, 56, 2861, 19, 14, 1061, 50, 9392, 579, 19, 14, 21, 43, 2160, 4865, 60, 800, 3726, 3726, 7158, 14, 249, 45, 1637, 13998, 18, 9, 6448, 2483, 718, 2792, 5, 13998, 18, 9, 13998, 6, 45, 581, 800, 276...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Would you start learning Smalltalk? === My questions is simple! 1. Would you start learning Smalltalk if you had the time? Why? Why not? 2. Do you already know Smalltalk? Why would you recommend Smalltalk? Why not? Personally I'm a Ruby on Rails programmer and I really like it. However, I'm thinking about Smalltalk because I read various blogs and some people are calling Ruby something like "Smalltalk Light". The second reason why I'm interested in Smalltalk is [Seaside][1]. Maybe someone has made the same transition before? [1]: http://seaside.st
0
[ 2, 83, 42, 799, 2477, 284, 9718, 60, 800, 3726, 3726, 51, 2346, 25, 1935, 187, 137, 9, 83, 42, 799, 2477, 284, 9718, 100, 42, 41, 14, 85, 60, 483, 60, 483, 52, 60, 172, 9, 107, 42, 614, 143, 284, 9718, 60, 483, 83, 42, 123...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
In SQL Server Management Studio can I search for assets across multiple databases? === My everyday IDE is Eclipse which has a wonderful Open Resource feature (CTRL+SHIFT+R or Navigate > Open Resource) which allows the user to search for files/resources across multiple projects. I can't find a similar feature in SQL Server Management Studio, is there one?
0
[ 2, 19, 4444, 255, 8128, 1097, 1120, 92, 31, 2122, 26, 6223, 464, 1886, 6018, 18, 60, 800, 3726, 3726, 51, 10789, 13, 3448, 25, 11652, 56, 63, 21, 5934, 368, 6577, 1580, 13, 5, 4812, 6362, 2430, 14157, 2430, 139, 54, 20782, 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...
Formatting Price in Javascript === I would like to format a price in Javascript. Basically, I have a float variable, and i'd like to have a function that will receive that variable, and output: "$ 2,500.00" What's the best way to do this?
0
[ 2, 2595, 1203, 2162, 19, 8247, 8741, 800, 3726, 3726, 31, 83, 101, 20, 2595, 21, 2162, 19, 8247, 8741, 9, 11374, 15, 31, 57, 21, 11510, 7612, 15, 17, 31, 22, 43, 101, 20, 57, 21, 1990, 30, 129, 2588, 30, 7612, 15, 17, 5196, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
recieving variable from javascript code to php code === Iam trying to send a variable value from javascript to php using ajax request,the php when receives this value makes a query in database, and returns the result in XML format...everything looks working great for me in Mozilla FF, but in IE and when i try to send the variable value in Arabic language (UTF-8) special character language it stops working though i added the following code part to my php: http://dpaste.com/717863/ this part handles the values passed to php from the script and sets the encoding to UTF-8...though still Arabic is not working for me in IE case, but English is working fine....can anyone help me please
0
[ 2, 13, 15110, 2443, 68, 7612, 37, 8247, 8741, 1797, 20, 13, 26120, 1797, 800, 3726, 3726, 31, 765, 749, 20, 2660, 21, 7612, 1923, 37, 8247, 8741, 20, 13, 26120, 568, 20624, 3772, 15, 124, 13, 26120, 76, 8359, 48, 1923, 1364, 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...
iPad zoom separates website divs === I am having an issue on my website I am building when viewing on an iPad or iPhone. The header of the page is position:fixed; to the top. Whilst the rest of the website scrolls down in a container div. Basically when i view on the iPad, and pinch to zoom. The header element zoom and moves to the right, and the scrollable content moves left and also enlarges so i end up with as website that is in two sections? I have attempted to use the min-width:1024 css and user-scalable=0 but neither work. The user-scalable stops it from being zoomed but then when it rotated to portrait from landscape, the website retains the width at landscape as it rotates, so then the website is too wide for the screen. Hope I have explained this well enough. I have tried some javascript which I got from this website but that completely scrambles the whole website as it rotates... the code I tried to use is below: ...html header... <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> ...javscript... var checkOrientation; checkOrientation = function() { var viewport; viewport = document.querySelector("meta[name=viewport]"); if (window.orientation === 90 || window.orientation === -90) { return viewport.setAttribute("content", "width:device-width, initial-scale=1.0, user- scalable=0"); } else { return viewport.setAttribute("content", "width:device-width, initial-scale=0.6, user- scalable=0"); } }; window.onorientationchange = function() { return checkOrientation(); }; checkOrientation(); Thank you in advance
0
[ 2, 31, 8240, 19469, 1725, 18, 2271, 13, 12916, 18, 800, 3726, 3726, 31, 589, 452, 40, 1513, 27, 51, 2271, 31, 589, 353, 76, 11244, 27, 40, 31, 8240, 54, 21024, 9, 14, 157, 106, 16, 14, 2478, 25, 649, 45, 18594, 69, 73, 20, 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...
Xcode error - Thread 1: signal SIGABRT === I am creating a simple RSS application and I am not that good in Objective-c. The application will always build successful and there is no errors or warnings, in the UITableView which reads the RSS, whenever i press the cells it will terminate and in the main.m this thread will come "Thread 1: signal SIGABRT" in this line: return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); The information of my app: The app is created by Xcode version: 4.3.1 The app was created from the "Master-Detail Application" template for iPhone and on a MacBook. The debugger I am using is LLDB and my iPhone simulator is 5.1 I am using Storyboard Here is the Main.m: #import <UIKit/UIKit.h> #import "AppDelegate.h" int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } } The AppDelegate.h is: #import <UIKit/UIKit.h> @interface AppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; UINavigationController *navigationController; } @property (nonatomic, retain) IBOutlet UIWindow *window; @property (nonatomic, retain) IBOutlet UINavigationController *navigationController; @end My AppDelegate.m is: #import "AppDelegate.h" #import "AppDelegate.h" #import "MasterViewController.h" @implementation AppDelegate @synthesize window; @synthesize navigationController; #pragma mark - #pragma mark Application lifecycle - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after app launch [window addSubview:[navigationController view]]; [window makeKeyAndVisible]; return YES; } - (void)applicationWillTerminate:(UIApplication *)application { // Save data if appropriate } #pragma mark - #pragma mark Memory management - (void)dealloc { [navigationController release]; [window release]; [super dealloc]; } @end If you want more information just say it to me by answers and I will edit my question and then you will edit your answer. I would really appreciate you help.
3
[ 2, 993, 9375, 7019, 13, 8, 9322, 6352, 2800, 8858, 2297, 5256, 800, 3726, 3726, 31, 589, 2936, 21, 1935, 13, 1224, 18, 3010, 17, 31, 589, 52, 30, 254, 19, 7038, 8, 150, 9, 14, 3010, 129, 550, 1895, 1300, 17, 80, 25, 90, 11908,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Excel to DataTable Error in c# === I have a strange problem, when i try to open and load excel data to a DataTable, some data in excel sheet loads but some data doesn't load, what is the problem, can you help me. I added GetExcelData function, please look at this code, and please tell me what is the problem. public DataTable GetExcelData(string fileName, string sheetName) { string sql = ""; OleDbConnection conn = new OleDbConnection(); OleDbCommand command; OleDbDataAdapter adapter = new OleDbDataAdapter(); DataTable dt = new DataTable(); command = conn.CreateCommand(); string excel_file = openFileDialog1.FileName; string excel_type = System.IO.Path.GetExtension(excel_file); string connstr = ""; if(excel_type=="XLSX") connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + fileName + ";Extended Properties=Excel 8.0"; else connstr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +fileName + ";Extended Properties='Excel 12.0;IMEX=1; HDR=YES'"; conn.ConnectionString = connstr; sql = "SELECT * FROM [" + sheetName + "$]"; command.CommandText = sql; adapter.SelectCommand = command; adapter.Fill(dt); return dt; }
0
[ 2, 20700, 20, 1054, 5924, 7019, 19, 272, 5910, 800, 3726, 3726, 31, 57, 21, 2578, 1448, 15, 76, 31, 1131, 20, 368, 17, 6305, 20700, 1054, 20, 21, 1054, 5924, 15, 109, 1054, 19, 20700, 6125, 19069, 47, 109, 1054, 1437, 22, 38, 63...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Removing Trailing Whitespace Of All Files Recursively? === How can you remove all of the trailing whitespace of an entire project? Starting at a root directory, and removing the whitespace from all files in all folders.
0
[ 2, 184, 20, 9096, 14323, 359, 5582, 16, 65, 6488, 302, 24244, 102, 60, 800, 3726, 3726, 184, 92, 42, 4681, 65, 16, 14, 14323, 359, 5582, 16, 40, 1078, 669, 60, 1422, 35, 21, 5900, 16755, 15, 17, 9096, 14, 359, 5582, 37, 65, 64...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How to display a non-ascii filename in the file download box in browsers? === There doesn't seem to be an accepted way of sending down a header parameter in non ascii format. The header for file download usually looks like Content-disposition: attachment; filename="theasciifilename.doc" Except if you smash a utf8 encoded string in the filename parameter, Firefox will handle it fine, whereas IE will throw up. There is a [document on CodeProject that explains a method for encoding the filename.][1] This document encodes Bản Kiểm Kê.doc to B%e1%ba%a3n%20Ki%e1%bb%83m%20K%c3%aa.doc by hex encoding the bytes. Problem #1: the first character in that string: ả has a value of &#7843; -- encode that number in Hex and you get %a3%1e. How did this guy get %e1%ba%a3? (I'm obviously missing something simple here) Problem #2: While IE acknowledges this encoding, Firefox doesn't! What to do? [1]: http://www.codeproject.com/KB/aspnet/NonUSASCII.aspx
0
[ 2, 184, 20, 3042, 21, 538, 8, 472, 1892, 49, 3893, 7259, 19, 14, 3893, 7121, 1649, 19, 16495, 18, 60, 800, 3726, 3726, 80, 1437, 22, 38, 2260, 20, 44, 40, 2217, 161, 16, 4907, 125, 21, 157, 106, 18906, 19, 538, 28, 1892, 49, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 you favorite Ruby on Rails books and why? === I'm looking to pick up a few books on RoR to help teach myself how to build a scalable RoR app. I have read the RailsSpace book, and am starting the Rails Way book tonight. Some topics of interest are: REST - considering using Amazon's SimpleDB using rSepc effectively memcached - server architecture and code implementation mongel - server architecture MySQL
0
[ 2, 98, 50, 42, 3839, 10811, 27, 2240, 18, 964, 17, 483, 60, 800, 3726, 3726, 31, 22, 79, 699, 20, 2036, 71, 21, 310, 964, 27, 761, 248, 20, 448, 5348, 992, 184, 20, 1895, 21, 18957, 579, 761, 248, 4865, 9, 31, 57, 1302, 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...
StackTrace in Flash / ActionScript 3.0 === I want to see the stack trace in any function of my code, so i made somthing like this to call it and print the stack trace: public function PrintStackTrace() { try { throw new Error('StackTrace'); } catch (e:Error) { trace(e.getStackTrace()); } } I like to know if there are other way to do this. In some place, the Error class creates the stack trace, but maybe it didn't do it with ActionScript 3.0 so maybe it's not posible, but i want to know. Thanks!
0
[ 2, 7566, 38, 7367, 19, 4433, 13, 118, 1028, 8741, 203, 9, 387, 800, 3726, 3726, 31, 259, 20, 196, 14, 7566, 5565, 19, 186, 1990, 16, 51, 1797, 15, 86, 31, 117, 86, 79, 96, 68, 101, 48, 20, 645, 32, 17, 4793, 14, 7566, 5565, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Multiple Indexes Work Together? === Suppose I have a database table with two fields, "foo" and "bar". Neither of them are unique, but each of them are indexed. However, rather than being indexed together, they each have a separate index. Now suppose I perform a query such as <code>SELECT * FROM sometable WHERE foo='hello' AND bar='world';</code> My table a huge number of rows for which foo is 'hello' and a small number of rows for which bar is 'world'. So the most efficient thing for the database server to do under the hood is use the bar index to find all fields where bar is 'world', then return only those rows for which foo is 'hello'. This is <code>O(n)</code> where n is the number of rows where bar is 'world'. However, I imagine it's possible that the process would happen in reverse, where the fo index was used and the results searched. This would be <code>O(m)</code> where m is the number of rows where foo is 'hello'. So is Oracle smart enough to search efficiently here? What about other databases? Or is there some way I can tell it in my query to search in the proper order? Perhaps by putting <code>bar='world'</code> first in the <code>WHERE</code> clause?
0
[ 2, 92, 1886, 4348, 160, 170, 429, 60, 800, 3726, 3726, 5787, 31, 57, 21, 6018, 859, 29, 81, 2861, 15, 13, 7, 4120, 111, 7, 17, 13, 7, 1850, 7, 9, 3028, 16, 105, 50, 2619, 15, 47, 206, 16, 105, 50, 4348, 69, 9, 207, 15, 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...
Recovery from optical media ignoring read errors === I have backups of files archived in optical media (CDs and DVDs). These all have par2 recovery files, stored on separate media. Even in cases where there are no par2 files, minor errors when reading on one optical drive can be read fine on another drive. The thing is, when reading faulty media, the read time is very, very long, because devices tend to retry multiple times. The question is: how can I control the number of retries (ie set to no retries or only one try)? Some system call? A library I can download? Do I have to work on the SCSI layer? The question is mainly about Linux, but any Win32 pointers will be more than welcome too.
0
[ 2, 6550, 37, 9445, 941, 9321, 1302, 11908, 800, 3726, 3726, 31, 57, 10119, 18, 16, 6488, 10692, 19, 9445, 941, 13, 5, 6324, 18, 17, 3527, 18, 6, 9, 158, 65, 57, 2017, 135, 6550, 6488, 15, 8214, 27, 1725, 941, 9, 166, 19, 1871,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Capturing the Click event in an Excel spreadsheet === How can I capture the event in Excel when a user clicks on a cell. I want to be able to use this event to trigger some code to count how many times the user clicks on several different cells in a column.
0
[ 2, 12859, 14, 10840, 807, 19, 40, 20700, 1789, 17627, 800, 3726, 3726, 184, 92, 31, 3683, 14, 807, 19, 20700, 76, 21, 4155, 10840, 18, 27, 21, 1667, 9, 31, 259, 20, 44, 777, 20, 275, 48, 807, 20, 7286, 109, 1797, 20, 2468, 184...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
Crystal Reports vs ReportViewer Pros/Cons? === We have been designing our reports around Crystal Reports in VS2008 for our web application and I just discovered the Microsoft provided ReportViewer control. I've searched around a bit but cannot find a good breakdown of the pros and cons of each method of producing reports. I'm looking for pros and cons regarding: - Ease of development - Ease of deployment - Ability to export data - Ease of support and finding help on the web
4
[ 2, 4282, 2813, 4611, 1330, 4725, 106, 895, 18, 118, 12124, 60, 800, 3726, 3726, 95, 57, 74, 15026, 318, 2813, 140, 4282, 2813, 19, 4611, 2753, 26, 318, 2741, 3010, 17, 31, 114, 1848, 14, 7099, 1173, 1330, 4725, 106, 569, 9, 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...
Changing/Adding controls to the windows Open/Save common dialog === Is there a way of changing/adding to the windows Open/Save common dialog to add extra functionality? At work we have an area on a server with hundreds of 'jobfolders'- just ordinary windows folders created/managed automatically by the database application to house information about a job (emails/scanned faxes/Word docs/Spreadsheets/Photos etc) The folders are named by the job Number. I would like to expand the standard open/save dialog with a combobox which searches for jobfolders based on tags from the database, so that whatever my users are doing they can easily find their way to the correct jobfolder to find/save their work Connecting to the database and providing the functionality to search is no problem, but is there a way to add a combobox control (ideally with a keypress/keydown event) to the dialog? Or Create my own dialog and have it called/used in place of the standard one? i.e. from any app my dialog would be called allowing easy access to the jobfolders Ideally someone would know a way using VB/VB.net/C# but I'm guessing, if its possible, its probably going to be C++ Thanks in advance!
0
[ 2, 4226, 118, 58, 11365, 8671, 20, 14, 1936, 368, 118, 19863, 757, 28223, 800, 3726, 3726, 25, 80, 21, 161, 16, 4226, 118, 58, 11365, 20, 14, 1936, 368, 118, 19863, 757, 28223, 20, 3547, 2230, 18548, 60, 35, 170, 95, 57, 40, 217...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MSSQL 2000: "subquery returned more than one value" on an update statement === I'm trying to do a simple update. I've done this kind of thing thousands of times. update articles set department = 60 where type = 'Top Story' Today I get a strange error. > Describe Error: Failed to retreive > execution plan: Subquery returned more > than 1 value. This is not permitted > when the subquery follows =, !=, <, <= > , >, >= or when the subquery is used > as an expression. > > Warnings: ---> W (1): The > statement has been terminated. > <--- > > 1559 record(s) affected Of course the subquery returns more than one value. Why is that a problem?
0
[ 2, 4235, 18, 22402, 824, 45, 13, 7, 7563, 8190, 93, 587, 91, 119, 53, 1923, 7, 27, 40, 11100, 3331, 800, 3726, 3726, 31, 22, 79, 749, 20, 107, 21, 1935, 11100, 9, 31, 22, 195, 677, 48, 825, 16, 584, 3805, 16, 436, 9, 11100, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Request.UrlReferrer null!? === In an aspx C#.NET page (I am running framework v3.5), I need to know where the user came from. If I have page 'A' redirect to page 'B', the Request.UrlReferrer object is null. Background: If a user isn't logged in, I redirect to the Login page ('B' in this scenario). After login, I would like to return them to the page they were requesting before they were forced to log in.
0
[ 2, 3772, 9, 911, 255, 99, 2407, 99, 139, 16203, 187, 60, 800, 3726, 3726, 19, 40, 28, 306, 396, 272, 5910, 9, 2328, 2478, 13, 5, 49, 589, 946, 6596, 566, 240, 9, 264, 6, 15, 31, 376, 20, 143, 113, 14, 4155, 281, 37, 9, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to update VS' CSS validation to 3.0? === I'm getting warnings about CSS3.0 properties like text-overflow. Is there a way to validate against 3.0?
0
[ 2, 25, 80, 21, 161, 20, 11100, 4611, 22, 272, 18, 18, 27999, 20, 203, 9, 387, 60, 800, 3726, 3726, 31, 22, 79, 1017, 3590, 18, 88, 272, 18, 18, 240, 9, 387, 3704, 101, 1854, 8, 2549, 9990, 9, 25, 80, 21, 161, 20, 7394, 137...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How can one iterate over stored procedure results from within another stored procedure....without cursors? === I'm not sure if this is something I should do in T-SQL or not, and I'm pretty sure using the word 'iterate' was wrong in this context, since you should never iterate anything in sql. It should be a set based operation, correct? Anyway, here's the scenario: I have a stored proc that returns many uniqueidentifiers (single column results). These ids are the primary keys of records in a another table. I need to set a flag on all the corresponding records in that table. How do I do this without the use of cursors? Should be an easy one for you sql gurus!
0
[ 2, 184, 92, 53, 32, 106, 1373, 84, 8214, 7004, 1736, 37, 363, 226, 8214, 7004, 9, 9, 9, 9, 14506, 29588, 18, 60, 800, 3726, 3726, 31, 22, 79, 52, 562, 100, 48, 25, 301, 31, 378, 107, 19, 13, 38, 8, 18, 22402, 54, 52, 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...
Database independence in Unix/C === We have a system written in C and running under Solaris & Linux that uses the Sybase CT-library to access a Sybase database. We generate the table-definitions, indexes, stored procedures and C-code from an in-house developed DDL to reduce the amount of work and errors. We would like to achieve database independence, so we can add (as a first start) Oracle support. We're thinking about ODBC or ESQL/C, but having no experience with them. What solution would you suggest (preferably a cheap and easy one, of course). Is it possible to have a single source solution?
0
[ 2, 6018, 2772, 19, 22540, 118, 150, 800, 3726, 3726, 95, 57, 21, 329, 642, 19, 272, 17, 946, 131, 4535, 403, 279, 13024, 30, 2027, 14, 10315, 8436, 13, 4812, 8, 1210, 2559, 622, 20, 1381, 21, 10315, 8436, 6018, 9, 95, 7920, 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...
Loading animated gif from JAR file into ImageIcon === I'm trying to create a ImageIcon from a animated gif stored in a jar file. ImageIcon imageIcon = new ImageIcon(ImageIO.read(MyClass.class.getClassLoader().getResourceAsStream("animated.gif"))); The image loads, but only the first frame of the animated gif. The animation does not play. If I load the animated gif from a file on the filesystem, everything works as expected. The animation plays through all the of frames. So this works: ImageIcon imageIcon = new ImageIcon("/path/on/filesystem/animated.gif"); How can I load an animated gif into an ImageIcon from a jar file?
0
[ 2, 12797, 5784, 489, 821, 37, 5112, 3893, 77, 1961, 49, 1126, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 21, 1961, 49, 1126, 37, 21, 5784, 489, 821, 8214, 19, 21, 5112, 3893, 9, 1961, 49, 1126, 1961, 49, 1126, 800, 78, 1961, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...