unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Library naming conventions === There are two popular naming conventions: 1. vc90/win64/debug/foo.dll 2. foo-vc90-win64-debug.dll Please discuss the problems/benefits associated with either approach. I am also wondering if it is possible to expose meta-data (i.e. compiler, platform, build-type) in approach #1 in an easy to use, cross-platform manner.
0
[ 2, 1248, 10929, 15117, 800, 3726, 3726, 80, 50, 81, 844, 10929, 15117, 45, 137, 9, 13, 8990, 3165, 118, 4181, 3470, 118, 546, 16254, 118, 4120, 111, 9, 43, 211, 172, 9, 4310, 111, 8, 8990, 3165, 8, 4181, 3470, 8, 546, 16254, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are the best books for SOAP webservices? === My team is about to build a new product and we are using SOAP webservices as the interface between the client and server. There are other book posts on stackoverflow, but I couldn't find one that matched my needs. My manager will be purchasing books for our team to use as a resource so... What are the best books about SOAP webservices? (Please list each book suggestion in a separate answer)
4
[ 2, 98, 50, 14, 246, 964, 26, 6447, 2741, 11449, 18, 60, 800, 3726, 3726, 51, 173, 25, 88, 20, 1895, 21, 78, 2374, 17, 95, 50, 568, 6447, 2741, 11449, 18, 28, 14, 6573, 128, 14, 6819, 17, 8128, 9, 80, 50, 89, 360, 9868, 27, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Vim: How do I exclude an entire word from my search? === Pretty basic question, I'm trying to write a regex in Vim to match any phrase starting with `"abc "` preceeded by anything other than `"defg"`. I've used `"[^defg]"` to match any single character other than d, e, f or g. My first instinct was to try `/abc [^\(defg\)]` or `/abc [^\<defg\>]` but neither one of those works.
0
[ 2, 1790, 79, 45, 184, 107, 31, 21077, 40, 1078, 833, 37, 51, 2122, 60, 800, 3726, 3726, 1772, 2125, 1301, 15, 31, 22, 79, 749, 20, 2757, 21, 7953, 1706, 19, 1790, 79, 20, 730, 186, 6845, 1422, 29, 13, 1, 7, 21880, 13, 7, 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...
What are the best books for JBoss? === My team is about to build a new product and we are using JBoss as the application server. There are other book posts on stackoverflow, but I couldn't find one that matched my needs. My manager will be purchasing books for our team to use as a resource so... What are the best books about JBoss? (Please list each book suggestion in a separate answer)
4
[ 2, 98, 50, 14, 246, 964, 26, 487, 10349, 18, 60, 800, 3726, 3726, 51, 173, 25, 88, 20, 1895, 21, 78, 2374, 17, 95, 50, 568, 487, 10349, 18, 28, 14, 3010, 8128, 9, 80, 50, 89, 360, 9868, 27, 7566, 2549, 9990, 15, 47, 31, 71...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
LinkButton not firing on production server === This is a good candidate for the ["Works on My Machine Certification Program"][1]. I have the following code for a LinkButton... <cc1:PopupDialog ID="pdFamilyPrompt" runat="server" CloseLink="false" Display="true"> <p>Do you wish to upgrade?</p> <asp:HyperLink ID="hlYes" runat="server" Text="Yes" CssClass="button"></asp:HyperLink> <asp:LinkButton ID="lnkbtnNo" runat="server" Text="No" CssClass="button"></asp:LinkButton> </cc1:PopupDialog> It uses a custom control that simply adds code before and after the content to format it as a popup dialog. The **Yes** button is a HyperLink because it executes javascript to hide the dialog and show a different one. The **No** button is a LinkButton because it needs to PostBack to process this value. I do not have an onClick event registered with the LinkButton because I simply check if IsPostBack is true. When executed locally, the PostBack works fine and all goes well. When published to our Development server, the **No** button does nothing when clicked on. I am using the same browser when testing locally versus on the development server. My initial thought is that perhaps a Validator is preventing the PostBack from firing. I do use a couple of Validators on another section of the page, but they are all assigned to a specific Validation Group which the **No** LinkButton is not assigned to. However the problem is why it would work locally on not on the development server. Any ideas? [1]: http://www.codinghorror.com/blog/archives/000818.html
0
[ 2, 3508, 811, 444, 52, 7139, 27, 637, 8128, 800, 3726, 3726, 48, 25, 21, 254, 2316, 26, 14, 636, 7, 7684, 27, 51, 1940, 10439, 625, 7, 500, 2558, 165, 500, 9, 31, 57, 14, 249, 1797, 26, 21, 3508, 811, 444, 9, 9, 9, 13, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Real-world problems with naive shuffling === I'm writing a number of articles meant to teach beginning programming concepts through the use of poker-related topics. Currently, I'm working on the subject of shuffling. As [Jeff Atwood points out on CodingHorror.com][1], one simple shuffling method (iterating through an array and swapping each card with a random card elsewhere in the array) creates an uneven distribution of permutations. In an actual application, I would just use the [Knuth Fisher-Yates shuffle][2] for more uniform randomness. But, I don't want to bog down an explanation of programming concepts with the much less coder-friendly algorithm. This leads to the question: Just how much of an advantage would a black-hat have if they knew you were using a naive shuffle of a 52-card deck? It seems like it would be infinitesimally small. [1]: http://www.codinghorror.com/blog/archives/001015.html "The Danger of Naivete" [2]: http://en.wikipedia.org/wiki/Knuth_shuffle "Knuth Fisher-Yates shuffle"
0
[ 2, 683, 8, 4423, 1716, 29, 16288, 26588, 800, 3726, 3726, 31, 22, 79, 1174, 21, 234, 16, 3376, 1380, 20, 5348, 997, 3143, 8700, 120, 14, 275, 16, 12453, 8, 6203, 7569, 9, 871, 15, 31, 22, 79, 638, 27, 14, 1550, 16, 26588, 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...
Is there a way to purge some files from the history of git? === I have migrated a couple of project from Subversion to git. It work really well but when I clone my repository, it's really long because I have all the history of a lot of .jar file included in the transfer. Is there a way to keep only the latest version of certain type of file in my main repository. I mainly want to delete old version on binary file.
0
[ 2, 25, 80, 21, 161, 20, 20722, 109, 6488, 37, 14, 447, 16, 13, 10404, 60, 800, 3726, 3726, 31, 57, 14204, 21, 1335, 16, 669, 37, 972, 10898, 20, 13, 10404, 9, 32, 170, 510, 134, 47, 76, 31, 13871, 51, 24869, 15, 32, 22, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there any way to use a "constant" as hash key in perl? === Is there any way to use a constant as a hash key? For example: use constant X => 1; my %x = (X => 'X'); The above code will create a hash with "X" as key and not 1 as key. Whereas, I want to use the value of constant X as key.
0
[ 2, 25, 80, 186, 161, 20, 275, 21, 13, 7, 29639, 7, 28, 19170, 1246, 19, 416, 255, 60, 800, 3726, 3726, 25, 80, 186, 161, 20, 275, 21, 3587, 28, 21, 19170, 1246, 60, 26, 823, 45, 275, 3587, 993, 800, 1, 137, 73, 51, 13, 118...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Package naming conventions for domain object models === What are some good package naming conventions for domain specific object models. For example, say you have a **Person.java** POJO, would you put it in a **mydomain.model** or **mydomain.entity** or **mydomain.om** (object model) package. The idea is to separate the MVC model objects from the domain object model. Our MVC based application has a **model** package that contains behavior but using that package to contain our domain object model seems inappropriate and potentially confusing.
0
[ 2, 6030, 10929, 15117, 26, 4603, 3095, 2761, 800, 3726, 3726, 98, 50, 109, 254, 6030, 10929, 15117, 26, 4603, 1903, 3095, 2761, 9, 26, 823, 15, 395, 42, 57, 21, 13, 1409, 7276, 9, 1004, 1385, 1409, 2353, 1636, 15, 83, 42, 442, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What causes tables to need to be repaired? === Every so often I get an error saying one of my tables "is marked as crashed and should be repaired". I then do a REPAIR TABLE and repair it. What causes them to be marked as crashed and how can I prevent it? I am using MyISAM tables with MySQL 5.0.45.
0
[ 2, 98, 4047, 7484, 20, 376, 20, 44, 15552, 60, 800, 3726, 3726, 352, 86, 478, 31, 164, 40, 7019, 1148, 53, 16, 51, 7484, 13, 7, 403, 2739, 28, 7579, 17, 378, 44, 15552, 7, 9, 31, 94, 107, 21, 5612, 859, 17, 5612, 32, 9, 98...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I build C# ImageList Images from smaller component images? === I'd like to make status icons for a C# WinForms TreeList control. The statuses are combinations of other statuses (eg. a user node might be inactive or banned or inactive and banned), and the status icon is comprised of non-overlapping, smaller glyphs. I'd really like to avoid having to hand-generate all the possibly permutations of status icons if I can avoid it. Is it possible to create an image list (or just a bunch of bitmap resources or something) that I can use to generate the ImageList programmatically? I'm poking around the System.Drawing classes and nothing's jumping out at me. Also, I'm stuck with .Net 2.0.
0
[ 2, 184, 92, 31, 1895, 272, 5910, 1961, 5739, 3502, 37, 2012, 5912, 3502, 60, 800, 3726, 3726, 31, 22, 43, 101, 20, 233, 1782, 9801, 18, 26, 21, 272, 5910, 628, 4190, 18, 1541, 5739, 569, 9, 14, 1782, 160, 50, 17908, 16, 89, 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...
ADF Business Components thru RMI Vs EJB and Toplink === I was wondering what the differences would be in implementing remote business logic. Currently we are planning on using ADF to develop front-end web apps (moving from Struts). We were wondering what the differences between the front end calling EJBs using Toplink vs ADF Business Components thru RMI in terms of scalability as the migration from Struts to ADF will also encompass PL/SQL and Oracle Forms, thus increasing the user count drastically.
0
[ 2, 21, 8736, 508, 5090, 19637, 761, 1435, 4611, 13, 10022, 220, 17, 371, 6258, 800, 3726, 3726, 31, 23, 5712, 98, 14, 4921, 83, 44, 19, 17333, 5388, 508, 7085, 9, 871, 95, 50, 2334, 27, 568, 21, 8736, 20, 2803, 431, 8, 2451, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I create a nice-looking DMG for Mac OS X using command-line tools? === I need to create a nice installer for a Mac application. I want it to be a disk image (DMG), with a predefined size, layout and background image. I need to do this programmatically in a script, to be integrated in an existing build system. I already have the DMG creation done using "hdiutil", what I haven't found out yet is how to make an icon layout and specify a background bitmap.
0
[ 2, 184, 107, 31, 1600, 21, 2210, 8, 7940, 13, 43, 11984, 26, 1572, 13, 759, 993, 568, 1202, 8, 1143, 4672, 60, 800, 3726, 3726, 31, 376, 20, 1600, 21, 2210, 16146, 106, 26, 21, 1572, 3010, 9, 31, 259, 32, 20, 44, 21, 8582, 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...
What is the hardest technical question you have had to answer in an interview? === Different companies use different technical questions to try and figure out who the good programmers are. What is the hardest technical question or problem you have ever had to solve in an interview?
2
[ 2, 98, 25, 14, 20766, 2447, 1301, 42, 57, 41, 20, 1623, 19, 40, 2421, 60, 800, 3726, 3726, 421, 1532, 275, 421, 2447, 2346, 20, 1131, 17, 1465, 70, 72, 14, 254, 17968, 18, 50, 9, 98, 25, 14, 20766, 2447, 1301, 54, 1448, 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, 0, 0, 0, 0, 0, 0, 0, 0...
Why use Jython when you could just use Java? === The standard answer is that it's useful when you only need to write a few lines of code ... I have both languages integrated inside of Eclipse. Because Eclipse handles the compiling, interpreting, running etc. both "run" exactly the same. The Eclipse IDE for both is similar - instant "compilation", intellisense etc. Both allow the use of the Debug perspective. If I want to test a few lines of Java, I don't have to create a whole new Java project - I just use the [Scrapbook](http://www.eclipsezone.com/eclipse/forums/t61137.html) feature inside Eclipse which which allows me to *"execute Java expressions without having to create a new Java program. This is a neat way to quickly test an existing class or evaluate a code snippet"*. Jython allows the use of the Java libraries - but then so (by definition) does Java! So what other benefits does Jython offer?
0
[ 2, 483, 275, 487, 93, 11570, 76, 42, 110, 114, 275, 8247, 60, 800, 3726, 3726, 14, 1236, 1623, 25, 30, 32, 22, 18, 4811, 76, 42, 104, 376, 20, 2757, 21, 310, 1560, 16, 1797, 13, 9, 9, 9, 31, 57, 156, 2556, 5547, 572, 16, 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...
What's the name of Visual Studio Import UI Widget (picture inside) === What's the name of the circled UI element here? And how do I access it using keyboard shortcuts? Sometimes it's nearly impossible to get the mouse to focus on it. Thanks. ![Name?][1] [1]: http://jazz2online.com/junk/vs_question.gif
0
[ 2, 98, 22, 18, 14, 204, 16, 3458, 1120, 9010, 13, 5661, 4807, 43, 3060, 13, 5, 25602, 572, 6, 800, 3726, 3726, 98, 22, 18, 14, 204, 16, 14, 17682, 13, 5661, 4520, 235, 60, 17, 184, 107, 31, 1381, 32, 568, 8896, 502, 4118, 18...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best keyboard/mouse for ergonomics or to prevent wrist pain? === I have had pain in my wrists in the past, and as someone who types all day, I was wondering what are some keyboards or mice that have helped for this sort of pain.
4
[ 2, 98, 25, 14, 246, 8896, 118, 14002, 62, 26, 13, 106, 4099, 20167, 18, 54, 20, 2501, 6144, 1257, 60, 800, 3726, 3726, 31, 57, 41, 1257, 19, 51, 14119, 19, 14, 640, 15, 17, 28, 737, 72, 2551, 65, 208, 15, 31, 23, 5712, 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, 0, 0...
What is the best way to encrypt a clob? === I am using Oracle 9 and JDBC and would like to encyrpt a clob as it is inserted into the DB. Ideally I'd like to be able to just insert the plaintext and have it encrypted by a stored procedure: String SQL = "INSERT INTO table (ID, VALUE) values (?, encrypt(?))"; PreparedStatement ps = connection.prepareStatement(SQL); ps.setInt(id); ps.setString(plaintext); ps.executeUpdate(); The plaintext is not expected to exceed 4000 characters but encrypting makes text longer. Our current approach to encryption uses dbms_obfuscation_toolkit.DESEncrypt() but we only process varchars. Will the following work? FUNCTION encrypt(p_clob IN CLOB) RETURN CLOB IS encrypted_string CLOB; v_string CLOB; BEGIN dbms_lob.createtemporary(encrypted_string, TRUE); v_string := p_clob; dbms_obfuscation_toolkit.DESEncrypt( input_string => v_string, key_string => key_string, encrypted_string => encrypted_string ); RETURN UTL_RAW.CAST_TO_RAW(encrypted_string); END; I'm confused about the temporary clob; do I need to close it? Or am I totally off-track?
0
[ 2, 98, 25, 14, 246, 161, 20, 1957, 11435, 21, 7383, 220, 60, 800, 3726, 3726, 31, 589, 568, 15759, 561, 17, 487, 43, 7229, 17, 83, 101, 20, 13, 8883, 6952, 38, 21, 7383, 220, 28, 32, 25, 14215, 77, 14, 13, 9007, 9, 5628, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to trim leading zeros from alphanumeric text in mysql function === What mysql functions are there (if any) to trim leading zeros from an alphanumeric text field? Field with value "00345ABC" would need to return "345ABC".
0
[ 2, 184, 20, 8971, 1005, 4606, 18, 37, 5705, 6336, 14744, 1854, 19, 51, 18, 22402, 1990, 800, 3726, 3726, 98, 51, 18, 22402, 3719, 50, 80, 13, 5, 821, 186, 6, 20, 8971, 1005, 4606, 18, 37, 40, 5705, 6336, 14744, 1854, 575, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I find out what's thrashing my hard drive in XP? === This is a programming question in the sense that I'm experiencing a hardware issue which is keeping me from being able to develop effectively... Anyway, my PC is running insanely slow, but it doesn't appear to be a memory consumption issue or a CPU issue - no programs are running away with too much of either. But something is thrashing my hard drive - the hard drive light just stays on nearly solidly, barely flickering at all, and it never stops. In Vista there would be a likely culprit (superfetch) as well as intrinsic tools to see what the issue is (resource manager, I believe) - but I'm running Windows XP. Is there a way, through a utility or programmatically - to see what it is that's murdering my hard drive performance in Windows XP?
2
[ 2, 184, 92, 31, 477, 70, 98, 22, 18, 14746, 68, 51, 552, 1493, 19, 23045, 60, 800, 3726, 3726, 48, 25, 21, 3143, 1301, 19, 14, 1259, 30, 31, 22, 79, 15138, 21, 7610, 1513, 56, 25, 2882, 55, 37, 142, 777, 20, 2803, 5463, 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...
Hosting control panel with JEE Application Server support? === I currently have WHM/cPanel on my server, but it doesn't integrate properly with any JEE App Server. I installed Tomcat manually, and have made it work through Apache, but the configuration is more fragile than I'd like. So, I'm trying to find a replacement where a JEE App Server can be properly integrated & managed. <br/>Requirements:<ul> <li>Runs on CentOS (although, Debian/Fedora Core/FreeBSD are options if necessary)</li> <li>Free Open Source software</li> <li>Supports Apache + Tomcat (or equivalent)</li> <li>Self-monitoring (e.g. auto-restarts MySQL if it falls over)</li> <li>User account management (easy setup, limit space & bandwidth quotas, etc)</li> <li>Friendly end-user control panel (for configuring db, mail, stats, logs, etc)</li> <li>Anything obvious I've forgotten.</li> </ul> Are there any recommended software packages which do all of this?
0
[ 2, 10637, 569, 4113, 29, 13, 13412, 3010, 8128, 555, 60, 800, 3726, 3726, 31, 871, 57, 11153, 79, 118, 150, 3206, 532, 27, 51, 8128, 15, 47, 32, 1437, 22, 38, 18399, 7428, 29, 186, 13, 13412, 4865, 8128, 9, 31, 4066, 2067, 5782,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Experience with SQLExpress for a multi-user commercial application? === I have inherited a VB6/Access application that we have developed and sold for many years. We're considering going to SQL Server 2005 Express Edition and .Net. The application can be multi-user. Currently the setup is simple for the customer -- Navigate to the folder to create the database on first launch; second user browses to the same file. If we go with SQLExpress I believe our application will require more involvement to configure SQLExpress on the server. How can I create the best customer experience from an installation and tech support point of view? What issues have come up for you? What install procedures have worked?
0
[ 2, 1496, 29, 4444, 255, 21230, 26, 21, 1889, 8, 16704, 1439, 3010, 60, 800, 3726, 3726, 31, 57, 7179, 21, 13, 20468, 12626, 20604, 3010, 30, 95, 57, 885, 17, 945, 26, 151, 122, 9, 95, 22, 99, 5154, 228, 20, 4444, 255, 8128, 81...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Type checking on Caché Objects === What is the point of type definition on method parameters on Caché Object (from Intersystems) since after it's pre-compiled to the .int format, it removes any typing information, thus making no difference at all?
0
[ 2, 1001, 9886, 27, 16522, 3916, 800, 3726, 3726, 98, 25, 14, 454, 16, 1001, 5465, 27, 2109, 12905, 27, 16522, 3095, 13, 5, 2665, 1480, 10724, 18, 6, 179, 75, 32, 22, 18, 782, 8, 11103, 49, 1294, 20, 14, 13, 9, 6391, 2595, 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, 0, 0, 0...
ASP.NET MVC vs. Django - Which framework should I learn? === I am starting a new web project where using MVC framework seems appropriate. My background is mostly with .Net / ASP.NET, so using ASP.NET MVC looks like the easiest way. I read that django is very powerful and easy to use, but I only have little experience with python. Can anyone with experience in both frameworks tell me their perspective regarding how the two frameworks stand out?
0
[ 2, 28, 306, 9, 2328, 307, 8990, 4611, 9, 3857, 14541, 13, 8, 56, 6596, 378, 31, 2484, 60, 800, 3726, 3726, 31, 589, 1422, 21, 78, 2741, 669, 113, 568, 307, 8990, 6596, 2206, 4593, 9, 51, 2395, 25, 1555, 29, 13, 9, 2328, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to open Eclipse project as read-only? === Does anyone know is there a way to open a project in Eclipse in read-only mode? If there is a lot of similar projects open it is easy to make changes to a wrong one.
0
[ 2, 184, 20, 368, 11652, 669, 28, 1302, 8, 4965, 60, 800, 3726, 3726, 630, 1276, 143, 25, 80, 21, 161, 20, 368, 21, 669, 19, 11652, 19, 1302, 8, 4965, 3740, 60, 100, 80, 25, 21, 865, 16, 835, 2314, 368, 32, 25, 2010, 20, 233,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do you decompile a swf file === I am the maintainer of a site that has ellegedely 'lost' the source code to a flash swf file. How do I decompile this source?
4
[ 2, 184, 107, 42, 121, 11103, 3599, 21, 13, 18, 15263, 3893, 800, 3726, 3726, 31, 589, 14, 4027, 106, 16, 21, 689, 30, 63, 13, 3745, 6430, 62, 102, 13, 22, 13404, 22, 14, 1267, 1797, 20, 21, 4433, 13, 18, 15263, 3893, 9, 184, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
std::map insert or std::map find? === Assuming a map where you want to preserve existing entries. 20% of the time, the entry you are inserting is new data. Is there an advantage to doing std::map::find then std::map::insert using that returned iterator? Or is it quicker to attempt the insert and then act based on whether or not the iterator indicates the record was or was not inserted?
0
[ 2, 354, 43, 45, 45, 15022, 14692, 54, 354, 43, 45, 45, 15022, 477, 60, 800, 3726, 3726, 11704, 21, 2942, 113, 42, 259, 20, 6224, 3149, 11399, 9, 14140, 16, 14, 85, 15, 14, 2792, 42, 50, 14692, 68, 25, 78, 1054, 9, 25, 80, 40...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
At which point in the lifecycle does GetConnectionInterface get called? === I have this method on a webpart: private IFilterData _filterData = null; [ConnectionConsumer("Filter Data Consumer")] public void GetConnectionInterface(IFilterData filterData) { _filterData = filterData; } Now, before I can call upon _filterData, I need to know when i can expect it to not be null. When is this?! Without knowing this, the best I can do is stuff all of my _filterWebpart dependant code into the last lines of OnPreRender and hope for the best.
0
[ 2, 35, 56, 454, 19, 14, 201, 12467, 630, 164, 25996, 872, 6280, 6413, 164, 227, 60, 800, 3726, 3726, 31, 57, 48, 2109, 27, 21, 2741, 3091, 45, 932, 100, 947, 815, 18768, 13, 1, 11924, 815, 18768, 800, 16203, 73, 636, 25996, 872,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 anyone give me a list of the Business Objects Error Codes and what they mean? === Business Objects Web Services returns error codes and I have yet to find a good resource where these are listed and what they mean. I am currently getting an "The resultset was empty. (Error: WBP 42019)". Any ideas on where these might be listed? I've called Business Objects support and the tech couldn't even tell me. Anyone?
0
[ 2, 92, 1276, 590, 55, 21, 968, 16, 14, 508, 3916, 7019, 11358, 17, 98, 59, 884, 60, 800, 3726, 3726, 508, 3916, 2741, 687, 4815, 7019, 11358, 17, 31, 57, 768, 20, 477, 21, 254, 6577, 113, 158, 50, 1510, 17, 98, 59, 884, 9, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you help a non-technical client or boss understand why something takes so long? === I want to know specifically how you deal with explaining a timeline to a non-technical boss or client, and why it takes so long to do something they feel should take a lot less longer. I hear "Why can't you just..." a lot, and I have trouble without getting into the deep technical details explaining why something might take a few days or a week when on the surface it looks like it should only take a few hours.
2
[ 2, 184, 107, 42, 448, 21, 538, 8, 22307, 6819, 54, 4054, 1369, 483, 301, 1384, 86, 175, 60, 800, 3726, 3726, 31, 259, 20, 143, 3524, 184, 42, 1183, 29, 10225, 21, 18398, 20, 21, 538, 8, 22307, 4054, 54, 6819, 15, 17, 483, 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...
Where to find a reference to nice web UI stuff? === Could anybody give me a url to where I can find some nice web UI stuff like the ones this website has? Ajax, dhtml, web 2.0 etc... thanks!
0
[ 2, 113, 20, 477, 21, 2801, 20, 2210, 2741, 13, 5661, 3217, 60, 800, 3726, 3726, 110, 11181, 590, 55, 21, 287, 6362, 20, 113, 31, 92, 477, 109, 2210, 2741, 13, 5661, 3217, 101, 14, 53, 18, 48, 2271, 63, 60, 20624, 15, 13, 43, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
"get() const" vs. "getAsConst() const" === *My first question on Stack Overflow... :-)* Someone told me about a C++ style difference in their team. I have my own viewpoint on the subject, but I would be interested by *pros* and *cons* coming from everyone. So... In case you have a class property you want to expose via two getters, one read/write, and the other, readonly (i.e. there is no set method). There are at least two ways of doing it: class MethodA { const T & get() const ; T & get() ; } ; class MethodB { const T & getAsConst() const ; T & get() ; } ; What would be the pros and the cons of each method? I am interested more by C++ technical/semantic reasons, but style reasons are welcome, too.
0
[ 2, 13, 7, 3060, 5, 6, 11608, 38, 7, 4611, 9, 13, 7, 3060, 472, 12124, 38, 5, 6, 11608, 38, 7, 800, 3726, 3726, 1637, 915, 64, 1301, 27, 7566, 20285, 9, 9, 9, 13, 45, 8, 6, 2483, 737, 470, 55, 88, 21, 272, 20512, 1034, 28...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Limiting height of a Sytem.Windows.Form to an exact value === What I am trying to achieve is a form that has a button on it that causes the Form to 'drop-down' and become larger, displaying more information. My current attempt is this: private void btnExpand_Click(object sender, EventArgs e) { if (btnExpand.Text == ">") { btnExpand.Text = "<"; _expanded = true; this.MinimumSize = new Size(1, 300); this.MaximumSize = new Size(int.MaxValue, 300); } else { btnExpand.Text = ">"; _expanded = false; this.MinimumSize = new Size(1, 104); this.MaximumSize = new Size(int.MaxValue, 104); } } Which works great! Except for one small detail... Note that the width values are supposed to be able to go from 1 to int.MaxValue? Well, in practice, they go from this.Width to int.MaxValue, ie. you can make the form larger, but never smaller again. I'm at a loss for why this would occur. Anyone have any ideas? For the record: I've also tried a Form.Resize handler that set the Height of the form to the same value depending on whatever the boolean _expanded was set to, but I ended up with the same side effect.
0
[ 2, 17567, 2947, 16, 21, 10315, 38, 1503, 9, 27508, 18, 9, 4190, 20, 40, 5340, 1923, 800, 3726, 3726, 98, 31, 589, 749, 20, 4689, 25, 21, 505, 30, 63, 21, 5167, 27, 32, 30, 4047, 14, 505, 20, 13, 22, 12361, 8, 2968, 22, 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...
What is the C# version of VB.net's InputDialog? === What is the C# version of VB.net's InputDialog?
0
[ 2, 98, 25, 14, 272, 5910, 615, 16, 13, 20468, 9, 2328, 22, 18, 6367, 4286, 5567, 60, 800, 3726, 3726, 98, 25, 14, 272, 5910, 615, 16, 13, 20468, 9, 2328, 22, 18, 6367, 4286, 5567, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How can I get the current exception in a WinForms TraceListener === I am modifying an existing WinForms app which is setup with a custom TraceListener which logs any unhandled errors that occur in the app. It seems to me like the TraceListener gets the message part of the exception (which is what gets logged), but not the other exception information. I would like to be able to get at the exception object (to get the stacktrace and other info). In ASP.NET, which I am more familiar with, I would call Server.GetLastError to get the most recent exception, but of course that won't work in WinForms. How can I get the most recent exception?
0
[ 2, 184, 92, 31, 164, 14, 866, 5391, 19, 21, 628, 4190, 18, 5565, 13891, 106, 800, 3726, 3726, 31, 589, 17579, 68, 40, 3149, 628, 4190, 18, 4865, 56, 25, 18161, 29, 21, 5816, 5565, 13891, 106, 56, 18893, 186, 367, 3203, 1294, 119...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Help Writing a Regular Expression === I have the following string: cn=abcd,cn=groups,dc=domain,dc=com Can a regular expression be used here to extract the string after the first "cn=" and before the first ","? In the example above the answer would be "abcd". Thanks.
0
[ 2, 448, 1174, 21, 1290, 1803, 800, 3726, 3726, 31, 57, 14, 249, 3724, 45, 13, 9881, 3726, 21880, 43, 15, 9881, 3726, 8024, 18, 15, 7201, 3726, 537, 6232, 15, 7201, 3726, 960, 92, 21, 1290, 1803, 44, 147, 235, 20, 10962, 14, 3724...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 conditional compilation a valid mock/stub strategy for unit testing? === In a recent question on stubbing, many answers suggested C# interfaces or delegates for implementing stubs, but [one answer][1] suggested using conditional compilation, retaining static binding in the production code. This answer was modded -2 at the time of reading, so at least 2 people really thought this was a *wrong* answer. Perhaps misuse of DEBUG was the reason, or perhaps use of fixed value instead of more extensive validation. But I can't help wondering: Is the use of conditional compilation an inappropriate technique for implementing unit test stubs? Sometimes? Always? Thanks. [1]: http://stackoverflow.com/questions/43711/whats-a-good-way-to-overwrite-datetimenow-during-testing#43718
0
[ 2, 25, 21206, 4868, 21, 7394, 10506, 118, 384, 4502, 4427, 26, 1237, 4431, 60, 800, 3726, 3726, 19, 21, 1764, 1301, 27, 21354, 8136, 15, 151, 6709, 2347, 272, 5910, 6573, 18, 54, 10845, 26, 17333, 21354, 18, 15, 47, 636, 849, 1623...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 run a script on login in *nix? === I know I once know how to do this but... how do you run a script (bash is OK) on login in unix?
0
[ 2, 184, 107, 42, 485, 21, 3884, 27, 6738, 108, 19, 1637, 14064, 60, 800, 3726, 3726, 31, 143, 31, 382, 143, 184, 20, 107, 48, 47, 9, 9, 9, 184, 107, 42, 485, 21, 3884, 13, 5, 969, 1635, 25, 5854, 6, 27, 6738, 108, 19, 2254...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
SSRS Reporting === where can i find the best tutorial about MS SQL server reporting services..
0
[ 2, 22118, 18, 6670, 800, 3726, 3726, 113, 92, 31, 477, 14, 246, 29724, 88, 4235, 4444, 255, 8128, 6670, 687, 9, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 0...
Must an SMTP client provide the MTA a globally resolvable hostname in the HELO? === In short: I'm trying to figure out if I should tell a mail administrator of a friend's employer whether their mail configuration should be fixed, or if I should revise my own policy to be more liberal in what I accept, or neither. A friend was complaining of being unable to reach anything on my mailserver. I dug into it and it seems that the hostname provided by his mail server when it connected to mine was somewhere in the *.local space, meaning it wasn't globally resolvable. They were rejected with "Helo command rejected: Host not found;" by my postfix mailserver. I'm perhaps strict on my UCE checks in postfix, so I whitelisted their (in my opinion, misconfigured) server but now I'm trying to figure out to what extent they actually are misconfigured, versus whether I'm just being too harsh in what I accept. So then I checked the RFCs - RFC 821 says "The HELO receiver MAY verify that the HELO parameter really corresponds to the IP address of the sender. However, the receiver MUST NOT refuse to accept a message, even if the sender's HELO command fails verification." which suggests to me that I'm actually the one violating the RFC. Was this portion of RFC 821 ever replaced by a future RFC, that I can point to? Or must mail servers accept mail with bogus HELOs? Are there any well respected authorities I can point to that state the HELO hostname should be valid, as a reference for contacting their mail admin?
0
[ 2, 491, 40, 7613, 13726, 6819, 1181, 14, 307, 536, 21, 18861, 302, 5594, 710, 579, 2015, 7259, 19, 14, 24, 1415, 60, 800, 3726, 3726, 19, 502, 45, 31, 22, 79, 749, 20, 1465, 70, 100, 31, 378, 494, 21, 4216, 8890, 16, 21, 860, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 to review code? Before or after checkin to MAIN? === Browsing stackoverflow, I noticed a number of posts stating that some developers advocate code review before checkin to MAIN. However, can this really be enforced? And if so, surely it reduces the likelihood of code being refactored due to the increased overhead involved? Personally, I prefer the approach of employing continuous integration to catch anyone who breaks the build, and then perform code reviews on a more coarse-grained basis at the end of a significant piece of work. I don't mandate code reviews for minor refactorings. I'm interested to hear your opinion.
0
[ 2, 76, 20, 1487, 1797, 60, 115, 54, 75, 2631, 108, 20, 407, 60, 800, 3726, 3726, 10175, 68, 7566, 2549, 9990, 15, 31, 2711, 21, 234, 16, 9868, 4177, 30, 109, 10168, 7645, 1797, 1487, 115, 2631, 108, 20, 407, 9, 207, 15, 92, 48...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a monitoring tool like xentop that will track historical data? === I'd like to view historical data for guest cpu/memory/IO usage, rather than just current usage.
0
[ 2, 25, 80, 21, 8984, 5607, 101, 13, 14940, 3880, 30, 129, 792, 1668, 1054, 60, 800, 3726, 3726, 31, 22, 43, 101, 20, 1418, 1668, 1054, 26, 2427, 17578, 118, 790, 5171, 93, 118, 1963, 7514, 15, 864, 119, 114, 866, 7514, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Can I get calling instance from within method via reflection/diagnostics? === Is there any way via System.Reflection, System.Diagnostics or other to get a reference to the actual instance that is calling a static method without passing it in to the method itself. For example, something along these lines class A { public void DoSomething() { StaticClass.ExecuteMethod(); } } class B { public void DoSomething() { SomeOtherClass.ExecuteMethod(); } } public class SomeOtherClass { public static void ExecuteMethod() { // returns an instance of A if called from class A // or an instance of B if called from class B object caller = getCallingInstance(); } } I can get the type using System.Diagnostics.StackTrace.GetFrames, but is there any way to get a reference to the actual instance??
0
[ 2, 92, 31, 164, 2555, 4851, 37, 363, 2109, 1197, 9138, 118, 4286, 21944, 18, 60, 800, 3726, 3726, 25, 80, 186, 161, 1197, 329, 9, 27977, 872, 15, 329, 9, 4286, 21944, 18, 54, 89, 20, 164, 21, 2801, 20, 14, 3463, 4851, 30, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the n+1 selects problem? === The problem is often mentioned in O/R-mapping discussions, and I understand that it has something do to with having to make a lot of database queries for something that seems simple in the object world. Does anybody have a more detailed (but simple!) explanation of the problem?
0
[ 2, 98, 25, 14, 13, 103, 16628, 5407, 18, 1448, 60, 800, 3726, 3726, 14, 1448, 25, 478, 2211, 19, 635, 118, 139, 8, 540, 5574, 11139, 15, 17, 31, 1369, 30, 32, 63, 301, 107, 20, 29, 452, 20, 233, 21, 865, 16, 6018, 9386, 2829...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WebDev: What is the best way to do a multi-file upload? === I want (barely computer literate) people to easily submit a large number of files (pictures) through my web application. Is there a simple, robust, free/cheap, widely used, standard tool/component (Flash or .NET - sorry no java runtime on the browser) that allows a web user to select a folder or a bunch of files on their computer and upload them?
0
[ 2, 2741, 14438, 45, 98, 25, 14, 246, 161, 20, 107, 21, 1889, 8, 16877, 71, 8294, 60, 800, 3726, 3726, 31, 259, 13, 5, 969, 99, 102, 1428, 27146, 6, 148, 20, 2351, 12298, 21, 370, 234, 16, 6488, 13, 5, 25602, 18, 6, 120, 51, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Windows Installer: How do I create a start menu shortcut for Administrator only? === I have a WSI installer package that I'm using to install my application. The application itself can be run by a normal user, but I have a configuration app that should only be run by a system administrator. Thus, I don't want it to appear in the Start Menu for all users, just the administrator. Is there anyway to tell Windows Installer to create some shortcuts for all users, and others for administrator only?
0
[ 2, 1936, 16146, 106, 45, 184, 107, 31, 1600, 21, 799, 11379, 502, 4118, 26, 8890, 104, 60, 800, 3726, 3726, 31, 57, 21, 619, 18, 49, 16146, 106, 6030, 30, 31, 22, 79, 568, 20, 16146, 51, 3010, 9, 14, 3010, 1145, 92, 44, 485, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Comparing C# and Java === I learned Java in college, and then I was hired by a C# shop and have used that ever since. I spent my first week realizing that the two languages were almost identical, and the next two months figuring out the little differences. For the most part, was I noticing the things that Java had that C# doesn't, and thus was mostly frustrated. (example: enum types which are full-fledged classes, not just integers with a fresh coat of paint) I have since come to appreciate the C# world, but I can't say I knew Java well enough to really contrast the two so I'm curious to get a community cross-section. What are the relative merits and weaknesses of C# and Java? This includes everything from language structure to available IDEs and server software.
0
[ 2, 15047, 272, 5910, 17, 8247, 800, 3726, 3726, 31, 2691, 8247, 19, 314, 15, 17, 94, 31, 23, 3658, 34, 21, 272, 5910, 2546, 17, 57, 147, 30, 462, 179, 9, 31, 1111, 51, 64, 877, 9308, 30, 14, 81, 2556, 46, 557, 6323, 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, 1...
'AjaxControlToolkit' is undefined Error === I am using the AjaxControlToolkit in VS2005, and it works fine. I do have some issues though, when I go to some pages I have, then click back, I get this javascript error: 'AjaxControlToolkit' is undefined I have searched MSDN forums, and google, and tried many of the solutions, but none have worked. I have tried, EnablePartialRendering="true", and others. Short of rewriting everything and changing the workflow of my application, is there any way to find the root cause of this, or fix it?
0
[ 2, 13, 22, 6881, 7522, 12898, 20799, 13703, 22, 25, 367, 13439, 7019, 800, 3726, 3726, 31, 589, 568, 14, 20624, 12898, 20799, 13703, 19, 4611, 2835, 15, 17, 32, 693, 1123, 9, 31, 107, 57, 109, 1549, 362, 15, 76, 31, 162, 20, 109...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Barcode- and Character Recognition component for .Net === I need to extract and decode barcodes and text from images. Is there any open source library available that helps to accomplish that task? If not, do you know a good commercial product?
0
[ 2, 748, 9375, 8, 17, 925, 3514, 5912, 26, 13, 9, 2328, 800, 3726, 3726, 31, 376, 20, 10962, 17, 121, 9375, 748, 9375, 18, 17, 1854, 37, 3502, 9, 25, 80, 186, 368, 1267, 1248, 904, 30, 7778, 20, 14570, 30, 3005, 60, 100, 52, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
Any HTTP proxies with explicit, configurable support for request/response buffering and delayed connections? === When dealing with mobile clients it is very common to have multisecond delays during the transmission of HTTP requests. If you are serving pages or services out of a prefork Apache the child processes will be tied up for seconds serving a single mobile client, even if your app server logic is done in 5ms. I am looking for a HTTP server, balancer or proxy server that supports the following: 1. A request arrives to the proxy. The proxy starts buffering in RAM or in disk the request, including headers and POST/PUT bodies. The proxy DOES NOT open a connection to the backend server. This is probably the most important part. 2. The proxy server stops buffering the request when: - A size limit has been reached (say, 4KB), or - The request has been received completely, headers and body 3. Only now, with (part of) the request in memory, a connection is opened to the backend and the request is relayed. 4. The backend sends back the response. Again the proxy server starts buffering it immediately (up to a more generous size, say 64KB.) 5. Since the proxy has a big enough buffer the backend response is stored completely in the proxy server in a matter of miliseconds, and the backend process/thread is free to process more requests. The backend connection is immediately closed. 6. The proxy sends back the response to the mobile client, as fast or as slow as it is capable of, without having a connection to the backend tying up resources. I am fairly sure you can do 4-6 with Squid, and nginx appears to support 1-3 (and looks like fairly unique in this respect). My question is: is there any proxy server that empathizes these buffering and not-opening-connections-until-ready capabilities? Maybe there is just a bit of Apache config-fu that makes this buffering behaviour trivial? Any of them that it is not a dinosaur like Squid and that supports a lean single-process, asynchronous, event-based execution model? (Siderant: I would be using nginx but it doesn't support chunked POST bodies, making it useless for serving stuff to mobile clients. Yes cheap 50$ handsets love chunked POSTs... sigh)
0
[ 2, 186, 7775, 895, 396, 1596, 29, 14990, 15, 1065, 13549, 579, 555, 26, 3772, 118, 99, 18, 8782, 870, 17497, 68, 17, 8241, 6760, 60, 800, 3726, 3726, 76, 5746, 29, 3241, 7421, 32, 25, 253, 757, 20, 57, 1889, 5007, 16730, 112, 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...
VS 2008 Post Build Step funny business === Ok, here's the breakdown of my project: I have a web project with a "Scripts" subfolder. That folder contains a few javascript files and a copy of JSMin.exe along with a batch file that runs the JSMin.exe on a few of the files. I tried to set up a post build step of 'call "$(ProjectDir)Scripts\jsmin.bat"'. When I perform the build, the batch file is always "exited with code 1." This happens going through Visual Studio or through the msbuild command line. I can run the batch file manually from the Scripts folder and it seems to work as expected, so I'm not sure what the issue here is. The $(ProjectDir)Scripts\jsmin.bat call is in quotes because $(ProjectDir) could have spaces (and in fact does on my machine). I'm not sure what to do at this point. I've tried removing the contents of the batch file as the post build step but that doesn't seem to work either. Ideally I would like to solve this problem through the post or pre-build steps so that the build manager won't have to go through an extra step when deploying code. Thanks!
0
[ 2, 4611, 570, 678, 1895, 1424, 5066, 508, 800, 3726, 3726, 5854, 15, 235, 22, 18, 14, 13369, 16, 51, 669, 45, 31, 57, 21, 2741, 669, 29, 21, 13, 7, 8741, 18, 7, 972, 8814, 106, 9, 30, 19294, 1588, 21, 310, 8247, 8741, 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 capture an asterisk on the form's KeyUp event? OR, How do I get a KeyChar on the KeyUp event? === I'm trying to hijack an asterisk with the form's KeyUp event. I can get the SHIFT key and the D8 key on the KeyUp event, but I can't get the * out of it. I can find it easily in the KeyPress event (e.KeyChar = "*"c), but company standards say that we have to use the KeyUp event for all such occasions. Thanks!
0
[ 2, 184, 107, 31, 3683, 40, 28, 591, 20989, 27, 14, 505, 22, 18, 1246, 576, 807, 60, 54, 15, 184, 107, 31, 164, 21, 1246, 5433, 27, 14, 1246, 576, 807, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 21691, 40, 28, 591, 20989, 29, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Keyboard shortcut to close all tabs but current one in Visual Studio? === Does anyone know a keyboard shortcut to close all tabs except for the current one in Visual Studio? And while we're at it, the shortcut for closing all tabs? Is there a Resharper option for this? I've looked in the past and have never been able to find it.
0
[ 2, 8896, 502, 4118, 20, 543, 65, 6523, 18, 47, 866, 53, 19, 3458, 1120, 60, 800, 3726, 3726, 630, 1276, 143, 21, 8896, 502, 4118, 20, 543, 65, 6523, 18, 1613, 26, 14, 866, 53, 19, 3458, 1120, 60, 17, 133, 95, 22, 99, 35, 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...
How can I determine the name of the currently focused process in C# === For example if the user is currently running VS2008 then I want the value VS2008.
0
[ 2, 184, 92, 31, 3746, 14, 204, 16, 14, 871, 2604, 953, 19, 272, 5910, 800, 3726, 3726, 26, 823, 100, 14, 4155, 25, 871, 946, 4611, 2753, 94, 31, 259, 14, 1923, 4611, 2753, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
LINQ FormatException === I currently have an existing database and I am using the LINQtoSQL generator tool to create the classes for me. The tool is working fine for this database and there are no errors with that tool. When I run a LINQ to SQL query against the data, there is a row that has some invalid data somehow within the table and it is throwing a System.FormatException when it runs across this row. Does anyone know what that stems from? Does anyone know how I can narrow down the effecting column without adding them one by one to the select clause?
0
[ 2, 6294, 1251, 2595, 10066, 872, 800, 3726, 3726, 31, 871, 57, 40, 3149, 6018, 17, 31, 589, 568, 14, 6294, 1251, 262, 18, 22402, 15286, 5607, 20, 1600, 14, 2684, 26, 55, 9, 14, 5607, 25, 638, 1123, 26, 48, 6018, 17, 80, 50, 90...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I get the full path of the currently running app? === How do I find out what directory my console app is running in with C#?
0
[ 2, 184, 107, 31, 164, 14, 503, 2013, 16, 14, 871, 946, 4865, 60, 800, 3726, 3726, 184, 107, 31, 477, 70, 98, 16755, 51, 8650, 4865, 25, 946, 19, 29, 272, 5910, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Fastest way to find objects from a collection matched by string member === Suppose I have a collection (be it an array, generic List, or whatever is the **fastest** solution to this problem) of a certain class, let's call it `ClassFoo`: class ClassFoo { public string bar; public float baz; //... etc ... } Now I want to obtain as fast as possible all the instances in the collection that obey a condition on its bar member, for example like this: List<ClassFoo> result = new List<ClassFoo>(); foreach (ClassFoo cf in collection) { if (cf.bar.StartsWith(query) || cf.bar.EndsWith(query)) result.Add(cf); } How do I get the results as fast as possible? Should I consider some advanced indexing techniques and datastructures?
0
[ 2, 7518, 161, 20, 477, 3916, 37, 21, 1206, 11265, 34, 3724, 322, 800, 3726, 3726, 5787, 31, 57, 21, 1206, 13, 5, 863, 32, 40, 7718, 15, 12733, 968, 15, 54, 2099, 25, 14, 13, 1409, 13088, 1430, 1409, 4295, 20, 48, 1448, 6, 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...
gcc dependency generation for a different output directory === I'm using gcc to generate a dependency file but my build rules put the output into a subdirectory. Is there a way to tell gcc to put my subdirectory prefix in the dependency file it generates for me? gcc $(INCLUDES) -E -MM $(CFLAGS) $(SRC) >>$(DEP)
0
[ 2, 489, 3384, 26835, 2782, 26, 21, 421, 5196, 16755, 800, 3726, 3726, 31, 22, 79, 568, 489, 3384, 20, 7920, 21, 26835, 3893, 47, 51, 1895, 1761, 442, 14, 5196, 77, 21, 972, 10197, 93, 9, 25, 80, 21, 161, 20, 494, 489, 3384, 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...
TFSBuild.proj and Importing External Targets === We want to store our overridden build targets in an external file and include that targets file in the TFSBuild.proj. We have a core set steps that happens and would like to get those additional steps by simply adding the import line to the TFSBuild.proj created by the wizard. <Import Project="$(SolutionRoot)/libs/my.team.build/my.team.build.targets"/> We cannot have an import on any file in the `$(SolutionRoot)` because at the time the Import statement is validated, the source has not be fetched from the repository. It looks like TFS is pulling down the `TFSBuild.proj` first without any other files. We can give up storing those build targets with our source, but it is the first dependency to move out of our source tree so we are reluctant to do it. Is there a way to either: 1. Tell Team Build to pull down a few more files so those `Import` statements evaluate correctly? 2. Override those Team Build targets like `AfterCompile` in a manner besides the `Import`? 3. Ultimately run build targets in Team Build that are kept under the source it's trying to build?
0
[ 2, 13, 11720, 18, 29361, 9, 2740, 728, 17, 9010, 68, 4886, 7767, 800, 3726, 3726, 95, 259, 20, 1718, 318, 84, 15267, 1895, 7767, 19, 40, 4886, 3893, 17, 468, 30, 7767, 3893, 19, 14, 13, 11720, 18, 29361, 9, 2740, 728, 9, 95, 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...
Run macro automatically OnSave in Word 97 === I have a macro which refreshes all fields in a document (the equivalent of doing an F9 on the fields). I'd like to fire this macro automatically when the user saves the document. Under options I can select "update fields when document is printed", but that's not what I want. In the VBA editor I only seem to find events for the document open event, not the save event. Is it possible to get the macro to fire when the user saves the document? Please note: 1. This is Word 97. I know it is possible in later versions of Word 2. I don't want to replace the standard Save button on the toolbar with a button to run my custom macro. Replacing the button on the toolbar applies to all documents and I only want it to affect this one document. To understand why I need this, the document contains a "SaveDate" field and I'd like this field to update on the screen when the user clicks Save. So if you can suggest another way to achieve this, then that would be just as good. Thanks.
0
[ 2, 485, 9069, 7499, 27, 19863, 19, 833, 9427, 800, 3726, 3726, 31, 57, 21, 9069, 56, 24905, 160, 65, 2861, 19, 21, 4492, 13, 5, 124, 4602, 16, 845, 40, 398, 518, 27, 14, 2861, 6, 9, 31, 22, 43, 101, 20, 535, 48, 9069, 7499, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Batch script to copy newest file === I need to copy the newest file in a directory to a new location. So far I've found resources on the [forfiles][] command, a [date-related question][1] here, and another [related question][2]. I'm just having a bit of trouble putting the pieces together! How do I copy the newest file in that directory to a new place? [forfiles]: http://www.ss64.com/nt/forfiles.html [1]: http://stackoverflow.com/questions/51837/open-one-of-a-series-of-files-using-a-batch-file [2]: http://stackoverflow.com/questions/50902/how-do-i-delete-old-files-from-a-directory-while-keeping-the-most-recent-ones-o
0
[ 2, 13064, 3884, 20, 4344, 17175, 3893, 800, 3726, 3726, 31, 376, 20, 4344, 14, 17175, 3893, 19, 21, 16755, 20, 21, 78, 1474, 9, 86, 463, 31, 22, 195, 216, 2566, 27, 14, 636, 1106, 16877, 18, 500, 2558, 500, 1202, 15, 21, 636, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Yield In VB.NET === C# has the keyword called [yield][1]. VB.NET lacks this keyword. I am curious how some of the VB programmers have gotten around the lack of this keyword. Do you implement your own iterator class? Or do you try and code to avoid the need of an iterator? The [yield][1] keyword does force the compiler to do some coding behind the scenes. http://blogs.msdn.com/oldnewthing/archive/2008/08/12/8849519.aspx is a good example of that. [1]: http://msdn.microsoft.com/en-us/library/9k7k7cf0(VS.80).aspx
0
[ 2, 11537, 19, 13, 20468, 9, 2328, 800, 3726, 3726, 272, 5910, 63, 14, 1246, 9587, 227, 636, 93, 8487, 43, 500, 2558, 165, 500, 9, 13, 20468, 9, 2328, 1792, 18, 48, 1246, 9587, 9, 31, 589, 7686, 184, 109, 16, 14, 13, 20468, 179...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 open a google chrome control in C# === I know there is a way to add a IE control, how do you add a chrome control...? Is it even possible right now?
0
[ 2, 184, 92, 31, 368, 21, 8144, 13, 12985, 569, 19, 272, 5910, 800, 3726, 3726, 31, 143, 80, 25, 21, 161, 20, 3547, 21, 13, 660, 569, 15, 184, 107, 42, 3547, 21, 13, 12985, 569, 9, 9, 9, 60, 25, 32, 166, 938, 193, 130, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to get the underlying value of an enum === I have the following enum declared: public enum TransactionTypeCode { Shipment = "S", Receipt = "R" } How do I get the value 'S' from a TransactionTypeCode.Shipment or 'R' from TransactionTypeCode.Receipt ? Simply doing TransactionTypeCode.ToString() gives a string of the Enum name "Shipment" or "Receipt" so it doesn't cut the mustard.
0
[ 2, 184, 20, 164, 14, 10974, 1923, 16, 40, 1957, 723, 800, 3726, 3726, 31, 57, 14, 249, 1957, 723, 2482, 45, 317, 1957, 723, 12799, 4474, 9375, 13, 1, 17666, 800, 13, 7, 18, 7, 15, 20069, 800, 13, 7, 139, 7, 13, 1, 184, 107, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Physical Address in JAVA === How do I get the physical addresses of my machine in Java.
0
[ 2, 1825, 3218, 19, 8247, 800, 3726, 3726, 184, 107, 31, 164, 14, 1825, 12636, 16, 51, 1940, 19, 8247, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 0, 0, 0...
How do I install PDT 2.0 in Eclipse Ganymede? === I've been trying to install PDT in Eclispe 3.4 for a few hours now and I'm not having any success. I'm probably just stupid, but I _hate_ Eclipse's plug-in and update manager... Anyway... personal note... moving on. I have a previous installation of the Eclipse for JEE developers (my main deal) distro and I just want to add the PDT to my install so I can also work on some of my websites in Eclipse. I've done my best to follow [the instructions](http://wiki.eclipse.org/PDT/Installation) at the PDT Wiki and I'm just not having any success. The specific message that it barks at me when I attempt to select the 'PDT Features' option in the PDT Update Site section of the available software dialog is thus: `Cannot complete the request. See the details. Cannot find a solution satisfying the following requirements Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.wst.web_ui.feature.feature.group/[3.0.1.v200807220139-7R0ELZE8Ks-y8HYiQrw5ftEC3UBF,3.0.1.v200807220139-7R0ELZE8Ks-y8HYiQrw5ftEC3UBF]].` Anyway, I nice, _well written_, _descriptive_ walkthrough on how to install this plug-in would __rock__. Thanks in advance!
0
[ 2, 184, 107, 31, 16146, 13, 9251, 38, 172, 9, 387, 19, 11652, 7890, 93, 4688, 62, 60, 800, 3726, 3726, 31, 22, 195, 74, 749, 20, 16146, 13, 9251, 38, 19, 6695, 3159, 1664, 203, 9, 300, 26, 21, 310, 974, 130, 17, 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 test a Date picker Functionality using Junit === i am new to android JUnit testing. i want to test the functionality(selecting date and changing a date) of a date picker.Can you please tell me how I can click the “Done” button on the newly opened date picker dialog box? If you can show me an example, I would grately appreciate it.
1
[ 2, 184, 20, 1289, 21, 1231, 2036, 106, 18548, 568, 7446, 242, 800, 3726, 3726, 31, 589, 78, 20, 13005, 7446, 242, 4431, 9, 31, 259, 20, 1289, 14, 18548, 5, 18, 16964, 68, 1231, 17, 4226, 21, 1231, 6, 16, 21, 1231, 2036, 106, 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...
mssql connection string === Hi I used the same connection string for obtaining direct connection. But it is not getting connected when used from java code. What could be the problem? jdbc:sqlserver://DEVSQL\mssql2008:1433
0
[ 2, 4235, 18, 22402, 2760, 3724, 800, 3726, 3726, 4148, 31, 147, 14, 205, 2760, 3724, 26, 12114, 1744, 2760, 9, 47, 32, 25, 52, 1017, 2587, 76, 147, 37, 8247, 1797, 9, 98, 110, 44, 14, 1448, 60, 487, 43, 7229, 45, 18, 22402, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
XmlCompiledTransform.Load throws a NullReferenceException intermittently === I have the following code snippet this.xslCompiledTransform = new XslCompiledTransform(); // initialize xsl transform using (Stream xsltStream = currentAssembly.GetManifestResourceStream(this.TransformationFile)) using (XmlReader schemaReader = XmlReader.Create(xsltStream)) { XsltSettings settings = new XsltSettings() { EnableScript = true }; this.xslCompiledTransform.Load(schemaReader, settings, null); } It throws NullReferenceExcecption sometime and sometime it works on the same xslt file. Could you please tell what is wrong with the above code? Any help will be appreciated. Below is the stack trace Object reference not set to an instance of an object. Stack Trace: at System.Xml.Xsl.IlGen.XmlILVisitor.VisitFor(QilIterator ndFor) at System.Xml.Xsl.IlGen.XmlILVisitor.Visit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd, Type itemStorageType, Boolean isCached) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisitEnsureStack(QilNode nd, Type itemStorageType, Boolean isCached) at System.Xml.Xsl.IlGen.XmlILVisitor.VisitXPathNodeValue(QilUnary ndVal) at System.Xml.Xsl.IlGen.XmlILVisitor.Visit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd, Type itemStorageType, Boolean isCached) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisitEnsureStack(QilNode nd, Type itemStorageType, Boolean isCached) at System.Xml.Xsl.IlGen.XmlILVisitor.VisitXsltInvokeEarlyBound(QilInvokeEarlyBound ndInvoke) at System.Xml.Xsl.IlGen.XmlILVisitor.Visit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd, Type itemStorageType, Boolean isCached) at System.Xml.Xsl.IlGen.XmlILVisitor.VisitTextCtor(QilUnary ndText, Boolean disableOutputEscaping) at System.Xml.Xsl.IlGen.XmlILVisitor.Visit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.VisitLoop(QilLoop ndLoop) at System.Xml.Xsl.IlGen.XmlILVisitor.Visit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd, Type itemStorageType, Boolean isCached) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.VisitElementCtor(QilBinary ndElem) at System.Xml.Xsl.IlGen.XmlILVisitor.Visit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd, Type itemStorageType, Boolean isCached) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.VisitElementCtor(QilBinary ndElem) at System.Xml.Xsl.IlGen.XmlILVisitor.Visit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd, Type itemStorageType, Boolean isCached) at System.Xml.Xsl.IlGen.XmlILVisitor.VisitSequence(QilList ndSeq) at System.Xml.Xsl.IlGen.XmlILVisitor.Visit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd, Type itemStorageType, Boolean isCached) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.VisitElementCtor(QilBinary ndElem) at System.Xml.Xsl.IlGen.XmlILVisitor.Visit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd, Type itemStorageType, Boolean isCached) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.VisitConditional(QilTernary ndCond) at System.Xml.Xsl.IlGen.XmlILVisitor.Visit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd, Type itemStorageType, Boolean isCached) at System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisit(QilNode nd) at System.Xml.Xsl.IlGen.XmlILVisitor.Function(QilFunction ndFunc) at System.Xml.Xsl.IlGen.XmlILVisitor.Visit(QilExpression qil, GenerateHelper helper, MethodInfo methRoot) at System.Xml.Xsl.XmlILGenerator.Generate(QilExpression query, TypeBuilder typeBldr) at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
0
[ 2, 23504, 11103, 49, 1294, 7028, 4190, 9, 8294, 13566, 21, 16203, 28018, 10066, 872, 19667, 102, 800, 3726, 3726, 31, 57, 14, 249, 1797, 13, 29061, 48, 9, 396, 18, 255, 11103, 49, 1294, 7028, 4190, 800, 78, 993, 18, 255, 11103, 49...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
DragandDrop DataGrid row in AS3 (not Flex) === How can i drag selected **row** in Datagrid and drop it anywhere on stage? Thanx for answers...
0
[ 2, 5501, 290, 12361, 1054, 16375, 3131, 19, 28, 240, 13, 5, 1270, 14409, 6, 800, 3726, 3726, 184, 92, 31, 5501, 1704, 13, 1409, 5417, 1409, 19, 1054, 16375, 17, 2804, 32, 4922, 27, 876, 60, 119, 396, 26, 6709, 9, 9, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
accesing a https site using firefox addon === I am using a self signed ssl certificate to set up a https site and using the request package to access the contents on this site. However the program seems to get stuck and it is not printing the contents of the site. Is there any way to overcome this issue.
0
[ 2, 7602, 160, 68, 21, 7775, 18, 689, 568, 535, 18219, 3547, 218, 800, 3726, 3726, 31, 589, 568, 21, 1119, 908, 13, 18, 18, 255, 6259, 20, 309, 71, 21, 7775, 18, 689, 17, 568, 14, 3772, 6030, 20, 1381, 14, 8478, 27, 48, 689, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Date format from Mysql SELECT query === My query is this... SELECT a.ID, a.time, a.quote, a.quantity, a.media, a.print, a.pack FROM quotes a It returns my dates like this... 1331865096 or 1331891838 etc How do I make the results come back as March 2, 2012 or 05/04/2012 or something meaningful?
0
[ 2, 1231, 2595, 37, 51, 18, 22402, 5407, 25597, 800, 3726, 3726, 51, 25597, 25, 48, 9, 9, 9, 5407, 21, 9, 1340, 15, 21, 9, 891, 15, 21, 9, 8970, 591, 15, 21, 9, 18405, 38, 856, 15, 21, 9, 8260, 15, 21, 9, 10299, 15, 21, 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...
NodeJS is halting until Enter key is pressed in console === I'm wondering if this is intentional behaviour, as I am currently developing a multi-room chat serverin NodeJS and am finding that when a new user enters a room, sometimes the server will simply halt until I press the enter key in the console where I typed `node server.js`. I find this quite puzzling, as I have not written anything that involves user input in the console window. Does anyone know if this is meant to indicate something (i.e. am I breaking from an infinite or somehow recovering from something?). I can't seem to find any information about it, however it happens repeatedly. When I press Enter, the script will suddenly that running again, reacting to all of the socket messages it received but failed to respond to prior to hitting Enter. Very strange...
0
[ 2, 15421, 728, 18, 25, 7278, 68, 163, 2830, 1246, 25, 2931, 19, 8650, 800, 3726, 3726, 31, 22, 79, 5712, 100, 48, 25, 5140, 192, 7727, 15, 28, 31, 589, 871, 3561, 21, 1889, 8, 4447, 6615, 8128, 108, 15421, 728, 18, 17, 589, 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...
php form updating mysql === I am trying to update a mysql database with new information from an edit form I created. I cant put my finger on whats wrong. The code is popping a mysql error. Any ideas? <?php // connect to datebase require "episodelist.db.php"; // real escape all strings $season_num = mysql_real_escape_string($_POST['season_num']); $eps_num = mysql_real_escape_string($_POST['eps_num']); $temp_eps_num = mysql_real_escape_string($_POST['temp_eps_num']); $title = mysql_real_escape_string($_POST['title']); $inspired = mysql_real_escape_string($_POST['inspired']); $descrip = mysql_real_escape_string($_POST['descrip']); // update data in mysql database $sql="UPDATE $season SET season_num='$season_num', eps_num='$eps_num', temp_eps_num='$temp_eps_num', title='$title', inspired='$inspired', descrip='$descrip' WHERE id='$id'"; $result=mysql_query($sql); // if successfully updated. if($result){ echo "Successful"; echo "<BR>";$result=mysql_query($sql); echo "<a href='../episodelist_superadmin.html'>View result</a>"; } else { echo "Whoops: " . mysql_error(); ; } mysql_close(); ?>
0
[ 2, 13, 26120, 505, 71, 43, 1880, 51, 18, 22402, 800, 3726, 3726, 31, 589, 749, 20, 11100, 21, 51, 18, 22402, 6018, 29, 78, 676, 37, 40, 9392, 505, 31, 679, 9, 31, 2973, 442, 51, 2363, 27, 98, 18, 1389, 9, 14, 1797, 25, 24157...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cocoa replacing XMLElements === If I have the following example code: NSXMLDocument* doc = [[NSXMLDocument alloc] initWithContentsOfURL: [NSURL fileURLWithPath:@"file2.xml"] options:0 error:NULL]; NSXMLElement* root = [doc rootElement]; NSArray* objectElements = [root nodesForXPath:@"//object" error:nil]; NSLog (@"doc - %@", doc); NSXMLElement *c1 = [objectElements objectAtIndex:0]; NSLog (@"c1 --> %@",[c1 stringValue]); //creating new element NSXMLElement *c2 = [NSXMLElement elementWithName:@"value" stringValue:@"object new node"]; [c1 replaceChildAtIndex:0 withNode:c2]; NSLog (@"New doc - %@", doc); I am trying to get an XML element and change its value to another (c2). The problem is that with the new node replacing, I am getting the element name as well inserted into the XML Document. So, if I have <element>old value</element>, I am now getting: <element><newElement>new value</newElement></element> How can I program the code so that <newElement></newElement> do not get displayed? Thanks
0
[ 2, 24507, 5496, 23504, 27567, 18, 800, 3726, 3726, 100, 31, 57, 14, 249, 823, 1797, 45, 13, 2172, 396, 8184, 28132, 2483, 9765, 800, 636, 2558, 2172, 396, 8184, 28132, 65, 2499, 500, 19, 242, 1410, 25424, 656, 8822, 255, 45, 636, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does IE6 Support AES 256 bit encryption? === Will IE6 negotiate a 256 bit AES SSL connection if the server is capable?
0
[ 2, 630, 13, 660, 379, 555, 21, 160, 13, 16910, 1142, 24420, 60, 800, 3726, 3726, 129, 13, 660, 379, 15172, 21, 13, 16910, 1142, 21, 160, 13, 18, 18, 255, 2760, 100, 14, 8128, 25, 3868, 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, 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...
Good example of use of AppDomain === I keep getting asked about AppDomains in interviews, and [I know the basics][1]: <ul><li>they are an isolation level within an application (making them different from applications)</li> <li>they can have threads (making htem different from threads)</li> <li>exceptions in one appdomain do not affect another</li> <li>appdomains cannot access each other's memory</li> <li>each appdomain can have different security</li></ul> I still don't get what makes them necessary. I'm looking for a reasonable concrete circumstance when you would use one. [1]: http://en.wikipedia.org/wiki/Appdomain
0
[ 2, 254, 823, 16, 275, 16, 4865, 537, 6232, 800, 3726, 3726, 31, 643, 1017, 411, 88, 4865, 537, 6232, 18, 19, 7450, 15, 17, 636, 49, 143, 14, 2125, 18, 500, 2558, 165, 500, 45, 13, 1, 1287, 1, 1210, 1, 2077, 50, 40, 13300, 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...
Regexes and multiple multi-character delimeters === Suppose you have the following string: white sand, tall waves, warm sun It's easy to write a regular expression that will match the delimiters, which the Java String.split() method can use to give you an array containing the strings "white sand", "tall waves" and "warm sun": \s*,\s* Now say you have this string: white sand and tall waves and warm sun Again, the regex to split them is easy (ensuring you don't get the "and" inside the word "sand"): \s+and\s+ Now, consider this string: white sand, tall waves and warm sun Can a regex be written that will match the delimiters correctly, allowing you to split the string as in the previous two cases? Alternatively, can a regex be written that will match the terms themselves and omit the delimiters? (Any amount of white space on either side of a comma or the word "and" should be considered part of the delimiter.)
0
[ 2, 7953, 1706, 160, 17, 1886, 1889, 8, 24589, 1506, 49, 7307, 18, 800, 3726, 3726, 5787, 42, 57, 14, 249, 3724, 45, 359, 1965, 15, 2263, 5097, 15, 2059, 939, 32, 22, 18, 2010, 20, 2757, 21, 1290, 1803, 30, 129, 730, 14, 121, 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...
C++ API for returning sequences in a generic way === If I am writing a library and I have a function that needs to return a sequence of values, I could do something like: std::vector<int> get_sequence(); However, this requires the library user to use the std::vector<> container rather than allowing them to use whatever container they want to use. In addition, it can add an extra copy of the returned array (depending on whether the compiler could optimize this or not) that might have a negative impact on performance. You could theoretically enable the use of arbitrary containers (and avoid the unnecessary extra copying) by making a templated function that takes a start and an end iter: template<class T_iter> void get_sequence(T_iter begin, T_iter end); The function would then store the sequence values in the range given by the iterators. But the problem with this is that it requires you to know the size of the sequence so you have enough elements between `begin` and `end` to store all of the values in the sequence. I thought about an interface such as: template<T_insertIter> get_sequence(T_insertIter inserter); which requires that the T_insertIter be an insert iterator (e.g. created with `std::back_inserter(my_vector)`), but this seems way too easy to misuse since the compiler would happily accept a non-insert iterator but would behave incorrectly at run-time. So is there a best practice for designing generic interfaces that return sequences of arbitrary length?
0
[ 2, 272, 20512, 21, 2159, 26, 2485, 11173, 19, 21, 12733, 161, 800, 3726, 3726, 100, 31, 589, 1174, 21, 1248, 17, 31, 57, 21, 1990, 30, 2274, 20, 788, 21, 4030, 16, 4070, 15, 31, 110, 107, 301, 101, 45, 354, 43, 45, 45, 28033, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Automatically select all text on focus in WinForms TextBox === When a C# WinForms text box receives focus, I want to select all the text in the textbox. To see what I mean, click in your web browser's address bar. See how all text was selected? I want to do that. (Sounds like an easy question, but realize calling .SelectAll() during the .Enter or .GotFocus events won't work because if the user clicked the textbox, the caret will be placed where he clicked, thus deselecting all text.)
0
[ 2, 7499, 5407, 65, 1854, 27, 1776, 19, 628, 4190, 18, 1854, 5309, 800, 3726, 3726, 76, 21, 272, 5910, 628, 4190, 18, 1854, 1649, 8359, 1776, 15, 31, 259, 20, 5407, 65, 14, 1854, 19, 14, 1854, 5309, 9, 20, 196, 98, 31, 884, 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...
Crystal Reports and LINQ === Has anyone figured out how to use Crystal Reports with Linq to SQL?
0
[ 2, 4282, 2813, 17, 6294, 1251, 800, 3726, 3726, 63, 1276, 5700, 70, 184, 20, 275, 4282, 2813, 29, 6294, 1251, 20, 4444, 255, 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, 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...
Rails SSL Requirement plugin -- shouldn't it check to see if you're in production mode before redirecting to https? === [Take a look at the ssl_requirement plugin.][1] Shouldn't it check to see if you're in production mode? We're seeing a redirect to https in development mode, which seems odd. Or is that the normal behavior for the plugin? I thought it behaved differently in the past. [1]: http://github.com/rails/ssl_requirement/tree/master/lib/ssl_requirement.rb
0
[ 2, 2240, 18, 13, 18, 18, 255, 8981, 10922, 108, 13, 8, 8, 5714, 22, 38, 32, 2631, 20, 196, 100, 42, 22, 99, 19, 637, 3740, 115, 302, 14706, 68, 20, 7775, 18, 60, 800, 3726, 3726, 636, 4386, 21, 361, 35, 14, 13, 18, 18, 255...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Given this XML, is there an xpath that will give me the 'test' and 'name' values? === I need to get the value of the 'test' attribute in the xsl:when tag, and the 'name' attribute in the xsl:call-template tag. This xpath gets me pretty close: ..../xsl:template/xsl:choose/xsl:when But that just returns the 'when' elements, not the exact attribute values I need. Here is a snippet of my XML: <xsl:template match="field"> <xsl:choose> <xsl:when test="@name='First Name'"> <xsl:call-template name="handleColumn_1" /> </xsl:when> </xsl:choose>
0
[ 2, 504, 48, 23504, 15, 25, 80, 40, 993, 8353, 30, 129, 590, 55, 14, 13, 22, 10543, 22, 17, 13, 22, 7259, 22, 4070, 60, 800, 3726, 3726, 31, 376, 20, 164, 14, 1923, 16, 14, 13, 22, 10543, 22, 35, 14755, 19, 14, 993, 18, 255...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get the ROWID from a Progress database === I have a Progress database that I'm performing an ETL from. One of the tables that I'm reading from does not have a unique key on it, so I need to access the ROWID to be able to uniquely identify the row. What is the syntax for accessing the ROWID in Progress? I understand there are problems with using ROWID for row identification, but it's all I have right now.
0
[ 2, 184, 20, 164, 14, 3131, 1340, 37, 21, 3455, 6018, 800, 3726, 3726, 31, 57, 21, 3455, 6018, 30, 31, 22, 79, 2955, 40, 2133, 255, 37, 9, 53, 16, 14, 7484, 30, 31, 22, 79, 1876, 37, 630, 52, 57, 21, 2619, 1246, 27, 32, 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...
Are there any free java/flash image editor plug-in/applets that i can include in my site? === I am currently re-developing an e-commerce back end system and I was wondering if anyone here had come accross a free applet/plug-in/flash file which could allow our users to upload an image and offer some basic editing tools, i.e. crop, rotate, resize? We currently have a PHP based image resizing tool using the GD library that simply reduces the image down to the correct dimensions but I was hoping we could add in some Flickr style functionality to spruce up their images a bit before placing them on the site. I'm not too fussed what language it is in or how it is implemented. The important things are that it is free (or v. cheap) and that it is ok for commercial use.
0
[ 2, 50, 80, 186, 551, 8247, 118, 26694, 1961, 1835, 10922, 8, 108, 118, 24212, 38, 18, 30, 31, 92, 468, 19, 51, 689, 60, 800, 3726, 3726, 31, 589, 871, 302, 8, 26051, 68, 40, 13, 62, 8, 26470, 97, 241, 329, 17, 31, 23, 5712, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Binding a null value to a property of a web user control === Working on a somewhat complex page for configuring customers at work. The setup is that there's a main page, which contains various "panels" for various groups of settings. In one case, there's an email address field on the main table and an "export" configuration that controls how emails are sent out. I created amain panel that selects the company, and binds to a FormView. The FormView contains a Web User Control that handles the display/configuration of the export details. The Web User Control Contains a property to define which Config it should be handling, and it gets the value from the FormView using Bind(). Basically the control is used like this: <syn:ExportInfo ID="eiConfigDetails" ExportInfoID='<%# Bind("ExportInfoID" ) %>' runat="server" /> The property being bound is declared like this in CodeBehind: public int ExportInfoID { get { return Convert.ToInt32(hfID.Value); } set { try { hfID.Value = value.ToString(); } catch(Exception) { hfID.Value="-1"; } } } Whenever the ExportInfoID is null I get a null reference exception, but the kicker is that it happens BEFORE it actually tries to set the property (or it would be caught in this version.) Anyone know what's going on or, more importantly, how to fix it?
0
[ 2, 8728, 21, 16203, 1923, 20, 21, 1354, 16, 21, 2741, 4155, 569, 800, 3726, 3726, 638, 27, 21, 4131, 1502, 2478, 26, 1065, 13549, 68, 5279, 35, 170, 9, 14, 18161, 25, 30, 80, 22, 18, 21, 407, 2478, 15, 56, 1588, 617, 13, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Formatting of if Statements === **This isn't a holy war, this isn't a question of "which is better".** What are the pros of using the following format for single statement if blocks. if (x) print "x is true"; if(x) print "x is true"; As opposed to if (x) { print "x is true"; } if(x) { print "x is true"; } If you format your single statement ifs like this or know a programmer that does, what led you to adopt this style in the first place?
0
[ 2, 2595, 1203, 16, 100, 9015, 800, 3726, 3726, 13, 1409, 1565, 2532, 22, 38, 21, 2496, 176, 15, 48, 2532, 22, 38, 21, 1301, 16, 13, 7, 2140, 25, 574, 7, 9, 1409, 98, 50, 14, 895, 18, 16, 568, 14, 249, 2595, 26, 345, 3331, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 libraries can I use to build a GUI with Erlang? === Which libraries can I use to build a GUI for a Erlang application? Please one option per answer.
0
[ 2, 98, 8649, 92, 31, 275, 20, 1895, 21, 9457, 29, 13, 106, 9949, 60, 800, 3726, 3726, 56, 8649, 92, 31, 275, 20, 1895, 21, 9457, 26, 21, 13, 106, 9949, 3010, 60, 2247, 53, 4255, 416, 1623, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Guides on writing documentation === I'm hoping to release a web app soon and a key part of that is going to be the documentation that explains how to use it. While I know of many guides on how to learn various languages I know of none that explain how to explain your application. Can you recommend any?
0
[ 2, 14838, 27, 1174, 13945, 800, 3726, 3726, 31, 22, 79, 3935, 20, 830, 21, 2741, 4865, 651, 17, 21, 1246, 141, 16, 30, 25, 228, 20, 44, 14, 13945, 30, 7346, 184, 20, 275, 32, 9, 133, 31, 143, 16, 151, 14838, 27, 184, 20, 248...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 load a python module into a fresh interactive shell in Komodo? === When using PyWin I can easily load a python file into a fresh interactive shell and I find this quite handy for prototyping and other exploratory tasks. I would like to use Komodo as my python editor, but I haven't found a replacement for PyWin's ability to restart the shell and reload the current module. How can I do this in Komodo? It is also very important to me that when I reload I get a fresh shell. I would prefer it if my previous interactions are in the shell history, but it is more important to me that the memory be isolated from the previous versions and attempts.
0
[ 2, 184, 20, 6305, 21, 20059, 12613, 77, 21, 3180, 9194, 3593, 19, 8028, 8850, 60, 800, 3726, 3726, 76, 568, 7103, 4181, 31, 92, 2351, 6305, 21, 20059, 3893, 77, 21, 3180, 9194, 3593, 17, 31, 477, 48, 1450, 20277, 26, 9347, 1084, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
NHibernate, auditing and computed column values === How is possible to set some special column values when update/insert entities via NHibernate without extending domain classes with special properties? E.g. every table contains audit columns like CreatedBy, CreatedDate, UpdatedBy, UpdatedDate. But I dont want to add these poperties to the domain classes. I want to keep domain modedl Percistence Ignorance factor as high as possible.
0
[ 2, 12109, 15191, 8820, 15, 13471, 68, 17, 26331, 4698, 4070, 800, 3726, 3726, 184, 25, 938, 20, 309, 109, 621, 4698, 4070, 76, 11100, 118, 108, 18, 6767, 12549, 1197, 12109, 15191, 8820, 366, 8176, 4603, 2684, 29, 621, 3704, 60, 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...
What are all the valid self-closing tags in XHTML (as implemented by the major browsers)? === What are all the valid self-closing tags (e.g. &lt;br/&gt;) in XHTML (as implemented by the major browsers)?
0
[ 2, 98, 50, 65, 14, 7394, 1119, 8, 13023, 18, 68, 3383, 18, 19, 993, 15895, 13, 5, 472, 6807, 34, 14, 394, 16495, 18, 6, 60, 800, 3726, 3726, 98, 50, 65, 14, 7394, 1119, 8, 13023, 18, 68, 3383, 18, 13, 5, 62, 9, 263, 9, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Custom URL Extensions/Routing === I have a need to use extensionless URLs. I do not have access to IIS (6.0) so I cannot map requests to ASP.NET and handle with a HttpHandler/HttpModule. However, I can set a custom 404 page via web host control panel. My current plan is to perform necessary logic in the custom 404 page, but it "feels wrong". Are there any recommendations that I am missing?
0
[ 2, 5816, 287, 6362, 17529, 118, 8821, 1203, 800, 3726, 3726, 31, 57, 21, 376, 20, 275, 3896, 923, 13, 911, 7532, 9, 31, 107, 52, 57, 1381, 20, 595, 18, 13, 5, 379, 9, 387, 6, 86, 31, 1967, 2942, 12279, 20, 28, 306, 9, 2328, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are the advantages and disadvantages of DTO's from a website performance perspective? === What are the advantages and disadvantages of DTO's from a website performance perspective? (I'm talking in the case where the database is accessed on a different app server to the webserver - and the webserver could access the database directly.)
0
[ 2, 98, 50, 14, 14683, 17, 13387, 18, 16, 13, 43, 262, 22, 18, 37, 21, 2271, 956, 6531, 60, 800, 3726, 3726, 98, 50, 14, 14683, 17, 13387, 18, 16, 13, 43, 262, 22, 18, 37, 21, 2271, 956, 6531, 60, 13, 5, 49, 22, 79, 1582, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 estimate the TCO of open source implementations === I mean, this is sakai (*), the open source project of a learning management system. But, really I'm clueless trying to estimate the hidden costs in one implementation project (on the technology side, not the pedagogy-stuff) in a small-medium scale institution. -Deployment (1 engineer two or three months, with experience in JEE) -Customisation (1 engineer, 1 designer two or three months also) -Support (1 guy) -One server reasonably good with 4, 8 or 16 GB in RAM. It will host the application server, the database server, and da da! ? -??? can somebody experienced, give me advice in how to estimate the TCO in open source implementations like this? In fact, it could be Moodle, and in that case I would be lost too! Yep, is not really a question of programming, but I think that this is one proper place to ask. Thanks! Sakai http://sakaiproject.org/portal
0
[ 2, 184, 20, 10243, 14, 13, 38, 716, 16, 368, 1267, 6123, 18, 800, 3726, 3726, 31, 884, 15, 48, 25, 15671, 49, 13, 5, 2483, 6, 15, 14, 368, 1267, 669, 16, 21, 2477, 1097, 329, 9, 47, 15, 510, 31, 22, 79, 8906, 923, 749, 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...
C# 'generic' type problem === C# question (.net 3.5). I have a class, ImageData, that has a field ushort[,] pixels. I am dealing with proprietary image formats. The ImageData class takes a file location in the constructor, then switches on file extension to determine how to decode. In several of the image files, there is a "bit depth" field in the header. After I decode the header I read the pixel values into the "pixels" array. So far I have not had more than 16bpp, so I'm okay. But what if I have 32bpp? What I want to do is have the type of pixels be determined at runtime. I want to do this after I read the bit depth out of the header and before I copy the pixel data into memory. Any ideas?
0
[ 2, 272, 5910, 13, 22, 17083, 596, 22, 1001, 1448, 800, 3726, 3726, 272, 5910, 1301, 13, 5, 9, 2328, 203, 9, 264, 6, 9, 31, 57, 21, 718, 15, 1961, 18768, 15, 30, 63, 21, 575, 287, 10849, 2558, 15, 500, 18146, 18, 9, 31, 589, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 escape a string inside javascript inside an onClick handler? === Maybe I'm just thinking about this too hard, but I'm having a problem figuring out what escaping to use on a string in some javascript inside a link's onClick handler. Example: <a href="#" onclick="SelectSurveyItem('<%itemid%>', '<%itemname%>'); return false;">Select</a> The `<%itemid%>` and `<%itemname%>` are where template substitution occurs. My problem is that the item name can contain any character, including single and double quotes. Currently, if it contains single quotes it breaks the javascript. My first thought was to use the template language's function to javascript-escape the item name, which just escapes the quotes. That will not fix the case of the string containing double quotes which breaks the HTML of the link. How is this problem normally addressed? Do I need to HTML-escape the entire onClick handler? If so, that would look really strange since the template language's escape function for that would also HTMLify the parentheses, quotes, and semicolons... Your input is much appreciated.
0
[ 2, 184, 107, 31, 2220, 21, 3724, 572, 8247, 8741, 572, 40, 27, 150, 10129, 24641, 60, 800, 3726, 3726, 913, 31, 22, 79, 114, 1440, 88, 48, 266, 552, 15, 47, 31, 22, 79, 452, 21, 1448, 25379, 70, 98, 14700, 20, 275, 27, 21, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the best tool to track a process's memory usage over a long period of time === What is the best available tool to monitor the memory usage of my C#/.Net windows service over a long period of time. As far as I know, tools like perfmon can monitor the memory usage over a short period of time, but not graphically over a long period of time. I need trend data over days, not seconds.
0
[ 2, 98, 22, 18, 14, 246, 5607, 20, 792, 21, 953, 22, 18, 1912, 7514, 84, 21, 175, 620, 16, 85, 800, 3726, 3726, 98, 25, 14, 246, 904, 5607, 20, 7626, 14, 1912, 7514, 16, 51, 272, 5910, 118, 9, 2328, 1936, 365, 84, 21, 175, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Login failed for user 'username' - System.Data.SqlClient.SqlException with LINQ in external project / class library === This might seem obvious but I've had this error when trying to use LINQ to SQL with my business logic in a separate class library project. I've created the DBML in a class library, with all my business logic and custom controls in this project. I'd referenced the class library from my web project and attempted to use it directly from the web project. The error indicated the login failed for my user name. My user name and password were correct, but the fix was to copy my connection string to the correct location. I've learned the issue from another site and thought I would make a note here. Error: Login failed for user 'username' System.Data.SqlClient.SqlException
0
[ 2, 6738, 108, 1702, 26, 4155, 13, 22, 16704, 7259, 22, 13, 8, 329, 9, 18768, 9, 18, 22402, 150, 18513, 38, 9, 18, 22402, 10066, 872, 29, 6294, 1251, 19, 4886, 669, 13, 118, 718, 1248, 800, 3726, 3726, 48, 530, 2260, 4674, 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...
Is there a control for a .Net WinForm app that will display HTML === I have a .net (3.5) WinForms application and want to display some html on one of the forms. Is there a control that I can use for this?
0
[ 2, 25, 80, 21, 569, 26, 21, 13, 9, 2328, 628, 4190, 4865, 30, 129, 3042, 13, 15895, 800, 3726, 3726, 31, 57, 21, 13, 9, 2328, 13, 5, 240, 9, 264, 6, 628, 4190, 18, 3010, 17, 259, 20, 3042, 109, 13, 15895, 27, 53, 16, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...