unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Missing/desired features in Visual C++ === I can't find another topic where this has already been asked, so I'm starting one... if there is one, feel free to link it and close this. What feature do you feel is most missing from Visual C++? Microsoft has been adding nice features for C#/VB.NET development for the last couple versions, but C++ has felt a bit neglected. I don't have much experience with other IDE's, but there must be some advances in C++ IDE development in the last five years that people like. I'm very curious what people think are the most glaring lacking features missing from Visual C++. Notes: - No, I don't work for MS, I just use their stuff a lot, and want to see it get better - This is specific to native C++ development, although I suppose C++/CLI should be fair game too - Feel free to add multiple features as separate entries; that way people can vote up things they find the most lacking
4
[ 2, 2863, 118, 3196, 49, 2095, 967, 19, 3458, 272, 20512, 800, 3726, 3726, 31, 92, 22, 38, 477, 226, 8303, 113, 48, 63, 614, 74, 411, 15, 86, 31, 22, 79, 1422, 53, 9, 9, 9, 100, 80, 25, 53, 15, 583, 551, 20, 3508, 32, 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 you test runtime of VBA code? === Is there code in VBA I can wrap a function with that will let me know the time it took to run, so that I can compare the different running times of functions?
0
[ 2, 184, 107, 42, 1289, 485, 891, 16, 566, 969, 1797, 60, 800, 3726, 3726, 25, 80, 1797, 19, 566, 969, 31, 92, 8118, 21, 1990, 29, 30, 129, 408, 55, 143, 14, 85, 32, 199, 20, 485, 15, 86, 30, 31, 92, 11590, 14, 421, 946, 43...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What is the best way to display and edit a large array of hex data in WinForms? === I am looking to display an array from 128 to 512 bytes in size of hexadecimal data (0x00 to 0xFF) in a 16 X n grid-like display. It needs the capability of selecting a single element or group of elements and highlighting the data in some way. It also needs to allow editing. I'm writing this in C# 3,5 using Winforms. I'm considering some kind of rich text box or just an array of small textboxes, but neither idea is without its drawbacks. Is there a free spreadsheet-like custom control that makes sense, or am I going to have to roll my own. Any ideas would be appreciated.
0
[ 2, 98, 25, 14, 246, 161, 20, 3042, 17, 9392, 21, 370, 7718, 16, 24, 396, 1054, 19, 628, 4190, 18, 60, 800, 3726, 3726, 31, 589, 699, 20, 3042, 40, 7718, 37, 13218, 20, 331, 918, 34, 3231, 19, 1072, 16, 24, 6791, 9522, 49, 34...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 collapse empty xml tags? === I'm getting XML like this: `<Items> <Row attr1="val"></Row> <Row attr1="val2"></Row> </Items>` This is valid XML, as you know, but another library I'm using is busted and it will only accept XML in this format: `<Items> <Row attr1="val"/> <Row attr1="val2"/> </Items> ` I'm already reading the XML into XmlDocuments, manipulating them, and rewriting them using an XmlWriter(), what's the easiest (and most efficient) way for me to "collapse" these empty tags?
0
[ 2, 184, 107, 31, 6529, 2424, 23504, 3383, 18, 60, 800, 3726, 3726, 31, 22, 79, 1017, 23504, 101, 48, 45, 13, 1, 2119, 79, 18, 1, 13, 1, 5417, 35, 6384, 165, 3726, 7, 3377, 7, 1, 118, 5417, 1, 13, 1, 5417, 35, 6384, 165, 37...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Have you had success with 2D graphics via HTML canvas? === I'm looking for success and failure stories of web applications rendering rich, 2D graphics via the HTML canvas element. I've seen some intriguing examples online but wanted to learn about some real-world, practical examples of development done using this approach.
0
[ 2, 57, 42, 41, 1280, 29, 172, 43, 8351, 1197, 13, 15895, 9696, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 1280, 17, 2990, 1650, 16, 2741, 3767, 15307, 2042, 15, 172, 43, 8351, 1197, 14, 13, 15895, 9696, 4520, 9, 31, 22, 195, 54...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you compare two version Strings in Java? === Is there a standard idiom for comparing version numbers? I can't just use a straight String compareTo because I don't know yet what the maximum number of point releases there will be. I need to compare the versions and have the following hold true: 1.0 < 1.1 1.0.1 < 1.1 1.9 < 1.10
0
[ 2, 184, 107, 42, 11590, 81, 615, 7887, 19, 8247, 60, 800, 3726, 3726, 25, 80, 21, 1236, 28380, 26, 15047, 615, 2116, 60, 31, 92, 22, 38, 114, 275, 21, 1599, 3724, 11590, 262, 185, 31, 221, 22, 38, 143, 768, 98, 14, 2979, 234, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Efficiently detect corrupted jpeg file? === Is there an efficient way of detecting if a jpeg file is corrupted Background info: &nbsp; solutions needs to work from within a php script &nbsp; the jpeg files are on disk &nbsp; manual checking is no option (user uploaded data) I know that `imagecreatefromjpeg(string $filename);` can do it. But it is quite slow at doing so. Does anybody know a faster/more efficient solutions?
0
[ 2, 20519, 9092, 11305, 69, 487, 20427, 3893, 60, 800, 3726, 3726, 25, 80, 40, 8243, 161, 16, 9092, 68, 100, 21, 487, 20427, 3893, 25, 11305, 69, 2395, 15404, 45, 279, 13502, 3401, 73, 6776, 2274, 20, 170, 37, 363, 21, 13, 26120, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get a random number in Ruby? === In Ruby, how do you generate a random number between 0 and n? In .NET you can create a Random object, does something like this exist for Ruby?
0
[ 2, 184, 20, 164, 21, 5477, 234, 19, 10811, 60, 800, 3726, 3726, 19, 10811, 15, 184, 107, 42, 7920, 21, 5477, 234, 128, 713, 17, 13, 103, 60, 19, 13, 9, 2328, 42, 92, 1600, 21, 5477, 3095, 15, 630, 301, 101, 48, 3182, 26, 108...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Are there any programs to draw and test state machines, turing machines, etc? === When I go back to school after Thanksgiving, I'll be taking a course in CS Theory covering topics such as deterministic and nondeterministic finite state machines, turing machines, pushdown automata and a few other things. However, I haven't found a good application that can produce a visual representation of them as well as testing how they work (pass/fail, etc). The best that I've found so far is [jFlap][1], and I'm finding it rather awkward. [1]: http://www.jflap.org/
0
[ 2, 50, 80, 186, 1726, 20, 2003, 17, 1289, 146, 6035, 15, 6205, 68, 6035, 15, 2722, 60, 800, 3726, 3726, 76, 31, 162, 97, 20, 116, 75, 17300, 15, 31, 22, 211, 44, 741, 21, 674, 19, 272, 18, 1639, 3846, 7569, 145, 28, 15190, 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...
GET versus POST in terms of security? === This may be a dumb question, but between a http POST and GET, what are the differences from a security perspective? Is one inherently more secure then another? I realize that POST doesn't expose information on the URL but is there any real value in that or is it just security through obscurity? What is the best practice here?
0
[ 2, 164, 5706, 678, 19, 1663, 16, 1221, 60, 800, 3726, 3726, 48, 123, 44, 21, 9317, 1301, 15, 47, 128, 21, 7775, 678, 17, 164, 15, 98, 50, 14, 4921, 37, 21, 1221, 6531, 60, 25, 53, 27929, 91, 4315, 94, 226, 60, 31, 4007, 30, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get File Object used by a CSV Reader/Writer Object === Is there any way to access the file object used by a CSV writer/reader object after it has been instantiated? I openned up the csv module, and it appears it's contest are builtin. I also tried setting the file object as a property but I get the following error: AttributeError: '_csv.writer' object has no attribute 'fileobj'
0
[ 2, 164, 3893, 3095, 147, 34, 21, 272, 18, 710, 7765, 118, 9657, 3095, 800, 3726, 3726, 25, 80, 186, 161, 20, 1381, 14, 3893, 3095, 147, 34, 21, 272, 18, 710, 1462, 118, 10647, 106, 3095, 75, 32, 63, 74, 6322, 49, 1669, 60, 31,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I set a source control plug in default for Visual Studio 2008? === We recently installed Team Foundation Server 2008 and we are using it for both Visual Studio 2008 code and Visual FoxPro 9 code that we are still migrating to .Net. I had to install the TFS MSSCCI provider to get connectivity from the VFP9 IDE. That works fine, but Visual Studio now seems to get confused about which source control plug in to use and keeps reverting to the TFS MSSCCI provider instead of the "Visual Studio Team Foundation Server" plugin that installed with Team Explorer. When the plug in changes, I get errors when trying to get/check in code from TFS. How can I get Visual Studio to keep the Team Explorer plug in as my default?
0
[ 2, 184, 107, 31, 309, 21, 1267, 569, 10922, 19, 12838, 26, 3458, 1120, 570, 60, 800, 3726, 3726, 95, 1989, 4066, 173, 1304, 8128, 570, 17, 95, 50, 568, 32, 26, 156, 3458, 1120, 570, 1797, 17, 3458, 2385, 2740, 561, 1797, 30, 95,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Advantages of MS SQL Server 2008 over MS SQL Server 2005? === What are the key differences between MS SQL Server 2005 and 2008? Are there any compelling reasons for upgrading (any edition, as I have a customer with multiple editions)? Or can you point to a website with either a chart or bullet point comparison of the two servers? Also, is there anything noteworthy in the Express editions of either version?
0
[ 2, 14683, 16, 4235, 4444, 255, 8128, 570, 84, 4235, 4444, 255, 8128, 812, 60, 800, 3726, 3726, 98, 50, 14, 1246, 4921, 128, 4235, 4444, 255, 8128, 812, 17, 570, 60, 50, 80, 186, 20465, 2932, 26, 26939, 13, 5, 6001, 1322, 15, 28,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Freeware Programmer Calculator === There have been lots of times in the past where a good programmer-oriented calculator would've saved me a lot of time. Lately, I've been doing quite a lot of bit manipulation, and having to do build/run to debug my calculations feels really slow. I've looked for something like this in the past, but found nothing that worked very well. The only thing that comes close is [this one from AnalogX][1], but I can't get it to work or really do anything on my vista box which is where I'm doing most of my work at the moment. (btw - please send comments about my vista usage [here][2];). Anyway, I'm looking for something for simple calculations using a C-like syntax with support for proper precenedce, operators, etc. Bonus points for cross-platform. [1]: http://www.analogx.com/contents/download/program/pcalc.htm [2]: http:///dev/null
0
[ 2, 551, 5011, 17968, 28539, 800, 3726, 3726, 80, 57, 74, 7503, 16, 436, 19, 14, 640, 113, 21, 254, 17968, 8, 6800, 28539, 83, 22, 195, 4377, 55, 21, 865, 16, 85, 9, 10434, 15, 31, 22, 195, 74, 845, 1450, 21, 865, 16, 1142, 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...
Real World ASP.NET MVC Applciations with Source Code? === I think all of the tutorials and stuff are great on blogs, but sometimes when you actually build an application the way you would code or interact with a system is quite different. I was wondering if you all knew some good real world type ASP.NET MVC applications that have the source code available for experimentation. Off hand I am aware of the following, but I'm interested to see if there are more: - [Flickr Xplorer ASP.NET MVC website using jQuery][1] ([live website][2]) - [Kigg][3] ([live website][4]) - [Forums: Create the Perfect Application][5] [1]: http://www.codeplex.com/FlickrXplorer/Release/ProjectReleases.aspx?ReleaseId=18041 [2]: http://www.flickrmvc.net/Photo/intel#259803598 [3]: http://www.codeplex.com/Kigg [4]: http://kigg.dotnetslackers.com/ [5]: http://weblogs.asp.net/stephenwalther/archive/2008/09/05/asp-net-mvc-application-building-forums-1-create-the-perfect-application.aspx
0
[ 2, 683, 126, 28, 306, 9, 2328, 307, 8990, 4865, 6109, 49, 7504, 29, 1267, 1797, 60, 800, 3726, 3726, 31, 277, 65, 16, 14, 29724, 18, 17, 3217, 50, 374, 27, 8146, 18, 15, 47, 1030, 76, 42, 1121, 1895, 40, 3010, 14, 161, 42, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Drag/Drop inside an Application AND to another Application === I have a ListView containing file names. These file names need to be draggable to a TreeView, which is a drag/drop inside the application and works with the built in drag/drop support of Delphi - no problem. But I must also be able to drag/drop the ListView items to another application, e.g. Windows Explorer. This also works, for example using a DragFileSource component of Anders Melander's Component Suite (http://melander.dk) which start it's work in the ListView.MouseDown event, so there is not really a drag/drop operation initiated. Basically, I would need the same behaviour as you can see in a Windows Explorer: You can drag an item to another folder inside the application and also to another application. How can this be done in Delphi? I guess there should be a "drag" initiated, but when the mouse moves outside the app window, it needs to "switch" to the other functionality, and should the mouse move back to the app window, again back to the standard drag drop. Thanks for any help! Holger
0
[ 2, 5501, 118, 12361, 572, 40, 3010, 17, 20, 226, 3010, 800, 3726, 3726, 31, 57, 21, 968, 4725, 3503, 3893, 1817, 9, 158, 3893, 1817, 376, 20, 44, 5501, 263, 579, 20, 21, 1541, 4725, 15, 56, 25, 21, 5501, 118, 12361, 572, 14, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to prevent <session disconnected> errors while running Intersystems Caché terminal scritps? === I'm developing a system that needs to execute Intersystems Cache Terminal Scripts. When I run a routine inside the regular Caché terminal or a telnet terminal, Cache executes the routine until the end with no problems. But when I try to run the same routine, but this time calling the routine within a Caché terminal Script, Caché disconnects the session after a while. There is no mention at all in the documentation of a "timeout" setting or anything realted to the "<Session disconnected>" messages i'm getting. The script is run just like this: Cterm.exe /console=cn_iptcp:192.168.2.13[23] c:\test.s 1) Does anybody know what may be causing Interystems Caché to disconnected the session in the middle of the run (the session isn't idle either. It regularly outputs status messages to the console)? 2) Any ideas of how to solve it? Thanks, Luís Fernando
0
[ 2, 184, 20, 2501, 13, 1, 7202, 5991, 25730, 1, 11908, 133, 946, 1480, 10724, 18, 16522, 3855, 13, 18, 16063, 1919, 60, 800, 3726, 3726, 31, 22, 79, 3561, 21, 329, 30, 2274, 20, 15644, 1480, 10724, 18, 16522, 3855, 17505, 9, 76, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What’s the difference between the System.Array.CopyTo() and System.Array.Clone()? === What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?
0
[ 2, 98, 1, 18, 14, 2841, 128, 14, 329, 9, 8576, 93, 9, 19625, 262, 5, 6, 17, 329, 9, 8576, 93, 9, 150, 16285, 5, 6, 60, 800, 3726, 3726, 98, 1, 18, 14, 2841, 128, 14, 329, 9, 8576, 93, 9, 19625, 262, 5, 6, 17, 329, 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, 0, 0, 0, 0, 0...
How to best prevent XSRF attacks in a GAE app? === So, what is the best way to prevent an XSRF attack for a GAE application? Imagine the following: 1. Anyone can see a user's public object, and the db.Model id is used in the request to figure out which object to show. Malicious user now has the id. 2. Malicious user creates their own object and checks out the delete form. They now know how to delete an object with a certain id. 3. Malicious user gets innocent user to submit a delete request for that user's object. What steps can I add to prevent #3? Note that when I say ID, I am using the actual ID part of the key. One idea I had was to use the full key value in delete requests, but would that prevent a malicious user from being able to figure this out? As far as I know, the key is some combination of the model class type, the app id, and the object instance id, so they could probably derive the key from the id if they wanted to. Any other ideas? Jeff wrote [a post about this][1], and suggested a couple methods - a hidden form value that would change on each request, and a cookie value written via js to the form. I won't want to exclude non-javascript users, so the cookie solution is no good - for the hidden form value, I would have to do a datastore write on every request that displayed a deletable object - not an ideal situation for a scalable app! Any other ideas out there? [1]: http://www.codinghorror.com/blog/archives/001171.html
0
[ 2, 184, 20, 246, 2501, 993, 18, 8291, 3080, 19, 21, 13, 17721, 4865, 60, 800, 3726, 3726, 86, 15, 98, 25, 14, 246, 161, 20, 2501, 40, 993, 18, 8291, 991, 26, 21, 13, 17721, 3010, 60, 4382, 14, 249, 45, 137, 9, 1276, 92, 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...
How to determine if currency symbol is to the left or right of a number on MacOS === How do I determine if the currency symbol is supposed to be on the left or right of a number using CFLocale / CFNumberFormatter in a MacOS Carbon project? I need to interface with a spreadsheet application which requires me to pass a number, currency symbol, currency symbol location and padding instead of a CStringRef created with CFNumberFormatter. CFLocaleRef currentLocale = CFLocaleCopyCurrent(); CFTypeRef currencySymbol = CFLocaleGetValue (currentLocale, kCFLocaleCurrencySymbol); provides me with the currency symbol as a string. But I'm lost on how to determine the position of the currency symbol...
0
[ 2, 184, 20, 3746, 100, 10507, 4678, 25, 20, 14, 225, 54, 193, 16, 21, 234, 27, 1572, 759, 800, 3726, 3726, 184, 107, 31, 3746, 100, 14, 10507, 4678, 25, 2293, 20, 44, 27, 14, 225, 54, 193, 16, 21, 234, 568, 10084, 15580, 62, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Changing the background color of a DateTimePicker in .NET === In .NET (at least in the 2008 version, and maybe in 2005 as well), changing the BackColor property of a DateTimePicker has absolutely no affect on the appearance. How do I change the background color of the text area, not of the drop-down calendar?
0
[ 2, 4226, 14, 2395, 1665, 16, 21, 1231, 891, 16855, 106, 19, 13, 9, 2328, 800, 3726, 3726, 19, 13, 9, 2328, 13, 5, 721, 639, 19, 14, 570, 615, 15, 17, 913, 19, 812, 28, 134, 6, 15, 4226, 14, 97, 11282, 1354, 16, 21, 1231, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dithering gouraud-shaded vertex-colored polygons to remove banding === I'm using [OpenGL ES][1] on a [low-resolution, embedded device][2]. I've applied a vertical color gradient, using vertex coloring, to a large polygon serving as a backdrop to my rendered scene. I can see clear visible banding artifacts in the color gradient. My main experience is using software renderers. With software renderers it is common to dither away [mach bands][3] and other banding artifacts. We often do this during the quantization step of rendering a frame, where the floating point, high-precision representations of colors are transformed to a lower-precision output (usually with integer components). We achieve dithering by randomly rounding the final integer component either up or down, to insert just the tiniest bit of noise in the image with which to fool the eye into seeing a continuos and smooth blend between colors. My question is whether I can achieve this using OpenGL ES? Is this kind of dithering part of the OpenGL pipeline, or should I skip vertex-coloring and render the gradient to a texture and apply a bit of noise to it? [1]: http://www.khronos.org/opengles/ [2]: http://www.apple.com/iphone/ [3]: http://en.wikipedia.org/wiki/Mach_band
0
[ 2, 926, 124, 2090, 162, 911, 7150, 8, 27209, 43, 22895, 8, 10884, 21309, 18, 20, 4681, 323, 68, 800, 3726, 3726, 31, 22, 79, 568, 636, 10157, 8430, 13, 160, 500, 2558, 165, 500, 27, 21, 636, 4121, 8, 29346, 15, 12138, 3646, 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...
Getting SelectedItem of a DropDownList and retaining list items === Ok Here's the issue.. I have small page which has label, dropdownlist and a submit button. <div> <asp:label id="Message" runat="server"/> <br /> Which city do you wish to look at on hotels for?<br /><br /> <asp:dropdownlist id="Dropdownlist1" runat="server" EnableViewState="true"> </asp:dropdownlist> <br /><br /><br /><br /> <input type="Submit" /> </div> On form load i am inserting items into the dropdownlist and on the button click i am displaying the count of the items in the dropdownlist. Here's the code for that. <code> if (Page.IsPostBack) { Message.Text = "You have selected " + Dropdownlist1.Items.Count.ToString(); } else { Message.Text = "You have selected " + Dropdownlist1.Items.Count.ToString(); Dropdownlist1.Items.Add("Madrid"); Dropdownlist1.Items.Add("Chennai"); Dropdownlist1.Items.Add("New York"); } </code> Here's the funny part. If i run it directly from the IDE, its working perfectly fine. I get the count as 0 the first time and 3 when i press submit button. I need to run this small code on an existing virtual directory. If i run the same aspx page within that virtual directory, i get count 0 for the for the first time it loads. When i click submit, i get count as 0 and i don't see any items in the dropdownlist, it is getting cleared. I have set viewstate to true so that i remember what was inserted. I am not sure what difference is there when i run it from IDE and when i run it from another virtual directory. I am fairly new to Asp.Net so i have exhuasted all my options here so to find out how a dropdownlist works. Is there a config i am missing here ?. Btw just FYI, I am facing the same issue when i put the DropDownList in a Wizard Control. When run from IDE it is working fine but when i run from the virtual directory its not getting the selected value neither is it remembering the items in the dropdownlist. Any help on this would be appreciated.
0
[ 2, 1017, 1704, 2119, 79, 16, 21, 2804, 2968, 5739, 17, 14151, 968, 3755, 800, 3726, 3726, 5854, 235, 22, 18, 14, 1513, 9, 9, 31, 57, 284, 2478, 56, 63, 1899, 15, 2804, 2968, 5739, 17, 21, 12298, 5167, 9, 13, 1, 12916, 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...
How do I raise an event via reflection in .NET (c#)? === I have a third-party editor that basically comprises a textbox and a button (the DevExpress ButtonEdit control). I want to make a particular keystroke (Alt-Down) emulate clicking the button. In order to avoid writing this over and over, I want to make a generic KeyUp event handler that will raise the ButtonClick event. Unfortunately, there doesn't seem to be a method in the control that raises the ButtonClick event, so... How do I raise the event from an external function via reflection?
0
[ 2, 184, 107, 31, 3972, 40, 807, 1197, 9138, 19, 13, 9, 2328, 13, 5, 150, 5910, 6, 60, 800, 3726, 3726, 31, 57, 21, 422, 8, 9635, 1835, 30, 11374, 8595, 21, 1854, 5309, 17, 21, 5167, 13, 5, 124, 9664, 21230, 5167, 69, 242, 56...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Oracle DB Mac Address or other unique identifier === I am interacting with an Oracle DB using SQL over an ODBC connection. Is there an SQL command I can use to get the MAC address of the server, or something that uniquely identifies the server hardware or software installation. This is so I can be sure (or at least fairly sure) that I'm talking to the same database all the time.
0
[ 2, 15759, 13, 9007, 1572, 3218, 54, 89, 2619, 25570, 800, 3726, 3726, 31, 589, 24747, 29, 40, 15759, 13, 9007, 568, 4444, 255, 84, 40, 12340, 7229, 2760, 9, 25, 80, 40, 4444, 255, 1202, 31, 92, 275, 20, 164, 14, 1572, 3218, 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...
Programatically determine column name of GridView controls? === I have a row of data that I need to modify in a database, using a stored procedure. But in order to call that stored procedure, I need to know the name of the each column. How do I determine the name of the columns? (Hardcoding is not an option as we are talking a LOT of columns whose names may change).
0
[ 2, 625, 721, 8438, 3746, 4698, 204, 16, 7354, 4725, 8671, 60, 800, 3726, 3726, 31, 57, 21, 3131, 16, 1054, 30, 31, 376, 20, 17579, 19, 21, 6018, 15, 568, 21, 8214, 7004, 9, 47, 19, 389, 20, 645, 30, 8214, 7004, 15, 31, 376, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Generating dynamic thumbnail of a PDF for ASP.NET === I've used a tool from Aspose ([Aspose.PDF.kit][1]) to generate a JPG thumbnail on the fly of a PDF for a .NET application. This works great, but what kind of other alternatives are there? Codeproject.com has [this tutorial][2], but it requires you to have the full version of Acrobat. Is there an open source alternative that's geared for ASP.NET? [1]: http://www.aspose.com/categories/file-format-components/aspose.pdf.kit-for-.net-and-java/default.aspx [2]: http://www.codeproject.com/KB/GDI-plus/pdfthumbnail.aspx
0
[ 2, 13500, 7782, 5078, 325, 947, 16, 21, 13, 11124, 26, 28, 306, 9, 2328, 800, 3726, 3726, 31, 22, 195, 147, 21, 5607, 37, 28, 15690, 13, 5, 2558, 472, 15690, 9, 11124, 9, 13703, 500, 2558, 165, 500, 6, 20, 7920, 21, 487, 9623,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 hard is it to master symantic markup and good CSS? === I know this won't be a popular question, because a lot of web designers want to assume that their craft is difficult and valuable. **IT IS**. But I do not believe that it is difficult because HTML and CSS are difficult to master, I believe its difficult because being a good creative designer is difficult. Please resist the urge to reflexively disagree with me because I consider the language simple. I suck as a designer, thankfully its not my job. However I can take a photo shopped comp and create a pure HTML/CSS web page from it with ease. It is my personal believe that **anyone** can become an effective HTML/CSS guru in a week or two's study. There just isn't that much complexity (and this is someone with years of experience talking). Crossbrowser coding is not as hard as people make it sound. I develop in Firefox, and tweak for IE, and I'm done, a good CSS reset handles 99% of the issues. Do you disagree with this? Is HTML and CSS impossible to learn well in a week?
0
[ 2, 184, 552, 25, 32, 20, 1129, 10315, 177, 1786, 943, 576, 17, 254, 272, 18, 18, 60, 800, 3726, 3726, 31, 143, 48, 230, 22, 38, 44, 21, 844, 1301, 15, 185, 21, 865, 16, 2741, 12760, 259, 20, 7158, 30, 66, 6508, 25, 1956, 17,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to confire Apache to work as proxy (load balancer) for j2ee server? === there. I have apache web server installed as frontend and I have j2ee SAP Netweaver Application Server installed in Intranet server. How can I configure apache to forward requests and respond to/from j2ee app server. for example, external apache server's ip is 9.20.1.1:80. internal sap server's address is 192.168.0.1/sap/bc/gui/sap/its/webgui?sap_client=200 i wand access to my sap app server for example 9.20.1.1/sapserver/sap/bc/gui/sap/its/webgui?sap_client=200
0
[ 2, 184, 20, 1065, 5929, 17140, 20, 170, 28, 27188, 13, 5, 8294, 4468, 139, 6, 26, 487, 135, 2851, 8128, 60, 800, 3726, 3726, 80, 9, 31, 57, 17140, 2741, 8128, 4066, 28, 431, 2451, 17, 31, 57, 487, 135, 2851, 7508, 4275, 458, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the simplest way to export Excel data to Matlab? === What is the simplest way to programmatically export Excel data to Matlab?
0
[ 2, 98, 25, 14, 24384, 161, 20, 7487, 20700, 1054, 20, 4277, 9086, 60, 800, 3726, 3726, 98, 25, 14, 24384, 161, 20, 625, 6732, 1326, 7487, 20700, 1054, 20, 4277, 9086, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Real differences between "java -server" and "java -client"? === Is there any real practical difference between "java -server" and "java -client"? All I can find on Sun's site is a vague "-server starts slower but should run faster". What are the real differences? (Using JDK 1.6.0_07 currently.)
0
[ 2, 683, 4921, 128, 13, 7, 1004, 1385, 13, 8, 10321, 106, 7, 17, 13, 7, 1004, 1385, 13, 8, 150, 18513, 38, 7, 60, 800, 3726, 3726, 25, 80, 186, 683, 5713, 2841, 128, 13, 7, 1004, 1385, 13, 8, 10321, 106, 7, 17, 13, 7, 1004,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 optimal settings for Recycling of Application Pools in IIS7 in shared environment? === What are optimal settings for Recycling of Application Pools in IIS7 in shared environment? Thanks in advance
0
[ 2, 98, 50, 17586, 12410, 26, 20777, 16, 3010, 15230, 19, 595, 18, 465, 19, 2592, 2307, 60, 800, 3726, 3726, 98, 50, 17586, 12410, 26, 20777, 16, 3010, 15230, 19, 595, 18, 465, 19, 2592, 2307, 60, 3669, 19, 3612, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Non-deterministic finite state machines in software development? === Recently I've been thinking about finite state machines and how I would implement them in software (programming language doesn't matter). My understanding is that deterministic state machines are in widespread use (regular expression engines, parses/lexers, compilers and so on). Okay, that's great. But what's the matter with non-deterministic state machines? I know that is possible to convert all non-deterministic state machines to deterministic ones (even programmatically). That's not my point. I also imagine that non-deterministic state machines are much more complicated to implement. Anyway. Does it make **any** sense to implement a non-deterministic state machine? Are there any special applications I don't know about? What could be the reasons to do that? Maybe optimized and specialized non-deterministic state machines are faster?
0
[ 2, 538, 8, 546, 3964, 108, 3771, 10796, 146, 6035, 19, 2306, 522, 60, 800, 3726, 3726, 1989, 31, 22, 195, 74, 1440, 88, 10796, 146, 6035, 17, 184, 31, 83, 8713, 105, 19, 2306, 13, 5, 19746, 3863, 816, 1437, 22, 38, 1161, 6, 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...
Can I use commas in a URL? === I typically use URL rewriting to pass content IDs to my website, so this Foo.1.aspx rewrites to Foo.aspx?id=1 For a specific application I need to pass in multiple IDs to a single page, so I've rewritten things to accept this: Foo.1,2,3,4,5.aspx This works fine in Cassini (the built-in ad hoc web server for Visual Studio) but gives me "Internet Explorer cannot display the webpage" when I try it on a live server running IIS. Is this an IIS limitation? Should I just use dashes or underscores instead of commas?
0
[ 2, 92, 31, 275, 11951, 472, 19, 21, 287, 6362, 60, 800, 3726, 3726, 31, 2442, 275, 287, 6362, 302, 12646, 20, 1477, 2331, 13, 9178, 20, 51, 2271, 15, 86, 48, 4310, 111, 9, 165, 9, 472, 306, 396, 27891, 18, 20, 4310, 111, 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...
Graph Theory library for Smalltalk === Anybody know of an implementation of graph algorithms in Smalltalk? I'd like something that allows you to implement an interface on your model objects or something and provides algorithms for transitive closure, transitive reduction, topological sort, etc., etc. People end up re-implementing these widely-applicable algorithms so often, it would be great to have a generic implementation available that everybody could use. Pointers to a similar library for other (preferably OO) languages that could be ported would also be useful I guess.
0
[ 2, 7210, 1639, 1248, 26, 284, 9718, 800, 3726, 3726, 11181, 143, 16, 40, 6123, 16, 7210, 15935, 19, 284, 9718, 60, 31, 22, 43, 101, 301, 30, 2965, 42, 20, 8713, 40, 6573, 27, 154, 1061, 3916, 54, 301, 17, 1927, 15935, 26, 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...
Any free HTML Image Slicer? === I was given one big JPG of the HTML interface. Now I need to break it down into pieces and assemble them with html table. Without a slicer it's pretty arduous and error prone. I do not have photoshop or firework, does anybody know of any free utilities that I can use?
0
[ 2, 186, 551, 13, 15895, 1961, 12982, 139, 60, 800, 3726, 3726, 31, 23, 504, 53, 580, 487, 9623, 16, 14, 13, 15895, 6573, 9, 130, 31, 376, 20, 1442, 32, 125, 77, 2491, 17, 13, 13736, 105, 29, 13, 15895, 859, 9, 366, 21, 12982, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 recycle an IIS AppPool with Powershell? === I haven't really done any Windows scripting at all, so I am at a loss on how to pull this one off. Anyway, basically what we want to do is have a script that will take an argument on which IIS AppPool to recycle. I have done some research on Google and haven't had much success on getting things to work. Here is what I am trying now: $appPoolName = $args[0] $appPool = get-wmiobject -namespace "root\MicrosoftIISv2" -class "IIsApplicationPools" Where-Object {$_.Name -eq "W3SVC/APPPOOLS/$appPoolName"} $appPool.Recycle() and the error I get: Get-WmiObject : A parameter cannot be found that matches parameter name '$_.Name -eq "W3SVC/APPPOOLS/$appPoolName"'. Anyway, it would be nice if I also knew how to debug things like this. I already fixed one bug with the original script by doing gwmi -namespace "root\MicrosoftIISv2" -list. Any other tips like that one would be great. Thanks!
0
[ 2, 184, 107, 31, 302, 12467, 40, 595, 18, 4865, 13378, 29, 414, 15984, 60, 800, 3726, 3726, 31, 2933, 22, 38, 510, 677, 186, 1936, 3884, 68, 35, 65, 15, 86, 31, 589, 35, 21, 1526, 27, 184, 20, 2201, 48, 53, 168, 9, 2774, 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...
Determine if IP is blocked === Does anyone know if it is possible to reliably determine (programattically C/C++...) whether or not a firewall or IP filtering software is installed on a Windows PC? I need to detect whether a certain server IP is being blocked in my client software by the host OS.
0
[ 2, 3746, 100, 15735, 25, 8388, 800, 3726, 3726, 630, 1276, 143, 100, 32, 25, 938, 20, 13, 19003, 4801, 3746, 13, 5, 19746, 10303, 8438, 272, 118, 150, 20512, 9, 9, 9, 6, 1472, 54, 52, 21, 535, 6051, 54, 15735, 25272, 2306, 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...
SQL Server unique set of columns without using a constraint - getting bit by the 900 byte limit === I have a table which contains 3 nvarchar(255) columns and a combination of these 3 columns must be unique. Normally I would create a Unique constraint, but in this case, I am hitting the 900 byte limit. Since I have to support SQL Server 2000, I can not use Include columns to get around this situation. Thanks!
0
[ 2, 4444, 255, 8128, 2619, 309, 16, 7498, 366, 568, 21, 28804, 13, 8, 1017, 1142, 34, 14, 12659, 34, 591, 4496, 800, 3726, 3726, 31, 57, 21, 859, 56, 1588, 203, 13, 103, 3311, 5433, 5, 20038, 6, 7498, 17, 21, 3733, 16, 158, 203...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Multiple Data Tables in PHP/MySQL? === In asp.net, you can retrieve MULTIPLE datatables from a signal call to the database. Can you do the same thing in php? Example: $sql ="select * from t1; select * from t2;"; $result = SomeQueryFunc($sql); print_r($result[0]); // dump results for t1 print_r($result[1]); // dump results for t2 Can you do something like this?
0
[ 2, 1886, 1054, 7484, 19, 13, 26120, 118, 915, 18, 22402, 60, 800, 3726, 3726, 19, 28, 306, 9, 2328, 15, 42, 92, 11917, 1886, 1054, 5924, 18, 37, 21, 2800, 645, 20, 14, 6018, 9, 92, 42, 107, 14, 205, 584, 19, 13, 26120, 60, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Looking for evolutionary music example code === I would like to implement an interactive evolutionary algorithm for generating music (probably just simple melodies to start with). I'd like to use [JFugue][1] for this. Its website claims that it is well-suited to evolutionary music, but I can't find any evolutionary examples. I already have [a framework][2] to provide the evolutonary machinery. What I am looking for is some simple, working code that demonstrates viable approaches for the musical part (e.g. suitable encodings and evolutionary operators for the evolved tunes). I have some ideas how it might be achieved, but I'm not particularly knowledgeable about music theory, so to start with I'd like to just reimplement something that is known to work. So does anybody have, or know of, any freely available code (any language is fine) that demonstrates one or more approaches to evolutionary music? [1]: http://www.jfugue.org [2]: https://watchmaker.dev.java.net [3]: https://watchmaker.dev.java.net/examples/biomorphs.html
0
[ 2, 699, 26, 13918, 232, 823, 1797, 800, 3726, 3726, 31, 83, 101, 20, 8713, 40, 9194, 13918, 9083, 26, 13500, 232, 13, 5, 14097, 114, 1935, 18736, 20, 799, 29, 6, 9, 31, 22, 43, 101, 20, 275, 636, 728, 4096, 3982, 500, 2558, 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...
Project Management -- resource chart === I have looked and have yet to find a simple Resource-Gantt chart tool. In a typical Gantt chart tasks are on the left and resources are assigned to tasks. I would like to put resources on the left, and then assign tasks to people. Imagine putting all your developers on a column and then each subsequent column would be 1 week of time. You can easily see the tradeoffs of scheduling based on what tasks you haven't been able to assign yet. To this point I have done this type of thing in Excel, but this becomes a pain when you want to try several different scenarios.
0
[ 2, 669, 1097, 13, 8, 8, 6577, 1795, 800, 3726, 3726, 31, 57, 292, 17, 57, 768, 20, 477, 21, 1935, 6577, 8, 2342, 38, 38, 1795, 5607, 9, 19, 21, 3874, 7890, 38, 38, 1795, 8674, 50, 27, 14, 225, 17, 2566, 50, 2467, 20, 8674, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 assemblyBinding configuration ignored in machine.config === I have a situation where I need to be able to load assemblies in the GAC based on their partial names. In order to do this I have added the following to my app.config file: <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <qualifyAssembly partialName="MyAssembly" fullName= "MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0123456789abcdef"/> </assemblyBinding> </runtime> This works exactly the way I want it to. However, if I place the same element in my machine.config file, it seems to be ignored, and I get FileNotFoundExceptions when trying to load MyAssembly. The following is the assembly binding log when the element is in my app.config, and the bind succeeds: <pre>LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Documents and Settings\jon_scheiding\My Documents\Source\Testing\Test Projects 1\Cmd\bin\Debug\Testers.Cmd.vshost.exe.config LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config. LOG: Partial reference qualified from config file. New reference: MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0123456789abcdef. LOG: Post-policy reference: MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0123456789abcdef LOG: Found assembly by looking in the GAC. LOG: Binding succeeds. Returns assembly from C:\WINDOWS\assembly\GAC_MSIL\MyAssembly\1.0.0.0__b20f4683c1030dbd\MyAssembly.dll. LOG: Assembly is loaded in default load context.</pre> Contrast that with the log when my configuration is in machine.config, and the bind fails: <pre>LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Documents and Settings\jon_scheiding\My Documents\Source\Testing\Test Projects 1\Cmd\bin\Debug\Testers.Cmd.vshost.exe.config LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/Documents and Settings/jon_scheiding/My Documents/Source/Testing/Test Projects 1/Cmd/bin/Debug/MyAssembly.DLL. LOG: Attempting download of new URL file:///C:/Documents and Settings/jon_scheiding/My Documents/Source/Testing/Test Projects 1/Cmd/bin/Debug/MyAssembly/MyAssembly.DLL. LOG: Attempting download of new URL file:///C:/Documents and Settings/jon_scheiding/My Documents/Source/Testing/Test Projects 1/Cmd/bin/Debug/MyAssembly.EXE. LOG: Attempting download of new URL file:///C:/Documents and Settings/jon_scheiding/My Documents/Source/Testing/Test Projects 1/Cmd/bin/Debug/MyAssembly/MyAssembly.EXE. LOG: All probing URLs attempted and failed.</pre> The problem seems to be the fourth line, "Policy not being applied to reference at this time." However, I can find very little documentation on what this message means, or how to address it. How can I get the framework to recognize my &lt;runtime&gt; element? Thanks in advance!
0
[ 2, 13, 9, 2328, 1475, 22260, 8091, 5424, 19, 1940, 9, 14093, 2816, 800, 3726, 3726, 31, 57, 21, 1858, 113, 31, 376, 20, 44, 777, 20, 6305, 21066, 19, 14, 4369, 150, 432, 27, 66, 7284, 1817, 9, 19, 389, 20, 107, 48, 31, 57, 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...
JQuery Select Box and Loop Help === Thanks for reading. I'm a bit new to jQuery, and am trying to make a script I can include in all my websites to solve a problem that always drives me crazy... The problem: Select boxes with long options get cut off in Internet Explorer. For example, these select boxes: [http://discoverfire.com/test/select.php][1] In Firefox they are fine, but in IE, the options are cut off to the width of the select when they drop down. The solution: What I am looking to do, is create a script that I can include in any page that will do the following: 1. Loop through all the selects on the page. 2. For each select: A. Loop through its options. B. Find the width of the longest option. C. Bind a function to expand the select to that width on focus (or maybe click...). D. Bind a function to shrink to it's original width on blur. I've managed to do most of step #2 for one select box. I found that getting the options width was a problem (especially in IE), so I looped through and copied the text of each option to a span, measured the span width, and used the longest one as the width the select will be expanded to. Perhaps somebody has a better idea. Here is the code <script type='text/javascript'> $(function() { /* This function will: 1. Create a data store for the select called ResizeToWidth. 2. Populate it with the width of the longest option, as approximated by span width. The data store can then be used */ // Make a temporary span to hold the text of the options. $('body').append("<span id='CurrentOptWidth'></span>"); $("#TheSelect option").each(function(i){ // If this is the first time through, zero out ResizeToWidth (or it will end up NaN). if ( isNaN( $(this).parent().data('ResizeToWidth') ) ) { $(this).parent().data( 'OriginalWidth', $(this).parent().width() ); $(this).parent().data('ResizeToWidth', 0); $('CurrentOptWidth').css('font-family', $(this).css('font-family') ); $('CurrentOptWidth').css('font-size', $(this).css('font-size') ); $('CurrentOptWidth').css('font-weight', $(this).css('font-weight') ); } // Put the text of the current option into the span. $('#CurrentOptWidth').text( $(this).text() ); // Set ResizeToWidth to the longer of a) the current opt width, or b) itself. //So it will hold the width of the longest option when we are done ResizeToWidth = Math.max( $('#CurrentOptWidth').width() , $(this).parent().data('ResizeToWidth') ); // Update parent ResizeToWidth data. $(this).parent().data('ResizeToWidth', ResizeToWidth) }); // Remove the temporary span. $('#CurrentOptWidth').remove(); $('#TheSelect').focus(function(){ $(this).width( $(this).data('ResizeToWidth') ); }); $('#TheSelect').blur(function(){ $(this).width( $(this).data('OriginalWidth') ); }); alert( $('#TheSelect').data('OriginalWidth') ); alert( $('#TheSelect').data('ResizeToWidth') ); }); </script> and the select: <select id='TheSelect' style='width:50px;'> <option value='1'>One</option> <option value='2'>Two</option> <option value='3'>Three</option> <option value='42,693,748,756'>Forty-two billion, six-hundred and ninety-three million, seven-hundred-forty-some-odd..... </option> <option value='5'>Five</option> <option value='6'>Six</option> <option value='7'>Seven...</option> </select> Hopefully this will run for you if you want to run it, or you can see it in action here: [http://discoverfire.com/test/select.php][2]. What I need help with: This needs a bit of polish, but seems to work ok if you specify the select box. However, I don't seem to be able to figure out how to apply it to all select boxes on the page with a loop. So far, I have this: $('select').each( function(i, select){ // Get the options for the select here... can I use select.each...? } ); Also, is there a better way to get the length of the longest option for each select? The span is close, but not very exact. The problem is that IE returns zero for the option widths of the actual selects. Any ideas are very welcome, both for the questions asked, and any other improvements to my code. Thanks!! [1]: http://discoverfire.com/test/select.php [2]: http://discoverfire.com/test/select.php
0
[ 2, 487, 8190, 93, 5407, 1649, 17, 5293, 448, 800, 3726, 3726, 3669, 26, 1876, 9, 31, 22, 79, 21, 1142, 78, 20, 487, 8190, 93, 15, 17, 589, 749, 20, 233, 21, 3884, 31, 92, 468, 19, 65, 51, 13931, 20, 8402, 21, 1448, 30, 550, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 audio stream to WAV byte array in Java without temp file === Given an <code>InputStream</code> called <code>in</code> which contains audio data in a compressed format (such as MP3 or OGG), I wish to create a <code>byte</code> array containing a WAV conversion of the input data. Unfortunately, if you try to do this, JavaSound hands you the following error: java.io.IOException: stream length not specified I managed to get it to work by writing the wav to a temporary file, then reading it back in, as shown below: AudioInputStream source = AudioSystem.getAudioInputStream(new BufferedInputStream(in, 1024)); AudioInputStream pcm = AudioSystem.getAudioInputStream(AudioFormat.Encoding.PCM_SIGNED, source); AudioInputStream ulaw = AudioSystem.getAudioInputStream(AudioFormat.Encoding.ULAW, pcm); File tempFile = File.createTempFile("wav", "tmp"); AudioSystem.write(ulaw, AudioFileFormat.Type.WAVE, tempFile); // The fileToByteArray() method reads the file // into a byte array; omitted for brevity byte[] bytes = fileToByteArray(tempFile); tempFile.delete(); return bytes; This is obviously less desirable. Is there a better way?
0
[ 2, 8406, 4023, 3766, 20, 3142, 710, 34, 591, 7718, 19, 8247, 366, 13, 9577, 3893, 800, 3726, 3726, 504, 40, 13, 1, 9375, 1, 108, 4881, 11260, 1, 118, 9375, 1, 227, 13, 1, 9375, 1, 108, 1, 118, 9375, 1, 56, 1588, 4023, 1054, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I pickle a python dictionary into a sqlite3 text field? === Any gotchas I should be aware of? Can I store it in a text field, or do I need to use a blob? (I'm not overly familiar with either pickle or sqlite, so I wanted to make sure I'm barking up the right tree with some of my high-level design ideas.)
0
[ 2, 92, 31, 24509, 21, 20059, 9186, 77, 21, 4444, 10601, 240, 1854, 575, 60, 800, 3726, 3726, 186, 330, 1651, 18, 31, 378, 44, 3854, 16, 60, 92, 31, 1718, 32, 19, 21, 1854, 575, 15, 54, 107, 31, 376, 20, 275, 21, 334, 10904, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use client certificates in Apache httpd to connect to an LDAP for authorization? === I have a site that is using x509 client certificates (2 way SSL) to authenticate users and an LDAP directory that contains authorization information. I would like to use one of the certificate attributes to query the directory ( SSL_CLIENT_S_DN_CN to be exact ). I see how to use mod_ssl to use client certificates for authentication and I see how to use mod_auth_ldap and the like to use the username from basic or form based authentication to query the LDAP store for authorization. What I haven't seen a good example for is how to use an attribute of the client certificate in place of the username to query the LDAP. Any ideas?
0
[ 2, 184, 20, 275, 6819, 6259, 18, 19, 17140, 7775, 43, 20, 6379, 20, 40, 644, 20472, 26, 22677, 60, 800, 3726, 3726, 31, 57, 21, 689, 30, 25, 568, 993, 264, 2545, 6819, 6259, 18, 13, 5, 135, 161, 13, 18, 18, 255, 6, 20, 14351...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 isn't querying a JDBC-compliant database from Oracle as easy as pie? === Ok, so it's *almost* as easy as pie already. But it really should be as easier than it is. I think I should be able to connect to another database just by putting a JDBC connection string into TNSNAMES. Every database vendor has a type-4 JDBC driver and there's usually a good, free alternative. With Oracle being such keen Java fans, and with a JVM built-in to the database I'd have thought a JDBC-based linking technology would have been a no-brainer. It seems a natural extension to have a JDBC connection string in TNSNAMES and everything would "just work" - you could "sql*plus" to anything. But it doesn't work this way. If you want to connect to another non-Oracle database You have to buy something called Oracle Gateways or mess around with ODBC (through something called Generic Connectivity). [**Originality warning**... This is related to a [previous question][1] of mine but someone suggested I enter a supplementary comment as a separate question. Who am I to argue?] [1]: http://stackoverflow.com/questions/186443/what-options-are-available-for-connecting-to-a-microsoft-sql-server-database-fr
0
[ 2, 483, 2532, 22, 38, 25597, 68, 21, 487, 43, 7229, 8, 25509, 6018, 37, 15759, 28, 2010, 28, 5470, 60, 800, 3726, 3726, 5854, 15, 86, 32, 22, 18, 1637, 18135, 2483, 28, 2010, 28, 5470, 614, 9, 47, 32, 510, 378, 44, 28, 4950, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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# / MEF] Making imports available around your code. === In my [MEF][1] usage, I have a bunch of imports that I want to make available in many other parts of my code. Something like: [Export (typeof (IBarProvider))] class MyBarFactory : IBarPovider { [Import] public IFoo1Service IFoo1Service { get; set; } [Import] public IFoo2Service IFoo2Service { get; set; } [Import] public IFoo3Service IFoo3Service { get; set; } [Import] public IFoo4Service IFoo4Service { get; set; } [Import] public IFoo5Service IFoo5Service { get; set; } public IBar CreateBar() { return new BarImplementation(/* want to pass the imported services here */); } } class BarImplementation : IBar { readonly zib zib; public BarImplementation(/* ... */) { this.zib = new Zib(/* pass services here, too */); } } I could pass each imported service as an individual parameter, but it's a lot of boring code. There's gotta be something better. Any ideas? [1]: http://www.codeplex.com/MEF
0
[ 2, 636, 150, 5910, 13, 118, 55, 410, 500, 544, 20617, 904, 140, 154, 1797, 9, 800, 3726, 3726, 19, 51, 636, 790, 410, 500, 2558, 165, 500, 7514, 15, 31, 57, 21, 7653, 16, 20617, 30, 31, 259, 20, 233, 904, 19, 151, 89, 1341, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Architecture solution problem - need other opinion === I would like to ask you for your opinion. It's about solution for our new project. I am not sure how we should deal with it. We have some weak ideas but those don't allow us to start. Suggested project description: - we want offer our reseller build-in solution for customer, order, payment management with some internal functionality that consume our web services or require specific setting. We wanna have all under control but still be independent and allow to use it everywhere (reseller websites). - our built-in solution should be easily integrable into existing Reseller website and should be placed in reseller own server, not hosted by us primary - any necessary communication should be done only through the our web services as it require some specific information and settings, no permanent persistent data on client side except some setting - we suggest that most of processing on reseller side will be done by js (possibly jquery or Ext) Summary - distributed to any reseller to by placed in their website, easily integrated (iframe?, div only?) - simple, technology independent solution on reseller site, possibly only xml, html, javascripts (not sure how easily communicate with web services) - most of data provided by web services on our side (we are using Net 2.0 or 3.5) - keep security on high level us it's also about payments (we are using https as minimum) - no data saved on client side (saved on our side at sql server) So what you think... - Is good idea that we use only web services? - Should we use some kind of remoting (e.g CSLA objects)? then we depends on technology (Net, csla), don't we? - Can we assure enough security as we deal with online payments (e.g. PayPal)? - Can be all done by javascripts on reseller side? - any suggestion for technology that would keep us independent on reseller environment (IIS, apache,...)? Any constructive comments most welcome and appreciated. I believe there is plenty to discuss :-) Cheers, X.
4
[ 2, 2607, 4295, 1448, 13, 8, 376, 89, 4052, 800, 3726, 3726, 31, 83, 101, 20, 1349, 42, 26, 154, 4052, 9, 32, 22, 18, 88, 4295, 26, 318, 78, 669, 9, 31, 589, 52, 562, 184, 95, 378, 1183, 29, 32, 9, 95, 57, 109, 3910, 3478, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, if any, printable character did a user type based on the values in a given System.Windows.Forms.KeyEventArgs? === As a workaround for a problem, I think I have to handle KeyDown events to get the printable character the user actually typed. KeyDown supplies me with a KeyEventArgs object with the properities KeyCode, KeyData, KeyValue, Modifiers, Alt, Shift, Control. My first attempt was just to consider the KeyCode to be the ascii code, but KeyCode on my keyboard is 46, a period ("."), so I end up printing a period when the user types the delete key. So, I know my logic is inadequate. (For those who are curious, the problem is that I have my own combobox in a DataGridView's control collection and somehow SOME characters I type don't produce the KeyPress and TextChanged ComboBox events. These letters include Q, $, %....
0
[ 2, 98, 15, 100, 186, 15, 4793, 579, 925, 144, 21, 4155, 1001, 432, 27, 14, 4070, 19, 21, 504, 329, 9, 27508, 18, 9, 4190, 18, 9, 4237, 4943, 38, 10663, 18, 60, 800, 3726, 3726, 28, 21, 170, 10037, 26, 21, 1448, 15, 31, 277, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PIVOT in sql 2005 === I need to pivot one column. example need this data to look like (Look at bottom) a 1 a 2 b 3 b 4 c 5 d 6 d 7 d 8 d 9 e 10 e 11 e 12 e 13 e 14 Look like this a 1 2 b 3 4 c 5 d 6 7 8 9 e 10 11 12 13 14 any help would be greatly appreciated...
0
[ 2, 20670, 19, 4444, 255, 812, 800, 3726, 3726, 31, 376, 20, 20670, 53, 4698, 9, 823, 376, 48, 1054, 20, 361, 101, 13, 5, 5810, 35, 2129, 6, 21, 137, 21, 172, 334, 203, 334, 268, 272, 331, 13, 43, 400, 13, 43, 453, 13, 43, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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:SiteMapPath with dynamic images === Ok, so I'm building bread crumbs and depending on the value of the breadcrumb an image will be the seperator. So "HOME" will have one image and "SEARCH" will have another. I know I can do this programatically (at least I ASSUME) but is there an easier way to do this? Can I link an image to a node based on the value of the node? Can I do it with PathSeparatorTemplate? Thank you.
0
[ 2, 28, 306, 45, 9097, 15022, 8353, 29, 7782, 3502, 800, 3726, 3726, 5854, 15, 86, 31, 22, 79, 353, 5988, 26326, 18, 17, 4758, 27, 14, 1923, 16, 14, 5988, 25241, 220, 40, 1961, 129, 44, 14, 10332, 106, 3457, 9, 86, 13, 7, 8167,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ColdFusion web.xml? === Is there a coldfusion analog for the deployment descriptor/web.xml file found in a jee web container? I know CF is running on top of JRun and that I could just tweak the jrun dd, but what about an application specific configuration file? Is there something like this that I'm not aware of or do you just have to roll your own?
0
[ 2, 1191, 9818, 2741, 9, 396, 8184, 60, 800, 3726, 3726, 25, 80, 21, 1191, 9818, 11523, 26, 14, 10475, 121, 8741, 248, 118, 14113, 9, 396, 8184, 3893, 216, 19, 21, 13, 13412, 2741, 12147, 60, 31, 143, 10084, 25, 946, 27, 371, 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...
Converting a Word document into usable HTML in PHP === I have a set of Word documents which I want to publish using a PHP tool I've written. I copy and paste the Word documents into a text box and then save them into MySQL using the PHP program. The problem I Have arises from all the non-standard characters that Word documents have, like curly quotes and ellipses ("..."). What I do at the moment is manually search and replace these kinds of things (and also foreign symbols such as e-acute) with either plain text or HTML entities (&eacute ; etc) Is there a function in PHP I can call that will take the output of a Word document and convert everything that should be entities into entities, and other symbols that don't display properly in Firefox into symbols that do display. Thanks!
0
[ 2, 19583, 21, 833, 4492, 77, 182, 579, 13, 15895, 19, 13, 26120, 800, 3726, 3726, 31, 57, 21, 309, 16, 833, 4374, 56, 31, 259, 20, 10824, 568, 21, 13, 26120, 5607, 31, 22, 195, 642, 9, 31, 4344, 17, 640, 62, 14, 833, 4374, 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...
What's in your cshrc? === What's in your .cshrc that gives you total command of the C shell? Aliases welcome too! One technique or command per answer.
0
[ 2, 98, 22, 18, 19, 154, 272, 1635, 5453, 60, 800, 3726, 3726, 98, 22, 18, 19, 154, 13, 9, 150, 1635, 5453, 30, 2352, 42, 600, 1202, 16, 14, 272, 3593, 60, 15794, 160, 5575, 266, 187, 53, 4873, 54, 1202, 416, 1623, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Subversion repository layout for libraries developed across different programs === I'm responsible for several (rather small) programs, which share a lot of code via different libraries. I'm wondering what the best repository layout is to develop the different prorgrams (and libraries), and keep the libraries in sync across all the programs. For the sake of argument let's say there are two programs with two libraries: - Program1 - Library1 - Library2 - Program2 - Library1 - Library2 Naturally, bug fixes and enhancements for the libraries should (eventually) merge to all programs. Since the libraries are being worked on while working on the different programs, using [externals definitions][1] seems out of the question. So I thought to treat my libraries at all but one place as [vendor branches][2] but I'm not sure what the best layout for this would be. I was thinking something along the lines of: - Libraries - Library1 (ancestor) - Library2 (ancestor) - Program1 - Program1 code - Library1 (vendor branch) - Library2 (vendor branch) - ... Then say when developing Program1 some bug fixes are made for Library2, I merge them back to the Libraries part of the repository, and merge them from there to all other programs when desired. I'm a bit concerned this will result in many merges and a bit of a maintenance headache after a while but I don't really see a much better solution. Then again, this seems a rather common use case to me, so I thought I'd just ask the stackoverflow community, what's the best repository layout to achieve this? [1]: http://svnbook.red-bean.com/en/1.5/svn.advanced.externals.html [2]: http://svnbook.red-bean.com/en/1.5/svn.advanced.vendorbr.html
0
[ 2, 972, 10898, 24869, 9106, 26, 8649, 885, 464, 421, 1726, 800, 3726, 3726, 31, 22, 79, 1864, 26, 238, 13, 5, 23658, 284, 6, 1726, 15, 56, 1891, 21, 865, 16, 1797, 1197, 421, 8649, 9, 31, 22, 79, 5712, 98, 14, 246, 24869, 9106...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
DoubleRenderError in restful_authentication with acts_as_state_machine when activating users. === In a project which uses `restful_authentication` with `acts_as_state_machine` and email activation, I get a double render error whenever I try to activate a user. I'm using the default def activate self.current_user = params[:activation_code].blank? ? false : User.find_by_activation_code(params[:activation_code]) if logged_in? && !current_user.active? current_user.activate! flash[:notice] = "Signup complete!" end redirect_back_or_default('/') end to activate, and the default def redirect_back_or_default(default) redirect_to(session[:return_to] || default) session[:return_to] = nil end to redirect. The redirect method works in every other case it's called in the same way. What should I be looking for?
0
[ 2, 1494, 99, 16706, 29992, 19, 760, 1566, 1, 1346, 2504, 1786, 857, 29, 3167, 1, 472, 1, 3859, 1, 20442, 76, 13, 27939, 3878, 9, 800, 3726, 3726, 19, 21, 669, 56, 2027, 13, 1, 11466, 1566, 1, 1346, 2504, 1786, 857, 1, 29, 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...
Define cross directory dependencies in Jam === After many years of using make, I've just started using jam (actually ftjam) for my projects. In my project workspaces, I have two directories: * `src` where I build executables and libraries * `test` where my test programs are I'm trying to set up a dependency on test programs so that each time I compile them, the libraries will be recompiled as well (if they need to). Any suggestion on how to do it?
0
[ 2, 9267, 919, 16755, 29411, 19, 4001, 800, 3726, 3726, 75, 151, 122, 16, 568, 233, 15, 31, 22, 195, 114, 373, 568, 4001, 13, 5, 15661, 1187, 12976, 6, 26, 51, 2314, 9, 19, 51, 669, 170, 5582, 18, 15, 31, 57, 81, 559, 1596, 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...
Remove the *.cs, *.Designer.cs codebehind files? === Yeah, its a bit on this side of pointless, but I was wondering... I've got all these codebehind files cluttering my MVC app. The only reason why I need these files, as far as I can tell, is to tell ASP.NET that my page extends from ViewPage<T> rather than Page. I've tried a couple different Page directives changes, but nothing I've found will allow me to identify the base class for the page AND let me delete the codebehind files. Is there a way to do it?
0
[ 2, 4681, 14, 1637, 9, 6824, 15, 1637, 9, 19862, 106, 9, 6824, 1797, 24878, 6488, 60, 800, 3726, 3726, 3979, 15, 82, 21, 1142, 27, 48, 270, 16, 454, 923, 15, 47, 31, 23, 5712, 9, 9, 9, 31, 22, 195, 330, 65, 158, 1797, 24878, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you map a native to IL instruction pointer in-process === When using the unmanaged API for the .NET framework to profile a .NET process in-process, is it possible to look up the IL instruction pointer that correlates to the native instruction pointer provided to the StackSnapshotCallback function? As is probably obvious, I am taking a snapshot of the current stack, and would like to provide file and line number information in the stack dump. The *Managed Stack Explorer* does this by querying `ISymUnmanagedMethod::GetSequencePoints`. This is great, but the sequence points are associated to offsets, and I have so far assumed these are offsets from the beginning of the method ( in intermediate language ). In a follow-up comment to his blog post [Profiler stack walking: Basics and beyond][1], David Broman indicates that this mapping can be achieved using `ICorDebugCode::GetILToNativeMapping`. However, this is not ideal as getting this interface requires attaching to my process from another, debugger process. I would like to avoid that step because I would like to continue to be able to run my application from within the visual studio debugger while I am taking these snapshots. It makes it easier to click on the line number in the output window and go to the code in question. The functionality is possible.... you can spit out a line-numbered stack trace at will inside of managed code, the only question, is it accessible. [1]: http://blogs.msdn.com/davbr/archive/2005/10/06/478006.aspx#513551
0
[ 2, 184, 107, 42, 2942, 21, 1275, 20, 6317, 7304, 454, 106, 19, 8, 16835, 800, 3726, 3726, 76, 568, 14, 367, 177, 8030, 21, 2159, 26, 14, 13, 9, 2328, 6596, 20, 5296, 21, 13, 9, 2328, 953, 19, 8, 16835, 15, 25, 32, 938, 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...
resource file to text file? === I know there are tools to get text files to resource files for visual studio. But I want to get the text from my resource files to a text file so they can be translated. Or is there a better way to do this?
0
[ 2, 6577, 3893, 20, 1854, 3893, 60, 800, 3726, 3726, 31, 143, 80, 50, 4672, 20, 164, 1854, 6488, 20, 6577, 6488, 26, 3458, 1120, 9, 47, 31, 259, 20, 164, 14, 1854, 37, 51, 6577, 6488, 20, 21, 1854, 3893, 86, 59, 92, 44, 4331, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
RegEx to tell if a string does not contain a specific character === Easy question this time. I'm trying to test whether or not a string does not contain a character using regular expressions. I thought the expression was of the form "[^*x*]" where *x* is the character that you don't want to appear, but that doesn't seem to be working. For example, Regex.IsMatch("103","[^0]") and Regex.IsMatch("103&","[^&]") both return true (I would expect false). I started using <code>"[^&]"</code> and thought maybe the & needed to be escaped as \&, but it didn't seem to make a difference. Ideas? I assume it's something small. Also, I'm using .NET, so keep that in mind. Edit: I found [this](http://stackoverflow.com/questions/42990/regex-to-match-against-something-that-is-not-a-specific-substring), but it doesn't seem to answer the issue I'm having.
0
[ 2, 7953, 1706, 20, 494, 100, 21, 3724, 630, 52, 3717, 21, 1903, 925, 800, 3726, 3726, 2010, 1301, 48, 85, 9, 31, 22, 79, 749, 20, 1289, 1472, 54, 52, 21, 3724, 630, 52, 3717, 21, 925, 568, 1290, 13832, 9, 31, 289, 14, 1803, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Software translation services === I am in the process of translating an application into various languages, and I'm wondering if anyone has had experience with any translation services, and I'm not talking about Google Translate. :) Are there any that specialize more in the tech area, as opposed to just general translation?
0
[ 2, 2306, 4064, 687, 800, 3726, 3726, 31, 589, 19, 14, 953, 16, 25237, 40, 3010, 77, 617, 2556, 15, 17, 31, 22, 79, 5712, 100, 1276, 63, 41, 1496, 29, 186, 4064, 687, 15, 17, 31, 22, 79, 52, 1582, 88, 8144, 20628, 9, 13, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Secure methods of storing keys, passwords for asp.net === What is the best practice for storing keys, and or passwords for a website. These keys are for various 3rd party web services. Is it best to have them in the Web.config file, or in the database, or encrypted somehow?
0
[ 2, 4315, 3195, 16, 25615, 5534, 15, 20884, 18, 26, 28, 306, 9, 2328, 800, 3726, 3726, 98, 25, 14, 246, 1345, 26, 25615, 5534, 15, 17, 54, 20884, 18, 26, 21, 2271, 9, 158, 5534, 50, 26, 617, 203, 897, 346, 2741, 687, 9, 25, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to send email in HTML format with Microsoft Enterprise Library? === I know how to send mails using the Microsoft Enterprise Library 2.0 using a text formatter. But these emails are always in plain text. Is there any way with entlib 2.0 to send these mails in HTML format?
0
[ 2, 184, 20, 2660, 8517, 19, 13, 15895, 2595, 29, 7099, 6002, 1248, 60, 800, 3726, 3726, 31, 143, 184, 20, 2660, 4216, 18, 568, 14, 7099, 6002, 1248, 172, 9, 387, 568, 21, 1854, 26, 24700, 9, 47, 158, 8517, 18, 50, 550, 19, 374...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
"Send it to a friend" button on a webpage === How often do we see stuff like "Send this page to a friend" on a webpages? Well, I see them quite often. My question is, how do you guys see it's effectiveness? If I hit a webpage that's interesting, and I think my friend would enjoy it, I can just copy the URL from my browser bar, paste it into the email and press "Send" button. In my opinion, it's usually faster and less mistake-aware then the button/link like this on the webpage. In addition, I'm not really sure what this website does with the emails I enter there - don't they store it and then sell for $1/100 addresses to spammers? My question is - when you design a website, do you put such links on the pages (it's often seen on sites with some news/articles)? Does it even make sense?
0
[ 2, 13, 7, 18, 2451, 32, 20, 21, 860, 7, 5167, 27, 21, 2741, 6486, 800, 3726, 3726, 184, 478, 107, 95, 196, 3217, 101, 13, 7, 18, 2451, 48, 2478, 20, 21, 860, 7, 27, 21, 2741, 6486, 18, 60, 134, 15, 31, 196, 105, 1450, 478,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to get rid of hungarian notation? === Let's say you've inherited a C# codebase that uses one class with 200 static methods to provide core functionality (such as database lookups). Of the many nightmares in that class, there's copious use of Hungarian notation (the bad kind). Would you refactor the variable names to remove the Hungarian notation, or would you leave them alone? If you chose to change all the variables to remove Hungarian notation, what would be your method?
0
[ 2, 246, 161, 20, 164, 6681, 16, 5046, 15591, 60, 800, 3726, 3726, 408, 22, 18, 395, 42, 22, 195, 7179, 21, 272, 5910, 1797, 8436, 30, 2027, 53, 718, 29, 2327, 12038, 3195, 20, 1181, 2884, 18548, 13, 5, 4289, 28, 6018, 361, 15699...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Activerecord association question: getting has_many :through to work === I'm building an app in Ruby on Rails, and I'm including 3 of my models (and their migration scripts) to show what I'm trying to do, and what isn't working. Here's the rundown: I have users in my application that belong to teams, and each team can have multiple coaches. I want to be able to pull a list of the coaches that are applicable to a user. For instance, User A could belong to teams T1 and T2. Teams T1 and T2 could have four different coaches each, and one coach in common. I'd like to be able to pull the list of coaches by simply saying: u = User.find(1) coaches = u.coaches Here are my migration scripts, and the associations in my models. Am I doing something incorrectly in my design? Are my associations correct? class CreateUsers < ActiveRecord::Migration def self.up create_table :users do |t| t.column :login, :string, :default => nil t.column :firstname, :string, :default => nil t.column :lastname, :string, :default => nil t.column :password, :string, :default => nil t.column :security_token, :string, :default => nil t.column :token_expires, :datetime, :default => nil t.column :legacy_password, :string, :default => nil end end def self.down drop_table :users end end class CreateTeams < ActiveRecord::Migration def self.up create_table :teams do |t| t.column :name, :string end end def self.down drop_table :teams end end class TeamsUsers < ActiveRecord::Migration def self.up create_table :teams_users, :id => false do |t| t.column :team_id, :integer t.column :user_id, :integer t.column :joined_date, :datetime end end def self.down drop_table :teams_users end end Here are the models (not the entire file): class User < ActiveRecord::Base has_and_belongs_to_many :teams has_many :coaches, :through => :teams class Team < ActiveRecord::Base has_many :coaches has_and_belongs_to_many :users class Coach < ActiveRecord::Base belongs_to :teams end This is what happens when I try to pull the coaches: u = User.find(1) => #<User id: 1, firstname: "Dan", lastname: "Wolchonok"> >> u.coaches ActiveRecord::StatementInvalid: Mysql::Error: #42S22Unknown column 'teams.user_id' in 'where clause': SELECT `coaches`.* FROM `coaches` INNER JOIN teams ON coaches.team_id = teams.id WHERE ((`teams`.user_id = 1)) Here's the error in sql: Mysql::Error: #42S22Unknown column 'teams.user_id' in 'where clause': SELECT `coaches`.* FROM `coaches` INNER JOIN teams ON coaches.team_id = teams.id WHERE ((`teams`.user_id = 1)) Am I missing something in my :through clause? Is my design totally off? Can someone point me in the right direction?
0
[ 2, 1348, 14953, 607, 1301, 45, 1017, 63, 1, 14842, 13, 45, 11639, 20, 170, 800, 3726, 3726, 31, 22, 79, 353, 40, 4865, 19, 10811, 27, 2240, 18, 15, 17, 31, 22, 79, 215, 203, 16, 51, 2761, 13, 5, 290, 66, 8443, 17505, 6, 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...
Set application icon from resources in VS 05 === I know I can add a icon to the Resources.resx file of a project and then reference that icon from within the code. How do I set the icon of the entire EXE from the resources? All I see is a place to browse for another file. I want to use the current icon file that I have in my resources and not have to have a duplicate file in my project... thanks
0
[ 2, 309, 3010, 9801, 37, 2566, 19, 4611, 13, 4071, 800, 3726, 3726, 31, 143, 31, 92, 3547, 21, 9801, 20, 14, 2566, 9, 99, 18, 396, 3893, 16, 21, 669, 17, 94, 2801, 30, 9801, 37, 363, 14, 1797, 9, 184, 107, 31, 309, 14, 9801, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I make my default (or any static) route permanent on Linux (Fedora 9 specifically)? === I've just performed a new installation of the very latest (Fall, 2008) version of Fedora 9 Linux and am perplexed that it never set the default route properly and that even traveling the labyrinthine ways of this OS, there's no obvious way. Of course, it's clear that one can do it on a one-off basis like this: route add default gw gw1 metric 0 eth0 or like this: ip route add to default via 192.168.2.1 protocol static However, neither of these survives reboot. In reading through /etc/rc.d/init.d/network, it attempts to find data from a file in /etc/sysconfig/static-routes, but that file never existed. So, I tried to create it and populate it with data. The trouble with that is that the script places a dash (minus sign) in an odd spot that I'm not sure how to deal with. Of course, one can just edit /etc/rc.d/init.d/network, but that would be non-standard. As it is, my only other recourse seems to be editing rc.local, but that doesn't come early enough in the boot sequence to be there for things like, for example, the network time daemon. I've done my homework - I've read all the man pages, info entries, tried apropos, and I've even done a fair bit of web searching, all to no avail - my next step, sans answer here, will be to sign up to the Fedora mailing lists and ask there! Or, give up and edit the scripts. So, how is one supposed to do this?
0
[ 2, 184, 107, 31, 233, 51, 12838, 13, 5, 248, 186, 12038, 6, 858, 3032, 27, 13024, 13, 5, 3739, 12578, 561, 3524, 6, 60, 800, 3726, 3726, 31, 22, 195, 114, 986, 21, 78, 7758, 16, 14, 253, 5736, 13, 5, 5660, 15, 570, 6, 615, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual Studio 2003 Merge Modules === I am using Visual Studio 2005 to make an install. The application has a dependency on a DLL that was built with MFC 7.1 (from Visual Studio 2003). Are there merge modules for MFC 7.1 like there are for MFC 8? Where could they be found?
0
[ 2, 3458, 1120, 973, 12666, 17113, 800, 3726, 3726, 31, 589, 568, 3458, 1120, 812, 20, 233, 40, 16146, 9, 14, 3010, 63, 21, 26835, 27, 21, 13, 43, 211, 30, 23, 392, 29, 307, 7061, 453, 9, 165, 13, 5, 2665, 3458, 1120, 973, 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...
Linq to SQL - Can you submit changes for a single object? === Is there support in Linq to SQL for submitting changes to a single object? The SubmitChanges method sends all of the changes to the database, but what if I'm associating with an errorlog table and only want to save the records going into the errorlog without submitting all of the changes to my other tables? Example:<br/> Object Action (ID, Name, Type, Desc, Result)<br/> Object ActionError (ActionID, ErrNum, ErrMsg) There's an association between Action and ActionErrors by ID. When processing the Actions, something happens that I want to log an error for. I can add a new ActionError object to the collection of ActionErrors, but how I can send just those to the database without sending any changes to Action? Is using separate data contexts the only want to accomplish this in Linq to SQL?
0
[ 2, 6294, 1251, 20, 4444, 255, 13, 8, 92, 42, 12298, 1693, 26, 21, 345, 3095, 60, 800, 3726, 3726, 25, 80, 555, 19, 6294, 1251, 20, 4444, 255, 26, 28848, 1693, 20, 21, 345, 3095, 60, 14, 12298, 16229, 18, 2109, 11350, 65, 16, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Suggestions for a MessageBox.Show replacement that does not block GUI thread? === a while back I ran across a situation where we needed to display message-boxes to the user for notifications but we could not use MessageBox.Show because it blocks the GUI thread (so nothing on the screen gets updated while the dialog is active). Any suggestions on an alternative? [I coded an alternative at the time but I don't like it. I'll post it as an answer if nothing better appears though]
0
[ 2, 18389, 26, 21, 2802, 5309, 9, 9303, 4610, 30, 630, 52, 1921, 9457, 9322, 60, 800, 3726, 3726, 21, 133, 97, 31, 717, 464, 21, 1858, 113, 95, 851, 20, 3042, 2802, 8, 5309, 160, 20, 14, 4155, 26, 52, 4634, 18, 47, 95, 110, 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...
Does Google Maps respect the <BalloonStyle> definition in KML? === I'm using the GGeoXml object to overlay KML on an embedded Google Map. I need to customize the popup balloon for placemarks, so I'm trying to use the [`<BalloonStyle>`](http://code.google.com/apis/kml/documentation/kmlreference.html#balloonstyle) element: <?xml version="1.0" encoding="utf-8"?> <Document xmlns="http://earth.google.com/kml/2.0"> <name>Concessions</name> <Style id="masterPolyStyle"> ... <BalloonStyle> <text> <![CDATA[ <h6>Concession</h6> <h4>$[name]</h4> <p>$[description]</p> ]]> </text> <displayMode>default</displayMode> <bgColor>DDA39B81</bgColor> </BalloonStyle> </Style> ... </Document> This works as expected in Google Earth, but the embedded map API appears to ignore this altogether. I suppose I could just leave out the `<name>` element altogether and just put everything in HTML inside the `<description>` element, but I'd like to be able to take advantage of the [`<ExtendedData>`](http://code.google.com/apis/kml/documentation/kmlreference.html#extendeddata) element to display custom data in a structured way.
0
[ 2, 630, 8144, 6867, 2873, 14, 13, 1, 3610, 5709, 4381, 1, 5465, 19, 401, 255, 60, 800, 3726, 3726, 31, 22, 79, 568, 14, 489, 834, 6326, 8184, 3095, 20, 84, 4414, 401, 255, 27, 40, 12138, 8144, 2942, 9, 31, 376, 20, 5816, 2952,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
OS Compatibility for various .Net Frameworks === What are the minimum OS requirements for each of the .Net frameworks? E.g. for which version is it impossible to run each OS on: * Windows 95 * Windows 98 * Windows 98SE * Windows ME * Windows NT 3.x * Windows NT 4 * Windows 2000 I believe all .Net frameworks are compatible w/ XP, Vista, Windows Server 2003, and Windows Server 2008 (please correct me on that if wrong).
0
[ 2, 13, 759, 13, 21618, 26, 617, 13, 9, 2328, 6596, 18, 800, 3726, 3726, 98, 50, 14, 5187, 13, 759, 4786, 26, 206, 16, 14, 13, 9, 2328, 6596, 18, 60, 13, 62, 9, 263, 9, 26, 56, 615, 25, 32, 3992, 20, 485, 206, 13, 759, 27...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
img onload doesn't work well in IE7 === I have an img tag in my webapp that uses the onload handler to resize the image: <img onLoad="SizeImage(this);" src="foo" > This works fine in Firefox 3, but fails in IE7 because the image object being passed to the `SizeImage()` function has a width and height of 0 for some reason -- maybe IE calls the function before it finishes loading?. In researching this, I have discovered that other people have had this same problem with IE. I have also discovered that this isn't valid HTML 4. This is our doctype, so I don't know if it's valid or not: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Is there a reasonable solution for resizing an image as it is loaded, preferably one that is standards-compliant? The image is being used for the user to upload a photo of themselves, which can be nearly any size, and we want to display it at a maximum of 150x150. If your solution is to resize the image server-side on upload, I know that is the correct solution, but I am forbidden from implementing it :( It must be done client side, and it must be done on display. Thanks.
0
[ 2, 797, 263, 27, 8294, 1437, 22, 38, 170, 134, 19, 13, 660, 465, 800, 3726, 3726, 31, 57, 40, 797, 263, 3383, 19, 51, 2741, 7753, 30, 2027, 14, 27, 8294, 24641, 20, 302, 10454, 14, 1961, 45, 13, 1, 1660, 263, 27, 8294, 3726, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I add an image to my Run for a RichTextBlock? === I wrote a small WPF app where I like to prepend text into a RichTextBox, so that the newest stuff is on top. I wrote this, and it works: /// <summary> /// Prepends the text to the rich textbox /// </summary> /// <param name="textoutput">The text representing the character information.</param> private void PrependSimpleText(string textoutput) { Run run = new Run(textoutput); Paragraph paragraph = new Paragraph(run); if (this.RichTextBoxOutput.Document.Blocks.Count == 0) { this.RichTextBoxOutput.Document.Blocks.Add(paragraph); } else { this.RichTextBoxOutput.Document.Blocks.InsertBefore(this.RichTextBoxOutput.Document.Blocks.FirstBlock, paragraph); } } Now I would like to make a new version of that function which can add small images as well. I'm at a loss though - is it possible to add images?
0
[ 2, 184, 92, 31, 3547, 40, 1961, 20, 51, 485, 26, 21, 2042, 11969, 12048, 60, 800, 3726, 3726, 31, 738, 21, 284, 619, 7721, 4865, 113, 31, 101, 20, 15884, 2451, 1854, 77, 21, 2042, 11969, 5309, 15, 86, 30, 14, 17175, 3217, 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...
How do i tell if .net 3.5 sp1 is installed? === How can I find out if SP1 has been installed on a server which has .NET 3.5?
0
[ 2, 184, 107, 31, 494, 100, 13, 9, 2328, 203, 9, 264, 3782, 165, 25, 4066, 60, 800, 3726, 3726, 184, 92, 31, 477, 70, 100, 3782, 165, 63, 74, 4066, 27, 21, 8128, 56, 63, 13, 9, 2328, 203, 9, 264, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to really trap all errors with $etrap in Intersystems Caché? === I've been banging my head a lot because of this. In the way that $etrap (error handling special variable) was conceived you must be careful to really trap all errors. I've been partially successful in doing this. But I'm still missing something, because when run in user mode (application mode) there are **internal Cache library** errors that are still halting the application. What I did was: ProcessX(var) set sc=$$ProcessXProtected(var) w !,"after routine call" quit sc ProcessXProtected(var) new $etrap ;This stops Cache from processing the error before this context. Code ; will resume at the line [w !,"after routine call"] above set $etrap="set $ECODE = """" quit:$quit 0 quit" set sc=1 set sc=$$ProcessHelper(var) quit sc ProcessHelper(var) new $etrap ; this code tells Cache to keep unwindind error handling context up ; to the previous error handling. set $etrap="quit:$quit 0 quit" do AnyStuff^Anyplace(var) quit 1 AnyStuffFoo(var) ; Call anything, which might in turn call many sub routines ; The important point is that we don't know how many contexts ; will be created from now on. So we must trap all errors, in any ; case. ;Call internal Cache library quit After all this, I can see that when I call the program from a prompt it works! But when I call from Cache Terminal Script (application mode, I was told) it fails and aborts the program (the error trapping mechanism doesn't work as expected). Any lights? Thanks in advance, Luís Fernando
0
[ 2, 184, 20, 510, 5585, 65, 11908, 29, 5579, 62, 16514, 19, 1480, 10724, 18, 16522, 60, 800, 3726, 3726, 31, 22, 195, 74, 24472, 51, 157, 21, 865, 185, 16, 48, 9, 19, 14, 161, 30, 5579, 62, 16514, 13, 5, 29992, 7988, 621, 7612,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 use raw sockets in Perl? === How can you get a raw socket in Perl, and then what's the best way to built a packet for use with it?
0
[ 2, 184, 107, 31, 275, 4333, 18482, 18, 19, 416, 255, 60, 800, 3726, 3726, 184, 92, 42, 164, 21, 4333, 18482, 19, 416, 255, 15, 17, 94, 98, 22, 18, 14, 246, 161, 20, 392, 21, 12795, 26, 275, 29, 32, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Correct way to give users access to additional schemas in Oracle === I have two users Bob and Alice in Oracle, both created by running the following commands as sysdba from sqlplus: <pre> create user $blah identified by $password; grant resource, connect, create view to $blah; </pre> I want Bob to have complete access to Alice's schema (that is, all tables), but I'm not sure what grant to run, and whether to run it as sysdba or as Alice. Happy to hear about any good pointers to reference material as well -- don't seem to be able to get a good answer to this from either the Internet or "Oracle Database 10g The Complete Reference", which is sitting on my desk.
0
[ 2, 4456, 161, 20, 590, 3878, 1381, 20, 1351, 23874, 18, 19, 15759, 800, 3726, 3726, 31, 57, 81, 3878, 1909, 17, 4577, 19, 15759, 15, 156, 679, 34, 946, 14, 249, 14294, 28, 10315, 18, 43, 969, 37, 4444, 255, 13349, 45, 13, 1, 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...
What's the best free MySQL backup solution on a windows server? === I was wondering what is the best free MySQL backup solution on a windows server? I am interested in backing up the data only. Constraints - List item - free solution - backup should be done to somewhere outside the server - windows only - mysql only thx.
0
[ 2, 98, 22, 18, 14, 246, 551, 51, 18, 22402, 10119, 4295, 27, 21, 1936, 8128, 60, 800, 3726, 3726, 31, 23, 5712, 98, 25, 14, 246, 551, 51, 18, 22402, 10119, 4295, 27, 21, 1936, 8128, 60, 31, 589, 3158, 19, 3931, 71, 14, 1054, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to initialize a const struct without using a function? === I have a fairly simple const struct in some C code that simply holds a few pointers and would like to initialize it statically if possible. Can I and, if so, how?
0
[ 2, 25, 32, 938, 20, 2104, 2952, 21, 11608, 38, 13, 10346, 366, 568, 21, 1990, 60, 800, 3726, 3726, 31, 57, 21, 6647, 1935, 11608, 38, 13, 10346, 19, 109, 272, 1797, 30, 1659, 2763, 21, 310, 454, 445, 17, 83, 101, 20, 2104, 295...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Asp.NET Regular Expression Validator (Password Strength) === I have a validation control that has the following expression updated in Javascript: (?=(.*\\d.*){2,})(?=(.*\\w.*){2,})(?=(.*\\W.*){0,}).{8,} That's a password with atleast **2 digits**, **2 alpha characters**, **0 non-alphanumeric** and **8 character minimum**. Unfortunately this doesn't seem to be cross-browser compliant. Any ideas how to refactor this expression to work in IE? It works just fine in Firefox.
0
[ 2, 28, 306, 9, 2328, 1290, 1803, 7394, 3457, 13, 5, 6201, 9587, 2169, 6, 800, 3726, 3726, 31, 57, 21, 27999, 569, 30, 63, 14, 249, 1803, 6372, 19, 8247, 8741, 45, 13, 5, 60, 3726, 5, 9, 2483, 1, 43, 9, 2483, 6, 1, 135, 15,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can ASDoc Ant Task work without -source-path option? === I am tring to get the [ASDoc Ant task][1] to work: [1]: http://www.herrodius.com/blog/85 <target name="asdoc" depends="compile"> <mkdir dir="${dist_asdocs}"/> <asdoc docSources="${srcdir}" output="${dist_asdocs}" executable="${FLEX_HOME}/bin/asdoc.exe" /> </target> When I run it I get errors from ASDoc like "Error: Type was not found or was not a compile-time constant: XXX". When I run ASDoc manually I do: "asdoc -source-path src -doc-sources src". If I omit the -source-path value I get the same errors... so how am I supposed to get the Ant task to work?
0
[ 2, 184, 92, 28, 13799, 40, 38, 3005, 170, 366, 13, 8, 12097, 8, 8353, 4255, 60, 800, 3726, 3726, 31, 589, 13, 38, 2090, 20, 164, 14, 636, 472, 13799, 40, 38, 3005, 500, 2558, 165, 500, 20, 170, 45, 636, 165, 500, 45, 7775, 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...
VS2008 Debugger Hang === I'm using Visual Studio 2008 Team System with SP1, and I've noticed an annoying tendency for the IDE to hang for several (10-15) seconds whenever I stop debugging an application. At first I thought this only happened with WPF apps, but I've observed the behavior in Windows Forms apps and ASP.NET sites as well. I've made a series of changes to the Options based on <a href="http://stackoverflow.com/questions/8440/visual-studio-optimizations">this previous post</a> and done exhaustive Google/MSDN searches, but still haven't found a way to stop this. Anyone have any ideas?
0
[ 2, 4611, 2753, 121, 2345, 11356, 4546, 800, 3726, 3726, 31, 22, 79, 568, 3458, 1120, 570, 173, 329, 29, 3782, 165, 15, 17, 31, 22, 195, 2711, 40, 17610, 12621, 26, 14, 13, 3448, 20, 4546, 26, 238, 13, 5, 1036, 8, 1193, 6, 2582...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 do Gesture Recognition using Accerometers === My goal is to recognize simple gestures from accerometers mounted on a sun spot. A gesture could be as simple as rotating the device or moving the device in several different motions. The device currently only has accelerometers but we are considering adding gyroscopes if it would make it easier/more accurate. Does anyone have recommendations for how to do this? Any available libraries in Java? Sample projects you recommend I check out? The sun spot is a Java platform to help you make quick prototypes of systems. It is programmed using Java and can relay commands back to a base station attached to a computer. If I need to explain how the hardware works more leave a comment. Thanks for your help.
0
[ 2, 184, 20, 107, 7222, 3514, 568, 7602, 106, 17325, 18, 800, 3726, 3726, 51, 1195, 25, 20, 5844, 1935, 7222, 18, 37, 7602, 106, 17325, 18, 4897, 27, 21, 939, 1999, 9, 21, 7222, 110, 44, 28, 1935, 28, 16164, 14, 3646, 54, 1219, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Global Find and Replace in Visual Studio === I have a solution with multiple projects and we need to do some serious global replacements. Is there a way to do a wildcard replacement where some values remain in after the replace? So, for instance if I want every **HttpContext.Current.Session[“whatevervalue”]** to become **HttpContext.Current.Session[“whatevervalue”].ToString()** the string value being passed in will be respected? I don’t want to replace “whatevervalue” I just want to append a .ToString() where the pattern matches. Is this possible in Visual Studio?
0
[ 2, 2062, 477, 17, 3934, 19, 3458, 1120, 800, 3726, 3726, 31, 57, 21, 4295, 29, 1886, 2314, 17, 95, 376, 20, 107, 109, 2055, 2062, 4610, 18, 9, 25, 80, 21, 161, 20, 107, 21, 23003, 4610, 113, 109, 4070, 2166, 19, 75, 14, 3934, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Recommendations for a small c-based vector and matrix library. === I'm in need of a lightweight library for 2d & 3d vectors and 3x3 & 4x4 matrices. In basic C. Just so I don't reinvent the wheel suboptimally. Any suggestions?
0
[ 2, 12121, 26, 21, 284, 272, 8, 1281, 7497, 17, 8187, 1248, 9, 800, 3726, 3726, 31, 22, 79, 19, 376, 16, 21, 13613, 1248, 26, 172, 43, 279, 203, 43, 7497, 18, 17, 203, 396, 240, 279, 268, 396, 300, 24849, 9, 19, 2125, 272, 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...
Whats the best way to offer credit card payment on your website? === I want to offer credit card payment on my website and was wondering whats the best (or prefered) way to do so? I know I could use Google checkout, paypal, etc. but this is not what i am looking for. I am looking for a simple basic CC payment which supports all the different credit cards only.
0
[ 2, 98, 18, 14, 246, 161, 20, 1994, 3251, 2056, 7582, 27, 154, 2271, 60, 800, 3726, 3726, 31, 259, 20, 1994, 3251, 2056, 7582, 27, 51, 2271, 17, 23, 5712, 98, 18, 14, 246, 13, 5, 248, 6369, 69, 6, 161, 20, 107, 86, 60, 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...
Absolute Positioning using XSL to be transformed and rendered to PDF === How does one accomplish absolute positioning using XSL? I am working on a XSL transformation to FO to PDF for mailing letters and am trying to figure out how to absolutely position the fo:blocks containing the Return Address and Recipient Address so that they are displayed in the windows on the envelope. Anyone have suggestions on the magic syntax to make this happen?
0
[ 2, 7070, 649, 68, 568, 993, 18, 255, 20, 44, 8445, 17, 10877, 20, 13, 11124, 800, 3726, 3726, 184, 630, 53, 14570, 7070, 649, 68, 568, 993, 18, 255, 60, 31, 589, 638, 27, 21, 993, 18, 255, 6978, 20, 4310, 20, 13, 11124, 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...
Using an ObservableCollection<T> with Background Threads === It seems like Microsoft had a great idea with the ObservableCollection<T>. They are great for binding, and are super fast on the UI. However, requiring a context switch to the Dispatcher Thread every time you want to tweak it seems like a bit much. Does anyone know the best practices for using them? Is it simply to populate an ICollection as a message object in the business layer, then create the ObservableCollection in the UI layer? How do you then handle updates to the collection on the UI?
0
[ 2, 568, 40, 5122, 10321, 579, 15015, 872, 1, 38, 1, 29, 2395, 20396, 800, 3726, 3726, 32, 2206, 101, 7099, 41, 21, 374, 882, 29, 14, 5122, 10321, 579, 15015, 872, 1, 38, 1, 9, 59, 50, 374, 26, 8728, 15, 17, 50, 1026, 1512, 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...
Strict HTML Validation and Filtering in PHP === I'm looking for best practices for performing strict (whitelist) validation/filtering of user-submitted HTML. Main purpose is to filter out XSS and similar nasties that may be entered via web forms. Secondary purpose is to limit breakage of HTML content entered by non-technical users. I'm considering using [HTML Purifier][1], or rolling my own by using an HTML DOM parser to go through a process like HTML(dirty)->DOM(dirty)->filter->DOM(clean)->HTML(clean). Can you describe successes with these or any easier strategies that are also effective? Any pitfalls to watch out for? [1]: http://htmlpurifier.org
0
[ 2, 8170, 13, 15895, 27999, 17, 25272, 19, 13, 26120, 800, 3726, 3726, 31, 22, 79, 699, 26, 246, 5242, 26, 2955, 8170, 13, 5, 5051, 5739, 6, 27999, 118, 11924, 11832, 16, 4155, 8, 7563, 18568, 43, 13, 15895, 9, 407, 2131, 25, 20,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What PHP MVC framework can you recommend? === I'm starting a new project and I'm looking for a nice, light MVC framewok for PHP. I'll use PDO for database abstraction and jQuery as UI framework.
0
[ 2, 98, 13, 26120, 307, 8990, 6596, 92, 42, 12360, 60, 800, 3726, 3726, 31, 22, 79, 1422, 21, 78, 669, 17, 31, 22, 79, 699, 26, 21, 2210, 15, 471, 307, 8990, 3523, 499, 3085, 26, 13, 26120, 9, 31, 22, 211, 275, 351, 537, 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, 0, 0, 0, 0, 0...
PHP PEAR Spreadsheet_Excel_Writer sending an empty file. === Has anyone used [Pear: Spreadsheet\_Excel\_Writer](http://pear.php.net/package/Spreadsheet_Excel_Writer/)? The [Formatting Tutorial](http://pear.php.net/manual/en/package.fileformats.spreadsheet-excel-writer.intro-format.php) lists a script similar to what I'm working with: (trimmed down) <?php require_once 'Spreadsheet/Excel/Writer.php'; $workbook = new Spreadsheet_Excel_Writer(); $worksheet =& $workbook->addWorksheet(); $worksheet->write(0, 0, "Quarterly Profits for Dotcom.Com"); $workbook->send('test.xls'); $workbook->close(); ?> What I do understand so far about it... `$workbook->send('test.xls');` sets the headers up for Excel file transfer. Now, no errors seem to come up, but the file downloaded is entirely empty (even in a hex editor). So... Where (in what class/method) is the `$workbook` binary supposed to be written? Or, am I not overlooking it and `$workbook->send()`, as well as the headers it sets, is pointless? **Note**: I honestly don't know what version of Spreadsheet\_Excel\_Writer is being used; the sources don't include such useful information. I can tell you the copyright is **_2002-2003_**; so, anywhere from version 0.1 to 0.6.
0
[ 2, 13, 26120, 16619, 1789, 17627, 1, 1706, 11040, 1, 9657, 4907, 40, 2424, 3893, 9, 800, 3726, 3726, 63, 1276, 147, 636, 1664, 512, 45, 1789, 17627, 1, 1706, 11040, 1, 9657, 500, 5, 21127, 6903, 1664, 512, 9, 26120, 9, 2328, 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...
Need a good tool to explore a process and threads === We have some problems at our production code, my main problem is that we have some process that growing too much, as I think connections that someone forget to close. or maybe a communication error that causes them to be orphans. I am looking for a good tool to explore those process (also threads). I already know the Process explorer, the main problem is that such tool won't show me details about cache, session or other static classes in .net\com. Remark, we are using ESRI's Gis server and the processes are arcsoc.exe, arcsom.exe and w3wp.exe.
0
[ 2, 376, 21, 254, 5607, 20, 8594, 21, 953, 17, 20396, 800, 3726, 3726, 95, 57, 109, 1716, 35, 318, 637, 1797, 15, 51, 407, 1448, 25, 30, 95, 57, 109, 953, 30, 1991, 266, 212, 15, 28, 31, 277, 6760, 30, 737, 3856, 20, 543, 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 to update rails plugins installed through git but in a svn repo? === My rails app is in a svn repository, but several of the plugins are installed through git and later added to the svn repo. How can I update these plugins? I can't seem to get script/plugin update to do anything. I'd really like to update activemerchant to get rid of the Inflector warnings.
0
[ 2, 184, 20, 11100, 2240, 18, 10922, 108, 18, 4066, 120, 13, 10404, 47, 19, 21, 13, 18, 16578, 302, 1638, 60, 800, 3726, 3726, 51, 2240, 18, 4865, 25, 19, 21, 13, 18, 16578, 24869, 15, 47, 238, 16, 14, 10922, 108, 18, 50, 4066,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WWW::Mechanize equivilent for PHP? === I'm looking for a library that has functionality similar to Perl's [WWW::Mechanize][1], but for PHP. Basically, it should allow me to submit HTTP GET and POST requests with a simple syntax, and then parse the resulting page and return in a simple format all forms and their fields, along with all links on the page. I know about CURL, but it's a little too barebones, and the syntax is pretty ugly (tons of `curl_foo($curl_handle, ...)` statements [1]: http://search.cpan.org/dist/WWW-Mechanize/lib/WWW/Mechanize.pm#SYNOPSIS
0
[ 2, 13, 6483, 45, 45, 790, 3606, 2952, 13, 9629, 9638, 2291, 26, 13, 26120, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 1248, 30, 63, 18548, 835, 20, 416, 255, 22, 18, 636, 6483, 45, 45, 790, 3606, 2952, 500, 2558, 165, 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...
How do I select a mouse hovered object with JQuery? === I have a list of dynamically generated div-tags with a class-attribute but no id. How do I select the one which is hovered with mouse cursor? In CSS it would be like this: div.classname:hover Oh, and I wouldn't like to use any extra Jquery-plugins.
0
[ 2, 184, 107, 31, 5407, 21, 7567, 21033, 3095, 29, 487, 8190, 93, 60, 800, 3726, 3726, 31, 57, 21, 968, 16, 7782, 1326, 6756, 13, 12916, 8, 8628, 18, 29, 21, 718, 8, 721, 14755, 47, 90, 4924, 9, 184, 107, 31, 5407, 14, 53, 56...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...