unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
How to customize sql server agent jobs === I need to be able to schedule a job on the 10th of each month and have it run for a set number of days or until a specified date. Is there any way to customize sql server agent jobs using some sort of API or something? Thanks.
0
[ 2, 184, 20, 5816, 2952, 4444, 255, 8128, 2267, 4844, 800, 3726, 3726, 31, 376, 20, 44, 777, 20, 4345, 21, 1205, 27, 14, 332, 96, 16, 206, 1617, 17, 57, 32, 485, 26, 21, 309, 234, 16, 509, 54, 163, 21, 9931, 1231, 9, 25, 80, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using WPF in IIS7 or a windows service? === We currently do a fair amount or dynamic image generation of png's in ASP.NET using the GDI+ classes in .Net with a no major issues. I had hoped to take advantage of many of the new drawing, FormattedText, RenderTargetBitmap, optimization algorithms, etc. in WPF in our ASP.NET application, but apparently this is not supported and came to a grinding halt with .Net 3.5sp1 ([WPF running under IIS no more][1]). We we are running Server 2008 x64. I understand that "technically" GDI+ wasn't supported in ASP.NET applications but it does work and there are even commercial offerings available that are built on it. So my question is whether anyone is successfully using WPF in an ASP.NET or Windows Service application? Does anyone have any suggested workarounds or alternatives? [1]: http://www.ktsc.com/blogs/ChristopherKeslin/?p=12
0
[ 2, 568, 619, 7721, 19, 595, 18, 465, 54, 21, 1936, 365, 60, 800, 3726, 3726, 95, 871, 107, 21, 1768, 2006, 54, 7782, 1961, 2782, 16, 351, 2723, 22, 18, 19, 28, 306, 9, 2328, 568, 14, 489, 1115, 2430, 2684, 19, 13, 9, 2328, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I customize django admin change pages to return to a specific URL on "save" === I would like to use the django contrib.admin pages to edit my models, but call individual change page from my own views, an then return there after user clicks "save". Ideally this should happen by appending the return URL to the admin page's url (as in "...?_return_url=<url>) Any hints?
0
[ 2, 184, 92, 31, 5816, 2952, 3857, 14541, 21, 43, 2160, 753, 4434, 20, 788, 20, 21, 1903, 287, 6362, 27, 13, 7, 19863, 7, 800, 3726, 3726, 31, 83, 101, 20, 275, 14, 3857, 14541, 1065, 38, 17980, 9, 1283, 2160, 4434, 20, 9392, 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...
Which version of C# (and .Net) should I begin with? === I'm trying to bring myself up to speed on C#, having never developed for it before. In a previous question I asked about good book review sites, and through that I found a very positive (beginner-oriented) review for "Essential C#" but it was for a previous edition. While I'm sure that it will still be a good book even if the quality dropped between versions, it raises an interesting question for me: When beginning a new language, is it best to start with the latest version (e.g. C# 3.0/.Net 3.5) or should I go back a version or two and try to learn what got added to the language afterward? The former seems better from the point of view of being up to date immediately, but the latter seems more pragmatic in that it's probably more likely a shop will be using a slightly older version of the language.
0
[ 2, 56, 615, 16, 272, 5910, 13, 5, 290, 13, 9, 2328, 6, 378, 31, 2348, 29, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 1499, 992, 71, 20, 1362, 27, 272, 5910, 15, 452, 243, 885, 26, 32, 115, 9, 19, 21, 1158, 1301, 31, 411, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Regex to find static (non final) variables === I am trying to do a search in my Eclipse (Java) workspace to find all instances of static variables that are not final. I tried various regex's but they do not result in any matches. Can someone suggest a regex that will match all lines containing 'static' and not containing 'final', and not ending in a '{' The last part about not ending with a '{' will eliminate static methods. -- Thanks Parag
0
[ 2, 7953, 1706, 20, 477, 12038, 13, 5, 3951, 426, 6, 12157, 800, 3726, 3726, 31, 589, 749, 20, 107, 21, 2122, 19, 51, 11652, 13, 5, 1004, 1385, 6, 170, 5582, 20, 477, 65, 13946, 16, 12038, 12157, 30, 50, 52, 426, 9, 31, 794, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
post_save signal on m2m field === I have a pretty generic Article model, with m2m relation to Tag model. I want to keep count of each tag usage, i think the best way would be to denormalise count field on Tag model and update it each time Article being saved. How can i accomplish this, or maybe there's a better way?
0
[ 2, 678, 1, 19863, 2800, 27, 307, 135, 79, 575, 800, 3726, 3726, 31, 57, 21, 1772, 12733, 2002, 1061, 15, 29, 307, 135, 79, 5827, 20, 3383, 1061, 9, 31, 259, 20, 643, 2468, 16, 206, 3383, 7514, 15, 31, 277, 14, 246, 161, 83, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
In PHP, how do you change the key of an array element? === I have an associative array in the form `key => value` where key is a numerical value, however it is not a sequential numerical value. The key is actually an ID number and the value is a count. This is fine for most instances, however I want a function that gets the human-readable name of the array and uses that for the key, without changing the value. I didn't see a function that does this, but I'm assuming I need to provide the old key and new key (both of which I have) and transform the array. Is there an efficient way of doing this?
0
[ 2, 19, 13, 26120, 15, 184, 107, 42, 753, 14, 1246, 16, 40, 7718, 4520, 60, 800, 3726, 3726, 31, 57, 40, 28, 18, 16325, 3366, 7718, 19, 14, 505, 13, 1, 4237, 800, 1, 1923, 1, 113, 1246, 25, 21, 16010, 1923, 15, 207, 32, 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...
Using change directory (cd) inside scripts - best practices === Do you think changing directories inside bash/perl scripts is acceptable? Or should one avoid doing this at all costs? What is the best practice for this issue?
0
[ 2, 568, 753, 16755, 13, 5, 6324, 6, 572, 17505, 13, 8, 246, 5242, 800, 3726, 3726, 107, 42, 277, 4226, 559, 1596, 572, 13158, 118, 1432, 255, 17505, 25, 12513, 60, 54, 378, 53, 2658, 845, 48, 35, 65, 4227, 60, 98, 25, 14, 246,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What open source project would your recommend developing for? === What open source projects would you recommend as a good places for a starting open source developer? Factors that I think would be important are some obvious ones like well written code and a community that is helpful to newbies. But it might be nice if the code base is such that I can start hacking some small problems without really understanding the details of how everything works? I'd prefer something that can be developed on Linux using C/C++/Java/Python/Scala.
0
[ 2, 98, 368, 1267, 669, 83, 154, 12360, 3561, 26, 60, 800, 3726, 3726, 98, 368, 1267, 2314, 83, 42, 12360, 28, 21, 254, 1489, 26, 21, 1422, 368, 1267, 10058, 60, 4776, 30, 31, 277, 83, 44, 681, 50, 109, 4674, 53, 18, 101, 134, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Download xml.gz file with HttpsURLConnection === I am trying to download an xml.gz file from a remote server with HttpsURLConnection in java, but I am getting an empty response. Here is a sample of my code: URL server = new URL("https://www.myurl.com/path/sample_file.xml.gz"); HttpsURLConnection connection = (HttpsURLConnection)server.openConnection(); connection.connect(); When I try to get an InputStream from the connection, it is empty. (If I try connection.getInputStream().read() I get -1) The file I am expecting is approximately 50MB. To test my sanity, I aslo tried entering the exact same url in my browser, and it did return the file I needed. Am I missing something? Do I have to set some sort of parameter in the connection? Any help/direction is much appreciated.
0
[ 2, 7121, 23504, 9, 263, 380, 3893, 29, 7775, 4082, 255, 25996, 872, 800, 3726, 3726, 31, 589, 749, 20, 7121, 40, 23504, 9, 263, 380, 3893, 37, 21, 5388, 8128, 29, 7775, 4082, 255, 25996, 872, 19, 8247, 15, 47, 31, 589, 1017, 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...
Finding CPAN dependancies when deploying a project. === Does anyone have any suggestions for a good approach to finding all the CPAN dependencies that might have arisen in a bespoke development project. As tends to be the case your local development environment rarely matches your live one and as you build more and more projects you tend to build up a local library of installed modules. These then lead to you not necessarily noticing that your latest project has a requirement on a non-core module. As there is generally a requirement to package the entire project up for deployment to another group (in our case our operations team), it is important to know what modules should be included in the package. In the past I have used [Devel::Modlist][1] which is reasonably good allowing you to go perl -d:Modlist script.pl To get a list of the required modules. Does anyone have any other insights into the problem. Thanks Peter [1]: http://search.cpan.org/dist/Devel-Modlist/
0
[ 2, 3007, 272, 3206, 12547, 210, 10807, 76, 17617, 68, 21, 669, 9, 800, 3726, 3726, 630, 1276, 57, 186, 18389, 26, 21, 254, 2141, 20, 3007, 65, 14, 272, 3206, 29411, 30, 530, 57, 13277, 103, 19, 21, 44, 3401, 8416, 522, 669, 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...
SharePoint List Subscriptions === If I have "Full Control" permission on a list, is there a way for me to see all the individuals who have an alert set for that list? Some people in my department are better at managing their own subscriptions than others, and this is a question I have received from several team leads. They want to be able to see and confirm who has alerts set up for a list.
0
[ 2, 1891, 3132, 968, 14213, 18, 800, 3726, 3726, 100, 31, 57, 13, 7, 13727, 569, 7, 5572, 27, 21, 968, 15, 25, 80, 21, 161, 26, 55, 20, 196, 65, 14, 1883, 72, 57, 40, 7863, 309, 26, 30, 968, 60, 109, 148, 19, 51, 604, 50, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I encrypt a querystring in asp.net? === I need to encrypt and decrypt a querystring in ASP.NET. The querystring might look something like this: > http://www.mysite.com/report.aspx?id=12345&year=2008 How do I go about encrypting the entire querystring so that it looks something like the following? > http://www.mysite.com/report.aspx?crypt=asldjfaf32as98df8a And then, of course, how to I decrypt it? What's the best encryption to use for something like this? TripleDES?
0
[ 2, 184, 92, 31, 1957, 11435, 21, 25597, 11130, 19, 28, 306, 9, 2328, 60, 800, 3726, 3726, 31, 376, 20, 1957, 11435, 17, 121, 11435, 21, 25597, 11130, 19, 28, 306, 9, 2328, 9, 14, 25597, 11130, 530, 361, 301, 101, 48, 45, 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...
An invalid '/' or '\' was found in the Path parameter for the MapPath method. === Like the title says, the error I get is the following: An invalid '/' or '\' was found in the Path parameter for the MapPath method. I'm using ASP classic and basically trying to access a folder on one of our servers. I Googled around and judging from what most people say, I should take off the \\ prefix from my server path. But when I do that, the code cannot find the server. The code I'm using is: Dim fileSystem Set fileSystem = Server.CreateObject("Scripting.FileSystemObject") fileSystem.GetFolder(Server.MapPath("\\servername")) So my question is, how can I use the FileSystemObject to access a servers' files and folders? Thank you.
0
[ 2, 40, 16671, 13, 22, 118, 22, 54, 13, 22, 1, 22, 23, 216, 19, 14, 2013, 18906, 26, 14, 2942, 8353, 2109, 9, 800, 3726, 3726, 101, 14, 581, 898, 15, 14, 7019, 31, 164, 25, 14, 249, 45, 40, 16671, 13, 22, 118, 22, 54, 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 will you evaluate a programmer in a company's annual evaluation? === There have been many discussions, in StackOverflow and outside, of how you can judge a good programmer in an interview. Make him write code, check for common mistakes, observe his coding style, so on and so forth. All good. But what is less discussed, and probably considered even less important, is how do you evaluate and judge a programmer in your organization after he or she has spent some time with you - say at annual appraisals? Obviously there will be a lot of evaluation on how good a team player he was, how well he communicated with others, how much effort he put in to meet the deadlines etc. (I am not condoning any of these practices but merely stating what happens). But how do you judge a programmer in your organization based on the actual work that he has done over the past 6 months or one year? What 'real' metrics you will use? Obviously we are past the times (hopefully) of using "number-of-lines-of-code" metrics. But what are the other factors that a team lead or manager or even his peers will evaluate to see how good a programmer he has been?
2
[ 2, 184, 129, 42, 13, 15599, 21, 17968, 19, 21, 237, 22, 18, 1479, 8670, 60, 800, 3726, 3726, 80, 57, 74, 151, 11139, 15, 19, 7566, 2549, 9990, 17, 719, 15, 16, 184, 42, 92, 1878, 21, 254, 17968, 19, 40, 2421, 9, 233, 61, 275...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 export the SQL statement from a DTS object? === I'm running SQL Server 2000 and I need to export the SQL Statement from all the DTS objects so that they can be parsed and put into a wiki documentation if needed. Is there a way to do that? maybe dumping each DTS object out into a text file with the object name as the file name with the name of the process and the date it was extracted as a file header. thanks.
0
[ 2, 184, 107, 31, 7487, 14, 4444, 255, 3331, 37, 21, 13, 43, 38, 18, 3095, 60, 800, 3726, 3726, 31, 22, 79, 946, 4444, 255, 8128, 824, 17, 31, 376, 20, 7487, 14, 4444, 255, 3331, 37, 65, 14, 13, 43, 38, 18, 3916, 86, 30, 59...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Programatically read the Documentation section of a WSDL in C# === i am using a WSDL file to create a the proxy class file, this service has a big Enumeration. the description for each enum value is in documentation section, how can i programatically read that section?
0
[ 2, 184, 20, 625, 721, 8438, 1302, 14, 13945, 1050, 16, 21, 619, 18, 8643, 19, 272, 5910, 800, 3726, 3726, 31, 589, 568, 21, 619, 18, 8643, 3893, 20, 1600, 21, 14, 27188, 718, 3893, 15, 48, 365, 63, 21, 580, 26940, 872, 9, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jQuery automcomplete in ASP.NET webforms? === Has anyone used jQuery to populate an autocomplete list on a textbox using ASP.NET webforms? If so, can anyone recommend a good method? From my reading so far, it seems like most people are using delimited lists rather than JSON to bring the items back. I'm open to any ideas that will get me up and running rather quickly.
0
[ 2, 487, 8190, 93, 3108, 79, 15990, 19, 28, 306, 9, 2328, 2741, 4190, 18, 60, 800, 3726, 3726, 63, 1276, 147, 487, 8190, 93, 20, 1675, 12383, 40, 3108, 15990, 968, 27, 21, 1854, 5309, 568, 28, 306, 9, 2328, 2741, 4190, 18, 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...
Windows Azure vs Amazon EC2 === I just watched the Windows Azure intro video and it left me feeling like it was a front end shell for hosted IIS instances. Can anyone who know more (possibily that was part of the beta) shed on why you would use this vs. EC2. it seemed easy enough but really didnt give specifics on how it works, why it works or why you would use this vs the traditional solutions out there.
0
[ 2, 1936, 25715, 4611, 8059, 6695, 135, 800, 3726, 3726, 31, 114, 1634, 14, 1936, 25715, 17386, 763, 17, 32, 225, 55, 1249, 101, 32, 23, 21, 431, 241, 3593, 26, 2812, 595, 18, 13946, 9, 92, 1276, 72, 143, 91, 13, 5, 12551, 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...
PHP w/ Zend Debugger on OS X 10.5 === I have OS X 10.5 set up with the precompiled versions of PHP 5 and Apache 2. I'm trying to set up the Zend Debugger, but with no luck. Here's what I did: - I downloaded `ZendDebugger-5.2.14-darwin8.6-uni.tar` - I created the directory `/Developer/Extras/PHP` and set the permissions to: - Permissions: `drwxrwxr-x` - Owner: `root:admin` - I copied `ZendDebugger.so` from the `5_2_x_comp` directory to `/Developer/Extras/PHP` - I updated `/etc/php.ini` file, adding the following lines: zend_extension=/Developer/Extras/PHP/ZendDebugger.so zend_debugger.expose_remotely=always zend_debugger.connector_port=10013 zend_debugger.allow_hosts=127.0.0.1 - I restarted Apache via the System Preferences "Sharing" panel When I run `phpinfo()` within a PHP file, I get no mention of the Zend Debugger. When I run `php -m` from the command line, it shows the Zend Debugger is loaded. Both state that they're running the same version of PHP, and loading the same INI file. Anyone have another suggestion for me to try?
0
[ 2, 13, 26120, 619, 118, 10526, 43, 121, 2345, 11356, 27, 13, 759, 993, 332, 9, 264, 800, 3726, 3726, 31, 57, 13, 759, 993, 332, 9, 264, 309, 71, 29, 14, 782, 11103, 49, 1294, 3281, 16, 13, 26120, 331, 17, 17140, 172, 9, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Making a custom Sin() function in Java === I have to create the sin function from scratch in my Comp Sci class, and I think I got it down. But it still has some problems. If I put in a value of .5PI or less it works. Otherwise it doesn't. Any help would be greatly appreciated. double i=1; double sinSoFar = 0; int term = 1; while(i >= .000001) { i = pow(-1, term + 1) * pow(sinOf, 2*term-1) / factorial(2*term-1); sinSoFar=sinSoFar + i; term++; }
0
[ 2, 544, 21, 5816, 3278, 5, 6, 1990, 19, 8247, 800, 3726, 3726, 31, 57, 20, 1600, 14, 3278, 1990, 37, 12395, 19, 51, 6479, 9569, 718, 15, 17, 31, 277, 31, 330, 32, 125, 9, 47, 32, 174, 63, 109, 1716, 9, 100, 31, 442, 19, 21...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you encourage someone to learn to use the debugger? === We are in college and I want get my projectmate to use the debugger as it will help improve his debugging speed. Despite offering to show him how to use it so that he won't have to learn it by himself, he refuses and to date still uses printlining to debug. I can understand why he refuses as he's probably afraid of the learning curve (Even though it's actually trivial. Besides computing students cannot be afraid to learn new things). I myself had resisted learning how to use a debugger for as long as I could for the very same reason. The moment I tried to use a debugger for a person project I found how useful it was to a programmer's productivity and have never looked back since. So how would you go about making someone virtually impervious to you to learn something for his own benefit? Or should I not try too hard to help people like him?
4
[ 2, 184, 107, 42, 8333, 737, 20, 2484, 20, 275, 14, 121, 2345, 11356, 60, 800, 3726, 3726, 95, 50, 19, 314, 17, 31, 259, 164, 51, 669, 5281, 20, 275, 14, 121, 2345, 11356, 28, 32, 129, 448, 3545, 33, 121, 16254, 2762, 1362, 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 the meta type="title" tag needed and what's the best format for the title tag? === I have seen some websites use the following tag: <meta type="title" content="Title of the page" /> Is it needed when you have a `<title>`? Also, what's the best formatting for a page title? Some ideas: - Page Description :: Company Name - Page Description - Company Name - Page Description <> Company Name - Company Name: Page Description - ... Does it matter to Google/Yahoo/etc? Do you include the company name or a general description of the site in the title on every page?
0
[ 2, 25, 14, 7618, 1001, 3726, 7, 22235, 7, 3383, 851, 17, 98, 22, 18, 14, 246, 2595, 26, 14, 581, 3383, 60, 800, 3726, 3726, 31, 57, 541, 109, 13931, 275, 14, 249, 3383, 45, 13, 1, 5909, 58, 1001, 3726, 7, 22235, 7, 2331, 372...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Oracle Scheduled Jobs === I've got a lot of similar oracle jobs I need to create, and I'd like to do it programatically. Where does the Oracle store the job library (schema/table)? (yes, I know I might be running with scissors)
0
[ 2, 15759, 3758, 4844, 800, 3726, 3726, 31, 22, 195, 330, 21, 865, 16, 835, 15759, 4844, 31, 376, 20, 1600, 15, 17, 31, 22, 43, 101, 20, 107, 32, 625, 721, 8438, 9, 113, 630, 14, 15759, 1718, 14, 1205, 1248, 13, 5, 7526, 540, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mandatory cloneable interface in Java === I'm having a small problem in Java. I have an interface called Modifiable. Objects implements this interface are Modifiable. I also have a ModifyCommand class (with the Command pattern) that receive two Modifiable objects (to swap them in a list further on - that's not my question, I designed that solution already). The ModifyCommand class starts by making clones of the Modifiable objects. Logically, I made my Modifiable interface extends Cloneable. The interface then defines a clone() method that its implementing classes must redefine. Then, in ModifyCommand, I can do : firstModifiableObject.clone(). My logic is that classes implementing Modifiable will have to redefine the clone method from Object, as they will be Cloneable (that's what I want to do). The thing is, when I define classes implements Modifiable and I want to override clone(), it won't let me, stating that the clone() method from the Object class hides the one from Modifiable. What should I do? I'm under the impression that "I'm doing it wrong"... Thanks, Guillaume.
0
[ 2, 12605, 13871, 579, 6573, 19, 8247, 800, 3726, 3726, 31, 22, 79, 452, 21, 284, 1448, 19, 8247, 9, 31, 57, 40, 6573, 227, 7226, 25372, 9, 3916, 8713, 18, 48, 6573, 50, 7226, 25372, 9, 31, 67, 57, 21, 17579, 16239, 718, 13, 5,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I maintain transparency in an image from a Http Handler when using Graphics.DrawImage? === I've got a series of GIFs that I need to crop on the fly, I'm using a HTTP Handler in C# so I can better encapsulate the code - provide caching for the result etc. Currently, when I draw the existing image to a new `Image` via the `Graphics` object all the transparency is lost. I've tried various techniques to try and maintain the transparency, but to no avail. Things I've tried: - Using the `MakeTransparent (Color)` method call - Using the `ImageAttriutes` with a combination of `ColorMap` and `SetColorKey` I don't really want to start using unsafe operators or Win32 calls. Any ideas?
0
[ 2, 184, 107, 31, 4027, 19668, 19, 40, 1961, 37, 21, 7775, 24641, 76, 568, 8351, 9, 43, 12404, 22039, 60, 800, 3726, 3726, 31, 22, 195, 330, 21, 231, 16, 489, 821, 18, 30, 31, 376, 20, 9833, 27, 14, 2855, 15, 31, 22, 79, 568,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Random points inside a Polygon === I have a 4 side convex Polygon defined by 4 points in 2D, and I want to be able to generate random points inside it. If it really simplifies the problem, I can limit the polygon to a parallelogram, but a more general answer is prefered. Generating random points until one is inside the polygon wouldn't work because it's really unpredictable the time it takes.
0
[ 2, 5477, 819, 572, 21, 21309, 800, 3726, 3726, 31, 57, 21, 268, 270, 20292, 21309, 2811, 34, 268, 819, 19, 172, 43, 15, 17, 31, 259, 20, 44, 777, 20, 7920, 5477, 819, 572, 32, 9, 100, 32, 510, 22862, 255, 12970, 14, 1448, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to execute an Oracle stored procedure via a database link. === Can I call a stored procedure in Oracle via a database link? The database link is functional so that syntax such as... SELECT * FROM myTable@myRemoteDB is functioning. But is there a syntax for... EXECUTE mySchema.myPackage.myProcedure('someParameter')@myRemoteDB
0
[ 2, 184, 20, 15644, 40, 15759, 8214, 7004, 1197, 21, 6018, 3508, 9, 800, 3726, 3726, 92, 31, 645, 21, 8214, 7004, 19, 15759, 1197, 21, 6018, 3508, 60, 14, 6018, 3508, 25, 7652, 86, 30, 22649, 145, 28, 9, 9, 9, 5407, 1637, 37, 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...
log4net open database connections === I am using the AdoNetAppender to write to a SQL Server 2005 database table. I have bufferSize set to 1 so that entries are written immediately. My DBA is concerned that log4net is leaving its database connection open. We have ~50 connections to the database today but only 22 log entries. In several cases there are multiple connections from the same client with different login times. It sounds to me that connection pooling isn't working or that there's a resource I'm not releasing in code. How should I troubleshoot this?
0
[ 2, 6738, 300, 2328, 368, 6018, 6760, 800, 3726, 3726, 31, 589, 568, 14, 21, 804, 1198, 22358, 1157, 20, 2757, 20, 21, 4444, 255, 8128, 812, 6018, 859, 9, 31, 57, 17497, 10454, 309, 20, 137, 86, 30, 11399, 50, 642, 1375, 9, 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...
How to prioritize work? === i am currently involved in two project. Both project i am holding quite a number of tasks which i think is critical. I did highlight to both project managers that i may not be able to handle the workload and i request for backup but in the end they only do some shifting back of the work schedule. How would you prioritize your work between two projects or how to convey to them the message that i am overloaded. Currently my approach is that i will only work during office hours and not bring the work home like before before because i realize that the workload given is so much that everyday i may need to work after office hours.
0
[ 2, 184, 20, 1313, 242, 2952, 170, 60, 800, 3726, 3726, 31, 589, 871, 1013, 19, 81, 669, 9, 156, 669, 31, 589, 1337, 1450, 21, 234, 16, 8674, 56, 31, 277, 25, 2507, 9, 31, 144, 14373, 20, 156, 669, 12657, 30, 31, 123, 52, 44,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which are the bare minimum source files that I should upload to a CodePlex project? === I'm looking to revamp an old open source project I've started a couple of months ago. I'm a tidiness fanatic, I really try hard to "[code like a girl][1]" whenever I can. That's why I've been policing my code with StyleCop, which makes me really happy. Now for some reason I've got the feeling that I've uploaded a pile of junk back then with the first commit, so this time I just want to upload only the actual required files, nothing else. [1]: http://headrush.typepad.com/creating_passionate_users/2006/03/code_like_a_gir.html
0
[ 2, 56, 50, 14, 4856, 5187, 1267, 6488, 30, 31, 378, 71, 8294, 20, 21, 1797, 11326, 669, 60, 800, 3726, 3726, 31, 22, 79, 699, 20, 3867, 10158, 40, 315, 368, 1267, 669, 31, 22, 195, 373, 21, 1335, 16, 818, 1464, 9, 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...
Dynamically invoke properties by string name using VB.NET === I'm currently working on a project where a section of the code looks like this: Select Case oReader.Name Case "NameExample1" Me.Elements.NameExample1.Value = oReader.ReadString .... Case "NameExampleN" Me.Elements.NameExampleN.Value = oReader.ReadString .... End Select It continues on for a while. The code is obviously verbose and it *feels* like it could be improved. Is there any way to dynamically invoke a property in VB.NET such that something like this can be done: Dim sReadString As String = oReader.ReadString Me.Elements.InvokeProperty(sReadString).Value = sReadString
0
[ 2, 7782, 1326, 28371, 3704, 34, 3724, 204, 568, 13, 20468, 9, 2328, 800, 3726, 3726, 31, 22, 79, 871, 638, 27, 21, 669, 113, 21, 1050, 16, 14, 1797, 1879, 101, 48, 45, 5407, 610, 54, 18530, 106, 9, 7259, 610, 13, 7, 7259, 2904...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Asp.net Usercontrol LoadControl Issue === I am having an issue when using `LoadControl( type, Params )`. Let me explain... I have a super simple user control (ascx) <%@ Control Language="C#" AutoEventWireup="True" Inherits="ErrorDisplay" Codebehind="ErrorDisplay.ascx.cs" EnableViewState="false" %> <asp:Label runat="server" ID="lblTitle" /> <asp:Label runat="server" ID="lblDescription" /> with code ( c# ) behind of: public partial class ErrorDisplay : System.Web.UI.UserControl { private Message _ErrorMessage; public ErrorDisplay() { } public ErrorDisplay(Message ErrorMessage) { _ErrorMessage = ErrorMessage; } protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); if (_ErrorMessage != null) { lblTitle.Text = _ErrorMessage.Message; lblDescription.Text = _ErrorMessage.Description; } } } Elsewhere in my web application I am adding an instance of the usercontrol to the page using the following code: divValidationIssues.Controls.Add(LoadControl(typeof(ErrorDisplay), new object[] { MessageDetails })); I am using the overloaded version of LoadControl because I want to pass the Message parameter to the constructor. All this *appears* to work ok. However, when the `OnPreRender()` is fired on the ErrorDisplay usercontrol the lblTitle and lblDescription variables are both `null`, despite them having a markup equivalent. The message variable has been correctly populated. Can anyone shed any light on why this may be happening? Thanks
0
[ 2, 28, 306, 9, 2328, 4155, 12898, 6305, 12898, 1513, 800, 3726, 3726, 31, 589, 452, 40, 1513, 76, 568, 13, 1, 8294, 12898, 5, 1001, 15, 2258, 79, 18, 13, 6, 1, 9, 408, 55, 3271, 9, 9, 9, 31, 57, 21, 1026, 1935, 4155, 569, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Would using Stack<T> is better than List<T> in terms of memory usage with .NET === So in a .NET app , i got about 2 million items that i need to hold them in memory for processing , 1 by 1, would holding these items in a Stack<T> collection , is better than holding them in a List<T> collection, assuming that the memory used by the stack object will be keep minimizing every time an item is poped out of the stack<T> object , or the memory allocated by the stack will keep the same till the stack is set to null, or cleared. sorry if i couldn't express the question in the right way.. but here is another way, when a Stack<T> collection is used, does the memory used by the stack get minimized every time an item is pulled out of the stack. Thanks in advance
0
[ 2, 83, 568, 7566, 1, 38, 1, 25, 574, 119, 968, 1, 38, 1, 19, 1663, 16, 1912, 7514, 29, 13, 9, 2328, 800, 3726, 3726, 86, 19, 21, 13, 9, 2328, 4865, 13, 15, 31, 330, 88, 172, 507, 3755, 30, 31, 376, 20, 1027, 105, 19, 191...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Personal Project - Next practical language/tech to learn === I'm working on a personal project doing some finance analysis. It's a totally new field for me, and I'm really having fun with it so far, plus working in the high-level language arena is a great break from my embedded systems daytime work. I have a MySQL backend on a non-local server with a pile of stock data. My task now is to do some analysis of the stocks and produce something approximating a useful result. There are a couple technical difficulties. (1) I have a lot of records. To be precise, I believe I'm near 100K records right now, and this number grows by 6.1K each weekday. I need to create a way to rummage through these fields and do data analysis - based on a given computation, go look at this other set. Fine and dandy, nothing too outre. But this means I could really use a straightforward API for talking to MySQL. (2) Ideally, it runs on OS X 10.4.11. No Windows/Linux machine at home. (3) I can *use* PHP, C++, Perl, etc. I even have an R installation. I'm pretty flexible with stuff, so long as it runs on OS X. (Lots of options here, pick water, H20, or dihydrogen monoxide ;-) ) (4)Lack of hassle. While I like clever and fun ways of doing things, I'm trying to get some analysis done, not spend ten hours doing installation work and scratching my head figuring out a theoretical syntax question needed to spout out "hello world". What's the question? I'd like to dig into something different than my usual PHP/C++/C toolset. I'm looking for recommendations for languages/technologies that will assist me and meet the above requirements. In particular, I've heard a lot of buzz about F# and Python on SO. I've used CLISP for small problems before, and kinda liked it. I'm seeking opinions about those in particular.
0
[ 2, 1319, 669, 13, 8, 328, 5713, 816, 118, 6524, 20, 2484, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 1319, 669, 845, 109, 3711, 2495, 9, 32, 22, 18, 21, 5139, 78, 575, 26, 55, 15, 17, 31, 22, 79, 510, 452, 2414, 29, 32, 86,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there an easy way to use a base class's variables? === When you have a derived class, is there an simpler way to refer to a variable from a method other than: BaseClass::variable
0
[ 2, 25, 80, 40, 2010, 161, 20, 275, 21, 1000, 718, 22, 18, 12157, 60, 800, 3726, 3726, 76, 42, 57, 21, 3981, 718, 15, 25, 80, 40, 19120, 161, 20, 5017, 20, 21, 7612, 37, 21, 2109, 89, 119, 45, 1000, 1898, 45, 45, 8220, 579, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Print really big numbers === I have this code #include <iostream> using namespace std; int main(int argc,char **argv) { unsigned long long num1 = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999995LL; unsigned long long num2 = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999996LL; unsigned long long num3 = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999997LL; unsigned long long num4 = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999998LL; unsigned long long num5 = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999LL; cout << (unsigned long long)(num1 * num2 * num3 * num4 * num5) << endl; return 0; } As you can see the numbers are enormous, but when I do the math there I get this: 18446744073709551496 Also at compile time I get lot's of warnings: warning: integer constant is too large for its type| In function `int main(int, char**)':| warning: this decimal constant is unsigned only in ISO C90| ... Any help will be appreciated :D
0
[ 2, 4793, 510, 580, 2116, 800, 3726, 3726, 31, 57, 48, 1797, 6926, 22640, 13, 1, 1963, 11260, 1, 568, 204, 5582, 354, 43, 73, 19, 38, 407, 5, 6391, 13, 10663, 150, 15, 5433, 13, 1409, 10663, 710, 6, 13, 1, 28839, 175, 175, 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...
in a web application, how do keep the database structure up to date? === If your data change after the application is deployed, how do you keep the database up to date? I mean, you can add or remove table, thats a simple task. Altering an existing table can be trivial too. But if you change the structure often, how do you keep that under a control? I used to keep a table with a current database version in database. Then every upgrade was an SQL file that did its work - create new table, add a column or move the data. Files were named after those versions - so if my upgrade script got the database version 10, it just took all files from 11.sql to N.sql and applied each one of them incrementing database version number at the same time. This seems to be working all right, but I'm wondering - what's your strategy for such tasks? Also this system doesn't seem perfect if I normalize a table in one "patch" and after that I denormalize it again for whatever reasons. Then it's done twice. But, writing a complete upgrade script each time I change something seems painful, and error-prone. At least more then such atomic changes. Also, I can expect that diffrent customers have diffrent database versions running at any time, so I really should have a way to go up from any point.
0
[ 2, 19, 21, 2741, 3010, 15, 184, 107, 643, 14, 6018, 1411, 71, 20, 1231, 60, 800, 3726, 3726, 100, 154, 1054, 753, 75, 14, 3010, 25, 6698, 15, 184, 107, 42, 643, 14, 6018, 71, 20, 1231, 60, 31, 884, 15, 42, 92, 3547, 54, 4681...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Linker Errors C++ Visual Studio 2005 === I'm getting a whole bunch of linker errors in Visual studios for methods I'm not even calling directly. I'm a java developer by day, but I have a project I need to do in C++, intended to run on windows machines. Hence, I'm stuck messing about with Visual Studio. Bascally, I have an os project that I added an accessor method to. I compiled that project as a .lib file (compiles and links fine). I then have my own project that uses that lib. I've included the library under Project->Properties -> Linker -> Input, and set the appropriate directory in the General -> Additional Lib Directories. I've included the header in the appropriate file, and I'm simply calling the constructor of one of the classes...not even calling the method that I created yet. The code compiles, but I get the following mountain of linker errors -- mostly LNK2019 and LNK2001 errors. I've tried recompiling under different settings (lib, exe, etc.), and the linker errors only seem to multiply. When I switch back to the previous settings, the number of errors remain at their peak. Any ideas how to fix this? Build Log Build started: Project: SpamCapture, Configuration: Debug|Win32 Command Lines Creating temporary file "c:\SpamCapture\SpamCapture\SpamCapture\Debug\RSP0000103081740.rsp" with contents [ /VERBOSE:LIB /OUT:"C:\SpamCapture\SpamCapture\SpamCapture\Debug\SpamCapture.exe" /INCREMENTAL /LIBPATH:"C:\SpamCapture\Config\Debug\\" /MANIFEST /MANIFESTFILE:"Debug\SpamCapture.exe.intermediate.manifest" /NODEFAULTLIB:"libcmtd.lib" /NODEFAULTLIB:"nafxcwd.lib" /DEBUG /PDB:"c:\SpamCapture\SpamCapture\SpamCapture\Debug\SpamCapture.pdb" /SUBSYSTEM:CONSOLE /MACHINE:X86 KeyCapture_Config.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ".\Debug\Interaction.obj" ".\Debug\InteractionSet.obj" ".\Debug\LogReader.obj" ".\Debug\SpamCapture.obj" ".\Debug\stdafx.obj" ".\Debug\SpamCapture.res" ".\Debug\SpamCapture.exe.embed.manifest.res" ] Creating command line "link.exe @c:\SpamCapture\SpamCapture\SpamCapture\Debug\RSP0000103081740.rsp /NOLOGO /ERRORREPORT:PROMPT" Output Window Linking... LINK : warning LNK4067: ambiguous entry point; selected 'mainCRTStartup' Searching libraries Searching C:\SpamCapture\Config\Debug\\KeyCapture_Config.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\kernel32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\user32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\gdi32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\winspool.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\comdlg32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\advapi32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\shell32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\ole32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\oleaut32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\uuid.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\odbc32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\odbccp32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\msvcprtd.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\MSVCRTD.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\OLDNAMES.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib\mfc80ud.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib\mfcs80ud.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\msimg32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\comctl32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\shlwapi.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib\atlsd.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\wininet.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\ws2_32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\mswsock.lib: Searching C:\SpamCapture\Config\Debug\\KeyCapture_Config.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\kernel32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\user32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\gdi32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\winspool.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\comdlg32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\advapi32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\shell32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\ole32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\oleaut32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\uuid.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\odbc32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\odbccp32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\msvcprtd.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\MSVCRTD.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\OLDNAMES.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib\mfc80ud.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib\mfcs80ud.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\msimg32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\comctl32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\shlwapi.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib\atlsd.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\wininet.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\ws2_32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\mswsock.lib: Searching C:\SpamCapture\Config\Debug\\KeyCapture_Config.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\kernel32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\user32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\gdi32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\winspool.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\comdlg32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\advapi32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\shell32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\ole32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\oleaut32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\uuid.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\odbc32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\odbccp32.lib: Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\msvcprtd.lib: Finished searching libraries KeyCapture_Config.lib(KeyCapture_ConfigDlg.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall CWnd::Create(char const *,char const *,unsigned long,struct tagRECT const &,class CWnd *,unsigned int,struct CCreateContext *)" (?Create@CWnd@@UAEHPBD0KABUtagRECT@@PAV1@IPAUCCreateContext@@@Z) ... a bunch more like this KeyCapture_Config.lib(KeyCapture_ConfigDlg.obj) : error LNK2019: unresolved external symbol "public: struct HICON__ * __thiscall CWinApp::LoadIconA(unsigned int)const " (?LoadIconA@CWinApp@@QBEPAUHICON__@@I@Z) referenced in function "public: __thiscall CKeyCapture_ConfigDlg::CKeyCapture_ConfigDlg(class CWnd *)" (??0CKeyCapture_ConfigDlg@@QAE@PAVCWnd@@@Z) ...a bunch more like this (?DoDataExchange@SetupDialog@@MAEXPAVCDataExchange@@@Z) C:\SpamCapture\SpamCapture\SpamCapture\Debug\SpamCapture.exe : fatal error LNK1120: 34 unresolved externals Results Build log was saved at "file://c:\SpamCapture\SpamCapture\SpamCapture\Debug\BuildLog.htm" SpamCapture - 44 error(s), 1 warning(s)
0
[ 2, 3508, 106, 11908, 272, 20512, 3458, 1120, 812, 800, 3726, 3726, 31, 22, 79, 1017, 21, 979, 7653, 16, 3508, 106, 11908, 19, 3458, 3504, 26, 3195, 31, 22, 79, 52, 166, 2555, 1703, 9, 31, 22, 79, 21, 8247, 10058, 34, 208, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is a good RDF library for .net? === I'm looking for a library that can deal with RDF and OWL data. So far I have found: - [semweb][1] (no owl support for all I know) - [rowlex][2] (more of a 'browser' application) [1]: http://razor.occams.info/code/semweb/ [2]: http://rowlex.nc3a.nato.int/HowToUse.aspx
0
[ 2, 98, 25, 21, 254, 13, 897, 410, 1248, 26, 13, 9, 2328, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 1248, 30, 92, 1183, 29, 13, 897, 410, 17, 11170, 1054, 9, 86, 463, 31, 57, 216, 45, 13, 8, 636, 18, 1503, 14113, 500, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best ASP.NET MVC book? === I'm going to be starting a new project with VS2008/ASP.NET, and I would like to use MVC. What is the best MVC book out there? (Are there any good ones?)
4
[ 2, 246, 28, 306, 9, 2328, 307, 8990, 360, 60, 800, 3726, 3726, 31, 22, 79, 228, 20, 44, 1422, 21, 78, 669, 29, 4611, 2753, 118, 472, 306, 9, 2328, 15, 17, 31, 83, 101, 20, 275, 307, 8990, 9, 98, 25, 14, 246, 307, 8990, 360...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Why use Hashtable.Synchronized? === From the MSDN documentation: "Synchronized supports multiple writing threads, provided that no threads are reading the Hashtable. The synchronized wrapper does not provide thread-safe access in the case of one or more readers and one or more writers." Source: [http://msdn.microsoft.com/en-us/library/system.collections.hashtable.synchronized.aspx][1] [1]: http://msdn.microsoft.com/en-us/library/system.collections.hashtable.synchronized.aspx It sounds like I still have to use locks anyways, so my question is why would we use Hashtable.Synchronized at all?
0
[ 2, 483, 275, 19170, 5924, 9, 16023, 1333, 60, 800, 3726, 3726, 37, 14, 4235, 43, 103, 13945, 45, 13, 7, 16023, 1333, 6747, 1886, 1174, 20396, 15, 1173, 30, 90, 20396, 50, 1876, 14, 19170, 5924, 9, 14, 27202, 28051, 630, 52, 1181, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sharepoint, Create View, Filter Properties === I'd like to create a view in Sharepoint that has a filter based on a date field. The filter should be >= Today and <- Today + 90 days. I found a reference to the <Today OffsetDays=”5” /> CAML function and could probably use this by setting the view using the API. My question is how do i set this using the browser based admin page? ![alt text][1] [1]: http://www.isuppli.com/Img/Development/CreateViewSample.gif
0
[ 2, 1891, 3132, 15, 1600, 1418, 15, 11945, 3704, 800, 3726, 3726, 31, 22, 43, 101, 20, 1600, 21, 1418, 19, 1891, 3132, 30, 63, 21, 11945, 432, 27, 21, 1231, 575, 9, 14, 11945, 378, 44, 13, 1, 3726, 786, 17, 13, 1, 8, 786, 275...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WPF ComboBox binding not working as expected. === I want my WPF ComboBox's ItemsSource property to be bound to MyListObject's MyList property. The problem is that when I update the MyList property in code, the WPF ComboBox is not reflecting the update. I am raising the PropertyChanged event after I perform the update, and I thought WPF was supposed to automatically respond by updating the UI. Am I missing something? Here's the CLR object: Imports System.ComponentModel Public Class MyListObject Implements INotifyPropertyChanged Private _mylist As New List(Of String) Public Sub New() _mylist.Add("Joe") _mylist.Add("Steve") End Sub Public Property MyList() As List(Of String) Get Return _mylist End Get Set(ByVal value As List(Of String)) _mylist = value End Set End Property Public Sub AddName(ByVal name As String) _mylist.Add(name) NotifyPropertyChanged("MyList") End Sub Private Sub NotifyPropertyChanged(ByVal info As String) RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(info)) End Sub Public Event PropertyChanged(ByVal sender As Object, _ ByVal e As System.ComponentModel.PropertyChangedEventArgs) _ Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged End Class Here is the XAML: <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300" xmlns:local="clr-namespace:WpfApplication1" > <Window.Resources> <ObjectDataProvider x:Key="MyListObject" ObjectType="{x:Type local:MyListObject}"/> </Window.Resources> <Grid> <ComboBox Height="23" Margin="24,91,53,0" Name="ComboBox1" VerticalAlignment="Top" ItemsSource="{Binding Path=MyList, Source={StaticResource MyListObject}}" /> <TextBox Height="23" Margin="24,43,134,0" Name="TextBox1" VerticalAlignment="Top" /> <Button Height="23" HorizontalAlignment="Right" Margin="0,43,53,0" Name="btn_AddName" VerticalAlignment="Top" Width="75">Add</Button> </Grid> </Window> And here's the simple code-behind: Class Window1 Private obj As New MyListObject Private Sub btn_AddName_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) _ Handles btn_AddName.Click obj.AddName(TextBox1.Text) End Sub End Class Thanks!
0
[ 2, 619, 7721, 22621, 5309, 8728, 52, 638, 28, 1727, 9, 800, 3726, 3726, 31, 259, 51, 619, 7721, 22621, 5309, 22, 18, 3755, 12097, 1354, 20, 44, 4138, 20, 51, 5739, 23793, 22, 18, 51, 5739, 1354, 9, 14, 1448, 25, 30, 76, 31, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Web pages and barcode fonts === I'm working on a small app where I can generate a list of barcodes. I have the correct fonts installed on my computer. Right now I am printing them directly to a webpage and it works properly in Chrome and IE 7, but not Firefox. Does anyone know what Firefox would be doing differently than IE and Chrome? Here is my code: <html> <head> <title>Barcode Font Test</title> <style type="text/css" media="screen"> .barcode { font-family: "wasp 39 m", verdana, calibri; font-size: 36pt; } </style> </head> <body> <div class="barcode">*574656*</div> </body> </html>
0
[ 2, 2741, 4434, 17, 748, 9375, 9978, 18, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 284, 4865, 113, 31, 92, 7920, 21, 968, 16, 748, 9375, 18, 9, 31, 57, 14, 4456, 9978, 18, 4066, 27, 51, 1428, 9, 193, 130, 31, 589, 7312, 105, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Anyone using Python for embedded projects? === My company is using Python for a relatively simple embedded project. Is anyone else out there using Python on embedded platforms? Overall it's working well for us, quick to develop apps, quick to debug. I like the overall "consciseness" of the language. The only real problem I have in day to day work is that the last of static checking vs a regular compiler can cause problems to be thrown at run-time, e.g. a simple accidental cat of a string and an int in a print statement can bring the whole application down. Thanks for any responses, Fred
0
[ 2, 1276, 568, 20059, 26, 12138, 2314, 60, 800, 3726, 3726, 51, 237, 25, 568, 20059, 26, 21, 3109, 1935, 12138, 669, 9, 25, 1276, 962, 70, 80, 568, 20059, 27, 12138, 6843, 60, 1677, 32, 22, 18, 638, 134, 26, 182, 15, 2231, 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...
How to get a value from the last inserted row? === Is there some way to get a value from the last inserted row? I am inserting a row where the PK will automatically increase, and I would like to get this PK. Only the PK is guaranteed to be unique in the table. I am using Java with a JDBC and PostgreSQL.
0
[ 2, 184, 20, 164, 21, 1923, 37, 14, 236, 14215, 3131, 60, 800, 3726, 3726, 25, 80, 109, 161, 20, 164, 21, 1923, 37, 14, 236, 14215, 3131, 60, 31, 589, 14692, 68, 21, 3131, 113, 14, 13, 17244, 129, 7499, 1839, 15, 17, 31, 83, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Possible to integrate Google AppEngine and Google Code for continuous integration? === Anyone have any thoughts on how/if it is possible to integrate Google Code commits to cause a Google AppEngine deployment of the most recent code? I have a simple Google AppEngine project's source hosted on Google Code and would love if everytime I committed to Subversion, that AppEngine would reflect the latest commit. I don't mind if things are broken on the live site since the project is for personal use mainly and for learning. Anyone have any thoughts on how to tie into the subversion commit for the Code repository and/or how to kickoff the deployment to AppEngine? Ideally the solution would not require anything manual from me nor any type of server/listener software on my machine.
0
[ 2, 938, 20, 18399, 8144, 4865, 16847, 17, 8144, 1797, 26, 6357, 8078, 60, 800, 3726, 3726, 1276, 57, 186, 3064, 27, 184, 118, 821, 32, 25, 938, 20, 18399, 8144, 1797, 9686, 18, 20, 1679, 21, 8144, 4865, 16847, 10475, 16, 14, 127, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MyProject.MyClass - vb.NET custom controls === In a Visual Basic project, I created a homemade TabControl in order to fix a visual bug. The control works properly, however whenever I modify the form using my tab, Visual Studio adds MyProject in front of the control in its declaration: Me.tabMenu = New MyProject.MyClass 'Gives a BC30002 compile error If I remove the `MyProject.`, the project compiles properly. MyClass is in a separate file MyClass.vb and looks mostly like this: Public Class MyClass Inherits System.Windows.Forms.TabControl Public Sub New() InitializeComponent() MyBase.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed End Sub Protected Overrides Sub OnDrawItem(ByVal e As System.Windows.Forms.DrawItemEventArgs) //OnDrawItem code End Sub Private Sub My_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles Me.DrawItem //My_DrawItem code End Sub End Class I tried removing the file and adding it again, copy and pasting the class inside `MyForm.designer.vb`, adding `MyProject.` to the class name, but nothing stopped Visual Studio from adding this so-hated `MyProject`.
0
[ 2, 51, 21011, 9, 915, 1898, 13, 8, 13, 20468, 9, 2328, 5816, 8671, 800, 3726, 3726, 19, 21, 3458, 2125, 669, 15, 31, 679, 21, 27269, 6523, 12898, 19, 389, 20, 6098, 21, 3458, 6256, 9, 14, 569, 693, 7428, 15, 207, 6634, 31, 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...
Question mark characters displaying within text, why is this? === I have a backup server that automatically backs up my live site, both files and database. On the live site, the text looks fine, but when you view the mirrored version of it, it displays '?' within some of the text. This text is stored within the news database table. Here is a screen shot of it being on the live server and of it on the mirrored server. What could happen within the process of backing it up to the mirrored server? ![alt text][1] [1]: http://i34.tinypic.com/2mpbfo6.jpg
0
[ 2, 1301, 943, 1766, 17418, 363, 1854, 15, 483, 25, 48, 60, 800, 3726, 3726, 31, 57, 21, 10119, 8128, 30, 7499, 97, 18, 71, 51, 515, 689, 15, 156, 6488, 17, 6018, 9, 27, 14, 515, 689, 15, 14, 1854, 1879, 1123, 15, 47, 76, 42,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are some practical applications for a single layer perceptron? === I was having a look at this [awesome tutorial][1] on single layer perceptron. I tried the implementation out and it works like charm, but I was wondering if it's there any practical use for it as is (at such a low complexity degree). Any example? [1]: http://dynamicnotions.blogspot.com/2008/09/single-layer-perceptron.html
0
[ 2, 98, 50, 109, 5713, 3767, 26, 21, 345, 5385, 416, 13433, 2075, 60, 800, 3726, 3726, 31, 23, 452, 21, 361, 35, 48, 636, 58, 458, 3220, 29724, 500, 2558, 165, 500, 27, 345, 5385, 416, 13433, 2075, 9, 31, 794, 14, 6123, 70, 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...
How to remotely shutdown a Java RMI Server === I have a very simple Java RMI Server that looks like the following: import java.rmi.*; import java.rmi.server.*; public class CalculatorImpl extends UnicastRemoteObject implements Calculator { private String mServerName; public CalculatorImpl(String serverName) throws RemoteException { super(); mServerName = serverName; } public int calculate(int op1, int op2) throws RemoteException { return op1 + op2; } public void exit() throws RemoteException { try{ Naming.unbind(mServerName); System.out.println("CalculatorServer exiting."); } catch(Exception e){} System.exit(1); } public static void main(String args[]) throws Exception { System.out.println("Initializing CalculatorServer."); String serverObjName = "rmi://localhost/Calculator"; Calculator calc = new CalculatorImpl(serverObjName); Naming.rebind(serverObjName, calc); System.out.println("CalculatorServer running."); } } When I call the exit method, System.exit(1) throws the following exception: CalculatorServer exiting. java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.io.EOFException at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:203) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) at CalculatorImpl_Stub.exit(Unknown Source) at CalculatorClient.<init>(CalculatorClient.java:17) at CalculatorClient.main(CalculatorClient.java:29) Caused by: java.io.EOFException at java.io.DataInputStream.readByte(DataInputStream.java:243) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:189) ... 4 more [2]+ Exit 1 java CalculatorImpl What am I doing wrong in this method?
0
[ 2, 184, 20, 23288, 28450, 21, 8247, 761, 1435, 8128, 800, 3726, 3726, 31, 57, 21, 253, 1935, 8247, 761, 1435, 8128, 30, 1879, 101, 14, 249, 45, 9010, 8247, 9, 139, 1435, 9, 2483, 73, 9010, 8247, 9, 139, 1435, 9, 10321, 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...
Cross-site scripting from an Image === I have a rich-text editor on my site that I'm trying to protect against XSS attacks. I think I have pretty much everything handled, but I'm still unsure about what to do with images. Right now I'm using the following regex to validate image URLs, which I'm assuming will block inline javascript XSS attacks: "https?://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+" What I'm not sure of is how open this leaves me to XSS attacks from the remote image. Is linking to an external image a serious security threat? The only thing I can think of is that the URL entered references a resource that returns "`text/javascript`" as its MIME type instead of some sort of image, and that javascript is then executed. Is that possible? Is there any other security threat I should consider?
0
[ 2, 919, 8, 9097, 3884, 68, 37, 40, 1961, 800, 3726, 3726, 31, 57, 21, 2042, 8, 11969, 1835, 27, 51, 689, 30, 31, 22, 79, 749, 20, 2196, 149, 993, 18, 18, 3080, 9, 31, 277, 31, 57, 1772, 212, 796, 9006, 15, 47, 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 Important is a Team Having Shared Vision? === Just watching [Jim McCarthy's talk][1] about 11 commitments for shared vision over at InfoQ and it got me thinking. Specifically, how important is having a shared vision to a team? Looking back over my, wow-is-it-that-long, many years in this game I see that the best teams that I've worked on have had a shared vision and shared commitment to the vision. Has anyone been involved in a team, for a reasonably sized project, that was successful where they **didn't** have a shared vision? [1]: http://www.infoq.com/interviews/11-Commitments-Jim-McCarthy
0
[ 2, 184, 681, 25, 21, 173, 452, 2592, 2750, 60, 800, 3726, 3726, 114, 1953, 636, 21476, 13719, 22, 18, 930, 500, 2558, 165, 500, 88, 547, 6578, 18, 26, 2592, 2750, 84, 35, 15404, 1251, 17, 32, 330, 55, 1440, 9, 3524, 15, 184, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why is Nant not working with TeamCity? === I have nant set up to build my ASP.NET MVC project and it works fine locally. I add nant to a tools folder and add it to version control. TeamCity picks up my changes and starts the build but it fails. I believe I'm using the latest version of Nant and I have added the .net framework 3.5 to the nant.exe.config. What am I missing on the server and yes the .net framework is installed on the server as the asp.net mvc app does work if I manually build and deploy there? The build file is as follows: <?xml version="1.0" ?> <project name="Tolt.Sims" default="compile" xmlns="http://nant.sf.net/schemas/nant.xsd"> <property name="build.dir" value="build" /> <property name="nant.settings.currentframework" value="net-3.5" /> <target name="compile" description="Compiles using the AutomatedDebug Configuration"> <msbuild project="Tolt.Sims.sln" /> </target> </project> Here is the error: [11:32:49]: NAnt output: C:\BuildAgent\work\b0c651bf921f0c3\tools\nant\bin\NAnt.exe -buildfile:C:\BuildAgent\work\b0c651bf921f0c3\Tolt.Sims.build -extension:C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NAntLoggers.dll -listener:JetBrains.BuildServer.NAntLoggers.NAntListener "-D:teamcity.buildConfName=Compile and Run Tests" -D:DotNetFramework1.1_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 -D:agent.home.dir=C:\BuildAgent -D:DotNetFramework3.0= -D:build.number=2 -D:teamcity.dotnet.nunitlauncher2.0=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.exe -D:user.language=en -D:os.version=5.2 -D:DotNetFramework3.0_x86= -D:file.encoding=Cp1252 -D:teamcity.projectName=Tolt.Sims -D:teamcity.dotnet.nunitlauncher2.0.vsts=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.VSTS.exe -D:DotNetFramework2.0_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 -D:DotNetFramework2.0_Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 -D:teamcity.dotnet.coveragelauncher=C:\BuildAgent\plugins\dotnetPlugin\bin\TeamCityRunners\JetBrains.dotTrace.TeamCity.CoverageRunner.exe -D:teamcity.dotnet.nunitlauncher=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe -D:user.name=SYSTEM -D:DotNetFramework3.5_Path=C:\WINDOWS\Microsoft.NET\Framework\v3.5 -D:DotNetFramework3.0_Path=C:\WINDOWS\Microsoft.NET\Framework\v3.0 -D:teamcity.auth.password=tD5YmSc6ESmz3b5bHmrq0xxM8tqs9Rui -D:teamcity.build.checkoutDir=C:\BuildAgent\work\b0c651bf921f0c3 -D:teamcity.buildType.id=bt3 -D:DotNetFramework3.5= -D:user.variant= -D:teamcity.dotnet.nunitlauncher1.1=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher1.1.exe -D:teamcity.dotnet.nunitlauncher.msbuild.task=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MSBuildLoggers.dll -D:DotNetFramework3.5_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v3.5 -D:idea.build.server.build.id=2 -D:path.separator=; -D:teamcity.build.workingDir=C:\BuildAgent\work\b0c651bf921f0c3 -D:agent.name=ERP-Test -D:build.number.format={0} -D:DotNetFramework1.1= -D:teamcity.dotnet.platform=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.TeamCity.PlatformProcessRunner.1.1.exe -D:user.country=US -D:user.timezone=GMT-07:00 -D:DotNetFramework2.0_x86= -D:agent.work.dir=C:\BuildAgent\work -D:file.separator=\ -D:os.arch=x86 -D:DotNetFramework3.0_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v3.0 -D:DotNetFramework1.1_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 -D:DotNetFramework1.1_x86= -D:DotNetFramework2.0= -D:build.vcs.number.1=38 "-D:os.name=Windows 2003" -D:idea.build.agent.port=7071 -D:DotNetFramework3.5_x86= -D:teamcity.auth.userId=TeamCityBuildId=2 "-D:user.home=C:\Documents and Settings\Default User" NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007) Copyright (C) 2001-2007 Gerry Shaw http://nant.sourceforge.net BUILD FAILED Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target framework. Property evaluation failed. Expression: ${path::combine(sdkInstallRoot, 'bin')} ^^^^^^^^^^^^^^ Property 'sdkInstallRoot' has not been set. For more information regarding the cause of the build failure, run the build again in debug mode. Try 'nant -help' for more information [11:32:49]: Process exit code: 1
0
[ 2, 483, 25, 13, 11028, 52, 638, 29, 173, 5788, 60, 800, 3726, 3726, 31, 57, 13, 11028, 309, 71, 20, 1895, 51, 28, 306, 9, 2328, 307, 8990, 669, 17, 32, 693, 1123, 6680, 9, 31, 3547, 13, 11028, 20, 21, 4672, 19294, 17, 3547, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Advantages and disadvantages of using Enterprise Library === Im just starting a project and since this project is personal I was wondering what are the advantages of using Enterprise Library? We use the version 2 for several projects in the office but im not quite sure (aside of the good practices) of the advantages of it, especially in the database component. Any advice? Thanks
0
[ 2, 14683, 17, 13387, 18, 16, 568, 6002, 1248, 800, 3726, 3726, 797, 114, 1422, 21, 669, 17, 179, 48, 669, 25, 1319, 31, 23, 5712, 98, 50, 14, 14683, 16, 568, 6002, 1248, 60, 95, 275, 14, 615, 172, 26, 238, 2314, 19, 14, 488, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use SQL_ASCII encoding in a rails application? === I have to connect to a legacy postgre database wich has **ENCODING = 'SQL_ASCII';**. How do I set this encoding in my rails app?
0
[ 2, 184, 20, 275, 4444, 255, 1, 472, 1892, 49, 19608, 19, 21, 2240, 18, 3010, 60, 800, 3726, 3726, 31, 57, 20, 6379, 20, 21, 7780, 678, 6879, 6018, 13, 13583, 63, 13, 1409, 219, 15458, 800, 13, 22, 18, 22402, 1, 472, 1892, 49, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
GridView Checkbox Column === I used to have a class in 1.1 for the Datagrid that inherited from the DataGridColumn class. This allowed me to create a checkbox column with a client-side un/check-all box in the header. Then as I designed my grid I would just add my custom column. I am currently on a project where I need similar functionality for the gridview, however, there does not seem to be a way to inherit or add functionality to a column. So my question is, Is there a way? Does this code already exsist, in a reuseable way? Needs are simple: I would like for it to just register the javascript on the page and render a column of checkboxes. I have come across the 4guys sample already, but they have just put all the code into the code behind, I am looking for something a little less copy/paste.
0
[ 2, 7354, 4725, 2631, 5309, 4698, 800, 3726, 3726, 31, 147, 20, 57, 21, 718, 19, 137, 9, 165, 26, 14, 1054, 16375, 30, 7179, 37, 14, 1054, 16375, 716, 4404, 103, 718, 9, 48, 1159, 55, 20, 1600, 21, 2631, 5309, 4698, 29, 21, 681...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Oracle Connection? === I am setting up an Oracle connection for Nhibernate for the first time. I have copied the Oracle.DataAccess.dll file into my bin folder. No matter what I try, I keep getting the same error: Could not load type >NHibernate.Driver.OracleDataClientDriver. Possible cause: no assembly name specified. I am using the following configuration: <?xml version="1.0" encoding="utf-8" ?> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <session-factory name="DefaultSessionFactory"> <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property> <property name="dialect">NHibernate.Dialect.Oracle9Dialect</property> <property name="connection.driver_class">>NHibernate.Driver.OracleDataClientDriver</property> <property name="connection.connection_string">Data Source=DB;User ID=USERPassword=****;</property> <property name="show_sql">true</property> <mapping assembly="NHibernateExample.DataAccess"/> </session-factory> </hibernate-configuration> I have previously only set up NHibernate for SQL Server. Am I missing anything here?
0
[ 2, 12109, 15191, 8820, 15759, 2760, 60, 800, 3726, 3726, 31, 589, 2697, 71, 40, 15759, 2760, 26, 12109, 15191, 8820, 26, 14, 64, 85, 9, 31, 57, 18225, 14, 15759, 9, 18768, 20604, 9, 43, 211, 3893, 77, 51, 4511, 19294, 9, 90, 116...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What do curly braces by themselves mean in java? === for example, I have the following code (generated, not written) if(node.getId() != null) { node.getId().apply(this); } { List<PExp> copy = new ArrayList<PExp>(node.getArgs()); for(PExp e : copy) { e.apply(this); } } outAMethodExp(node); What do those extra curly braces mean?
0
[ 2, 98, 107, 21056, 15646, 18, 34, 1366, 884, 19, 8247, 60, 800, 3726, 3726, 26, 823, 15, 31, 57, 14, 249, 1797, 13, 5, 25314, 15, 52, 642, 6, 100, 5, 251, 546, 9, 3060, 1340, 5, 6, 13, 187, 3726, 16203, 6, 13, 1, 15421, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I know when user minimizes / maximizes Eclipse? === I need to respond to the events of minimizing / maximizing Eclipse window. How do I do that? Thanks in advance.
0
[ 2, 184, 107, 31, 143, 76, 4155, 16713, 18, 13, 118, 23952, 18, 11652, 60, 800, 3726, 3726, 31, 376, 20, 4590, 20, 14, 963, 16, 4236, 79, 3335, 13, 118, 10584, 3335, 11652, 1463, 9, 184, 107, 31, 107, 30, 60, 3669, 19, 3612, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to manually drop down a DataGridViewComboBoxColumn ? === I have a DataGridView with one DataGridViewComboBoxColumn in my WinForms application. I need to drop down (open) this DataGridViewComboBoxColumn manually, let's say after a button is clicked. I am searching in Google and VS help, but I haven't found any information yet. Can anybody help please?
0
[ 2, 184, 20, 23671, 2804, 125, 21, 1054, 16375, 4725, 960, 1192, 5309, 716, 4404, 103, 13, 60, 800, 3726, 3726, 31, 57, 21, 1054, 16375, 4725, 29, 53, 1054, 16375, 4725, 960, 1192, 5309, 716, 4404, 103, 19, 51, 628, 4190, 18, 3010,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to determine the source of a CSS issue. === I have been working on a webpage. It is the first I have actually tried to design using an image and then use proper CSS layout rather than tables. [http://www.roccocammisola.com/proj/brunel/bgimage.html][1] [1]: http://www.roccocammisola.com/proj/brunel/bgimage.html I have been having issues with the shadows on either side of the main content area. Of course these are only an issue in IE. As you can see the shadow has been cut down to about 10% of its actual height. With my relative inexperience how do I look for relevant fixes to this issue. Any help would be very much appreciated.
0
[ 2, 98, 25, 14, 246, 161, 20, 3746, 14, 1267, 16, 21, 272, 18, 18, 1513, 9, 800, 3726, 3726, 31, 57, 74, 638, 27, 21, 2741, 6486, 9, 32, 25, 14, 64, 31, 57, 1121, 794, 20, 704, 568, 40, 1961, 17, 94, 275, 4119, 272, 18, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Added code, swf size got ... smaller? === ... I'm working on a couple of theories, but I'm interested to hear other opinions. This has been verified on three different machines, two windows the other linux. The compiler used is flexbuild (Presumably mxmlc) and ant with mxmlc. We _added_ code to a small stand-alone single .as file project and the compiled swf file size went down by 20k, from 32k to 12k on the linux box. Slightly different on the windows box, from 27k to 8.5k. With a custom tool we've verified that both versions are using native swf compression, no massive additional metadata, the only modification to the ant build script is to _add_ an swc file to the build. No removal of code (No import removals, no variable removals, nada), only addition and pretty simple at that, a couple of components added to the stage, enabled, a couple of small functions, etc, no loops modified, nothing obvious that would result in less code. Using source control to build the old version still results in a larger file, so it doesn't appear to be a change in the libraries or compiler. None of the code is using Flex components, just straight "flash.etc..." type imports. Has anyone seen behavior like this? What do you think might cause this?
0
[ 2, 905, 1797, 15, 13, 18, 15263, 1072, 330, 13, 9, 9, 9, 2012, 60, 800, 3726, 3726, 13, 9, 9, 9, 31, 22, 79, 638, 27, 21, 1335, 16, 7761, 15, 47, 31, 22, 79, 3158, 20, 990, 89, 11900, 9, 48, 63, 74, 23334, 27, 132, 421, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which is better for encoding HTML for RSS? === I recently introduced HTML into some RSS feeds that I publish (which up to now only had plain text, no markup), and I was wondering which method is better: use character encoding (such as htmlspecialchars) or just encapsulate everything in CDATA? It seems to me that CDATA might be easier, but I'm unclear as to whether there might be any reasons (subtle or otherwise) for choosing one approach versus the other. (For starters, the CDATA approach would be easier to read when viewing source...)
0
[ 2, 56, 25, 574, 26, 19608, 13, 15895, 26, 13, 1224, 18, 60, 800, 3726, 3726, 31, 1989, 1277, 13, 15895, 77, 109, 13, 1224, 18, 17058, 30, 31, 10824, 13, 5, 2140, 71, 20, 130, 104, 41, 3748, 1854, 15, 90, 943, 576, 6, 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...
Automated (Web) Application Acceptance Testing Resources === What are some decent guides / books / blogs that deal with application acceptance testing? I'm particularly interested in web automation. I'm familiar with some of the frameworks and I'm more interested in the perceptions of "best practices" on the subject as well as how to maintain sizable amounts of these tests.
0
[ 2, 14904, 13, 5, 14113, 6, 3010, 10156, 4431, 2566, 800, 3726, 3726, 98, 50, 109, 12238, 14838, 13, 118, 964, 13, 118, 8146, 18, 30, 1183, 29, 3010, 10156, 4431, 60, 31, 22, 79, 1653, 3158, 19, 2741, 23217, 9, 31, 22, 79, 3694, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 attach source code locations to plugins in my target platform? === I've got a workspace with multiple RCP plugin projects. We've set the target platform, so we can build against a standard set of plugins, but are not able to see source code and Javadoc for all the platform plugins. The Windows -> Preferences -> Plug-in Development -> Target Platform -> Source Code Locations page doesn't seem to have any effect when I add the eclipse directory (it only allows you to add directories). Copying the source jars from the eclipse directory into the target platform has a similar effect. What am I doing wrong? How do I attach a set of Source jars to my target platform?
0
[ 2, 184, 107, 31, 19514, 1267, 1797, 4095, 20, 10922, 108, 18, 19, 51, 2935, 2452, 60, 800, 3726, 3726, 31, 22, 195, 330, 21, 170, 5582, 29, 1886, 761, 7439, 10922, 108, 2314, 9, 95, 22, 195, 309, 14, 2935, 2452, 15, 86, 95, 92...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the worst C#/.NET gotcha? === This question is similar to [this one][1], but focused on C# and .NET. I was recently working with a DateTime object, and wrote something like this: DateTime dt = DateTime.Now; dt.AddDays(1); return dt; // still today's date! WTF? The intellisense documentation for AddDays says it adds a day to the date, which it doesn't - it actually *returns* a date with a day added to it, so you have to write it like: DateTime dt = DateTime.Now; dt = dt.AddDays(1); return dt; // tomorrow's date This one has bitten me a number of times before, so I thought it would be useful to catalog the worst C# gotchas. [1]: http://stackoverflow.com/questions/146329/what-is-the-worst-gotcha-youve-experienced
0
[ 2, 98, 25, 14, 4126, 272, 5910, 118, 9, 2328, 330, 1651, 60, 800, 3726, 3726, 48, 1301, 25, 835, 20, 636, 1565, 53, 500, 2558, 165, 500, 15, 47, 2604, 27, 272, 5910, 17, 13, 9, 2328, 9, 31, 23, 1989, 638, 29, 21, 1231, 891, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python lazy list === I would like create my own collection that has all the attributes of python list which knows how it can be saved/loaded from database. Also I want to make the load implicit and lazy. It shouldn't get called at the point of creation of the list but at it's first usage. Is there a single __ xxx __ method I can override to load the list on first usage of any list property( such as len, getitem, iter..) without having to override them all?
0
[ 2, 20059, 16792, 968, 800, 3726, 3726, 31, 83, 101, 1600, 51, 258, 1206, 30, 63, 65, 14, 13422, 16, 20059, 968, 56, 3620, 184, 32, 92, 44, 4377, 118, 22546, 37, 6018, 9, 67, 31, 259, 20, 233, 14, 6305, 20290, 17, 16792, 9, 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...
C# .NET: How to check if we're running on battery? === i want to be a good developer citizen, pay my taxes, and disable things if we're running over Remote Desktop, or running on battery. If we're running over remote desktop (or equivalently in a Terminal server session), we must disable animations and double-buffering. You can check this with: /// <summary> /// Indicates if we're running in a remote desktop session. /// If we are, then you MUST disable animations and double buffering i.e. Pay your taxes! /// /// </summary> /// <returns></returns> public static Boolean IsRemoteSession { //This is just a friendly wrapper around the built-in way get { return System.Windows.Forms.SystemInformation.TerminalServerSession; } } Now i need to find out if the user is running on battery power. If they are, i don't want to blow through their battery. i want to do things such as - disable animations - disable background spell-checking - diable background printing - turn off gradients - possibly defer network access to safe WiFi power Is there a managed way to see if the machine is **currently** running on battery?
0
[ 2, 272, 5910, 13, 9, 2328, 45, 184, 20, 2631, 100, 95, 22, 99, 946, 27, 5044, 60, 800, 3726, 3726, 31, 259, 20, 44, 21, 254, 10058, 5931, 15, 1372, 51, 7447, 15, 17, 1460, 579, 564, 100, 95, 22, 99, 946, 84, 5388, 17404, 15,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to set an initial size of a QScrollArea? === I know that this is a very specific C++ and Qt related question, but maybe someone can help me, anyway ... See the code below: I want to display an image within a scroll area. The view port of the scroll area shall have a defined initial size. That means, if the image's size is bigger than the initial size of the view port, scroll bars will be visible, otherwise not. // create label for displaying an image QImage image( ":/test.png" ); QLabel *label = new QLabel( this ); label->setPixmap( image.toPixmap() ); // put label into scroll area QScollArea *area = new QScrollArea( this ); area->setWidget( label ); // set the initial size of the view port // NOTE: This is what I'd like to do, but this method does not exist :( area->setViewPortSize( QSize( 300, 300 ) ); It shall be possible to resize the whole application so that the view port will get another size than the initial one. Unfortunatelly I was not able to find out, how to set the size of the view port. Qt's layout mechanism seems to set a default size for the view port, but up to now I was not able to change it. Setting a new size with area->setMinimumSize( QSize( 300, 300 ) ); will actually set the demanded size, but then the scroll area looses the ability to get resized to a size smaller than 300x300. Any ideas?
0
[ 2, 184, 20, 309, 40, 2104, 1072, 16, 21, 2593, 3862, 8694, 17760, 60, 800, 3726, 3726, 31, 143, 30, 48, 25, 21, 253, 1903, 272, 20512, 17, 2593, 38, 1597, 1301, 15, 47, 913, 737, 92, 448, 55, 15, 2774, 13, 9, 9, 9, 196, 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...
JQuery Validate Plugin - How to create a simple, custom rule? === How do you create a simple, custom rule using the JQuery Validate plugin (using addMethod) that doesn't use a regex? For example, what function would create a rule that validates only if at lease one of a group of checkboxes is checked?
0
[ 2, 487, 8190, 93, 7394, 1373, 10922, 108, 13, 8, 184, 20, 1600, 21, 1935, 15, 5816, 1828, 60, 800, 3726, 3726, 184, 107, 42, 1600, 21, 1935, 15, 5816, 1828, 568, 14, 487, 8190, 93, 7394, 1373, 10922, 108, 13, 5, 12655, 3547, 590...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Simplest way to convert unicode codepoint into UTF-8 === What's the simplest way to convert a Unicode codepoint into a UTF-8 byte sequence in C? The only way that springs to mind is using `iconv` to map from the UTF-32LE codepage to UTF-8, but that seems like overkill.
2
[ 2, 24384, 161, 20, 8406, 28010, 1797, 3132, 77, 287, 11720, 8, 457, 800, 3726, 3726, 98, 22, 18, 14, 24384, 161, 20, 8406, 21, 28010, 1797, 3132, 77, 21, 287, 11720, 8, 457, 34, 591, 4030, 19, 272, 60, 14, 104, 161, 30, 5264, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jQuery UI: Filter selectable dates on datepicker === I want to filter the selectable dates on a datepicker. I basically need to filter by work days - i.e. make holidays and weekends not selectable. I know you can specify dates using a function in the beforeShowDate: and you can also use $.datepicker.noWeekends. Question is: can you do both?
0
[ 2, 487, 8190, 93, 13, 5661, 45, 11945, 5407, 579, 4076, 27, 1231, 16855, 106, 800, 3726, 3726, 31, 259, 20, 11945, 14, 5407, 579, 4076, 27, 21, 1231, 16855, 106, 9, 31, 11374, 376, 20, 11945, 34, 170, 509, 13, 8, 31, 9, 62, 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...
Handling touch events within a child UIScrollView. === I'm displaying a series of images in a UIScrollView. I pretty much want to replicate the Photos application. My current architecture is: <li> A parent UIScrollView with content size that is wide enough for <i>x</i> number of pages + some extra space for margins in between the images.</li> <li> Each image is contained in a UIImageView.</li> <li> Each UIImageView is contained within its own UIScrollview which are then the subviews of the parent UIScrollView. So I basically have a row of UIScrollViews within a parent UIScrollView. The parent UIScrollView has paging enabled so I can scroll from page to page without any problems. The problem is how to seamlessly pan around a zoomed-in image. I have overridden the <code>viewForZoomingInScrollView</code> method to return the appropriate UIImageView when the user pinches in/out. I have overriden the <code>scrollViewDidEndZooming</code> method to set the parent view's <code>canCancelContentTouches</code> property to <code>NO</code> if the zoom scale is greater than 1. So users are able to pan around an image. However, they must hold their finger down for a moment to get past the small delay the parent scroll view has before sending touch events down to the subviews. Also, once the user is panning in one image, the next/prev images do not enter the viewable area when the user has reached the border of the current image. Any ideas? Thanks.
0
[ 2, 7988, 1723, 963, 363, 21, 850, 13, 5661, 3862, 8694, 4725, 9, 800, 3726, 3726, 31, 22, 79, 17418, 21, 231, 16, 3502, 19, 21, 13, 5661, 3862, 8694, 4725, 9, 31, 1772, 212, 259, 20, 22156, 14, 7064, 3010, 9, 51, 866, 2607, 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...
Autocomplete off not working in IE - ASP.Net === Question: Is there any reason Autocomplete=off on a ASP:Textbox would not be working in IE 7? In case this is the best term for it, the IE Autocomplete feature is that drop down list like thing that drops down from textboxes and shows you past things you have typed in. I need the IE Autocomplete feature to not work at this point for a textbox that is part of a user control that works like an Ajax Autocomplete control. Problem is, when the Ajax Autocomplete selection list shows up, so does the IE Autocomplete selection box. (In cases where I might double click the textbox) I'm using this: someTextbox.AutoCompleteType = AutoCompleteType.Disabled; But it stills shows up. I've tried removing the items from the IE Autocomplete, but the next time I type something in and press enter, the problem reappears. Any ideas? Note: The textbox is rendered with the Autocomplete=off tag when viewing the source.
0
[ 2, 3108, 15990, 168, 52, 638, 19, 13, 660, 13, 8, 28, 306, 9, 2328, 800, 3726, 3726, 1301, 45, 25, 80, 186, 1215, 3108, 15990, 3726, 1299, 27, 21, 28, 306, 45, 11969, 5309, 83, 52, 44, 638, 19, 13, 660, 453, 60, 19, 610, 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...
Recommendations for sandboxing inside PHP5 or alternatives? === I've been slowly working on a personnel project to run a webmud like game using extjs as my frontend. One of the design choices I made was to allow user-generated evaluated code for game logic. So when the player enters a new "room" a number of state scripts would be called along the lines of "has player been here before, should they be here, do they have x inventory item" and then respond accordingly. Furthermore basic room "actions" would be hard coded ( go N/S/E/W ) but advanced actions would be available as the same user-generated evaluated scripts. Originally I was going to be lazy and use evaluated PHP for this logic, but my paranoid sense is kicking in. So the two alternatives I have found is the runkit_sandbox but it doesn't support an interchange of objects between the primary thread and the sandbox ( just simple data types and arrays) OR using ecmascript as my game logic http://ejohn.org/blog/spicing-up-embedded-javascript/. The pro/cons of the two is that with runkit, I can lock the script down pretty hard at a tremendous cost to speed while the ecma interpreter would allow me to selectively bind variables, functions, and possibly objects to the javascript run space but its still in beta state and I've yet to see how well it runs. Is these it for options or is there something else out there I don't know about that might be a better choice? Environment: linux, PHP-CGI 5.3 or as a google app engine.
0
[ 2, 12121, 26, 1965, 5309, 68, 572, 13, 26120, 264, 54, 2676, 18, 60, 800, 3726, 3726, 31, 22, 195, 74, 1447, 638, 27, 21, 3641, 669, 20, 485, 21, 2741, 18588, 101, 250, 568, 1396, 38, 728, 18, 28, 51, 431, 2451, 9, 53, 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...
Command-line tool for finding out who is locking a file === I would like to know who is locking a file (win32). I know about [WhoLockMe][1], but I would like a **command-line tool** which does more or less the same thing. I also looked at [this question][2], but it seems only applicable for files opened remotely. [1]: http://www.dr-hoiby.com/WhoLockMe/ [2]: http://stackoverflow.com/questions/208283/is-it-possible-to-programatically-find-out-what-process-is-locking-a-file-acros
0
[ 2, 1202, 8, 1143, 5607, 26, 3007, 70, 72, 25, 17538, 21, 3893, 800, 3726, 3726, 31, 83, 101, 20, 143, 72, 25, 17538, 21, 3893, 13, 5, 4181, 3125, 6, 9, 31, 143, 88, 636, 1924, 3966, 790, 500, 2558, 165, 500, 15, 47, 31, 83, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to nest Spring JMS MessageConverters === I'd like to write a MessageConverter class that can wrap another MessageConverter. This MessageConverter would call the child converter, which is assumed to generate a TextMessage. It would take the payload and GZIP compress it, creating a BytesMessage which is ultimately returned to the sender. The problem is in writing fromMessage(). I can convert the payload back into the string, but then I want to create a "dummy" TextMessage to stuff the string into to then pass to the child MessageConverter's fromMessage() method. There I'm hitting a brick wall because I can't create a TextMessage without a JMS session object, and it appears that there is no way at all to get a session in this context. I could create additional properties to wire up more stuff to this class, but it doesn't look like I can easily even obtain a session from a JMSTemplate object, and I can't imagine what else I'd need to have. I am on the verge of creating a private TextMessage implementation within this code just for the purpose of wrapping a string for the child MessageConverter. That class will require tons of dummy methods to flesh out the Interface, and all of that typing makes baby Jesus cry. Can anyone suggest a better way?
0
[ 2, 184, 20, 5618, 1573, 487, 79, 18, 2802, 1126, 8122, 445, 800, 3726, 3726, 31, 22, 43, 101, 20, 2757, 21, 2802, 1126, 8122, 106, 718, 30, 92, 8118, 226, 2802, 1126, 8122, 106, 9, 48, 2802, 1126, 8122, 106, 83, 645, 14, 850, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Vista, Office Interop not working === Does anyone know how to get the MS Office 2007 .NET C# Interop libraries to work with Vista? I have a .NET C# application that I have setup to run as a Windows service. This program will open up a Word or Excel template depending on the situation and modify its contents and then save the document back out. All of this worked great when I was doing it on a Windows Server 2003 or XP machine using Office 2007. When I moved everything to a Server 2008 box, everything quit working. In Excel for example, I get a COM exception telling me that the Excel file cannot be opened when the file is clearly there and I can open it just fine when doing it manually. The windows service is running under the same user account that I log into the machine with and that account is an Administrator. Does anyone have any idea what to do?
0
[ 2, 13520, 15, 488, 1480, 2594, 52, 638, 800, 3726, 3726, 630, 1276, 143, 184, 20, 164, 14, 4235, 488, 624, 13, 9, 2328, 272, 5910, 1480, 2594, 8649, 20, 170, 29, 13520, 60, 31, 57, 21, 13, 9, 2328, 272, 5910, 3010, 30, 31, 57,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP Inclued for Windows? === Is there a .dll version of the <a href="http://t3.dotgnu.info/blog/php/messy-programmers-beware.html">inclued</a> extension for <a href="http://uk2.php.net/manual/en/intro.inclued.php">PHP</a>? The manual's link for <a href="http://pecl4win.php.net/ext.php/php_inclued.dll">Inclued on PECL4WIN</a> doesn't help. I don't have a compiler to build my own DLL.
0
[ 2, 13, 26120, 19, 10301, 69, 26, 1936, 60, 800, 3726, 3726, 25, 80, 21, 13, 9, 43, 211, 615, 16, 14, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 38, 240, 9, 12527, 263, 4215, 9, 108, 4120, 118, 220, 5567, 118, 26120, 118, 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...
Need to disable the screen saver / screen locking in Windows C#/.Net === For a particular application, I need the screen saver to be disabled while it's running. The operator COULD manually turn it off, and then back on later, but the easiest thing to do would be to just keep the screen saver at bay while the application is running. How do I do this? I've found code for actually turning off the screen saver with SPI_SETSCREENSAVEACTIVE, but I don't think that's what I want.
0
[ 2, 376, 20, 1460, 579, 14, 2324, 2079, 139, 13, 118, 2324, 17538, 19, 1936, 272, 5910, 118, 9, 2328, 800, 3726, 3726, 26, 21, 1498, 3010, 15, 31, 376, 14, 2324, 2079, 139, 20, 44, 10154, 133, 32, 22, 18, 946, 9, 14, 6022, 110,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Setting up a backup DB server in ASP.NET web.config file === I currently have an asp.net website hosted on two web servers that sit behind a Cisco load balancer. The two web servers reference a single MSSQL database server. Since this database server is a single point of failure, I'm adding an additional MSSQL server for backup. I would like to setup my web.config files to write everything to both MSSQL servers, but only read from the "primary" database server unless it is unreachable for some reason, at which point the backup MSSQL server would be used. Is this possible via a web.config file setting, or must this be done in code? Thanks in advance for any help.
0
[ 2, 2697, 71, 21, 10119, 13, 9007, 8128, 19, 28, 306, 9, 2328, 2741, 9, 14093, 2816, 3893, 800, 3726, 3726, 31, 871, 57, 40, 28, 306, 9, 2328, 2271, 2812, 27, 81, 2741, 17595, 30, 2066, 439, 21, 28184, 6305, 4468, 139, 9, 14, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Programmatic remote app installation === Is there anything built into Windows and the .Net framework for programmatically installing and executing applications remotely? I'd like to build a tool that can install services on a pool of new computers from one central admin workstation.
0
[ 2, 625, 6732, 5388, 4865, 7758, 800, 3726, 3726, 25, 80, 602, 392, 77, 1936, 17, 14, 13, 9, 2328, 6596, 26, 625, 6732, 1326, 25429, 17, 25836, 3767, 23288, 60, 31, 22, 43, 101, 20, 1895, 21, 5607, 30, 92, 16146, 687, 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, 0, 0, 0, 0, 0...
How to get xpath from an XmlNode instance. C# === Could someone supply some code that would get the xpath of a System.Xml.XmlNode instance? Thanks!
0
[ 2, 184, 20, 164, 993, 8353, 37, 40, 23504, 251, 546, 4851, 9, 272, 5910, 800, 3726, 3726, 110, 737, 2837, 109, 1797, 30, 83, 164, 14, 993, 8353, 16, 21, 329, 9, 396, 8184, 9, 396, 8184, 251, 546, 4851, 60, 3669, 187, 3, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Single Table Inheritance in Django === Is there explicit support for Single Table Inheritance in Django? Last I heard, the feature was still under development and debate. Are there libraries/hacks I can use in the meantime to capture the basic behavior? I have a hierarchy that mixes different objects. The canonical example of a corporation structure with an Employee class, subclasses for types of employees, and a manager_id (parent_id) would be a good approximation of the problem I am solving.
0
[ 2, 345, 859, 13852, 19, 3857, 14541, 800, 3726, 3726, 25, 80, 14990, 555, 26, 345, 859, 13852, 19, 3857, 14541, 60, 236, 31, 752, 15, 14, 1580, 23, 174, 131, 522, 17, 4503, 9, 50, 80, 8649, 118, 22983, 18, 31, 92, 275, 19, 14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Meta-composition during music performances === A couple of weeks ago, my piano teacher and I were bouncing ideas off of each other concerning meta-composing music software. The idea was this: There is a system taking midi input from a bunch of instruments, and pushes output to the speakers and lights. The software running on this system analyzes the midi data it's getting, and determines which sounds to use, based on triggers set up by the composer (when I play an F7 chord 3 times within 2 seconds, switch from the harpsichord sound to the piano sound), pedals, or actual real-time analysis of the music. It would control the lights based on the performance and sounds of the instruments in a similar fashion - the musician would only have to vaguely specify what they wanted - and real time analysis of their playing would do the rest. On the fly procedurally generated music could play along with the musician as well. Essentially, the software would play along with the performer, with one guiding the other. I imagine that it would take some practice to get use to such a system, but that it could have quite incredible results. I'm a big fan of improv jazz. One characteristic of improv that is lacking from other art forms is the temporalness of it. A painting can be appreciated 10 or 1000 years after it has been painted, but music (especially extemporized music) is about the performance as it is the creation. I think that the software that I described would add a great deal to the performance, as with it, as playing the exact same piece would result in a completely different show each time. So, now for the questions. Am I crazy? Does software to do any or all of this exist yet? I've done some research and haven't turned up anything. The key to this system is that it is running during the performance. Were I to write something like this, would a scripting language such as Python be fast enough to do the computations that I need? Presumably it'd be running on a fairly quick system, and could take advantage of the 2^n core processors Intel keeps releasing. Can any of you share your experience and advice concerning interfacing with musical instruments and lights and the like? Have any ideas or suggestions? Cold and harsh criticism? Thanks for your time in reading this, and for any and all advice! (And sorry for the joke in the tags, I couldn't resist.)
0
[ 2, 7618, 8, 960, 9339, 112, 232, 3200, 800, 3726, 3726, 21, 1335, 16, 1342, 1464, 15, 51, 1925, 2197, 17, 31, 46, 19741, 3478, 168, 16, 206, 89, 6477, 7618, 8, 960, 14717, 232, 2306, 9, 14, 882, 23, 48, 45, 80, 25, 21, 329, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Method for email testing === I am writing a program that will be emailing reports out many (~100) clients which I want to test before I spam everyone. I want to do a test run against my production data and actually send the messages to a SMTP server, but I don't want the SMTP server to actually deliver the messages. I want the server to act like a real SMTP server from the perspective of my application, but instead of delivering messages, I just want it to store the messages, and log what happened. Is there a SMTP server specifically designed for testing purposes? Does anyone know of a way to configure exim or postfix to behave like I have described above What do you use to test a mass-email delivery?
0
[ 2, 2109, 26, 8517, 4431, 800, 3726, 3726, 31, 589, 1174, 21, 625, 30, 129, 44, 8517, 68, 2813, 70, 151, 13, 5, 1, 4031, 6, 7421, 56, 31, 259, 20, 1289, 115, 31, 6954, 79, 1266, 9, 31, 259, 20, 107, 21, 1289, 485, 149, 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...
How do I view the contents of an IXMLDOMElementPtr when building an XML file? === I'm using IXMLDOM in MSXML 6 to build an XML file in a C++ MFC application. Is there a way to see the contents of the xml document while it is in memory? For example, an XPATH query is failing about halfway through creating the file. How would I view the entire contents of the xml doc? Thanks, Steve
0
[ 2, 184, 107, 31, 1418, 14, 8478, 16, 40, 17053, 8184, 5555, 27567, 4417, 139, 76, 353, 40, 23504, 3893, 60, 800, 3726, 3726, 31, 22, 79, 568, 17053, 8184, 5555, 19, 4235, 396, 8184, 400, 20, 1895, 40, 23504, 3893, 19, 21, 272, 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...
URL Based Authentication Link === What are some good suggestions or resources to look at to help me secure a single click URL based authentication? Essentially, the situation is a third party system which accepts an HTTP request, through the browser, where you supply authentication information (un, pw, authkey, ect...). The service then, upon authenticating the provided credentials, will allow or deny login access. The point being, that if someone clicks on the link, they're automatically granted access to this third party system. Currently, there isn't a whole lot of security surrounding the whole process, (which isn't a big deal because the product isn't in production yet) and the third party is willing to make some modifications to secure this up a bit. I've already determined I need to hash the information, and probably even submit it via a POST to prevent it from showing information in the browser history. But I'd like a little input on how you all would handle something like this.
0
[ 2, 287, 6362, 432, 27963, 3508, 800, 3726, 3726, 98, 50, 109, 254, 18389, 54, 2566, 20, 361, 35, 20, 448, 55, 4315, 21, 345, 10840, 287, 6362, 432, 27963, 60, 7398, 15, 14, 1858, 25, 21, 422, 346, 329, 56, 16548, 40, 7775, 3772,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Matching an optional substring in a regex === I'm developing an algorithm to parse a number out of a series of short-ish strings. These strings are somewhat regular, but there's a few different general forms and several exceptions. I'm trying to build a set of regexes that will handle the various forms and exceptions; I'll apply them one after another to see if I get a match. One of these forms goes something like this: X (Y) Z Where: * X is a number I want to capture. * Z is static, pre-defined text. it's basically how I determine whether this particular form is applicable or not. * Y is a a string of unknown length and content, surrounded by parenthesis. Also: Y is optional; it doesn't always appear in a string with Z and X. So, I want to be able to extract the numbers from all of these strings: * 10 Z * 20 (foo) Z * 30 (bar) Z Right now, I have a regex that will capture the first one: ([0-9]+) +Z My problem is that I don't know how to construct a regex that will match a series of characters if and only if they're enclosed in parenthesis. Can this be done in a single regex?
0
[ 2, 10120, 40, 12832, 972, 11130, 19, 21, 7953, 1706, 800, 3726, 3726, 31, 22, 79, 3561, 40, 9083, 20, 2017, 870, 21, 234, 70, 16, 21, 231, 16, 502, 8, 1595, 7887, 9, 158, 7887, 50, 4131, 1290, 15, 47, 80, 22, 18, 21, 310, 42...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to link work items across projects in TFS === In Team Foundation Server is there a way to have work items in one project linked to other projects so they show up in the reports in both. We are thinking about keeping release engineering items in their own project and want them linked to the project they are actaully for as well. Is this possible? So for instance I would create the item under release engineering assign it to an engineer and then link it to Product X so it showed up as a work item for Project X as well.
0
[ 2, 25, 80, 21, 161, 20, 3508, 170, 3755, 464, 2314, 19, 13, 11720, 18, 800, 3726, 3726, 19, 173, 1304, 8128, 25, 80, 21, 161, 20, 57, 170, 3755, 19, 53, 669, 4727, 20, 89, 2314, 86, 59, 298, 71, 19, 14, 2813, 19, 156, 9, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SqlCacheDependecy command notification not working === I been trying to get sqlcachedependecy working, but it doesn't appear to work I got the proper settings in my web.config and also global.asa, however when I run this query and the changes are made to the database from either with in or outside the web site the cached objects are not updated please someone help? I know its not because this query is querying a view, because I tested this using straight SqlDependecy and the notification works fine. public IQueryable<VictoryList> GetVictoryList() { string cacheKey = HttpContext.Current.User.Identity.Name + "victoryCacheKey"; IQueryable<VictoryList> cachednews = (IQueryable<VictoryList>)HttpContext.Current.Cache.Get(cacheKey); if (cachednews == null) { var results = from v in _datacontext.ViewVictoryLists orderby _datacontext.GetNewId() select new VictoryList { MemberID = v.MemberID, Username = v.Aspnetusername, Location = v.Location, DaimokuGoal = v.DaimokuGoal, PreviewImageID = v.PreviewImageID, TotalDaimoku = v.TotalDaimoku, TotalDeterminations = v.TotalDeterminations, DeterminationID = v.DeterminationID, DeterminationName = v.DeterminationName }; results = results.ToList().AsQueryable(); SqlCacheDependencyAdmin.EnableNotifications(_datacontext.Connection.ConnectionString); SqlCacheDependency dependency = new SqlCacheDependency(_datacontext.GetCommand(results) as SqlCommand); HttpContext.Current.Cache.Insert(cacheKey, results, dependency); return results; } return cachednews; }
0
[ 2, 4444, 6109, 9616, 19038, 62, 2731, 1202, 52, 4634, 52, 638, 800, 3726, 3726, 31, 74, 749, 20, 164, 4444, 6109, 9616, 19038, 62, 2731, 638, 15, 47, 32, 1437, 22, 38, 1893, 20, 170, 31, 330, 14, 4119, 12410, 19, 51, 2741, 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...
Web Subversion repository-browsing tool, with a twist === I've seen a number of questions asking about a web SVN repository-browsing tool. However, of the ones I've taken a look at, they either require a specific username/password to be configured, rely on default access to the repository being available, or require a separate user database outside Subversion. In a corporate setting, SVN repository admins may lock down the repository so that there isn't a "guest" or "anonymous" account that has access. And if they're using the domain username/password for access to these, it's not really a great idea to embed a real user's authentication details into a configuration file like that. Is there a Subversion repository browser that takes username/password information from the user and uses that to authenticate any SVN requests made on their behalf?
0
[ 2, 2741, 972, 10898, 24869, 8, 25699, 18, 68, 5607, 15, 29, 21, 7844, 800, 3726, 3726, 31, 22, 195, 541, 21, 234, 16, 2346, 3379, 88, 21, 2741, 13, 18, 16578, 24869, 8, 25699, 18, 68, 5607, 9, 207, 15, 16, 14, 53, 18, 31, 22...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
java message bundle - property file naming convention when using variants? === what is the naming convention for message bundle property files when using variants? for instance, if the locale is EN US, the property file lookup will be message_en_US.properties though, what if I instantiate a local EN US though the variant string is "DEVL" what is the search order?
0
[ 2, 8247, 2802, 10194, 13, 8, 1354, 3893, 10929, 3087, 76, 568, 11070, 60, 800, 3726, 3726, 98, 25, 14, 10929, 3087, 26, 2802, 10194, 1354, 6488, 76, 568, 11070, 60, 26, 4851, 15, 100, 14, 375, 62, 25, 1957, 182, 15, 14, 1354, 38...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Passing database connection by reference in PHP === The question is if a database connection should be passed in by reference or by value? For me I'm specifically questioning a PHP to MySQL connection, but I think it applies to all databases. I have heard that in PHP when you pass a variable to a function or object, that it is copied in memory and therefore uses twice as much memory immediately. I have also heard that it's only copied once changes have been made to the value (such as a key being added/removed from an array). In a database connection, I would think it's being changed within the function as the query could change things like the last insert id or num rows. (I guess this is another question: are things like num rows and insert id stored within the connection or an actual call is made back to the database?) So, does it matter memory or speed wise if the connection is passed by reference or value? Does it make a difference PHP 4 vs 5? function DoSomething1(&$connection) { ... } function DoSomething2($connection) { ... }
0
[ 2, 2848, 6018, 2760, 34, 2801, 19, 13, 26120, 800, 3726, 3726, 14, 1301, 25, 100, 21, 6018, 2760, 378, 44, 1100, 19, 34, 2801, 54, 34, 1923, 60, 26, 55, 31, 22, 79, 3524, 11403, 21, 13, 26120, 20, 51, 18, 22402, 2760, 15, 47, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Color regex matches - without dropping misses === When using `grep --color=always` I can get pretty color highlighting for regex matches. However, `grep` only returns lines with at least one match. Instead, I am looking for a way to simply highlight regex matches, while leaving all other input alone, without dropping lines without any matches. I have tried to get color working with `sed`, and read the `grep` documentation, but I can't seem to get what I want. In case my description isnt obvious, I want: INPUT: - fred - ted - red - lead Regex: - ".*red" OUTPUT: - <font color="red">fred</font> ( in red ) - ted - <font color="red">red</font> ( in red ) - lead So that I could do: list_stuff | color_grep "make_this_stand_out_but_dont_hide_the_rest"
0
[ 2, 1665, 7953, 1706, 1717, 13, 8, 366, 6780, 24613, 800, 3726, 3726, 76, 568, 13, 1, 6879, 306, 13, 8, 8, 11282, 3726, 21284, 1, 31, 92, 164, 1772, 1665, 23102, 26, 7953, 1706, 1717, 9, 207, 15, 13, 1, 6879, 306, 1, 104, 4815,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python snippet to remove C and C++ comments === I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C soure file.) I realize that I could .match() substrings with a Regex, but that doesn't solve nesting <code>/*</code>, or having a <code>//</code> inside a <code>/* */.</code> Ideally, I would prefer a non-naive implementation that properly handles awkward cases.
0
[ 2, 20059, 13, 29061, 20, 4681, 272, 17, 272, 20512, 7534, 800, 3726, 3726, 31, 22, 79, 699, 26, 20059, 1797, 30, 4681, 18, 272, 17, 272, 20512, 7534, 37, 21, 3724, 9, 13, 5, 9755, 9472, 14, 3724, 1588, 40, 1078, 272, 86, 4221, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Alternatives to RealServer (Helix) and Real Player. === For years we've been using RealNetworks' Helix server to serve streaming video courses. It has been a pretty reliable solution up until now. As of late, our support calls due to RealPlayer issues has gone from 2 or 3 a week (mostly PEBKAC or firewall issues) to up to about 10 a day. I've been arguing to dump Real in favour of something else, but I really need to put together a proposal. What are the alternatives based on the requirements below? Requirements: 1. Streaming, not download and play. 2. Clickable bookmarks embedded in the video (Real Text); 3. Able to handle about 100 simultaneous connections. 4. Able to recognize authentication from another server on the same network. Constraints: 1. Small, free (as in beer) client/player (i.e. No embedded itunes!) 2. Platform independence of client/player (player must be available to windows/mac/linux)
0
[ 2, 2676, 18, 20, 683, 10321, 106, 13, 5, 438, 13541, 6, 17, 683, 517, 9, 800, 3726, 3726, 26, 122, 95, 22, 195, 74, 568, 683, 24106, 18, 22, 24, 13541, 8128, 20, 1884, 11920, 763, 4392, 9, 32, 63, 74, 21, 1772, 11398, 4295, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
sed one liner === I need to to iterate over the files in a directory and perform the following replacement. **Before:** > Hello ${USER_NAME}, you live at > ${HOME_ADDRESS}. It is now ${TIME} **After:** > Hello ${userName}, you live at > ${homeAddress}. It is now ${time} I know that the basic command will look like this find . -name '*' -exec sed 's/XXX/YYY/g' {} \; But I can't figure out 1. What to substitute for XXX and YYY 2. How to redirect the output of the sed command back into the input file Cheers, Donal
0
[ 2, 13924, 53, 12588, 800, 3726, 3726, 31, 376, 20, 20, 32, 106, 1373, 84, 14, 6488, 19, 21, 16755, 17, 2985, 14, 249, 4610, 9, 13, 1409, 12750, 45, 1409, 13, 1, 10975, 5579, 1, 16704, 1, 7259, 1, 15, 42, 515, 35, 13, 1, 5579...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...