unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Why "null" is present in C# === We noticed that lots of bug in our sofware developped in C# translate to NullReferenceException. What is the reason why "null" has been included in the langage? No "null" , no bug ! In other words, what feature the langage couldn't propsoe without this null?
0
[ 2, 483, 13, 7, 4215, 211, 7, 25, 734, 19, 272, 5910, 800, 3726, 3726, 95, 2711, 30, 7503, 16, 6256, 19, 318, 86, 410, 5011, 2803, 3631, 19, 272, 5910, 20628, 20, 16203, 28018, 10066, 872, 9, 98, 25, 14, 1215, 483, 13, 7, 4215,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 should you start optimising code? === How do you know when you should worry about optimising code? Are there any rules of thumb for this?
4
[ 2, 76, 378, 42, 799, 19259, 7552, 1797, 60, 800, 3726, 3726, 184, 107, 42, 143, 76, 42, 378, 3189, 88, 19259, 7552, 1797, 60, 50, 80, 186, 1761, 16, 5078, 26, 48, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do you disable the CPU window in Delphi 7 === When stepping a program in Delphi 7, the CPU window sometimes pops up and then steps through that instructions. I find this an annoyance as I wish to only step Pascal Code. Does anyone know how to disbale this CPU pop-up? I would not be sorry if this window never ever shows. It did not happen on Delphi 5 which was my previous IDE that I used for Delphi. I do use the Step-Over button mostly and only step-into when wanting to get into detail of a used (pascal) unit.
0
[ 2, 184, 107, 42, 1460, 579, 14, 17578, 1463, 19, 23030, 453, 800, 3726, 3726, 76, 9451, 21, 625, 19, 23030, 453, 15, 14, 17578, 1463, 1030, 1675, 18, 71, 17, 94, 2382, 120, 30, 7650, 9, 31, 477, 48, 40, 20106, 28, 31, 2536, 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...
DDD and Asynchronous Repositories === We're working on a rich client (written in Flex) that is connected to a Java backend, using both RMI and JMS. I was thinking about implementing the client in a DDD fashion so that it has Repositories for the CRUD operations on the domain objects. The problem is however that all backend communication happens asynchronous and there is no way for me to force the client for waiting to continue untill it received a response. That means that, at a low level, I can call a method on a Remote Object and I get a AsyncToken as a return value. I can then listen to events on the asynctoken to see whether the call has passed or failed. This however breaks the main idea behind a repository, to hide the technical details from the client. There might be 2 options I guess: 1. have the methods on the repository return the asynctoken, which seems like a messy solution to me 2. have the methods return an empty collection (for a findAll for instance) that will get filled when the response is received. Both have pros and cons and I would like to get some input from you guys. (taking this further, what would be good caching strategies? Dependind on the situation, I don't want the repository to call the server each time I request all entities from it. How would that affect the signature of the methods on the repository.)
0
[ 2, 13, 43, 8096, 17, 21, 16023, 1291, 302, 14882, 262, 2829, 800, 3726, 3726, 95, 22, 99, 638, 27, 21, 2042, 6819, 13, 5, 6390, 19, 14409, 6, 30, 25, 2587, 20, 21, 8247, 97, 2451, 15, 568, 156, 761, 1435, 17, 487, 79, 18, 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...
What is the best way to remember technical knowledge in the organization === - Do we use a company wiki? - how about you save the technical documents as part of source control and then have links to them from various source files (to understand how this works see article ... in directory...) what are the pros and cons of these and other methods? any good tools for this purpose?
0
[ 2, 98, 25, 14, 246, 161, 20, 1518, 2447, 1918, 19, 14, 1165, 800, 3726, 3726, 13, 8, 107, 95, 275, 21, 237, 13, 17375, 60, 13, 8, 184, 88, 42, 2079, 14, 2447, 4374, 28, 141, 16, 1267, 569, 17, 94, 57, 6271, 20, 105, 37, 61...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[SQL] Functions vs Stored Procedures === Let's say I have to implement a piece of T-SQL code that must return a table as result. I can implement a table-valued function or else a stored procedure that returns a set of rows. What should I use? In short, what I want to know is: **Which are the main differences between functions and stored procedures?** What considerations do I have to take into account for using one or the other?
0
[ 2, 636, 18, 22402, 500, 3719, 4611, 8214, 8876, 800, 3726, 3726, 408, 22, 18, 395, 31, 57, 20, 8713, 21, 1855, 16, 13, 38, 8, 18, 22402, 1797, 30, 491, 788, 21, 859, 28, 829, 9, 31, 92, 8713, 21, 859, 8, 15165, 43, 1990, 54,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Pass an Object Method as a Parameter in Delphi, and then Call It? === I fear this is probably a bit of a dummy question, but it has me pretty stumped. I'm looking for the simplest way possible to pass a method of an object into a procedure, so that the procedure can call the object's method (e.g. after a timeout, or maybe in a different thread). So basically I want to: - Capture a reference to an object's method. - Pass that reference to a procedure. - Using that reference, call the object's method from the procedure. I figure I could achieve the same effect using interfaces, but I thought there was another way, since this "procedure of object" type declaration exists. The following *doesn't* work, but might it help explain where I'm confused...? interface TCallbackMethod = procedure of object; TCallbackObject = class procedure CallbackMethodImpl; procedure SetupCallback; end; implementation procedure CallbackTheCallback(const callbackMethod: TCallbackMethod); begin callbackMethod(); end; procedure TCallbackObject.CallbackMethodImpl; begin // Do whatever. end; procedure TCallbackObject.SetupCallback; begin // following line doesn't compile - it fails with "E2036 Variable required" CallbackTheCallback(@self.CallbackMethodImpl); end; (Once the question is answered I'll remove the above code unless it aids the explanation somehow.)
0
[ 2, 184, 20, 1477, 40, 3095, 2109, 28, 21, 18906, 19, 23030, 15, 17, 94, 645, 32, 60, 800, 3726, 3726, 31, 1719, 48, 25, 910, 21, 1142, 16, 21, 26660, 1301, 15, 47, 32, 63, 55, 1772, 15781, 69, 9, 31, 22, 79, 699, 26, 14, 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...
Unknown significant moments of computing history === Computing as a discipline in its own right (rather than as a discussion of whether it is Mathematics or Physics) is a reasonably young science. Wherever you trace its roots (e.g. Turing's paper in 1936, Babbage's engines, ATLAS, ENIAC or LEO) it's much younger than most modern nation states. I've been programming (using the loosest definition) for close to 30 years but it still seems to me that I come across parts of its history that are new to me. While it shouldn't surprise me that while I studied computing at school, at University, post-grad and now as a day-job, that there is stuff I don't know, it still causes a small pause when I read an article about something which seems pivotal but about which I know absolutely nothing. For instance, [this news item][1] describes a conference which looks to have sown the seeds for many things that have come since. It was 1968, the world was young, IBM was old, Microsoft and Sun barely in glint in their creators' eyes; the notion of separating hardware and software was new, the largest institutions had networks that numbered in the dozens of machines. Yet some of their conclusions are fresh and remain unresolved, in particular managing large projects. (The [proceedings][2] are fascinating and full of lessons for the future software engineer.) The question is YASOP (*) - what piece of computing history do you think still has significance to our current industry but you feel people don't know enough about? (*) Yet Another Stack Overflow Poll [1]: http://www.theregister.co.uk/2008/10/07/software_engineering_birthday/ [2]: http://www.europrog.ru/book/nato1968e.pdf
4
[ 2, 2562, 1505, 4365, 16, 10626, 447, 800, 3726, 3726, 10626, 28, 21, 7927, 19, 82, 258, 193, 13, 5, 23658, 119, 28, 21, 5460, 16, 1472, 32, 25, 4264, 54, 4339, 6, 25, 21, 19531, 461, 762, 9, 12680, 42, 5565, 82, 5163, 13, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to create automatically managed "last update" field with Microsoft Access === Originally I thought to ask if there would be an easy way to provide automatically managing for last update field with MS Access? After some googling I found following approach: Private Sub Form_Dirty(Cancel As Integer) Me.Last_Update = Date() End Sub which seems to do the job. I thought to share it for others also (and if somebody has some good points that should be concidered, feel free) Best regards, Touko
0
[ 2, 184, 20, 1600, 7499, 1471, 13, 7, 8558, 11100, 7, 575, 29, 7099, 1381, 800, 3726, 3726, 912, 31, 289, 20, 1349, 100, 80, 83, 44, 40, 2010, 161, 20, 1181, 7499, 5616, 26, 236, 11100, 575, 29, 4235, 1381, 60, 75, 109, 162, 55...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 verify if a Windows Service is running === I have an application in C# (2.0 running in XP embedded) that is using a watchdog that is implemented as a Windows Service. When the device boots, this service typically takes some time to start. I'd like to check, from my code, if the service is running. How can I accomplish this? -Edoode
0
[ 2, 184, 92, 31, 21012, 100, 21, 1936, 365, 25, 946, 800, 3726, 3726, 31, 57, 40, 3010, 19, 272, 5910, 13, 5, 135, 9, 387, 946, 19, 23045, 12138, 6, 30, 25, 568, 21, 1455, 8462, 30, 25, 6807, 28, 21, 1936, 365, 9, 76, 14, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Reading the Exchange server time via MAPI === I'd like to calculate the age of the messages in an Exchange mailbox to make sure they sit there for at least a minute before our program (C++, MAPI) processes them. This way the [spam filter we use][1] should have enough time to do its job. Because the time on the PC where our program runs might be different from the time used by the Exchange server, our program has to read the server time via MAPI. Is there an elegant solution to it? One way I can think of is to modify some Item and immediately read its *PR\_LAST\_MODIFICATION\_TIME*, but I'd like to avoid that. [1]: http://www.cloudmark.com/server/
0
[ 2, 1876, 14, 1950, 8128, 85, 1197, 2942, 49, 800, 3726, 3726, 31, 22, 43, 101, 20, 18469, 14, 348, 16, 14, 7561, 19, 40, 1950, 4216, 5309, 20, 233, 562, 59, 2066, 80, 26, 35, 639, 21, 2038, 115, 318, 625, 13, 5, 150, 20512, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
OO Design: Multiple persistance design for a ruby class === I am designing a class for log entries of my mail server. I have parsed the log entries and created the class hierarchy. Now I need to save the in memory representation to the disk. I need to save it to multiple destinations like mysql and disk files. I am at a loss to find out the proper way to design the persistence mechanism. The challenges are: 1. How to pass persistence initialization information like filename, db connection parameters passed to them. The options I can think of are all ugly for eg: 1.1 Constructor: it becomes ugly as I add more persistence. 1.2 Method: Object.mysql_params(" "), again butt ugly 2. "Correct" method name to call each persistance mechanism: eg: Object.save_mysql, Object.save_file, or Object.save (mysql) and Object.save(file) I am sure there is some pattern to solve this particular problem. Any clue is much welcome. raj
0
[ 2, 13, 4328, 704, 45, 1886, 22084, 2416, 704, 26, 21, 10811, 718, 800, 3726, 3726, 31, 589, 15026, 21, 718, 26, 6738, 11399, 16, 51, 4216, 8128, 9, 31, 57, 2017, 18, 69, 14, 6738, 11399, 17, 679, 14, 718, 14417, 9, 130, 31, 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...
Bitfields in C# === So, bitfields. Specifically, large bitfields. I understand how to manipulate individual values in a bitfield, but how would I go about doing this on a large set, such as say: uint[] bitfield = new uint[4] { 0x0080000, 0x00FA3020, 0x00C8000, 0x0FF00D0 }; The specific problem I'm having is doing left and right shifts that carry through across the whole array. So for instance, if I did a `>> 4` on the above array, I'd end up with: uint[4] { 0x0008000, 0x000FA302, 0x000C800, 0x00FF00D }; Now, an (overly) simplistic algorithm here might look something like (this is me writting code on the fly): int shift = 4; for (int i = 0; i <= shift; i++) { for (int j = bitfield.GetUpperBound(0); j > 0; j--) { bitfield[j] = bitfield[j] >> 1; bitfield[j] = bitfield[j] + ((bitfield[j-1] & 1) << (sizeof(uint)*8)); } bitfield[0] = bitfield[0] >> 1; } Is there anything built in that might ease working with this sort of data? `Collections.BitArray` isn't appropriate for memory contraints (it uses `bool`s internally), and it doesn't support this sort of thing anyway.
0
[ 2, 1142, 1109, 18, 19, 272, 5910, 800, 3726, 3726, 86, 15, 1142, 1109, 18, 9, 3524, 15, 370, 1142, 1109, 18, 9, 31, 1369, 184, 20, 18468, 1359, 4070, 19, 21, 1142, 1109, 15, 47, 184, 83, 31, 162, 88, 845, 48, 27, 21, 370, 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...
In ASP.NET MVC I encounter an incorrect type error when rendering a page with the correct typed object === I am developing an application using MVC Preview 5. I have used typed views. After setting debug="false", I have found that I am receiving errors of the form: > "The model item passed into the > dictionary is of type > 'blah.Models.UserAdmin.IndexData' but > this dictionary requires a model item > of type > 'blah.Models.OrganisationAdmin.IndexData'". I do not get these errors when debug is on. I have observed that: - The error seems to be linked to the fact that I have reused some class names (though in different namespaces) for my models. In the sample error above, you will see that both models are called IndexData. - The error only appears when I try to render a view that references a model with a name similar to one that has already been used. For example, if I first execute an action that results in the view blah.Models.OrganisationAdmin.IndexData being set in the ViewDataDictionary, then subsequently execute the action that causes 'blah.Models.UserAdmin.IndexData' to be set in the dictionary, I receive the error message shown above. Please note, I have seen the question "In ASP.NET MVC I encounter an incorrect type error when rendering a user control with the correct typed object". I am facing a similar problem, but I am not using RenderUserControl(). If the non-unique model names are the cause of this error, then a simple solution would be to rename my models. However, I'd prefer to understand what's going wrong and see if there is a nicer solution. Any help gratefully received. Sandy The stack trace: InvalidOperationException: The model item passed into the dictionary is of type 'blah.Models.RoleAdmin.IndexData' but this dictionary requires a model item of type 'blah.Models.UserAdmin.IndexData'.] System.Web.Mvc.ViewDataDictionary`1.SetModel(Object value) +231 System.Web.Mvc.ViewDataDictionary..ctor(ViewDataDictionary viewDataDictionary) +99 System.Web.Mvc.ViewPage`1.SetViewData(ViewDataDictionary viewData) +60 System.Web.Mvc.WebFormView.RenderViewPage(ViewContext context, ViewPage page) +64 System.Web.Mvc.WebFormView.Render(ViewContext viewContext, TextWriter writer) +85 System.Web.Mvc.ViewResult.ExecuteResult(ControllerContext context) +206 System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ActionResult actionResult) +19 System.Web.Mvc.<>c__DisplayClass12.<InvokeActionResultWithFilters>b__f() +18 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +257 System.Web.Mvc.<>c__DisplayClass14.<InvokeActionResultWithFilters>b__11() +20 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +257 System.Web.Mvc.<>c__DisplayClass14.<InvokeActionResultWithFilters>b__11() +20 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ActionResult actionResult, IList`1 filters) +188 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +386 System.Web.Mvc.Controller.ExecuteCore() +112 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +23 System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7 System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +107 System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +39 System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
0
[ 2, 19, 28, 306, 9, 2328, 307, 8990, 31, 7007, 40, 18867, 1001, 7019, 76, 15307, 21, 2478, 29, 14, 4456, 1001, 43, 3095, 800, 3726, 3726, 31, 589, 3561, 40, 3010, 568, 307, 8990, 16121, 331, 9, 31, 57, 147, 1001, 43, 4146, 9, 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...
Python list named indicies. === In PHP I can name my array indicies so that I may have something like:<br /> $shows = Array(0 => Array('id' => 1, 'name' => 'Sesaeme Street'), 1 => Array('id' => 2, 'name' => 'Dora The Explorer'));<br /> <br /> Is this possible in Python?
0
[ 2, 20059, 968, 377, 19, 4673, 1596, 9, 800, 3726, 3726, 19, 13, 26120, 31, 92, 204, 51, 7718, 19, 4673, 1596, 86, 30, 31, 123, 57, 301, 101, 45, 1, 5145, 13, 118, 1, 5579, 9303, 18, 800, 7718, 5, 387, 800, 1, 7718, 5, 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...
Business Object DAL design === When designing business objects I have tried several different methods of writing the data access layer. Some have worked out better than others but I have always felt there must be a "better" way. Can everyone share their DAL implementation methods in hopes of identifiy the best one(s).
0
[ 2, 508, 3095, 6868, 704, 800, 3726, 3726, 76, 15026, 508, 3916, 31, 57, 794, 238, 421, 3195, 16, 1174, 14, 1054, 1381, 5385, 9, 109, 57, 577, 70, 574, 119, 654, 47, 31, 57, 550, 427, 80, 491, 44, 21, 13, 7, 16252, 7, 161, 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...
User configurable security in multi-tenant ASP.NET website === We are building a multi-tenant website in ASP.NET, and we must let each customer configure their own security model. They must be able to define their own roles, and put users in those roles. What is the best way to do this? There are tons of simple examples of page_load events that have code like: if (!user.InGroup("Admin") Response.Redirect("/NoAccess.aspx"); But that hard codes the groups and permissions in the code. How can I make it user configurable?
0
[ 2, 4155, 1065, 13549, 579, 1221, 19, 1889, 8, 1316, 1830, 28, 306, 9, 2328, 2271, 800, 3726, 3726, 95, 50, 353, 21, 1889, 8, 1316, 1830, 2271, 19, 28, 306, 9, 2328, 15, 17, 95, 491, 408, 206, 7705, 1065, 15951, 66, 258, 1221, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Casting in Informix === In Informix, how can I cast a char(8) type into a money type, so that I can compare it to another money type?
0
[ 2, 9087, 19, 10361, 4028, 800, 3726, 3726, 19, 10361, 4028, 15, 184, 92, 31, 1325, 21, 4892, 5, 457, 6, 1001, 77, 21, 875, 1001, 15, 86, 30, 31, 92, 11590, 32, 20, 226, 875, 1001, 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...
Best Practices : Where to place required files === I'm working with a number of 'helper' classes, which affectively have a bunch of static functions which allow the controllers and actions have access to chunks of shared functionality. Problem is that these files have been used as a dumping ground for any functionality which is required across the modules/application and as a result they are > 3k lines in size and at the top they've got about 50 `require_once` declarations! Obviously if a view in the application wan't to use a small part of the functionality available from these helpers it inherits all the required files, and you end up bloating your app. If I were to include the files on a per need basis, I could end up making numerous `require_once` calls to the required files, which has it's own overhead (compounded with frequency), when I need use a large amount of the functionality available from these helper files. So essentially my question is where is the balance struck and is there a best practice that one can employ? Thanks, Flunga
0
[ 2, 246, 5242, 13, 45, 113, 20, 209, 1390, 6488, 800, 3726, 3726, 31, 22, 79, 638, 29, 21, 234, 16, 13, 22, 14593, 106, 22, 2684, 15, 56, 6245, 1284, 102, 57, 21, 7653, 16, 12038, 3719, 56, 1655, 14, 9919, 18, 17, 3078, 57, 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 else can one present an architecture document besides as a series of views? === Most, if not all architecture documents I've seen (and developed) have been presented as a series of views (Logical, Physical, Use-case etc). Is this the preferred layout? What other styles are there?
0
[ 2, 184, 962, 92, 53, 734, 40, 2607, 4492, 3410, 28, 21, 231, 16, 4146, 60, 800, 3726, 3726, 127, 15, 100, 52, 65, 2607, 4374, 31, 22, 195, 541, 13, 5, 290, 885, 6, 57, 74, 1831, 28, 21, 231, 16, 4146, 13, 5, 14126, 15, 182...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
credential cache === does anyone know how to use credential cache or network credential to get the users personal info from the active directory using c# or VB. i need to user personal info such as name, telp id and so on.
0
[ 2, 5059, 43, 10107, 16522, 800, 3726, 3726, 630, 1276, 143, 184, 20, 275, 5059, 43, 10107, 16522, 54, 982, 5059, 43, 10107, 20, 164, 14, 3878, 1319, 15404, 37, 14, 1348, 16755, 568, 272, 5910, 54, 13, 20468, 9, 31, 376, 20, 4155, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Best Practice: include( or <script src=" === I have minified my javascript and my css. Now, Which is better? <script type="text/javascript"> <? $r = file_get_contents('min.js'); if($r) echo $r; ?> </script> OR <script type="text/javascript" src="min.js"></script> Same question for CSS. If the answer is 'sometimes because browsers fetch files simultaneously?' Which browsers, and what are examples of the times in either scenario.
0
[ 2, 246, 1345, 45, 468, 5, 54, 13, 1, 8741, 13, 18, 5453, 3726, 7, 800, 3726, 3726, 31, 57, 4232, 4462, 51, 8247, 8741, 17, 51, 272, 18, 18, 9, 130, 15, 56, 25, 574, 60, 13, 1, 8741, 1001, 3726, 7, 11969, 118, 1004, 1385, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to implement Querystring authentication === I’m developing a website of a client and they are sending out newsletters to their customers (through the website administration interface) The newsletters are personal to each of the subscribed recipients/customers. Each recipient/ customer is also a user with a username/password that enables them to sign in on the website and manage their newsletter subscriptions and participate in the sites community. This all works like a charm. Now my client want a “Manage my subscriptions” link in the newsletter email that when pressed automatically signs the recipient/customer in on the website with no need to remember username and password. This could be easily solved be making a link like this: http://mysite.com/manage.aspx?user=peter&password=hounddog Of course information should not be clear text but encrypted in some way. This however poses a problem since the only way a user can be authenticated on the website if by providing a valid username and password. In the name of security, passwords are stored as hashed values in the database making it impossible for me to insert the password in the link. What is the best way to accomplish this without compromising the security? [1]: http://mysite.com/manage.aspx?user=peter&password=hounddog
0
[ 2, 184, 20, 8713, 25597, 11130, 27963, 800, 3726, 3726, 31, 1, 79, 3561, 21, 2271, 16, 21, 6819, 17, 59, 50, 4907, 70, 17782, 18, 20, 66, 5279, 13, 5, 11639, 14, 2271, 1603, 6573, 6, 14, 17782, 18, 50, 1319, 20, 206, 16, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ServiceProvider, cache etc. done with generics without cast === I'm talking about c# 3.5. I know how to do it when cache or ServiceProvider can have only one instance for the whole application. In this case ServiceProvider can look like this public static class Service<T> { public static T Value {get; set;} } and can be used for different types like this: Service<IDbConnection>.Value = new SqlConnection("..."); Service<IDesigner>.Value = ...; //... IDbCommand cmd = Service<IDbConnection>.Value.CreateCommand(); Static cache is also easy: public static class Cache<T> { private static Dictionary<int, T> cache = new Dictionary<int, T>(); public static void Add(int key, T value) { cache.Add(key, value); } public static T Find(int key) { return cache[key]; } } and can be used like this: Cache<string>.Add(1, "test"); Cache<DateTime>.Add(2, DateTime.Now); //... string found = Cache<string>.Find(1); <br> **My question is**: how can I create similiar cache or service provider when I want to have 2 or more different instances of each. Here is example code, how I want to use service provider: ServiceProvider provider = new ServiceProvider(); provider.Add<IDbConnection>(new SqlConnection("...")); provider.Add<IDesigner>(...); //... ServiceProvider provider1 = new ServiceProvider(); provider1.Add<IDbConnection>(new SqlConnection("...")); //... //... IDbCommand cmd1 = provider.GetService<IDbConnection>().CreateCommand(); IDbCommand cmd2 = provider1.GetService<IDbConnection>().CreateCommand(); The only implementation that I have in my head is using **casting which I want to avoid**. public class ServiceProvider { private Dictionary<Type, object> services = new Dictionary<Type, object>(); public void Add<T>(T value) { services.Add(typeof(T), value); } public T GetService<T>() { return (T) services[typeof (T)]; } }
0
[ 2, 365, 26735, 139, 15, 16522, 2722, 9, 677, 29, 12733, 18, 366, 1325, 800, 3726, 3726, 31, 22, 79, 1582, 88, 272, 5910, 203, 9, 264, 9, 31, 143, 184, 20, 107, 32, 76, 16522, 54, 365, 26735, 139, 92, 57, 104, 53, 4851, 26, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to avoid syntax-highlighting for large files in vim? === Huge files take forever to load and work with in vim, due to syntax-highlighting. I'm looking for a way to limit size of highlighted files, such that files larger than (say) 10MB will be colorless.
0
[ 2, 184, 20, 2658, 22649, 8, 4542, 3130, 68, 26, 370, 6488, 19, 1790, 79, 60, 800, 3726, 3726, 2329, 6488, 247, 3818, 20, 6305, 17, 170, 29, 19, 1790, 79, 15, 397, 20, 22649, 8, 4542, 3130, 68, 9, 31, 22, 79, 699, 26, 21, 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...
Hosted development server. === Does anyone know of a good provider of online development servers? We're starting a new company and ideally we'd have our svn, trac and all that stuff on a hosted server. Needless to say that it has to be extremly reliable, regular (weekly) backups and ideally *nix or Xserve based.
0
[ 2, 2812, 522, 8128, 9, 800, 3726, 3726, 630, 1276, 143, 16, 21, 254, 11747, 16, 2087, 522, 17595, 60, 95, 22, 99, 1422, 21, 78, 237, 17, 5628, 102, 95, 22, 43, 57, 318, 13, 18, 16578, 15, 13, 38, 5797, 17, 65, 30, 3217, 27, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What should be OO and what shouldn't? === I've read a lot of people saying that some things shouldn't be written in an object orientated style - as a person learning the OO style coming from a C background, what do they mean by this? What shouldn't be OO, why do some things fit this design better, and how do we know when it's best to do what?
0
[ 2, 98, 378, 44, 13, 4328, 17, 98, 5714, 22, 38, 60, 800, 3726, 3726, 31, 22, 195, 1302, 21, 865, 16, 148, 1148, 30, 109, 564, 5714, 22, 38, 44, 642, 19, 40, 3095, 13, 9712, 1669, 1034, 13, 8, 28, 21, 840, 2477, 14, 13, 432...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 bookmarklet to delete all cookies within a given domain === I am testing a web app that writes cookies to subdomain.thisdomain.com and several subfolders within that. I'm looking for JavaScript that I can put into a bookmarklet that will delete all cookies under that subdomain, regardless of the folder in which they exist. Any ideas?
0
[ 2, 8247, 8741, 360, 4527, 1336, 20, 27448, 65, 19396, 363, 21, 504, 4603, 800, 3726, 3726, 31, 589, 4431, 21, 2741, 4865, 30, 6215, 19396, 20, 972, 537, 6232, 9, 1565, 537, 6232, 9, 960, 17, 238, 972, 8814, 445, 363, 30, 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...
Sqlite on an embedded system === I have a database file that is generated on a PC using Sqlite. This file is then transferred to an ARM7 based embedded system without an operating system. The embedded system must access this database, but does not need to update it. I have been trying to get sqlite3 small enough for the embedded system, but so far I cannot get the application size under 256 Kbytes (my limit). Has anyone been able to get sqlite3 down to this size? Is there other software that I can use to read this database?
0
[ 2, 4444, 10601, 27, 40, 12138, 329, 800, 3726, 3726, 31, 57, 21, 6018, 3893, 30, 25, 6756, 27, 21, 5168, 568, 4444, 10601, 9, 48, 3893, 25, 94, 2288, 20, 40, 813, 465, 432, 12138, 329, 366, 40, 2455, 329, 9, 14, 12138, 329, 49...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 most hard to understand piece of C++ code you know? === Today at work we came across the following code (some of you might recognize it): #define GET_VAL( val, type ) \ { \ ASSERT( ( pIP + sizeof(type) ) <= pMethodEnd ); \ val = ( *((type *&)(pIP))++ ); \ } Basically we have a byte array and a pointer. The macro returns a reference to a variable of type and advance the pointer to the end of that variable. It reminded me of the several times that I needed to "think like a parser" in order to understand C++ code. Do you know of other code examples that caused you to stop and read it several times till you managed to grasp what it was suppose to do?
0
[ 2, 98, 25, 14, 127, 552, 20, 1369, 1855, 16, 272, 20512, 1797, 42, 143, 60, 800, 3726, 3726, 786, 35, 170, 95, 281, 464, 14, 249, 1797, 13, 5, 3220, 16, 42, 530, 5844, 32, 6, 45, 6926, 546, 7509, 164, 1, 3377, 5, 3347, 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...
Test a site in Mac Firefox === I need to test a site with a dynamic menu in Mac Firefox, but I'm running in Windows. A simple browsershot.com test won't help; I need to actually use the site. How can I acquire a method of doing Mac emulation without physically having a Mac? Is there some kind of remote VM product out there?
0
[ 2, 1289, 21, 689, 19, 1572, 535, 18219, 800, 3726, 3726, 31, 376, 20, 1289, 21, 689, 29, 21, 7782, 11379, 19, 1572, 535, 18219, 15, 47, 31, 22, 79, 946, 19, 1936, 9, 21, 1935, 16495, 7868, 9, 960, 1289, 230, 22, 38, 448, 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 to I find character positions in ANTLR 2? === I have a simple grammar, and have produced a pair of c# classes using antlr 2.7. When the parser finds an error with a token, it throws an exception; I want to find out how many characters into a parsed stream the token came. How do I do that?
0
[ 2, 184, 20, 31, 477, 925, 3062, 19, 40, 38, 12988, 172, 60, 800, 3726, 3726, 31, 57, 21, 1935, 7207, 15, 17, 57, 671, 21, 2146, 16, 272, 5910, 2684, 568, 40, 38, 12988, 172, 9, 465, 9, 76, 14, 2017, 4104, 3797, 40, 7019, 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...
Paver 0.8.1 compatibility with python 2.6 === Does anyone manage to bootstrap its development area using paver with python 2.6 ? I have install python 2.6, install paver with easy_install-2.6, everything looks fine. But when I try to launch the bootstrap method it raises an urllib2.HTTPError (: HTTP Error 404: Not Found) while trying to download http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c8-py2.6.egg. I have tryed to add the correct setuptools EGG file (which is 0.6c9) in the support-files directory, bootstrap.py find the EGG file, but doesn't seem to use it because it still try to download the 0.6c8 version which is no more available. Any ideas how to solve this issue ? Thanks in advance Bertrand
0
[ 2, 1562, 2304, 713, 9, 457, 9, 165, 13, 21618, 29, 20059, 172, 9, 379, 800, 3726, 3726, 630, 1276, 4705, 20, 5894, 16514, 82, 522, 217, 568, 1562, 2304, 29, 20059, 172, 9, 379, 13, 60, 31, 57, 16146, 20059, 172, 9, 379, 15, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Do you validate your URL variables? === When you're passing variables through your site using GET requests, do you validate (regular expressions, filters, etc.) them before you use them? Say you have the URL http://www.example.com/i=45&p=custform. You know that "i" will always be an integer and "p" will always contain only letters and/or numbers. Is it worth the time to make sure that no one has attempted to manipulate the values and then resubmit the page?
0
[ 2, 107, 42, 7394, 1373, 154, 287, 6362, 12157, 60, 800, 3726, 3726, 76, 42, 22, 99, 2848, 12157, 120, 154, 689, 568, 164, 12279, 15, 107, 42, 7394, 1373, 13, 5, 25049, 13832, 15, 21062, 15, 2722, 9, 6, 105, 115, 42, 275, 105, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you test if something is hidden in jQuery? === In jQuery, suppose you have an element of some kind that you're hiding and showing, using `.hide()`, `.show()` or `.toggle()`. How do you test to see if that element is currently hidden or visible on the screen?
0
[ 2, 184, 107, 42, 1289, 100, 301, 25, 3689, 19, 487, 8190, 93, 60, 800, 3726, 3726, 19, 487, 8190, 93, 15, 5787, 42, 57, 40, 4520, 16, 109, 825, 30, 42, 22, 99, 5314, 17, 3187, 15, 568, 13, 1, 9, 19522, 5, 6, 1, 15, 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...
Sizing an MFC Window === I have an MFC app which I have been working on for a few weeks now, I want to manually set the dimensions of the main frame when it is loaded, can someone give me a hand with this, specifically where to put the code as well? Thanks!
0
[ 2, 13, 18, 3335, 40, 307, 7061, 1463, 800, 3726, 3726, 31, 57, 40, 307, 7061, 4865, 56, 31, 57, 74, 638, 27, 26, 21, 310, 1342, 130, 15, 31, 259, 20, 23671, 309, 14, 9913, 16, 14, 407, 3523, 76, 32, 25, 8572, 15, 92, 737, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 PHP (>= 5.0), is passing by reference faster? === In PHP, function parameters can be passed by reference by prepending an ampersand to the parameter in the function declaration, like so: function foo(&$bar) { // ... } Now, I am aware that this is <i>not</i> designed to improve performance, but to allow functions to change variables that are normally out of their scope. Instead, PHP seems to use Copy On Write to avoid copying objects (and maybe also arrays) until they are changed. So, for functions that do not change their parameters, the effect should be the same as if you had passed them by reference. However, I was wondering if the Copy On Write logic maybe is shortcircuited on pass-by-reference and whether that has any performance impact.
0
[ 2, 19, 13, 26120, 13, 5, 1, 3726, 331, 9, 387, 6, 15, 25, 2848, 34, 2801, 4233, 60, 800, 3726, 3726, 19, 13, 26120, 15, 1990, 12905, 92, 44, 1100, 34, 2801, 34, 15884, 7601, 40, 589, 7490, 290, 20, 14, 18906, 19, 14, 1990, 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...
Multiple Inheritance in C# === Since multiple inheritance is bad (it makes the source more complicated) C# does not provide such a pattern directly. But sometimes it would be helpful to have this ability. For instance I'm able to implement the missing multiple inheritance pattern using interfaces and three classes like that: public interface IFirst { void FirstMethod(); } public interface ISecond { void SecondMethod(); } public class First:IFirst { public void FirstMethod() { Console.WriteLine("Frist"); } } public class Second:ISecond { public void SecondMethod() { Console.WriteLine("Second"); } } public class FirstAndSecond: IFirst, ISecond { First first = new First(); Second second = new Second(); public void FirstMethod() { first.FirstMethod(); } public void SecondMethod() { second.SecondMethod(); } } Every time I add a method to one of the interfaces I need to change the class *FirstAndSecond* as well. Is there a way to inject multiple existing classes into one new class like it is possible in C++? Maybe there is a solution using some kind of code generation? Or it may look like this (imaginary c# syntax): public class FirstAndSecond: IFirst from First, ISecond from Second { } So that there wont be a need to update the class FirstAndSecond when I modify one of the interfaces.
0
[ 2, 1886, 13852, 19, 272, 5910, 800, 3726, 3726, 179, 1886, 13852, 25, 896, 13, 5, 242, 1364, 14, 1267, 91, 8343, 6, 272, 5910, 630, 52, 1181, 145, 21, 3732, 1703, 9, 47, 1030, 32, 83, 44, 15600, 20, 57, 48, 2165, 9, 26, 4851, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 distributed source control considered harder? === It seems rather common (around here, at least) for people to recommend SVN to newcomers to source control because it's "easier" than one of the distributed options. As a very casual user of SVN before switching to Git for many of my projects, I found this to be not the case at all. It is conceptually *easier* to set up a DCVS repository with `git init` (or whichever), without the problem of having to set up an external repository in the case of SVN. And the base functionality between SVN, Git, Mercurial, Bazaar all use essentially identical commands to commit, view diffs, and so on. Which is all a newcomer is really going to be doing. The small difference in the way Git requires changes to be explicitly added before they're committed, as opposed to SVN's "commit everything" policy, is conceptually simple and, unless I'm mistaken, not even an issue when using Mercurial or Bazaar. So why is SVN considered easier? I would argue that this is simply not true.
0
[ 2, 483, 25, 4387, 1267, 569, 724, 5229, 60, 800, 3726, 3726, 32, 2206, 864, 757, 13, 5, 10037, 235, 15, 35, 639, 6, 26, 148, 20, 12360, 13, 18, 16578, 20, 14345, 18, 20, 1267, 569, 185, 32, 22, 18, 13, 7, 3537, 18, 1944, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What happens when I edit web.config? === I need to edit the web.config file on a live Sharepoint environment, but I'm unsure what will happen if I do (I want to output custom errors). Will this cause the IIS6 worker process to recycle? Will active users lose their session state because of this? Or can I safely edit the file?
0
[ 2, 98, 5531, 76, 31, 9392, 2741, 9, 14093, 2816, 60, 800, 3726, 3726, 31, 376, 20, 9392, 14, 2741, 9, 14093, 2816, 3893, 27, 21, 515, 1891, 3132, 2307, 15, 47, 31, 22, 79, 13815, 98, 129, 2384, 100, 31, 107, 13, 5, 49, 259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unable to start debug in Visual Studio 2005 === My "Start debugging" button and element menu are greyed out... but only on one of my projects. I have no idea what I have done to disable it.
0
[ 2, 2343, 20, 799, 121, 16254, 19, 3458, 1120, 812, 800, 3726, 3726, 51, 13, 7, 13680, 121, 16254, 2762, 7, 5167, 17, 4520, 11379, 50, 2682, 69, 70, 9, 9, 9, 47, 104, 27, 53, 16, 51, 2314, 9, 31, 57, 90, 882, 98, 31, 57, 67...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
When does a DropDownList retain the value from postback at the SelectedIndexChanged Event Handler === I have a DropDownList on an aspx page which is being used in multiple projects. Along the life cycle of the page the SelectedValue is changed prior to the handling of the SelectedIndexChanged event. In one project when the code reaches the event handler the SelectedValue is back to what was posted from the client, while in the other the new SelectedValue is present. Viewstate is on in both cases, the control is not being rebound and follows the exact same flow from all that I can gather. I actually need the posted value at the point of the event handler like is happening in the first project but do not understand why it would be changing back to the posted value and how to replicate this behavior in the second project. I will be happy to clarify further if any of this is unclear.
0
[ 2, 76, 630, 21, 2804, 2968, 5739, 8201, 14, 1923, 37, 678, 1958, 35, 14, 1704, 25671, 16229, 43, 807, 24641, 800, 3726, 3726, 31, 57, 21, 2804, 2968, 5739, 27, 40, 28, 306, 396, 2478, 56, 25, 142, 147, 19, 1886, 2314, 9, 303, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Form Elements in ASP.NET Master Pages and Content Pages === OK, another road bump in my current project. I have never had form elements in **both** my master and content pages, I tend to have all the forms in the content where relevant. In the current project however, we have a page where they want both. **A login form at the top right, and a questions form in the content.** Having tried to get this in, I have run in to the issue of ASP.NET moaning about the need for a single form element in a master page. TBH, I really dont get why this is a requirement on ASP.NET's part, but hey ho. **Does anyone know if/how I can get the master and content pages to contain form elements that work independantly?** If not, can you offer advice on how to proceed to get the desired look/functionality?
0
[ 2, 505, 2065, 19, 28, 306, 9, 2328, 1129, 4434, 17, 2331, 4434, 800, 3726, 3726, 5854, 15, 226, 383, 9797, 19, 51, 866, 669, 9, 31, 57, 243, 41, 505, 2065, 19, 13, 1409, 8110, 1409, 51, 1129, 17, 2331, 4434, 15, 31, 5480, 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...
Under an MVC framework, which directory structure would be expected by other developers? === Generally, MVC frameeworks have a structure that looks something like: /models /views /controllers /utils However, in a web application suite, I've decided that clumping all models, views, and controllers together probably wouldn't be the best for clarity, unless I treated the system as one application instead of an application suite. However, some things tie every "application" together, like the notion of users and user roles. So I have three possible solutions: (1) Do what I don't really want to do, and keep every model, view, and controller together, regardless of which app it belongs to. This is treating the suite as a single application, since they are tied together by several common threads, including users. (2) Group the code by application. /app1 /models /views /controllers /utils /app2 /models /views /controllers /utils (3) Group the code by type, letting utility code be shared among all of the applications. /models /app1 /app2 /views /app1 /app2 /controllers /app1 /app2 /utils Is there an option I missed? What would be the most logical scheme for future developers? I personally prefer 2 and 3, but perhaps most people would expect 1.
0
[ 2, 131, 40, 307, 8990, 6596, 15, 56, 16755, 1411, 83, 44, 1727, 34, 89, 10168, 60, 800, 3726, 3726, 1469, 15, 307, 8990, 3523, 62, 7684, 57, 21, 1411, 30, 1879, 301, 101, 45, 13, 118, 13998, 18, 13, 118, 4725, 18, 13, 118, 128...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 MySql 5.0 have a view of a table located on another server === Can MySql 5.0 views use tables that are located on another server? What is the syntax for creating such a view?
0
[ 2, 92, 51, 18, 22402, 331, 9, 387, 57, 21, 1418, 16, 21, 859, 335, 27, 226, 8128, 800, 3726, 3726, 92, 51, 18, 22402, 331, 9, 387, 4146, 275, 7484, 30, 50, 335, 27, 226, 8128, 60, 98, 25, 14, 22649, 26, 2936, 145, 21, 1418, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Select all child elements except the first === Say I have the following: <ul> <li>First item</li> <li>Second item</li> <li>Third item</li> </ul> How would I select all the child elements after the first one using jQuery? So I can achieve something like: <ul> <li>First item</li> <li class="something">Second item</li> <li class="something">Third item</li> </ul>
0
[ 2, 5407, 65, 850, 2065, 1613, 14, 64, 800, 3726, 3726, 395, 31, 57, 14, 249, 45, 13, 1, 1287, 1, 13, 1, 1210, 1, 3552, 9101, 1, 118, 1210, 1, 13, 1, 1210, 1, 5007, 9101, 1, 118, 1210, 1, 13, 1, 1210, 1, 8932, 9101, 1, 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...
What is the best way to solve an Objective-C namepsace collision? === Objective-C has no namespaces, it's much like C, everything is within one global namespace. Common practice is to prefix classes with initials, e.g. if you are working at IBM, you could prefix them with "IBM", if you work for Microsoft, you could use "MS" and so on. Sometimes the initial refer to the project, e.g. Adium prefixes classes with "AI" (as there is no company behind it of that you could take the initials). Apple prefixes classes with NS and says this prefix is reserved for Apple only. So far so well. But appending 2 to 4 letters to a class name in front is a very, very limited namespace. E.g. MS or AI could have an entirely different meaning and some other developer might decide to use this and create an equally named class. *Bang*, namespace collision. Okay, if this is a collision between one of your classes and one of an external framework you are using, you can easily change the naming of your class, no big deal. But what if you use two external frameworks, both frameworks of that you don't have the source and that you can't change? Your application links against both of them and you get name conflicts. How would you go about solving them? What is the best way to work around these, so you can still use both classes? In C you can work around these by not linking directly to the library, instead you load the library at runtime, using dlopen(), then find the symbol you are looking for using dlsym() and assign it to a global symbol (that you can name any way you like) and then access it through this global symbol. E.g. if you have a conflict because some C library has a function named open(), you could define a variable named myOpen and have it point to the open() function of the library, thus when you want to use the system open(), you just use open() and when you want to use the other one, you access it via the myOpen identifier. Is something similar possible in Objective-C and if not, is there any other clever, tricky solution you can use to avoid a namespace conflict and you are still able to access both classes in your application (e.g. you can still created instances of both classes)? Any ideas?
0
[ 2, 98, 25, 14, 246, 161, 20, 8402, 40, 7038, 8, 150, 204, 1919, 6174, 11319, 60, 800, 3726, 3726, 7038, 8, 150, 63, 90, 204, 5582, 18, 15, 32, 22, 18, 212, 101, 272, 15, 796, 25, 363, 53, 2062, 204, 5582, 9, 757, 1345, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Properly file Designer Files in ASP.NET Web Sites === I need to get existing web pages into an existing ASP.NET web site in Visual Studio 2008. I simply tried to drag and drop the whole file folder content into the Visual Studio Solution Explorer or even to copy them into the web site folder. Both ways, Visual Studio seems unable to map the .designer.cs files to the corresponding .aspx (or .master) file, even after restarting the whole IDE. The Solution Explorer entry looks in a way like this: - Main.aspx Main.aspx.cs Main.aspx.designer.cs Can I make Visual Studio file the designer-file below the aspx-file in any way? Building the website becomes a problem too that way, but that's the next problem I'm going to work on. :-) I strongly hope there is a simpler way than manualle creating each file and copying and pasting the contents into each file by hand. Thank you for any idea! Cheers Matthias
0
[ 2, 7428, 3893, 4742, 6488, 19, 28, 306, 9, 2328, 2741, 3259, 800, 3726, 3726, 31, 376, 20, 164, 3149, 2741, 4434, 77, 40, 3149, 28, 306, 9, 2328, 2741, 689, 19, 3458, 1120, 570, 9, 31, 1659, 794, 20, 5501, 17, 2804, 14, 979, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Getting selected members from multiselect list view ctrl === I have a list view control which at the moment only allows one item to be selected. I then read this via the following code: void CApp::OnNMClickList1(NMHDR *pNMHDR, LRESULT *pResult) { int nSelected = (m_List.GetSelectionMark()); ... However, now I want to make this list able to multiselect, GetSelectionMark() always returns one index. Can anyone help me recode this to return a list of selected indexes?
0
[ 2, 1017, 1704, 443, 37, 1889, 18, 16964, 968, 1418, 13, 4812, 6362, 800, 3726, 3726, 31, 57, 21, 968, 1418, 569, 56, 35, 14, 688, 104, 2965, 53, 9101, 20, 44, 1704, 9, 31, 94, 1302, 48, 1197, 14, 249, 1797, 45, 11364, 21764, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# re-throw exception === I have a question for you because my partner is doing a different way than I do. Is it better to do this : try { ... } catch (Exception ex) { ... throw; } or that : try { ... } catch (Exception ex) { ... throw ex; } or does it do the same thing?
0
[ 2, 272, 5910, 302, 8, 21440, 5391, 800, 3726, 3726, 31, 57, 21, 1301, 26, 42, 185, 51, 2417, 25, 845, 21, 421, 161, 119, 31, 107, 9, 25, 32, 574, 20, 107, 48, 13, 45, 1131, 13, 1, 13, 9, 9, 9, 13, 1, 2949, 13, 5, 10066, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python, unit-testing and mocking imports === I am in a project where we are starting refactoring some massive code base. One problem that immediately sprang up is that each file imports a lot of other files. How do I in an elegant way mock this in my unit test without having to alter the actual code so I can start to write unit-tests?
0
[ 2, 20059, 15, 1237, 8, 10543, 68, 17, 18446, 20617, 800, 3726, 3726, 31, 589, 19, 21, 669, 113, 95, 50, 1422, 302, 17455, 68, 109, 3787, 1797, 1000, 9, 53, 1448, 30, 1375, 17548, 71, 25, 30, 206, 3893, 20617, 21, 865, 16, 89, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 setting up local server === I'm trying to setup an Apache/PHP/Postgresql server locally on my machine. I tried to install everything manually (one thing at a time) and after I get everything up and running, whenever I try to run a script on my machine, I get a "What do you want to do with the *.php file?" dialog. I already tried to mess around a bit with the Apache conf file, but since I don't know much about what I'm doing, I reinstalled everything again and the problem is still there. I kinda get the feeling it must have something to do with the PHP thingy isn't correctly installed. Anyone can help? Thanks!
0
[ 2, 1448, 2697, 71, 375, 8128, 800, 3726, 3726, 31, 22, 79, 749, 20, 18161, 40, 17140, 118, 26120, 118, 6962, 6879, 18, 22402, 8128, 6680, 27, 51, 1940, 9, 31, 794, 20, 16146, 796, 23671, 13, 5, 849, 584, 35, 21, 85, 6, 17, 75,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 I create a keyboard hook with a difrent thread in C# === Im creating a low level keyboard hook in c# using SetWindowsHookEx, question is how can I make the on keyboard event function run on a thread other from the main thread? Also I currently don't have a thread other then the main thread so how can I create on that will halt untill a keybaord hook event will uccure?
0
[ 2, 184, 31, 1600, 21, 8896, 5559, 29, 21, 13, 43, 821, 8993, 9322, 19, 272, 5910, 800, 3726, 3726, 797, 2936, 21, 708, 662, 8896, 5559, 19, 272, 5910, 568, 309, 27508, 18, 20378, 1706, 15, 1301, 25, 184, 92, 31, 233, 14, 27, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
LINQ query to WebControl.Controls === I have three TextBox controls on the page <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True" OnTextChanged="TextBox_TextChanged" TabIndex="1"> <asp:TextBox ID="TextBox2" runat="server" AutoPostBack="True" OnTextChanged="TextBox_TextChanged" TabIndex="2"> <asp:TextBox ID="TextBox3" runat="server" AutoPostBack="True" OnTextChanged="TextBox_TextChanged" TabIndex="3"> and an event handler protected void TextBox_TextChanged(object sender, EventArgs e) { WebControl changed_control = (WebControl)sender; var next_controls = from WebControl control in changed_control.Parent.Controls where control.TabIndex > changed_control.TabIndex orderby control.TabIndex select control; next_controls.DefaultIfEmpty(changed_control).First().Focus(); } The meaning of this code is to automatically select TextBox with next TabIndex after page post back (see [Little JB's problem][1]). In reality I receive InvalidCastException because it's impossible to cast from System.Web.UI.LiteralControl (WebControl.Controls contains actually LiteralControls) to System.Web.UI.WebControls.WebControl. I am interested is it possible to modify this aproach somehow to receive working solution? Thank you! [1]: http://stackoverflow.com/questions/173810/autopostback-with-textbox-loses-focus-question-made-clearer
0
[ 2, 6294, 1251, 25597, 20, 2741, 12898, 9, 12898, 18, 800, 3726, 3726, 31, 57, 132, 1854, 5309, 8671, 27, 14, 2478, 13, 1, 472, 306, 45, 11969, 5309, 4924, 3726, 7, 11969, 5309, 165, 7, 485, 721, 3726, 7, 10321, 106, 7, 3108, 696...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Alternatives for java sql PreparedStatement IN clause issue? === I'm looking for the best workarounds for the PreparedStatement "IN clause" issue, which apparently is not supported for multiple values due to sql injection attack security issues: One ?, One value. Not a list of values. To illustrate: select my_column from my_table where search_column in (?) then using `ps.setString(1, "'A', 'B', 'C'");` will not work because it's essentially a bogus workaround of the whole point of using the ? in the first place, as I mentioned above. Ideas for workarounds? I don't want to have to execute the prepared statement multiple times, once for each value (without the IN clause), but that's where I am at this point.
0
[ 2, 2676, 18, 26, 8247, 4444, 255, 3268, 3859, 1130, 19, 9040, 1513, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 14, 246, 170, 10037, 18, 26, 14, 3268, 3859, 1130, 13, 7, 108, 9040, 7, 1513, 15, 56, 3083, 25, 52, 1827, 26, 1886, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Pathing in a non-geographic environment === For a school project, I need to create a way to create personnalized queries based on end-user choices.<br /> Since the user can choose basically any fields from any combination of tables, I need to find a way to map the tables in order to make a join and not have extraneous data (This may lead to incoherent reports, but we're willing to live with that). For up to two tables, I already managed to design an algorithm that works fine. However, when I add another table, I can't find a way to path through my database. All tables available for the personnalized reports can be linked together so it really all falls down to finding which path to use.
0
[ 2, 2013, 68, 19, 21, 538, 8, 834, 11113, 2307, 800, 3726, 3726, 26, 21, 116, 669, 15, 31, 376, 20, 1600, 21, 161, 20, 1600, 840, 5025, 1333, 9386, 2829, 432, 27, 241, 8, 16704, 10978, 9, 1, 5145, 13, 118, 1, 179, 14, 4155, 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 we get people to participate in team building? === Ok fine, programmers aren't very social. There are a couple people on my team that rarely say a word to anyone else. They won't go to lunch with the rest of the team when we go out, regardless of who pays or where we go. My boss has offered to buy everyone drinks, and one of them went to that, but the other one wasn't interested. What's the best way to make everyone comfortable with team building? Maybe these people just aren't interested in getting to know the rest of the team. If that's the case, what's the best way to not make them feel singled out when they decline invitations to do stuff?
0
[ 2, 184, 92, 95, 164, 148, 20, 3705, 19, 173, 353, 60, 800, 3726, 3726, 5854, 1123, 15, 17968, 18, 4847, 22, 38, 253, 668, 9, 80, 50, 21, 1335, 148, 27, 51, 173, 30, 5664, 395, 21, 833, 20, 1276, 962, 9, 59, 230, 22, 38, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Operator => === Answers to a recent post (Any chances to imitate times() Ruby method in C#?) use the <b>=></b> operator in the usage examples. What does this operator do? I can't locate it in my C# book, and it is hard to search for symbols like this online. (I couldn't find it.)
0
[ 2, 6022, 800, 1, 800, 3726, 3726, 6709, 20, 21, 1764, 678, 13, 5, 6001, 11285, 20, 22823, 436, 5, 6, 10811, 2109, 19, 272, 5910, 60, 6, 275, 14, 13, 1, 220, 1, 3726, 1, 118, 220, 1, 6022, 19, 14, 7514, 3770, 9, 98, 630, 48...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where should assets go in a code igniter project? === I'm just starting with CI, and am not sure where things such as css, js, images should go. Outside the whole system folder seems ok, but that means everything is seperate. Inside mean s the filepaths are longer and I'm worried that it might mess things up. What's the official line on this?
0
[ 2, 113, 378, 6223, 162, 19, 21, 1797, 31, 16606, 815, 669, 60, 800, 3726, 3726, 31, 22, 79, 114, 1422, 29, 5486, 15, 17, 589, 52, 562, 113, 564, 145, 28, 272, 18, 18, 15, 487, 18, 15, 3502, 378, 162, 9, 719, 14, 979, 329, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse === I recently read this Phil Haack post ([The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse][1]) from last year, and thought I'd see if anyone has any additions to the list. [1]: http://haacked.com/archive/2007/06/13/the-most-useful-.net-utility-classes-developers-tend-to-reinvent.aspx
0
[ 2, 127, 4811, 13, 9, 2328, 10082, 2684, 10168, 5480, 20, 7102, 6645, 864, 119, 302, 3699, 800, 3726, 3726, 31, 1989, 1302, 48, 3595, 1458, 8735, 678, 13, 5, 2558, 124, 127, 4811, 13, 9, 2328, 10082, 2684, 10168, 5480, 20, 7102, 66...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
php(pdo) and mssql connection and i18n issues === In our web-app we use PHP5.2.6 + PDO to connect to a MSSQL 2005 database and store russian texts. Database collation is `Cyrillic_General_CI_AS`, table collation is `Cyrillic_General_CI_AS`, column type is `NVARCHAR(MAX)`. We tried connecting to a database using two following schemes, both causing different problems. 1. _PDO mssql:_ $dbh = new PDO ('mssql:host='.$mssql_server.';dbname='.$mssql_db, $mssql_login, $mssql_pwd); in which case a result of a simple query like that: SELECT field1 FROM tbl1 WHERE id=1 shows `field1` data truncated to 255 bytes. 2. _PDO odbc:_ $dbh = new PDO ('odbc:DSN=myDSN;UID='.$mssql_login.';PWD='.$mssql_pwd); in which case a result of the same query shows full not truncated data but with question marks instead of russian symbols. --- Notes: - In the SQL Management Studio data is not truncated and russian symbols are displayed properly as well. - We have Windows 2003 Enterprise Edition SP2 So what should we choose as a connection method and how to fix corresponding issues?
0
[ 2, 13, 26120, 5, 306, 537, 6, 17, 4235, 18, 22402, 2760, 17, 31, 1087, 103, 1549, 800, 3726, 3726, 19, 318, 2741, 8, 7753, 95, 275, 13, 26120, 264, 9, 135, 9, 379, 2754, 351, 537, 20, 6379, 20, 21, 4235, 18, 22402, 812, 6018, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 increase the allowed decorated name length in VC9 (MSVC 2008)? === I have a rather large and complex set of programs to port from VC8 to VC9. One of the modules has a number of layered typedefs, which cause the compiler to generate a C4503 warning (decorated name truncated). The generated LIB file will not properly link to other modules in the project. VC8 had no trouble with this, leading me to conclude that either the decoration process has changed to generate even longer names, or the internal limit for the length of a decorated name has decreased. What's the best way to get over this? For legacy code reasons, the MSDN suggestion of replacing typedefs with structs is not practical. The typedefs in question are (sanitized code): enum Type{ TYPE_COUNT, TYPE_VALUE }; typedef MyVector< Container*, CriticalSectionLock > Containers; typedef MyVector< MyClassType*, CriticalSectionLock >::const_iterator const_iterator_type; typedef MyVector< stl::pair< string, Type > >::const_iterator const_iterator_def; typedef MyVector< Container** >::const_iterator const_iterator_container; typedef MyVector< stl::pair < MyBase*, MyVector< stl::pair< Container**, Containers* > > > >::const_iterator const_iterator;
0
[ 2, 184, 107, 31, 1839, 14, 1159, 6933, 204, 1476, 19, 13, 8990, 518, 13, 5, 79, 18, 8990, 570, 6, 60, 800, 3726, 3726, 31, 57, 21, 864, 370, 17, 1502, 309, 16, 1726, 20, 1295, 37, 13, 8990, 457, 20, 13, 8990, 518, 9, 53, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why does my Delphi 7 Debugger randomly decide to stop accepting certain keyboard input === Maybe this is an overarching question as I've seen similar bugs in Firefox and I'd like to know how to avoid coding them. For no apparent reason, the function keys, arrow keys (de-numlocked numpad as well), the 6 keys over the arrows, and backspace stop working. Every other key seems to work leading me to think it's some sort of interrupt issue. It works again when I restart Delphi. This is on an IBM Model M keyboard so certainly it couldn't be a hardware issue, although if someone knows better I won't be that naive, I've noticed this with different keyboards. I'm not actually interested in a fix for Delphi, I just would like to know how to avoid keyboard input bugs. I'm most certainly debugging bug laden code. I just wonder why it causes parts of the keyboard to malfunction.
0
[ 2, 483, 630, 51, 23030, 453, 121, 2345, 11356, 21324, 4073, 20, 747, 10894, 1200, 8896, 6367, 800, 3726, 3726, 913, 48, 25, 40, 84, 24377, 1301, 28, 31, 22, 195, 541, 835, 13925, 19, 535, 18219, 17, 31, 22, 43, 101, 20, 143, 184...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 round floats in perl. === How can I round a decimal number to the nearest integer? e.g. 1.2 = 1 1.7 = 2
0
[ 2, 184, 107, 42, 560, 11510, 18, 19, 416, 255, 9, 800, 3726, 3726, 184, 92, 31, 560, 21, 26380, 234, 20, 14, 6557, 13820, 60, 13, 62, 9, 263, 9, 137, 9, 135, 800, 137, 137, 9, 465, 800, 172, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
jEE war files === is it possible to include/embed one JEE application(war file) inside another? i have an application which is a portal application and i want to allow other users add there applications to it. In order to do this i need some way to be able access there applications in mine. Is this possibe?
0
[ 2, 13, 13412, 176, 6488, 800, 3726, 3726, 25, 32, 938, 20, 468, 118, 1503, 4283, 53, 13, 13412, 3010, 5, 1885, 3893, 6, 572, 226, 60, 31, 57, 40, 3010, 56, 25, 21, 8281, 3010, 17, 31, 259, 20, 1655, 89, 3878, 3547, 80, 3767, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which PHP CMS has the best architecture? === In your opinion, which PHP CMS has the best architecture? I don't care about how easy its admin panel is to use, or how many CMS features it has. Right now, I'm after how good its *code* is (so, please, don't even mention Drupal or Wordpress /shudder). I want to know which ones have a good, solid, OOP codebase. Please provide as much detail as you can in your replies.
4
[ 2, 56, 13, 26120, 2390, 18, 63, 14, 246, 2607, 60, 800, 3726, 3726, 19, 154, 4052, 15, 56, 13, 26120, 2390, 18, 63, 14, 246, 2607, 60, 31, 221, 22, 38, 781, 88, 184, 2010, 82, 21, 43, 2160, 4113, 25, 20, 275, 15, 54, 184, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to convert VB.net interface with enum to C# === I have the following VB.net interface that I need to port to C#. C# does not allow enumerations in interfaces. How can I port this without changing code that uses this interface? Public Interface MyInterface Enum MyEnum Yes = 0 No = 1 Maybe = 2 End Enum ReadOnly Property Number() As MyEnum End Interface
0
[ 2, 184, 20, 8406, 13, 20468, 9, 2328, 6573, 29, 1957, 723, 20, 272, 5910, 800, 3726, 3726, 31, 57, 14, 249, 13, 20468, 9, 2328, 6573, 30, 31, 376, 20, 1295, 20, 272, 5910, 9, 272, 5910, 630, 52, 1655, 26940, 5757, 19, 6573, 18...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to determine the order of listeners in web.xml === I got a bunch of servlet context listeners in my Java webapp, each of them gathering some information about the environment. Some of the depend on information which is gathered by another listener. But I can't determine the order in which the listeners are registered and called, so I have to duplicate code. I understand that the listeners are registered in the order their order in web.xml but this sounds a bit vague to me, too vague to rely on it. Do you have a hint how I can solve my problem?
0
[ 2, 184, 20, 3746, 14, 389, 16, 15672, 19, 2741, 9, 396, 8184, 800, 3726, 3726, 31, 330, 21, 7653, 16, 13, 10321, 1336, 4141, 15672, 19, 51, 8247, 2741, 7753, 15, 206, 16, 105, 5822, 109, 676, 88, 14, 2307, 9, 109, 16, 14, 1254...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Advice on starting a business: getting clients === I'm currently working as a developer at a web development agency, but I've long aspired to run my own business. I disagree with present management, and feel I could do infinitely better. I've done many business-like things before - organized events, run a very large and successful website, some publishing. I've been saving up, and have enough money to get me by for a 3-5 months. My business will be a one-man show to begin with, until I can build up a roster of clients, at which point I'll hire others only if absolutely, 100% necessary. I'm going to work with a graphics design freelancer, who will come up with site designs (if I feel it's out of my scope) - my main focus will be backend development. It's basically what I do now, but working for myself, cutting out the middle man, without the waste and depression. I have a fairly good plan of action for getting clients - I have a marketing budget, and I'll provide a "client information pack". But I was hoping to hear from other one-man, or small development shops their advice on getting clients. I intend to leave my job this month, possibly next, and needless to say, I'm a little worried. It's that hurdle of building up a client list that I'll have to overcome, and I just want to know I'm doing all that I can. Thank you!
2
[ 2, 4978, 27, 1422, 21, 508, 45, 1017, 7421, 800, 3726, 3726, 31, 22, 79, 871, 638, 28, 21, 10058, 35, 21, 2741, 522, 2344, 15, 47, 31, 22, 195, 175, 21, 11421, 43, 20, 485, 51, 258, 508, 9, 31, 18276, 29, 734, 1097, 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...
What is the best format for a customer number, order number? === A large international company deploys a new web and MOTO (Mail Order and Telephone Order) handling system. Among other things you are tasked to design format for both order and customer identification numbers. What would be the best format in your opinion? Please list any assumptions and considerations.
0
[ 2, 98, 25, 14, 246, 2595, 26, 21, 7705, 234, 15, 389, 234, 60, 800, 3726, 3726, 21, 370, 294, 237, 17617, 18, 21, 78, 2741, 17, 13, 6428, 13, 5, 8079, 389, 17, 5600, 389, 6, 7988, 329, 9, 497, 89, 564, 42, 50, 14605, 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...
How to disable "Security Alert" window in Webbrowser control === I'm using Webbrowser control to login to HTTPS site with "untrusted certificate". but I get popup such standart window "Security Alert" about untrusted certificate: [http://s39.radikal.ru/i085/0810/ff/7fdbb47008c9.jpg][1] ![pic][2] I have to find this window by title and send it "ALT + Y" to press 'YES': int iHandle = NativeWin32.FindWindow(null, "Security Alert"); NativeWin32.SetForegroundWindow(iHandle); System.Windows.Forms.SendKeys.Send("Y%"); **but user can see a flickering of this window:( how can I ignore this alert? or disable this "untrusted certificate" check in Webbrowser control?** thanks in advance! Paul. [1]: http://s39.radikal.ru/i085/0810/ff/7fdbb47008c9.jpg [2]: http://s39.radikal.ru/i085/0810/ff/7fdbb47008c9.jpg
0
[ 2, 184, 20, 1460, 579, 13, 7, 17749, 7863, 7, 1463, 19, 10192, 5417, 4104, 569, 800, 3726, 3726, 31, 22, 79, 568, 10192, 5417, 4104, 569, 20, 6738, 108, 20, 7775, 18, 689, 29, 13, 7, 1020, 11592, 69, 6259, 7, 9, 47, 31, 164, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Microsoft ReportViewer: Session Expired Errors === The project is ASP.NET 2.0, I have never been able to reproduce this myself, but I get emails informing me it happens to clients many times a week, often a few times in a row. Here is the full error: Exception Details: Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired Stack Trace: [AspNetSessionExpiredException: ASP.NET session has expired] at Microsoft.Reporting.WebForms.ReportDataOperation..ctor() at Microsoft.Reporting.WebForms.HttpHandler.GetHandler() at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Session Objects:75de8e1d65ff40d1ba666d940af5b118: Microsoft.Reporting.WebForms.ReportHierarchy 5210064be1fa4d6abf5dd5e56b262974: Microsoft.Reporting.WebForms.ReportHierarchy
0
[ 2, 7099, 1330, 4725, 106, 45, 3723, 15524, 11908, 800, 3726, 3726, 14, 669, 25, 28, 306, 9, 2328, 172, 9, 387, 15, 31, 57, 243, 74, 777, 20, 21509, 48, 992, 15, 47, 31, 164, 8517, 18, 19, 12362, 55, 32, 5531, 20, 7421, 151, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Double if condition in Spry Region === <div spry:region="ds1" spry:repeatchildren="ds1"> <b spry:if="'{title}'.toUpperCase().indexOf(filtre.toUpperCase())!=-1"> <!-- this is the first if --> <a href="#" title="{author}" spry:if="'{author}'.toUpperCase().indexOf(filtre2.toUpperCase())!=-1">{author} <!-- this is the second if --> </a> </b> </div> <br><br> I wonder if there is any method as simple as if(x==y && i>j) in <b>spry</b> region. Icon't find any information in spry docs (labs.adobe.com/technologies/spry/)
0
[ 2, 1494, 100, 2874, 19, 3782, 622, 632, 800, 3726, 3726, 13, 1, 12916, 3782, 622, 45, 18790, 3726, 7, 43, 18, 165, 7, 3782, 622, 45, 99, 7081, 38, 17853, 3726, 7, 43, 18, 165, 7, 1, 13, 1, 220, 3782, 622, 45, 821, 3726, 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...
Windsor Container: How to specify a public property should not be filled by the container? === When Instantiating a class, Windsor by default treats all public properties of the class as optional dependencies and tries to satisfy them. In my case, this creates a circular dependency (or possibly something even nastier, not 100% sure) which causes my application to hang. How can I explicitly tell Castle Windsor that it should not be trying to satisfy a public property? I assume there must be an attribute to that extent. I can't find it however so please let me know the appropriate namespace/assembly. If there is any way to do this without attributes (such as Xml Configuration or configuration via code) that would be preferable since the specific library where this is happening has to date not needed a dependency on castle.
0
[ 2, 10784, 12147, 45, 184, 20, 19077, 21, 317, 1354, 378, 52, 44, 1943, 34, 14, 12147, 60, 800, 3726, 3726, 76, 6322, 49, 1880, 21, 718, 15, 10784, 34, 12838, 5752, 18, 65, 317, 3704, 16, 14, 718, 28, 12832, 29411, 17, 3919, 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...
InvalidProgramException in Team Foundation Server Sample === Hi I get an System.InvalidProgramException while trying to run the Example Project called "C# Example.WorkItemBrowser". The Exception also apears when I try to execute these lines: TeamFoundationServer tfserver = new TeamFoundationServer("http://localhost:8085"); tfserver.EnsureAuthenticated(); WorkItemStore store = new WorkItemStore(tfserver); Console.WriteLine(store.Projects.Count); I'm using the 2008 Visual Studio SDK for that. Cues like setting the platform explicitly to x86 and as well this page http://support.microsoft.com/?scid=kb%3Ben-us%3B312544&x=7&y=15 didn't help.
0
[ 2, 16671, 19746, 10066, 872, 19, 173, 1304, 8128, 5717, 800, 3726, 3726, 4148, 31, 164, 40, 329, 9, 108, 18506, 43, 19746, 10066, 872, 133, 749, 20, 485, 14, 823, 669, 227, 13, 7, 150, 5910, 823, 9, 3783, 2119, 79, 25699, 4104, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 xsd dataset where do I put it === I am trying to convert an ASP.NET website into a web application project. The conversion has gone ok I think apart from previously I had 2 xsd files in the App_Code folder. I believe this folder is not used in web applications projects, so where would I put xsd files now.
0
[ 2, 28, 306, 9, 2328, 993, 18, 43, 1054, 3554, 113, 107, 31, 442, 32, 800, 3726, 3726, 31, 589, 749, 20, 8406, 40, 28, 306, 9, 2328, 2271, 77, 21, 2741, 3010, 669, 9, 14, 6263, 63, 1042, 5854, 31, 277, 2629, 37, 1343, 31, 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...
Minimum rights required to run a windows service as a domain account === Does anyone know what would be the minimum rights I would need to grant to a domain user account in order to run a windows service as that user? For simplicity, assume that the service does nothing over and above starting, stopping, and writing to the "Application" event log - i.e. no network access, no custom event logs etc. I know I could use the built in Service and NetworkService accounts, but its possible that I may not be able to use these due to network policies in place. Thanks, Paul
2
[ 2, 5187, 1096, 1390, 20, 485, 21, 1936, 365, 28, 21, 4603, 2176, 800, 3726, 3726, 630, 1276, 143, 98, 83, 44, 14, 5187, 1096, 31, 83, 376, 20, 2048, 20, 21, 4603, 4155, 2176, 19, 389, 20, 485, 21, 1936, 365, 28, 30, 4155, 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...
Way to discover which internet connection type I'm using on the iPhone === I need to know what internet connection is available when my application is running. I checked out the Reachability example from Apple, but this differs only between wifi and carrier network. What I need to know is what carrier network is selected, UMTS or EDGE or GPRS.
0
[ 2, 161, 20, 6297, 56, 2620, 2760, 1001, 31, 22, 79, 568, 27, 14, 21024, 800, 3726, 3726, 31, 376, 20, 143, 98, 2620, 2760, 25, 904, 76, 51, 3010, 25, 946, 9, 31, 6505, 70, 14, 1470, 4091, 823, 37, 4037, 15, 47, 48, 14761, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How does WCF deserialization instantiate objects without calling a constructor? === There is some magic going on with WCF deserialization. How does it instantiate an instance of the data contract type without calling its constructor? For example, consider this data contract: [DataContract] public sealed class CreateMe { [DataMember] private readonly string _name; [DataMember] private readonly int _age; private readonly bool _wasConstructorCalled; public CreateMe() { _wasConstructorCalled = true; } // ... other members here } When obtaining an instance of this object via `DataContractSerializer` you will see that the field `_wasConstructorCalled` is `false`. So, how does WCF do this? Is this a technique that others can use too, or is it hidden away from us?
0
[ 2, 184, 630, 11801, 410, 1746, 106, 2815, 1829, 6322, 15882, 3916, 366, 2555, 21, 6960, 248, 60, 800, 3726, 3726, 80, 25, 109, 2154, 228, 27, 29, 11801, 410, 1746, 106, 2815, 1829, 9, 184, 630, 32, 6322, 15882, 40, 4851, 16, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
recommended c# winform controls packs === Am looking for commercial/free recommended c# winform controls packs
2
[ 2, 5773, 272, 5910, 628, 4190, 8671, 18936, 800, 3726, 3726, 589, 699, 26, 1439, 118, 4639, 5773, 272, 5910, 628, 4190, 8671, 18936, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 server-assisted MVC frameworks peaking? === I've been developing web apps for over a decade now, all the way from [CGI][1] to [ASP.Net][2] and [Struts][3]+[Spring][4]+[Hibernate][5]. The prevalent architectural style seems to be [server-assisted MVC][19], e.g. [Struts][3], [Ruby on Rails][16], etc. Recent developments lead me to ask if these are on the decline. - Adobe's [AIR][7] and [Flex][8] - Microsoft's [WPF][9] and [Silverlight][10] - Google's [Chrome][11] and [Gears][12] - [SOFEA][13] and [SOUI][14] All of this leads me to believe that we're starting to come full-circle after a 15-year distraction kicked-off by the invention of the web. Over this period of time, we've been so fascinated by all the web has to offer that we didn't notice that the usability (and the developer experience) of web apps pretty much sucked in comparison to desktop apps. It seems we're now saying "**Screw this! We love the web's benefits but we also want better usability, offline capabilities, and better integration with the desktop!**". All of the above mentioned developments seem to be moving us in this direction of putting the presentation logic back where it used to be: the client. Don't get me wrong, I don't think server-assisted MVC frameworks are going away anytime soon, but I do think they are on the decline and [RIA][17]s and [RDA][18]s are on the rise. ***So, what do you think? Are server-assisted MVC frameworks near their [peak][6]?*** [1]: http://en.wikipedia.org/wiki/Common_Gateway_Interface [2]: http://en.wikipedia.org/wiki/Asp.net [3]: http://en.wikipedia.org/wiki/Apache_Struts [4]: http://en.wikipedia.org/wiki/Spring_framework [5]: http://en.wikipedia.org/wiki/Hibernate_(Java) [6]: http://www.appcelerant.com/mvc_is_dead.html [7]: http://www.adobe.com/products/air/ [8]: http://www.adobe.com/products/flex/ [9]: http://en.wikipedia.org/wiki/Windows_Presentation_Foundation [10]: http://en.wikipedia.org/wiki/Silverlight [11]: http://www.google.com/chrome [12]: http://gears.google.com/ [13]: http://wisdomofganesh.blogspot.com/2007/11/sofea-and-soui-there-is-difference.html [14]: http://www.appcelerant.com/mvc_is_dead.html [16]: http://en.wikipedia.org/wiki/Ruby_on_Rails [17]: http://en.wikipedia.org/wiki/Rich_Internet_application [18]: http://en.wikipedia.org/wiki/Rich_Desktop_Applications/Rich_Internet_Desktop_Applications_(RDA/RIDA) [19]: http://en.wikipedia.org/wiki/Model-view-controller#Implementations_of_MVC_as_web-based_frameworks
0
[ 2, 50, 8128, 8, 29109, 307, 8990, 6596, 18, 14915, 60, 800, 3726, 3726, 31, 22, 195, 74, 3561, 2741, 4865, 18, 26, 84, 21, 3953, 130, 15, 65, 14, 161, 37, 636, 150, 2234, 500, 2558, 165, 500, 20, 636, 472, 306, 9, 2328, 500, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you document your Code Standard? === What have you found to be the best way to publish your code standard and why?
0
[ 2, 184, 107, 42, 4492, 154, 1797, 1236, 60, 800, 3726, 3726, 98, 57, 42, 216, 20, 44, 14, 246, 161, 20, 10824, 154, 1797, 1236, 17, 483, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Why is my JEditorPane not showing the HTML? === I have the following code: import javax.swing.JEditorPane; import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.ScrollPaneConstants; public class ScratchPad { public static void main(String args[]) throws Exception { String html ="<html>"+ "<head>"+ "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>"+ // this is the problem right here "<title>Error 400 BAD_REQUEST</title>"+ "</head>"+ "<body>"+ "<h2>HTTP ERROR: 400</h2><pre>BAD_REQUEST</pre>"+ "<p>RequestURI=null</p>"+ "<p><i><small><a href=\"http://jetty.mortbay.org\">Powered by jetty://</a></small></i></p>"+ "</body>"+ "</html>"; JFrame f = new JFrame(); JEditorPane editor = new JEditorPane(); editor.setEditable( false ); editor.setContentType( "text/html" ); editor.setText( html ); f.add( new JScrollPane(editor, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER) ); f.pack(); f.setVisible( true ); } } If you run it, you'll notice the frame is blank. However, if I remove the "; charset=ISO-8859-1" from the meta tag, the HTML shows up. Any ideas why and what I can do to prevent this (other than manually hacking the HTML string over which I have no control...).
0
[ 2, 483, 25, 51, 487, 13401, 16660, 52, 3187, 14, 13, 15895, 60, 800, 3726, 3726, 31, 57, 14, 249, 1797, 45, 9010, 8247, 396, 9, 18, 3546, 9, 728, 13401, 16660, 73, 9010, 8247, 396, 9, 18, 3546, 9, 728, 8361, 73, 9010, 8247, 39...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Flash in a browser to full screen === How can i put my flash applications in a browser in full screen mode? I know that the stage can be put in that mode, but when i run the application in any browser this doesn't work. So, this can be done, but how?
0
[ 2, 4433, 19, 21, 16495, 20, 503, 2324, 800, 3726, 3726, 184, 92, 31, 442, 51, 4433, 3767, 19, 21, 16495, 19, 503, 2324, 3740, 60, 31, 143, 30, 14, 876, 92, 44, 442, 19, 30, 3740, 15, 47, 76, 31, 485, 14, 3010, 19, 186, 16495...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Split large ASP.NET pages into pieces === Is it possible to split large ASP.NET-pages into pieces? JSP has the [jsp:include][1] directive. Is there any equivivalent in ASP.NET [1]: http://java.sun.com/products/jsp/tags/11/syntaxref1112.html
0
[ 2, 2132, 370, 28, 306, 9, 2328, 4434, 77, 2491, 800, 3726, 3726, 25, 32, 938, 20, 2132, 370, 28, 306, 9, 2328, 8, 6486, 18, 77, 2491, 60, 487, 3401, 63, 14, 636, 728, 3401, 45, 22640, 500, 2558, 165, 500, 15626, 9, 25, 80, 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...
Unmanaged vc++ static libraries and C# GUI app === Basically I have a bunch of unmanaged VC++ static libraries. And the VC++ GUI application which uses those and it is based on MFC. The goal is to replace the GUI app with the one done in C# instead but using all the same static libraries. The question is if this even possible, and if yes, then what is the right way to accomplish that? Suggestions, anybody? Thanks.
0
[ 2, 367, 177, 8030, 13, 8990, 20512, 12038, 8649, 17, 272, 5910, 9457, 4865, 800, 3726, 3726, 11374, 31, 57, 21, 7653, 16, 367, 177, 8030, 13, 8990, 20512, 12038, 8649, 9, 17, 14, 13, 8990, 20512, 9457, 3010, 56, 2027, 273, 17, 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...
Why am I getting this Javascript runtime error? === I've got the following JavaScript on my web page... 64 var description = new Array(); 65 description[0] = "..." 66 description[1] = "..." ... 78 function init() { 79 document.getElementById('somedivid').innerHTML = description[0]; 80 } 81 82 window.onload = init(); In Microsoft Internet Explorer it causes the following error... > A Runtime Error has occurred. > Do you wish to debug? > > Line: 81 > Error: Not implemented ![javascript runtime error][1] Line 79 executes as expected. If line 79 is commented out, it still throws the error. If I comment out line 82, then the function does not execute and there is no error. [1]: http://img219.imageshack.us/img219/9752/javascriptruntimeerrorvs1.gif
0
[ 2, 483, 589, 31, 1017, 48, 8247, 8741, 485, 891, 7019, 60, 800, 3726, 3726, 31, 22, 195, 330, 14, 249, 8247, 8741, 27, 51, 2741, 2478, 9, 9, 9, 4384, 4033, 5318, 800, 78, 7718, 5, 6, 73, 2074, 5318, 2558, 387, 500, 800, 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...
Generic, annotation-driven event notification frameworks === While simple, interface-driven event notification frameworks in Java have been around since pre-Cambrian times (e.g. java.beans.PropertyChangeSupport), it is becoming increasingly popular for frameworks to use annotation-driven event notification instead. For an example, see [JBossCache 2.2][1]. The listener class has its listener methods annotated, rather than conforming to a rigid interface. This is rather easier to program to, and easier to read, since you don't have to write empty implementations of listener callbacks that you're not interested in (and yes, I know about listener adapter superclasses). Here's a sample from the JBossCache docs: @CacheListener public class MyListener { @CacheStarted @CacheStopped public void cacheStartStopEvent(Event e) { switch (e.getType()) { case Event.Type.CACHE_STARTED: System.out.println("Cache has started"); break; case Event.Type.CACHE_STOPPED: System.out.println("Cache has stopped"); break; } } @NodeCreated @NodeRemoved @NodeVisited @NodeModified @NodeMoved public void logNodeEvent(NodeEvent ne) { log("An event on node " + ne.getFqn() + " has occured"); } } The problem with this, is that it's very much more of an involved process writing the framework to support this sort of thing, due to the annotation-reflection nature of it. So, before I charge off down the road of writing a generic framework, I was hoping someone had done it already. Has anyone come across such a thing? [1]: http://www.jboss.org/file-access/default/members/jbosscache/freezone/docs/2.2.0.GA/userguide_en/html_single/index.html#api.listener
0
[ 2, 12733, 15, 40, 1270, 857, 8, 14489, 807, 52, 4634, 6596, 18, 800, 3726, 3726, 133, 1935, 15, 6573, 8, 14489, 807, 52, 4634, 6596, 18, 19, 8247, 57, 74, 140, 179, 782, 8, 8760, 18523, 436, 13, 5, 62, 9, 263, 9, 8247, 9, 86...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Are unix timestamps the best way to store timestamps? === I always use unix timestamps for everything, but am wondering if there is a better way. What do you use to store timestamps and why?
0
[ 2, 50, 22540, 436, 4919, 1919, 14, 246, 161, 20, 1718, 436, 4919, 1919, 60, 800, 3726, 3726, 31, 550, 275, 22540, 436, 4919, 1919, 26, 796, 15, 47, 589, 5712, 100, 80, 25, 21, 574, 161, 9, 98, 107, 42, 275, 20, 1718, 436, 4919...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 find out if a column exists in a VB.Net DataRow === I am reading an XML file into a DataSet and need to get the data out of the DataSet. Since it is a user-editable config file the fields may or may not be there. To handle missing fields well I'd like to make sure each column in the DataRow exists and is not DBNull. I already check for DBNull but I don't know how to make sure the column exists without having it throw an exception or using a function that loops over all the column names. What is the best method to do this?
0
[ 2, 184, 107, 31, 477, 70, 100, 21, 4698, 5636, 19, 21, 13, 20468, 9, 2328, 1054, 5417, 800, 3726, 3726, 31, 589, 1876, 40, 23504, 3893, 77, 21, 1054, 3554, 17, 376, 20, 164, 14, 1054, 70, 16, 14, 1054, 3554, 9, 179, 32, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to lock Active Directory accounts programmatically? === I have to lock user accounts in Active Directory programmatically (via Microsoft Identity Integration Server, in C#). Unfortunately it doesn't work via the userAccountControl attribute. Every time I set userAccountControl to 528 (=normal account w/ lockout flag), Active Directory won't accept the value and resets it without further notice to 512 (=normal account). Now I tried to lock the account by providing incorrect credentials (see below), but this doesn't work either. int retries = 0; while (!adsUser.IsAccountLocked && retries < MAX_LOCK_RETRIES) { retries++; try { new DirectoryEntry(userPath, logonName, incorrectPassword).RefreshCache(); } catch (Exception) { /* ... */ } adsUser.GetInfo(); } Any ideas?
0
[ 2, 184, 20, 3991, 1348, 16755, 5310, 625, 6732, 1326, 60, 800, 3726, 3726, 31, 57, 20, 3991, 4155, 5310, 19, 1348, 16755, 625, 6732, 1326, 13, 5, 5034, 7099, 3270, 8078, 8128, 15, 19, 272, 5910, 6, 9, 6200, 32, 1437, 22, 38, 170...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What do you consider to be the most promising Open Source project in the long term? === Time to time we stumble upon an interesting Open Source project still in its embrional stage. Have you found one of such projects lately, and why you consider it worth to be followed or supported? Please provide one project per answer; vote up and add a comment exposing your motivations if the project you intend to endorse is already listed.
0
[ 2, 98, 107, 42, 3563, 20, 44, 14, 127, 10466, 368, 1267, 669, 19, 14, 175, 981, 60, 800, 3726, 3726, 85, 20, 85, 95, 19436, 685, 40, 4883, 368, 1267, 669, 174, 19, 82, 11911, 14641, 192, 876, 9, 57, 42, 216, 53, 16, 145, 231...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
OnClick in Excel VBA === Apart from being horribly annoyed with Excel VBA ... I have this question: Is there a way to catch a click on a cell in VBA with Excel? I'm not talking about the Worksheet_SelectionChange event, as that won't trigger multiple times if the cell is clicked multiple times. I'm fairly convinced there isn't, but I'm also fairly desparate. My current solution does work with that SelectionChange thing, but it brings along all kinds of problems and makes me use global variables and other horrible things.
0
[ 2, 27, 150, 10129, 19, 20700, 566, 969, 800, 3726, 3726, 2629, 37, 142, 28441, 13008, 29, 20700, 566, 969, 13, 9, 9, 9, 31, 57, 48, 1301, 45, 25, 80, 21, 161, 20, 2949, 21, 10840, 27, 21, 1667, 19, 566, 969, 29, 20700, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Compiler could not choose an overload between interface and exception === Trying to use an excpetion class which could provide location reference for XML parsing, found an interesting behavior - compiler could not choose between overload which consumes an interface and one which needs System.Exception when I trying to pass XmlReader as a parameter. Detais are following: //exception overloads: public FilterXmlParseException(string message, Exception innerException) : base(message, innerException) { } public FilterXmlParseException(string message, IXmlLineInfo lineInfo) {...} //Usage: XmlReader reader = ... IXmlLineInfo lineinfo = (IXmlLineInfo)reader; //fails throw new FilterXmlParseException("<Filter> element expected", reader); //ok throw new FilterXmlParseException("<Filter> element expected", lineinfo); And it fails since it could not select correct overload.But why? We see that XmlReader supports an interface and it is not inherited from System.Exception
0
[ 2, 21486, 110, 52, 3538, 40, 84, 8294, 128, 6573, 17, 5391, 800, 3726, 3726, 749, 20, 275, 40, 1396, 150, 1664, 3309, 718, 56, 110, 1181, 1474, 2801, 26, 23504, 2017, 18, 68, 15, 216, 40, 4883, 3257, 13, 8, 21486, 110, 52, 3538,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Getting the whole output of a string that contains chr(0) === Here is the sample: Dim TestString As String = "Hello," & Chr(0) & "World" MsgBox(TestString, , "TestString.Length=" & TestString.Length.ToString) Result - Messagebox shows "Hello," with title says TestString.Length=12 I guess the chr(0) is treated as the end of zero terminated string, but it's not what i want. What the right method to operate with Chr(0) ?
0
[ 2, 1017, 14, 979, 5196, 16, 21, 3724, 30, 1588, 272, 3112, 5, 387, 6, 800, 3726, 3726, 235, 25, 14, 5717, 45, 5937, 1289, 11130, 28, 3724, 800, 13, 7, 11515, 15, 7, 279, 272, 3112, 5, 387, 6, 279, 13, 7, 4423, 7, 4235, 263, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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-to-Triple mapping using AllegroGraph RDF store? === My project is building a Java web application on top of the AllegroGraph RDF store. I would like to find a good solution to map between the triples that come out of the store and our domain objects. I have looked into <a href="http://www.topazproject.org/trac/">Topaz</a>, an Object/Triple mapping API being developed in the spirit of Hibernate. The trouble is that they don't currently have a connector to AllegroGraph. Has anyone come up with a good scheme for Object/Triple mapping in Java, in light of the limited API support out there? One issue that makes this question more difficult is that unlike SQL, the SPARQL standard only supports read operations, so writes are done via the RDF store's proprietary API, and I'd really like to abstract away those details in our application.
0
[ 2, 3095, 8, 262, 8, 17851, 413, 13305, 568, 28915, 9614, 13, 897, 410, 1718, 60, 800, 3726, 3726, 51, 669, 25, 353, 21, 8247, 2741, 3010, 27, 371, 16, 14, 28915, 9614, 13, 897, 410, 1718, 9, 31, 83, 101, 20, 477, 21, 254, 4295...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 debug a memory dump of a spiking ASP.NET process? === Sorry, I couldn't figure out a good way to phrase my real question. I run a high-traffic ASP.NET site on a 64-bit machine. I have IIS running in 32-bit mode, however, due to some legacy components of the app. I am running this particular web app inside an application pool that has the web garden option on (running 6 processes inside an 8 core machine). Once or twice a week one of the processes will skyrocket into 100% CPU utilization, causing a giant slowdown for the site, so my plan was to wait until that happens, memory dump the offending process, then poke around WinDbg to zero in on the thread that's spiking to see where the code is spinning its wheels. I've debugged using WinDbg before to figure out what was causing a deadlock on the site, but that was several months ago and I can't remember how I got it working. (As a side note, this is a lesson to document everything you do.) I'm running WinDbg on the Windows 2003 server that's running the site, so as to prevent any DLL version problems. Here have been my steps so far, please let me know where I'm going wrong to get the error message that I'm getting. 1. I first memory dump the spiking process using UserDump, with the following command, where 3389 is the ID of the process: `userdump -k 3389` 2. I load the dump into the x86 edition of WinDbg. 3. Since I'm running 32-bit on a 64-bit machine, I first load the memory dump and then: `.load wow64exts` `.effmach x86` 4. I make sure that my symbol path includes the directory that contains my apps PDB files: `.sympath+ c:\inetpub\myapp\bin` 5. Running just `.load SOS' fails with an error of "The system cannot find the file specified", so I go the fully qualified route of the following, which works: `.load c:\windows\microsoft.net\framework\v2.0.50727\sos` From here, I'm lost. I try any of the SOS commands, like `!threads`, only to get this error: Failed to load data access DLL, 0x80004005 That error is also accompanied by the numbered list of items that I should be verifying. I have verified that I am running the most current version of the debugger, mscordacwks.dll is in fact in the same directory as the mscorwks.dll file, and I'm debugging on the same architecture as the dump file. I've also run the magical "`.cordll -ve -u -l`" command, but that doesn't solve anything. I'm always greeted with "`CLR DLL status: No load attempts`" when I execute that. Then I try "`.reload`", which yields a handful of warnings like "`WARNING: wldap32 overlaps dnsapi`". I *wish* it said something like "`CLRDLL: Loaded DLL C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscordacwks.dll`". But it doesn't. What in the world, people? Debugging shouldn't be a hair-pulling-out process just to even start debugging!
0
[ 2, 184, 107, 31, 121, 16254, 21, 1912, 11424, 16, 21, 10823, 1581, 28, 306, 9, 2328, 953, 60, 800, 3726, 3726, 1875, 15, 31, 711, 22, 38, 1465, 70, 21, 254, 161, 20, 6845, 51, 683, 1301, 9, 31, 485, 21, 183, 8, 1939, 2460, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is tracing and how should it be done? === What is tracing and how should it be done? I have a common utilities library I am including in my projects and I want to be able to get some output from it. I have been using log4net but would rather not have my common utilities library dependent upon log4net. Does that make sense? Should I perhaps replace some of the log4net Logger.Debug(..) I have in my projects with System.Diagnostics.Trace.WriteLine(..)s?
0
[ 2, 98, 25, 20005, 17, 184, 378, 32, 44, 677, 60, 800, 3726, 3726, 98, 25, 20005, 17, 184, 378, 32, 44, 677, 60, 31, 57, 21, 757, 19817, 1248, 31, 589, 215, 19, 51, 2314, 17, 31, 259, 20, 44, 777, 20, 164, 109, 5196, 37, 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...
Do I need to set up Kerberos to use Replication in SQL Server 2005? === I want to setup replication on three SQL servers and one is not configured for Kerberos. (The SPNs are not setup yet) Do I need Kerberos and Pass-through delegation working to use replication in SQL Server 2005?
0
[ 2, 107, 31, 376, 20, 309, 71, 7002, 2102, 759, 20, 275, 23841, 19, 4444, 255, 8128, 812, 60, 800, 3726, 3726, 31, 259, 20, 18161, 23841, 27, 132, 4444, 255, 17595, 17, 53, 25, 52, 28895, 26, 7002, 2102, 759, 9, 13, 5, 124, 378...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to graphically represent page flow, as applicable to an action oriented web application? === What is the best way to graphically represent page flow, as applicable to an action oriented web application? What model do you use to represent page flows (page flow diagrams) encompassing pages (views), user actions on those views (events) and processes? These diagrams should act as a starting point for understanding between a business domain expert (say someone specifying an e-commerce web site), a technical analyst (someone responsible for designing the web application) and a web developer (someone responsible for implementing the solution) I am not looking for a software solution to help me draw those diagrams, nor am I looking for a web flow framework that will let me implement these page flows in software. I am, however looking for a good scheme for drawing out a page flow using pencil and paper For example, a good answer could be as follows * Rectangle with label in CAPS represents page * Arrow with label in lowercase represents user action * Diamond with label in CAPS represents a process * Entry points always from the left (arrows come into a page from the left) * Exit points always from the right (arrows go out of a page to the right) If there is an accepted standard, or if this problem space is actually a specific case of a larger problem space for which there exists a standard, please highlight this. In the spirit of Stack Overflow, one scheme per answer please, and votes rather than duplicates
0
[ 2, 98, 25, 14, 246, 161, 20, 21755, 102, 3501, 2478, 3312, 15, 28, 14535, 20, 40, 1028, 13, 6800, 2741, 3010, 60, 800, 3726, 3726, 98, 25, 14, 246, 161, 20, 21755, 102, 3501, 2478, 3312, 15, 28, 14535, 20, 40, 1028, 13, 6800, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...