unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
XmlReader - Self-closing element does not fire a EndElement event? === I am using XmlReader in .NET to parse an XML file using a loop: while (xml.Read()) { switch xml.NodeType { case XmlNodeType.Element: //Do something case XmlNodeType.Text: //Do something case XmlNodeType.EndElement: //Do something } } I was wondering if it was normal that the following XML code does not produce some EndElement nodes? Please note the missing space before the /> but I don't think that's the problem. <date month="November" year="2001"/> <zone name="xml"/> Is there a different NodeType or property to indicate a self-closing element?
0
[ 2, 23504, 10647, 106, 13, 8, 1119, 8, 13023, 18, 68, 4520, 630, 52, 535, 21, 241, 27567, 807, 60, 800, 3726, 3726, 31, 589, 568, 23504, 10647, 106, 19, 13, 9, 2328, 20, 2017, 870, 40, 23504, 3893, 568, 21, 5293, 45, 133, 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...
When to Use Static Classes in C# === Here's what MSDN has to say under "When to Use Static Classes": > static class CompanyInfo > { > public static string GetCompanyName() { return "CompanyName"; } > public static string GetCompanyAddress() { return "CompanyAddress"; } > //... > } > Use a static class as a unit of > organization for methods not > associated with particular objects. > Also, a static class can make your > implementation simpler and faster > because you do not have to create an > object in order to call its methods. > It is useful to organize the methods > inside the class in a meaningful way, > such as the methods of the Math class > in the System namespace. To me, that example doesn't seem to cover very many possible usage scenarios for static classes. In the past I've used static classes for stateless suites of related functions, but that's about it. So, under what circumstances should (and shouldn't) a class be declared static?
0
[ 2, 76, 20, 275, 12038, 2684, 19, 272, 5910, 800, 3726, 3726, 235, 22, 18, 98, 4235, 43, 103, 63, 20, 395, 131, 13, 7, 3185, 20, 275, 12038, 2684, 7, 45, 13, 1, 12038, 718, 237, 108, 4120, 13, 1, 13, 1, 13, 1, 317, 12038, 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...
For ruby/webrick, I need windows to recognize shebang (#!) notation. === (Bear with me, I promise this gets to shebang and windows.) I have about the simplest of WEBRick servers put together: require 'webrick' include WEBrick s = HTTPServer.new(:Port=>2000, :DocumentRoot=>Dir::pwd) s.start Couldn't be simpler. This basic server does accept http connections (firefox, internet exploder, wget, TELENT) and deals with them appropriately, as long as I'm just fetching static documents. If, however, I set one of the files in the directory to have a .cgi extension, I get a 500 back and the following on the server's terminal: ERROR CGIHandler: c:/rubyCGI/test.cgi: C:/...[snip]...webrick/httpservlet/cgi_runner.rb:45: in 'exec': Exec format error - ...[snip]... I've done a few things on the command line to mimic what is going on in line 45 of cgi_runner.rb c:\>ruby exec "c:/rubyCGI/test.cgi" ^Z (same error erupts) c:\>ruby exec "ruby c:/rubyCGI/test.cgi" ^Z Content-type: text/html Mares eat oats and does eat oats and I'll be home for Christmas. Clearly, WEBrick hasn't been cleared for landing on windows. Your usual headaches of corporate paranoia prevent me from modifying webrick, so **can I get the shebang notation in c:/rubyCGI/test.cgi recognized by the OS (windows) so I don't have to explicitly tell it each time which interpreter to use?** I could assign all .cgi files to be associated with ruby, but that would be limiting in the long run.
0
[ 2, 26, 10811, 118, 458, 21406, 15, 31, 376, 1936, 20, 5844, 39, 10828, 13, 5, 5910, 187, 6, 15591, 9, 800, 3726, 3726, 13, 5, 19337, 29, 55, 15, 31, 3340, 48, 3049, 20, 39, 10828, 17, 1936, 9, 6, 31, 57, 88, 14, 24384, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to display Swing components in a JSP? === I was wondering if I could pop up <code>JOptionPane</code>s or other Swing components from within a browser using JSP.
0
[ 2, 25, 32, 938, 20, 3042, 5587, 5090, 19, 21, 487, 3401, 60, 800, 3726, 3726, 31, 23, 5712, 100, 31, 110, 1675, 71, 13, 1, 9375, 1, 1636, 306, 3309, 16660, 1, 118, 9375, 1, 18, 54, 89, 5587, 5090, 37, 363, 21, 16495, 568, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Should I take programming courses when I already have experience? === I have been a programmer for about 3 and a half years. I took a few computer science courses in college ( specifically C and Java), but recently feel like there's a number of things I wish I knew. Real nuts and bolts computer science type things. Stack versus heap. Design patterns, good database design. I am reluctant to go back to school since I have a Master's in math, and I still feel like I have had my fill. However, is there something that I could have learned in classes that I won't have already learned in the real world? If so, that could outweigh my hesitancy.
4
[ 2, 378, 31, 247, 3143, 4392, 76, 31, 614, 57, 1496, 60, 800, 3726, 3726, 31, 57, 74, 21, 17968, 26, 88, 203, 17, 21, 519, 122, 9, 31, 199, 21, 310, 1428, 762, 4392, 19, 314, 13, 5, 3524, 272, 17, 8247, 6, 15, 47, 1989, 583...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 exactly is the deal with oracle connection identifiers separated by a period === I've been wondering this for a while but since it hasn't come up much I've left it in the 'mysterious wizardy' column. It seems to me that there is some sort of relationship between a connection identifier like ABC and ABC.DEFG and I don't quite get what it is. For example, a machine I was setting up just now I was having problems with using the identfier ED2 even though in my tnsnames file I clearly had EDC2 = (....) This was copied and pasted from another computer which worked just fine. However, doing tnsping EDC2 would fail to resolve until I changed it to say EDC2.WORLD = (...) at which point resolving to EDC2 started working. What is going on here?
0
[ 2, 98, 1890, 25, 14, 1183, 29, 15759, 2760, 25570, 18, 4196, 34, 21, 620, 800, 3726, 3726, 31, 22, 195, 74, 5712, 48, 26, 21, 133, 47, 179, 32, 9979, 22, 38, 340, 71, 212, 31, 22, 195, 225, 32, 19, 14, 13, 22, 915, 1911, 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 you unit test different class access levels? === I admit - I'm a complete novice when it comes to unit testing. I can grasp the concepts easily enough (test one thing, break-fix-test-repeat, etc.), but I'm having a bit of a problem getting my mind around this one... I've been tasked with rewriting a large section of our application, and I've got the class structure down pretty well. We have our test projects mixed right in with the rest of the solution, and all the references are lining up the way we want them to. Unfortunately, there are a few Friend classes that can only be accessed from inside the same namespace. As it stands, the test class is not a member of this namespace, so I cannot get direct access to any of those underlying methods, which **REALLY** need to be tested. From what I've been reading, I could create a public mockup of the classes in question and test it that way, but I'm concerned that down the road someone will make a change in the production code and not copy it out to the test code, defeating the purpose of testing entirely. Another option would be to change the access level on the classes themselves, but that would involve a lot of overhead and fiddling with the code already in place. The idea of writing an interface has also come up, but creating a whole structure of interfaces for the sake of testing hasn't flown in management. Am I just missing something here? What would be the best way to make sure those underlying classes are indeed functioning correctly without changing the access to them?
0
[ 2, 184, 107, 42, 1237, 1289, 421, 718, 1381, 2216, 60, 800, 3726, 3726, 31, 5251, 13, 8, 31, 22, 79, 21, 1279, 21999, 76, 32, 1624, 20, 1237, 4431, 9, 31, 92, 10677, 14, 8700, 2351, 511, 13, 5, 10543, 53, 584, 15, 1442, 8, 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...
best way to generate and highlight menu items on server (asp.net) === I have an ascx component, that holds two-level menu, because there are several user types, and the menu needs to be computed on server. Anyways - I'm also doing the highlighting of current menu item on server (adding a selected class/css to an item). Highlighting with javascript is not good option, because there is content in datagrids, that causes postback and needs to remain the menu in the same position as selected value is. So I am doing this as some kind of mapping with a hashtable (e.g. pairs (url-of-the-site, menu-item-to-highlight)), and i have to include a mapping for every site my web application contains in order i want to have menus highlighted... so somehow it bothers me that there has to be a better way to do this. are there any better techniques?
0
[ 2, 246, 161, 20, 7920, 17, 14373, 11379, 3755, 27, 8128, 13, 5, 472, 306, 9, 2328, 6, 800, 3726, 3726, 31, 57, 40, 28, 150, 396, 5912, 15, 30, 2763, 81, 8, 3906, 11379, 15, 185, 80, 50, 238, 4155, 2551, 15, 17, 14, 11379, 22...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What does $# mean in Perl? === I'm looking at the following code snippet: my @ret = <someMethod> return ( undef) if( $DB_ERROR ) ; return (undef) unless ($#ret >= 0); Does $# just give you a count of elements in a hash?
0
[ 2, 98, 630, 5579, 5910, 884, 19, 416, 255, 60, 800, 3726, 3726, 31, 22, 79, 699, 35, 14, 249, 1797, 13, 29061, 45, 51, 13, 1, 6239, 800, 13, 1, 3220, 5909, 1807, 43, 1, 788, 13, 5, 367, 13862, 6, 100, 5, 5579, 9007, 1, 299...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Relative paths in Windows XP === I have a rather simple question, but I am not sure what I am doing wrong. I have an application which works perfectly in MacOs and I want to make it work in windows xp. I have a function which returns this one. This is where I declare my folder My_Home. > return "." + File.separator + "My_Home" + File.separator + HomePane.objFile ; I want to do the same thing in windows. I have tried: > return File.separator + "My_Home" + File.separator + HomePane.objFile ; > > return "My_Home" + File.separator + HomePane.objFile ; > > ".\My_Home\" HomePane.objFile ; > "\My_Home\" HomePane.objFile ; > "My_Home\" HomePane.objFile ; > "./My_Home/" HomePane.objFile ; etc But nothing seems to work in windows, because all the objects (I want to use this return in order to save some objects in folder My_Home) are saved outside of the folder... Please, any help? Dimitra
0
[ 2, 4543, 12074, 19, 1936, 23045, 800, 3726, 3726, 31, 57, 21, 864, 1935, 1301, 15, 47, 31, 589, 52, 562, 98, 31, 589, 845, 1389, 9, 31, 57, 40, 3010, 56, 693, 5759, 19, 1572, 759, 17, 31, 259, 20, 233, 32, 170, 19, 1936, 230...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 add a UIButton to AdWhirl ad banner? === How to add a UIButton to AdWhirl ad banner? Trivial `[adWhirlView addSubview: button]` doesn't work. Button doesn't appear.
0
[ 2, 184, 20, 3547, 21, 13, 5661, 811, 444, 20, 21, 43, 9373, 6362, 21, 43, 7492, 60, 800, 3726, 3726, 184, 20, 3547, 21, 13, 5661, 811, 444, 20, 21, 43, 9373, 6362, 21, 43, 7492, 60, 13, 19712, 13, 1, 2558, 1283, 9373, 6362, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Javascript or other method to read entire HTML page with speech (offline) === I'm trying to add a visual impaired option to an HTML5 based kiosk that runs offline. The idea is that once a a button is clicked each page's text is read out loud (only 1 text box per page which is loaded from external txt file) speak.js seems like an option but the voice quality isn't that great. I had a look at some chrome plug ins but they all require you to select the text first. I'd like to try jTalk but still waiting on a download link from the creator - not sure if that will work anyway as this needs to run locally on the windows 7 pc serving as the kiosk. The chrome plugins seem to work nicely but they all require the text to be selected and I'm not sure how I could control text being read or not via n HTMl/JS link anyway. therefore ideally I'd like a Jscript library that would let me execute the command on a page per page basis. Any ideas / suggestions? Thanks!
0
[ 2, 8247, 8741, 54, 89, 2109, 20, 1302, 1078, 13, 15895, 2478, 29, 2974, 13, 5, 1299, 1143, 6, 800, 3726, 3726, 31, 22, 79, 749, 20, 3547, 21, 3458, 22311, 4255, 20, 40, 13, 15895, 264, 432, 28092, 30, 1461, 168, 1143, 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...
Replace OpenSSL in oauth2client.crypt to work with PyCrypto === Google App Engine support [PyCrypto](https://developers.google.com/appengine/docs/python/tools/libraries#PyCrypto), but does not bundle it with the dev version. So I have installed it. I want to use the oauth2client SignedJwtAssertionCredentials, which internally uses OpenSSL (which is currently not supported by app-engine). So I am assuming that there is a way to get oauth2client to work with PyCrypto (by potentially making a local copy and making a python level change). Any pointers/help would be much appreciated. Thanks.
0
[ 2, 3934, 8965, 18, 255, 19, 635, 1346, 96, 135, 150, 18513, 38, 9, 11435, 20, 170, 29, 7103, 11435, 111, 800, 3726, 3726, 8144, 4865, 1406, 555, 636, 6448, 11435, 111, 500, 5, 21127, 18, 6903, 26051, 445, 9, 16111, 4875, 9, 960, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
error C2039: 'Dispose' : is not a member of 'System::Windows::Forms::ErrorProvider' === I am trying to use ErrorProvider Class to show error on checkbox. I am able to show the error using the following code errorProvider1->SetError(checkBox1,"Error"); But when I am trying to dispose this errorProvider using the following code errorProvider1->Dispose(); Then this line is showing error error C2039: 'Dispose' : is not a member of 'System::Windows::Forms::ErrorProvider' This Code I am able to run successfully in vc# but not in vc++; But since My requirement is to use this in vc++. Can anybody please tell me what is the problem in this code. Thanks in Advance
0
[ 2, 7019, 272, 1323, 3412, 45, 13, 22, 2906, 15690, 22, 13, 45, 25, 52, 21, 322, 16, 13, 22, 10724, 45, 45, 27508, 18, 45, 45, 4190, 18, 45, 45, 29992, 26735, 139, 22, 800, 3726, 3726, 31, 589, 749, 20, 275, 7019, 26735, 139, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Asp.net Accordion getting control in ContentTemplate === I had problems with asp.net Accordion. 1st problem is that i had a some server side hidden control(button or label) with Visible =false inside the contentTemplate. When a button is trigger, my code behind will get the hidden control in contentTemplate and change visible = true. However, this only work in the 1st Pane of the Accordion,the rest of the pane does not work. 2nd problem is that i was unable to get the right ContentTemplate's control. I will always get the 1st pane of the Accordion's control,even if i selected the other pane. Sry about my bad English and hope that someone can help me with this problem. Here are the codes: Aspx <asp:Accordion ID="Accordion1" CssClass="accordion" HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected" ContentCssClass="accordionContent" runat="server" Width="580" onitemcommand="Accordion1_ItemCommand"> <HeaderTemplate> <%#DataBinder.Eval(Container.DataItem, "Name") %> </HeaderTemplate> <ContentTemplate> <div style="float:left;"> <asp:HyperLink ID="HyperLink1" NavigateUrl='<%# Eval("SoftwareId", "~/GetImage.ashx?Software={0}") %>' runat="server"><asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("SoftwareId", "~/GetImage.ashx?Software={0}") %>' Height="120px" Width="120px" /></asp:HyperLink> <br /> <asp:FileUpload ID="ChangeImage" runat="server" Visible="False" Width="120px" /> <br /> <asp:Button ID="Download" runat="server" Text="Download" onclick="Download_Click" CommandArgument='<%#Eval("Name") %> ' /> </div> <div style="float:left; margin-left:10px;"> <div class="SoftwareUploadedForm"> <asp:Label ID="LabelChangeDesc" runat="server" Text="Descriptions:"></asp:Label> <asp:TextBox ID="ChangeDesc" runat="server" ReadOnly="True" Rows="5" TextMode="MultiLine" Text='<%#Eval("Descriptions") %>'></asp:TextBox> </div> <div class="SoftwareUploadedForm"> <asp:Label ID="LabelChangeVersion" runat="server" Text='<%# Eval("CurrentVersion","Current Version: {0}") %>'></asp:Label> </div> <div class="SoftwareUploadedForm"> <asp:Label ID="LabelChangePrice" runat="server" Text='<%# Eval("Price","Retail Price: $ {0}") %>'></asp:Label> <asp:TextBox ID="ChangePrice" runat="server" Text='<%#Eval("Price") %>' ></asp:TextBox> </div> <div class="SoftwareUploadedForm"> <asp:Label ID="LabelChangeStartDate" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"StartDate","Release Date: {0:d}") %>'></asp:Label> <asp:TextBox ID="ChangeStartDate" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"StartDate","{0:d}") %>' ></asp:TextBox> <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="ChangeStartDate"> </asp:CalendarExtender> </div> <div class="ButtonHolder"> <asp:Button ID="EditSoftware" runat="server" Text="Edit" CommandArgument='<%#Eval("SoftwareId") %> ' CommandName="edit"/> <asp:Button ID="CancelChanges" runat="server" Text="Cancel" Visible="False" CommandArgument='<%#Eval("SoftwareId") %> '/> <asp:Button ID="SaveChanges" runat="server" Text="Save Changes" Visible="True" CommandArgument='<%#Eval("SoftwareId") %> ' CommandName="update"/> </div> </div> </ContentTemplate> </asp:Accordion> Code-behind: protected void Page_Load(object sender, EventArgs e) { Accordion1.DataSource = getAllSoftwares(); //Returns DataSet Accordion1.DataBind(); } internal static IQueryable getAllSoftwares() { Guid developer = (Guid)DeveloperAccountProfile.CurrentUser.GUID; WindmillDataContext db = new WindmillDataContext(); var softwareList = (from s in db.Softwaredatas join img in db.SoftwareImagedatas on s.SoftwareId equals img.SoftwareId join v in db.Versiondatas on s.SoftwareId equals v.SoftwareId orderby s.SoftwareId where s.DeveloperId ==developer select s ); return softwareList; } protected void Accordion1_ItemCommand(object sender, CommandEventArgs e) { if (e.CommandName == "edit") { int id = int.Parse(e.CommandArgument.ToString()); //Button display Button saveChanges = (Button)Accordion1.FindControl("SaveChanges"); saveChanges.Visible = true; Button cancelChanges = (Button)Accordion1.FindControl("CancelChanges"); cancelChanges.Visible = true; Button editSoftware = (Button)Accordion1.FindControl("EditSoftware"); editSoftware.Visible = false; //Control Enable edit TextBox desc = (TextBox)Accordion1.FindControl("ChangeDesc"); desc.ReadOnly = false; TextBox price = (TextBox)Accordion1.FindControl("ChangePrice"); price.Visible = true; FileUpload image = (FileUpload)Accordion1.FindControl("ChangeImage"); image.Visible = true; Label labelprice = (Label)Accordion1.FindControl("LabelChangePrice"); labelprice.Text = "Retail Price: $"; if (Entity.Software.getSoftwareSales(id) == false) { TextBox startDate = (TextBox)Accordion1.FindControl("ChangeStartDate"); startDate.Visible = true; Label labelstartDate = (Label)Accordion1.FindControl("LabelChangeStartDate"); labelstartDate.Text = "Release Date: "; } } if (e.CommandName == "update") { TextBox price = (TextBox)Accordion1.FindControl("ChangePrice"); price.ToString(); } }
0
[ 2, 28, 306, 9, 2328, 20753, 1017, 569, 19, 2331, 9577, 6554, 800, 3726, 3726, 31, 41, 1716, 29, 28, 306, 9, 2328, 20753, 9, 137, 384, 1448, 25, 30, 31, 41, 21, 109, 8128, 270, 3689, 569, 5, 811, 444, 54, 1899, 6, 29, 4560, 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...
Custom Annotation view for userlocation not moving the mapview === Can we have custom annotation view for the users current location in iOS? I need to remove the blue dot (with circles) with my own custom view (say some ping pin). Is it possible to do this? If we do, does this pin move to new location when there is change in user's location? or we need to handle to programmatically. I observed that if we use default blue dot for user's current location, then its gets updated in the map when there is change in user location. I just want to know if this can be done with our own custom view.
0
[ 2, 5816, 40, 1270, 857, 1418, 26, 4155, 19032, 52, 1219, 14, 2942, 4725, 800, 3726, 3726, 92, 95, 57, 5816, 40, 1270, 857, 1418, 26, 14, 3878, 866, 1474, 19, 13, 7760, 60, 31, 376, 20, 4681, 14, 705, 14123, 13, 5, 1410, 7845, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cannot convert <QueryDict: {u..to decimal after limiting foreign key === I have a django modelForm that it was being submitted successfully until I added this code in my forms.py: `def __init__(self, own_id=None, **kwargs): super(WebrequestsForm, self).__init__(**kwargs) if own_id: self.fields['veh_id1'].queryset = Vehicles.objects.filter(own_id1=own_id) self.fields['veh_id2'].queryset = Vehicles.objects.filter(own_id2=own_id) ` in order to limit the entries of the above foreign keys. After that only the related choices appeared in the form as expected but the form couldn't be submitted. I get the following error: `Cannot convert <QueryDict: {u'attachment2flag': [u'on'], u'nod_id1': [u'70'], u'vrd_id': [u'1'], u'nod_id2': [u'50'], u'tel': [u'2310566167'], u'directiondb': [u'1'], u'rdateto': [u'1/2/2013'], u'sendmethod': [u'1'], u'fax': [u'2310511559'], u'submitdate': [u'1'], u'email': [u'info@rdfvfvd.com'], u'veh_id2': [u'878'], u'veh_id1': [u'2978'], u'returnflag': [u'1'], u'reqtype': [u'1'], u'remarks': [u'1'], u'csrfmiddlewaretoken': [u'1Vhl04H1HgelkDdnS6IsCw61dtSyitkX'], u'rdatefrom': [u'1/2/2012'], u'id': [u'22065'], u'own_id': [u'148']}> to Decimal` veh_id1 and veh_id2 are decimal fields so I guess that with the filtering something wrong tries to be saved there. How can I return in the dropdown list the id of the object with this self.fields['veh_id1'].queryset = Vehicles.objects.filter(own_id1=own_id) that needs to be saved? I can sense where the prob is but I have no idea how to solve this cause I'm newbie in django.
0
[ 2, 1967, 8406, 13, 1, 8190, 93, 16315, 45, 13, 1, 291, 9, 9, 262, 26380, 75, 17567, 1228, 1246, 800, 3726, 3726, 31, 57, 21, 3857, 14541, 1061, 4190, 30, 32, 23, 142, 7368, 3673, 163, 31, 905, 48, 1797, 19, 51, 1997, 9, 6448, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Opposite of class loaders getSystemResourceAsStream === I have a template file on my class path, I want to read it change the appropriate values write to temp file than back to the template file and revert changes with same process before I end my programs execution. How can I open stream for writing to the same resource I just read? Looking at http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#getSystemResourceAsStream(java.lang.String) can't find my way around this. This is my Inputstream : getClass().getResourceAsStream("/" + TEMPLATE_FILENAME); How can I get output stream to same file?
0
[ 2, 2794, 16, 718, 6305, 445, 164, 10724, 99, 12097, 472, 11260, 800, 3726, 3726, 31, 57, 21, 22894, 3893, 27, 51, 718, 2013, 15, 31, 259, 20, 1302, 32, 753, 14, 4593, 4070, 2757, 20, 13, 9577, 3893, 119, 97, 20, 14, 22894, 3893,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Corona SDK. How to add lines to images === I want to add line to image directly without a groups to make the line rasterized object (instead of a vector). The fact is that due to the large number of vector objects ( over 100) application work slow.
0
[ 2, 13538, 13, 18, 43, 197, 9, 184, 20, 3547, 1560, 20, 3502, 800, 3726, 3726, 31, 259, 20, 3547, 293, 20, 1961, 1703, 366, 21, 1170, 20, 233, 14, 293, 7172, 815, 1333, 3095, 13, 5, 108, 6849, 16, 21, 7497, 6, 9, 14, 837, 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...
can be change the url in request dispatcher === can it is possible to change the url in case of request dispatch .this is my code public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { List<HomePageServicesDescription> data= HomePageServicesDescriptionDB.showHomePageServicesDescription(); req.setAttribute("description", data); req.getRequestDispatcher("index.jsp").forward(req,res); } So when see it in web browser so it give the url=http://localhost:8888/url-mapping of servlet. but i want that url=http://localhost:8888/index.jsp. how it can be possible.
0
[ 2, 92, 44, 753, 14, 287, 6362, 19, 3772, 14226, 106, 800, 3726, 3726, 92, 32, 25, 938, 20, 753, 14, 287, 6362, 19, 610, 16, 3772, 14226, 13, 9, 1565, 25, 51, 1797, 317, 11364, 107, 3060, 5, 21127, 10321, 1336, 99, 10351, 302, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Older MS software with developer licenses? === I produce server software and have been fine with all Linux environments so far, both for production and as deployment target. However, I want to provide a broader choice of target environments in the future and I'm also planning features that would consume and produce Office documents. As a first step, I am looking for a good way to get a number of MS software products (XP, Vista, Server 2003 & 2008, Office 2000, 2003 & 2007 ...) to put on some VMs in my testing setup, so I can start to play around. So far, I get quite a good impression from what I read about MS's partner program (aka Action Pack). The only thing I'm missing from what the website tells me is older software versions. As I want to mimick possible customers' setups and there's always a lot of people that run older versions, that would be quite important for the testing scenario. Eventually, I'm going to face similar questions with Apple OS X, so if anybody has some hints on that, I'd be glad, too.
0
[ 2, 1234, 4235, 2306, 29, 10058, 3962, 18, 60, 800, 3726, 3726, 31, 2213, 8128, 2306, 17, 57, 74, 1123, 29, 65, 13024, 11246, 86, 463, 15, 156, 26, 637, 17, 28, 10475, 2935, 9, 207, 15, 31, 259, 20, 1181, 21, 13124, 1837, 16, 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...
Continuous Integration: how do you tie back your builds to requirements/tasks/bugs? === How do you answer the following questions from managers, testers and other people in your team: In what build is bug #829 fixed? What tasks have been completed in our current test build? So simply put, how do you achieve traceability of your requirements, tasks and bugs right from them being reported reporting through to deployment? What processes, tools and techniques are you using to achieve this?
0
[ 2, 6357, 8078, 45, 184, 107, 42, 3795, 97, 154, 1895, 18, 20, 4786, 118, 6922, 4020, 118, 16254, 18, 60, 800, 3726, 3726, 184, 107, 42, 1623, 14, 249, 2346, 37, 12657, 15, 1289, 445, 17, 89, 148, 19, 154, 173, 45, 19, 98, 1895...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
header control in winforms - any such thing? === I'm trying to use the windows native (Theme-aware) header control to display just some column headers. The main purpose is to avoid manually drawing the column headers and rely on the natively supported functionality. So the 2 options I was thinking of are: (1) Use a HeaderControl, and add columns to it (I can't seem to find a header control supported by WinForms). (2) Use a ListView Control, and tell it display no rows (or basically set its height to the height of the column header) - can't find any way to determine which height should I assign to the control. Any good ideas much appreciated!
0
[ 2, 157, 106, 569, 19, 628, 4190, 18, 13, 8, 186, 145, 584, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 275, 14, 1936, 1275, 13, 5, 124, 790, 8, 58, 5011, 6, 157, 106, 569, 20, 3042, 114, 109, 4698, 157, 445, 9, 14, 407, 2131...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I target an element before it's closed? === I'm wanting to add a class to the body tag without waiting for the DOM to load, but I'm wanting to know if the following approach would be valid. I'm more concerned with validity than whether the browsers support it for now. <body> $("div#topStories").addClass("active"); ... </body> Thanks, Steve
0
[ 2, 92, 31, 2935, 40, 4520, 115, 32, 22, 18, 827, 60, 800, 3726, 3726, 31, 22, 79, 4638, 20, 3547, 21, 718, 20, 14, 358, 3383, 366, 1672, 26, 14, 11859, 20, 6305, 15, 47, 31, 22, 79, 4638, 20, 143, 100, 14, 249, 2141, 83, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I get a list of domain user accounts with win32 api? === How do I get a list of domain user accounts with win32 api? In particular, I can't get this list when the computer is not the domain controller. Instead it is a member of the domain.
0
[ 2, 184, 107, 31, 164, 21, 968, 16, 4603, 4155, 5310, 29, 628, 3125, 21, 2159, 60, 800, 3726, 3726, 184, 107, 31, 164, 21, 968, 16, 4603, 4155, 5310, 29, 628, 3125, 21, 2159, 60, 19, 1498, 15, 31, 92, 22, 38, 164, 48, 968, 76...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how do you convert a string to a byte array in .Net === I have a string that I need to convert to the equivalent array of bytes in .NET. This ought to be easy but I am having a brain cramp.
0
[ 2, 184, 107, 42, 8406, 21, 3724, 20, 21, 34, 591, 7718, 19, 13, 9, 2328, 800, 3726, 3726, 31, 57, 21, 3724, 30, 31, 376, 20, 8406, 20, 14, 4602, 7718, 16, 34, 3231, 19, 13, 9, 2328, 9, 48, 11869, 20, 44, 2010, 47, 31, 589,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
get names of attributes in an xml field === For this xml (in a SQL 2005 XML column): <doc> <a>1</a> <b ba="1" bb="2" bc="3" /> <c bd="3"/> <doc> I'd like to be able to retrieve the names of the attributes (ba, bb, bc, bd) rather than the values _inside SQL Server 2005_. Well, XPath certainly allows this with name() but SQL doesn't support that. This is my chief complaint with using XML in SQL; you have to figure out which parts of the XML/Xpath/XQuery spec are in there. The only way I can think of to do this is to build a CLR proc that loads the XML into an XML Document (iirc) and runs the XPath to extract the names of the nodes. I'm open to suggestions here.
0
[ 2, 164, 1817, 16, 13422, 19, 40, 23504, 575, 800, 3726, 3726, 26, 48, 23504, 13, 5, 108, 21, 4444, 255, 812, 23504, 4698, 6, 45, 13, 1, 13799, 1, 13, 1, 58, 1, 165, 1, 118, 58, 1, 13, 1, 220, 2683, 3726, 7, 165, 7, 13, 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...
Tips to create a useful user-manual. === If I start writing a user-manual for applications I have written, I have a hard time to look at the application from a users standpoint. I know it's not very useful to write something like: *To use the foo-function click on the foo-button, choose the foo-type from the list and type a foo-name. After that you can click on submit and your foo will be created.* But often it's the only thing that comes to my mind, if I write the documentation. Do you have any suggestions, what for useful things can be written in the manual?
0
[ 2, 11034, 20, 1600, 21, 4811, 4155, 8, 177, 6948, 9, 800, 3726, 3726, 100, 31, 799, 1174, 21, 4155, 8, 177, 6948, 26, 3767, 31, 57, 642, 15, 31, 57, 21, 552, 85, 20, 361, 35, 14, 3010, 37, 21, 3878, 1261, 3132, 9, 31, 143, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to change IMEI in Nokia S60 SDK emulator? === I'm also interested in other Symbian SDKs that allow to change their emulator's IMEI.
0
[ 2, 184, 20, 753, 31, 14001, 19, 24294, 13, 18, 3374, 13, 18, 43, 197, 3579, 14868, 60, 800, 3726, 3726, 31, 22, 79, 67, 3158, 19, 89, 13, 7261, 10035, 13, 18, 43, 4020, 30, 1655, 20, 753, 66, 3579, 14868, 22, 18, 31, 14001, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to play sound in JavaFX? === I'm experimenting with JavaFX making a small game. I want to add sound. How? I tried MediaPlayer with media defined with relative source attribute like: attribute media = Media{ source: "{__FILE__}/sound/hormpipe.mp3" } attribute player = MediaPlayer{ autoPlay:true media:media } It doesn't play. I get "FX Media Object caught Exception com.sun.media.jmc.MediaUnavailableException: Media unavailable: file: ... Sound.class/sound/hormpipe.mp3"
0
[ 2, 184, 20, 418, 646, 19, 8247, 16488, 60, 800, 3726, 3726, 31, 22, 79, 5737, 68, 29, 8247, 16488, 544, 21, 284, 250, 9, 31, 259, 20, 3547, 646, 9, 184, 60, 31, 794, 941, 14049, 29, 941, 2811, 29, 4543, 1267, 35, 14755, 101, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to manage database connection for a Java servlet === What is the best way to manage a database connection in a Java servlet? Currently, I simply open a connection in the `init()` function, and then close it in `destroy()`. However, I am concerned that "permanently" holding onto a database connection could be a bad thing. Is this the correct way to handle this? If not, what are some better options?
0
[ 2, 246, 161, 20, 4705, 6018, 2760, 26, 21, 8247, 13, 10321, 1336, 800, 3726, 3726, 98, 25, 14, 246, 161, 20, 4705, 21, 6018, 2760, 19, 21, 8247, 13, 10321, 1336, 60, 871, 15, 31, 1659, 368, 21, 2760, 19, 14, 13, 1, 108, 242, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does anyone know of anyone working on a LINQ-to-Memcached provider? === As title. I didn't find one via google, at any rate.
0
[ 2, 630, 1276, 143, 16, 1276, 638, 27, 21, 6294, 1251, 8, 262, 8, 790, 79, 793, 6261, 11747, 60, 800, 3726, 3726, 28, 581, 9, 31, 223, 22, 38, 477, 53, 1197, 8144, 15, 35, 186, 1684, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
"Join" of time series === I am designing a simple internal framework for handling time series data. Given that LINQ is my current toy hammer, I want to hit everything with it. I want to implement methods in class TimeSeries (Select(), Where() and so on) so that I can use LINQ syntax to handle time series data Some things are straight forward, e.g. (from x in A select x+10), giving a new time series. What is the best syntax design for combining two or more time series? (from a in A from b in B select a+b) is not great, since it expresses a nested loop. Maybe some join? This should correspond to join on the implicit time variable. (What I have in mind corresponds to the lisp 'zip' function)
0
[ 2, 13, 7, 1636, 108, 7, 16, 85, 231, 800, 3726, 3726, 31, 589, 15026, 21, 1935, 3117, 6596, 26, 7988, 85, 231, 1054, 9, 504, 30, 6294, 1251, 25, 51, 866, 20, 93, 5416, 15, 31, 259, 20, 770, 796, 29, 32, 9, 31, 259, 20, 871...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are the best references for using jQuery? === I'm inteested in what you find are the best development references for learning and using jQuery. Books, websites, etc. are all welcome.
4
[ 2, 98, 50, 14, 246, 7231, 26, 568, 487, 8190, 93, 60, 800, 3726, 3726, 31, 22, 79, 19, 16778, 10859, 19, 98, 42, 477, 50, 14, 246, 522, 7231, 26, 2477, 17, 568, 487, 8190, 93, 9, 964, 15, 13931, 15, 2722, 9, 50, 65, 5575, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Purpose of Movable Type mt-*.cgi scripts? === I'm building an extra layer on top of [Movable Type][1] for integration with another system. Part of this involves pre-processing and filtering requests before they get to the MT scripts (comment control, translating external users into MT users etc). For example, new comments to posts are submitted to a script in the new layer before requests are passed on to `mt-comments.cgi`. In this instance, I'm denying access to `mt-comments.cgi` from all but a specific IP as I don't want people being able to post new comments 'directly'. I'd like to know the general purpose of all `mt-*.cgi` scripts such that I can deny access to those not relevant and control access to all others. The `mt-*.cgi` scripts I have, along with their (estimated) purpose, are: <pre> *Script* *Private access?* *Purpose* mt-add-notify.cgi ? ? mt-atom.cgi ? ? mt.cgi Yes Main MT engine mt-check.cgi ? ? mt-comments.cgi Yes Handles inbound new comments mt-config.cgi Yes Stores main MT configuration mt-feed.cgi ? ? mt-ftsearch.cgi ? ? mt-search.cgi Yes Handles search requests, returns results mt-tb.cgi ? ? mt-testbg.cgi ? ? mt-upgrade.cgi Yes Upgrade tool mt-wizard.cgi Yes Setup/config wizard mt-xmlrpc.cgi ? ? </pre> I'd appreciate answers to fill in the blanks. By 'private access', I mean: *can* access be limited (e.g. via .htaccess) to a known set of IPs only? The inverse of this being: *must* access be available to all IPs? Answers clearly elaborating on the purpose and use of a script, such that it may be of use to others, are always welcome. Thanks very much to anyone who can help! [1]: http://movabletype.org/
0
[ 2, 2131, 16, 29618, 1001, 8651, 8, 2483, 9, 150, 2234, 17505, 60, 800, 3726, 3726, 31, 22, 79, 353, 40, 2230, 5385, 27, 371, 16, 636, 15146, 579, 1001, 500, 2558, 165, 500, 26, 8078, 29, 226, 329, 9, 141, 16, 48, 6569, 782, 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...
Reading collections of extended elements in an RSS feed with Universal Feed Parser === Is there any way to read a collection of extension elements with [Universal Feed Parser][1]? This is just a short snippet from Kuler RSS feed: <channel> <item> <!-- snip: regular RSS elements --> <kuler:themeItem> <kuler:themeID>123456</kuler:themeID> <!-- snip --> <kuler:themeSwatches> <kuler:swatch> <kuler:swatchHexColor>FFFFFF</kuler:swatchHexColor> <!-- snip --> </kuler:swatch> <kuler:swatch> <kuler:swatchHexColor>000000</kuler:swatchHexColor> <!-- snip --> </kuler:swatch> </kuler:themeSwatches> </kuler:themeItem> </item> </channel> I tried the following: >>> feed = feedparser.parse(url) >>> feed.channel.title u'kuler highest rated themes' >>> feed.entries[0].title u'Foobar' >>> feed.entries[0].kuler_themeid u'123456' >>> feed.entries[0].kuler_swatch u'' `feed.entries[0].kuler_swatchhexcolor` returns only last `kuler:swatchHexColor`. Is there any way to retrieve all elements with `feedparser`? I have already worked around the issue by using minidom, but I would like to use Universal Feed Parser if possible (due to very simple API). Can it be extended? I haven't found anything about that in the documentation, so if someone has more experience with the library, please, advise me. [1]: http://www.feedparser.org/
0
[ 2, 1876, 5721, 16, 1984, 2065, 19, 40, 13, 1224, 18, 4063, 29, 4172, 4063, 2017, 4104, 800, 3726, 3726, 25, 80, 186, 161, 20, 1302, 21, 1206, 16, 3896, 2065, 29, 636, 20748, 4063, 2017, 4104, 500, 2558, 165, 500, 60, 48, 25, 114...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How would one implement a sidebar similar to Mail/iTunes/Finder/etc in Cocoa/IB? === I think the title pretty much says it all... I'm looking to implement an interface similar to the standard OS X sidebar used in all the above mentioned programs, and I'm wondering if anybody has any thoughts as to the easiest way to do it, namely about what view to use for the left hand selection pane. Really I don't think I even need the hierarchical component as seen in the apple apps, I just need a good looking flat list of choices which determine what's shown in the right hand pane. The obvious start is a vertical split layout view, but beyond that I'm not entirely sure where to go. A collection view with only one column or something like that?
0
[ 2, 184, 83, 53, 8713, 21, 270, 1850, 835, 20, 4216, 118, 12866, 2696, 118, 18639, 118, 1198, 150, 19, 24507, 118, 4598, 60, 800, 3726, 3726, 31, 277, 14, 581, 1772, 212, 898, 32, 65, 9, 9, 9, 31, 22, 79, 699, 20, 8713, 40, 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...
Deploying New Web Parts === I've been trying to follow the information from: http://www.datasprings.com/Resources/ArticlesInformation/Sharepoint2007CustomWebParts/tabid/775/Default.aspx and http://msdn.microsoft.com/en-us/library/ms415817.aspx Which more or less have the same instructions. I've been copying the .dll file from the build over to the BIN directory of the Sharepoint site. When I click the Web Part Gallery and hit new, both articles say that the web part should show up in the list. I have tried every possible way that I can think, but my web part will not show up in that list. Is there a step that I missed somewhere? Are there permissions that I should be thinking about? How exactly does Sharepoint recognize that there is a new web part. Is it simply from having the assembly placed in the BIN directory, or is it from adding the control in the safe list of web.config? For the life of me I cannot figure this out. Thanks, Ryan.
0
[ 2, 17617, 68, 78, 2741, 1341, 800, 3726, 3726, 31, 22, 195, 74, 749, 20, 1740, 14, 676, 37, 45, 7775, 6903, 6483, 9, 18768, 15827, 18, 9, 960, 118, 99, 12097, 18, 118, 20360, 18, 22793, 118, 16608, 3132, 2727, 4636, 6015, 14113, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Howto determine the size of a string give the current font in wxWidgets === Is there a way to determine the display length of a given string (in pixels) based on the currently selected font in (C++) wxWidgets? For example if I print out the string "Speed:" and want to put 10 pixels between the ':' and the value about to follow, I need to know how long the "Speed:" string was. Is there a way to determine this? I can't seem to find anything in the API documentation but I may be missing something.
0
[ 2, 184, 262, 3746, 14, 1072, 16, 21, 3724, 590, 14, 866, 9978, 19, 619, 396, 3976, 43, 3060, 18, 800, 3726, 3726, 25, 80, 21, 161, 20, 3746, 14, 3042, 1476, 16, 21, 504, 3724, 13, 5, 108, 18146, 18, 6, 432, 27, 14, 871, 1704...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Strip WordML from a string === I've been tasked with build an accessible RSS feed for my company's job listings. I already have an RSS feed from our recruiting partner; so I'm transforming their RSS XML to our own proxy RSS feed to add additional data as well limit the number of items in the feed so we list on the latest jobs. The RSS validates via feedvalidator.org (with warnings); but the problem is this. Unfortunately, no matter how many times I tell them not to; my company's HR team directly copies and pastes their Word documents into our Recruiting partners CMS when inserting new job listings, leaving WordML in my feed. I believe this WordML is causing issues with Feedburner's BrowserFriendly feature; which we want to show up to make it easier for people to subscribe. Therefore, I need to remove the WordML markup in the feed. Anybody have experience doing this? Can anyone point me to a good solution to this problem? Preferably; I'd like to be pointed to a solution in .Net (VB or C# is fine) and/or XSL. Any advice on this is greatly appreciated. Thanks.
0
[ 2, 4998, 833, 8184, 37, 21, 3724, 800, 3726, 3726, 31, 22, 195, 74, 14605, 29, 1895, 40, 7342, 13, 1224, 18, 4063, 26, 51, 237, 22, 18, 1205, 9554, 18, 9, 31, 614, 57, 40, 13, 1224, 18, 4063, 37, 318, 15890, 2417, 73, 86, 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...
LinqToSql Best Practices === I just started creating my data-access layer using LinqToSql. Everybody is talking about the cool syntax and I really like Linq in general. But when I saw how your classes get generated if you drag some tables on the LinqContext I was amazed: So much code which nobody would need?! So I looked how other people used LinqToSql, for example Rob Connery at his StoreFront Demo. As I don't like the way that all this code is generated I created my domain layer by hand and used the generated classes as reference. With that solution I'm fine, as I can use the features provided by Linq (dereferred execution, lazy loading, ...) and my domain layer is quite easy to understand. How are you using LinqToSql?
0
[ 2, 6294, 1251, 262, 18, 22402, 246, 5242, 800, 3726, 3726, 31, 114, 373, 2936, 51, 1054, 8, 20604, 5385, 568, 6294, 1251, 262, 18, 22402, 9, 8903, 25, 1582, 88, 14, 2700, 22649, 17, 31, 510, 101, 6294, 1251, 19, 297, 9, 47, 76, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the scope of finalizer thread - per application domain or per process? === Based on all my reading there should be one GC thread to invoke all finalizers. Now, the question is what is the scope of this "one" thread - per process or per application domain, as the whole intention of domains is to separate and make "independent" different applications in one process space. I read [here][1]: > If an unhandled exception occurs in a > finalizer the CLR's executing thread > will swallow the exception, treat the > finalizer as if it completed normally, > remove it from the freachable queue > and move onto the next entry. > > More serious though, is what happens > if your finalizer doesn't exit for > some reason, for example it blocks, > waiting for a condition that never > occurs. **In this case the finalizer > thread will be hung, so no more > finalizable objects will be garbage > collected.** You should be very much > aware of this situation and stick to > writing the simplest code to free your > unmanaged resources in finalizers. > > Another consideration is what happens > during application shutdown. When the > program shuts, the garbage collector > will endeavour to call the finalizers > of all finalizable objects, but with > certain limitations: > > - Finalizable objects are not promoted > to higher heap generations during > shutdown. > > - Any individual finalizer will have a > maximum of 2 seconds to execute; if it > takes longer it will be killed off. > > - There is a maximum of 40 seconds for > all finalizers to be executed; if any > finalizers are still executing, or > pending at this point the whole > process is abruptly killed off. Too many posts (and even official documentation) misuse of the terms "application", "process" and "application domain" - most of them even assuming that they are equal, because usually applications are run in a single application domain in a single process. This misuse makes all of these docs hard to read, and not even useful. So, my question assumes more than one applications, each run in a separate application domain in a single process. Does all these application share the same GC and finalizer threads? Does the problem described in the article above (hang finalizer thread) will affect all applications in that process? If yes - is there a workaround (besides to not use bad applications), like somehow to discover the finalizer thread and send it Thread.Abort? All above is because I hit similar problem. My application runs in a separate application domain as addin to third party software (Outlook). Because of various reasons I need to call GC.Collect and GC.WaitForPendingFinalizers to fully release COM references (the usual interop routines are not enough for Office/Outlook), when a particular other third party addin is running, my GC.WaitForPendingFinalizers hangs forever, so I suspect that there is a "bad" finalizer in that third party adding. I have no control over replacing/removing that adding (client's requirement), so I have to figure out on my own how to make them co-exist. [1]: http://dn.codegear.com/article/29365#MoreFinalizerIssues
0
[ 2, 98, 25, 14, 9914, 16, 426, 11907, 9322, 13, 8, 416, 3010, 4603, 54, 416, 953, 60, 800, 3726, 3726, 432, 27, 65, 51, 1876, 80, 378, 44, 53, 13, 10362, 9322, 20, 28371, 65, 426, 11907, 18, 9, 130, 15, 14, 1301, 25, 98, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Avoiding unchecked warnings when extending a non-generic class === I am extending a class defined in a library which I cannot change: public class Parent { public void init(Map properties) { ... } } If I am defining a class 'Child' and using Java 6 with generics, what is the best way to extend the parent class without getting tons of "unchecked warnings" messages? public class Child extends Parent { // warning: Map is a raw type. References to generic type Map<K,V> should be parameterized public void init(Map properties) { } } If I add generic parameters, I get: // error: The method init(Map<Object,Object>) of type Child has the same erasure as init(Map) of type Parent but does not override it public void init(Map<Object,Object>) { ... } // same error public void init(Map<? extends Object,? extends Object>) { ... } // same error public void init(Map<?,?>) { ... } This error occurs regardless of whether I use a specific type, a bounded wildcard, or an unbounded wildcard. Is there a correct or idiomatic way to do without warnings, and without using @SuppressWarnings("unchecked")?
0
[ 2, 10298, 367, 12542, 69, 3590, 18, 76, 8176, 21, 538, 8, 17083, 596, 718, 800, 3726, 3726, 31, 589, 8176, 21, 718, 2811, 19, 21, 1248, 56, 31, 1967, 753, 45, 317, 718, 4766, 13, 1, 317, 11364, 19, 242, 5, 15022, 3704, 6, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use an Open Source License === I'm a little unsure how the open source licensing stuff works. If I were to choose a particular open source license, what do you actually have to do to make it applicable to your software? I would imagine it would be a little more involved than just 'stating' that you're releasing your software under LGPL. And how does this 'contract' bind legally to your software?
0
[ 2, 184, 20, 275, 40, 368, 1267, 3962, 800, 3726, 3726, 31, 22, 79, 21, 265, 13815, 184, 14, 368, 1267, 15038, 3217, 693, 9, 100, 31, 46, 20, 3538, 21, 1498, 368, 1267, 3962, 15, 98, 107, 42, 1121, 57, 20, 107, 20, 233, 32, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I rollback clickOnce if I have a minimum required version? === We decided to use the minimumRequiredVersion in our clickOnce application manifest, and now when we try to rollback to a previous version when the user launches the application it fails to start. It says the application manifest has a earlier version than the required version and the user can not use the application. We did not have this problem withou the minimumRequiredVersion, but we would like to use that.
0
[ 2, 184, 92, 31, 3001, 1958, 10840, 13120, 100, 31, 57, 21, 5187, 1390, 615, 60, 800, 3726, 3726, 95, 868, 20, 275, 14, 5187, 99, 3003, 2095, 10898, 19, 318, 10840, 13120, 3010, 13160, 15, 17, 130, 76, 95, 1131, 20, 3001, 1958, 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...
Highlighting Text in a .net Webbrowser Control === I'd like highlight certain words in the document displayed in an embedded webbrowser control. I can envision a solution where the innerhtml property of the document is modified to add a colorizing < span > tag around the desired text, but I can't help feeling that there must be a simpler way?
0
[ 2, 23102, 1854, 19, 21, 13, 9, 2328, 10192, 5417, 4104, 569, 800, 3726, 3726, 31, 22, 43, 101, 14373, 1200, 715, 19, 14, 4492, 6115, 19, 40, 12138, 10192, 5417, 4104, 569, 9, 31, 92, 29131, 21, 4295, 113, 14, 3754, 15895, 1354, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 & ASP.Net Resources & Gotchas === What are some good jQuery Resources along with some gotchas when using it with ASP.Net?
4
[ 2, 487, 8190, 93, 279, 28, 306, 9, 2328, 2566, 279, 330, 1651, 18, 800, 3726, 3726, 98, 50, 109, 254, 487, 8190, 93, 2566, 303, 29, 109, 330, 1651, 18, 76, 568, 32, 29, 28, 306, 9, 2328, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
5-10 person team - how would you distribute developers and other roles? === You have 5-10 person slots for developing web application with lots of backend stuff. How would you assign developers, UI design, test etc. to the team? Which roles would you recommend? (Team gets business requirements and produces tested and deployable code, no support or work on production systems is required)
0
[ 2, 331, 8, 1036, 840, 173, 13, 8, 184, 83, 42, 14751, 10168, 17, 89, 2954, 60, 800, 3726, 3726, 42, 57, 331, 8, 1036, 840, 7958, 18, 26, 3561, 2741, 3010, 29, 7503, 16, 97, 2451, 3217, 9, 184, 83, 42, 13952, 10168, 15, 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...
Auto start print in html/javascript === Is there anyway to automatically run: javascript:window.print() when the page finishes loading? Sry for a question like this but I'm a newbie in javascript
0
[ 2, 3108, 799, 4793, 19, 13, 15895, 118, 1004, 1385, 8741, 800, 3726, 3726, 25, 80, 2774, 20, 7499, 485, 45, 8247, 8741, 45, 27508, 9, 10299, 5, 6, 76, 14, 2478, 13625, 12797, 60, 13, 18, 622, 26, 21, 1301, 101, 48, 47, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Visual Studio Team System 2008 Test Edition books or online training? === Our testers are in the process of evaluating Visual Studio Team System 2008 Test Edition. As they are unfamiliar with the use of Visual Studio, I would like to give them as much help as I can. I have had a look on Amazon for books on the Test edition of VS.Net, but there is only one VS.Net 2005 test edition book. Does anyone know of any good books, or online training resources with a particular focus on the features of the Test Edition of Visual Studio Team System 2008?
0
[ 2, 3458, 1120, 173, 329, 570, 1289, 1322, 964, 54, 2087, 838, 60, 800, 3726, 3726, 318, 1289, 445, 50, 19, 14, 953, 16, 26764, 3458, 1120, 173, 329, 570, 1289, 1322, 9, 28, 59, 50, 17819, 29, 14, 275, 16, 3458, 1120, 15, 31, 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...
Framework/CMS suggestions for enterprise website & intranet (I've got to convince the president its solid!) === Dear stack overflow community, I've been given the task of overhauling a couple of websites for a large corporation I'm working for, as well as developing an internal intranet site for content management and document storage within the organization. My "problem" is this: They want me to use a framework/set of languages/technologies that I can prove to them are "stable, enterprise-ready technologies with a proven track record." The spec's "big picture" really isn't too complicated: Implement an enterprise-class CMS for management of each division's web pages that deal mostly with product information and documentation (i.e. a simpler version of www.linksys.com). As an open-source programmer, I'd like to use Python with TurboGears and build it from scratch, but I can't really find a way to prove to the president that TurboGears has a huge enterprise track record. Zope seems to have a lot of enterprise usage, but it looks a bit bloated to me. Django could be an option, but doesn't seem as flexible as TurboGears. I'd rather not use PHP, but Drupal has a very nice resume with the "right" names under it (AOL, Sony, MTV); plus it could save me building many of the CMS components from scratch. Rails might be another option, but I'm not too familiar with it (and as a Python/PHP programmer, Ruby's syntax drives me crazy). What would the S.O. community suggest for a project like this? I'm sure many of you have faced the same dilemma. What ended up working/not working for you? As I said before, my first choice would be Python, second would be PHP, third would be Rails. Thank you, Seth
0
[ 2, 6596, 118, 9095, 18, 18389, 26, 6002, 2271, 279, 14369, 2328, 13, 5, 49, 22, 195, 330, 20, 6218, 14, 406, 82, 2941, 187, 6, 800, 3726, 3726, 4483, 7566, 20285, 514, 15, 31, 22, 195, 74, 504, 14, 3005, 16, 17460, 68, 21, 133...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Reporting Services 2000 - email different report to many people === Reporting Services 2000 Standard Edition (currently RTM but hope to have SP2 soon). I have a report which takes in a parameter - PlantID I'd like to email a pdf of this report every month to the 80 different plant managers So I have a table: PlantID ManagerEmail 1 BillySmith@company.com 2 FredJones@asdf.com 3 JohnLonestar@rrr.com I can currently setup a subscription to email a report to multiple users each month (which uses the SQL agent). However I want to specify the input parameter of the report (PlantID) to the recipient of the email (ManagerEmail). Ideas on how to do this? My current thought is to build a C# app which calls the URL of the RS with the correct input parameter in it. Then gets the pdf back, then emails from C#. Many thanks
0
[ 2, 6670, 687, 824, 13, 8, 8517, 421, 1330, 20, 151, 148, 800, 3726, 3726, 6670, 687, 824, 1236, 1322, 13, 5, 24947, 13, 5256, 79, 47, 1376, 20, 57, 3782, 135, 651, 6, 9, 31, 57, 21, 1330, 56, 1384, 19, 21, 18906, 13, 8, 1321...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Easiest/Most effective way to convert month abbrev. to number? (ie "jan" to 1) === If I import a library to use a method, would it be worth it? Does importing take up a lot of memory?
0
[ 2, 27237, 118, 4630, 3140, 161, 20, 8406, 1617, 21, 3490, 14587, 9, 20, 234, 60, 13, 5, 660, 13, 7, 4098, 7, 20, 137, 6, 800, 3726, 3726, 100, 31, 9010, 21, 1248, 20, 275, 21, 2109, 15, 83, 32, 44, 2715, 32, 60, 630, 9010, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Boost C++ libraries for gcc-arm toolchain === I have no trouble building 1.35.0, as well as 1.36.0 on the timesys arm-gcc toolchain, both statically (link-static) as well as dynamically (.so, default option). However, when I try to link a simple sample filesystem app: <pre><code>#include &lt;boost/filesystem.hpp> #include &lt;iostream> namespace fs = boost::filesystem; int main(int argc, char *argv[]) { const char* fileName = argv[1]; std::cout &lt;&lt; "file: " &lt;&lt; fileName &lt;&lt; " => " &lt;&lt; fs::exists(fileName) &lt;&lt; std::endl; return 0; } </code></pre> I get the following linker error: <pre><code> developer@eldp01:~/boost/test$ /opt/timesys/at91sam9263_ek/toolchain/bin/armv5l-timesys-linux-gnueabi-gcc exists.cpp -o exists.exe -I ../boost_1_35_0/ -lboost_filesystem -lboost_system -lstdc++ -L . /tmp/ccex3NGb.o: In function `boost::detail::atomic_decrement(int*)': exists.cpp:(.text._ZN5boost6detail16atomic_decrementEPi[boost::detail::atomic_decrement(int*)]+0x1c): undefined reference to `__sync_fetch_and_add_4' /tmp/ccex3NGb.o: In function `boost::detail::atomic_increment(int*)': exists.cpp:(.text._ZN5boost6detail16atomic_incrementEPi[boost::detail::atomic_increment(int*)]+0x1c): undefined reference to `__sync_fetch_and_add_4' collect2: ld returned 1 exit status </code></pre> Does anyone know how I can get Boost to build for the gcc-arm toolchain?
0
[ 2, 10419, 272, 20512, 8649, 26, 489, 3384, 8, 5828, 5607, 17317, 800, 3726, 3726, 31, 57, 90, 2572, 353, 137, 9, 2599, 9, 387, 15, 28, 134, 28, 137, 9, 3775, 9, 387, 27, 14, 436, 93, 18, 813, 8, 263, 3384, 5607, 17317, 15, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are your favorite open source library for .NET Charts and Gauges? === For a in-house hardware monitoring utility, I need to use gauges and charts to help visualize various metrics. Is there any good open source charting and gauge library available for .NET? I am not interested in purchasing any components (which excludes components such as Dundas Charts & Graph, which I know would do the job, but would not fit in our budget). **Edit:** I also know about Google Charts API. The actual application needs to work without an internet connection, so it is out of the question in this particular case.
0
[ 2, 98, 50, 154, 3839, 368, 1267, 1248, 26, 13, 9, 2328, 5158, 17, 7313, 18, 60, 800, 3726, 3726, 26, 21, 19, 8, 1682, 7610, 8984, 10082, 15, 31, 376, 20, 275, 7313, 18, 17, 5158, 20, 448, 3458, 2952, 617, 11544, 18, 9, 25, 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...
SSO between ASP.NET, ASP and PHP === I'm working on a site which is at the core/ master of a number of sites. We are also responsible for handling the authentication across all the sites under the brand banner. The client has wanted a single-sign-on operation to be included, so if I was to sign into any of the sites I would be signed into all the sites. We're handling the *child* site sign-ins by redirecting to the main site (ours) and executing the login. It was decided that the SSO would operate via embedding image tags into the page and then calling a page on each child site. This would open a client session to their site so they can set cookies/ do what they want to handle a login. This works *for the most part*, it's been tested on IE7, FF 2 & 3 and they all work. The problem browser at the moment is Safari (and Chrome). Although the images do appear to load in the client session doesn't seem to be opened, we get no cookies from the child sites set. The problem seems to be WebKit based browsers with Safari and Chrome being the problem (I'd presume that konqueror may suffer the same fate but at the moment I don't have a Linux install at my disposal). Does anyone know a way to have Safari recognise an embeded image tag to an external host as opening a client context? Or can someone provide a better way to do SSO from ASP.NET to site(s) which are not ASP.NET? **Note:** yes I am aware there are problems in the SSO concept we've done thus far in regards to having images disabled. The solution proposed wasn't mine, I'm just stuck with it.
0
[ 2, 13, 18, 656, 128, 28, 306, 9, 2328, 15, 28, 306, 17, 13, 26120, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 689, 56, 25, 35, 14, 2884, 118, 1129, 16, 21, 234, 16, 3259, 9, 95, 50, 67, 1864, 26, 7988, 14, 27963, 464, 65, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 non-technical items do you keep on your desk? === I have read that what you keep on your desk is very influential in how you work and your level of productivity. I am trying to optimise the way that I work (I am a terrible procrastinator) and am curious what other programmers have (or deliberately NOT have) on their desks. By 'non-technical', I mean excluding computer, screen, mouse, keyboard, speakers etc.
2
[ 2, 98, 538, 8, 22307, 3755, 107, 42, 643, 27, 154, 2911, 60, 800, 3726, 3726, 31, 57, 1302, 30, 98, 42, 643, 27, 154, 2911, 25, 253, 5241, 19, 184, 42, 170, 17, 154, 662, 16, 18211, 9, 31, 589, 749, 20, 19259, 2628, 14, 161,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
paging with oracle === I am not as familiar with Oracle as I would like to be. I have some 250k records, and I want to display them 100 per page. Currently I have one stored procedure which retrieves all quarter of a million records to a dataset using a data adapter, and dataset, and the dataadapter.Fill(dataset) method on the results from the stored proc. If I have "Page Number" and "Number of records per page" as integer values I can pass as parameters, what would be the best way to get back just that particular section. Say, if I pass 10 as a page number, and 120 as number of pages, from the select statement it would give me the 1880th through 1200th, or something like that, my math in my head might be off. I'm doing this in .NET with C#, thought that's not important, if I can get it right on the sql side, then I should be cool.
0
[ 2, 19006, 68, 29, 15759, 800, 3726, 3726, 31, 589, 52, 28, 3694, 29, 15759, 28, 31, 83, 101, 20, 44, 9, 31, 57, 109, 6774, 197, 742, 15, 17, 31, 259, 20, 3042, 105, 808, 416, 2478, 9, 871, 31, 57, 53, 8214, 7004, 56, 11917, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 one avoid illegal characters when composing a URL? === I'm writing a web application that *dynamically* creates URL's based off of some input, to be consumed by a client at another time. For discussion sake these URL's can contain certain characters, like a **forward slash (i.e. '/')**, which should not be interpreted as part of the actual URL, but just as an argument. For example: <pre>http://mycompany.com/PartOfUrl1/PartOfUrl2/ArgumentTo/Url/GoesHere</pre> As you can see, the **ArgumentTo/Url/GoesHere** does indeed have forward slashes but these should be *ignored or escaped*. This may be a bad example but the question in hand is more general and applies to other *special characters*. **So, if there are pieces of a URL that are just *arguments* and should not be used to resolve the actual web request, what's a good way of handling this?**
0
[ 2, 184, 92, 53, 2658, 5143, 1766, 76, 19193, 21, 287, 6362, 60, 800, 3726, 3726, 31, 22, 79, 1174, 21, 2741, 3010, 30, 1637, 20985, 1326, 2483, 9695, 287, 6362, 22, 18, 432, 168, 16, 109, 6367, 15, 20, 44, 10936, 34, 21, 6819, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 detect how to escape spaces in a path === In Cygwin a space in a path has to be escaped with a backslash Not true in Windows, put the whole path in a quote Is there a way to convert to this automatically in Ruby? Otherwise, how in Ruby do I detect if I am running with Windows or Cygwin?
0
[ 2, 184, 107, 31, 9092, 184, 20, 2220, 7644, 19, 21, 2013, 800, 3726, 3726, 19, 6728, 263, 4181, 21, 726, 19, 21, 2013, 63, 20, 44, 5409, 29, 21, 97, 18, 9545, 52, 1151, 19, 1936, 15, 442, 14, 979, 2013, 19, 21, 16371, 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...
How to create a custom filter for the Drupal View's Module? === I have the Profile, CCK, and Views2 modules installed on a Drupal 6 site. I added a string field to the user profile. I can filter easily on preset values, thru the Views GUI builder, really nicely. However, I'd like the filter criteria to be dynamically set based on other environment variables (namely the $_SERVER['SERVER_NAME']). Is there a basic 'How-to-write-a-custom-drupal-views-filter' somewhere out there? I've been looking thru the documentation, but it's not obvious to my simple mind on how to do it. Thanks!
0
[ 2, 184, 20, 1600, 21, 5816, 11945, 26, 14, 15708, 6720, 1418, 22, 18, 12613, 60, 800, 3726, 3726, 31, 57, 14, 5296, 15, 272, 2601, 15, 17, 4146, 135, 17113, 4066, 27, 21, 15708, 6720, 400, 689, 9, 31, 905, 21, 3724, 575, 20, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Help a regexp newb === else if(!eregi("^([0-9a-z_\[\]\*\- ])+$", $subuser)){ $form->setError($field, "* Username not alphanumeric"); Can anybody tell me why it is not allowing characters such as - and *? else if(!eregi("^([0-9a-z])+$", $subuser)){ $form->setError($field, "* Username not alphanumeric"); That is the original piece of code. A friend changed it to the top piece and it will allow a-z and 0-9 but it wont allow the other characters I need it to. Can anyone help me? Thanks in advance.
0
[ 2, 448, 21, 7953, 6899, 78, 220, 800, 3726, 3726, 962, 100, 5, 187, 106, 15287, 5, 7, 1, 5, 2558, 387, 8, 518, 58, 8, 380, 1, 2558, 1, 500, 1, 2483, 1, 8, 13, 500, 6, 2430, 4403, 7, 15, 5579, 7563, 16704, 6, 6, 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...
Sieve of Eratosthenes in Ruby === Rather than scraping a Ruby version of this algorithm off the net I wanted to create my own based on its description [here][1]. However I cannot figure out two things 1) why it doesn't iterate to the end of the array 2) according to the description in the link above the loop should be broken out of when the squareroot of the last element in the array is greater than the current prime - mine does this one before. index=0 while Math.sqrt(primes.last).ceil>primes[index] (primes[index]**2).step(primes.length-1, primes[index]) {|x| x%primes[index]==0 ? primes.delete(x) : ""} index+=1 end I'm fairly sure it has something to do with the delete operation modifying the length of the array. For example my function currently yields 2,3,5,7,9,10 which is obviously not correct. Any suggestions on how I can go about alterating this to make it work like it's supposed to? [1]: http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes
0
[ 2, 13, 4157, 195, 16, 2047, 262, 18, 124, 2696, 19, 10811, 800, 3726, 3726, 864, 119, 25611, 21, 10811, 615, 16, 48, 9083, 168, 14, 4275, 31, 417, 20, 1600, 51, 258, 432, 27, 82, 5318, 636, 6836, 500, 2558, 165, 500, 9, 207, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to disable PHP session cookie? === I am writing PHP code where I want to pass the session id myself using POST. I don't want a cookie to store the session, as it should get lost when the user gets out of the POST cycle. PHP automatically sets the cookie where available. I learned it is possible to change this behaviour by setting `session.use_cookies` to 0 in `php.ini`. Unfortunately, I don't have access to that file and I also wouldn't want to break the behaviour of other scripts running on the same server. Is there a way to disable or void the session cookie inside the PHP script?
0
[ 2, 184, 20, 1460, 579, 13, 26120, 3723, 19980, 60, 800, 3726, 3726, 31, 589, 1174, 13, 26120, 1797, 113, 31, 259, 20, 1477, 14, 3723, 4924, 992, 568, 678, 9, 31, 221, 22, 38, 259, 21, 19980, 20, 1718, 14, 3723, 15, 28, 32, 378...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Nagios/Monit/Munin with Windows === I'm building a .NET 3.5 web app and I am thinking about all the fundamental issues as I work through the project, like monitoring, exception handling, the lot. The app will obviously be small in size when it is rolled out because it won't have a high load until the site is heavily promoted (lines of code/cyclometric complexity and so forth will be high, and the app will be commercial scale with the same considerations as large systems such as Facebook etc). Anyway, I am going to outsource "foundation" services like monitoring to an open source solution to slash costs and dev time, so I can concentrate on business functionality and promotion. I want to use nagios with monit and munin as my tools for monitoring my system. The problem is, these tools are designed for the Linux/Unix stack. Does anyone here have experience of getting it to work with Windows? Thank
0
[ 2, 568, 9277, 7760, 118, 2111, 242, 118, 5619, 108, 29, 1936, 800, 3726, 3726, 31, 22, 79, 353, 21, 13, 9, 2328, 203, 9, 264, 2741, 4865, 17, 31, 589, 1440, 88, 65, 14, 6377, 1549, 28, 31, 170, 120, 14, 669, 15, 101, 8984, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I make a UIView "scrollable" in my iPhone app? === I have a UIView that will eventually contain about 2 screens worth of information. I want to give the user the ability to scroll down via flicking (just standard flicking like in Safari). How do I do this?
0
[ 2, 184, 107, 31, 233, 21, 13, 5661, 4725, 13, 7, 3862, 8694, 579, 7, 19, 51, 21024, 4865, 60, 800, 3726, 3726, 31, 57, 21, 13, 5661, 4725, 30, 129, 878, 3717, 88, 172, 14236, 2715, 16, 676, 9, 31, 259, 20, 590, 14, 4155, 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...
Calling a Webservice from VBA using SOAP === I'm trying to call a web service in an Excel Macro: Set objHTTP = New MSXML.XMLHTTPRequest objHTTP.Open "post", "https://www.server.com/EIDEServer/EIDEService.asmx" objHTTP.setRequestHeader "Content-Type", "text/xml" objHTTP.setRequestHeader "SOAPAction", "PutSchedule" objHTTP.send strXML And I get back the following response: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <soap:Fault> <faultcode>soap:Client</faultcode> <faultstring>Server did not recognize the value of HTTP Header SOAPAction: PutSchedule.</faultstring> <detail /> </soap:Fault> </soap:Body> </soap:Envelope> Anybody out there done something like this before?
0
[ 2, 2555, 21, 2741, 11449, 37, 566, 969, 568, 6447, 800, 3726, 3726, 31, 22, 79, 749, 20, 645, 21, 2741, 365, 19, 40, 20700, 9069, 45, 309, 5122, 728, 21127, 800, 78, 4235, 396, 8184, 9, 396, 8184, 21127, 99, 10351, 5122, 728, 21...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I select an item by its text value in a dropdown using jQuery? === If I had the following select, and did not know the value to use to select an item in advance like in this [question][1] or the index of the item I wanted selected, how could I select one of the options with jQuery if I did know the text value like Option C? <select id='list'> <option value='45'>Option A</option> <option value='23'>Option B</option> <option value='17'>Option C</option> </select> [1]: http://stackoverflow.com/questions/196684/jquery-get-select-option-text
0
[ 2, 184, 107, 31, 5407, 40, 9101, 34, 82, 1854, 1923, 19, 21, 2804, 2968, 568, 487, 8190, 93, 60, 800, 3726, 3726, 100, 31, 41, 14, 249, 5407, 15, 17, 144, 52, 143, 14, 1923, 20, 275, 20, 5407, 40, 9101, 19, 3612, 101, 19, 48...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a good way to bypass restrictions on running EXE files? === I have to compute at libraries quite often these days, and have been having some issues with my U3 smart drive. Despite working on some computers, public libraries here restrict the execution of EXE files and disable AutoPlay, rendering my U3 apps useless. Is there a good way of getting around the restriction and getting something - anything - to run?
0
[ 2, 25, 80, 21, 254, 161, 20, 8900, 9245, 27, 946, 1396, 62, 6488, 60, 800, 3726, 3726, 31, 57, 20, 23909, 35, 8649, 1450, 478, 158, 509, 15, 17, 57, 74, 452, 109, 1549, 29, 51, 287, 240, 3978, 1493, 9, 869, 638, 27, 109, 777...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
DB: same fields in most tables === In a database prototype, I have a set of fields (like name, description, state) that are required in multiple, functionally different tables. These fields always have the same end user functionality for labeling, display, search, filtering etc. They are not part of a foreign key constraint. How should this be modeled? I can think of the following variants: (a) Each table gets all these attributes. In this case, how would you name them? The same, in each table, or with a table name prefix (like usrName, prodName) (b) Move them into a table Attributes, add a foreign key to the "core" tables, referencing Attributes.PK (c) As (b), but instead of a foreign key, use the Attributes.PK as PK in the respective core table as well.
0
[ 2, 13, 9007, 45, 205, 2861, 19, 127, 7484, 800, 3726, 3726, 19, 21, 6018, 7063, 15, 31, 57, 21, 309, 16, 2861, 13, 5, 1403, 204, 15, 5318, 15, 146, 6, 30, 50, 1390, 19, 1886, 15, 7652, 102, 421, 7484, 9, 158, 2861, 550, 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...
Equivalent of Array() in VB.NET? === In VB6 you can do this: <pre><code>Dim a As Variant a = Array(1, 2, 3)</code></pre> Can you do a similar thing in VB.NET with specific types, like so?: <pre><code>Dim a() As Integer a = <strong>Array</strong>(1, 2, 3)</code></pre>
0
[ 2, 4602, 16, 7718, 5, 6, 19, 13, 20468, 9, 2328, 60, 800, 3726, 3726, 19, 13, 20468, 379, 42, 92, 107, 48, 45, 13, 1, 3515, 1, 9375, 1, 14160, 21, 28, 8320, 21, 800, 7718, 5, 165, 15, 172, 15, 203, 6, 1, 118, 9375, 1, 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...
Net::SSLeay post_https compilation error: Too many arguments === I'm interfacing with a payment gateway and not having any luck with Net::SSLeay and its post_https subroutine. The payment gateway has issued me a client certificate that must be used for authentication. The Net::SSLeay perldoc has the following example: ($page, $response, %reply_headers) = post_https('www.bacus.pt', 443, '/foo.cgi', # 3b make_headers('Authorization' => 'Basic ' . MIME::Base64::encode("$user:$pass",'')), make_form(OK => '1', name => 'Sampo'), $mime_type6, $path_to_crt7, $path_to_key8); My own version is below and returns the error **Too many arguments for Net::SSLeay::post_https**: #!/usr/bin/perl use strict; use warnings; use Net::SSLeay qw(post_https); my %post = ( #snip ); my ($page, $response, %reply_headers) = post_https( 'www.example.com', 443, '/submit', '', make_form(%post), 'text/xml', '/path/to/cert', '/path/to/key', ); Why is this error occurring?
0
[ 2, 4275, 45, 45, 18, 18, 7199, 93, 678, 1, 21127, 18, 4868, 7019, 45, 266, 151, 10553, 800, 3726, 3726, 31, 22, 79, 1480, 17231, 29, 21, 7582, 12171, 17, 52, 452, 186, 5419, 29, 4275, 45, 45, 18, 18, 7199, 93, 17, 82, 678, 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...
Parse DateTime with timezone of form PST/CEST/UTC/etc === I'm trying to parse an international datetime string similar to: 24-okt-08 21:09:06 CEST So far I've got something like: CultureInfo culture = CultureInfo.CreateSpecificCulture("nl-BE"); DateTime dt = DateTime.ParseExact("24-okt-08 21:09:06 CEST", "dd-MMM-yy HH:mm:ss ...", culture); The problem is what should I use for the '...' in the format string? Looking at the <a href="http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx">Custom Date and Time Format String</a> MSDN page doesn't seem to list a format string for parsing timezones in PST/CEST/GMT/UTC form.
0
[ 2, 2017, 870, 1231, 891, 29, 85, 11661, 16, 505, 351, 384, 118, 5052, 38, 118, 11440, 118, 1198, 150, 800, 3726, 3726, 31, 22, 79, 749, 20, 2017, 870, 40, 294, 1231, 891, 3724, 835, 20, 45, 937, 8, 3085, 38, 8, 3099, 852, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to access user/site settings === There have been a couple of questions that sort of dealt with this but not covering my exact question so here we go. For site settings, if these are stored in a database do you: 1. retrieve them from the db every time someone makes a request 2. store them in a session variable on login 3. ??????? For user specific settings do I do the same as site settings?? Any guidance/best practice would be greatly appreciated. Cheers
0
[ 2, 246, 161, 20, 1381, 4155, 118, 9097, 12410, 800, 3726, 3726, 80, 57, 74, 21, 1335, 16, 2346, 30, 2058, 16, 9706, 29, 48, 47, 52, 3846, 51, 5340, 1301, 86, 235, 95, 162, 9, 26, 689, 12410, 15, 100, 158, 50, 8214, 19, 21, 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...
Java: When is Java 6 ready for end-user Swing desktop application? === Is Java 6 ready for end-user Swing desktop application? If not now, when? I am writing a desktop application written in Swing currently developed using Java 1.5. Some of the users seem to be using Mac, but I am interested in Java 6. Java 6, although it came out almost 2 years ago, doesn't seem to be widely in use. I also hear [Apple ships Java 6 only for Intel 64 Macs only][1]. [Is Java 1.5 the last Java that runs everywhere?][2] [1]: http://stackoverflow.com/questions/230253/java-16-sdk-on-mac-os-105 [2]: http://refactorama.blogspot.com/2008/05/java-6-compile-once-run-nowhere.html
0
[ 2, 8247, 45, 76, 25, 8247, 400, 1451, 26, 241, 8, 16704, 5587, 17404, 3010, 60, 800, 3726, 3726, 25, 8247, 400, 1451, 26, 241, 8, 16704, 5587, 17404, 3010, 60, 100, 52, 130, 15, 76, 60, 31, 589, 1174, 21, 17404, 3010, 642, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
XML best practices: attributes vs additional nodes === What's the difference between the two and when should I use each: <person> <firstname>Joe</firstname> <lastname>Plumber</lastname> </person> versus <person firstname="Joe" lastname="Plumber" /> Thanks
0
[ 2, 23504, 246, 5242, 45, 13422, 4611, 1351, 16272, 800, 3726, 3726, 98, 22, 18, 14, 2841, 128, 14, 81, 17, 76, 378, 31, 275, 206, 45, 13, 1, 7276, 1, 13, 1, 3552, 7259, 1, 19838, 1, 118, 3552, 7259, 1, 13, 1, 8558, 7259, 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...
VB runtime functions in VB.NET for VB6 programmers === I'm preparing a class on Visual Basic 2005 targeting Visual Basic 6 programmers migrating to the .NET platform. My primary concern is to teach my students the best practices for developing in .NET, and I am wondering about whether to consider the use of the VB runtime functions VB.NET legitimate or not. I have read that many of the VB functions in VB.NET actually invoke methods on the .NET Framework, so it appears they exist primarily to ease the transition from earlier versions of Visual Basic to VB.NET. However, [the VB.NET team][1] seems to recommend to use them whenvever possible since they claim they put some optimizations in there on top of the .NET framework APIs. What's your take on this? [1]: http://blogs.msdn.com/vbteam/
0
[ 2, 13, 20468, 485, 891, 3719, 19, 13, 20468, 9, 2328, 26, 13, 20468, 379, 17968, 18, 800, 3726, 3726, 31, 22, 79, 7575, 21, 718, 27, 3458, 2125, 812, 15972, 3458, 2125, 400, 17968, 18, 28749, 20, 14, 13, 9, 2328, 2452, 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...
What's a good way to profile the connection speed of Web users? === I have a client whose desired Web UI is graphically intense; we would like to gather statistics on the average bandwidth of those connecting to the site. Is there an easy way to do that? The "simplest thing that could possibly work" would seem to be a Flash or Silverlight component that times the download of a file of some size (say 200K), then POSTing the result to a URI that saves the data. Will that work? Should I write my own or is there an easy drop-in element that I can download from somewhere?
0
[ 2, 98, 22, 18, 21, 254, 161, 20, 5296, 14, 2760, 1362, 16, 2741, 3878, 60, 800, 3726, 3726, 31, 57, 21, 6819, 1196, 9264, 2741, 13, 5661, 25, 21755, 102, 5339, 73, 95, 83, 101, 20, 7442, 5818, 27, 14, 862, 23392, 16, 273, 6440...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 quickest way to get the String contents of a URL using Cocoa/iPhoneSDK? === Say I want to get the HTML of <pre>http://www.google.com</pre> as a String using some built-in classes of the Cocoa Touch framework. What is the least amount of code I need to write? I've gotten this far, but can't figure out how to progress. There must be an easier way. CFHTTPMessageRef req; NSURL *url = [NSURL URLWithString:@"http://www.google.com"]; req = CFHTTPMessageCreateRequest(kCFAllocatorDefault, CFSTR("GET"), (CFURLRef)url, kCFHTTPVersion1_1);
0
[ 2, 98, 25, 14, 2231, 1430, 161, 20, 164, 14, 3724, 8478, 16, 21, 287, 6362, 568, 24507, 118, 49, 7709, 18, 43, 197, 60, 800, 3726, 3726, 395, 31, 259, 20, 164, 14, 13, 15895, 16, 13, 1, 3515, 1, 21127, 6903, 6483, 9, 16111, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I recover international characters mistakenly stored in a varchar field? === My client has an old MS SQL 2000 database that uses varchar(50) fields to store names. He tried to use this database to capture some data (via a web form). Some of the form-fillers are from other countries, and the varchar fields went nutty when some of these folks entered their names. Is it possible to recover the data somehow? Maybe by guessing what the character should be based on what it resolved to in ASCII/varchar and the country the person is from? Some of the data: Name / Country / First or Last Name? Jiå™ã­ / CZE / F Torbjörn / FIN / F Huszár / HUN / L Jürgen / DEU / F Müller / CHE / L Bumbálková / CZE / L Doležal / CZE / L Loïc / DEU / L
0
[ 2, 92, 31, 7635, 294, 1766, 23745, 8214, 19, 21, 4033, 5433, 575, 60, 800, 3726, 3726, 51, 6819, 63, 40, 315, 4235, 4444, 255, 824, 6018, 30, 2027, 4033, 5433, 5, 2290, 6, 2861, 20, 1718, 1817, 9, 24, 794, 20, 275, 48, 6018, 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...
SVN Watchlists? === I know that it's possible to get SVN to send emails after a commit using hooks, but I was just wondering if there's any way to create a personal "watch list" like MediaWiki (Wikipedia) has, whereby you only get notified if there have been changes to certain files?
0
[ 2, 13, 18, 16578, 1455, 5739, 18, 60, 800, 3726, 3726, 31, 143, 30, 32, 22, 18, 938, 20, 164, 13, 18, 16578, 20, 2660, 8517, 18, 75, 21, 9686, 568, 5559, 18, 15, 47, 31, 23, 114, 5712, 100, 80, 22, 18, 186, 161, 20, 1600, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Removing first line from stdin and redirect to stdout === i need to redirect all of the stdout of a program except the first line into a file. Is there a common unix program that removes lines from stdin and spits the rest out to stdout?
0
[ 2, 9096, 64, 293, 37, 354, 3653, 17, 302, 14706, 20, 354, 43, 1320, 800, 3726, 3726, 31, 376, 20, 302, 14706, 65, 16, 14, 354, 43, 1320, 16, 21, 625, 1613, 14, 64, 293, 77, 21, 3893, 9, 25, 80, 21, 757, 22540, 625, 30, 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...
Full Resolution Camera Access in j2me === I'm trying to do an image capture on a high end Nokia phone (N95). The phone's internal camera is very good (4 megapixels) but in j2me I only seem to be able to get a 640x480 image out. I drew largely from this example http://developers.sun.com/mobility/midp/articles/picture/ and the particular line of interest is: jpg = mVideoControl.getSnapshot("encoding=jpeg&quality="+ 100); Seem to be asking it for the highest quality, but it's not coming back with the phone's max resolution. Is this a limitation of j2me on the phone? If so does anyone know of a way to get a higher resolution from within a j2me application?
0
[ 2, 503, 4302, 3336, 1381, 19, 487, 135, 790, 800, 3726, 3726, 31, 22, 79, 749, 20, 107, 40, 1961, 3683, 27, 21, 183, 241, 24294, 1132, 13, 5, 103, 3836, 6, 9, 14, 1132, 22, 18, 3117, 3336, 25, 253, 254, 13, 5, 300, 5957, 183...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Property Grid on Composite objects === When I bind this object public class MyObject { public AgeWrapper Age { get; set; } } public class AgeWrapper { public int Age { get; set; } } to a property grid, what is shown in the value section of the property grid is the class name of AgeWrapper, but the value for AgeWrapper.Age. Is there anyway to make it so that in the property grid I can show the value of the composite object ( in this case, it's AgeWrapper.Age), instead of the class name of that composite object?
0
[ 2, 1354, 7354, 27, 12639, 3916, 800, 3726, 3726, 76, 31, 10193, 48, 3095, 317, 718, 51, 23793, 13, 1, 317, 348, 499, 525, 8763, 348, 13, 1, 164, 73, 309, 73, 13, 1, 13, 1, 317, 718, 348, 499, 525, 8763, 13, 1, 317, 19, 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...
SUDS - programmatic access to methods and types === I'm investigating SUDS as a SOAP client for python. I want to inspect the methods available from a specified service, and the types required by a specified method. The aim is to generate a user interface, allowing users to select a method, then fill in values in a dynamically generated form. I can get some information on a particular method, but am unsure how to parse it: client = Client(url) method = client.sd.service.methods['MyMethod'] I am unable to figure out what object type I need to create to be able to call the service obj = client.factory.create('?') res = client.service.MyMethod(obj, soapheaders=authen) Does anyone have some sample code?
0
[ 2, 9680, 18, 13, 8, 625, 6732, 1381, 20, 3195, 17, 2551, 800, 3726, 3726, 31, 22, 79, 12490, 9680, 18, 28, 21, 6447, 6819, 26, 20059, 9, 31, 259, 20, 19, 7350, 14, 3195, 904, 37, 21, 9931, 365, 15, 17, 14, 2551, 1390, 34, 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 to alternate HTML table row colors using JSP? === How do I alternate HTML table row colors using JSP? My CSS looks something like: tr.odd {background-color: #EEDDEE} tr.even {background-color: #EEEEDD} I want to use `<c:forEach>` to iterate over a collection. <c:forEach items="${element}" var="myCollection"> <tr> <td><c:out value="${element.field}"/></td> ... </tr> </c:forEach> I need an int count variable or boolean odd/even variable to track the row. Then my `<tr>` tag would look something like: <tr class="odd or even depending on the row">
0
[ 2, 184, 20, 4912, 13, 15895, 859, 3131, 5268, 568, 487, 3401, 60, 800, 3726, 3726, 184, 107, 31, 4912, 13, 15895, 859, 3131, 5268, 568, 487, 3401, 60, 51, 272, 18, 18, 1879, 301, 101, 45, 9235, 9, 22530, 13, 1, 1958, 8810, 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...
How can you create an ASP.Net 2.0 web service that consumes and produces JSON objects? === I would like create a web service in ASP.Net 2.0 that will supports JSON. Can anyone point me to a good article or sample code?
0
[ 2, 184, 92, 42, 1600, 40, 28, 306, 9, 2328, 172, 9, 387, 2741, 365, 30, 16447, 18, 17, 6700, 487, 528, 3916, 60, 800, 3726, 3726, 31, 83, 101, 1600, 21, 2741, 365, 19, 28, 306, 9, 2328, 172, 9, 387, 30, 129, 6747, 487, 528, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
NCover on 64-bit system === What do you suggest to use for code coverage on 64-bit environment. It seems that NCover supports 64-bit only in Enterprise version which seems to be quite expensive. Or isn't it? What are people using on 64-bit systems for .NET code coverage?
0
[ 2, 13, 103, 14069, 27, 4384, 8, 3326, 329, 800, 3726, 3726, 98, 107, 42, 5601, 20, 275, 26, 1797, 5245, 27, 4384, 8, 3326, 2307, 9, 32, 2206, 30, 13, 103, 14069, 6747, 4384, 8, 3326, 104, 19, 6002, 615, 56, 2206, 20, 44, 1450,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to execute a text file from SQL query? === I have a number of generated .sql files that I want to run in succession. I'd like to run them from a SQL statement in a query (i.e. Query Analizer/Server Management Studio). Is it possible to do something like this and if so what is the syntax for doing this? I'm hoping for something like: exec 'c:\temp\file01.sql' exec 'c:\temp\file02.sql' I am using SQL Server 2005 and running queries in the management studio.
0
[ 2, 25, 32, 938, 20, 15644, 21, 1854, 3893, 37, 4444, 255, 25597, 60, 800, 3726, 3726, 31, 57, 21, 234, 16, 6756, 13, 9, 18, 22402, 6488, 30, 31, 259, 20, 485, 19, 7676, 9, 31, 22, 43, 101, 20, 485, 105, 37, 21, 4444, 255, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Gentle introduction to JIT and dynamic compilation / code generation. === The deceptively simple foundation of dynamic code generation within a C/C++ framework has already been covered in [another question](http://stackoverflow.com/questions/45408/). Are there any gentle introductions into topic with code examples? My eyes are starting to bleed staring at highly intricate open source JIT compilers when my needs are much more modest. Are there good texts on the subject that don't assume a doctorate in computer science? I'm looking for well worn patterns, things to watch out for, performance considerations, etc. Electronic or tree-based resources can be equally valuable. You can assume a working knowledge of (not just x86) assembly language.
0
[ 2, 5654, 3445, 20, 13, 13803, 17, 7782, 4868, 13, 118, 1797, 2782, 9, 800, 3726, 3726, 14, 27663, 102, 1935, 1304, 16, 7782, 1797, 2782, 363, 21, 272, 118, 150, 20512, 6596, 63, 614, 74, 1363, 19, 636, 14945, 1301, 500, 5, 21127, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can CListCtrl use OnMeasureItem() method? === I want to change item's height and width according to a slider, but as far as I know, there's no measureitem method as CListBox. How can I fix this? Thank you!
0
[ 2, 92, 272, 5739, 4812, 6362, 275, 27, 24493, 2119, 79, 5, 6, 2109, 60, 800, 3726, 3726, 31, 259, 20, 753, 9101, 22, 18, 2947, 17, 9456, 496, 20, 21, 3295, 106, 15, 47, 28, 463, 28, 31, 143, 15, 80, 22, 18, 90, 4058, 2119, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Checking lists and running handlers === I find myself writing code that looks like this a lot: set<int> affected_items; while (string code = GetKeyCodeFromSomewhere()) { if (code == "some constant" || code == "some other constant") { affected_items.insert(some_constant_id); } else if (code == "yet another constant" || code == "the constant I didn't mention yet") { affected_items.insert(some_other_constant_id); } // else if etc... } for (set<int>::iterator it = affected_items.begin(); it != affected_items.end(); it++) { switch(*it) { case some_constant_id: RunSomeFunction(with, these, params); break; case some_other_constant_id: RunSomeOtherFunction(with, these, other, params); break; // etc... } } The reason I end up writing this code is that I need to only run the functions in the second loop once even if I've received multiple key codes that might cause them to run. This just doesn't seem like the best way to do it. Is there a neater way?
0
[ 2, 9886, 7227, 17, 946, 24641, 18, 800, 3726, 3726, 31, 477, 992, 1174, 1797, 30, 1879, 101, 48, 21, 865, 45, 309, 1, 6391, 1, 4114, 1, 2119, 79, 18, 73, 133, 13, 5, 11130, 1797, 800, 164, 4237, 9375, 2665, 3220, 2798, 5, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to set internationalization to a Droptimepicker or calendar control in .Net === how to set internationalization to a Droptimepicker or Calendar WinForm control in .Net when the desire culture is different to the one installed in the PC?
0
[ 2, 184, 20, 309, 294, 1829, 20, 21, 2804, 891, 16855, 106, 54, 7036, 569, 19, 13, 9, 2328, 800, 3726, 3726, 184, 20, 309, 294, 1829, 20, 21, 2804, 891, 16855, 106, 54, 7036, 628, 4190, 569, 19, 13, 9, 2328, 76, 14, 3150, 1365,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Linq/lamda question about .Select (newby learning 3.0) === I am playing with the new stuff of C#3.0 and I have this code (mostly taken from [MSDN][1]) but I can only get true,false,true... and not the real value : int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 }; var oddNumbers = numbers.Select(n => n % 2 == 1); Console.WriteLine("Numbers < 5:"); foreach (var x in oddNumbers) { Console.WriteLine(x); } How can I fix that to show the list of integer? [1]: http://msdn.microsoft.com/en-us/vcsharp/aa336746.aspx
0
[ 2, 6294, 1251, 118, 4445, 593, 1301, 88, 13, 9, 18, 16964, 13, 5, 2681, 779, 2477, 203, 9, 387, 6, 800, 3726, 3726, 31, 589, 791, 29, 14, 78, 3217, 16, 272, 5910, 240, 9, 387, 17, 31, 57, 48, 1797, 13, 5, 18397, 658, 37, 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...
"HTTP status 401: Access Denied" error for web service even when the virtual directory allows Anonymous access === i have a web service hosted on another server with the Anonymous Access CheckBox in IIS is already checked. when my local web application is trying to access the web service, i still get the "The request failed with HTTP status 401: Access Denied." error. my web application is calling the web service like the following: MyObject.WebService ws = new MyObject.WebService (); ws.Retrieve(someParams); what am i missing here?
0
[ 2, 13, 7, 21127, 1782, 13, 20658, 45, 1381, 5265, 7, 7019, 26, 2741, 365, 166, 76, 14, 6599, 16755, 2965, 10364, 1381, 800, 3726, 3726, 31, 57, 21, 2741, 365, 2812, 27, 226, 8128, 29, 14, 10364, 1381, 2631, 5309, 19, 595, 18, 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...
Can I Register more than one shutdown function in PHP? === using `register_shutdown_function` I can register code to execute at the end of a PHP script execution "no matter what". Can I have more than one function registered? This question arises since I may not know if someone has already registered one when I'm about to register my own. Thanks.
0
[ 2, 92, 31, 2243, 91, 119, 53, 28450, 1990, 19, 13, 26120, 60, 800, 3726, 3726, 568, 13, 1, 12463, 9959, 1, 15640, 2968, 1, 22359, 1, 31, 92, 2243, 1797, 20, 15644, 35, 14, 241, 16, 21, 13, 26120, 3884, 5769, 13, 7, 251, 1161, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 fix apache2 timestamps, incorrect values === When I restart my apache2 and reload a page, the log file shows<br><br> <code>boogie.tontut.fi - - [28/Oct/2008:03:27:49 +0200] "GET /test HTTP/1.1" 404 457 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3"</code> ...as supposed to, as it's 03:27:49 now. However, when I click the refresh button again, the new log entry is:<br><br> <code>boogie.tontut.fi - - [27/Oct/2008:21:27:52 -0400] "GET /test HTTP/1.1" 404 457 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3"</code> Offset has changed from +0200 to -0400 and I have no clue where this comes from. Does any of you know where to start troubleshooting this problem? Thank you for your answers. -Samuli
0
[ 2, 184, 20, 6098, 17140, 135, 436, 4919, 1919, 15, 18867, 4070, 800, 3726, 3726, 76, 31, 22767, 51, 17140, 135, 17, 27339, 21, 2478, 15, 14, 6738, 3893, 1285, 1, 5145, 1, 5145, 1, 13, 1, 9375, 1, 10858, 7298, 9, 444, 38, 1982, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Saving Word 2007 to MOSS gives never ending "Getting list of available content types..." dialog === We have a weird intermittent problem with saving from Word 2007 to our SharePoint 2007 (MOSS) document libraries that gives a dialog box that never goes away - it is titled "Content Types" and the message "Getting list of available content types..." with a green progress-type bar that keeps scrolling. It happens a lot on our training server (self-contained virtual machine with separate SQL Server) but more worryingly is happening on our live production server (which is in a medium server farm arrangement - web application server, another server for search/indexing and a SQL Server). All servers in the farms are 64 bit. It is strangely random - the user has to kill Word 2007, then they recover their document and try to save to the same document library and it saves without a problem. It happens more on the training server than the live server. The live web application server rarely goes over 20% CPU (usually around 5%) and memory peaks at 2Gb of the available 4Gb (usually at 1.5Gb) so I don't think its a resources issue. The document libraries are customised and deployed using Features in a Solution. The only content type in them is the standard Documents content type.
0
[ 2, 7599, 833, 624, 20, 8188, 2352, 243, 3119, 13, 7, 27380, 968, 16, 904, 2331, 2551, 9, 9, 9, 7, 28223, 800, 3726, 3726, 95, 57, 21, 5455, 19667, 1448, 29, 7599, 37, 833, 624, 20, 318, 1891, 3132, 624, 13, 5, 7076, 18, 6, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which is more efficient way to assign values to variables in .NET? === This is something that I have always wondered about, but never bothered to profile. Is it more efficient to assign a value to a temp variable, than to keep using that value. An Example may be clearer: string s = reader.GetItem[0].ToString(); someClass.SomeField = s; someOtherClass.someField = s; OR someClass.SomeField = reader.GetItem[0].ToString(); someOtherClass.someField = reader.GetItem[0].ToString(); My initial thought would the top example would be more efficient as it doesn't have to access the Item collection or call ToString. Would be interested to hear other peoples ideas, or definitive answer either way.
0
[ 2, 56, 25, 91, 8243, 161, 20, 13952, 4070, 20, 12157, 19, 13, 9, 2328, 60, 800, 3726, 3726, 48, 25, 301, 30, 31, 57, 550, 3519, 88, 15, 47, 243, 12200, 20, 5296, 9, 25, 32, 91, 8243, 20, 13952, 21, 1923, 20, 21, 13, 9577, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there any way to get a REPL in pydev? === I would like to be able to drop to the python REPL from the debugger -- if this is not possible is there an easier way to evaluate python expressions in the context of the current breakpoint other than manually adding them all as watch expressions?
0
[ 2, 25, 80, 186, 161, 20, 164, 21, 302, 5727, 19, 7103, 14438, 60, 800, 3726, 3726, 31, 83, 101, 20, 44, 777, 20, 2804, 20, 14, 20059, 302, 5727, 37, 14, 121, 2345, 11356, 13, 8, 8, 100, 48, 25, 52, 938, 25, 80, 40, 4950, 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...