unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Correct behavior for interface methods that can't be implemented === If I have a class that needs to implement an interface but one or more of the methods on that interface don't make sense in the context of this particular class, what should I do? For example, lets say I'm implementing an adapter pattern where I want to create a wrapper class that implements [java.util.Map](http://java.sun.com/javase/6/docs/api/java/util/Map.html) by wrapping some immutable object and exposing it's data as key/value pairs. In this case the methods put and putAll don't make sense as I have no way to modify the underlying object. So the question is what should those methods do?
0
[ 2, 4456, 3257, 26, 6573, 3195, 30, 92, 22, 38, 44, 6807, 800, 3726, 3726, 100, 31, 57, 21, 718, 30, 2274, 20, 8713, 40, 6573, 47, 53, 54, 91, 16, 14, 3195, 27, 30, 6573, 221, 22, 38, 233, 1259, 19, 14, 4141, 16, 48, 1498, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Executing and then Deleting a DLL in c# === I'm creating a self updating app where I have the majority of the code in a seperate DLL. It's command line and will eventually be run on Mono. I'm just trying to get this code to work in C# on windows at the command line. How can I create a c# application that I can delete a supporting dll while its running? AppDomain domain = AppDomain.CreateDomain("MyDomain"); ObjectHandle instance = domain.CreateInstance( "VersionUpdater.Core", "VersionUpdater.Core.VersionInfo"); object unwrap = instance.Unwrap(); Console.WriteLine(((ICommand)unwrap).Run()); AppDomain.Unload(domain); Console.ReadLine(); at the ReadLine the VersionUpdater.Core.dll is still locked from deletion
0
[ 2, 25836, 17, 94, 121, 1336, 68, 21, 13, 43, 211, 19, 272, 5910, 800, 3726, 3726, 31, 22, 79, 2936, 21, 1119, 71, 43, 1880, 4865, 113, 31, 57, 14, 1698, 16, 14, 1797, 19, 21, 10332, 106, 1373, 13, 43, 211, 9, 32, 22, 18, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Focus on a Control When Switching Tabs === What I want to do is set the focus to a specific control (specifically a TextBox) on a tab page when that tab page is selected. I've tried to call Focus during the Selected event of the containing tab control, but that isn't working. After that I tried to call focus during the VisibleChanged event of the control itself (with a check so that I'm not focusing on an invisible control), but that isn't working either. Searching this site, I've come across this [question][1] but that isn't working either. Although after that, I did notice that calling the Focus of the control does make it the ActiveControl. [1]: http://stackoverflow.com/questions/48680/winforms-c-set-focus-to-first-child-control-of-tab-page
0
[ 2, 1776, 27, 21, 569, 76, 13027, 6523, 18, 800, 3726, 3726, 98, 31, 259, 20, 107, 25, 309, 14, 1776, 20, 21, 1903, 569, 13, 5, 9219, 1326, 21, 1854, 5309, 6, 27, 21, 6523, 2478, 76, 30, 6523, 2478, 25, 1704, 9, 31, 22, 195, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 export a Silverlight 2.0 DataGrid to html? === I need to export a SL DataGrid to html so my users can then print it. Can someone put me in the right direction?
0
[ 2, 184, 107, 31, 7487, 21, 1172, 3130, 172, 9, 387, 1054, 16375, 20, 13, 15895, 60, 800, 3726, 3726, 31, 376, 20, 7487, 21, 13718, 1054, 16375, 20, 13, 15895, 86, 51, 3878, 92, 94, 4793, 32, 9, 92, 737, 442, 55, 19, 14, 193, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Learning resources - stack machines, JVM especially === I'm curious if anyone have any really good tutorials/articles/books for learning about stack machines in general, and the JVM in particular. I know these ones: [http://www.artima.com/insidejvm/applets/EternalMath.html][1] [http://www.ibm.com/developerworks/ibm/library/it-haggar_bytecode/][2] [http://www.theserverside.com/tt/articles/article.tss?l=GuideJavaBytecode][3] Appearently the books Inside the JVM by Bill Winners and Programming for the JVM are good, even though they are old. These are all on my "toread" list, for rainy autumn weekends. Anyone have any other suggestions? [1]: http://www.artima.com/insidejvm/applets/EternalMath.html [2]: http://www.ibm.com/developerworks/ibm/library/it-haggar_bytecode/ [3]: http://www.theserverside.com/tt/articles/article.tss?l=GuideJavaBytecode
0
[ 2, 2477, 2566, 13, 8, 7566, 6035, 15, 487, 20147, 1118, 800, 3726, 3726, 31, 22, 79, 7686, 100, 1276, 57, 186, 510, 254, 29724, 18, 118, 20360, 18, 118, 13828, 26, 2477, 88, 7566, 6035, 19, 297, 15, 17, 14, 487, 20147, 19, 1498,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 local users on remote windows server using c# === Provided I have admin access, I need a way to manage (Create, modify, remove) local accounts in a remote machine from an ASP.NET client. I'm clueless in how to approach this. Is WMI a possibility (System.Management namespace)? Any pointers?
0
[ 2, 2936, 375, 3878, 27, 5388, 1936, 8128, 568, 272, 5910, 800, 3726, 3726, 1173, 31, 57, 21, 43, 2160, 1381, 15, 31, 376, 21, 161, 20, 4705, 13, 5, 6037, 1373, 15, 17579, 15, 4681, 6, 375, 5310, 19, 21, 5388, 1940, 37, 40, 28,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to validate a property of a custom object in a databinding scenario (i.e. BindingList)? === When you a set a property's value, you can either validate before or after updating the internal value. If validating before, you could throw an exception if the new value is invalid. The object is then always in a valid state. If validating after, undo is desired (i.e. via ***IEditableObject***), so the user can cancel the edit any time. We also have the option of either throwing an exception here or expose errors via ***IDataErrorInfo***. I don't think ***IDataErrorInfo*** makes sense if validating before the set. Some also may argue throwing an Exception is not warranted in validation scenarios. Validating after works great in scenarios where the custom object is contained in BindingList and set as datasource to a grid. Validating before works ok with grids too but you kind of have to throw an exception in order to signal the setting of the property value failed to the data grid (without a lot of extra code) I am also not comfortable with my domain objects implementing ***IEditableObject*** and ***IDataErrorInfo***, ***INotifyPropertyChanged***, etc. It leaves the domain object cluttered with extra concerns. But it seems unavoidable if you want to place nice with databinding. I could create a wrapper, DTO perhaps, but I'm not too crazy about having to write mostly dummy extra code just to support these databinding bits. How do you validate objects (preferrably in the context of databinding and UI)?
0
[ 2, 184, 20, 7394, 1373, 21, 1354, 16, 21, 5816, 3095, 19, 21, 1054, 22260, 12705, 13, 5, 49, 9, 62, 9, 8728, 5739, 6, 60, 800, 3726, 3726, 76, 42, 21, 309, 21, 1354, 22, 18, 1923, 15, 42, 92, 694, 7394, 1373, 115, 54, 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...
.NET Attributes List === Is there a list somewhere on common Attributes which are used in objects> Like "Serializable()"? Thanks
0
[ 2, 13, 9, 2328, 13422, 968, 800, 3726, 3726, 25, 80, 21, 968, 3493, 27, 757, 13422, 56, 50, 147, 19, 3916, 1, 101, 13, 7, 4104, 2815, 3186, 579, 5, 6, 7, 60, 3669, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
F# and OCaml === I hear that F# is derived from OCaml. How true is this statement? That is to say, are the resources available for learning OCaml useful to someone who wants to learn F#? What are the major differences between the two languages (aside from the fact that F# is .NET)?
0
[ 2, 398, 5910, 17, 13, 14977, 8184, 800, 3726, 3726, 31, 990, 30, 398, 5910, 25, 3981, 37, 13, 14977, 8184, 9, 184, 1151, 25, 48, 3331, 60, 30, 25, 20, 395, 15, 50, 14, 2566, 904, 26, 2477, 13, 14977, 8184, 4811, 20, 737, 72, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Isn't saying "C/C++" wrong? === I've seen a lot of questions around that use improperly the expression "C/C++". The reasons in my opinion are: - Newbie C and C++ programmers probably don't understand the difference between the two languages. - People don't really care about it since they want a generic, quick and "dirty" answer While C/C++ could sometimes be interpreted as "either C or C++", I think it's a big error. C and C++ offer different approaches to programming, and even if C code can be easily implemented into C++ programs I think that referring to two separate languages with that single expression ( C/C++ ) is wrong.<br /> It's true that some questions can be considered either as C or C++ ones, anyway. What do you think about it?
0
[ 2, 2532, 22, 38, 1148, 13, 7, 150, 118, 150, 20512, 7, 1389, 60, 800, 3726, 3726, 31, 22, 195, 541, 21, 865, 16, 2346, 140, 30, 275, 22243, 102, 14, 1803, 13, 7, 150, 118, 150, 20512, 7, 9, 14, 2932, 19, 51, 4052, 50, 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...
CSS - Is there a way to get rid of the selection rectangle after clicking a link? === Is there a way to get rid of the selection rectangle when clicking a link which does not refresh the current page entirely?
0
[ 2, 272, 18, 18, 13, 8, 25, 80, 21, 161, 20, 164, 6681, 16, 14, 3155, 27181, 75, 25590, 21, 3508, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 164, 6681, 16, 14, 3155, 27181, 76, 25590, 21, 3508, 56, 630, 52, 24905, 14, 866, 247...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Refactoring XSD Schemas === I'm working in a project which needs to clean up some third party XSD Schemas and I want to do some refactoring of common elements in them. There is any suitable tool to automate this? I tried by sfactor from XMLBeans but it doesn't work (it throws a weird exception which even Google can't answer!).
0
[ 2, 302, 17455, 68, 993, 18, 43, 23874, 18, 800, 3726, 3726, 31, 22, 79, 638, 19, 21, 669, 56, 2274, 20, 2745, 71, 109, 422, 346, 993, 18, 43, 23874, 18, 17, 31, 259, 20, 107, 109, 302, 17455, 68, 16, 757, 2065, 19, 105, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
In PHP, for what reasons can I not include a variable from external file? === If I have $var defined in Page1.php and in Page2.php I have <pre> //Page2.php include('Page1.php'); echo $var; </pre> For what reasons will it not print the value of $var to the screen? The files are in the same directory so paths shouldn't be the issue. I've checked the php.ini file and nothing really jumps out at me. Any ideas? Thanks
0
[ 2, 19, 13, 26120, 15, 26, 98, 2932, 92, 31, 52, 468, 21, 7612, 37, 4886, 3893, 60, 800, 3726, 3726, 100, 31, 57, 5579, 3311, 2811, 19, 2478, 165, 9, 26120, 17, 19, 2478, 135, 9, 26120, 31, 57, 13, 1, 3515, 1, 12894, 6486, 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...
Move SSIS Packages from SQL Server 2005 to 2008. === What are best practices for moving/exporting SQL Server Integration Services Packages from a SQL Server 2005 DB over to 2008? What are some of the security concerns?
0
[ 2, 780, 13, 18, 4557, 16875, 37, 4444, 255, 8128, 812, 20, 570, 9, 800, 3726, 3726, 98, 50, 246, 5242, 26, 1219, 118, 1706, 1993, 68, 4444, 255, 8128, 8078, 687, 16875, 37, 21, 4444, 255, 8128, 812, 13, 9007, 84, 20, 570, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
feof of a closed file === for a FILE* stream, if I read as much data as possible, feof(stream) returns me non-zero. Then, If I fclose stream, it feof(stream) will continue to returns me a non-zero value? Is it GUARANTEED?
0
[ 2, 3686, 1041, 16, 21, 827, 3893, 800, 3726, 3726, 26, 21, 3893, 2483, 3766, 15, 100, 31, 1302, 28, 212, 1054, 28, 938, 15, 3686, 1041, 5, 11260, 6, 4815, 55, 538, 8, 15938, 9, 94, 15, 100, 31, 398, 14330, 3766, 15, 32, 3686, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
DO I have to be a Scrum Master to manage the agile scrums? === I am sure to become a scrum master could really add value to the process I am following, however I believe that the background of the area of the application I am working on help more to get better planning and scheduling done for the project
0
[ 2, 107, 31, 57, 20, 44, 21, 26562, 1129, 20, 4705, 14, 27475, 26562, 18, 60, 800, 3726, 3726, 31, 589, 562, 20, 533, 21, 26562, 1129, 110, 510, 3547, 1923, 20, 14, 953, 31, 589, 249, 15, 207, 31, 985, 30, 14, 2395, 16, 14, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does CLI mean anything other than "command line interface"? === According to Wikipedia, on the Comparison of programming languages page, it says that F# uses CLI. Does that mean that F# is designed for the purpose of making command-line applications and not graphical applications, or is there another meaning of CLI?
0
[ 2, 630, 19391, 884, 602, 89, 119, 13, 7, 16239, 293, 6573, 7, 60, 800, 3726, 3726, 496, 20, 20169, 15, 27, 14, 6050, 16, 3143, 2556, 2478, 15, 32, 898, 30, 398, 5910, 2027, 19391, 9, 630, 30, 884, 30, 398, 5910, 25, 1006, 26, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ExitCodes bigger than 255, possible? === If yes, on which operating system, shell or whatever? Consider the following java program (I'm using java just as an example, any language would be good for this question, which is more about operation systems): public class ExitCode { public static void main(String args[]) { System.exit(Integer.parseInt(args[0])); } } Running it on Linux and bash, it returns always values less equal 255, e.g. (`echo $?` prints the exit code of the previous executed command) > java ExitCode 2; echo $? 2 > java ExitCode 128; echo $? 128 > java ExitCode 255; echo $? 255 > java ExitCode 256; echo $? 0 > java ExitCode 65536; echo $? 0
0
[ 2, 4350, 9375, 18, 6197, 119, 13, 20038, 15, 938, 60, 800, 3726, 3726, 100, 1643, 15, 27, 56, 2455, 329, 15, 3593, 54, 2099, 60, 3563, 14, 249, 8247, 625, 13, 5, 49, 22, 79, 568, 8247, 114, 28, 40, 823, 15, 186, 816, 83, 44,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.NET Open Source CODE for SFTP ? === I googled a lot, and could not find a single open source implementation of SFTP in .NET. All i got is 3rd party component for SFTP. can anyone help me with SFTP implenetation in .NET ?
0
[ 2, 13, 9, 2328, 368, 1267, 1797, 26, 15025, 13726, 13, 60, 800, 3726, 3726, 31, 8144, 43, 21, 865, 15, 17, 110, 52, 477, 21, 345, 368, 1267, 6123, 16, 15025, 13726, 19, 13, 9, 2328, 9, 65, 31, 330, 25, 203, 897, 346, 5912, 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...
And God said, "Let there be both chicken™ and egg™." === I'm primarily interested in pgsql for this, but I was wondering if there is a way in any RDBMS to do an insert operation, *without* disabling and re-enabling any FOREIGN KEY or NOT NULL constraints, on two tables that refer to each other. (You might think of this as a chicken that was somehow born from its own egg.) For a practical example, if you had a multiple-choice quiz system, with a question and answer table, where question.correct_answer refers to answer.id, and answer.question refers to question.id, is it possible to add a question and its answers simultaneously? (For the record, I'm aware that you can do the disabling and re-enabling in a transaction block, and that another solution is to not have a correct_answer column but instead have answer.correct as a boolean and have a check constraint making sure there's exactly one correct answer per question. But I'm not curious about alternative solutions here.)
0
[ 2, 17, 701, 87, 15, 13, 7, 1336, 80, 44, 156, 6360, 38, 79, 17, 6387, 38, 79, 9, 7, 800, 3726, 3726, 31, 22, 79, 2257, 3158, 19, 13, 9623, 18, 22402, 26, 48, 15, 47, 31, 23, 5712, 100, 80, 25, 21, 161, 19, 186, 13, 897, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 do a LINQ Outer Join of a SubTable? === I have a data tables with this type of setup. Table A AID AName --------------------- 1 A_Name1 2 A_Name2 3 A_Name3 Table B BID BName --------------------- 10 B_Name1 20 B_Name2 30 B_Name3 Table C AID BID --------------------- 1 10 2 10 2 20 2 30 3 20 3 30 I want to use LINQ to write a query that for a given ID of A give me the list of B that is not in table C. So for AID of 1 I want BID of 20 & 30. For AID of 3 I want BID of 10 For AID of 2 nothing returned anything returned. I know the SQL would be SELECT B.BID FROM B LEFT OUTER JOIN C ON C.BID = B.BID AND A.AID = 1 -- AID would change based on which I was looking for, 1, 2, or 3 What is the LINQ Equivalent? Please assume I have objects that match the tables of A, B, and C accordingly.
0
[ 2, 184, 20, 107, 21, 6294, 1251, 4896, 1865, 16, 21, 972, 5924, 60, 800, 3726, 3726, 31, 57, 21, 1054, 7484, 29, 48, 1001, 16, 18161, 9, 859, 21, 3096, 21, 7259, 13, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 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...
Is there an MSBuild task that will extract the path give from a file name? === I use the following to get a list of project files that need to be compiled. Each project is stored in a subdirectory of the projects directory. <ItemGroup> <dprs Include="c:\projects\**\*.dpr" /> </ItemGroup> Is there a task that I can use to extract to extract the directory that each project file is in? I know I can write my own task to do this but I was hoping that one already exists and that I simply have not found it yet.
0
[ 2, 25, 80, 40, 4235, 29361, 3005, 30, 129, 10962, 14, 2013, 590, 37, 21, 3893, 204, 60, 800, 3726, 3726, 31, 275, 14, 249, 20, 164, 21, 968, 16, 669, 6488, 30, 376, 20, 44, 9316, 9, 206, 669, 25, 8214, 19, 21, 972, 10197, 93...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Distribution of Code with Visual Studio Express Products === I installed Visual Studio (Web Developer in this case) Express Edition and was reading through the EULA. One thing that did not jump out at me was what I was allowed to use the software for (private, commercial, etc). Does anyone know if you are allowed to sell/distribute the code you create in these Express editions? I know they are geared toward the hobbyist and other software licenses, like the Student and Teacher editions of Office, do not allow commercial use for the software. I'd like to eventually start giving out code either via OSS licenses like BSD or GPL and even maybe sell some code but not sure I can do that with the Express Editions.
0
[ 2, 2523, 16, 1797, 29, 3458, 1120, 2999, 1985, 800, 3726, 3726, 31, 4066, 3458, 1120, 13, 5, 14113, 10058, 19, 48, 610, 6, 2999, 1322, 17, 23, 1876, 120, 14, 2898, 531, 9, 53, 584, 30, 144, 52, 3936, 70, 35, 55, 23, 98, 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...
TTS Engine Recommendation === Can anyone recommend a reliable and cost effective TTS engine for use in a telephony application? Requirements are: - Must support the Windows platform - Must have rich language support including support for accents (ie US English vs GB English) Nice to have: - Integration with the .NET platform - Budget friendly - Though the output will be directed to a telephony app, it would be nice to be able to have complete control over quality of output (for potential uses in the future) I'd be interested in hearing any and all experiences with the different packages. Note: Unfortunately open source packages are not an option around here.
0
[ 2, 13, 38, 38, 18, 1406, 14066, 800, 3726, 3726, 92, 1276, 12360, 21, 11398, 17, 1516, 3140, 13, 38, 38, 18, 1406, 26, 275, 19, 21, 4338, 22031, 3010, 60, 4786, 50, 45, 13, 8, 491, 555, 14, 1936, 2452, 13, 8, 491, 57, 2042, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
please help me === i have code in vb6 ( this code do coping the flash memory to acertain trac ) i want to convert it to c#
0
[ 2, 2247, 448, 55, 800, 3726, 3726, 31, 57, 1797, 19, 13, 20468, 379, 13, 5, 48, 1797, 107, 5326, 68, 14, 4433, 1912, 20, 21, 5482, 5851, 13, 38, 5797, 13, 6, 31, 259, 20, 8406, 32, 20, 272, 5910, 3, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How can I manage 'Designing by committee' === As an inexperienced software developer I am familiar with and have come to love the peer review process. Whenever I ask a senior developer (not my boss but still senior) about some small point of the system design somehow it becomes a debate where Im being forced to design my code by committee. How can I manage this? Let me set the sceen: I have never done any substantial system/software design before due to the fact that all the projects I have worked on haven't been at that stage. Therefore it is pretty fair to say that Im a design novice. I have however written code from other peoples designs so I know what I like to see and What I don't. Coupled with the fact that I know my own coding style so I know roughly how I would tackle any given situation. Given that myself and my colegue have almost exactly the opposite oppinions on software development we are almost constantly arguing about it. There are valid occasions where I might have over looked some point and the comments that are made are valid. How can I manage the situation to allow my software designs to take shape the way I envisage them yet still have meaninful insights into the pitfalls of my design from onlookers?
0
[ 2, 184, 92, 31, 4705, 13, 22, 19862, 68, 34, 940, 22, 800, 3726, 3726, 28, 40, 27624, 2306, 10058, 31, 589, 3694, 29, 17, 57, 340, 20, 339, 14, 7617, 1487, 953, 9, 6634, 31, 1349, 21, 1101, 10058, 13, 5, 1270, 51, 4054, 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...
Strange Hibernate Cache Issue === We are using Hibernate 3.1 with Spring MVC 2.0. Our problem occurs when data is updated on the database directly (not in the application). We use a Filter to filter a collection of results by whether the orders are opened or closed. If we change an order on the DB to be closed, the filter returns the correct list, however, the object's status does not change. - We do not have second-level or query caching enabled. - The retrieval of the collection from the DB is via Hibernate's Session.createQuery. - Also, we have one SessionFactory wired, and using one Session throughout the application. The only time the object displays the correct status result is when the server is restarted--which we'd prefer not to have to do on a regular basis. Please offer any insight, and if any other information is required, please ask. Thanks!
0
[ 2, 2578, 4148, 2102, 8820, 16522, 1513, 800, 3726, 3726, 95, 50, 568, 4148, 2102, 8820, 203, 9, 165, 29, 1573, 307, 8990, 172, 9, 387, 9, 318, 1448, 3690, 76, 1054, 25, 6372, 27, 14, 6018, 1703, 13, 5, 1270, 19, 14, 3010, 6, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the difference between a schema namespace and an assembly reference in WPF? === Why is it that there are two kinds of references in xaml. One looks like this: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" But mine look like this: xmlns:WPFToolKit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit"
0
[ 2, 98, 22, 18, 14, 2841, 128, 21, 23874, 204, 5582, 17, 40, 1475, 2801, 19, 619, 7721, 60, 800, 3726, 3726, 483, 25, 32, 30, 80, 50, 81, 8623, 16, 7231, 19, 13, 6791, 8184, 9, 53, 1879, 101, 48, 45, 23504, 2172, 45, 396, 372...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 kind of programming environment do you use to write your Windows-based Games? === I've used XNA and Visual Studio 2005 integrated with Flash. I'm curious to see what environments other people use and prefer.
0
[ 2, 98, 825, 16, 3143, 2307, 107, 42, 275, 20, 2757, 154, 1936, 8, 1281, 466, 60, 800, 3726, 3726, 31, 22, 195, 147, 993, 325, 17, 3458, 1120, 812, 5547, 29, 4433, 9, 31, 22, 79, 7686, 20, 196, 98, 11246, 89, 148, 275, 17, 63...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
In a SELECT statement(MS SQL) how do you trim a string === For Example; SELECT TRIM(Names) FROM Customer
0
[ 2, 19, 21, 5407, 3331, 5, 79, 18, 4444, 255, 6, 184, 107, 42, 8971, 21, 3724, 800, 3726, 3726, 26, 823, 73, 5407, 8971, 5, 7259, 18, 6, 37, 7705, 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, 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...
Optimize Frustum Culling === i am writing a game in C++ and have a level consisting of many seperate meshes, each with their own vertex buffer. i am using vmmlib ( brilliant free gl compat. vector/matrix library ) to create my frustum culler and testing it against the bounding sphere of every mesh in the level. sadly my level can consist of up to 800 meshes and iterating through all of them each frame is slow. what is the best way of optimizing the code so that i don't have to look at all of the meshes on every iteration? Bounding volumes inside the frustum?
0
[ 2, 22864, 13394, 18, 5633, 19075, 68, 800, 3726, 3726, 31, 589, 1174, 21, 250, 19, 272, 20512, 17, 57, 21, 662, 4160, 16, 151, 10332, 106, 1373, 55, 1079, 18, 15, 206, 29, 66, 258, 22895, 17497, 9, 31, 589, 568, 566, 3363, 8326,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I get the integer value of a char in C++? === I want to take the value stored in a 32 bit unsigned int, put it into four chars and then store the integer value of each of these chars in a string. I think the first part goes like this: char a = orig << 8; char b = orig << 8; char c = orig << 8; char d = orig << 8;
0
[ 2, 184, 107, 31, 164, 14, 13820, 1923, 16, 21, 4892, 19, 272, 20512, 60, 800, 3726, 3726, 31, 259, 20, 247, 14, 1923, 8214, 19, 21, 2512, 1142, 28839, 19, 38, 15, 442, 32, 77, 222, 4892, 18, 17, 94, 1718, 14, 13820, 1923, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
NSMutableArray destruction === I have an array NSMutableArray with happy objects. These objects viciously turn on me whenever I try to clear the array of all the objects and repopulate it. It's allocated in the init function like so self.list = [NSMutableArray array]; The different methods I have used to clear it out include: self.list = nil; self.list = [NSMutableArray array]; and [self.eventList removeAllObjects]; Explicitly allocating and releasing the array doesn't work either. The leak ONLY occurs when I try to reset the list. Am I missing a step when resetting or is this a different problem?
0
[ 2, 13, 2172, 7903, 579, 8576, 93, 5203, 800, 3726, 3726, 31, 57, 40, 7718, 13, 2172, 7903, 579, 8576, 93, 29, 1700, 3916, 9, 158, 3916, 13408, 102, 805, 27, 55, 6634, 31, 1131, 20, 1207, 14, 7718, 16, 65, 14, 3916, 17, 302, 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...
ActionScript 3.0 using closures for event handlers === I tried doing this: root.addEventListener("click", function () { navigateToURL(ClickURLRequest,"_self"); }); And it does add the event listener. I like using closures because they work well in this situation, however, removing the event listener requires a reference to the original function, and since I used an anonymous closure, it does not work, I tried: root.removeEventListener("click", function () { navigateToURL(ClickURLRequest,"_self"); }); as well as: root.removeEventListener("click", function () {} ); The only way I found it would work was to ditch the anonymous closure and point the event listeners at a pre-existing function: function OnClick (e:Event) { navigateToURL(ClickURLRequest,"_self"); } root.addEventListener("click", OnClick); root.removeEventListener("click", OnClick); Does anyone know a way to use anonymous closures for event handlers while still retaining the ability to remove them?
0
[ 2, 1028, 8741, 203, 9, 387, 568, 7790, 18, 26, 807, 24641, 18, 800, 3726, 3726, 31, 794, 845, 48, 45, 5900, 9, 14854, 4943, 38, 13891, 106, 5, 7, 150, 10129, 7, 15, 1990, 13, 5, 6, 13, 1, 20782, 11648, 255, 5, 150, 10129, 91...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 you make use of the add-in framework in .NET 3.0? === There are some updates with .NET 3.0 concerning how to create and use add-ins for your own applications. I read about some "*pipeline*" you have to create for the communication between add-in and host-application but couldn't find further information about it. How would you made an add-in functionality in an application with .NET 3.0/3.5? **Additional information if necessary**: The host application is made with WPF and some general functionality. Each add-in should add a own register-tab to a given container with their own content (buttons, textfields, ...) and methods to extend the host-application. Thanks in advance!
0
[ 2, 184, 92, 42, 233, 275, 16, 14, 3547, 8, 108, 6596, 19, 13, 9, 2328, 203, 9, 387, 60, 800, 3726, 3726, 80, 50, 109, 16779, 29, 13, 9, 2328, 203, 9, 387, 6477, 184, 20, 1600, 17, 275, 3547, 8, 108, 18, 26, 154, 258, 3767,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is C++ CLI a superset of C++? === Would a C++ CLI compiler be able to compile some large sets of C++ classes without modifications? Is C++ CLI a superset of C++?
0
[ 2, 25, 272, 20512, 19391, 21, 1026, 3554, 16, 272, 20512, 60, 800, 3726, 3726, 83, 21, 272, 20512, 19391, 21486, 44, 777, 20, 26561, 109, 370, 3415, 16, 272, 20512, 2684, 366, 13922, 60, 25, 272, 20512, 19391, 21, 1026, 3554, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Would you use C++/CLI if supported like C# & VB.NET? === I've always had a thing for C++/CLI. Maybe because not many developers use it... or just because it's different. Suppose Microsoft fully supported C++/CLI as they do VB.NET and C# (ie. LINQ, WPF, etc.). Would you use it? If not, why?
0
[ 2, 83, 42, 275, 272, 20512, 118, 150, 1210, 100, 1827, 101, 272, 5910, 279, 13, 20468, 9, 2328, 60, 800, 3726, 3726, 31, 22, 195, 550, 41, 21, 584, 26, 272, 20512, 118, 150, 1210, 9, 913, 185, 52, 151, 10168, 275, 32, 9, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adding html element with using ajax + jquery mobile === all. I have a ajax and jquery-mobile loading question. api = update: -> console.log "updated" $.ajax dataType: "jsonp" url: "http://localhost:3004/videos.json" success: (data) => if data data.forEach (elem) => video_id = elem.video_id embed_id = elem._id $("#play_list").append " <ul data-role='listview' data-theme='a'> <li>hello</li> </ul> " t = api.update() And I try to insert this code into html file. <head> <script src="lib/head.js"></script> <script src="lib/jquery.js"></script> <link rel="stylesheet" href="lib/jquery.mobile-1.0.1.min.css"> <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"/> <link href="bootstrap/css/bootstrap.responsive.css" rel="stylesheet"/> <body> <div id="play_list"></div> </body> <script> head.js( "lib/jquery.js", "lib/jquery.mobile-1.0.1.min.js", "http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.1.6/underscore-min.js", "http://cdnjs.cloudflare.com/ajax/libs/json2/20110223/json2.js", "http://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.1/backbone-min.js", "app.js" ); </script> </html> Outputted html code is <ul data-role='listview' data-theme='a'> <li>hello</li> </ul> But it doesn't formatted by jquery-mobile style . It just output normal html style. I want to output like following picture http://brooky.cc/wp-content/uploads/2011/04/list_view1.png Please help. Thanks in advance.
0
[ 2, 4721, 13, 15895, 4520, 29, 568, 20624, 2754, 487, 8190, 93, 3241, 800, 3726, 3726, 65, 9, 31, 57, 21, 20624, 17, 487, 8190, 93, 8, 12571, 12797, 1301, 9, 21, 2159, 800, 11100, 45, 13, 8, 1, 8650, 9, 5567, 13, 7, 576, 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...
Perl's unpack("A4/A*") length+bytes syntax in regular expression form === As detailed in the perlpacktut, you can use an unpack string of X/Y* to first get the length of a byte stream and then read exactly that many bytes. However, I'm struggling to find anything like that within a regular expression with, say, plain ASCII numbers and strings. For example, a Bencoded string is in the form of: [length]:[bytes] 4:spam 4:spam10:green eggs I remember once being able to pull this off, but only with the use of ??{}, and I don't have the code handy right now. Can this be done without ??{} (which is super experimental), using one of the newer 5.10 captures/backreferences? The obvious expression doesn't work: /(\d+)\:(.{\1})/g /(\d+)\:(.{\g-1})/g
0
[ 2, 416, 255, 22, 18, 367, 8573, 5, 7, 58, 12918, 58, 2483, 7, 6, 1476, 2430, 23246, 18, 22649, 19, 1290, 1803, 505, 800, 3726, 3726, 28, 6036, 19, 14, 416, 255, 8573, 38, 1982, 15, 42, 92, 275, 40, 367, 8573, 3724, 16, 993, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mailserver troubles === Hey guys I'm trying to setup a mail server so I can send emails using my php webserver. I think I have it setup, but when I Try to send mail I get this error: Warning: mail() [function.mail]: SMTP server response: 550 The address is not valid. in C:\wamp\www\scripts\register.php on line 57 Here is my mailserver config in php.ini [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = localhost ; http://php.net/smtp-port smtp_port = 25 ; For Win32 only. ; http://php.net/sendmail-from sendmail_from = admin@custombb.no-ip.org And here is my send mail line of code: $send = mail($to, $subject, $message, $headers); What could be causing this? What is an alternative? Thanks.
0
[ 2, 4216, 10321, 106, 16615, 800, 3726, 3726, 8409, 2776, 31, 22, 79, 749, 20, 18161, 21, 4216, 8128, 86, 31, 92, 2660, 8517, 18, 568, 51, 13, 26120, 2741, 10321, 106, 9, 31, 277, 31, 57, 32, 18161, 15, 47, 76, 31, 1131, 20, 26...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Run full screen on HTC Touch HD2 with Android 2.3 === Good day, I have a HTC Touch HD2 with Android 2.3.4, I downloaded the Google API for this OS, I created example apps but I can't run at full screen (I have special interest on OpenGL), I searched for a time but I can't get a response. I found a answer that says "add the following lines" this.requestWindowFeature(Window.FEATURE_NO_TITLE); // (NEW) getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); // (NEW) But still continuous running in this way. http://twitpic.com/8wu2z4 I use NetBeans 7.1 with Android SDK 2.3, running on Mac OS 10.5 Anyone knows what's goind on?
0
[ 2, 485, 503, 2324, 27, 746, 6668, 1723, 8590, 135, 29, 13005, 172, 9, 240, 800, 3726, 3726, 254, 208, 15, 31, 57, 21, 746, 6668, 1723, 8590, 135, 29, 13005, 172, 9, 240, 9, 300, 15, 31, 23887, 14, 8144, 21, 2159, 26, 48, 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...
startActivity() but do not show it === I have a media player app and I am trying to handle events such as when you receive a phone call. I can get it stopped properly and kill the service. Then I need to switch back to the main activity so when the user gets done with their phone call they can re-select a station to play. The problem I have is when I switch the activity with startActivity(intent) it gets shown in front of the phone dialer--this is not a good user experience. So how can I get my app reset back to the correct activity without it showing in front of another app? private BroadcastReceiver phoneReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { //stop the play service Intent stopPlayingService = new Intent(context, Play.class); stopService(stopPlayingService); //switch back to the main screen Intent showMain = new Intent(context, MouseWorldRadioActivity.class); showMain.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); //showMain.addFlags(Intent.); not sure whats needed here startActivity(showMain); } };
0
[ 2, 799, 19348, 5, 6, 47, 107, 52, 298, 32, 800, 3726, 3726, 31, 57, 21, 941, 517, 4865, 17, 31, 589, 749, 20, 3053, 963, 145, 28, 76, 42, 2588, 21, 1132, 645, 9, 31, 92, 164, 32, 1175, 7428, 17, 1177, 14, 365, 9, 94, 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 to route audio through bluetooth headphones on Android 4.0.3 rooted tablet === **BACKGROUND** Newbie to Android. Taught myself some programming in the past (HTML, Java, javascript, some C++ etc). Bought my first Android device, a Zenithink C71 7" tablet (from China). It is rooted and running Android 4.0.3. It has no USB connections, just 2 firewire ports, one marked Host, the other marked Dev. I bought a firewire/USB adapter and can plug a Belkin USB bluetooth dongle into the Host firewire port on the tablet to add bluetooth devices. Some devices work fine e.g. bluetooth mouse. My problem is getting my bluetooth headphones to work. The headphones offer both mono audio for phone use and stereo AD2P. The headphones work perfectly with my phone and laptop it is just with the tablet that things go wrong. According to the settings manager on the tablet, the headphones are detected, paired, connected, and the system reports they are operational and media audio is being routed through them. But, bizarrely, the audio continues to play through the tablet's speakers and not the headphones. However, if I turn off the headphones the tablet audio stops playing. The headphones are working as a remote control switch and not as headphones(!) I am at a loss to understand what is going on but I hope it is something I might correct by resetting some code or writing a little app to manage bluetooth audio. I have joined the forum to get some help with this project -- and if I get hooked on Android then I hope I will start developing some apps too. **QUESTIONS** Can anyone reading this suggest a possible cause for my problems and thus point me in the right direction to find a solution? - Is the issue likely to be due to hardware or software problems? - If software, is this an issue with Android 4.0.3 or the manufacturer's firmware? - If Android, where in the Android folders on my tablet do I need to look to check the coding to control bluetooth audio? - Once I have a copy of the coding running my tablet, where on-line do I look for examples of how the coding *should be* in order to run bluetooth? (I am hoping it is a case of comparing my tablet's coding with a 'specimen book' and then rewriting my tablet to manage the routing so I can enjoy audio through my bluetooth headphones.) It might be a long project but if anyone can start me off on the first step then I would be very grateful -- and I expect my experiences will be interesting to other Zenithink owners trying to do the same on their tablets. I will be sure to report back if/when I solve this problem. With many thanks for your help.
0
[ 2, 184, 20, 858, 4023, 120, 705, 15808, 28880, 27, 13005, 268, 9, 387, 9, 240, 19148, 16394, 800, 3726, 3726, 13, 1409, 1958, 8810, 1409, 78, 5893, 20, 13005, 9, 2359, 992, 109, 3143, 19, 14, 640, 13, 5, 15895, 15, 8247, 15, 824...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Three.js cube with faces === I am trying to create a 360 panorama using three.js. The plan is to create 6 sides using PlaneGeometry but I think there is a more efficient way to do this. Probably using CubeGeometry I suppose? $(function() { var renderer = new THREE.WebGLRenderer({antialias:true}); renderer.setSize(document.body.clientWidth, document.body.clientHeight); document.body.appendChild(renderer.domElement); renderer.setClearColorHex(0xEEEEEE, 1.0); renderer.clear(); var fov = 25;// camera field-of-view in degrees var width = renderer.domElement.width; var height = renderer.domElement.height; var aspect = width / height;// view aspect ratio var near =10;// near clip plane var far = 10000; // far clip plane var camera = new THREE.PerspectiveCamera( fov, aspect, near, far ); camera.position.z = 300; var scene = new THREE.Scene(); var cube = new THREE.Mesh(new THREE.CubeGeometry(110,50,50),new THREE.MeshBasicMaterial({color: 0x100000, opacity: 1})); scene.add(cube); renderer.render(scene, camera); function animate(t) { camera.position.x = Math.sin(t/1000)*300; camera.position.y = 150; camera.position.z = Math.cos(t/1000)*300; camera.lookAt(scene.position); renderer.render(scene,camera); window.requestAnimationFrame(animate, renderer.domElement); }; animate(new Date().getTime()); var light = new THREE.SpotLight(); light.position.set(170,330,-160); scene.add(light); var litCube = new THREE.Mesh( new THREE.CubeGeometry(50, 50, 50), new THREE.MeshLambertMaterial({color: 0xEEEEEE})); litCube.position.y = 50; scene.add(litCube); }); I can make use of MeshLambertMaterial to display image like the one in: http://www.html5canvastutorials.com/webgl/html5-canvas-webgl-texture-with-three-js/ But this will give all 6 sides the image I pass in. I have six images and I want to pass it to each sides according to my preference. Any ideas?
0
[ 2, 132, 9, 728, 18, 13682, 29, 4904, 800, 3726, 3726, 31, 589, 749, 20, 1600, 21, 11760, 24805, 568, 132, 9, 728, 18, 9, 14, 944, 25, 20, 1600, 400, 2570, 568, 3627, 834, 25564, 47, 31, 277, 80, 25, 21, 91, 8243, 161, 20, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get the name of a class as a string in C# === Is there a way to take a class name and convert it to a string in C#? As part of the Entity Framework, the .Include method takes in a dot-delimited list of strings to join on when performing a query. I have the class model of what I want to join, and for reasons of refactoring and future code maintenance, I want to be able to have compile-time safety when referencing this class. Thus, is there a way that I could do this: class Foo { } tblBar.Include ( Foo.GetType().ToString() ); I don't think I can do GetType() without an instance. Any ideas?
0
[ 2, 164, 14, 204, 16, 21, 718, 28, 21, 3724, 19, 272, 5910, 800, 3726, 3726, 25, 80, 21, 161, 20, 247, 21, 718, 204, 17, 8406, 32, 20, 21, 3724, 19, 272, 5910, 60, 28, 141, 16, 14, 9252, 6596, 15, 14, 13, 9, 22640, 2109, 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...
Adding dummy Column to stronly typed dataset === I am writing a site that uses strongly typed datasets. The DBA who created the table made gave a column a value that represents a negative. The column is 'Do\_Not\_Estimate\_Flag' where the column can contain 'T' or 'F'. I can't change the underlying table or the logic that fills it. What I want to do is to add a 'ESTIMATION_ALLOWED' column to the DataRow of my strongly typed DataSet. I have done this using the partial class that I can modify. (There is the autogenerated partial class and the non autogenerated partial class that I can safely modify.) The logic is in a property in the partial class. The trouble is that when the value is loaded ala <%#DataBinder.Eval(Container.DataItem, "ESTIMATION_ALLOWED")%> it goes straight to the underlying DataRow ignoring my property. How can I best achieve the desired result? here is my code: partial class MyFunkyDataTable { private System.Data.DataColumn columnESTIMATION_ALLOWED; [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn ESTIMATION_ALLOWEDColumn { get { return columnESTIMATION_ALLOWED; } } public override void EndInit() { //init class columnESTIMATION_ALLOWED = new System.Data.DataColumn("ESTIMATION_ALLOWED", typeof(string), null, global::System.Data.MappingType.Element); Columns.Add(columnESTIMATION_ALLOWED); columnESTIMATION_ALLOWED.ReadOnly = true; //init Vars columnESTIMATION_ALLOWED = Columns["ESTIMATION_ALLOWED"]; base.EndInit(); } } partial class MyFunkyRow { public string ESTIMATION_ALLOWED { get { if(DO_NOT_EST_FLAG == "N") { return "Yes"; } return "No"; } } }
0
[ 2, 4721, 26660, 4698, 20, 13, 18, 7376, 102, 1001, 43, 1054, 3554, 800, 3726, 3726, 31, 589, 1174, 21, 689, 30, 2027, 5020, 1001, 43, 1054, 3554, 18, 9, 14, 13, 43, 969, 72, 679, 14, 859, 117, 492, 21, 4698, 21, 1923, 30, 4719...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How To change the HREF for a Hyperlink using jQuery === How can you change the href for a hyperlink using jQuery?
0
[ 2, 184, 20, 753, 14, 746, 14057, 26, 21, 5443, 6258, 568, 487, 8190, 93, 800, 3726, 3726, 184, 92, 42, 753, 14, 746, 14057, 26, 21, 5443, 6258, 568, 487, 8190, 93, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Average difference between dates in Python === I have a series of datetime objects and would like to calculate the average delta between them. For example, if the input was `(2008-10-01 12:15:00, 2008-10-01 12:25:00, 2008-10-01 12:35:00)`, then the average delta would be exactly 00:10:00, or 10 minutes. Any suggestions on how to calculate this using Python?
0
[ 2, 862, 2841, 128, 4076, 19, 20059, 800, 3726, 3726, 31, 57, 21, 231, 16, 1231, 891, 3916, 17, 83, 101, 20, 18469, 14, 862, 6395, 128, 105, 9, 26, 823, 15, 100, 14, 6367, 23, 13, 1, 5, 2753, 8, 1036, 8, 3026, 137, 28763, 241...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 something like alternate data streams on any linux filesystem? === On NTFS there is a nice but mostly unused feature called "Alternate Data Streams" (ADS) which I recently used in a hobby-dev project. I am thinking of porting this project to Linux, but I do not know if any Filesystem on linux has such a feature?
0
[ 2, 25, 80, 301, 101, 4912, 1054, 9464, 27, 186, 13024, 3893, 10724, 60, 800, 3726, 3726, 27, 13, 2877, 11754, 80, 25, 21, 2210, 47, 1555, 18927, 1580, 227, 13, 7, 28978, 1054, 9464, 7, 13, 5, 1283, 18, 6, 56, 31, 1989, 147, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way of implementing assertion checking in C++? === By that I mean, what do I need to do to have useful assertions in my code? MFC is quite easy, i just use ASSERT(something). What's the non-MFC way?
0
[ 2, 98, 25, 14, 246, 161, 16, 17333, 20878, 9886, 19, 272, 20512, 60, 800, 3726, 3726, 34, 30, 31, 884, 15, 98, 107, 31, 376, 20, 107, 20, 57, 4811, 20878, 18, 19, 51, 1797, 60, 307, 7061, 25, 1450, 2010, 15, 31, 114, 275, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
What are some good resources on 2D game engine design? === I'm messing around with 2D game development using C++ and DirectX in my spare time. I'm finding that the enterprisey problem domain modeling approach doesn't help as much as I'd like ;) I'm more or less looking for a "best practices" equivalent to basic game engine design. How entities should interact with each other, how animations and sounds should be represented in an ideal world, and so on. Anyone have good resources they can recommend?
0
[ 2, 98, 50, 109, 254, 2566, 27, 172, 43, 250, 1406, 704, 60, 800, 3726, 3726, 31, 22, 79, 3957, 68, 140, 29, 172, 43, 250, 522, 568, 272, 20512, 17, 1744, 396, 19, 51, 8001, 85, 9, 31, 22, 79, 3007, 30, 14, 6002, 93, 1448, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 decompile a .NET EXE into readable C# source code? === I wrote a C# application for a client a couple of years ago, but I no longer have the source code. All I have is the EXE that I deployed on the client's PC. Is there a way I can generate C# source code from the EXE?
4
[ 2, 184, 107, 31, 121, 11103, 3599, 21, 13, 9, 2328, 1396, 62, 77, 1302, 579, 272, 5910, 1267, 1797, 60, 800, 3726, 3726, 31, 738, 21, 272, 5910, 3010, 26, 21, 6819, 21, 1335, 16, 122, 1464, 15, 47, 31, 90, 1045, 57, 14, 1267, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 associate all textbox controls on a form with the same event handler === VB 2008. I have several text boxes on a form and I want each of them to use the same event handler. I know how to manually wire each one up to the handler, but I'm looking for a more generic way so if I add more text boxes they will automatically be hooked up to the event handler. Ideas?
0
[ 2, 184, 20, 4169, 65, 1854, 5309, 8671, 27, 21, 505, 29, 14, 205, 807, 24641, 800, 3726, 3726, 13, 20468, 570, 9, 31, 57, 238, 1854, 8120, 27, 21, 505, 17, 31, 259, 206, 16, 105, 20, 275, 14, 205, 807, 24641, 9, 31, 143, 184...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why does HttpServlet implement Serializable? === In my understanding of Servlet, the Servlet will be instantiated by the Container, his init() method will be called once, and the servlet will live like a singleton until the jvm is shut down. i do not expect my servlet to be serialized, since it will be constructed new when the app server recovers or is starting up normally. the servlet should hold no session-specific members, so it does not make sense for it to be written to disk and re-instantiated. is there a practical use for this? my concerns are, that i put some non-serializable fields in there and then my app will mysteriously fail in a production environment where a different sort of session replication will take place.
0
[ 2, 483, 630, 7775, 10321, 1336, 8713, 5956, 3186, 579, 60, 800, 3726, 3726, 19, 51, 3260, 16, 13, 10321, 1336, 15, 14, 13, 10321, 1336, 129, 44, 6322, 49, 1669, 34, 14, 12147, 15, 33, 19, 242, 5, 6, 2109, 129, 44, 227, 382, 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...
Speeding Up Java === This is really two questions, but they are so similar, and to keep it simple, I figured I'd just roll them together: - **Firstly**: Given an established Java project, what are some decent ways to speed it up beyond just plain in-code optimization? - **Secondly**: When writing a program from scratch in Java, what are some good ways to greatly improve performance? **Please stay away from general optimization techniques unless they are _Java specific_.** I asked this about [Python](http://stackoverflow.com/questions/172720/speeding-up-python) and [Perl](http://stackoverflow.com/questions/177122/speeding-up-perl) earlier. For Java I'm wondering what good tips/tricks are out there to improve performance and if there are any particularly good Java profilers.
0
[ 2, 1362, 68, 71, 8247, 800, 3726, 3726, 48, 25, 510, 81, 2346, 15, 47, 59, 50, 86, 835, 15, 17, 20, 643, 32, 1935, 15, 31, 5700, 31, 22, 43, 114, 3001, 105, 429, 45, 13, 8, 13, 1409, 3552, 102, 1409, 45, 504, 40, 613, 8247...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I specify a JPA compliant persistence.xml file on the java command line? === I've got an UberJar with all my java classes, but want to execute this jar with an external persistence.xml file. Per the specification, Hibernate (or any other JPA provider) looks for the persistence.xml file in any META-INF folder that's on the classpath, but I haven't been able to make this work with an UberJar. Any ideas? Is the UberJar's classloader restricted to the contents of the jar file?
0
[ 2, 92, 31, 19077, 21, 487, 1060, 13, 25509, 28584, 9, 396, 8184, 3893, 27, 14, 8247, 1202, 293, 60, 800, 3726, 3726, 31, 22, 195, 330, 40, 13, 8866, 6300, 29, 65, 51, 8247, 2684, 15, 47, 259, 20, 15644, 48, 5112, 29, 40, 4886,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Call Javascript function and return value from ASP .NET === Lets say on my page I have this function: function ReturnFoo(bar) { return bar.toString() + "foo"; } Now, I would like to have this called from ASP .NET, hopefully with the ASP .NET AJAX framework, as I am already using it in this codebase (I have already spent the 100k, might as well use it). Also, I would like to get back the output that is returned from this function and then assign it to a variable created on the server side. And this is restricted to ASP .NET 2.0 Thanks.
0
[ 2, 645, 8247, 8741, 1990, 17, 788, 1923, 37, 28, 306, 13, 9, 2328, 800, 3726, 3726, 6884, 395, 27, 51, 2478, 31, 57, 48, 1990, 45, 1990, 788, 4120, 111, 5, 1850, 6, 13, 1, 788, 748, 9, 262, 11130, 5, 6, 2754, 13, 7, 4120, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
An open-source license that doesn't let users compile the application unless they've purchased it? === I've been developing GPL'd software for years, but now I need a more restrictive license. This is for a commercial application, and I want to share my source code with the whole world, regardless of whether they've purchased the application from me or not. I also want to allow people to produce derivative works, but I want to prohibit binary distribution of both my original work, and that of any derivative work. Basically, if someone has already purchased the original work, he/she can compile and use the original source code, or any derivative work. Otherwise, they can only study my source code, or that of a derivative work. Does anyone know a license that fits my needs, or do I need to write my own? Thanks,
0
[ 2, 40, 368, 8, 12097, 3962, 30, 1437, 22, 38, 408, 3878, 26561, 14, 3010, 4003, 59, 22, 195, 2432, 32, 60, 800, 3726, 3726, 31, 22, 195, 74, 3561, 489, 5727, 22, 43, 2306, 26, 122, 15, 47, 130, 31, 376, 21, 91, 26915, 3962, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MS Access questions - Scalability / indexing / transactions === A few questions on MS Access databases - Size: Are there limits to the size of an access database? The reason i ask is that we have an access database that has a few simple tables. The size of the db is about 1GB. When I do a query on it, i see it taking over 10 minutes to run. With proper indexing, should MS Access be able to handle this or are there fundamental limitations to the technology. This is MS Access XP. Also, does MS Access support db transactions, commit and rollback?
0
[ 2, 4235, 1381, 2346, 13, 8, 18957, 4091, 13, 118, 4348, 68, 13, 118, 13147, 800, 3726, 3726, 21, 310, 2346, 27, 4235, 1381, 6018, 18, 13, 8, 1072, 45, 50, 80, 5887, 20, 14, 1072, 16, 40, 1381, 6018, 60, 14, 1215, 31, 1349, 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...
What regex will match text excluding what lies within HTML tags? === I am writing code for a search results page that needs to highlight search terms. The terms happen to occur within table cells (the app is iterating through GridView Row Cells), and these table cells may have HTML. Currently, my code looks like this (relevant hunks shown below): const string highlightPattern = @"<span class=""Highlight"">$0</span>"; DataBoundLiteralControl litCustomerComments = (DataBoundLiteralControl)e.Row.Cells[CUSTOMERCOMMENTS_COLUMN].Controls[0]; // Turn "term1 term2" into "(term1|term2)" string spaceDelimited = txtTextFilter.Text.Trim(); string pipeDelimited = string.Join("|", spaceDelimited.Split(new[] {" "}, StringSplitOptions.RemoveEmptyEntries)); string searchPattern = "(" + pipeDelimited + ")"; // Highlight search terms in Customer - Comments column e.Row.Cells[CUSTOMERCOMMENTS_COLUMN].Text = Regex.Replace(litCustomerComments.Text, searchPattern, highlightPattern, RegexOptions.IgnoreCase); Amazingly it works. BUT, sometimes the text I am matching on is HTML that looks like this: <span class="CustomerName">Fred</span> was a classy individual. And if you search for "class" I want the highlight code to wrap the "class" in "classy" but of course not the HTML attribute "class" that happens to be in there! So what's a good regex that will make sure matches happen only OUTSIDE the html tags? It doesn't have to be super hardcore. Simply making sure the match is not between < and > would work fine, I think.
0
[ 2, 98, 7953, 1706, 129, 730, 1854, 13, 14938, 98, 1966, 363, 13, 15895, 3383, 18, 60, 800, 3726, 3726, 31, 589, 1174, 1797, 26, 21, 2122, 1736, 2478, 30, 2274, 20, 14373, 2122, 1663, 9, 14, 1663, 2384, 20, 3744, 363, 859, 2934, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
High speed graphing control for .NET (or MFC)? === I need to write a digital oscilloscope type application. There are many great static graphing controls out there, but I need something that can graph 16 traces processing 4000 samples per second. Is anyone aware of a high speed graphing control for .NET? I'll even take MFC since that can be wrapped into a .NET control. Thanks for the help!
0
[ 2, 183, 1362, 7210, 68, 569, 26, 13, 9, 2328, 13, 5, 248, 307, 7061, 6, 60, 800, 3726, 3726, 31, 376, 20, 2757, 21, 1888, 13, 759, 150, 7430, 11555, 1001, 3010, 9, 80, 50, 151, 374, 12038, 7210, 68, 8671, 70, 80, 15, 47, 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 to Reset a Working folder VSS 2005 === In Visual Source Safe 6.0, you could "reset" a working folder by setting it to a blank string. This meant that the working folder would be determined by the working folder of the parent. How do I do this in Visual Source Safe 2005?
0
[ 2, 184, 20, 23422, 21, 638, 19294, 4611, 18, 812, 800, 3726, 3726, 19, 3458, 1267, 1834, 400, 9, 387, 15, 42, 110, 13, 7, 99, 3554, 7, 21, 638, 19294, 34, 2697, 32, 20, 21, 6463, 3724, 9, 48, 1380, 30, 14, 638, 19294, 83, 44...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual Studio 2008 Design Surface Error: "The operation could not be completed. Invalid formatetc structure." === In a VS2008 web site project, I have a page open in split view. I try to drag an Infragistics web control onto the page's design surface. Nothing happens. I try to drag same onto the htmlz. Dialog box with >The operation could not be completed. Invalid formatetc structure. Subsequently the dragged control does not appear in the design surface or html. Project compiles fine, runs fine. The error is just at at design-time. Tried resetting the toolbox and re-adding the Infragistics controls. Help?
0
[ 2, 3458, 1120, 570, 704, 1490, 7019, 45, 13, 7, 124, 1453, 110, 52, 44, 1066, 9, 16671, 26, 5281, 6668, 1411, 9, 7, 800, 3726, 3726, 19, 21, 4611, 2753, 2741, 689, 669, 15, 31, 57, 21, 2478, 368, 19, 2132, 1418, 9, 31, 1131, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Crossbrowser equivalent of explicitOriginalTarget event parameter === Does anyone know of crossbrowser equivalent of explicitOriginalTarget event parameter? This parameter is Mozilla specific and it gives me the element that caused the blur. Let's say i have a text input and a link on my page. Text input has the focus. If I click on the link, text input's blur event gives me the link element in Firefox via explicitOriginalTarget parameter. Thanks.
0
[ 2, 919, 25699, 4104, 4602, 16, 14990, 13989, 3958, 3060, 807, 18906, 800, 3726, 3726, 630, 1276, 143, 16, 919, 25699, 4104, 4602, 16, 14990, 13989, 3958, 3060, 807, 18906, 60, 48, 18906, 25, 13, 18057, 3247, 1903, 17, 32, 2352, 55, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to detect and store the timezone the client of a web app is in? === I have a multi-timezone web application that stores all of the datetime values in UTC in the database, when actions happen on the server, I can easily convert the time into UTC. However, when a client enters a time or time span, what is the best way to detect and store it? I am currently doing the following: 1. Get the value of Date.getTimezoneOffset() (javascript) 2. Post that to the server-side code via the ICallbackEventHandler on Page. 3. Store that value in the session 4. On any subsequent request, calculate the output/input datetime value using the client's timezone. Regardless of the actual implementation, this seems like an in-elegant solution. Does anyone have a better method?
0
[ 2, 98, 25, 14, 246, 161, 20, 9092, 17, 1718, 14, 85, 11661, 14, 6819, 16, 21, 2741, 4865, 25, 19, 60, 800, 3726, 3726, 31, 57, 21, 1889, 8, 891, 11661, 2741, 3010, 30, 4134, 65, 16, 14, 1231, 891, 4070, 19, 13, 11440, 19, 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...
Bulk Row Transfer between Oracle Databases with a Select Filter === Basically, I'm trying to selectively copy a table from one database to another. I have two different [Oracle] databases (e.g., running on different hosts) with the same schema. I'm interested in a efficient way to load Table A in DB1 with the result of running a select on Table A in DB2. I'm using JDBC, if that's relevant.
0
[ 2, 7238, 3131, 2617, 128, 15759, 6018, 18, 29, 21, 5407, 11945, 800, 3726, 3726, 11374, 15, 31, 22, 79, 749, 20, 14092, 102, 4344, 21, 859, 37, 53, 6018, 20, 226, 9, 31, 57, 81, 421, 636, 6055, 5615, 500, 6018, 18, 13, 5, 62, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Integrating with Great Plains, best way ? === I can't find much informations around the web about it. Anyone used both eConnect and the Dynamics web services to interact (read/write) with great plains. I am looking for the pros and cons of both approach. This product will be installed and configured on various site, so ease of configurations is really important. I usually hate to mess with IIS. Should be able to target GP 9 and 10. Thank you
0
[ 2, 24529, 29, 374, 8648, 15, 246, 161, 13, 60, 800, 3726, 3726, 31, 92, 22, 38, 477, 212, 676, 18, 140, 14, 2741, 88, 32, 9, 1276, 147, 156, 13, 62, 25996, 17, 14, 12289, 2741, 687, 20, 10001, 13, 5, 10647, 118, 23716, 6, 29...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How Do I Format a HTML Form Without Using Tables === I know it's bad to use HTML Tables for everything... and that tables should be used only to present tabular data and not to achieve some style goal. My question is, how do you make HTML forms with CSS so they look nice and aligned like when using tables?
0
[ 2, 184, 107, 31, 2595, 21, 13, 15895, 505, 366, 568, 7484, 800, 3726, 3726, 31, 143, 32, 22, 18, 896, 20, 275, 13, 15895, 7484, 26, 796, 9, 9, 9, 17, 30, 7484, 378, 44, 147, 104, 20, 734, 6523, 7451, 1054, 17, 52, 20, 4689, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 solution for migration from Oracle Forms 6i to the web? === I work in an Oracle shop. There's a toolset that consists of roughly 1000 Oracle Forms (using the Forms builder from 6i, early 90's software) with Oracle 10g on the back end. It's serving roughly 500 unique people a month, with 200 concurrent connections at any given time during the work day. Obviously this is something that needs to be addressed to get rid of the Forms runtime and move to a web based solution. The tools need to be accessed from Windows, Linux, various UNIX's, VMS and Solaris. What options out there exist that would be feasible to migrate to? Not only does it need to be feasible for migration but the development will need to be done by 8 or so engineers who support the tool set (and many of which who would prefer to stay put and not modernize this tool set). Oracle offers a few solutions that convert Oracle Forms into a crappy Java Applet (it's a very terrible temporary solution). My solution of choice has been migrating to Ruby on Rails (which I'm a big proponent of Rails) but this will involve a learning curve (which we'll hit with any solution) for other developers. Also, the other difficulty in this is converting some very complex forms to HTML forms. Has anyone tackled such a solution? Are there any packages offered by anyone outside of Oracle? Any specific Java Web frameworks? Would GWT, jQuery UI, ExtJS or any other JavaScript UI frameworks offer the rich user experience needed? .NET is a consideration but a last resort (mostly because of license costs, there's no room in the budget in addition to what we're paying for Oracle licenses).
0
[ 2, 246, 4295, 26, 8443, 37, 15759, 1997, 400, 49, 20, 14, 2741, 60, 800, 3726, 3726, 31, 170, 19, 40, 15759, 2546, 9, 80, 22, 18, 21, 4672, 1198, 30, 2043, 16, 4457, 6150, 15759, 1997, 13, 5, 12655, 14, 1997, 14960, 37, 400, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Problem with width of auto-generated columns in DataGrid === Maybe world peace would be easier, but I have a problem with the widths of auto generated columns when a DataGrid has no rows. The column headings all squeeze up with no spacing between them. I've tried adding the following CSS to no avail: td.gridHeader { padding-left:20px; padding-right: 20px; }
0
[ 2, 1448, 29, 9456, 16, 3108, 8, 25314, 7498, 19, 1054, 16375, 800, 3726, 3726, 913, 126, 1728, 83, 44, 4950, 15, 47, 31, 57, 21, 1448, 29, 14, 9456, 18, 16, 3108, 6756, 7498, 76, 21, 1054, 16375, 63, 90, 11295, 9, 14, 4698, 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...
Trace vs Debug in .NET BCL === It seems that the System.Diagnostics.Debug and System.Diagnostics.Trace are largely the same, with the notable exception that Debug usage is compiled out in a release configuration. When would you use one and not the other? The only answer to this I've dug up so far is just that you use the Debug class to generate output that you only see in debug configuration, and Trace will remain in a release configuration, but that doesn't really answer the question in my head. If you're going to instrument your code, why would you ever use Debug, since Trace can be turned off without a recompile?
0
[ 2, 5565, 4611, 121, 16254, 19, 13, 9, 2328, 2726, 255, 800, 3726, 3726, 32, 2206, 30, 14, 329, 9, 4286, 21944, 18, 9, 546, 16254, 17, 329, 9, 4286, 21944, 18, 9, 38, 7367, 50, 2679, 14, 205, 15, 29, 14, 2072, 5391, 30, 121, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Excel SheetSelectionChange event example needed. C++ === I have a problem I'm trying to solve involving interfaceing a C++ program with Excel (an import interface, specifically). The SheetSelectionChange sounds like it will get me most of the way to where I need to be, but I can't find any good documentation or examples on registering the event, using its Range parameter when it's fired, and unregistering when done. My code currently doesn't use the COM wrapper classes; it issues QueryInterface calls to pick up pointers to the interfaces in Excel. Thanks in advance!
0
[ 2, 20700, 8801, 5033, 16229, 807, 823, 851, 9, 272, 20512, 800, 3726, 3726, 31, 57, 21, 1448, 31, 22, 79, 749, 20, 8402, 4838, 6573, 68, 21, 272, 20512, 625, 29, 20700, 13, 5, 210, 9010, 6573, 15, 3524, 6, 9, 14, 8801, 5033, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is matlab good for? Why is it so used by universities? When is it better than python? === I've been recently asked to learn some matlab basis for a class. What does make it so cool for researchers and people that works in university? I saw it's cool to work with matrixes and plotting things... (things that can be easily in python too using some libraries). Writing a function or parsing a file it's just painful. I'm still at the start, what am I missing? In the "real" world, what should I think to use it for? When should it can do better than python? For better I mean: easy way to write something performing. ---------- **EDIT:** One of the things I'd like to know the most is "Am I missing something?" :D
4
[ 2, 98, 25, 4277, 9086, 254, 26, 60, 483, 25, 32, 86, 147, 34, 4165, 60, 76, 25, 32, 574, 119, 20059, 60, 800, 3726, 3726, 31, 22, 195, 74, 1989, 411, 20, 2484, 109, 4277, 9086, 2239, 26, 21, 718, 9, 98, 630, 233, 32, 86, 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...
How do I work with Multiple Recordsets in C++ ODBC === I am trying to streamline a complex process of storing information in multiple tables and them linking them to a central table. The linking occurs using IDENTITY values generated in each table to provide the unique linking. I know I can use a combination of SET NOCOUNT ON and SELECT @@identity to get each identity, but that still requires me to call a separate SQLExecute() for each table. I have read dozens of articles saying ADO can handle multiple recordsets using an ODBC driver, so the question is how do I do it without ADO? I have already encapsulated all of the standard ODBC stuff for similar behavior to ADO. I basically just need to know what ODBC API calls will allow me to recreate ADO's NextRecorset(). I am working on a combination of MS SQL 7 and MS SQL 2005, using either the SQL Server ODBC, or SQL Native Client Drivers as appropriate. End Goal: SET NOCOUNT ON; INSERT INTO TableA (data) VALUES ('a'); SELECT @@identity AS NewID; INSERT INTO TableB (data) VALUES ('b'); SELECT @@identity AS NewID; INSERT INTO TableC (data) VALUES ('c'); SELECT @@identity AS NewID; ... RS = DB.OpenRecordset() RS.MoveFirst() A_ID = RS.GetValue("id") RS.NextRecordset() RS.MoveFirst() B_ID = RS.GetValue("id") RS.NextRecordset() RS.MoveFirst() C_ID = RS.GetValue("id") Thanks in advance!
0
[ 2, 184, 107, 31, 170, 29, 1886, 742, 6095, 19, 272, 20512, 12340, 7229, 800, 3726, 3726, 31, 589, 749, 20, 3766, 1143, 21, 1502, 953, 16, 25615, 676, 19, 1886, 7484, 17, 105, 12585, 105, 20, 21, 521, 859, 9, 14, 12585, 3690, 568...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where can I get the missing figures from the freely available, classic "Programming Ruby" e-book? === I am studying the content of "Programming Ruby- The Pragmatic Programmer's Guide" but the HTML version does not include the Figures. Are the figures available anywhere online?
0
[ 2, 113, 92, 31, 164, 14, 2863, 2957, 37, 14, 11298, 904, 15, 2732, 13, 7, 19746, 3863, 10811, 7, 13, 62, 8, 5199, 60, 800, 3726, 3726, 31, 589, 4493, 14, 2331, 16, 13, 7, 19746, 3863, 10811, 8, 14, 28443, 17968, 22, 18, 3378, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 MVC + ORM === I am in the start up of a project using ASP.NET MVC and have started creating my models. Since I know *some* Ruby On Rails and would like to use a system as similar to Rails **Active Record** as possible. Have anyone used **Castle Projects Active Record** in a ASP.NET MVC application (or any application that is relevant) and have some experience to share? Are MVC and Castle Active Record the right way to go or do you suggest I use LinqToSql instead. Please share any thoughts and experiences you might have gain.
0
[ 2, 28, 306, 9, 2328, 307, 8990, 2754, 54, 79, 800, 3726, 3726, 31, 589, 19, 14, 799, 71, 16, 21, 669, 568, 28, 306, 9, 2328, 307, 8990, 17, 57, 373, 2936, 51, 2761, 9, 179, 31, 143, 1637, 3220, 2483, 10811, 27, 2240, 18, 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...
How do you check if a folder is shared in c# === I need to know if a folder is accessible to other computers on the network, so the first part of this is checking if the folder is shared accross the network. As the folder I'm checking may be a sub-folder, I can't just iterate across shared folders on the computer to check if one of them points to my folder unless WMI allows me to check this? Ideas?
0
[ 2, 184, 107, 42, 2631, 100, 21, 19294, 25, 2592, 19, 272, 5910, 800, 3726, 3726, 31, 376, 20, 143, 100, 21, 19294, 25, 7342, 20, 89, 7774, 27, 14, 982, 15, 86, 14, 64, 141, 16, 48, 25, 9886, 100, 14, 19294, 25, 2592, 21, 150...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 resolve "Could not find schema information for the element/attribute <xxx>"? === In visual studio, I have an asp.net 3.5 project that is using MS Enterprise Library 4.0 application blocks. When I have my web config file open, my Error list fills up with 99 messages with things like Could not find schema information for the element 'dataConfiguration'. Could not find schema information for the attribute 'defaultDatabase'. Could not find schema information for the element 'loggingConfiguration'. Could not find schema information for the attribute 'tracingEnabled'. Could not find schema information for the attribute 'defaultCategory'. If I close the Web.config file they go away (but they come back as soon as I need to open the file again). After doing some looking, I found that this is becauase there is an XSD or schema file missing that Visual Studio needs in order to properly 'understand' the schema that is in the web.config file and provide intellisense for it. Does anyone know how to either supply VS with the appropriate schema information, or to turn off these messages?
0
[ 2, 184, 20, 9854, 13, 7, 13431, 52, 477, 23874, 676, 26, 14, 4520, 118, 721, 14755, 13, 1, 13290, 1, 7, 60, 800, 3726, 3726, 19, 3458, 1120, 15, 31, 57, 40, 28, 306, 9, 2328, 203, 9, 264, 669, 30, 25, 568, 4235, 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...
ASP.NET jQuery error: Unknown Web Method === This is my first time attempting to call an ASP.NET page method from jQuery. I am getting a status 500 error with the responseText message that the web method cannot be found. Here is my jQuery $.ajax call: function callCancelPlan(activePlanId, ntLogin) { var paramList = '{"activePlanId":"' + activePlanId + '","ntLogin":"' + ntLogin + '"}'; $.ajax({ type: "POST", url: "ArpWorkItem.aspx/CancelPlan", data: paramList, contentType: "application/json; charset=utf-8", dataType: "json", success: function() { alert("success"); }, error: function(xml,textStatus,errorThrown) { alert(xml.status + "||" + xml.responseText); } }); } And here is the page method I am trying to call: [WebMethod()] private static void CancelPlan(int activePlanId, string ntLogin) { StrategyRetrievalPresenter presenter = new StrategyRetrievalPresenter(); presenter.CancelExistingPlan(offer, ntLogin); } I have tried this by decorating the Web Method with and without the parens'()'. Anyone have an idea?
0
[ 2, 28, 306, 9, 2328, 487, 8190, 93, 7019, 45, 2562, 2741, 2109, 800, 3726, 3726, 48, 25, 51, 64, 85, 6314, 20, 645, 40, 28, 306, 9, 2328, 2478, 2109, 37, 487, 8190, 93, 9, 31, 589, 1017, 21, 1782, 3033, 7019, 29, 14, 1627, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP.NET: How to access repeater generated form input elements? === i'm want to have a repeater generate a bunch of checkboxes, e.g.: <tr><td><input type="checkbox" name="t" value="11cbf4deb87" /> <input type="checkbox" name="a" value="33cbf4deb87" />stackoverflow.com</td></tr> <tr><td><input type="checkbox" name="t" value="11cbf4deb88" /> <input type="checkbox" name="a" value="33cbf4deb87" />microsoft.com</td></tr> <tr><td><input type="checkbox" name="t" value="11cd3f33a89" /> <input type="checkbox" name="a" value="33cbf4deb87" />gmail.com</td></tr> <tr><td><input type="checkbox" name="t" value="1138fecd337" /> <input type="checkbox" name="a" value="33cbf4deb87" />youporn.com</td></tr> <tr><td><input type="checkbox" name="t" value="11009efdacc" /> <input type="checkbox" name="a" value="33bf4deb87" />fantasticc.net</td></tr> <tr><td><input type="checkbox" name="t" value="11cbf4deb87" /> <input type="checkbox" name="a" value="33cbf4deb87" />stackoverflow.com</td></tr> <tr><td><input type="checkbox" name="t" value="11cbf4deb88" /> <input type="checkbox" name="a" value="33cbf4deb87" />microsoft.com</td></tr> <tr><td><input type="checkbox" name="t" value="11cd3f33a89" /> <input type="checkbox" name="a" value="33cbf4deb87" />gmail.com</td></tr> <tr><td><input type="checkbox" name="t" value="1138fecd337" /> <input type="checkbox" name="a" value="33cbf4deb87" />youporn.com</td></tr> <tr><td><input type="checkbox" name="t" value="11009efdacc" /> <input type="checkbox" name="a" value="33bf4deb87" />fantasticc.net</td></tr> Question 1: How do i individually reference each checkbox when the repeater is running so i can set the unique value? Do i data-bind it with something like: <itemtemplate> <tr> <td> <input type="checkbox" name="t" value="<%# ((Item)Container.DataItem).TangoUniquifier %>" /> <input type="checkbox" name="a" value="<%# ((Item)Container.DataItem).AlphaUniquifier %>" /> <%# ((Item)Container.DataItem).SiteName %> </td> </tr> </itemtemplate> Or am i supposed to set it somehow in the OnItemDataBound? <asp:repeater id="ItemsRepeater" OnItemDataBound="ItemsRepeater_OnItemDataBound" runat="server"> ... <itemtemplate> <tr> <td> <input id="chkTango" type="checkbox" name="t" runat="server" /> <input id="chkAlpha" type="checkbox" name="a" runat="server" /> <%# ((Item)Container.DataItem).SiteName %> </td> </tr> </itemtemplate> ... </asp:repeater> protected void ItemsRepeater_OnItemDataBound(object sender, RepeaterItemEventArgs e) { // if the data bound item is an item or alternating item (not the header etc) if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { // get the associated item Item item = (Item)e.Item.DataItem; //??? this.chkTango.Value = item.TangoUniquifier; this.chkAlpha.Value = item.AlphaUniquifier; } } But if i'm supposed to reference it in the code-behind, how do i reference it in the code-behind? Am i supposed to reference it using the (server-side) id property of an `<INPUT>` control? i realize that the ID of a control on the server-side is not the same as the ID that will be present on the client. Or do i have to do something where i have to find an INPUT control with a name of "t" and another with a name of "a"? And what kind of control is a CheckBox that allows me to set it's input value? protected void ItemsRepeater_OnItemDataBound(object sender, RepeaterItemEventArgs e) { // if the data bound item is an item or alternating item (not the header etc) if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { // get the associated item Item item = (Item)e.Item.DataItem; CheckBox chkTango = e.Item.FindControl("chkTango") as CheckBox; chkTango.Value = item.TangoUniquifier; CheckBox chkAlpha = e.Item.FindControl("chkAlpha") as CheckBox; chkAlpha.Value = item.AlphaUniquifier; } } ---------- Question 2: When the user later clicks SUBMIT, how do i find all the checked checkboxes, or more specifically their VALUES? Do i have to FindControl? protected void DoStuffWithLinks_Click(object sender, EventArgs e) { // loop through the repeater items foreach (RepeaterItem repeaterItem in actionItemRepeater.Items) { Item item = repeaterItem.DataItem as Item; // grab the checkboxes CheckBox chkAlpha = repeaterItem.FindControl("chkAlpha") as CheckBox; CheckBox chkTango = repeaterItem.FindControl("chkTango") as CheckBox; if (chkAlpha.Checked) { item.DoAlphaStuff(chkAlpha.Name); } if (chkTango.Checked) { item.DoTangoStuff(chkTango.Name); } } } Is the repeater items DataItem still there on a click event handler?
0
[ 2, 28, 306, 9, 2328, 45, 184, 20, 1381, 6830, 106, 6756, 505, 6367, 2065, 60, 800, 3726, 3726, 31, 22, 79, 259, 20, 57, 21, 6830, 106, 7920, 21, 7653, 16, 2631, 5309, 160, 15, 13, 62, 9, 263, 9, 45, 13, 1, 6384, 1, 38, 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...
google finance - what type of development/lang go into building the site? === I'd like to get into financial programming?, if thats even the correct term. I love the usability of Google finance. What should I learn to get me started on that path.
0
[ 2, 8144, 3711, 13, 8, 98, 1001, 16, 522, 118, 9949, 162, 77, 353, 14, 689, 60, 800, 3726, 3726, 31, 22, 43, 101, 20, 164, 77, 1553, 3143, 60, 15, 100, 30, 18, 166, 14, 4456, 981, 9, 31, 339, 14, 182, 4091, 16, 8144, 3711, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
C# - Convert GMT time to local time === We are developing a C# application for a web-service client. This will run on Windows XP PC's. One of the fields returned by the web service is a DateTime field. The server returns a field in GMT format i.e. with a "Z" at the end. However, we found that .NET seems to do some kind of implicit conversion and the time was always 12 hours out. The following code sample resolves this to some extent in that the 12 hour difference has gone but it makes no allowance for NZ daylight saving. System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("en-NZ"); string date = "Web service date".ToString("R", ci); DateTime convertedDate = DateTime.Parse(date); As per [this date site](http://www.timeanddate.com/worldclock/city.html?n=22) : UTC/GMT Offset Standard time zone: UTC/GMT +12 hours Daylight saving time: +1 hour Current time zone offset: **UTC/GMT +13 hours** How do we adjust for the extra hour? Can this be done programmatically or is this some kind of setting on the PC's?
0
[ 2, 272, 5910, 13, 8, 8406, 12600, 38, 85, 20, 375, 85, 800, 3726, 3726, 95, 50, 3561, 21, 272, 5910, 3010, 26, 21, 2741, 8, 11449, 6819, 9, 48, 129, 485, 27, 1936, 23045, 5168, 22, 18, 9, 53, 16, 14, 2861, 587, 34, 14, 2741,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to programatically decide which WCF session to connect to? === I need to be able to use WCF Session capability in a Silverlight application. Currently Silverlight only supports basicHttp binding, so this is impossible. My thoughts are to create a middle piece with wsHttp caapabilities that will handle the Sessions for me and my sessionless Silverlight app can pass in the SessionID guid. Is this even possible? If so, how would it be implemented?
0
[ 2, 25, 80, 21, 161, 20, 625, 721, 8438, 4073, 56, 11801, 410, 3723, 20, 6379, 20, 60, 800, 3726, 3726, 31, 376, 20, 44, 777, 20, 275, 11801, 410, 3723, 11480, 19, 21, 1172, 3130, 3010, 9, 871, 1172, 3130, 104, 6747, 2125, 21127,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 enable anti aliasing in arbitrary Java apps? === Many Java Apps don't use anti-aliased fonts by default, despite the capability of Swing to provide them. How can you coerce an arbitrary java application to use AA fonts? (both for applications I'm running, and applications I'm developing)
0
[ 2, 184, 107, 42, 9240, 1082, 15794, 68, 19, 17237, 8247, 4865, 18, 60, 800, 3726, 3726, 151, 8247, 4865, 18, 221, 22, 38, 275, 1082, 8, 10060, 18, 69, 9978, 18, 34, 12838, 15, 869, 14, 11480, 16, 5587, 20, 1181, 105, 9, 184, 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...
Test Reporting === We are migrating our test report data (unit, regression, integration, etc..) from an XML format to a database format for better analysis. Right now the majority of our test analysis is done using the CruiseControl.NET dashboard, but this is limited to primarily the most recent test data. Older test data can be accessed but not easily compared to new test data. We want to pin point problem components and better narrow down bugs. With the onset of tons of information brought on by our newly implemented regression and integration testing I would like to see some better metrics generated (possibly performance and the like). Have you worked with any business intelligence systems that will provide a framework for accurately and easily implementing some sort of analysis and reporting? I have looked into JasperReports and Pentaho but I'm struggling with implemetation of Pentaho at the moment. Should I continue my fight with the system? Is this what I'm looking for?
0
[ 2, 1289, 6670, 800, 3726, 3726, 95, 50, 28749, 318, 1289, 1330, 1054, 13, 5, 15464, 15, 27369, 15, 8078, 15, 2722, 9, 9, 6, 37, 40, 23504, 2595, 20, 21, 6018, 2595, 26, 574, 2495, 9, 193, 130, 14, 1698, 16, 318, 1289, 2495, 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...
Python class factory ... or? === We have a database library in C# that we can use like this: DatabaseConnection conn = DatabaseConnection.FromConnectionString("..."); this library hides many of the differences between different database engines, like sql function names, parameter names and specifications, etc. Internally, the DatabaseConnection class is an abstract class implementing some of the basic methods, but the .FromConnectionString method runs through a list of registered specialized types that handles the actual differences, and constructs an object of the right class. In other words, I don't get a DatabaseConnection object back, I get a MSSQLDatabaseConnection or OracleDatabaseConnection object back instead, which of course inherit from DatabaseConnection. The connection string contains information about what kind of database engine and version this connection is for. I'd like to create a similar library in python. Is the right approach to make something that can be constructed like this: conn = DatabaseConnection("...") or through a class method: conn = DatabaseConnection.FromConnectionString("...") is the first even possible, that is... constructing an object like this and getting back something else, a specialized object, depending on data in the passed string?
0
[ 2, 20059, 718, 3129, 13, 9, 9, 9, 54, 60, 800, 3726, 3726, 95, 57, 21, 6018, 1248, 19, 272, 5910, 30, 95, 92, 275, 101, 48, 45, 6018, 25996, 872, 15201, 800, 6018, 25996, 872, 9, 2665, 25996, 872, 11130, 5, 7, 9, 9, 9, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL Server - script to update database columns from varchar to nvarchar if not already nvarchar === I am in a situation where I must update an existing database structure from varchar to nvarchar using a script. Since this script is run everytime a configuration application is run, I would rather determine if a column has already been changed to nvarchar and not perform an alter on the table. The databases which I must support are SQL Server 2000, 2005 and 2008.
0
[ 2, 4444, 255, 8128, 13, 8, 3884, 20, 11100, 6018, 7498, 37, 4033, 5433, 20, 13, 103, 3311, 5433, 100, 52, 614, 13, 103, 3311, 5433, 800, 3726, 3726, 31, 589, 19, 21, 1858, 113, 31, 491, 11100, 40, 3149, 6018, 1411, 37, 4033, 543...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Winforms - best directory / project structure === Wanted to see peoples thoughts on best way to organize directory and project structure on a project / solution for a winforms C# app. Most people agree its best to seperate view, business logic, data objects, interfaces but wanted to see how different people tackle this. In addition, isolate third party dependencies into implementation projects and then have interface exported projects that consumers reference <li>View.csproj <li>BusinessLogic.csproj <li>Data.csproj <li>CalculatorService.Exported.csproj (interfaces) <li>CalculatorService.MyCalcImpl.csproj (one implementation) <li>CalculatorService.MyCalcImpl2.csproj (another implementation) All trying to push for decoupled dependencies on abstractions and quick ability to changed implementations. Thoguhts? Best practices?
0
[ 2, 628, 4190, 18, 13, 8, 246, 16755, 13, 118, 669, 1411, 800, 3726, 3726, 417, 20, 196, 148, 18, 3064, 27, 246, 161, 20, 9213, 16755, 17, 669, 1411, 27, 21, 669, 13, 118, 4295, 26, 21, 628, 4190, 18, 272, 5910, 4865, 9, 127, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Change today's date, advancing one month and setting the systemtime === I would like a code sample for a function that takes a tDateTime and an integer as input and sets the system time using setlocaltime after advancing that tDateTime by (int) months. pseudo code example SetNewTime(NOW,2); The issues I'm running into are rather frustrating. I cannot use incmonth or similar with a tDateTime, only a tDate, etc.
0
[ 2, 753, 786, 22, 18, 1231, 15, 11347, 53, 1617, 17, 2697, 14, 329, 891, 800, 3726, 3726, 31, 83, 101, 21, 1797, 5717, 26, 21, 1990, 30, 1384, 21, 13, 38, 8209, 891, 17, 40, 13820, 28, 6367, 17, 3415, 14, 329, 85, 568, 309, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why is LINQ to SQL converting my string parameter to a column name? === This Linq to SQL query ... Return (From t In Db.Concessions Where t.Country = "ga" Select t.ConcessionID, t.Title, t.Country) ... is generating this SQL: SELECT [t0].[ConcessionID], [t0].[Title], [t0].[Country] FROM [dbo].[Concessions] AS [t0] WHERE [t0].[Country] = ga ... when what I want is WHERE [t0].[Country] = 'ga' Any ideas why?
0
[ 2, 483, 25, 6294, 1251, 20, 4444, 255, 19583, 51, 3724, 18906, 20, 21, 4698, 204, 60, 800, 3726, 3726, 48, 6294, 1251, 20, 4444, 255, 25597, 13, 9, 9, 9, 788, 13, 5, 2665, 13, 38, 19, 13, 9007, 9, 1126, 5052, 18, 5757, 113, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 configure optional or "extraneous" URLs? === How would you configure a web server to allow extraneous/optional URLs entities (aliases, maybe)? SO is a good example: - stackoverflow.com/questions/99999999/ - stackoverflow.com/questions/99999999/**question-goes-here** (bad example, but I couldn't think of better) Amazon URLs are even more confusing (e.g., the [Kindle](http://www.amazon.com/gp/product/B000FI73MA/)) - amazon.com/gp/product/B000FI73MA/ - amazon.com/**Kindle-Amazons-Wireless-Reading-Device**/dp/B000FI73MA/
0
[ 2, 184, 107, 1065, 15951, 12832, 54, 13, 7, 23631, 556, 1291, 7, 13, 911, 7532, 60, 800, 3726, 3726, 184, 83, 42, 1065, 15951, 21, 2741, 8128, 20, 1655, 2230, 556, 1291, 118, 2594, 3309, 192, 13, 911, 7532, 12549, 13, 5, 10060, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
XML Serialization, No Whitespace === I have the following serialization method: Private Function SerializeData(ByVal data As cData) As String If data IsNot Nothing Then Dim xml_stream As New MemoryStream() Dim sr As StreamReader Dim xs As New XmlSerializer(GetType(cData)) xml_stream = New MemoryStream() Try xs.Serialize(xml_stream, data) xml_stream.Position = 0 sr = New StreamReader(xml_stream) Return sr.ReadToEnd() Finally If sr IsNot Nothing Then sr.Close() xml_stream.Close() End Try Else Return "No data" End If End Function however it returns the xml the nested elements indented. Is there a way to shut that off on the serializer, or do I need to just run a find replace routine to get rid of it all? Essentially, what I want to see is: <root><child1>data</child1><child2>data</child2></root>
0
[ 2, 23504, 5956, 1829, 15, 90, 359, 5582, 800, 3726, 3726, 31, 57, 14, 249, 5956, 1829, 2109, 45, 932, 1990, 27877, 4375, 5, 779, 3377, 1054, 28, 1745, 4375, 6, 28, 3724, 100, 1054, 25, 1270, 626, 94, 5937, 23504, 1, 11260, 28, 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...
Why an InitialContext on Remote EJB3 Session Beans === Why do I need to specify various driver info when I call a remote EJB? java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces java.naming.provider.url=localhost:1099 Shouldn't we only need to specify the url/port and the EJB container should resolve all that other stuff?
0
[ 2, 483, 40, 2104, 1126, 11969, 27, 5388, 13, 10022, 220, 240, 3723, 14685, 800, 3726, 3726, 483, 107, 31, 376, 20, 19077, 617, 2425, 15404, 76, 31, 645, 21, 5388, 13, 10022, 220, 60, 8247, 9, 6865, 68, 9, 17455, 93, 9, 27313, 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 to find out when a picture is taken in c# === In windows XP "FileInfo.LastWriteTime" will return the date a picture is taken - regardless of how many times the file is moved around in the filesystem. In Vista it instead returns the date that the picture is copied from the camera. How can I find out when a picture is taken in Vista? In windows explorer this field is referred to as "Date Taken".
0
[ 2, 184, 20, 477, 70, 76, 21, 2151, 25, 658, 19, 272, 5910, 800, 3726, 3726, 19, 1936, 23045, 13, 7, 16877, 108, 4120, 9, 8558, 23716, 891, 7, 129, 788, 14, 1231, 21, 2151, 25, 658, 13, 8, 7148, 16, 184, 151, 436, 14, 3893, 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...
How can I combine multiple rows into a comma-delimited list in SQL Server 2005? === Right now, I have a SQL Query like this one: SELECT X, Y FROM POINTS It returns results like so: X Y ---------- 12 3 15 2 18 12 20 29 I'd like to return results like these (suitable for using in an HTML &lt;AREA&gt; tag): XYLIST ---------- 12,3,15,2,18,12,20,29 Is there a way to do this using just SQL?
0
[ 2, 184, 92, 31, 12287, 1886, 11295, 77, 21, 11951, 58, 8, 546, 23012, 968, 19, 4444, 255, 8128, 812, 60, 800, 3726, 3726, 193, 130, 15, 31, 57, 21, 4444, 255, 25597, 101, 48, 53, 45, 5407, 993, 15, 13, 93, 37, 819, 32, 4815, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL Server - Using CLR integration to consume a Web Service === There are a few tutorials on the web that describe consuming a Web Service using SQL Server 2005's CLR integration. For the most, the process seems pretty convoluted. I've run into several issues including the need to change my database's trust level, and using the sgen tool to create a static XmlSerializer assembly; and I still haven't gotten it working right... (I'm sure I just need to put a little more time and energy into it) What are the security, performance, and maintenance implications when going to this type of architecture? This would likely be a fairly heavily-used process, and ease of maintenance is relatively important. I do have freedom to choose whether to integrate this into SQL Server as a UDF, or have it be a stand alone .NET library for console/Web applications. Is the SQL CLR integration with external assemblies worth the trouble?
0
[ 2, 4444, 255, 8128, 13, 8, 568, 10842, 139, 8078, 20, 16447, 21, 2741, 365, 800, 3726, 3726, 80, 50, 21, 310, 29724, 18, 27, 14, 2741, 30, 4996, 13, 17601, 21, 2741, 365, 568, 4444, 255, 8128, 812, 22, 18, 10842, 139, 8078, 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...
Checkout subdirectories in Git? === Is it possible to check out subdirectories of a repository in Git? Imagine I am setting up a new WordPress installation. I will be writing plugins in `wp/wp-content/plugins/myplugins/` and a theme in `wp/wp-content/themes/mytheme/`. I want to maintain these directories via Git. In Subversion, I would accomplish this by having `trunk/myplugins/` and `trunk/mytheme/` directories and checking out subdirectories. Does Git have a way to accomplish the same task using a single repository? I could just be missing the boat on some Git paradigm, as a long time SVN user with little exposure to Git.
0
[ 2, 2631, 1320, 972, 10197, 1596, 19, 13, 10404, 60, 800, 3726, 3726, 25, 32, 938, 20, 2631, 70, 972, 10197, 1596, 16, 21, 24869, 19, 13, 10404, 60, 4382, 31, 589, 2697, 71, 21, 78, 833, 5890, 7758, 9, 31, 129, 44, 1174, 10922, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Begin Trans === If I create a Stored Procedure in SQL and call EXEC spStoredProcedure within the BEGIN/END TRANSACTION, does this other stored procedure also fall into the transaction? I didn't know if it worked like try/catches in C#...
0
[ 2, 2348, 2982, 800, 3726, 3726, 100, 31, 1600, 21, 8214, 7004, 19, 4444, 255, 17, 645, 1396, 3319, 3782, 16828, 43, 15617, 69, 4221, 363, 14, 2348, 118, 2451, 12799, 15, 630, 48, 89, 8214, 7004, 67, 1080, 77, 14, 12799, 60, 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, 0...
What is the best 3. party GUI framework for application development in .net C#? === Examples could be Infragistics or DevExpress. But I'm looking for your opinions on the frameworks that excists. It could even be WPF if thats you favorite.
0
[ 2, 98, 25, 14, 246, 203, 9, 346, 9457, 6596, 26, 3010, 522, 19, 13, 9, 2328, 272, 5910, 60, 800, 3726, 3726, 3770, 110, 44, 19, 22133, 3771, 18, 54, 9664, 21230, 9, 47, 31, 22, 79, 699, 26, 154, 11900, 27, 14, 6596, 18, 30, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to handle a broken pipe (SIGPIPE) in python? === I've written a simple multi-threaded game server in python that creates a new thread for each client connection. I'm finding that every now and then, the server will crash because of a broken-pipe/SIGPIPE error. I'm pretty sure it is happening when the program tries to send a response back to a client that is no longer present. What is a good way to deal with this? My preferred resolution would simply close the server-side connection to the client and move on, rather than exit the entire program. PS: [This][1] question/answer deals with the problem in a generic way; how specifically should I solve it? [1]: http://stackoverflow.com/questions/108183/how-to-prevent-sigpipes-or-handle-them-properly
0
[ 2, 184, 20, 3053, 21, 2023, 7642, 13, 5, 18, 2816, 15185, 6, 19, 20059, 60, 800, 3726, 3726, 31, 22, 195, 642, 21, 1935, 1889, 8, 96, 10647, 69, 250, 8128, 19, 20059, 30, 9695, 21, 78, 9322, 26, 206, 6819, 2760, 9, 31, 22, 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...