unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
How to integrate Geronimo's transaction manager in Tomcat? === Does Geronimo provides a standalone transaction manager? And if it does, is it possible to use it in Tomcat?
0
[ 2, 184, 20, 18399, 5389, 218, 11947, 22, 18, 12799, 1382, 19, 2067, 5782, 60, 800, 3726, 3726, 630, 5389, 218, 11947, 1927, 21, 26986, 12799, 1382, 60, 17, 100, 32, 630, 15, 25, 32, 938, 20, 275, 32, 19, 2067, 5782, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Best jQuery Status Message Plugin? === What is the best jQuery status message plugin? I like [jGrowl][1] and [Purr][2], but jGrowl doesn't have the feature to remain sticky (not close automatially) and Purr doesn't seem to work right in IE 6. I would like to show messages like... the site is about to go down for maintenance, your such and such job has completed, and stuff like that. [1]: http://plugins.jquery.com/project/jgrowl [2]: http://plugins.jquery.com/project/purr
0
[ 2, 246, 487, 8190, 93, 1782, 2802, 10922, 108, 60, 800, 3726, 3726, 98, 25, 14, 246, 487, 8190, 93, 1782, 2802, 10922, 108, 60, 31, 101, 636, 728, 7944, 10077, 500, 2558, 165, 500, 17, 636, 2051, 139, 500, 2558, 135, 500, 15, 47...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Linq to SQL: select optimization === On large tables in MSSQL; selecting specific columns results in greater speed of the query. Does the same apply to Linq to SQL? Would this: var person = from p in [DataContextObject].Persons where p.PersonsID == 1 select new { p.PersonsID, p.PersonsAdress, p.PersonsZipcode }; be faster than this: var person = from p in [DataContextObject].Persons where p.PersonsID == 1 select p; ... ?
0
[ 2, 6294, 1251, 20, 4444, 255, 45, 5407, 21597, 800, 3726, 3726, 27, 370, 7484, 19, 4235, 18, 22402, 73, 20764, 1903, 7498, 1736, 19, 1894, 1362, 16, 14, 25597, 9, 630, 14, 205, 5645, 20, 6294, 1251, 20, 4444, 255, 60, 83, 48, 45...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Good Book on C++ Internals? === I'm looking for a good book or website on how C++ works under the hood. Some topics might be virtual function lookup tables, function name mangling, class/struct relationship, etc. Even better, something that covers other languages as well (I'd love to know more about Perl's internals) Thanks!
0
[ 2, 254, 360, 27, 272, 20512, 3117, 18, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 254, 360, 54, 2271, 27, 184, 272, 20512, 693, 131, 14, 6124, 9, 109, 7569, 530, 44, 6599, 1990, 361, 576, 7484, 15, 1990, 204, 17200, 802, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to audit when a user leaves an ASP.NET app === In ASP.NET, I'm looking for a way to audit a user leaving my application. To be specific, I'd like to insert a 'logout' record in an audit table in SQL Server when the user's session is abandoned/destroyed for any reason (not necessarily because of a call to session.abandon) I have a 'SessionHelper' class that manages the session setters/getters. I've tried posting back in Session_End in Global.asax, but it never fired this event even after the timeout expired. I've tried overriding 'finalize' in the SessionHelper class and doing it there when the class is destroyed, but it did not fire that event either. I'd try implementing IDisposable in the SessionHelper, but I don't know where to call it so that it always gets called. What is the proper way to audit a user leaving your ASP.NET application? Thank you!
0
[ 2, 184, 20, 13471, 76, 21, 4155, 2084, 40, 28, 306, 9, 2328, 4865, 800, 3726, 3726, 19, 28, 306, 9, 2328, 15, 31, 22, 79, 699, 26, 21, 161, 20, 13471, 21, 4155, 1107, 51, 3010, 9, 20, 44, 1903, 15, 31, 22, 43, 101, 20, 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...
Sharing ASP.NET session cookies with a Java applet === I have a Java applet that runs inside a forms-authenticated aspx page. In the .NET 1.1 version of my site, the applet has access to the session cookie and is able to retrieve a file from the server, but in the .NET 2.0 version it fails to authenticate. I have seen a couple of forum posts elsewhere that state that 2.0 sets cookies to HttpOnly by default, but the solutions given haven't worked for me so far. I also read somewhere that 2.0 may be discriminating based on user-agent. Does anyone have any experience or insight into this?
0
[ 2, 6126, 28, 306, 9, 2328, 3723, 19396, 29, 21, 8247, 4037, 38, 800, 3726, 3726, 31, 57, 21, 8247, 4037, 38, 30, 1461, 572, 21, 1997, 8, 1346, 2504, 1786, 1669, 28, 306, 396, 2478, 9, 19, 14, 13, 9, 2328, 137, 9, 165, 615, 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 I create a named log in $TOMCAT_HOME/logs using ServletContext? === I'm currently logging via the simplest of methods within my servlet using Tomcat. I use the ServletConfig.getServletContext().log to record activity. This writes to the localhost.YYYY-MM-DD.log in $TOMCAT_HOME/logs. I don't want to get away from the simplicity of this logging mechanism, so I don't want to go with for instance log4j unless absolutely necessary. But I would like to name my log file. Rather than "localhost".YYYY-MM-DD.log, is there a way to have it write to "myAppName".YYYY-MM-DD.log. I know I could create my own mechanism, but again, I looking for simplicity here.
0
[ 2, 184, 107, 31, 1600, 21, 377, 6738, 19, 5579, 6015, 5782, 1, 8167, 118, 5567, 18, 568, 13, 10321, 1336, 1126, 11969, 60, 800, 3726, 3726, 31, 22, 79, 871, 13, 13919, 1197, 14, 24384, 16, 3195, 363, 51, 13, 10321, 1336, 568, 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...
How many random elements before MD5 produces collisions? === I've got an image library on Amazon S3. For each image, I md5 the source URL on my server plus a timestamp to get a unique filename. Since S3 can't have subdirectories, I need to store all of these images in a single flat folder. Do I need to worry about collisions in the MD5 hash value that gets produced? Bonus: How many files could I have before I'd start seeing collisions in the hash value that MD5 produces?
0
[ 2, 184, 151, 5477, 2065, 115, 8138, 264, 6700, 11319, 18, 60, 800, 3726, 3726, 31, 22, 195, 330, 40, 1961, 1248, 27, 8059, 13, 18, 240, 9, 26, 206, 1961, 15, 31, 8138, 264, 14, 1267, 287, 6362, 27, 51, 8128, 3123, 21, 436, 38,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I ensure Linq2Sql doesn't override or violate non-nullable DB default values? === I have an SQL Server DB with a table with these fields: 1. A `bit` with the default value 1, `NOT NULL`. 2. A `smalldatetime` with the default value `gettime()`, `NOT NULL`. 3. An `int` with no default value, `IDENTITY`, `NOT NULL`. When I generate Linq2SQL for this table, the following happens: 1. The `bit` is given no special treatment. 2. The `smalldatetime` is given no special treatment. 3. The `int` is marked as `IsDbGenerated`. This means that when I make inserts using Linq2SQL, the following will happen: 1. The `bit` will be sent as 0, overriding the default value. **Right?** 2. The `smalldatetime` will be sent as an uninitialized `System.DateTime`, producing an error in SQL server since it doesn't fall with the SQL Server smalldatetime range. **Right?** 3. The `IsDbGenerated` `int` will not be sent; the DB will generate a value which Linq2SQL will then read back. **What changes do I have to make to make this scenario work?** To summarize: I want non-nullable fields with DB-assigned default values, but I don't want them `IsDbGenerated` if it means I cannot provide values for them when making updates or inserts using Linq2SQL. I also do not want them `IsDbGenerated` if it means I have to hand-modify the code generated by Linq2SQL.
0
[ 2, 184, 107, 31, 4062, 6294, 1251, 135, 18, 22402, 1437, 22, 38, 84, 11891, 54, 21957, 538, 8, 4215, 211, 579, 13, 9007, 12838, 4070, 60, 800, 3726, 3726, 31, 57, 40, 4444, 255, 8128, 13, 9007, 29, 21, 859, 29, 158, 2861, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Easy way to turn Javascript array into comma-separated list? === I have a one-dimensional array of strings in Javascript that I'd like to turn into a comma-separated list. Is there a simple way in garden-variety Javascript (or jQuery) to turn that into a comma-separated list? (I know how to iterate through the array and build the string myself by concatenation if that's the only way.)
0
[ 2, 2010, 161, 20, 805, 8247, 8741, 7718, 77, 11951, 58, 8, 18, 14189, 7432, 968, 60, 800, 3726, 3726, 31, 57, 21, 53, 8, 7865, 7718, 16, 7887, 19, 8247, 8741, 30, 31, 22, 43, 101, 20, 805, 77, 21, 11951, 58, 8, 18, 14189, 74...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the simplest way to call an HttpHandler file in .NET? === I have an HttpHandler on my webserver that takes a URL in the form of "https://servername/myhandler?op=get&k=Internal&m=jdahug1". I need to call this URL from my .NET app and capture whatever the output is. Does anyone know how I can do that? I want it to be simple so that I just get back a string with the output, and that I can specify my own timeout. - Thanks!
0
[ 2, 98, 25, 14, 24384, 161, 20, 645, 40, 7775, 3203, 1252, 3893, 19, 13, 9, 2328, 60, 800, 3726, 3726, 31, 57, 40, 7775, 3203, 1252, 27, 51, 2741, 10321, 106, 30, 1384, 21, 287, 6362, 19, 14, 505, 16, 13, 7, 21127, 18, 6903, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Quality Indicators TFS 2008 report and multiple build types === In a project we have two build types, one for continuous integration and one that runs our test suite. When the Quality Indicators report is run, it displays data from all builds regardless of build type. The report suggests that one can only run it on a specific build type but the query that populates the builds field only seems to work when "All (No Filter)" is passed in as the Build Type parameter. Is it possible to filter by Build Type so that only builds with tests are run?
0
[ 2, 2190, 13310, 18, 13, 11720, 18, 570, 1330, 17, 1886, 1895, 2551, 800, 3726, 3726, 19, 21, 669, 95, 57, 81, 1895, 2551, 15, 53, 26, 6357, 8078, 17, 53, 30, 1461, 318, 1289, 6160, 9, 76, 14, 2190, 13310, 18, 1330, 25, 485, 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...
Is there a PHP or general programming book similar to why's (poignant) guide to ruby? === [why's (poignant) guide][1] showed me that programming could be a fun and creative act The things I particularly like about the book: * Metaphors for concepts and syntax that really stick in your mind, and make reading code fun (hey, I recognise that guy!) * Irreverent examples that are far removed from 'business logic' (text adventures, etc.) Any similar books for PHP, or other C-like languages? [1]: http://poignantguide.net/ruby/
0
[ 2, 25, 80, 21, 13, 26120, 54, 297, 3143, 360, 835, 20, 483, 22, 18, 13, 5, 1638, 16013, 38, 6, 3378, 20, 10811, 60, 800, 3726, 3726, 636, 2256, 22, 18, 13, 5, 1638, 16013, 38, 6, 3378, 500, 2558, 165, 500, 1908, 55, 30, 3143...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where can I find examples of element heavy web forms? === I would like to look at some examples of some good form layouts (web-based) that have a lot of input fields. I do a lot of web application development and a lot of my forms are input element heavy so I am always looking for good ideas on how to display my forms. For example I have a few list boxes and a lot of text boxes and some drop downs on a page along with displaying history of changes to the form.
0
[ 2, 113, 92, 31, 477, 3770, 16, 4520, 1278, 2741, 1997, 60, 800, 3726, 3726, 31, 83, 101, 20, 361, 35, 109, 3770, 16, 109, 254, 505, 9106, 18, 13, 5, 14113, 8, 1281, 6, 30, 57, 21, 865, 16, 6367, 2861, 9, 31, 107, 21, 865, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mixing jQuery and YUI together in an app, is it easily possible? === I have to preface this with the fact that I love jQuery as a JavaScript language extension and YUI as a rich set of free controls. So here is my question, is there going to be any problems down the line if I mix jQuery and YUI together in an MVC app I am working on. I want to use jQuery for the heavy lifting on the DOM and I want to use YUI for the rich user control set. This is an internal application and will never see the light of day outside of the organization I work for. If anybody has experience with mixing these two frameworks I would love to hear what your experience has been.
0
[ 2, 5826, 487, 8190, 93, 17, 2600, 49, 429, 19, 40, 4865, 15, 25, 32, 2351, 938, 60, 800, 3726, 3726, 31, 57, 20, 20910, 48, 29, 14, 837, 30, 31, 339, 487, 8190, 93, 28, 21, 8247, 8741, 816, 3896, 17, 2600, 49, 28, 21, 2042, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Submit Login control button when I hit Enter === I have an ASP.NET web page with a Login control on it. When I hit Enter, the Login button doesn't fire; instead the page submits, doing nothing. The standard solution to this that I've found online is to enclose the Login control in a Panel, then set the Panel default button. But apparently that doesn't work so well if the page has a master page. I've tried setting the default button in code with *control*.ID, *control*.ClientID, and *control*.UniqueID, and in each case I get: **The DefaultButton of ***panelname*** must be the ID of a control of type IButtonControl.** I'm sure there's a way to do this with JavaScript, but I'd really like to do it with plain old C# code if possible. Is it possible?
0
[ 2, 12298, 6738, 108, 569, 5167, 76, 31, 770, 2830, 800, 3726, 3726, 31, 57, 40, 28, 306, 9, 2328, 2741, 2478, 29, 21, 6738, 108, 569, 27, 32, 9, 76, 31, 770, 2830, 15, 14, 6738, 108, 5167, 1437, 22, 38, 535, 73, 700, 14, 247...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL Server 2005 auto growth by size === I have been looking at the new database server we are setting up for a client and note the database files are set to grow by 1 meg everytime the file is full and the initial size is 100 MB. I have been considering this breifly and it doesn't sound right. I've checked a few sites on DB considerations and they didn't properly explain these values. I would probably only want the database files to extend once a month shall we say? So if i was to calculate the amount of data I expect to be inserted per day in megabytes and just multiply by 30 I should find a suitable figure? i.e. I do know approximately the size of 1 row and approx how many rows will be inserted in an average week per table. I know these are estimates from the ground up so you think once a month is a suitable approximation for the file to extend or is it preferable to extend every hour>? or never? We are using full back so we can recover to a point in time and transaction log backups are occuring and the recovery procedure seems to be 100% effective. Are these types of changes going to impact the backup and recovery in any way at all? Thanks.
0
[ 2, 4444, 255, 8128, 812, 3108, 2232, 34, 1072, 800, 3726, 3726, 31, 57, 74, 699, 35, 14, 78, 6018, 8128, 95, 50, 2697, 71, 26, 21, 6819, 17, 1945, 14, 6018, 6488, 50, 309, 20, 3213, 34, 137, 10905, 352, 891, 14, 3893, 25, 503,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I create transparent buttons in Visual Studio 2005 with C# === I have a user interface that requires placing some round buttons in a C# project with some data behind them. The buttons are System.Windows.Forms.buttons and I have used a GIF image with transparency to create them. However, the transparent areas aren't transparent. I've looked for references online but haven't found any suggestions for how to do this properly. There's some mention of doing it in Visual Studio 2008 but I need to keep this project in 2005. Any help or suggestion is appreciated.
0
[ 2, 92, 31, 1600, 14862, 12861, 19, 3458, 1120, 812, 29, 272, 5910, 800, 3726, 3726, 31, 57, 21, 4155, 6573, 30, 4781, 5861, 109, 560, 12861, 19, 21, 272, 5910, 669, 29, 109, 1054, 439, 105, 9, 14, 12861, 50, 329, 9, 27508, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Do you know of any IDEs that are localized to Spanish? === I have a buddy that's having a hard time with the language barrier. I tried to think of any IDEs that are also available in Spanish, but couldn't think of any. Any ideas?
0
[ 2, 107, 42, 143, 16, 186, 13, 8153, 30, 50, 24821, 20, 1273, 60, 800, 3726, 3726, 31, 57, 21, 9065, 30, 22, 18, 452, 21, 552, 85, 29, 14, 816, 8548, 9, 31, 794, 20, 277, 16, 186, 13, 8153, 30, 50, 67, 904, 19, 1273, 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, 0, 0, 0, 0...
Can you use a trailing comma in a JSON object? === When manually generating a JSON object or array, it's often easier to leave a trailing comma on the last item in the object or array. For example, code to output from an array of strings might look like (in a C++ like pseudocode): s.append("["); for (i = 0; i < 5; ++i) { s.appendF("\"%d\",", i); } s.append("]"); giving you a string like [0,1,2,3,4,5,] Is this allowed?
0
[ 2, 92, 42, 275, 21, 14323, 11951, 58, 19, 21, 487, 528, 3095, 60, 800, 3726, 3726, 76, 23671, 13500, 21, 487, 528, 3095, 54, 7718, 15, 32, 22, 18, 478, 4950, 20, 767, 21, 14323, 11951, 58, 27, 14, 236, 9101, 19, 14, 3095, 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...
Data Access Layer: Exposing List<>: bad idea? === I am currently coding a simple Data Access Layer, and I was wondering which type I should expose to the other layers. I am going to internally implement the Data as a List<>, but I remember reading something about not exposing the List type to the consumers if not needed. public List<User> GetAllUsers() // non C# users: that means List of User :) Do you know why (google didn't help)? What do you usually expose for that kind of stuff? IList? IEnumerable?
0
[ 2, 1054, 1381, 5385, 45, 17302, 968, 1, 45, 896, 882, 60, 800, 3726, 3726, 31, 589, 871, 13, 15458, 21, 1935, 1054, 1381, 5385, 15, 17, 31, 23, 5712, 56, 1001, 31, 378, 13833, 20, 14, 89, 9124, 9, 31, 589, 228, 20, 17739, 8713...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unsecure posting back from an asp.net control on a secure page while avoiding authentication === We are using standard asp.net forms authentication. Certain pages require a user to be logged in; and least some of these pages are delivered by https. There is a search control at the top of each page. When this is used, we don't care whether the user's session has expired, even if the current page requires a log in. However, currently, when performing the search, the built-in forms authentication sees that the page being posted to requires authentication and redirects the user to the login page, with the previous page, <em>not the search results page</em> as the referrer. What is the best way of bypassing the security here? I have considered posting to a different page using the PostBackUrl property, but if this is not https you get the "you are posting data to an unsecure connection" message, which users don't like. Thanks for any help.
0
[ 2, 367, 22917, 15669, 97, 37, 40, 28, 306, 9, 2328, 569, 27, 21, 4315, 2478, 133, 10298, 27963, 800, 3726, 3726, 95, 50, 568, 1236, 28, 306, 9, 2328, 1997, 27963, 9, 1200, 4434, 4077, 21, 4155, 20, 44, 13, 19287, 19, 73, 17, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to set a long Java classpath in MSDOS/Windows? === I'm trying to run a particular JUnit test by hand on a Windows XP command line, which has an unusually high number of elements in the class path. I've tried several variations, such as: set CLASS_PATH=C:\path\a\b\c;C:\path\e\f\g;.... set CLASS_PATH=%CLASS_PATH%;C:\path2\a\b\c;C:\path2\e\f\g;.... ... C:\apps\jdk1.6.0_07\bin\java.exe -client oracle.jdevimpl.junit.runner.TestRunner com.myco.myClass.MyTest testMethod (Other variations are setting the classpath all on one line, setting the classpath via -classpath as an argument to java"). It always comes down to DOS throwing up it's hands with this error: The input line is too long. The syntax of the command is incorrect. This is a JUnit test testing a rather large existing legacy project, so no suggestions about rearranging my directory structure to something more reasonable, those types of solutions are out for now. I was just trying to gen up a quick test against this project and run it on the command line, and DOS is stonewalling me. Help!
0
[ 2, 184, 20, 309, 21, 175, 8247, 718, 8353, 19, 4235, 8609, 118, 27508, 18, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 485, 21, 1498, 7446, 242, 1289, 34, 224, 27, 21, 1936, 23045, 1202, 293, 15, 56, 63, 40, 15200, 183, 234, 16,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can a SQL Server 2005 BCP format file have a column name that is a SQL keyword? === I have a format file where I want one of the columns to be "group". I'm auto-generating the format file and a client wants to upload a file with "group" as one of the columns. I could restrict it so they can't use SQL keywords, but then I need a function to determine if a column name is a SQL keyword, so I'd like to support the user being able to name their clients however they want. I'm wondering if this is possible. I tried using brackets, but that didn't appear to work. My file looks like: <pre> 8.0 1 1 SQLCHAR 0 0 "\r\n" 1 [group] SQL_Latin1_General_CP1_CI_AS </pre>
0
[ 2, 92, 21, 4444, 255, 8128, 812, 2726, 306, 2595, 3893, 57, 21, 4698, 204, 30, 25, 21, 4444, 255, 1246, 9587, 60, 800, 3726, 3726, 31, 57, 21, 2595, 3893, 113, 31, 259, 53, 16, 14, 7498, 20, 44, 13, 7, 8024, 7, 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...
Linq to SQL: .FirstOrDefault() not applicable to select new { ... } === I just asked <a href="http://stackoverflow.com/questions/201686/linq-to-sql-select-optimization">this question</a>. Which lead me to a new question :) <br /> <br /> <br /> Up until this point, I have used the following pattern of selecting stuff with Linq to SQL, with the purpose of being able to handle 0 rows returned by the query: var person = (from p in [DataContextObject].Persons where p.PersonsID == 1 select new p).FirstOrDefault(); if (person == null) { // handle 0 "rows" returned. } But I can't use `FirstOrDefault()` when I do: var person = from p in [DataContextObject].Persons where p.PersonsID == 1 select new { p.PersonsID, p.PersonsAdress, p.PersonsZipcode }; // Under the hood, this pattern generates a query which selects specific // columns which will be faster than selecting all rows as the above snippet // of code does. This results in a performance-boost on large tables. How do I check for 0 rows returned by the query, using the above pattern?
0
[ 2, 6294, 1251, 20, 4444, 255, 45, 13, 9, 3552, 248, 13862, 9708, 5, 6, 52, 14535, 20, 5407, 78, 13, 1, 13, 9, 9, 9, 13, 1, 800, 3726, 3726, 31, 114, 411, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 25325, 2549, 9990, 9, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
javascript, asign a value to variables selected using eval(something) === Hey right now I'm using jQuery and I have some global variables to hold a bit of preloaded ajax stuff (preloaded to make pages come up nice and fast): <pre><code> $.get("content.py?pageName=viewer", function(data) {viewer = data;}); $.get("content.py?pageName=artists", function(data) {artists = data;}); $.get("content.py?pageName=instores", function(data) {instores = data;}); $.get("content.py?pageName=specs", function(data) {specs = data;}); $.get("content.py?pageName=about", function(data) {about = data;}); </code></pre> As you can see, we have a huge violation of the DRY principle, but... I don't really see a way to fix it... any ideas? maybe an array?
0
[ 2, 8247, 8741, 15, 21, 11255, 21, 1923, 20, 12157, 1704, 568, 13, 62, 3377, 5, 9099, 6, 800, 3726, 3726, 8409, 193, 130, 31, 22, 79, 568, 487, 8190, 93, 17, 31, 57, 109, 2062, 12157, 20, 1027, 21, 1142, 16, 782, 22546, 20624, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MSMQ Generic Messaging === I'm thinking of creating a generic message queue to handle various inter-process messages. (WCF is not an option at this point.) So, rather than have 10-15 different queues for specific messages I'd have 1 queue that is a 'catch-all'. Obviously sending messages to this queue is a not a problem. Each recipient would listen to the queue for new messages then 'peek' them, but I'm looking for a clean/efficient way to do this. By clean I mean a method that does not require each and every recipient to read the body of each and every message.
0
[ 2, 4235, 79, 1251, 12733, 26437, 800, 3726, 3726, 31, 22, 79, 1440, 16, 2936, 21, 12733, 2802, 22521, 20, 3053, 617, 1480, 8, 16835, 7561, 9, 13, 5, 499, 8940, 25, 52, 40, 4255, 35, 48, 454, 9, 6, 86, 15, 864, 119, 57, 332, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 you (and should I) put copyright notices in your (proprietory) code. === I'm wondering if, when working on source for your employer, people include a copyright notice. For example /* * Developer : Developer Name (developer.name@company.com) * Date : xx/yy/zzzz * All code (c)2008 company name inc. all rights reserved */ or anything similar?
0
[ 2, 107, 42, 13, 5, 290, 378, 31, 6, 442, 8398, 17528, 19, 154, 13, 5, 10890, 3272, 14599, 6, 1797, 9, 800, 3726, 3726, 31, 22, 79, 5712, 100, 15, 76, 638, 27, 1267, 26, 154, 11726, 15, 148, 468, 21, 8398, 3551, 9, 26, 823, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using a backslash (%5c) in a REST WCF URL === I am building a REST service on WCF, and one of the methods I am writing is GetProfile, which will return the profile for a given username. The username will include the user's domain, and so will have the following format: "DOMAIN\username". I therefore have a service called Profiles.svc, which has the following endpoint set up: [OperationContract] [WebGet(UriTemplate = "/{username}", ResponseFormat = WebMessageFormat.Xml)] IRestResponse GetProfile(String username); However, when I attempt to visit the service at http://server/profiles.svc/DOMAIN%5cusername (%5c is the urlencoded form of a backslash) I get the following error: <pre>Server error in '/' Application HTTP Error 400 - Bad Request</pre> This occurs even when there is no code actually defined in my implementation of GetProfile, so I believe the error is being thrown at the point WCF attempts to bind the URI to a method. Are there some settings I need to add to my web service configuration in order to allow backslashes to be added to URLs in a REST WCF service? Or are backslashes simply not allowed?
0
[ 2, 568, 21, 97, 18, 9545, 13, 5, 11881, 264, 150, 6, 19, 21, 760, 11801, 410, 287, 6362, 800, 3726, 3726, 31, 589, 353, 21, 760, 365, 27, 11801, 410, 15, 17, 53, 16, 14, 3195, 31, 589, 1174, 25, 164, 14503, 15, 56, 129, 788,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 solve "index unique_schema_migrations already exists" in Rails? === Running `rake db:migrate` followed by `rake test:units` yields the following: rake test:functionals (in /projects/my_project) rake aborted! SQLite3::SQLException: index unique_schema_migrations already exists: CREATE UNIQUE INDEX "unique_schema_migrations" ON "ts_schema_migrations" ("version") The relevant part of `db/schema.rb` is as follows: create_table "ts_schema_migrations", :id => false, :force => true do |t| t.string "version", :null => false end add_index "ts_schema_migrations", ["version"], :name => "unique_schema_migrations", :unique => true I'm not manually changing this index anywhere, and I'm using Rails' default SQLite3 adapter with a brand new database. (That is, running `rm db/*sqlite3` before `rake db:migrate` doesn't help.) Is the `test:units` task perhaps trying to re-load the schema? If so, why? Shouldn't it recognize the schema is already up to date?
0
[ 2, 184, 107, 31, 8402, 13, 7, 25671, 2619, 1, 7526, 540, 1, 10183, 5946, 18, 614, 5636, 7, 19, 2240, 18, 60, 800, 3726, 3726, 946, 13, 1, 4951, 62, 13, 9007, 45, 10183, 5487, 1, 709, 34, 13, 1, 4951, 62, 1289, 45, 15464, 18,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I configure email notification on new case comment in salesforce.com === In salesforce.com, I have a workflow that triggers when a new case comment is added via the self-service portal. The workflow rule updates the Case.Status field, which fires another workflow rule on the Case object itself. The end result is an email to the case owner that is notified that a new case comment has been added. However, I can't find a way of including the case comment itself in the email, so it's almost useless. How do I include the most recent case comment in the email template? I assume it's something like {!Case.CaseComment}, but I can't find it anywhere... Help!
0
[ 2, 184, 107, 31, 1065, 15951, 8517, 52, 4634, 27, 78, 610, 6484, 19, 2598, 8774, 9, 960, 800, 3726, 3726, 19, 2598, 8774, 9, 960, 15, 31, 57, 21, 170, 9990, 30, 7286, 18, 76, 21, 78, 610, 6484, 25, 905, 1197, 14, 1119, 8, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
python name a file same as a lib === i have the following script import getopt, sys opts, args = getopt.getopt(sys.argv[1:], "h:s") for key,value in opts: print key, "=>", value if i name this getopt.py and run it doesn't work as it tries to import itself is there a way around this, so i can keep this filename but specify on import that i want the standard python lib and not this file?
0
[ 2, 20059, 204, 21, 3893, 205, 28, 21, 13, 8326, 800, 3726, 3726, 31, 57, 14, 249, 3884, 9010, 164, 2594, 38, 15, 10315, 18, 17034, 18, 15, 13, 10663, 18, 800, 164, 2594, 38, 9, 834, 3880, 38, 5, 4980, 18, 9, 10663, 710, 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...
Outlook automation - Change Sender Account === I'm automating Outlook and I need to control who the email appears to be from. The users will have two or more Accounts set up in Outlook and I need to be able to select which account to send the email from. Any ideas? Needs to be supported on Outlook 2003 and above. I'm using Delphi 2006 to code this, but that doesn't really matter.
0
[ 2, 19837, 23217, 13, 8, 753, 2660, 106, 2176, 800, 3726, 3726, 31, 22, 79, 3108, 79, 1880, 19837, 17, 31, 376, 20, 569, 72, 14, 8517, 1780, 20, 44, 37, 9, 14, 3878, 129, 57, 81, 54, 91, 5310, 309, 71, 19, 19837, 17, 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...
What is the best Agile methodology for a class project? === The project is poorly defined: we are to write educational software for CS 111 Computer Programming I students focusing on functions. We have 6 student developers with various backgrounds working in Flex. The project has a duration of about 7 weeks. We have very limited face time (30 min per week) and very limited work time (<8 hours per developer per week). We have limited access to the customers (professor of our course, professor of CS 111, students in CS 111). Our toolset includes Flex Builder, Subversion, and TRAC. What methodology is best for this project and why? Alternately, what features should be gathered from various methodologies to better suit this situation?
0
[ 2, 98, 25, 14, 246, 27475, 18653, 26, 21, 718, 669, 60, 800, 3726, 3726, 14, 669, 25, 10614, 2811, 45, 95, 50, 20, 2757, 3076, 2306, 26, 272, 18, 14091, 1428, 3143, 31, 573, 7796, 27, 3719, 9, 95, 57, 400, 1209, 10168, 29, 617...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
DocumentViewer toolbar and context menu === How to hide the default toolbar and to disallow the default context menu of the DocumentViewer control?
0
[ 2, 4492, 4725, 106, 5607, 1850, 17, 4141, 11379, 800, 3726, 3726, 184, 20, 3077, 14, 12838, 5607, 1850, 17, 20, 1460, 17976, 14, 12838, 4141, 11379, 16, 14, 4492, 4725, 106, 569, 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...
How can you get a ComboBox child of a DataGridView to process all keys, including "."? === I have the same problem as described in the posts listed below. That is, certain keys don't work at all when I type them into my combobox until I first hit the spacebar. One of the keys is ".", but another is the letter "Q", and there are others: "$", "%". http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=659716&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2909173&SiteID=1&pageid=0 http://bytes.com/forum/thread548399.html I've tried a lot of things so far. My latest failure was based on the theory that maybe the DataGridView was using WIN32 API wndproc subclassing to intercept messages, so I wrote logic to save the old wndproc and restore it after adding it to the DataGridView's control collection. That didn't work.
0
[ 2, 184, 92, 42, 164, 21, 22621, 5309, 850, 16, 21, 1054, 16375, 4725, 20, 953, 65, 5534, 15, 215, 13, 7, 9, 7, 60, 800, 3726, 3726, 31, 57, 14, 205, 1448, 28, 745, 19, 14, 9868, 1510, 1021, 9, 30, 25, 15, 1200, 5534, 221, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Primary key from inserted row jdbc? === Is there a cross database platform way to get the primary key of the record you have just inserted? I noted that [this answer][1] says that you can get it by Calling `SELECT LAST_INSERT_ID()` and I think that you can call `SELECT @@IDENTITY AS 'Identity';` is there a common way to do this accross databases in jdbc? If not how would you suggest I implement this for a piece of code that could access any of SQL Server, MySQL and Oracle? [1]: http://stackoverflow.com/questions/165156/easy-mysql-question-regarding-primary-keys-and-an-insert
0
[ 2, 1256, 1246, 37, 14215, 3131, 487, 43, 7229, 60, 800, 3726, 3726, 25, 80, 21, 919, 6018, 2452, 161, 20, 164, 14, 1256, 1246, 16, 14, 571, 42, 57, 114, 14215, 60, 31, 1525, 30, 636, 1565, 1623, 500, 2558, 165, 500, 898, 30, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Spring initialization order === Suppose I have a couple of spring beans: <beans> <bean name="A" ... /> <bean name="B" ... /> </beans> "B" exposes a remote service that doesn't need "A". Assume that "A" takes a non-negligble time to load. What this means is that during a restart cycle, the application hangs the remote client, which can actually connect to the server but waits for a response until the spring container fully initializes. What I'd like to be able to do is have the "B" remote service respond immediately, even if (based on the application state) it can only return NOT_READY or some such. The container, however, forces a wait until all of it's beans are initialized, even if you specify the beans as lazy-init and irrespective of load order. I suspect that having "B" available immediately would mean that spring would have to make available a partially initialized container, which sounds bad. However, I'd appreciate any information anyone's got on the initialization order and whether you've found any reasonable workarounds.
0
[ 2, 1573, 2104, 1829, 389, 800, 3726, 3726, 5787, 31, 57, 21, 1335, 16, 1573, 14685, 45, 13, 1, 863, 5950, 1, 13, 1, 863, 210, 204, 3726, 7, 58, 7, 13, 9, 9, 9, 13, 118, 1, 13, 1, 863, 210, 204, 3726, 7, 220, 7, 13, 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...
SSH into Amazon EC2 Instance === I'm working to set up Panda on an Amazon EC2 instance. I set up my account and tools last night and had no problem using SSH to interact with my own personal instance, but right now I'm not being allowed permission into Panda's EC2 instance. [Getting Started with Panda][1] I'm getting the following error: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ Permissions 0644 for '~/.ec2/id_rsa-gsg-keypair' are too open. It is recommended that your private key files are NOT accessible by others. This private key will be ignored. I've chmoded my keypair to 600 in order to get into my personal instance last night, and experimented at length setting the permissions to 0 and even generating new key strings, but nothing seems to be working. Any help at all would be a great help! [1]: http://pandastream.com/docs/getting_started
0
[ 2, 13, 18, 1635, 77, 8059, 6695, 135, 4851, 800, 3726, 3726, 31, 22, 79, 638, 20, 309, 71, 16982, 27, 40, 8059, 6695, 135, 4851, 9, 31, 309, 71, 51, 2176, 17, 4672, 236, 343, 17, 41, 90, 1448, 568, 13, 18, 1635, 20, 10001, 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...
Is there a class or method in Java that will check if a string is a SQL Server keyword? === I want something that can check if a string is "SELECT", "INSERT", etc. I'm just curious if this exists.
0
[ 2, 25, 80, 21, 718, 54, 2109, 19, 8247, 30, 129, 2631, 100, 21, 3724, 25, 21, 4444, 255, 8128, 1246, 9587, 60, 800, 3726, 3726, 31, 259, 301, 30, 92, 2631, 100, 21, 3724, 25, 13, 7, 18, 16964, 7, 15, 13, 7, 108, 18, 6767, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
What's a good company for simple, shell hosting? === My old shell host (StrayNet) is closing up, and I'd like to find a decent, relatively cheap Unix shell host that offers: * a couple of background processes * email, irc, etc., * an IP address or vhost. For the record, I do have a Slicehost slice, so I'm not looking for anything to host a project. I just like having a third location to ping from when I'm at work or home. Thanks!
0
[ 2, 98, 22, 18, 21, 254, 237, 26, 1935, 15, 3593, 10637, 60, 800, 3726, 3726, 51, 315, 3593, 2015, 13, 5, 5253, 5685, 38, 6, 25, 4239, 71, 15, 17, 31, 22, 43, 101, 20, 477, 21, 12238, 15, 3109, 9148, 22540, 3593, 2015, 30, 24...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 might cause ThreadAbortException when using HttpWebRequest.GetResponse() === I'm living in nightmares because of this situation , i have HttpWebRequest.GetResponse that keeps on giving me a ThreadAbortException , that cause the whole app to go down. How can i avoid that, or at least handle it , would using Thread.ResetAbort() useful in such case.
0
[ 2, 98, 530, 1679, 9322, 58, 6157, 38, 10066, 872, 76, 568, 7775, 458, 3692, 10351, 9, 834, 8722, 8782, 870, 5, 6, 800, 3726, 3726, 31, 22, 79, 634, 19, 18157, 185, 16, 48, 1858, 13, 15, 31, 57, 7775, 458, 3692, 10351, 9, 834, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
XML Parser === Is it possible using a server side xml parser to have it create a html blob that it is then included in a existing html page? Thanks
0
[ 2, 23504, 2017, 4104, 800, 3726, 3726, 25, 32, 938, 568, 21, 8128, 270, 23504, 2017, 4104, 20, 57, 32, 1600, 21, 13, 15895, 334, 10904, 30, 32, 25, 94, 506, 19, 21, 3149, 13, 15895, 2478, 60, 3669, 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, 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 is calling a web service slower from a web page? === We have a DLL used as the middle layer between our website front end and our back end ticketing system. The method of insertion into the ticketing system is a bit complicated to explain, but the short version is that it's slow. The best case scenario I've gotten is a 9 second submission time. The real problem though, is that I can only get that time through a Windows app, not through an ASP.NET web site. I've set up both a Windows test application and a web page for testing, and even though the code is copied between them the web page is consistently submitting in 17-20 seconds, while the windows app is getting 8-11 seconds. What could be causing that?
0
[ 2, 483, 25, 2555, 21, 2741, 365, 14085, 37, 21, 2741, 2478, 60, 800, 3726, 3726, 95, 57, 21, 13, 43, 211, 147, 28, 14, 772, 5385, 128, 318, 2271, 431, 241, 17, 318, 97, 241, 6133, 68, 329, 9, 14, 2109, 16, 24245, 77, 14, 613...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 realloc Array, then Why use pointers? === This was an job placement interview I faced. They asked whether we can realloc Array, I told yes. Then They asked - then why we need pointers as most of the people give reason that it wastes memory space. I could not able to give satisfactory answer. If any body can give any satisfactory answer, I'll be obliged. Please mention any situation where the above statement can contradict. Thank you.
0
[ 2, 92, 683, 10799, 7718, 15, 94, 483, 275, 454, 445, 60, 800, 3726, 3726, 48, 23, 40, 1205, 10774, 2421, 31, 3110, 9, 59, 411, 1472, 95, 92, 683, 10799, 7718, 15, 31, 470, 1643, 9, 94, 59, 411, 13, 8, 94, 483, 95, 376, 454, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 replace the click event with a mouseover in a Silverlight 2.0 Combobox? === I have a combo box that in Siverlight 2.0 that I want it to open when a user mouses over the toggle button and then close when they mouse away. The default behavior is a click. Here is my style code (sorry it is so long): <Style x:Key="HelpComboBoxStyle" TargetType="ComboBox"> <Setter Property="Padding" Value="0,0,0,0"/> <Setter Property="Background" Value="#FF1F3B53"/> <Setter Property="HorizontalContentAlignment" Value="Left"/> <Setter Property="BorderThickness" Value="1"/> <Setter Property="TabNavigation" Value="Once"/> <Setter Property="BorderBrush" Value="#104F9B"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ComboBox"> <Grid> <Grid.Resources> <Style TargetType="ToggleButton" x:Name="comboToggleStyle"> <Setter Property="BorderBrush" Value="#104F9B"/> <Setter Property="BorderThickness" Value="1"/> <Setter Property="Padding" Value="3"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ToggleButton"> <Grid> <vsm:VisualStateManager.VisualStateGroups> <vsm:VisualStateGroup x:Name="CommonStates"> <vsm:VisualStateGroup.Transitions> <vsm:VisualTransition GeneratedDuration="00:00:00.1" To="MouseOver"/> <vsm:VisualTransition GeneratedDuration="00:00:00.1" To="Pressed"/> </vsm:VisualStateGroup.Transitions> <vsm:VisualState x:Name="Normal"/> <vsm:VisualState x:Name="MouseOver"> <Storyboard> <ObjectAnimationUsingKeyFrames Duration="00:00:00" Storyboard.TargetName="PopupBorder" Storyboard.TargetProperty="(UIElement.Visibility)"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </vsm:VisualState> <vsm:VisualState x:Name="Pressed"> <Storyboard> <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundOverlay2" Storyboard.TargetProperty="Opacity"> <SplineDoubleKeyFrame KeyTime="0" Value="1"/> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)"> <SplineDoubleKeyFrame KeyTime="0" Value="1"/> </DoubleAnimationUsingKeyFrames> <ColorAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)"> <SplineColorKeyFrame KeyTime="0" Value="#E5FFFFFF"/> </ColorAnimationUsingKeyFrames> <ColorAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)"> <SplineColorKeyFrame KeyTime="0" Value="#BCFFFFFF"/> </ColorAnimationUsingKeyFrames> <ColorAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)"> <SplineColorKeyFrame KeyTime="0" Value="#6BFFFFFF"/> </ColorAnimationUsingKeyFrames> <ColorAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)"> <SplineColorKeyFrame KeyTime="0" Value="#F2FFFFFF"/> </ColorAnimationUsingKeyFrames> </Storyboard> </vsm:VisualState> <vsm:VisualState x:Name="Disabled"> <Storyboard> <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)"> <SplineDoubleKeyFrame KeyTime="0" Value="1"/> </DoubleAnimationUsingKeyFrames> </Storyboard> </vsm:VisualState> </vsm:VisualStateGroup> <vsm:VisualStateGroup x:Name="CheckStates"/> <vsm:VisualStateGroup x:Name="FocusStates"/> </vsm:VisualStateManager.VisualStateGroups> <Rectangle x:Name="Background" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" /> <Rectangle x:Name="BackgroundOverlay" Opacity="0" Fill="#FF448DCA" Stroke="#00000000" StrokeThickness="{TemplateBinding BorderThickness}" /> <Rectangle x:Name="BackgroundOverlay2" Opacity="0" Fill="#FF448DCA" Stroke="#00000000" StrokeThickness="{TemplateBinding BorderThickness}" /> <Rectangle Margin="{TemplateBinding BorderThickness}" x:Name="BackgroundGradient" Stroke="#FFFFFFFF" StrokeThickness="2" > <Rectangle.Fill> <LinearGradientBrush EndPoint=".7,1" StartPoint=".7,0"> <GradientStop Color="#FFFFFFFF" Offset="0"/> <GradientStop Color="#F9FFFFFF" Offset="0.375"/> <GradientStop Color="#E5FFFFFF" Offset="0.625"/> <GradientStop Color="#C6FFFFFF" Offset="1"/> </LinearGradientBrush> </Rectangle.Fill> </Rectangle> <Rectangle x:Name="BackgroundOverlay3" Opacity="0" Fill="#FF448DCA" Stroke="#00000000" StrokeThickness="{TemplateBinding BorderThickness}"/> <Rectangle Margin="{TemplateBinding BorderThickness}" x:Name="BackgroundGradient2" Opacity="0" Stroke="#FFFFFFFF" StrokeThickness="2" > <Rectangle.Fill> <LinearGradientBrush EndPoint=".7,1" StartPoint=".7,0"> <GradientStop Color="#FFFFFFFF" Offset="0"/> <GradientStop Color="#F9FFFFFF" Offset="0.375"/> <GradientStop Color="#E5FFFFFF" Offset="0.625"/> <GradientStop Color="#C6FFFFFF" Offset="1"/> </LinearGradientBrush> </Rectangle.Fill> </Rectangle> <Rectangle Margin="{TemplateBinding BorderThickness}" x:Name="Highlight" IsHitTestVisible="false" Opacity="0" Stroke="#FF45D6FA" StrokeThickness="2" /> <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" x:Name="contentPresenter" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/> <Rectangle x:Name="DisabledVisualElement" IsHitTestVisible="false" Opacity="0" Fill="#A5FFFFFF" /> <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Visibility="Collapsed" Stroke="#FF45D6FA" StrokeThickness="2" /> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> </Grid.Resources> <vsm:VisualStateManager.VisualStateGroups> <vsm:VisualStateGroup x:Name="CommonStates"> <vsm:VisualStateGroup.Transitions> <vsm:VisualTransition GeneratedDuration="00:00:00.1"/> <vsm:VisualTransition From="MouseOver" GeneratedDuration="00:00:00.1000000" To="Normal"/> </vsm:VisualStateGroup.Transitions> <vsm:VisualState x:Name="Normal"/> <vsm:VisualState x:Name="MouseOver"/> <vsm:VisualState x:Name="Disabled"> <Storyboard> <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> </DoubleAnimationUsingKeyFrames> </Storyboard> </vsm:VisualState> </vsm:VisualStateGroup> <vsm:VisualStateGroup x:Name="FocusStates"> <vsm:VisualState x:Name="Focused"> <Storyboard> <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> </DoubleAnimationUsingKeyFrames> </Storyboard> </vsm:VisualState> <vsm:VisualState x:Name="Unfocused"/> <vsm:VisualState x:Name="FocusedDropDown"> <Storyboard> <ObjectAnimationUsingKeyFrames Duration="00:00:00" Storyboard.TargetName="PopupBorder" Storyboard.TargetProperty="(UIElement.Visibility)"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </vsm:VisualState> </vsm:VisualStateGroup> </vsm:VisualStateManager.VisualStateGroups> <Border x:Name="ContentPresenterBorder"> <Grid> <ToggleButton HorizontalAlignment="Stretch" Margin="0" x:Name="DropDownToggle" Background="white" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" HorizontalContentAlignment="Right"> <Path Height="8" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="BtnArrow" Width="10" Stretch="Uniform" Data="F1 M 301.14,-189.041L 311.57,-189.041L 306.355,-182.942L 301.14,-189.041 Z "> <Path.Fill> <SolidColorBrush Color="#104F9B" x:Name="BtnArrowColor"/> </Path.Fill> </Path> </ToggleButton> <ContentPresenter Visibility="Collapsed" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" x:Name="ContentPresenter" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"> </ContentPresenter> </Grid> </Border> <Rectangle x:Name="DisabledVisualElement" IsHitTestVisible="false" Opacity="0" Fill="#A5FFFFFF" RadiusX="3" RadiusY="3"/> <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Opacity="0" Stroke="#FF45D6FA" StrokeThickness="1" RadiusX="3" RadiusY="3"/> <Popup x:Name="Popup"> <Popup.RenderTransform> <TranslateTransform X="-125" /> </Popup.RenderTransform> <Border Height="Auto" HorizontalAlignment="Stretch" x:Name="PopupBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3"> <Border.Background> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FFFFFFFF" Offset="0"/> <GradientStop Color="#FFFEFEFE" Offset="1"/> </LinearGradientBrush> </Border.Background> <ScrollViewer x:Name="ScrollViewer" BorderThickness="0" Padding="1"> <ItemsPresenter/> </ScrollViewer> </Border> </Popup> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style>
0
[ 2, 184, 20, 3934, 14, 10840, 807, 29, 21, 7567, 2549, 19, 21, 1172, 3130, 172, 9, 387, 22621, 5309, 60, 800, 3726, 3726, 31, 57, 21, 22621, 1649, 30, 19, 13, 18, 19737, 3130, 172, 9, 387, 30, 31, 259, 32, 20, 368, 76, 21, 41...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 OK to use an int for the key in a KeyedCollection === Often times I need a collection of non-sequential objects with numeric identifiers. I like using the KeyedCollection for this, but I think there's a serious drawback. If you use an int for the key, you can no longer access members of the collection by their index (collection[index] is now really collection[key]). Is this a serious enough problem to avoid using the int as the key? What would a preferable alternative be? (maybe int.ToString()?) I've done this before without any major problems, but recently I hit a nasty snag where XML serialization against a KeyedCollection does *not* work if the key is an int, due to [a bug in .NET][1]. [1]: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=120461
0
[ 2, 25, 32, 5854, 20, 275, 40, 19, 38, 26, 14, 1246, 19, 21, 1246, 69, 15015, 872, 800, 3726, 3726, 478, 436, 31, 376, 21, 1206, 16, 538, 8, 870, 5495, 10107, 3916, 29, 15764, 596, 25570, 18, 9, 31, 101, 568, 14, 1246, 69, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to perform a deep copy of an object not marked as serializable (in C#)? === I am attempting to create a Clipboard stack in C#. Clipboard data is stored in `System.Windows.Forms.DataObject` objects. I wanted to store each clipboard entry (`IDataObject`) directly in a Generic list. Due to the way Bitmaps (seem to be) stored I am thinking I need to perform a deep copy first before I add it to the list. I attempted to use Binary serialization (see below) to create a deep copy but since `System.Windows.Forms.DataObject` is not marked as serializable the serialization step fails. Any ideas? public IDataObject GetClipboardData() { MemoryStream memoryStream = new MemoryStream(); BinaryFormatter binaryFormatter = new BinaryFormatter(); binaryFormatter.Serialize(memoryStream, Clipboard.GetDataObject()); memoryStream.Position = 0; return (IDataObject) binaryFormatter.Deserialize(memoryStream); }
0
[ 2, 184, 20, 2985, 21, 855, 4344, 16, 40, 3095, 52, 2739, 28, 5956, 3186, 579, 13, 5, 108, 272, 5910, 6, 60, 800, 3726, 3726, 31, 589, 6314, 20, 1600, 21, 12229, 2806, 7566, 19, 272, 5910, 9, 12229, 2806, 1054, 25, 8214, 19, 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...
Limits on number of Rows in a SQL Server Table === Are there any hard limits on the number of rows in a table in a sql server table? I am under the impression the only limit is based around physical storage. At what point does performance significantly degrade, if at all, on tables with and without an index. Are there any common practicies for very large tables? To give a little domain knowledge, we are considering usage of an Audit table which will log changes to fields for all tables in a database and are wondering what types of walls we might run up against.
0
[ 2, 5887, 27, 234, 16, 11295, 19, 21, 4444, 255, 8128, 859, 800, 3726, 3726, 50, 80, 186, 552, 5887, 27, 14, 234, 16, 11295, 19, 21, 859, 19, 21, 4444, 255, 8128, 859, 60, 31, 589, 131, 14, 6394, 14, 104, 4496, 25, 432, 140, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Setting QTMovie attributes === I'm trying to create a QTVR movie via QTKit, and I've got all the frames in the movie. However, setting the attributes necessary doesn't seem to be having any effect. For example: NSNumber *val = [NSNumber numberWithBool:YES]; [fMovie setAttribute:val forKey:QTMovieIsInteractiveAttribute]; val = [NSNumber numberWithBool:NO]; [fMovie setAttribute:val forKey:QTMovieIsLinearAttribute]; If I then get the value of these attributes, they come up as NO and YES, respectively. The movie is editable, so I can't understand what I'm doing wrong here. How can I ensure that the attributes will actually change?
0
[ 2, 2697, 2593, 38, 22607, 13422, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 21, 2593, 38, 6938, 1308, 1197, 2593, 38, 13703, 15, 17, 31, 22, 195, 330, 65, 14, 12809, 19, 14, 1308, 9, 207, 15, 2697, 14, 13422, 2378, 1437, 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...
Explore containing folder instead of open containing folder === I use Visual Studio to do a lot of my coding. I find the open containing folder feature quite helpful. But I don't want the folder to be "opened" by the windows explorer, instead I want to "explore" the folder -- you know, get the nice little frame showing me all the other folders on the left hand side. Does anyone know how to do this? Thank you, Rohit
0
[ 2, 8594, 3503, 19294, 700, 16, 368, 3503, 19294, 800, 3726, 3726, 31, 275, 3458, 1120, 20, 107, 21, 865, 16, 51, 13, 15458, 9, 31, 477, 14, 368, 3503, 19294, 1580, 1450, 15600, 9, 47, 31, 221, 22, 38, 259, 14, 19294, 20, 44, 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...
"Communication with the underlying transaction manager has failed" error message === A client of our has recently upgraded a ASP.NET 1.1 web application to ASP.NET that uses COM+ transaction processing and received the following exception while trying to process a transaction: > Exception Type: > System.Transactions.TransactionManagerCommunicationException<br /> > Message: Communication with the > underlying transaction manager has > failed. > > Inner Exception Type: > System.Runtime.InteropServices.COMException > ErrorCode: -2147467259<br /> Message: Error > HRESULT E_FAIL has been returned from > a call to a COM component. Here are the following settings on MSDTC Security Settings: > -- Network DTC Access<br /> > -- Allow Inbound<br /> > -- Allow Outbound<br /> > -- Incoming Caller Authenication Required A Windows XP SP3 workstation is trying to establish a connection to a Windows Server 2003 machine. Has anyone else experienced this error and know how to resolve it.
0
[ 2, 13, 7, 25600, 29, 14, 10974, 12799, 1382, 63, 1702, 7, 7019, 2802, 800, 3726, 3726, 21, 6819, 16, 318, 63, 1989, 9958, 21, 28, 306, 9, 2328, 137, 9, 165, 2741, 3010, 20, 28, 306, 9, 2328, 30, 2027, 13, 960, 2430, 12799, 551...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How would you make an RSS-feeds entries available longer than they're accessible from the source? === My computer at home is set up to automatically download some stuff from RSS feeds (mostly torrents and podcasts). However, I don't always keep this computer on. The sites I subscribe to have a relatively large throughput, so when I turn the computer back on it has no idea what it missed between the the time it was turned off and the latest update. **How would you go about storing the feeds entries for a longer period of time than they're available on the actual sites?** I've checked out Yahoo's pipes and found no such functionality, Google reader can sort of do it, but it requires a manual marking of each item. Magpie RSS for php can do caching, but that's only to avoid retrieving the feed too much not really storing more entries. I have access to a webserver (LAMP) that's on 24/7, so a solution using a php/mysql would be excellent, any existing web-service would be great too. I could write my own code to do this, but I'm sure this has to be an issue previously encountered by someone?
0
[ 2, 184, 83, 42, 233, 40, 13, 1224, 18, 8, 20954, 18, 11399, 904, 1045, 119, 59, 22, 99, 7342, 37, 14, 1267, 60, 800, 3726, 3726, 51, 1428, 35, 213, 25, 309, 71, 20, 7499, 7121, 109, 3217, 37, 13, 1224, 18, 17058, 13, 5, 1839...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Complete list of Google Gears enabled sites === Is there a complete list of Google Gears enabled sites? I'm aware of rememberthemilk.com, google docs and google calendar
0
[ 2, 1279, 968, 16, 8144, 4256, 18, 9338, 3259, 800, 3726, 3726, 25, 80, 21, 1279, 968, 16, 8144, 4256, 18, 9338, 3259, 60, 31, 22, 79, 3854, 16, 1518, 124, 27248, 9, 960, 15, 8144, 9765, 18, 17, 8144, 7036, 3, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I open a file in C# and change its properties? === I need to open a Microsoft Word 2003 file and change its file properties. Such as changing the Subject in the Summary Tab. <br/> ![alt text][1] [1]: http://www.jegsworks.com/Lessons/words/report/dialog-fileproperties-summary.gif
0
[ 2, 184, 107, 31, 368, 21, 3893, 19, 272, 5910, 17, 753, 82, 3704, 60, 800, 3726, 3726, 31, 376, 20, 368, 21, 7099, 833, 973, 3893, 17, 753, 82, 3893, 3704, 9, 145, 28, 4226, 14, 1550, 19, 14, 14740, 6523, 9, 13, 1, 5145, 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...
Creating Docking Panes in CView insteand of CMainFrame === When creating an MDI Application with "Visual Studio" style using the AppWizard of VS2008 (plus Feature Pack), the `CMainFrame` class gets a method `CreateDockingWindows()`. Since I don't want all panes to be always visible but display them depending on the type of the active document, I made those windows to members of my views and also moved the creation to `OnInitialUpdate()`. I create those panes in the same manner as was done by the `CMainFrame` including setting the main frame as parent window. The positions of the docking windows get saved to the registry automatically but they won't be restored because the docking windows don't yet exist when the frame is initialized. Is it a good idea to create the docking windows with the views or should I expect more problems? Is there a better way to accomplish what I want? Thanks in advance!
0
[ 2, 2936, 6120, 68, 1809, 160, 19, 272, 4725, 19, 6100, 290, 16, 272, 6232, 8361, 800, 3726, 3726, 76, 2936, 40, 8138, 49, 3010, 29, 13, 7, 20893, 1120, 7, 1034, 568, 14, 4865, 23527, 1514, 16, 4611, 2753, 13, 5, 13349, 1580, 360...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ClickOnce and IsolationStorage === The Winform application is release with ClickOnce in our Intranet. We store personal preference for the GUI in the Isolation Storage. All work pretty fine :) The problem is when we have a new version of the application, we publish... all preferences are lost! User need to setup their preference over and over each version. Is there a way to freeze the isolation for the whole application instead of the version?
0
[ 2, 10840, 13120, 17, 13300, 18, 2153, 1303, 800, 3726, 3726, 14, 628, 4190, 3010, 25, 830, 29, 10840, 13120, 19, 318, 14369, 2328, 9, 95, 1718, 1319, 9808, 26, 14, 9457, 19, 14, 13300, 4326, 9, 65, 170, 1772, 1123, 13, 45, 6, 14...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using SHFileOperation within a Windows service === It's possible, but is it appropriate to use SHFileOperation within a Windows service? All those SHxxx API functions in shell32.dll seem to have been written with user level programs in mind. Can I be certain SHFileOperation won't display GUI ever?
0
[ 2, 568, 5527, 16877, 11377, 363, 21, 1936, 365, 800, 3726, 3726, 32, 22, 18, 938, 15, 47, 25, 32, 4593, 20, 275, 5527, 16877, 11377, 363, 21, 1936, 365, 60, 65, 273, 5527, 13290, 21, 2159, 3719, 19, 3593, 3125, 9, 43, 211, 2260,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 you set a conditional uninstall in Wix? === The installer sets up a default DB (if one doesn't already exist) and I want to exclude that from the uninstall process (Or have the user option to remove it or not, once I take the time to figure out customizing the GUI) Seems like best practice would be to just create the DB at runtime rather than install time, but for the sake of argument, is this possible and how? I know how to set it up to install it conditionally like this: <Feature Id="Database" Display="hidden" Level="1"> <ComponentRef Id="DatabaseComponent"/> <!-- Cancels installing of new DB if it already exists--> <Condition Level="0">DBEXISTS</Condition> </Feature> But I'm not sure about how to put a conditional on an uninstall.
0
[ 2, 92, 42, 309, 21, 21206, 367, 108, 21300, 19, 4807, 396, 60, 800, 3726, 3726, 14, 16146, 106, 3415, 71, 21, 12838, 13, 9007, 13, 5, 821, 53, 1437, 22, 38, 614, 3182, 6, 17, 31, 259, 20, 21077, 30, 37, 14, 367, 108, 21300, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Peer Review XSD scheme === I designed a data model which is represented by an XSD scheme. The data model also provides the types that are being used as web service parameters in a WSDL descriptor. I would like to send the XSD scheme around and ask the people involved to peer review the data model. What tool or presentation method would you suggest to be used as a basis for peer reviews? The data model should be readable for non-skilled people, at least when it comes to the semantic meanings of the parameters
0
[ 2, 7617, 1487, 993, 18, 43, 4276, 800, 3726, 3726, 31, 1006, 21, 1054, 1061, 56, 25, 1622, 34, 40, 993, 18, 43, 4276, 9, 14, 1054, 1061, 67, 1927, 14, 2551, 30, 50, 142, 147, 28, 2741, 365, 12905, 19, 21, 619, 18, 8643, 121, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
mod_rewrite Rule to Cover All Domains === Is there a way to have a RewriteRule fire on any domain that is requested on a box? For example, I have 5 VirtualHosts that would have the exact same RewriteRule applied to them and currently each VirtualHost directive has the rule, but can I put this somewhere 'global' so that upkeep is easier?
0
[ 2, 7226, 1, 99, 23716, 1828, 20, 1227, 65, 15544, 800, 3726, 3726, 25, 80, 21, 161, 20, 57, 21, 27891, 16154, 535, 27, 186, 4603, 30, 25, 6602, 27, 21, 1649, 60, 26, 823, 15, 31, 57, 331, 6599, 11694, 18, 30, 83, 57, 14, 534...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Force ASP.NET textbox to display currency with $ sign === Is there a way to get an ASP.NET textbox to accept only currency values, and when the control is validated, insert a $ sign beforehand? Examples: 10.23 becomes $10.23 $1.45 stays $1.45 10.a raises error due to not being a valid number I have a RegularExpressionValidator that is verifying the number is valid, but I don't know how to force the $ sign into the text. I suspect JavaScript might work, but was wondering if there was another way to do this.
0
[ 2, 558, 28, 306, 9, 2328, 1854, 5309, 20, 3042, 10507, 29, 5579, 1676, 800, 3726, 3726, 25, 80, 21, 161, 20, 164, 40, 28, 306, 9, 2328, 1854, 5309, 20, 3440, 104, 10507, 4070, 15, 17, 76, 14, 569, 25, 7394, 1669, 15, 14692, 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...
How to configure server for small hosting company for django-powered flash sites? === I'm looking at setting up a small company that hosts flash-based websites for artist portfolios. The customer control panel would be django-powered, and would provide the interface for uploading their images, managing galleries, selling prints, etc. Seeing as the majority of traffic to the hosted sites would end up at their top level domain, this would result in only static media hits (the HTML page with the embedded flash movie), I could set up lighttpd or nginx to handle those requests, and pass the django stuff back to apache/mod_whatever. Seems as if I could set this all up on one box, with the django sites framework keeping each site's admin separate. I'm not much of a server admin. Are there any gotchas I'm not seeing?
0
[ 2, 184, 20, 1065, 15951, 8128, 26, 284, 10637, 237, 26, 3857, 14541, 8, 9844, 4433, 3259, 60, 800, 3726, 3726, 31, 22, 79, 699, 35, 2697, 71, 21, 284, 237, 30, 5397, 4433, 8, 1281, 13931, 26, 1169, 10588, 18, 9, 14, 7705, 569, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 and GetType() === I want to get a type of a "BasePage" object that I am creating. Every Page object is based off BasePage. For instance, I have a Login.aspx and in my code-behind and a class that has a method Display: Display(BasePage page) { ResourceManager manager = new ResourceManager(page.GetType()); } In my project structure I have a default resource file and a psuedo-translation resource file. If I set try something like this: Display(BasePage page) { ResourceManager manager = new ResourceManager(typeof(Login)); } it returns the translated page. After some research I found that page.GetType().ToString() returned something to the effect of "ASP_login.aspx" How can I get the actual code behind class type, such that I get an object of type "Login" that is derived from "BasePage"? Thanks in advance!
0
[ 2, 28, 306, 9, 2328, 17, 164, 4474, 5, 6, 800, 3726, 3726, 31, 259, 20, 164, 21, 1001, 16, 21, 13, 7, 8436, 6486, 7, 3095, 30, 31, 589, 2936, 9, 352, 2478, 3095, 25, 432, 168, 1000, 6486, 9, 26, 4851, 15, 31, 57, 21, 6738,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 cell's ComboBox style in DataGridViewComboBoxColumn === Cells in DataGridViewComboBoxColumn have ComboBoxStyle DropDownList. It means the user can only select values from the dropdown. The underlying control is ComboBox, so it can have style DropDown. How do I change the style of the underlying combo box in DataGridViewComboBoxColumn. Or, more general, can I have a column in DataGridView with dropdown where user can type?
0
[ 2, 184, 20, 753, 1667, 22, 18, 22621, 5309, 1034, 19, 1054, 16375, 4725, 960, 1192, 5309, 716, 4404, 103, 800, 3726, 3726, 2934, 19, 1054, 16375, 4725, 960, 1192, 5309, 716, 4404, 103, 57, 22621, 5309, 4381, 2804, 2968, 5739, 9, 32,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where can I find free and open data? === I know [data.un.org][1] which offers access to their extensive databases on human development and other socio-economic topics. The other usual suspects are NASA and the USGS for planetary data. There's an article at [readwriteweb][2] with more links. [infochimps.org][3] seems to stand out. I particularly need to find historic commodity prices, stock values and other financial data. All these data sets seem to cost money however. [1]: http://data.un.org/ [2]: http://www.readwriteweb.com/archives/where_to_find_open_data_on_the.php [3]: http://infochimps.org
0
[ 2, 113, 92, 31, 477, 551, 17, 368, 1054, 60, 800, 3726, 3726, 31, 143, 636, 18768, 9, 1020, 9, 5583, 500, 2558, 165, 500, 56, 2486, 1381, 20, 66, 3386, 6018, 18, 27, 585, 522, 17, 89, 14607, 8, 14617, 7569, 9, 14, 89, 3820, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Hungarian Notation? === Please answer with good examples of Hungarian Notation, so we can bring together a collection of these.
0
[ 2, 254, 3770, 16, 5046, 15591, 60, 800, 3726, 3726, 2247, 1623, 29, 254, 3770, 16, 5046, 15591, 15, 86, 95, 92, 1499, 429, 21, 1206, 16, 158, 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...
[ 1, 1, 1, 1, 1, 1, 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...
How Do You Programmatically Set the Hardware Clock on Linux? === Linux provides the stime(2) call to set the system time. However, while this will update the system's time, it does not set the BIOS hardware clock, so if the machine gets power-cycled, the time will be incorrect. How do you ensure that the hardware clock gets updated when you set the system time?
0
[ 2, 184, 107, 42, 625, 6732, 1326, 309, 14, 7610, 4229, 27, 13024, 60, 800, 3726, 3726, 13024, 1927, 14, 13, 18, 891, 5, 135, 6, 645, 20, 309, 14, 329, 85, 9, 207, 15, 133, 48, 129, 11100, 14, 329, 22, 18, 85, 15, 32, 630, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
getter for boolean properties with JAXB === I´m trying to expose services using jax-ws but the first surprise i got was that Weblogic does not support inner classes for request/response objects. After get over this situation [here][1], i´m facing another challenge: Generate `getXXX()` rather than/additionally to the `isXXX()` Method. I need to generate this methods cause when i start the service i get the message: <WS data binding error>could not find getter for property 'IsXXX' on com.foo.MyClass Tried a customization: <jaxb:globalBindings generateIsSetMethod="false" enableJavaNamingConventions="false"> without effect. :( Any help? [1]: http://stackoverflow.com/questions/144118/jaxb-binding-customization
0
[ 2, 164, 815, 26, 9827, 413, 210, 3704, 29, 11712, 220, 800, 3726, 3726, 31, 307, 749, 20, 13833, 687, 568, 11712, 8, 10268, 47, 14, 64, 2624, 31, 330, 23, 30, 2741, 24268, 630, 52, 555, 3754, 2684, 26, 3772, 118, 99, 18, 8782, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Run a XNA compiled game from DVD or CD on XBOX 360? === Is it possible to run a XNA game compiled for XBOX 360 from a DVD or CD, or does it have to be copied onto the HD? Is it possible to include a library which is not a part of the .net compact framework in a XBOX 360 project?
0
[ 2, 485, 21, 993, 325, 9316, 250, 37, 3527, 54, 1745, 27, 13800, 11760, 60, 800, 3726, 3726, 25, 32, 938, 20, 485, 21, 993, 325, 250, 9316, 26, 13800, 11760, 37, 21, 3527, 54, 1745, 15, 54, 630, 32, 57, 20, 44, 18225, 1204, 14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Generate JavaScript objects out of Django Models === I am performing a lot of JavaScript work in the browser and would like to have some of that backend functionality in the front-end. Specifically, it would be nice to have the functions <code>get()</code>, <code>save()</code>, <code>all()</code> and <code>count()</code> available to the client. Additionally, it would be great to have the field list of the model already available in the generated JavaScript object. Whether the current user can read or write the records is a separate issue I will deal with using Django's authentication. For the time being, retrieval would be a start. In short, is there code that would generate a JavaScript model from a Django model? Thanks.
0
[ 2, 7920, 8247, 8741, 3916, 70, 16, 3857, 14541, 2761, 800, 3726, 3726, 31, 589, 2955, 21, 865, 16, 8247, 8741, 170, 19, 14, 16495, 17, 83, 101, 20, 57, 109, 16, 30, 97, 2451, 18548, 19, 14, 431, 8, 2451, 9, 3524, 15, 32, 83, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
c# (more specifically xna) how can i request a xml file via http? Doesnt need to support xbox. === So im working on a game in XNA and i need it to get a server list off our site. so i just need to do a http request to http://play.feedthezombie.com/?want=servers&enc=xml and get the contest as either a string or xml object. any clues?
0
[ 2, 272, 5910, 13, 5, 1995, 3524, 993, 325, 6, 184, 92, 31, 3772, 21, 23504, 3893, 1197, 7775, 60, 5886, 376, 20, 555, 13800, 9, 800, 3726, 3726, 86, 797, 638, 27, 21, 250, 19, 993, 325, 17, 31, 376, 32, 20, 164, 21, 8128, 96...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you reset a password in AD using LDP.exe? === I can connect with a user who has permissions to set passwords. I'm able to change attributes, but I can't set the password.
0
[ 2, 184, 107, 42, 23422, 21, 20884, 19, 21, 43, 568, 644, 7431, 9, 1706, 62, 60, 800, 3726, 3726, 31, 92, 6379, 29, 21, 4155, 72, 63, 5572, 18, 20, 309, 20884, 18, 9, 31, 22, 79, 777, 20, 753, 13422, 15, 47, 31, 92, 22, 38,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Merge code changes without true source control === We have a few developers working on the same VS2005 solution, but our source control is very bad. (Our company uses Harvest, which we give a vote of no confidence). Right now, we're all just working off of the files on a shared lan drive. Obviously, this causes some problems. But we think it's better than working locally, and tracking the files we touched in a spreadsheet and mergine everything manually. Does anybody have a strategy for merging our changes? Some of the problems exist because of corporate beaurocracy (like mandating Harvest). Those same policies prevent introducing new tools into our environment. So, strategies that avoid buying/downloading new software would work best for us.
0
[ 2, 12666, 1797, 1693, 366, 1151, 1267, 569, 800, 3726, 3726, 95, 57, 21, 310, 10168, 638, 27, 14, 205, 4611, 2835, 4295, 15, 47, 318, 1267, 569, 25, 253, 896, 9, 13, 5, 4110, 237, 2027, 10602, 15, 56, 95, 590, 21, 2018, 16, 90...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Start another application in Compact .Net 1.0 === Is there a way to start another application from within Compact .Net framework 1.0 similar to System.Diagnostics.Process.Start on the Windows side? I need to start a CAB file for installation. Thanks, Kishore.
0
[ 2, 799, 226, 3010, 19, 8285, 13, 9, 2328, 137, 9, 387, 800, 3726, 3726, 25, 80, 21, 161, 20, 799, 226, 3010, 37, 363, 8285, 13, 9, 2328, 6596, 137, 9, 387, 835, 20, 329, 9, 4286, 21944, 18, 9, 16835, 9, 13680, 27, 14, 1936, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Replace first line of a text file in Java === I have a text file where I want to change only the first line of the file. The file could be millions of rows long, so I'd rather not have to loop over everything, so I'm wondering if there is another way to do this. I'd also like to apply some rules to the first line so that I replace instances of certain words with other words. Is this possible?
0
[ 2, 3934, 64, 293, 16, 21, 1854, 3893, 19, 8247, 800, 3726, 3726, 31, 57, 21, 1854, 3893, 113, 31, 259, 20, 753, 104, 14, 64, 293, 16, 14, 3893, 9, 14, 3893, 110, 44, 11999, 16, 11295, 175, 15, 86, 31, 22, 43, 864, 52, 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...
Flex/AIR: automatically absorb unassigned/disabled key shortcuts === I have an AIR app with an `<mx:HTML>` component, which renders a page that includes an HTML/Javascript-based WYSIWYG/rich-text editor. Various keyboard shortcuts are assigned for formatting and what have you, but if I type a shortcut which isn't assigned (eg. cmd [or ctrl on Win] + M), the character is entered as if no modifier key was pressed. This is even true if the shortcut is assigned but its menu item is disabled. What is the best way to detect that a modifier is pressed, but the shortcut is not assigned and should be ignored rather than passed through to the HTML view without the modifier key?
0
[ 2, 14409, 118, 2642, 45, 7499, 14196, 13, 4140, 18, 13472, 118, 2906, 579, 43, 1246, 502, 4118, 18, 800, 3726, 3726, 31, 57, 40, 282, 4865, 29, 40, 13, 1, 79, 396, 45, 15895, 1, 5912, 15, 56, 16535, 18, 21, 2478, 30, 1103, 40,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to easily print the pages from an ASP.NET site? === My PM just stopped by and he wanted a copy of all of our pages... Is there a way to do this for all pages without having to go to each one?
0
[ 2, 25, 80, 21, 161, 20, 2351, 4793, 14, 4434, 37, 40, 28, 306, 9, 2328, 689, 60, 800, 3726, 3726, 51, 6736, 114, 1175, 34, 17, 24, 417, 21, 4344, 16, 65, 16, 318, 4434, 9, 9, 9, 25, 80, 21, 161, 20, 107, 48, 26, 65, 4434...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How does a game engine that models objects as "collections of components" work at runtime? === I'm writing a lightweight game engine and while doing some research for it I've come across a number of compelling articles advocating the implementation of Game Objects through a "collection of components" model rather than an "inheiritance from concrete classes" model. There are lots of advantages: - objects can be composed using data driven design techniques, allowing designers to come up with new objects without involving a programmer; - there tend to be fewer source file dependencies, allowing code to be compiled faster; - the engine as a whole becomes more general; - unforseen consequences of having to change concrete classes high up the inheiritance hierarchy can be avoided; - and so on. But there are parts of the system that remain opaque. Primarily among these is how components of the same object communicate with each other. For example, let's say an object that models a bullet in game is implemented in terms of these components: - a bit of geometry for visual representation - a position in the world - a volume used for collision with other objects - other things At render time the geometry has to know its position in the world in order to display correctly, but how does it find that position among all its sibling components in the object? And at update time, how does the collision volume find the object's position in the world in order to test for its intersection with other objects? I guess my question can be boiled down to this: Okay, we have objects that are composed of a number of components that each implement a bit of functionality. How does it all work at runtime?
0
[ 2, 184, 630, 21, 250, 1406, 30, 2761, 3916, 28, 13, 7, 15015, 5757, 16, 5090, 7, 170, 35, 485, 891, 60, 800, 3726, 3726, 31, 22, 79, 1174, 21, 13613, 250, 1406, 17, 133, 845, 109, 527, 26, 32, 31, 22, 195, 340, 464, 21, 234,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to manage concurrency for inserting? === Many optimistic concurrency examples refer to updates by using a database timestamp or flag. However, I want to handle optimistic concurrency for INSERTS To illustrate here is a fake scenario: Multiple users can insert a journal entry at the same time, but allow only one journal entry is allowed per date. Without any concurrency control since multiple users can create journal entries, I can end up with multiple journal entries on the same date. How do I prevent this from happening WITHOUT the use of a database unique key constraint?
0
[ 2, 184, 20, 4705, 25547, 26, 14692, 68, 60, 800, 3726, 3726, 151, 24408, 25547, 3770, 5017, 20, 16779, 34, 568, 21, 6018, 436, 38, 10158, 54, 3157, 9, 207, 15, 31, 259, 20, 3053, 24408, 25547, 26, 14692, 18, 20, 15620, 235, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should I start distributing my systems as Wine ready? === I have tested all my systems written on Delphi (in Windows XP) on Wine (OpenSuse Linux) and they work perfectly. My question is: should I start distributing my systems (on a local basis that I can support) as Wine ready or is there other issues I should take into account?
0
[ 2, 378, 31, 799, 23125, 51, 1242, 28, 2667, 1451, 60, 800, 3726, 3726, 31, 57, 7631, 65, 51, 1242, 642, 27, 23030, 13, 5, 108, 1936, 23045, 6, 27, 2667, 13, 5, 10157, 18, 3699, 13024, 6, 17, 59, 170, 5759, 9, 51, 1301, 25, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use sftp from within an MS Access database module? === I have a requirement to create a simple database in Access to collect some user data that will be loaded into another database for further reporting. There will be a module in the Access db that once invoked by the user upon clicking a button, will output a query to a delimited file. The user also needs a mechanism (for example a form with a button) to easily transfer the file to a remote server, using sftp. Does anyone have an idea of how to accomplish this?
0
[ 2, 184, 20, 275, 15025, 13726, 37, 363, 40, 4235, 1381, 6018, 12613, 60, 800, 3726, 3726, 31, 57, 21, 8981, 20, 1600, 21, 1935, 6018, 19, 1381, 20, 5543, 109, 4155, 1054, 30, 129, 44, 8572, 77, 226, 6018, 26, 653, 6670, 9, 80, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to make MySQL handle UTF-8 properly === One of the responses to [a question I asked yesterday][1] suggested that I should make sure my database can handle UTF-8 characters correctly. Anyone know how I can do this with MySQL? Thanks! Ben [1]: http://stackoverflow.com/questions/198721/converting-a-word-document-into-usable-html-in-php
0
[ 2, 184, 20, 233, 51, 18, 22402, 3053, 287, 11720, 8, 457, 7428, 800, 3726, 3726, 53, 16, 14, 13231, 20, 636, 58, 1301, 31, 411, 7124, 500, 2558, 165, 500, 2347, 30, 31, 378, 233, 562, 51, 6018, 92, 3053, 287, 11720, 8, 457, 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...
Outlook VSTO not firing on NewMailEx event? === I've created a VSTO in C# that is supposed to hook Outlook 2007's NewMailEx event. However, it doesn't fire sometimes when I do a manual send/receive, or when there is only 1 unread mail in the inbox. It almost seems as if it fires on the inbox BEFORE the message actually arrives. Is there a better way of monitoring for new messages **every single time** besides ItemAdd or NewMailEX using VSTO?
0
[ 2, 19837, 4611, 262, 52, 7139, 27, 78, 8079, 1706, 807, 60, 800, 3726, 3726, 31, 22, 195, 679, 21, 4611, 262, 19, 272, 5910, 30, 25, 2293, 20, 5559, 19837, 624, 22, 18, 78, 8079, 1706, 807, 9, 207, 15, 32, 1437, 22, 38, 535, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
dotnet compact framework 3.5 sp1 detect device resolution === I need to detect the device resolution automatically, right now I have a global var & hardwire the resolution: Public gDeviceRes As String = "640" 'Public gDeviceRes As String = "320" then recompile for each device, does anyone have a quick snippit of code for this??
0
[ 2, 14123, 2328, 8285, 6596, 203, 9, 264, 3782, 165, 9092, 3646, 4302, 800, 3726, 3726, 31, 376, 20, 9092, 14, 3646, 4302, 7499, 15, 193, 130, 31, 57, 21, 2062, 4033, 279, 552, 13482, 14, 4302, 45, 317, 489, 546, 18507, 99, 18, 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...
Command Line limit for Solaris === I have an app that executes commands on a Linux server via SSH just fine. When I connect to a Solaris server, things don't work. It seems that the Solaris command line is limited to 267 characters. Is there a way to change this?
0
[ 2, 1202, 293, 4496, 26, 4535, 403, 800, 3726, 3726, 31, 57, 40, 4865, 30, 15644, 18, 14294, 27, 21, 13024, 8128, 1197, 13, 18, 1635, 114, 1123, 9, 76, 31, 6379, 20, 21, 4535, 403, 8128, 15, 564, 221, 22, 38, 170, 9, 32, 2206, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Date/Time formatting in SQL === I am trying to write a stored procedure which selects columns from a table and adds 2 extra columns to the ResultSet. These 2 extra columns are the result of conversions on a field in the table which is a Datetime field. The Datetime format field has the following format 'YYYY-MM-DD HH:MM:SS.S' The 2 additional fields which should be in the following format: 1. DDMMM 2. HHMMT, where T is 'A' for a.m. and 'P' for p.m. Example: If the data in the field was '2008-10-12 13:19:12.0' then the extracted fields should contain: 1. 12OCT 2. 0119P I have tried using CONVERT string formats, but none of the formats match the output I want to get. I am thinking along the lines of extracting the field data via CONVERT and then using REPLACE, but I surely need some help here, as I am no sure. Could anyone well versed in stored procedures help me out here? Thanks!
0
[ 2, 5816, 1231, 118, 891, 2595, 1203, 19, 4444, 255, 800, 3726, 3726, 31, 589, 749, 20, 2757, 21, 8214, 7004, 56, 5407, 18, 7498, 37, 21, 859, 17, 10621, 172, 2230, 7498, 20, 14, 1736, 1198, 9, 158, 172, 2230, 7498, 50, 14, 829, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Pure-SQL Technique for Auto-Numbering Rows in Result Set === I'm looking for a way to sequentially number rows in a *result set* (not a table). In essence, I'm starting with a query like the following: SELECT id, name FROM people WHERE name = 'Spiewak' The `id`s are obviously not a true sequence (e.g. `1, 2, 3, 4`). What I need is another column in the result set which contains these auto-numberings. I'm willing to use a SQL function if I have to, but I would rather do it without using extensions on the ANSI spec. Platform is MySQL, but the technique should be cross-platform if at all possible (hence the desire to avoid non-standard extensions).
0
[ 2, 4267, 8, 18, 22402, 4873, 26, 3108, 8, 16299, 68, 11295, 19, 829, 309, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 161, 20, 1353, 5495, 10107, 102, 234, 11295, 19, 21, 1637, 29955, 309, 2483, 13, 5, 1270, 21, 859, 6, 9, 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...
Using Nant, uncomment a block of xml in a file === I need to uncomment a portion of xml in a file that I am working with in NAnt. Heres a sample of the xml: <navigation> <!-- Navigation Section <something name="" /> <something name="" /> --> </navigation> What I want to do is take the --> portion and move it next to "Navigation Section". A global find for --> won't work as there are many --> in the file, as well as under the navigation node. this end comment character is the last one in the navigation node. Anyone?
0
[ 2, 568, 13, 11028, 15, 367, 960, 1130, 21, 1921, 16, 23504, 19, 21, 3893, 800, 3726, 3726, 31, 376, 20, 367, 960, 1130, 21, 2980, 16, 23504, 19, 21, 3893, 30, 31, 589, 638, 29, 19, 13, 11028, 9, 235, 18, 21, 5717, 16, 14, 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...
jquery table header sort === Anybody know of a plugin, or a built in function to make the columns in a table sortable? i.e. I click on the column header and it sorts the rows by that column?
0
[ 2, 487, 8190, 93, 859, 157, 106, 2058, 800, 3726, 3726, 11181, 143, 16, 21, 10922, 108, 15, 54, 21, 392, 19, 1990, 20, 233, 14, 7498, 19, 21, 859, 2058, 579, 60, 31, 9, 62, 9, 31, 10840, 27, 14, 4698, 157, 106, 17, 32, 14357...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Eclipse & Tomcat: How to specify which folder is served from the project? === I'm using Eclipse 3.4 and Tomcat 5.5 and I have a Dynamic Web Project set up. I can access it from http://127.0.0.1:8080/project/ but by default it serves files from WebContent folder. The real files, that I want to serve, can be found under folder named "share". This folder comes from CVS so I'd like to use it with its given name instead of renaming it. How can this be done?
0
[ 2, 11652, 279, 2067, 5782, 45, 184, 20, 19077, 56, 19294, 25, 423, 37, 14, 669, 60, 800, 3726, 3726, 31, 22, 79, 568, 11652, 203, 9, 300, 17, 2067, 5782, 331, 9, 264, 17, 31, 57, 21, 7782, 2741, 669, 309, 71, 9, 31, 92, 1381...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why is this code invalid in C#? === The following code will not compile: <pre> <code> string foo = "bar"; Object o = foo == null ? DBNull.Value : foo; </code> </pre> I get: *Error 1 Type of conditional expression cannot be determined because there is no implicit conversion between 'System.DBNull' and 'string'* To fix this, I must do something like this: <pre> <code> string foo = "bar"; Object o = foo == null ? DBNull.Value : (Object)foo; </code> </pre> This cast seems pointless as this is certainly legal: <pre> <code> string foo = "bar"; Object o = foo == null ? "gork" : foo; </code> </pre> It seems to me that when the ternary branches are of different types, the compiler will not autobox the values to the type object...but when they are of the same type then the autoboxing is automatic. In my mind the first statement should be legal... Can anyone describe why the compiler does not allow this and why the designers of C# chose to do this? I believe this is legal in Java...Though I have not verified this. Thanks.
0
[ 2, 483, 25, 48, 1797, 16671, 19, 272, 5910, 60, 800, 3726, 3726, 14, 249, 1797, 129, 52, 26561, 45, 13, 1, 3515, 1, 13, 1, 9375, 1, 3724, 4310, 111, 800, 13, 7, 1850, 7, 73, 3095, 635, 800, 4310, 111, 800, 3726, 16203, 13, 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...
Resolve a filename from another file === I can currently to the following: class SubClass extends SuperClass { function __construct() { parent::__construct(); } } class SuperClass { function __construct() { // this echoes "I'm SubClass and I'm extending SuperClass" echo 'I\'m '.get_class($this).' and I\'m extending '.__CLASS__; } } I would like to do something similar with the filenames (`__FILE__`, but dynamically evaluated); I would like to know what file the subclass resides in, from the superclass. Is it possible in any elegant way? I know you could do something with [`get_included_files()`][1], but that's not very efficient, especially if I have numerous instances. [1]:http://fi.php.net/get_included_files
0
[ 2, 9854, 21, 3893, 7259, 37, 226, 3893, 800, 3726, 3726, 31, 92, 871, 20, 14, 249, 45, 718, 972, 1898, 9073, 1026, 1898, 13, 1, 1990, 13, 1, 1126, 10346, 5, 6, 13, 1, 4766, 45, 45, 1, 1126, 10346, 5, 6, 73, 13, 1, 13, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Trigger a keypress with jQuery...and specify which key was pressed === I would like to have an input element (type=text) or textarea element that validates dynamically by triggering specific keystrokes. This will be used for Chinese pinyin input, so for example: The user types "ma2" into an input element. The keydown event triggers for every keystroke, and the 2 never appears. Instead, when the user presses "2" the "a" will receive a tone mark, like this: "á". In the end, the user will have typed: "má". This can be accomplished by reading and changing the entire input value using $(element).val() however, when an input element has focus and it's value is set by calling .val("something"), the cursor moves to the end of the text. This works fine in most situations because a user just continues typing at the end of the field, but I want this to work in *all* situations. ...another solution to this problem would be to get/set the location of a cursor within an input or textarea element. I don't think this is possible in javascript, however.
0
[ 2, 7286, 21, 1246, 5890, 29, 487, 8190, 93, 9, 9, 9, 290, 19077, 56, 1246, 23, 2931, 800, 3726, 3726, 31, 83, 101, 20, 57, 40, 6367, 4520, 13, 5, 4474, 3726, 11969, 6, 54, 1854, 17760, 4520, 30, 7394, 7759, 7782, 1326, 34, 728...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to build the DOM using javascript and templates? === I am building an application where most of the HTML is built using javascript. The DOM structure is built using some JSON data structures that are sent from the server, and then the client-side code builds a UI for that data. My current approach is to walk the JSON data structures, and call script.aculo.us's Builder.node method to build the DOM structure, and then append it to some element that is actually in the HTML sent from the server. Along the way, I am registering event listeners to the various elements that need them. This allows for a good amount of flexibility, and allows for a very dynamic interface. However, I feel that it is not very sustainable, since the view logic (ie, the DOM structure) is so tightly coupled to the code that walks the data, and the event handlers, and the data that is kept in memory to maintain the state, and is able to communicate those changes back to the server. Are there any template-like solutions that will allow me to divorce the DOM structure from the code that drives the app? Currently, my only library dependencies are prototype.js and script.aculo.us, so I would like to avoid introducing any large libraries, but any suggestions are welcome. Thanks!
0
[ 2, 184, 20, 1895, 14, 11859, 568, 8247, 8741, 17, 22894, 18, 60, 800, 3726, 3726, 31, 589, 353, 40, 3010, 113, 127, 16, 14, 13, 15895, 25, 392, 568, 8247, 8741, 9, 14, 11859, 1411, 25, 392, 568, 109, 487, 528, 1054, 3815, 30, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to store year in Rails app === I want to just store the year in one of my models. At the moment I just have a database field called year of type date, but it seems to want to take a whole date (yyyy-mm-dd) rather than just a year. What's the best way to store this? In a date field but using some way of just getting it to store the date bit (in which case, how?), or in an int field, or a string field or what? In some ways using an int field feels wrong, but it might be the easiest.
0
[ 2, 184, 20, 1718, 159, 19, 2240, 18, 4865, 800, 3726, 3726, 31, 259, 20, 114, 1718, 14, 159, 19, 53, 16, 51, 2761, 9, 35, 14, 688, 31, 114, 57, 21, 6018, 575, 227, 159, 16, 1001, 1231, 15, 47, 32, 2206, 20, 259, 20, 247, 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...
Any way to export/import sql server reporting services subscriptions? === I have not been able to find a way to export/import subscriptions either in the Report Manager or by SQl Server Management Studio. Anybody know if this is possible?
0
[ 2, 186, 161, 20, 7487, 118, 1660, 1993, 4444, 255, 8128, 6670, 687, 14213, 18, 60, 800, 3726, 3726, 31, 57, 52, 74, 777, 20, 477, 21, 161, 20, 7487, 118, 1660, 1993, 14213, 18, 694, 19, 14, 1330, 1382, 54, 34, 4444, 255, 8128, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Logging to a file on the iPhone === What would be the best way to write log statements to a file or database in an iPhone application? Ideally, NSLog() output could be redirected to a file using freopen(), but I've seen several reports that it doesn't work. Does anyone have this going already or have any ideas how this might best be done? Thanks!
0
[ 2, 13, 13919, 20, 21, 3893, 27, 14, 21024, 800, 3726, 3726, 98, 83, 44, 14, 246, 161, 20, 2757, 6738, 9015, 20, 21, 3893, 54, 6018, 19, 40, 21024, 3010, 60, 5628, 102, 15, 13, 2172, 5567, 5, 6, 5196, 110, 44, 302, 14147, 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...
rounding to an arbitrary number of significant digits === How can you round _any_ number (not just integers > 0) to N significant digits? For example, if I want to round to 3 significant digits, I'm looking for a formula that could take: 1,239,451 and return 1,240,000 12.1257 and return 12.1 .0681 and return .0681 5 and return 5 Naturally the algorithm should not be hard-coded to only handle N of 3, although that would be a start.
0
[ 2, 560, 68, 20, 40, 17237, 234, 16, 1505, 19076, 800, 3726, 3726, 184, 92, 42, 560, 13, 1, 6001, 1, 234, 13, 5, 1270, 114, 13820, 18, 13, 1, 713, 6, 20, 13, 103, 1505, 19076, 60, 26, 823, 15, 100, 31, 259, 20, 560, 20, 203...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Create PHP DOM xml file and Open Save Prompt without writing the file to the server? === I've created a PHP DOM xml piece and saved it to a string like this: <?php // create a new XML document $doc = new DomDocument('1.0'); ... ... ... $xmldata = $doc->saveXML(); ?> Now I can't use the headers to send a file download prompt and I can't write the file or rather I don't want the file laying around. Something like a save this file link or a download prompt would be good. How do I do it?
0
[ 2, 1600, 13, 26120, 11859, 23504, 3893, 17, 368, 2079, 11443, 4417, 366, 1174, 14, 3893, 20, 14, 8128, 60, 800, 3726, 3726, 31, 22, 195, 679, 21, 13, 26120, 11859, 23504, 1855, 17, 4377, 32, 20, 21, 3724, 101, 48, 45, 13, 1, 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...