unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Control for tags with auto-completion in Winforms? === I am seeking a WinForm control that would provide an autocomplete behavior for multiple space-separated - exactly ala del.icio.us (or stackoverflow.com for that matter). Does anyone knows how to do that within a .NET 2.0 WinForm application?
0
[ 2, 569, 26, 3383, 18, 29, 3108, 8, 11103, 1336, 872, 19, 628, 4190, 18, 60, 800, 3726, 3726, 31, 589, 5246, 21, 628, 4190, 569, 30, 83, 1181, 40, 3108, 15990, 3257, 26, 1886, 726, 8, 18, 14189, 7432, 13, 8, 1890, 21, 531, 1506...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the difference between visibility:hidden and display:none === Both of these result in the element not being visible. Are these synonyms?
0
[ 2, 98, 25, 14, 2841, 128, 19476, 45, 1822, 43, 817, 17, 3042, 45, 15746, 800, 3726, 3726, 156, 16, 158, 829, 19, 14, 4520, 52, 142, 4560, 9, 50, 158, 9344, 18, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Best way to bind a web UI against an XElement's attributes? === I want to bind my UI against a collection of XElements and their properties on a webpage. I'm not sure how best to do this. Should I use an XPath query to get out the elements of the collection and the attribute values of each XElement? Is there a better way?
0
[ 2, 246, 161, 20, 10193, 21, 2741, 13, 5661, 149, 40, 993, 27567, 22, 18, 13422, 60, 800, 3726, 3726, 31, 259, 20, 10193, 51, 13, 5661, 149, 21, 1206, 16, 993, 27567, 18, 17, 66, 3704, 27, 21, 2741, 6486, 9, 31, 22, 79, 52, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the best to call a Webservice from ASP? === Note: not ASP.NET. I've read about various methods including using SOAPClient (is this part of the standard Windows 2003 install?), ServerXMLHTTP, and building up the XML from scratch and parsing the result manually. Has anyone ever done this? What did you use and would you recommend it?
0
[ 2, 98, 22, 18, 14, 246, 20, 645, 21, 2741, 11449, 37, 28, 306, 60, 800, 3726, 3726, 1945, 45, 52, 28, 306, 9, 2328, 9, 31, 22, 195, 1302, 88, 617, 3195, 215, 568, 6447, 150, 18513, 38, 13, 5, 403, 48, 141, 16, 14, 1236, 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...
Best Practices for Internationalizing a Flex Appliaction? === I am looking into internationalizing a Flex application I am working on and I am curious if there are any best practices or recommendations for doing so. Googling for such information results in a handful of small articles and blog posts, each about doing it differently, and the advantages and disadvantages are not exactly clear.
0
[ 2, 246, 5242, 26, 294, 3335, 21, 14409, 4865, 1210, 8645, 60, 800, 3726, 3726, 31, 589, 699, 77, 294, 3335, 21, 14409, 3010, 31, 589, 638, 27, 17, 31, 589, 7686, 100, 80, 50, 186, 246, 5242, 54, 12121, 26, 845, 86, 9, 162, 559...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sybase Developer Needs To Learn Oracle === I am pretty much a Sybase expert, an experienced developer, and very comfortable learning new stuff. I need to write a bunch of SQL to run against an Oracle database. Can someone recommend a book, training course or other resource to give me what I need to know in the shortest possible time? I don't need _Oracle for Dummies_, but something more like _Oracle for people who already know SQL and RDBMS_. I know that @Martin asked [a similar question ](http://stackoverflow.com/questions/39438/developer-moving-from-sql-server-to-oracle) regarding SQL Server to Oracle, but SQL Server is (nowadays) different enough that I'd like any sybase-specific help you can give. Thanks :)
4
[ 2, 10315, 8436, 10058, 2274, 20, 2484, 15759, 800, 3726, 3726, 31, 589, 1772, 212, 21, 10315, 8436, 5390, 15, 40, 3882, 10058, 15, 17, 253, 5733, 2477, 78, 3217, 9, 31, 376, 20, 2757, 21, 7653, 16, 4444, 255, 20, 485, 149, 40, 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 secure is basic forms authentication in asp.net? === Imagine that you have a simple site with only 2 pages: login.aspx and secret.aspx. Your site is secured using nothing but ASP.net forms authentication and an ASP.net Login server control on login.aspx. The details are as follows: - The site is configured to use the SqlMembershipProvider - The site denies all anonymous users - Cookies are disabled The are obviously many things to consider regarding security but I am more interested in the zero code out of box experience that comes with the .net framework. If, for the sake of this question, the only attack points are the username/password textboxes in login.aspx, can a hacker inject code that will allow them to gain access to our secret.aspx page? How secure is the zero code out-of-box experience that Microsoft provides?
0
[ 2, 184, 4315, 25, 2125, 1997, 27963, 19, 28, 306, 9, 2328, 60, 800, 3726, 3726, 4382, 30, 42, 57, 21, 1935, 689, 29, 104, 172, 4434, 45, 6738, 108, 9, 472, 306, 396, 17, 1699, 9, 472, 306, 396, 9, 154, 689, 25, 6385, 568, 62...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP.Net Medium Trust setup === I am trying to configure the IPermission node as part of medium trust. However I am unable to find the valid values list for the PathDiscovery attribute on the node <IPermission class="FileIOPermission" version="1" Read="$AppDir$" Write="$AppDir$" Append="$AppDir$" PathDiscovery="$AppDir$"/> I need to set the permission so that the account will be able to access all subdirectories under the main path. currently a .svc (WCF service file) throws a 404 error because the ASP.Net account is not able to get it from a sub-folder couple of levels deep. I am trying to avoid changing the node to <IPermission class="FileIOPermission" version="1" Unrestricted="true"/> Any ideas? TIA
0
[ 2, 28, 306, 9, 2328, 4152, 1527, 18161, 800, 3726, 3726, 31, 589, 749, 20, 1065, 15951, 14, 31, 1432, 12385, 15421, 28, 141, 16, 4152, 1527, 9, 207, 31, 589, 2343, 20, 477, 14, 7394, 4070, 968, 26, 14, 2013, 28291, 35, 14755, 27...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Performing math functions within ant ReplaceRegExp === I need to increment a number in a source file from an ant build script. I can use the <code>[ReplaceRegExp][1]</code> task to find the number I want to increment, but how do I then increment that number within the <code>replace</code> attribute? Heres what I've got so far: <replaceregexp file="${basedir}/src/path/to/MyFile.java" match="MY_PROPERTY = ([0-9]{1,});" replace="MY_PROPERTY = \1;"/> In the replace attribute, how would I do replace="MY_PROPERTY = (\1 + 1);" I can't use the <code>buildnumber</code> task to store the value in a file since I'm already using that within the same build target. Is there another ant task that will allow me to increment a property? [1]: http://ant.apache.org/manual/OptionalTasks/replaceregexp.html
0
[ 2, 2955, 5057, 3719, 363, 40, 38, 3934, 12463, 6899, 800, 3726, 3726, 31, 376, 20, 13, 28461, 21, 234, 19, 21, 1267, 3893, 37, 40, 40, 38, 1895, 3884, 9, 31, 92, 275, 14, 13, 1, 9375, 1, 2558, 99, 5119, 12463, 6899, 500, 2558,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the list of JConnect error-codes? === I have recently changed an application from storing the database username and password in a configuration file (***gasp*** password stored in plain text in a config file, I know, I know). The application now asks the user to type in her username and password before it can continue. The new version of the application now has to interrogate the SQLException to determine what caused the exception (invalid user name or password, database server unreachable, connection timeout, etc.) so that it can decide what to do next (prompt the user to correct the username and password, tell the user to try again later once the network issue has been sorted, reconnect invisibly, etc.). Trying to find the SQLException errorCodes (SQLException.getErrorCode()) that relate to these (and other) causes has been near to impossible and we have been forced to guessing (which at times can be dangerous). The Java API docs say this is vendor-specific. Does anyone have the error-codes that can be set by the Sybase JConnect JDBC drivers? - JRE 1.5 - jConnect for JDBC 2.0 (spec version 5.2) - Sybase IQ 12.7
0
[ 2, 98, 25, 14, 968, 16, 487, 25996, 7019, 8, 9375, 18, 60, 800, 3726, 3726, 31, 57, 1989, 1015, 40, 3010, 37, 25615, 14, 6018, 4155, 7259, 17, 20884, 19, 21, 8091, 3893, 13, 5, 2483, 1409, 6927, 306, 2483, 1409, 20884, 8214, 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...
How to change a Window Owner using its handle === I want to make a .NET Form as a TopMost Form for another external App (not .NET related, pure Win32) so it stays above that Win32App, but not the rest of the apps running. I Have the handle of the Win32App (provided by the Win32App itself), and I've tried [Win32 SetParent() function][1], via [P/Invoke in C#][2], but then my .NET Form gets confined into the Win32App and that's not what I want. Thanks in advance. [1]: http://msdn.microsoft.com/en-us/library/ms633541(VS.85).aspx [2]: http://www.pinvoke.net/default.aspx/user32/SetParent.html
0
[ 2, 184, 20, 753, 21, 1463, 2410, 568, 82, 3053, 800, 3726, 3726, 31, 259, 20, 233, 21, 13, 9, 2328, 505, 28, 21, 371, 4630, 505, 26, 226, 4886, 4865, 13, 5, 1270, 13, 9, 2328, 1597, 15, 4267, 628, 3125, 6, 86, 32, 16192, 784...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 other IDEs for Lotus Notes other than Domino Designer? === Are there any other IDEs worth my time for Lotus Notes development? We're doing mostly LotusScript development and would kill for features of Eclipse or Visual Studio, like "Show Declaration". I know there's [an Eclipse plugin for Java development in Notes][1], but seems like it *only* does Java, and we have too many pieces of legacy code in LotusScript to abandon it. [1]: http://www.ibm.com/developerworks/lotus/library/notes-eclipse/
0
[ 2, 186, 89, 13, 8153, 26, 15175, 2434, 89, 119, 23320, 4742, 60, 800, 3726, 3726, 50, 80, 186, 89, 13, 8153, 2715, 51, 85, 26, 15175, 2434, 522, 60, 95, 22, 99, 845, 1555, 15175, 8741, 522, 17, 83, 1177, 26, 967, 16, 11652, 54...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Eclipse Search Menus disabled randomly === I use Eclipse 3.3 in my daily work, and have also used Eclipse 3.2 extensively as well. In both versions, sometimes the Search options (Java Search, File Search, etc) in the menu get disabled, seemingly at random times. However, with CTRL + H, I am able to access the search functionality. Does anyone know why this happens? Has it been fixed in Eclipse 3.4?
0
[ 2, 11652, 2122, 11379, 18, 10154, 21324, 800, 3726, 3726, 31, 275, 11652, 203, 9, 240, 19, 51, 1954, 170, 15, 17, 57, 67, 147, 11652, 203, 9, 135, 7802, 28, 134, 9, 19, 156, 3281, 15, 1030, 14, 2122, 6368, 13, 5, 1004, 1385, 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...
What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application? === What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application?
0
[ 2, 98, 25, 14, 246, 161, 20, 1065, 15951, 31, 10207, 38, 118, 7843, 53, 44, 14, 7775, 118, 21127, 18, 431, 241, 20, 21, 487, 10349, 18, 118, 6015, 5782, 3010, 60, 800, 3726, 3726, 98, 25, 14, 246, 161, 20, 1065, 15951, 31, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
LLBLGen: How can I softdelete a entry === I have inherited a project that uses LLBLGen Pro for the DB layer. The DB model requires that when a entry is deleted a flag (DeletedDate is set to the current time). The last programmer ignored this requirement and has used regular deletes throughout the entire application. Is there a way to set the code generator to do this automatically or do I have to overload each delete operator for the Entities that requires it?
0
[ 2, 13, 211, 6287, 1863, 45, 184, 92, 31, 1856, 24249, 591, 21, 2792, 800, 3726, 3726, 31, 57, 7179, 21, 669, 30, 2027, 13, 211, 6287, 1863, 895, 26, 14, 13, 9007, 5385, 9, 14, 13, 9007, 1061, 4781, 30, 76, 21, 2792, 25, 19584,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 implement quicksort using a batch file? === While normally it's good to always choose the right language for the job, it can sometimes be instructive to try and do something in a language which is wildly inappropriate. 1. It can help you understand the problem better. Maybe you don't *have* to solve it the way you thought you did. 2. It can help you understand the language better. Maybe it supports more features than you realized. And pushing this idea to it's illogical conclusion...how would you implement quicksort in a batch file? Is it even possible?
0
[ 2, 184, 107, 31, 8713, 2231, 22843, 568, 21, 13064, 3893, 60, 800, 3726, 3726, 133, 4147, 32, 22, 18, 254, 20, 550, 3538, 14, 193, 816, 26, 14, 1205, 15, 32, 92, 1030, 44, 19, 10346, 1284, 20, 1131, 17, 107, 301, 19, 21, 816, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Classic ASP and ASP.NET Integration === In a previous job we had a classic ASP application that no one wanted to migrate to ASP.NET. The things that it did, it did very well. However there was some new functionality that needed to be added that just seemed best suited to ASP.NET. The decision was made to allow the system to become a weird hybrid of ASP and ASP.NET. Our biggest sticking point was session management and we hacked together a solution to pass session values through form variables. I've talked to others that handled this same problem through cookies. Both methods seem a horrible kluge (in addition to being terribly insecure). Is there a better or cleaner way or is this just such a bad idea to begin with that discussion on the topic is pointless?
0
[ 2, 2732, 28, 306, 17, 28, 306, 9, 2328, 8078, 800, 3726, 3726, 19, 21, 1158, 1205, 95, 41, 21, 2732, 28, 306, 3010, 30, 90, 53, 417, 20, 22985, 20, 28, 306, 9, 2328, 9, 14, 564, 30, 32, 144, 15, 32, 144, 253, 134, 9, 207, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Rules for properly organized bugtracker (Mantis et al) === On a particular project we're working with a total of 10 team members. After about a year working on the project (and using Mantis as a bug-/feature-tracker eversince), the bugtracker gets more and more difficult to use, as no standard has been setup that explains how to create new tasks, how to comment tasks etc. This leads to multiple entries for the same bugs, inability to easily find bugs when searching for them etc. How do you organize your bugtracker? Do you use a lot of (sub)categories for different portions of your application (GUI, Backend etc), do you use tags in the title of tasks (i.e. "[GUI][OptionPage] The error")? Is anyone in your team allowed to introduce new tasks or is this step channeled through a single "Mantis-master" (who would then know whether a new report is a duplicate or an entirely new entry)?
0
[ 2, 1761, 26, 7428, 2518, 6256, 4792, 106, 13, 5, 177, 3409, 2133, 493, 6, 800, 3726, 3726, 27, 21, 1498, 669, 95, 22, 99, 638, 29, 21, 600, 16, 332, 173, 443, 9, 75, 88, 21, 159, 638, 27, 14, 669, 13, 5, 290, 568, 169, 340...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Embedded Outlook View Control === I am trying to make an Outlook 2003 add-in using Visual Studio 2008 on Windows XP SP3. My add-in is using custom Folder Home Page which displays my custom form, which wraps Outlook View Control. When I try to set Folder property of the OVC, I get COM Exception with 'Unknown Error' description every time. I am using value of the CurrentFolder.FolderPath property of the active explorer: Outlook.Explorer currentExplorer = app.ActiveExplorer(); if (currentExplorer != null) { ovcWrapper.Folder = currentExplorer.CurrentFolder.FolderPath; } Folder is located in non-default PST file. I must underline that everything worked just fine before I went to holiday :). Thanks, Nenad
0
[ 2, 12138, 19837, 1418, 569, 800, 3726, 3726, 31, 589, 749, 20, 233, 40, 19837, 973, 3547, 8, 108, 568, 3458, 1120, 570, 27, 1936, 23045, 3782, 240, 9, 51, 3547, 8, 108, 25, 568, 5816, 19294, 213, 2478, 56, 9412, 51, 5816, 505, 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...
In Perforce, how do I get a list of checked out files? === How do I get a list of the files checked out by users (including the usernames) using P4V or P4? I want to provide a location and see a list of any files under that location (including sub folders) that are checked out.
0
[ 2, 19, 416, 8774, 15, 184, 107, 31, 164, 21, 968, 16, 6505, 70, 6488, 60, 800, 3726, 3726, 184, 107, 31, 164, 21, 968, 16, 14, 6488, 6505, 70, 34, 3878, 13, 5, 3970, 14, 4155, 7259, 18, 6, 568, 351, 300, 710, 54, 351, 300, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a typical state machine implementation pattern? === We need to implement a simple state machine in C or C++ Is a standard switch statement the best way to go? We have a current state (state) and a trigger for the transition. <pre><code> switch(state) { case STATE_1: DoState1(transition); break; case STATE_2: DoState2(transition); break; } ... DoState2(int transition) { if(transition == FROM_STATE_2) { // Do stuff when we're staying in this state } if(transition == FROM_STATE_1) { // Do stuff when moving STATE 1 -> STATE 2 } } </code></pre> Is there a better way **for simple state machines**
0
[ 2, 25, 80, 21, 3874, 146, 1940, 6123, 3732, 60, 800, 3726, 3726, 95, 376, 20, 8713, 21, 1935, 146, 1940, 19, 272, 54, 272, 20512, 25, 21, 1236, 5521, 3331, 14, 246, 161, 20, 162, 60, 95, 57, 21, 866, 146, 13, 5, 3859, 6, 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...
ASP.NET/IIS: 404 for all file types === I set up 404 handler page in web.config, but it works ONLY when extension of URL is .aspx (or other which is handled by ASP.NET). I know I can setup static HTML page in website options, but I want to have a page. Is there any options to assign ASPX handler page for all request extensions in IIS?
0
[ 2, 28, 306, 9, 2328, 118, 2865, 18, 45, 13, 23397, 26, 65, 3893, 2551, 800, 3726, 3726, 31, 309, 71, 13, 23397, 24641, 2478, 19, 2741, 9, 14093, 2816, 15, 47, 32, 693, 104, 76, 3896, 16, 287, 6362, 25, 13, 9, 472, 306, 396, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Eval scripts in server side control property === how do i implement an eval script in a sever side control? eg. `<a runat="server" href="?id=<%= Eval("Id") %>">hello world</a>`
0
[ 2, 13, 62, 3377, 17505, 19, 8128, 270, 569, 1354, 800, 3726, 3726, 184, 107, 31, 8713, 40, 13, 62, 3377, 3884, 19, 21, 15114, 270, 569, 60, 12369, 9, 13, 1, 58, 485, 721, 3726, 7, 10321, 106, 7, 746, 14057, 3726, 7, 60, 1340, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Building Eclipse plugins and features on the command line === I have a bunch of Eclipse plugins and features, which I would like to build as part of a nightly (headless) build. I've managed to do this using a complicated setup involving manually specifying paths to Eclipse plugin jars, copying customTargets.xml, etc. Is there really no simpler solution? Isn't there a way to just point out my Update Site's site.xml and say "build"; i.e. the equivalent of clicking "Build All" in the Update Site project?
0
[ 2, 353, 11652, 10922, 108, 18, 17, 967, 27, 14, 1202, 293, 800, 3726, 3726, 31, 57, 21, 7653, 16, 11652, 10922, 108, 18, 17, 967, 15, 56, 31, 83, 101, 20, 1895, 28, 141, 16, 21, 343, 102, 13, 5, 1743, 923, 6, 1895, 9, 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...
ASP.Net Session === I am wanting to store the "state" of some actions the user is performing in a series of different ASP.Net webforms. What are my choices for persisting state, and what are the pros/cons of each solution? I have been using Session objects, and using some helper methods to strongly type the objects: public static Account GetCurrentAccount(HttpSessionState session) { return (Account)session[ACCOUNT]; } public static void SetCurrentAccount(Account obj, HttpSessionState session) { session[ACCOUNT] = obj; } I have been told by numerous sources that "Session is evil", so that is really the root cause of this question. I want to know what you think "best practice", and why.
0
[ 2, 28, 306, 9, 2328, 3723, 800, 3726, 3726, 31, 589, 4638, 20, 1718, 14, 13, 7, 3859, 7, 16, 109, 3078, 14, 4155, 25, 2955, 19, 21, 231, 16, 421, 28, 306, 9, 2328, 2741, 4190, 18, 9, 98, 50, 51, 10978, 26, 22084, 68, 146, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
text from UITextView does not display in UIScrollView === I want to have a UIScrollView with a set of subviews where each of these subviews has a UITextView with a different text. For this task, I have modified the PageControl example from the apple "iphone dev center" in order to add it a simple UITextView to the view which is used to generate the subviews of the scroll view. When I run the app (both on the simulator and the phone), NO Text is seen but if i activate the "user interaction" and click on it, the text magically appears (as well as the keyboard). Does anyone has a solution or made any progress with UITextView inside a UIScrollView? Thanks.
0
[ 2, 1854, 37, 13, 5661, 11969, 4725, 630, 52, 3042, 19, 13, 5661, 3862, 8694, 4725, 800, 3726, 3726, 31, 259, 20, 57, 21, 13, 5661, 3862, 8694, 4725, 29, 21, 309, 16, 972, 4725, 18, 113, 206, 16, 158, 972, 4725, 18, 63, 21, 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...
What would you like to see in a TDD demo? === I am going to be giving a presentation on TDD and I always struggle with what to put in the demo when giving this presentation. I usually only have about an hour to do the actual coding portion of the demo so it can't be too extravagant. However, using a "classic" example (stack,queue) is a bit simplistic for most developers. It leaves them feeling as though this won't work in a real world solution. There are a lot of concepts one needs to make TDD work well on their project besides understanding the core testing cycle *(Test, Code, Refactor)*. - IoC / Dependency Injection / Dependency Inversion - MVP / MVC (in order to handle testing of user interfaces) - Mocking So the question is... As a developer what kind of **real world** example would you like to see that incorporates these aspects and: - Fits into an hour or so - Doesn't overwhelm you - Isn't so simple that you can't apply it to your current project
4
[ 2, 98, 83, 42, 101, 20, 196, 19, 21, 15596, 43, 8376, 60, 800, 3726, 3726, 31, 589, 228, 20, 44, 1438, 21, 6364, 27, 15596, 43, 17, 31, 550, 4697, 29, 98, 20, 442, 19, 14, 8376, 76, 1438, 48, 6364, 9, 31, 951, 104, 57, 88,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 illustrate usage of volatile keyword in C# === I would like to code a little program which visually illustrates the behavior of the 'volatile' keyword. Ideally, it should be a program which performs concurrent access to a non volatile static field and which get incorrect behavior because of that. Adding the volatile keyword in the same program should fix the problem. That something I didn't manage to achieve. Even trying several times, enabling optimization, etc., I always get a correct behavior without the 'volatile' keyword. Do you have any idea about this topic ? Do you know how to simulate such a problem in a simple demo app ? Does it depend on hardware ?
0
[ 2, 184, 20, 15620, 7514, 16, 24208, 1246, 9587, 19, 272, 5910, 800, 3726, 3726, 31, 83, 101, 20, 1797, 21, 265, 625, 56, 20747, 15620, 18, 14, 3257, 16, 14, 13, 22, 5847, 58, 9802, 22, 1246, 9587, 9, 5628, 102, 15, 32, 378, 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...
Do I have to use Viewstate in ASP.NET === I am moving from classic ASP to ASP.NET and have encountered what many of you already know as "viewstate". I might be jumping the gun with my assumption, but it looks highly cumbersome. I have developed many ASP forms in the past and never had issues with keeping state. Is there another way OR am I going to have to learn this Viewstate thing in ASP.NET? I am using Visual Studio 2008, VB.NET as the code behind language and Framework v3.5 with SQL Server 2005.
0
[ 2, 107, 31, 57, 20, 275, 1418, 3859, 19, 28, 306, 9, 2328, 800, 3726, 3726, 31, 589, 1219, 37, 2732, 28, 306, 20, 28, 306, 9, 2328, 17, 57, 8208, 98, 151, 16, 42, 614, 143, 28, 13, 7, 4725, 3859, 7, 9, 31, 530, 44, 8759, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Castle-ActiveRecord Tutorial with .NET 3.5 broken? === Has anyone tried the ActiveRecord [Intro Sample][1] with C# 3.5? I somehow have the feeling that the sample is completely wrong or just out of date. The XML configuration is just plain wrong: <add key="connection.connection_string" value="xxx" /> should be : <add key="hibernate.connection.connection_string" value="xxx" /> (if I understand the nhibernate config syntax right..) I am wondering what I'm doing wrong. I get a "Could not perform ExecuteQuery for User" Exception when calling Count() on the User Model. No idea what this can be. The tutorial source differs strongly from the source on the page (most notably in the XML configuration), and it's a VS2003 sample with different syntax on most things (no generics etc). Any suggestions? ActiveRecord looks awesome.. [1]: http://www.castleproject.org/activerecord/gettingstarted/index.html
0
[ 2, 1339, 8, 7889, 14953, 29724, 29, 13, 9, 2328, 203, 9, 264, 2023, 60, 800, 3726, 3726, 63, 1276, 794, 14, 1348, 14953, 636, 23979, 5717, 500, 2558, 165, 500, 29, 272, 5910, 203, 9, 264, 60, 31, 3625, 57, 14, 1249, 30, 14, 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...
Are there any emulator for the JTAPI API? === We want test the JTAPI feature of our application. Are there any emulator for JTAPI available? The testing with real hardware is a little diffcult.
0
[ 2, 50, 80, 186, 3579, 14868, 26, 14, 487, 536, 2159, 21, 2159, 60, 800, 3726, 3726, 95, 259, 1289, 14, 487, 536, 2159, 1580, 16, 318, 3010, 9, 50, 80, 186, 3579, 14868, 26, 487, 536, 2159, 904, 60, 14, 4431, 29, 683, 7610, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Subfolders in CodeIgniter === I'm new to CodeIgniter and I need some help. I'd like to implement the following: View a user's profile via: http://localhost/profile/johndoe ...but administrate a user's profile via: http://localhost/admin/profile/johndoe and then be able to accomplish even further processing via: http://localhost/admin/profile/create ...and... http://localhost/admin/profile/edit/johndoe I've already created the admin object and secured it. Do I have to create a profile function under admin and work with the URI to process accordingly? or is there a better way?
0
[ 2, 972, 8814, 445, 19, 1797, 9693, 242, 106, 800, 3726, 3726, 31, 22, 79, 78, 20, 1797, 9693, 242, 106, 17, 31, 376, 109, 448, 9, 31, 22, 43, 101, 20, 8713, 14, 249, 45, 1418, 21, 4155, 22, 18, 5296, 1197, 45, 7775, 6903, 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...
Synchronized AJAX request === I have an javascript widget witch provides standard extension points. One of them is *beforecreate* function. It should return *false* to prevent item to be created. I've added AJAX call into this function using jQuery: beforecreate: function(node,targetNode,type,to) { jQuery.get('http://example.com/catalog/create/' + targetNode.id + '?name=' + encode(to.inp[0].value), function(result) { if(result.isOk == false) alert(result.message); }); } But I want to prevent my widget to create item so I should return *false* in mother-function not in callback. Is there any way to perform synchronized AJAX request using jQuery or any other API? Thanks.
0
[ 2, 27202, 20624, 3772, 800, 3726, 3726, 31, 57, 40, 8247, 8741, 4807, 43, 3060, 5722, 1927, 1236, 3896, 819, 9, 53, 16, 105, 25, 1637, 12750, 6037, 1373, 2483, 1990, 9, 32, 378, 788, 1637, 13192, 870, 2483, 20, 2501, 9101, 20, 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...
Good database table design for storing localized versions on dynamic data === I'm trying to design some tables to store some dynamic data, which has to be converted to different languages later. Can anybody provide some "best practices" or guidelines for this? Thanks
0
[ 2, 254, 6018, 859, 704, 26, 25615, 24821, 3281, 27, 7782, 1054, 800, 3726, 3726, 31, 22, 79, 749, 20, 704, 109, 7484, 20, 1718, 109, 7782, 1054, 15, 56, 63, 20, 44, 3494, 20, 421, 2556, 138, 9, 92, 11181, 1181, 109, 13, 7, 493...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
In Perforce, can you rename a folder with to the same name but cased differently? === Can I rename a folder in Perforce from *//depot/FooBar/* to *//depot/Foobar/*? I've tried this by renaming from *//depot/FooBar/* to *//depot/Temp/* to *//Depot/Foobar/* but the end result ends up the same as *//depot/FooBar/*.
0
[ 2, 19, 416, 8774, 15, 92, 42, 302, 7259, 21, 19294, 29, 20, 14, 205, 204, 47, 610, 43, 12670, 60, 800, 3726, 3726, 92, 31, 302, 7259, 21, 19294, 19, 416, 8774, 37, 1637, 118, 118, 546, 4296, 118, 4120, 111, 1850, 118, 2483, 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...
Minimize a external application with Delphi === Is there a way to Minimize an external application that I don't have control over from with-in my Delphi application? for example notepad.exe, except the application I want to minimize will only ever have one instance.
0
[ 2, 16713, 21, 4886, 3010, 29, 23030, 800, 3726, 3726, 25, 80, 21, 161, 20, 16713, 40, 4886, 3010, 30, 31, 221, 22, 38, 57, 569, 84, 37, 29, 8, 108, 51, 23030, 3010, 60, 26, 823, 1945, 8240, 9, 1706, 62, 15, 1613, 14, 3010, 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, 0, 0, 0, 0, 0, 0...
Develop SharePoint web parts in ASP.NET === I have been asked to develop some usercontrols in ASP.NET that will at a later point be pulled into a SharePoint site as web parts. I am new to SharePoint and will not have access to a SharePoint server during the time I need to prototype these parts. Does anyone know of any reasons that this approach will not work? If this approach is not recommended, what would other options be? Any suggestions on a resource/tutorial on what to consider when developing an ASP.NET web part with SharePoint in mind? Thanks
0
[ 2, 2803, 1891, 3132, 2741, 1341, 19, 28, 306, 9, 2328, 800, 3726, 3726, 31, 57, 74, 411, 20, 2803, 109, 4155, 12898, 18, 19, 28, 306, 9, 2328, 30, 129, 35, 21, 138, 454, 44, 881, 77, 21, 1891, 3132, 689, 28, 2741, 1341, 9, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Programatically delete emails and SMSs on a Window Mobile device === I'm looking for a code snippet that can delete all emails and text messages on a Windows Mobile device. Preferably the code would delete items in the Sent and Drafts folders as well as the Inbox. My platform is Windows Mobile (5.0 SDK) and .net 2.0 compact framework (C# / VB.NET) Many thanks
0
[ 2, 625, 721, 8438, 27448, 8517, 18, 17, 7613, 18, 18, 27, 21, 1463, 3241, 3646, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 1797, 13, 29061, 30, 92, 27448, 65, 8517, 18, 17, 1854, 7561, 27, 21, 1936, 3241, 3646, 9, 6369, 4801, 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...
Subclipse error message "Expected format '3' of repository; found format '5'" === I installed subclipse in eclipse, but I get an error message "Expected format '3' of repository; found format '5'" when I try to open a repository. Here is the sequence of steps that leads to the error message. Select "Window -> Open Perspective -> SNV Repository Exploring" from the Eclipse main menu. Right click on the "SVN Repository" tab. Select "New -> Repository Location..." from the pop-up menu. The "Add SVN Repository" panel appears. Enter "file:///Users/caylespandon/svn/MyProject" in the "Url" field. Click on the "Finish" buton. A panel with the following error message appears: <pre> Unable to Validate Error validating location: "org.tigris.subversion.javahl.ClientException: Couldn't open a repository svn: Unable to open an ra_local session to URL svn: Unable to open repository 'file:///Users/caylespandon/svn/MyProject' Unsupported repository version svn: Expected format '3' of repository; found format '5' " </pre> Note that I can access the same repository from the command line just fine: <pre> ~> svn checkout file:///Users/caylespandon/svn/MyProject A MyProject/trunk A MyProject/trunk/Jamrules A MyProject/trunk/.project A MyProject/trunk/setenv [...] </pre> Here is the version information: Eclipse: version 3.4.0 build id I20080617-2000 Subclipse version: 1.2.0 SVN version: 1.4.4 (r25188) Running on a Mac: OS X version 10.5.4 PS -- If your answer involves switching from file to svn+ssh, please explain why and how to convert an existing repository from file to svn+ssh without losing any history.
0
[ 2, 972, 150, 6013, 870, 7019, 2802, 13, 7, 6899, 11557, 69, 2595, 13, 22, 240, 22, 16, 24869, 73, 216, 2595, 13, 22, 264, 22, 7, 800, 3726, 3726, 31, 4066, 972, 150, 6013, 870, 19, 11652, 15, 47, 31, 164, 40, 7019, 2802, 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...
What's the difference between a "Data Service Layer" and a "Data Access Layer"? === I remember reading that one abstracts the low level calls into a data agnostic framework (eg. ExecuteCommand methods etc), and the other usually contains business specific methods (eg. UpdateCustomer). Is this correct? Which is which?
0
[ 2, 98, 22, 18, 14, 2841, 128, 21, 13, 7, 18768, 365, 5385, 7, 17, 21, 13, 7, 18768, 1381, 5385, 7, 60, 800, 3726, 3726, 31, 1518, 1876, 30, 53, 8502, 18, 14, 708, 662, 3029, 77, 21, 1054, 21, 21944, 6596, 13, 5, 5431, 9, 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 do you find the namespace/module name programatically in Ruby on Rails? === How do I find the name of the namespace or module 'Foo' in the filter below? class ApplicationController < ActionController::Base def get_module_name @module_name = ??? end end class Foo::BarController < ApplicationController before_filter :get_module_name end
0
[ 2, 184, 107, 42, 477, 14, 204, 5582, 118, 19673, 62, 204, 625, 721, 8438, 19, 10811, 27, 2240, 18, 60, 800, 3726, 3726, 184, 107, 31, 477, 14, 204, 16, 14, 204, 5582, 54, 12613, 13, 22, 4120, 111, 22, 19, 14, 11945, 1021, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 handle strings in C++ === Which is your favorite way to go with strings in C++? A C-style array of **chars**? Or **wchar___t**? **CString**, **basic_string**, **std::string**, **BSTR** or **CComBSTR**? Certainly each of these has its own area of application, but anyway, which is your favorite and why?
0
[ 2, 184, 107, 42, 3053, 7887, 19, 272, 20512, 800, 3726, 3726, 56, 25, 154, 3839, 161, 20, 162, 29, 7887, 19, 272, 20512, 60, 21, 272, 8, 4381, 7718, 16, 13, 1409, 5433, 18, 1409, 60, 54, 13, 1409, 499, 5433, 1, 38, 1409, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.NET: SqlDataReader.Close or .Dispose results in Timeout Expired exception === When trying to call Close or Dispose on an SqlDataReader i get a timeout expired exception. If you have a DbConnection to SQL Server, you can reproduce it yourself with: String CRLF = "\r\n"; String sql = "SELECT * " + CRLF + "FROM (" + CRLF + " SELECT (a.Number * 256) + b.Number AS Number" + CRLF + " FROM master..spt_values a," + CRLF + " master..spt_values b" + CRLF + " WHERE a.Type = 'p'" + CRLF + " AND b.Type = 'p') Numbers1" + CRLF + " FULL OUTER JOIN (" + CRLF + " SELECT (print("code sample");a.Number * 256) + b.Number AS Number" + CRLF + " FROM master..spt_values a," + CRLF + " master..spt_values b" + CRLF + " WHERE a.Type = 'p'" + CRLF + " AND b.Type = 'p') Numbers2" + CRLF + " ON 1=1"; DbCommand cmd = connection.CreateCommand(); cmd.CommandText = sql; DbDataReader rdr = cmd.ExecuteReader(); rdr.Close(); If you call reader.Close() or reader.Dispose() it will throw a System.Data.SqlClient.SqlException: - ErrorCode: -2146232060 (0x80131904) - Message: "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."
0
[ 2, 13, 9, 2328, 45, 4444, 255, 18768, 10647, 106, 9, 14330, 54, 13, 9, 2906, 15690, 1736, 19, 85, 1320, 15524, 5391, 800, 3726, 3726, 76, 749, 20, 645, 543, 54, 17913, 27, 40, 4444, 255, 18768, 10647, 106, 31, 164, 21, 85, 1320,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Elevating process privilege programatically? === I'm trying to install a service using InstallUtil.exe but invoked through Process.Start. Here's the code: ProcessStartInfo startInfo = new ProcessStartInfo (m_strInstallUtil, strExePath); System.Diagnostics.Process.Start (startInfo); where "m_strInstallUtil" is the fully qualified path and exe to InstallUtil.exe and "strExePath" is the fully qualified path/name to my service. Running the command line syntax from an elevated command prompt works; running from my app (using the above code) does not. I assume I'm dealing with some process elevation issue, so how would I run my process in an elevated state? Do I need to look at ShellExecute for this? This is all on Windows Vista. I am running the process in the VS2008 debugger elevated to admin privilege.
0
[ 2, 931, 2443, 1880, 953, 16575, 625, 721, 8438, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 16146, 21, 365, 568, 16146, 14255, 9, 1706, 62, 47, 26252, 120, 953, 9, 13680, 9, 235, 22, 18, 14, 1797, 45, 953, 13680, 108, 4120, 799, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Configure db used for ASP.Net Authentication === I want to use forms authentication in my asp.net mvc site. Can I use an already existing sql db (on a remote server) for it? How do I configure the site to use this db for authentication? Which tables do I need/are used for authentication?
0
[ 2, 1065, 15951, 13, 9007, 147, 26, 28, 306, 9, 2328, 27963, 800, 3726, 3726, 31, 259, 20, 275, 1997, 27963, 19, 51, 28, 306, 9, 2328, 307, 8990, 689, 9, 92, 31, 275, 40, 614, 3149, 4444, 255, 13, 9007, 13, 5, 218, 21, 5388, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Password encryption in Delphi === I need to store database passwords in a config file. For obvious reasons, I want to encrypt them (preferably with AES). Does anyone know a Delphi implementation that is easy to introduce into an existing project with > 10,000 lines of historically grown (URGH!) source code? Clarification: Easy means adding the unit to the project, adding max. 5 lines of code where the config file is read and be done with it. Should not take more than 15 minutes.
0
[ 2, 20884, 24420, 19, 23030, 800, 3726, 3726, 31, 376, 20, 1718, 6018, 20884, 18, 19, 21, 13, 14093, 2816, 3893, 9, 26, 4674, 2932, 15, 31, 259, 20, 1957, 11435, 105, 13, 5, 3515, 2407, 4801, 29, 21, 160, 6, 9, 630, 1276, 143, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to set the Content-type in Joomla === I am developing a Joomla component and one of the views needs to render itself as PDF. In the view, I have tried setting the content-type with the following line, but when I see the response, it is text/html anyways. header('Content-type: application/pdf'); If I do this in a regular php page, everything works as expected. It seems that I need to tell Joomla to use application/pdf instead of text/html. How can I do it? Note: Setting other headers, such as Content-Disposition, works as expected.
0
[ 2, 184, 20, 309, 14, 2331, 8, 4474, 19, 2640, 2636, 531, 800, 3726, 3726, 31, 589, 3561, 21, 2640, 2636, 531, 5912, 17, 53, 16, 14, 4146, 2274, 20, 16535, 1145, 28, 13, 11124, 9, 19, 14, 1418, 15, 31, 57, 794, 2697, 14, 2331, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is an orthogonal index? === A table in my area of responsibility of our product has been criticised as having more than one orthogonal index. What is an orthogonal index? Why is it bad? How can the situation be avoided?
0
[ 2, 98, 25, 40, 27252, 4348, 60, 800, 3726, 3726, 21, 859, 19, 51, 217, 16, 4024, 16, 318, 2374, 63, 74, 11006, 28, 452, 91, 119, 53, 27252, 4348, 9, 98, 25, 40, 27252, 4348, 60, 483, 25, 32, 896, 60, 184, 92, 14, 1858, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do you handle small sets of data? === With really small sets of data, the policy where I work is generally to stick them into text files, but in my experience this can be a development headache. Data generally comes from the database and when it doesn't, the process involved in setting it/storing it is generally hidden in the code. With the database you can generally see all the data available to you and the ways with which it relates to other data. Sometimes for really small sets of data I just store them in an internal data structure in the code (like A Perl hash) but then when a change is needed, it's in the hands of a developer. So how do you handle small sets of infrequently changed data? Do you have set criteria of when to use a database table or a text file or..? I'm tempted to just use a database table for absolutely everything but I'm not sure if there are any implications to this.
0
[ 2, 184, 107, 42, 3053, 284, 3415, 16, 1054, 60, 800, 3726, 3726, 29, 510, 284, 3415, 16, 1054, 15, 14, 1486, 113, 31, 170, 25, 1469, 20, 5258, 105, 77, 1854, 6488, 15, 47, 19, 51, 1496, 48, 92, 44, 21, 522, 14276, 9, 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...
propertyNameFieldSpecified when generating a 2.0 web service proxy from a WCF Service === I have created a web reference (Add Web Reference) from Visual Studio 2008 and strangely, I need to set the *propertyNameField*Specified to true for all the fields I want to submit. Failure to do that and values are not passed back to the WCF Service. I have read at several places that this was fixed in the RTM version of Visual Studio. Why does it still occurring? My data contracts are all valid with nothing else than properties and lists. Any ideas?
0
[ 2, 1354, 7259, 1109, 18, 12610, 4462, 76, 13500, 21, 172, 9, 387, 2741, 365, 27188, 37, 21, 11801, 410, 365, 800, 3726, 3726, 31, 57, 679, 21, 2741, 2801, 13, 5, 14854, 2741, 2801, 6, 37, 3458, 1120, 570, 17, 16432, 15, 31, 376,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I get access to the HttpServletRequest object when using Java Web Services === I'm using Java 6, Tomcat 6, and using WebService and WebMethod annotations to expose my web service. I would like to obtain information about the request. I tried the following code, but wsCtxt is always null. What must I do to make this work. @WebService public class MyService{ @Resource WebServiceContext wsCtxt; @WebMethod public void myWebMethod(){ MessageContext msgCtxt = wsCtxt.getMessageContext(); HttpServletRequest req = (HttpServletRequest)msgCtxt.get(MessageContext.SERVLET_REQUEST); String clientIP = req.getRemoteAddr(); }
0
[ 2, 184, 92, 31, 164, 1381, 20, 14, 7775, 10321, 1336, 99, 10351, 3095, 76, 568, 8247, 2741, 687, 800, 3726, 3726, 31, 22, 79, 568, 8247, 400, 15, 2067, 5782, 400, 15, 17, 568, 2741, 11449, 17, 2741, 5909, 1807, 43, 40, 1270, 750...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 a TCP/IP Stack be killed programmatically? === Our server application is listening on a port, and after a period of time it no longer accepts incoming connections. (And while I'd love to solve this issue, it's not what I'm asking about here;) The strange this is that when our app stops accepting connections on port 44044, so does IIS (on port 8080). Killing our app fixes everything - IIS starts responding again. So the question is, can an application mess up the entire TCP/IP stack? Or perhaps, how can an application do that? Senseless detail: Our app is written in C#, under .Net 2.0, on XP/SP2.
0
[ 2, 92, 21, 13, 38, 7439, 118, 4307, 7566, 44, 841, 625, 6732, 1326, 60, 800, 3726, 3726, 318, 8128, 3010, 25, 4948, 27, 21, 1295, 15, 17, 75, 21, 620, 16, 85, 32, 90, 1045, 16548, 17126, 6760, 9, 13, 5, 290, 133, 31, 22, 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...
IPSec AES 256 encryption in Windows XP with Service Pack 3? === Does IPsec in Windows XP Sp3 support AES-256 encryption?
0
[ 2, 15735, 14332, 21, 160, 13, 16910, 24420, 19, 1936, 23045, 29, 365, 3607, 203, 60, 800, 3726, 3726, 630, 15735, 14332, 19, 1936, 23045, 3782, 240, 555, 21, 160, 8, 16910, 24420, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Best DNS with API access. === I saw this over on slashdot and realized if I could program in dns control into some of my apps it would make life a lot easier. [Someone over there][1] recommended [dynect][2] which apparently had a wonderful api. Unfortunately not a lot else was recomended. I don't know anything about managing dns servers I mostly work with the lamp stack, so on linux I understand bind is the way to go but other then a basic setup I'd be lost. I'd rather outsource the details. What dns services that you have used, have API's and are easy to use without breaking the bank? [1]: http://ask.slashdot.org/comments.pl?sid=975011&cid=25146235 [2]: http://dynect.com/features/api.html
0
[ 2, 246, 13, 43, 2172, 29, 21, 2159, 1381, 9, 800, 3726, 3726, 31, 441, 48, 84, 27, 14098, 12527, 17, 1896, 100, 31, 110, 625, 19, 13, 43, 2172, 569, 77, 109, 16, 51, 4865, 18, 32, 83, 233, 201, 21, 865, 4950, 9, 636, 16251, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Check for a valid guid === How can you check if a string is a valid GUID in vbscript? Has anyone written an IsGuid method?
0
[ 2, 2631, 26, 21, 7394, 9457, 43, 800, 3726, 3726, 184, 92, 42, 2631, 100, 21, 3724, 25, 21, 7394, 9457, 43, 19, 13, 20468, 8741, 60, 63, 1276, 642, 40, 25, 7215, 43, 2109, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Ruby to Actionscript3 Bytecode === Hi I was looking into Ruby to actionscript 3 bytecode compilers and found a mention of a project called Red Sun but can find very little information on it. So my Question is ... what tools are available to convert Ruby source into AS3 bytecode
0
[ 2, 10811, 20, 1028, 8741, 240, 34, 591, 9375, 800, 3726, 3726, 4148, 31, 23, 699, 77, 10811, 20, 1028, 8741, 203, 34, 591, 9375, 21486, 18, 17, 216, 21, 3794, 16, 21, 669, 227, 402, 939, 47, 92, 477, 253, 265, 676, 27, 32, 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...
Autogeneration of a DataContext designer file when using SqlMetal and Visual Studio === I am using <a href="http://msdn.microsoft.com/en-us/library/bb386987.aspx">SqlMetal</a> to general my DataContext.dbml class for my ASP.net application using LinqToSql. When I initially created the DataContext.dbml file, Visual Studio used this to create a related DataContext.designer.cs file. This designer file contains the DataContext class in C# that is used throughout the app (and is derived from the XML in the dbml file) and is essential to bridging the gap between the output of SqlMetal and using the DataContext with LinqToSql. However, when I make a change to the database and recreate the dbml file, the designer file never gets regenerated in my website. Instead, the old designer file is maintained (and therefore none of the changes to the DBML file are accessible through the LinqToSql DataContext class). The only process I have been able to use so far to regenerate the designer file is 1. Go to Windows Explorer and delete both the dbml and designer.cs files 2. Go to Visual Studio and hit Refresh in the Solution Explorer. The dbml and designer.cs files now disappear from the project. 3. Regenerate the dbml file using SqlMetal 4. Go to Visual Studio and hit Refresh in the Solution Explorer. Now the designer.cs file is recreated. It seems that Visual Studio will only generate the designer.cs file when a new dbml file is detected that does not yet have a designer.cs file. This process is pretty impractical, since it involves several manual steps and messes things up with source control. Does anyone know how I can get the designer.cs file automatically regenerated without having to follow the manual delete/refresh/regenerate/delete process outlined above?
0
[ 2, 3108, 12546, 16, 21, 1054, 1126, 11969, 4742, 3893, 76, 568, 4444, 255, 13651, 17, 3458, 1120, 800, 3726, 3726, 31, 589, 568, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 79, 18, 43, 103, 9, 22019, 12980, 9, 960, 118, 219, 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...
First impressions of the Fan programming language? === Has anyone here given the [Fan programming language](http://www.fandev.org) a whirl? (pun intended). My first impression: - I like the ability to have the code run on either the .NET or Java VM. - The syntax is nice and clean and does not try anything fancy. - I have a belief that "the library is the language" and the developers of Fan [believe that their USP is their APIs](http://fandev.org/doc/docIntro/WhyFan.html): > But getting a language to run on both Java and .NET is the easy part - in fact there are many solutions to this problem. The hard part is getting portable APIs. Fan provides a set of APIs which abstract away the Java and .NET APIs. We actually consider this one of Fan's primary benefits, because it gives us a chance to develop a suite of system APIs that are elegant and easy to use compared to the Java and .NET counter parts. Any other thoughts, first impressions, pros and cons?
0
[ 2, 64, 6394, 18, 16, 14, 2514, 3143, 816, 60, 800, 3726, 3726, 63, 1276, 235, 504, 14, 636, 7491, 3143, 816, 500, 5, 21127, 6903, 6483, 9, 7491, 14438, 9, 5583, 6, 21, 13, 9373, 6362, 60, 13, 5, 13562, 2081, 6, 9, 51, 64, 63...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 reading /dev/urandom thread-safe ? === This is the code: <code><pre> unsigned int number; FILE* urandom = fopen("/dev/urandom", "r"); if (urandom) { size_t bytes_read = fread(&number, 1, sizeof(number), urandom); DCHECK(bytes_read == sizeof(number)); fclose(urandom); } else { NOTREACHED(); } </pre></code> If not, how do I make it thread-safe?
0
[ 2, 25, 1876, 13, 118, 14438, 118, 17692, 5555, 9322, 8, 18166, 13, 60, 800, 3726, 3726, 48, 25, 14, 1797, 45, 13, 1, 9375, 1, 3515, 1, 28839, 19, 38, 234, 73, 3893, 2483, 13, 17692, 5555, 800, 398, 10157, 5, 7, 118, 14438, 118...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.NET Windows Integrated Authentication === I'm looking for the best/easiest way to add extensions to an existing protocol (can't change the actual protocol easily) to allow the user to do windows authentication (NTLM?) in .NET. I looked at the AuthenticationManager class already but it requires that I use Web(Http)Request which isn't an option. NegotiateStream is an option either as I want to integrate this into the existing protocol, not wrap it into a new one. Are there any options besides these two available to me ?
0
[ 2, 13, 9, 2328, 1936, 5547, 27963, 800, 3726, 3726, 31, 22, 79, 699, 26, 14, 246, 118, 3537, 18, 10727, 161, 20, 3547, 17529, 20, 40, 3149, 8494, 13, 5, 1245, 22, 38, 753, 14, 3463, 8494, 2351, 6, 20, 1655, 14, 4155, 20, 107, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best programming novel to take on holiday === I am about enjoy a two week break in Spain where I expect to have lots of time for relaxing and reading. I normally read a lot of non-fiction so I'm looking for novel suggestions. If there is another [Cryptonomicon][1] out there I'd love to hear about it! [1]: http://en.wikipedia.org/wiki/Cryptonomicon
0
[ 2, 246, 3143, 1211, 20, 247, 27, 5114, 800, 3726, 3726, 31, 589, 88, 4696, 21, 81, 877, 1442, 19, 1881, 113, 31, 4186, 20, 57, 7503, 16, 85, 26, 22337, 17, 1876, 9, 31, 4147, 1302, 21, 865, 16, 538, 8, 11820, 86, 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...
Good idea access session in observer or not? === I want to log user's actions in my Ruby on Rails application. So far, I have a model observer that inserts logs to the database after updates and creates. In order to store which user performed the action that was logged, I require access to the session but that is problematic. Firstly, it breaks the MVC model. Secondly, techniques range from the hackish to the outlandish, perhaps maybe even tying the implementation to the Mongrel server. What is the right approach to take?
0
[ 2, 254, 882, 1381, 3723, 19, 9855, 54, 52, 60, 800, 3726, 3726, 31, 259, 20, 6738, 4155, 22, 18, 3078, 19, 51, 10811, 27, 2240, 18, 3010, 9, 86, 463, 15, 31, 57, 21, 1061, 9855, 30, 14692, 18, 18893, 20, 14, 6018, 75, 16779, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I use a remote MSMQ transactionally? === I am writing a Windows service that pulls messages from an MSMQ and posts them to a legacy system (Baan). If the post fails or the machine goes down during the post, I don't want to loose the message. I am therefore using MSMQ transactions. I abort on failure, and I commit on success. When working against a local queue, this code works well. But in production I will want to separate the machine (or machines) running the service from the queue itself. When I test against a remote queue, an System.Messaging.MessageQueueException is thrown: "The transaction usage is invalid." I have verified that the queue in question is transactional. Here's the code that receives from the queue: // Begin a transaction. _currentTransaction = new MessageQueueTransaction(); _currentTransaction.Begin(); Message message = queue.Receive(wait ? _queueTimeout : TimeSpan.Zero, _currentTransaction); _logger.Info("Received a message on queue {0}: {1}.", queue.Path, message.Label); WORK_ITEM item = (WORK_ITEM)message.Body; return item;
0
[ 2, 184, 107, 31, 275, 21, 5388, 4235, 79, 1251, 12799, 1326, 60, 800, 3726, 3726, 31, 589, 1174, 21, 1936, 365, 30, 8071, 7561, 37, 40, 4235, 79, 1251, 17, 9868, 105, 20, 21, 7780, 329, 13, 5, 969, 210, 6, 9, 100, 14, 678, 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...
Good examples of UK postcode lookup flow === I'm looking for a good, well designed flow of a UK postcode lookup process as part of registration for an eCommerce account. We're redesigning ours and want to see what is out there and how I can make it as friendly as possible.
0
[ 2, 254, 3770, 16, 1063, 678, 9375, 361, 576, 3312, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 254, 15, 134, 1006, 3312, 16, 21, 1063, 678, 9375, 361, 576, 953, 28, 141, 16, 8587, 26, 40, 13, 62, 26470, 2176, 9, 95, 22, 99, 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...
Hashtable in C++? === I usually use C++ STL map whenever I need to store some data associated with a specific type of value (a key value - e.g. a string or other object). The STL map implementation is based on trees which provides better performance (O(log n)) than the standard array or STL vector. My questions is, do you know of any C++ "standard" hashtable implementation that provides even better performance (O(1))? Something similar to what is available in the Hashtable class from the Java API.
0
[ 2, 19170, 5924, 19, 272, 20512, 60, 800, 3726, 3726, 31, 951, 275, 272, 20512, 354, 255, 2942, 6634, 31, 376, 20, 1718, 109, 1054, 1598, 29, 21, 1903, 1001, 16, 1923, 13, 5, 58, 1246, 1923, 13, 8, 13, 62, 9, 263, 9, 21, 3724, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 multiple <br/> tag to a single <br/> tag in php === Wanted to convert <br/> <br/> <br/> <br/> <br/> into <br/>
0
[ 2, 184, 20, 8406, 1886, 13, 1, 5145, 118, 1, 3383, 20, 21, 345, 13, 1, 5145, 118, 1, 3383, 19, 13, 26120, 800, 3726, 3726, 417, 20, 8406, 13, 1, 5145, 118, 1, 13, 1, 5145, 118, 1, 13, 1, 5145, 118, 1, 13, 1, 5145, 118, 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, 0, 0, 0...
setting Radio Button enabled/disabled via CSS === Is there a way to make a Radio Button enabled/disabled (not checked/unchecked) via CSS? I've need to toggle some radio buttons on the client so that the values can be read on the server, but setting the 'enabled' property to 'false' then changing this on the client via javascript seems to prevent me from posting back any changes to the radio button after it's been enabled. See: [ASP.NET not seeing Radio Button value change][1] It was recommended that I use control.style.add("disabled", "true") instead, but this does not seem to disable the radio button for me. Thanks! [1]: http://stackoverflow.com/questions/130165/aspnet-not-seeing-radio-button-value-change
0
[ 2, 2697, 603, 5167, 9338, 118, 2906, 579, 43, 1197, 272, 18, 18, 800, 3726, 3726, 25, 80, 21, 161, 20, 233, 21, 603, 5167, 9338, 118, 2906, 579, 43, 13, 5, 1270, 6505, 118, 1020, 12542, 69, 6, 1197, 272, 18, 18, 60, 31, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 regular expressions be used to match nested patterns? === Is it possible to write a regular expression that matches a nested pattern that occurs an unknown number of times. For example, can a regular expression match an opening and closing brace when there are an unknown number of open closing braces nested within the outer braces. For example: public MyMethod() { if (test) { // More { } } // More { } } // End Should match: { if (test) { // More { } } // More { } }
0
[ 2, 92, 1290, 13832, 44, 147, 20, 730, 5618, 69, 6282, 60, 800, 3726, 3726, 25, 32, 938, 20, 2757, 21, 1290, 1803, 30, 1717, 21, 5618, 69, 3732, 30, 3690, 40, 2562, 234, 16, 436, 9, 26, 823, 15, 92, 21, 1290, 1803, 730, 40, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to learn C? === I am able to program in Lisp, Python, Ruby, JavaScript and Prolog and I have been willing to learn how to program in C for a very long time now. I know the syntax and basic concepts (I've actually read Kernigham & Ritchie), but I've never been able to pass through the writing “Hello world!” stage. So, my problem is related not to the language itself, but rather to _everything else_ that you need to do sensible development in C. I never quite figured out how to use libraries, what are the capabilities of the Standard Library, what is the _good_ way of getting Unicode (I hope there is one), how do I get hashes and so on. Oh, not to mention that stuff like the linker, what should be the compile flags and so on are black magic to me. I have problems with the _pragmatics_ of programming in C. What would you recommend me to do in order to finally learn C? * Are there any really good tutorials or books? * Are there any libraries known to be easy to interact with that would allow me to learn what the best practices are? * Are there any Open Source projects to which I should be able to contribute quite fast and which present a good programming style? * Writing what pet projects would be optimal from the learning point of view? In other languages I usually write a Sudoku solver or a Red-Back trees implementation to get the feeling. I'd like to be able to: * write programs interacting with libraries, * write a Python module in C, * create the CFFI bindings for Common Lisp for a C library * write extensions to SQLite or PostgreSQL So as you can see I am not really interested in kernel hacking or hardcore algorithms at this point. I am a Linux and Emacs user.
4
[ 2, 98, 25, 14, 246, 161, 20, 2484, 272, 60, 800, 3726, 3726, 31, 589, 777, 20, 625, 19, 2093, 3401, 15, 20059, 15, 10811, 15, 8247, 8741, 17, 895, 5567, 17, 31, 57, 74, 4452, 20, 2484, 184, 20, 625, 19, 272, 26, 21, 253, 175...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sure Google Appengine scales, but is it also fast? === I want to know if responsetimes are good, not just if it scales. Anyone with experiences?
0
[ 2, 562, 8144, 4865, 16847, 10105, 15, 47, 25, 32, 67, 1512, 60, 800, 3726, 3726, 31, 259, 20, 143, 100, 1627, 891, 18, 50, 254, 15, 52, 114, 100, 32, 10105, 9, 1276, 29, 5513, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Balancing a Binary Tree === Ok, this is another one in the theory realm for the CS guys around. In the 90's I did fairly well in implementing BST's. The only thing I could bever get my head around was the intricacy of the algorithm to perfectly balance a Binary Tree. Can you guys help me on this? **Note**: As usual, one implementation per answer so we can judge it.
0
[ 2, 16416, 6302, 21, 14171, 1541, 800, 3726, 3726, 5854, 15, 48, 25, 226, 53, 19, 14, 1639, 6640, 26, 14, 272, 18, 2776, 140, 9, 19, 14, 3151, 22, 18, 31, 144, 6647, 134, 19, 17333, 334, 384, 22, 18, 9, 14, 104, 584, 31, 110,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 return from 'gf' in Vim === I am using Vim for windows installed in Unix mode. Thanks to this site I now use the 'gf' command to go to a file under the cursor. I'm looking for a command to either:<br> 1) return to the previous file (similar to ^t for ctags), or<br> 2) remap 'gf' to automatically launch the new file in a new window.
0
[ 2, 184, 107, 42, 788, 37, 13, 22, 16368, 22, 19, 1790, 79, 800, 3726, 3726, 31, 589, 568, 1790, 79, 26, 1936, 4066, 19, 22540, 3740, 9, 3669, 20, 48, 689, 31, 130, 275, 14, 13, 22, 16368, 22, 1202, 20, 162, 20, 21, 3893, 131...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Future of the Component Object Model? === Folks, Please has anyone heard anything about Microsoft [not] supporting COM on future version of Windows? I imagine that Microsofts engineers are stuck with it (even if they would prefer to only develop and support the .NET framework) simply because of the enourmous backlash from there huge customer vase. There must be literally billions of lines of COM-based stuff out there in the wild. I know I'm NOT looking forward to being pushed into a mass-migration simply because some smarty-pants over-achieving architectural astronaut has to prove he's The Greatest... (sheesh, why don't they just take up boxing?) I suspect I'm just being paranoid ;-) but can anyone provender any authorative links (google finds "not much")? Ideally, a White Paper from Microsoft saying "COM Stays in Vienna, or else!" would settle my nerves greatly. Cheers all. Keith.
0
[ 2, 1022, 16, 14, 5912, 3095, 1061, 60, 800, 3726, 3726, 14563, 15, 2247, 63, 1276, 752, 602, 88, 7099, 636, 1270, 500, 3134, 13, 960, 27, 1022, 615, 16, 1936, 60, 31, 4382, 30, 7099, 18, 5379, 50, 4549, 29, 32, 13, 5, 4943, 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...
Insert a fixed number of rows 2000 at a time in sql server === I want to insert say 50,000 records into sql server database 2000 at a time. How to accomplish this?
0
[ 2, 14692, 21, 3535, 234, 16, 11295, 824, 35, 21, 85, 19, 4444, 255, 8128, 800, 3726, 3726, 31, 259, 20, 14692, 395, 14522, 742, 77, 4444, 255, 8128, 6018, 824, 35, 21, 85, 9, 184, 20, 14570, 48, 60, 3, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Format Date On Binding (ASP.NET MVC) === In my ASP.net MVC app I have a view that looks like this: ... <label>Due Date</label> <%=Html.TextBox("due")%> ... I am using a `ModelBinder` to bind the post to my model (the due property is of `DateTime` type). The problem is when I put "01/01/2009" into the textbox, and the post does not validate (due to other data being input incorrectly). The binder repopulates it with the date **and time** "01/01/2009 **00:00:00**". **Is there any way to tell the binder to format the date correctly (i.e. `ToShortDateString()`)?**
0
[ 2, 2595, 1231, 27, 8728, 13, 5, 472, 306, 9, 2328, 307, 8990, 6, 800, 3726, 3726, 19, 51, 28, 306, 9, 2328, 307, 8990, 4865, 31, 57, 21, 1418, 30, 1879, 101, 48, 45, 13, 9, 9, 9, 13, 1, 21018, 1, 12633, 1231, 1, 118, 21018...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Red eye reduction algorithm === I need to implement red eye reduction for an application I am working on. Googling mostly provides links to commercial end-user products. Do you know a good red eye reduction algorithm, which could be used in a GPL application?
0
[ 2, 402, 1356, 5895, 9083, 800, 3726, 3726, 31, 376, 20, 8713, 402, 1356, 5895, 26, 40, 3010, 31, 589, 638, 27, 9, 162, 5598, 802, 1555, 1927, 6271, 20, 1439, 241, 8, 16704, 1985, 9, 107, 42, 143, 21, 254, 402, 1356, 5895, 9083, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Determine SLOC and complexity of C# and C++ from .NET === I have been using SourceMonitor on my project for a couple of years to keep records of source-code complexity and basic SLOC (including comments) for C# and C++ components. These are used for external reporting to our customer, so I'm not in a position to argue their merits or lack of. I've been working on a repository analysis tool which is able to give me a snap-shot view of the project at any date/time. The next stage I want to add is caching of the metrics for a specified file and revision. I know SourceMonitor can be scripted to allow me to supply the files to be tested and grab the metrics out of the result file CSV or XML. Is there a native library in .NET that I could use to do the same thing -- e.g. avoid spawning an external process and parsing the results. I only really need the following metrics: - SLOC - Number of comment lines - Complexity of most complex method - Name of most complex method I need to run this on C# code and C++.
0
[ 2, 3746, 13, 18, 10799, 17, 12745, 16, 272, 5910, 17, 272, 20512, 37, 13, 9, 2328, 800, 3726, 3726, 31, 57, 74, 568, 1267, 2111, 242, 248, 27, 51, 669, 26, 21, 1335, 16, 122, 20, 643, 742, 16, 1267, 8, 9375, 12745, 17, 2125, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
spawn a new xterm window === When I am using Bitvise Tunnelier and I spawn a new xterm window connecting to our sun station everything works nicely. We have visual slick edit installed on the sun station and I have been instructed to open it using the command vs&. When I do this I get the following: fbm240-1:/home/users/ajahn 1 % vs& [1] 4716 fbm240-1:/home/users/ajahn 2 % Visual SlickEdit: Can't open connection to X. DIS PLAY='<Default Display>' I would rather not go jumping through hoops ftping my material back and forth to the server. Advice?
0
[ 2, 13, 22860, 21, 78, 993, 3964, 1463, 800, 3726, 3726, 76, 31, 589, 568, 1142, 3762, 62, 3485, 1944, 17, 31, 13, 22860, 21, 78, 993, 3964, 1463, 6440, 20, 318, 939, 312, 796, 693, 24050, 9, 95, 57, 3458, 12544, 9392, 4066, 27, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to profile PHP code === I'd like to find a way to determine how long each function in PHP, and each file in PHP is taking to run. I've got an old legacy PHP application that I'm trying to find the "rough spots" in and so I'd like to locate which routines and pages are taking a very long time to load, objectively. Are there any pre-made tools that allow for this, or am I stuck using microtime, and building my own profiling framework?
0
[ 2, 98, 25, 14, 246, 161, 20, 5296, 13, 26120, 1797, 800, 3726, 3726, 31, 22, 43, 101, 20, 477, 21, 161, 20, 3746, 184, 175, 206, 1990, 19, 13, 26120, 15, 17, 206, 3893, 19, 13, 26120, 25, 741, 20, 485, 9, 31, 22, 195, 330, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.NET - How to hide invalid choices in a DateTimePicker === I've set the MaxDate and MinDate properties of a DateTimePicker. However, when I test the control at runtime, there is no way to tell the invalid dates from the valid ones. The only difference is that clicking on an invalid date does nothing. This is not very intuitive for the user. I want to be able to tell at a glance what the valid dates are. Is there any way to highlight the valid date range - or more appropriately, 'dim' the invalid dates? Or, is there another control which would be more appropriate? I'm sure a couple of combo boxes would work, but I really think the user should be presented with a calendar control when asked for a date.
0
[ 2, 13, 9, 2328, 13, 8, 184, 20, 3077, 16671, 10978, 19, 21, 1231, 891, 16855, 106, 800, 3726, 3726, 31, 22, 195, 309, 14, 2049, 8209, 17, 594, 1373, 3704, 16, 21, 1231, 891, 16855, 106, 9, 207, 15, 76, 31, 1289, 14, 569, 35, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 resize the Asp.Net Page based on the screen resolution === I am developing a web application which has Chart Controls. I have developed a common chart User Control to use across the application. I am looking for an elegent way to set the Chart control's along with other control's width, height based on the screen(browser size). Please help me Thanks Shaik
0
[ 2, 184, 20, 302, 10454, 14, 28, 306, 9, 2328, 2478, 432, 27, 14, 2324, 4302, 800, 3726, 3726, 31, 589, 3561, 21, 2741, 3010, 56, 63, 1795, 8671, 9, 31, 57, 885, 21, 757, 1795, 4155, 569, 20, 275, 464, 14, 3010, 9, 31, 589, 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...
Why do I receive fatal error "LNK1104: cannot open file 'C:\Program.obj'" when I compile a C++ project in Visual Studio. === I've created a new C++ project in Visual Studio 2008. No code has been written yet; Only project settings have been changed. When I compile the project, I receive the following fatal error: > fatal error LNK1104: cannot open file 'C:\Program.obj'
0
[ 2, 483, 107, 31, 2588, 8773, 7019, 13, 7, 255, 5719, 1306, 3277, 45, 1967, 368, 3893, 13, 22, 150, 45, 1, 19746, 9, 111, 11741, 22, 7, 76, 31, 26561, 21, 272, 20512, 669, 19, 3458, 1120, 9, 800, 3726, 3726, 31, 22, 195, 679, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Symfony Framework is a good framework to learn? === I never used any public framework (always made by inside business or by my own). I see that [Symfony][1] have a [lot of tutorials and nice documentation on it][2] and seem to have everything from CRUD to multiple language handling. Do you think it's a good framework to build a website that is not a blog*? If not, what is the other alternative? [1]: http://en.wikipedia.org/wiki/Symfony [2]: http://www.symfony-project.org/ *Website with login to manage financial data.
0
[ 2, 13, 7261, 10229, 93, 6596, 25, 21, 254, 6596, 20, 2484, 60, 800, 3726, 3726, 31, 243, 147, 186, 317, 6596, 13, 5, 21284, 117, 34, 572, 508, 54, 34, 51, 258, 6, 9, 31, 196, 30, 636, 7261, 10229, 93, 500, 2558, 165, 500, 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...
HTML table with adjustable columns; How do they do that? === I've seen web pages with tables where you could adjust the column widths. I have not figured out how to do this. If you know the secret sauce to this technique please let us know.
0
[ 2, 13, 15895, 859, 29, 27714, 7498, 73, 184, 107, 59, 107, 30, 60, 800, 3726, 3726, 31, 22, 195, 541, 2741, 4434, 29, 7484, 113, 42, 110, 14328, 14, 4698, 9456, 18, 9, 31, 57, 52, 5700, 70, 184, 20, 107, 48, 9, 100, 42, 143,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
How to read a password in Ruby === I am running ruby and MySQL on a Windows box. I have some Ruby code that needs to connect to a MySQL database a perform a select. To connect to the database I need to provide the password (amongst other things). My question is this: How can I get ruby to display the types password as a line of asterisks in the 'dos box'. In other words, the ruby code can display a prompt requesting the password, the user types in the password and hits the enter key. What I need is for the password, as it is typed, to be displayed as a line of asterisks. Many thanks.
0
[ 2, 184, 20, 1302, 21, 20884, 19, 10811, 800, 3726, 3726, 31, 589, 946, 10811, 17, 51, 18, 22402, 27, 21, 1936, 1649, 9, 31, 57, 109, 10811, 1797, 30, 2274, 20, 6379, 20, 21, 51, 18, 22402, 6018, 21, 2985, 21, 5407, 9, 20, 6379...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Move a file in CVS without resetting the revision number. === Lately I've be moving source files around in our source tree. For example placing a bunch of files into a common assembly. I've been doing this my deleting the file from CVS and then adding it again in the new spot. The problem is the revision number of the file resets back to 1.1. Is there some simple way to move things without having the number reset.
0
[ 2, 780, 21, 3893, 19, 13, 12732, 18, 366, 302, 19831, 14, 11323, 234, 9, 800, 3726, 3726, 10434, 31, 22, 195, 44, 1219, 1267, 6488, 140, 19, 318, 1267, 1541, 9, 26, 823, 5861, 21, 7653, 16, 6488, 77, 21, 757, 1475, 9, 31, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Custom ROLAP Data Source in SSAS === I am trying to build an OLAP datasource from a bunch of binary files, and our current model just isn't working. We are using SSAS as our analysis / reporting model for our results, but aren't able to get the performance we want out of SQL. Our main constraints are: 1. The database is very large. We have huge dimension tables with millions of rows, and several smaller fact tables (<1,000,000 rows). 2. We have a dynamic cube. B/C the fact tables are built dynamically, and often (possibly multiple times per day), there can't be any huge overhead in setting up the cube. Current deploy times on the cube can exceed 24 hours, and we need orders of magnitude increase in performance which hardware just isn't gonna give us. Basically, we want a fast setup and deploy, which doesn't inherently lend itself to SSAS using SQL Server 2005, but we want to use SSRS for reporting and we want an OLAP model for analysis in Excel, so we'd still like to use SSAS to build the cube if possible. The common solution in SSAS for a fast deploy is ROLAP, but we are getting execution errors on larger ROLAP queries, and we also don't like all the overhead involved in converting the binary data to SQL and loading it into the cube. Has anyone done work on a custom OLAP datasource that SSAS can use? We are looking to create our own ROLAP engine that will query the binary source files directly.
0
[ 2, 5816, 13, 661, 11873, 1054, 1267, 19, 13, 8234, 18, 800, 3726, 3726, 31, 589, 749, 20, 1895, 40, 13, 2268, 306, 1054, 12097, 37, 21, 7653, 16, 14171, 6488, 15, 17, 318, 866, 1061, 114, 2532, 22, 38, 638, 9, 95, 50, 568, 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 deserialize an XML file into a class with a read only property? === I've got a class that I'm using as a settings class that is serialized into an XML file that administrators can then edit to change settings in the application. (The settings are a little more complex than the App.config allows for.) I'm using the XmlSerializer class to deserialize the XML file, and I want it to be able to set the property class but I don't want other developers using the class/assembly to be able to set/change the property through code. Can I make this happen with the XmlSerializer class? To add a few more details: This particular class is a Collection and according to FxCop the XmlSerializer class has special support for deserializing read-only collections, but I haven't been able to find any more information on it. The exact details on the rule this violates is: > Properties that return collections should be read-only so that users cannot entirely replace the backing store. Users can still modify the contents of the collection by calling relevant methods on the collection. Note that the XmlSerializer class has special support for deserializing read-only collections. See the XmlSerializer overview for more information. This is exactly what I want, but how do it do it?
0
[ 2, 184, 107, 31, 1746, 106, 2815, 2952, 40, 23504, 3893, 77, 21, 718, 29, 21, 1302, 104, 1354, 60, 800, 3726, 3726, 31, 22, 195, 330, 21, 718, 30, 31, 22, 79, 568, 28, 21, 12410, 718, 30, 25, 27877, 77, 40, 23504, 3893, 30, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Concurrent Access to RRD (RRDTool) === I am using RRDTool (<http://oss.oetiker.ch/rrdtool/>) as a graphing back-end for storing performance metrics. This is done via the RRDTool CLI from a Python script. My problem is that the script is multithreaded and each thread updates the RRD at a pretty rapid pace. Sometimes an update fails because one thread is accessing the RRD file while another one tries to access it also. I was under the impression that this is OK to try since RRDTool uses its own locking mechanism, but I guess that isn't true. Does anyone have a good approach for concurrent access to an RRD? I can think of a few ways to go: 1. have 1 thread create a queue and only feed the RRD from a single thread. 2. create my own locking mechanism inside the Python script. got anything better or have you run into this issue before?
0
[ 2, 19513, 1381, 20, 761, 897, 13, 5, 139, 897, 20799, 6, 800, 3726, 3726, 31, 589, 568, 761, 897, 20799, 13, 5, 1, 21127, 6903, 759, 18, 9, 111, 13594, 2429, 9, 673, 118, 139, 897, 20799, 118, 1, 6, 28, 21, 7210, 68, 97, 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...
SVN Project(s) organization: per-module or per-project === I have a subversion repository that contains a number so subfolders, corresponding to the various applications, configuration files, DLLs, etc (I'll call them 'modules') that make up my project. Now we are starting to "branch" into several related projects. That is, each high-level project will use a number of the modules, possibly slightly modified from project to project. The number of projects is smaller (~5) than the number of modules (~20) Now I'm trying to figure out how to organize the repo. Does it make sense to keep the top level subfolders on a module-by-module basis, with sub-subfolders for each project? Or should the top level be for each project, with each project having its own module subfolders: repo: module 1 Project 1 Project 2 ... Project 5 module 2 Project 1 .... Project 5 .... module 20 Project 1 ... Project 5 -or- repo: Project 1 module 1 module 2 ... module 20 Project 2 module 1 module 2 ... module 20 ... Project 5 module 1 module 2 ... module 20
0
[ 2, 13, 18, 16578, 669, 5, 18, 6, 1165, 45, 416, 8, 19673, 62, 54, 416, 8, 21011, 800, 3726, 3726, 31, 57, 21, 972, 10898, 24869, 30, 1588, 21, 234, 86, 972, 8814, 445, 15, 7265, 20, 14, 617, 3767, 15, 8091, 6488, 15, 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...
Is it possible to use Castle MonoRail Routing feature with IIS 5? === Do I have to go with IIS 6 or higher to use Castle MonoRail Routing feature? I know casini work but practically we not gonna deploy web app with casini, or do we?
0
[ 2, 25, 32, 938, 20, 275, 1339, 4129, 7301, 19880, 1580, 29, 595, 18, 331, 60, 800, 3726, 3726, 107, 31, 57, 20, 162, 29, 595, 18, 400, 54, 1184, 20, 275, 1339, 4129, 7301, 19880, 1580, 60, 31, 143, 7167, 2651, 170, 47, 7839, 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, 0, 0, 0, 0...
The best Tail GUI === What is the one single best GUI program for tailing log files you've come across?
4
[ 2, 14, 246, 3424, 9457, 800, 3726, 3726, 98, 25, 14, 53, 345, 246, 9457, 625, 26, 3424, 68, 6738, 6488, 42, 22, 195, 340, 464, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
c++ boost lambda libraries === What might be the best way to start programming using boost lambda libraries.
0
[ 2, 272, 20512, 10419, 13, 24187, 8649, 800, 3726, 3726, 98, 530, 44, 14, 246, 161, 20, 799, 3143, 568, 10419, 13, 24187, 8649, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Why shouldn't Helpers have html in them? === I have heard that it's best not to actually have any html in your helpers; my question is, Why not? And furthermore, if you were trying to generate an html list or something like that, how can I avoid actual tags? Thanks! -fREW
0
[ 2, 483, 5714, 22, 38, 448, 445, 57, 13, 15895, 19, 105, 60, 800, 3726, 3726, 31, 57, 752, 30, 32, 22, 18, 246, 52, 20, 1121, 57, 186, 13, 15895, 19, 154, 448, 445, 73, 51, 1301, 25, 15, 483, 52, 60, 17, 6438, 15, 100, 42, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Responsibility without Authority is Meaningless - a technical-based solution? === My dad always says "Responsibility without Authority is meaningless". However, I find that as developers, we get stuck in situations all the time where we are: - Responsible for ensuring the software is "bug free", but don't have the authority to implement a bug tracking system - Responsible for hitting project deadlines, but can't influence requirements, quality, or team resources (the three parts of project management) - etc. Of course there are tons of things you could say to get around this - find a new job, fight with boss, etc.... But what about a technical solution to this problem? That is, what kind of coding things can you do _on your own_ without having to convince a team to correct some of these issues - or what kind of tools can you use to demonstrate why untracked bugs are hurting you, that deadlines are being missed because of quality problems, and how can you use these tools to gain more "authority" without having to be the boss?
0
[ 2, 4024, 366, 1959, 25, 27095, 13, 8, 21, 2447, 8, 1281, 4295, 60, 800, 3726, 3726, 51, 1787, 550, 898, 13, 7, 99, 18, 8782, 18, 14264, 366, 1959, 25, 27095, 7, 9, 207, 15, 31, 477, 30, 28, 10168, 15, 95, 164, 4549, 19, 8329...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Running subversion under apache === My Apache server runs on some non-default (not-root) account. When it tries to run a python script which in turn executes a subversion check-out command, 'svn checkout' fails with the following error message: svn: Can't open file '/root/.subversion/servers': Permission denied At the same time running that python script with subversion checkout command inside from command line under the same user account goes on perfectly well. Can anybody help me out? Thanks a lot.
0
[ 2, 946, 972, 10898, 131, 17140, 800, 3726, 3726, 51, 17140, 8128, 1461, 27, 109, 538, 8, 13862, 9708, 13, 5, 1270, 8, 14032, 6, 2176, 9, 76, 32, 3919, 20, 485, 21, 20059, 3884, 56, 19, 805, 15644, 18, 21, 972, 10898, 2631, 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 should one go about choosing a default TCP/IP port for a new service? === When developing an app that will listen on a TCP/IP port, how should one go about selecting a default port? Assume that this app will be available to the public at large, and that avoiding port conflicts is desired.
0
[ 2, 184, 378, 53, 162, 88, 10883, 21, 12838, 13, 38, 7439, 118, 4307, 1295, 26, 21, 78, 365, 60, 800, 3726, 3726, 76, 3561, 40, 4865, 30, 129, 3834, 27, 21, 13, 38, 7439, 118, 4307, 1295, 15, 184, 378, 53, 162, 88, 20764, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Stop and Start a service via batch or cmd file? === How can I script a bat or cmd to stop and start a service reliably with error checking (or let me know that it wasn't successful for whatever reason)?
0
[ 2, 747, 17, 799, 21, 365, 1197, 13064, 54, 2390, 43, 3893, 60, 800, 3726, 3726, 184, 92, 31, 3884, 21, 3570, 54, 2390, 43, 20, 747, 17, 799, 21, 365, 13, 19003, 4801, 29, 7019, 9886, 13, 5, 248, 408, 55, 143, 30, 32, 526, 22...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Simple regex-based lexer in Python === Lexical analyzers are quite easy to write when you have regexes. Today I wanted to write a simple general analyzer in Python, and came up with: import re import sys class Token(object): """ A simple Token structure. Contains the token type, value and position. """ def __init__(self, type, val, pos): self.type = type self.val = val self.pos = pos def __str__(self): return '%s(%s) at %s' % (self.type, self.val, self.pos) class LexerError(Exception): """ Lexer error exception. pos: Position in the input line where the error occurred. """ def __init__(self, pos): self.pos = pos class Lexer(object): """ A simple regex-based lexer/tokenizer. See below for an example of usage. """ def __init__(self, rules, skip_whitespace=True): """ Create a lexer. rules: A list of rules. Each rule is a `regex, type` pair, where `regex` is the regular expression used to recognize the token and `type` is the type of the token to return when it's recognized. skip_whitespace: If True, whitespace (\s+) will be skipped and not reported by the lexer. Otherwise, you have to specify your rules for whitespace, or it will be flagged as an error. """ self.rules = [] for regex, type in rules: self.rules.append((re.compile(regex), type)) self.skip_whitespace = skip_whitespace self.re_ws_skip = re.compile('\S') def input(self, buf): """ Initialize the lexer with a buffer as input. """ self.buf = buf self.pos = 0 def token(self): """ Return the next token (a Token object) found in the input buffer. None is returned if the end of the buffer was reached. In case of a lexing error (the current chunk of the buffer matches no rule), a LexerError is raised with the position of the error. """ if self.pos >= len(self.buf): return None else: if self.skip_whitespace: m = self.re_ws_skip.search(self.buf[self.pos:]) if m: self.pos += m.start() else: return None for token_regex, token_type in self.rules: m = token_regex.match(self.buf[self.pos:]) if m: value = self.buf[self.pos + m.start():self.pos + m.end()] tok = Token(token_type, value, self.pos) self.pos += m.end() return tok # if we're here, no rule matched raise LexerError(self.pos) def tokens(self): """ Returns an iterator to the tokens found in the buffer. """ while 1: tok = self.token() if tok is None: break yield tok if __name__ == '__main__': rules = [ ('\d+', 'NUMBER'), ('[a-zA-Z_]\w+', 'IDENTIFIER'), ('\+', 'PLUS'), ('\-', 'MINUS'), ('\*', 'MULTIPLY'), ('\/', 'DIVIDE'), ('\(', 'LP'), ('\)', 'RP'), ('=', 'EQUALS'), ] lx = Lexer(rules, skip_whitespace=True) lx.input('erw = _abc + 12*(R4-623902) ') try: for tok in lx.tokens(): print tok except LexerError, err: print 'LexerError at position', err.pos It works just fine, but I'm a bit worried that it's too inefficient. Are there any regex tricks that will allow me to write it in a more efficient / elegant way ? Specifically, is there a way to avoid looping over all the regex rules linearly to find one that fits ? Thanks in advance
0
[ 2, 1935, 7953, 1706, 8, 1281, 13492, 106, 19, 20059, 800, 3726, 3726, 29180, 16051, 1224, 50, 1450, 2010, 20, 2757, 76, 42, 57, 7953, 1706, 160, 9, 786, 31, 417, 20, 2757, 21, 1935, 297, 16051, 139, 19, 20059, 15, 17, 281, 71, 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...
Creating a mutli-dimensional hashtable with generics in VB ASP.NET? === I need to create a multi-dimensional (nested) hashtable/dictionary so that I can use syntax like val = myHash("Key").("key") I know I need to use Generics but I can't figure out the correct syntax using VB in ASP.NET 2.0, there are plenty of c# examples on the net but they aren't helping much. Cheers!
0
[ 2, 2936, 21, 13, 7903, 1210, 8, 7865, 19170, 5924, 29, 12733, 18, 19, 13, 20468, 28, 306, 9, 2328, 60, 800, 3726, 3726, 31, 376, 20, 1600, 21, 1889, 8, 7865, 13, 5, 2696, 1427, 6, 19170, 5924, 118, 22595, 1857, 86, 30, 31, 92,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...