unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
JSP Custom Tag Library vs JSP2 Tag Files === Can anybody gimme the idea about the JSP custom tag library and the JSP 2 Tag files.. Are this two are alternatives to use....??? If there is any comparision(or merits and demerits) among this please do specify.. And which one of this is better to work with.. I m waiting for the kind suggestions.. Regards, Vinayak
0
[ 2, 487, 3401, 5816, 3383, 1248, 4611, 487, 3401, 135, 3383, 6488, 800, 3726, 3726, 92, 11181, 13, 29132, 14, 882, 88, 14, 487, 3401, 5816, 3383, 1248, 17, 14, 487, 3401, 172, 3383, 6488, 9, 9, 50, 48, 81, 50, 2676, 18, 20, 275, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I write a Java function that returns a typed instance of 'this' and works when extended? === This is a bit of a lazyweb question but you get the rep so :-) I have a Java class that returns instances of itself to allow chaining (e.g. ClassObject.doStuff().doStuff()) For instance: public class Chainer { public Chainer doStuff() { /* Do stuff ... */ return this; } } I would like to extend this class. Is there a way, perhaps using generics, to extend this class without having to overwrite each method signature? E.g. not: public class ChainerExtender extends Chainer { public ChainerExtender doStuff() { super.doStuff(); return this; } } I have tried: public class Chainer { public <A extends Chainer> A doStuff() { /* Do stuff ... */ return (A)this; } } public class ChainerExtender extends Chainer { public <A extends Chainer> A doStuff() { /* Do stuff ... */ return super.doStuff(); } } But this didn't work giving the error: type parameters of <A>A cannot be determined; no unique maximal instance exists for type variable A with upper bounds A,Chainer
0
[ 2, 184, 107, 31, 2757, 21, 8247, 1990, 30, 4815, 21, 1001, 43, 4851, 16, 13, 22, 1565, 22, 17, 693, 76, 1984, 60, 800, 3726, 3726, 48, 25, 21, 1142, 16, 21, 16792, 14113, 1301, 47, 42, 164, 14, 9411, 86, 13, 45, 8, 6, 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...
Garbage Collection in C++ -- why? === I keep hearing people complaining that C++ doesn't have garbage collection. I also hear that the C++ Standards Committee is looking at adding it to the language. I'm afraid I just don't see the point to it... using RAII with smart pointers eliminates the need for it, right? My only experience with garbage collection was on a couple of cheap eighties home computers, where it meant that the system would freeze up for a few seconds every so often. I'm sure it has improved since then, but as you can guess, that didn't leave me with a high opinion of it. What advantages could garbage collection offer an experienced C++ developer?
0
[ 2, 15024, 1206, 19, 272, 20512, 13, 8, 8, 483, 60, 800, 3726, 3726, 31, 643, 3229, 148, 20154, 30, 272, 20512, 1437, 22, 38, 57, 15024, 1206, 9, 31, 67, 990, 30, 14, 272, 20512, 3364, 940, 25, 699, 35, 4721, 32, 20, 14, 816, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Summing up all nodes === This may be a simple fix - but I'm trying to sum together all the nodes (Size property from the Node class) on the binary search tree. Below in my BST class I have the following so far, but it returns 0: private long sum(Node<T> thisNode) { if (thisNode.Left == null && thisNode.Right == null) return 0; if (node.Right == null) return sum(thisNode.Left); if (node.Left == null) return sum(thisNode.Right); return sum(thisNode.Left) + sum(thisNode.Right); } Within my Node class I have Data which stores Size and Name in their given properties. I'm just trying to sum the entire size. Any suggestions or ideas?
0
[ 2, 3907, 3863, 71, 65, 16272, 800, 3726, 3726, 48, 123, 44, 21, 1935, 6098, 13, 8, 47, 31, 22, 79, 749, 20, 3907, 429, 65, 14, 16272, 13, 5, 10454, 1354, 37, 14, 15421, 718, 6, 27, 14, 14171, 2122, 1541, 9, 1021, 19, 51, 334...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 list the currently available objects in the current scope in ruby? === I'm new to ruby and I'm playing around with the irb. I've found I can list methods of objects using the .methods attribute on an object, but is there a way to see what objects/methods are available in the current scope/local space? Thinking that everything was an object, I thought just ".methods" on the command line might work, but it doesn't seem to. :P I'm used to python, where I use the dir() function to accomplish the same thing, is there something similar?
0
[ 2, 184, 107, 42, 968, 14, 871, 904, 3916, 19, 14, 866, 9914, 19, 10811, 60, 800, 3726, 3726, 31, 22, 79, 78, 20, 10811, 17, 31, 22, 79, 791, 140, 29, 14, 31, 7549, 9, 31, 22, 195, 216, 31, 92, 968, 3195, 16, 3916, 568, 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...
A "regex for words" - any example syntax and libraries? === I'm looking for syntatic examples or common techniques for doing regular expression style transformations on words instead of characters, given a procedural language. For example, to trace copying, one would want to create a document with similar meaning but with different word choices. I'd like to be able to concisely define these possible transformations that I can apply to a text stream. Eg. "fast _noun_" to "rapid _noun_", but "go fast." wouldn't get transformed (no noun afterwards. Or: "Alice will sing _song_" to "_song_ will be sung by Alice" I'd expect this to be done in grammatical checkers, such as detecting passive voice. A C# implementation for this sort of language-processing would be really neat, but I think the bulk of any effort is coming up with the right rules - Keeping the rules clear and understandable seems like a place to begin.
0
[ 2, 21, 13, 7, 12463, 1706, 26, 715, 7, 13, 8, 186, 823, 22649, 17, 8649, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 6063, 38, 12479, 3770, 54, 757, 4212, 26, 845, 1290, 1803, 1034, 6978, 18, 27, 715, 700, 16, 1766, 15, 504, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the simplest way to continuously sample from the line-in using C# === I want to continuously sample from my PC's audio line in using C# (then process that data). What is the best way to do the sampling?
0
[ 2, 98, 25, 14, 24384, 161, 20, 11738, 5717, 37, 14, 293, 8, 108, 568, 272, 5910, 800, 3726, 3726, 31, 259, 20, 11738, 5717, 37, 51, 5168, 22, 18, 4023, 293, 19, 568, 272, 5910, 13, 5, 2504, 953, 30, 1054, 6, 9, 98, 25, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Embedding Vimeo videos in Flex/flash === Is it possible to embed a vimeo video in Flex? http://vimeo.com/moogaloop.swf?clip_id=1193166 When I try to embed this link in a <mx:SWFLoader/> it doesnt come up as anything
0
[ 2, 11911, 69, 3258, 1790, 790, 111, 6610, 19, 14409, 118, 26694, 800, 3726, 3726, 25, 32, 938, 20, 11911, 69, 21, 1790, 790, 111, 763, 19, 14409, 60, 7775, 6903, 1755, 790, 111, 9, 960, 118, 8765, 1136, 18786, 9, 18, 15263, 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...
PHP Access Control System === I am part of a team creating a web application using PHP and MySQL. The application will have multiple users with different roles. The application will also be used in a geographically distributed manner. Accordingly we need to create an access control system that operates at the following two levels: 1. Controls user permissions for specific php pages i.e. provides or denies access to specific pages (or user interface elements) based on the user's role. For example: a user may be allowed access to the "Students" page but not to the "Teachers" page. 2. Controls user permissions for specific database records i.e. modifies database queries so that only specific records are displayed. For example, for a user at the city level, only those records should be displayed that relate to the user's particular city, while for a user at the national level, records for ALL CITIES in the country should be displayed. I need help on designing a system that can handle both these types of access control. Point no. 1 seems to be simple enough. However, I am completely at a loss on how to do point number 2 without hardcoding the information in the SQL queries. Any help would be appreciated. Thanks in advance Vinayak
0
[ 2, 13, 26120, 1381, 569, 329, 800, 3726, 3726, 31, 589, 141, 16, 21, 173, 2936, 21, 2741, 3010, 568, 13, 26120, 17, 51, 18, 22402, 9, 14, 3010, 129, 57, 1886, 3878, 29, 421, 2954, 9, 14, 3010, 129, 67, 44, 147, 19, 21, 23744, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 select and highlight a window in another application? === I would like to send some keystrokes from a C++ program into another window. For that reason I would like to have the user select the target window similar to how it is done in the Spy++ utility that comes with Visual Studio (drag a crosshair cursor over target window and have target window highlighted by a frame). How is this done in Windows? I am completely lost as to where I might start to look for a mechanism to implement this feature.
0
[ 2, 184, 20, 5407, 17, 14373, 21, 1463, 19, 226, 3010, 60, 800, 3726, 3726, 31, 83, 101, 20, 2660, 109, 1246, 12962, 18, 37, 21, 272, 20512, 625, 77, 226, 1463, 9, 26, 30, 1215, 31, 83, 101, 20, 57, 14, 4155, 5407, 14, 2935, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Weird many to many and one to many relationship === I know I'm gonna get down votes, but I have to make sure if this is logical or not. I have three tables A, B, C. B is a table used to make a many-many relationship between A and C. But the thing is that A and C are also related directly in a 1-many relationship A customer added the following requirement: Obtain the information from the Table B inner joining with A and C, and in the same query relate A and C in a one-many relationship Something like: ![alt text][1] [1]: http://img247.imageshack.us/img247/7371/74492374sa4.png I tried doing the query but always got 0 rows back. The customer insists that I can accomplish the requirement, but I doubt it. Any comments? PS. I didn't have a more descriptive title, any ideas?
0
[ 2, 5455, 151, 20, 151, 17, 53, 20, 151, 1429, 800, 3726, 3726, 31, 143, 31, 22, 79, 5172, 164, 125, 2922, 15, 47, 31, 57, 20, 233, 562, 100, 48, 25, 11545, 54, 52, 9, 31, 57, 132, 7484, 21, 15, 334, 15, 272, 9, 334, 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 could I insert a bitmap or other image objects in a CListCtrl in MFC? === I want to list the thumbnails of a set of photos in a listctrl. But the only way to achieve this is to use the setImageList method to bind a image list to the CListCtrl object and insert items like this: InsertItem (int nItem, LPCTSTR lpszitem, int nImage). I also must modify the listctrl's style by ModifyStyle(LVS_TYPEMASK, LVS_ICON) to force it to display the icon of each item. I don't think this approach a good way to achieve my goal. Can I add items of bitmap or other image objects directly in a CListCtrl? Thank you very much!
0
[ 2, 184, 110, 31, 14692, 21, 1142, 15022, 54, 89, 1961, 3916, 19, 21, 272, 5739, 4812, 6362, 19, 307, 7061, 60, 800, 3726, 3726, 31, 259, 20, 968, 14, 5078, 325, 947, 18, 16, 21, 309, 16, 7064, 19, 21, 968, 4812, 6362, 9, 47, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to start an Agile Project with No Experience === what are the best tutorials, books, software and practices to start and manage a new .net based Development Project in an Agile way with no experience on it. which methodology is easier to adopt XP|Scrum?
0
[ 2, 98, 25, 14, 246, 161, 20, 799, 40, 27475, 669, 29, 90, 1496, 800, 3726, 3726, 98, 50, 14, 246, 29724, 18, 15, 964, 15, 2306, 17, 5242, 20, 799, 17, 4705, 21, 78, 13, 9, 2328, 432, 522, 669, 19, 40, 27475, 161, 29, 90, 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, 0...
Silverlight Logging framework and/or best practices === Now that Silverlight 2 has finally shipped. I'm wondering if anyone has put together any logging frameworks for it, maybe something like enterprise library logging or log4net? I'm interesting in something that can perform tracing client side and also log messages to the server. So far the only project I have found is Clog on CodeProject. Has anyone used this? What were your thoughts on it?
0
[ 2, 1172, 3130, 13, 13919, 6596, 17, 118, 248, 246, 5242, 800, 3726, 3726, 130, 30, 1172, 3130, 172, 63, 722, 12991, 9, 31, 22, 79, 5712, 100, 1276, 63, 442, 429, 186, 13, 13919, 6596, 18, 26, 32, 15, 913, 301, 101, 6002, 1248, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dynamically Set the Height of Two floated DIVS === The coding is done using VS2008 There are two divs in my page namely "dvLeftContent" and "dvRightContent". I cannot statically set the height of the pages since "dvRightContent" have variable heights on various pages (Master Pages are used here) Is there a client side function(javascript or jquery) that takes the height of the right div and assigns it to left div?
0
[ 2, 7782, 1326, 309, 14, 2947, 16, 81, 15400, 13, 12916, 18, 800, 3726, 3726, 14, 13, 15458, 25, 677, 568, 4611, 2753, 80, 50, 81, 13, 12916, 18, 19, 51, 2478, 8525, 13, 7, 17905, 9742, 25424, 7, 17, 13, 7, 17905, 4183, 25424, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 iterate through the alphabet in Python? === As an example, lets say I wanted to list the frequency of each letter of the alphabet in a string. What would be the easiest way to do it? This is an example of what I'm thinking of... the question is how to make allTheLetters equal to said letters without something like allTheLetters = "abcdefg...xyz". In many other languages I could just do letter++ and increment my way through the alphabet, but thus far I haven't come across a way to do that in python. def alphCount(text): lowerText = text.lower() for letter in allTheLetters: print letter + ":", lowertext.count(letter)
0
[ 2, 184, 107, 31, 32, 106, 1373, 120, 14, 11844, 19, 20059, 60, 800, 3726, 3726, 28, 40, 823, 15, 6884, 395, 31, 417, 20, 968, 14, 5328, 16, 206, 1748, 16, 14, 11844, 19, 21, 3724, 9, 98, 83, 44, 14, 27237, 161, 20, 107, 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...
CUDA for .net? === I know that there are a lot of CUDA languatge bindings, such as PyCuda, but are there any _good_ bindings for .Net? The only one I've seen is [this one][1], but I'd like to know if there are any others. [1]: http://www.gass-ltd.co.il/en/products/cuda.net/
0
[ 2, 272, 5729, 26, 13, 9, 2328, 60, 800, 3726, 3726, 31, 143, 30, 80, 50, 21, 865, 16, 272, 5729, 4544, 3786, 38, 834, 8728, 18, 15, 145, 28, 7103, 150, 5729, 15, 47, 50, 80, 186, 13, 1, 3264, 1, 8728, 18, 26, 13, 9, 2328, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
packaging tagfiles in jar === how can i package tagfiles in a jar so it can be reused acrossed multiple projects?
0
[ 2, 16850, 3383, 16877, 18, 19, 5112, 800, 3726, 3726, 184, 92, 31, 6030, 3383, 16877, 18, 19, 21, 5112, 86, 32, 92, 44, 302, 8795, 464, 69, 1886, 2314, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 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...
Application_Start works fine on workstation, is not called when deployed === I have an application that works great on my development workstation but fails when the application is deployed to the live environment. It seems that Application_Start is not being called in the live environment.
0
[ 2, 3010, 1, 13680, 693, 1123, 27, 170, 10839, 15, 25, 52, 227, 76, 6698, 800, 3726, 3726, 31, 57, 40, 3010, 30, 693, 374, 27, 51, 522, 170, 10839, 47, 13614, 76, 14, 3010, 25, 6698, 20, 14, 515, 2307, 9, 32, 2206, 30, 3010, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
.NET Web Service & BackgroundWorker threads === I'm trying to do some async stuff in a webservice method. Let say i have the following API call: http://www.mysite.com/api.asmx and the method is called *GetProducts()*. I this GetProducts methods, i do some stuff (eg. get data from database) then just before i return the result, i want to do some async stuff (eg. send me an email). So this is what i did. [WebMethod(Description = "Bal blah blah.")] public IList<Product> GetProducts() { // Blah blah blah .. // Get data from DB .. hi DB! // var myData = ....... // Moar clbuttic blahs :) (yes, google for clbuttic if u don't know what that is) // Ok .. now send me an email for no particular reason, but to prove that async stuff works. var myObject = new MyObject(); myObject.SendDataAsync(); // Ok, now return the result. return myData; } } public class TrackingCode { public void SendDataAsync() { var backgroundWorker = new BackgroundWorker(); backgroundWorker.DoWork += BackgroundWorker_DoWork; backgroundWorker.RunWorkerAsync(); //System.Threading.Thread.Sleep(1000 * 20); } private void BackgroundWorker_DoWork(object sender, DoWorkEventArgs e) { SendEmail(); } } Now, when i run this code the email is never sent. If i uncomment out the Thread.Sleep .. then the email is sent. So ... why is it that the background worker thread is torn down? is it dependant on the parent thread? Is this the wrong way i should be doing background or forked threading, in asp.net web apps? cheers ;)
0
[ 2, 13, 9, 2328, 2741, 365, 279, 2395, 22560, 20396, 800, 3726, 3726, 31, 22, 79, 749, 20, 107, 109, 21, 9507, 150, 3217, 19, 21, 2741, 11449, 2109, 9, 408, 395, 31, 57, 14, 249, 21, 2159, 645, 45, 7775, 6903, 6483, 9, 915, 909...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Managing website 'event' database === How should I manage tables that refer to site 'events'. i.e. certain activities a user has done on a website that I use for tracking. Today alone I added 107,000 rows to my SiteEvent table. I dont think this is sustainable! The database is SQL Server. I'm mainly referring to the activites with respect to managing large amounts of data, and archiving best practices. For instance : * Should I keep these tables in a database all of their own? If i need to join with other tables this could be a problem. Currently I just have one database with everything in. * How ought I to purge old records. I want to ensure my db file doesnt keep growing. * Best practices for backing up and truncating logs * Any other things i need to so in SQL Server that might come back to bite me later? FYI: these are the tables CREATE TABLE [dbo].[SiteEvent]( [SiteEventId] [int] IDENTITY(1,1) NOT NULL, [SiteEventTypeId] [int] NOT NULL, [SiteVisitId] [int] NOT NULL, [SiteId] [int] NOT NULL, [Date] [datetime] NULL, [Data] [varchar](255) NULL, [Data2] [varchar](255) NULL, [Duration] [int] NULL, [StageSize] [varchar](10) NULL, and CREATE TABLE [dbo].[SiteVisit]( [SiteVisitId] [int] IDENTITY(1,1) NOT NULL, [SiteUserId] [int] NULL, [ClientGUID] [uniqueidentifier] ROWGUIDCOL NULL CONSTRAINT [DF_SiteVisit_ClientGUID] DEFAULT (newid()), [ServerGUID] [uniqueidentifier] NULL, [UserGUID] [uniqueidentifier] NULL, [SiteId] [int] NOT NULL, [EntryURL] [varchar](100) NULL, [CampaignId] [varchar](50) NULL, [Date] [datetime] NOT NULL, [Cookie] [varchar](50) NULL, [UserAgent] [varchar](255) NULL, [Platform] [int] NULL, [Referer] [varchar](255) NULL, [RegisteredReferer] [int] NULL, [FlashVersion] [varchar](20) NULL, [SiteURL] [varchar](100) NULL, [Email] [varchar](50) NULL, [FlexSWZVersion] [varchar](20) NULL, [HostAddress] [varchar](20) NULL, [HostName] [varchar](100) NULL, [InitialStageSize] [varchar](20) NULL, [OrderId] [varchar](50) NULL, [ScreenResolution] [varchar](50) NULL, [TotalTimeOnSite] [int] NULL, [CumulativeVisitCount] [int] NULL CONSTRAINT [DF_SiteVisit_CumulativeVisitCount] DEFAULT ((0)), [ContentActivatedTime] [int] NULL CONSTRAINT [DF_SiteVisit_ContentActivatedTime] DEFAULT ((0)), [ContentCompleteTime] [int] NULL, [MasterVersion] [int] NULL CONSTRAINT [DF_SiteVisit_MasterVersion] DEFAULT ((0)),
0
[ 2, 5616, 2271, 13, 22, 4943, 38, 22, 6018, 800, 3726, 3726, 184, 378, 31, 4705, 7484, 30, 5017, 20, 689, 13, 22, 4943, 38, 18, 22, 9, 31, 9, 62, 9, 1200, 1648, 21, 4155, 63, 677, 27, 21, 2271, 30, 31, 275, 26, 10353, 9, 78...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Algorithm: Odometer / Brute force === I want to write a odometer-like method in a C#-style-language, but not just using 0-9 for characters, but any set of characters. It will act like a brute-force application, more or less. Here is the base, please help me expand: protected void Main() { char[] chars = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; BruteForce(chars, 6); } private void BruteForce(char[] chars, int length) { // for-loop console-writing all possible combinations from 000000 to FFFFFF // (when passed in length is 6) // TODO: Implement code }
0
[ 2, 9083, 45, 12340, 17325, 13, 118, 27066, 558, 800, 3726, 3726, 31, 259, 20, 2757, 21, 12340, 17325, 8, 1403, 2109, 19, 21, 272, 5910, 8, 4381, 8, 7020, 15, 47, 52, 114, 568, 713, 8, 518, 26, 1766, 15, 47, 186, 309, 16, 1766,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Functional MetaPost in 5 Steps === I'm interested in using Functional MetaPost on Mac OS X: <http://cryp.to/funcmp/> I'm looking for a tutorial like: <http://haskell.org/haskellwiki/Haskell_in_5_steps> but for a trivial FuncMP example, i.e. using GHC, I can compile something simple such as: import FMP myPicture = text "blah" main = generate "foo" 1 myPicture but I can't figure out how to view this foo.1.mp output. (It gives a runtime error about not finding 'virmp'; my MetaPost binary is 'mpost'; I can't figure out how to override this Parameter or what my .FunMP file is or should be doing...) I can run mpost on that but the output (foo.1.1) is what, PostScript? EPS? How do I use this? (I imagine I just need a simple LaTeX file with an EPS figure in it or something...) Preferably, I'd like to generate output (.ps or .pdf that I can view) so I an actually get somewhere _with Functional MetaPost_, learning it, playing with it, not banging my head against paths and binaries and shell commands.
0
[ 2, 7652, 7618, 6962, 19, 331, 2382, 800, 3726, 3726, 31, 22, 79, 3158, 19, 568, 7652, 7618, 6962, 27, 1572, 13, 759, 993, 45, 13, 1, 21127, 6903, 14024, 306, 9, 262, 118, 16638, 150, 2554, 118, 1, 31, 22, 79, 699, 26, 21, 2972...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating stored procedure on the fly. What are the risks/problems? === I am thinking about creating/altering stored procedures on the fly. ie running ALTER PROCEDURE ... when the (web) application is running. What are the risks or problems that it can cause? - I know that the database account needs to have the extra privileges. - It does not happen everyday. Only from time to time. - I am using SQL SERVER and interested in mysql and postgres as well. BTW, I know there are other ways but I have good reasons to consider this option.
0
[ 2, 2936, 8214, 7004, 27, 14, 2855, 9, 98, 50, 14, 12176, 118, 2740, 2854, 79, 18, 60, 800, 3726, 3726, 31, 589, 1440, 88, 2936, 118, 16201, 68, 8214, 8876, 27, 14, 2855, 9, 13, 660, 946, 7835, 7004, 13, 9, 9, 9, 76, 14, 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...
install ASP.NET + SQL Express in a script === I need a little help on this subject. I have a Web application written in ASP.NET plus I have the .bak file of the SQL Express database, my question is: How can I install this in a simple click and go way in the client? how can I write a script that will create a new database, restore the bak file into that database, set up IIS and ... well, that's it :) I do this all manually, and I do this a lot, so I was just asking if there is a way to prevent do all this steps manually. Thanks.
0
[ 2, 16146, 28, 306, 9, 2328, 2754, 4444, 255, 2999, 19, 21, 3884, 800, 3726, 3726, 31, 376, 21, 265, 448, 27, 48, 1550, 9, 31, 57, 21, 2741, 3010, 642, 19, 28, 306, 9, 2328, 3123, 31, 57, 14, 13, 9, 13344, 3893, 16, 14, 4444,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Handling uncought exceptions in C# console application === I'm currently writing server that hosts several modules. Server runs each module in separate AppDomain. What I want to achieve is exception isolation. I mean when one module throws exception I don't want whole process to terminate, just this specific AppDomain. I know that I can tell CLR to fallback to old behaviour (.NET 1.0) when all uncought exception in different threads were swallowed. However, this is not the most 'elegant' solution.
0
[ 2, 7988, 16061, 22536, 13392, 19, 272, 5910, 8650, 3010, 800, 3726, 3726, 31, 22, 79, 871, 1174, 8128, 30, 5397, 238, 17113, 9, 8128, 1461, 206, 12613, 19, 1725, 4865, 537, 6232, 9, 98, 31, 259, 20, 4689, 25, 5391, 13300, 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...
Delphi component to help model project costs === I'm looking for a Delphi component that will allow end users to visually move, expand or shrink costs (or any resource, really) on a project plan. The plan would show the schedule horizontally month by month, or perhaps week by week, with each cost on its own line. eg. You might have Cost 1 which runs from Month 3 to Month 6, and Cost 2 which runs from Month 1 to Month 6 - I'd like them to be able to move these left and right on the time line, or make them last longer or for less time by dragging on the left or right hand border. And if they double-click or right-click on the cost, they could edit the more advanced properties. The closest I've seen so far is perhaps the "Timeline" view on the DevExpress Scheduler component, but if anybody has any other suggestions, I'd like to hear them.
0
[ 2, 23030, 5912, 20, 448, 1061, 669, 4227, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 23030, 5912, 30, 129, 1655, 241, 3878, 20, 20747, 780, 15, 6073, 54, 16269, 4227, 13, 5, 248, 186, 6577, 15, 510, 6, 27, 21, 669, 944, 9, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Shutdown IPhone when an application hangs === My application hangs. Pressing the home button doesn't return to the springboard anymore. Pressing the power button for 10 seconds doesn't turn the iphone off anymore. Is there any way to force a shutdown?
2
[ 2, 28450, 21024, 76, 40, 3010, 4546, 18, 800, 3726, 3726, 51, 3010, 4546, 18, 9, 7196, 14, 213, 5167, 1437, 22, 38, 788, 20, 14, 1573, 2806, 3375, 9, 7196, 14, 414, 5167, 26, 332, 2582, 1437, 22, 38, 805, 14, 21024, 168, 3375, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Best practice javascript and multilanguage === what is the best practice for multilanguage website using DOM Manipulating with javascript? I build some dynamic parts of the website using javascript. My first thought was using an array with the text strings and the language code as index. Is this a good idea?
0
[ 2, 246, 1345, 8247, 8741, 17, 1889, 7020, 800, 3726, 3726, 98, 25, 14, 246, 1345, 26, 1889, 7020, 2271, 568, 11859, 27799, 29, 8247, 8741, 60, 31, 1895, 109, 7782, 1341, 16, 14, 2271, 568, 8247, 8741, 9, 51, 64, 289, 23, 568, 40...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to share iphone and mac code between projects === I realise that the view/controller stuff will be different between Mac and IPhone apps but the model code may well be similar/the same. So whats the best way to organise a project(s) so that the model code is/can be shared? 1. Copy/paste - just duplicate it and manually keep it in sync 2. Have 2 xcode projects point at the same workarea - one for Mac and one for IPhone and share the code. 3. Common library - presumably you can't do this (or can you) Thanks for any tips.
0
[ 2, 246, 161, 20, 1891, 21024, 17, 1572, 1797, 128, 2314, 800, 3726, 3726, 31, 16794, 30, 14, 1418, 118, 12898, 1252, 3217, 129, 44, 421, 128, 1572, 17, 21024, 4865, 18, 47, 14, 1061, 1797, 123, 134, 44, 835, 118, 124, 205, 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...
JSP-tags with static output === I am considering creating some JSP-tags that will always give the same output. For example: <foo:bar>baz</foo:bar> Will always output: <div class="bar">baz</div> Is there any way to get a JSP-tag to behave just like static output in the generated servlet? For example: out.write("<div class=\"bar\">"); ... out.write("</div>"); in stead of x.y.z.foo.BarTag _jspx_th_foo_bar_0 = new x.y.z.foo.BarTag(); _jspx_th_foo_bar_0.setPageContext(pageContext); _jspx_th_foo_bar_0.setParent(null); _jspxTagObjects.push(_jspx_th_foo_bar_0); int _jspx_eval_foo_bar_0 = _jspx_th_foo_bar_0.doStartTag(); etc... etc... etc... ## Background ## I'm worried about performance. I haven't tested this yet, but it looks like the generated servlet does a lot for something very simple, and performance is very important. But if the servlet behaves as if the output was written directly in the JSP, the cost in production will be zero. I see a few advantages by doing this. I can change the static HTML or even change to something more dynamic, without editing every portlet. In our setup it's easy to change a tag, but very time-consuming to change every JSP that uses a specific element. This also means I can force developers to not write something like <div class="bar" style="whatever">...</div> There is even more advantages, but if it costs performance on the production servers, it's probably not worth it.
0
[ 2, 487, 3401, 8, 8628, 18, 29, 12038, 5196, 800, 3726, 3726, 31, 589, 5154, 2936, 109, 487, 3401, 8, 8628, 18, 30, 129, 550, 590, 14, 205, 5196, 9, 26, 823, 45, 13, 1, 4120, 111, 45, 1850, 1, 969, 380, 1, 118, 4120, 111, 45,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I specify that library X must be linked statically ? === I have a piece of software which is linked against several libraries. They all exists in a dynamic (.so) and a static (.a) version. By default, when using g++ it chooses the dynamic version of the libraries and that's fine with me. However, one of them absolutely needs to be linked statically. I thought about using *-static* but then it uses a static version for all of them, which is not what I want. How can I specify that library X must be linked statically, while the others continue to be linked against the shared version of the libs ?
0
[ 2, 184, 92, 31, 19077, 30, 1248, 993, 491, 44, 4727, 12038, 1326, 13, 60, 800, 3726, 3726, 31, 57, 21, 1855, 16, 2306, 56, 25, 4727, 149, 238, 8649, 9, 59, 65, 5636, 19, 21, 7782, 13, 5, 9, 656, 6, 17, 21, 12038, 13, 5, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is list::size() really O(n)? === Recently, I noticed some people mentioning that `stl::list::size()` has a linear complexity.<br> According to [some][1] [sources][2], this is in fact implementation dependent as the standard doesn't say what the complexity has to be.<br> The comment [in this blog entry][3] says: > Actually, it depends on which STL you > are using. Microsoft Visual Studio V6 > implements size() as {return (_Size); > } whereas gcc (at least in versions > 3.3.2 and 4.1.0) do it as { return std::distance(begin(), end()); } The > first has constant speed, the second > has o(N) speed [1]: http://www.cplusplus.com/reference/stl/list/size.html [2]: http://bytes.com/forum/thread60248.html [3]: http://ahlamnote.blogspot.com/2006/11/stl-list-size-method-is-slow.html 1. So my guess is that for the VC++ crowd `size()` has constant complexity as Dinkumware probably won't have changed that fact since VC6. Am I right there?<br> 2. What does it look like currently in `gcc`? If it is really O(n), why did the developers choose to do so?
0
[ 2, 25, 968, 45, 45, 10454, 5, 6, 510, 635, 5, 103, 6, 60, 800, 3726, 3726, 1989, 15, 31, 2711, 109, 148, 21215, 30, 13, 1, 18, 7786, 45, 45, 5739, 45, 45, 10454, 5, 6, 1, 63, 21, 6745, 12745, 9, 1, 5145, 1, 496, 20, 636,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 to cache when 99.9% of your data changes frequently? === Okay I know I asked about this before, and the answer was basically cache data that doesn't change often. Well what does one do when at least 99.9% of the data changes? In my project the only tables that doesn't get updated or won't get updated frequently would be the member profile info (name/address, and settings) So how does one still enable some kind of caching but keep and make sure the data being viewed is updated when changes are applied?
0
[ 2, 98, 20, 16522, 76, 7787, 9, 2621, 16, 154, 1054, 1693, 3086, 60, 800, 3726, 3726, 1705, 31, 143, 31, 411, 88, 48, 115, 15, 17, 14, 1623, 23, 11374, 16522, 1054, 30, 1437, 22, 38, 753, 478, 9, 134, 98, 630, 53, 107, 76, 35...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Interactive Fiction : what are the existing tools and programming langage ? === I'm looking to write an interactive fiction à la Zork, but with my own sillyness... The question I want to ask is : what are the tools and langage existing to do that, and what are there features and advantages between them ? For example what are the difference between TADS 2, TADS 3, Inform 6 and Inform 7, and why use one instead of another ?
0
[ 2, 9194, 3209, 13, 45, 98, 50, 14, 3149, 4672, 17, 3143, 4544, 1303, 13, 60, 800, 3726, 3726, 31, 22, 79, 699, 20, 2757, 40, 9194, 3209, 21, 333, 13373, 197, 15, 47, 29, 51, 258, 10752, 720, 9, 9, 9, 14, 1301, 31, 259, 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...
SQLite parameter substitution problem === Using SQLite3 with Python 2.5, I'm trying to iterate through a list and pull the weight of an item from the database based on the item's name. I tried using the "?" parameter substitution suggested to prevent SQL injections but it doesn't work. For example, when I use: for item in self.inventory_names: self.cursor.execute("SELECT weight FROM Equipment WHERE name = ?", item) self.cursor.close() I get the error: > sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 8 supplied. I believe this is somehow caused by the initial creation of the database; the module I made that actually creates the DB does have 8 bindings. cursor.execute("""CREATE TABLE Equipment (id INTEGER PRIMARY KEY, name TEXT, price INTEGER, weight REAL, info TEXT, ammo_cap INTEGER, availability_west TEXT, availability_east TEXT)""") However, when I use the less-secure "%s" substitution for each item name, it works just fine. Like so: for item in self.inventory_names: self.cursor.execute("SELECT weight FROM Equipment WHERE name = '%s'" % item) self.cursor.close() I can't figure out why it thinks I have 8 bindins when I'm only calling one. How can I fix it?
0
[ 2, 4444, 10601, 18906, 19910, 1448, 800, 3726, 3726, 568, 4444, 10601, 240, 29, 20059, 172, 9, 264, 15, 31, 22, 79, 749, 20, 32, 106, 1373, 120, 21, 968, 17, 2201, 14, 1763, 16, 40, 9101, 37, 14, 6018, 432, 27, 14, 9101, 22, 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...
Finding browser local time in ASP.NET === How do you find out the local time of the user browsing your website in ASP.NET?
0
[ 2, 3007, 16495, 375, 85, 19, 28, 306, 9, 2328, 800, 3726, 3726, 184, 107, 42, 477, 70, 14, 375, 85, 16, 14, 4155, 10175, 68, 154, 2271, 19, 28, 306, 9, 2328, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
HttpWebRequest to SSL fails === I'm using this code, to make a request to a given URL: private static string GetWebRequestContent(string url) { string sid = String.Empty; HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(url); req.KeepAlive = false; using (HttpWebResponse res = (HttpWebResponse)req.GetResponse()) { using (StreamReader sr = new StreamReader(res.GetResponseStream())) { sid = sr.ReadToEnd().Trim(); } } return sid; } I'm using it to test the stickyness of a Work Load Balancer, with 3 servers behind it. They all have a static HTM file called sid.htm, where the server's Server ID is written. For URL's with HTTP this works fine. But with HTTPS it doesn't work. I get this exception: > The request was aborted: Could not create SSL/TLS secure channel. At the moment, I have only 2 servers behind the WLB and one on its own with a public IP behind a firewall. HTTPS requests works fine if I hit the stand-alone server - but when I hit the WLB I get the above error. One thing: In order to switch between hitting the single server, and the WLB I use my hosts file. The DNS records for my domain points to the single server at the moment. So I put a record in my hosts file to hit the WLB. This shouldn't be causing problems... **My question**: Which SSL credentials/certificates does the HttpWebRequest use? If it uses 40 bit DES or 56 bit DES, that's the reason, because those are disabled in the WLB. But those certificates haven't been used in browsers since IE3 and Netscape 1 and 2.
0
[ 2, 7775, 458, 3692, 10351, 20, 13, 18, 18, 255, 13614, 800, 3726, 3726, 31, 22, 79, 568, 48, 1797, 15, 20, 233, 21, 3772, 20, 21, 504, 287, 6362, 45, 932, 12038, 3724, 164, 458, 3692, 10351, 25424, 5, 11130, 287, 6362, 6, 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...
Is there a way reformat code in FlashDevelop? === Is there a way to reformat code, i.e. force correct indentation in FlashDevelop as you can do with CTRL-SHIFT-F in Eclipse?
0
[ 2, 25, 80, 21, 161, 3202, 721, 1797, 19, 4433, 26051, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 3202, 721, 1797, 15, 31, 9, 62, 9, 558, 4456, 19, 817, 8593, 19, 4433, 26051, 28, 42, 92, 107, 29, 13, 4812, 6362, 8, 14157, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Please can someone give me a simple example of how to use System.Monitor in C# ? === I find System.Monitor very confusing, although I understand threading, locks, deadlocks, race conditions, dining philosophers and all that jazz. Normally I use a ManualResetEvent() to do inter-thread co-ordination, but I know that that's a heavyweight kernel object, and that System.Monitor (Enter/Pulse, etc.) is much more efficient. I've Googled and Googled but cannot find a sensible example. I would be most grateful if the SO crew could explain this potentially wonderful construct to me :-)
0
[ 2, 2247, 92, 737, 590, 55, 21, 1935, 823, 16, 184, 20, 275, 329, 9, 2111, 242, 248, 19, 272, 5910, 13, 60, 800, 3726, 3726, 31, 477, 329, 9, 2111, 242, 248, 253, 18084, 15, 419, 31, 1369, 9322, 68, 15, 12941, 15, 828, 3966, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 - Invalid postback or callback argument. Event validation is enabled using '<pages enableEventValidation="true"/>'... === I am getting the following error when I post back a page from the client-side. I have javascript code that modifies an asp:listbox on the client side. How do we fix this? Error details below: Server Error in '/XXX' Application. -------------------------------------------------------------------------------- Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.] System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +2132728 System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +108 System.Web.UI.WebControls.ListBox.LoadPostData(String postDataKey, NameValueCollection postCollection) +274 System.Web.UI.WebControls.ListBox.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +11 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +353 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1194 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
0
[ 2, 28, 306, 9, 2328, 13, 8, 16671, 678, 1958, 54, 645, 1958, 5476, 9, 807, 27999, 25, 9338, 568, 13, 22, 1, 6486, 18, 9240, 4943, 38, 18506, 43, 857, 3726, 7, 13398, 7, 118, 1, 22, 9, 9, 9, 800, 3726, 3726, 31, 589, 1017, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 is the best book to start Java ME? === I am looking for a book to start programing using Java Platform, Micro Edition (Java ME). Which book will you recommend to a reader who knows Java and have some knowledge of Java EE? Thanks everyone in advance.
0
[ 2, 56, 25, 14, 246, 360, 20, 799, 8247, 55, 60, 800, 3726, 3726, 31, 589, 699, 26, 21, 360, 20, 799, 625, 68, 568, 8247, 2452, 15, 2899, 1322, 13, 5, 1004, 1385, 55, 6, 9, 56, 360, 129, 42, 12360, 20, 21, 7765, 72, 3620, 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, 0...
Reducing duplication in constants === I have this perl script with many defined constants of configuration files. For example: use constant { LOG_DIR => "/var/log/", LOG_FILENAME => "/var/log/file1.log", LOG4PERL_CONF_FILE => "/etc/app1/log4perl.conf", CONF_FILE1 => "/etc/app1/config1.xml", CONF_FILE2 => "/etc/app1/config2.xml", CONF_FILE3 => "/etc/app1/config3.xml", CONF_FILE4 => "/etc/app1/config4.xml", CONF_FILE5 => "/etc/app1/config5.xml", }; I want to reduce duplication of "/etc/app1" and "/var/log" , but using variables does not work. Also using previously defined constants does not work in the same "use constant block". For example: use constant { LOG_DIR => "/var/log/", FILE_FILENAME => LOG_DIR . "file1.log" }; does not work. Using seperate "use constant" blocks does workaround this problem, but that adds a lot of unneeded code. What is the correct way to do this? Thank you.
0
[ 2, 7974, 1052, 20669, 19, 3587, 18, 800, 3726, 3726, 31, 57, 48, 416, 255, 3884, 29, 151, 2811, 3587, 18, 16, 8091, 6488, 9, 26, 823, 45, 275, 3587, 13, 1, 6738, 1, 9035, 800, 1, 13, 7, 118, 3311, 118, 5567, 118, 7, 15, 6738...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Problem requiring gem for acts_as_taggable in rails === I'm trying to get tags working in my rails application and want to use acts_as_taggable. Firstly I followed the instructions I found in Rails Recipies (a free sample bit online) that used the acts_as_taggable plugin. However, I then found [this site][1] which seems to have a gem for acts_as_taggable which is more advanced (has options for related tags etc). I've tried to follow the instructions there to install it, but I keep getting errors. Firstly I installed the gem as normal (`gem install acts_as_taggable`) and then I tried various ways to get rails to recognise and load the gem. The `require_gem` listed on the site didn't work (I assume that is an old command that has been removed) and neither did a straight `require` (although that has worked for my bluecloth gem). I've then tried using `config.gem 'acts_as_taggable'` but that keeps telling me that I haven't got acts_as_taggable installed and asks me to run `rake gems:install`. No matter how many times I run that it still gives the error! Any ideas? [1]: http://taggable.rubyforge.org/
0
[ 2, 1448, 9052, 8551, 26, 3167, 1, 472, 1, 536, 4572, 579, 19, 2240, 18, 800, 3726, 3726, 31, 22, 79, 749, 20, 164, 3383, 18, 638, 19, 51, 2240, 18, 3010, 17, 259, 20, 275, 3167, 1, 472, 1, 536, 4572, 579, 9, 64, 102, 31, 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...
convert string to byte[] in java === We try to convert from string to Byte[] using the following Java code: String source = "0123456789"; byte[] byteArray = source.getBytes("UTF-16"); We get a byte array of length 22 bytes, we are not sure where this padding comes from? how do i get an array of length 20?
0
[ 2, 8406, 3724, 20, 34, 591, 2558, 500, 19, 8247, 800, 3726, 3726, 95, 1131, 20, 8406, 37, 3724, 20, 34, 591, 2558, 500, 568, 14, 249, 8247, 1797, 45, 3724, 1267, 800, 13, 7, 387, 918, 21997, 4167, 3877, 7, 73, 34, 591, 2558, 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...
Configurable processor implemented on FPGA board === For a university mid-term project I have to design a configurable processor, to write the code in VHDL and then synthesize it on a Spartan 3E FPGA board from Digilent. I'm a beginner so could you point me to some information about configurable processors, to some ideas related to the concept?
0
[ 2, 1065, 13549, 579, 14762, 6807, 27, 13, 12087, 1136, 686, 800, 3726, 3726, 26, 21, 155, 907, 8, 3964, 669, 31, 57, 20, 704, 21, 1065, 13549, 579, 14762, 15, 20, 2757, 14, 1797, 19, 566, 252, 8643, 17, 94, 13973, 160, 2952, 32,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
is a SSH tunnel through Citrix Client possible? === I know it is not strictly a programmer questian, on the other hand, I would really like to be able to do a simple `svn up` on the production servers, which would save us a lot of hassle. Or production servers are within a corporate network, and access is only allowed through a gateway server. From that we can access the actual servers via Remote Desktop. Because of this maintenance unfriendly setup we use a sftp server to get our files to the production server (where the ftp server alwys resets last modified date), so it is complicated to determine which files have changed. So if it would be possible to setup a ssh tunnel from the actual server through the citrix connection, it would ease the whole update process. (On further option which I consider is to use bazaar to push our updates to the sftp server and then pull the updates from there, but unfortunately there is no working svn plugin for bazaar available [on windows])
0
[ 2, 25, 21, 13, 18, 1635, 3485, 120, 5486, 17224, 6819, 938, 60, 800, 3726, 3726, 31, 143, 32, 25, 52, 10369, 21, 17968, 7769, 806, 15, 27, 14, 89, 224, 15, 31, 83, 510, 101, 20, 44, 777, 20, 107, 21, 1935, 13, 1, 18, 16578, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Stop Mod_Rewrite execution on matching RewriteCond === I am running the free version of Helicon ISAPI Rewrite on IIS and have several sites running through the same set of rewrite rules. Up 'til now this has been fine as all the rules have applied to all the sites. I have recently added a new site which I don't want to run through all the rules. Is there any way to make requests to this site break out of the rule set after it's executed its own rules. I've tried the following with no luck; all requests to mysite.com result in a 404. I guess what I'm looking for is a rule that does nothing and is marked as the last rule to execute [L]. ## New site rule for mysite.com only RewriteCond Host: (?:www\.)?mysite\.com RewriteRule /content([\w/]*) /content.aspx?page=$1 [L] ## Break out of processing for all other requests to mysite.com RewriteCond Host: (?:www\.)?mysite\.com RewriteRule (.*) - [L] ## Rules for all other sites RewriteRule ^/([^\.\?]+)/?(\?.*)?$ /$1.aspx$2 [L] ...
0
[ 2, 747, 7226, 1, 99, 23716, 5769, 27, 10120, 27891, 1126, 43, 800, 3726, 3726, 31, 589, 946, 14, 551, 615, 16, 20514, 1126, 25, 2552, 49, 27891, 27, 595, 18, 17, 57, 238, 3259, 946, 120, 14, 205, 309, 16, 27891, 1761, 9, 71, 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...
Perl Call-stack listing === Is there a way I can access (for printout) a list of sub + module to arbitrary depth of sub-calls preceding a current position in a perl script. I need to make changes to some perl modules (.pm's). The workflow is initiated from a web-page thru a cgi-script, passing input through several modules/objects ending in the module where I need to use the data. Somewhere along the line the data got changed & I need to find out where...
0
[ 2, 416, 255, 645, 8, 25325, 9554, 800, 3726, 3726, 25, 80, 21, 161, 31, 92, 1381, 13, 5, 1106, 4793, 1320, 6, 21, 968, 16, 972, 2754, 12613, 20, 17237, 5204, 16, 972, 8, 9200, 18, 11673, 21, 866, 649, 19, 21, 416, 255, 3884, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jQuery resize not working at FireFox, Chrome and Safari === $("#dvMyDIV").bind("resize", function(){ alert("Resized"); }); or $("#dvMyDIV").resize(function(){ alert("Resized"); }); The questions 1. Why is this not working at FireFox, Chrome and Safari? 2. Can this be considered a jQuery bug since the resize is not handled for other browsers? 3. Could the only workaround be calling a SetTimeout function checking the clientHeight and clientWidth? 4. Any workarounds using jQuery?
0
[ 2, 487, 8190, 93, 302, 10454, 52, 638, 35, 535, 18219, 15, 13, 12985, 17, 25055, 800, 3726, 3726, 5579, 5, 7, 5910, 17905, 915, 12916, 7, 6, 9, 4772, 43, 5, 7, 99, 10454, 7, 15, 1990, 5, 6, 1, 7863, 5, 7, 99, 6560, 7, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Aynchronous web server calls in Silverlight and maximum HTTP connections === I've read that Silverlight 2.0 imposes by design an asynchronous model when communicating with the web server. I haven't had a chance to experiment with Silverlight, but I assume that it uses a thread-pool to manage threads like in the .NET Framework.<br /><br/> Now, since some browsers, most notably Internet Explorer, have an hard-coded limit of maximum two concurrent HTTP connections that can be made on the web server, what happens if I make a bunch of asynchronous requests from Silverlight?<br /><br /> Does Silverlight bypass this limitation in the web browser and open as many HTTP connections as there are threads available, or do the asynchronous requests queue up and wait for one of the two connections to become available?
0
[ 2, 21, 4124, 19973, 1291, 2741, 8128, 3029, 19, 1172, 3130, 17, 2979, 7775, 6760, 800, 3726, 3726, 31, 22, 195, 1302, 30, 1172, 3130, 172, 9, 387, 18009, 18, 34, 704, 40, 21, 16023, 1291, 1061, 76, 23284, 29, 14, 2741, 8128, 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...
Getting absolute path of a file === How can I convert a relative path to an absolute path in C on unix? Is there a convenient system function for this? On windows there is a `GetFullPathName` function that does the job, but I didn't find something similar on unix...
0
[ 2, 1017, 7070, 2013, 16, 21, 3893, 800, 3726, 3726, 184, 92, 31, 8406, 21, 4543, 2013, 20, 40, 7070, 2013, 19, 272, 27, 22540, 60, 25, 80, 21, 12845, 329, 1990, 26, 48, 60, 27, 1936, 80, 25, 21, 13, 1, 3060, 13727, 8353, 7259,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Encoding conversion in java === is there any free java library which i can use to convert string in one encoding to other encoding, something like icnov in php?
0
[ 2, 19608, 6263, 19, 8247, 800, 3726, 3726, 25, 80, 186, 551, 8247, 1248, 56, 31, 92, 275, 20, 8406, 3724, 19, 53, 19608, 20, 89, 19608, 15, 301, 101, 13, 596, 7658, 19, 13, 26120, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Display the meta/control key in a JLabel === We want to show a hint for a JList that the user can select multiple items with the platform dependent key for multiselect. However I have not found any way to show the OS X COMMAND symbol in a JLabel. Also I do want to have it platform independent. I.e. something like component.add( new JList() , BorderLayout.CENTER ); component.add( new JLabel( MessageFormat.format("With {0} you can " + "select multiple items", KeyStroke.getKeyStroke( ... , ... ) ) ) , BorderLayout.SOUTH ); Does any one of you guys know how to do this? EDIT: So far I've come up with the following text solution: add( new JLabel( MessageFormat.format( "With {0} you can select multiple items" , System.getProperty( "mrj.version" ) != null ? "COMMAND" : "CTRL" ) ) , BorderLayout.SOUTH );
0
[ 2, 3042, 14, 7618, 118, 12898, 1246, 19, 21, 487, 21018, 800, 3726, 3726, 95, 259, 20, 298, 21, 6382, 26, 21, 487, 5739, 30, 14, 4155, 92, 5407, 1886, 3755, 29, 14, 2452, 9063, 1246, 26, 1889, 18, 16964, 9, 207, 31, 57, 52, 21...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I stress test a web form file upload? === I need to test a web form that takes a file upload. The filesize in each upload will be about 10 MB. I want to test if the server can handle over 100 simultaneous uploads, and still remain responsive for the rest of the site. Repeated form submissions from our office will be limited by our local DSL line. The server is offsite with higher bandwidth.
0
[ 2, 184, 107, 31, 5384, 1289, 21, 2741, 505, 3893, 71, 8294, 60, 800, 3726, 3726, 31, 376, 20, 1289, 21, 2741, 505, 30, 1384, 21, 3893, 71, 8294, 9, 14, 6488, 2952, 19, 206, 71, 8294, 129, 44, 88, 332, 14023, 9, 31, 259, 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...
why shrink a sqlserver 2005 database? === What are the advantages and disadvantages of shrinking a database? Are there any performance implications?
0
[ 2, 483, 16269, 21, 4444, 255, 10321, 106, 812, 6018, 60, 800, 3726, 3726, 98, 50, 14, 14683, 17, 13387, 18, 16, 16269, 68, 21, 6018, 60, 50, 80, 186, 956, 14747, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Interpret \n within irb or script/console === When using something like `object.methods.sort.to_yaml` I'd like to have irb interpret the \n characters rather than print them. I currently get the following output: --- \n- "&"\n- "*"\n- +\n- "-"\n- "<<"\n- <=>\n ... What I'd like is something similar to this: --- - "&" - "*" - + - "-" - "<<" - <=> Is this possible? Is there another method I can be calling which will interpret the string perhaps?
0
[ 2, 11584, 13, 1, 103, 363, 31, 7549, 54, 3884, 118, 12124, 6069, 800, 3726, 3726, 76, 568, 301, 101, 13, 1, 23793, 9, 5909, 1807, 43, 18, 9, 22843, 9, 262, 1, 8580, 255, 1, 31, 22, 43, 101, 20, 57, 31, 7549, 11584, 14, 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...
Project Management === How to convey a bad news to the client?
0
[ 2, 669, 1097, 800, 3726, 3726, 184, 20, 11266, 21, 896, 996, 20, 14, 6819, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0...
Dead code detection in legacy C/C++ project === How would you go about dead code detection in C/C++ code? I have a pretty large code base to work with and at least 10-15% is dead code. Is there any Unix based tool to identify this areas? Some pieces of code still use a lot of preprocessor, can automated process handle that?
0
[ 2, 828, 1797, 11643, 19, 7780, 272, 118, 150, 20512, 669, 800, 3726, 3726, 184, 83, 42, 162, 88, 828, 1797, 11643, 19, 272, 118, 150, 20512, 1797, 60, 31, 57, 21, 1772, 370, 1797, 1000, 20, 170, 29, 17, 35, 639, 332, 8, 15264, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 reporting services === how to show all values of a particular field in a text box ??? ie. for eg. when u run the SP, u'll be getting 3 rows. and i want to show the (eg.empname) in a textbox each value separated by a comma. (ram, john, sita).
0
[ 2, 4444, 255, 6670, 687, 800, 3726, 3726, 184, 20, 298, 65, 4070, 16, 21, 1498, 575, 19, 21, 1854, 1649, 13, 60, 60, 60, 13, 660, 9, 26, 12369, 9, 76, 287, 485, 14, 3782, 15, 287, 22, 211, 44, 1017, 203, 11295, 9, 17, 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...
How do I convert a string of the form %programfiles%\directory\tool.exe to a useable Filename in C#/.net? === I have an application which takes a string value of the form **%programfiles%\directory\tool.exe** from its application config file. I want to make this into a useable filename so that I can call System.Diagnostics.Process.Start(filename) and have it execute the application. I'm curently getting a **System.ComponentModel.Win32Exception - The system cannot find the file specified** Many thanks for any help with this.
0
[ 2, 184, 107, 31, 8406, 21, 3724, 16, 14, 505, 13, 11881, 19746, 16877, 18, 11881, 1, 10197, 93, 1, 20799, 9, 1706, 62, 20, 21, 275, 579, 3893, 7259, 19, 272, 5910, 118, 9, 2328, 60, 800, 3726, 3726, 31, 57, 40, 3010, 56, 1384,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use VisualSVN with a solution shared between VS 2005 and VS 2008? === After looking at other questions related to sharing solutions between VS 2005 and VS 2008 it seems that the way to go is to have two solution files (one for VS 2005 and one for VS 2008). However, if the solution is under source control (VisualSVN in our case), how would we maintain two solution files and not keep overwriting one or the other with each update/commit? Is it possible to remove just the .sln file from source control and stop the VisualSVN client from checking its status in visual studio? Thanks Matt
0
[ 2, 184, 20, 275, 3458, 18, 16578, 29, 21, 4295, 2592, 128, 4611, 812, 17, 4611, 570, 60, 800, 3726, 3726, 75, 699, 35, 89, 2346, 1597, 20, 6126, 6776, 128, 4611, 812, 17, 4611, 570, 32, 2206, 30, 14, 161, 20, 162, 25, 20, 57, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to have class methods as event handlers in javascript === Is there a best-practice or common way in Javascript to have class members as event handlers? Consider the following simple example: <head> <script language="javascript" type="text/javascript"> ClickCounter = function(buttonId) { this._clickCount = 0; document.getElementById(buttonId).onclick += this.buttonClicked; } ClickCounter.prototype = { buttonClicked: function() { this._clickCount++; alert('the button was clicked ' + this._clickCount + ' times'); } } </script> </head> <body> <input type="button" id="btn1" value="Click me" /> <script language="javascript" type="text/javascript"> var btn1counter = new ClickCounter('btn1'); </script> </body> The event handler buttonClicked doesn't get called at all. But even if it **would** get called I suspect that the _clickCount member would be inaccessible, or *this* would point to some other object. Any good tips/articles/resources about this kind of problems? Best regards, JacobE
0
[ 2, 184, 20, 57, 718, 3195, 28, 807, 24641, 18, 19, 8247, 8741, 800, 3726, 3726, 25, 80, 21, 246, 8, 4899, 5183, 3568, 54, 757, 161, 19, 8247, 8741, 20, 57, 718, 443, 28, 807, 24641, 18, 60, 3563, 14, 249, 1935, 823, 45, 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...
Apache MOD_REWRITE Domain Level Cookie === I need to deal with Affiliate Tracking on our website. In our .htaccess we have: RewriteCond %{QUERY_STRING} affiliate=(.*) RewriteRule ^(.*)$ $1? [NC,R,L,co=AFFID:%1:%{HTTP:Host}:7200:/] Which creates a COOKIE called AFFID with the value of the URL Parameter affiliate. But the Cookie is not for the whole domain, i.e. Going to http://www.domain.com/?affiliate=bmk sets the AFFID cookie with the value bmk for .www.domain.com but I would like ti to be for .domain.com so that it can be used across our secure domain which will be secure.domain.com Any help would be appreciated Cheers
0
[ 2, 17140, 7226, 1, 99, 23716, 4603, 662, 19980, 800, 3726, 3726, 31, 376, 20, 1183, 29, 6772, 10353, 27, 318, 2271, 9, 19, 318, 13, 9, 9020, 20604, 95, 57, 45, 27891, 1126, 43, 13, 11881, 1, 8190, 93, 1, 11130, 1, 6772, 3726, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java implementations of the Prototype Pattern === A list of implementations of the [Prototype][1] Pattern on the Java platform. > A prototype pattern is a creational design pattern used in software development when the type of objects to create is determined by a prototypical instance, which is cloned to produce new objects. [Prototype based programming][2]: > Prototype-based programming is a style of object-oriented programming in which classes are not present, and behavior reuse (known as inheritance in class-based languages) is performed via a process of cloning existing objects that serve as prototypes. [1]: http://en.wikipedia.org/wiki/Prototype_pattern [2]: http://en.wikipedia.org/wiki/Prototype-based_programming
0
[ 2, 8247, 6123, 18, 16, 14, 7063, 3732, 800, 3726, 3726, 21, 968, 16, 6123, 18, 16, 14, 636, 2740, 262, 4474, 500, 2558, 165, 500, 3732, 27, 14, 8247, 2452, 9, 13, 1, 21, 7063, 3732, 25, 21, 2502, 192, 704, 3732, 147, 19, 2306,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
XamlParseException: Attribute in custom control missing, but it's defined! === I *sometimes* get the following exception for a custom control of mine: `XamlParseException occurred` `Unknown attribute Points in element SectionClickableArea [Line: 10 Position 16]` The stack trace: {System.Windows.Markup.XamlParseException: Unknown attribute Points on element SectionClickableArea. [Line: 10 Position: 16] at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at SomeMainDialog.InitializeComponent() at SomeMainDialog..ctor()} The element declaration where this happens looks like this (the **event handler** referenced here is defined, of course): <l:SectionClickableArea x:Name="SomeButton" Points="528,350, 508,265, 520,195, 515,190, 517,165, 530,120, 555,75, 570,61, 580,60, 600,66, 615,80, 617,335, 588,395, 550,385, 540,390, 525,393, 520,385" Click="SomeButton_Click"/> This is part of the code of `SectionClickableArea`: public partial class SectionClickableArea : Button { public static readonly DependencyProperty PointsProperty = DependencyProperty.Register("Points", typeof(PointCollection), typeof(SectionClickableArea), new PropertyMetadata((s, e) => { SectionClickableArea area = (SectionClickableArea) s; area.areaInfo.Points = (PointCollection) e.NewValue; area.UpdateLabelPosition(); })); public PointCollection Points { get { return (PointCollection) GetValue(PointsProperty); } set { SetValue(PointsProperty, value); } } I use this control for something like a polygon-shaped button. Therefore I'm inheriting from button. I've had similar problems (`E_AG_BAD_PROPERTY_VALUE` on another `DependencyProperty` of type string, according to the line and column given, etc) with this control for weeks, but I have absolutely no idea why. ------ Another exception for the same control occurred this morning for another user (taken from a log and translated from German): Type: System.InvalidCastException Message: The object of type System.Windows.Controls.ContentControl could not be converted to type [...]SectionClickableArea. at SomeOtherMainDialog.InitializeComponent() at SomeOtherMainDialog..ctor() Inner exception: Type: System.Exception Message: An HRESULT E_FAIL error was returned when calling COM component at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.SetValue(INativeCoreTypeWrapper obj, DependencyProperty property, DependencyObject doh) at MS.Internal.XcpImports.SetValue(INativeCoreTypeWrapper doh, DependencyProperty property, Object obj) at System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value) at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isSetByStyle, Boolean isSetByBuiltInStyle) at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at System.Windows.Controls.Control.set_DefaultStyleKey(Object value) at System.Windows.Controls.ContentControl..ctor() at System.Windows.CoreTypes.GetCoreWrapper(Int32 typeId) at MS.Internal.ManagedPeerTable.EnsureManagedPeer(IntPtr unmanagedPointer, Int32 typeIndex, Type type, Boolean preserveManagedObjectReference) at MS.Internal.ManagedPeerTable.EnsureManagedPeer(IntPtr unmanagedPointer, Int32 typeIndex, Type type) at MS.Internal.ManagedPeerTable.GetManagedPeer(IntPtr nativeObject) at MS.Internal.FrameworkCallbacks.SetPropertyAttribute(IntPtr nativeTarget, String attrName, String attrValue, String attachedDPOwnerNamespace, String attachedDPOwnerAssembly) Any ideas what's wrong with the control, or what I can do to find the source of these exceptions? As I said, these problem occur only every few dozen times the control is instantiated.
0
[ 2, 13, 6791, 8184, 3574, 870, 10066, 872, 45, 35, 14755, 19, 5816, 569, 2863, 15, 47, 32, 22, 18, 2811, 187, 800, 3726, 3726, 31, 1637, 9310, 2483, 164, 14, 249, 5391, 26, 21, 5816, 569, 16, 1114, 45, 13, 1, 6791, 8184, 3574, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
java: what are the best tecnique for communicating with a batch server? === I've a WEB application (with pure Java servlet) that have some heavy computational work, with database access, that can be done in asynchronus mode. I'm planning to use a dedicated server to execute such batch jobs and I'm wondering which tools/tecniques/protocols to use for communication between servlets in the WEB server and batch jobs in the new dedicated server. I'm looking at JMS. Is it the right choice? There are industry standard and/or widely adopted tecniques? I need also queue and priority handling for multiple simultaneous jobs.
0
[ 2, 8247, 45, 98, 50, 14, 246, 13, 9568, 103, 5312, 26, 23284, 29, 21, 13064, 8128, 60, 800, 3726, 3726, 31, 22, 195, 21, 2741, 3010, 13, 5, 1410, 4267, 8247, 13, 10321, 1336, 6, 30, 57, 109, 1278, 16439, 170, 15, 29, 6018, 138...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
url rewrite in IIS === This question is related to another question which I asked yesterday! http://stackoverflow.com/questions/220796/list-all-links-in-web-site I think renaming all the .html files to .asp and changing the links is not good for SEP purposes. Some one told me that isapi plug-in can be used to redirect(301) all .html files to .asp files. Can any one explain this for me? Searching did not help me much. Thanks
0
[ 2, 287, 6362, 27891, 19, 595, 18, 800, 3726, 3726, 48, 1301, 25, 1597, 20, 226, 1301, 56, 31, 411, 7124, 187, 7775, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 18411, 3399, 12626, 5739, 8, 1233, 8, 6258, 18, 8, 108, 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...
What are the alternatives for meld (graphical diff tool) on OSX === I mostly develop on Linux and meld is indispensable for me. However, when I'm on the road I use a MacBook (leopard) and I want to use the same set of tools as on my main development box, meld being one of them. Although you shoud be able to install meld, I could not succeed with it. So... are there any alternatives that are as good (or better) as meld? One thing to point out, I use subversion and I just love the 'meld .' command that diffs my working directory to the BASE revision... Johan
0
[ 2, 98, 50, 14, 2676, 18, 26, 4551, 43, 13, 5, 12084, 192, 20811, 5607, 6, 27, 13, 759, 396, 800, 3726, 3726, 31, 1555, 2803, 27, 13024, 17, 4551, 43, 25, 19, 2906, 12606, 579, 26, 55, 9, 207, 15, 76, 31, 22, 79, 27, 14, 38...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Comparing hibernate-mapped dates? === How can i map a date from a java object to a database with Hibernate? I try different approaches, but i am not happy with them. Why? Let me explain my issue. I have the following class [1] including the main method i invoke and with the following mapping [2]. The issue about this approach you can see, when you look at the console output. > false > > false > > 1 > > -1 > > 1224754335648 > > 1224754335000 > > Thu Oct 23 11:32:15 CEST 2008 > > Clock@67064 As you can see the the to dates are not exactly equal, although they should, so it is hard to compare them without goofing around with return value of `getTime`. I also tried java.sql.Date, Timestamp and date instead of timestamp in the mapping, but without success. I wonder why the last three digits are zero and if this is a hibernate or a java issue or my own stupidity. Thank you for reading. [1] public class Clock { int id; java.util.Date date; public static void main(String[] args) { HibernateUtil.init(); HibernateUtil.getSessionFactory().getCurrentSession().beginTransaction(); Clock clock = new Clock(); clock.date = new java.util.Date(); HibernateUtil.getSessionFactory().getCurrentSession().saveOrUpdate(clock); HibernateUtil.getSessionFactory().getCurrentSession().getTransaction().commit(); HibernateUtil.getSessionFactory().getCurrentSession().beginTransaction(); Clock fromDBClock = (Clock)HibernateUtil.getSessionFactory() .getCurrentSession().get(Clock.class, 1); System.out.println(clock.date.equals(fromDBClock.date)); System.out.println(fromDBClock.date.equals(clock.date)); System.out.println(clock.date.compareTo(fromDBClock.date)); System.out.println(fromDBClock.date.compareTo(clock.date)); System.out.println(clock.date.getTime()); System.out.println(fromDBClock.date.getTime()); System.out.println(clock.date.toString()); System.out.println(fromDBClock.toString()); HibernateUtil.getSessionFactory().getCurrentSession().getTransaction().commit(); HibernateUtil.end(); } public int getId() { return id; } public void setId(int id) { this.id = id; } public java.util.Date getDate() { return date; } public void setDate(java.util.Date date) { this.date = date; } } [2] <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="Clock" table="CLOCK"> <id name="id" column="CLOCK_ID"> <generator class="native"/> </id> <property name="date" type="timestamp"/> </class> </hibernate-mapping>
0
[ 2, 15047, 4148, 2102, 8820, 8, 79, 16664, 4076, 60, 800, 3726, 3726, 184, 92, 31, 2942, 21, 1231, 37, 21, 8247, 3095, 20, 21, 6018, 29, 4148, 2102, 8820, 60, 31, 1131, 421, 7501, 15, 47, 31, 589, 52, 1700, 29, 105, 9, 483, 60,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CSS "valign" Positioning === <div> <h1>Title</h1> <table> ... </table> </div> Now, the <h1> has a margin: 0; so it is at the top of the div. However I'd like the table to be placed at the bottom of the div, eg. valign="bottom" but for the whole table.
0
[ 2, 272, 18, 18, 13, 7, 3377, 9693, 7, 649, 68, 800, 3726, 3726, 13, 1, 12916, 1, 13, 1, 252, 165, 1, 22235, 1, 118, 252, 165, 1, 13, 1, 5924, 1, 13, 9, 9, 9, 13, 1, 118, 5924, 1, 13, 1, 118, 12916, 1, 130, 15, 14, 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...
app.config configSections custom settings can not find schema information === I am just learning about app.config in respect of creating custom sections. I have that part working, it compiles and gets the information out as required but I get warnings about it could not find the schema information. I have done a bit of googling and could not find a simple explanation of this situation. The approach (that seems to make sense to me at the moment) would be to have a schema file for each section within that project. I understand how to create a schema file, but do not know how I would like this into the project. Also when it is compiled and deployed to another machine I presume that schema file would need to be copied across as well. Thanks for any and all help Jon
0
[ 2, 4865, 9, 14093, 2816, 13, 14093, 2816, 10579, 18, 5816, 12410, 92, 52, 477, 23874, 676, 800, 3726, 3726, 31, 589, 114, 2477, 88, 4865, 9, 14093, 2816, 19, 2873, 16, 2936, 5816, 4501, 9, 31, 57, 30, 141, 638, 15, 32, 26561, 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...
PHP print_r() equivalent in Perl === I find print_r in PHP extremely useful, but wonder if there is anything remotely equivalent in Perl?
0
[ 2, 13, 26120, 4793, 1, 139, 5, 6, 4602, 19, 416, 255, 800, 3726, 3726, 31, 477, 4793, 1, 139, 19, 13, 26120, 3898, 4811, 15, 47, 2666, 100, 80, 25, 602, 23288, 4602, 19, 416, 255, 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...
When does Hibernate read from second-level cache and when from DB? === As far as I know Hibernate let's you configure entities and collections to be stored in a second-level cache. When does Hibernate try to read these cached entities from the second-level cache and when does it hit the DB? Does Hibernate only read from the second-level cache when loading entities by calling <code>Sesssion.get()</code> and when initializing proxies (including collections)? Does Hibernate ever hit the second-level cache when executing HQL- or Criteria-Queries?
0
[ 2, 76, 630, 4148, 2102, 8820, 1302, 37, 153, 8, 3906, 16522, 17, 76, 37, 13, 9007, 60, 800, 3726, 3726, 28, 463, 28, 31, 143, 4148, 2102, 8820, 408, 22, 18, 42, 1065, 15951, 12549, 17, 5721, 20, 44, 8214, 19, 21, 153, 8, 3906,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
NULL in MySQL (Performance & Storage) === What exactly does null do performance and storage (space) wise in MySQL? For example: TINYINT: 1 Byte TINYINT w/NULL 1 byte + somehow stores NULL?
0
[ 2, 16203, 19, 51, 18, 22402, 13, 5, 22528, 279, 4326, 6, 800, 3726, 3726, 98, 1890, 630, 16203, 107, 956, 17, 4326, 13, 5, 5582, 6, 6714, 19, 51, 18, 22402, 60, 26, 823, 45, 3228, 6391, 45, 137, 34, 591, 3228, 6391, 619, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
How can I unit test an MVC UserViewControl? === I've been trying for a while now to write a unit test for a UserViewControl in ASP.NET MVC. I'd like to get to code that looks something like this: [TestMethod] public void HaveControlToDisplayThings() { var listControl = new ControlUnderTest(); var viewData = new ViewDataDictionary<IList<string>>(this.repo.GetMeSomeData()); // Set up a ViewContext using Moq. listControl.SetFakeViewContext(viewData); listControl.ViewData = viewData; listControl.RenderView(listControl.ViewContext); // Never got this far, no idea if this will work :) string s = listControl.ViewContext.HttpContext.Response.Output.ToString(); Assert.AreNotEqual(0, s.Length); foreach (var item in this.repo.GetMeSomeData()) { Assert.IsTrue(s.IndexOf(item) != -1); } } Unfortunately, no matter what I try I get errors from deep inside RenderView. This is caused (as far as I can tell) by the static HttpContext.Current object being useless - I get `NullReferenceException`s from `System.Web.UI.Page.SetIntrinsics`. I tried using Phil Haack's [HttpSimulator][1] which gave me a HttpContext object but I found I also needed to specify a fake `HttpBrowserCapabilities` object to get slightly further: Subtext.TestLibrary.HttpSimulator simulator = new HttpSimulator(); simulator.SimulateRequest(); var browserMock = new Mock<HttpBrowserCapabilities>(); browserMock.Expect(b => b.PreferredRenderingMime).Returns("text/html"); browserMock.Expect(b => b.PreferredResponseEncoding).Returns("UTF-8"); browserMock.Expect(b => b.PreferredRequestEncoding).Returns("UTF-8"); HttpContext.Current.Request.Browser = browserMock.Object; Now I get exceptions on property accesses on that object. I mocked as many as I could, but seemed to be getting nowhere fast. Has anyone managed to make this work? [1]: http://haacked.com/archive/2007/06/19/unit-tests-web-code-without-a-web-server-using-httpsimulator.aspx
0
[ 2, 184, 92, 31, 1237, 1289, 40, 307, 8990, 4155, 4725, 12898, 60, 800, 3726, 3726, 31, 22, 195, 74, 749, 26, 21, 133, 130, 20, 2757, 21, 1237, 1289, 26, 21, 4155, 4725, 12898, 19, 28, 306, 9, 2328, 307, 8990, 9, 31, 22, 43, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
os.walk without digging into directories below === How do i limit os.walk to only return files in the directory i provide it? def _dir_list(self, dir_name, whitelist): outputList = [] for root, dirs, files in os.walk(dir_name): for f in files: if os.path.splitext(f)[1] in whitelist: outputList.append(os.path.join(root, f)) else: self._email_to_("ignore") return outputList
0
[ 2, 13, 759, 9, 10915, 366, 11004, 77, 559, 1596, 1021, 800, 3726, 3726, 184, 107, 31, 4496, 13, 759, 9, 10915, 20, 104, 788, 6488, 19, 14, 16755, 31, 1181, 32, 60, 6312, 13, 1, 9035, 1, 5739, 5, 8411, 15, 13, 9035, 1, 7259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
unsupported protocol: jndi with Websphere 6.1 === I have the problem, that getting a ressource from my archive failed with a MalformedURLException: unknown protocol: jndi The archive is a war file and is deployed into Websphere successfully. When I try to access some files inside the archive via jndi://server/context/filename I get the MalformedURLException. Did anyone know, how to solve this problem? Thanks, Stefan
0
[ 2, 367, 24909, 8494, 45, 487, 9805, 29, 2741, 14079, 400, 9, 165, 800, 3726, 3726, 31, 57, 14, 1448, 15, 30, 1017, 21, 10719, 12097, 37, 51, 9250, 1702, 29, 21, 2814, 12609, 911, 255, 10066, 872, 45, 2562, 8494, 45, 487, 9805, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Are there ssh and scp tasks available for phing? === I would like to do remote deployment from my build machine onto a server. The remoting can be done via ssh commands from a script, but I would rather use phing and a deploy.xml file that would do the automation. What alternatives do I have to do ssh (and also scp) tasks from within a phing build file?
0
[ 2, 50, 80, 13, 18, 1635, 17, 13, 18, 7439, 8674, 904, 26, 4145, 68, 60, 800, 3726, 3726, 31, 83, 101, 20, 107, 5388, 10475, 37, 51, 1895, 1940, 1204, 21, 8128, 9, 14, 302, 7662, 68, 92, 44, 677, 1197, 13, 18, 1635, 14294, 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...
How do cleanly extract MySQL enum values in Perl? === I have some code which needs to ensure some data is in a mysql enum prior to insertion in the database. The cleanest way I've found of doing this is the following code: sub enum_values { my ( $self, $schema, $table, $column ) = @_; # don't eval to let the error bubble up my $columns = $schema->storage->dbh->selectrow_hashref( "SHOW COLUMNS FROM `$table` like ?", {}, $column ); unless ($columns) { X::Internal::Database::UnknownColumn->throw( column => $column, table => $table, ); } my $type = $columns->{Type} or X::Panic->throw( details => "Could not determine type for $table.$column", ); unless ( $type =~ /\Aenum\((.*)\)\z/ ) { X::Internal::Database::IncorrectTypeForColumn->throw( type_wanted => 'enum', type_found => $type, ); } $type = $1; require Text::CSV_XS; my $csv = Text::CSV_XS->new; $csv->parse($type) or X::Panic->throw( details => "Could not parse enum CSV data: ".$csv->error_input, ); return map { /\A'(.*)'\z/; $1 }$csv->fields; } We're using <a href="http://search.cpan.org/dist/DBIx-Class/">DBIx::Class</a>. Surely there is a better way of accomplishing this? (Note that the <tt>$table</tt> variable is coming from our code, <em>not</em> from any external source. Thus, no security issue).
0
[ 2, 184, 107, 2745, 102, 10962, 51, 18, 22402, 1957, 723, 4070, 19, 416, 255, 60, 800, 3726, 3726, 31, 57, 109, 1797, 56, 2274, 20, 4062, 109, 1054, 25, 19, 21, 51, 18, 22402, 1957, 723, 1313, 20, 24245, 19, 14, 6018, 9, 14, 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...
Which is fastest? Data retrival... === Is it quicker to make one trip to the database and bring back 3000+ plus rows, then manipulate them in .net & LINQ or quicker to make 6 calls bringing back a couple of 100 rows at a time?
0
[ 2, 56, 25, 7518, 60, 1054, 13, 6239, 25109, 9, 9, 9, 800, 3726, 3726, 25, 32, 21927, 20, 233, 53, 2305, 20, 14, 6018, 17, 1499, 97, 13226, 2430, 3123, 11295, 15, 94, 18468, 105, 19, 13, 9, 2328, 279, 6294, 1251, 54, 21927, 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, 0, 0, 0...
Do you always use a second-level cache in Hibernate? === Do you always use a second-level cache in Hibernate or do you first try it without and only use it when the performance goes down?
0
[ 2, 107, 42, 550, 275, 21, 153, 8, 3906, 16522, 19, 4148, 2102, 8820, 60, 800, 3726, 3726, 107, 42, 550, 275, 21, 153, 8, 3906, 16522, 19, 4148, 2102, 8820, 54, 107, 42, 64, 1131, 32, 366, 17, 104, 275, 32, 76, 14, 956, 1852, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Session in Asp.net === when we add variable in session in Asp.net where that variable values are actually stored ? (on client side)
0
[ 2, 3723, 19, 28, 306, 9, 2328, 800, 3726, 3726, 76, 95, 3547, 7612, 19, 3723, 19, 28, 306, 9, 2328, 113, 30, 7612, 4070, 50, 1121, 8214, 13, 60, 13, 5, 218, 6819, 270, 6, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
dbmetal visual metal error:"magma string must not be empty" === i am just trying to generate the classes for linq to mysql with dbmetal / visual metal and keep running into the error: "magma string must not be empty"... i've googled, i've recompiled locally, checked the references etc. and don't really want to start debugging this... anybody had the same issue before or knows of another way to generate those classes? thanks
0
[ 2, 13, 9007, 13651, 3458, 1484, 7019, 45, 7, 9473, 540, 3724, 491, 52, 44, 2424, 7, 800, 3726, 3726, 31, 589, 114, 749, 20, 7920, 14, 2684, 26, 6294, 1251, 20, 51, 18, 22402, 29, 13, 9007, 13651, 13, 118, 3458, 1484, 17, 643, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 MOD_Rewrite rewrites invoke a second run through the rewrite rules? === When a RewriteRule is executed by MOD\_Rewrite will all the MOD\_Rewrite rules be executed again for the newly generated request? Specifically in the following example, will this cause a loop? RewriteCond Host: (?:www\.)?mysite\.com RewriteRule ^(.*)$ $1 [QSA,L]
0
[ 2, 107, 7226, 1, 99, 23716, 27891, 18, 28371, 21, 153, 485, 120, 14, 27891, 1761, 60, 800, 3726, 3726, 76, 21, 27891, 16154, 25, 5557, 34, 7226, 1, 99, 23716, 129, 65, 14, 7226, 1, 99, 23716, 1761, 44, 5557, 188, 26, 14, 2771, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Disadvantages of automating a business process? === what would be the disadvantages(if any) of automating business process for a Enterprise/organaization?.
0
[ 2, 13387, 18, 16, 3108, 79, 1880, 21, 508, 953, 60, 800, 3726, 3726, 98, 83, 44, 14, 13387, 18, 5, 821, 186, 6, 16, 3108, 79, 1880, 508, 953, 26, 21, 6002, 118, 6826, 58, 1829, 60, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Humble dialog vs MVC === Why should I choose to use one instead of the other and in which cases? I mainly focus on desktop applications and personally speaking I do find the humble dialog box more easy and natural to use.
0
[ 2, 16446, 28223, 4611, 307, 8990, 800, 3726, 3726, 483, 378, 31, 3538, 20, 275, 53, 700, 16, 14, 89, 17, 19, 56, 1871, 60, 31, 2011, 1776, 27, 17404, 3767, 17, 7200, 3324, 31, 107, 477, 14, 16446, 28223, 1649, 91, 2010, 17, 1112...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Microsoft.SqlServer.Management.Smo and its brothers works on SQL2000? === As title, I need that to run an import script generated by SQL Server DB Publishing Tool. Would that work on Sql2000 server too? Also I have seen ppl reporting missing library issues related to GAC, which libraries I precisely need to include if I am not controlling the deployment server? To know how this thing works you can check here in MSDN Forum. http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=3947420&SiteID=1 I tested and indeed it works in my devbox with SQL2005 Express installed.
0
[ 2, 7099, 9, 18, 22402, 10321, 106, 9, 23502, 9, 18, 1293, 17, 82, 1670, 693, 27, 4444, 255, 3050, 60, 800, 3726, 3726, 28, 581, 15, 31, 376, 30, 20, 485, 40, 9010, 3884, 6756, 34, 4444, 255, 8128, 13, 9007, 3107, 5607, 9, 83, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
View Code / Designer Missing in VS 2008 === Very often when working on an ASP.NET web site, the options View Code and View Designer will be missing from the content menu in the code window, as well as missing from the View menu. They are only available in the context menu in Solution Explorer. This happens when debugging and when not debugging. Anyone know what could be causing this?
0
[ 2, 1418, 1797, 13, 118, 4742, 2863, 19, 4611, 570, 800, 3726, 3726, 253, 478, 76, 638, 27, 40, 28, 306, 9, 2328, 2741, 689, 15, 14, 6368, 1418, 1797, 17, 1418, 4742, 129, 44, 2863, 37, 14, 2331, 11379, 19, 14, 1797, 1463, 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...
Why is _POST sometimes empty when a textarea is posted in PHP === PHP 4.4 and PHP 5.2.3 under Apache 2.2.4 on ubuntu. I am running Moodle 1.5.3 and have recently had a problem when updating a course. The $_POST variable is empty but only if a lot of text was entered into the textarea on the form. If only a short text is entered it works fine. I have increased the post_max_size from 8M to 200M and increased the memory_limit to 256M but this has not helped. I have doubled the LimitRequestFieldSize and LimitRequestLine to 16380 and set LimitRequestBody to 0 with no improvement. I have googled for an answer but have been unable to find one. HTTP Headers on firefox shows the content size of 3816 with the correct data, so its just not getting to $_POST. The system was running fine until a few weeks ago. The only change was to /etc/hosts to correct a HELO issue with the exim4 email server. I can replicate the issue on a development machine that has exim4 not running so I think it is just coincidence. Thanks for your assistance.
0
[ 2, 483, 25, 13, 1, 6962, 1030, 2424, 76, 21, 1854, 17760, 25, 6054, 19, 13, 26120, 800, 3726, 3726, 13, 26120, 268, 9, 300, 17, 13, 26120, 331, 9, 135, 9, 240, 131, 17140, 172, 9, 135, 9, 300, 27, 287, 12968, 2473, 9, 31, 58...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Centre Text Relative to Available Space in CSS === <div style="width: 300px"> <div id="one" style="float: left">saved</div><input type="submit" id="two" style="float: right" value="Submit" /> </div> I would like div#one to be centred in the space between the left edge of the parent div and the left edge of the submit button.
0
[ 2, 861, 1854, 4543, 20, 904, 726, 19, 272, 18, 18, 800, 3726, 3726, 13, 1, 12916, 1034, 3726, 7, 3976, 43, 96, 45, 3565, 306, 396, 7, 1, 13, 1, 12916, 4924, 3726, 7, 849, 7, 1034, 3726, 7, 14712, 721, 45, 225, 7, 1, 19863, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Issue Tracking over Git === Are there any good issue tracking systems that can track issues on git commits/branches?
0
[ 2, 1513, 10353, 84, 13, 10404, 800, 3726, 3726, 50, 80, 186, 254, 1513, 10353, 1242, 30, 92, 792, 1549, 27, 13, 10404, 9686, 18, 118, 23014, 160, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to ignore whitespaces while reading a file to produce a XML Document === i'm triying to read a file to produce a DOM Document, but the file has whitespaces and new-lines and i'm triying to ignore them, but i couldn't >DocumentBuilderFactory docfactory=DocumentBuilderFactory.newInstance(); >docfactory.setIgnoringElementContentWhitespace(true); i see in javadoc that setIgnoringElementContentWhitespace method operates only when the validating flag is enabled, but i haven't de DTD or XML Schema for the document. What can i do?
0
[ 2, 184, 20, 7174, 359, 5582, 18, 133, 1876, 21, 3893, 20, 2213, 21, 23504, 4492, 800, 3726, 3726, 31, 22, 79, 2286, 8173, 20, 1302, 21, 3893, 20, 2213, 21, 11859, 4492, 15, 47, 14, 3893, 63, 359, 5582, 18, 17, 78, 8, 7939, 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...
Domain knowlwdge for programmer === Ok So You are Programming Geek , Expert in c/++/#.... . However the project where one work falls in one of many "domains". By domains I mean Technology Domain like : - Banking/financial applications - Networking/wireless/telecom - Mobile Applications - Web/storage/enterprise/Numerous others.. So as a programmer Do one need to be master of a domain ? Or just the Language can make you survive ? and you love to be called great Programmer or also a Domain Expert ? Note: I come from "C" background ,which is not tied-up with any domain, unlike PHP and others , hence for some of you this question might be irrelevant , so pardon me.
1
[ 2, 4603, 143, 23281, 43, 834, 26, 17968, 800, 3726, 3726, 5854, 86, 42, 50, 3143, 23831, 13, 15, 5390, 19, 272, 118, 20512, 118, 5910, 9, 9, 9, 9, 13, 9, 207, 14, 669, 113, 53, 170, 2564, 19, 53, 16, 151, 13, 7, 537, 6232, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mac/Windows Switching === About 2 years ago I dropped windows from my home PC and switched 100% to linux (fedora, then ubuntu) - The missus wasn't too happy but she got used to it and learned a thing or two. Then about 6 months ago I got myself a shiny new Macbook and since moving to OSX have never looked back; Unfortunately I've not been successful in getting my employer to buy me one for work (and I can't be carrying mine back and forth) so I have to "put up" with windows. I started out with windows over 8 years ago so I have a really good understanding of how it works and have done my fair share of Win32/MFC/.NET development. My question is; Who else has to use a windows box at work (and have a mac at home) And how do you cope - what windows apps/configurations do they use that let them work in a similar fashion to OSX? - I was just thinking how cool it would be if I could get some sort of keymapping app that re-mapped my windows keys to the OSX variants (Apple+W, Apple+Q, Apple+Left, Apple+Right, etc etc). I miss expose (TopDesk is nice but not free)... I miss the simplicity of finder... I miss the nice smooth dialogs and windows and shadows (YzShadow can juuuuust cope) I miss the underlying unix framework (I run andLinux at work) I miss OSX :( Unfortunately 90% of our clients use IE so windows is a must; They also can't justify the expense of a mac for a developer; Especially a Mac Pro :-p Ah well.
0
[ 2, 1572, 118, 27508, 18, 13027, 800, 3726, 3726, 88, 172, 122, 1464, 31, 1539, 1936, 37, 51, 213, 5168, 17, 6667, 12849, 20, 13024, 13, 5, 3739, 12578, 15, 94, 287, 12968, 2473, 6, 13, 8, 14, 1501, 267, 526, 22, 38, 266, 1700, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JBoss/EJB vs Symmetric DS === I'm working on a project which is just about to start, and since I was busy with another one my colleagues went ahead and started working on the specs to the new one. When I came in, they had just chosen to do persistence with plain SQL (promptly accepted my suggestion to add Hibernate, though) but insisted in that data replication should be performed using a tool called **Symmetric DS**, of which I had never heard about. I am concerned because, as far as I know, having a JBoss server (current plans are to use Tomcat only) with EJB3 handles all of the transaction/replication hassle, and should spare us from a lot of headaches. How do you guys see this **Symmetric DS**? (note that I have nothing against it whatsoever, it's just that I know JBoss to be around for a long while and it has a quite respectable reputation) How would you compare the two solutions? Thanks!
0
[ 2, 487, 10349, 18, 118, 10022, 220, 4611, 13, 16367, 13, 43, 18, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 669, 56, 25, 114, 88, 20, 799, 15, 17, 179, 31, 23, 4394, 29, 226, 53, 51, 8493, 296, 2173, 17, 373, 638, 27, 14, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
GWT Unit Testing TDD and Tooling === I m just starting using gwt and so far so good, however after reading some sample code I wonder is it necesary to have a high level of test coverage? (I can see that most code is declarative and then add some attributes I can see the sense in checking so me particular attributes are there but not all) Also i would be interested to know anything about what are the gotchas in TDDing with GWT I m using eclipse so also if you are really happy with some particualrs add ins for GWT I would be happy to hear about that Thanks for the input
0
[ 2, 14094, 38, 1237, 4431, 15596, 43, 17, 266, 802, 800, 3726, 3726, 31, 307, 114, 1422, 568, 14094, 38, 17, 86, 463, 86, 254, 15, 207, 75, 1876, 109, 5717, 1797, 31, 2666, 25, 32, 19724, 160, 1857, 20, 57, 21, 183, 662, 16, 12...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the 'static void Main' equivalent in Flash? === I am trying the FDT editor on a project that previously ran successfully in Flash CS3. FDT builds and runs it successfully but the SWF is blank (white). I've tried a few viewers on the output file and it is actually blank. One difference is that now my project doesn't seem to include my entry `.fla` file. I'm new to Flash/ActionScript and am wondering whether that FLA file included some magic akin to a `public static void Main` method in other languages. So, if I'm building an application purely in ActionScript 3 (no `.fla` files) how do I specify the entrypoint, canvas size, etcetera? Of course, it's possible that I have set up FDT incorrectly :)
0
[ 2, 98, 22, 18, 14, 13, 22, 18077, 11364, 407, 22, 4602, 19, 4433, 60, 800, 3726, 3726, 31, 589, 749, 14, 398, 43, 38, 1835, 27, 21, 669, 30, 1343, 717, 3673, 19, 4433, 272, 18, 240, 9, 398, 43, 38, 1895, 18, 17, 1461, 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 should I never use an usafe block to modify a string? === I have a String which I would like to modify in some way. For example: reverse it or upcase it. I have discovered that the fastest way to do this is by using a unsafe block and pointers. For example: unsafe { fixed (char* str = text) { *str = 'X'; } } Are there any reasons why I should never ever do this?
0
[ 2, 483, 378, 31, 243, 275, 40, 21106, 62, 1921, 20, 17579, 21, 3724, 60, 800, 3726, 3726, 31, 57, 21, 3724, 56, 31, 83, 101, 20, 17579, 19, 109, 161, 9, 26, 823, 45, 7006, 32, 54, 71, 10325, 32, 9, 31, 57, 1848, 30, 14, 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...
ViewData.Model in partial is null === In my main page (call it index.aspx) I call <%Html.RenderPartial("_PowerSearch", ViewData.Model);%> Here the viewdata.model != null When I arrive at my partial <%=ViewData.Model%> Says viewdata.model == null What gives?!
0
[ 2, 1418, 18768, 9, 13998, 19, 7284, 25, 16203, 800, 3726, 3726, 19, 51, 407, 2478, 13, 5, 9200, 32, 4348, 9, 472, 306, 396, 6, 31, 645, 13, 1, 11881, 15895, 9, 99, 16706, 3091, 2815, 5, 7, 1, 5484, 25136, 7, 15, 1418, 18768, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...