unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Parse filename from full path using regular expressions in C# === How do I pull out the filename from a full path using regular expressions in C#? Say I have the full path C:\CoolDirectory\CoolSubdirectory\CoolFile.txt How do I get out CoolFile.txt using the .NET flavor of regular expressions? I'm not really good with regular expressions, and my RegEx buddy and me couldn't figure this one out. Also, in the course of trying to solve this problem, I realized that I can just use System.IO.Path.GetFileName, but the fact that I couldn't figure out the regular expression is just pissing me off and its going to bother me until I know what the answer is.
0
[ 2, 2017, 870, 3893, 7259, 37, 503, 2013, 568, 1290, 13832, 19, 272, 5910, 800, 3726, 3726, 184, 107, 31, 2201, 70, 14, 3893, 7259, 37, 21, 503, 2013, 568, 1290, 13832, 19, 272, 5910, 60, 395, 31, 57, 14, 503, 2013, 272, 45, 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...
Routing around stupid IT departments === As developers we often have special requirements in terms of workstation setup, networking, etc. IT departments generally don't understand this and we're forced to use a standard environment with a few changes around the edges. We're faced with that situation at work right now, except that the IT department we're dealing with is half way around the world. Can you suggest (concrete suggestions or war stories) ways to route around the IT department so that work can still get done? FWIW, we're a highly Windows-centric organisation but the team I'm on is working on a Solaris based project. A _major_ impedence mismatch.
0
[ 2, 19880, 140, 3553, 32, 8627, 800, 3726, 3726, 28, 10168, 95, 478, 57, 621, 4786, 19, 1663, 16, 170, 10839, 18161, 15, 16230, 15, 2722, 9, 32, 8627, 1469, 221, 22, 38, 1369, 48, 17, 95, 22, 99, 1292, 20, 275, 21, 1236, 2307, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 add an odbc driver to a mamp environment? === I'm working on something that was built on a PC set-up using php and an ms access database. When I port the app to my MAMP environment, I get Fatal error: Call to undefined function odbc_connect() in /path/to/index.php on line 37 line 37 looks like this: return odbc_connect("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=myfile.mdb", "ADODB.Connection", "", "SQL_CUR_USE_ODBC"); It seems like odbc isn't compiled into the MAMP version of PHP (5). I also tried using PDO, and got similar errors. Anyone know how to fix this?
0
[ 2, 184, 107, 31, 3547, 40, 12340, 7229, 2425, 20, 21, 1216, 2554, 2307, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 301, 30, 23, 392, 27, 21, 5168, 309, 8, 576, 568, 13, 26120, 17, 40, 4235, 1381, 6018, 9, 76, 31, 1295, 14, 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...
Detecting duplicate music files === I've got two directories containing ~20 GB of music files (mostly mp3, some ogg), and I would like to detect all duplicate songs. There are two complicating factors: 1. A song may have different filenames in the two directories. 2. Two files containing the same song may have different ID3 tags and thus have different checksums. What is a good approach to solving this?
0
[ 2, 9092, 68, 19429, 232, 6488, 800, 3726, 3726, 31, 22, 195, 330, 81, 559, 1596, 3503, 13, 1, 1323, 14857, 16, 232, 6488, 13, 5, 18397, 4628, 240, 15, 109, 7096, 263, 6, 15, 17, 31, 83, 101, 20, 9092, 65, 19429, 916, 9, 80, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Subversion, external references, binaries, and MSBuild/Visual Studio === I have a project that is stored in a Subversion repository. In this repository, in a different folder, I have a set of libraries that I use in many of my projects. These libraries are stored as binary files, ie. the dll's, pdb's, and xml's. Here's an example layout: <repo-url> \Libraries \SQLite \SystemHooks \Moq In the application project, I add a "libs" directory, then add a svn:externals reference property to that directory to pull in the libraries I need. For instance, for this project I am working on now, which prompted this question, I need the SystemHooks library, so in my app project folder structure, it now looks like this: SketchingMode <-- solution folder, other projects here as well SketchingMode <-- app project folder libs SystemHooks The nice thing about this is that I can more easily update the libraries, and just use the -rXYZ specifier for the externals definition to avoid pulling in newer versions than I'm ready to accept, and still have only one copy of each file/version in my repository. The bad thing, in this particular case, is that one of the dll's in the SystemHooks directory (2 if I want the pdb as well) needs to be copied to the output directory, not referenced by the project. References work as normal, but once I tag one of the files in this directory as "Content" and "Copy always" or "Copy if newer", then the libs and SystemHooks directory structure is also copied to the output directory. As such, after a build, my on-disk directory structure looks like this: SketchingMode <-- solution folder, other projects here as well SketchingMode <-- app project folder libs SystemHooks bin Debug <-- main build output here libs SystemHooks <-- 1-2 files in here Is the only way to avoid this to use the post-build steps and just add the necessary copy statements? Or can I somehow tweak the project file to avoid copying the full structure like that? Just to make it clear, in the bin\Debug directory, I don't want another layer of libs\SystemHooks in there, and all the files presently being copied to the bin\Debug\libs\SystemHooks folder needs to be copied to the bin\Debug folder instead.
0
[ 2, 972, 10898, 15, 4886, 7231, 15, 4511, 11301, 15, 17, 4235, 29361, 118, 20893, 1120, 800, 3726, 3726, 31, 57, 21, 669, 30, 25, 8214, 19, 21, 972, 10898, 24869, 9, 19, 48, 24869, 15, 19, 21, 421, 19294, 15, 31, 57, 21, 309, 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...
Append newline to flat-file schema in BizTalk 2006 R2 === I have a flat-file schema that has a header and detail records. It looks something like this: HDR**2401*XX0062484*22750***20081006000000*000******* LIN**001*788-0538-001*4891-788538010*20000*EA**0000*** I need to append two blank lines at the end of the message. Right now, if I have multiple records I get the following output: HDR**2401*XX0062484*22750***20081006000000*000******* LIN**001*788-0538-001*4891-788538010*20000*EA**0000*** HDR**2401*XX0062484*22750***20081006000000*000******* LIN**001*788-0538-001*4891-788538010*20000*EA**0000*** What I want to see happen is something like this: HDR**2401*XX0062484*22750***20081006000000*000******* LIN**001*788-0538-001*4891-788538010*20000*EA**0000*** HDR**2401*XX0062484*22750***20081006000000*000******* LIN**001*788-0538-001*4891-788538010*20000*EA**0000*** I could build a custom pipeline component to do this, but I'm wondering if there is a simpler way of getting what I need? Thanks.
0
[ 2, 4865, 2451, 78, 1143, 20, 1844, 8, 16877, 23874, 19, 1732, 380, 9718, 592, 761, 135, 800, 3726, 3726, 31, 57, 21, 1844, 8, 16877, 23874, 30, 63, 21, 157, 106, 17, 6110, 742, 9, 32, 1879, 301, 101, 48, 45, 8590, 139, 1409, 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...
Referencing same different versions of the same assembly === If A references assembly B 1.1 and C, and C references B 1.2, how do you avoid assembly conflicts? I nievely assumed C's references would be encapsulated away and would not cause any problems, but it appears all the dll's are copied to the bin, which is where the problem occurs. I understand the two ways around this are to use the GAC or assembly bindings? The GAC doesn't seem like the best approach to me, as I don't like assuming dlls will be there, I prefer to reference dlls from a lib directory in my solution. Where as assembly bindings don't seem robust to me, what if one version of the assembly has functionality that the other doesn't, will this not produce problems?
0
[ 2, 13, 29254, 205, 421, 3281, 16, 14, 205, 1475, 800, 3726, 3726, 100, 21, 7231, 1475, 334, 137, 9, 165, 17, 272, 15, 17, 272, 7231, 334, 137, 9, 135, 15, 184, 107, 42, 2658, 1475, 10344, 60, 31, 13, 2913, 195, 102, 3632, 272,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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++ example of Coding Horror or Brilliant Idea? === At a previous employer, we were writing binary messages that had to go "over the wire" to other computers. Each message had a standard header something like: class Header { int type; int payloadLength; }; All of the data was contiguous (header, immediately followed by data). We wanted to get to the payload given that we had a pointer to a header. traditioanlly, you might say something like: char* Header::GetPayload() { return ((char*) &payloadLength) + sizeof(payloadLength); } or even: char* Header::GetPayload() { return ((char*) this) + sizeof(Header); } That seemed kind of verbose, so I came up with: char* Header::GetPayload() { return (char*) &this[1]; } It seems rather disturbing at first, possibly too odd to use -- but very compact. There was a lot of debate on whether it was brilliant or an abomination. So which is it - Crime against coding, or nice solution? Have you ever had a similar trade-off?
0
[ 2, 272, 20512, 823, 16, 13, 15458, 3930, 54, 7472, 882, 60, 800, 3726, 3726, 35, 21, 1158, 11726, 15, 95, 46, 1174, 14171, 7561, 30, 41, 20, 162, 13, 7, 2549, 14, 6511, 7, 20, 89, 7774, 9, 206, 2802, 41, 21, 1236, 157, 106, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 correct MSSQL syntax for the following: === I want to do something like insert into my table (select * from anothertable where id < 5) What is the correct MSSQL syntax? Thanks!
0
[ 2, 98, 22, 18, 14, 4456, 4235, 18, 22402, 22649, 26, 14, 249, 45, 800, 3726, 3726, 31, 259, 20, 107, 301, 101, 14692, 77, 51, 859, 13, 5, 18, 16964, 1637, 37, 226, 5924, 113, 4924, 13, 1, 331, 6, 98, 25, 14, 4456, 4235, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
WinForms: How to customize a tooltip when it is about to be shown? === i want to have a tooltip for each item in a treeview, and each item in a listview, and different for each subitem (i.e. column) in the listview. i can determine the text i want to show (using hit testing with the current mouse position, etc): private void toolTip1_Popup(object sender, PopupEventArgs e) { if (e.AssociatedControl == listView1) { toolTip1.SetToolTip(listView1, "foo"); } } but any attempt to set the tooltip text causes a [stackoverflow][1]. How can i customize the tooltip (icon, title, text) just before it appears? [1]: http://stackoverflow.com
0
[ 2, 628, 4190, 18, 45, 184, 20, 5816, 2952, 21, 5607, 10169, 76, 32, 25, 88, 20, 44, 1721, 60, 800, 3726, 3726, 31, 259, 20, 57, 21, 5607, 10169, 26, 206, 9101, 19, 21, 1541, 4725, 15, 17, 206, 9101, 19, 21, 968, 4725, 15, 17...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I create a file that sits next to a .Designer.cs file in Visual Studio? === In Visual Studio, two files are created when you create a new Windows Form in your solution (e.g. if you create MyForm.cs, MyForm.Designer.cs and MyForm.resx are also created). These second two files are displayed as a subtree in the Solution Explorer. **Is there any way to add files to the sub-tree or group for a Windows Form class?**
0
[ 2, 92, 31, 1600, 21, 3893, 30, 7550, 328, 20, 21, 13, 9, 19862, 106, 9, 6824, 3893, 19, 3458, 1120, 60, 800, 3726, 3726, 19, 3458, 1120, 15, 81, 6488, 50, 679, 76, 42, 1600, 21, 78, 1936, 505, 19, 154, 4295, 13, 5, 62, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Retrieving DLL Metadata from VBScript? === Using only VBScript (launched from Windows Scripting Host) can I pull the DLL metadata from kernel32.dll? Specifically, I'm looking for the version info and the architecture specified in the DLL header. Can this be done without any dependencies?
0
[ 2, 13, 6239, 3272, 8397, 13, 43, 211, 28057, 37, 13, 20468, 8741, 60, 800, 3726, 3726, 568, 104, 13, 20468, 8741, 13, 5, 18494, 69, 37, 1936, 3884, 68, 2015, 6, 92, 31, 2201, 14, 13, 43, 211, 28057, 37, 17007, 3125, 9, 43, 211...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 use MSBuild to update version information only when an assembly has changed? === I have a requirement to install multiple web setup projects (using VS2005 and ASP.Net/C#) into the same virtual folder. The projects share some assembly references (the file systems are all structured to use the same 'bin' folder), making deployment of changes to those assemblies problematic since the MS installer will only overwrite assemblies if the currently installed version is older than the one in the MSI. I'm not suggesting that the pessimistic installation scheme is wrong - only that it creates a problem in the environment I've been given to work with. Since there are a sizable number of common assemblies and a significant number of developers who might change a common assembly but forget to update its version number, trying to manage versioning manually will eventually lead to massive confusion at install time. On the flip side of this issue, it's also important not to spontaneously update version numbers and replace *all* common assemblies with *every* install, since that could (temporarily at least) obscure cases where actual changes were made. That said, what I'm looking for is a means to update assembly version information (preferably using MSBuild) only in cases where the assembly constituents (code modules, resources etc) has/have actually changed. I've found a few references that are at least partially pertinent [here ][1] (AssemblyInfo task on MSDN) and [here][2] (looks similar to what I need, but more than two years old and without a clear solution). My team also uses TFS version control, so an automated solution should probably include a means by which the AssebmlyInfo can be checked out/in during the build. Any help would be much appreciated. Thanks in advance. [1]: http://code.msdn.microsoft.com/AssemblyInfoTaskvers/Release/ProjectReleases.aspx?ReleaseId=232 "here" [2]: http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/94054d89-ba19-4658-9e4e-ce7d8ff4dea3/ "here"
0
[ 2, 184, 92, 31, 275, 4235, 29361, 20, 11100, 615, 676, 104, 76, 40, 1475, 63, 1015, 60, 800, 3726, 3726, 31, 57, 21, 8981, 20, 16146, 1886, 2741, 18161, 2314, 13, 5, 12655, 4611, 2835, 17, 28, 306, 9, 2328, 118, 150, 5910, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How far can you push Flex built-in tool-tip functionality? === Looking at tooltip support in Flex, I've seen you can apply colors and styles to modify the appearance. Is it possible to do cooler stuff like make tool tips appear with a simple animation like how menus work on modern Windows apps?
0
[ 2, 184, 463, 92, 42, 3250, 14409, 392, 8, 108, 5607, 8, 10169, 18548, 60, 800, 3726, 3726, 699, 35, 5607, 10169, 555, 19, 14409, 15, 31, 22, 195, 541, 42, 92, 5645, 5268, 17, 6443, 20, 17579, 14, 1468, 9, 25, 32, 938, 20, 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...
How do I open alternative webbrowser (Mozilla or Firefox) and show the specific url? === I know there is built-in Internet explorer, but what I'm looking for is to open Firefox/Mozilla window (run the application) with specified URL. Anyone can tell me how to do that in C# (.nET) ?
0
[ 2, 184, 107, 31, 368, 2676, 10192, 5417, 4104, 13, 5, 18057, 3247, 54, 535, 18219, 6, 17, 298, 14, 1903, 287, 6362, 60, 800, 3726, 3726, 31, 143, 80, 25, 392, 8, 108, 2620, 8520, 15, 47, 98, 31, 22, 79, 699, 26, 25, 20, 368,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 syntax for variables in an MSSQL stored procedure? === I have a simple query like this: select * from mytable where id > 8 I want to make the 8 a variable. There's some syntax like declare @myvar int myvar = 8 but I don't know the exact syntax. What is it? Thanks!
0
[ 2, 98, 22, 18, 14, 22649, 26, 12157, 19, 40, 4235, 18, 22402, 8214, 7004, 60, 800, 3726, 3726, 31, 57, 21, 1935, 25597, 101, 48, 45, 5407, 1637, 37, 51, 5924, 113, 4924, 13, 1, 469, 31, 259, 20, 233, 14, 469, 21, 7612, 9, 80...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to call a Web Service from Windows Mobile (.NET 3.5) === What is the preferred way using the CF 3.5 to get get data from a web service?
0
[ 2, 98, 25, 14, 246, 161, 20, 645, 21, 2741, 365, 37, 1936, 3241, 13, 5, 9, 2328, 203, 9, 264, 6, 800, 3726, 3726, 98, 25, 14, 5981, 161, 568, 14, 10084, 203, 9, 264, 20, 164, 164, 1054, 37, 21, 2741, 365, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
.Net exe memory footprint === Even a simple notepad application in c# consumes megabytes of ram as seen in the task manager. On minimizing the application the memory size in the task manger goes down considerably and is back up when the application is maximized. I read somewhere that the dot net process reserves a lot of memory for runtime allocation in advance thats why dot net apps have larger memory footprint to start with. But this memory can be released using win32 api call a trade off is that runtime allocation becomes slow - is that true ?
0
[ 2, 13, 9, 2328, 1396, 62, 1912, 18511, 800, 3726, 3726, 166, 21, 1935, 1945, 8240, 3010, 19, 272, 5910, 16447, 18, 5957, 23246, 18, 16, 2843, 28, 541, 19, 14, 3005, 1382, 9, 27, 4236, 79, 3335, 14, 3010, 14, 1912, 1072, 19, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Supposedly valid regular expression doesn't return any data in PHP === I am using the following code: <?php $stock = $_GET[s]; //returns stock ticker symbol eg GOOG or YHOO $first = $stock[0]; $url = "http://biz.yahoo.com/research/earncal/".$first."/".$stock.".html"; $data = file_get_contents($url); $r_header = '/Prev. Week(.+?)Next Week/'; $r_date = '/\<b\>(.+?)\<\/b\>/'; preg_match($r_header,$data,$header); preg_match($r_date, $header[1], $date); echo $date[1]; ?> I've checked the regular expressions [here][1] and they appear to be valid. If I check just $url or $data they come out correctly and if I print $data and check the source the code that I'm looking for to use in the regex is in there. If you're interested in checking anything, an example of a proper URL would be [http://biz.yahoo.com/research/earncal/g/goog.html][2] I've tried everything I could think of, including both var_dump($header) and var_dump($date), both of which return empty arrays. I have been able to create other regular expressions that works. For instance, the following correctly returns "Earnings": $r_header = '/Company (.+?) Calendar/'; preg_match($r_header,$data,$header); echo $header[1]; I am going nuts trying to figure out why this isn't working. Any help would be awesome. Thanks. [1]: http://www.quanetic.com/regex.php [2]: http://biz.yahoo.com/research/earncal/g/goog.html
0
[ 2, 11731, 7394, 1290, 1803, 1437, 22, 38, 788, 186, 1054, 19, 13, 26120, 800, 3726, 3726, 31, 589, 568, 14, 249, 1797, 45, 13, 1, 60, 26120, 5579, 7576, 800, 5579, 1, 3060, 2558, 18, 12660, 12894, 24632, 18, 2070, 8809, 106, 4678,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 page methods returning undefined === I am trying to use page methods in my asp.net page. I have enable page methods set to true on the script manager, the webmethod attribute defined on the method, the function is public static string, I know the function works because when I run it from my code behind it generates the expected result, but when I call it via page method in my result function the result is always alerted as undefined. If I use fiddler it doesn't even look like there is additional traffic or a new request created. I'm running the site on port 82 if that makes a difference. I'm at a loss here. Can someone give me some pointers?
0
[ 2, 28, 306, 9, 2328, 2478, 3195, 2485, 367, 13439, 800, 3726, 3726, 31, 589, 749, 20, 275, 2478, 3195, 19, 51, 28, 306, 9, 2328, 2478, 9, 31, 57, 9240, 2478, 3195, 309, 20, 1151, 27, 14, 3884, 1382, 15, 14, 2741, 5909, 1807, 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...
Custom headers possible with URLRequest/URLStream using method GET? === Quite simple really: var req:URLRequest=new URLRequest(); req.url="http://somesite.com"; var header:URLRequestHeader=new URLRequestHeader("my-bespoke-header","1"); req.requestHeaders.push(header); req.method=URLRequestMethod.GET; stream.load(req); Yet, if I inspect the traffic with WireShark, the <code>my-bespoke-header</code> is not being sent. If I change to <code>URLRequestMethod.POST</code> and append some data to <code>req.data</code>, then the header is sent, but the receiving application requires a GET not a POST. The documentation mentions a blacklist of headers that will not get sent. <code>my-bespoke-header</code> is not one of these. It's possibly worth mentioning that the originating request is from a different port on the same domain. Nothing is reported in the policyfile log, so it seems unlikely, but is this something that can be remedied by force loading a crossdomain.xml with a <code>allow-http-request-headers-from</code> despite the fact that this is not a crossdomain issue? Or is it simply an undocumented feature of the Flash Player that it can only send custom headers with a POST request?
0
[ 2, 5816, 157, 445, 938, 29, 287, 6362, 99, 10351, 118, 911, 255, 11260, 568, 2109, 164, 60, 800, 3726, 3726, 1450, 1935, 510, 45, 4033, 302, 1251, 45, 911, 255, 99, 10351, 3726, 2681, 287, 6362, 99, 10351, 5, 6, 73, 302, 1251, 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 is MySql equivalent of the Nz Function in MS Access? Is Nz a SQL standard? === What is MySql equivalent of the Nz Function in MS Access? Is Nz a SQL standard? In Access, the Nz function lets you return a value when a variant is null. [Source][1] The syntax for the Nz function is: Nz ( variant, [ value_if_null ] ) [1]: http://www.techonthenet.com/access/functions/advanced/nz.php
0
[ 2, 98, 25, 51, 18, 22402, 4602, 16, 14, 13, 5652, 1990, 19, 4235, 1381, 60, 25, 13, 5652, 21, 4444, 255, 1236, 60, 800, 3726, 3726, 98, 25, 51, 18, 22402, 4602, 16, 14, 13, 5652, 1990, 19, 4235, 1381, 60, 25, 13, 5652, 21, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to create an empty DOMElement === I am using Xerces-c in my project, and would like to create a single `DOMElement` without having to create a whole new `DOMDocument`. Is such a thing possible?
0
[ 2, 184, 20, 1600, 40, 2424, 11859, 27567, 800, 3726, 3726, 31, 589, 568, 993, 106, 5052, 8, 150, 19, 51, 669, 15, 17, 83, 101, 20, 1600, 21, 345, 13, 1, 5555, 27567, 1, 366, 452, 20, 1600, 21, 979, 78, 13, 1, 5555, 28132, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to build a CD ISO image file from the windows command line? === In an effort to satisfy "The Joel Test" question #2 "Can you make a build in one step?", I'm trying to complete a release candidate build script with the creation of a CD iso from the collection of files gathered and generated by the installer creator. There seem to be many good tools (many free) out there that will create ISOs, but I need to find one that can be run at the windows command line so I can integrate it into the NAnt build script that's fired off by Cruise Control. Build environment is: - Windows Server 2003 - .NET 1.1 - 3.5 (application we're creating is built on 2.0) - NullSoft installer (NSIS) - CruiseControl.net - NAnt I've been googling around, but no luck yet. Anyone have a recommendation?
0
[ 2, 184, 20, 1895, 21, 1745, 11899, 1961, 3893, 37, 14, 1936, 1202, 293, 60, 800, 3726, 3726, 19, 40, 2150, 20, 14711, 13, 7, 124, 8873, 1289, 7, 1301, 7921, 13, 7, 1245, 42, 233, 21, 1895, 19, 53, 1424, 60, 7, 15, 31, 22, 79...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HttpContext on instances of Controllers are null in ASP.net MVC === This may not be the correct way to use controllers, but I did notice this problem and hadn't figured out a way to correct it. public JsonResult SomeControllerAction() { //The current method has the HttpContext just fine bool currentIsNotNull = (this.HttpContext == null); //which is false //creating a new instance of another controller SomeOtherController controller = new SomeOtherController(); bool isNull = (controller.HttpContext == null); // which is true //The actual HttpContext is fine in both bool notNull = (System.Web.HttpContext.Current == null); // which is false } I've noticed that the HttpContext on a Controller isn't the "actual" HttpContext that you would find in System.Web.HttpContext.Current. Is there some way to manually populate the HttpContextBase on a Controller? Or a better way to create an instance of a Controller?
0
[ 2, 7775, 1126, 11969, 27, 13946, 16, 9919, 18, 50, 16203, 19, 28, 306, 9, 2328, 307, 8990, 800, 3726, 3726, 48, 123, 52, 44, 14, 4456, 161, 20, 275, 9919, 18, 15, 47, 31, 144, 3551, 48, 1448, 17, 1241, 22, 38, 5700, 70, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Expression Web Source Control Integration? === Does anyone know if Expression Web (and Blend, for that matter) has any form of direct integration with source control? (Preferably -- and I know it sucks, but bear with me -- Source Safe?) Right now that's about the only real downside we've discovered in a couple days of using it. But it's a **big** downside.
0
[ 2, 1803, 2741, 1267, 569, 8078, 60, 800, 3726, 3726, 630, 1276, 143, 100, 1803, 2741, 13, 5, 290, 11138, 15, 26, 30, 1161, 6, 63, 186, 505, 16, 1744, 8078, 29, 1267, 569, 60, 13, 5, 3515, 2407, 4801, 13, 8, 8, 17, 31, 143, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How does one cancel/unaccept a drag-and-drop operation in Flex 3? === **Goal:** Allow the user to delete a record by dragging a row from an AdvancedDataGrid, dropping it onto a trash-can icon and verify the user meant to do that via a popup alert with "OK" and "Cancel" buttons. **What is working:** <ul> <li>Dragging/Dropping a row onto the trash icon.</li> <li>If the user clicks the "OK" button, the record is deleted.</li> <li>If the user clicks the "Cancel" button, the operation is canceled.</li> </ul> **Problem:** After the user clicks the "Cancel" button and the popup alert closes, no rows in the ADG can be dragged. I've discovered that after sorting the ADG, by clicking on a column header, the user can begin dragging rows again. **Code:** <mx:operation name="GetParticipantOrderInformation" resultFormat="object" result="getParticipantOrderInformationResult(event)" /> <mx:Image source="{trashImage}" buttonMode="true" toolTip="drag a participant here to delete them from the project" dragDrop="deleteParticipantDrop(event)" dragEnter="deleteParticipantEnter(event)" dragExit="deleteParticipantDragExit(event)" top="4" right="122" id="image2" /> // trashImage Event Handlers: private function deleteParticipantEnter(event:DragEvent):void { var component:IUIComponent = IUIComponent(event.currentTarget); dragComponent = component; DragManager.acceptDragDrop(component); DragManager.showFeedback(DragManager.MOVE); deleteParticipantDragEvent = event; } private function deleteParticipantDrop(event:DragEvent):void { var selectedKitNum:String = memberRpt.selectedItem.KitNum; var component:IUIComponent = IUIComponent(event.currentTarget); dragComponent = component; DragManager.acceptDragDrop(component); isEditingParticipantInfo = false; isDeletingParticipant = true; deleteParticipantDropEvent = event; GapServices.GetParticipantOrderInformation(selectedKitNum); } private function removeMe(event:Event):void { deleteParticipantDragEvent = null; deleteParticipantDropEvent = null; PopUpManager.removePopUp(deleteReason); } private function deleteParticipantDragExit(event:DragEvent):void { var component:IUIComponent = IUIComponent(event.currentTarget); dragComponent = component; DragManager.acceptDragDrop(component); DragManager.showFeedback(DragManager.NONE); } // GetParticipantOrderInformation web service result handler private function getParticipantOrderInformationResult(event:ResultEvent):void { if (!isQueryingGapInfo) { participantOrderInformationResult = event.result; if (isEditingParticipantInfo) { this.currentState = "editParticipantInfo"; } else if (isDeletingParticipant) { deleteReason = DeleteParticipantTitleWindow(PopUpManager.createPopUp( this, DeleteParticipantTitleWindow , true)); PopUpManager.centerPopUp(deleteReason); deleteReason.showCloseButton = true; deleteReason.title = "Reason for removal from project"; deleteReason.addEventListener("close", removeMe); deleteReason["cancelButton"].addEventListener("click", removeMe); deleteReason["okButton"].addEventListener("click", finalizeDeleteParticipant); isDeletingParticipant = false; } } Thanks in advance for all helpful suggestions.
0
[ 2, 184, 630, 53, 14815, 118, 1020, 28050, 21, 5501, 8, 290, 8, 12361, 1453, 19, 14409, 203, 60, 800, 3726, 3726, 13, 1409, 839, 192, 45, 1409, 1655, 14, 4155, 20, 27448, 21, 571, 34, 13052, 21, 3131, 37, 40, 2255, 18768, 16375, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Pros and cons of having dedicated application pools over keeping web applications in one default app pool === What are pros and cons of having dedicated application pools over keeping web applications in one default app pool? Thanks in advance
0
[ 2, 895, 18, 17, 11608, 16, 452, 2360, 3010, 15230, 84, 2882, 2741, 3767, 19, 53, 12838, 4865, 3067, 800, 3726, 3726, 98, 50, 895, 18, 17, 11608, 16, 452, 2360, 3010, 15230, 84, 2882, 2741, 3767, 19, 53, 12838, 4865, 3067, 60, 3669...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Should I Print the Exception Stack Trace? === How inefficient is it to get the stack trace for an exception? I know it's costly, but how costly? Should they definitely *not* be used in production environment?
0
[ 2, 378, 31, 4793, 14, 5391, 7566, 5565, 60, 800, 3726, 3726, 184, 19, 23702, 25, 32, 20, 164, 14, 7566, 5565, 26, 40, 5391, 60, 31, 143, 32, 22, 18, 20035, 15, 47, 184, 20035, 60, 378, 59, 4939, 1637, 1270, 2483, 44, 147, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do you get the text from an HTML 'datacell' using BeautifulSoup === I have been trying to strip out some data from HTML files. I have the logic coded to get the right cells. Now I am struggling to get the actual contents of the 'cell': here is my htm snip headerRows[0][10].contents [<font size="+0"><font face="serif" size="1"><b>Apples Produced</b><font size="3"> </font></font></font>] Note that this is a list item from Python []. I need the value Apples Produced but can't get to it. Any suggestions would be appreciated Suggestions on a good book that explains this would earn my eternal gratitude
0
[ 2, 184, 107, 42, 164, 14, 1854, 37, 40, 13, 15895, 13, 22, 18768, 9725, 22, 568, 1632, 656, 576, 800, 3726, 3726, 31, 57, 74, 749, 20, 4998, 70, 109, 1054, 37, 13, 15895, 6488, 9, 31, 57, 14, 7085, 13, 22254, 20, 164, 14, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
mdi app with multiple GUI threads === C# MDI application with separate GUI threads for each child in MDI is that possible ? For example if one of the child forms is blocked by some synchronous request it freezes the entire container ( MDI Parent ) and the other windows open also become in accessible. In general , is it possible to have more than one GUI thread in .net windows form app domain ?
0
[ 2, 8138, 49, 4865, 29, 1886, 9457, 20396, 800, 3726, 3726, 272, 5910, 8138, 49, 3010, 29, 1725, 9457, 20396, 26, 206, 850, 19, 8138, 49, 25, 30, 938, 13, 60, 26, 823, 100, 53, 16, 14, 850, 1997, 25, 8388, 34, 109, 13, 16023, 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...
Rails ignoring render and redirect_to === I've got a really simple rails question here but I can't seem to find the answer anywhere. I guess some of the problems stem from me following a tutorial for Rails 1.2 with Rails 2.1. Anyway.. I'm writing a blog system and I'm implementing the comments bit. I have comments displaying fine once I've created them using script/console, but getting the comment form itself working is the hard bit. In posts_controller.rb I have def comment Post.find(params[:id]).comments.create(params[:comment]) flash[:notice] = "Added comment" #render :action => show redirect_to :action => show end and in show.html.erb (the view) I have <%= form_tag :action => "comment", :id => @post %> <%= text_area "comment", "body" %><br> <%= submit_tag "Post Comment" %> When I submit the form it tries to go to the urb /posts/comment/1 which is obviously incorrect, and it complains that it can't find a template. Obviously I don't want a template there because I've told it to redirect to the show action because I want it to just re-display the post's show page, with the new comment there. I've tried both the commented out line (render :action => show) and the redirect_to line, and neither seem to do anything at all. I'm sure I'm missing something simple, but what is it?
0
[ 2, 2240, 18, 9321, 16535, 17, 302, 14706, 1, 262, 800, 3726, 3726, 31, 22, 195, 330, 21, 510, 1935, 2240, 18, 1301, 235, 47, 31, 92, 22, 38, 2260, 20, 477, 14, 1623, 4922, 9, 31, 2321, 109, 16, 14, 1716, 6940, 37, 55, 249, 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...
I cannot commit changes after merge in SVN === I had a problem with committing changes after merging two branches of my project using TortoiseSVN. Here are details: I did a merge branch to trunk of *project* which I am working on. *Project* includes main repository and libraries joint to main repository as *svn external* (libraries are also branched) as subdirectory of *project*. When I was trying to commit changes TortoiseSVN said: Commit A re all the targets part of the same working copy? Unable to lock 'D:\websites\project\lib' Please execute the "Cleanup" command. Of course *Cleanup* didn't help. *svn:external* keyword for *project* directory was well defined, also *lib* folder still contained proper version of libraries (trunk version). Both SVN server and client are in 1.5.x version (TortoiseSVN is 1.3.x). From technical point of view both *project* and *libraries* are projects in the same SVN repository. Any idea what went wrong? I had been googling a bit for the solution, but didn't find anything useful, so I tried to commit my changes in two steps: 1. commit changes from project folder 1. commit changes from libraries folder Which went without any problems. But I am still wondering why I couldn't commit everything in one commit.
0
[ 2, 31, 1967, 9686, 1693, 75, 12666, 19, 13, 18, 16578, 800, 3726, 3726, 31, 41, 21, 1448, 29, 19524, 1693, 75, 18842, 81, 4395, 16, 51, 669, 568, 25691, 18, 16578, 9, 235, 50, 3289, 45, 31, 144, 21, 12666, 1686, 20, 6436, 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...
urllib2, when it actually download file from internet? === url = "http://example.com/file.xml" data = urllib2.urlopen(url) data.read() The question is when exactly file will be downloaded from the internet? When i do urlopen or .read()? On my network interface i see both times high traffic..
0
[ 2, 13, 911, 211, 4598, 135, 15, 76, 32, 1121, 7121, 3893, 37, 2620, 60, 800, 3726, 3726, 287, 6362, 800, 13, 7, 21127, 6903, 29041, 9, 960, 118, 16877, 9, 396, 8184, 7, 1054, 800, 13, 911, 211, 4598, 135, 9, 911, 16942, 103, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How does GB18030 differ from Unicode? === How does the Chinese GB18030 code set differ from Unicode? What special techniques are required for handling GB18030? Are there any (open source) libraries for handling GB18030?
0
[ 2, 184, 630, 14857, 8888, 1762, 11394, 37, 28010, 60, 800, 3726, 3726, 184, 630, 14, 1116, 14857, 8888, 1762, 1797, 309, 11394, 37, 28010, 60, 98, 621, 4212, 50, 1390, 26, 7988, 14857, 8888, 1762, 60, 50, 80, 186, 13, 5, 10157, 12...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
ASP.NET MVC: Best way to get form checkboxes into many-to-many DB assoc table with LINQ To SQL? === I have an ASP.NET MVC view which contains checkboxes for user-defined categories. <td><% foreach (Category c in (List<Category>)ViewData["cats"]) { if (selCats.ContainsKey(c.ID)) { %> <input name="CategoryIDs" type="checkbox" value="<%=c.ID %>" checked="checked" />&nbsp;<%= c.Name%><% } else { %> <input name="CategoryIDs" type="checkbox" value="<%=c.ID %>" />&nbsp;<%= c.Name%> <% } %> <% } %> </td> The form is posted to the following controller action: [AcceptVerbs(HttpVerbs.Post)] public ActionResult Edit(int id, int [] CategoryIDs) { PostsDataContext db = new PostsDataContext(); var post = db.Posts.Single(p => p.ID == id); UpdateModel(post, new[] { "Title", "Subtitle", "RawContent", "PublishDate", "Slug" }); db.SubmitChanges(); return Redirect("/archives/" + post.Slug); } The form checkboxes will be converted to an array of integer IDs "CategoryIDs", each representing a selected category. I then want to put these into a association table containing two columns: PostID and CategoryID. This is used to set up a many-to-many association between Posts and Categories. Currently I am brute-forcing it: looping through the categories, and for each one, adding a row to the association table containing the category ID, and the ID of the post to which it belong. But I'm wondering if there's a cleaner way to do this automagically in the context of ASP.NET MVC and LINQ to SQL? Thanks!
0
[ 2, 28, 306, 9, 2328, 307, 8990, 45, 246, 161, 20, 164, 505, 2631, 5309, 160, 77, 151, 8, 262, 8, 14842, 13, 9007, 28, 18, 2499, 859, 29, 6294, 1251, 20, 4444, 255, 60, 800, 3726, 3726, 31, 57, 40, 28, 306, 9, 2328, 307, 8990...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 major drawbacks to using OpenOffice DB vs. Microsoft Access? === I know that Open Office Database uses a java database backend. Does anyone have any insight on how this compares to the Jet Database Engine? Also is the query designer/reporting nearly as robust as MS Access?
0
[ 2, 98, 50, 14, 394, 2003, 1958, 18, 20, 568, 368, 17047, 13, 9007, 4611, 9, 7099, 1381, 60, 800, 3726, 3726, 31, 143, 30, 368, 488, 6018, 2027, 21, 8247, 6018, 97, 2451, 9, 630, 1276, 57, 186, 9239, 27, 184, 48, 11590, 18, 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...
Is there way for a GWT program to tell if it's in hosted or web mode? === I would like my GWT program to be able to determine whether it's in hosted mode or in web mode. Is there a way to do this? Thanks!
0
[ 2, 25, 80, 161, 26, 21, 14094, 38, 625, 20, 494, 100, 32, 22, 18, 19, 2812, 54, 2741, 3740, 60, 800, 3726, 3726, 31, 83, 101, 51, 14094, 38, 625, 20, 44, 777, 20, 3746, 1472, 32, 22, 18, 19, 2812, 3740, 54, 19, 2741, 3740, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Looking for a good Bulk Insert XML Shredding example for SQL 2005 === A little help needed. I'm receiving an xml file similar to this: <?xml version="1.0" encoding="utf-16"?> <dc:GRANTEE xsi:schemaLocation="http://www.macrointernational.com/FullSchema test.xsd " xmlns:dc="http://www.macrointernational.com/FullSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <RPGID>90CU0024</RPGID> <PLANID>01</PLANID> <CASE> <CASEID>100001</CASEID> <RPGID>90CU0024</RPGID> <FILE_O>2008-02-08T00:00:00</FILE_O> <ADULT> <ADULTID>100001A1</ADULTID> <CASEID>100001</CASEID> <APRIMARY>1</APRIMARY> <ARLTNSHP>BM</ARLTNSHP> <ADOB>1978-12-03T00:00:00</ADOB> <ARACAI>1</ARACAI> <ASEX>2</ASEX> <SATX> <SATXID>MD2120378</SATXID> <ADULTID>100001A1</ADULTID> <SAASSESS>2008-02-22T00:00:00</SAASSESS> <PUBPRVTX>1</PUBPRVTX> <TXADMIT>2008-02-23T00:00:00</TXADMIT> <TXSET>5</TXSET> </SATX> </ADULT> <CHILD> <CHILDID>100001C1</CHILDID> <CASEID>100001</CASEID> <CINDEX>1</CINDEX> <CHBDATE>2008-02-05T00:00:00</CHBDATE> <CHSEX>1</CHSEX> <CHRACAI>0</CHRACAI> <MALTX> <MALTXID>10000023</MALTXID> <CHILDID>100001C1</CHILDID> <RPTDT>2008-02-05T00:00:00</RPTDT> <CHMAL1>2</CHMAL1> </MALTX> </CHILD> </CASE> </dc:GRANTEE> What I need to do is import it and shred it to tables with a stored proc. I've been unable to find anything other than general regurgitation of the examples in the books online, uh, online. what I need is a little syntax walk-through that shows how I can bulk insert the file (using OPENROWSET?) and then take all of the data and split it to matching tables while maintaining keys. It seems like it should be easy, but the reference material is just hard to come by. I also have access to schema if I need that and can annotate as well. Anybody have a good reference?
0
[ 2, 699, 26, 21, 254, 7238, 14692, 23504, 21045, 3258, 823, 26, 4444, 255, 812, 800, 3726, 3726, 21, 265, 448, 851, 9, 31, 22, 79, 3396, 40, 23504, 3893, 835, 20, 48, 45, 13, 1, 60, 396, 8184, 615, 3726, 7, 165, 9, 387, 7, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Memory Footprint of an Object at Runtime in .NET === Greetings! I have a static object at runtime that is basically a list of other objects (ints, strings, Dictionary, other objects, etc). Is there way to determine the memory used by my static "list of other objects" object at runtime? This would be handy for instrumentation and reporting purposes.
0
[ 2, 1912, 18511, 16, 40, 3095, 35, 485, 891, 19, 13, 9, 2328, 800, 3726, 3726, 13769, 18, 187, 31, 57, 21, 12038, 3095, 35, 485, 891, 30, 25, 11374, 21, 968, 16, 89, 3916, 13, 5, 6391, 18, 15, 7887, 15, 9186, 15, 89, 3916, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the Perl equivalent of strlen()? === What is the Perl equivalent of strlen()?
0
[ 2, 98, 25, 14, 416, 255, 4602, 16, 13, 9729, 2284, 5, 6, 60, 800, 3726, 3726, 98, 25, 14, 416, 255, 4602, 16, 13, 9729, 2284, 5, 6, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 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...
Checking for duplicates in a complex object using Linq or Lamda expression === I've just started learning linq and lamda expressions, and they seem to be a good fit for finding duplicates in a complex object collection, but I'm getting a little confused and hope someone can help put me back on the path to happy coding. My object is structured like list<customer>.list<contacts>.uniqueCustomerIdentifier I need to ensure there are no duplicate uniqueCustomerIdentifier with in the entire complex object.
0
[ 2, 9886, 26, 19429, 18, 19, 21, 1502, 3095, 568, 6294, 1251, 54, 11108, 593, 1803, 800, 3726, 3726, 31, 22, 195, 114, 373, 2477, 6294, 1251, 17, 11108, 593, 13832, 15, 17, 59, 2260, 20, 44, 21, 254, 2742, 26, 3007, 19429, 18, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adding unit tests to an existing project === My question is quite relevant to [something asked before][1] but I need some practical advice. I have "Working effectively with legacy code" in my hands and I 'm using advice from the book as I read it in the project I 'm working on. The project is a C++ application that consists of a few libraries but the major portion of the code is compiled to a single executable. I 'm using googletest for adding unit tests to existing code when I have to touch something. My problem is how can I setup my build process so I can build my unit tests since there are two different executables that need to share code while I am not able to extract the code from my "under test" application to a library. Right now I have made my build process for the application that holds the unit tests link against the object files generated from the build process of the main application but I really dislike it. Are there any suggestions? [1]: http://stackoverflow.com/questions/42785/how-do-you-retrofit-unit-tests-into-a-code-base
0
[ 2, 4721, 1237, 4894, 20, 40, 3149, 669, 800, 3726, 3726, 51, 1301, 25, 1450, 7480, 20, 636, 9099, 411, 115, 500, 2558, 165, 500, 47, 31, 376, 109, 5713, 4978, 9, 31, 57, 13, 7, 14120, 5463, 29, 7780, 1797, 7, 19, 51, 473, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Database comparison === Which industry-class database has the most **unique** features? (with "unique" meaning that no other RDBMS has them) I think my choice here is Oracle 11g: 1. Flashback query (you can estract data as it was a moment in the past) 2. ASM - automatic storage management 3. Native code compilation of stored procedures 4. Audit features (tracing everything, from logins to statements) and many others.
0
[ 2, 6018, 6050, 800, 3726, 3726, 56, 1230, 8, 1898, 6018, 63, 14, 127, 13, 1409, 1020, 5312, 1409, 967, 60, 13, 5, 1410, 13, 7, 1020, 5312, 7, 1813, 30, 90, 89, 13, 897, 13178, 18, 63, 105, 6, 31, 277, 51, 1837, 235, 25, 1575...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 compare two datetime fields but ignore the year? === I get to dust off my VBScript hat and write some classic ASP to query a SQL Server 2000 database. Here's the scenario: * I have two *datetime* fields called **fieldA** and **fieldB**. * **fieldB** will never have a year value that's greater than the year of **fieldA** * It **is** possible the that two fields will have the same year. What I want is all records where **fieldA** >= **fieldB**, *independent of the year*. Just pretend that each field is just a month & day. How can I get this? My knowledge of T-SQL date/time functions is spotty at best.
0
[ 2, 184, 92, 31, 11590, 81, 1231, 891, 2861, 47, 7174, 14, 159, 60, 800, 3726, 3726, 31, 164, 20, 4346, 168, 51, 13, 20468, 8741, 2970, 17, 2757, 109, 2732, 28, 306, 20, 25597, 21, 4444, 255, 8128, 824, 6018, 9, 235, 22, 18, 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...
What is the scope of isolation in nested transactions in SQL Server? === Consider the following SQL: <pre> BEGIN TRAN SET TRANSACTION ISOLATION LEVEL READ COMMITTED INSERT Bands ( Name ) SELECT 'Depeche Mode' UNION SELECT 'Arcade Fire' -- I've indented the inner transaction to make it clearer. BEGIN TRAN SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED SELECT * FROM Bands COMMIT -- What is the isolation level right here? UPDATE Bands SET Name = 'Modest Mouse' WHERE Name = 'Oddest House' COMMIT </pre> In sum, we start a transaction and set its isolation level to `READ COMMITTED`. We then do some random SQL and start another, nested transaction. In this transaction we change the isolation level to `READ UNCOMMITTED`. We then commit that transaction and return to the other. Now, my guess is that after the inner commit, the isolation level returns to `READ COMMITTED`. Is this correct?
0
[ 2, 98, 25, 14, 9914, 16, 13300, 19, 5618, 69, 13147, 19, 4444, 255, 8128, 60, 800, 3726, 3726, 3563, 14, 249, 4444, 255, 45, 13, 1, 3515, 1, 2348, 12748, 309, 12799, 13300, 662, 1302, 4164, 14692, 4137, 13, 5, 204, 13, 6, 5407, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 update an Environment Variable in a Visual Studio Deployment Project === I would like to update the PATH environment variable in a Visual Studio 2005 deployment project. How does one do this?
0
[ 2, 184, 107, 31, 11100, 40, 2307, 7612, 19, 21, 3458, 1120, 10475, 669, 800, 3726, 3726, 31, 83, 101, 20, 11100, 14, 2013, 2307, 7612, 19, 21, 3458, 1120, 812, 10475, 669, 9, 184, 630, 53, 107, 48, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Clearing parser state of a bison generated parser === Iam using c lexer that is flex generated and a c++ parser that is bison generated. i have modified the parser to acccept only string input. I am calling the parser function yyparse in a loop and reading line by line of user input. I stop the loop if the input is "quit". The problem i am facing is that when input does'nt match any rule then, the parser stops abruptly, and at next iteration starts off at same state, expecting the rule which was stopped (due to synatx error )to complete. It works fine if the input is valid and matches a parser rule. On syntax error i have redefined the yyerror function, that displays a simple error message. How do i clear the state of the parser when the input does'nt match any parser rule, and at next iteration the parser starts afresh.
0
[ 2, 8130, 2017, 4104, 146, 16, 21, 22696, 6756, 2017, 4104, 800, 3726, 3726, 31, 765, 568, 272, 13492, 106, 30, 25, 14409, 6756, 17, 21, 272, 20512, 2017, 4104, 30, 25, 22696, 6756, 9, 31, 57, 5372, 14, 2017, 4104, 20, 7602, 13433,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can someone help explain this scheme procedure === question: ((lambda (x y) (x y)) (lambda (x) (* x x)) (* 3 3)) this was #1 on the midterm, i put "81 9" he thought i forgot to cross one out lawl, so i cross out 81, and he goes aww. Anyways, i dont understand why its 81. I understand why (lambda (x) (* x x)) (* 3 3) = 81, but the first lambda i dont understand what the x and y values are there, and what the [body] (x y) does. So i was hoping someone could explain to me why the first part doesnt seem like it does anything.
0
[ 2, 92, 737, 448, 3271, 48, 4276, 7004, 800, 3726, 3726, 1301, 45, 13, 5, 5, 24187, 13, 5, 396, 13, 93, 6, 13, 5, 396, 13, 93, 6, 6, 13, 5, 24187, 13, 5, 396, 6, 13, 5, 2483, 993, 993, 6, 6, 13, 5, 2483, 203, 203, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does the asp.net login control encrypt the password field? === I'm setting up my first site using the asp authentication provider and using the built in asp.net login control. My question, is the password encrypted or hashed as it's sent to the server using the asp.net login control? or do I need to use https/ssl to accomplish this? Thanks
0
[ 2, 630, 14, 28, 306, 9, 2328, 6738, 108, 569, 1957, 11435, 14, 20884, 575, 60, 800, 3726, 3726, 31, 22, 79, 2697, 71, 51, 64, 689, 568, 14, 28, 306, 27963, 11747, 17, 568, 14, 392, 19, 28, 306, 9, 2328, 6738, 108, 569, 9, 51...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HTML encode user input when storing or when displaying === Simple question that keeps bugging me. Should I HTML encode user input right away and store the encoded contents in the database, or should I store the raw values and HTML encode when displaying? Storing encoded data greatly reduces the risk of a developer forgetting to encode the data when it's being displayed. However, storing the encoded data will make datamining somewhat more cumbersome and it will take up a bit more space, even though that's usually a non-issue.
0
[ 2, 13, 15895, 20523, 4155, 6367, 76, 25615, 54, 76, 17418, 800, 3726, 3726, 1935, 1301, 30, 8968, 6256, 2762, 55, 9, 378, 31, 13, 15895, 20523, 4155, 6367, 193, 229, 17, 1718, 14, 13665, 8478, 19, 14, 6018, 15, 54, 378, 31, 1718, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Saving/Organizing/Searching Outlook E-mail outside of Outlook === My company requires me to use Outlook for my E-mail. Outlook does virtually nothing the way I want to do it and it frustrates me greatly. (I'm not trying to start a flame war here, it must do exactly what thousands of CEO's want it to do, but I'm not a CEO.) I would like to be able to automatically extract the thousands of E-mails and attachments currently in my Outlook account and save them in my own alternative storage format where I can easily search them and organize them the way I want. (I'm not requesting suggestions for the new format.) Maybe some nice open source program already can do this... that would be great. Please let me know. Otherwise, <b>how can I obtain the message content and the attachments without going through the huge collection manually?</b> Even if I could only get the message content and the names of the attachments, that would be sufficient. Is there documentation of the Outlook mail storage format? Is there a way to query Outlook for the data? Maybe there is an alternative approach I haven't considered? My preferred language to do this is C#, but I can use others if needed.
0
[ 2, 7599, 118, 6826, 3335, 118, 25136, 68, 19837, 13, 62, 8, 8079, 719, 16, 19837, 800, 3726, 3726, 51, 237, 4781, 55, 20, 275, 19837, 26, 51, 13, 62, 8, 8079, 9, 19837, 630, 9149, 626, 14, 161, 31, 259, 20, 107, 32, 17, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Reflectivly Invoke an Overloaded Method in .NET === Is there a way to Invoke an overloaded method using reflection in .NET (2.0). I have an application that dynamically instantiates classes that have been derived from a common base class. For compatibility purposes, this base class contains 2 methods of the same name, one with parameters, and one without. I need to call the parameterless method via the Invoke method. Right now, all I get is an error telling me that I'm trying to call an ambiguous method. Yes, I *could* just cast the object as an instance of my base class and call the method I need. Eventually that *will* happen, but right now, internal complications will not allow it. Any help would be great! Thanks.
0
[ 2, 6907, 3757, 102, 28371, 40, 84, 22546, 2109, 19, 13, 9, 2328, 800, 3726, 3726, 25, 80, 21, 161, 20, 28371, 40, 84, 22546, 2109, 568, 9138, 19, 13, 9, 2328, 13, 5, 135, 9, 387, 6, 9, 31, 57, 40, 3010, 30, 7782, 1326, 6322,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 update a WinForms ListView when using VirtualMode=True? === I have an app with a large ListView which is terribly slow so I'm implementing VirtualMode. MSDN does not seem to cover how I would add and delete new items in the middle of the listview. For example, the ListView has 1000 items (representing files on disk) and after the initial population of the ListView (by the RetrieveVirtualItem event) some files will be deleted and some added so that VirtualListSize might even be the same after the update. Question 1) How do I say to the ListView 'these items have been changed/deleted' so that it requeries? Additionally, some of files just change and I'd like to reflect their changed status in the listview. Question 2) How do I find an item in the listview given that VirtualMode does not let me access the Items collection that I was using before (I used the ContainsKey method on that collection). Sounds easy, but I can't see it myself. Help greatly appreciated. Ryan
0
[ 2, 184, 107, 31, 11100, 21, 628, 4190, 18, 968, 4725, 76, 568, 6599, 15570, 3726, 13398, 60, 800, 3726, 3726, 31, 57, 40, 4865, 29, 21, 370, 968, 4725, 56, 25, 19629, 2276, 86, 31, 22, 79, 17333, 6599, 15570, 9, 4235, 43, 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...
How to detect the current sharepoint pages from the client machine? === On the client machine I need to be able to somehow detect which sites the current user are looking at right now. I know the base URL of the sharepoint app, say sharepoint.thecompany.net but how the hack do I get the last requested url from the server? I have hit a dead stop when trying to iterate the current processes and the casting the iexplorer process to something I can work with, I just don't know which kind of object to cast the process to :-( I hope to implement this logic in a C# assembly what should run on the client box. Any other approach that might work? Thanks in advance
0
[ 2, 184, 20, 9092, 14, 866, 1891, 3132, 4434, 37, 14, 6819, 1940, 60, 800, 3726, 3726, 27, 14, 6819, 1940, 31, 376, 20, 44, 777, 20, 3625, 9092, 56, 3259, 14, 866, 4155, 50, 699, 35, 193, 130, 9, 31, 143, 14, 1000, 287, 6362, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I write objects for easy XML Serialization in VB.NET? === I'm writing a small application in VB.NET and I would like some of the classes to be able to write themselves out to XML to serve as a "save" feature. I have seen XSD files used to generate VB classes that can serialize themselves into and out of XML very easily. How would I do this if I do have any pre-existing XML format that I need to conform to as I'm just creating the classes myself?
0
[ 2, 184, 107, 31, 2757, 3916, 26, 2010, 23504, 5956, 1829, 19, 13, 20468, 9, 2328, 60, 800, 3726, 3726, 31, 22, 79, 1174, 21, 284, 3010, 19, 13, 20468, 9, 2328, 17, 31, 83, 101, 109, 16, 14, 2684, 20, 44, 777, 20, 2757, 1366, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Convert CSV file or Excel spreadsheet to RESX File === I am looking for a solution or recommendation to a problem I am having. I have a bunch of ASPX pages that will be localized and have a bunch of text that needs to be supported in 6 languages. The people doing the translation will not have access to Visual Studio and the likely easiest tool is Excel. If we use Excel or even export to CSV, we need to be able to import to move to .resx files. So, what is the best method for this? I am aware of this question, http://stackoverflow.com/questions/198772/convert-a-visual-studio-resource-file-to-a-text-file already and the use of Resx Editor but an easier solution would be preferred. Thank you. -Rob Bazinet
0
[ 2, 8406, 272, 18, 710, 3893, 54, 20700, 1789, 17627, 20, 10719, 396, 3893, 800, 3726, 3726, 31, 589, 699, 26, 21, 4295, 54, 14066, 20, 21, 1448, 31, 589, 452, 9, 31, 57, 21, 7653, 16, 28, 306, 396, 4434, 30, 129, 44, 24821, 17...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I set the timeout of an aspx page? === Is there a way to manually increase / decrease the timeout of a specific aspx page?
0
[ 2, 184, 107, 31, 309, 14, 85, 1320, 16, 40, 28, 306, 396, 2478, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 23671, 1839, 13, 118, 9826, 14, 85, 1320, 16, 21, 1903, 28, 306, 396, 2478, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
ASP.NET Model View Presenter project structure === I am just starting a new ASP.NET project and using the MVP pattern. I did consider the MS MVC but it is not released yet and would be a big learning curve for some people on the team, so I opted for MVP now and possibly future projects MVC. Anyway, it seems I will have a single Controller/Presenter class for every webform I have it the project. This is a lot of extra classes, essentially doubling the number of files in the web project. Is this how other people structure MVP or what are the alternatives?
0
[ 2, 28, 306, 9, 2328, 1061, 1418, 9391, 669, 1411, 800, 3726, 3726, 31, 589, 114, 1422, 21, 78, 28, 306, 9, 2328, 669, 17, 568, 14, 13552, 3732, 9, 31, 144, 3563, 14, 4235, 307, 8990, 47, 32, 25, 52, 261, 768, 17, 83, 44, 21,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Probability of selecting an element from a set === The expected probability of randomly selecting an element from a set of n elements is P=1.0/n . What is the distribution type of P? It is clear that P is not normally distributed, since cannot be negative. Thus, may I correctly assume that P is [gamma distributed][1]? And if yes, what are the parameters of this distribution? Now supposed that the observed probability of selecting the given element was P* (P* != P). How can I estimate whether the bias is statistically significant? [1]: http://en.wikipedia.org/wiki/Gamma_distribution
0
[ 2, 10177, 16, 20764, 40, 4520, 37, 21, 309, 800, 3726, 3726, 14, 1727, 10177, 16, 21324, 20764, 40, 4520, 37, 21, 309, 16, 13, 103, 2065, 25, 351, 3726, 165, 9, 15928, 103, 13, 9, 98, 25, 14, 2523, 1001, 16, 351, 60, 32, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Passing messages from subclass to original WndProc === I have been reading the <a href="http://msdn.microsoft.com/en-us/library/ms997565.aspx">MSDN</a> documentation on subclassing and I have been successful in handling events in a subclass My issue is with passing messages back to the original WndProc. As an example, if I have a window, with a sub-classed groupbox control and a button as a child of that groupbox, I want to handle the button event in the original window procedure, not the subclassed groupbox procedure. Essentially, I want an empty subclass procedure: LRESULT FAR PASCAL SubClassFunc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { return CallWindowProc(oldProc, hwnd, wParam, lParam); } Where oldProc is: FARPROC oldProc = (FARPROC)SetClassLong(group_box, GCL_WDPROC, (DWORD)SubCLassFunc); And where the window and groupbox and button are: HWND window = CreateWindowEx( WS_EX_WINDOWEDGE, appname, TEXT("Subclass Test"), WS_VISIBLE |WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 300, 400, NULL, NULL, hInstance, 0); HWND group_box = CreateWindowEx( 0, TEXT("BUTTON"), TEXT("Group Box"), WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 8, 8, 275, 350, window, NULL, hInstance, 0); HWND push_button = CreateWindowEx( 0, TEXT("BUTTON"), TEXT("Push Button"), WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | BS_VCENTER, 50, 100, 100, 25, group_box, (HMENU)PUSH_BUTTON, hInstance, 0); I can handle the button events in the SubClassFunc, but what I want to do is pass them back to the window WndProc. It seems that CallWindowProc isn't doing this, or I may be totally wrong in how CallWindowProc works.
0
[ 2, 2848, 7561, 37, 972, 1898, 20, 501, 619, 706, 15617, 800, 3726, 3726, 31, 57, 74, 1876, 14, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 79, 18, 43, 103, 9, 22019, 12980, 9, 960, 118, 219, 8, 267, 118, 1210, 2559, 622, 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...
Infix format for Nemerle macro === Say I need some very special multiplication operator. It may be implemented in following macro: macro @<<!(op1, op2) { <[ ( $op1 * $op2 ) ]> } And I can use it like def val = 2 <<! 3 And its work. But what I really want is some 'english'-like operator for the DSL Im developing now: macro @multiply(op1, op2) { <[ ( $op1 * $op2 ) ]> } and if I try to use it like def val = 2 multiply 3 compiler fails with 'expected ;' error What is the problem? How can I implement this infix-format macro?
0
[ 2, 19, 18594, 2595, 26, 16714, 106, 413, 9069, 800, 3726, 3726, 395, 31, 376, 109, 253, 621, 25432, 6022, 9, 32, 123, 44, 6807, 19, 249, 9069, 45, 9069, 13, 1, 187, 5, 2594, 165, 15, 3088, 135, 6, 13, 1, 13, 1, 2558, 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...
Using Variables for Class Names in Python? === I want to know how to use variables for objects and function names in Python. In PHP, you can do this: $className = "MyClass"; $newObject = new $className(); How do you do this sort of thing in Python? Or, am I totally not appreciating some fundamental difference with Python, and if so, what is it?
0
[ 2, 568, 12157, 26, 718, 1817, 19, 20059, 60, 800, 3726, 3726, 31, 259, 20, 143, 184, 20, 275, 12157, 26, 3916, 17, 1990, 1817, 19, 20059, 9, 19, 13, 26120, 15, 42, 92, 107, 48, 45, 5579, 1898, 7259, 800, 13, 7, 915, 1898, 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...
Why doesn't the NameObjectCollectionBase class provide a way to insert objects into the collection by index? === The System.Collections.Specialized.NameObjectCollectionBase class is used extensively at my company as the basis of collection classes. (Let's not get into questioning why.) I recently came across a situation where I needed to add an object at a specific index, but the functionality wasn't there. At first I wondered why we had left that functionality out of *our* collection classes, but I soon discovered that the functionality is missing from NameObjectCollectionBase! You can access objects in the collection by index (BaseGet(int index)). You can remove objects from the collection by index (BaseRemoveAt(int index)). But you can't insert an object at a specific index. I can't think of a good reason why this functionality isn't available. Can you?
0
[ 2, 483, 1437, 22, 38, 14, 204, 23793, 15015, 872, 8436, 718, 1181, 21, 161, 20, 14692, 3916, 77, 14, 1206, 34, 4348, 60, 800, 3726, 3726, 14, 329, 9, 15015, 5757, 9, 11118, 1333, 9, 7259, 23793, 15015, 872, 8436, 718, 25, 147, 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...
.NET RegionInfo class === When I try to create a new RegionInfo with certain ISO 3166 country codes ("BD" for Bangladesh, "SO" for Somalia, "LK" for Sri Lanka), I get an ArgumentException that says it's not recognized. What's the deal? The Intellisense of RegionInfo(string) says it conforms to ISO 3166, but these country/region codes are not supported? I don't get it.
0
[ 2, 13, 9, 2328, 632, 108, 4120, 718, 800, 3726, 3726, 76, 31, 1131, 20, 1600, 21, 78, 632, 108, 4120, 29, 1200, 11899, 203, 13126, 475, 11358, 13, 5, 7, 220, 43, 7, 26, 5919, 15, 13, 7, 656, 7, 26, 17044, 15, 13, 7, 9093, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dropdowlist in Gridview footer not populating === I have the following code for populating a dropdownlist in my gridviews footer. if (!IsPostBack) { GridViewRow FooterRow = (GridViewRow)grdTime.FooterRow; if (FooterRow != null) { QuartersTableAdapter Quarters = new QuartersTableAdapter(); DropDownList ddMonStart = (DropDownList)FooterRow.FindControl("ddMonStart"); ddMonStart.DataSource = Quarters.GetQuarters(); ddMonStart.DataTextField = "QuarterHour"; ddMonStart.DataValueField = "QuarterHour"; ddMonStart.DataBind(); } } Now I have done this in another application, and it works fine, but in this instance, nothing it being bound to the dropdown list, because FooterRow is never not Null. Anyone know why footerRow may not be available? Thanks
0
[ 2, 2804, 17779, 5739, 19, 7354, 4725, 1749, 106, 52, 1675, 10038, 800, 3726, 3726, 31, 57, 14, 249, 1797, 26, 1675, 10038, 21, 2804, 2968, 5739, 19, 51, 7354, 4725, 18, 1749, 106, 9, 100, 13, 5, 187, 403, 6962, 1958, 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...
Can we use cocoa httpserver in ipad? === I want to know whether we can use cocoa http server in ipad? has anyone tried using cocoa http server in ipad? I dont want to host that as a server. The main purpose of the app is to communicate between a html file and objetive c using the cocoa server.
0
[ 2, 92, 95, 275, 24507, 7775, 10321, 106, 19, 31, 8240, 60, 800, 3726, 3726, 31, 259, 20, 143, 1472, 95, 92, 275, 24507, 7775, 8128, 19, 31, 8240, 60, 63, 1276, 794, 568, 24507, 7775, 8128, 19, 31, 8240, 60, 31, 1049, 259, 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...
getting the absolute path of a file inside several directories and subdirectories === I am supposed to get the absolute path of a file which is present in dir3. the path is C:\\Workspace\\folder1\\folder2\\file.And the only input i am supposed to provide is the name of the file and the name of the major directory in c drive i.e. Workspace. Can i get the absolute path using any inbuilt function in python. I tried using this code but it gave me erroneous results:- import os x='workspace' y='file_name' path_1=os.path.abspath("workspace/file_name") print(path_1) output:-C:\Workspace\workspace\file_name Thanks in advance
0
[ 2, 1017, 14, 7070, 2013, 16, 21, 3893, 572, 238, 559, 1596, 17, 972, 10197, 1596, 800, 3726, 3726, 31, 589, 2293, 20, 164, 14, 7070, 2013, 16, 21, 3893, 56, 25, 734, 19, 13, 9035, 240, 9, 14, 2013, 25, 272, 45, 1, 3783, 5582, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Detecting "Temporary Internet Files" folder's location with bat file and delete them === Basically I need to delete all the temporary files and I've got the following script for it. As all the locations are hard coded and not all people use the default location, I was wondering if anyone could help me with script which would be compatible with the current script that would detect all the "Temporary Internet Files" folder's locations from every profiles present and delete the unwanted. The solutaion would be a great help. Source:ht tp://ww w.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/2000/Q_20794666.html CODE: ---------------------------------------------------------------------------------------- cls SET SRC1=%SYSTEMDRIVE%\Documents and Settings SET SRC2=Local Settings\Temporary Internet Files SET SRC3=Local Settings\Temp SET SRC4=Local Settings\History SET SRC5=%SYSTEMROOT%\Temp SET SRC6=Cookies echo About to delete files from Internet Explorer "Temporary Internet files" FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC2%\*.*") DO RMDIR /S /Q "%%Y" echo About to delete files from "Local settings\temp" FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC3%\*.*") DO RMDIR /S /Q "%%Y" FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC3%\*.*") DO DEL /F /S /Q "%%Y" echo About to delete files from "Windows\Temp" cd\ %systemdrive% cd /d %SystemRoot%\temp del /F /Q *.* @echo Y|RD /S "" @echo. @echo. echo About to delete files from "Local Settings\History" FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC4%\*.*") DO DEL /F /S /Q "%%Y" FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC4%\today*.*") DO DEL /F /S /Q "%%Y" FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC4%\*.*") DO DEL /F /S /Q "%%Y" echo About to delete files from "%SYSTEMROOT%\Temp" FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC5%\*.*") DO DEL /F /S /Q "%%Y" echo About to delete files from "Cookies" FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC6%\*.*") DO DEL /F /S /Q "%%Y" @echo Please review any errors if they exist @echo. @echo. ---------------------------------------------------------------------------------------- Thank you very much in advance, Best Regards, Niraj
0
[ 2, 9092, 68, 13, 7, 24635, 2620, 6488, 7, 19294, 22, 18, 1474, 29, 3570, 3893, 17, 27448, 105, 800, 3726, 3726, 11374, 31, 376, 20, 27448, 65, 14, 4700, 6488, 17, 31, 22, 195, 330, 14, 249, 3884, 26, 32, 9, 28, 65, 14, 4095, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Only the first control is visible on my PanoramaItem WP7 === I have writted a little application in WP7 in the panorama mode. I would like to attach severals controls on my Panorama item. My problem is that i can see only my first control. Do you have an idea why ? Here is my XAML code <phone:PhoneApplicationPage x:Class="DataArbitror.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800" d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}" FontFamily="{StaticResource PhoneFontFamilyNormal}" FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="{StaticResource PhoneForegroundBrush}" SupportedOrientations="Portrait" Orientation="Portrait" shell:SystemTray.IsVisible="False" xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" xmlns:my="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps" Loaded="PhoneApplicationPage_Loaded" BackKeyPress="PhoneApplicationPage_BackKeyPress"> <!--LayoutRoot est la grille racine où tout le contenu de la page est placé--> <Grid x:Name="LayoutRoot" Background="Transparent"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <!--Contrôle Panorama--> <controls:Panorama Title="Data arbitror" Background="{x:Null}" Margin="0,15,0,-15" Grid.ColumnSpan="2"> <!--Élément un de panorama--> <controls:Panorama.TitleTemplate> <DataTemplate> <TextBlock Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" FontSize="85" Margin="0,50,0,0" /> </DataTemplate> </controls:Panorama.TitleTemplate> <controls:PanoramaItem Header="Paramètres" HeaderTemplate="{StaticResource MyPanoramaHeaderTemplate}"> <StackPanel> <TextBlock Height="43" HorizontalAlignment="Left" Margin="22,276,0,0" Name="textBlock1" Text="Désactiver les connexions de données entre" VerticalAlignment="Top" Width="401" Grid.ColumnSpan="2" /> <toolkit:TimePicker HorizontalAlignment="Left" Margin="46,325,0,0" Name="TimeBegin" VerticalAlignment="Top" /> <toolkit:TimePicker HorizontalAlignment="Left" Margin="46,429,0,0" Name="TimeEnd" VerticalAlignment="Top" /> <TextBlock Height="30" HorizontalAlignment="Left" Margin="90,396,0,0" Name="textBlock2" Text="et" VerticalAlignment="Top" /> <TextBlock Height="43" HorizontalAlignment="Left" Margin="22,547,0,0" Name="textBlock3" Text="Désactiver les connexions de données après" VerticalAlignment="Top" Width="401" Grid.ColumnSpan="2" /> <TextBox Height="72" HorizontalAlignment="Left" Margin="46,0,0,130" Name="textBoxMinutes" Text="1" VerticalAlignment="Bottom" Width="101" /> <TextBlock Height="43" HorizontalAlignment="Left" Margin="155,615,0,0" Name="textBlock4" Text="minutes d'innactivitée" VerticalAlignment="Top" Width="401" Grid.ColumnSpan="2" /> <toolkit:ToggleSwitch Margin="232,371,21,0" Header="Etat" Name="toggleSwitch1" VerticalAlignment="Top" Height="124" Width="227" SwitchForeground="#78BC27" /> <toolkit:ToggleSwitch Height="124" Header="Etat" Margin="232,0,21,12" Name="toggleSwitch2" VerticalAlignment="Bottom" Width="227" SwitchForeground="#78BC27" /> </StackPanel> <!--Liste double trait avec habillage du texte--> </controls:PanoramaItem> <!--Élément deux de panorama--> <!--Utilisez 'Orientation="Horizontal"' pour activer un panneau qui s'affiche horizontalement--> <controls:PanoramaItem Header="A propos" HeaderTemplate="{StaticResource MyPanoramaHeaderTemplate}"> <!--Liste double trait avec espace réservé pour une image et habillage du texte--> </controls:PanoramaItem> </controls:Panorama> </Grid> </phone:PhoneApplicationPage> Thanks a lot :)
0
[ 2, 104, 14, 64, 569, 25, 4560, 27, 51, 24805, 2119, 79, 13, 13790, 465, 800, 3726, 3726, 31, 57, 20127, 1427, 21, 265, 3010, 19, 13, 13790, 465, 19, 14, 24805, 3740, 9, 31, 83, 101, 20, 19514, 238, 18, 8671, 27, 51, 24805, 910...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Pyreverse(pylint) for Jython === I am trying to use pylint to generate uml diagramms for jython code. If I run it on plain python code, everything runs fine, however once I try to run it on code containing swing imports it crashes with an error message. I am running pylint on python(!) in Jython it wont run (2.7.2a). How do I get pylint (in particular pyreverse) to run? currently It writes out all filenames and then fails (I suspect because it can't inspect the java pacakges (swing) how do I fix this? **Errormessage**: Traceback (most recent call last): File "/usr/bin/pyreverse", line 4, in <module> main.Run(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/pylint/pyreverse/main.py", line 126, in __init__ PyreverseCommand(args) File "/usr/lib/python2.7/dist-packages/pylint/pyreverse/main.py", line 98, in __init__ self.run(args) File "/usr/lib/python2.7/dist-packages/pylint/pyreverse/main.py", line 112, in run diadefs = handler.get_diadefs(project, linker) File "/usr/lib/python2.7/dist-packages/pylint/pyreverse/diadefslib.py", line 228, in get_diadefs diagrams = DefaultDiadefGenerator(linker, self).visit(project) File "/usr/lib/python2.7/dist-packages/logilab/astng/utils.py", line 103, in visit self.visit(local_node) File "/usr/lib/python2.7/dist-packages/logilab/astng/utils.py", line 100, in visit methods[0](node) File "/usr/lib/python2.7/dist-packages/pylint/pyreverse/diadefslib.py", line 161, in visit_module self.linker.visit(node) File "/usr/lib/python2.7/dist-packages/logilab/astng/utils.py", line 103, in visit self.visit(local_node) File "/usr/lib/python2.7/dist-packages/logilab/astng/utils.py", line 100, in visit methods[0](node) File "/usr/lib/python2.7/dist-packages/logilab/astng/inspector.py", line 257, in visit_from fullname = get_module_part(fullname) File "/usr/lib/python2.7/dist-packages/logilab/common/modutils.py", line 334, in get_module_part 'explicit relative import, but no context_file?' AssertionError: explicit relative import, but no context_file?
0
[ 2, 7103, 99, 9453, 5, 6448, 1226, 38, 6, 26, 487, 93, 11570, 800, 3726, 3726, 31, 589, 749, 20, 275, 7103, 1226, 38, 20, 7920, 13, 723, 255, 14161, 79, 18, 26, 487, 93, 11570, 1797, 9, 100, 31, 485, 32, 27, 3748, 20059, 1797, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
GWT work with com port === How work with com port in GWT. comm.java it's function for write on com port package com.hell.server; import jssc.SerialPort; import jssc.SerialPortException; public class comm { public String writeHelloString(String portName) { SerialPort serialPort = new SerialPort("COM5"); try { serialPort.openPort(); serialPort.setParams(SerialPort.BAUDRATE_9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); serialPort.writeBytes(portName.getBytes()); @SuppressWarnings("unused") byte[] buffer = serialPort.readBytes(10); serialPort.closePort(); } catch (SerialPortException ex) { // System.out.println(ex); } return "dsada"; } } func of the server. public String greetServer(String input) throws IllegalArgumentException { comm A = new comm(); A.writeHelloString("$KE"); return input; } interface of the GWT client to server: @RemoteServiceRelativePath("greet") public interface GreetingService extends RemoteService { String greetServer(String name) throws IllegalArgumentException; } It's correct???????!!! does not work and there are many errors...
0
[ 2, 14094, 38, 170, 29, 13, 960, 1295, 800, 3726, 3726, 184, 170, 29, 13, 960, 1295, 19, 14094, 38, 9, 11951, 9, 1004, 1385, 32, 22, 18, 1990, 26, 2757, 27, 13, 960, 1295, 6030, 13, 960, 9, 11239, 9, 10321, 106, 73, 9010, 487, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP Create and delete cookies using query strings === I have the following two links: <a href="index.php?showDesktop=true">Show Desktop</a> <a href="index.php?showMobile=true">Show Mobile</a> What I want to do is make it so that if the showDesktop query is clicked then create a cookie called showDesktop and delete the cookie showMobile and the vice-versa. I have tried the following so far, but think I'm doing it wrong. Can anyone help me get this working as proposed. if($_GET['showDesktop']) { $_COOKIE('showDesktop', 'yes'); $_COOKIE('showMobile', null); } else if($_GET['showMobile']) { $_COOKIE('showDesktop', null); $_COOKIE('showMobile', 'yes'); }
0
[ 2, 13, 26120, 1600, 17, 27448, 19396, 568, 25597, 7887, 800, 3726, 3726, 31, 57, 14, 249, 81, 6271, 45, 13, 1, 58, 746, 14057, 3726, 7, 25671, 9, 26120, 60, 9303, 3196, 197, 3880, 3726, 13398, 7, 1, 9303, 17404, 1, 118, 58, 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...
Change session timeout for netbeans-embedded grails === I'm running a grails 1.3.9 application in Netbeans 7.1.1 IDE, and would like to decrease the session timeout for testing purposes. My prolem is I can't find a server.xml file under neither the NetBeansProjects nor the NetBeans folders. Is it located elsewhere or is it named differently ? Thanks
0
[ 2, 753, 3723, 85, 1320, 26, 4275, 863, 5950, 8, 1503, 4283, 7424, 489, 7301, 18, 800, 3726, 3726, 31, 22, 79, 946, 21, 489, 7301, 18, 137, 9, 240, 9, 518, 3010, 19, 4275, 863, 5950, 453, 9, 165, 9, 165, 13, 3448, 15, 17, 83,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
XSL Tranformation to split a single node into two nodes in the same level === I have a source xml <Cars> <Car> <Make>Fiat</Make> <Colors> <Color>RED</Color> <Color>BLUE</Color> </Colors> </Car> <Car> <Make>Volvo</Make> <Colors> <Color>RED</Color> <Color>WHITE</Color> </Colors> </Car> <Car> <Make>Renault</Make> <Colors> <Color>BLUE</Color> <Color>BLACK</Color> </Colors> </Car> </Cars> which I want to transform into something like <Cars> <Detail> <Name>MakeName</Name> <Entry>Fiat</Entry> <Entry>Volvo</Entry> <Entry>Renault</Entry> </Detail> <Detail> <Name>AvailableColors</Name> <Entry>RED</Entry> <Entry>BLUE</Entry> <Entry>WHITE</Entry> <Entry>BLACK</Entry> </Detail> <Cars> i am new to xsl and created one todo half of processing but an stuck with the getting colors as seperate element in target <xsl:template match="/"> <Cars> <xsl:apply-templates /> </Cars> </xsl:template> <xsl:template match="Cars"> <xsl:apply-templates select="Car" /> </xsl:template> <xsl:template match="Car"> <Detail> <Name>MakeName</Name> <xsl:apply-templates select="Make" /> </Detail> </xsl:template> <xsl:template match="Make"> <Entry><xsl:value-of select"text()"/></Entry> </xsl:template> I am not able to create xsl for <Name>AvailableColors</Name>, I am quite new to xsl and any help is greatly appreciated
0
[ 2, 993, 18, 255, 12748, 4190, 857, 20, 2132, 21, 345, 15421, 77, 81, 16272, 19, 14, 205, 662, 800, 3726, 3726, 31, 57, 21, 1267, 23504, 13, 1, 1367, 18, 1, 13, 1, 1367, 1, 13, 1, 11115, 1, 1707, 721, 1, 118, 11115, 1, 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...
copy files from one solaris 9 to another using java === How to copy file(s) from one solaris 9 machine to another solaris 9 machine using only java? We have ssh access to both machines. The java program will run on one of those two machines.
0
[ 2, 4344, 6488, 37, 53, 4535, 403, 561, 20, 226, 568, 8247, 800, 3726, 3726, 184, 20, 4344, 3893, 5, 18, 6, 37, 53, 4535, 403, 561, 1940, 20, 226, 4535, 403, 561, 1940, 568, 104, 8247, 60, 95, 57, 13, 18, 1635, 1381, 20, 156, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Perl ADO thinks printed output in stored procedure is error! === First of all (in case this is important) I'm using ActiveState's Perl (v5.8.7 built for MSWin32-x86-multi-thread). I've just emerged from a 3-hours long debugging session, trying to find the source of an error until I found there was simply no error, but for some reason ADO's connection object was getting the Errors.Count increased with each printed message in my stored procedure's output. Consider following Transact SQL code: CREATE PROCEDURE dbo.My_Sample() AS BEGIN TRAN my_tran -- Does something useful if @@error <> 0 BEGIN ROLLBACK TRAN my_tran RAISERROR( 'SP My_Sample failed', 16, 1) END ELSE BEGIN COMMIT TRAN my_tran PRINT 'SP My_Sample succeeded' END Now imagine a Perl sub more or less like: sub execute_SQL { # $conn is an already opened ADO connection object # pointing to my SQL Server # $sql is the T-SQL statement to be executed my($conn, $sql) = @_; $conn->Execute($sql); my $error_collection = $conn->Errors(); my $ecount = $error_collection->Count; if ($ecount == 0 ) { return 0; } print "\n" . $ecount . " errors found\n"; print "Executed SQL Code:\n$sql\n\n"; print "Errors while executing:\n"; foreach my $error (in $error_collection){ print "Error: [" . $error->{Number} . "] " . $error->{Description} . "\n"; } return 1; } Somewhere else, in the main Perl code, I'm calling the above sub as: > execute\_SQL( $conn, 'EXEC dbo.My_Sample' ); In the end I got it that *every* PRINT statement causes a new pseudo-error to be appended to the ADO Errors collection. The quick fix I implemented was to change that PRINT in the SP into a SELECT, to bypass this. The questions I'd like to ask are: - Is this behaviour normal? - Is there a way to avoid/bypass it?
0
[ 2, 416, 255, 21, 537, 7973, 5317, 5196, 19, 8214, 7004, 25, 7019, 187, 800, 3726, 3726, 64, 16, 65, 13, 5, 108, 610, 48, 25, 681, 6, 31, 22, 79, 568, 1348, 3859, 22, 18, 416, 255, 13, 5, 710, 264, 9, 457, 9, 465, 392, 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...
Swf object doesn't seem to work inside a Blogger post === Any ideas why? On the following link, where it says "So..." there should be an embedded swf. http://blog.iainlobb.com/2008/10/wrong-door-creating-papervision3d.html
0
[ 2, 13, 18, 15263, 3095, 1437, 22, 38, 2260, 20, 170, 572, 21, 24350, 678, 800, 3726, 3726, 186, 3478, 483, 60, 27, 14, 249, 3508, 15, 113, 32, 898, 13, 7, 656, 9, 9, 9, 7, 80, 378, 44, 40, 12138, 13, 18, 15263, 9, 7775, 69...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Do Spring.NET and Common.Logging XML schemas (XSD) exist? === [Spring.NET][1] 1.2.0 M1 comes with several XSD files for the &lt;objects&gt; node, database stuff, etc. However, it is an incomplete collection because it does not seem to include &lt;spring&gt; (used in `App.config`), &lt;context&gt;, or &lt;parsers&gt; elements. Additionally, [Common.Logging][2] doesn't appear to have *any* XSD's included in the source or distribution. We'd like to have these so that Visual Studio won't complain about them on compile time when it validates the `App.config`. It's nice having the schemas in place, because of the compile-time check which helps you find XML bugs *before* your program throws up in Spring. Do these exist anywhere / are in development or, alternatively, has anyone written some themselves? On the same token, has anyone seen/resolved the following message? > Could not find schema information for the attribute > 'http://schemas.microsoft.com/Visual-Studio-Intellisense:friendlyname' > (spring-objects-1.1.xsd) [1]: http://www.springframework.net/ [2]: http://netcommon.sourceforge.net/
0
[ 2, 107, 1573, 9, 2328, 17, 757, 9, 13919, 23504, 23874, 18, 13, 5, 396, 18, 43, 6, 3182, 60, 800, 3726, 3726, 636, 15827, 9, 2328, 500, 2558, 165, 500, 137, 9, 135, 9, 387, 307, 165, 1624, 29, 238, 993, 18, 43, 6488, 26, 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...
Access - What's wrong with this query... === I'm trying to get a query working that takes the values (sometimes just the first part of a string) from a form control. The problem I have is that it only returns records when the full string is typed in. i.e. in the surname box, I should be able to type gr, and it brings up green grey graham but at present it's not bringing up anything uless the full search string is used. There are 4 search controls on the form in question, and they are only used in the query if the box is filled in. The query is : SELECT TabCustomers.*, TabCustomers.CustomerForname AS NameSearch, TabCustomers.CustomerSurname AS SurnameSearch, TabCustomers.CustomerDOB AS DOBSearch, TabCustomers.CustomerID AS MemberSearch FROM TabCustomers WHERE IIf([Forms]![FrmSearchCustomer]![SearchMember] Is Null ,True ,[Forms]![FrmSearchCustomer]![SearchMember]=[customerid])=True AND IIf([Forms]![FrmSearchCustomer].[SearchFore] Is Null ,True ,[Forms]![FrmSearchCustomer]![SearchFore] Like [customerforname] & "*")=True AND IIf([Forms]![FrmSearchCustomer]![SearchLast] Is Null ,True ,[Forms]![FrmSearchCustomer]![SearchLast] Like [customersurname] & "*")=True AND IIf([Forms]![FrmSearchCustomer]![Searchdate] Is Null ,True ,[Forms]![FrmSearchCustomer]![Searchdate] Like [customerDOB] & "*")=True;
0
[ 2, 1381, 13, 8, 98, 22, 18, 1389, 29, 48, 25597, 9, 9, 9, 800, 3726, 3726, 31, 22, 79, 749, 20, 164, 21, 25597, 638, 30, 1384, 14, 4070, 13, 5, 9310, 114, 14, 64, 141, 16, 21, 3724, 6, 37, 21, 505, 569, 9, 14, 1448, 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...
Double buffering problem of a derived owner-drawn TabControl? === I have derived a TabControl with the express purpose of enabling double buffering, except nothing is working as expected. Here is the TabControl code: class DoubleBufferedTabControl : TabControl { public DoubleBufferedTabControl() : base() { this.DoubleBuffered = true; this.SetStyle ( ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer | ControlStyles.SupportsTransparentBackColor, false ); } } This Tabcontrol is then set with it's draw mode as 'OwnerDrawnFixed' so i can changed the colours. Here is the custom drawing method: private void Navigation_PageContent_DrawItem(object sender, DrawItemEventArgs e) { //Structure. Graphics g = e.Graphics; TabControl t = (TabControl)sender; TabPage CurrentPage = t.TabPages[e.Index]; //Get the current tab Rectangle CurrentTabRect = t.GetTabRect(e.Index); //Get the last tab. Rectangle LastTab = t.GetTabRect(t.TabPages.Count - 1); //Main background rectangle. Rectangle BackgroundRect = new Rectangle(LastTab.Width, t.Bounds.Y - 4, t.Width - (LastTab.Width), t.Height); //Tab background rectangle. Rectangle TabBackgroundRect = new Rectangle(0, LastTab.Y + LastTab.Height, LastTab.Width, t.Bounds.Height - (LastTab.Y + LastTab.Height)); //Set anitialiasing for the text. e.Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; //String format for the text. StringFormat StringFormat = new StringFormat(); StringFormat.Alignment = StringAlignment.Center; StringFormat.LineAlignment = StringAlignment.Center; //Fill the background. g.FillRectangle(Brushes.LightGray, BackgroundRect); g.FillRectangle(Brushes.Bisque, TabBackgroundRect); //Draw the selected tab. if(e.State == DrawItemState.Selected) { g.FillRectangle(Brushes.White, e.Bounds); Rectangle SelectedTabOutline = new Rectangle(e.Bounds.X + 2, e.Bounds.Y + 2, e.Bounds.Width, e.Bounds.Height - 4); g.DrawRectangle(new Pen(Brushes.LightGray, 4f), SelectedTabOutline); g.DrawString(CurrentPage.Text, new Font("Arial", 12f, FontStyle.Bold, GraphicsUnit.Point), new SolidBrush(Color.FromArgb(70, 70, 70)), CurrentTabRect, StringFormat); } else { g.FillRectangle(new SolidBrush(Color.FromArgb(230, 230, 230)), e.Bounds); g.DrawString(CurrentPage.Text, new Font("Arial", 12f, FontStyle.Regular, GraphicsUnit.Point), Brushes.Gray, CurrentTabRect, StringFormat); } } All to no avail however, as this control is not double buffered and still flickers when resized. **Any ideas?**
0
[ 2, 1494, 17497, 68, 1448, 16, 21, 3981, 2410, 8, 19950, 6523, 12898, 60, 800, 3726, 3726, 31, 57, 3981, 21, 6523, 12898, 29, 14, 2999, 2131, 16, 13168, 1494, 17497, 68, 15, 1613, 626, 25, 638, 28, 1727, 9, 235, 25, 14, 6523, 128...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Awesomebar-like behavior with Windows Forms === I'm trying to make a combo box that behaves somewhat like the Firefox 3 Awesomebar, with the following behavior: 1. Type in text 2. Asynchronously bring back results 3. Up and down selects results in the list, **BUT** leaves the text that was typed in the entry box so the user can continue editing to limit the resultset differently 4. Enter fires an event that the parent form will handle I have the asynchronous results and filtering all working, but I don't have a good method for displaying and selecting within the results. A combo box automatically fills the entry box with what is selected when you arrow down. Fails #3. I've got the DevExpress controls, but their combo box does the same thing and I can't figure out how to override either. A LookupEdit does not allow typing arbitrary stuff. Neither does a PopupContainerEdit. I want behavior that's like a textbox with a listbox below it, and up/down events in the textbox get passed to the listbox. But if I try to make a custom control that combines the two like that, I have no clue how to "float" the listbox like the dropdown on a normal combo box. Clues much appreciated!
0
[ 2, 13706, 1850, 8, 1403, 3257, 29, 1936, 1997, 800, 3726, 3726, 31, 22, 79, 749, 20, 233, 21, 22621, 1649, 30, 14149, 18, 4131, 101, 14, 535, 18219, 203, 13706, 1850, 15, 29, 14, 249, 3257, 45, 137, 9, 1001, 19, 1854, 172, 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...
Linux Programming environment configuration. === The other day I set up an unbuntu installation in a VM and went to gather the tools and libraries I figured I would need for programming moslty in C++. I had a problem though, where to put things such as 3rd party source libraries, etc. From what I can gather, a lot of source distributions assume that a lot of their dependancies are already installed in a certain location and assume that a lot of tools are also installed in particular locations. To give an example of what I currently do on windows, is I have a directory where I keep all source code. C:\code. In this directory, I have a directory for all 3rd party libraries, c:\code\thirdparty\libs. This way I can easily set up relative paths for all of the dependancies of any projects I write or come across and wish to compile. The reason I am interested in setting up a linux programming environment is that it seems that both the tool and library dependancy problems have been solved efficiently making it easy for example to build OpenSSH from source. So what I was looking for was a decent convetion I can use when I am trying to ogranize my projects and libraries on linux that is easy to maintain and easy to use.
0
[ 2, 13024, 3143, 2307, 8091, 9, 800, 3726, 3726, 14, 89, 208, 31, 309, 71, 40, 367, 12968, 2473, 7758, 19, 21, 13, 20147, 17, 296, 20, 7442, 14, 4672, 17, 8649, 31, 5700, 31, 83, 376, 26, 3143, 7641, 255, 1084, 19, 272, 20512, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
using Is keyword in a switch in c# === I'm currently adding some ne extended classes to this code: foreach (BaseType b in CollectionOfExtenedTypes) { if (b is ExtendedType1) { ((ExtendedType1) b).foo = this; } else if (b is ExtenedType2) { ((ExtenedType2) b).foo = this; } else { b.foo = this; } } and was curious if there is a was to use the `is` keyword functionality in a switch statement?
0
[ 2, 568, 25, 1246, 9587, 19, 21, 5521, 19, 272, 5910, 800, 3726, 3726, 31, 22, 79, 871, 4721, 109, 2836, 1984, 2684, 20, 48, 1797, 45, 26, 14322, 13, 5, 8436, 4474, 334, 19, 1206, 1041, 1706, 1316, 69, 4474, 18, 6, 13, 1, 100, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 an uninterruptable process? === Sometimes whenever I write a program in Linux and it crashes due to a bug of some sort, it will become an uninterruptable process and continue running forever until I restart my computer (even if I log out). My questions are: - What causes a process to become uninterruptable? - How do I stop that from happening? - This is probably a dumb question, but is there any way to interrupt it without restarting my computer?
0
[ 2, 98, 25, 40, 367, 6280, 7964, 5924, 953, 60, 800, 3726, 3726, 1030, 6634, 31, 2757, 21, 625, 19, 13024, 17, 32, 21563, 397, 20, 21, 6256, 16, 109, 2058, 15, 32, 129, 533, 40, 367, 6280, 7964, 5924, 953, 17, 1816, 946, 3818, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Developing ArcMap extension .Net books? === We have 2 new GIS programmer/analyst in our department (new to programming and ArcObjects) and I don't feel I'm qualified enough or have the time to teach them. So I'm looking for entry level books/tutorials for them to use as reference. The only books I can find for developing Extensions for ArcMap are written for VBA. Besides the ESRI course books you get from training in Redlands, does anybody know of good sources for learning to code against ArcObjects in .Net? Thanks
4
[ 2, 3561, 4686, 15022, 3896, 13, 9, 2328, 964, 60, 800, 3726, 3726, 95, 57, 172, 78, 16004, 17968, 118, 1629, 102, 384, 19, 318, 604, 13, 5, 2681, 20, 3143, 17, 4686, 23793, 18, 6, 17, 31, 221, 22, 38, 583, 31, 22, 79, 3135, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to escape a CDATA end token in xml? === I was wondering if there is some way to escape a CDATA end token ( ]]> ) within a CDATA section in an xml document. Or, more generally, if there is some escape sequence for using within a CDATA (but if it exists, I guess it'd probably only make sense to escape begin or end tokens, anyway). Basically, can you have a begin or end token embedded in a CDATA and tell the parser not to interpret it but to treat it as just another character sequence. Probably, you should just refactor your xml structure or your code if you find yourself trying to do that, but even though I've been working with xml on a daily basis for the last 3 years or so and I have never had this problem, I was wondering if it was possible. Just out of curiosity.
0
[ 2, 25, 80, 21, 161, 20, 2220, 21, 1745, 4375, 241, 20, 2853, 19, 23504, 60, 800, 3726, 3726, 31, 23, 5712, 100, 80, 25, 109, 161, 20, 2220, 21, 1745, 4375, 241, 20, 2853, 13, 5, 13, 500, 500, 1, 13, 6, 363, 21, 1745, 4375, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Svn Blame in Eclipse === I discover yesterday the SVN blame feature and I was wondering, Is this feature avaliable from eclipse? Thanks,
0
[ 2, 13, 18, 16578, 6149, 19, 11652, 800, 3726, 3726, 31, 6297, 7124, 14, 13, 18, 16578, 6149, 1580, 17, 31, 23, 5712, 15, 25, 48, 1580, 21, 18506, 579, 37, 11652, 60, 3669, 15, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Cleanest way to dynamically call a non static method from a non static class? === I am looking for the cleanest way. I am tempted to use delegates not sure though.
0
[ 2, 2745, 1430, 161, 20, 7782, 1326, 645, 21, 538, 12038, 2109, 37, 21, 538, 12038, 718, 60, 800, 3726, 3726, 31, 589, 699, 26, 14, 2745, 1430, 161, 9, 31, 589, 19012, 20, 275, 10845, 52, 562, 362, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Internal DNS configuration woes === Alright, I am going to state up front that this question may be too involved (amount of detail not complexity) for this medium. But I figured this was the best place to start. I am attempting to setup a proof of concept project and my BIND configuration is my first big hurdle. I want to setup 3 DNS servers on 3 physical boxes. **None** of these boxes needs to resolve public addresses, this is internal **only**. I have read through how to setup internal roots in the (mostly) excellent DNS & BIND 5th ed book. But my translation of their example is not functional. All IP's are RFC 1918 non-routable. Box 1 will be authoritative for addresses on the *box1.bogus* domain, and Box 2 will be authoritative for addresses on the *box2.bogus* domain. Box 3 will act as both an internal root and the TLD server for the domain *bogus*. Current unresolved issues: - I have a hints file on box 1 and 2 that contains a single **NS** record to the NS definition of the root zone. Additionally there is an **A** record that translates the NS to the ip of the root. if I `dig .` from box 1 I get an *authority* Section with the NS name, not an *answer* and *additional* record section. Therefore I am unable to actually resolve the IP of the root server from box 1. - If I point my `/etc/resolv.conf` from box 1 directly at the root server and do a `dig box1.bogus` I get the ns.box1.bogus *answer* record and the translation in the *additional* section. However on the next iteration (when should get the A record) I get `dig: couldn't get address for ns.box1.bogus` Obviously my configs are **not** correct. I don't see a way to attach them to this post, so if people want to walk through this step by step I will cut'n'paste them into a comment for this question. Otherwise I am open to taking this 'offline' with a "DNS guy" to figure out where I'm missing a '.' or have one too many! I personally think the web could do with another internal root example that doesn't make use of the Movie-U example.
2
[ 2, 3117, 13, 43, 2172, 8091, 4808, 160, 800, 3726, 3726, 11885, 15, 31, 589, 228, 20, 146, 71, 431, 30, 48, 1301, 123, 44, 266, 1013, 13, 5, 58, 9780, 16, 6110, 52, 12745, 6, 26, 48, 4152, 9, 47, 31, 5700, 48, 23, 14, 246, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Converting a sed string to PHP === I have a regexp I'm using with sed, but now I need to make it work in PHP also. I can't use system calls as they are disabled. <pre> $ cat uglynumber.txt: Ticket number : 303905694, FOO:BAR:BAR: Some text Case ID:123,456,789:Foobar - Some other text 303867970;[FOOBAR] Some text goes here Case Ref: 303658850 - Some random text here - host.tld #78854w </pre> <pre> $ cat uglynumbers.txt | sed "s/[, ]//g;s/.*\([0-9]\{9\}\).*/\1/g" 303905694 123456789 303867970 303658850 </pre> So, how to do the same with PHP? I found one example like this, but I can't inject that regexp into that. <pre> if (preg_match("/.../", $line, $matches)) { echo "Match was found"; echo $matches[0]; } </pre> Please help. -Samuli
0
[ 2, 19583, 21, 13924, 3724, 20, 13, 26120, 800, 3726, 3726, 31, 57, 21, 7953, 6899, 31, 22, 79, 568, 29, 13924, 15, 47, 130, 31, 376, 20, 233, 32, 170, 19, 13, 26120, 67, 9, 31, 92, 22, 38, 275, 329, 3029, 28, 59, 50, 10154, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Git: Which commit has this blob? === Given the hash of a blob, is there a way to get a list of commits that have this blob in their tree?
0
[ 2, 13, 10404, 45, 56, 9686, 63, 48, 334, 10904, 60, 800, 3726, 3726, 504, 14, 19170, 16, 21, 334, 10904, 15, 25, 80, 21, 161, 20, 164, 21, 968, 16, 9686, 18, 30, 57, 48, 334, 10904, 19, 66, 1541, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
c# locking === I am trying to prevent data races in a multihreaded server. My problem is the following: there is a `List<RServer>`, the type `RServer` is a class with several fields. Now, the server has several threads all running at the same time and they can modify both the `List` (adding more items) and the individual `RServer` instances (changing the fields). So my strategy is to make a `readonly object RServerLock = new object( )` in each of the `RServer` instances and additionally a `readonly object RServerListLock = new object( )` and enclose all the code that modifies either (the `List` or a `RServer` instance) in a `lock`. Is this safe? What happens if a thread tries to lock a `RServerLock` *while* another one is locking it?
0
[ 2, 272, 5910, 17538, 800, 3726, 3726, 31, 589, 749, 20, 2501, 1054, 2312, 19, 21, 1889, 252, 10647, 69, 8128, 9, 51, 1448, 25, 14, 249, 45, 80, 25, 21, 13, 1, 5739, 1, 139, 10321, 106, 1, 15, 14, 1001, 13, 1, 139, 10321, 106...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using Ruby-based MySQL adaptor when the C MySQL gem is already installed? === Well this is incredibly frustrating. After being nagged by Rails that I need to install the C-based MySQL adaptor, I did so... and then discovered that it won't work with MySQL under version 6. Now 'gem uninstall mysql' results in 'unknown gem mysql'. I just spent half an hour trying to get the thing to install in the first place (by juggling all the "where the hell is my config file, anyway?" type of options). Anyway, I can't find hints anywhere on how to use the ORIGINAL MySQL adaptor now that I've discovered that it's either that or an upgrade to MySQL 6, which I don't want to do since I'm using an XAMPP package that works very nicely already (This is on my local box for testing, this is not a dev or production server issue. I'll deal with that later.) So how do I either make sure Rails uses the built in version (using command line options?) OR remove the MySQL gem? (Optional third option: Suck it up and upgrade my local copy of MySQL.)
0
[ 2, 568, 10811, 8, 1281, 51, 18, 22402, 9924, 248, 76, 14, 272, 51, 18, 22402, 8551, 25, 614, 4066, 60, 800, 3726, 3726, 134, 48, 25, 13003, 25568, 9, 75, 142, 1775, 15186, 34, 2240, 18, 30, 31, 376, 20, 16146, 14, 272, 8, 1281...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# - Optimising binary serialization for multi-dimensional generic arrays === I have a class that I need to binary serialize. The class contains one field as below: private T[,] m_data; These multi-dimensional arrays can be fairly large (hundreds of thousands of elements) and of any primitive type. When I tried standard .net serialization on an object the file written to disk was large and I think .net is storing a lot of repeated data about element types and possibly not as efficiently as could be done. I have looked around for custom serializers but have not seen any that deal with multi-dimensional generic arrays. I have also experimented with built-in .net compression on a byte array of the memory stream following serializing with some success, but not as quick / compressed as I had hoped. My question is, should I try and write a custom serializer to optimally serialize this array for the appropriate type (this seems a little daunting), or should I use standard .net serialization and add compression? Any advice on the best approach would be most appreciated, or links to resources showing how to tackle serialization of a multi-dimensional generic array - as mentioned [existing examples](http://www.codeproject.com/KB/dotnet/FastSerializer.aspx) I have found do not support such structures.
0
[ 2, 272, 5910, 13, 8, 19259, 7552, 14171, 5956, 1829, 26, 1889, 8, 7865, 12733, 7718, 18, 800, 3726, 3726, 31, 57, 21, 718, 30, 31, 376, 20, 14171, 5956, 2952, 9, 14, 718, 1588, 53, 575, 28, 1021, 45, 932, 13, 38, 2558, 15, 500...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Recovering VBA password for Access 2000 file === It's the usual story, Access 2000 file created by former employee who protected the VBA code with a password. Now, some time later, the VBA code needs to be changed and we're unable to extract the password from the former employee. Searching online gives dozens of tools claiming to recover VBA passwords, but they have a wiff of Trojan about them. What success have you had with recovering a VBA password? Recommend any tools? Know of any free tools?
0
[ 2, 15135, 566, 969, 20884, 26, 1381, 824, 3893, 800, 3726, 3726, 32, 22, 18, 14, 3820, 609, 15, 1381, 824, 3893, 679, 34, 336, 7362, 72, 3803, 14, 566, 969, 1797, 29, 21, 20884, 9, 130, 15, 109, 85, 138, 15, 14, 566, 969, 1797...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I pass an anonymous type to my ASP.NET MVC view? === I've just started working with ASP.NET MVC now that it's in beta. In my code, I'm running a simple LINQ to SQL query to get a list of results and passing that to my view. This sort of thing: var ords = from o in db.Orders where o.OrderDate == DateTime.Today select o; return View(ords); However, in my View, I realised that I'd need to access the customer's name for each order. I started using `o.Customer.Name` but I'm fairly certain that this is executing a separate query for each order (because of LINQ's lazy loading). The logical way to cut down the number of queries would be to select the customer name at the same time. Something like: var ords = from o in db.Orders from c in db.Customers where o.OrderDate == DateTime.Today and o.CustomerID == c.CustomerID select new { o.OrderID, /* ... */, c.CustomerName }; return View(ords); Except now my "ords" variable is an IEnumerable of an anonymous type. Is it possible to declare an ASP.NET MVC View in such a way that it accepts an IEnumerable<T> as its view data where T is defined by what gets passed from the controller, or will I have to define a concrete type to populate from my query?
0
[ 2, 92, 31, 1477, 40, 10364, 1001, 20, 51, 28, 306, 9, 2328, 307, 8990, 1418, 60, 800, 3726, 3726, 31, 22, 195, 114, 373, 638, 29, 28, 306, 9, 2328, 307, 8990, 130, 30, 32, 22, 18, 19, 8434, 9, 19, 51, 1797, 15, 31, 22, 79,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# .NET - Stream DataSet (of XML data) to ZIP file? === I have a DataSet consisting of XML data, I can easily output this to a file: <code> DataSet ds = new DataSet(); DataTable dt = new DataTable(); ds.Tables.Add(dt); ds.Load(reader, LoadOption.PreserveChanges, ds.Tables[0]); ds.WriteXml("C:\\test.xml"); </code> However what I want to do is compress the XML into a ZIP or other type of compressed file and then just save this file to disk while splitting the ZIP file into 1MB chunks. I do not really want to save the uncompressed file, and then zip it, then split it. **What I'm looking for specifically is:** 1. a suitable compression library that I can stream the XML to and have the zip file(s) saved to disk 2. some sample C# code that can show me how to do this.
0
[ 2, 272, 5910, 13, 9, 2328, 13, 8, 3766, 1054, 3554, 13, 5, 1041, 23504, 1054, 6, 20, 12133, 3893, 60, 800, 3726, 3726, 31, 57, 21, 1054, 3554, 4160, 16, 23504, 1054, 15, 31, 92, 2351, 5196, 48, 20, 21, 3893, 45, 13, 1, 9375, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Preventing browser timeout on large file uploads === I have a nice little file upload control I wrote for ASP.NET webforms that utilizes an IFrame and ASP.NET AJAX. However, on large uploads, the browser times out before it can finish posting the form. Is there a way I can increase this? I'm not really interesting in alternative solutions, so don't suggest changing the entire thing out please. It works good for <5 meg uploads, I'd just like to get it up to about 8mb.
0
[ 2, 11520, 16495, 85, 1320, 27, 370, 3893, 71, 8294, 18, 800, 3726, 3726, 31, 57, 21, 2210, 265, 3893, 71, 8294, 569, 31, 738, 26, 28, 306, 9, 2328, 2741, 4190, 18, 30, 13151, 18, 40, 31, 8361, 17, 28, 306, 9, 2328, 20624, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do .NET sites hide .aspx extension of their files? === I'm pretty sure stackoverflow.com is created with ASP.NET, but no matter where I click I see no .aspx extension in the address bar. How it is done and is there a particular reason for this?
0
[ 2, 184, 107, 13, 9, 2328, 3259, 3077, 13, 9, 472, 306, 396, 3896, 16, 66, 6488, 60, 800, 3726, 3726, 31, 22, 79, 1772, 562, 7566, 2549, 9990, 9, 960, 25, 679, 29, 28, 306, 9, 2328, 15, 47, 90, 1161, 113, 31, 10840, 31, 196, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...