unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Recommend an Open Source .NET Barcode Reader Library === Based on the stackoverflow question titled "[Barcode- and Character Recognition component for .Net][1]" we've discovered open source libraries for [character recognition][2], but nothing's turned up for barcode recognition. Does anyone know of an open source .NET barcode reader library? [1]: http://stackoverflow.com/questions/97212/barcode-and-character-recognition-component-for-net [2]: http://www.pixel-technology.com/freeware/tessnet2/
4
[ 2, 12360, 40, 368, 1267, 13, 9, 2328, 748, 9375, 7765, 1248, 800, 3726, 3726, 432, 27, 14, 7566, 2549, 9990, 1301, 3008, 13, 7, 2558, 1850, 9375, 8, 17, 925, 3514, 5912, 26, 13, 9, 2328, 500, 2558, 165, 500, 7, 95, 22, 195, 18...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Indenting comments to match code in vim === I do all my coding in vim and am quite happy with it (so, please, no "use a different editor" responses), but have an ongoing annoyance in that the smartindent feature wants to not indent comments beginning with # at all. e.g., I want # Do something $x = $x + 1; if ($y) { # Do something else $y = $y + $z; } instead of vim's preferred # Do something $x = $x + 1; if ($y) { # Do something else $y = $y + $z; } The only ways I have been able to prevent comments from being sent to the start of the line are to either insert and delete a character on the line before hitting # (a nuisance to have to remember to do every time) or turn off smartindent entirely (losing automatic indentation increase/decrease as I open/close braces). How can I set vim to maintain my indentation for comments instead of sending them to the start of the line?
0
[ 2, 19, 817, 1203, 7534, 20, 730, 1797, 19, 1790, 79, 800, 3726, 3726, 31, 107, 65, 51, 13, 15458, 19, 1790, 79, 17, 589, 1450, 1700, 29, 32, 13, 5, 656, 15, 2247, 15, 90, 13, 7, 3699, 21, 421, 1835, 7, 13231, 6, 15, 47, 57...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get list of running applications using PowerShell or VBScript === I need to programmatically get a list of running applications as shown in the "Applications" tab inside the Windows Task Manager using PowerShell or VBScript. All I could find so far is how to list processes using VBScript and WMI.
0
[ 2, 184, 20, 164, 968, 16, 946, 3767, 568, 414, 15984, 54, 13, 20468, 8741, 800, 3726, 3726, 31, 376, 20, 625, 6732, 1326, 164, 21, 968, 16, 946, 3767, 28, 1721, 19, 14, 13, 7, 2552, 20669, 18, 7, 6523, 572, 14, 1936, 3005, 138...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 recursion good in SQL Server? === I have a table in SQL server that has the normal tree structure of Item_ID, Item_ParentID. Suppose I want to iterate and get all CHILDREN of a particular Item_ID (at any level). Recursion seems an intuitive candidate for this problem and I can write an SQL Server function to do this. Will this affect performance if my table has many many records? How do I avoid recursion and simply query the table? Please any suggestions?
0
[ 2, 25, 26604, 5991, 254, 19, 4444, 255, 8128, 60, 800, 3726, 3726, 31, 57, 21, 859, 19, 4444, 255, 8128, 30, 63, 14, 1826, 1541, 1411, 16, 9101, 1, 1340, 15, 9101, 1, 18908, 1340, 9, 5787, 31, 259, 20, 32, 106, 1373, 17, 164, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 say no to all "do you want to overwrite" prompts in a batch file copy? === By default, copying from the command prompt will prompt you to overwrite files that already exist in the target location. You can add "/Y" to say "Yes to all" replacements. But how can you say "No to all" ? In other words, I want to copy everything from one directory that does **not** already exist in the target. The closest thing I see is the XCOPY argument to only copy things after a specific mod-datetime.
0
[ 2, 184, 20, 395, 90, 20, 65, 13, 7, 537, 42, 259, 20, 84, 23716, 7, 11443, 13531, 19, 21, 13064, 3893, 4344, 60, 800, 3726, 3726, 34, 12838, 15, 4344, 68, 37, 14, 1202, 11443, 4417, 129, 11443, 4417, 42, 20, 84, 23716, 6488, 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 stop java process gracefully? === How to stop java process gracefully in Linux and Windows?<br> When does Runtime.getRuntime().addShutdownHook gets called, and when it does not?<br> What about finalizers, do they help here?<br> Can I send some sort of signal to java process from shell?<br> <br> Thanks,<br>
0
[ 2, 184, 20, 747, 8247, 953, 28138, 60, 800, 3726, 3726, 184, 20, 747, 8247, 953, 28138, 19, 13024, 17, 1936, 60, 1, 5145, 1, 76, 630, 485, 891, 9, 3060, 3169, 891, 5, 6, 9, 14854, 15640, 2968, 20378, 3049, 227, 15, 17, 76, 32,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Embeddable languages (ie, I want to add scripting to my sw) === - What mature embeddable languages are available (or reversed, which popular languages have as a stated feature the ability to be embedded in other software) and more importantly - What embeddable languages have a *really* good tutorial on embedding their language and extending it for your specific software Bonus points: - Embeddable languages that can *easily* be cut down in size/features/runtime/code size/memory consumption/etc for small systems (microcontrollers, for instance) -Adam
0
[ 2, 11911, 69, 43, 579, 2556, 13, 5, 660, 15, 31, 259, 20, 3547, 3884, 68, 20, 51, 8783, 6, 800, 3726, 3726, 13, 8, 98, 8615, 11911, 69, 43, 579, 2556, 50, 904, 13, 5, 248, 12951, 15, 56, 844, 2556, 57, 28, 21, 1240, 1580, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
OpenSource: Collaborative Design === *After delving into the world of opensource I have found implementation is emphasised over design. Version control allows for a project to branch off in many directions, which projects may do; this suggests lack of consensus or direction amongst the participants.* ###What software or websites are useful for collaborative design?
0
[ 2, 368, 12097, 45, 12937, 704, 800, 3726, 3726, 1637, 5162, 1506, 8397, 77, 14, 126, 16, 368, 12097, 31, 57, 216, 6123, 25, 6238, 69, 84, 704, 9, 615, 569, 2965, 26, 21, 669, 20, 1686, 168, 19, 151, 7876, 15, 56, 2314, 123, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 abort a long operation in WinDbg? === Often WinDbg will enter a state where it is **\*Busy\*** performing an operation. Often this is due to some mistake I made trying to *dt some_variable_itll_never_find* or setting a break point somewhere without symbols or the 1000's of other mistakes I make fumbling around this tool. **Is there a way to cancel the current operation?**
0
[ 2, 184, 92, 31, 21557, 21, 175, 1453, 19, 1511, 19924, 60, 800, 3726, 3726, 478, 1511, 19924, 129, 2830, 21, 146, 113, 32, 25, 13, 1409, 1, 2483, 3822, 93, 1, 2483, 1409, 2955, 40, 1453, 9, 478, 48, 25, 397, 20, 109, 5643, 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...
Browsing SQL Server === Are there any tools for just browsing SQL Server? I ask because sometimes SSMS is a little heavy weight when I just want to look through the database and find one record, and SQLCMD doesn't really seem like a good choice when browsing through a lot of different records or a lot of large records.
0
[ 2, 10175, 68, 4444, 255, 8128, 800, 3726, 3726, 50, 80, 186, 4672, 26, 114, 10175, 68, 4444, 255, 8128, 60, 31, 1349, 185, 1030, 13, 18, 18, 79, 18, 25, 21, 265, 1278, 1763, 76, 31, 114, 259, 20, 361, 120, 14, 6018, 17, 477, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 XAML of the current screen in silverlight 2 === I am trying to send my dynamically created silverlight 2 page/image to a an ASP.net web service to render it as an bitmap image. I can see many examples how to get the XAML using javascript ([see here][1]) in version 1 of silverlight but I have a few differences. a) I am using silverlight 2 RC1 b) I have dynamically add controls to the page in c# c) I would prefer to use c# to get the new XAML to keep all the coed in one place. does anyone know how to extract the XAML from a control or the page in c#? Thank you [1]: http://www.thedatafarm.com/blog/2008/01/31/ConvertingSilverlightInkPresenterImagesToAPNGFile.aspx
0
[ 2, 1017, 13, 6791, 8184, 16, 14, 866, 2324, 19, 1172, 3130, 172, 800, 3726, 3726, 31, 589, 749, 20, 2660, 51, 7782, 1326, 679, 1172, 3130, 172, 2478, 118, 22039, 20, 21, 40, 28, 306, 9, 2328, 2741, 365, 20, 16535, 32, 28, 40, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Latent Dirichlet Allocation, pitfalls, tips and programs === I'm experimenting with [Latend Dirichlet Allocation][1] for topic disambiguation and assignment, and I'm looking for advice. 1. Which program is the "best", where best is some combination of easiest to use, best prior estimation, fast 1. How do I incorporate my intuitions about topicality. Let's say I think I know that some items in the corpus are really in the same category, like all articles by the same author. Can I add that into the analysis? 1. Any unexpected pitfalls or tips I should know before embarking? I'd prefer is there are R or Python front ends for whatever program, but I expect (and accept) that I'll be dealing with C. [1]: http://en.wikipedia.org/wiki/Latent_Dirichlet_allocation
0
[ 2, 456, 2877, 926, 3920, 1336, 16840, 15, 4175, 5660, 18, 15, 11034, 17, 1726, 800, 3726, 3726, 31, 22, 79, 5737, 68, 29, 636, 6554, 706, 926, 3920, 1336, 16840, 500, 2558, 165, 500, 26, 8303, 1460, 9150, 3073, 857, 17, 8427, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to find the installation directory of a third party application, such as Google Earth, using c# === I have the following code fragment that starts a Google Earth process using a hardcoded path: var process = new Process { StartInfo = { //TODO: Get location of google earth executable from registry FileName = @"C:\Program Files\Google\Google Earth\googleearth.exe", Arguments = "\"" + kmlPath + "\"" } }; process.Start(); I want to programmatically fetch the installation location of *googleearth.exe* from somewhere (most likely the registry).
0
[ 2, 184, 20, 477, 14, 7758, 16755, 16, 21, 422, 346, 3010, 15, 145, 28, 8144, 1073, 15, 568, 272, 5910, 800, 3726, 3726, 31, 57, 14, 249, 1797, 14847, 30, 3244, 21, 8144, 1073, 953, 568, 21, 552, 22254, 2013, 45, 4033, 953, 800, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 install WPF application to a PC without Framework 3.5 === I have a question about how to deploy WPF application into a PC without Framework 3.5. If a PC just installs Windows XP and sp3, Is it possible to design a setup package that can install WPF Application directly on this PC? <p> The situation is like this:<p> I designed a simple WPF Application. And I want to get its setup package. When the customs get the package, they can install the application directly, even if their PCs do not have Framework3.5 installed. <p> Is it possible? If it is possible, how can I do this?
0
[ 2, 184, 20, 16146, 619, 7721, 3010, 20, 21, 5168, 366, 6596, 203, 9, 264, 800, 3726, 3726, 31, 57, 21, 1301, 88, 184, 20, 17617, 619, 7721, 3010, 77, 21, 5168, 366, 6596, 203, 9, 264, 9, 100, 21, 5168, 114, 16146, 18, 1936, 23...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 should they stop using Visual Studio 6 === I have a client who is still using Visual Studio 6 for building production systems. They write multi-threaded systems that use STL and run on mutli-processor machines. Occasionally when they change the spec of or increase the load on one of their server machines they get 'weird' difficult to reproduce errors... I know that there are several issues with Visual Studio 6 development and I'd like to convince them to move to Visual Stuio 2005 or 2008 (they have Visual Studio 2005 and use it for some projects). The purpose of this question is to put together a list of known issues or reasons to upgrade along with links to where these issues are discussed or reported. It would also be useful to have real life 'horror stories' of how these issues have bitten you.
0
[ 2, 483, 378, 59, 747, 568, 3458, 1120, 400, 800, 3726, 3726, 31, 57, 21, 6819, 72, 25, 174, 568, 3458, 1120, 400, 26, 353, 637, 1242, 9, 59, 2757, 1889, 8, 96, 10647, 69, 1242, 30, 275, 354, 255, 17, 485, 27, 13, 7903, 1210, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP.Net: Approaches to multilingual websites with Javascript and AJAX === We've recently completed phase 1 of a ASP.Net website in English and French. We went with using resource files to store language specific strings, but because the site used ASP.Net AJAX and javascript heavily we rigged up a solution to pass the right files through the ASP.Net pipeline where we could catch "tokens" and replace them with the appropriate text pulled from the resource files. This is the second project I've been involved in that had these kinds of challenges, the first one stored the text strings in a database, and instead of ASP.Net AJAX, it used the AJAX tools that come with the Prototype library and put all Javascript into aspx files so that the tokens could be replaced on the way out. What I'm wondering is, has anyone else encountered a similar scenario? What approach did you take? What lessons were learned? How did you deal with things like internationalized date formats?
0
[ 2, 28, 306, 9, 2328, 45, 7501, 20, 1889, 23427, 13931, 29, 8247, 8741, 17, 20624, 800, 3726, 3726, 95, 22, 195, 1989, 1066, 2702, 137, 16, 21, 28, 306, 9, 2328, 2271, 19, 486, 17, 484, 9, 95, 296, 29, 568, 6577, 6488, 20, 1718...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I create a custom menu navigation in ASP.NET? === Is it possible to make the Menu control look and feel like the following image? ![alt text][1] It is a nested list [1]: http://img512.imageshack.us/img512/4774/navzu4.gif
1
[ 2, 184, 107, 31, 1600, 21, 5816, 11379, 8368, 19, 28, 306, 9, 2328, 60, 800, 3726, 3726, 25, 32, 938, 20, 233, 14, 11379, 569, 361, 17, 583, 101, 14, 249, 1961, 60, 13, 187, 2558, 192, 38, 1854, 500, 2558, 165, 500, 32, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual Basic Project Code to UML diagram tool === I have been given the task of converting an old VB6 program to C#. Unfortunately the project has 8 modules, lots of code in each and tons of nested IF statements and just plan horrible design. I am hoping to find a tool that would take all the files and generate some sort of UML diagram to show the basic flow of code to allow me to start debugging it. The program takes in a number of different file types all with slightly different information, but it seems to just deal with them all in a number of large methods calling different methods here and there depending on what the information is. I know I will have to taken some input files and step through it all looking for what it does in each situation so I can find the similarities and differences to be able to produce a more elegant solution which will be easier to maintain. Thanks for any and all help
0
[ 2, 3458, 2125, 669, 1797, 20, 13, 723, 255, 14161, 5607, 800, 3726, 3726, 31, 57, 74, 504, 14, 3005, 16, 19583, 40, 315, 13, 20468, 379, 625, 20, 272, 5910, 9, 6200, 14, 669, 63, 469, 17113, 15, 7503, 16, 1797, 19, 206, 17, 52...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Manually Trigger a TFS Team Build === How would you manually trigger additional team builds from a team build? For example, when we were in CC.Net other builds would trigger if certain builds were successful. The second build could either be projects that use this component or additional, long running test libraries for the same component.
0
[ 2, 23671, 7286, 21, 13, 11720, 18, 173, 1895, 800, 3726, 3726, 184, 83, 42, 23671, 7286, 1351, 173, 1895, 18, 37, 21, 173, 1895, 60, 26, 823, 15, 76, 95, 46, 19, 8093, 9, 2328, 89, 1895, 18, 83, 7286, 100, 1200, 1895, 18, 46, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 set the current line of execution in the eclipse java debugger === I want to force the current execution line to a specific line in the same function. All my old school debuggers had this feature, but I can't find it in eclipse. Is there a way to do it without changing code?
0
[ 2, 184, 92, 31, 309, 14, 866, 293, 16, 5769, 19, 14, 11652, 8247, 121, 2345, 11356, 800, 3726, 3726, 31, 259, 20, 558, 14, 866, 5769, 293, 20, 21, 1903, 293, 19, 14, 205, 1990, 9, 65, 51, 315, 116, 121, 16254, 11896, 41, 48, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I get to the menu in emacs in console mode? === if you launch emacs using the -nw flag to force a console session (rather than an X session if you have X windows running), how do you get to the menu. There are some items held in the menus that are infrequently-enough used on my part that I don't recall the escape or control sequence to do them.
0
[ 2, 184, 107, 31, 164, 20, 14, 11379, 19, 13, 62, 6893, 18, 19, 8650, 3740, 60, 800, 3726, 3726, 100, 42, 3394, 13, 62, 6893, 18, 568, 14, 13, 8, 103, 499, 3157, 20, 558, 21, 8650, 3723, 13, 5, 23658, 119, 40, 993, 3723, 100,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Correct way to populate an Array with a Range in Ruby === I am working through a book which gives examples of Ranges being converted to equivalent arrays using their "to_a" methods When i run the code in irb I get the following warning warning: default `to_a' will be obsolete What is the the correct alternative to using to_a? are there alternate ways to populate an array with a Range? Cheers
0
[ 2, 4456, 161, 20, 1675, 12383, 40, 7718, 29, 21, 978, 19, 10811, 800, 3726, 3726, 31, 589, 638, 120, 21, 360, 56, 2352, 3770, 16, 9230, 142, 3494, 20, 4602, 7718, 18, 568, 66, 13, 7, 262, 1, 58, 7, 3195, 76, 31, 485, 14, 179...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Gotta switch HTML guys mid-stream === So, this is my first PM experience and hell if I'm not learning something new every day. The guy I hired to do my XHTML/CSS excepted a full time position somewhere else. Which SUCKS. I can either stay with him (he said he could get a friend to help during this transition) but he HASN'T been dependable. However, if I switch horses at this point I would have to get a new CSS, new master page, half my pages would have the old one and half the new. UGH... really stinks. Any reccomendations from people that have done this before? Oh, and PS, I need all of this done, like, three weeks ago.
0
[ 2, 12185, 5521, 13, 15895, 2776, 907, 8, 11260, 800, 3726, 3726, 86, 15, 48, 25, 51, 64, 6736, 1496, 17, 1094, 100, 31, 22, 79, 52, 2477, 301, 78, 352, 208, 9, 14, 1244, 31, 3658, 20, 107, 51, 993, 15895, 118, 6824, 18, 1613, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Windows equivalent of /dev/random === Is there a Windows equivalent of Linux's [/dev/random][1]? [1]: http://en.wikipedia.org/wiki/Urandom#Linux
0
[ 2, 1936, 4602, 16, 13, 118, 14438, 118, 2195, 5555, 800, 3726, 3726, 25, 80, 21, 1936, 4602, 16, 13024, 22, 18, 636, 118, 14438, 118, 2195, 5555, 500, 2558, 165, 500, 60, 636, 165, 500, 45, 7775, 6903, 219, 9, 17375, 26132, 9, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to set selected row of DataGridView to newly-added row when the grid is bound to sorted DataView? === I have a DataGridView bound to a DataView. The grid can be sorted by the user on any column. I add a row to the grid by calling NewRow on the DataView's underlying DataTable, then adding it to the DataTable's Rows collection. How can I select the newly-added row in the grid? I tried doing it by creating a BindingManagerBase object bound to the BindingContext of the DataView, then setting BindingManagerBase.Position = BindingManagerBase.Count. This works if the grid is not sorted, since the new row gets added to the bottom of the grid. However, if the sort order is such that the row is not added to the bottom, this does not work. How can I reliably set the selected row of the grid to the new row?
0
[ 2, 184, 20, 309, 1704, 3131, 16, 1054, 16375, 4725, 20, 2771, 8, 14854, 69, 3131, 76, 14, 7354, 25, 4138, 20, 22554, 1054, 4725, 60, 800, 3726, 3726, 31, 57, 21, 1054, 16375, 4725, 4138, 20, 21, 1054, 4725, 9, 14, 7354, 92, 44, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Random record from a database table (T-SQL) === Is there a succinct way to retrieve a random record from a sql server table? I would like to randomize my unit test data, so am looking for a simple way to select a random id from a table. In English, the select would be "Select one id from the table where the id is a random number between the lowest id in the table and the highest id in the table." I can't figure out a way to do it without have to run the query, test for a null value, then re-run if null. Ideas?
0
[ 2, 5477, 571, 37, 21, 6018, 859, 13, 5, 38, 8, 18, 22402, 6, 800, 3726, 3726, 25, 80, 21, 13, 29437, 4812, 161, 20, 11917, 21, 5477, 571, 37, 21, 4444, 255, 8128, 859, 60, 31, 83, 101, 20, 5477, 2952, 51, 1237, 1289, 1054, 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...
Why doesn't WD Velociraptor speed up my VC++-compilation significantly? === Several people round here recommended switching to the new **WD Velociraptor 10000rpm** harddisk. Also magazine articles praise the performance. I bought one and mirrored my old system to it. The resulting increase in compilation-speed is somewhat disappointing: - On my old Samsung drive (SATA, 7200), the compilation time was **16:02**. - On the Velociraptor the build takes **15:23**. I have a C6600 with 1.5G ram. It's a C++-Project with 1200 files. The build is done in Visual Studio 2005. The acoustic managment is switchted off (no big difference anyway). Did something go wrong or is this modest acceleration really all, I can expect?
0
[ 2, 483, 1437, 22, 38, 13, 14733, 7415, 16325, 19437, 1362, 71, 51, 13, 8990, 20512, 8, 11103, 49, 10832, 5085, 60, 800, 3726, 3726, 238, 148, 560, 235, 5773, 13027, 20, 14, 78, 13, 1409, 14733, 7415, 16325, 19437, 332, 3993, 6952, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 convert a file to utf-8 in Python? === I need to convert a bunch of files to utf-8 in Python, and I have trouble with the "converting the file" part. I'd like to do the equivalent of: iconv -t utf-8 $file > converted/$file # this is shell code Thanks!
0
[ 2, 184, 20, 8406, 21, 3893, 20, 287, 11720, 8, 457, 19, 20059, 60, 800, 3726, 3726, 31, 376, 20, 8406, 21, 7653, 16, 6488, 20, 287, 11720, 8, 457, 19, 20059, 15, 17, 31, 57, 2572, 29, 14, 13, 7, 1126, 8122, 68, 14, 3893, 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...
Quick unix command to display specific lines in the middle of a file? === Trying to debug an issue with a server and my only log file is a 20GB log file (with no timestamps even! Why do people use `System.out.println()` as logging? In production?!) Using grep, I've found an area of the file that I'd like to take a look at, line 347340107. Other than doing something like head -<$LINENUM + 10> filename | tail -20 ... which would require `head` to read through the first 347 million lines of the log file, is there a quick and easy command that would dump lines 347340100 - 347340200 (for example) to the console?
0
[ 2, 2231, 22540, 1202, 20, 3042, 1903, 1560, 19, 14, 772, 16, 21, 3893, 60, 800, 3726, 3726, 749, 20, 121, 16254, 40, 1513, 29, 21, 8128, 17, 51, 104, 6738, 3893, 25, 21, 434, 11400, 6738, 3893, 13, 5, 1410, 90, 436, 4919, 1919, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 set and restore FPU CTRL registers? === I can reset FPU's CTRL registers with this: http://support.microsoft.com/kb/326219 But how can I save current registers, and restore them later? It's from .net code..
0
[ 2, 184, 92, 31, 309, 17, 8454, 398, 4201, 13, 4812, 6362, 2243, 18, 60, 800, 3726, 3726, 31, 92, 23422, 398, 4201, 22, 18, 13, 4812, 6362, 2243, 18, 29, 48, 45, 7775, 6903, 24168, 9, 22019, 12980, 9, 960, 118, 18167, 16842, 2272...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
easy regex === I have a date I want line wrapped. I have $date = '2008-09-28 9:19 pm'; I need the first space replaced with a br to become 2008-09-28<br>9:19 pm If it wasn't for that second space before PM, I would just str_replace() it. Oh, this is php.
0
[ 2, 2010, 7953, 1706, 800, 3726, 3726, 31, 57, 21, 1231, 31, 259, 293, 3684, 9, 31, 57, 5579, 8209, 800, 13, 22, 2753, 8, 2545, 8, 2714, 561, 45, 1433, 6736, 22, 73, 31, 376, 14, 64, 726, 1141, 29, 21, 3851, 20, 533, 570, 8, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you version your projects and manage releases? === Our situation is as follows, but I'm curious about this problem in any situation. We have a framework consisting of 4 projects: - beans - util - framework - web We also have modules that need a version and depend on a version of beans and util. Finally we have a customer project that consists of a specific version of the core projects and one or more modules. Is there a standard way to version these projects? What seems simple to me is becoming really complicated as we try to deliver releases to QA and then manage our ongoing development with the maintenance of the release (release = tag and possible branch). I kind of prefer the following: 1.2.0 - major and minor versions + release. 1.2.1 - next release 1.2.0_01 - bug fix in 1.2.0 release (branch) etc. Any ideas?
0
[ 2, 184, 107, 42, 615, 154, 2314, 17, 4705, 7073, 60, 800, 3726, 3726, 318, 1858, 25, 28, 2415, 15, 47, 31, 22, 79, 7686, 88, 48, 1448, 19, 186, 1858, 9, 95, 57, 21, 6596, 4160, 16, 268, 2314, 45, 13, 8, 14685, 13, 8, 13, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How does one weed out dependencies in a large project? === I'm about to inherit a rather large Java enterprise project that has a large amount of third party dependencies. There is at least seventy JARs included and some of them would seem to be unused e.g. spring.jar which I know isn't used. It seems that over the years as various developers have touched upon the code base they have all tried out new project-of-the-month type libraries. **How does one go about getting rid of these?** Within reason of course, as clearly some dependencies are helpful to not have to re-invent the wheel. I'm obviously interested in java based projects but I'm welcome to answers across languages that people think will be helpful.
0
[ 2, 184, 630, 53, 95, 69, 70, 29411, 19, 21, 370, 669, 60, 800, 3726, 3726, 31, 22, 79, 88, 20, 17569, 21, 864, 370, 8247, 6002, 669, 30, 63, 21, 370, 2006, 16, 422, 346, 29411, 9, 80, 25, 35, 639, 11818, 5112, 18, 506, 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...
Recommended placement of tempdb and log for SQL Server OLTP database(s) === Suppose the following configuration: Drive D ... Data, Drive E .... TempDB, Drive F ... Log. and suppose all drives are on seperate spindles with respective drive controllers. Concerning performance; Is the above configuration optimal, decent, or not advisable? With budgetary constraints in mind; Can any of these DB's share the save drive without significant performance degradation? Which of these drives needs to be the fastest?
0
[ 2, 5773, 10774, 16, 13, 9577, 9007, 17, 6738, 26, 4444, 255, 8128, 6304, 13726, 6018, 5, 18, 6, 800, 3726, 3726, 5787, 14, 249, 8091, 45, 1493, 13, 43, 13, 9, 9, 9, 1054, 15, 1493, 13, 62, 13, 9, 9, 9, 9, 13, 9577, 9007, 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...
Protect all Worksheet in an Excel Workbook === I have around 25 worksheets in my workbook (Excel spreadsheet). Is there a way I can protect all the 25 worksheets in single click ? or this feature is not available and I will have to write a VBA code to accomplish this. I need very often to protect all sheets and unprotect all sheets and doing individually is time consuming
0
[ 2, 2196, 65, 170, 17627, 19, 40, 20700, 170, 5199, 800, 3726, 3726, 31, 57, 140, 771, 170, 17627, 18, 19, 51, 170, 5199, 13, 5, 1706, 11040, 1789, 17627, 6, 9, 25, 80, 21, 161, 31, 92, 2196, 65, 14, 771, 170, 17627, 18, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Single Inheritance in C# - object class? === I have been asking myself this question for a long time now. Thought of posting it. C# doesn't support Multiple Inheritance(this is the fact). All classes created in C# derive out of 'Object' class(again a fact). So if C# does not support Multiple inheritance, then how are we able to extend a class even though it already extends Object class? Illustating with an example: 1. class A : object - Class A created. 2. class B : object - Class B created. 3. class A : B - this again is supported. What happens to the earlier association to object. We are able to use object class methods in A after step 3. So is the turned to multi level inheritance. If that is the case, then 1. class A : B 2. class C : B 3. class A : C - I must be able to access class B's methods in A. Which is not the case? Can anyone please explain?
0
[ 2, 345, 13852, 19, 272, 5910, 13, 8, 3095, 718, 60, 800, 3726, 3726, 31, 57, 74, 3379, 992, 48, 1301, 26, 21, 175, 85, 130, 9, 289, 16, 15669, 32, 9, 272, 5910, 1437, 22, 38, 555, 1886, 13852, 5, 1565, 25, 14, 837, 6, 9, 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...
Using a Windows Form with Ruby === Is it possible to create a form on Windows using Ruby? I have a Ruby script and I would like to have an input form to ask for a user's password, then use this in the rest of my script.
0
[ 2, 568, 21, 1936, 505, 29, 10811, 800, 3726, 3726, 25, 32, 938, 20, 1600, 21, 505, 27, 1936, 568, 10811, 60, 31, 57, 21, 10811, 3884, 17, 31, 83, 101, 20, 57, 40, 6367, 505, 20, 1349, 26, 21, 4155, 22, 18, 20884, 15, 94, 275...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Why does my spinner GIF stop while jQuery ajax call is running? === I'm just starting to wean myself from ASP.NET UpdatePanels. I'm using jQuery and jTemplates to bind the results of a web service to a grid, and everything works fine. Here's the thing: I'm trying to show a spinner GIF while the table is being refreshed (à la UpdateProgress in ASP.NET) I've got it all working, except that the spinner is frozen. To see what's going on, I've tried moving the spinner out from the update progress div and out on the page where I can see it the whole time. It spins and spins until the refresh starts, and stays frozen until the refresh is done, and then starts spinning again. Not really what you want from a 'please wait' spinner! This is in IE7 - haven't had a chance to test in other browsers yet. Any thoughts? Is the ajax call or the client-side databinding so resource-intensive that the browser is unable to tend to its animated GIFs?
0
[ 2, 483, 630, 51, 3310, 1031, 489, 821, 747, 133, 487, 8190, 93, 20624, 645, 25, 946, 60, 800, 3726, 3726, 31, 22, 79, 114, 1422, 20, 95, 210, 992, 37, 28, 306, 9, 2328, 11100, 3206, 6798, 9, 31, 22, 79, 568, 487, 8190, 93, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to create a unique index on a NULL column === I am using MS-SQL-server 2005. I want to constrain the values in a column to be unique, while allowing NULLS. <p/> My current solution involves a unique index on a view like so: CREATE VIEW vw_unq WITH SCHEMABINDING AS SELECT Column1 FROM MyTable WHERE Column1 IS NOT NULL CREATE UNIQUE CLUSTERED INDEX unq_idx ON vw_unq (Column1) Any better ideas?
0
[ 2, 184, 20, 1600, 21, 2619, 4348, 27, 21, 16203, 4698, 800, 3726, 3726, 31, 589, 568, 4235, 8, 18, 22402, 8, 10321, 106, 812, 9, 31, 259, 20, 11608, 11809, 14, 4070, 19, 21, 4698, 20, 44, 2619, 15, 133, 2719, 16203, 18, 9, 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...
Change language of system and error messages in PostgreSQL === Is it possible to change the language of system messages from PostgreSQL? In MSSQL for instance this is possible with the SQL statement [SET LANGUAGE][1]. [1]: http://msdn.microsoft.com/en-us/library/ms174398.aspx
0
[ 2, 753, 816, 16, 329, 17, 7019, 7561, 19, 678, 6879, 18, 22402, 800, 3726, 3726, 25, 32, 938, 20, 753, 14, 816, 16, 329, 7561, 37, 678, 6879, 18, 22402, 60, 19, 4235, 18, 22402, 26, 4851, 48, 25, 938, 29, 14, 4444, 255, 3331, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CSS: Two 50% fluid columns not respecting min width === I'm trying to use [this][1] layout with two 50% column width instead. But it seems that when the right columns reaches it's 'min-width', it goes under the left column. Is there any way to use the 'shim' technique to set a min-width to the wrapper so both columns stop resizing. Thus, eliminating the problem of the right column finding itself under the left column. My page is as follows. <style type="text/css"> #left { float: left; width: 50%; } .minwidth { width: 500px; height: 0; line-height: 0; } </style> <div id="wrapper"> <div id="left"> left </div> <div id="right"> right </div> <div class="minwidth">&nbsp;</div> </div> The issue with that is the left column will stop resizing, but the right column will go below the left column and keep resizing. Basically, the effect that I want is once the wrappers width goes bellow, that both left, and right columns also stop resizing. Putting the shim in both left and right columns did not work either. Is there possibly another way of going abouts getting two 50% width columns and using a shim to properly set a min width? Thank you. Edit: The whitespace in the minwidth class is actually &nbsp but it got converted. ;) [1]: http://www.glish.com/css/9.asp
0
[ 2, 272, 18, 18, 45, 81, 10496, 6250, 7498, 52, 2873, 68, 4232, 9456, 800, 3726, 3726, 31, 22, 79, 749, 20, 275, 636, 1565, 500, 2558, 165, 500, 9106, 29, 81, 10496, 4698, 9456, 700, 9, 47, 32, 2206, 30, 76, 14, 193, 7498, 5539...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How would you reference lookup/meta data? === I've run into this issue quite a few times and never liked the solution chosen. Let's say you have a list of States (just as a simple example) in the database. In your code-behind, you want to be able to reference a State by ID and have the list of them available via Intellisense. For example: States.Arizona.Id //returns a GUID But the problem is that I don't want to hard-code the GUIDS. Now in the past I've done all of the following: - Create class constants (hard-coding of the worst kind.. ugh!) - Create Lookup classes that have an ID property (among others) (still hard-coded and would require a rebuild of the project if ever updated) - Put all the GUIDS into the .config file, create an enumeration, and within a static constructor load the GUIDS from the .config into a Hashtable with the enumeration item as the key. So then I can do: `StateHash[StatEnum.Arizona]`. Nice, because if a GUID changes, no rebuild required. However, doesn't help if a new record is added or an old one removed, because the enumeration will need to be updated. So what I'm asking is if someone has a better solution? Ideally, I'd want to be able to look up via Intellisense and not have to rebuild code when there's an update. Not even sure that's possible.
0
[ 2, 184, 83, 42, 2801, 361, 576, 118, 5909, 58, 1054, 60, 800, 3726, 3726, 31, 22, 195, 485, 77, 48, 1513, 1450, 21, 310, 436, 17, 243, 3345, 14, 4295, 2519, 9, 408, 22, 18, 395, 42, 57, 21, 968, 16, 202, 13, 5, 2759, 28, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I wrap a selection with an HTML tag in Visual Studio? === This seems like the most basic question in the world, but damned if I can find an answer. Is there a keyboard shortcut, either native to Visual Studio or through Code Rush or other third-party plug-in, to wrap the current selection with an HTML tag? I'm tired of typing the opening tag, cutting the misplaced closing tag to the clipboard, moving the cursor, and pasting it at the end where it belongs.
0
[ 2, 184, 107, 31, 8118, 21, 3155, 29, 40, 13, 15895, 3383, 19, 3458, 1120, 60, 800, 3726, 3726, 48, 2206, 101, 14, 127, 2125, 1301, 19, 14, 126, 15, 47, 9973, 100, 31, 92, 477, 40, 1623, 9, 25, 80, 21, 8896, 502, 4118, 15, 69...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JQuery Slider with interior Block Elements === I'm trying to build a similar 'slider' as demoed here [http://ui.jquery.com/repository/real-world/product-slider/][1] but I'm trying to use interior divs inside of the list items (li). it seems as if this demo breaks if you're not using an image or block element (p,div,etc.) Anyone have any quick solutions to this? I basically want to use text and possibly images inside of a div instead of using images. [1]: http://ui.jquery.com/repository/real-world/product-slider/
0
[ 2, 487, 8190, 93, 3295, 106, 29, 2797, 1921, 2065, 800, 3726, 3726, 31, 22, 79, 749, 20, 1895, 21, 835, 13, 22, 18, 1210, 1157, 22, 28, 8376, 69, 235, 636, 21127, 6903, 5661, 9, 728, 8190, 93, 9, 960, 118, 99, 14882, 14599, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do i submit an ajax request before the page is loaded === I want to check the login status of a user through an ajax request. Depending wether the user is logged in I want to display either the username/password input or the username. Currently the request is sent on body.onload and a prgoress indicator is shown until the response arrives. Is there a better way?
0
[ 2, 184, 107, 31, 12298, 40, 20624, 3772, 115, 14, 2478, 25, 8572, 800, 3726, 3726, 31, 259, 20, 2631, 14, 6738, 108, 1782, 16, 21, 4155, 120, 40, 20624, 3772, 9, 4758, 13, 28342, 14, 4155, 25, 13, 19287, 19, 31, 259, 20, 3042, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Find beginning of sentence in String === I want to display the results of a searchquery in a website with a title and a short description. The short description should be a small part of the page which holds the searchterm. What i want to do is: 1 strip tags in page 2 find first position of seachterm 3 from that position, going back find the beginning (if there is one) of that sentence. 4 Start at the found position in step 3 and display ie 200 characters from there I need some help with step 3. I think i need an regex that finds the first capital or dot...
0
[ 2, 477, 997, 16, 5123, 19, 3724, 800, 3726, 3726, 31, 259, 20, 3042, 14, 1736, 16, 21, 2122, 8190, 93, 19, 21, 2271, 29, 21, 581, 17, 21, 502, 5318, 9, 14, 502, 5318, 378, 44, 21, 284, 141, 16, 14, 2478, 56, 2763, 14, 2122, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Avoiding Dialog Boilerplate in Delphi and /or C++ === I often need to design a dialog in Delphi/C++Builder that allows various properties of an object to be modified, and the code to use it typically looks like this. Dialog.Edit1.Text := MyObject.Username; Dialog.Edit2.Text := MyObject.Password; // ... many more of the same if (Dialog.ShowModal = mrOk) begin MyObject.Username := Dialog.Edit1.Text; MyObject.Password := Dialog.Edit2.Text; // ... again, many more of the same end; I also often need similar code for marshalling objects to/from xml/ini-files/whatever. Are there any common idioms or techniques for avoiding this kind of simple but repetitive code?
0
[ 2, 10298, 28223, 11755, 13095, 19, 23030, 17, 13, 118, 248, 272, 20512, 800, 3726, 3726, 31, 478, 376, 20, 704, 21, 28223, 19, 23030, 118, 150, 20512, 20904, 30, 2965, 617, 3704, 16, 40, 3095, 20, 44, 5372, 15, 17, 14, 1797, 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...
PHP readdir is not reading some files === I'm using the following code to loop through a directory to print out the names of the files. However, not all of the files are displayed. I have tried using **clearstatcache** with no effect. $str = ''; $ignore = array('.', '..'); $dh = @opendir( $path ); if ($dh === FALSE) { // error } $file = readdir( $dh ); while( $file !== FALSE ) { if (in_array($file, $ignore, TRUE)) { break; } $str .= $file."\n"; $file = readdir( $dh ); } Here's the contents of the directory right now: root.auth test1.auth test2.auth test3.auth test5.auth However, test5.auth does not appear. If I rename it to test4.auth it does not appear. If I rename it to test6.auth it **does** appear. This is reliable behaviour - I can rename it several times and it still won't show up unless I rename it to test6.auth. What on earth could be happening? I'm running Arch Linux (kernel 2.6.26-ARCH) with PHP Version 5.2.6 and Apache/2.2.9 with Suhosin-Patch. My filesystem is ext3 and I'm running fam 2.6.10.
0
[ 2, 13, 26120, 1302, 9035, 25, 52, 1876, 109, 6488, 800, 3726, 3726, 31, 22, 79, 568, 14, 249, 1797, 20, 5293, 120, 21, 16755, 20, 4793, 70, 14, 1817, 16, 14, 6488, 9, 207, 15, 52, 65, 16, 14, 6488, 50, 6115, 9, 31, 57, 794, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 PHP have a built in mechanism to failover from one database server to another? === I found this: [http://www.evolt.org/failover-database-connection-with-php-mysql][1] and similar examples. But is there a better way? [1]: http://www.evolt.org/failover-database-connection-with-php-mysql
0
[ 2, 630, 13, 26120, 57, 21, 392, 19, 6534, 20, 7476, 2549, 37, 53, 6018, 8128, 20, 226, 60, 800, 3726, 3726, 31, 216, 48, 45, 636, 21127, 6903, 6483, 9, 62, 17663, 9, 5583, 118, 24910, 2549, 8, 18768, 8436, 8, 25996, 872, 8, 14...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you change your apparent country of origin to test a site? === I want to be able to set my country of origin - does this involve testing through a proxy, or is there something that can be set else where?
0
[ 2, 184, 107, 42, 753, 154, 5982, 475, 16, 2986, 20, 1289, 21, 689, 60, 800, 3726, 3726, 31, 259, 20, 44, 777, 20, 309, 51, 475, 16, 2986, 13, 8, 630, 48, 8847, 4431, 120, 21, 27188, 15, 54, 25, 80, 301, 30, 92, 44, 309, 96...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
SVN and binaries === After asking [this question][1] I was advised not to check in binaries into subversion. My question is then what do I do with 3rd party dlls that are required to be in the bin folder? I need to be able checkout a working copy and have that run as a website with all dlls, etc intact. [1]: http://stackoverflow.com/questions/186196/what-project-files-shouldnt-be-checked-into-svn
0
[ 2, 13, 18, 16578, 17, 4511, 11301, 800, 3726, 3726, 75, 3379, 636, 1565, 1301, 500, 2558, 165, 500, 31, 23, 10017, 52, 20, 2631, 19, 4511, 11301, 77, 972, 10898, 9, 51, 1301, 25, 94, 98, 107, 31, 107, 29, 203, 897, 346, 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...
Best free(!) Java-based(!) bug tracker? === For internal development team I've looking for a bug tracker. Important requirements are: - Free (MUST HAVE) - WAR/EAR-deployable (MUST HAVE; support team prefers to have all apps deployed same way) - Nice UI (NICE TO HAVE) I used JIRA and like it very much, but the budget for it is out of question, alas. Any budget is out of question, actually. That's why I need a free tool.
0
[ 2, 246, 551, 5, 187, 6, 8247, 8, 1281, 5, 187, 6, 6256, 792, 106, 60, 800, 3726, 3726, 26, 3117, 522, 173, 31, 22, 195, 699, 26, 21, 6256, 792, 106, 9, 681, 4786, 50, 45, 13, 8, 551, 13, 5, 3605, 38, 57, 6, 13, 8, 176, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
VS2005 C# Currency Manager Issue with Position Not Changing === We have a custom collection of objects that we bind to a listbox control. When an item is added to the list the item appears in the listbox, however when one selects the item the currency manager position will not go to the position. Instead the currency manager position stays at the existing position. The listbox item is high lighted as long as the mouse is press however the cm never changes position. If I copy one of the collection objects the listbox operates properly. One additional note the collection also has collections within it, not sure if this would be an issue.
0
[ 2, 4611, 2835, 272, 5910, 10507, 1382, 1513, 29, 649, 52, 4226, 800, 3726, 3726, 95, 57, 21, 5816, 1206, 16, 3916, 30, 95, 10193, 20, 21, 968, 5309, 569, 9, 76, 40, 9101, 25, 905, 20, 14, 968, 14, 9101, 1780, 19, 14, 968, 5309...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should I pursue ASP.NET WebForms or ASP.NET MVC === Firstly, I'm a software engineer doing web development in ASP.NET. We have a custom framework that we use that sits on top of .NET so most of my development work leverages more of our internal framework and less of the traditional web forms model. I've done web development for a couple years on my own as well, but I mostly use LAMP (with some work with Ruby on Rails) for these projects; however, I've recently had some opportunities for .NET development. The problem is that most of my ASP.NET experience, as you can see, comes from an internal framework and less from the native controls. I have no problem getting a book (or three), a few podcasts, and some web sites, and getting down deep in the ASP.NET WebForms; however, with ASP.NET MVC on the horizon and with my experience (and appreciation) for an MVC framework, I feel as if I'm at a crossroad - should I pursue an in-depth understanding of web forms, or do the same for MVC? I'd like to note that I've read the posts dealing with WebForms vs. MVC, so I'd like to clarify that my question is that I have some concerns for choosing either technology over the other. These are: - How hard would it be going from one to the other, should I need to do so, down the road? - I like to typically write my presentation code (XHTML/CSS/JavaScript) by hand with a JavaScript framework and tend to stay away from the code-front controls. - Am I shooting myself in the foot (in terms of marketability in the future) if I choose one over the other?
4
[ 2, 378, 31, 5760, 28, 306, 9, 2328, 2741, 4190, 18, 54, 28, 306, 9, 2328, 307, 8990, 800, 3726, 3726, 64, 102, 15, 31, 22, 79, 21, 2306, 2335, 845, 2741, 522, 19, 28, 306, 9, 2328, 9, 95, 57, 21, 5816, 6596, 30, 95, 275, 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...
Teach an M.B.A. the intricacies of Microsoft SQL Server (and how's it different from MySQL?) === I haven't had to interact w/MSSQL much in my development career, though I've spent many an hour working with MySQL. An M.B.A. friend of mine is starting a job where she needs to gain functional knowledge of MSSQL Server, and I'd really like to help. **What are the differences between MSSQL and MySQL?** **How would you recommend a non-technical person go about learning the ups and downs of MSSQL Server?**
0
[ 2, 5348, 40, 307, 9, 220, 9, 58, 9, 14, 19, 38, 13715, 10807, 16, 7099, 4444, 255, 8128, 13, 5, 290, 184, 22, 18, 32, 421, 37, 51, 18, 22402, 60, 6, 800, 3726, 3726, 31, 2933, 22, 38, 41, 20, 10001, 619, 118, 79, 18, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ruby Meta Programming Question === I was looking at the Ruby logging library Logging.logger method and have a question from the [source at github][1] relating to this piece of code: logger = ::Logging::Logger.new(name) logger.add_appenders appender logger.additive = false class << logger def close @appenders.each {|a| a.close} h = ::Logging::Repository.instance.instance_variable_get :@h h.delete(@name) class << self; undef :close; end end end I understand that the class << logger opens up the eigen/meta/singleton class to the logger object to add an instance specifice close method. However, I am not exactly sure what the "class << self; undef :close; end" does and for what purpose. Can anyone tell me what it means? [1]: http://github.com/TwP/logging/tree/master/lib/logging.rb
0
[ 2, 10811, 7618, 3143, 1301, 800, 3726, 3726, 31, 23, 699, 35, 14, 10811, 13, 13919, 1248, 13, 13919, 9, 29480, 2109, 17, 57, 21, 1301, 37, 14, 636, 12097, 35, 13, 10404, 20926, 500, 2558, 165, 500, 8456, 20, 48, 1855, 16, 1797, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I get rid of the mouse cursor in full-screen exclusive mode? === I'm working on a simple 2D game engine in Java, and having no trouble with FSEM, buffer strategies, and so on; my issue is with the mouse cursor. In windowed mode, I can hide the mouse cursor, no problem, by using setCursor() from my JFrame to set a wholly-transparent cursor. However, after a call to device.setFullScreenWindow(this) to go into FSEM, the mouse cursor comes back, and subsequent calls to setCursor() to set it back to my blank cursor have no effect. Calling device.setFullScreenWindow(null) allows me to get rid of the cursor again - it's only while I'm in FSEM that I can't get rid of it. I'm working under JDK 6, target platform is JDK 5+.
0
[ 2, 184, 107, 31, 164, 6681, 16, 14, 7567, 29588, 19, 503, 8, 7187, 6753, 3740, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 1935, 172, 43, 250, 1406, 19, 8247, 15, 17, 452, 90, 2572, 29, 398, 18, 1503, 15, 17497, 10272, 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...
Where are the best locations to write an error log in windows? === Where would you write an ErrorLog.txt file in Windows? Keep in mind the path would need to be open to basic users for file write permissions. I know the eventlog is a possible location for writing errors, but does it work for "user" level permissions? Thank you, Keith
0
[ 2, 113, 50, 14, 246, 4095, 20, 2757, 40, 7019, 6738, 19, 1936, 60, 800, 3726, 3726, 113, 83, 42, 2757, 40, 7019, 5567, 9, 38, 396, 38, 3893, 19, 1936, 60, 643, 19, 594, 14, 2013, 83, 376, 20, 44, 368, 20, 2125, 3878, 26, 389...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to detect code duplication during development ? === We have a fairly large code base, 400K LOC of C++, and code duplication is something of a problem. Are there any tools which can effectively detect duplicated blocks of code? Ideally this would be something that developers could use during development rather than just run occasionally to see where the problems are. It would also be nice if we could integrate such a tool with CruiseControl to give a report after each check in. I had a look at [Duploc][1] some time ago, it showed a nice graph but requires a smalltalk environment to use it, which makes running it automatically rather difficult. Free tools would be nice, but if there are some good commercial tools I would also be interested. [1]: http://www.iam.unibe.ch/~scg/Research/Duploc/index.html
0
[ 2, 184, 20, 9092, 1797, 1052, 20669, 112, 522, 13, 60, 800, 3726, 3726, 95, 57, 21, 6647, 370, 1797, 1000, 15, 4353, 197, 13, 10799, 16, 272, 20512, 15, 17, 1797, 1052, 20669, 25, 301, 16, 21, 1448, 9, 50, 80, 186, 4672, 56, 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...
C# - Java interoperation === Can you give me some pointers on making C# code and Java code interoperate? Let's define the interoperation as something simple: allow (from Java code) the instantiantion and method calling of a class defined in C#, and, possibly, the other way around as well. Is this even possible *natively*? (i.e. without some proxy/skeleton interface mechanism) And finally, what proxy mechanisms can be used? (i.e. are supported by both language realms)
0
[ 2, 272, 5910, 13, 8, 8247, 1480, 11377, 800, 3726, 3726, 92, 42, 590, 55, 109, 454, 445, 27, 544, 272, 5910, 1797, 17, 8247, 1797, 1480, 9477, 1373, 60, 408, 22, 18, 9267, 14, 1480, 11377, 28, 301, 1935, 45, 1655, 13, 5, 2665, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 null == null is SQL === I wish to search a database table on a nullable column. Sometime the value I'm search for in itself NULL. Since Null is equal to nothing, even NULL, saying where MYCOLUMN=SEARCHVALUE will fail. Right now I have to resort to where ((MYCOLUMN=SEARCHVALUE) OR (MYCOLUMN is NULL and SEARCHVALUE is NULL)) Is there a simpler way of saying that? (I'm using Oracle if that matters)
0
[ 2, 164, 16203, 800, 3726, 16203, 25, 4444, 255, 800, 3726, 3726, 31, 2536, 20, 2122, 21, 6018, 859, 27, 21, 16203, 579, 4698, 9, 8530, 14, 1923, 31, 22, 79, 2122, 26, 19, 1145, 16203, 9, 179, 16203, 25, 2747, 20, 626, 15, 166, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Report handler architecture question === I am attempting to have a ReportHandler service to handle report creation. Reports can have multiple, differing number of parameters that could be set. In the system currently there are several different methods of creating reports (MS reporting services, html reports, etc) and the way the data is generated for each report is different. I am trying to consolidate everything into ActiveReports. I can't alter the system and change the parameters, so in some cases I will essentially get a where clause to generate the results, and in another case I will get key/value pairs that I must use to generate the results. I thought about using the factory pattern, but because of the different number of query filters this won't work. I would love to have a single ReportHandler that would take my varied inputs and spit out report. At this point I'm not seeing any other way than to use a big switch statement to handle each report based on the reportName. Any suggestions how I could solve this better?
0
[ 2, 1330, 24641, 2607, 1301, 800, 3726, 3726, 31, 589, 6314, 20, 57, 21, 1330, 3203, 1252, 365, 20, 3053, 1330, 2502, 9, 2813, 92, 57, 1886, 15, 19304, 234, 16, 12905, 30, 110, 44, 309, 9, 19, 14, 329, 871, 80, 50, 238, 421, 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...
Is it a good idea to use normalised tables with denormalised indexed views? === I'm architecting a new app at the moment, with a high read:write ratio. At my current employer we have lots of denormalised data on our tables for performance reasons. Is it better practice to have totally 3NF tables and then use indexed views to do all the denormalisation? Should I run queries against the tables or views? An example of some of the things I am interested are aggregates of columns child tables (e.g. having user post count stored somewhere).
0
[ 2, 25, 32, 21, 254, 882, 20, 275, 1826, 2541, 7484, 29, 121, 17462, 2541, 4348, 69, 4146, 60, 800, 3726, 3726, 31, 22, 79, 3338, 68, 21, 78, 4865, 35, 14, 688, 15, 29, 21, 183, 1302, 45, 23716, 4825, 9, 35, 51, 866, 11726, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you get output parameters from a stored procedure in Python? === I've googled around a bit, but maybe I didn't put the correct magik incantation into the search box. Does anyone know how to get output parameters from a stored procedure in Python? I'm using pymssql to call a stored procedure, and I'm not sure of the correct syntax to get the output parameter back. I don't think I can use any other db modules since I'm running this from a Linux box to connect to a mssql database on a MS Server. import pymssql con = pymssql.connect(host='xxxxx',user='xxxx',password='xxxxx',database='xxxxx') cur = con.cursor() query = "EXECUTE blah blah blah" cur.execute(query) con.commit() con.close()
0
[ 2, 184, 107, 42, 164, 5196, 12905, 37, 21, 8214, 7004, 19, 20059, 60, 800, 3726, 3726, 31, 22, 195, 8144, 43, 140, 21, 1142, 15, 47, 913, 31, 223, 22, 38, 442, 14, 4456, 4723, 2883, 19, 1245, 8593, 77, 14, 2122, 1649, 9, 630, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Generic Utilities or Libraries for Converting Binary Messages into Human-readable Form? === I work a lot with serial communications with a variety of devices, and so I often have to analyze hex dumps in log files. Currently, I do this manually by looking at the dumps, looking at the protocol spec, and writing down the results. However, this is tedious and error-prone, especially whem messages contain hundreds of bytes. (I have written a couple of Python scripts to assist with the more common cases.) What I'd like is some sort of utility that can automate this activity. So, for example, if I have a hex dump like this: 7e ff 00 7b 00 13 86 04 00 41 42 43 44 56 ef 7e and some sort of description of the protocol format, like this: # Field Size Byte Order Output Format Flag 1 hex Address 1 hex Control 1 hex DataType 1 decimal LineIndex 1 decimal PollAddress 2 msb hex DataSize 2 lsb decimal Data (DataSize) ascii CRC 2 lsb hex Flag 1 hex I'd get output like this: Flag 0x7e Address 0xff Control 0x00 DataType 123 LineIndex 0 PollAddress 0x1386 DataSize 4 Data "ABCD" CRC 0xef56 Flag 7e Hardware-based protocol analyzers often have fancy features for doing this kind of thing, but I need to work with log files. Does any such utility or library exist?
0
[ 2, 186, 12733, 19817, 54, 8649, 26, 19583, 14171, 7561, 77, 585, 8, 10647, 579, 505, 60, 800, 3726, 3726, 31, 170, 21, 865, 29, 5956, 3380, 29, 21, 1747, 16, 4690, 15, 17, 86, 31, 478, 57, 20, 16051, 24, 396, 11424, 18, 19, 67...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which effects library should I integrate with GWT? === I am curious if anyone has done a comparison between the different options out there. So far I am leaning towards using Moo.fx because loading prototype.js just to use scriptaculous seems a bit much. Does that make sense? Are there any other effects libraries worth trying? Thanks.
0
[ 2, 56, 2292, 1248, 378, 31, 18399, 29, 14094, 38, 60, 800, 3726, 3726, 31, 589, 7686, 100, 1276, 63, 677, 21, 6050, 128, 14, 421, 6368, 70, 80, 9, 86, 463, 31, 589, 5939, 1016, 568, 13, 8765, 9, 16488, 185, 12797, 7063, 9, 728...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 2005 Setup project application folder default location on potentially non-existent volume === I have a VS2005 solution that includes a setup project. The setup project specifies "d:\somefolder" as the Application Folder DefaultLocation property. When installing on a machine without any partitions mapped to "d:", the resulting installer craps out with the message "The volume d:\ is currently unavailable. Please select another.". Trouble is, you don't actually get a chance to select a different install location (on an existing volume). What settings should I use to enable the user of the installer to change the install path, while keeping the default as d:\some_folder?
0
[ 2, 3458, 1120, 812, 18161, 669, 3010, 19294, 12838, 1474, 27, 9465, 538, 8, 20788, 2310, 800, 3726, 3726, 31, 57, 21, 4611, 2835, 4295, 30, 1103, 21, 18161, 669, 9, 14, 18161, 669, 27669, 13, 7, 43, 45, 1, 3220, 8814, 106, 7, 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...
Preferred Python unit-testing framework === So far I've been using the built-in unittest module for unit-testing Python code. However, for simple cases it seems like an overkill. Being a derivative of xUnit, it appears a bit heavy for the dynamic nature of Python, where I would expect to write less to achieve the same effects. On the other hand, it is built-in, makes you write your tests in an organized way, and tested by time. The major alternatives I've seen online are: - [py.test][1] - [nose][2] Which of the frameworks do you prefer, and why ? [1]: http://codespeak.net/py/dist/test.html [2]: http://www.somethingaboutorange.com/mrl/projects/nose/
0
[ 2, 5981, 20059, 1237, 8, 10543, 68, 6596, 800, 3726, 3726, 86, 463, 31, 22, 195, 74, 568, 14, 392, 8, 108, 1237, 10543, 12613, 26, 1237, 8, 10543, 68, 20059, 1797, 9, 207, 15, 26, 1935, 1871, 32, 2206, 101, 40, 84, 7577, 9, 14...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How Can I Build wxWidgets With Eclipse On Windows === I installed wxWidgets 2.8.9 on a Windows XP SP2 box and built the library according to the directions and now I'm trying to get the [Hello World! tutorial][1] app to build from within Eclipse and I'm just missing something apparently. Any idea how to get Cygwin, Eclipse and wxWidgets to play nice together? [1]: http://www.wxwidgets.org/docs/tutorials/hello.htm
0
[ 2, 184, 92, 31, 1895, 619, 396, 3976, 43, 3060, 18, 29, 11652, 27, 1936, 800, 3726, 3726, 31, 4066, 619, 396, 3976, 43, 3060, 18, 172, 9, 457, 9, 518, 27, 21, 1936, 23045, 3782, 135, 1649, 17, 392, 14, 1248, 496, 20, 14, 7876,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Strange LINQ Exception (Index out of bounds) === I have a table, we'll call Users. This table has a single primary key defined in SQL Server - an autoincrement int ID. Sometimes, my LINQ queries against this table fail with an "Index was outside the range" error - even the most simplest of queries. The query itself doesn't use any indexers. For example: User = Users.Take(1); or IEnumerable<Users> = Users.ToList(); Both of the queries threw the same error. Using the debugger Visualizer to look at the generated query - I copy and paste the query in SQL and it works fine. I also click "execute" on the visualizer and it works fine. But executing the code by itself throws this error. I don't implement any of the partial methods on the class, so nothing is happening there. If I restart my debugger, the problem goes away, only to rear it's head again randomly a few hours later. More critically, I see this bug in my error logs from the app running in production. I do a ton of LINQ in my app, against a dozen or so different entities in my database, but I only see this problem on queries related to a specific entity in my table. Some googling has suggested that this problem might be related to an incorrect relationship specified between my model and another entity, but I don't have *any* relationships with this object. It seems to be working 95% of the time, it's just the other 5% that fail. I have completely deleted the object from the designer, and re-added it from a "refreshed" server browser, and that did not fix the problem. Any ideas what's going on here? Here's the full error message and stack trace: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult) at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries) at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) at System.Data.Linq.Table`1.System.Linq.IQueryProvider.Execute[TResult](Expression expression) at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source, Expression`1 predicate) at MyProject.FindUserByType(String typeId)
0
[ 2, 2578, 6294, 1251, 5391, 13, 5, 25671, 70, 16, 4138, 18, 6, 800, 3726, 3726, 31, 57, 21, 859, 15, 95, 22, 211, 645, 3878, 9, 48, 859, 63, 21, 345, 1256, 1246, 2811, 19, 4444, 255, 8128, 13, 8, 40, 3108, 28461, 19, 38, 4924...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should C# include multiple inheritance? === I have come across numerous arguments against the inclusion on multiple inheritance in C#, some of which include (philosophical arguments aside): - Multiple inheritance is to complicated and often ambiguous - It is unnecessary because interfaces provide something similar - Composition is a good substitute where interfaces are inappropriate I come from a C++ background and miss the power and elegance of multiple inheritance. Although it is not suited to all software designs there are situations where it is difficult to deny it's utility over interfaces, composition and similar OO techniques. Is the exclusion of multiple inheritance saying that developers are not smart enough to use them wisely and are incapable of addressing the complexities when they arise? I personally would welcome the introduction of multiple inheritance into C# (perhaps C##).
4
[ 2, 378, 272, 5910, 468, 1886, 13852, 60, 800, 3726, 3726, 31, 57, 340, 464, 1548, 10553, 149, 14, 10660, 27, 1886, 13852, 19, 272, 5910, 15, 109, 16, 56, 468, 13, 5, 29281, 4272, 10553, 3841, 6, 45, 13, 8, 1886, 13852, 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...
Code to get *.aspx in a website === Is there a method to get all of the .aspx files in my website? Maybe iterate through the site's file structure and add to an array?
0
[ 2, 1797, 20, 164, 1637, 9, 472, 306, 396, 19, 21, 2271, 800, 3726, 3726, 25, 80, 21, 2109, 20, 164, 65, 16, 14, 13, 9, 472, 306, 396, 6488, 19, 51, 2271, 60, 913, 32, 106, 1373, 120, 14, 689, 22, 18, 3893, 1411, 17, 3547, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Using regular expressions how do I find a pattern surrounded by two other patterns without including the surrounding strings? === I want to use regular expressions (Perl compatible) to be able to find a pattern surrounded by two other patterns, but not include the strings matching the surrounding patterns in the match. For example, I want to be able to find occurrences of strings like: > Foo Bar Baz But only have the match include the middle part: > Bar I know this is possible, but I can't remember how to do it.
0
[ 2, 568, 1290, 13832, 184, 107, 31, 477, 21, 3732, 3736, 34, 81, 89, 6282, 366, 215, 14, 2470, 7887, 60, 800, 3726, 3726, 31, 259, 20, 275, 1290, 13832, 13, 5, 1432, 255, 14961, 6, 20, 44, 777, 20, 477, 21, 3732, 3736, 34, 81, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP based form validation === I'm looking for an easy to use, reasonably complete form validation solution for php. I recall using one years ago that used a few tags on the HMTL side then captured the OB to replace them with some pretty serious code. This feels slightly like overkill me, yet I'm not REALLY wanting to go nuts with my own right now. I'm using SMARTY, so anything I use should not throw too many curve balls. I'm going to be validating the basics, name, address, email, credit card number (format validation OK)... Any ideas? Thanks folks!
0
[ 2, 13, 26120, 432, 505, 27999, 800, 3726, 3726, 31, 22, 79, 699, 26, 40, 2010, 20, 275, 15, 19531, 1279, 505, 27999, 4295, 26, 13, 26120, 9, 31, 7111, 568, 53, 122, 1464, 30, 147, 21, 310, 3383, 18, 27, 14, 13, 7015, 7786, 270...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Give DROP PROCEDURE a parameter === I'm using SqlServer for the first time, and in every single one of our create procedure scripts there is a block of code like below to remove the procedure if it already exists: IF EXISTS (SELECT * FROM information_schema.routines WHERE routine_name = 'SomeProcedureName' AND routine_type = 'PROCEDURE' BEGIN DROP PROCEDURE SomeProcedureName END //then the procedure definition To stop cutting and pasting this boilerplate code in every file I would like to put this code in its own stored procedure so that instead the scripts would look like this: DropIfRequired('SomeProcedureName') //then the procedure definition My attempt at a solution is: CREATE PROCEDURE DropIfRequired ( @procedureName varchar ) AS IF EXISTS (SELECT * FROM information_schema.routines WHERE routine_name = @procedureName AND routine_type = 'PROCEDURE') BEGIN DROP PROCEDURE @procedureName END But I then get the following error: Msg 102, Level 15, State 1, Procedure DeleteProcedure, Line 10 Incorrect syntax near '@procedureName'. Any ideas how to do what I want?
0
[ 2, 590, 2804, 7004, 21, 18906, 800, 3726, 3726, 31, 22, 79, 568, 4444, 255, 10321, 106, 26, 14, 64, 85, 15, 17, 19, 352, 345, 53, 16, 318, 1600, 7004, 17505, 80, 25, 21, 1921, 16, 1797, 101, 1021, 20, 4681, 14, 7004, 100, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Javascript: How do I access the "displayed" text of a select box option from the DOM? === Given the following HTML: select name="my_dropdown"> <option value="1">displayed text 1 </select> How do I grab the string "displayed text 1" using Javascript/the DOM?
0
[ 2, 8247, 8741, 45, 184, 107, 31, 1381, 14, 13, 7, 2906, 11061, 7, 1854, 16, 21, 5407, 1649, 4255, 37, 14, 11859, 60, 800, 3726, 3726, 504, 14, 249, 13, 15895, 45, 5407, 204, 3726, 7, 915, 1, 12361, 2968, 7, 1, 13, 1, 2594, 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...
Using arrays by reference in PHP === Why is the following code "crashing" in PHP?: $normal_array = array(); $array_of_arrayrefs = array( &$normal_array ); end( $array_of_arrayrefs )["one"] = 1; // choking on this one The expected result is that the final code line appends $normal_array with key "one" having value 1. In the real context of this scenario I use end() function to always append to the last array reference. This is PHP5 by the way. Regards /R
0
[ 2, 568, 7718, 18, 34, 2801, 19, 13, 26120, 800, 3726, 3726, 483, 25, 14, 249, 1797, 13, 7, 7519, 9325, 7, 19, 13, 26120, 60, 45, 5579, 17462, 1, 8576, 93, 800, 7718, 5, 6, 73, 5579, 8576, 93, 1, 1041, 1, 8576, 93, 14057, 18,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C++ concatenate string and int === I thought this would be really simple but it's presenting some difficulties. If I have string name = "John"; int age = 21; How do I combine them to get a single string "John21"?
0
[ 2, 272, 20512, 1065, 9530, 8820, 3724, 17, 19, 38, 800, 3726, 3726, 31, 289, 48, 83, 44, 510, 1935, 47, 32, 22, 18, 12310, 109, 8075, 9, 100, 31, 57, 3724, 204, 800, 13, 7, 7373, 7, 73, 19, 38, 348, 800, 852, 73, 184, 107, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
Find which class in which jar has a given serialVersionUID === When I get a java.io.InvalidClassException, it gives me the serialVersionUID that it wants, and the serialVersionUID that it got. Is there an easy way to tell which of my dozens of jars using the wrong serialVersionUID?
0
[ 2, 477, 56, 718, 19, 56, 5112, 63, 21, 504, 5956, 10898, 5661, 43, 800, 3726, 3726, 76, 31, 164, 21, 8247, 9, 1963, 9, 108, 18506, 43, 1898, 10066, 872, 15, 32, 2352, 55, 14, 5956, 10898, 5661, 43, 30, 32, 2846, 15, 17, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Renaming Tables MSSQL, cascading that change through PK and FK's === I want to find a sql command or something that can do this where I have a table named tblFoo and I want to name it tblFooBar. However, I want the primary key to also be change, for example, currently it is: CONSTRAINT [PK_tblFoo] PRIMARY KEY CLUSTERED And I want a name change to change it to: CONSTRAINT [PK_tblFooBar] PRIMARY KEY CLUSTERED And then recursively go through and cascade this change on all tables that have a foreigh key relationship, eg. from this: CHECK ADD CONSTRAINT [FK_tblContent_tblFoo] FOREIGN KEY([fooID]) To this: CHECK ADD CONSTRAINT [FK_tblContent_tblFooBar] FOREIGN KEY([fooID])
0
[ 2, 25934, 7484, 4235, 18, 22402, 15, 7167, 13489, 68, 30, 753, 120, 13, 17244, 17, 15795, 22, 18, 800, 3726, 3726, 31, 259, 20, 477, 21, 4444, 255, 1202, 54, 301, 30, 92, 107, 48, 113, 31, 57, 21, 859, 377, 13, 11872, 9641, 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...
Two directional list Enumerator in .NET === In my c# app, I've got a list that I navigate with an Enumerator. It works great for moving forward through the list, but the Enumerator class doesn't have a MoveBack method. Is there different class that has a MoveBack method, or do I need to write my own?
0
[ 2, 81, 13, 19393, 968, 26940, 248, 19, 13, 9, 2328, 800, 3726, 3726, 19, 51, 272, 5910, 4865, 15, 31, 22, 195, 330, 21, 968, 30, 31, 20782, 29, 40, 26940, 248, 9, 32, 693, 374, 26, 1219, 917, 120, 14, 968, 15, 47, 14, 26940,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Enum Parameters === I am hoping to find a way to do this in vb.net: Say you have function call getPaint(Color). You want the call to be limited to the parameter values of (red,green,yellow). When they enter that parameter, the user is provided the available options, like how a boolean parameter functions. Any ideas?
0
[ 2, 1957, 723, 12905, 800, 3726, 3726, 31, 589, 3935, 20, 477, 21, 161, 20, 107, 48, 19, 13, 20468, 9, 2328, 45, 395, 42, 57, 1990, 645, 164, 20578, 5, 11282, 6, 9, 42, 259, 14, 645, 20, 44, 1317, 20, 14, 18906, 4070, 16, 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 make my mouse in a VMWare Server virtual machine work properly? === My mouse, in my virtual server virtual machine is all jittery, and not working smoothly. Outside the virtual machine it is fine. My mouse is set to use the VMWare Pointing Device, which it says is working properly. I've tried the sample rate in 100 and 200 reports/second and it makes no difference. Any ideas?
0
[ 2, 184, 107, 31, 233, 51, 7567, 19, 21, 13, 20147, 5011, 8128, 6599, 1940, 170, 7428, 60, 800, 3726, 3726, 51, 7567, 15, 19, 51, 6599, 8128, 6599, 1940, 25, 65, 7022, 7986, 93, 15, 17, 52, 638, 17532, 9, 719, 14, 6599, 1940, 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...
Designing for extranet from the beginning? === I've been tasked to develop a web application to cover one of our business functions. It needs to have external access from outside our network. At the same time, it needs to be done fairly quickly. I don't have any experience in extranet applications so I'm not exactly sure what all is involved. Learning about it is taking time. I'd like to get the app working first. What kind of things should I be considering if I decide to not incorporate external access from the beginning and tack it on later? Is that just doomed from the get go? Thanks, Keith
0
[ 2, 15026, 26, 2230, 2328, 37, 14, 997, 60, 800, 3726, 3726, 31, 22, 195, 74, 14605, 20, 2803, 21, 2741, 3010, 20, 1227, 53, 16, 318, 508, 3719, 9, 32, 2274, 20, 57, 4886, 1381, 37, 719, 318, 982, 9, 35, 14, 205, 85, 15, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is Vista worth considering when developing for XP? === Quite a few comments to answers in a different [post][1] gave me the impression that a lot of things regarding standard folders (%APPDATA%; %TEMP%) in Vista are different from XP, which should of course be taken into account when developping software that will have to run under Vista at some point. But in my company, I do not see that happen in this decade, and maybe not in the next either. I mean, the central IT deployed SP2 only 8 months ago, and any question about SP3 is met with disregard (well, if you're lucky...) So what is your advice? Should I rewrite two modules in my current project to make them ready for Vista, or should I not bother about it at all, unitl it is really needed? [1]: http://stackoverflow.com/questions/191609/where-are-the-best-locations-to-write-an-error-log-in-windows
0
[ 2, 25, 13520, 2715, 5154, 76, 3561, 26, 23045, 60, 800, 3726, 3726, 1450, 21, 310, 7534, 20, 6709, 19, 21, 421, 636, 6962, 500, 2558, 165, 500, 492, 55, 14, 6394, 30, 21, 865, 16, 564, 3467, 1236, 19294, 18, 13, 5, 11881, 7753, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Batch file uploading with a flashplayer dialog. === I'm currently looking at ways to allow people to select multiple files at once to batch upload images. I'm evaluating these options for my ASP.NET web app: - [YUI Uploader][1] - [Flajaxian][2] - [SWFUpload][3] - [Dojo Toolkit Multi file uploader][4] I'm leaning toward YUI because the documentation is clear and I basically already wrote the file uploaders and thumbnailers which Flajaxian provides, the javascript seems more compact too. I can't even begin evaluating Dojo because it's unclear to me how to get the parts that would integrate with .NET out of the PHP examples. Has anyone had really good or really bad experiences with any of these? [1]: http://developer.yahoo.com/yui/uploader/ [2]: http://www.codeplex.com/FlajaxianFileUpload [3]: http://swfupload.org/ [4]: http://www.sitepen.com/blog/2008/09/02/the-dojo-toolkit-multi-file-uploader/
0
[ 2, 13064, 3893, 71, 16866, 29, 21, 4433, 14049, 28223, 9, 800, 3726, 3726, 31, 22, 79, 871, 699, 35, 2847, 20, 1655, 148, 20, 5407, 1886, 6488, 35, 382, 20, 13064, 71, 8294, 3502, 9, 31, 22, 79, 26764, 158, 6368, 26, 51, 28, 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 can I create a custom Property for my assembly? === How can I create a custom property for my .Net assembly which would then be visible under the Details tab in Windows explorer? Something to sit parallel with "File Description", "Type", "Product Version"... etc
0
[ 2, 184, 92, 31, 1600, 21, 5816, 1354, 26, 51, 1475, 60, 800, 3726, 3726, 184, 92, 31, 1600, 21, 5816, 1354, 26, 51, 13, 9, 2328, 1475, 56, 83, 94, 44, 4560, 131, 14, 3289, 6523, 19, 1936, 8520, 60, 301, 20, 2066, 3821, 29, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can pipes be used across LAN computers? === Can pipes be used across LAN computers? In particular I'm looking for Windows, but if you have more info on other platforms, that will also help others who find this thread later.
0
[ 2, 92, 14104, 44, 147, 464, 6178, 7774, 60, 800, 3726, 3726, 92, 14104, 44, 147, 464, 6178, 7774, 60, 19, 1498, 31, 22, 79, 699, 26, 1936, 15, 47, 100, 42, 57, 91, 15404, 27, 89, 6843, 15, 30, 129, 67, 448, 654, 72, 477, 48,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
CSS floated divs with form elements disappear in Safari 3 on a mac === I'm roughing a layout together and doing some browser testing. Never came across this issue before, check out the contact form in the footer of this page <a href="http://staging.terrilynn.com/fundraising/">http://staging.terrilynn.com/fundraising/</a> There is a div with a width of 298px floated to the right that comes first in the source order. It is followed by several other divs, each with their child form elements floated left. The div's that should appear to the left of right-floated message div are disappearing. Page displays correctly in firefox. Any help would be appreciated.
0
[ 2, 272, 18, 18, 15400, 13, 12916, 18, 29, 505, 2065, 10866, 19, 25055, 203, 27, 21, 1572, 800, 3726, 3726, 31, 22, 79, 4182, 68, 21, 9106, 429, 17, 845, 109, 16495, 4431, 9, 243, 281, 464, 48, 1513, 115, 15, 2631, 70, 14, 2203...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WCF - returning large images - your experience and tips on doing so === We are using a WCF service layer to return images from a repository. Some of the images are color, multi-page, nearly all are TIFF format. We experience slowness - one of many issues. 1.) What experiences have you had with returning images via WCF 2.) Do you have any suggestions tips for returning large images? 3.) All messages are serialized via SOAP correct? 4.) Does wcf do a poor job of compressing the large tiff files? Thanks all!
0
[ 2, 11801, 410, 13, 8, 2485, 370, 3502, 13, 8, 154, 1496, 17, 11034, 27, 845, 86, 800, 3726, 3726, 95, 50, 568, 21, 11801, 410, 365, 5385, 20, 788, 3502, 37, 21, 24869, 9, 109, 16, 14, 3502, 50, 1665, 15, 1889, 8, 6486, 15, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Web Service throwing exception using Axis2 Java === I'm actually developing a Web Service in Java using Axis 2. I designed my service as a POJO (Plain Old Java Object) with public method throwing exceptions : public class MyService { public Object myMethod() throws MyException { [...] } } I then generated the WSDL using Axis2 ant task. With the WSDL I generate a client stub to test my service. The generated code contains a "MyExceptionException" and the "myMethod" in the stub declare to throw this : public class MyServiceStub extends org.apache.axis2.client.Stub { [...] public MyServiceStub.MyMethodResponse myMethod(MyServiceStub.MyMethod myMethod) throws java.rmi.RemoteException, MyExceptionException0 { [...] } [...] } But when calling the method surrounded by a catch, the "MyExceptionException" is never transmitted by the server which transmit an AxisFault instead (subclass of RemoteException). I assume the problem is server-side but don't find where. The service is deployed as an aar file in the axis2 webapp on a tomcat 5.5 server. The services.xml looks like this : <?xml version="1.0" encoding="UTF-8"?> <service name="MyService" scope="application"> <description></description> <messageReceivers> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> </messageReceivers> <parameter name="ServiceClass">MyService</parameter> <parameter name="ServiceTCCL">composite</parameter> </service>
0
[ 2, 2741, 365, 6033, 5391, 568, 8577, 135, 8247, 800, 3726, 3726, 31, 22, 79, 1121, 3561, 21, 2741, 365, 19, 8247, 568, 8577, 172, 9, 31, 1006, 51, 365, 28, 21, 2353, 1636, 13, 5, 9897, 108, 315, 8247, 3095, 6, 29, 317, 2109, 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...
What do I need to re-build my web server? === I am getting ready to completely overhaul my web server. I use it for both development and to present product to clients. It also hosts my company website. I will be loading MS Server 2008 and MS SQL 2008. I want it to have the latest .NET Framework as well as the latest MVC templates. I want it to use SubSonic. I also want to start using some sort of SourceSafe (or whatever a good one is).I plan to use VS 2008 as my development tool. I figure there are a lot of people out there who have recently gone through this and will have good suggestions. It is a good stout machine with lots of memory and storage, so, please let me know anything that will help me become a better developer. Scott and the Dev Team
0
[ 2, 98, 107, 31, 376, 20, 302, 8, 29361, 51, 2741, 8128, 60, 800, 3726, 3726, 31, 589, 1017, 1451, 20, 1524, 17460, 51, 2741, 8128, 9, 31, 275, 32, 26, 156, 522, 17, 20, 734, 2374, 20, 7421, 9, 32, 67, 5397, 51, 237, 2271, 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...
Beginner-level Embedded Systems Projects? === A student of mine came to me this morning and asked for some ideas for an embedded systems (ideally hardware+software design) project to be completed in the next 6 months or so. He's a freshman, and inexperienced, but has the motivation to learn if pointed in the right direction. The purpose of completing this project, besides getting his feet wet in Electrical/Computer Engineering and Computer Science, is to make his resume more attractive in terms of snagging an internship in Summer '09. My question is: 1. What are some good general resources to understand embedded systems (simple hardware, a microcontroller, and some simple software) given little to no experience in either? My background is somewhat unhelpful here, as I learned a lot through both formal training (which he's interested in, but wants to get started now) and through the internship I got *my* freshman year through nepotism ;-) (which he wants to do, but there's a chicken-and-egg problem) 2. What are some interesting project ideas of the appropriate scope? Some initial ideas: - A Jeopardy-style game that would light up an LED, and the player who pressed his/her button first is the winner, and perhaps the microcontroller could keep score on a couple 7-segment displays. - A tone generator (user sets DIP switches (or more ambitiously, presses keys on a PS2 keyboard) to set a frequency), and the microcontroller uses a D/A converter to output a sinusoid of that frequency - Some kind of small sensor (maybe a temperature sensor for his dorm room that served up the results as an RSS feed). The web-based aspect of this project would be made significantly easier with a RabbitCore from [Rabbit Semiconductor][1]. [1]: http://www.rabbitsemi.com
0
[ 2, 26931, 8, 3906, 12138, 1242, 2314, 60, 800, 3726, 3726, 21, 1209, 16, 1114, 281, 20, 55, 48, 959, 17, 411, 26, 109, 3478, 26, 40, 12138, 1242, 13, 5, 3448, 1326, 7610, 2430, 12980, 5011, 704, 6, 669, 20, 44, 1066, 19, 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 do I get console output in C++ with a windows program? === If I have a native C++ windows program (i.e. the entry point is WinMain) how do I view output from console functions like std::cout?
0
[ 2, 184, 107, 31, 164, 8650, 5196, 19, 272, 20512, 29, 21, 1936, 625, 60, 800, 3726, 3726, 100, 31, 57, 21, 1275, 272, 20512, 1936, 625, 13, 5, 49, 9, 62, 9, 14, 2792, 454, 25, 628, 6232, 6, 184, 107, 31, 1418, 5196, 37, 8650...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
What is the best way to access an array inside Velocity? === I have a Java array such as: String[] arr = new String[] {"123","doc","projectReport.doc"}; In my opinion the natural way to access would be: #set($att_id = $arr[0]) #set($att_type = $arr[1]) #set($att_name = $arr[2]) But that it is not working. I have come with this workaround. But it a bit too much code for such an easy task. #set($counter = 0) #foreach($el in $arr) #if($counter==0) #set($att_id = $el) #elseif($counter==1) #set($att_type = $el) #elseif($counter==2) #set($att_name = $el) #end #set($counter = $counter + 1) #end Is there any other way?
0
[ 2, 98, 25, 14, 246, 161, 20, 1381, 40, 7718, 572, 10700, 60, 800, 3726, 3726, 31, 57, 21, 8247, 7718, 145, 28, 45, 3724, 2558, 500, 13, 20870, 800, 78, 3724, 2558, 500, 13, 1, 7, 918, 240, 7, 15, 7, 13799, 7, 15, 7, 21011, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 store images in your filesystem === Currently, I've got images (max. 6MB) stored as BLOB in a InnoDB table. As the size of the data is growing, the nightly backup is growing slower and slower hindering normal performance. So, the binary data needs to go to the file system. (pointers to the files will be kept in the DB.) The data has a tree like relation: - main site - user_0 - album_0 - album_1 - album_n - user_1 - user_n etc... Now I want the data to be distributed nicely trough the directory structure. How should I accomplish this? I guess I could try `MD5('userId, albumId, imageId');` and slice up the resulting string to get my directory path: <pre> /var/imageStorage/f/347e/013b/c042/51cf/985f7ad0daa987d.jpeg </pre> This would allow me to map the first character to a server and nicely distribute the directory structure over multiple servers. This would however *not* keep images organised per user, likely spreading the images for 1 album over multiple servers. My question is: What is the best way to store the image data in the file system in a balanced way, while keeping user/album data together ? Am I thinking in the right direction? or is this the wrong way of doing things altogether?
0
[ 2, 184, 20, 1718, 3502, 19, 154, 3893, 10724, 800, 3726, 3726, 871, 15, 31, 22, 195, 330, 3502, 13, 5, 8304, 9, 400, 5024, 6, 8214, 28, 334, 10904, 19, 21, 19, 251, 9007, 859, 9, 28, 14, 1072, 16, 14, 1054, 25, 1991, 15, 14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I determine what files in my ClearCase local view have not yet been added to source control? === If I have added/removed/modified a large number of files in my local ClearCase view, how can I be certain that all the files have been added to source control?
0
[ 2, 184, 107, 31, 3746, 98, 6488, 19, 51, 1207, 10325, 375, 1418, 57, 52, 768, 74, 905, 20, 1267, 569, 60, 800, 3726, 3726, 100, 31, 57, 905, 118, 99, 16598, 43, 118, 13670, 4462, 21, 370, 234, 16, 6488, 19, 51, 375, 1207, 1032...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
"Class not Registered" restoring a Sharepoint ( WSS ) 2003 backup.dat file === I need to do some work with a backup WSS .dat file and I'm having real trouble making it do anything. I've got it installed through stsadm and that appears to have gone smoothly, but the site now redirects me to an error page - just the classic "File Not Found" one, but in the URL it suggests the errortext would be "Class not Registered" if there was a more informative error message. When I run "stsadm -0 enumsites -url=http://my-restored-site/" I get this: C:\>"C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN \stsadm" -o enumsites -url http://my-restored-site <Sites Count="1"> <Site Url="http://my-restored-site" Error="Class not registered" /> </Sites> Is there any way for me to tell what class is not registered or is there something else altogether going on here? I have enabled Sharepoint logging but it appears to have had absolutely no effect, certainly no file exists on the path I have asked it to use.
0
[ 2, 13, 7, 1898, 52, 3801, 7, 19144, 21, 1891, 3132, 13, 5, 619, 18, 18, 13, 6, 973, 10119, 9, 593, 38, 3893, 800, 3726, 3726, 31, 376, 20, 107, 109, 170, 29, 21, 10119, 619, 18, 18, 13, 9, 593, 38, 3893, 17, 31, 22, 79, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Determining 64-bit vs. 32-bit Windows === I'd like to configure visual studio 2005 to copy .dll's based on whether the OS is 64-bit or 32-bit during a build. I do not want to specify what the platform target is. My first attempt was to use a batch file to lookup the Windows version, but some 32-bit and 64-bit versions of Windows share the same version number. Anyone know of any way to check this? Thanks!
0
[ 2, 13521, 4384, 8, 3326, 4611, 9, 2512, 8, 3326, 1936, 800, 3726, 3726, 31, 22, 43, 101, 20, 1065, 15951, 3458, 1120, 812, 20, 4344, 13, 9, 43, 211, 22, 18, 432, 27, 1472, 14, 13, 759, 25, 4384, 8, 3326, 54, 2512, 8, 3326, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Are there any methods that will return a formatted connection string, given a provider name and user id, password etc? === Eg. ConnectionDetails cd = new ConnectionDetails (); cd.ProviderName = "System.Data.OleDb"; cd.DataSource = "serverAddress"; cd.Catalog = "database"; cd.UserId = "userId"; cd.Password = "password"; string connectionString = cs.CreateConnectionString(); // Should return: // "Provider=SQLOLEDB;Data Source=serverAddress;Initial Catalog=database;User Id=userId;Password=password;" I'd write my own class but I'm not sure how to retrieve a connection string provider property (SQLOLEDB in this example) programmatically from an invariant db provider name (System.Data.OleDb).
0
[ 2, 50, 80, 186, 3195, 30, 129, 788, 21, 13, 29850, 2760, 3724, 15, 504, 21, 11747, 204, 17, 4155, 4924, 15, 20884, 2722, 60, 800, 3726, 3726, 12369, 9, 2760, 546, 8682, 18, 1745, 800, 78, 2760, 546, 8682, 18, 13, 5, 6, 73, 174...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...