unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Sun Solaris IDE/Source Controle Choices === At my new job I'm getting acclimated with the IDE we have Visual SlickEdit 8.0 installed on our sun solaris workstation that we telnet into(lol yes ssh is turned off). Now it does the basics but is missing many things I considered must haves like code hiding and parenthesis matching. Are there any alternatives to constantly ftping my work from our remote sun machine so I can edit it with a local copy of Eclipse then ftp it back. We dont' have any source control for incremental updates locally so if I overwrite my changes I'm screwed and with lots of ftping I can only assume its a matter of time before I overwrite some of my work. Any ideas or suggestions?
0
[ 2, 939, 4535, 403, 13, 3448, 118, 12097, 569, 62, 10978, 800, 3726, 3726, 35, 51, 78, 1205, 31, 22, 79, 1017, 21, 150, 24487, 69, 29, 14, 13, 3448, 95, 57, 3458, 12544, 69, 242, 469, 9, 387, 4066, 27, 318, 939, 4535, 403, 170,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there any Visual Library alternative to wxPython that supports CSS/Style Sheets? === I've developed a program that extensively uses wxPython - the wxWindow port for python. Even though it is as mature library it is still very primitive and very programming oriented. Which is time consuming and not flexible at all. I would love to see if there is something like Flex/Action Script where all the visual dimensions are configured by style sheets. Any thoughts? Thanks
0
[ 2, 25, 80, 186, 3458, 1248, 2676, 20, 619, 396, 6448, 11570, 30, 6747, 272, 18, 18, 118, 4381, 8801, 60, 800, 3726, 3726, 31, 22, 195, 885, 21, 625, 30, 7802, 2027, 619, 396, 6448, 11570, 13, 8, 14, 619, 396, 27508, 1295, 26, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to write to a file in Ruby? === I would like to write some data to a file in Ruby. What is the best way to do that?
4
[ 2, 98, 25, 14, 246, 161, 20, 2757, 20, 21, 3893, 19, 10811, 60, 800, 3726, 3726, 31, 83, 101, 20, 2757, 109, 1054, 20, 21, 3893, 19, 10811, 9, 98, 25, 14, 246, 161, 20, 107, 30, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How do you install an ssh server on qnx? === I'm working on a qnx device, and I want to be able to ssh into it. Does anyone have a primer on getting something like openSSH up and running?
0
[ 2, 184, 107, 42, 16146, 40, 13, 18, 1635, 8128, 27, 2593, 103, 396, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 2593, 103, 396, 3646, 15, 17, 31, 259, 20, 44, 777, 20, 13, 18, 1635, 77, 32, 9, 630, 1276, 57, 21, 1621, 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, 0, 0, 0, 0, 0...
How much Application session data can you actually hold? === I currently have an application that gets hit with over 20,000 users daily and they mostly look at one data table. This data table is filled with about 20 rows but is pulled from a "datatable" in a db with 200,000-600,000 records of information in the table. I also currently hold user data along with profile data. I am currently making about 4 call backs each time a datatable is displayed and I am unable to get it down to 1 call. **Question:** I was wondering if I could actually fill the application state every 5 seconds with the 200,000-600,000 rows of data and would it actually speed up the system? **Question 2:** How much can I actually hold in application cache and still get away with it going faster?
0
[ 2, 184, 212, 3010, 3723, 1054, 92, 42, 1121, 1027, 60, 800, 3726, 3726, 31, 871, 57, 40, 3010, 30, 3049, 770, 29, 84, 11047, 3878, 1954, 17, 59, 1555, 361, 35, 53, 1054, 859, 9, 48, 1054, 859, 25, 1943, 29, 88, 434, 11295, 47,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HashSet vs. List performance === It's clear that a search performance of the generic HashSet class is higher than of the generic List class. Just compare the hash-based key with the linear approach in the List class. However calculating a hash key may itself take some CPU cycles, so for a small amount of items the linear search can be a real alternative to the HashSet. My question is what the break-even? To simplify the scenario (and to be fair) let's assume that the List class uses the element's Equals() method to identify an item.
0
[ 2, 19170, 3554, 4611, 9, 968, 956, 800, 3726, 3726, 32, 22, 18, 1207, 30, 21, 2122, 956, 16, 14, 12733, 19170, 3554, 718, 25, 1184, 119, 16, 14, 12733, 968, 718, 9, 114, 11590, 14, 19170, 8, 1281, 1246, 29, 14, 6745, 2141, 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...
SSIS: Remove Duplicates from Flat File === Let me first say that being able to take 17 million records from a flat file, pushing to a DB on a remote box and having it take 7 minutes is amazing. SSIS truly is fantastic. But now that I have that data up there, how do I remove duplicates? Better yet, I want to take the flat file, remove the duplicates from the flat file and put them back into another flat file. I am thinking about a: <ul><h3>Data Flow Task</h3><li>File source (with an associated file connection)</li><li>A for loop container</li><li>A script container that contains some logic to tell if another row exists</li> </ul> Thak you, and everyone on this site is incredibly knowledgeable.
0
[ 2, 13, 18, 4557, 45, 4681, 19429, 18, 37, 1844, 3893, 800, 3726, 3726, 408, 55, 64, 395, 30, 142, 777, 20, 247, 369, 507, 742, 37, 21, 1844, 3893, 15, 5076, 20, 21, 13, 9007, 27, 21, 5388, 1649, 17, 452, 32, 247, 453, 902, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I test if a list of files exist? === I have a list of filenames, each on it's own line, and I want to test if each exists in a particular directory. For example, one line of the file might be `mshta.dll`, and I want to see if a file named `X:\Windows\System32\mshta.dll` exists. How can I do this using the Windows command prompt? Also (out of curiosity) how would I do this using bash or another Unix shell?
0
[ 2, 184, 92, 31, 1289, 100, 21, 968, 16, 6488, 3182, 60, 800, 3726, 3726, 31, 57, 21, 968, 16, 3893, 7259, 18, 15, 206, 27, 32, 22, 18, 258, 293, 15, 17, 31, 259, 20, 1289, 100, 206, 5636, 19, 21, 1498, 16755, 9, 26, 823, 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...
Are regexes really maintainable? === Any code I've seen that uses Regexes tends to use them as a black box: 1. Put in string 2. Magic Regex 3. Get out string This doesn't seem a particularly good idea to use in production code, as even a small change can often result in a completely different regex. Apart from cases where the standard is permanent and unchanging, are regexes the way to do things, or is it better to try different methods?
0
[ 2, 50, 7953, 1706, 160, 510, 4027, 579, 60, 800, 3726, 3726, 186, 1797, 31, 22, 195, 541, 30, 2027, 7953, 1706, 160, 14261, 20, 275, 105, 28, 21, 319, 1649, 45, 137, 9, 442, 19, 3724, 172, 9, 2154, 7953, 1706, 203, 9, 164, 70,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Porting Android's Java VM to the iPhone? === Does anyone know of any existing projects that aim to port Android's Java VM over to the iPhone? From what I understand, this wouldn't be too out of reach and would certainly make for some exciting developments.
0
[ 2, 1295, 68, 13005, 22, 18, 8247, 13, 20147, 20, 14, 21024, 60, 800, 3726, 3726, 630, 1276, 143, 16, 186, 3149, 2314, 30, 5226, 20, 1295, 13005, 22, 18, 8247, 13, 20147, 84, 20, 14, 21024, 60, 37, 98, 31, 1369, 15, 48, 1265, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
Side effects of calling RegisterWindow multiple times with same window class? === I'm working on a little test application at the minute and I have multiple window objects floating around and they each call RegisterWindowEx with the same WNDCLASSEX structure (mainly because they are all an instance of the same class). The first one registers ok, then multiple ones fail, saying class already registered - as expected. My question is - is this bad? I was thinking of using a hash table to store the ATOM results in, to look up before calling RegisterWindow, but it seems Windows does this already?
0
[ 2, 270, 2292, 16, 2555, 2243, 27508, 1886, 436, 29, 205, 1463, 718, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 265, 1289, 3010, 35, 14, 2038, 17, 31, 57, 1886, 1463, 3916, 8319, 140, 17, 59, 206, 645, 2243, 27508, 1706, 29, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to track down a memory leak (C#) only visible on one customer's box === What is the best way to track down a memory leak that is only found on one customer's test/release box, and no where else?
0
[ 2, 246, 161, 20, 792, 125, 21, 1912, 11724, 13, 5, 150, 5910, 6, 104, 4560, 27, 53, 7705, 22, 18, 1649, 800, 3726, 3726, 98, 25, 14, 246, 161, 20, 792, 125, 21, 1912, 11724, 30, 25, 104, 216, 27, 53, 7705, 22, 18, 1289, 118,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
How to handle an ActiveX event in Javascript === This is somewhat of a follow-up to an answer [here][1]. I have a custom ActiveX control that is raising an event ("ReceiveMessage" with a "msg" parameter) that needs to be handled by Javascript in the web browser. Historically we've been able to use the following IE-only syntax to accomplish this on different projects: function MyControl::ReceiveMessage(msg) { alert(msg); } However, when inside a layout in which the control is buried, the Javascript cannot find the control. Specifically, if we put this into a plain HTML page it works fine, but if we put it into an ASPX page wrapped by the `<Form>` tag, we get a "MyControl is undefined" error. We've tried variations on the following: var GetControl = document.getElementById("MyControl"); function GetControl::ReceiveMessage(msg) { alert(msg); } ... but it results in the Javascript error "GetControl is undefined." What is the proper way to handle an event being sent from an ActiveX control? Right now we're only interested in getting this working in IE. This has to be a custom ActiveX control for what we're doing. Thanks. [1]: http://stackoverflow.com/questions/26536/active-x-control-javascript
0
[ 2, 184, 20, 3053, 40, 1348, 396, 807, 19, 8247, 8741, 800, 3726, 3726, 48, 25, 4131, 16, 21, 1740, 8, 576, 20, 40, 1623, 636, 6836, 500, 2558, 165, 500, 9, 31, 57, 21, 5816, 1348, 396, 569, 30, 25, 5698, 40, 807, 13, 5, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Stratagies for Data Loading and DB Initialization for Integration Tests === I'm developing an integration testing framework for a data intensive J2EE enterprise application and I'm trying to decide upon a strategy for initializing and populating the database. We have a fairly complex model. The system will have to: 1. Initialize the system itself 2. Load users 3. Load application test data The test data won't be as complex as the system will handle, load and stress testing is the domain of a specialized test team. We're interested in how well the UI's display what is in the system and that functions integration correctly from top to bottom.
0
[ 2, 24125, 19008, 26, 1054, 12797, 17, 13, 9007, 2104, 1829, 26, 8078, 4894, 800, 3726, 3726, 31, 22, 79, 3561, 40, 8078, 4431, 6596, 26, 21, 1054, 13633, 487, 135, 2851, 6002, 3010, 17, 31, 22, 79, 749, 20, 4073, 685, 21, 4427, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Pentaho vs Microsoft BI Stack === My company is heavily invested in the MS BI Stack (SQL Server Reporting Services, -Analysis Services and -Integration Services), but I want to have a look at what the seemingly most talked about open-source alternative Pentaho is like. I've installed a version, and I got it up and running quite painlessly. So that's good. But I haven't really the time to start using it for actual work to get a thorough understanding of the package. Have any of you got any insights into what are the pros and cons of Pentaho vs MS BI, or any links to such comparisons? Much appreciated!
4
[ 2, 11734, 58, 1807, 4611, 7099, 1732, 7566, 800, 3726, 3726, 51, 237, 25, 2991, 12269, 19, 14, 4235, 1732, 7566, 13, 5, 18, 22402, 8128, 6670, 687, 15, 13, 8, 26293, 687, 17, 13, 8, 12370, 857, 687, 6, 15, 47, 31, 259, 20, 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...
How can I create this action link? === I'm having issues creating an ActionLink using Preview 5. All the docs I can find describe the older generic version. I'm constructing links on a list of jobs on the page /jobs. Each job has a guid, and I'd like to construct a link to /jobs/details/{guid} so I can show details about the job. My jobs controller has an Index controller and a Details controller. The Details controller takes a guid. I've tried this <%= Html.ActionLink(job.Name, "Details", job.JobId); %> However, that gives me the url "/jobs/details". What am I missing here?
0
[ 2, 184, 92, 31, 1600, 48, 1028, 3508, 60, 800, 3726, 3726, 31, 22, 79, 452, 1549, 2936, 40, 1028, 6258, 568, 16121, 331, 9, 65, 14, 9765, 18, 31, 92, 477, 4996, 14, 1234, 12733, 615, 9, 31, 22, 79, 18660, 6271, 27, 21, 968, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get JRE/JDK with matching source? === I'd like to get at least one JRE/JDK level on my Windows machine where I have the JRE/JDK source that matches the exact level of the JRE/JDK. My purpose is to be able to go into the system classes while debugging. Any suggestions about how to do this? Thanks in advance.
0
[ 2, 184, 20, 164, 487, 99, 118, 728, 43, 197, 29, 10120, 1267, 60, 800, 3726, 3726, 31, 22, 43, 101, 20, 164, 35, 639, 53, 487, 99, 118, 728, 43, 197, 662, 27, 51, 1936, 1940, 113, 31, 57, 14, 487, 99, 118, 728, 43, 197, 12...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Good C Development Environments and Tools === Looking at learning some C since i saw in [another SO question][1] that is good to learn for the language and for the historical experience. Wondering about what IDE's professionals use and what other tools are useful while programming in C? [1]: http://stackoverflow.com/questions/296/should-i-learn-c
0
[ 2, 254, 272, 522, 11246, 17, 4672, 800, 3726, 3726, 699, 35, 2477, 109, 272, 179, 31, 441, 19, 636, 14945, 86, 1301, 500, 2558, 165, 500, 30, 25, 254, 20, 2484, 26, 14, 816, 17, 26, 14, 1668, 1496, 9, 5712, 88, 98, 13, 3448, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 can cause mutated Word document attachements? === We are sending out Word documents via email (automated system, not by hand). The email is sent to the user, and CC'd to me. We are getting reports that some users are having the attachments come through corrupted, though when we open the copy that is CC'd to me, it opens fine. When the user forwards us the copy they received, then we cannot open it. Below is a hex comparison of the two files. Can anyone identity what is going on here? ![corrupted attachment][1] [1]:http://i34.tinypic.com/vs2jpi.png Message headers are below Return-Path: <info@XXX.co.nz> Received: from animal.hosts.net.nz (root@localhost) by XXX.co.nz (8.12.11/8.12.11) with ESMTP id m8T52Mw6021168; Mon, 29 Sep 2008 18:02:22 +1300 X-Clientaddr: 210.48.108.196 Received: from marjory.hosts.net.nz (marjory.hosts.net.nz [210.48.108.196]) by animal.hosts.net.nz (8.12.11/8.12.11) with ESMTP id m8T52EvU028021; Mon, 29 Sep 2008 18:02:19 +1300 Received: from XXX.XXX.co.nz ([210.48.67.48]) by marjory.hosts.net.nz with esmtp (Exim 4.63) (envelope-from <info@XXX.co.nz>) id 1KkAtd-0004Ch-I9; Mon, 29 Sep 2008 18:02:09 +1300 Received: from localhost ([127.0.0.1]) by XXX.XXX.co.nz with esmtp (Exim 4.63) (envelope-from <info@XXX.co.nz>) id 1KkAtV-0001C3-4s; Mon, 29 Sep 2008 18:02:01 +1300 From: "XXX" <info@XXX.co.nz> To: "Sue" <sue@XXX.co.nz> Reply-To: jayar_navarro@XXX.com Subject: XXX: new application received Date: Mon, 29 Sep 2008 18:02:01 +1300 Content-Type: multipart/mixed; charset="utf-8"; boundary="=_5549133ca51ec83196e2cfd28dad40f7" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline MIME-Version: 1.0 Message-ID: <E1KkAtV-0001C3-4s@XXX.XXX.co.nz>
0
[ 2, 98, 92, 1679, 29891, 833, 4492, 23453, 6601, 60, 800, 3726, 3726, 95, 50, 4907, 70, 833, 4374, 1197, 8517, 13, 5, 18042, 79, 1669, 329, 15, 52, 34, 224, 6, 9, 14, 8517, 25, 795, 20, 14, 4155, 15, 17, 8093, 22, 43, 20, 55,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Socket programming: Do some ISP's impose rate-limiting? === I'm currently trying to debug a customer's issue with an FTP upload feature in one of our products. The feature allows customers to upload files (< 1MB) to a central FTP server for further processing. The FTP client code was written in-house in VB.NET. The customer reports that they receive "Connection forcibly closed by remote host" errors when they try to upload files in the range of 300KB to 500KB. However, we tested this in-house with much larger files (relatively speaking), i.e. 3MB and up, and never received this error. We uploaded to the same FTP server that the client connects to using the same FTP logon credentials, the only difference being that we did it from our office. I know that the TCP protocol has flow-control built-in, so it shouldn't matter how much data is sent in a single Send call, since the protocol will throttle itself accordingly to match the server's internal limits (if I remember correctly...) Therefore, the only thing I can think is that that an intermediate host between the client and the router is artificially rate-limiting the client and disconnecting it (we send the file data in a loop in 512-byte chunks). This is the loop that is used to send the data (buffer is a Byte array containing the file data): For i = 0 To buffer.Length - 1 Step 512 mDataSocket.Send(buffer, i, 512, SocketFlags.None) OnTransferStatus(i, buffer.Length) Next Is it possible that the customer's ISP (or their own firewall) is imposing an artificial rate-limit on how much data our client code can send within a given period of time? If so, what is the best way to handle this situation? I guess the obvious solution would be to introduce a delay in our send loop, unless there is a way to do this at the socket level. It seems really odd to me that an ISP would handle a rate-limit violation by killing the client connection. Why wouldn't they just rely on TCP/IP's internal flow-control/throttling mechanism?
0
[ 2, 18482, 3143, 45, 107, 109, 25, 306, 22, 18, 18009, 1684, 8, 20565, 68, 60, 800, 3726, 3726, 31, 22, 79, 871, 749, 20, 121, 16254, 21, 7705, 22, 18, 1513, 29, 40, 1187, 306, 71, 8294, 1580, 19, 53, 16, 318, 1985, 9, 14, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL Query: Remove Duplicates with Caveats === There are multiple delete rows questions here, but this one is a little unique (not difficult, just unique). I have already ready the other thread found here: <a href="http://stackoverflow.com/questions/18932/sql-how-can-i-remove-duplicate-rows">http://stackoverflow.com/questions/18932/sql-how-can-i-remove-duplicate-rows</a> Question: I have a table with rowID,longitude,latitude,businessName,url, caption. This might look like: <table> <tr><td>rowID | long | lat | businessName | url &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;caption</td></tr> <tr><td>1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20&nbsp;&nbsp; -20&nbsp;&nbsp;&nbsp; Pizza Hut &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yum.com &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; null</td></tr> <tr><td>2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 20 &nbsp; -20 &nbsp;&nbsp;&nbsp;Pizza Hut &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rabble rabble rabble</td></tr> </table><br/> How do I delete all of the duplicates, but only keep the one that has a URL (first priority), or keep the one that has a caption if the other doesn't have a URL(second priority) and delete the rest?
0
[ 2, 4444, 255, 25597, 45, 4681, 19429, 18, 29, 3542, 721, 18, 800, 3726, 3726, 80, 50, 1886, 27448, 11295, 2346, 235, 15, 47, 48, 53, 25, 21, 265, 2619, 13, 5, 1270, 1956, 15, 114, 2619, 6, 9, 31, 57, 614, 1451, 14, 89, 9322, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Windows Forms UserControl overrides not being called === I am creating a Windows Forms control derived from UserControl to be embedded in a WPF app. I have generally followed the procedures given in [this link][1]. public ref class CTiledImgViewControl : public UserControl { ... virtual void OnPaint( PaintEventArgs^ e ) override; ... }; And in my CPP file: void CTiledImgViewControl::OnPaint( PaintEventArgs^ e ) { UserControl::OnPaint(e); // do something interesting... } Everything compiles and runs, however the OnPaint method is never getting called. Any ideas of things to look for? I've done a lot with C++, but am pretty new to WinForms and WPF, so it could well be something obvious... [1]: http://www.codeproject.com/KB/WPF/WPFOpenGL.aspx?display=Print
0
[ 2, 1936, 1997, 4155, 12898, 84, 11891, 18, 52, 142, 227, 800, 3726, 3726, 31, 589, 2936, 21, 1936, 1997, 569, 3981, 37, 4155, 12898, 20, 44, 12138, 19, 21, 619, 7721, 4865, 9, 31, 57, 1469, 709, 14, 8876, 504, 19, 636, 1565, 350...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Regex ValidationExpression ASCII === Anyone know a good Regex expression to drop in the ValidationExpression to be sure that my users are only entering ASCII characters? <asp:RegularExpressionValidator id="myRegex" runat="server" ControlToValidate="txtName" ValidationExpression="???" ErrorMessage="Non-ASCII Characters" Display="Dynamic" />
0
[ 2, 13, 9, 2328, 7953, 1706, 27999, 28993, 28, 1892, 49, 800, 3726, 3726, 1276, 143, 21, 254, 7953, 1706, 1803, 20, 2804, 19, 14, 27999, 28993, 20, 44, 562, 30, 51, 3878, 50, 104, 4604, 28, 1892, 49, 1766, 60, 13, 1, 472, 306, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 password protect IIS in a method analogous to Apache's AuthType / AuthUserFile mechanism? === I'm used to doing basic password protection for Apache w/ the following method in Apache config files: >AuthType Basic AuthName "By Invitation Only" AuthUserFile /path/to/.htpasswd Require valid-user However, I've been asked to put some protection on a subdirectory of a site running ColdFusion on top of IIS6, and I'm unfamiliar with how to do this. How is this done? What should I look out for? I just need to password protect an administrative subdirectory, so I don't need a full user login system - just something that limits who can access the section of the site.
0
[ 2, 184, 107, 31, 20884, 2196, 595, 18, 19, 21, 2109, 21837, 20, 17140, 22, 18, 10343, 96, 4474, 13, 118, 21, 27431, 4104, 16877, 6534, 60, 800, 3726, 3726, 31, 22, 79, 147, 20, 845, 2125, 20884, 2057, 26, 17140, 619, 118, 14, 24...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the best way for a .NET windows forms application to update itself? === I use a home-grown system where the application updates itself from a web service. However, I seem to remember something in the original .NET sales pitch about auto-updating of components being a built-in feature of .NET. What are the best practices for having an application update itself and/or the assemblies it uses?
0
[ 2, 98, 22, 18, 14, 246, 161, 26, 21, 13, 9, 2328, 1936, 1997, 3010, 20, 11100, 1145, 60, 800, 3726, 3726, 31, 275, 21, 213, 8, 16347, 329, 113, 14, 3010, 16779, 1145, 37, 21, 2741, 365, 9, 207, 15, 31, 2260, 20, 1518, 301, 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...
Computer Science text book way to do text/xml/whatever parsing. === It's been ratling in my brain for a while. I've had some investigation on Compilers/Flex/Byson and stuff but I never found a good reference that talked in detail about the "parsing stack", or how to go about implementing one. Does anyone know of good references where I could catch up?
0
[ 2, 1428, 762, 1854, 360, 161, 20, 107, 1854, 118, 396, 8184, 118, 13515, 2017, 18, 68, 9, 800, 3726, 3726, 32, 22, 18, 74, 4595, 802, 19, 51, 1964, 26, 21, 133, 9, 31, 22, 195, 41, 109, 3193, 27, 21486, 18, 118, 19752, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how do you specify the port number in a oledb connection string to sql server 2005? === Just found this out, so i am answering my own question :) Use a comma where you would normally use a colon. This can be a problem for named instances, as you seem to need to specify the port even if it is the default port 1433. Example: Provider=SQLOLEDB;Data Source=192.168.200.123,1433; Initial Catalog=Northwind; User Id=WebUser; Password=windy"
0
[ 2, 184, 107, 42, 19077, 14, 1295, 234, 19, 21, 12116, 9007, 2760, 3724, 20, 4444, 255, 8128, 812, 60, 800, 3726, 3726, 114, 216, 48, 70, 15, 86, 31, 589, 11777, 51, 258, 1301, 13, 45, 6, 275, 21, 11951, 58, 113, 42, 83, 4147, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Problem installing RubyGems on Vista === I get the following error when attempting to install [RubyGems][1]. I've tried Googling but have had no luck there. Has anybody encountered and resolved this issue before? <pre><code> C:\rubygems-1.3.0> ruby setup.rb . . install -c -m 0644 rubygems/validator.rb C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/validator.rb install -c -m 0644 rubygems/version.rb C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/version.rb install -c -m 0644 rubygems/version_option.rb C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/version_option.rb install -c -m 0644 rubygems.rb C:/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb install -c -m 0644 ubygems.rb C:/Ruby/lib/ruby/site_ruby/1.8/ubygems.rb cp gem C:/Users/brian/AppData/Local/Temp/gem install -c -m 0755 C:/Users/brian/AppData/Local/Temp/gem C:/Ruby/bin/gem rm C:/Users/brian/AppData/Local/Temp/gem install -c -m 0755 C:/Users/brian/AppData/Local/Temp/gem.bat C:/Ruby/bin/gem.bat rm C:/Users/brian/AppData/Local/Temp/gem.bat Removing old RubyGems RDoc and ri Installing rubygems-1.3.0 ri into C:/Ruby/lib/ruby/gems/1.8/doc/rubygems-1.3.0/ri ./lib/rubygems.rb:713:in `set_paths': undefined method `uid' for nil:NilClass (NoMethodError) from ./lib/rubygems.rb:711:in `each' from ./lib/rubygems.rb:711:in `set_paths' from ./lib/rubygems.rb:518:in `path' from ./lib/rubygems/source_index.rb:66:in `installed_spec_directories' from ./lib/rubygems/source_index.rb:56:in `from_installed_gems' from ./lib/rubygems.rb:726:in `source_index' from ./lib/rubygems.rb:138:in `activate' from ./lib/rubygems.rb:49:in `gem' from setup.rb:279:in `run_rdoc' from setup.rb:296 C:\rubygems-1.3.0></code></pre> I have Ruby 1.8.6 installed on my laptop running Windows Vista. Thanks in advance, Brian [1]: http://docs.rubygems.org/
0
[ 2, 1448, 25429, 10811, 20231, 18, 27, 13520, 800, 3726, 3726, 31, 164, 14, 249, 7019, 76, 6314, 20, 16146, 636, 1820, 779, 20231, 18, 500, 2558, 165, 500, 9, 31, 22, 195, 794, 162, 5598, 802, 47, 57, 41, 90, 5419, 80, 9, 63, 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...
Dependency Injection book recommendation(s) === It seems like there are very few books (yes, I read books) on Dependency Injection. The [Amazon tag](http://www.amazon.com/tag/dependency%20injection) for "dependency injection" lists only a few titles, and all of them are specifically about Spring for Java. Are there any books out there that cover DI/IoC in general? Or any that include a survey of multiple DI frameworks? Or any that cover .NET in lieu of or in addition to Java? Or do we have to rely on this newfangled interweb instead of dead trees...
4
[ 2, 26835, 13646, 360, 14066, 5, 18, 6, 800, 3726, 3726, 32, 2206, 101, 80, 50, 253, 310, 964, 13, 5, 1714, 15, 31, 1302, 964, 6, 27, 26835, 13646, 9, 14, 636, 3812, 6931, 3383, 500, 5, 21127, 6903, 6483, 9, 3812, 6931, 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...
What's the best way for a .NET winforms application to update itself without using ClickOnce? === For technical reasons, I can't use ClickOnce to auto-update my .NET application and its assemblies. What is the best way to handle auto-updating in .NET?
0
[ 2, 98, 22, 18, 14, 246, 161, 26, 21, 13, 9, 2328, 628, 4190, 18, 3010, 20, 11100, 1145, 366, 568, 10840, 13120, 60, 800, 3726, 3726, 26, 2447, 2932, 15, 31, 92, 22, 38, 275, 10840, 13120, 20, 3108, 8, 576, 8209, 51, 13, 9, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Properties in ActionScript 3 === Can I create my own property with getter and setter in ActionScript3?
0
[ 2, 3704, 19, 1028, 8741, 203, 800, 3726, 3726, 92, 31, 1600, 51, 258, 1354, 29, 164, 815, 17, 309, 815, 19, 1028, 8741, 240, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Finalizers and Dispose === I've got a class named BackgroundWorker that has a thread constantly running. To turn this thread off, an instance variable named "stop" to needs to be "false". To make sure the thread is freed when the class is done being used, I've added IDisposable and a finalizer that invokes Dispose(). Assuming that "stop = true" does indeed cause this thread to exit, is this correct? It's fine to invoke Dispose from a finalizer, right? /// <summary> /// Force the background thread to exit. /// </summary> public void Dispose() { lock (this.locker) { this.stop = true; } } ~BackgroundWorker() { this.Dispose(); }
0
[ 2, 426, 11907, 18, 17, 17913, 800, 3726, 3726, 31, 22, 195, 330, 21, 718, 377, 2395, 22560, 30, 63, 21, 9322, 7545, 946, 9, 20, 805, 48, 9322, 168, 15, 40, 4851, 7612, 377, 13, 7, 7318, 7, 20, 2274, 20, 44, 13, 7, 13192, 870...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Create Excel (.XLS and .XLSX) file from C# === What is the best tool for creating an Excel Spreadsheet with C#. Ideally, I would like open source so I don't have to add any third party dependencies to my code, and I would like to avoid using Excel directly to create the file (using OLE Automation.) The .CSV file solution is easy, and is the current way I am handling this, but I but I would like to control the output formats.
4
[ 2, 1600, 20700, 13, 5, 9, 396, 7532, 17, 13, 9, 396, 7532, 396, 6, 3893, 37, 272, 5910, 800, 3726, 3726, 98, 25, 14, 246, 5607, 26, 2936, 40, 20700, 1789, 17627, 29, 272, 5910, 9, 5628, 102, 15, 31, 83, 101, 368, 1267, 86, 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...
Improving as a coder with respect to design. === As a soon-to-be computer science graduate, I have to come realization that I have a long way to go when it comes to the overall design of an application. After spending many semesters of programming from the hip I have come to appreciate the mulling over the needs of an application before diving head first into the coding portion. My question is to the intermediate and expert programmers, how can I improve in the area of the design phase of development?
4
[ 2, 9273, 28, 21, 1797, 139, 29, 2873, 20, 704, 9, 800, 3726, 3726, 28, 21, 651, 8, 262, 8, 863, 1428, 762, 3156, 15, 31, 57, 20, 340, 12890, 30, 31, 57, 21, 175, 161, 20, 162, 76, 32, 1624, 20, 14, 1677, 704, 16, 40, 3010,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I upgrade the *console* version of vim on OS X? === I'm sure this is a newbie question, but every time I've compiled/dl'ed a new version of vim for os x, running vim on the command-line opens up the gvim app. I just want to upgrade the console version (so I can, for example, have python compiled in to use omnicomplete).
0
[ 2, 184, 92, 31, 9483, 14, 1637, 12124, 6069, 2483, 615, 16, 1790, 79, 27, 13, 759, 993, 60, 800, 3726, 3726, 31, 22, 79, 562, 48, 25, 21, 78, 5893, 1301, 15, 47, 352, 85, 31, 22, 195, 9316, 118, 8643, 22, 69, 21, 78, 615, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 unlock an SQLite database === sqlite> DELETE FROM mails WHERE (`id` = 71); SQL error: database is locked How do I unlock the database so this will work?
0
[ 2, 184, 107, 31, 16497, 40, 4444, 10601, 6018, 800, 3726, 3726, 4444, 10601, 1, 27448, 37, 4216, 18, 113, 13, 5, 1, 1340, 1, 800, 8966, 6, 73, 4444, 255, 7019, 45, 6018, 25, 4011, 184, 107, 31, 16497, 14, 6018, 86, 48, 129, 17...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
rails: calling controller / view methods from the console === When I load `script/console`, some times I want to test the output of a controller or a view method. Are there ways to: - simulate a request - call methods from a controller instance on said request - test helper and view methods, either via said controller instance or another way
0
[ 2, 2240, 18, 45, 2555, 9919, 13, 118, 1418, 3195, 37, 14, 8650, 800, 3726, 3726, 76, 31, 6305, 13, 1, 8741, 118, 12124, 6069, 1, 15, 109, 436, 31, 259, 20, 1289, 14, 5196, 16, 21, 9919, 54, 21, 1418, 2109, 9, 50, 80, 2847, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you solicit testers for an open source project? === In order to improve my open source project, I need testers. I have created my project independently, so up to now I have been the sole coder and tester. I have tested the thing to death, but as we all know it is dangerous as a developer to test your own code. I'm looking for ideas on how I can get some other eyes to exercise it.
0
[ 2, 184, 107, 42, 86, 16927, 38, 1289, 445, 26, 40, 368, 1267, 669, 60, 800, 3726, 3726, 19, 389, 20, 3545, 51, 368, 1267, 669, 15, 31, 376, 1289, 445, 9, 31, 57, 679, 51, 669, 9029, 15, 86, 71, 20, 130, 31, 57, 74, 14, 500...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does the Eclipse editor have an equivalent of emacs's "align-regex"? === I've been using Eclipse pretty regularly for several years now, but I admit to not having explored all the esoterica it has to offer, particularly in the areas of what formatting features the editors offer. The main thing I miss from (X)emacs is the "align-regex" command, which let me take several lines into a region and then format them so that some common pattern in all lines was aligned. The simplest example of this is a series of variable assignments: var str = new String('aString'); var index = 0; var longCamelCaseObjectName = new LongNameObject(); After doing align-regex on "=", that would become: var str = new String('aString'); var index = 0; var longCamelCaseObjectName = new LongNameObject(); Now, you may have your own thoughts on stylistic (ab)use of white space and alignment, etc., but that's just an example (I'm actually trying to align a different kind of mess entirely). Can anyone tell me off-hand if there's an easy key-combo-shortcut for this in Eclipse? Or even a moderately-tricky one?
0
[ 2, 630, 14, 11652, 1835, 57, 40, 4602, 16, 13, 62, 6893, 18, 22, 18, 13, 7, 192, 9693, 8, 12463, 1706, 7, 60, 800, 3726, 3726, 31, 22, 195, 74, 568, 11652, 1772, 4217, 26, 238, 122, 130, 15, 47, 31, 5251, 20, 52, 452, 11252,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C++ last loop iteration (STL map iterator) === I'm trying to figure out the best way to determine if I'm in the last iteration of a loop over a map in order to do something like the following: for (iter = someMap.begin(); iter != someMap.end(); ++iter) { bool last_iteration; if (!last_iteration) { // do something } } There seem to be several ways of doing this: random access iterators, the `distance` function, etc. What's the canonical method?
0
[ 2, 272, 20512, 236, 5293, 23534, 13, 5, 18, 7786, 2942, 32, 106, 3457, 6, 800, 3726, 3726, 31, 22, 79, 749, 20, 1465, 70, 14, 246, 161, 20, 3746, 100, 31, 22, 79, 19, 14, 236, 23534, 16, 21, 5293, 84, 21, 2942, 19, 389, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What technology stack would you use for starting new .net web project? === I'm about to start building a new web project based on the .net technology stack. What I want is to somehow avoid "*default*" way of building asp.net web apps using web forms and stuff. So, the question is simple: **If you're about to start a new web project using .net today, what technologies and frameworks would you use?** I know that I'm missing basic requirements here, like what's the site meant for and stuff, but if you could just ignore those constraints and focus on the technology i would be really grateful.
0
[ 2, 98, 1099, 7566, 83, 42, 275, 26, 1422, 78, 13, 9, 2328, 2741, 669, 60, 800, 3726, 3726, 31, 22, 79, 88, 20, 799, 353, 21, 78, 2741, 669, 432, 27, 14, 13, 9, 2328, 1099, 7566, 9, 98, 31, 259, 25, 20, 3625, 2658, 13, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
When should I use GC.SupressFinalize? === In .Net, under which circumstances should I use GC.SupressFinalize? What advantage does using this method give me.
0
[ 2, 76, 378, 31, 275, 13, 10362, 9, 1666, 5890, 4932, 2952, 60, 800, 3726, 3726, 19, 13, 9, 2328, 15, 131, 56, 5072, 378, 31, 275, 13, 10362, 9, 1666, 5890, 4932, 2952, 60, 98, 3314, 630, 568, 48, 2109, 590, 55, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Section-specific navigation - how to in Ruby on Rails? === I have a Ruby/Rails app that has two or three main "sections". When a user visits that section, I wish to display some sub-navigation. All three sections use the same layout, so I can't "hard code" the navigation into the layout. I can think of a few different methods to do this. I guess in order to help people vote I'll put them as answers. Any other ideas? Or what do you vote for?
0
[ 2, 1050, 8, 9219, 8368, 13, 8, 184, 20, 19, 10811, 27, 2240, 18, 60, 800, 3726, 3726, 31, 57, 21, 10811, 118, 7301, 18, 4865, 30, 63, 81, 54, 132, 407, 13, 7, 10579, 18, 7, 9, 76, 21, 4155, 7659, 30, 1050, 15, 31, 2536, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
"name" web pdf for better default save filename in Acrobat? === My app generates PDFs for user consumption. The "Content-Disposition" http header is set as mentioned [here][1]. That "filename" appears in the title bar of the browser. However, upon clicking the "Save" button in the browser-embedded Acrobat, the default name to save is not that filename but instead the URL with slashes changed to underscores. Huge and ugly. Is there a way to affect this default filename in Adobe? [1]: http://stackoverflow.com/questions/74019/specifying-filename-for-dynamic-pdf-in-aspnet
0
[ 2, 13, 7, 7259, 7, 2741, 13, 11124, 26, 574, 12838, 2079, 3893, 7259, 19, 21, 7638, 4900, 60, 800, 3726, 3726, 51, 4865, 7920, 18, 13, 11124, 18, 26, 4155, 8330, 9, 14, 13, 7, 25424, 8, 2906, 9339, 7, 7775, 157, 106, 25, 309, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
rails: prevent link_to from escaping slashes in url parameters === Having this route: map.foo 'foo/*path', :controller => 'foo', :action => 'index' I have the following results for the `link_`to calls link_to "Foo", :controller => 'foo', :path => 'bar/baz' # <a href="/foo/bar%2Fbaz">Foo</a> link_to "Foo", foo_url(:path => 'bar/baz', :escape => false, :only_path => true) # <a href="/foo/bar%2Fbaz">Foo</a> I want the resulting url to be: `/foo/bar/baz` On the second case, seems like `:escape` does nothing. Likely because `link_to` will call `url_for` without `:escape` on the string returned from my `url_for` call. Is there a way around this without patching rails?
0
[ 2, 2240, 18, 45, 2501, 3508, 1, 262, 37, 14700, 14098, 160, 19, 287, 6362, 12905, 800, 3726, 3726, 452, 48, 858, 45, 2942, 9, 4120, 111, 13, 22, 4120, 111, 118, 2483, 8353, 22, 15, 13, 45, 12898, 1252, 800, 1, 13, 22, 4120, 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...
How do I find records that are not joined? === I have two tables that are joined together. A has many B Normally you would do select * from a,b where b.a_id = a.id to get all of the records from a that has a record in b. How do I get just the records in a that does not have anything in b?
0
[ 2, 184, 107, 31, 477, 742, 30, 50, 52, 670, 60, 800, 3726, 3726, 31, 57, 81, 7484, 30, 50, 670, 429, 9, 21, 63, 151, 334, 4147, 42, 83, 107, 5407, 1637, 37, 21, 15, 220, 113, 334, 9, 58, 1, 1340, 800, 21, 9, 1340, 20, 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...
Which is it? catch (_com_error e) or catch (_com_error& e) === catch (_com_error e) or catch (_com_error& e) ?
0
[ 2, 56, 25, 32, 60, 2949, 13, 5, 1, 960, 1, 29992, 13, 62, 6, 54, 2949, 13, 5, 1, 960, 1, 29992, 1569, 13, 62, 6, 800, 3726, 3726, 2949, 13, 5, 1, 960, 1, 29992, 13, 62, 6, 54, 2949, 13, 5, 1, 960, 1, 29992, 1569, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Mathematics for Computer Science Students === To cut a long story short, I am a CS student that has received no formal Post-16 Maths education for years. Right now even my Algebra is extremely rusty and I have a couple of months to shape up my skills. I've got a couple of video lectures in my bookmarks, consisting of: - [Pre-Calculus Algebra][1] - [Calculus][2] - [Introduction to Statistics][3] - [Differential Equations][4] - [Linear Algebra][5] My aim as of today is to be able to read the CLRS book Introduction to Algorithms and be able to follow the Mathematical notation in that, as well as being able to confidently read and back-up any arguments written in Mathematical notation. Aside from these video lectures, can anyone recommend any good books to help teach someone wishing to go from a low-foundation level to a more advanced level of Mathematics? Just as a note, I've taken a first-year module in Analytical Modelling, so I understand some of the basic concepts of Discrete Mathematics. [1]: http://www.tkc.iblog.co.za/2008/07/05/video-lectures-in-algebra-ii-and-pre-calculus/ [2]: http://www.math.armstrong.edu/faculty/hollis/calcvideos/ [3]: http://webcast.berkeley.edu/course_details.php?seriesid=1906978493#21073 [4]: http://ocw.mit.edu/OcwWeb/Mathematics/18-03Spring-2006/CourseHome/ [5]: http://ocw.mit.edu/OcwWeb/Mathematics/18-06Spring-2005/CourseHome/index.htm
4
[ 2, 4264, 26, 1428, 762, 573, 800, 3726, 3726, 20, 1077, 21, 175, 609, 502, 15, 31, 589, 21, 272, 18, 1209, 30, 63, 420, 90, 3337, 678, 8, 1091, 5057, 18, 565, 26, 122, 9, 193, 130, 166, 51, 10999, 25, 3898, 15395, 17, 31, 57...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Annotated Spring-MVC controller not recognized when controller extends interface === I'm using spring 2.5, and am using annotations to configure my controllers. My controller works fine if I do not implement any additional interfaces, but the spring container doesn't recognize the controller/request mapping when I add interface implementations. I can't figure out why adding an interface implementation messes up the configuration of the controller and the request mappings. Any ideas? So, this works: package com.shaneleopard.web.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.providers.encoding.Md5PasswordEncoder; import org.springframework.stereotype.Controller; import org.springframework.validation.Errors; import org.springframework.validation.Validator; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import com.shaneleopard.model.User; import com.shaneleopard.service.UserService; import com.shaneleopard.validator.RegistrationValidator; import com.shaneleopard.web.command.RegisterCommand; @Controller public class RegistrationController { @Autowired private UserService userService; @Autowired private Md5PasswordEncoder passwordEncoder; @Autowired private RegistrationValidator registrationValidator; @RequestMapping( method = RequestMethod.GET, value = "/register.html" ) public void registerForm(@ModelAttribute RegisterCommand registerCommand) { // no op } @RequestMapping( method = RequestMethod.POST, value = "/register.html" ) public String registerNewUser( @ModelAttribute RegisterCommand command, Errors errors ) { String returnView = "redirect:index.html"; if ( errors.hasErrors() ) { returnView = "register"; } else { User newUser = new User(); newUser.setUsername( command.getUsername() ); newUser.setPassword( passwordEncoder.encodePassword( command .getPassword(), null ) ); newUser.setEmailAddress( command.getEmailAddress() ); newUser.setFirstName( command.getFirstName() ); newUser.setLastName( command.getLastName() ); userService.registerNewUser( newUser ); } return returnView; } public Validator getValidator() { return registrationValidator; } } but this doesn't: package com.shaneleopard.web.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.providers.encoding.Md5PasswordEncoder; import org.springframework.stereotype.Controller; import org.springframework.validation.Errors; import org.springframework.validation.Validator; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import com.shaneleopard.model.User; import com.shaneleopard.service.UserService; import com.shaneleopard.validator.RegistrationValidator; import com.shaneleopard.web.command.RegisterCommand; @Controller public class RegistrationController extends ValidatingController { @Autowired private UserService userService; @Autowired private Md5PasswordEncoder passwordEncoder; @Autowired private RegistrationValidator registrationValidator; @RequestMapping( method = RequestMethod.GET, value = "/register.html" ) public void registerForm(@ModelAttribute RegisterCommand registerCommand) { // no op } @RequestMapping( method = RequestMethod.POST, value = "/register.html" ) public String registerNewUser( @ModelAttribute RegisterCommand command, Errors errors ) { String returnView = "redirect:index.html"; if ( errors.hasErrors() ) { returnView = "register"; } else { User newUser = new User(); newUser.setUsername( command.getUsername() ); newUser.setPassword( passwordEncoder.encodePassword( command .getPassword(), null ) ); newUser.setEmailAddress( command.getEmailAddress() ); newUser.setFirstName( command.getFirstName() ); newUser.setLastName( command.getLastName() ); userService.registerNewUser( newUser ); } return returnView; } public Validator getValidator() { return registrationValidator; } }
0
[ 2, 40, 1270, 1669, 1573, 8, 79, 8990, 9919, 52, 2124, 76, 9919, 9073, 6573, 800, 3726, 3726, 31, 22, 79, 568, 1573, 172, 9, 264, 15, 17, 589, 568, 40, 1270, 7504, 20, 1065, 15951, 51, 9919, 18, 9, 51, 9919, 693, 1123, 100, 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...
Stopping MaskedEditExtender from validating input in asp.net === I have an asp.net textbox and a MaskedEditExtender control attached to it. The textbox is used for date input. The MaskedEditExtender has MaskType="Date" Mask="99/99/9999". When the form is submitted with an invalid date, the browser shows a Javascript error "... string was not recognized as a valid datetime". I know why the error shows up. Is there a way to use the extender to just control what the user enters and not validate or convert the input?
0
[ 2, 7048, 20354, 69, 49, 11969, 13630, 37, 7394, 1880, 6367, 19, 28, 306, 9, 2328, 800, 3726, 3726, 31, 57, 40, 28, 306, 9, 2328, 1854, 5309, 17, 21, 20354, 69, 49, 11969, 13630, 569, 3638, 20, 32, 9, 14, 1854, 5309, 25, 147, 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...
Sidewinder x6 keyboard macro for Visual Studio? === the new keyboard from Microsoft, [Sidewinder x6][1] can record in game macro. I was woundering if it could be used in Visual Studio (record key in application too)? (This could be very useful to press 1 key instead of Ctrl+M,M to Toggle Outline.) [1]: http://www.microsoft.com/hardware/gaming/productdetails.aspx?pid=102
0
[ 2, 270, 7809, 106, 993, 379, 8896, 9069, 26, 3458, 1120, 60, 800, 3726, 3726, 14, 78, 8896, 37, 7099, 15, 636, 1416, 7809, 106, 993, 379, 500, 2558, 165, 500, 92, 571, 19, 250, 9069, 9, 31, 23, 4855, 7882, 100, 32, 110, 44, 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...
pl/sql dollar operator? === I encountered the following ddl in a pl/sql script this morning: create index genuser.idx$$_0bdd0011 ... My initial thought was that the index name was generated by a tool...but I'm also not a pl/sql superstar so I could very well be incorrect. Does the double dollar sign have any special significance in this statement?
0
[ 2, 12443, 118, 18, 22402, 9311, 6022, 60, 800, 3726, 3726, 31, 8208, 14, 249, 13, 43, 8643, 19, 21, 12443, 118, 18, 22402, 3884, 48, 959, 45, 1600, 4348, 1784, 106, 9, 1340, 396, 4403, 4403, 1, 387, 220, 8096, 2032, 1306, 13, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I calculate number of days betwen two dates using Python? === If I have two dates (ex. '8/18/2008' and '9/26/2008') what is the best way to get the difference measured in days?
0
[ 2, 184, 107, 31, 18469, 234, 16, 509, 5676, 5036, 81, 4076, 568, 20059, 60, 800, 3726, 3726, 100, 31, 57, 81, 4076, 13, 5, 1706, 9, 13, 22, 12530, 1087, 118, 2753, 22, 17, 13, 22, 12766, 2409, 118, 2753, 22, 6, 98, 25, 14, 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, 0, 0, 0, 0, 0, 0, 0...
How to configure Caucho Resin's Java classpath to the system's library directory === I have a folder, '/var/unity/conf' with some properties files in it, and I'd like the Caucho's Resin JVM to have that directory on the classpath. What is the best way to modifiy resin.conf so that Resin knows to add this directory to the classpath?
0
[ 2, 184, 20, 1065, 15951, 10513, 2613, 22839, 22, 18, 8247, 718, 8353, 20, 14, 329, 22, 18, 1248, 16755, 800, 3726, 3726, 31, 57, 21, 19294, 15, 13, 22, 118, 3311, 118, 1020, 856, 118, 14093, 22, 29, 109, 3704, 6488, 19, 32, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Interviewing - What's wrong with this code? === So I just interviewed two people today, and gave them "tests" to see what their skills were like. Both are entry level applicants, one of which is actually still in college. Neither applicant saw anything wrong with the following code: //For the following functions, evaluate the code for quality and discuss. E.g. //E.g. could it be done more efficiently? could it cause bugs? public void Question1() { int active = 0; CheckBox chkactive = (CheckBox)item.FindControl("chkactive"); if (chkactive.Checked == true) { active = 1; } dmxdevice.Active = Convert.ToBoolean(active); } public void Question2(bool IsPostBack) { if (!IsPostBack) { BindlistviewNotification(); } if (lsvnotificationList.Items.Count == 0) { BindlistviewNotification(); } } //Question 3 protected void lsvnotificationList_ItemUpdating(object sender, ListViewUpdateEventArgs e) { ListViewDataItem item = lsvnotificationList.Items[e.ItemIndex]; string Email = ((TextBox)item.FindControl("txtEmailAddress")).Text; int id = Convert.ToInt32(((HiddenField)item.FindControl("hfID")).Value); ESLinq.ESLinqDataContext db = new ESLinq.ESLinqDataContext(); var compare = from N in db.NotificationLists where N.ID == id select N; if (compare.Count() > 0) { lblmessage.Text = "Record Already Exists"; } else { ESLinq.NotificationList Notice = db.NotificationLists.Where(N => N.ID == id).Single(); Notice.EmailAddress = Email; db.SubmitChanges(); } lsvnotificationList.EditIndex = -1; BindlistviewNotification(); } I do, obviously or I wouldn't have picked those examples. Do you think these questions are too harsh for newbie programmers? I guess I should also note neither of them had much experience with C#... but I don't think the issues with these are language dependent.
4
[ 2, 2421, 68, 13, 8, 98, 22, 18, 1389, 29, 48, 1797, 60, 800, 3726, 3726, 86, 31, 114, 11018, 81, 148, 786, 15, 17, 492, 105, 13, 7, 10543, 18, 7, 20, 196, 98, 66, 3207, 46, 101, 9, 156, 50, 2792, 662, 19470, 15, 53, 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...
VMware Server 2.0 - The VMware Infrastructure Web Service not responding === After installing VMware Server I get the following error when I try to access the VMware web-based server manager: > The VMware Infrastructure Web Service > at "http://localhost:8222/sdk" is not > responding
0
[ 2, 13, 20147, 5011, 8128, 172, 9, 387, 13, 8, 14, 13, 20147, 5011, 5282, 2741, 365, 52, 15887, 800, 3726, 3726, 75, 25429, 13, 20147, 5011, 8128, 31, 164, 14, 249, 7019, 76, 31, 1131, 20, 1381, 14, 13, 20147, 5011, 2741, 8, 1281...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Local Network IP of a computer programmatically? (C#) === I need to get the local network IP of the computer (e.g. 192.168.0.220) using C# and .NET 3.5. I can't just use 127.0.0.1 in this case. How can I do it?
0
[ 2, 184, 107, 31, 164, 375, 982, 15735, 16, 21, 1428, 625, 6732, 1326, 60, 13, 5, 150, 5910, 6, 800, 3726, 3726, 31, 376, 20, 164, 14, 375, 982, 15735, 16, 14, 1428, 13, 5, 62, 9, 263, 9, 13, 19532, 9, 13434, 9, 387, 9, 184...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Has anyone ever got a remote JMX JConsole to work? === It seems that I've never got this to work in the past. Currently, I KNOW it doesn't work. But we start up our Java process: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=6002 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false I can telnet to the port, and "something is there" (that is, if I don't start the process, nothing answers, but if I do, it does), but I can not get JConsole to work filling in the IP and port. Seems like it should be so simple, but no errors, no noise, no nothing. Just doesn't work. Anyone know the hot tip for this?
0
[ 2, 63, 1276, 462, 330, 21, 5388, 487, 79, 396, 487, 12124, 6069, 20, 170, 60, 800, 3726, 3726, 32, 2206, 30, 31, 22, 195, 243, 330, 48, 20, 170, 19, 14, 640, 9, 871, 15, 31, 143, 32, 1437, 22, 38, 170, 9, 47, 95, 799, 71, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP.NET AJAX nested updatePanel modalPopup funkiness === It seems that in some cases, if you end up with nested modalPopups wrapped with updatePanels (not ideal I know, and should probably be refactored, but that's what we're working with because of how some of the user controls we wanted to re-use were written), when you fire a postback that should open the nested modalPopup, instead it closes the parent one. For the sake of argument, if I set a breakpoint and run ((ModalPopupExtender)this.Parent.Parent.FindControl("modalPopupExtender'sID").Show(); right before the child modalPopup's Show() method is called, it works as we originally expected. It seems to me that, because when updatePanels are nested, they can post back their parent, the parent modalPopup "doesn't know" it's supposed to be showing and reloads its panel's visibility from scratch as false. Because the child modalPopup is then nested inside a parent panel whose visibility is false, calling Show() on it has no effect either. So instead of getting another modalPopup open, the current one closes. This is not an error, just behavior we didn't expect, so it was difficult to track down with no exception thrown anywhere, but I think the above explanation makes sense... If I've understood the problem incorrectly, please clarify it and enlighten me, because this doesn't seem to happen all the time I'd think it would!<br /> At this point for this particular situation we're stuck re-writing some of those controls to not end up with nested updatePanels so this doesn't happen, but I'm curious: <br /> Has anyone run into this problem before, and did you come up with any clever work-around that doesn't involve a call to FindControl() to re-Show() the modalPopup in question?
0
[ 2, 28, 306, 9, 2328, 20624, 5618, 69, 11100, 3206, 532, 13, 20756, 6057, 576, 11275, 8776, 800, 3726, 3726, 32, 2206, 30, 19, 109, 1871, 15, 100, 42, 241, 71, 29, 5618, 69, 13, 20756, 6057, 15699, 3684, 29, 11100, 3206, 6798, 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...
HTML5 drag/drop in Android === When I testing drag and drop of html5 on android, within library like Modernizr.js. I find that the test case is written as: tests['draganddrop'] = function() { var div = document.createElement('div'); return ('draggable' in div) || ('ondragstart' in div && 'ondrop' in div); }; Android 2.1+ can pass this test case - draggable attribute is initialized as "false", ondragstart and ondrop are both initialized as "null". By indeed, I can't use drag and drop in android, because never trigger drag and drop event! I want to find the right way to know whether a mobile device support drag/dop! Who can help me? Thank you!
0
[ 2, 13, 15895, 264, 5501, 118, 12361, 19, 13005, 800, 3726, 3726, 76, 31, 4431, 5501, 17, 2804, 16, 13, 15895, 264, 27, 13005, 15, 363, 1248, 101, 773, 3186, 139, 9, 728, 18, 9, 31, 477, 30, 14, 1289, 610, 25, 642, 28, 45, 4894...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 not editing fusion table === I am developing a component for joomla but I can edit anymore my tables I really dont know why. I have a user that is an owner and a user that is an editor. I log on to both of my accounts and I can't change, add or delete anything. The only thing I can do from my owner account is change the type of share. I dont know what happened.
0
[ 2, 92, 52, 9510, 11117, 859, 800, 3726, 3726, 31, 589, 3561, 21, 5912, 26, 2640, 2636, 531, 47, 31, 92, 9392, 3375, 51, 7484, 31, 510, 1049, 143, 483, 9, 31, 57, 21, 4155, 30, 25, 40, 2410, 17, 21, 4155, 30, 25, 40, 1835, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
when is _declspec( novtable ) unsafe? === Under what circumstances will `_declspec( novtable )` cause an access violation? For example, this code doesn't: class __declspec(novtable) Base { public: virtual ~Base() { }; virtual int Foo() const = 0; virtual int Bar() const { return 2; }; }; class A : public Base { public: int Foo() const { return 1; }; }; int main(int argc, char* argv[]) { A a; volatile int a1 = a.Foo(); volatile int a2 = a.Bar(); Base* c = new A(); volatile int c1 = c->Foo(); volatile int c2 = c->Bar(); delete c; return 0; } This code also does not: class __declspec(novtable) Base { public: virtual ~Base() { }; }; int main(int argc, char* argv[]) { Base a; } But, this code will: int main(int argc, char* argv[]) { Base* a = new Base(); delete a; // access violation } Why does the code in the first two example not throw on the destructors?
0
[ 2, 76, 25, 13, 1, 9522, 7532, 12610, 5, 16112, 5924, 13, 6, 27094, 60, 800, 3726, 3726, 131, 98, 5072, 129, 13, 1, 9522, 7532, 12610, 5, 16112, 5924, 13, 6, 1, 1679, 40, 1381, 12120, 60, 26, 823, 15, 48, 1797, 1437, 22, 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...
Wordpress search results on external page === I have a custom search engine on a non-wordpress page. This search engine searches a database for a city (specified by a text input) and then returns the relevant information about that city and displays it on the page. What I want to do now, is to below those results, display the results of a wordpress search of the same term on a blog that resides on the same server/domain. So basically I want to show the same results that a wordpress search of that keyword would return, but I want to display them on a non-wordpress page, not in the blog's theme. **What I have:** a variable holding a search term, the search term has already been shampooed and conditioned to be search engine friendly. **What I don't want to do** - I don't want to use an iframe and have the blog template be displayed on the page. - I can't have a secondary search box. I need to somehow use the value of the variable that I have, I can't ask the user to submit a second form or anything. **My ideas so far** Is there a way to run the wordpress search function and grab the data that it returns? I've gotten as far as including wp_blog_header.php on my static page so that I can make use of the wordpress functions. Or would it be better to write a function that duplicates what the wordpress search does on the wordpress databases, but returns the data in a way that I can use? Or is there a different approach that I should take for this that I've overlooked? Thanks!
0
[ 2, 833, 5890, 2122, 1736, 27, 4886, 2478, 800, 3726, 3726, 31, 57, 21, 5816, 2122, 1406, 27, 21, 538, 8, 9587, 5890, 2478, 9, 48, 2122, 1406, 19994, 21, 6018, 26, 21, 136, 13, 5, 18, 12610, 4462, 34, 21, 1854, 6367, 6, 17, 94,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
assistance with jquery toggle focus === I have in a sidebar: <div id="yyy"> [shortcode]</div> It outputs a title that when hovered on drops down to show a menu. When hovering on the title a background color shows up and disappears when the mouse moves down to the menu items. I need for the background color to remain as long as the menu has focus, I need something like: If div.domTip_tipBody has focus then #yyy a.tippy_link {background:red;} [The following I got from here][1] I think this will give me what I am looking for but I do not know how to translate .answerSpace to ? .normProf to ? opacProf to ? in: $('.answerSpace').bind('blur', function(){ $('.normProf').removeClass("normProf").addClass('opacProf'); }); $('.answerSpace').bind('focus', function(){ $('.opacProf').removeClass("opacProf").addClass('normProf'); }); Thanks Tim
0
[ 2, 4067, 29, 487, 8190, 93, 20, 263, 4875, 1776, 800, 3726, 3726, 31, 57, 19, 21, 270, 1850, 45, 13, 1, 12916, 4924, 3726, 7, 93, 93, 93, 7, 1, 636, 10849, 9375, 500, 1, 118, 12916, 1, 32, 5196, 18, 21, 581, 30, 76, 21033, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Orchard custom module showing blank "Create" page === I created a custom module for Orchard following [this wonderful guide](http://skywalkersoftwaredevelopment.net/blog/writing-an-orchard-webshop-module-from-scratch-part-1). I have created a controller called BarberAdminController as follows: [Admin] public class BarberAdminController : Controller { ... public BarberAdminController(IOrchardServices services, IRepository<BarberPart> repository) { _repository = repository; _services = services; } ... public ActionResult Create() { var barber = _services.ContentManager.New(typeof(BarberPart).ToString()); dynamic model = _services.ContentManager.BuildEditor(barber); return View(model); } } View: @{ Layout.Title = T("New Barber").ToString(); } @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary() // Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type @Display(Model) } Upon clicking the link from the admin menu to create a Barber, I get a blank page with nothing but a "Save" button. (URL: /Admin/BarberShop/Barbers/Create) Does anyone know what I might be doing wrong? I've set up the routes and admin links and they seem to work fine. I followed the guide as closely as I could on creating the Drivers and Handlers for BarberPart correctly. Including down to the Migration.cs file database schema. Any help would be great!
0
[ 2, 12635, 5816, 12613, 3187, 6463, 13, 7, 6037, 1373, 7, 2478, 800, 3726, 3726, 31, 679, 21, 5816, 12613, 26, 12635, 249, 636, 1565, 5934, 3378, 500, 5, 21127, 6903, 2397, 16119, 12980, 5011, 26119, 9, 2328, 118, 220, 5567, 118, 126...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Regex - Using short hand characters inside a character class === I'm required to do some operations which involve regular expressions. String I'm operating on: /dev/fd0 /media/floppy0 auto rw,us Basically, what I want to do is take the first two parameters (/dev/fd0 and /media/floppy0) and I want to ignore everything after this. To achieve I've tried the regular expressions shown below. My question is, why do the following regular expressions produce different results? Regular expression 1: > grep -o '/dev/f\S*\s*\S*' /etc/fstab Output (the output that I'm expecting): > /dev/fd0 /media/floppy0 Regular expression 2: > grep -o '/dev/f[\S]*\s*[\S]*' /etc/fstab Output: > /dev/f Regular expression 3: > grep -o '/dev/f[^\s]*\s[^\s]*' /etc/fstab Output: > /dev/fd0 /media/floppy0 auto rw,u I don't see why 2 and 3 don't produce the same output as 1. The way I see it is that for 2, it shouldn't matter whether I put the non white space short hand character (\S) inside a character class. The same goes for 3. Furthermore, why is 2 different from 3? Isn't [\S] the same as [^\s]?
0
[ 2, 7953, 1706, 13, 8, 568, 502, 224, 1766, 572, 21, 925, 718, 800, 3726, 3726, 31, 22, 79, 1390, 20, 107, 109, 1311, 56, 8847, 1290, 13832, 9, 3724, 31, 22, 79, 2455, 27, 45, 13, 118, 14438, 118, 410, 43, 387, 13, 118, 8260, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 namespace std;" before "#include <foo>" === What are the differences in compilability or generated code (if any) between the following two source files: __Exhibit A__: namespace std {}; using namespace std; #include <vector> #include <string> <any code here> __Exhibit B__: #include <vector> #include <string> using namespace std; <any code here> Assuming the two `<any code here>` placeholders are replaced with any identical user code. Put another way: Is there any user visible difference if "using namespace std;" is put before the standard `#includes` (assuming namespace std has been introduced as above)?
0
[ 2, 13, 7, 12655, 204, 5582, 354, 43, 73, 7, 115, 13, 7, 5910, 22640, 13, 1, 4120, 111, 1, 7, 800, 3726, 3726, 98, 50, 14, 4921, 19, 6479, 947, 4091, 54, 6756, 1797, 13, 5, 821, 186, 6, 128, 14, 249, 81, 1267, 6488, 45, 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...
Android TableLayout isn't displaying rows === I am having problems getting my TableLayout to display my rows. I'm propagating the rows programmatically via this method: private void buildStatesTable() { Log.d(SelectStatesPanel.class.getCanonicalName(), "Entering Build States Table"); ArrayList<String> states = new ArrayList<String>(); Random rand = new Random(); for(int i = 0; i < 10; i++){ if(i < goodStates.length){ states.add(goodStates[i]); }else{ states.add(badStates[rand.nextInt(badStates.length)]); } } Collections.shuffle(states); TableLayout tl = (TableLayout) findViewById(R.id.statesTable); final int NUM_PER_ROW = 2; for(int i = 0; i < (states.size() / NUM_PER_ROW); i++){ TableRow tr = new TableRow(getContext()); tr.setLayoutParams(new LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); for(int j = 0; j < NUM_PER_ROW && (i*NUM_PER_ROW + j) < states.size(); j++){ TextView lblState = new TextView(getContext()); lblState.setText(states.get(i*NUM_PER_ROW + j)); lblState.setTextColor(Color.BLACK); lblState.setLayoutParams(new LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); lblState.setClickable(true); lblState.setOnClickListener(this); tr.addView(lblState); //Log.d(SelectStatesPanel.class.getCanonicalName(), "Adding State: " + states.get(i*NUM_PER_ROW + j)); Log.d(SelectStatesPanel.class.getCanonicalName(), "\t\t\t (" + i + ", " + j + ")"); } // Add the TableRow to the TableLayout tl.addView(tr); Log.d(SelectStatesPanel.class.getCanonicalName(), "Adding Row"); } } And this is my XML (table layout is at the bottom): <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" android:layout_margin="5dip" android:text="Good choice! There's hope for you yet." android:textSize="16dip" android:textStyle="bold" android:gravity="center" /> <TextView android:id="@+id/txtLex" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" android:layout_margin="5dip" android:text="Lexington" android:textSize="14dip" android:gravity="center" /> <TextView android:id="@+id/txtTampa" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" android:layout_margin="5dip" android:text="Tampa" android:textSize="14dip" android:gravity="center" /> <TextView android:id="@+id/txtSacramento" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" android:layout_margin="5dip" android:text="Sacramento" android:textSize="14dip" android:gravity="center" /> <TextView android:id="@+id/txtHiltonhead" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" android:layout_margin="5dip" android:text="Hiltonhead" android:textSize="14dip" android:gravity="center" /> <ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:layout_margin="5dip" android:gravity="center" android:src="@drawable/usa" /> <TableLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:layout_margin="5dip" android:id="@+id/statesTable" android:stretchColumns="0,1"> </TableLayout> </LinearLayout> Why isn't my table layout's showing content?
0
[ 2, 13005, 859, 4414, 1320, 2532, 22, 38, 17418, 11295, 800, 3726, 3726, 31, 589, 452, 1716, 1017, 51, 859, 4414, 1320, 20, 3042, 51, 11295, 9, 31, 22, 79, 9476, 3302, 1880, 14, 11295, 625, 6732, 1326, 1197, 48, 2109, 45, 932, 1136...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 a function's return value to the json response of its ajax call? === I'm struggling in setting a function's return value to the json response of its ajax call. function callMe() { $.ajax({ url: "someJson.php", type: "GET", dataType: 'json', success: function(response){ return response; } } var jsonResponse = callMe(); How get I get jsonReponse to the hold the json response?
0
[ 2, 184, 20, 309, 21, 1990, 22, 18, 788, 1923, 20, 14, 487, 528, 1627, 16, 82, 20624, 645, 60, 800, 3726, 3726, 31, 22, 79, 7587, 19, 2697, 21, 1990, 22, 18, 788, 1923, 20, 14, 487, 528, 1627, 16, 82, 20624, 645, 9, 1990, 645...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ajax Push Implementation PrimeFaces === How to implement the jetty server to run Ajax Push PrimeFaces?, PrimeFaces's documentation says it is necessary to implement a servlet that responds to all customers, through a jetty server, let me know if you can tell me how to implement this server?
0
[ 2, 20624, 3250, 6123, 1621, 6413, 18, 800, 3726, 3726, 184, 20, 8713, 14, 17341, 93, 8128, 20, 485, 20624, 3250, 1621, 6413, 18, 60, 15, 1621, 6413, 18, 22, 18, 13945, 898, 32, 25, 2378, 20, 8713, 21, 13, 10321, 1336, 30, 4590, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 file beinng cached when back button pressed === I am designing a JavaScript widget that will display an iframe with random ads created by php. Every time the page is refreshed, a new set of random ads are created. When a user clicks on an ad, he is redirected to the website that ad represents. The problem occurs when the user then uses the back button. Since the back button just brings up a cached page, the same ads will appear, which I don't want. Since the websites the ads will be shown on don't belong to me, I have no access to the header files. Even when using the JavaScript reload function, the javascript file is still cached. Any help would be greatly appreciated.
0
[ 2, 8247, 8741, 3893, 44, 108, 2723, 16522, 43, 76, 97, 5167, 2931, 800, 3726, 3726, 31, 589, 15026, 21, 8247, 8741, 4807, 43, 3060, 30, 129, 3042, 40, 31, 8361, 29, 5477, 16236, 679, 34, 13, 26120, 9, 352, 85, 14, 2478, 25, 2490...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 embed a File Version in an MSI file with Visual Studio? === I have a setup project for my C# program, and this setup project has a Version in its properties. I'd like for the MSI file that is generated to have this Version embedded in it, so I can mouse over it in explorer and see what version the file is. I'm using VS2008. How can I do this?
0
[ 2, 184, 107, 31, 11911, 69, 21, 3893, 615, 19, 40, 4235, 49, 3893, 29, 3458, 1120, 60, 800, 3726, 3726, 31, 57, 21, 18161, 669, 26, 51, 272, 5910, 625, 15, 17, 48, 18161, 669, 63, 21, 615, 19, 82, 3704, 9, 31, 22, 43, 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...
How to force abort on "glibc detected *** free(): invalid pointer" === When getting "glibc detected *** free(): invalid pointer" errors, how do I identify which line of code is causing it? Is there a way to force an abort? I recall there being an ENV var to control this? How to set a breakpoint in gdb?
0
[ 2, 184, 20, 558, 21557, 27, 13, 7, 6441, 7229, 11968, 8980, 551, 5, 6, 45, 16671, 454, 106, 7, 800, 3726, 3726, 76, 1017, 13, 7, 6441, 7229, 11968, 8980, 551, 5, 6, 45, 16671, 454, 106, 7, 11908, 15, 184, 107, 31, 5808, 56, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Given an IMDB movie id, how do I programmatically get it's box art image === movie id tt0438097 can be found at http://www.imdb.com/title/tt0438097/ What's the url for its poster image?
0
[ 2, 504, 40, 797, 9007, 1308, 4924, 15, 184, 107, 31, 625, 6732, 1326, 164, 32, 22, 18, 1649, 415, 1961, 800, 3726, 3726, 1308, 4924, 13, 38, 38, 3277, 15666, 3643, 92, 44, 216, 35, 7775, 6903, 6483, 9, 1660, 9007, 9, 960, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What combination do you use for your polyglot solution? === Those of us who use multiple languages to solve problems can combine them in a lot of ways. Personally I use PL/SQL, XSLT, JavaScript, and Java plus the pseudo languages HTML, XML, CSS, Ant, and Bash. What do you use?
0
[ 2, 98, 3733, 107, 42, 275, 26, 154, 3446, 6725, 38, 4295, 60, 800, 3726, 3726, 273, 16, 182, 72, 275, 1886, 2556, 20, 8402, 1716, 92, 12287, 105, 19, 21, 865, 16, 2847, 9, 7200, 31, 275, 12443, 118, 18, 22402, 15, 993, 18, 255...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can we something system.currency in .net === Is it possible to use system.currency. It says system.currency is inaccessible due to its protection level. what is the alternative of currency.
0
[ 2, 92, 95, 301, 329, 9, 4734, 139, 8883, 19, 13, 9, 2328, 800, 3726, 3726, 25, 32, 938, 20, 275, 329, 9, 4734, 139, 8883, 9, 32, 898, 329, 9, 4734, 139, 8883, 25, 28671, 397, 20, 82, 2057, 662, 9, 98, 25, 14, 2676, 16, 105...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Is there a CLR that runs on the CLR ? === **I was wondering if there was a .NET-compatible CLR that was implemented using the CLI** (common language infrastructure), e.g., using .NET itself, or at least if there were any resources that would help with building one. Basically, something like a .NET program that loads assemblies as MemoryStreams, parses the bytecode, constructs the types, and executes the instructions. Optionally, it can JIT-compile to standard IL using Reflection.Emit or however. Any thoughts on using Mono.Cecil for this kind of thing?
0
[ 2, 25, 80, 21, 10842, 139, 30, 1461, 27, 14, 10842, 139, 13, 60, 800, 3726, 3726, 13, 1409, 49, 23, 5712, 100, 80, 23, 21, 13, 9, 2328, 8, 20049, 10842, 139, 30, 23, 6807, 568, 14, 19391, 1409, 13, 5, 17130, 816, 5282, 6, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Embedding SVN Revision number at compile time in a Win32 app === I'd like my .exe to have access to a resource string with my svn version. I can type this in by hand, but I'd prefer an automated way to embed this at compile time. Is there any such capability in Visual Studio 2008?
0
[ 2, 11911, 69, 3258, 13, 18, 16578, 11323, 234, 35, 26561, 85, 19, 21, 628, 3125, 4865, 800, 3726, 3726, 31, 22, 43, 101, 51, 13, 9, 1706, 62, 20, 57, 1381, 20, 21, 6577, 3724, 29, 51, 13, 18, 16578, 615, 9, 31, 92, 1001, 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...
AddHandler/RemoveHandler Not Disposing Correctly === I have heard that calling AddHandler, but not calling RemoveHandler doesn't remove the handle to the event under certain conditions, leaving the control/object as active and not diposed, and thus leading to memory leaks. Is there any truth to this? Are there other causes to memory leaks that are solely available in VB as opposed to C#?
0
[ 2, 3547, 3203, 1252, 118, 99, 16598, 3203, 1252, 52, 1460, 14717, 12044, 800, 3726, 3726, 31, 57, 752, 30, 2555, 3547, 3203, 1252, 15, 47, 52, 2555, 4681, 3203, 1252, 1437, 22, 38, 4681, 14, 3053, 20, 14, 807, 131, 1200, 2039, 15,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
(.net) How to support implicit type conversion as well as custom equality === I am implementing a generic class that supports two features, implicit type conversion and custom equality operators. Well, it supports IN-equality as well, if it does that. 1) if ( "value" = myInstance ) then ... 2) Dim s As String = myInstance 3) Dim s As String = CType(myInstance,String) The problem I am having is that if I support #2, implicit conversion, then I can't get my equality operators to work, since they complain about no conversion being the most specific. The error I get is this (simplified a bit for brevity): Overload resolution failed because no accessible '=' is most specific for these arguments: 'Public Shared Operator =(obj As MyClass, data As String) As Boolean': Not most specific. 'Public Shared Operator =(data As String, obj As MyClass) As Boolean': Not most specific. 'Public Shared Operator =(obj1 As MyClass, obj2 As MyClass) As Boolean': Not most specific. What is the best way of implementing this. Just as importantly, what should I leave out? I have implemented the following conversions Operator =(ByVal data As String, ByVal obj As classType) As Boolean (and <>) Operator =(ByVal obj As classType, byval data As String) As Boolean (and <>) Operator =(ByVal obj1 As classType, ByVal obj2 As classType) As Boolean (and <>) Equals(obj as Object) as Boolean Equals(compareTo as classType ) as Boolean Equals(compareTo as String) as Boolean Widening Operator CType(ByVal source As String) As classType Widening Operator CType(ByVal source As classType) as String Narrowing Operator CType(ByVal inst As classType) As dataType In my widening operator I do some reflection, which is why I wanted to be able to do an implicit convert DOWN to String when I do a comparison or assignment with the string on the left side. A) SomeObject.StringPropertySetter = MyClass Perhaps I am missing something or not understanding operators in vb.net, but I keep getting one error or another. Right now it is at the point where everything works perfectly except "A)" above. Thanks, and I hope this is understandable!
0
[ 2, 13, 5, 9, 2328, 6, 184, 20, 555, 20290, 1001, 6263, 28, 134, 28, 5816, 10337, 800, 3726, 3726, 31, 589, 17333, 21, 12733, 718, 30, 6747, 81, 967, 15, 20290, 1001, 6263, 17, 5816, 10337, 9475, 9, 134, 15, 32, 6747, 19, 8, 62...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sharing Files between VM and Host using Virtual PC 2007 === I know that I can share files using Shared Folders in Virtual PC, but this method seems to have pretty poor performance. Is there another method to share files that provides better performance? (Besides using something other than Virtual PC)
0
[ 2, 6126, 6488, 128, 13, 20147, 17, 2015, 568, 6599, 5168, 624, 800, 3726, 3726, 31, 143, 30, 31, 92, 1891, 6488, 568, 2592, 19294, 18, 19, 6599, 5168, 15, 47, 48, 2109, 2206, 20, 57, 1772, 1696, 956, 9, 25, 80, 226, 2109, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
.NET Winforms Deployment === Is there anyway to combine all resources into a single exe file such as app.config and accociated DLL's? Some applications seem to do this such as eMule. I don't want my app.config sitting there waiting to be edited. Thanks
0
[ 2, 13, 9, 2328, 628, 4190, 18, 10475, 800, 3726, 3726, 25, 80, 2774, 20, 12287, 65, 2566, 77, 21, 345, 1396, 62, 3893, 145, 28, 4865, 9, 14093, 2816, 17, 7602, 16325, 1669, 13, 43, 211, 22, 18, 60, 109, 3767, 2260, 20, 107, 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...
How to get a reference to the currently focused form field in JavaScript? === I'm looking for a cross-browser method - I know IE has something (I've already forgotten what), and the way to do it in Mozilla may have to do with a focusNode thing I found, that seems related to getting text selections. Methods involving jQuery or another common JS library are fine by me. Thanks!
0
[ 2, 184, 20, 164, 21, 2801, 20, 14, 871, 2604, 505, 575, 19, 8247, 8741, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 919, 8, 25699, 4104, 2109, 13, 8, 31, 143, 13, 660, 63, 301, 13, 5, 49, 22, 195, 614, 5562, 98, 6, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adding an instance variable to a class in Ruby === How can I add an instance variable to a defined class at runtime, and later get and set its value from outside of the class?
0
[ 2, 4721, 40, 4851, 7612, 20, 21, 718, 19, 10811, 800, 3726, 3726, 184, 92, 31, 3547, 40, 4851, 7612, 20, 21, 2811, 718, 35, 485, 891, 15, 17, 138, 164, 17, 309, 82, 1923, 37, 719, 16, 14, 718, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How to check if an object is an instance of a NodeList in IE? === <form action="/" method="post" id="testform"> <input type="checkbox" name="foobar[]" value="1" id="" /> <input type="checkbox" name="foobar[]" value="2" id="" /> <input type="checkbox" name="foobar[]" value="3" id="" /> </form> <script type="text/javascript" charset="utf-8"> (function () { var el = document.getElementById('testform')['foobar[]'] if (el instanceof NodeList) { alert("I'm a NodeList"); } })(); </script> This works in FF3/Safari 3.1 but doesn't work in IE6/7. Anyone have any ideas how to check if el is an instance of NodeList across all browsers?
0
[ 2, 184, 20, 2631, 100, 40, 3095, 25, 40, 4851, 16, 21, 15421, 5739, 19, 13, 660, 60, 800, 3726, 3726, 13, 1, 4190, 1028, 3726, 7, 118, 7, 2109, 3726, 7, 6962, 7, 4924, 3726, 7, 10543, 4190, 7, 1, 13, 1, 108, 4881, 1001, 3726...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
IDE's for C# development on Linux? === What are my options? I tried MonoDevelop over a year ago but it was extremely buggy. Is the latest version stable a stable development environment?
0
[ 2, 13, 3448, 22, 18, 26, 272, 5910, 522, 27, 13024, 60, 800, 3726, 3726, 98, 50, 51, 6368, 60, 31, 794, 4129, 26051, 84, 21, 159, 1464, 47, 32, 23, 3898, 6256, 2687, 9, 25, 14, 5736, 615, 4521, 21, 4521, 522, 2307, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
"Access is denied" error on accessing iframe document object === For posting AJAX forms in a form with many parameters, I am using a solution of creating an `iframe`, posting the form to it by POST, and then accessing the `iframe`'s content. specifically, I am accessing the content like this: $("some_iframe_id").contentWindow.document I tested it and it worked. On some of the pages, I started getting an "Access is denied" error. As far as I know, this shouldn't happen if the iframe is served from the same domain. I'm pretty sure it was working before. Anybody have a clue? P.S. I can't use simple ajax POST queries (don't ask...)
0
[ 2, 13, 7, 20604, 25, 5265, 7, 7019, 27, 1381, 68, 31, 8361, 4492, 3095, 800, 3726, 3726, 26, 15669, 20624, 1997, 19, 21, 505, 29, 151, 12905, 15, 31, 589, 568, 21, 4295, 16, 2936, 40, 13, 1, 49, 8361, 1, 15, 15669, 14, 505, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Tools for refactoring table-based HTML layouts to CSS? === Given an HTML page that has a complex table-based layout and many tags that are duplicated and wasteful, e.g.: td align="left" class="tableformat" width="65%" style="border-bottom:1px solid #ff9600; border-right:1px solid #ff9600; background-color:#FDD69E" nowrap etc. Are there tools to aide the task of refactoring the page into a more compact form? For instance, a tool that automatically generates CSS styles and selectors? That converts tables into div layouts? Just to give a sense of the order of the problem, the page I'm looking at is >8000 lines of HTML and JavaScript, which is 500Kb _not counting_ images!
0
[ 2, 4672, 26, 302, 17455, 68, 859, 8, 1281, 13, 15895, 9106, 18, 20, 272, 18, 18, 60, 800, 3726, 3726, 504, 40, 13, 15895, 2478, 30, 63, 21, 1502, 859, 8, 1281, 9106, 17, 151, 3383, 18, 30, 50, 19429, 43, 17, 4600, 1566, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to stress test vidoe streaming server === Does anyone know any good tool that I can use to perform stress test on a video streaming server? I need to test how well my server handles 5,000+ connections.
0
[ 2, 184, 20, 5384, 1289, 13, 7074, 8018, 11920, 8128, 800, 3726, 3726, 630, 1276, 143, 186, 254, 5607, 30, 31, 92, 275, 20, 2985, 5384, 1289, 27, 21, 763, 11920, 8128, 60, 31, 376, 20, 1289, 184, 134, 51, 8128, 3053, 18, 11646, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What is a good free utility to create a self-extracting executable with an embedded file version? === According to the answers to [this][1] question, I cannot embed a file version in my .msi file. The installer that I give the client needs to have a file version. So, what I want to do is create a self-extracting executable containing the msi file and the setup.exe generated by Visual Studio, and put the file version on this self-extracting executable instead. Therefore, I need a utility to create self-extracting executables which supports embedding a file version in its output. It also needs to support automatically running a file after extraction, so I can start the real installer automatically. It would be nice if it was scriptable. All I could find was [this][2], which looks great, but I would much prefer a free alternative. Does anyone have any suggestions? [1]: http://stackoverflow.com/questions/151250/how-do-i-embed-a-file-version-in-an-msi-file-with-visual-studio [2]: http://www.gdgsoft.com/pb/customize-package.aspx
0
[ 2, 98, 25, 21, 254, 551, 10082, 20, 1600, 21, 1119, 8, 1706, 19915, 68, 1396, 17194, 5924, 29, 40, 12138, 3893, 615, 60, 800, 3726, 3726, 496, 20, 14, 6709, 20, 636, 1565, 500, 2558, 165, 500, 1301, 15, 31, 1967, 11911, 69, 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 get an X11 Window from a Process ID ? === Under Linux, my C++ application is using fork() and execv() to launch multiple instances of OpenOffice so as to view some powerpoint slide shows. This part works. Next I want to be able to move the OpenOffice windows to specific locations on the display. I can do that with the XMoveResizeWindow() function but I need to find the Window for each instance. I have the process ID of each instance, how can I from the X11 Window from that ?
0
[ 2, 184, 20, 164, 40, 993, 1306, 1463, 37, 21, 953, 4924, 13, 60, 800, 3726, 3726, 131, 13024, 15, 51, 272, 20512, 3010, 25, 568, 8777, 5, 6, 17, 1396, 62, 12732, 5, 6, 20, 3394, 1886, 13946, 16, 368, 17047, 86, 28, 20, 1418, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 solve HTTP status 405 "Method Not Allowed" when calling Web Services === I've got a siluation where i need to access a web service with WSE 2.0 security. I've got all the generated c# proxies (which are derived from Microsoft.Web.Services2.WebServicesClientProtocol), i'm applying the certificate but when i call a method i get an error: System.Net.WebException : The request failed with HTTP status 405: Method Not Allowed. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) I've done some googling and it appears that this is a server configuration issue. However this web service is used many clients without any problem (the web service is provided by a Telecom New Zealand, so it's bound to be configured correctly. I believe it's written in Java) Can anyone shed some light on this issue?
0
[ 2, 184, 20, 8402, 7775, 1782, 13, 21817, 13, 7, 5909, 1807, 43, 52, 1159, 7, 76, 2555, 2741, 687, 800, 3726, 3726, 31, 22, 195, 330, 21, 8726, 291, 857, 113, 31, 376, 20, 1381, 21, 2741, 365, 29, 619, 870, 172, 9, 387, 1221, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Explain the JVM Directory Layout on Mac OSX Leopard === Here is the directory layout that was installed with Leopard. What is the "A" directory and why the "Current" directory in addition to the "CurrentJDK"? It seems like you can easily switch the current JDK by move the CurrentJDK link, but then the contents under Current and A will be out of sync. <pre> lrwxr-xr-x 1 root wheel 5 Jun 14 15:49 1.3 -> 1.3.1 drwxr-xr-x 3 root wheel 102 Jan 14 2008 1.3.1 lrwxr-xr-x 1 root wheel 5 Feb 21 2008 1.4 -> 1.4.2 lrwxr-xr-x 1 root wheel 3 Jun 14 15:49 1.4.1 -> 1.4 drwxr-xr-x 8 root wheel 272 Feb 21 2008 1.4.2 lrwxr-xr-x 1 root wheel 5 Feb 21 2008 1.5 -> 1.5.0 drwxr-xr-x 8 root wheel 272 Feb 21 2008 1.5.0 lrwxr-xr-x 1 root wheel 5 Jun 14 15:49 1.6 -> 1.6.0 drwxr-xr-x 8 root wheel 272 Jun 14 15:49 1.6.0 drwxr-xr-x 8 root wheel 272 Jun 14 15:49 A lrwxr-xr-x 1 root wheel 1 Jun 14 15:49 Current -> A lrwxr-xr-x 1 root wheel 3 Jun 14 15:49 CurrentJDK -> 1.5 steve-mbp /System/Library/Frameworks/JavaVM.framework/Versions $ </pre> and the contents of A <pre> -rw-r--r-- 1 root wheel 1925 Feb 29 2008 CodeResources drwxr-xr-x 34 root wheel 1156 Jun 14 15:49 Commands drwxr-xr-x 3 root wheel 102 Mar 6 2008 Frameworks drwxr-xr-x 16 root wheel 544 Jun 14 15:49 Headers -rwxr-xr-x 1 root wheel 236080 Feb 29 2008 JavaVM drwxr-xr-x 29 root wheel 986 Jun 14 15:49 Resources steve-mbp /System/Library/Frameworks/JavaVM.framework/Versions/A $ </pre>
0
[ 2, 3271, 14, 487, 20147, 16755, 9106, 27, 1572, 13, 759, 396, 15446, 800, 3726, 3726, 235, 25, 14, 16755, 9106, 30, 23, 4066, 29, 15446, 9, 98, 25, 14, 13, 7, 58, 7, 16755, 17, 483, 14, 13, 7, 17657, 7, 16755, 19, 848, 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...
Calling a C++ function pointer on a specific object instance === I have a function pointer defined by: typedef void (*EventFunction)(int nEvent); Is there a way to handle that function with a specific instance of a C++ object? class A { private: EventFunction handler; public: void SetEvent(EventFunction func) { handler = func; } void EventOne() { handler(1); } }; class B { private: A a; public: B() { a.SetEvent(EventFromA); } // What do I do here? void EventFromA(int nEvent) { // do stuff } };
0
[ 2, 2555, 21, 272, 20512, 1990, 454, 106, 27, 21, 1903, 3095, 4851, 800, 3726, 3726, 31, 57, 21, 1990, 454, 106, 2811, 34, 45, 1001, 13862, 11364, 13, 5, 2483, 4943, 38, 22359, 6, 5, 6391, 2836, 6645, 6, 73, 25, 80, 21, 161, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
returning null values from a web service call === I have a web service API. Some calls return objects containing text fields with information provided by the user. From both a design and a security standpoint, what are the downsides to returning null in those fields when no information has been provided? Is there a clear advantage to always returning an empty string instead, other then simplifying the API by not requiring the client code to check for nulls?
0
[ 2, 2485, 16203, 4070, 37, 21, 2741, 365, 645, 800, 3726, 3726, 31, 57, 21, 2741, 365, 21, 2159, 9, 109, 3029, 788, 3916, 3503, 1854, 2861, 29, 676, 1173, 34, 14, 4155, 9, 37, 156, 21, 704, 17, 21, 1221, 1261, 3132, 15, 98, 50,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Web "frameworks" for haXe to deploy in a PHP environment? === Lately I've been taking a look at [haXe][1], to build an application to be deployed to Apache running PHP. Well, while it looks like it might suit my needs (deploying to PHP, but not using an awful language), I haven't found anything to make the actual application development easier than building a traditional non-MVC PHP app. Are there any toolkits/frameworks that I'm missing, that would be worthwhile? It'd be nice if it were MVC inspired, and I'd definitely want an easy way to use nice URLS, though I could settle for mod_rewrite rules if necessary. [1]: http://haxe.org
0
[ 2, 2741, 13, 7, 8361, 7684, 7, 26, 1458, 13012, 20, 17617, 19, 21, 13, 26120, 2307, 60, 800, 3726, 3726, 10434, 31, 22, 195, 74, 741, 21, 361, 35, 636, 252, 24926, 500, 2558, 165, 500, 15, 20, 1895, 40, 3010, 20, 44, 6698, 20,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Response.Write vs <%= %> === Which is better, all HTML contained within Response.Write Statements or inserting variables into HTML via <%= %>. Eg Response.Write "<table>" & vbCrlf Response.Write "<tr>" &vbCrLf Response.Write "<td class=""someClass"">" & someVariable & "</td>" & vbCrLf Response.Write "</tr>" & vbCrLf Response.Write "</table>" & vbCrLf VS <table> <tr> <td class="someClass"><%= someVariable %></td> </tr> </table> I am mainly asking from a performance point of view in which will have the least server impact when there multiple variables to insert? If there is know technical differences what are the arguments for one over the other?
0
[ 2, 1627, 9, 23716, 4611, 13, 1, 11881, 3726, 13, 11881, 1, 800, 3726, 3726, 56, 25, 574, 15, 65, 13, 15895, 3437, 363, 1627, 9, 23716, 9015, 54, 14692, 68, 12157, 77, 13, 15895, 1197, 13, 1, 11881, 3726, 13, 11881, 1, 9, 12369, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
EULA for a freeware project === Folks, i'm looking for a standard EULA form to include with my freeware project. I'm just looking for clauses to "cover my butt": not responsible for any losses, etc. Is there a standard, boilerplate template that I can get from somewhere? Googling didn't help..
0
[ 2, 2898, 531, 26, 21, 551, 5011, 669, 800, 3726, 3726, 14563, 15, 31, 22, 79, 699, 26, 21, 1236, 2898, 531, 505, 20, 468, 29, 51, 551, 5011, 669, 9, 31, 22, 79, 114, 699, 26, 9040, 18, 20, 13, 7, 14069, 51, 47, 38, 7, 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...
What is the difference between String.Empty and "" === In .NET, what is the difference between String.Empty and "", and are they interchangable, or is there some underlying reference or Localization issues around equality that String.Empty will ensure are not a problem?
0
[ 2, 98, 25, 14, 2841, 128, 3724, 9, 26542, 17, 13, 7, 7, 800, 3726, 3726, 19, 13, 9, 2328, 15, 98, 25, 14, 2841, 128, 3724, 9, 26542, 17, 13, 7, 7, 15, 17, 50, 59, 1480, 16180, 579, 15, 54, 25, 80, 109, 10974, 2801, 54, 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...
Difference between a class and a module === I came from Java and now I am working more with ruby. One language feature I am not familiar with is the `module`. I am wondering what exactly is a module and when do you use one? Also why use a module over a class?
0
[ 2, 2841, 128, 21, 718, 17, 21, 12613, 800, 3726, 3726, 31, 281, 37, 8247, 17, 130, 31, 589, 638, 91, 29, 10811, 9, 53, 816, 1580, 31, 589, 52, 3694, 29, 25, 14, 13, 1, 19673, 62, 1, 9, 31, 589, 5712, 98, 1890, 25, 21, 1261...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...