unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
What's the difference between Polymorphism and Multiple Dispatch? === ...or are they the same thing? I notice that each has its own Wikipedia entry: [\[1\]](http://en.wikipedia.org/wiki/Polymorphism_(computer_science\)) [\[2\]](http://en.wikipedia.org/wiki/Multiple_dispatch), but I'm having trouble seeing how the concepts differ.
0
[ 2, 98, 22, 18, 14, 2841, 128, 3446, 13348, 17, 1886, 14226, 60, 800, 3726, 3726, 13, 9, 9, 9, 248, 50, 59, 14, 205, 584, 60, 31, 3551, 30, 206, 63, 82, 258, 20169, 2792, 45, 636, 1, 2558, 165, 1, 500, 500, 5, 21127, 6903, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Synchronize a DataSet and DataTables with Database === I am using ADO.net with a DataSet and DataTables for the first time and I have run into a pretty significant problem. Each time that I change anything in my database table definitions, I don't seem to have an easy way to synchronize these changes to my DataTable definitions in my DataSet. So far, it has been quick to simply delete my DataTable object and drag a new one over from the Server Explorer and recreate my queries. But as my application grows, this will soon become impossible. I also don't want to have to log every single change to the database and remember to change those definitions in each respective column in any effected DataTables. For the record, I am using VS 2008, MySQL 5.0, ASP.net. ADO.net is my data provider, and I am really regretting it. Thanks.
0
[ 2, 13, 16023, 2952, 21, 1054, 3554, 17, 1054, 5924, 18, 29, 6018, 800, 3726, 3726, 31, 589, 568, 21, 537, 9, 2328, 29, 21, 1054, 3554, 17, 1054, 5924, 18, 26, 14, 64, 85, 17, 31, 57, 485, 77, 21, 1772, 1505, 1448, 9, 206, 85...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 worst project you've ever been on? === Most importantly, did it fail? If it did, why? And if it didn't, why?
2
[ 2, 98, 25, 14, 4126, 669, 42, 22, 195, 462, 74, 27, 60, 800, 3726, 3726, 127, 16922, 15, 144, 32, 7476, 60, 100, 32, 144, 15, 483, 60, 17, 100, 32, 223, 22, 38, 15, 483, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Transparently swapping pointers to character arrays in C++ === I have a 2D character array: `char nm[MAX1][MAX2] = { "john", "bob", "david" };` I want to swap two of these elements (without `std::swap`) by simply writing `swapPointers(nm[0], nm[1]);` where `swapPointers` looks like this <code>void swapPointers(char *&a, char *&b) { char *temp = a; a = b; b = a; } </code> However, this does not compile (and while adding casts makes it compile, the pointers end up pointing to wrong/weird locations). Can anybody help? Thanks,
0
[ 2, 14862, 102, 10143, 5574, 454, 445, 20, 925, 7718, 18, 19, 272, 20512, 800, 3726, 3726, 31, 57, 21, 172, 43, 925, 7718, 45, 13, 1, 5433, 9384, 2558, 8304, 165, 500, 2558, 8304, 135, 500, 800, 13, 1, 13, 7, 7373, 7, 15, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I turn off impersonation just in a couple instances. === I have an app that has impersonation used throughout. But when a user is logged in as an admin, a few operation require them to write to the server itself. Now if these users do not have rights on the actual server (some don't) it will not let them write. What I want to do is turn off impersonation for just a couple commands. Is there a way to do something like this? using(HostingEnvironment.Impersonate.Off()) //I know this isn't a command, but you get the idea? Thank you.
0
[ 2, 92, 31, 805, 168, 797, 7276, 857, 114, 19, 21, 1335, 13946, 9, 800, 3726, 3726, 31, 57, 40, 4865, 30, 63, 797, 7276, 857, 147, 892, 9, 47, 76, 21, 4155, 25, 13, 19287, 19, 28, 40, 21, 43, 2160, 15, 21, 310, 1453, 4077, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Formula for controlling the movement of a tank-like vehicle? === Anyone know the formula used to control the movement of a simple tank-like vehicle? To 'steer' it, you need to alter the force applied the left and right "wheels". Eg. 1 unit of force on both wheels makes it go forward. -1 units of force on both wheels makes it go backwards. Apply more force to one wheel than the other and it turns. How would you calculate the amount of force needed on both wheels to turn the tank a certain number of degrees either way? Or am I thinking about this in the wrong way?
0
[ 2, 3729, 26, 10106, 14, 1018, 16, 21, 3569, 8, 1403, 2664, 60, 800, 3726, 3726, 1276, 143, 14, 3729, 147, 20, 569, 14, 1018, 16, 21, 1935, 3569, 8, 1403, 2664, 60, 20, 13, 22, 6100, 106, 22, 32, 15, 42, 376, 20, 7835, 14, 55...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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/Open Source Test Generator for Java? === Are there any libraries for Java that can generate unit tests or unit test skeletons for existing code? I'm looking for something similar to [pythoscope][1]. Ideally it would generate code that follows JUnit4 or TestNG conventions. It looks like [Agitar][2] does something like this, but I'm looking for something free. [1]: http://pythoscope.org/ [2]: http://www.agitar.com/
0
[ 2, 551, 118, 10157, 1267, 1289, 15286, 26, 8247, 60, 800, 3726, 3726, 50, 80, 186, 8649, 26, 8247, 30, 92, 7920, 1237, 4894, 54, 1237, 1289, 11714, 18, 26, 3149, 1797, 60, 31, 22, 79, 699, 26, 301, 835, 20, 636, 6448, 11927, 115...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adding New Element to Text Substring === Say I have the following string: "I am the most foo h4ck3r ever!!" I'm trying to write a makeSpecial(foo) function where the foo substring would be wrapped in a new span element, resulting in: "I am the most <span class="special">foo></span> h4ck3r ever!!" BeautifulSoup seemed like the way to go, but I haven't been able to make it work. I could also pass this to the browser and do it with javascript, but that doesn't seem like a great idea. Some advice for this would be really useful, especially in python.
0
[ 2, 4721, 78, 4520, 20, 1854, 972, 11130, 800, 3726, 3726, 395, 31, 57, 14, 249, 3724, 45, 13, 7, 49, 589, 14, 127, 4310, 111, 746, 300, 2601, 240, 139, 462, 19015, 7, 31, 22, 79, 749, 20, 2757, 21, 233, 11118, 5, 4120, 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...
Installation documentation === I'm looking for a good template on server-side installation of software for a project I'm working on. The client-side is pretty straight-forward. The server-side installation is a little trickier. It is made up of several pieces (services, database connections, dependencies, ports that need to be unblocked etc) During a recent test, several undocumented pieces were discovered. Now I need to create installation guides for our disaster-recovery plans and ways to test the installation without necessarily having a "full-up" system to test on. I'd really like a suggestion of where I can get a template or a really good example of such a document. I'd like it to be something that an operator could read and comprehend in the heat of a recovery.
0
[ 2, 7758, 13945, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 254, 22894, 27, 8128, 8, 1416, 7758, 16, 2306, 26, 21, 669, 31, 22, 79, 638, 27, 9, 14, 6819, 8, 1416, 25, 1772, 1599, 8, 21216, 9, 14, 8128, 8, 1416, 7758, 25, 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...
winForms + DataGridView binding to a List<T> === So, every few months I write something in WinForms to remind myself why I hate it. Today is the day. I'm trying to bind a List&lt;T&gt; to a DataGridView control, and I'm not having any luck creating custom bindings (Ugh at all the late bound crap). I tried: gvProgramCode.DataBindings.Add(new Binding("Opcode",code,"Opcode")); It throws an exception, saying that nothing was found by that propertyname. The name of the column in question is "Opcode". The name of the property in the List&lt;T&gt; is Opcode. I'm getting angry at winforms again.
0
[ 2, 628, 4190, 18, 2754, 1054, 16375, 4725, 8728, 20, 21, 968, 1, 38, 1, 800, 3726, 3726, 86, 15, 352, 310, 818, 31, 2757, 301, 19, 628, 4190, 18, 20, 11702, 992, 483, 31, 3223, 32, 9, 786, 25, 14, 208, 9, 31, 22, 79, 749, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP code to convert a MySQL query to CSV === The CSV must also include one top line of field names. Cheers.
4
[ 2, 13, 26120, 1797, 20, 8406, 21, 51, 18, 22402, 25597, 20, 272, 18, 710, 800, 3726, 3726, 14, 272, 18, 710, 491, 67, 468, 53, 371, 293, 16, 575, 1817, 9, 10497, 18, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Rounded corners, is this Mozilla specific? === I was looking at how some site implemented rounded corners, and the CSS had these odd tags that I've never really seen before. -moz-border-radius-topright: 5px; -webkit-border-top-right-radius: 5px; -moz-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; I googled it, and they seem to be Firefox specific tags? <b>Update</b> The site I was looking at was twitter, it's wierd how a site like that would alienate their IE users.
0
[ 2, 8472, 8894, 15, 25, 48, 13, 18057, 3247, 1903, 60, 800, 3726, 3726, 31, 23, 699, 35, 184, 109, 689, 6807, 8472, 8894, 15, 17, 14, 272, 18, 18, 41, 158, 4210, 3383, 18, 30, 31, 22, 195, 243, 510, 541, 115, 9, 13, 8, 18057,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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++ Passing Options To Executable === How do you pass options to an executable? Is there an easier way than making the options boolean arguments?
0
[ 2, 272, 20512, 2848, 6368, 20, 1396, 17194, 5924, 800, 3726, 3726, 184, 107, 42, 1477, 6368, 20, 40, 1396, 17194, 5924, 60, 25, 80, 40, 4950, 161, 119, 544, 14, 6368, 9827, 413, 210, 10553, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
WYSIWYG HTML Editor for Windows Mobile forms app === I am developing a forms app (not web) for Windows Mobile, using .NET CF 3.5. I need an HTML editor control. I'm looking for something along the lines of a simple FCKEditor, but for using in a forms app (EXE). Any suggestions?
0
[ 2, 5809, 18, 49, 7913, 263, 13, 15895, 1835, 26, 1936, 3241, 1997, 4865, 800, 3726, 3726, 31, 589, 3561, 21, 1997, 4865, 13, 5, 1270, 2741, 6, 26, 1936, 3241, 15, 568, 13, 9, 2328, 10084, 203, 9, 264, 9, 31, 376, 40, 13, 15895...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Long running ruby process that uses ActiveRecord to store records in a database === I'm trying to write an app using Ruby on Rails and I'm trying to achieve the following: >The app needs to receive UDP messages coming in on a specific port (possibly 1 or more per second) and store them in the database so that the rest of my Rails app can access it. I was thinking of writing a separate daemon that would receive these messages and shell out to a ruby script on my rails app that will store the message in the database using the right model. The problem with this approach is that the ruby script will be run very often. It would be better performance-wise if I could just have a long-running ruby process that can constantly receive the UDP messages store them in the database. Is this the right way to do it? Is there something in the Rails framework that can help with this?
0
[ 2, 175, 946, 10811, 953, 30, 2027, 1348, 14953, 20, 1718, 742, 19, 21, 6018, 800, 3726, 3726, 31, 22, 79, 749, 20, 2757, 40, 4865, 568, 10811, 27, 2240, 18, 17, 31, 22, 79, 749, 20, 4689, 14, 249, 45, 13, 1, 124, 4865, 2274, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1000's of locations have a desktop application that need to upload diff's of their db to a central store === There are literally thousands of locations where an application is running (.net desktop app),and a requirement is to have the updates to their database (diff from the last upload) to be sent to a central server that will store all the locations data. What options do I have in coming up with a solution? One idea is to generate an XML file with all the rows since the last sych., and upload that to a file server that will then be imported into the main database. Note: the changed data will be minimal since this process will run every few hours.
0
[ 2, 6150, 22, 18, 16, 4095, 57, 21, 17404, 3010, 30, 376, 20, 71, 8294, 20811, 22, 18, 16, 66, 13, 9007, 20, 21, 521, 1718, 800, 3726, 3726, 80, 50, 6949, 3805, 16, 4095, 113, 40, 3010, 25, 946, 13, 5, 9, 2328, 17404, 4865, 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...
Relative path reference in WebConfig.ConnectionString === Is it possible to specify a relative path reference in connectionstring, attachDbFileName property in a web.config? For example, In my database is located in the App_data folder, I can easily specify the AttachDBFilename as|DataDirectory|\mydb.mdf and the |Datadirectory| will automatically resolve to the correct path. Now, suppose that web.config file is located in A folder, but the database is located in B\App_data folder, where A and B folder is located in the same folder. Is there anyway to use relative path reference to resolve to the correct path?
0
[ 2, 4543, 2013, 2801, 19, 2741, 14093, 2816, 9, 25996, 872, 11130, 800, 3726, 3726, 25, 32, 938, 20, 19077, 21, 4543, 2013, 2801, 19, 2760, 11130, 15, 19514, 9007, 16877, 7259, 1354, 19, 21, 2741, 9, 14093, 2816, 60, 26, 823, 15, 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...
open source .net based MMORPG === I want to learn the calculations behind creating a MMorpg game. Things like characters who build up their strengths buy purchasing varios armor, weaponary, training, experience, past victories, etc. and how this effects the chances of winning in a fight against other players etc. Any ideas?
0
[ 2, 368, 1267, 13, 9, 2328, 432, 1620, 248, 9623, 800, 3726, 3726, 31, 259, 20, 2484, 14, 19186, 439, 2936, 21, 1620, 248, 9623, 250, 9, 564, 101, 1766, 72, 1895, 71, 66, 2169, 18, 3034, 14828, 4033, 7760, 7416, 15, 3652, 1857, 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...
Passing a regex substitution as a variable in Perl? === I need to pass a regex substitution as a variable: sub proc { my $pattern = shift; my $txt = "foo baz"; $txt =~ $pattern; } my $pattern = 's/foo/bar/'; proc($pattern); This, of course, doesn't work. I tried eval'ing the substitution: eval("$txt =~ $pattern;"); but that didn't work either. What horribly obvious thing am I missing here?
0
[ 2, 2848, 21, 7953, 1706, 19910, 28, 21, 7612, 19, 416, 255, 60, 800, 3726, 3726, 31, 376, 20, 1477, 21, 7953, 1706, 19910, 28, 21, 7612, 45, 972, 13, 15617, 13, 1, 51, 5579, 5972, 8766, 800, 4471, 73, 51, 5579, 38, 396, 38, 80...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's a good tool to screen-scrape with Javascript support? === Is there a good test suite or tool set that can automate website navigation -- with Javascript support -- and collect the HTML from the pages? Of course I can scrape straight HTML with BeautifulSoup. But this does me no good for sites that require Javascript. :)
0
[ 2, 98, 22, 18, 21, 254, 5607, 20, 2324, 8, 18, 7519, 1664, 29, 8247, 8741, 555, 60, 800, 3726, 3726, 25, 80, 21, 254, 1289, 6160, 54, 5607, 309, 30, 92, 3108, 5281, 2271, 8368, 13, 8, 8, 29, 8247, 8741, 555, 13, 8, 8, 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...
Does postscript has a concept of a table? === As the title says... Thank you in advance... Cheers, RWendi
0
[ 2, 630, 678, 8741, 63, 21, 2420, 16, 21, 859, 60, 800, 3726, 3726, 28, 14, 581, 898, 9, 9, 9, 3531, 42, 19, 3612, 9, 9, 9, 10497, 18, 15, 761, 458, 9805, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Any quirks I should be aware of in Drupal's XML-RPC and BlogAPI implementations? === I'm beginning work on a project that will access a Drupal site to create (and eventually edit) nodes on the site, via the XML-RPC facility and BlogAPI module shipped with Drupal. This includes file uploading, as the project is to allow people to upload pictures en mass to a Drupal site with minimal ado. What I'd like to know is if there are any caveats I should look out for. Has anyone had experience targeting Drupal's XML-RPC implementation, or the implementation of any of the blogging APIs supported by its BlogAPI module? What advice would you give to others taking the same path?
0
[ 2, 186, 19321, 18, 31, 378, 44, 3854, 16, 19, 15708, 6720, 22, 18, 23504, 8, 139, 5779, 17, 8146, 2552, 49, 6123, 18, 60, 800, 3726, 3726, 31, 22, 79, 997, 170, 27, 21, 669, 30, 129, 1381, 21, 15708, 6720, 689, 20, 1600, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Reinstalling/ un-revoking digital signatures === So I have a problem in Vista which I can't run certain applications (well, the entier MS suite, Office, Visual Studio, etc) as an Administrator. From the looks of the problem it is caused by the Digital Signature, and the fact that it has been "revoked". So now I have a problem, how do I un-revoke the digital signature? Alternatively I've got a copy of the digital signature from a co-worker whos one is fine. I've tried right-click -> install certificate but it doesn't seem to change anything, nor can I work out how to select it when I try to install a certificate for Visual Studio/ Office.
0
[ 2, 7102, 21300, 68, 118, 367, 8, 99, 2625, 1581, 1888, 19506, 800, 3726, 3726, 86, 31, 57, 21, 1448, 19, 13520, 56, 31, 92, 22, 38, 485, 1200, 3767, 13, 5, 854, 15, 14, 1957, 5259, 4235, 6160, 15, 488, 15, 3458, 1120, 15, 2722...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
STL like containter typedef shortcut? === A common pattern with STL containers is this: map<Key, Value> map; for(map<Key, Value>::iterator iter = map.begin(); iter != map.end(); ++iter) { ... } So inorder to avoid writing the decleration of the template parameters we can do this somewhere: typedef map<Key, Value> TNiceNameForAMap; But if this map is only used in a single function or for a single iteration this is an annoying overhead. Is there any way around this typedef?
0
[ 2, 354, 255, 101, 3717, 815, 1001, 13862, 502, 4118, 60, 800, 3726, 3726, 21, 757, 3732, 29, 354, 255, 18988, 25, 48, 45, 2942, 1, 4237, 15, 1923, 1, 2942, 73, 26, 5, 15022, 1, 4237, 15, 1923, 1, 45, 45, 242, 106, 3457, 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...
I tried to lean Python and Ruby but... === I've been trying to lean Python and/or Ruby since I read about they characteristics, my problem is that I always learn more when I actually need to solve a problem, than working on merely theoretical problems. I've tried to make some scripts for file management, and actually did some good scripts to copy files or parse HTML but at the end or I don't have the time or I get bored because I don't really need them in my daily job. I have about 8 yrs. of Java and I think I'm very proficient in it. So when I really really need something I end up doing in java ( for instance start with a directory and walk through the file hierarchy and read o bunch of jar files in to find out where a particular class is, when I got the "ClassNotFoundexception" ) I tried both, Python and Ruby at the beginning but since I do not know the API for reading zip files I ended up by doing in Java. Same thing happened to me when I tried to learn some java specific technology , like ORM, EJB, Java Server Faces ( which I still don't know ) or Spring ( which I don't know neither ) . I only learned the first two until I worked on a project that needed them. I think that going through a tutorial, reading a book and that kind of stuff bores me. Do you have any suggestions to actually learn any of these two beautiful languages, other than change my job and start from zero as junior-- programmer? :P Thanks and regards.
0
[ 2, 31, 794, 20, 6349, 20059, 17, 10811, 47, 9, 9, 9, 800, 3726, 3726, 31, 22, 195, 74, 749, 20, 6349, 20059, 17, 118, 248, 10811, 179, 31, 1302, 88, 59, 5626, 15, 51, 1448, 25, 30, 31, 550, 2484, 91, 76, 31, 1121, 376, 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...
extracting text from MS word files in python === for working with MS word files in python, there is python win32 extensions, which can be used in windows. How do I do the same in linux? Is there any library?
0
[ 2, 10962, 68, 1854, 37, 4235, 833, 6488, 19, 20059, 800, 3726, 3726, 26, 638, 29, 4235, 833, 6488, 19, 20059, 15, 80, 25, 20059, 628, 3125, 17529, 15, 56, 92, 44, 147, 19, 1936, 9, 184, 107, 31, 107, 14, 205, 19, 13024, 60, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Mysql search and replace some text in a field === What Mysql query will do a text search and replace in one particular field in a table? ie search for 'foo' and replace with 'bar' so a record with a field with the value : 'hello foo' becomes: 'hello bar'.
0
[ 2, 51, 18, 22402, 2122, 17, 3934, 109, 1854, 19, 21, 575, 800, 3726, 3726, 98, 51, 18, 22402, 25597, 129, 107, 21, 1854, 2122, 17, 3934, 19, 53, 1498, 575, 19, 21, 859, 60, 13, 660, 2122, 26, 13, 22, 4120, 111, 22, 17, 3934, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there an equivalent to ctrl-shift-r in Safari/WebKit? === I.e. something that would really reload the page or resource, ignoring whatever might be in cache.
0
[ 2, 25, 80, 40, 4602, 20, 13, 4812, 6362, 8, 14157, 8, 139, 19, 25055, 118, 14113, 13703, 60, 800, 3726, 3726, 31, 9, 62, 9, 301, 30, 83, 510, 27339, 14, 2478, 54, 6577, 15, 9321, 2099, 530, 44, 19, 16522, 9, 3, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Is there a way to validate hAtom microformat? === I have implemented <a href="http://microformats.org/wiki/hatom">hAtom microformat</a> on my blog. At least, I think I have, but I can't find any validator (or any software that uses hAtom) in order to determine if I have done this correctly. A <a href="http://www.google.com/search?num=100&q=hatom+validator&btnG=Search">Google search for "hatom validator"</a> currently doesn't return anything useful. Does anyone know of a way to confirm that it is implemented correctly?
0
[ 2, 25, 80, 21, 161, 20, 7394, 1373, 2970, 2636, 2899, 23588, 60, 800, 3726, 3726, 31, 57, 6807, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 22019, 23588, 18, 9, 5583, 118, 17375, 118, 994, 6015, 7, 1, 994, 6015, 2899, 23588, 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 does Perl 6 evaluate truthiness? === In reading about Perl 6, I see a feature being trumpeted about, where you no longer have to do: return "0 but True"; ...but can instead do: return 0 but True; If that's the case, how does truth work in Perl 6? In Perl 5, it was pretty simple: 0, "", and undef are false, everything else is true. What are the rules in Perl 6 when it comes to boolean context?
0
[ 2, 184, 630, 416, 255, 400, 13, 15599, 1770, 8776, 60, 800, 3726, 3726, 19, 1876, 88, 416, 255, 400, 15, 31, 196, 21, 1580, 142, 7429, 69, 88, 15, 113, 42, 90, 1045, 57, 20, 107, 45, 788, 13, 7, 387, 47, 1151, 7, 73, 13, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Chaining Static Methods in PHP? === Is it possible to chain static methods together using a static class? Say I wanted to do something like this: $value = TestClass::toValue(5)::add(3)::subtract(2)::add(8)::result(); . . . and obviously I would want $value to be assigned the number 14. Is this possible?
0
[ 2, 2858, 68, 12038, 3195, 19, 13, 26120, 60, 800, 3726, 3726, 25, 32, 938, 20, 2858, 12038, 3195, 429, 568, 21, 12038, 718, 60, 395, 31, 417, 20, 107, 301, 101, 48, 45, 5579, 15165, 800, 1289, 1898, 45, 45, 262, 15165, 5, 264, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How would you handle users who don't read dialog boxes? === A recent article on [Arstechnica][1] discusses a recent study performed by Psychology Department of North Carolina State University, that showed users have a tendancy to do what ever it takes to get rid of a dialog box to get back to their task at hand. Most of them would click ok or yes, minimize the dialog, or close the dialog, regardless of the message being displayed. Some of the dialog boxes displayed were real, and some of them were fake (like those popups displayed by webpages posing as an antivirus warning). The response times would indicate that those users aren't really reading those dialog boxes. So, knowing this, how would this effect your design, and what would you try to do about it (if anything)? [1]: http://arstechnica.com/news.ars/post/20080923-study-confirms-users-are-idiots.html
0
[ 2, 184, 83, 42, 3053, 3878, 72, 221, 22, 38, 1302, 28223, 8120, 60, 800, 3726, 3726, 21, 1764, 2002, 27, 636, 5446, 27753, 58, 500, 2558, 165, 500, 18272, 21, 1764, 949, 986, 34, 6182, 604, 16, 200, 2016, 146, 155, 15, 30, 1908,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 mercurial, what's the easiest way to commit and push a single file while leaving other modifications alone? === I'm relatively new to Mercurial and my team is trying it out right now as a replacement for Subversion. How can I commit and push a single file out to another repository while leaving other modifications in my working directory uncommitted (or at least not pushed to the other repository)? This happens for us with database migrations. We want to commit the migration to source control so a DBA can view and edit it while we're working on the code modifications to go along with that database migration. The changes aren't yet ready to go so we don't want to push all of them out. In subversion, I'd simply do: svn add my_migration.sql # commit only the migration, but not the other files I'm working on svn commit -m "migration notes" my_mygration.sql and continue working locally. This doesn't work with mercurial as when I'm pushing it out to the other repository, if there are changes to it that I haven't pulled down, it wants me to pull them down, merge them, and commit that merge to the repository. Commits after a merge don't allow you to omit files so it forces you to commit everything in your local repository. The easiest thing that I can figure out is to commit the file to my local repository, clone my local repository, fetch any new changes from the actual repository, merge them and commit that merge, and them push my changes out. hg add my_migration.sql hg commit -m "migration notes" my_migration.sql cd .. hg clone project project-clone cd project-clone hg fetch http://hg/project hg push http://hg/project This works, but it feels like I'm missing something easier, some way to tell mercurial to ignore the files already in my working directory, just do the merge and send the files along. I suspect mercurial queues can do this, but I don't fully grok mq yet.
0
[ 2, 568, 9046, 3594, 192, 15, 98, 22, 18, 14, 27237, 161, 20, 9686, 17, 3250, 21, 345, 3893, 133, 1107, 89, 13922, 1056, 60, 800, 3726, 3726, 31, 22, 79, 3109, 78, 20, 9046, 3594, 192, 17, 51, 173, 25, 749, 32, 70, 193, 130, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 remove file suffix and path portion of a path string in Bash? === Given a string such as "/foo/fizzbuzz.bar", how would I use bash to extract just the "fizzbuzz" portion of this string?
0
[ 2, 184, 107, 31, 4681, 3893, 15447, 17, 2013, 2980, 16, 21, 2013, 3724, 19, 13158, 60, 800, 3726, 3726, 504, 21, 3724, 145, 28, 13, 7, 118, 4120, 111, 118, 1707, 5092, 2345, 5092, 9, 1850, 7, 15, 184, 83, 31, 275, 13158, 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, 0, 0, 0...
How to make a Firefox plugin scriptable? === I'm running into a problem associating an invoked method in a plugin I'm writing with the appropriate plugin instance. The documentation at http://developer.mozilla.org/en/Gecko_Plugin_API_Reference/Scripting_plugins doesn't give enough information to be truly useful on this. In a nutshell, I'm trying to understand just which scriptable object the plugin is expected to return in response to a call to NPP_GetValue with the variable argument equal to NPPpluginScriptableNPObject. I'm guessing that there should be an NPObject instance for each instance of the plugin, but how is the invoke() method in the NPClass supposed to find the plugin instance (NPP) from the scriptable NPObject it's given as an argument? I suppose I could implement a lookup table to do that, but I have the feeling there's something obvious I'm missing. I'm storing a pointer to an instance of a C++ class (the instance implements the functionality of the plugin) in the pdata member of the NPP, in NPP_New().
0
[ 2, 184, 20, 233, 21, 535, 18219, 10922, 108, 3884, 579, 60, 800, 3726, 3726, 31, 22, 79, 946, 77, 21, 1448, 28, 18, 16325, 1880, 40, 26252, 2109, 19, 21, 10922, 108, 31, 22, 79, 1174, 29, 14, 4593, 10922, 108, 4851, 9, 14, 139...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 launch from Eclipse in Low priority under Windows? === I'm running programs from Eclipse (on Windows) that eat a lot of CPU time. To avoid bogging down my whole machine, I set the priority to Low with the Task Manager. However, this is a cumbersome manual process. Is there a way Eclipse can set this priority automatically?
0
[ 2, 184, 20, 3394, 37, 11652, 19, 708, 9857, 131, 1936, 60, 800, 3726, 3726, 31, 22, 79, 946, 1726, 37, 11652, 13, 5, 218, 1936, 6, 30, 2749, 21, 865, 16, 17578, 85, 9, 20, 2658, 6509, 2762, 125, 51, 979, 1940, 15, 31, 309, 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...
Selenium Remote Control HTML Source Extraction in Internet Explorer === Selenium Remote Control has a method of "get_html_source", which returns the source of the current page as a string. AFAIK, this method works in all cases in Firefox and Safari. But when it's invoked in Internet Explorer, it returns an incorrect source. Does anyone know if this is a bug with Selenium or Internet Explorer, and if there's a fix?
0
[ 2, 23027, 14311, 5388, 569, 13, 15895, 1267, 16748, 19, 2620, 8520, 800, 3726, 3726, 23027, 14311, 5388, 569, 63, 21, 2109, 16, 13, 7, 3060, 1, 15895, 1, 12097, 7, 15, 56, 4815, 14, 1267, 16, 14, 866, 2478, 28, 21, 3724, 9, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should Usings be inside or outside the namespace === I have been running StyleCop over some C# code and it keeps reporting that my using statements should be inside the namespace. Is there a technical reason for putting the using statements inside instead of outside the namespace?
0
[ 2, 378, 568, 18, 44, 572, 54, 719, 14, 204, 5582, 800, 3726, 3726, 31, 57, 74, 946, 1034, 9734, 84, 109, 272, 5910, 1797, 17, 32, 8968, 6670, 30, 51, 568, 9015, 378, 44, 572, 14, 204, 5582, 9, 25, 80, 21, 2447, 1215, 26, 387...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
how to implement simple threading in java === I'm looking for the simplest most straightforward way to implement the following. the main program instatiates worker threads to do a task. only n tasks can be running at once. when n is exceeded, no more workers are started until the count of running threads drops back below n.
0
[ 2, 184, 20, 8713, 1935, 9322, 68, 19, 8247, 800, 3726, 3726, 31, 22, 79, 699, 26, 14, 24384, 127, 22262, 161, 20, 8713, 14, 249, 9, 14, 407, 625, 19, 10631, 15882, 18, 7444, 20396, 20, 107, 21, 3005, 9, 104, 13, 103, 8674, 92,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Impersonation in .NET === Is there a simple out of the box way to impersonate a user in .NET? So far i have been using [this class from code project][1] for all my impersonation requirements. But is there a better way to do it,by using .NET framework, out of the box? [1]: http://www.codeproject.com/KB/cs/zetaimpersonator.aspx
0
[ 2, 797, 7276, 857, 19, 13, 9, 2328, 800, 3726, 3726, 25, 80, 21, 1935, 70, 16, 14, 1649, 161, 20, 797, 7276, 1373, 21, 4155, 19, 13, 9, 2328, 60, 86, 463, 31, 57, 74, 568, 636, 1565, 718, 37, 1797, 669, 500, 2558, 165, 500, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Any clever ways of handling the context in a web app? === In Java, web apps are bundled in to WARs. By default, many servlet containers will use the WAR name as the context name for the application. Thus myapp.war gets deployed to http://example.com/myapp. The problem is that the webapp considers its "root" to be, well, "root", or simply "/", whereas HTML would consider the root of your application to be "/myapp". The Servlet API and JSP have facilities to help manage this. For example, if, in a servlet, you do: response.sendRedirect("/mypage.jsp"), the container will prepend the context and create the url: http://example.com/myapp/mypage.jsp". However, you can't do that with, say, the IMG tag in HTML. If you do &lt;img src="/myimage.gif"/> you will likely get a 404, because what you really wanted was "/myapp/myimage.gif". Many frameworks have JSP tags that are context aware as well, and there are different ways of making correct URLs within JSP (none particularly elegantly). It's a nitty problem for coders to jump in an out of when to use an "App Relative" url, vs an absolute url. Finally, there's the issue of Javascript code that needs to create URLs on the fly, and embedded URLs within CSS (for background images and the like). I'm curious what techniques others use to mitigate and work around this issue. Many simply punt and hard code it, either to server root or to whatever context they happen to be using. I already know that answer, that's not what I'm looking for. What do you do?
0
[ 2, 186, 11994, 2847, 16, 7988, 14, 4141, 19, 21, 2741, 4865, 60, 800, 3726, 3726, 19, 8247, 15, 2741, 4865, 18, 50, 10194, 43, 19, 20, 4822, 9, 34, 12838, 15, 151, 13, 10321, 1336, 18988, 129, 275, 14, 176, 204, 28, 14, 4141, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dynamic langauges Vs Static type languages === What are the advantages and limitations of dynamic type languages comparing to static type languages?
0
[ 2, 7782, 6178, 27229, 18, 4611, 12038, 1001, 2556, 800, 3726, 3726, 98, 50, 14, 14683, 17, 14070, 16, 7782, 1001, 2556, 15047, 20, 12038, 1001, 2556, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Adding a web reference to a DLL which is GACed === I come across this problem when i am writing an event handler in SharePoint. My event handler has a web reference. When i create this web reference, the URL of the web service will be added in the .config file of the assembly. If i have to change the web reference URL i just have to change the link in the config file. Problem comes when I try to GAC the dll. When i GAC the DLL, the config file cannot be GACed along with the dll, and hence, there is no way for me to update the web reference. One workaround i have found is to modify the constructor method Reference.cs class which is autogenerated by visual studio when i add a reference, so that the constructor reads the web service url from some other location, say a registry or an XML file in some predetermined location. But this poses a problem sometimes, as when i update the web referenc using visual studio, this Reference.cs file gets regenerated, and all my modifications would be lost. Is there a better way to solve this problem?
0
[ 2, 4721, 21, 2741, 2801, 20, 21, 13, 43, 211, 56, 25, 4369, 11014, 800, 3726, 3726, 31, 340, 464, 48, 1448, 76, 31, 589, 1174, 40, 807, 24641, 19, 1891, 3132, 9, 51, 807, 24641, 63, 21, 2741, 2801, 9, 76, 31, 1600, 48, 2741, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to define a Java ClassLoader that returns completely different classes to the one's requested? === I've tried this, but get a ClassNotFoundException when calling: Class.forName("com.AClass", false, mySpecialLoader)
0
[ 2, 25, 32, 938, 20, 9267, 21, 8247, 718, 8294, 106, 30, 4815, 1524, 421, 2684, 20, 14, 53, 22, 18, 6602, 60, 800, 3726, 3726, 31, 22, 195, 794, 48, 15, 47, 164, 21, 718, 1270, 12235, 10066, 872, 76, 2555, 45, 718, 9, 1106, 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, 0...
Best way to access the runtime configuration of a maven plugin from a custom mojo? === I am writing a custom maven2 MOJO. I need to access the runtime configuration of another plugin, from this MOJO. What is the best way to do this?
0
[ 2, 246, 161, 20, 1381, 14, 485, 891, 8091, 16, 21, 1216, 3124, 10922, 108, 37, 21, 5816, 27316, 60, 800, 3726, 3726, 31, 589, 1174, 21, 5816, 1216, 3124, 135, 27316, 9, 31, 376, 20, 1381, 14, 485, 891, 8091, 16, 226, 10922, 108,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Interrupts and exceptions === I've seen several question on here about exceptions, and some of them hint at interrupts as exceptions, but none make the connection clear. - What is an interrupt? - What is an exception? (please explain what exceptions are for each language you know, as there are some differences) - When is an exception an interrupt and vice-versa? -Adam
0
[ 2, 15811, 18, 17, 13392, 800, 3726, 3726, 31, 22, 195, 541, 238, 1301, 27, 235, 88, 13392, 15, 17, 109, 16, 105, 6382, 35, 15811, 18, 28, 13392, 15, 47, 2369, 233, 14, 2760, 1207, 9, 13, 8, 98, 25, 40, 15811, 60, 13, 8, 98, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I dynamically switch web service addresses in .NET without a recompile? === I have code that references a web service, and I'd like the address of that web service to be dynamic (read from a database, config file, etc.) so that it is easily changed. One major use of this will be to deploy to multiple environments where machine names and IP addresses are different. The web service signature will be the same across all deployments, just located elsewhere. Maybe I've just been spoiled by the Visual Studio "Add Web Reference" wizard - seems like this should be something relatively easy, though. Thanks!
0
[ 2, 184, 92, 31, 7782, 1326, 5521, 2741, 365, 12636, 19, 13, 9, 2328, 366, 21, 302, 11103, 3599, 60, 800, 3726, 3726, 31, 57, 1797, 30, 7231, 21, 2741, 365, 15, 17, 31, 22, 43, 101, 14, 3218, 16, 30, 2741, 365, 20, 44, 7782, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Generic LINQ query predicate? === Not sure if this is possible or if I'm expressing correctly what I'm looking for, but I have the following piece of code in my library repeatedly and would like to practice some DRY. I have set of SQL Server tables that I'm querying based on a simple user-supplied search field ala Google. I'm using LINQ to compose the final query based on what's in the search string. I'm looking for a way to use generics and passed in lambda functions to create a reusable routine out of this: string[] arrayOfQueryTerms = getsTheArray(); var somequery = from q in dataContext.MyTable select q; if (arrayOfQueryTerms.Length == 1) { somequery = somequery.Where<MyTableEntity>( e => e.FieldName.StartsWith(arrayOfQueryTerms[0])); } else { foreach(string queryTerm in arrayOfQueryTerms) { if (!String.IsNullOrEmpty(queryTerm)) { somequery = somequery .Where<MyTableEntity>( e => e.FieldName.Contains(queryTerm)); } } } I was hoping to create a generic method with signature that looks something like: private IQueryable<T> getQuery( T MyTableEntity, string[] arrayOfQueryTerms, Func<T, bool> predicate) Does this make sense? Is there a way with LINQ to dynamically pass in the name of the field to query in the where clause? Or can I pass in this as a predicate lambda? e => e.FieldName.Contains(queryTerm) I realize there a million and a half ways to do this in SQL, probably easier, but I'd love to keep everything in the LINQ family for this one. Also, I feel that generics should be handy for a problem like this. Any ideas?
0
[ 2, 12733, 6294, 1251, 25597, 28712, 60, 800, 3726, 3726, 52, 562, 100, 48, 25, 938, 54, 100, 31, 22, 79, 16621, 12044, 98, 31, 22, 79, 699, 26, 15, 47, 31, 57, 14, 249, 1855, 16, 1797, 19, 51, 1248, 8081, 17, 83, 101, 20, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you remotely update Java applications? === We've got a Java server application that runs on a number of computers, all connected to the Internet, some behind firewalls. We need to remotely update the JAR files and startup scripts from a central site, with no noticeable interruption to the app itself. The process has to be unattended and foolproof (i.e. we can't afford to break the app due to untimely internet outages). In the past we've used a variety of external scripts and utilities to handle similar tasks, but because they have their own dependencies, the result is harder to maintain and less portable. Before making something new, I want to get some input from the community. Has anyone found a good solution for this already? Got any ideas or suggestions? Thanks in advance.
0
[ 2, 184, 107, 42, 23288, 11100, 8247, 3767, 60, 800, 3726, 3726, 95, 22, 195, 330, 21, 8247, 8128, 3010, 30, 1461, 27, 21, 234, 16, 7774, 15, 65, 2587, 20, 14, 2620, 15, 109, 439, 535, 6051, 18, 9, 95, 376, 20, 23288, 11100, 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...
PHP and Dreamweaver Integration === This is an issue I've run into with a website I'm designing. I'm using a template based design for the site, so the information on the page is thrown inside the template when the page is accessed. The information shown changes based on the page attribute passed in as a GET request. So, to actually load the information into the body area of the page, the given PHP script needs to place that information in a $bodyout variable when it ends. This is fine and good, but the information then shows up as a cute yellow box in dreamweaver, making WYSIWYG editing of the site not possible. Ideally, for most of the pages on the site, I'd like for my secratary to be able to go in there in Dreamweaver to edit the page, since she doesn't know PHP at all. Is there an elegent way to have a PHP script show the data it is going to output in Dreamweaver? (Especially if that data is static)
0
[ 2, 13, 26120, 17, 1868, 458, 11937, 8078, 800, 3726, 3726, 48, 25, 40, 1513, 31, 22, 195, 485, 77, 29, 21, 2271, 31, 22, 79, 15026, 9, 31, 22, 79, 568, 21, 22894, 432, 704, 26, 14, 689, 15, 86, 14, 676, 27, 14, 2478, 25, 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...
Where do I find a dictionary for password validation? === I am working on a password validation algorithm that needs to check potential passwords against the dictionary. If the password or any part of it can be found in the dictionary, reject it. The function is easy enough, but where do I get the word list? Is there a web service already out there for looking up words? I have poked around some, but not found anything that screams "Pick Me!" Thanks.
0
[ 2, 113, 107, 31, 477, 21, 9186, 26, 20884, 27999, 60, 800, 3726, 3726, 31, 589, 638, 27, 21, 20884, 27999, 9083, 30, 2274, 20, 2631, 2222, 20884, 18, 149, 14, 9186, 9, 100, 14, 20884, 54, 186, 141, 16, 32, 92, 44, 216, 19, 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 protect cells in Excel but allow these to be modified by VBA script === I am using Excel where certain fields are allowed for user input and other cells are to be protected. I have used Tools Protect sheet, however after doing this I am not able to change the values in the VBA script. I need to restrict the sheet to stop user input, at the same time allow the VBA code to change the cell values based on certain computations.
0
[ 2, 184, 20, 2196, 2934, 19, 20700, 47, 1655, 158, 20, 44, 5372, 34, 566, 969, 3884, 800, 3726, 3726, 31, 589, 568, 20700, 113, 1200, 2861, 50, 1159, 26, 4155, 6367, 17, 89, 2934, 50, 20, 44, 3803, 9, 31, 57, 147, 4672, 2196, 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...
Implementation example for Repository pattern with Linq to Sql and C# === I am looking for a Repository pattern implementation example/resource that follows domain driven design principles for my ASP.net MVC application. Does anyone have a good example or learning resource that can be shared?
0
[ 2, 6123, 823, 26, 24869, 3732, 29, 6294, 1251, 20, 4444, 255, 17, 272, 5910, 800, 3726, 3726, 31, 589, 699, 26, 21, 24869, 3732, 6123, 823, 118, 99, 12097, 30, 2415, 4603, 5355, 704, 5624, 26, 51, 28, 306, 9, 2328, 307, 8990, 30...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
What is the T-SQL syntax to connect to another SQL Server? === If I need to copy a stored procedure (SP) from one SQL Server to another I right click on the SP in SSMS and select Script Stored Procedure as > CREATE to > New Query Editor Window. I then change the connection by right clicking on that window and selecting Connection > Change Connection... and then selecting the new server and F5 to run the create on the new server. So my question is "What is the T-SQL syntax to connect to another SQL Server?" so that I can just paste that in the top of the create script and F5 to run it and it would switch to the new server and run the create script. While typing the question I realized that if I gave you the back ground to what I'm trying to do that you might come up with a faster and better way from me to accomplish this.
0
[ 2, 98, 25, 14, 13, 38, 8, 18, 22402, 22649, 20, 6379, 20, 226, 4444, 255, 8128, 60, 800, 3726, 3726, 100, 31, 376, 20, 4344, 21, 8214, 7004, 13, 5, 3401, 6, 37, 53, 4444, 255, 8128, 20, 226, 31, 193, 10840, 27, 14, 3782, 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...
GPU programming on Xbox 360 === I'm looking for some insight into XNA on Xbox 360, mainly if its possible to run vector-based float mathematics on its GPU? If there's a way, can you point me into the right direction?
0
[ 2, 489, 4201, 3143, 27, 13800, 11760, 800, 3726, 3726, 31, 22, 79, 699, 26, 109, 9239, 77, 993, 325, 27, 13800, 11760, 15, 2011, 100, 82, 938, 20, 485, 7497, 8, 1281, 11510, 4264, 27, 82, 489, 4201, 60, 100, 80, 22, 18, 21, 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, 0, 0, 0, 0, 0, 0, 0...
Bad OO design problem - I need some general functionality in a Java but don't know how to implement it === I'm developping a small UML Class editor in Java, mainly a personal project, it might end up on SourceForge if I find the time to create a project on it. The project is quite advanced : I can create classes, move them around, create interfaces, create links, etc. What I'm working on is the dialog box for setting class/interface properties and creating new classes/interfaces. For example, I have a class that extends JDialog. This is the main "window" for editing classes and interfaces (well, there a class for each). It contains a JTabbedPane which in turn contain JPanels. This JPanel are actually custom ones. I created an abstract class that extends JPanel. This class uses components (defined by its subclasses) and add their values to a JTable (also contained in the JPanel). For example, if I want to edit a class' attributes, the JPanel will contain a JTextField for entering the name of the attribute as well as another one for entering its type. There is also a set of button for processing the data entered in these fields. When I click "Save", the data I entered in the JTextFields are added into the JTable (à la Enterprise Architect). The concreted class that extends the abstract one are responsible for defining control and deciding what do to with the data when a line is added or deleted from the JTable. The JTable management is, however, the responsability of the abstract class. Here is my problem : in OO, a class has methods, and an interface has methods too. I told myself : I could use the same concrete custom JPanel (AttributesPanel (which extends the abstract JPanel class I created)) to store the methods for a class or and interface. However, the class needs to keep a copy (as an attribute) of the class or interface I am working on. That way, when a method is added to it, I can call editedClass.addMethod() (or editedInterface.addMethod()). The problem is that I have no way of telling whether I work on a Class or and Interface. The solution I found is ugly : keep an attribute editedClass and an attribute editedInterface in the AttributesPanel class. According to whether I am editing a class or interface, one of these attributes will be null while to other will not. It is quite ugly if you ask me. In fact, I can hear my software engineering teachers in my head screaming in agony while burning (well, actually, freezing) in the ninth circle of Hell. The quick way to fix this design problem would be to create an interface called "ObjectWithMethods", which my Class and Interface classes will implement. That way, I will only have to put an ObjectWithMethods parameter in my AttributesPanel class. But does that mean that I should create a class named "ObjectWithAttributes", or "ObjectWithBlahBlah" ? I see some good "TheDailyWTF" potential here... Besides, I don't think I should modify my domain objects (a Class, Interface, Note, Relationship (for my UML editor)) or create an new Interface just for the sake of some UI consideration.... What do you think? I you need more clarifications (because I am very tired right now and I tend to right quite badly (especially in English - my mother tongue is French) while in this state of mind...), just ask and I'll edit this question. Cheers, Guillaume.
0
[ 2, 896, 13, 4328, 704, 1448, 13, 8, 31, 376, 109, 297, 18548, 19, 21, 8247, 47, 221, 22, 38, 143, 184, 20, 8713, 32, 800, 3726, 3726, 31, 22, 79, 2803, 3181, 21, 284, 13, 723, 255, 718, 1835, 19, 8247, 15, 2011, 21, 1319, 66...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
mobile page: dynamically created image sporadic loading === i have a page for a small mobile site that has an image that has its src value set via a getImage.aspx method, wherein an image is dynamically built and returned to the image tag. Most of the time it works great. However, there are moments where the image just doesnt load on the first shot. Hitting refresh helps most of the time, but I'd like to have this image load every time. Anyone else have this issue and moved beyond it?
0
[ 2, 3241, 2478, 45, 7782, 1326, 679, 1961, 26335, 12797, 800, 3726, 3726, 31, 57, 21, 2478, 26, 21, 284, 3241, 689, 30, 63, 40, 1961, 30, 63, 82, 13, 18, 5453, 1923, 309, 1197, 21, 164, 22039, 9, 472, 306, 396, 2109, 15, 113, 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 glibc why does my gethostbyname fail after I/DHCP has changesd the DNS server? === If our server running on a device starts before a DHCP lease had been acquired then it can never connect using a hostname. If that happens it can find hosts by IP address but not by DNS. I initially thought that the Curl DNS cache was at fault as the curl connections failed. But I used CURLOPT_DNS_CACHE_TIMEOUT to prevent curl from caching address but connections still failed.
0
[ 2, 568, 13, 6441, 7229, 483, 630, 51, 164, 11694, 779, 7259, 7476, 75, 31, 118, 9756, 7439, 63, 1693, 43, 14, 13, 43, 2172, 8128, 60, 800, 3726, 3726, 100, 318, 8128, 946, 27, 21, 3646, 3244, 115, 21, 10231, 7439, 9140, 41, 74, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best Way to Conditional Redirect? === Using Rails v2.1, lets say you have an action for a controller that is accessible from more than one location. For example, within the Rails app, you have a link to edit a user from two different views, one on the users index view, and another from another view (lets say from the nav bar on every page). I'm wondering what is the best way to redirect the user back to the right spot depending on what link they clicked on. For example: Example 1: 1. List all users 2. Click "edit" on a user in the list 3. User clicks "save" on the form, the controller redirects back to 1. Example 2: 1. The user could be on any page within the application, the nav bar shows a link to edit the current user 2. The user clicks on the link to edit 3. The user clicks "save" on the form, controller redirects back to whatever page they were on when the user clicked the "edit" link in the nav bar. I've seen it done in the past by: 1. Placing a parameter on the original edit link with the original controller/action in which the link appeared. To make this more DRY, you could use @controller.controller\_name and @controller.action\_name in a helper. 2. The controller saves the parameters to a session variable. 3. Once the controller has saved the record, it redirects to the session variable. What I don't particularly like about this solution is the need to add the parameter to every applicable link in the views. I'm wondering if there's a way to build this all into the controller. One better way I was thinking was to: 1. Place a before_filter on the "edit" action to save the referrer (is this reliable enough?) into the session. 2. When "update" is hit, the controller will redirect to the session variable and then delete the session variable. Any thoughts on the best way to do this?
4
[ 2, 246, 161, 20, 21206, 302, 14706, 60, 800, 3726, 3726, 568, 2240, 18, 566, 135, 9, 165, 15, 6884, 395, 42, 57, 40, 1028, 26, 21, 9919, 30, 25, 7342, 37, 91, 119, 53, 1474, 9, 26, 823, 15, 363, 14, 2240, 18, 4865, 15, 42, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to make SVN only update files but not add new ones. === I have a repository of files which are unrelated to each other but are common to multiple projects. Each project might only need a subset of these files. For example: /myRepo: /jquery.js /jquery.form.js /jquery.ui.js Project A requires `jquery.js` and `jquery.form.js`, whereas Project B requires `jquery.js` and `jquery.ui.js` I could just do a checkout of `myRepo` into both projects, but that'd add a lot of unnecessary files into both. What I'd like is some sort of way for each Project to only get the files it needs. One way I thought it might be possible is if I put just the required files into each project and then run an `svn update` on it, but somehow stop SVN from adding new files to each directory. They'd still get the modifications to the existing files, but no unnecessary files would be added. Is this possible at all?
0
[ 2, 184, 20, 233, 13, 18, 16578, 104, 11100, 6488, 47, 52, 3547, 78, 53, 18, 9, 800, 3726, 3726, 31, 57, 21, 24869, 16, 6488, 56, 50, 17379, 20, 206, 89, 47, 50, 757, 20, 1886, 2314, 9, 206, 669, 530, 104, 376, 21, 16622, 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...
Need to create a dynamic ConfigurationSection that also holds the type === I need to create a configuration section, that is able to store key-value pairs in an app.config file and the key-value pairs can be added runtime regardless of their type. It is also important that the value keeps its original type. I need to extend the following interface public interface IPreferencesBackend { bool TryGet<T>(string key, out T value); bool TrySet<T>(string key, T value); } At runtime, I can say something like: My.Foo.Data data = new My.Foo.Data("blabla"); Pref pref = new Preferences(); pref.TrySet("foo.data", data); pref.Save(); My.Foo.Data date = new My.Foo.Data(); pref.TryGet("foo.data", out data); I tried with System.Configuration.Configuration.AppSettings, but the problem with that that it is storing the key-value pairs in a string array.
0
[ 2, 376, 20, 1600, 21, 7782, 8091, 10579, 30, 67, 2763, 14, 1001, 800, 3726, 3726, 31, 376, 20, 1600, 21, 8091, 1050, 15, 30, 25, 777, 20, 1718, 1246, 8, 15165, 7473, 19, 40, 4865, 9, 14093, 2816, 3893, 17, 14, 1246, 8, 15165, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I wire users with their respective folders in ASP.NET? === When userA uploads a file, his files will be uploaded to folderA, when userB, to folderB, and so on. Roles/Profiles in ASP.NET. Anyone?
0
[ 2, 184, 92, 31, 6511, 3878, 29, 66, 7390, 19294, 18, 19, 28, 306, 9, 2328, 60, 800, 3726, 3726, 76, 275, 525, 71, 8294, 18, 21, 3893, 15, 33, 6488, 129, 44, 23782, 20, 19294, 58, 15, 76, 4155, 220, 15, 20, 19294, 220, 15, 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, 0...
Rails Check box on MySql stored as a null or zero === On my rails app I have a list of items (like a task list) and for each item there is a couple of check box to set parameters. When I submit the form, the checked box are stored as zero and the unchecked as null on DB. the question is: Is there a way to configure it? To store the data on a more traditional 0 or 1, because I think that storing null as false and 0 as true is a bit confusing, specially if another app (like a C app) needs to read the data.
0
[ 2, 2240, 18, 2631, 1649, 27, 51, 18, 22402, 8214, 28, 21, 16203, 54, 4606, 800, 3726, 3726, 27, 51, 2240, 18, 4865, 31, 57, 21, 968, 16, 3755, 13, 5, 1403, 21, 3005, 968, 6, 17, 26, 206, 9101, 80, 25, 21, 1335, 16, 2631, 164...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to change "3 errors prohibited this foobar from being saved" validation message in Rails? === In my rails app I use the validation helpers in my active record objects and they are great. When there is a problem I see the standard "3 errors prohibited this foobar from being saved" on my web page along with the individual problems. Is there any way I can override this default message with my own?
0
[ 2, 184, 20, 753, 13, 7, 240, 11908, 11286, 48, 4310, 111, 1850, 37, 142, 4377, 7, 27999, 2802, 19, 2240, 18, 60, 800, 3726, 3726, 19, 51, 2240, 18, 4865, 31, 275, 14, 27999, 448, 445, 19, 51, 1348, 571, 3916, 17, 59, 50, 374, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Managed language for scientific computing software === Scientific computing is algorithm intensive and can also be data intensive. It often needs to use a lot of memory to run analysis and release it before continuing with the next. Sometime it also uses memory pool to recycle memory for each analysis. Managed language is interesting here because it can allow the developer to concentrate on the application logic. Since it might need to deal with huge dataset, performance is important too. But how can we control memory and performance with managed language?
0
[ 2, 1471, 816, 26, 2272, 10626, 2306, 800, 3726, 3726, 2272, 10626, 25, 9083, 13633, 17, 92, 67, 44, 1054, 13633, 9, 32, 478, 2274, 20, 275, 21, 865, 16, 1912, 20, 485, 2495, 17, 830, 32, 115, 4489, 29, 14, 328, 9, 8530, 32, 67...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Grouping Activerecord query by a child attribute === Is it possible to use an attribute of a child to group a query? Post.find(:all, :include => [ :author, :comments ], :group=>':author.city') does not work. However, I am able to use author.city as part of the conditions.
0
[ 2, 19288, 1348, 14953, 25597, 34, 21, 850, 35, 14755, 800, 3726, 3726, 25, 32, 938, 20, 275, 40, 35, 14755, 16, 21, 850, 20, 214, 21, 25597, 60, 678, 9, 19811, 5, 45, 1233, 15, 13, 45, 22640, 800, 1, 636, 13, 45, 10007, 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...
Why can't I change the value of a segment register? (MASM) === So I decided to teach myself assembly language. I know on a very basic level how this stuff works, but I have never programmed so close to the hardware and I thought that I should definitely know this stuff. I was playing around with different registers and general syntactical stuff and I have realized that my program will not compile if I attempt to change the value of any segment register. Every article that I have found says that I can indeed change the value of at least 4 segment registers, so what gives? I am really only interested in the why at this point, I don't have any real purpose in changing these addresses. I am sure this will be an easy one for you guys, so take it easy on me ;)
0
[ 2, 483, 92, 22, 38, 31, 753, 14, 1923, 16, 21, 5631, 2243, 60, 13, 5, 5250, 79, 6, 800, 3726, 3726, 86, 31, 868, 20, 5348, 992, 1475, 816, 9, 31, 143, 27, 21, 253, 2125, 662, 184, 48, 3217, 693, 15, 47, 31, 57, 243, 2866, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WPF DataBinding with simple arithmatic operation? === I want to add a constant value onto an incoming bound integer. In fact I have several places where I want to bind to the same source value but add different constants. So the ideal solution would be something like this... <TextBox Canvas.Top="{Binding ElementName=mySource, Path=myInt, Constant=5}"/> <TextBox Canvas.Top="{Binding ElementName=mySource, Path=myInt, Constant=8}"/> <TextBox Canvas.Top="{Binding ElementName=mySource, Path=myInt, Constant=24}"/> (NOTE: This is an example to show the idea, my actual binding scenario is not to the canvas property of a TextBox. But this shows the idea more clearly) At the moment the only solution I can think of is to expose many different source properties each of which adds on a different constant to the same internal value. So I could do something like this... <TextBox Canvas.Top="{Binding ElementName=mySource, Path=myIntPlus5}"/> <TextBox Canvas.Top="{Binding ElementName=mySource, Path=myIntPlus8}"/> <TextBox Canvas.Top="{Binding ElementName=mySource, Path=myIntPlus24}"/> But this is pretty grim because in the future I might need to keep adding new properties for new constants. Also if I need to change the value added I need to go an alter the source object which is pretty naff. There must be a more generic way than this? Any WPF experts got any ideas?
0
[ 2, 619, 7721, 1054, 22260, 29, 1935, 9647, 96, 6732, 1453, 60, 800, 3726, 3726, 31, 259, 20, 3547, 21, 3587, 1923, 1204, 40, 17126, 4138, 13820, 9, 19, 837, 31, 57, 238, 1489, 113, 31, 259, 20, 10193, 20, 14, 205, 1267, 1923, 47...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Deploy multiple instance of reporting services or connect to multiple versions of DLLs === Is there any way in SSRS2008 to deploy multiple instances of the ReportServer running separate code sets? I'm developing a very specific deployment of reporting services where I have a number of custom extensions plugged in. But, my company typically deploys multiple versions of a release at once on the same server. I'm at a little bit of a loss of a good way to do this with reporting services. I know that I have a few alternatives: - Run multiple instances of Reporting Services with different code sets The downside to this is that it's a little bit of a headache to upgrade and I'd rather not have multiple instances of the reporting databases. I'm not sure if they would play well together if they were targeting the same databases. - Invoke/include the version specific DLLs on demand by reading from an HTTPRequest variable. (Assembly.LoadFile) I have a feeling that this could have performance issues and it also sounds like a potential debugging nightmare. I have also not used Assembly.LoadFile before and I'm unsure of how much code I'd have to write that was unversioned to control the versioning system. Anyone out there have experience with any of this?
0
[ 2, 17617, 1886, 4851, 16, 6670, 687, 54, 6379, 20, 1886, 3281, 16, 13, 43, 211, 18, 800, 3726, 3726, 25, 80, 186, 161, 19, 22118, 18, 2753, 20, 17617, 1886, 13946, 16, 14, 2813, 106, 2304, 946, 1725, 1797, 3415, 60, 31, 22, 79, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 show data in the header of SSRS 2005 MULTIPAGE report? === [This question](http://stackoverflow.com/questions/63938/how-do-i-show-data-in-the-header-of-a-sql-2005-reporting-services-report) was very helpful, however I have a list control in my report, and when the report grows over 1 page - data in the header only shows up on the last page of the report. Any ideas?
0
[ 2, 184, 20, 298, 1054, 19, 14, 157, 106, 16, 22118, 18, 812, 1889, 6486, 1330, 60, 800, 3726, 3726, 636, 1565, 1301, 500, 5, 21127, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 3891, 4069, 12530, 1544, 8, 537, 8, 49, 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...
SQL Job Status === I am actually working on SP in SQL 2005. Using SP i am creating a job and am scheduling it for a particular time. These jobs take atleast 5 to 10 min to complete as the database is very huge. But I am not aware of how to check the status of the Job. I want to know if it has got completed successfully or was there any error in execution. On exception i also return proper error code. But i am not aware of where i can check for this error code.
0
[ 2, 4444, 255, 1205, 1782, 800, 3726, 3726, 31, 589, 1121, 638, 27, 3782, 19, 4444, 255, 812, 9, 568, 3782, 31, 589, 2936, 21, 1205, 17, 589, 23096, 32, 26, 21, 1498, 85, 9, 158, 4844, 247, 35, 255, 2857, 331, 20, 332, 4232, 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...
.NET ODBC Connection Pooling === I open a connection like this: Using conn as New OdbcConnection(connectionString) conn.Open() //do stuff End Using If connection pooling is enabled, the connection is not physically closed but released to the pool and will get reused. If it is disabled, it will be physically closed. Is there any way of knowing *if* connection pooling is enabled or not? and the number of used and unused connections currently open in the pool?
0
[ 2, 13, 9, 2328, 12340, 7229, 2760, 3067, 68, 800, 3726, 3726, 31, 368, 21, 2760, 101, 48, 45, 568, 15201, 28, 78, 12340, 7229, 25996, 872, 5, 25996, 872, 11130, 6, 15201, 9, 10157, 5, 6, 12894, 537, 3217, 241, 568, 100, 2760, 30...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why is boost so wonderful? === So, I've been reading through and it appears that the BOOST libraries get used a lot in practice (not at my shop, though). Why is this? and what makes it so wonderful?
0
[ 2, 483, 25, 10419, 86, 5934, 60, 800, 3726, 3726, 86, 15, 31, 22, 195, 74, 1876, 120, 17, 32, 1780, 30, 14, 10419, 8649, 164, 147, 21, 865, 19, 1345, 13, 5, 1270, 35, 51, 2546, 15, 362, 6, 9, 483, 25, 48, 60, 17, 98, 1364,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Is it reasonable to have Boost as a dependency for a C++ open source project? === Boost is meant to be **the** standard non-standard C++ library that every C++ user can use. Is it reasonable to assume it's available for an open source C++ project, or is it a large dependency too far?
0
[ 2, 25, 32, 9954, 20, 57, 10419, 28, 21, 26835, 26, 21, 272, 20512, 368, 1267, 669, 60, 800, 3726, 3726, 10419, 25, 1380, 20, 44, 13, 1409, 124, 1409, 1236, 538, 8, 15566, 272, 20512, 1248, 30, 352, 272, 20512, 4155, 92, 275, 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...
C# / ASP.NET - Web Application locking === I'm working on a C#/ASP.NET web application, and I have a number of situations where I need to do locking. Ideally, I want the locks to act independently, since they have nothing to do with each other. I've been considering [MethodImpl(MethodImplOptions.Synchronized)] and a few ways of using lock(), but I have a few questions/concerns. It seems like MethodImplOptions.Synchronized will essentially do lock(this). If that's the case, it seems like a thread entering any synchronized method would block _all other_ threads from entering _any_ synchronized method. Is that right? If so, this isn't granular enough. At that point, it seems like I may as well use Application.Lock. (But please correct me if I'm wrong.) Concerning lock(), I'm trying to figure out what I should pass in. Should I create a set of objects solely for this purpose, and use each one for a different lock? Is there a better way? Thanks in advance!
0
[ 2, 272, 5910, 13, 118, 28, 306, 9, 2328, 13, 8, 2741, 3010, 17538, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 272, 5910, 118, 472, 306, 9, 2328, 2741, 3010, 15, 17, 31, 57, 21, 234, 16, 8329, 113, 31, 376, 20, 107, 17538, 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 can I htperlink to a file that is not in my Web Application? === Ok, my web application is at **C:\inetpub\wwwroot\website** The files I want to link to are in **S:\someFolder** Can I make a link in the webapp that will direct to the file in **someFolder**?
0
[ 2, 184, 92, 31, 13, 9020, 1432, 6258, 20, 21, 3893, 30, 25, 52, 19, 51, 2741, 3010, 60, 800, 3726, 3726, 5854, 15, 51, 2741, 3010, 25, 35, 13, 1409, 150, 45, 1, 1149, 38, 17848, 1, 6483, 14032, 1, 14113, 9097, 1409, 14, 6488, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 apply css to second level menu items? === I have a menu running off of a sitemap which one of the SiteMapNode looks like this: <siteMapNode title="Gear" description="" url=""> <siteMapNode title="Armor" description="" url="~/Armor.aspx" /> <siteMapNode title="Weapons" description="" url="~/Weapons.aspx" /> </siteMapNode> I also have a Skin applied to the asp:menu which uses the following css definition: .nav-bar { z-index: 2; margin-top: -5%; position: absolute; top: 281px; font-family: Jokewood; font-style: italic; } When I run the website and mouseOver the Gear link, the Jokewood font is not applied to those items, how can I apply the css to the Armor and Weapons titles?
0
[ 2, 184, 107, 31, 5645, 272, 18, 18, 20, 153, 662, 11379, 3755, 60, 800, 3726, 3726, 31, 57, 21, 11379, 946, 168, 16, 21, 689, 15022, 56, 53, 16, 14, 689, 15022, 251, 546, 1879, 101, 48, 45, 13, 1, 9097, 15022, 251, 546, 581, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
prevent iPhone from dimming screen (power saving) === I'm working on an app that requires no user input, but I don't want the iPhone to enter the power saving mode. Is it possible to disable power saving from an app?
0
[ 2, 2501, 21024, 37, 5937, 3863, 2324, 13, 5, 5484, 7599, 6, 800, 3726, 3726, 31, 22, 79, 638, 27, 40, 4865, 30, 4781, 90, 4155, 6367, 15, 47, 31, 221, 22, 38, 259, 14, 21024, 20, 2830, 14, 414, 7599, 3740, 9, 25, 32, 938, 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, 0, 0, 0, 0, 0, 0, 0, 0...
Piece together several images into one big image === I'm trying to put several images together into one big image, and am looking for an algorithm which determines the placing most optimally. The images can't be rotated, but the position in the resulting image is not important.
0
[ 2, 1855, 429, 238, 3502, 77, 53, 580, 1961, 800, 3726, 3726, 31, 22, 79, 749, 20, 442, 238, 3502, 429, 77, 53, 580, 1961, 15, 17, 589, 699, 26, 40, 9083, 56, 3746, 18, 14, 5861, 127, 17586, 102, 9, 14, 3502, 92, 22, 38, 44, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
What charting tools/controls would you use with SQL Server/Reporting Services? === Apart from commercial tools like Dundas, are there any open source or cheaper (and decent) 3rd party charting tools/controls for reporting services out there?
0
[ 2, 98, 22544, 4672, 118, 12898, 18, 83, 42, 275, 29, 4444, 255, 8128, 118, 17437, 68, 687, 60, 800, 3726, 3726, 2629, 37, 1439, 4672, 101, 29320, 15, 50, 80, 186, 368, 1267, 54, 18580, 13, 5, 290, 12238, 6, 203, 897, 346, 22544,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How do I call a webservice without a web reference? === I want to call a web service, but I won't know the url till runtime. Whats the best way to get the web reference in, without actually committing to a url.
0
[ 2, 184, 107, 31, 645, 21, 2741, 11449, 366, 21, 2741, 2801, 60, 800, 3726, 3726, 31, 259, 20, 645, 21, 2741, 365, 15, 47, 31, 230, 22, 38, 143, 14, 287, 6362, 3924, 485, 891, 9, 98, 18, 14, 246, 161, 20, 164, 14, 2741, 2801,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Is it possible to link to a bookmark within a PDF using URL parameters? === When providing a link to a PDF file on a website, is it possible to include information in the URL (request parameters) which will make the PDF browser plugin (if used) jump to a particular bookmark instead of just opening at the beginning? Something like: http://www.somehost.com/user-guide.pdf?bookmark=chapter3 ? If not a bookmark, would it be possible to go to a particular page? I'm assuming that if there is an answer it may be specific to Adobe's PDF reader plugin or something, and may have version limitations, but I'm mostly interested in whether the technique exists at all.
0
[ 2, 25, 32, 938, 20, 3508, 20, 21, 360, 4527, 363, 21, 13, 11124, 568, 287, 6362, 12905, 60, 800, 3726, 3726, 76, 2674, 21, 3508, 20, 21, 13, 11124, 3893, 27, 21, 2271, 15, 25, 32, 938, 20, 468, 676, 19, 14, 287, 6362, 13, 5,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Book/resource recommendation for learning charting with Reporting Services === What books or online resource would you recommend for learning how to do advanced charts and dashboard design with Reporting Services?
0
[ 2, 360, 118, 99, 12097, 14066, 26, 2477, 22544, 29, 6670, 687, 800, 3726, 3726, 98, 964, 54, 2087, 6577, 83, 42, 12360, 26, 2477, 184, 20, 107, 2255, 5158, 17, 26478, 704, 29, 6670, 687, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Create WPF ItemTemplate DYNAMICALLY at runtime === At run time I want to dynamically build grid columns (or another display layout) in a WPF ListView. I do not know the number and names of the columns before hand. I want to be able to do: MyListView.ItemSource = MyDataset; MyListView.CreateColumns();
0
[ 2, 1600, 619, 7721, 9101, 9577, 6554, 7782, 1326, 35, 485, 891, 800, 3726, 3726, 35, 485, 85, 31, 259, 20, 7782, 1326, 1895, 7354, 7498, 13, 5, 248, 226, 3042, 9106, 6, 19, 21, 619, 7721, 968, 4725, 9, 31, 107, 52, 143, 14, 23...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Smarty templates i18n. === I just wonder about easy way to make i18n inside Smarty templates. Something like gettext() which i already use inside my PHP scripts. Any ideas? Cheers, Stanislav.
0
[ 2, 3978, 93, 22894, 18, 31, 1087, 103, 9, 800, 3726, 3726, 31, 114, 2666, 88, 2010, 161, 20, 233, 31, 1087, 103, 572, 3978, 93, 22894, 18, 9, 301, 101, 164, 11969, 5, 6, 56, 31, 614, 275, 572, 51, 13, 26120, 17505, 9, 186, 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, 0, 0, 0, 0, 0, 0, 0, 0...
Categories of design patterns === The classic "Design Patterns: Elements of Reusable Object-Oriented Software" actually introduced most of us to the idea of design patterns. However these days I find a book such as "Patterns of Enterprise Application Architecture" (POEA) by Martin Fowler, much more useful in my day to day work. In discussions with fellow developers, many make the (fair) point that frameworks like .NET are slowly starting to provide many of the patterns in the GOF book, and so why re-invent the wheel? It seems many developers think that the GOF book is the only reference worth having on design patterns. So their logic goes that because frameworks (.NET etc) are providing many GOF patterns for us, patterns have seen their day and are no longer as important. Surprisingly (to me at least) when I mention the patterns descibed in POEA, I am often met with blank stares. POEA proves that patterns are more than just Interators, Singletons, Commands etc. I would also say that the patterns in GOF are really just a distinct "category" of patterns, applicable to a different (non-overlapping) level of design, than those in POEA. So, what other "categories" of patterns have applied in your development? What level of design do these patterns apply to? At what point in the development process are they normally used? Is there a book or reference for these patterns?
0
[ 2, 6422, 16, 704, 6282, 800, 3726, 3726, 14, 2732, 13, 7, 19862, 6282, 45, 2065, 16, 302, 267, 579, 3095, 8, 6800, 2306, 7, 1121, 1277, 127, 16, 182, 20, 14, 882, 16, 704, 6282, 9, 207, 158, 509, 31, 477, 21, 360, 145, 28, 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...
When should I use _aligned_malloc()? === I've been reading the legacy code,which invloves in the customized memory pooling system, then I found that the code uses _aligned_malloc. I wonder what is this function and when do I have to use it.
0
[ 2, 76, 378, 31, 275, 13, 1, 12740, 1, 3482, 10799, 5, 6, 60, 800, 3726, 3726, 31, 22, 195, 74, 1876, 14, 7780, 1797, 15, 2140, 19, 710, 4583, 18, 19, 14, 28779, 1912, 3067, 68, 329, 15, 94, 31, 216, 30, 14, 1797, 2027, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Code Obfuscation? === So, I have a penchant for Easter Eggs... this dates back to me being part of the found community of the Easter Egg Archive. However, I also do a lot of open source programming. What I want to know is, what do you think is the best way to SYSTEMATICALLY and METHODICALLY obfuscate code. Examples in PHP/Python/C/C++ preferred, but in other languages is fine, if the methodology is explained properly.
0
[ 2, 1797, 5122, 13735, 16893, 60, 800, 3726, 3726, 86, 15, 31, 57, 21, 2402, 3606, 38, 26, 10878, 5821, 9, 9, 9, 48, 4076, 97, 20, 55, 142, 141, 16, 14, 216, 514, 16, 14, 10878, 6387, 9250, 9, 207, 15, 31, 67, 107, 21, 865, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP Application URL Routing === So I'm writing a framework on which I want to base a few apps that I'm working on (the framework is there so I have an environment to work with, and a system that will let me, for example, use a single sign-on) I want to make this framework, and the apps it has use a Resource Oriented Architecture. Now, I want to create a URL routing class that is expandable by APP writers (and possibly also by CMS App users, but that's WAYYYY ahead in the future) and I'm trying to figure out the best way to do it by looking at how other apps do it. I'll post some answers myself, and hopefully, the voting will help me decide whether these are good ideas or not, but essentially, I want to work out what the best way of routing multiple applications in PHP would be. Feel free to suggest methods aswell as voting any I add. If It's someone elses method I end up using, I'll accept that answer.
0
[ 2, 13, 26120, 3010, 287, 6362, 19880, 800, 3726, 3726, 86, 31, 22, 79, 1174, 21, 6596, 27, 56, 31, 259, 20, 1000, 21, 310, 4865, 18, 30, 31, 22, 79, 638, 27, 13, 5, 124, 6596, 25, 80, 86, 31, 57, 40, 2307, 20, 170, 29, 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...
Getting "database is locked" error messages from Trac === Wondering if anyone has gotten the infamous "database is locked" error from Trac and how you solved it. It is starting to occur more and more often for us. Will we really have to bite the bullet and migrate to a different DB backend, or is there another way? See these two Trac bug entries for more info: http://trac.edgewall.org/ticket/3446 http://trac.edgewall.org/ticket/3503
0
[ 2, 1017, 13, 7, 18768, 8436, 25, 4011, 7, 7019, 7561, 37, 13, 38, 5797, 800, 3726, 3726, 5712, 100, 1276, 63, 4094, 14, 15865, 13, 7, 18768, 8436, 25, 4011, 7, 7019, 37, 13, 38, 5797, 17, 184, 42, 15091, 32, 9, 32, 25, 1422, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I programatically manipulate any Windows application's common dialog box? (.NET) === My ultimate goal here is to write a utility that lets me quickly set the folder on *any* dialog box, choosing from a preset list of 'favorites'. As I'm just a hobbyist, not a pro, I'd prefer to use .NET as that's what I know best. I do realize that some of this stuff might require something more than what I could do in C#. I have seen some applications that are able to extend the common dialog box (specifically for Save As.. and File Open) either by adding buttons to the toolbar (eg: [Dialog Box Assistant][1]) or by putting extra buttons in the title bar beside the minimize, maximize, and/or close buttons. Either would be good option though I don't have the foggiest idea where to begin. One approach I've tried is to 'drag' the folder name from an app I wrote to the file name textbox on the dialog box, highlighting it using a mouse hook technique I picked up from Corneliu Tusnea's [Hawkeye Runtime Object Editor][2], and then prepending the path name by pinvoking SendMessage with WM_SETTEXT. It (sort of) works but feels a bit klunky. Any advice on technique or implementation for this would be much appreciated. Or if there's an existing utility that already does this, please let me know! [1]: http://www.win-utilities.com/dba/index.html [2]: http://readify.net/tech-zone/tech-tools/hawkeye-the-net-runtime-object-editor/Default.aspx
0
[ 2, 184, 92, 31, 625, 721, 8438, 18468, 186, 1936, 3010, 22, 18, 757, 28223, 1649, 60, 13, 5, 9, 2328, 6, 800, 3726, 3726, 51, 6612, 1195, 235, 25, 20, 2757, 21, 10082, 30, 6884, 55, 976, 309, 14, 19294, 27, 1637, 6001, 2483, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Project Transference === I would like to know your experience when you need to take over somebody else's software project - more so when the original software developer has already resigned.
0
[ 2, 669, 2617, 2940, 800, 3726, 3726, 31, 83, 101, 20, 143, 154, 1496, 76, 42, 376, 20, 247, 84, 8861, 962, 22, 18, 2306, 669, 13, 8, 91, 86, 76, 14, 501, 2306, 10058, 63, 614, 3861, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
DataGridView Edit Column Names === Is there any way to edit column names in a DataGridView?
0
[ 2, 1054, 16375, 4725, 9392, 4698, 1817, 800, 3726, 3726, 25, 80, 186, 161, 20, 9392, 4698, 1817, 19, 21, 1054, 16375, 4725, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
IDL enumeration not displayed in type library === I have a COM object written using the MS ATL library. I have declared a bunch of enumerations in the IDL but they do NOT appear when viewing the type library using the MS COM Object Viewer tool. The problem seems to be that the missing enums are not actually used as parameters by any of the COM methods - how can I force these enums to appear? For example, in the IDL: // Used by Foo method, so appears in the type library typedef enum FOO { FOO_1, FOO_2, } FOO; // Not used by any method, so won't appear in the type library typedef enum BAR { BAR_1, BAR_2, } BAR; [id(1)] HRESULT Foo([in] FOO eFoo); Even though the enums in question aren't directly used by any methods, they will still be useful to anyone using the object, but I can't get them to export. Has anyone seen this before?
0
[ 2, 31, 8643, 26940, 872, 52, 6115, 19, 1001, 1248, 800, 3726, 3726, 31, 57, 21, 13, 960, 3095, 642, 568, 14, 4235, 35, 255, 1248, 9, 31, 57, 2482, 21, 7653, 16, 26940, 5757, 19, 14, 31, 8643, 47, 59, 107, 52, 1893, 76, 11244, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why do I get an error when starting ruby on rails app with mongrel_rails === Why do I get following error when trying to start a ruby on rails application with <pre>mongrel_rails start</pre>? <pre> C:\RailsTest\cookbook2>mongrel_rails start ** WARNING: Win32 does not support daemon mode. ** Daemonized, any open files are closed. Look at log/mongrel.pid and log/mongr el.log for info. ** Starting Mongrel listening at 0.0.0.0:3000 c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/t cphack.rb:12:in `initialize_without_backlog': Only one usage of each socket addr ess (protocol/network address/port) is normally permitted. - bind(2) (Errno::EAD DRINUSE) from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../ lib/mongrel/tcphack.rb:12:in `initialize' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../ lib/mongrel.rb:93:in `new' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../ lib/mongrel.rb:93:in `initialize' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../ lib/mongrel/configurator.rb:139:in `new' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../ lib/mongrel/configurator.rb:139:in `listener' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mon grel_rails:99:in `cloaker_' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../ lib/mongrel/configurator.rb:50:in `call' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../ lib/mongrel/configurator.rb:50:in `initialize' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mon grel_rails:84:in `new' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mon grel_rails:84:in `run' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../ lib/mongrel/command.rb:212:in `run' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mon grel_rails:281 from c:/ruby/bin/mongrel_rails:19:in `load' from c:/ruby/bin/mongrel_rails:19 </pre>
0
[ 2, 483, 107, 31, 164, 40, 7019, 76, 1422, 10811, 27, 2240, 18, 4865, 29, 21028, 7256, 1, 7301, 18, 800, 3726, 3726, 483, 107, 31, 164, 249, 7019, 76, 749, 20, 799, 21, 10811, 27, 2240, 18, 3010, 29, 13, 1, 3515, 1, 79, 3279, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
simple javascript cookie misconceptions === im using the following code for setting/getting deleting cookies: function get_cookie(cookie_name) { var results = document.cookie.match('(^|;) ?' + cookie_name + '=([^;]*)(;|$)'); if (results) return ( decodeURI(results[2]) ); else return null; } function set_cookie(name, value, exp_y, exp_m, exp_d, path, domain, secure) { var cookie_string = name + "=" + encodeURI(value); if (exp_y) { var expires = new Date(exp_y, exp_m, exp_d); cookie_string += "; expires=" + expires.toGMTString(); } if (path) cookie_string += "; path=" + encodeURI(path); if (domain) cookie_string += "; domain=" + encodeURI(domain); if (secure) cookie_string += "; secure"; document.cookie = cookie_string; } function delete_cookie(cookie_name) { var cookie_date = new Date(); // current date & time cookie_date.setTime(cookie_date.getTime() - 1); document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString(); } but i am getting inconsistent results. for example, a cookie set on the startpage (www.example.com/start) , will not always show up on a subsequent page (www.example.com/foo/thing.jsp). i am setting a cookie "onUnload" of the page using set_cookie("beginrequest", (new Date()).getTime(), null, null, null, "/"); and retrieving + deleting it "onLoad" via loadDur = (new Date()).getTime() - get_cookie("beginrequest"); delete_cookie("beginrequest"); to measure the total amount of time the page took to load. when using firebug, i often see "leftover" beginrequest-cookies and multiple instances of beginrequest with past timestamps. how can i achieve to see just one beginrequest-cookie on every page?
0
[ 2, 1935, 8247, 8741, 19980, 2462, 27724, 5757, 800, 3726, 3726, 797, 568, 14, 249, 1797, 26, 2697, 118, 27380, 121, 1336, 68, 19396, 45, 1990, 164, 1, 716, 17391, 5, 716, 17391, 1, 7259, 6, 13, 1, 4033, 1736, 800, 4492, 9, 716, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Techniques to Get rid of low level Locking === I'm wondering, and in need, of strategies that can be applied to reducing low-level locking. However the catch here is that this is not new code (with tens of thousands of lines), so I can't just rewrite the whole thing. I fear there might be a solution to this problem by now (too late). However I'd like to hear about good patterns others have used.
0
[ 2, 4212, 20, 164, 6681, 16, 708, 662, 17538, 800, 3726, 3726, 31, 22, 79, 5712, 15, 17, 19, 376, 15, 16, 10272, 30, 92, 44, 2435, 20, 7974, 708, 8, 3906, 17538, 9, 207, 14, 2949, 235, 25, 30, 48, 25, 52, 78, 1797, 13, 5, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Setting default language in EPiServer ? === I'm looking for a way to set the default language for visitors comming to a site built in EPiServer for the first time. Not just administrators/editors in the backend, people comming to the public site.
0
[ 2, 2697, 12838, 816, 19, 5971, 10321, 106, 13, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 161, 20, 309, 14, 12838, 816, 26, 4531, 11951, 68, 20, 21, 689, 392, 19, 5971, 10321, 106, 26, 14, 64, 85, 9, 52, 114, 18618, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
Password hash function for Excel VBA === I need a function written in Excel VBA that will hash passwords using a standard algorithm such as SHA-1. Something with a simple interface like: Public Function CreateHash(Value As String) As String ... End Function The function needs to work on an XP workstation with Excel 2003 installed, but otherwise must use no third party components. It can reference and use DLLs that are available with XP (CryptoAPI?). Does anyone know of a sample to achieve this.
0
[ 2, 20884, 19170, 1990, 26, 20700, 566, 969, 800, 3726, 3726, 31, 376, 21, 1990, 642, 19, 20700, 566, 969, 30, 129, 19170, 20884, 18, 568, 21, 1236, 9083, 145, 28, 4116, 8, 165, 9, 301, 29, 21, 1935, 6573, 101, 45, 317, 1990, 160...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should .NET developers *really* be spending time learning C for low-level exposure? === When Joel Spolsky and Jeff Atwood began the disagreement in their podcast over whether programmers should learn C, regardless of their industry and platform of delivery, it sparkled quite an explosive debate within the developer community that probably still rages amongst certain groups today. I have been reading a number of passages from a number of programmer bloggers with their take on the matter. The arguments from both sides certainly carry weight, both what I did not find is a perspective that is uniquely angled from the standpoint of **developers focused on just the .NET Framework**. Practically all of them were commenting on a general programmer standpoint. What am I trying to get at? Recall Jeff Atwood's opinion that most of the time developers at such high levels would spend would be on learning the *business/domain*, on top of whatever is needed to learn the technologies to achieve those domain requirements. In my working experience that is a very accurate description of the work life of many. Now supposing that .NET developers can fork the time for "extra curricular" learning, should *that* be C? For the record, I have learnt C back in school myself, and I can absolutely understand and appreciate what the proponents are reasoning for. But, when thinking things through, I personally feel .NET developers should not dive straight into C. Because, the thing I wish more developers would take some time to learn is - **MSIL** and **CLR**. Maybe I am stuck with the an unusual bunch of colleagues, I don't know, but it seems to me many people do not keep a *conscious awareness* that their C# or VB code compiles in IL first before JIT comes in and makes it raw machine code. Most do not know IL, and have no interest in how *exactly* the CLR handles the code they write. Reading Jeffrey Richter's **CLR via C#** was quite a shocker for me in so many areas; glad I read it despite colleagues dismissing it as "too low level". I am no expert in IL but with knowledge of the basics, I found myself following his text easier as I was already familiar with the stack behaviour of IL. I find myself disassembling assemblies to have a look at how the IL turns out when I write certain code. I learn the CLR and MSIL because I know that is the direct layer *below me*. The layer that allows me to carry out my own layer of work. C, is actually further down. Closer to our "reality" is the CLR and MSIL. That is why I would recommend others to have a go at those, because I do not see enough folks delving at that layer. Or, is your team already all conversant with MSIL?
0
[ 2, 378, 13, 9, 2328, 10168, 1637, 15257, 2483, 44, 4837, 85, 2477, 272, 26, 708, 8, 3906, 6587, 60, 800, 3726, 3726, 76, 8873, 13, 18, 7332, 2397, 17, 3292, 35, 1208, 260, 14, 14730, 19, 66, 15124, 84, 1472, 17968, 18, 378, 2484...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...