unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Free/Cheap Task/Bug Management software === I am looking for a Task and Bug management software that I can use both as a way to manage things that need to be done a website with multiple admins and a way for clients of the site to report bugs/suggest features, ask for updates. The clients are fairly non-technical in general and the software has to be fairly easy to understand. Its for a not-for-profit group so it needs to be fairly cheap or free. It would be nice if its already hosted or could host on a cheap linux host.
0
[ 2, 551, 118, 2569, 2552, 3005, 118, 16254, 1097, 2306, 800, 3726, 3726, 31, 589, 699, 26, 21, 3005, 17, 6256, 1097, 2306, 30, 31, 92, 275, 156, 28, 21, 161, 20, 4705, 564, 30, 376, 20, 44, 677, 21, 2271, 29, 1886, 21, 43, 2160...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 get git to follow symlinks? === I've had a google for how to do this, but not had any luck. Is my best be going to be a shell script which replaces symlinks with copies, or is there another way of telling git to follow symlinks? PS: I it's not very secure, but I only want to do it in a few specific cases.
0
[ 2, 184, 92, 31, 164, 13, 10404, 20, 1740, 13, 7261, 6258, 18, 60, 800, 3726, 3726, 31, 22, 195, 41, 21, 8144, 26, 184, 20, 107, 48, 15, 47, 52, 41, 186, 5419, 9, 25, 51, 246, 44, 228, 20, 44, 21, 3593, 3884, 56, 3934, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating a workflow task generates an "Invalid field name" error === I have a custom (code-based) workflow, deployed in WSS via features in a .wsp file. The workflow is configured with a custom task content type (ie, the Workflow element contains a TaskListContentTypeId attribute). This content type's declaration contains a FormUrls element pointing to a custom task edit page. When the workflow attempts to create a task, the workflow throws this exception: `Invalid field name. {17ca3a22-fdfe-46eb-99b5-9646baed3f16` This is the ID of the FormURN site column. I thought FormURN is only used for InfoPath forms, not regular aspx forms... Does anyone have any idea how to solve this, so I can create tasks in my workflow?
0
[ 2, 2936, 21, 170, 9990, 3005, 7920, 18, 40, 13, 7, 108, 18506, 43, 575, 204, 7, 7019, 800, 3726, 3726, 31, 57, 21, 5816, 13, 5, 9375, 8, 1281, 6, 170, 9990, 15, 6698, 19, 619, 18, 18, 1197, 967, 19, 21, 13, 9, 499, 3401, 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...
Is JavaScript really the best we can do for client scripting? === This is admittedly a subjective matter, but every time I am forced to get my hands dirty with JavaScript, I feel like... well... I have just gotten my hands dirty. Wouldn't it make more sense to support a set of more popular languages (Java, Python, Ruby, etc.) by way of a standardized VM hosted in the browser instead of having one somewhat esoteric language that is used only for client scripting?
0
[ 2, 25, 8247, 8741, 510, 14, 246, 95, 92, 107, 26, 6819, 3884, 68, 60, 800, 3726, 3726, 48, 25, 3297, 102, 21, 22835, 1161, 15, 47, 352, 85, 31, 589, 1292, 20, 164, 51, 473, 6121, 29, 8247, 8741, 15, 31, 583, 101, 9, 9, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the best way to reload a iframe using javascript? === I would like to reload an iframe using javascript. The best way I found until now was set the iframe src attibute to itself, but isn't pretty. Any ideas?
0
[ 2, 98, 22, 18, 14, 246, 161, 20, 27339, 21, 31, 8361, 568, 8247, 8741, 60, 800, 3726, 3726, 31, 83, 101, 20, 27339, 40, 31, 8361, 568, 8247, 8741, 9, 14, 246, 161, 31, 216, 163, 130, 23, 309, 14, 31, 8361, 13, 18, 5453, 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, 0...
Visual Basic 6 and UNC Paths === I'm receiving feedback from a developer that "The only way visual basic (6) can deal with a UNC path is to map it to a drive." Is this accurate? And, if so, what's the underlying issue and are there any alternatives other than a mapped drive?
0
[ 2, 3458, 2125, 400, 17, 16061, 12074, 800, 3726, 3726, 31, 22, 79, 3396, 13111, 37, 21, 10058, 30, 13, 7, 124, 104, 161, 3458, 2125, 13, 5, 379, 6, 92, 1183, 29, 21, 16061, 2013, 25, 20, 2942, 32, 20, 21, 1493, 9, 7, 25, 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...
What is the best process for a new ASP.NET web app from the ground up? === I am re-building our poorly designed web application from scratch, and wanted to get into TDD and basically "do things right" as kind of a learning project. What tools, processes, and resources are recommended to do it "right" from the start? I will be working alone as the architect and developer, with the backup of a business analyst and business owners for usability testing and use cases.
0
[ 2, 98, 25, 14, 246, 953, 26, 21, 78, 28, 306, 9, 2328, 2741, 4865, 37, 14, 666, 71, 60, 800, 3726, 3726, 31, 589, 302, 8, 11783, 318, 10614, 1006, 2741, 3010, 37, 12395, 15, 17, 417, 20, 164, 77, 15596, 43, 17, 11374, 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...
How do I upload a file to an SFTP server in C# / .NET? === Does this capability come with .Net? If not, what's the best free library? I need something that will throw good exceptions when there is a problem, and allows me to monitor its progress.
4
[ 2, 184, 107, 31, 71, 8294, 21, 3893, 20, 40, 15025, 13726, 8128, 19, 272, 5910, 13, 118, 13, 9, 2328, 60, 800, 3726, 3726, 630, 48, 11480, 340, 29, 13, 9, 2328, 60, 100, 52, 15, 98, 22, 18, 14, 246, 551, 1248, 60, 31, 376, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Firing COM events in C++ - Synchronous or asynchronous? === I have an ActiveX control written using the MS ATL library and I am firing events via `pDispatch->Invoke(..., DISPATCH_METHOD)`. The control will be used by a .NET client and my question is this - is the firing of the event a synchronous or asynchronous call? My concern is that, if synchronous, the application that handles the event could cause performance issues unless it returns immediately.
0
[ 2, 7139, 13, 960, 963, 19, 272, 20512, 13, 8, 13, 16023, 1291, 54, 21, 16023, 1291, 60, 800, 3726, 3726, 31, 57, 40, 1348, 396, 569, 642, 568, 14, 4235, 35, 255, 1248, 17, 31, 589, 7139, 963, 1197, 13, 1, 306, 2906, 23661, 8, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does C# have an equivalent to JavaScript's encodeURIComponent()? === In JavaScript: encodeURIComponent("©√") == "%C2%A9%E2%88%9A" Is there an equivalent for C# applications? For escaping HTML characters I used: txtOut.Text = Regex.Replace(txtIn.Text, @"[\u0080-\uFFFF]", m => @"&#" + ((int)m.Value[0]).ToString() + ";"); But I'm not sure how to convert the match to the correct hexadecimal format that JS uses. For example this code: txtOut.Text = Regex.Replace(txtIn.Text, @"[\u0080-\uFFFF]", m => @"%" + String.Format("{0:x}", ((int)m.Value[0]))); Returns "`%a9%221a"` for `"©√"` instead of `"%C2%A9%E2%88%9A"`. It looks like I need to split the string up into bytes or something.
0
[ 2, 630, 272, 5910, 57, 40, 4602, 20, 8247, 8741, 22, 18, 20523, 3594, 11103, 218, 2291, 5, 6, 60, 800, 3726, 3726, 19, 8247, 8741, 45, 20523, 3594, 11103, 218, 2291, 5, 7, 1, 7, 6, 800, 3726, 13, 7, 11881, 150, 2603, 58, 2621,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ACTK DragPanel Extender on PopupControlExtender with UpdatePanel does not drag after partial postback === I have a panel on an aspx page which contains an UpdatePanel. This panel is wrapped with both a PopUpControl Extender as well as a DragPanel Extender. Upon initial show everything works fine, the panel pops up and closes as expected and can be dragged around as well. There is a linkbutton within the UpdatePanel which triggers a partial postback. I originally wanted to use an imagebutton but had a lot of trouble with that so ended up using the linkbutton which works. Once the partial postback is complete I can no longer drag the panel around. I would love to hear suggestions on how to fix this. Has anyone else encountered this problem? What did you do about it? Do you know of any other way to accomplish this combination of features without employing other third party libraries?
0
[ 2, 28, 306, 9, 2328, 601, 197, 5501, 3206, 532, 7206, 106, 27, 1675, 576, 12898, 1706, 38, 13630, 29, 11100, 3206, 532, 630, 52, 5501, 75, 7284, 678, 1958, 800, 3726, 3726, 31, 57, 21, 4113, 27, 40, 28, 306, 396, 2478, 56, 1588,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 documentation for snapshots and flow repositories in Spring Web Flow? === I'm looking for more and better documentation about snapshots, flow repositories, and flow state serialization in Spring Web Flow. Available docs I've found seem pretty sparse. "Spring in Action" doesn't talk about this. The Spring Web Flow Reference Manual does mention a couple flags here: http://static.springframework.org/spring-webflow/docs/2.0.x/reference/htmlsingle/spring-webflow-reference.html#tuning-flow-execution-repository but doesn't really talk about why you would change these settings, usage patterns, etc. Anyone have a good reference?
0
[ 2, 98, 25, 14, 246, 13945, 26, 29946, 18, 17, 3312, 302, 14882, 262, 2829, 19, 1573, 2741, 3312, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 91, 17, 574, 13945, 88, 29946, 18, 15, 3312, 302, 14882, 262, 2829, 15, 17, 3312, 146, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
RegisterClientScriptBlock === ASP.NET 2.0 provides the `ClientScript.RegisterClientSCriptBlock()` method for registering Javascript in an ASP.NET Page. The issue I'm having is passing the script when it's located in another directory. Specifically, the following syntax does not work: ClientScript.RegisterClientScriptBlock(this.GetType(), "scriptName", "../dir/subdir/scriptName.js", true); Instead of dropping the code into the page like <a href="http://msdn.microsoft.com/en-us/library/aa479390.aspx#javawasp2_topic7">this page</a> says it should, it instead displays `../dir/subdir/script.js` , my question is this: Has anyone dealt with this before, and found a way to drop in the javascript in a separate file? Am I going about this the wrong way?
0
[ 2, 2243, 150, 18513, 38, 8741, 12048, 800, 3726, 3726, 28, 306, 9, 2328, 172, 9, 387, 1927, 14, 13, 1, 150, 18513, 38, 8741, 9, 12463, 9959, 150, 18513, 38, 8741, 12048, 5, 6, 1, 2109, 26, 2243, 68, 8247, 8741, 19, 40, 28, 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...
Why is using Javascript eval function a bad idea? === The eval function is a powerful and easy way to dynamically generate code so what are the caveats?
0
[ 2, 483, 25, 568, 8247, 8741, 13, 62, 3377, 1990, 21, 896, 882, 60, 800, 3726, 3726, 14, 13, 62, 3377, 1990, 25, 21, 2177, 17, 2010, 161, 20, 7782, 1326, 7920, 1797, 86, 98, 50, 14, 3542, 721, 18, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Does anyone know the CVS command line options to get the details of the last check in? === I'm using CVS on Windows (with the WinCVS front end), and would like to add details of the last check in to the email from our automated build process, whenever a build fails, in order to make it easier to fix. I need to know the files that have changed, the user that changed them, and the comment. I've been trying to work out the command line options, but never seem to get accurate results (either get too many result rather than just from one checkin, or details of some random check in from two weeks ago)
0
[ 2, 630, 1276, 143, 14, 13, 12732, 18, 1202, 293, 6368, 20, 164, 14, 3289, 16, 14, 236, 2631, 19, 60, 800, 3726, 3726, 31, 22, 79, 568, 13, 12732, 18, 27, 1936, 13, 5, 1410, 14, 628, 12732, 18, 431, 241, 6, 15, 17, 83, 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...
Ant OS-specific copy task === I have an Ant script that performs a copy operation using the [copy task][1]. It was written for Windows and has a hardcoded C:\ path as the todir argument. I see the exec task has an OS argument, is there a similar way to branch a copy based on OS? [1]: http://ant.apache.org/manual/CoreTasks/copy.html
0
[ 2, 40, 38, 13, 759, 8, 9219, 4344, 3005, 800, 3726, 3726, 31, 57, 40, 40, 38, 3884, 30, 11563, 21, 4344, 1453, 568, 14, 636, 19625, 3005, 500, 2558, 165, 500, 9, 32, 23, 642, 26, 1936, 17, 63, 21, 552, 22254, 272, 45, 1, 201...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JSF selectItem label formatting === Trying to keep all the presentation stuff in the xhtml on this project and I need to format some values in a selectItem tag have a BigDecimal value and need to make it look like currency. Is there anyway to apply a <code>&lt;f:convertNumber pattern="$#,##0.00"/&gt;</code> Inside a <code>&lt;f:selectItem&gt;</code> tag? Any way to do this or a work around that doesn't involve pushing this into the java code?
0
[ 2, 487, 18, 410, 5407, 2119, 79, 1899, 2595, 1203, 800, 3726, 3726, 749, 20, 643, 65, 14, 6364, 3217, 19, 14, 993, 15895, 27, 48, 669, 17, 31, 376, 20, 2595, 109, 4070, 19, 21, 5407, 2119, 79, 3383, 57, 21, 580, 9522, 49, 3482...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Reading changes in a file in real-time using .NET === I have a .csv file that is frequently updated (about 20 to 30 times per minute). I want to insert the newly added lines to a database as soon as they are written to the file. The [FileSystemWatcher][1] class listens to the file system change notifications and can raise an event whenever there is a change in a specified file. The problem is that the FileSystemWatcher cannot determine exactly which lines were added or removed (as far as I know). One way to read those lines is to save and compare the line count between changes and read the difference between the last and second last change. However, I am looking for a cleaner (perhaps more elegant) solution. I’d appreciate any opinions/comments/solutions. [1]: http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx
0
[ 2, 1876, 1693, 19, 21, 3893, 19, 683, 8, 891, 568, 13, 9, 2328, 800, 3726, 3726, 31, 57, 21, 13, 9, 6824, 710, 3893, 30, 25, 3086, 6372, 13, 5, 6901, 434, 20, 712, 436, 416, 2038, 6, 9, 31, 259, 20, 14692, 14, 2771, 905, 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...
Is there a JavaScript PNG fix for IE6 that allows CSS background positioning? === I've seen a few fixes for allowing PNG images to have transparency in Internet Explorer 6, but I've yet to find one that also allows you to set the background position in CSS. If you use sprites, it's a deal-breaker. I've resorted to using GIF's (which are not as high quality), not using transparent images at all, or serving a completely different stylesheet to IE6. Is there a fix for IE6 that allows for PNG transparencies AND background positioning?
0
[ 2, 25, 80, 21, 8247, 8741, 351, 2723, 6098, 26, 13, 660, 379, 30, 2965, 272, 18, 18, 2395, 649, 68, 60, 800, 3726, 3726, 31, 22, 195, 541, 21, 310, 6098, 160, 26, 2719, 351, 2723, 3502, 20, 57, 19668, 19, 2620, 8520, 400, 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 do I protect my file data from disk corruption? === Recently, I read an article entitled ["SATA vs. SCSI reliability"][1]. It mostly discusses the very high rate bit flipping in consumer SATA drives and concludes "A 56% chance that you can't read all the data from a particular disk now". Even Raid-5 can't save us as it must be constantly scanned for problems and if a disk does die you are pretty much guaranteed to have some flipped bits on your rebuilt file system. Considerations: I've heard great things about Sun's [ZFS][2] with [Raid-Z][3] but the Linux and BSD implementations are still experimental. I'm not sure it's ready for prime time yet. I've also read quite a bit about the [Par2][4] file format. It seems like storing some extra % parity along with each file would allow you to recover from most problems. However, I am not aware of a file system that does this internally and it seems like it could be hard to manage the separate files. [1]: http://alumnit.ca/~apenwarr/log/?m=200809#08 [2]: http://en.wikipedia.org/wiki/ZFS [3]: http://en.wikipedia.org/wiki/Non-standard_RAID_levels#RAID-Z [4]: http://en.wikipedia.org/wiki/Parchive
0
[ 2, 184, 107, 31, 2196, 51, 3893, 1054, 37, 8582, 7858, 60, 800, 3726, 3726, 1989, 15, 31, 1302, 40, 2002, 3146, 636, 7, 18, 4375, 4611, 9, 13, 18, 16166, 17478, 7, 500, 2558, 165, 500, 9, 32, 1555, 18272, 14, 253, 183, 1684, 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...
IndexOutOfRangeException in the Ajax.Net extensions framework === For some reason when I attempt to make a request to an Ajax.net web service with the ScriptService attribute set, an exception occurs deep inside the protocol class which I have no control over. Anyone seen this before? Here is the exact msg: System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Web.Services.Protocols.HttpServerType..ctor(Type type) at System.Web.Services.Protocols.HttpServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext ontext, HttpRequest request, HttpResponse response) at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) thx Trev
0
[ 2, 4348, 1320, 1041, 8366, 10066, 872, 19, 14, 20624, 9, 2328, 17529, 6596, 800, 3726, 3726, 26, 109, 1215, 76, 31, 1735, 20, 233, 21, 3772, 20, 40, 20624, 9, 2328, 2741, 365, 29, 14, 3884, 11449, 35, 14755, 309, 15, 40, 5391, 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...
Best Permalinking for Rails === What do you think is the best way to create SEO friendly URLs (dynamically) in Rails?
0
[ 2, 246, 416, 540, 6258, 68, 26, 2240, 18, 800, 3726, 3726, 98, 107, 42, 277, 25, 14, 246, 161, 20, 1600, 13, 18, 3894, 4753, 13, 911, 7532, 13, 5, 20985, 1326, 6, 19, 2240, 18, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Inlining C++ code === Is there any difference to the following code: class Foo { inline int SomeFunc() { return 42; } int AnotherFunc() { return 42; } }; Will both functions gets inlined? Does inline actually make any difference? Are there any rules on when you should or shouldn't inline code? I often use the `AnotherFunc` syntax (accessors for example) but I rarely specify `inline` directly.
0
[ 2, 19, 8930, 272, 20512, 1797, 800, 3726, 3726, 25, 80, 186, 2841, 20, 14, 249, 1797, 45, 718, 4310, 111, 13, 1, 19, 1143, 19, 38, 109, 16638, 150, 5, 6, 13, 1, 788, 4162, 73, 13, 1, 19, 38, 226, 16638, 150, 5, 6, 13, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is "missing" in the Visual Studio Express Editions? === In particular, * what functionality is not available? * what restrictions are there on its use?
4
[ 2, 98, 25, 13, 7, 7292, 68, 7, 19, 14, 3458, 1120, 2999, 6179, 60, 800, 3726, 3726, 19, 1498, 15, 1637, 98, 18548, 25, 52, 904, 60, 1637, 98, 9245, 50, 80, 27, 82, 275, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Linkbutton click event not running handler. === I'm creating a custom drop down list with AJAX dropdownextender. Inside my drop panel I have linkbuttons for my options. <asp:Label ID="ddl_Remit" runat="server" Text="Select remit address." Style="display: block; width: 300px; padding:2px; padding-right: 50px; font-family: Tahoma; font-size: 11px;" /> <asp:Panel ID="DropPanel" runat="server" CssClass="ContextMenuPanel" Style="display :none; visibility: hidden;"> <asp:LinkButton runat="server" ID="Option1z" Text="451 Stinky Place Drive <br/>North Nowhere, Nebraska 20503-2343 " OnClick="OnSelect" CssClass="ContextMenuItem" /> <asp:LinkButton runat="server" ID="Option2z" Text="451 Stinky Place Drive <br/>North Nowhere, Nebraska 20503-2343 " OnClick="OnSelect" CssClass="ContextMenuItem" /> <asp:LinkButton runat="server" ID="Option3z" Text="451 Stinky Place Drive <br/>North Nowhere, Nebraska 20503-2343 " OnClick="OnSelect" CssClass="ContextMenuItem" />--> </asp:Panel> <ajaxToolkit:DropDownExtender runat="server" ID="DDE" TargetControlID="ddl_Remit" DropDownControlID="DropPanel" /> And this works well. Now what I have to do is dynamically fill this dropdownlist. Here is my best attempt: private void fillRemitDDL() { //LinkButton Text="451 Stinky Place Drive <br/>North Nowhere, Nebraska 20503-2343 " OnClick="OnSelect" CssClass="ContextMenuItem" DAL_ScanlineTableAdapters.SL_GetRemitByScanlineIDTableAdapter ta = new DAL_ScanlineTableAdapters.SL_GetRemitByScanlineIDTableAdapter(); DataTable dt = (DataTable)ta.GetData(int.Parse(this.SLID)); if (dt.Rows.Count > 0) { Panel ddl = this.FindControl("DropPanel") as Panel; ddl.Controls.Clear(); for (int x = 0; x < dt.Rows.Count; x++) { LinkButton lb = new LinkButton(); lb.Text = dt.Rows[x]["Remit3"].ToString().Trim() + "<br />" + dt.Rows[x]["Remit4"].ToString().Trim() + "<br />" + dt.Rows[x]["RemitZip"].ToString().Trim(); lb.CssClass = "ContextMenuItem"; lb.Attributes.Add("onclick", "setDDL(" + lb.Text + ")"); ddl.Controls.Add(lb); } } } My problem is that I cannot get the event to run script! I've tried the above code as well as replacing "lb.Attributes.Add("onclick", "setDDL(" + lb.Text + ")");" with "lb.Click += new EventHandler(OnSelect);" and also "lb.OnClientClick = "setDDL(" + lb.Text + ")");" I'm testing the the branches with Alerts on client-side and getting nothing.
0
[ 2, 3508, 811, 444, 10840, 807, 52, 946, 24641, 9, 800, 3726, 3726, 31, 22, 79, 2936, 21, 5816, 2804, 125, 968, 29, 20624, 2804, 17779, 20021, 13630, 9, 572, 51, 2804, 4113, 31, 57, 3508, 811, 444, 18, 26, 51, 6368, 9, 13, 1, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Designing a WPF map control. === I'm thinking about making a simple map control in WPF, and am thinking about the design of the basic map interface and am wondering if anyone has some good advice for this. What I'm thinking of is using a ScrollViewer (sans scroll bars) as my "view port" and then stacking everything up on top of a canvas. From Z-Index=0 up, I'm thinking: 1. Base canvas for lat/long calculations, control positioning, Z-Index stacking. 1. Multiple Grid elements to represent the maps at different zoom levels. Using a grid to make tiling easier. 1. Map objects with positional data. 1. Map controls (zoom slider, overview, etc). 1. Scroll viewer with mouse move events for panning and zooming. Any comments suggestions on how I should be building this?
0
[ 2, 15026, 21, 619, 7721, 2942, 569, 9, 800, 3726, 3726, 31, 22, 79, 1440, 88, 544, 21, 1935, 2942, 569, 19, 619, 7721, 15, 17, 589, 1440, 88, 14, 704, 16, 14, 2125, 2942, 6573, 17, 589, 5712, 100, 1276, 63, 109, 254, 4978, 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...
Singelton: How should it be used === So I have read the thread [Singletons: good design or a crutch?](http://stackoverflow.com/questions/11831/singletons-good-design-or-a-crutch#11914)<br> And the argument still rages. I see Singletons as a Design Pattern (good and bad).<br><br> The problem with Singleton is not the Pattern but rather the users (sorry everybody). Everybody and their father thinks they can implement one correctly (and from the many interviews I have done, most people can't). Also because everybody thinks they can implement a correct Singleton they abuse the Pattern and use it in situations that are not appropriate (replacing global variables with Singletons!). So the main questions that need to be answered are: * When should you use a Singleton * How do you implement a Singleton correctly My hope for this article is that we can collect together in a single place (rather than having to google and search multiple sites) an authoritative source of when (and then how) to use a Singleton correctly. Also appropriate would be a list of Anti-Usages and common bad implementations explaining why they fail to work and for good implementations their weaknesses.<br><br><hr> So get the ball rolling:<br> I will hold my hand up and say this is what I use but probably has problems.<br> I like "Scott Myers" handling of the subject in his books "Effective C++" > Good Situations to use Singletons (not many):<br> > > * Logging frameworks > * Thread recycling pools /* * C++ Singleton * Limitation: Single Threaded Design * See: http://www.aristeia.com/Papers/DDJ_Jul_Aug_2004_revised.pdf * For problems associated with locking in multi threaded applications * * Limitation: * If you use this Singleton (A) within a destructor of another Singleton (B) * This Singleton (A) must be fully constructed before the constructor of (B) * is called. */ class MySingleton { private: // Private Constructor MySingleton(); // Stop the compiler generating methods of copy the object MySingleton(MySingleton const& copy); // Not Implemented. MySingleton& operator=(MySingleton const& copy); // Not Implemented public: static MySingleton& getInstance() { // The only instance // Guaranteed to be lazy initialized // Guaranteed that it will be destroyed correctly static MySingleton instance; return instance; } }; OK. Lets get some criticism and other implementations together. :-)
0
[ 2, 4481, 532, 444, 45, 184, 378, 32, 44, 147, 800, 3726, 3726, 86, 31, 57, 1302, 14, 9322, 636, 14031, 444, 18, 45, 254, 704, 54, 21, 26047, 60, 500, 5, 21127, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 11698, 12081, 8197,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Google Maps, Z Index and Drop Down Javascript menus === I've run on a little problem today: I have a JS drop down menu and when I inserted a GoogleMap... the Menu is rendered behind the Google Map... Any ideas on how to chance the z Index of the Google Map? Thanks!
0
[ 2, 8144, 6867, 15, 2052, 4348, 17, 2804, 125, 8247, 8741, 11379, 18, 800, 3726, 3726, 31, 22, 195, 485, 27, 21, 265, 1448, 786, 45, 31, 57, 21, 487, 18, 2804, 125, 11379, 17, 76, 31, 14215, 21, 8144, 15022, 9, 9, 9, 14, 11379,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Proper Logging in OOP context === Here is a problem I've struggled with ever since I first started learning object-oriented programming: how should one implement a logger in "proper" OOP code? By this, I mean an object that has a method that we want every other object in the code to be able to access; this method would output to console/file/whatever, which we would use for logging--hence, this object would be the logger object. We don't want to establish the logger object as a global variable, because global variables are bad, right? But we also don't want to have the pass the logger object in the parameters of every single method we call in every single object. In college, when I brought this up to the professor, he couldn't actually give me an answer. I realize that there are actually packages (for say, Java) that might implement this functionality. What I am ultimately looking for, though, is the knowledge of how to properly and in the OOP way implement this myself.
0
[ 2, 4119, 13, 13919, 19, 13, 21709, 4141, 800, 3726, 3726, 235, 25, 21, 1448, 31, 22, 195, 6076, 29, 462, 179, 31, 64, 373, 2477, 3095, 8, 6800, 3143, 45, 184, 378, 53, 8713, 21, 13, 29480, 19, 13, 7, 10890, 106, 7, 13, 21709, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 "Pretty" format my JSON output in Ruby on Rails? === I would like my JSON output in Ruby on Rails to be "pretty" or nicely formatted. Right now, I call the to_json method and my JSON is all on one line. At times this can be difficult to see if there is a problem in the JSON output stream. Is there way to configure or a method to make my JSON "pretty" or nicely formatted in RoR? Thanks.
0
[ 2, 184, 92, 31, 13, 7, 21542, 7, 2595, 51, 487, 528, 5196, 19, 10811, 27, 2240, 18, 60, 800, 3726, 3726, 31, 83, 101, 51, 487, 528, 5196, 19, 10811, 27, 2240, 18, 20, 44, 13, 7, 21542, 7, 54, 24050, 13, 29850, 9, 193, 130, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's wrong with singleton? === Please feel free to bitch on [Singleton][1]. ---------- This post is motivated by answers on [What design pattern do you use the most?][2] question. I have to scream at the world **Do not overuse singletons**. Please help me scream. [1]: http://en.wikipedia.org/wiki/Singleton_pattern [2]: http://stackoverflow.com/questions/86333/what-design-pattern-do-you-use-the-most
0
[ 2, 98, 22, 18, 1389, 29, 345, 444, 60, 800, 3726, 3726, 2247, 583, 551, 20, 6643, 27, 636, 14031, 444, 500, 2558, 165, 500, 9, 13, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 48, 678, 25, 14413, 34, 6709, 27, 636, 608, 704, 3732, 107,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Different values of GetHashCode for inproc and stateserver session variables === I've recently inherited an application that makes very heavy use of session, including storing a lot of custom data objects in session. One of my first points of business with this application was to at least move the session data away from InProc, and off load it to either a stateserver or SQL Server. After I made all of the appropriate data objects serializable, and changed the web.config to use a state service, everything appeared to work fine. However, I found that this application does a lot of object comparisons using GetHashCode(). Methods that worked fine when the session was InProc no longer work because the HashCodes no longer match when they are supposed to. This appears to be the case when trying to find a specific child object from a parent when you know the child object's original hash code If I simply change the web.config back to using inproc, it works again. Anyone have any thoughts on where to begin with this?
0
[ 2, 421, 4070, 16, 164, 25436, 9375, 26, 19, 15617, 17, 202, 106, 2304, 3723, 12157, 800, 3726, 3726, 31, 22, 195, 1989, 7179, 40, 3010, 30, 1364, 253, 1278, 275, 16, 3723, 15, 215, 25615, 21, 865, 16, 5816, 1054, 3916, 19, 3723, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 inversion of the Shunting Yard algorithm? === Dijkstra's [Shunting Yard algorithm][1] is used to parse an infix notation and generate [RPN][2] output. I am looking for the opposite, a way to turn RPN into highschool-math-class style infix notation, in order to represent RPN expressions from a database to lay users in an understandable way. Please save your time and don't cook up the algorithm yourselves, just point me to textbook examples that I can't seem to find. Working backwards from the Shunting Yard algorithm and using my knowledge about the notations I'll probably be able to work up a solution. I'm just looking for a quick shortcut, so I don't have to reinvent the wheel. Oh, and please don't tag this as "homework", I <i>swear</i> I'm out of school already! ;-) [1]: http://en.wikipedia.org/wiki/Shunting_yard_algorithm "Wikipedia: Shunting Yard algorithm" [2]: http://en.wikipedia.org/wiki/Reverse_Polish_notation "Wikipedia: Reverse Polish Notation"
0
[ 2, 98, 25, 14, 19, 10898, 16, 14, 13, 18, 24852, 4640, 9083, 60, 800, 3726, 3726, 13, 28395, 5253, 22, 18, 636, 18, 24852, 4640, 9083, 500, 2558, 165, 500, 25, 147, 20, 2017, 870, 40, 19, 18594, 15591, 17, 7920, 636, 6952, 103, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
is the a good and free ide for c/c++ in linux === I'm used to work with [SourceInsight][1] for windows which works great, shows caller and callee for each function, shows the content of a function the cursor is on and smartly auto-completes symbols across project. I don't feel like falling into the long learning curve of vim/emacs. I want productivity and I want it fast (I don't mean a console thing, I'm talking about a **read IDE**) [1]: http://www.sourceinsight.com/
0
[ 2, 25, 14, 21, 254, 17, 551, 13, 3448, 26, 272, 118, 150, 20512, 19, 13024, 800, 3726, 3726, 31, 22, 79, 147, 20, 170, 29, 636, 12097, 108, 18, 6872, 38, 500, 2558, 165, 500, 26, 1936, 56, 693, 374, 15, 1285, 21326, 17, 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...
TimeStamp in Control File === I have a script that takes a table name and generates a control file by querying all the columns/rows the table. This works fine for numeric and character data but fails on timestamp data so I need to adjust the script to output the timestamp data into the control in such a way that it can be read in properly. So essentially, my question is how to format TimeStamp data in a control file so that it can be inputed into a TimeStamp column.
0
[ 2, 436, 38, 10158, 19, 569, 3893, 800, 3726, 3726, 31, 57, 21, 3884, 30, 1384, 21, 859, 204, 17, 7920, 18, 21, 569, 3893, 34, 25597, 68, 65, 14, 7498, 118, 5417, 18, 14, 859, 9, 48, 693, 1123, 26, 15764, 596, 17, 925, 1054, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Debugging LINQ to SQL SubmitChanges() === I am having a really hard time attempting to debug LINQ to SQL and submitting changes. I have been using [http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx][1], which works great for debugging simple queries. I'm working in the DataContext Class for my project with the following snippet from my application: JobMaster newJobToCreate = new JobMaster(); newJobToCreate.JobID = 9999 newJobToCreate.ProjectID = "New Project"; this.UpdateJobMaster(newJobToCreate); this.SubmitChanges(); I will catch some very odd exceptions when I run this.SubmitChanges; Index was outside the bounds of the array. The stack trace goes places I cannot step into: at System.Data.Linq.IdentityManager.StandardIdentityManager.MultiKeyManager`3.TryCreateKeyFromValues(Object[] values, MultiKey`2& k) at System.Data.Linq.IdentityManager.StandardIdentityManager.IdentityCache`2.Find(Object[] keyValues) at System.Data.Linq.IdentityManager.StandardIdentityManager.Find(MetaType type, Object[] keyValues) at System.Data.Linq.CommonDataServices.GetCachedObject(MetaType type, Object[] keyValues) at System.Data.Linq.ChangeProcessor.GetOtherItem(MetaAssociation assoc, Object instance) at System.Data.Linq.ChangeProcessor.BuildEdgeMaps() at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) at System.Data.Linq.DataContext.SubmitChanges() at JobTrakDataContext.CreateNewJob(NewJob job, String userName) in D:\JobTrakDataContext.cs:line 1119 Does anyone have any tools or techniques they use? Am I missing something simple? [1]: http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx
0
[ 2, 121, 16254, 2762, 6294, 1251, 20, 4444, 255, 12298, 16229, 18, 5, 6, 800, 3726, 3726, 31, 589, 452, 21, 510, 552, 85, 6314, 20, 121, 16254, 6294, 1251, 20, 4444, 255, 17, 28848, 1693, 9, 31, 57, 74, 568, 636, 21127, 6903, 141...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Library for Dynamic PDF or Word Doc Generation? === Our ASP.NET application must be able to export web content to PDF and Word documents. In the past, we've used [Aspose's][1] libraries to accomplish this, but we've found them to be a little too low-level in terms of document construction. e.g. We've found ourselves needing to write point-based functions using shape primitives to create bulleted lists. Best case scenerio- we'd point a tool at our printable css-styled page and automagically get a PDF or Word document containing the same content styled in the same manner. Have you had a good experience using any tools that could accomplish this? [1]: http://www.aspose.com/
0
[ 2, 246, 1248, 26, 7782, 13, 11124, 54, 833, 9765, 2782, 60, 800, 3726, 3726, 318, 28, 306, 9, 2328, 3010, 491, 44, 777, 20, 7487, 2741, 2331, 20, 13, 11124, 17, 833, 4374, 9, 19, 14, 640, 15, 95, 22, 195, 147, 636, 472, 15690,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Membership bulk email software === We have a Microsoft web stack web site, we have a members database. We want to start doing mass-emails to our (opted in) membership. I don't *particularly* want to re-invent the wheel with a system for having a web form submit and then mass send emails looping through thousands of records without timing out and overloading the server... I guess I'm looking for something like Mailman, that can run on a windows (ASP/ASP.NET + SQL Server) backend and do the work for me, with suitable APIs to manage the subscriber list and send emails to that list. Suggestions please?
0
[ 2, 4363, 7238, 8517, 2306, 800, 3726, 3726, 95, 57, 21, 7099, 2741, 7566, 2741, 689, 15, 95, 57, 21, 443, 6018, 9, 95, 259, 20, 799, 845, 1619, 8, 62, 8079, 18, 20, 318, 13, 5, 2594, 1427, 19, 6, 4363, 9, 31, 221, 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...
A static analysis project/product with rules for enforcing Effective Java advice? === Does there exist a project or product that implements static analysis rules <em>specifically designed</em> to enforce the advice given in <a href="http://java.sun.com/docs/books/effective/">"Effective Java," 2nd ed., Bloch?</a> <p>Many people agree that "Effective Java" is <a href="http://stackoverflow.com/questions/75102/best-java-book-you-have-read-so-far">a very good book</a>. The ability to scan code for opportunities to apply the "Effective Java" advice would most likely be seen as valuable. <p>Now, some of the advice from the book is already covered by existing rules in tools like PMD. Also, some of the advice is probably beyond the recognition powers of static analyzers. <p>Maybe I'm just looking for an index into existing tools: <ul> <li>PMD rule <code>foo</code> &rarr; EJ Item <code>X</code> <li>FindBugs visitor <code>bar</code> &rarr; EJ Item <code>Y</code> </ul>
0
[ 2, 21, 12038, 2495, 669, 118, 14086, 29, 1761, 26, 29296, 3140, 8247, 4978, 60, 800, 3726, 3726, 630, 80, 3182, 21, 669, 54, 2374, 30, 8713, 18, 12038, 2495, 1761, 13, 1, 1503, 1, 9219, 1326, 1006, 1, 118, 1503, 1, 20, 16525, 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...
Does DataGrid on CE 5.0 Compact Framework .NET support editing? === I am trying to get a DataGrid under CE 5.0 / .NET CF 2.0 that a user can edit. The document at http://msdn.microsoft.com/en-us/library/ms838165.aspx indicates that some environments do not support editing - > As there is no native support for > editing in the DataGrid control, this > needs to be implemented manually Do I need to implement this ugly example - which doesn't work very well as shown? The documentation is not clear about which .NET features are available on which platform.
0
[ 2, 630, 1054, 16375, 27, 4000, 331, 9, 387, 8285, 6596, 13, 9, 2328, 555, 9510, 60, 800, 3726, 3726, 31, 589, 749, 20, 164, 21, 1054, 16375, 131, 4000, 331, 9, 387, 13, 118, 13, 9, 2328, 10084, 172, 9, 387, 30, 21, 4155, 92, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Some sort of creational pattern needed in C# === I have the following type : // incomplete class definition public class Person { private string name; public string Name { get { return this.name; } } } I want this type to be **created** and **updated** with some sort of dedicated controller/builder, but I want it to remain **read-only for other types**. This object also needs to fire an event every time it is updated by its controller/builder. To summary, according to the previous type definition skeleton : - The `Person` could only be instantiated by a specific controller - This controller could **update** the state of the `Person` (`name` field) at any time - The `Person` need to send a **notification** to the rest of the world when it occurs - All other types should only be able to **read** `Person` attributes How should I implement this ? I'm talking about a controller/builder here, but all others solutions are welcome. Note : *I would be able to rely on the `internal` modifier, but ideally all my stuff should be in the same assembly.*
0
[ 2, 109, 2058, 16, 2502, 192, 3732, 851, 19, 272, 5910, 800, 3726, 3726, 31, 57, 14, 249, 1001, 13, 45, 12894, 14011, 718, 5465, 317, 718, 840, 13, 1, 932, 3724, 204, 73, 317, 3724, 204, 13, 1, 164, 13, 1, 788, 48, 9, 7259, 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...
How best to alleviate scenarios that trigger non-incremental linking (MSVS) === While incremental linking addresses much of the time spent linking, even for very large projects, I find the incremental linker in MSVS to be pretty haphazard. (I'm currently using 2003 atm, would love to hear if 2005/8 addressed any of this.) My list of known triggers include: - changing anything external to the main .exe project will trigger a full link - adding static variables had a 50% chance of triggering a full link and this list is certainly not inclusive. What can I do to avoid full links? So far, the only diagnosis tool i've found so far is - /test in the linker command line options and it's terrible. What solutions are out there for diagnosing triggers for full re-links?
0
[ 2, 184, 246, 20, 24165, 19611, 30, 7286, 538, 8, 28461, 192, 12585, 13, 5, 79, 18, 710, 18, 6, 800, 3726, 3726, 133, 29977, 12585, 12636, 212, 16, 14, 85, 1111, 12585, 15, 166, 26, 253, 370, 2314, 15, 31, 477, 14, 29977, 3508, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Change .xla File with MSBuild === I'm trying to create a build script for my current project, which includes an Excel Add-in. The Add-in contains a VBProject with a file modGlobal with a variable version_Number. This number needs to be changed for every build. The exact steps: 1. Open XLA document with Excel. 2. Switch to VBEditor mode. (Alt+F11) 3. Open VBProject, entering a password. 4. Open modGlobal file. 5. Change variable's default value to the current date. 6. Close & save the project. I'm at a loss for how to automate the process. The best I can come up with is an excel macro or Auto-IT script. I could also write a custom MSBuild task, but that might get... tricky. Does anyone else have any other suggestions?
0
[ 2, 753, 13, 9, 396, 531, 3893, 29, 4235, 29361, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 21, 1895, 3884, 26, 51, 866, 669, 15, 56, 1103, 40, 20700, 3547, 8, 108, 9, 14, 3547, 8, 108, 1588, 21, 13, 20468, 21011, 29, 21, 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...
How to properly handle exceptions when performing file io === Often I find myself interacting with files in some way but after writing the code I'm always uncertain how rubust it actually is. The problem is that I'm not entirely sure how file related operations can fail and, therefore, the best way to handle expections. The simple solution would seem to be just to catch any IOExceptions thrown by the code and give the user a "Inaccessible file" error message but is it possible to get a bit more fine-grained error messages. Is there a way to determine the difference between such errors as a file being locked by another program and the data being unreadable due to a hardware error? Given the following C# code, how would you handle errors in a user friendly (as informative as possible) way? public class IO { public List<string> ReadFile(string path) { FileInfo file = new FileInfo(path); if (!file.Exists) { throw new FileNotFoundException(); } StreamReader reader = file.OpenText(); List<string> text = new List<string>(); while (!reader.EndOfStream) { text.Add(reader.ReadLine()); } reader.Close(); reader.Dispose(); return text; } public void WriteFile(List<string> text, string path) { FileInfo file = new FileInfo(path); if (!file.Exists) { throw new FileNotFoundException(); } StreamWriter writer = file.CreateText(); foreach(string line in text) { writer.WriteLine(line); } writer.Flush(); writer.Close(); writer.Dispose(); } }
0
[ 2, 184, 20, 7428, 3053, 13392, 76, 2955, 3893, 13, 1963, 800, 3726, 3726, 478, 31, 477, 992, 24747, 29, 6488, 19, 109, 161, 47, 75, 1174, 14, 1797, 31, 22, 79, 550, 8373, 184, 7598, 267, 38, 32, 1121, 25, 9, 14, 1448, 25, 30, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is the Contains Method in java.lang.String Case-sensitive? === Say I have 2 strings, String s1 = "AbBaCca"; String s2 = "bac"; I want to preform a check to see if s2 is contained within s1. I can do this with: return s1.contains(s2); I am pretty sure that contains() is case sensitive, however I can't determine this for sure from reading the documentation. If it is then I suppose my best method would be something like: return s1.toLowerCase().contains(s2.toLowerCase()); All this aside, does anyone know of another (possibly better) way to accomplish this without caring about case-sensitivity?
0
[ 2, 25, 14, 1588, 2109, 19, 8247, 9, 9949, 9, 11130, 610, 8, 19435, 60, 800, 3726, 3726, 395, 31, 57, 172, 7887, 15, 3724, 13, 18, 165, 800, 13, 7, 13100, 6909, 7, 73, 3724, 13, 18, 135, 800, 13, 7, 969, 150, 7, 73, 31, 259...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Please help me name my class. === I'm designing a web site navigation hierarchy. It's a tree of nodes. Nodes represent web pages. Some nodes on the tree are special. I need a name for them. There are multiple such nodes. Each is the "root" of a sub-tree with pages that have a distinct logo, style sheet, or layout. Think of different departments. ![site map with color-coded sub-trees][1] What should I name this type of node? [1]: http://img518.imageshack.us/img518/153/subtreesfe1.gif
0
[ 2, 2247, 448, 55, 204, 51, 718, 9, 800, 3726, 3726, 31, 22, 79, 15026, 21, 2741, 689, 8368, 14417, 9, 32, 22, 18, 21, 1541, 16, 16272, 9, 16272, 3501, 2741, 4434, 9, 109, 16272, 27, 14, 1541, 50, 621, 9, 31, 376, 21, 204, 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...
How to avoid thousands of needless ListView.SelectedIndexChanged events? === If a user select all items in a .NET 2.0 ListView, the ListView will fire a SelectedIndexChanged event for every item; rather than firing an event to indicate that the selection has changed If the user then clicks to select just one item in the list, the ListView will fire a SelectedIndexChagned event for every item that is getting unselected, and then an SelectedIndexChanged event for the single newly selected item; rather than firing an event to indicate that the selection has changed. If you have code in the SelectedIndexChanged event handler, the program will become pretty unresponsive when you begin to have a few hundred/thousand items in the list. i've thought about dwell timers, etc. But does anyone have a good solution to avoid thousands of needless ListView.SelectedIndexChange events, when really one will do?
0
[ 2, 184, 20, 2658, 3805, 16, 17023, 18, 968, 4725, 9, 18, 7138, 25671, 16229, 43, 963, 60, 800, 3726, 3726, 100, 21, 4155, 5407, 65, 3755, 19, 21, 13, 9, 2328, 172, 9, 387, 968, 4725, 15, 14, 968, 4725, 129, 535, 21, 1704, 2567...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Connecting delegate classes in Objective-C === I've got two controls in my Interface Builder file, and each of those controls I've created a separate delegate class for in code (Control1Delegate and Control2Delegate). I created two "Objects" in interface builder, made them of that type, and connected the controls to them as delegates. The delegates work just fine. My problem is, I need to share information from one delegate to the other delegate, and I'm not sure how. What is the best way to do this? Combine the two delegates into one class, or somehow access a third class that they can both read? Since I'm not actually initializing the class anywhere in my code, I'm not sure how to get a reference to the actual instance of it (if there is an actual instance of it), or even access the "main" class that the project came with.
0
[ 2, 6440, 11300, 2684, 19, 7038, 8, 150, 800, 3726, 3726, 31, 22, 195, 330, 81, 8671, 19, 51, 6573, 14960, 3893, 15, 17, 206, 16, 273, 8671, 31, 22, 195, 679, 21, 1725, 11300, 718, 26, 19, 1797, 13, 5, 12898, 165, 24249, 3322, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is the syntax for the Wordpress style.css template element available anywhere? === I've recently embarked upon the _grand voyage_ of Wordpress theming and I've been reading through the Wordpress documentation for how to write a theme. One thing I came across [here](http://codex.wordpress.org/Theme_Development) was that the `style.css` file must contain a specific header in order to be used by the Wordpress engine. They give a brief example but I haven't been able to turn up any formal description of what must be in the `style.css` header portion. Does this exist on the Wordpress site? If it doesn't could we perhaps describe it here? Thanks in advance!
0
[ 2, 25, 14, 22649, 26, 14, 833, 5890, 1034, 9, 6824, 18, 22894, 4520, 904, 4922, 60, 800, 3726, 3726, 31, 22, 195, 1989, 12111, 685, 14, 13, 1, 9166, 7039, 1, 16, 833, 5890, 14, 3863, 17, 31, 22, 195, 74, 1876, 120, 14, 833, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why would a "java.net.ConnectException: Connection timed out" exception occur when URL is up? === I'm getting a ConnectException: Connection timed out with some frequency from my code. The URL I am trying to hit is up. The same code works for some users, but not others. It seems like once one user starts to get this exception they continue to get the exception. Here is the stack trace: java.net.ConnectException: Connection timed out Caused by: java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:516) at java.net.Socket.connect(Socket.java:466) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.<init>(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.http.HttpClient.New(HttpClient.java:299) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:796) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:748) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:673) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:840) Here is a snippet from my code: URLConnection urlConnection = null; OutputStream outputStream = null; OutputStreamWriter outputStreamWriter = null; InputStream inputStream = null; try { URL url = new URL(urlBase); urlConnection = url.openConnection(); urlConnection.setDoOutput(true); outputStream = urlConnection.getOutputStream(); // exception occurs on this line outputStreamWriter = new OutputStreamWriter(outputStream); outputStreamWriter.write(urlString); outputStreamWriter.flush(); inputStream = urlConnection.getInputStream(); String response = IOUtils.toString(inputStream); return processResponse(urlString, urlBase, response); } catch (IOException e) { throw new Exception("Error querying url: " + urlString, e); } finally { IoUtil.close(inputStream); IoUtil.close(outputStreamWriter); IoUtil.close(outputStream); }
0
[ 2, 483, 83, 21, 13, 7, 1004, 1385, 9, 2328, 9, 25996, 10066, 872, 45, 2760, 85, 43, 70, 7, 5391, 3744, 76, 287, 6362, 25, 71, 60, 800, 3726, 3726, 31, 22, 79, 1017, 21, 6379, 10066, 872, 45, 2760, 85, 43, 70, 29, 109, 5328, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 array reference === If I have the following: {"hdrs": ["Make","Model","Year"], "data" : [ {"Make":"Honda","Model":"Accord","Year":"2008"} {"Make":"Toyota","Model":"Corolla","Year":"2008"} {"Make":"Honda","Model":"Pilot","Year":"2008"}] } And I have a "hdrs" name (i.e. "Make"), how can I reference the "data" array instances? seems like data["Make"][0] should work...but unable to get the right reference Thanks
0
[ 2, 8247, 8741, 7718, 2801, 800, 3726, 3726, 100, 31, 57, 14, 249, 45, 13, 1, 7, 252, 3807, 18, 7, 45, 636, 7, 11115, 7, 15, 7, 13998, 7, 15, 7, 731, 7, 500, 15, 13, 7, 18768, 7, 13, 45, 636, 13, 1, 7, 11115, 7, 45, 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...
DB2 Transport Component is not registered correctly === I'm trying to test the DB2 adapter for BizTalk 2006 (not R2). While trying to configure an instance in an application, I get an error stating "DB2 Transport Component is not registered correctly". The enivronment is 2 BizTalk servers sharing a messagebox. The DB2 adapter works fine on the first server. It is the second server I am having problems with. I've exported the .msi files from the first server, then installed them onto the second server and imported them into BizTalk. All of the other adapters that I'm using work fine on both servers. Google searches don't bring up a whole lot regarding troubleshooting the BizTalk DB2 adapter. Has anyone run into an issue like this before, or point me in the direction of where to look for BizTalk DB2 adapter troubleshooting guidence?
0
[ 2, 13, 9007, 135, 1739, 5912, 25, 52, 3801, 12044, 800, 3726, 3726, 31, 22, 79, 749, 20, 1289, 14, 13, 9007, 135, 9924, 106, 26, 1732, 380, 9718, 592, 13, 5, 1270, 761, 135, 6, 9, 133, 749, 20, 1065, 15951, 40, 4851, 19, 40, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Log4j: Why is the root logger collecting all log types regardless the configuration? === I am having problem that even though I specify the level to ERROR in the root tag, the specified appender logs all levels (debug, info, warn) to the file regardless the settings. I am not a log4j expert so any help is appreciated.
0
[ 2, 6738, 300, 728, 45, 483, 25, 14, 5900, 13, 29480, 10079, 65, 6738, 2551, 7148, 14, 8091, 60, 800, 3726, 3726, 31, 589, 452, 1448, 30, 166, 362, 31, 19077, 14, 662, 20, 7019, 19, 14, 5900, 3383, 15, 14, 9931, 4865, 13630, 1889...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Suggestions on how build an HTML Diff tool? === In <a href="http://stackoverflow.com/questions/48669/are-there-any-tools-out-there-to-compare-the-structure-of-2-web-pages">this post</a> I asked if there were any tools that compare the structure (not actual content) of 2 HTML pages. I ask because I receive HTML templates from our designers, and frequently miss minor formatting changes in my implementation. I then waste a few hours of designer time sifting through my pages to find my mistakes. The thread offered some good suggestions, but there was nothing that fit the bill. "Fine, then", thought I, "I'll just crank one out myself. I'm a halfway-decent developer, right?". Well, once I started to think about it, I couldn't quite figure out how to go about it. I can crank out a data-driven website easily enough, or do a CMS implementation, or throw documents in and out of BizTalk all day. Can't begin to figure out how to compare HTML docs. Well, sure, I have to read the DOM, and iterate through the nodes. I have to map the structure to some data structure (how??), and then compare them (how??). It's a development task like none I've ever attempted. So now that I've identified a weakness in my knowledge, I'm even more challenged to figure this out. Any suggestions on how to get started?
0
[ 2, 18389, 27, 184, 1895, 40, 13, 15895, 20811, 5607, 60, 800, 3726, 3726, 19, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 26289, 3680, 118, 1509, 8, 1887, 8, 6001, 8, 20799, 18, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I fix "501 Syntactically invalid HELO argument(s)"? === I'm using exim on both the sending and relay hosts, the sending host seems to offer: HELO <it's own name> Response: 501 Syntactically invalid HELO argument(s) I thought it was mean't to do: HELO <smart_host> Has anyone else had this? - thanks.
0
[ 2, 184, 107, 31, 6098, 13, 7, 2290, 165, 6063, 38, 5183, 8438, 16671, 24, 1415, 5476, 5, 18, 6, 7, 60, 800, 3726, 3726, 31, 22, 79, 568, 1396, 1660, 27, 156, 14, 4907, 17, 6953, 5397, 15, 14, 4907, 2015, 2206, 20, 1994, 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...
Converting SQL Result Sets to XML. === I am looking for a tool that can serialize and/or transform SQL Result Sets into XML. Getting dumbed down XML generation from SQL result sets is simple and trivial, but that's not what I need. The solution has to be database neutral, and accepts only regular SQL query results (no db xml support used). A particular challenge of this tool is to provide nested XML matching any schema from row based results. Intermediate steps are too slow and wasteful - this needs to happen in one single step; no RS->object->XML, preferably no RS->XML->XSLT->XML. It must support streaming due to large result sets, big XML. Anything out there for this?
0
[ 2, 19583, 4444, 255, 829, 3415, 20, 23504, 9, 800, 3726, 3726, 31, 589, 699, 26, 21, 5607, 30, 92, 5956, 2952, 17, 118, 248, 8007, 4444, 255, 829, 3415, 77, 23504, 9, 1017, 9317, 69, 125, 23504, 2782, 37, 4444, 255, 829, 3415, 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...
Unpivot xml doc based on attributes using XSLT === I have a simple xml document that looks like the following snippet. I need to write a XSLT transform that basically 'unpivots' this document based on some of the attributes. <?xml version="1.0" encoding="utf-8" ?> <root xmlns:z="foo"> <z:row A="1" X="2" Y="n1" Z="500"/> <z:row A="2" X="5" Y="n2" Z="1500"/> </root> This is what I expect the output to be - <?xml version="1.0" encoding="utf-8" ?> <root xmlns:z="foo"> <z:row A="1" X="2" /> <z:row A="1" Y="n1" /> <z:row A="1" Z="500"/> <z:row A="2" X="5" /> <z:row A="2" Y="n2"/> <z:row A="2" Z="1500"/> </root> Appreciate your help.
0
[ 2, 367, 2159, 23061, 23504, 9765, 432, 27, 13422, 568, 993, 18, 255, 38, 800, 3726, 3726, 31, 57, 21, 1935, 23504, 4492, 30, 1879, 101, 14, 249, 13, 29061, 9, 31, 376, 20, 2757, 21, 993, 18, 255, 38, 8007, 30, 11374, 13, 22, 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...
Eagle CAD parts library === I am currently using Eagle CAD 5.x and I am unable to use older parts libraries that were created for the 4.x version of Eagle CAD. Does anyone know of a way to convert them to the new format that is required by the new version? I am looking for the Parallax SX28/SX48 parts, they are in the Scenix library that can be downloaded from [Eagle Library download site](http://www.cadsoft.de/cgi-bin/download.pl?page=/home/cadsoft/html_public/download.htm.en&dir=eagle/userfiles/libraries). Any hints or ideas would be appreciated!
0
[ 2, 5807, 8762, 1341, 1248, 800, 3726, 3726, 31, 589, 871, 568, 5807, 8762, 331, 9, 396, 17, 31, 589, 2343, 20, 275, 1234, 1341, 8649, 30, 46, 679, 26, 14, 268, 9, 396, 615, 16, 5807, 8762, 9, 630, 1276, 143, 16, 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...
Network Socket command === Unix.....>>netstat -al | grep 8787 (will see packets on port 8787)
0
[ 2, 982, 18482, 1202, 800, 3726, 3726, 22540, 9, 9, 9, 9, 9, 1, 2328, 10631, 13, 8, 192, 13, 1, 5604, 306, 469, 23723, 13, 5, 5580, 196, 12795, 18, 27, 1295, 469, 23723, 6, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Same source code on two machines yield different executable behavior === Here's the scenario: A C# Windows Application project stored in SVN is checked out on two different machines and compiled. The first one is a build server. I'm not entirely sure if the build server modifies the project files, but I know it creates a tag in SVN of the source code it used to compile the executables. So I've used that tag to checkout the code on the second machine, which is a development machine. I then compile the source on the development machine. Now, when executed, the application that was compiled on the development machine does not function exactly like the one compiled by the build server. For example, on the testing machines it throws a DateTime Parse execption. However, the build machine's executable does not throw any exeptions. If I run the executable on the development machine no exceptions are thrown. Are the machine's Regional Settings or Time Zone stored in the compiled executable? Any idea what might cause this behaviour or how to check the executables to find the possible differences and correct them?
0
[ 2, 205, 1267, 1797, 27, 81, 6035, 11537, 421, 1396, 17194, 5924, 3257, 800, 3726, 3726, 235, 22, 18, 14, 12705, 45, 21, 272, 5910, 1936, 3010, 669, 8214, 19, 13, 18, 16578, 25, 6505, 70, 27, 81, 421, 6035, 17, 9316, 9, 14, 64, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I get a warning before killing a temporary buffer in Emacs? === More than once I've lost work by accidentally killing a temporary buffer in Emacs. Can I set up Emacs to give me a warning when I kill a buffer not associated with a file?
0
[ 2, 184, 107, 31, 164, 21, 3590, 115, 2389, 21, 4700, 17497, 19, 13, 62, 6893, 18, 60, 800, 3726, 3726, 91, 119, 382, 31, 22, 195, 529, 170, 34, 9746, 2389, 21, 4700, 17497, 19, 13, 62, 6893, 18, 9, 92, 31, 309, 71, 13, 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...
Best way to update multi-gigabyte program (DVD fulfillment? Updater software?) === Two years ago, we shipped a multi-gigabyte Windows application, with lots of video files. Now we're looking to release a significant update, with approximately 1 gigabyte of new and changed data. We're currently looking at DVD fulfillment houses (like [these folks][1], for example), which claim to be able to ship DVDs to our customers for $5 and up. Does anyone have any experience with these companies? We've also looked at a bunch of network-based "updater" software. Unfortunately, most of these tools are intended for much smaller programs. Are there any libraries or products which handle gigabyte-sized updates well? Thank you for your advice! [1]: http://www.dvd-fulfillment.com/default.asp?ref=600&gclid=CNjuvqXJ45UCFQLGGgodlWYceg
0
[ 2, 246, 161, 20, 11100, 1889, 8, 2234, 1136, 23246, 625, 13, 5, 20318, 29289, 60, 11100, 139, 2306, 60, 6, 800, 3726, 3726, 81, 122, 1464, 15, 95, 12991, 21, 1889, 8, 2234, 1136, 23246, 1936, 3010, 15, 29, 7503, 16, 763, 6488, 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...
Avoiding double-thunking with C++/CLI properties === I've read (in Nish Sivakumar's book **C++/CLI In Action** among other places) that you should use the \_\_clrcall decorator on function calls to avoid double-thunking, in cases where you know that the method will never be called from unmanaged code. Nish also says that if the method signature contains any CLR types, then the JIT compiler will automatically add the \_\_clrcall. What is not clear to me is if I need to include \_\_clrcall when I create C++/CLI properties. In one sense, properties are only accessible from .NET languages, on the other hand the C++/CLI compiler (I think) just generates methods (e.g. ***_get() ) that are callable from both managed and unmanaged code. So do I need to use the \_\_clrcall modifier on my properties, and if so, where does it go? On the get/set functions themselves?
0
[ 2, 10298, 1494, 8, 96, 1020, 1581, 29, 272, 20512, 118, 150, 1210, 3704, 800, 3726, 3726, 31, 22, 195, 1302, 13, 5, 108, 13, 10718, 16646, 13511, 22, 18, 360, 13, 1409, 150, 20512, 118, 150, 1210, 19, 1028, 1409, 497, 89, 1489, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Oracle connection problem on Mac OSX: "Status : Failure -Test failed: Io exception: The Network Adapter could not establish the connection" === I'm trying this with Oracle SQL Developer and am on an Intel MacBook Pro. But I believe this same error happens with other clients. I can ping server hosting the database fine so it appears not to be an actual network problem.
0
[ 2, 15759, 2760, 1448, 27, 1572, 13, 759, 396, 45, 13, 7, 10631, 267, 13, 45, 2990, 13, 8, 10543, 1702, 45, 13, 1963, 5391, 45, 14, 982, 9924, 106, 110, 52, 4088, 14, 2760, 7, 800, 3726, 3726, 31, 22, 79, 749, 48, 29, 15759, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 manage "pick lists" in a database. === I have an application with a number of "pick list" entities (used to populate single choice dropdown selection boxes). These entities need to be pulled from the database. How do I persist these entities in the database? Should I create a new table for each pick list? Is there a better solution?
0
[ 2, 184, 107, 42, 4705, 13, 7, 16855, 7227, 7, 19, 21, 6018, 9, 800, 3726, 3726, 31, 57, 40, 3010, 29, 21, 234, 16, 13, 7, 16855, 968, 7, 12549, 13, 5, 8795, 20, 1675, 12383, 345, 1837, 2804, 2968, 3155, 8120, 6, 9, 158, 1254...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Screen capture doesn't work on MFC application in Vista === We've got some in-house applications built in MFC, with OpenGL drawing routines. They all use the same code to draw on the screen and either print the screen or save it to a JPEG file. Everything's been working fine in Windows XP, and I need to find a way to make them work on Vista. In three of our applications, everything works. In the remaining one, I can get the window border, title bar, menus, and task bar, but the interior never shows up. As I said, these applications use the exact same code to write to the screen and capture the window image, and the only difference I see that looks like it might be relevant is that the problem application uses the MFC multiple document interface, while the ones that work use the single document interface. Either the answer isn't on the net, or I'm worse at Googling than I thought. I asked on the MSDN forums, and the only practical suggestion I got was to use GDI+ rather than GDI, and that did nothing different. I have tried different things with every part of the code that captures and prints or save, given a pointer to the window, so apparently it's a matter of the window itself. I haven't rebuilt the offending application using SDI yet, and I really don't have any other ideas. Has anybody seen anything like this?
0
[ 2, 2324, 3683, 1437, 22, 38, 170, 27, 307, 7061, 3010, 19, 13520, 800, 3726, 3726, 95, 22, 195, 330, 109, 19, 8, 1682, 3767, 392, 19, 307, 7061, 15, 29, 368, 8430, 3533, 8275, 18, 9, 59, 65, 275, 14, 205, 1797, 20, 2003, 27, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are the best practices for using html with xml based languages like svg? === From browsing on this site and elsewhere, I've learned that serving websites as xhtml( as in application/xhtml+xml) is gat best a placebo for myself, and at worst a recipe for breaking sites usually when you least need it happening. If I instead serve my pages as html 4.01, is it possible to use SVG or any other xml-based language on the page? If so, how?
0
[ 2, 98, 50, 14, 246, 5242, 26, 568, 13, 15895, 29, 23504, 432, 2556, 101, 13, 18, 22955, 60, 800, 3726, 3726, 37, 10175, 68, 27, 48, 689, 17, 6040, 15, 31, 22, 195, 2691, 30, 1799, 13931, 28, 993, 15895, 5, 28, 19, 3010, 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...
Ruby code for quick-and-dirty XML serialization? === Given a moderately complex XML structure (dozens of elements, hundreds of attributes) with no XSD and a desire to create an object model, what's an elegant way to avoid writing boilerplate from_xml() and to_xml() methods? For instance, given: <Foo bar="1"><Bat baz="blah"/></Foo> How do I avoid writing endless sequences of: class Foo attr_reader :bar, :bat def from_xml(el) @bar = el.attributes['bar'] @bat = Bat.new() @bat.from_xml(XPath.first(el, "./bat") end etc... I don't mind creating the object structure explicitly; it's the serialization that I'm just sure can be taken care of with some elegant programming...
0
[ 2, 10811, 1797, 26, 2231, 8, 290, 8, 28067, 23504, 5956, 1829, 60, 800, 3726, 3726, 504, 21, 20773, 1502, 23504, 1411, 13, 5, 537, 4257, 18, 16, 2065, 15, 4541, 16, 13422, 6, 29, 90, 993, 18, 43, 17, 21, 3150, 20, 1600, 40, 30...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Query Web Service for list of Messages? === Is there a straightforward way to query a web service to see which messages it supports? The C# .NET application I'm working on needs to be able to handle an older version of the web service, which does not implement the message I'm trying to send. The web service does not expose a version number, so Plan B is to see if the message is defined. I'm assuming I can just make an HTTP request for the WSDL and parse it, but before I go down that path, I want to make sure there's not a simpler approach.
0
[ 2, 25597, 2741, 365, 26, 968, 16, 7561, 60, 800, 3726, 3726, 25, 80, 21, 22262, 161, 20, 25597, 21, 2741, 365, 20, 196, 56, 7561, 32, 6747, 60, 14, 272, 5910, 13, 9, 2328, 3010, 31, 22, 79, 638, 27, 2274, 20, 44, 777, 20, 30...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you submit a CSR (Certificate Signing Request) to the Apple Developer Portal? === According to [this link](http://developer.apple.com/iphone/gettingstarted/docs/signingcodeforiphonedev.action) on Apple's Developer site (login required): >you use the Certificate Assistant in the Keychain Access utility to create a Certificate Signing Request (CSR), which you submit for approval using the Program Portal of the iPhone Developer Program Well I've created the certificate but I've had no luck finding out how to submit the certificate for approval. I was hoping to do this without signing up for the developer program ($99) since I only want to test apps on my iPhone - not submit them to the App Store (yet). Can someone post the link to the "portal" where I can submit this?
0
[ 2, 184, 107, 42, 12298, 21, 272, 18, 139, 13, 5, 17580, 24831, 591, 5479, 3772, 6, 20, 14, 4037, 10058, 8281, 60, 800, 3726, 3726, 496, 20, 636, 1565, 3508, 500, 5, 21127, 6903, 26051, 106, 9, 24212, 9, 960, 118, 49, 7709, 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...
Attempting to update a user's "connect to:" home directory path in AD using C# === I have a small application I am working on that at one point needs to update a user's home directory path in AD under the profile tab where it allows you to map a drive letter to a particular path. The code I have put together so far sets the Home Folder Local path portion OK, but I'm trying to figure out the name for the "connect" portion, as well as how to select the drive letter. Go easy on me, I'm new to C#. Thanks!! Here's my code that updates the Local path section. DirectoryEntry deUser = new DirectoryEntry(findMeinAD(tbPNUID.Text)); deUser.InvokeSet("HomeDirectory", tbPFolderVerification.Text); deUser.CommitChanges(); Where findMeinAD is a method that looks up a user's info in AD and tbPFolderVerification.Text is a text box in the form that contains the path I'd like to set a particular drive to map to. Any help would be greatly appreciated! :)
0
[ 2, 6314, 20, 11100, 21, 4155, 22, 18, 13, 7, 25996, 20, 45, 7, 213, 16755, 2013, 19, 21, 43, 568, 272, 5910, 800, 3726, 3726, 31, 57, 21, 284, 3010, 31, 589, 638, 27, 30, 35, 53, 454, 2274, 20, 11100, 21, 4155, 22, 18, 213, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
In Rails, after using find with :select, my objects don't save === Running something like: @users = User.find(:first, :select => "name, lastname, salary") for @user in @users do @user.salary = 100000 @user.save end After this looking up in the Mysql table, the users aren't updated.
0
[ 2, 19, 2240, 18, 15, 75, 568, 477, 29, 13, 45, 18, 16964, 15, 51, 3916, 221, 22, 38, 2079, 800, 3726, 3726, 946, 301, 101, 45, 13, 1, 16704, 18, 800, 4155, 9, 19811, 5, 45, 3552, 15, 13, 45, 18, 16964, 800, 1, 13, 7, 7259,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
STL Alternative === I really hate using STL containers because they make the debug version of my code run really slowly. What do other people use instead of STL that has reasonable performance for debug builds?
0
[ 2, 354, 255, 2676, 800, 3726, 3726, 31, 510, 3223, 568, 354, 255, 18988, 185, 59, 233, 14, 121, 16254, 615, 16, 51, 1797, 485, 510, 1447, 9, 98, 107, 89, 148, 275, 700, 16, 354, 255, 30, 63, 9954, 956, 26, 121, 16254, 1895, 18...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to SelectAll / SelectNone in .NET 2.0 ListView? === What is a good way to select all or select no items in a listview without using: foreach (ListViewItem item in listView1.Items) { item.Selected = true; } or foreach (ListViewItem item in listView1.Items) { item.Selected = false; } i know the underlying Win32 listview common control supports [LVM_SETITEMSTATE message][1] which you can use to set the selected state, and by passing -1 as the index it will apply to all items. i'd rather not be PInvoking messages to the control that happens to be behind the .NET Listview control (i don't want to be a bad developer and rely on undocumented behavior - for when they change it to a fully managed ListView class) [1]: http://msdn.microsoft.com/en-us/library/bb761196(VS.85).aspx
0
[ 2, 184, 20, 5407, 1233, 13, 118, 5407, 15746, 19, 13, 9, 2328, 172, 9, 387, 968, 4725, 60, 800, 3726, 3726, 98, 25, 21, 254, 161, 20, 5407, 65, 54, 5407, 90, 3755, 19, 21, 968, 4725, 366, 568, 45, 26, 14322, 13, 5, 5739, 472...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 fix 404.17 error on Win Server 2k8 and IIS7 === I've setup a new .net 2.0 website on IIS 7 under Win Server 2k8 and when browsing to a page it gives me a 404.17 error, claiming that the file (default.aspx in this case) appears to be a script but is being handled by the static file handler. It SOUNDS like the module mappings for ASP.Net got messed up, but they look fine in the configurations. Does anyone have a suggestion for correcting this error?
0
[ 2, 184, 107, 31, 6098, 13, 23397, 9, 1053, 7019, 27, 628, 8128, 172, 197, 457, 17, 595, 18, 465, 800, 3726, 3726, 31, 22, 195, 18161, 21, 78, 13, 9, 2328, 172, 9, 387, 2271, 27, 595, 18, 453, 131, 628, 8128, 172, 197, 457, 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...
GUID Behind the Scenes === I am wondering, what goes into the creation of a GUID. I don't mean what is used to create a GUID in a specific language (NewID() in SQL, new GUID() in C#), I mean when you call those methods/functions, what do they do to make the GUID?
0
[ 2, 9457, 43, 439, 14, 3918, 800, 3726, 3726, 31, 589, 5712, 15, 98, 1852, 77, 14, 2502, 16, 21, 9457, 43, 9, 31, 221, 22, 38, 884, 98, 25, 147, 20, 1600, 21, 9457, 43, 19, 21, 1903, 816, 13, 5, 2681, 1340, 5, 6, 19, 4444, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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# ListView mouse wheel scroll without focus === I'm making a WinForms app with a ListView set to detail so that several columns can be displayed. I'd like for this list to scroll when the mouse is over the control and the user uses the mouse scroll wheel. Right now, scrolling only happens when the ListView has focus. How can I make the ListView scroll even when it doesn't have focus?
0
[ 2, 272, 5910, 968, 4725, 7567, 3556, 12159, 366, 1776, 800, 3726, 3726, 31, 22, 79, 544, 21, 628, 4190, 18, 4865, 29, 21, 968, 4725, 309, 20, 6110, 86, 30, 238, 7498, 92, 44, 6115, 9, 31, 22, 43, 101, 26, 48, 968, 20, 12159, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sequence Diagram Reverse Engineering === I'm looking for a tool that will reverse engineer into a sequence diagram BUT also provides the ability to filter out calls to certain libraries. For example, the Netbeans IDE does a fantastic job of this but it includes all calls to String or Integer which clutter up the diagram to the point it is unusable. Any help is greatly appreciated!!!!!!!
0
[ 2, 4030, 14161, 7006, 1552, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 5607, 30, 129, 7006, 2335, 77, 21, 4030, 14161, 47, 67, 1927, 14, 2165, 20, 11945, 70, 3029, 20, 1200, 8649, 9, 26, 823, 15, 14, 4275, 863, 5950, 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...
Does K.I.S.S play a role in your development, if so, do you prosper from it? === In my programming life I work with the principle "K.I.S.S." - keep it simple stupid. This works out pretty well for me although the projects and tasks get even more complicated (at least for me in my project life). Do you use this principle? Why? Why not? Do you prosper from kiss or do you think this is impossible?
0
[ 2, 630, 680, 9, 49, 9, 18, 9, 18, 418, 21, 597, 19, 154, 522, 15, 100, 86, 15, 107, 42, 18729, 37, 32, 60, 800, 3726, 3726, 19, 51, 3143, 201, 31, 170, 29, 14, 5897, 13, 7, 197, 9, 49, 9, 18, 9, 18, 9, 7, 13, 8, 643,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
RGB filters for different forms of color blindness === My father is color blind and given that I work in games where the visuals are important, I've always wanted to write a filter for screen shots (or even some type of shader) that emulated different forms of color blindness. I've seen plenty of references but never have been able to track down algorithms. Any algorithms would be appreciated.
0
[ 2, 761, 11400, 21062, 26, 421, 1997, 16, 1665, 28049, 800, 3726, 3726, 51, 321, 25, 1665, 4631, 17, 504, 30, 31, 170, 19, 466, 113, 14, 3458, 18, 50, 681, 15, 31, 22, 195, 550, 417, 20, 2757, 21, 11945, 26, 2324, 7280, 13, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WCSF Random assembly manifest definition does not match assembly ref in .NET 2.0 === I'm running WCSF Feb 2008 along with Enterprise Library 3.1 and noticed that randomly I get the "fun" *Could not load file or assembly Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, Public ... The located assembly's manifest definition does not match the assembly reference.* Usually this wouldn't be worth mentioning on stackoverflow, but the strange thing is that the first time I fire this up it breaks, but if I close it down and simply hit F11 again - it works .... strange. Does anyone know why this might break sometimes, but not others?
0
[ 2, 11801, 18, 410, 5477, 1475, 13160, 5465, 630, 52, 730, 1475, 13, 14057, 19, 13, 9, 2328, 172, 9, 387, 800, 3726, 3726, 31, 22, 79, 946, 11801, 18, 410, 14907, 570, 303, 29, 6002, 1248, 203, 9, 165, 17, 2711, 30, 21324, 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...
How do I preserve line feeds, tabs, and spaces in data while still wrapping text? === I had data in XML that had line feeds, spaces, and tabs that I wanted to preserve (so I couldn't use &lt;p&gt;) but I also wanted the lines to wrap when the side of the screen was reached (so I couldn't use &lt;pre&gt;).
0
[ 2, 184, 107, 31, 6224, 293, 17058, 15, 6523, 18, 15, 17, 7644, 19, 1054, 133, 174, 13437, 1854, 60, 800, 3726, 3726, 31, 41, 1054, 19, 23504, 30, 41, 293, 17058, 15, 7644, 15, 17, 6523, 18, 30, 31, 417, 20, 6224, 13, 5, 656, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are some good Module Development Solution/Environments/Best Practices for Dot Net Nuke Modules === I've been developing modules for DNN since version 2 and back then I was able to easily able to run my module as I developed it on my environment and still easily deploy my module as a DLL. When version 4 came out and used the web site solution (rather than the Web Application solution). It seems like there was something lost. I can continue to develop in my test environment and immediately see changes as I make them, but releasing for me has become a headache. I mostly do my development for one site in particular have just been using FTP deployment of the modules to the main site after I was done making changes. I'd like to set up a good environment for multiple developers to be able to work on the module(s). When adding stuff to source control, are people generally putting all of DNN into source control so they can bring the whole solution down to work on, or just their module and each person needs to set up their own dev DNN environment? I'd like to start getting my modules projects organized so more people could work on them and I feel a bit lost for some best practices both in doing this and deploying those changes to a live site.
0
[ 2, 98, 50, 109, 254, 12613, 522, 4295, 118, 28976, 18, 118, 4936, 5242, 26, 14123, 4275, 3152, 1048, 17113, 800, 3726, 3726, 31, 22, 195, 74, 3561, 17113, 26, 13, 43, 9377, 179, 615, 172, 17, 97, 94, 31, 23, 777, 20, 2351, 777, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to localize a WPF application, sans LocBAML? === There seems to be no good way to localize a WPF application. MSDN seems to think that littering my XAML with `x:Uid`'s, generating CSV files, and then generating new assemblies (using their sample code!) is the answer. Worse, this process doesn't address how to localize images, binary blobs (say, PDF files), or strings that are embedded in code. So, how might you localize an application that: 1. Contains several assemblies 2. Contains images and other binary blobs (eg: PDF docs) that need to be localized 3. Has string data that isn't in XAML (eg: `MessageBox.Show("Hello World");`)
0
[ 2, 98, 25, 14, 246, 161, 20, 375, 2952, 21, 619, 7721, 3010, 15, 523, 18, 13, 10799, 969, 8184, 60, 800, 3726, 3726, 80, 2206, 20, 44, 90, 254, 161, 20, 375, 2952, 21, 619, 7721, 3010, 9, 4235, 43, 103, 2206, 20, 277, 30, 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...
.NET library for processing HTML e-mails & stripping === Does anyone know of a .NET library that will process HTML e-mails and can be used to trim out the reply-chain? It needs to be able to accept HTML -or- text mails and then trim out everything but the actual response, removing the trail of messages that are not original content. I don't expect it to be able to handle responseswhen they're interleaved into the previous mail ("responses in-line") - that case can fail. We have a home-built one based on SgmlReader and a series of XSL transforms, but it requires constant maintenance to deal with new e-mail clients. I'd like to find one I can buy... :) Thanks, Steve
0
[ 2, 13, 9, 2328, 1248, 26, 5511, 13, 15895, 13, 62, 8, 8079, 18, 279, 25105, 800, 3726, 3726, 630, 1276, 143, 16, 21, 13, 9, 2328, 1248, 30, 129, 953, 13, 15895, 13, 62, 8, 8079, 18, 17, 92, 44, 147, 20, 8971, 70, 14, 6504, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 would you need to use late static binding? === After reading [this description][1] of late static binding (LSB) I see pretty clearly what is going on. Now, under which sorts of circumstances might that be most useful or needed? [1]: http://www.colder.ch/news/08-24-2007/28/late-static-bindings-expl.html
0
[ 2, 76, 83, 42, 376, 20, 275, 456, 12038, 8728, 60, 800, 3726, 3726, 75, 1876, 636, 1565, 5318, 500, 2558, 165, 500, 16, 456, 12038, 8728, 13, 5, 7532, 220, 6, 31, 196, 1772, 2885, 98, 25, 228, 27, 9, 130, 15, 131, 56, 14357, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mocking WebResponse's from a WebRequest === I have finally started messing around with creating some apps that work with RESTful web interfaces, however, I am concerned that I am hammering their servers every time I hit F5 to run a series of tests.. Basically, I need to get a series of web responses so I can test I am parsing the varying responses correctly, rather than hit their servers every time, I thought I could do this once, save the XML and then work locally. However, I don't see how I can "mock" a WebResponse, since (AFAIK) they can only be instantiated by **WebRequest.GetResponse** How do you guys go about mocking this sort of thing? Do you? I just really don't like the fact I am hammering their servers :S I dont want to change the code _too_ much, but I expect there is a elegant way of doing this..
0
[ 2, 18446, 2741, 99, 18, 8782, 870, 22, 18, 37, 21, 2741, 99, 10351, 800, 3726, 3726, 31, 57, 722, 373, 3957, 68, 140, 29, 2936, 109, 4865, 18, 30, 170, 29, 760, 1566, 2741, 6573, 18, 15, 207, 15, 31, 589, 3518, 30, 31, 589, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the best statically-typed language for a dynamically-typed language programmer to learn? === I've been a Ruby developer for several years, and a Perl developer before that, with some PHP somewhere in there. I want to expand my knowledge, and think the best way to do that will be by learning something very different from what I know. I know OO, and I know functional programming pretty well. What I don't know is a language that uses static typing effectively. (Actually, ok, I kind of know Java, but not enough. You can still recommend that.) What language is going to best show me the features of static typing coming from a dynamic background?
0
[ 2, 98, 22, 18, 14, 246, 12038, 1326, 8, 4474, 43, 816, 26, 21, 7782, 1326, 8, 4474, 43, 816, 17968, 20, 2484, 60, 800, 3726, 3726, 31, 22, 195, 74, 21, 10811, 10058, 26, 238, 122, 15, 17, 21, 416, 255, 10058, 115, 30, 15, 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...
How does gcc implement stack unrolling for C++ exceptions on linux? === How does gcc implement stack unrolling for C++ exceptions on linux? In particular, how does it know which destructors to call when unrolling a frame (i.e., what kind of information is stored and where is it stored)?
0
[ 2, 184, 630, 489, 3384, 8713, 7566, 367, 8694, 68, 26, 272, 20512, 13392, 27, 13024, 60, 800, 3726, 3726, 184, 630, 489, 3384, 8713, 7566, 367, 8694, 68, 26, 272, 20512, 13392, 27, 13024, 60, 19, 1498, 15, 184, 630, 32, 143, 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...
ASP.NET UrlRewriting and Constructing Page Links === [So this post][1] talked about how to actually implement url rewriting in an ASP.NET application to get "friendly urls". That works perfect and it is great for sending a user to a specific page, but does anyone know of a good solution for creating "Friendly" URLs inside your code when using one of the tools referenced? For example listing a link inside of an asp.net control as ~/mypage.aspx?product=12 when a rewrite rule exists would be an issue as then you are linking to content in two different ways. I'm familiar with using DotNetNuke and FriendlyUrl's where there is a "NavigateUrl" method that will get the friendly Url code from the re-writer but I'm not finding examples of how to do this with UrlRewriting.net or the other solutions out there. Ideally I'd like to be able to get something like this. string friendlyUrl = GetFriendlyUrl("~/MyUnfriendlyPage.aspx?myid=13"); [1]: http://stackoverflow.com/questions/2262/aspnet-url-rewriting
0
[ 2, 28, 306, 9, 2328, 287, 6362, 99, 12646, 17, 18660, 2478, 6271, 800, 3726, 3726, 636, 656, 48, 678, 500, 2558, 165, 500, 4599, 88, 184, 20, 1121, 8713, 287, 6362, 302, 12646, 19, 40, 28, 306, 9, 2328, 3010, 20, 164, 13, 7, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where do I find Error.pm for broken git-svn on Slackware 12.1 === It is obviosly some Perl extension. I downloaded one version of the file from CPAN, but it does not seem to be compatible with Perl in Slackware 12.1. Perl version is 5.8.8. And while we're at it: once I do find the right Error.pm, what is the correct way to install it?
0
[ 2, 113, 107, 31, 477, 7019, 9, 5576, 26, 2023, 13, 10404, 8, 18, 16578, 27, 13672, 5011, 390, 9, 165, 800, 3726, 3726, 32, 25, 5122, 13327, 18, 102, 109, 416, 255, 3896, 9, 31, 23887, 53, 615, 16, 14, 3893, 37, 272, 3206, 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...
In ASP.net Webforms how do you detect which Textbox someone pressed enter? === In ASP.net Webforms how do you detect which Textbox someone pressed enter? Please no Javascript answers. I need to handle it all in the code behind using VB.NET.
0
[ 2, 19, 28, 306, 9, 2328, 2741, 4190, 18, 184, 107, 42, 9092, 56, 1854, 5309, 737, 2931, 2830, 60, 800, 3726, 3726, 19, 28, 306, 9, 2328, 2741, 4190, 18, 184, 107, 42, 9092, 56, 1854, 5309, 737, 2931, 2830, 60, 2247, 90, 8247, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mathematical analysis of a sound sample (as an of numbers) === I need to find the frequency of a sample, stored (in vb) as an array of byte. Sample is a sine wave, known frequency, so I can check), but the numbers are a bit odd, and my maths-foo is weak. Full range of values 0-255. 99% of numbers are in range 235 to 245, but there are some outliers down to 0 and 1, and up to 255 in the remaining 1%. How do I normalise this to remove outliers, (calculating the 235-245 interval as it may change with different samples), and how do I then calculate zero-crossings to get the frequency? Apologies if this description is rubbish!
0
[ 2, 7046, 2495, 16, 21, 646, 5717, 13, 5, 472, 40, 16, 2116, 6, 800, 3726, 3726, 31, 376, 20, 477, 14, 5328, 16, 21, 5717, 15, 8214, 13, 5, 108, 13, 20468, 6, 28, 40, 7718, 16, 34, 591, 9, 5717, 25, 21, 13, 18, 1149, 2367, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 .Net library to handle feeds (Atom+RSS) === We use RSS.Net (old and not maintained, but there's [a more recent fork][1]) to parse RSS feeds. We wrote a similar library to parse Atom feeds and managed to extract a common interface from both, this way we don't really care what sort of feed it is. Is there something like that already "out there"? [1]: http://code.google.com/p/telligent-rss-net/
0
[ 2, 98, 25, 14, 246, 13, 9, 2328, 1248, 20, 3053, 17058, 13, 5, 58, 6015, 2430, 1224, 18, 6, 800, 3726, 3726, 95, 275, 13, 1224, 18, 9, 2328, 13, 5, 1218, 17, 52, 3926, 15, 47, 80, 22, 18, 636, 58, 91, 1764, 8777, 500, 2558...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 embed and play audio/video on HTML page that plays on iPhone browser over GPRS === Although I don't have an iPhone to test this out, my colleague told me that embedded media files such as the one in the snippet below, only works when the iphone is connected over the WLAN connection or 3G, and does not work when connecting via GPRS. <html><body> <object data="http://joliclic.free.fr/html/object-tag/en/data/test.mp3" type="audio/mpeg"> <p>alternate text</p> </object> </body></html> Is there an example URL with a media file, that will play in an iPhone browser when the iphone connects using GPRS (not 3G)?
0
[ 2, 184, 20, 11911, 69, 17, 418, 4023, 118, 14785, 27, 13, 15895, 2478, 30, 1533, 27, 21024, 16495, 84, 10538, 1224, 800, 3726, 3726, 419, 31, 221, 22, 38, 57, 40, 21024, 20, 1289, 48, 70, 15, 51, 12321, 470, 55, 30, 12138, 941, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 most convincing command in Vim. === .. That tells me I should start using it.
0
[ 2, 98, 25, 14, 127, 13650, 1202, 19, 1790, 79, 9, 800, 3726, 3726, 13, 9, 9, 30, 2609, 55, 31, 378, 799, 568, 32, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 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...
Calculating frames per second in a game === What's a good algorithm for calculating frames per second in a game? I want to show it as a number in the corner of the screen. If I just look at how long it took to render the last frame the number changes too fast.
0
[ 2, 22937, 12809, 416, 153, 19, 21, 250, 800, 3726, 3726, 98, 22, 18, 21, 254, 9083, 26, 22937, 12809, 416, 153, 19, 21, 250, 60, 31, 259, 20, 298, 32, 28, 21, 234, 19, 14, 1531, 16, 14, 2324, 9, 100, 31, 114, 361, 35, 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, 0, 0...
How to build a website with a backend === My friend and I are planning to build a website that draws from a database back-end (PostGres, MySQL, etc). What would be an easy, non-Microsoft way to make an easily extendable, interactive website? It's not that we have anything against Microsoft; it's just that the web servers we could use only has Linux on them. Thanks in advance!
4
[ 2, 184, 20, 1895, 21, 2271, 29, 21, 97, 2451, 800, 3726, 3726, 51, 860, 17, 31, 50, 2334, 20, 1895, 21, 2271, 30, 10802, 37, 21, 6018, 97, 8, 2451, 13, 5, 6962, 6879, 18, 15, 51, 18, 22402, 15, 2722, 6, 9, 98, 83, 44, 40, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get list of XML attribute values in Python === I need to get a list of attribute values from child elements in Python. It's easiest to explain with an example. Given some XML like this: <elements> <parent name="CategoryA"> <child value="a1"/> <child value="a2"/> <child value="a3"/> </parent> <parent name="CategoryB"> <child value="b1"/> <child value="b2"/> <child value="b3"/> </parent> </elements> I want to be able to do something like: >>> getValues("CategoryA") ['a1', 'a2', 'a3] >>> getValues("CategoryB") ['b1', 'b2', 'b3] It looks like a job for XPath but I'm open to all recommendations. I'd also like to hear about your favourite Python XML libraries.
0
[ 2, 164, 968, 16, 23504, 35, 14755, 4070, 19, 20059, 800, 3726, 3726, 31, 376, 20, 164, 21, 968, 16, 35, 14755, 4070, 37, 850, 2065, 19, 20059, 9, 32, 22, 18, 27237, 20, 3271, 29, 40, 823, 9, 504, 109, 23504, 101, 48, 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...
Numbering Regex Submatches === Is there a canonical ordering of submatch expressions in a regular expression? For example: What is the order of the submatches in "(([0-9]{3})\.([0-9]{3})\.([0-9]{3})\.([0-9]{3}))\s+([A-Z]+)" ? a. (([0-9]{3})\.([0-9]{3})\.([0-9]{3})\.([0-9]{3}))\s+([A-Z]+) (([0-9]{3})\.([0-9]{3})\.([0-9]{3})\.([0-9]{3})) ([A-Z]+) ([0-9]{3}) ([0-9]{3}) ([0-9]{3}) ([0-9]{3}) b. (([0-9]{3})\.([0-9]{3})\.([0-9]{3})\.([0-9]{3}))\s+([A-Z]+) (([0-9]{3})\.([0-9]{3})\.([0-9]{3})\.([0-9]{3})) ([0-9]{3}) ([0-9]{3}) ([0-9]{3}) ([0-9]{3}) ([A-Z]+) or c. somthin' else.
0
[ 2, 18404, 7953, 1706, 972, 12280, 160, 800, 3726, 3726, 25, 80, 21, 5742, 4272, 15775, 16, 972, 12280, 13832, 19, 21, 1290, 1803, 60, 26, 823, 45, 98, 25, 14, 389, 16, 14, 972, 12280, 160, 19, 13, 7, 5, 5, 2558, 387, 8, 518, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...