unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Books on Domain Specific Languages (DSL) for C# .net === I'm looking for good literature(web, podcasts or books) on DSL's in .net and C#.
4
[ 2, 964, 27, 4603, 1903, 2556, 13, 5, 43, 18, 255, 6, 26, 272, 5910, 13, 9, 2328, 800, 3726, 3726, 31, 22, 79, 699, 26, 254, 2233, 5, 14113, 15, 15124, 18, 54, 964, 6, 27, 13, 43, 18, 255, 22, 18, 19, 13, 9, 2328, 17, 272...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Why recordsets initially were forward only === I have seen recent updates in term of record sets being updated so that we can scroll back and forth through the data it points to. My question is why they were initially designed for a forward only traversal. Is there any impact using the new version?
0
[ 2, 483, 742, 6095, 1537, 46, 917, 104, 800, 3726, 3726, 31, 57, 541, 1764, 16779, 19, 981, 16, 571, 3415, 142, 6372, 86, 30, 95, 92, 12159, 97, 17, 5882, 120, 14, 1054, 32, 819, 20, 9, 51, 1301, 25, 483, 59, 46, 1537, 1006, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
NHibernate mapping to another object NOT on the ID === Ok, NHibernate question here. I have two objects that I would like to map to each other. I have the "Vendor" and the "Township" ... now the two should be linked by zip code, NOT ID. I have done this many times btw objects using id's but never something like this. The issue I am having it that the ZipCodes while stored as strings are somehow being turned into integers (leading zero being dropped)? Either that or it is using the ID from one of the objects. Here is my error: Server Error in '/HQWebsite' Application. No row with the given identifier exists[HQData.Objects.Township#7922] It's also not the data in the database I looked there as well the data is accurate. Here is how I mapped the Vendor xml file: <many-to-one name="_Township" column="ZipCode" foreign-key="ZipCode" class="HQData.Objects.Township, HQData" /> Here is the property from the township one: <set name="_Vendors" cascade="all"> <key column="ZipCode" foreign-key="ZipCode"/> <one-to-many class="HQData.Objects.Vendor, HQData"/> </set> Is anyone familiar with NHibernate and has done this before? Thanks!
0
[ 2, 12109, 15191, 8820, 13305, 20, 226, 3095, 52, 27, 14, 4924, 800, 3726, 3726, 5854, 15, 12109, 15191, 8820, 1301, 235, 9, 31, 57, 81, 3916, 30, 31, 83, 101, 20, 2942, 20, 206, 89, 9, 31, 57, 14, 13, 7, 3124, 5290, 7, 17, 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...
const static === <code> const static int foo = 42; </code> I saw this in some code here at StackOverflow and I could'nt figure out what it does. Then I saw some confused answeres at other forums. My best guess is that it's used in C to hide the constant foo from other modules. Is this correct? If so, why would anyone use it in a C++ context where you can just make it <code>private</code>?
0
[ 2, 11608, 38, 12038, 800, 3726, 3726, 13, 1, 9375, 1, 11608, 38, 12038, 19, 38, 4310, 111, 800, 4162, 73, 13, 1, 118, 9375, 1, 31, 441, 48, 19, 109, 1797, 235, 35, 7566, 2549, 9990, 17, 31, 110, 22, 2877, 1465, 70, 98, 32, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Remove manifest permissions in Vista === I have been developing a C# windows form application in XP. It all works just fine. But in Vista it was not able to write the log or scoreboard file to the hard drive. I found out that I needed a manifest file to allow the popup to ask it to be run as admin. This all worked well and I am very pleased. My problem is I do not know how to remove this permission so that I can repeat the test and change the situation slightly. Does anyone know how I remove the permission the manifest file gave the EXE please as I do not get the do you want it to run as admin popup now. Thanks
0
[ 2, 4681, 13160, 5572, 18, 19, 13520, 800, 3726, 3726, 31, 57, 74, 3561, 21, 272, 5910, 1936, 505, 3010, 19, 23045, 9, 32, 65, 693, 114, 1123, 9, 47, 19, 13520, 32, 23, 52, 777, 20, 2757, 14, 6738, 54, 1618, 2806, 3893, 20, 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...
Physical path of usercontrol (asp.net) === I have a problem regarding getting the path of a user control. The scenario is as follows: In a aspx i have multiple user controls. In one of those user conrtols i need to loop through the other user controls and get the physical path of them. Is there any easy way to do this?
0
[ 2, 1825, 2013, 16, 4155, 12898, 13, 5, 472, 306, 9, 2328, 6, 800, 3726, 3726, 31, 57, 21, 1448, 3467, 1017, 14, 2013, 16, 21, 4155, 569, 9, 14, 12705, 25, 28, 2415, 45, 19, 21, 28, 306, 396, 31, 57, 1886, 4155, 8671, 9, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Design pattern for converting one type of tree structure to another? === I have a sort of tree structure that represent a hierarchy of layers in a map, divided by types of layers and categories. Each node can be a different class for different types of layers (but all nodes implement a common interface). I need to convert that class to an ASP.NET TreeView control. Each node in the input tree is a node in the output tree, with properties set that are dependant on the type of the node. I don't want the input tree classes to know the UI classes, so I can't write a "ToTreeViewNode()" method in them. It feels like there is a design pattern here itching to be used, can you help me find what it is?
0
[ 2, 704, 3732, 26, 19583, 53, 1001, 16, 1541, 1411, 20, 226, 60, 800, 3726, 3726, 31, 57, 21, 2058, 16, 1541, 1411, 30, 3501, 21, 14417, 16, 9124, 19, 21, 2942, 15, 2350, 34, 2551, 16, 9124, 17, 6422, 9, 206, 15421, 92, 44, 21,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to apply the MVC pattern to GUI development === I am primary a web developer but I do have a very good understanding of C++ and C#. However, recently I have writing a GUI application and I have started to get lost in how to handle the relationship between my controller and view logic. In PHP it was very easy - and I could write my own MVC pattern with my eyes closed - mainly because of how PHP is stateless and you regenerate the entire form per request. But in application programming languages I get lost very quickly. My question is: how would I separate my controller from view? Should the view attach to events from the controller - or should the view implement an interface that the controller interacts with?
0
[ 2, 184, 20, 5645, 14, 307, 8990, 3732, 20, 9457, 522, 800, 3726, 3726, 31, 589, 1256, 21, 2741, 10058, 47, 31, 107, 57, 21, 253, 254, 3260, 16, 272, 20512, 17, 272, 5910, 9, 207, 15, 1989, 31, 57, 1174, 21, 9457, 3010, 17, 31,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Qt and no moc_*.cpp file === I'm developing a simple qt4 app and making my own dialog. I subclassed QDialog, inserted Q_OBJECT macro in class declaration block and.. I get [Linker error] undefined reference to `vtable for MyDialog' and there is no moc_MyDialog.cpp generated by moc compiler. Help !
0
[ 2, 2593, 38, 17, 90, 22647, 1, 2483, 9, 150, 3421, 3893, 800, 3726, 3726, 31, 22, 79, 3561, 21, 1935, 2593, 38, 300, 4865, 17, 544, 51, 258, 28223, 9, 31, 972, 1898, 69, 2593, 4286, 5567, 15, 14215, 2593, 1, 23793, 9069, 19, 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...
Embeddable distributed version control system in Java? === Is there a distributed version control system (like git or Mercurial) that can be used as an embedded library in Java applications (to implemented versioned and synchronizable storage for application data), ideally written in pure Java and under a permissive license?
0
[ 2, 11911, 69, 43, 579, 4387, 615, 569, 329, 19, 8247, 60, 800, 3726, 3726, 25, 80, 21, 4387, 615, 569, 329, 13, 5, 1403, 13, 10404, 54, 9046, 3594, 192, 6, 30, 92, 44, 147, 28, 40, 12138, 1248, 19, 8247, 3767, 13, 5, 262, 68...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which is a better RCP platform. eclipse or netbeans === I am building a desktop application. Our analysis says it would be better built with a RCP. Should I use the eclipse or netbeans platform to build my application . Some of the factors to consider are - Performance - Look and Feel - Popularity among target users (developers/testers) The application will be having things like text editor, grid views, graphics and visualizations. I already have experience with netbeans development, but learning eclipse won't hurt. any other options would be welcome too.
0
[ 2, 56, 25, 21, 574, 761, 7439, 2452, 9, 11652, 54, 4275, 863, 5950, 800, 3726, 3726, 31, 589, 353, 21, 17404, 3010, 9, 318, 2495, 898, 32, 83, 44, 574, 392, 29, 21, 761, 7439, 9, 378, 31, 275, 14, 11652, 54, 4275, 863, 5950, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Prevent site data from being craweld and ripped === I'm looking into building a content site with possibly thousands of different entries, accessible by index and by search. What are the measures I can take to prevent **malicious crawlers** from ripping off all the data from my site? I'm less worried about SEO, although I wouldn't want to block legitimate crawlers all together. For example, I thought about randomly changing small bits of the HTML structure used to display my data, but I guess it wouldn't really be effective.
0
[ 2, 2501, 689, 1054, 37, 142, 6803, 6986, 43, 17, 9263, 800, 3726, 3726, 31, 22, 79, 699, 77, 353, 21, 2331, 689, 29, 2879, 3805, 16, 421, 11399, 15, 7342, 34, 4348, 17, 34, 2122, 9, 98, 50, 14, 4699, 31, 92, 247, 20, 2501, 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...
GridViewColumn content and VerticalAlignment === i want to display some information in a listview using the GridView. i have several GridViewColumns and everything works fine. However, want the GridViewColumns content to have a VerticalAlignment (Top in this case) but the gridvewcolumn intself doesnt offer a VerticalContentAlignment dependency property. when using DisplayMemberBinding there is also no possibility to supply VerticalAlignment information. When using a custom DataTemplate as Celltemplate, i can add a VerticalAlignment="top" dp to e.g. some textblock. however this does not work. is there any "nifty-grifty special magic trick" to fullfill this tasK? (
0
[ 2, 7354, 4725, 716, 4404, 103, 2331, 17, 7035, 192, 9693, 1130, 800, 3726, 3726, 31, 259, 20, 3042, 109, 676, 19, 21, 968, 4725, 568, 14, 7354, 4725, 9, 31, 57, 238, 7354, 4725, 716, 4404, 2172, 17, 796, 693, 1123, 9, 207, 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...
c# threading === Can anyone direct me to a good C# (or general) threading tutorial/article/blog? Im being asked to design a multi threaded application and I suddenly realised, that I don't really know anything about
0
[ 2, 272, 5910, 9322, 68, 800, 3726, 3726, 92, 1276, 1744, 55, 20, 21, 254, 272, 5910, 13, 5, 248, 297, 6, 9322, 68, 29724, 118, 20360, 118, 220, 5567, 60, 797, 142, 411, 20, 704, 21, 1889, 9322, 69, 3010, 17, 31, 1605, 12514, 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, 0, 0, 0, 0, 0, 0, 0, 0...
Keeping filters in Django Admin === What I would like to achive is: - I go to admin site, apply some filters to the list of objects - I click and object edit, edit, edit, hit 'Save' - Site takes me to the list of objects... unfiltered. I'd like to have the filter from step 1 remembered and applied. Is there an easy way to do it?
0
[ 2, 2882, 21062, 19, 3857, 14541, 21, 43, 2160, 800, 3726, 3726, 98, 31, 83, 101, 20, 21, 1594, 195, 25, 45, 13, 8, 31, 162, 20, 21, 43, 2160, 689, 15, 5645, 109, 21062, 20, 14, 968, 16, 3916, 13, 8, 31, 10840, 17, 3095, 9392...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Refer to a Javascript File in Jquery === I have a simple HTML. I am using the JQuery for AJAX purpose. Now, I want to put my javascript function in a separate javascript file. What is the syntax for this? For example, currently my script section in the HTML is something like this: <script> <script type="text/javascript" src="scripts/scripts.js"></script> <script type="text/javascript" src="scripts/jquery.js"></script> <script type = "text/javascript" language="javascript"> $(document).ready(function() { $("#SubmitForm").click(Submit()); }); </script> But I want to put the function function() { $("#SubmitForm").click(Submit()); }) in the file scripts.js. Can I use assign a name to that function and refer to it?
0
[ 2, 5017, 20, 21, 8247, 8741, 3893, 19, 487, 8190, 93, 800, 3726, 3726, 31, 57, 21, 1935, 13, 15895, 9, 31, 589, 568, 14, 487, 8190, 93, 26, 20624, 2131, 9, 130, 15, 31, 259, 20, 442, 51, 8247, 8741, 1990, 19, 21, 1725, 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...
why initializing some value like 21.4 to double is converted to 21.399999618530273 ? === double r = 11.631; double theta = 21.4; //in watch it is 11.631000000000000 and 21.399999618530273 how to avoid this?
0
[ 2, 483, 2104, 3335, 109, 1923, 101, 852, 9, 300, 20, 1494, 25, 3494, 20, 852, 9, 3412, 23170, 4060, 26288, 3564, 4440, 13, 60, 800, 3726, 3726, 1494, 761, 800, 547, 9, 3891, 165, 73, 1494, 14, 536, 800, 852, 9, 300, 73, 12894, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL Server 2005 - Rowsize effect on query performance? === Im trying to squeeze some extra performance from searching through a table with many rows. My current reasoning is that if I can throw away some of the seldom used member from the searched table thereby reducing rowsize the amount of pagesplits and hence IO should drop giving a benefit when data start to spill from memory. Any good resource detailing such effects? Any experiences? Thanks.
0
[ 2, 4444, 255, 8128, 812, 13, 8, 3131, 10454, 1590, 27, 25597, 956, 60, 800, 3726, 3726, 797, 749, 20, 10202, 109, 2230, 956, 37, 5792, 120, 21, 859, 29, 151, 11295, 9, 51, 866, 15543, 25, 30, 100, 31, 92, 3814, 229, 109, 16, 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 are the alternatives to using Expand in a LINQ to ADO.net Data Service Query? === I am wondering if there are any alternatives to using the Expand key word when performing an LINQ to ADO.net Data Services query. The expand method does get me the data I am interested in, but it requires me to know all of the sub-objects that I am going to be working with in advance. My absolute preference would be that those sub-objects would be lazy loaded for me when I access them, but this doesn't look to be an option (I could add this lazy loading to the get on that sub-object property, but it gets wiped out when I do an update of the data service reference). Does anyone have any suggestions/best practices/alternatives for this situation? Thanks. ===== Example Code using Member that has a MailingAddress ===== Works: var me = (from m in ctx.Member.Expand("MailingAddress") where m.MemberID == 10000 select m).First(); MessageBox.Show(me.MailingAddress.Street); Would Prefer (would really like if this then went and loaded the MailingAddress) var me = (from m in ctx.Member where m.MemberID == 10000 select m).First(); MessageBox.Show(me.MailingAddress.Street); Or at least (note: something similar to this, with MailingAddressReference, works on the server side if I do so as LINQ to Entities in a Service Operation) var me = (from m in ctx.Member where m.MemberID == 10000 select m).First(); if (!(me.MailingAddress.IsLoaded())) me.MailingAddress.Load() MessageBox.Show(me.MailingAddress.Street);
0
[ 2, 98, 50, 14, 2676, 18, 20, 568, 6073, 19, 21, 6294, 1251, 20, 21, 537, 9, 2328, 1054, 365, 25597, 60, 800, 3726, 3726, 31, 589, 5712, 100, 80, 50, 186, 2676, 18, 20, 568, 14, 6073, 1246, 833, 76, 2955, 40, 6294, 1251, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where should I begin with HDLs? === I am a self-taught embedded developer. I mostly use AVRs programmed in C and ASM, but I have dabbled with other systems. I am looking to move onto more complex devices like CPLDs and FPGAs, but I have no idea where to start. So my one and a half questions are: 1. Do you prefer VHDL or Verilog and why? 2. What is a good way for one with no prior experience in HDLs get started in learning such a beast?
0
[ 2, 113, 378, 31, 2348, 29, 8590, 7532, 60, 800, 3726, 3726, 31, 589, 21, 1119, 8, 38, 12647, 12138, 10058, 9, 31, 1555, 275, 21, 6938, 18, 2866, 43, 19, 272, 17, 28, 79, 15, 47, 31, 57, 1331, 13784, 43, 29, 89, 1242, 9, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
A way to prevent a mobile browser from downloading and displaying images === Is there a simple way to prevent browser from downloading and displaying images, best would be via some magic style tag or javasctipe. The thing is, I'd like to tweak the company's website a bit to be more usable via mobile devices. The company is a gaming one, there's like 5MBs of images on it's main page (and those can't be touched). They alredy display deadly slow on my dsl, and they can be killers to someone who's paying for his GPRS per MB ;) The code of the page is not mine and shouldn't be touched too (in fact, it should be written from scratch, but it's not in my gesture to do it now) :) I was thinking about two solutions: 1) If there was some kind of style-tag (or maybe a javascript? the one that would work on mobile browsers tho) that would prevent browser from downloading images and force to display alt-parameter instead I could simply attach this style if I discovered a user-agent to be some known mobile thing. or 2) I could tweak the webserver a bit to check the User-agent header and if client requests an image (.png, .gif and .jpg) send 404 instead. That has a downside tho - I'd like to allow the user to view images if he actually wants to. It seems that first solution would be best - what you guys think? And is there a javascript way to do it? I could try building document DOM, then get all `<img>` elements, and replace their `src` with some placeholder even but will that work on most mobile browsers (Opera Mini I suppose, the Windows Mobile thingy, the basic Symbian browser from Nokia)? And would playing with document DOM be a good solution on a mobile device (I'm not sure about it's memory-and-cpu requirements to be honest).
0
[ 2, 21, 161, 20, 2501, 21, 3241, 16495, 37, 7121, 68, 17, 17418, 3502, 800, 3726, 3726, 25, 80, 21, 1935, 161, 20, 2501, 16495, 37, 7121, 68, 17, 17418, 3502, 15, 246, 83, 44, 1197, 109, 2154, 1034, 3383, 54, 8247, 18, 14468, 166...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Any chances to imitate times() Ruby method in C#? === Every time I need to do something *N* times inside an algorithm using C# I write this code for (int i = 0; i < N; i++) { ... } Studying Ruby I have learned about method *times()* which can be used with the same semantics like this N.times do ... end Code fragment in C# looks more complex and we should declare useless variable *i*. I tried to write extension method which returns *IEnumerable*, but I am not satisfied with the result because again I have to declare a cycle variable *i*. public static class IntExtender { public static IEnumerable Times(this int times) { for (int i = 0; i < times; i++) yield return true; } } ... foreach (var i in 5.Times()) { ... } Is it possible using some new C# 3.0 language features to make *N* times cycle more elegant?
0
[ 2, 186, 11285, 20, 22823, 436, 5, 6, 10811, 2109, 19, 272, 5910, 60, 800, 3726, 3726, 352, 85, 31, 376, 20, 107, 301, 1637, 103, 2483, 436, 572, 40, 9083, 568, 272, 5910, 31, 2757, 48, 1797, 26, 13, 5, 6391, 31, 800, 713, 73, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Estimate SQL Server index sizes === While estimating straight row and table sizes are fairly simple math, we find it challenging to guess just how much space each index will occupy (for a given table size). What areas can we learn to calculate a better estimate and growth rate for indexes?
0
[ 2, 10243, 4444, 255, 8128, 4348, 13403, 800, 3726, 3726, 133, 13, 15018, 79, 1880, 1599, 3131, 17, 859, 13403, 50, 6647, 1935, 5057, 15, 95, 477, 32, 10855, 20, 2321, 114, 184, 212, 726, 206, 4348, 129, 12290, 13, 5, 1106, 21, 504...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 uninstall Visual Studio SP1 w/ .Net 3.5 SP1? === What's the best way to uninstall this and return to .Net 3.5? It broke a few of my programs :(
0
[ 2, 184, 107, 42, 367, 108, 21300, 3458, 1120, 3782, 165, 619, 118, 13, 9, 2328, 203, 9, 264, 3782, 165, 60, 800, 3726, 3726, 98, 22, 18, 14, 246, 161, 20, 367, 108, 21300, 48, 17, 788, 20, 13, 9, 2328, 203, 9, 264, 60, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
Algorithm to get a Regex === Something like this is in my mind: I put one or a few strings in and the algorithm shows me a matching regex. Is there any "easy" way to do this, or something like this already exists?
0
[ 2, 9083, 20, 164, 21, 7953, 1706, 800, 3726, 3726, 301, 101, 48, 25, 19, 51, 594, 45, 31, 442, 53, 54, 21, 310, 7887, 19, 17, 14, 9083, 1285, 55, 21, 10120, 7953, 1706, 9, 25, 80, 186, 13, 7, 18385, 7, 161, 20, 107, 48, 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, 0, 0, 0, 0, 0, 0, 0, 0...
Getting rid of the evil delay caused by ShellExecute === This is something that's been bothering me a while and there just has to be a solution to this. Every time I call ShellExecute to open an external file (be it a document, executable or a URL) this causes a very long lockup in my program before ShellExecute spawns the new process and returns. Does anyone know how to solve or work around this? EDIT: And as the tags might indicate, this is on Win32 using C++.
0
[ 2, 1017, 6681, 16, 14, 3215, 7255, 1497, 34, 3593, 1706, 17194, 591, 800, 3726, 3726, 48, 25, 301, 30, 22, 18, 74, 18968, 55, 21, 133, 17, 80, 114, 63, 20, 44, 21, 4295, 20, 48, 9, 352, 85, 31, 645, 3593, 1706, 17194, 591, 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...
SecurityException thrown when app starts from remote folder === I have an app written in C# that lies on a network share. When I run it from a local drive, everything works fine. When I start it from the remote share, calls like try { System.Reflection.Assembly.GetExecutingAssembly(); System.IO.Directory.GetCurrentDirectory(); } throw a SecurityException 'Request failed'. What causes this, what is the difference between an app that is started locally and one that is started from a remote location?
0
[ 2, 1221, 10066, 872, 6027, 76, 4865, 3244, 37, 5388, 19294, 800, 3726, 3726, 31, 57, 40, 4865, 642, 19, 272, 5910, 30, 1966, 27, 21, 982, 1891, 9, 76, 31, 485, 32, 37, 21, 375, 1493, 15, 796, 693, 1123, 9, 76, 31, 799, 32, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why does Eclipse code completion not work on some projects? === I have Eclipse 3.3.2 with PDT doing PHP development. All projects that I create, even SVN projects have code completion. Now I just opened another SVN project and it has no code completion or PHP templates (STRG-space does nothing in that project). However, I can open the other projects and code completion all work in them. Why would code completion and templates be "off" in just one project and how can I turn it back on?
0
[ 2, 483, 630, 11652, 1797, 5392, 52, 170, 27, 109, 2314, 60, 800, 3726, 3726, 31, 57, 11652, 203, 9, 240, 9, 135, 29, 13, 9251, 38, 845, 13, 26120, 522, 9, 65, 2314, 30, 31, 1600, 15, 166, 13, 18, 16578, 2314, 57, 1797, 5392, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Single most important piece of documentation? === You are joining a project to maintain an existing system. There is no written documentation at all, but the previous team offers to write *one* piece of documentation. And they are going to let you decide what it should cover: What is the single most important piece of documentation? This is a poll: give only one document type per answer and let other readers vote.
0
[ 2, 345, 127, 681, 1855, 16, 13945, 60, 800, 3726, 3726, 42, 50, 3765, 21, 669, 20, 4027, 40, 3149, 329, 9, 80, 25, 90, 642, 13945, 35, 65, 15, 47, 14, 1158, 173, 2486, 20, 2757, 1637, 849, 2483, 1855, 16, 13945, 9, 17, 59, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How does one configure synergy to use multiple X11 screens (:0, :1, ...)? === Configuring synergy for multiple computers, each with a single screen, is fairly easy. But it is not so obvious how to configure multiple X11 screens. For example, sys1, a minimac is on the right. sys1 is the server and has a single monitor (screen). To the left of sys1 is a Fedora 9 system, sys2, with two X11 displays: sys2:0.0 and sys2:0.1 I'm guessing that one invents names and uses aliases with ports specified (5900 and 5901 in my case), which is the avenue I will investigate. But surely someone has crossed this bridge before.
0
[ 2, 184, 630, 53, 1065, 15951, 6063, 106, 2687, 20, 275, 1886, 993, 1306, 14236, 13, 5, 45, 387, 15, 13, 45, 165, 15, 13, 9, 9, 9, 6, 60, 800, 3726, 3726, 1065, 13549, 68, 6063, 106, 2687, 26, 1886, 7774, 15, 206, 29, 21, 345...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Running an exe from windows service that interacts the the user's desktop === I've created a windows service in C# and Windows Server 2003. I would like my service to be able to run an exe file that is Windows forms application. When I start the service - it runs the other application but I cannot see it. When I open Task Manager - i can see that the application is running but I just cannot see it. I have checked "Allow the service to interact with the desktop" but nothing happens. Please help. Is it possible to run and exe from within a windows service and see the exe running in widnows server 2003?
0
[ 2, 946, 40, 1396, 62, 37, 1936, 365, 30, 10001, 18, 14, 14, 4155, 22, 18, 17404, 800, 3726, 3726, 31, 22, 195, 679, 21, 1936, 365, 19, 272, 5910, 17, 1936, 8128, 973, 9, 31, 83, 101, 51, 365, 20, 44, 777, 20, 485, 40, 1396, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 language to learn now? === I have been programming on my free time for a couple of years now and im fluent in PHP, know some Python and programmed in Visual Basic .NET (this was the first language i learn't). But now i want to get cracking with something else, something cross-platform and not on the internet as i find the idea of another layer of applications to run an application on the internet rather amusing. I was thinking of either Java or C++, is this the way to go?
4
[ 2, 98, 816, 20, 2484, 130, 60, 800, 3726, 3726, 31, 57, 74, 3143, 27, 51, 551, 85, 26, 21, 1335, 16, 122, 130, 17, 797, 19252, 19, 13, 26120, 15, 143, 109, 20059, 17, 2866, 43, 19, 3458, 2125, 13, 9, 2328, 13, 5, 1565, 23, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should web applications use explicit SQL transactions? === Consider a regular web application doing mostly form-based CRUD operations over SQL database. Should there be explicit transaction management in such web application? Or should it simply use autocommit mode? And if doing transactions, is "transaction per request" sufficient?
0
[ 2, 378, 2741, 3767, 275, 14990, 4444, 255, 13147, 60, 800, 3726, 3726, 3563, 21, 1290, 2741, 3010, 845, 1555, 505, 8, 1281, 11498, 43, 1311, 84, 4444, 255, 6018, 9, 378, 80, 44, 14990, 12799, 1097, 19, 145, 2741, 3010, 60, 54, 378...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cross Platform build environment === As good developers we keep our code as standard compliant as possable to help in porting between platforms. But what tools are available that help us build the code in a uniform way across multiple platforms. *nix faimily has 'make' but Windows needs 'nmake'. I have read about [SCons](www.scons.org) but never used it in anger. What is your favorite build tool, why do you find effective and are there any limitations (<b>i.e.</b> platforms with bad support etc). Cross platform IDE's aswell.
0
[ 2, 919, 2452, 1895, 2307, 800, 3726, 3726, 28, 254, 10168, 95, 643, 318, 1797, 28, 1236, 13, 25509, 28, 12928, 18, 579, 20, 448, 19, 1295, 68, 128, 6843, 9, 47, 98, 4672, 50, 904, 30, 448, 182, 1895, 14, 1797, 19, 21, 4347, 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...
Ruby networking problem on windows === I am running windows XP with ruby 1.8.6 patchlevel 111. I am using HTTP to connect to a remote server and it has been running fine. All of a sudden it started to through the exception listed below (I did not change any code since the last time I ran it successfully). Does anybody know what is going on? <pre> c:/ruby/lib/ruby/1.8/timeout.rb:54:in `rbuf_fill': execution expired (Timeout::E rror) from c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout' from c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout' from c:/ruby/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill' from c:/ruby/lib/ruby/1.8/net/protocol.rb:116:in `readuntil' from c:/ruby/lib/ruby/1.8/net/protocol.rb:126:in `readline' from c:/ruby/lib/ruby/1.8/net/http.rb:2029:in `read_status_line' from c:/ruby/lib/ruby/1.8/net/http.rb:2018:in `read_new' from c:/ruby/lib/ruby/1.8/net/http.rb:1059:in `request' ... 19 levels... from c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run' from c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run' from c:/ruby/lib/ruby/1.8/test/unit.rb:278 from c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader .rb:5 rake aborted! Command failed with status (3): [c:/ruby/bin/ruby -Ilib;test "c:/ruby/lib/r...] </pre>
0
[ 2, 10811, 16230, 1448, 27, 1936, 800, 3726, 3726, 31, 589, 946, 1936, 23045, 29, 10811, 137, 9, 457, 9, 379, 7331, 3906, 14091, 9, 31, 589, 568, 7775, 20, 6379, 20, 21, 5388, 8128, 17, 32, 63, 74, 946, 1123, 9, 65, 16, 21, 422...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to automate the creation of a inno setup package with ant? === I am creating an Eclipse RCP application. I have a nice build script that creates the product and that runs unit tests on the code. Now my next step, I want it to create the setup package that I normally create manually using the inno setup compiler. The question is, how would I get around creating this package automatically? I guess I can generate the inno setup file automatically from ant, and then invoke the compiler from the command line, but I don't know if this is possible. Any tips for this task?
0
[ 2, 25, 32, 938, 20, 3108, 5281, 14, 2502, 16, 21, 19, 251, 18161, 6030, 29, 40, 38, 60, 800, 3726, 3726, 31, 589, 2936, 40, 11652, 761, 7439, 3010, 9, 31, 57, 21, 2210, 1895, 3884, 30, 9695, 14, 2374, 17, 30, 1461, 1237, 4894,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ActiveRecord Association caching Date value in conditions clause === My <code>Account</code> model has the following two associations: has_many :expenses, :order => 'expenses.dated_on DESC', :dependent => :destroy has_many :recent_expenses, :class_name => 'Expense', :conditions => "expenses.dated_on <= '#{Date.today}'", :order => 'dated_on DESC', :limit => 5 In one of my views I'm rendering recent expenses like so: <% @account.recent_expenses.each do |expense| %> ... <% end %> On my development machine, on the staging server (which runs in production mode) and also on the production console, <code>@account.recent_expenses</code> returns the correct list. However, on our live production server, the most recent expenses are not returned. If I replace <code>@account.recent_expenses</code> with <code>@account.expenses</code> in the view, the most recent expenses *are* displayed, so my guess is that the <code>#{Date.today}</code> part of the conditions clause is somehow being cached the first time it is executed. If I restart the production Mongrel cluster, all the latest expenses are returned correctly. Can anyone think why this would occur and how might I change the <code>:recent_expenses</code> query to prevent this from happening?
0
[ 2, 1348, 14953, 607, 1658, 7192, 1231, 1923, 19, 2039, 9040, 800, 3726, 3726, 51, 13, 1, 9375, 1, 29148, 1, 118, 9375, 1, 1061, 63, 14, 249, 81, 10642, 45, 63, 1, 14842, 13, 45, 6899, 6498, 18, 15, 13, 45, 7861, 800, 1, 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...
Domain Specific Languages (DSL) and Domain Driven Design (DDD) === What is the differences and similarities between Domain Specific Languages (DSL) and Domain Driven Design (DDD)?
0
[ 2, 4603, 1903, 2556, 13, 5, 43, 18, 255, 6, 17, 4603, 5355, 704, 13, 5, 43, 8096, 6, 800, 3726, 3726, 98, 25, 14, 4921, 17, 13330, 128, 4603, 1903, 2556, 13, 5, 43, 18, 255, 6, 17, 4603, 5355, 704, 13, 5, 43, 8096, 6, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What are the code convention for parameters/return values (collections) === I had a little discussion with a friend about the usage of collections in return/input values of a method. He told me that we have to use - the most derived type for return values. - the least derived type for input parameters. So, it means that, for example, a method has to get a ReadOnlyCollection as parameter, and as return a List<string>. Moreover, he said that we must not use List<T> or Dictionary<T> in publics API, and that we have to use, instead Collection<T>, ReadOnlyCollection<T>, ... So, in the case where a method is public, its parameters and its return values must be Collection<T>, ReadOnlyCollection<T>, ... Is it right ?
0
[ 2, 98, 50, 14, 1797, 3087, 26, 12905, 118, 24632, 4070, 13, 5, 15015, 5757, 6, 800, 3726, 3726, 31, 41, 21, 265, 5460, 29, 21, 860, 88, 14, 7514, 16, 5721, 19, 788, 118, 108, 4881, 4070, 16, 21, 2109, 9, 24, 470, 55, 30, 95,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Lock / Prevent edit of source files on Linux using C++ === How can I programmatically lock/unlock, or otherwise prevent/enable editing, a source file on Linux using C++. I want to be able to lock source file so that if I open it in an editor it will not allow me to save back to the same source file. I am thinking of maybe changing the permissions to read-only (and change it back to read-write later): how do I do that from C++?
0
[ 2, 3991, 13, 118, 2501, 9392, 16, 1267, 6488, 27, 13024, 568, 272, 20512, 800, 3726, 3726, 184, 92, 31, 625, 6732, 1326, 3991, 118, 1020, 3966, 15, 54, 3190, 2501, 118, 219, 579, 9510, 15, 21, 1267, 3893, 27, 13024, 568, 272, 2051...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Swapping the hand holding the mouse : do you have a better idea ? === Spending thousand of hours in front of my computer, ergonomics became quickly a main issue. For the monitor or the keyboard, technical solutions exist. But for the mouse, I never get used to the trackball and putting a little pillow under my wrist made me feel uncomfortable. So I started to swap the hand that holds the mouse. It's great, one can rest while he other is working. At the beginning it was hard, but now I don't really see the difference unless I try to kick an ass at Quake III ;-) Anyway, a lot of people would not be comfortable with this idea, do not have the time, and above all, can not afford the mental switch that comes with the use of the other hand. Indeed, using the other hand make you use the other side of you brain (logical <=> creative), making very hard to concentrate the first times. I am happy about it but can understand that many people would not. Do you have a better idea ?
2
[ 2, 10143, 5574, 14, 224, 1337, 14, 7567, 13, 45, 107, 42, 57, 21, 574, 882, 13, 60, 800, 3726, 3726, 4837, 2996, 16, 974, 19, 431, 16, 51, 1428, 15, 13, 106, 4099, 20167, 18, 178, 976, 21, 407, 1513, 9, 26, 14, 7626, 54, 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...
Best language for a non-programmer tech support person to learn === I have a colleague that handles tech support, and her role involves a lot of transforming ASCII files from one format to another and occasionally reporting on them. The formats tend to be largely plain text with an occasional bit of XML. She regularly gets me to write small scripts to do these transformatsions, and also batch files for repeating the operation for collections of files in different locations. Currently she uses Crystal Reports to do much of this but it is a bit of a dog. Could anyone recommend a language, or alternative tool, that she could learn to become more self reliant in this role. It must primarily be very easy to learn at a starting out level, be good at manipulating text files, and run in a Windows environment. Ideally, it would also be freely available, such that she could pass her scripts onto her end users.
0
[ 2, 246, 816, 26, 21, 538, 8, 19746, 1263, 6145, 555, 840, 20, 2484, 800, 3726, 3726, 31, 57, 21, 12321, 30, 3053, 18, 6145, 555, 15, 17, 36, 597, 6569, 21, 865, 16, 22335, 28, 1892, 49, 6488, 37, 53, 2595, 20, 226, 17, 4533, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
When did you realize that you was lousy at commenting your code? === I first realized i sucked at commenting code when i was going back to old project and found complete classes and methods uncommented, knowing what the code did wasen't as hard but **why it did it**. So now i always write a short comment about how and why it does it. It is more for my own sake than for others.
0
[ 2, 76, 144, 42, 4007, 30, 42, 23, 6118, 4980, 35, 17797, 154, 1797, 60, 800, 3726, 3726, 31, 64, 1896, 31, 8554, 35, 17797, 1797, 76, 31, 23, 228, 97, 20, 315, 669, 17, 216, 1279, 2684, 17, 3195, 367, 960, 1130, 69, 15, 2506, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Html.TextBox conditional attribute with ASP.NET MVC Preview 5 === I have a strongly-typed MVC View Control which is responsible for the UI where users can create and edit Client items. I'd like them to be able to define the ClientId on creation, but not edit, and this to be reflected in the UI. To this end, I have the following line: <%= Html.TextBox("Client.ClientId", ViewData.Model.ClientId, new { @readonly = (ViewData.Model.ClientId != null && ViewData.Model.ClientId.Length > 0 ? "readonly" : "false") })%> It seems that no matter what value I give the readonly attribute (even "false" and ""), Firefox and IE7 make the input read-only, which is annoyingly counter-intuitive. Is there a nice, ternary-operator-based way to drop the attribute completely if it is not required?
0
[ 2, 13, 15895, 9, 11969, 5309, 21206, 35, 14755, 29, 28, 306, 9, 2328, 307, 8990, 16121, 331, 800, 3726, 3726, 31, 57, 21, 5020, 8, 4474, 43, 307, 8990, 1418, 569, 56, 25, 1864, 26, 14, 13, 5661, 113, 3878, 92, 1600, 17, 9392, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Could you recommend an unstructured data indexing software? === I am collecting logs from several custom made applications. Each application has it's own log format. What I'm looking for is a central tool which would allow me to search through all of my logs. This means the tool would have to be able to define a different regex (or alike) for each log file (marking where a record begins, ends, and what are the fields). I've been trying Splunk, but I'm not happy with it, since performance are slow, I'm limited (free version) with the amount of indexed data per-day, and it's not as flexible as I want it to be. Could you recommend a software (preferably free or cheap) for the task?
0
[ 2, 110, 42, 12360, 40, 367, 13971, 43, 1054, 4348, 68, 2306, 60, 800, 3726, 3726, 31, 589, 10079, 18893, 37, 238, 5816, 117, 3767, 9, 206, 3010, 63, 32, 22, 18, 258, 6738, 2595, 9, 98, 31, 22, 79, 699, 26, 25, 21, 521, 5607, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using .NET's UserControl as an embedded control via COM === I'm porting an existing .NET 3.5 application into a plug-in for Eclipse. I want to have my custom UserControl, written in C#, embedded within Eclipse; I've exported it successfully as a COM Control, and it works well in Eclipse Europa. In Ganymede, it seems the OLE load code has changed, and what originally worked in Europa, fails. The specific error is when Ganymede loads my control, it queries for IOleObject, receives the proper interface, and then calls SetClientSite on it, which causes my object to lose both its references, and become de-allocated (Ganymede will then crash). The exact same control works flawlessly in both Visual C++ designer and in Europa. Apart from the obvious .NET attributes and UserControl, is there any specific class I need to inherit from? Specific interfaces I need to implement, or specific behavior change between Europa/VC and Ganymede? Thanks!
0
[ 2, 568, 13, 9, 2328, 22, 18, 4155, 12898, 28, 40, 12138, 569, 1197, 13, 960, 800, 3726, 3726, 31, 22, 79, 1295, 68, 40, 3149, 13, 9, 2328, 203, 9, 264, 3010, 77, 21, 10922, 8, 108, 26, 11652, 9, 31, 259, 20, 57, 51, 5816, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to convert a number to a bytearray in bit endian order === I am trying to uncompress some data created in VB6 using the zlib API. I have read this is possible with the qUncompress function: http://doc.trolltech.com/4.4/qbytearray.html#qUncompress I have read the data in from QDataStream via readRawBytes into a char array, which I then converted to a QByteArray for decompression. I have the compressed length and the expected decompressed length but am not getting anything back from qUncompress. However I need to prepend the expected decompressed length in big endian format. Has anybody done this and have an example?
0
[ 2, 184, 20, 8406, 21, 234, 20, 21, 34, 591, 8576, 93, 19, 1142, 241, 806, 389, 800, 3726, 3726, 31, 589, 749, 20, 367, 960, 5890, 109, 1054, 679, 19, 13, 20468, 379, 568, 14, 2052, 8326, 21, 2159, 9, 31, 57, 1302, 48, 25, 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...
SQL server 2005 Connection Error: Cannot generate SSPI context === Provide Used: Microsoft OLE DB Provider for SQL Server. Can anyone help me with this.. I was trying to connect with LLBLgen
0
[ 2, 4444, 255, 8128, 812, 2760, 7019, 45, 1967, 7920, 13, 18, 18, 2159, 4141, 800, 3726, 3726, 1181, 147, 45, 7099, 12116, 13, 9007, 11747, 26, 4444, 255, 8128, 9, 92, 1276, 448, 55, 29, 48, 9, 9, 31, 23, 749, 20, 6379, 29, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What is your favorite IDE for develop with Websphere Application Server? === Because now I use IBM Rational Application Development (RAD) it very slow in my mind (my notebook -- RAM 2 GB, CPU Intel Core 2 Duo 2.00GHz and Windows XP sp2). Otherwise, I have many problem such as many time my workspace was crash, sometime error while generate client test and etc. So, I wish to know what IDE that you favorite use for develop with Websphere Application Server.
4
[ 2, 98, 25, 154, 3839, 13, 3448, 26, 2803, 29, 2741, 14079, 3010, 8128, 60, 800, 3726, 3726, 185, 130, 31, 275, 10233, 7511, 3010, 522, 13, 5, 8278, 6, 32, 253, 2276, 19, 51, 594, 13, 5, 915, 14630, 13, 8, 8, 2843, 172, 14857, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cookie getMaxAge === I can't retrieve cookie maxage it always returns -1 Creating cookie: Cookie securityCookie = new Cookie("sec", "somevalue"); securityCookie.setMaxAge(EXPIRATION_TIME); Retrieve cookie: Cookie[] cookies = request.getCookies(); if (cookies != null) { for(int i=0; i<cookies.length; i++) { Cookie cookie = cookies[i]; if ("sec".equals(cookie.getName())){ int age = cookie.getMaxAge(); } } } i am always getting age = -1 also when i check in firefox cookie expiration i see strange date. Thx
0
[ 2, 19980, 164, 8304, 1303, 800, 3726, 3726, 31, 92, 22, 38, 11917, 19980, 2049, 1303, 32, 550, 4815, 13, 8, 165, 2936, 19980, 45, 19980, 1221, 716, 17391, 800, 78, 19980, 5, 7, 14332, 7, 15, 13, 7, 3220, 15165, 7, 6, 73, 1221, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JavaScript: case-insensitive search === I'm trying to get a case-insensitive Search with two String in JavaScript working. Normally it would be like this: <pre><code>var string="Stackoverflow is the BEST"; var result= string.search(/best/i); alert(result); </pre></code> The /i flag would be for case-insensitive. But I need to search for a second string, without the flag it works perfect: <pre><code>var string="Stackoverflow is the BEST"; var searchstring="best"; var result= string.search(searchstring); alert(result); </pre></code> If i add the /i flag to the above example it would search for searchstring and not for what is in the variable "searchstring" Would be nice if someone could tell me how I can achieve this. Chris
0
[ 2, 8247, 8741, 45, 610, 8, 108, 19435, 2122, 800, 3726, 3726, 31, 22, 79, 749, 20, 164, 21, 610, 8, 108, 19435, 2122, 29, 81, 3724, 19, 8247, 8741, 638, 9, 4147, 32, 83, 44, 101, 48, 45, 13, 1, 3515, 1, 9375, 1, 3311, 3724, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 a c++ std::string === I'm currently working on a project that depends on me providing a path to a file (eg. "C:\Path.pth"). Now, I had everything working yesterday by calling my std::string with: std::string path("C:\\Path.pth"); -- But now it doesn't work!? It throws a bad_alloc. Seems like the '\' character is the problem. I even tried using \x5C as the ascii-value of it instead, but same result. Now, my question is, is it possible that I have screwed up some #define, some compiler-option or something else "non-code" that could've caused this? I'm using VS 2005, btw .. Any help would be much appriciated.. Ty..
0
[ 2, 13, 22, 1, 22, 19, 21, 272, 20512, 354, 43, 45, 45, 11130, 800, 3726, 3726, 31, 22, 79, 871, 638, 27, 21, 669, 30, 9597, 27, 55, 2674, 21, 2013, 20, 21, 3893, 13, 5, 5431, 9, 13, 7, 150, 45, 1, 8353, 9, 306, 96, 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...
Reading the dynamically changed value of an HtmlInputHidden in ASP.NET === I got a simple page with a HtmlInputHidden field. I use a javascript to update that value and when posting back the page i want to read the value of that HtmlInputHidden field. The Value property of that HtmlInputHidden field is on postback the default value (the value it had when the page got created, not the value reflected through the javascript). I also tried to Register the HtmlInputHidden field with ScriptManager.RegisterHiddenField(Page, "MyHtmlImputHiddenField", "initialvalue") but it still only lets me read the 'initialvalue' even though i (through javascript) can inspect that the value has changed.
0
[ 2, 1876, 14, 7782, 1326, 1015, 1923, 16, 40, 13, 15895, 108, 4881, 1822, 43, 817, 19, 28, 306, 9, 2328, 800, 3726, 3726, 31, 330, 21, 1935, 2478, 29, 21, 13, 15895, 108, 4881, 1822, 43, 817, 575, 9, 31, 275, 21, 8247, 8741, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Don't display HTML code and entities in dropdownlists === I need to create a dropdownlist representing my menu items. They need to be visually representing a tree, like in a treeview (sorry I don't know how to say that in english). When I add spaces, it trims them at display, although they are in the html source. When I add &amp;nbsp;, it display the code of the HTML entity. I can add "physical" non-breaking spaces, but I would like to avoid that if possible. Plus, more generally, I'd like to know how to do that. Is it even possible ? Thanks
0
[ 2, 221, 22, 38, 3042, 13, 15895, 1797, 17, 12549, 19, 2804, 2968, 5739, 18, 800, 3726, 3726, 31, 376, 20, 1600, 21, 2804, 2968, 5739, 3793, 51, 11379, 3755, 9, 59, 376, 20, 44, 20747, 3793, 21, 1541, 15, 101, 19, 21, 1541, 4725,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Updating client MSSQL database structure from text file === We have a "master database structure", and need a routine to keep the database structure on client sites up-to-date. A number of suggestions have been given [to a related question][1], but I am looking for a more specific solution, along these lines: 1. I would like to generate a text file (XML or other readable format) which describes the entire database structure (this could go into version control). 2. Then I need a way to update the database structure on the client site so that it corresponds to the master database structure. (In other words, I don't want to have to keep track of numerous change scripts for different versions of the database structure, but a more general routine which can get the client database structure updated to the current master database structure.) So the main feature I'm looking for could be described as "database structure to text" and "text to database structure". [1]: http://stackoverflow.com/questions/115389/update-sql-sever-database-schema-with-software-update "here"
0
[ 2, 71, 43, 1880, 6819, 4235, 18, 22402, 6018, 1411, 37, 1854, 3893, 800, 3726, 3726, 95, 57, 21, 13, 7, 4594, 6018, 1411, 7, 15, 17, 376, 21, 8275, 20, 643, 14, 6018, 1411, 27, 6819, 3259, 71, 8, 262, 8, 8209, 9, 21, 234, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
LINQ to XML gets no data with schema set === I am trying to get some XML data with LINQ, but running into a problem. I am using a schema, which is set in the attribute xmlns ... <CarsForSale xmlns="http://schemas.sharplogic.net/CarSales.xsd"> <CarForSale> There are many CarForSale elements. When the schema is set and I do this... XElement doc = XElement.Load(HttpContext.Current.Server.MapPath("App_Data/XML/CarsForSale.xml")); var cars2 = from d in doc.Descendants("CarForSale") select d; Then I get in the results i get Enumeration yielded no results Strip the xmlns out of the XML file and the data comes back as expected?? Any ideas? Thx
0
[ 2, 6294, 1251, 20, 23504, 3049, 90, 1054, 29, 23874, 309, 800, 3726, 3726, 31, 589, 749, 20, 164, 109, 23504, 1054, 29, 6294, 1251, 15, 47, 946, 77, 21, 1448, 9, 31, 589, 568, 21, 23874, 15, 56, 25, 309, 19, 14, 35, 14755, 235...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
'CONTINUE' keyword in Oracle 10g PL/SQL === I'm migrating a TSQL stored procedure to PL/SQL and have encountered a problem - the lack of a CONTINUE keyword in Oracle 10g. I've read that Oracle 11g has this as a new feature, but upgrading is not an option unfortunately. Is there any alternative to CONTINUE in 10g? I don't believe it's practical to restructure the logic of the SP as a work-around, because I have an outer loop, an IF, then a nested IF, then the CONTINUE at the end of a statement block within that IF. Any help would be greatly appreciated, cheers.
0
[ 2, 13, 22, 13391, 4185, 22, 1246, 9587, 19, 15759, 332, 263, 12443, 118, 18, 22402, 800, 3726, 3726, 31, 22, 79, 28749, 21, 13, 38, 18, 22402, 8214, 7004, 20, 12443, 118, 18, 22402, 17, 57, 8208, 21, 1448, 13, 8, 14, 1792, 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...
Search Ranking/Relevance Algorithms === When developing a database of articles in a Knowledge Base (for example) - what are the best ways to sort and display the most relevant answers to a users' question? Would you use additional data such as keyword weighting based on whether previous users found the article of help, or do you find a simple keyword matching algorithm to be sufficient?
0
[ 2, 2122, 4992, 118, 99, 9109, 2416, 15935, 800, 3726, 3726, 76, 3561, 21, 6018, 16, 3376, 19, 21, 1918, 1000, 13, 5, 1106, 823, 6, 13, 8, 98, 50, 14, 246, 2847, 20, 2058, 17, 3042, 14, 127, 7480, 6709, 20, 21, 3878, 22, 1301, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
A guide to moving from Visual Studio to Eclipse. === Is there guide out there that will help me, A .Net developer whose been using Visual studio for some time, get to grips with Eclipse? Even just a quick guide to eclipse. Has anyone else made the transition, and if so how did you cope. Any Tips?
0
[ 2, 21, 3378, 20, 1219, 37, 3458, 1120, 20, 11652, 9, 800, 3726, 3726, 25, 80, 3378, 70, 80, 30, 129, 448, 55, 15, 21, 13, 9, 2328, 10058, 1196, 74, 568, 3458, 1120, 26, 109, 85, 15, 164, 20, 4466, 18, 29, 11652, 60, 166, 114...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Boolean 'NOT' in T-SQL not working on 'bit' datatype? === Trying to perform a single boolean NOT operation, it appears that under MS SQL Server 2005, the following block does not work DECLARE @MyBoolean bit; SET @MyBoolean = 0; SET @MyBoolean = NOT @MyBoolean; SELECT @MyBoolean; Instead, I am getting more successful with DECLARE @MyBoolean bit; SET @MyBoolean = 0; SET @MyBoolean = 1 - @MyBoolean; SELECT @MyBoolean; Yet, this looks a bit a twisted way to express something as simple as a negation. Am I missing something?
0
[ 2, 9827, 413, 210, 13, 22, 1270, 22, 19, 13, 38, 8, 18, 22402, 52, 638, 27, 13, 22, 3326, 22, 1054, 4474, 60, 800, 3726, 3726, 749, 20, 2985, 21, 345, 9827, 413, 210, 52, 1453, 15, 32, 1780, 30, 131, 4235, 4444, 255, 8128, 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...
Does a software architect have a role in agile, esp. Scrum? === I'm reading the book "The Software Architect's Profession" by Marc and Laura Sewell ([Amazon link][1]) and it got me wondering whether a software architect is a part of the old non-agile BDUF approach. Is there a place for software architects in an agile approach? I'm especially interested in Scrum. BTW I currently am the Unix Application Architect for a major company. cheers, Rob [1]: http://www.amazon.com/Software-Architects-Profession-Introduction-Architecture/dp/0130607967/ref=sr_11_1?ie=UTF8&qid=1223371916&sr=11-1
0
[ 2, 630, 21, 2306, 3338, 57, 21, 597, 19, 27475, 15, 9867, 9, 26562, 60, 800, 3726, 3726, 31, 22, 79, 1876, 14, 360, 13, 7, 124, 2306, 3338, 22, 18, 7762, 7, 34, 5208, 17, 5837, 1353, 854, 13, 5, 2558, 3812, 6931, 3508, 500, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
In QT, how do i set the background color of a widget like combobox or double spin box === I am trying to set the background color for a double spin box, and I am not sure what function i should use. I saw some function called SetBackgroundRole which accepts a Qt::ColorRole, but i am not sure how to use this one as well. Kindly let me know, whats the simple way to change the background color of a combobox or doublespinbox.
0
[ 2, 19, 2593, 38, 15, 184, 107, 31, 309, 14, 2395, 1665, 16, 21, 4807, 43, 3060, 101, 22621, 5309, 54, 1494, 3310, 1649, 800, 3726, 3726, 31, 589, 749, 20, 309, 14, 2395, 1665, 26, 21, 1494, 3310, 1649, 15, 17, 31, 589, 52, 562...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 a good PDF report generator tool for python? === What is a good tool for PDF report generation in Python? I've checked out ReportLab, but it seems to be awfully low-level for what I want to do. My current hunch is to call TeX on the command-line and let it produce the PDF, but if there is something that is easier to work with (and looks professional - We'll send this to customers) I'd very much like a prod in the right direction.
0
[ 2, 98, 25, 21, 254, 13, 11124, 1330, 15286, 5607, 26, 20059, 60, 800, 3726, 3726, 98, 25, 21, 254, 5607, 26, 13, 11124, 1330, 2782, 19, 20059, 60, 31, 22, 195, 6505, 70, 1330, 9086, 15, 47, 32, 2206, 20, 44, 9021, 102, 708, 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...
NT Kernel Programming === I would like to know where to get started, or how possible it is to hook into, or patch the windows kernel(XP and up). I am specifically interested in software like McAfee Entercept, or certain antivirus scanners that patch the kernel. I would like to know how feasable it is for a startup to create software that added in functionality to the kernel(I am aware of KPP, and that it can possibly be bypassed), and any remifications of doing this. I was unable to find a simple description, and only have limited experience with Win32. Any help is much appreciated, J
0
[ 2, 13, 2877, 17007, 3143, 800, 3726, 3726, 31, 83, 101, 20, 143, 113, 20, 164, 373, 15, 54, 184, 938, 32, 25, 20, 5559, 77, 15, 54, 7331, 14, 1936, 17007, 5, 396, 306, 17, 71, 6, 9, 31, 589, 3524, 3158, 19, 2306, 101, 18531,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 .Net do clever connection management like PHP? === During an ASP.NET page load I'm opening and closing multiple System.Data.SqlClient.SqlConnections inside multiple controls contained in the page. I thought it would be a good idea instead to create a "pool" of connections and when opening a connection check to see if the connection string matches that of an open connection in the pool, and return that connection. I was expecting to see a difference in the page load times, but I haven't seen any change. I know that with PHP if you attempt to open a new connection with a connection string that has already been used in that page request it won't attempt to open a new connection and will return the existing open connection instead. Is this true with .NET?
0
[ 2, 630, 13, 9, 2328, 107, 11994, 2760, 1097, 101, 13, 26120, 60, 800, 3726, 3726, 112, 40, 28, 306, 9, 2328, 2478, 6305, 31, 22, 79, 1214, 17, 4239, 1886, 329, 9, 18768, 9, 18, 22402, 150, 18513, 38, 9, 18, 22402, 25996, 5757, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cheap / free "Look and Feel" frameworks for web applications === Usually I'm fortunate enough to work with really good designers. They take care of the look and feel for all of the web applications / sites I build. In the past when I've done cheap or free work for people for projects I'm interested in, I've used a template from templatemonster or similar. I want to get involved with quite a large internal application to support a friends business, the usual brochure-ware templates that are available won't be suitable because this application is all about data access. Obviously usability is paramount and I don't have the skills to produce a nice usable interface, neither do we have the money to pay for custom work. Are there any projects which look to provide usable web templates more designed for large forms, pages of data grids, charts etc. I don't need something that is graphically cutting edge, I just need consistent, usable, easy to apply templates. I've looked at Ext.js which has themed components, but, even with a bunch of pretty house bricks, I can't design a good looking house :) Thanks Andrew
0
[ 2, 9148, 13, 118, 551, 13, 7, 5810, 17, 583, 7, 6596, 18, 26, 2741, 3767, 800, 3726, 3726, 951, 31, 22, 79, 22446, 511, 20, 170, 29, 510, 254, 12760, 9, 59, 247, 781, 16, 14, 361, 17, 583, 26, 65, 16, 14, 2741, 3767, 13, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
When developing a website with visual studio, how do I improve the build time? === I have a lot of classes in the App_Code directory could this be a problem? Would it build faster if it was in a separate library? Any other tips?
0
[ 2, 76, 3561, 21, 2271, 29, 3458, 1120, 15, 184, 107, 31, 3545, 14, 1895, 85, 60, 800, 3726, 3726, 31, 57, 21, 865, 16, 2684, 19, 14, 4865, 1, 9375, 16755, 110, 48, 44, 21, 1448, 60, 83, 32, 1895, 4233, 100, 32, 23, 19, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
(C#) Get random data using Generics === One of our unit tests is to populate properties within our business objects with random data. These properties are of different intrinsic types and therefore we would like to use the power of generics to return data of the type you pass in. Something along the lines of: public static T GetData<T>() How would you go about approaching this? Would a low level interface work? (IConvertible)
0
[ 2, 13, 5, 150, 5910, 6, 164, 5477, 1054, 568, 12733, 18, 800, 3726, 3726, 53, 16, 318, 1237, 4894, 25, 20, 1675, 12383, 3704, 363, 318, 508, 3916, 29, 5477, 1054, 9, 158, 3704, 50, 16, 421, 22892, 2551, 17, 1793, 95, 83, 101, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
what's the meaning of the ICloneable interface ? === In the 'DBUtility' project of Petshop 4.0,the abstract class SqlHelper has a method 'GetCachedParameters': public static SqlParameter[] GetCachedParameters(string cacheKey) { SqlParameter[] cachedParms = (SqlParameter[])parmCache[cacheKey]; if (cachedParms == null) return null; SqlParameter[] clonedParms = new SqlParameter[cachedParms.Length]; for (int i = 0, j = cachedParms.Length; i < j; i++) clonedParms[i] = (SqlParameter)((ICloneable)cachedParms[i]).Clone(); return clonedParms; } why not to return the 'cachedParms' directly ?
0
[ 2, 98, 22, 18, 14, 1813, 16, 14, 13, 596, 16285, 579, 6573, 13, 60, 800, 3726, 3726, 19, 14, 13, 22, 43, 811, 20901, 22, 669, 16, 3170, 18, 5347, 268, 9, 387, 15, 124, 8502, 718, 4444, 255, 14593, 106, 63, 21, 2109, 13, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to design winforms like interface in webforms === I want to webpage to look like a winform but it is actually a webform. The users should think that it is a form and not a webpage
0
[ 2, 25, 32, 938, 20, 704, 628, 4190, 18, 101, 6573, 19, 2741, 4190, 18, 800, 3726, 3726, 31, 259, 20, 2741, 6486, 20, 361, 101, 21, 628, 4190, 47, 32, 25, 1121, 21, 2741, 4190, 9, 14, 3878, 378, 277, 30, 32, 25, 21, 505, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I trap ctrl-c in a C# console app === I would like to be able to trap ctrl-c in a C# console application so that I can carry out some cleanups before exiting. What is the best way of doing this?
0
[ 2, 184, 107, 31, 5585, 13, 4812, 6362, 8, 150, 19, 21, 272, 5910, 8650, 4865, 800, 3726, 3726, 31, 83, 101, 20, 44, 777, 20, 5585, 13, 4812, 6362, 8, 150, 19, 21, 272, 5910, 8650, 3010, 86, 30, 31, 92, 2670, 70, 109, 26862, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Firefox cuts files, whose name contains spaces, in a Struts application === I am using the next class (simplified for the sake of understandability) to download images in a struts web application. It is working fine in every browser but firefox, which cuts names containing spaces. That it is to say: **file with spaces.pdf** gets downloaded in firefox as: **file** while in chrome, IE7 IE6 is downloaded as **file with spaces.pdf**. public class Download extends Action { private static final int BUFFER_SIZE = 4096; public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { String filename = "file with spaces.pdf"; File file = ... // variable containing the file; response.setStatus(HttpServletResponse.SC_OK); response.setContentType(getMimeType(request, file)); response.setHeader("Content-Type", getMimeType(request, file)); response.setHeader("Content-Disposition","attachment; filename="+ filename); InputStream is = new FileInputStream(file); sendFile(is, response); return null; } protected String getMimeType(HttpServletRequest request, File file) { ServletContext application = super.servlet.getServletContext(); return application.getMimeType(file.getName()); } protected void sendFile(InputStream is, HttpServletResponse response) throws IOException { BufferedInputStream in = null; try { int count; byte[] buffer = new byte[BUFFER_SIZE]; in = new BufferedInputStream(is); ServletOutputStream out = response.getOutputStream(); while(-1 != (count = in.read(buffer))) out.write(buffer, 0, count); out.flush(); } catch (IOException ioe) { System.err.println("IOException in Download::sendFile"); ioe.printStackTrace(); } finally { if (in != null) { try { in.close(); } catch (IOException ioe) { ioe.printStackTrace(); } } } } } Does anyone know about what is going on here? Note i am using firefox 3.0.3 under Windows Vista.
0
[ 2, 535, 18219, 7960, 6488, 15, 1196, 204, 1588, 7644, 15, 19, 21, 18316, 18, 3010, 800, 3726, 3726, 31, 589, 568, 14, 328, 718, 13, 5, 11268, 26, 14, 8132, 16, 1369, 4091, 6, 20, 7121, 3502, 19, 21, 18316, 18, 2741, 3010, 9, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 copy the data of an element with jquery? === I need to copy data values from one element to another, but jQuery's clone() method doesn't clone the data. And I can't iterate over the data either: element.data().each because data() is a function and not a jQuery object. It seems I have to keep a separate list of attribute names and reference those but that seems too hacky. So how can I do either of these:<br> a) Iterate over data items<br> OR<br> b) clone() an element with its data.
0
[ 2, 184, 107, 31, 4344, 14, 1054, 16, 40, 4520, 29, 487, 8190, 93, 60, 800, 3726, 3726, 31, 376, 20, 4344, 1054, 4070, 37, 53, 4520, 20, 226, 15, 47, 487, 8190, 93, 22, 18, 13871, 5, 6, 2109, 1437, 22, 38, 13871, 14, 1054, 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...
Counting items of each priority level in an IBM MQ Series Queue === I have an IBM MQ series queue (running on Windows) containing many items of varying priority. I currently get a total depth count using <code>mqQueue.CurrentDepth</code> but I'd like to get a count of the number of items of each priority level within the queue. Any idea how to achieve this?
0
[ 2, 11195, 3755, 16, 206, 9857, 662, 19, 40, 10233, 307, 1251, 231, 22521, 800, 3726, 3726, 31, 57, 40, 10233, 307, 1251, 231, 22521, 13, 5, 11325, 27, 1936, 6, 3503, 151, 3755, 16, 9852, 9857, 9, 31, 871, 164, 21, 600, 5204, 246...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
including servlet in jsp === is it possible to include a servlet in a jsp page? if so how?
0
[ 2, 215, 13, 10321, 1336, 19, 487, 3401, 800, 3726, 3726, 25, 32, 938, 20, 468, 21, 13, 10321, 1336, 19, 21, 487, 3401, 2478, 60, 100, 86, 184, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Looking for something similar to offsetof() for non-POD types === I'm looking for a way to obtain offsets of data members of a C++ class which is of non-POD nature. Here's why: I'd like to store data in [HDF5][1] format, which seems most suited for my kind of material (numerical simulation output), but it is perhaps a rather C-oriented library. I want to use it through the C++ interface, which would require me to declare storage types like so (following documentation from [here][2] and [here][3] (section 4.3.2.1.1)): class example { public: double member_a; int member_b; } //class example H5::CompType func_that_creates_example_CompType() { H5::CompType ct; ct.insertMember("a", HOFFSET(example, member_a), H5::PredType::NATIVE_DOUBLE); ct.insertMember("b", HOFFSET(example, member_b), H5::PredType::NATIVE_INT); return ct; } //func_that_creates_example_CompType where HOFFSET is a HDF-specific macro that uses offsetof. The problem is of course, that as soon as the example-class becomes it little bit more featureful, it is no longer of POD-type, and so using offsetof will give undefined results. The only workaround I can think of is to first export the data I want to store to a simpler struct, then pass that to HDF. That does however involve data copying, which is exactly what HDF is trying to avoid (and why they have this CompType which enables the library to reach into your objects to save their data to file). So I was hoping you'd have better ideas. Ideally I'd be looking for a portable workaround for this problem, but if short of that you could give me an idea that works on x86 and x86_64 with GCC I'd already be immensely grateful. [1]: http://www.hdfgroup.org/HDF5/whatishdf5.html [2]: http://www.hdfgroup.org/HDF5/doc1.6/cpplus_RM/classH5_1_1CompType.html#a16 [3]: http://www.hdfgroup.org/HDF5/doc1.6/UG/11_Datatypes.html
0
[ 2, 699, 26, 301, 835, 20, 17493, 1041, 5, 6, 26, 538, 8, 10670, 2551, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 161, 20, 5545, 17493, 18, 16, 1054, 443, 16, 21, 272, 20512, 718, 56, 25, 16, 538, 8, 10670, 1444, 9, 235, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What does WISC (stack) mean? === [LAMP][1] is a well-known acronym for the software/technology bundle/stack representing [Linux][2], [Apache][3], [MySQL][4], [PHP][5]. There are a few passing references on the Web that use the acronym *WISC* to speak of the *other* (supposedly Microsoft-centric) software/technology bundle/stack in contrast to LAMP. There is, however, no Wikipedia entry on WISC this time nor any relevant [results from googling][6]. Does the following seem like the right de-composition of the WISC acronym? * W = [Windows][7] * I = [Internet Information Services (IIS)][8] * S = [SQL Server][9] * C = [C#][10] If yes, is there a Web reference that coins the WISC acronym? [1]: http://en.wikipedia.org/wiki/LAMP_(software_bundle) [2]: http://en.wikipedia.org/wiki/Linux [3]: http://www.apache.org/ [4]: http://www.mysql.com/ [5]: http://www.php.net/ [6]: http://www.google.com/search?q=wisc+stack [7]: http://www.microsoft.com/windows [8]: http://www.microsoft.com/iis [9]: http://www.microsoft.com/sqlserver [10]: http://www.microsoft.com/vcsharp
0
[ 2, 98, 630, 12375, 150, 13, 5, 25325, 6, 884, 60, 800, 3726, 3726, 636, 20293, 500, 2558, 165, 500, 25, 21, 134, 8, 2929, 22488, 26, 14, 2306, 118, 29393, 10194, 118, 25325, 3793, 636, 1226, 7147, 500, 2558, 135, 500, 15, 636, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to avoid an anemic domain layer and still have rich validation and business rules === If you have a domain object, and you want to do something useful and central to that domain object's responsibility like ensure it is valid, you sometimes need to access the state of related objects in order to perform this validation. How to avoid the domain object needing to call out to a Repository or Data Access Layer? You can't always walk the collection relationships, even with lazy loading, because of performance, and you often want to execute queries in the domain object. You can dependency inject repository implementation into the domain, but not really pure and complicates testing. I've always relaxed things and allowed access out from domain to a repository using DI. I have seen no clear examples of how to have a 'pure' domain layer in a complex application which is not also anemic and has a service/application layer doing all the grunt and messing with what should be innards of the domain objects.
0
[ 2, 184, 20, 2658, 40, 40, 62, 5410, 4603, 5385, 17, 174, 57, 2042, 27999, 17, 508, 1761, 800, 3726, 3726, 100, 42, 57, 21, 4603, 3095, 15, 17, 42, 259, 20, 107, 301, 4811, 17, 521, 20, 30, 4603, 3095, 22, 18, 4024, 101, 4062, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Detailed information from QObject::connect === Is there a way to get a detailed failure information from QObjet::connect in case of its failure ? Returned boolean value doesn't give any information about reason of failure.
0
[ 2, 6036, 676, 37, 2593, 23793, 45, 45, 25996, 800, 3726, 3726, 25, 80, 21, 161, 20, 164, 21, 6036, 2990, 676, 37, 2593, 4995, 10307, 45, 45, 25996, 19, 610, 16, 82, 2990, 13, 60, 587, 9827, 413, 210, 1923, 1437, 22, 38, 590, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Accessing python egg's own metadata === I've produced a python egg using setuptools and would like to access it's metadata at runtime. I currently got working this: import pkg_resources dist = pkg_resources.get_distribution("my_project") print(dist.version) but this would probably work incorrectly if I had multiple versions of the same egg installed. And if I have both installed egg and development version, then running this code from development version would pick up version of the installed egg. So, how do I get metadata for *my* egg not some random matching egg installed on my system?
0
[ 2, 1381, 68, 20059, 6387, 22, 18, 258, 28057, 800, 3726, 3726, 31, 22, 195, 671, 21, 20059, 6387, 568, 18161, 20799, 18, 17, 83, 101, 20, 1381, 32, 22, 18, 28057, 35, 485, 891, 9, 31, 871, 330, 638, 48, 45, 9010, 351, 16901, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to set focus in wpf page reload? === I've got a WPF browser-like app with a few pages. When I switch between pages, I'd like to set the keyboard focus. When a page is loaded the first time, this works by calling Control.Focus() in the constructor. But when I switch between pages this does not work anymore - the focus is just on the first field, and ignores my attempts to change it to anything else :( The pages have the attribute KeepAlive=true - it would be ok if that would keep the focus alive, too, but just setting the focus to the first field is annoying. Is there any way to set the focus on entering a page the second time? **When, how and where should I set the focus when switching between WPF pages in a browserlike app**?
0
[ 2, 184, 20, 309, 1776, 19, 619, 7721, 2478, 27339, 60, 800, 3726, 3726, 31, 22, 195, 330, 21, 619, 7721, 16495, 8, 1403, 4865, 29, 21, 310, 4434, 9, 76, 31, 5521, 128, 4434, 15, 31, 22, 43, 101, 20, 309, 14, 8896, 1776, 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...
What is a good design for a query "layer" for Java JPA === In JPA the Entities are nice annotated Plain Old Java Objects. But I have not found a good way to interact with them and the database. In my current app, my basic design is always to have a sequence based id as primary key so I usually have to look up entities by other properties than PK. And for each Entity I have a stateless EJB of @Stateless public class MyEntApiBean implements MyEntApi { @PersistenceContext(unitName = "xxx") @Inject EntityManager entityManager; with query methods that all are some variation /** * @return A List of all MyEnts that have some property * @param someProp some property */ public List<MyEnt> getAllMyEntsFromProp(final String someProp) { try { final Query query = entityManager.createQuery("select me from MyEnt me where me.someProp = :someProp"); query.setParameter("someProp", someProp); return query.getResultList(); } catch(final NoResultException nre) { log.warn("No MyEnts found"); } return new ArrayList<MyEnt>(); } So: 1. I really hate having these methods in an EJB because they seem to belong with the entities themselves, and the EJB local interfaces annoy the crap out of me. 2. I hate the duplication that I have in each method with "try, createQuery, getResultList,catch, log, return" (mostly a consequence of no closures or "with statement" or somesuch in Java). Does anyone have a suggestion for a better way to interact with the Entities and Database that addresses one or both of my issues? I am currently thinking of doing some base methods with generics and reflection to get some generic query methods to reduce the duplication (issue 2) (I will put a prototype up for review later). Thanks, Anders
0
[ 2, 98, 25, 21, 254, 704, 26, 21, 25597, 13, 7, 15187, 7, 26, 8247, 487, 1060, 800, 3726, 3726, 19, 487, 1060, 14, 12549, 50, 2210, 40, 1270, 1669, 3748, 315, 8247, 3916, 9, 47, 31, 57, 52, 216, 21, 254, 161, 20, 10001, 29, 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...
Users not showing up in Sharepoint Audiences === We are running MOSS 2007 with profiles coming from our active directory. One feature we use is "Audiences" which get compiled based on specific AD groups. We have problems with very few of the accounts where they do not get included in the audience. We have for example AD group of "Procurement" where 15 out of 16 users get included in the audience that uses membership in the "Procurement" group as its criteria. It seems to be something specific to that account, but I can't see anything about the account that is distinct from any other. The AD accesss is being done by an account with full rights to read and write to AD. Any ideas on what could be the cause? I'm not sure where even to look as the audience compliation doesn't throw any errors.
0
[ 2, 3878, 52, 3187, 71, 19, 1891, 3132, 9992, 800, 3726, 3726, 95, 50, 946, 8188, 624, 29, 5296, 18, 880, 37, 318, 1348, 16755, 9, 53, 1580, 95, 275, 25, 13, 7, 7150, 49, 2940, 18, 7, 56, 164, 9316, 432, 27, 1903, 21, 43, 117...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Implement Ocean Surface Effect Using OpenGL ES 1.1? === I'm working on an iPhone game that takes place on the ocean surface. Can someone recommend some sample code or tutorials for implementing waves or ripples in OpenGL? iPhone supports OpenGL ES 1.1, so there is no support for shaders or other fancy effects. I don't need anything too fancy. I don't need reflections, for example. I don't want to overtax the device. I just need something that sorta looks like an ocean.
0
[ 2, 184, 20, 8713, 2144, 1490, 1590, 568, 368, 8430, 13, 160, 137, 9, 165, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 40, 21024, 250, 30, 1384, 209, 27, 14, 2144, 1490, 9, 92, 737, 12360, 109, 5717, 1797, 54, 29724, 18, 26, 1733...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 define multiple elements in XML Schema with the same name and different attribute value allowed? === I would like to create XML Schema for this chunk of xml: <a> <day atrib="monday" /> <day atrib="tuesday" /> <day atrib="wednesday" /> </a> I have tried to use this: <xs:complexType name="a"> <xs:sequence> <xs:element name="day" minOccurs="1" maxOccurs="1"> <xs:complexType> <xs:attribute name="name" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="monday" /> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> <xs:element name="day" minOccurs="1" maxOccurs="1"> <xs:complexType> <xs:attribute name="name" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="tuesday" /> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> but XML Schema validator in eclipse says error "Multiple elements with name 'day', with different types, appear in the model group.". Is there any other way?
0
[ 2, 184, 20, 9267, 1886, 2065, 19, 23504, 23874, 29, 14, 205, 204, 17, 421, 35, 14755, 1923, 1159, 60, 800, 3726, 3726, 31, 83, 101, 20, 1600, 23504, 23874, 26, 48, 15009, 16, 23504, 45, 13, 1, 58, 1, 13, 1, 1185, 35, 17980, 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...
Book recommendations: C for PHP programmers === I've been developing with PHP for a couple of years now, and have a strong grounding in it. But I'd like to learn more about programming languages in general, and want to be introduced to more low-level stuff. I've decided to learn C, and wanted to get your book recommendations. PHP has been pretty simple for me so far (including the OO stuff, mostly), and I think the reason is that I've always been able to put it to practical use right away, and to be able to see almost right away how something could come in handy. If there's a C book that can present similar application I think that would work best for me. Perhaps I'll take this newfound knowledge to write PHP extensions where I can find performance improvements to be had in future projects.
0
[ 2, 360, 12121, 45, 272, 26, 13, 26120, 17968, 18, 800, 3726, 3726, 31, 22, 195, 74, 3561, 29, 13, 26120, 26, 21, 1335, 16, 122, 130, 15, 17, 57, 21, 966, 666, 68, 19, 32, 9, 47, 31, 22, 43, 101, 20, 2484, 91, 88, 3143, 255...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Webdav windows server 2008 not allowing doc files to save === I have setup web dav on windows server 2008. It seems to work fine but will not allow me to save a word document to the dir but it will allow a text file to be saved. Any ideas? Thanks, Alex
0
[ 2, 2741, 43, 5214, 1936, 8128, 570, 52, 2719, 9765, 6488, 20, 2079, 800, 3726, 3726, 31, 57, 18161, 2741, 14440, 27, 1936, 8128, 570, 9, 32, 2206, 20, 170, 1123, 47, 129, 52, 1655, 55, 20, 2079, 21, 833, 4492, 20, 14, 13, 9035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 way to convert an int or null to boolean value in an SQL query? === What is the best way to convert an int or null to boolean value in an SQL query, such that: - Any non-null value is **TRUE** in the results - Any null value is **FALSE** in the results
0
[ 2, 98, 25, 14, 246, 161, 20, 8406, 40, 19, 38, 54, 16203, 20, 9827, 413, 210, 1923, 19, 40, 4444, 255, 25597, 60, 800, 3726, 3726, 98, 25, 14, 246, 161, 20, 8406, 40, 19, 38, 54, 16203, 20, 9827, 413, 210, 1923, 19, 40, 4444...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Compiling in c++ with mysql, pthreads and gtk === I am compiling a project that is supposed to work both in Linux and Windows. I am entering now in this project since the previous programmer left the company. I think that i set up everything rigth, but i keep getting two kind of weird erros, one refereded to the redefinition of a function in both math.h, from the standard library, and my_global.h from mysql library. /****************************************************************************************/ In file included from C:/Archivos de programa/MySQL/MySQL Server 5.0/include/my_global.h:73, from src/gestiondb/gestordb.h:14, from src/gestiondb/gestordb.cpp:1: C:/Archivos de programa/MySQL/MySQL Server 5.0/include/config-win.h: In function `double rint(double)': C:/Archivos de programa/MySQL/MySQL Server 5.0/include/config-win.h:228: error: redefinition of `double rint(double)' C:/Dev-Cpp/include/math.h:601: error: `double rint(double)' previously defined here /***************************************************************************************/ The other one is that it said in every point I use it that error: `BOOL' does not name a type which is even more extrange due to the fact that bool belongs to the standard library... It's funny because i am not having any troubles in linux. I have tried two enviroments, Eclipse CDT with mingw and Dev-Cpp and in both of them i am getting the same. Any clues??
0
[ 2, 24378, 19, 272, 20512, 29, 51, 18, 22402, 15, 351, 96, 10647, 18, 17, 9509, 197, 800, 3726, 3726, 31, 589, 24378, 21, 669, 30, 25, 2293, 20, 170, 156, 19, 13024, 17, 1936, 9, 31, 589, 4604, 130, 19, 48, 669, 179, 14, 1158, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASPNET 2.0 Membership database === I have an application database and an aspnetdb database (generated from the ASP.Net 2.0 framework). I have restored both database from production onto my development environment but I am unable to log on with any of the users credentials that work on production. So my question is is there anything that ties the aspnetdb database generated by ASP>NET 2.0 Framework to a specific machine? Many Thanks
0
[ 2, 28, 306, 2328, 172, 9, 387, 4363, 6018, 800, 3726, 3726, 31, 57, 40, 3010, 6018, 17, 40, 28, 306, 2328, 9007, 6018, 13, 5, 25314, 37, 14, 28, 306, 9, 2328, 172, 9, 387, 6596, 6, 9, 31, 57, 4617, 156, 6018, 37, 637, 1204, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Displaying path/version information for a loaded COM object? === I've got some code that uses the Component Categories manager to load all of the classes that implement a particular category. Is there an easy way to get a description, path and version information from the loaded DLL or EXE?
0
[ 2, 17418, 2013, 118, 10898, 676, 26, 21, 8572, 13, 960, 3095, 60, 800, 3726, 3726, 31, 22, 195, 330, 109, 1797, 30, 2027, 14, 5912, 6422, 1382, 20, 6305, 65, 16, 14, 2684, 30, 8713, 21, 1498, 3230, 9, 25, 80, 40, 2010, 161, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Multidimensional Repeating Data Control === Excuse my title if it's confusing, but I don't know how else to describe this, except in the long explanation below: I would like to create a multidimensional, templated, data bound, repeating ASP.NET control, with paging and sorting. I.e. You specify how many columns and rows per page, so items are displayed across and down, e.g. [dataItem1][dataItem2] [dataItem3][dataItem4] The Repeater and DataList controls don't offer paging, and the DataGrid, with paging, is restricted to one item per row. I would appreciate suggestions on how to go about this.
0
[ 2, 1889, 7865, 17389, 1054, 569, 800, 3726, 3726, 6658, 51, 581, 100, 32, 22, 18, 18084, 15, 47, 31, 221, 22, 38, 143, 184, 962, 20, 4996, 48, 15, 1613, 19, 14, 175, 5764, 1021, 45, 31, 83, 101, 20, 1600, 21, 1889, 7865, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to get DateTime value from timestamp type column. MS SQL 2005 === I need a select from table which does not have column that tells when row was inserted, only timestamp column (values like: 0x0000000000530278). Some data was imported to the table yesterday and now I need to find out what exactly was imported :( Is there a way to do it using only timestamp info? [Here][1] I found that: - Timestamp is a 8 bytes sequential Hex number, that has nothing to do with neither the date nor the time. - To get the current value of timestamp, use: @@DBTS. perhaps there is a way to find what was timestamp value around specific time? That would help to form a select. Or maybe there is a well known solution? [1]: http://www.sqlhacks.com/index.php/Dates/Timestamp
0
[ 2, 25, 80, 21, 161, 20, 164, 1231, 891, 1923, 37, 436, 38, 10158, 1001, 4698, 9, 4235, 4444, 255, 812, 800, 3726, 3726, 31, 376, 21, 5407, 37, 859, 56, 630, 52, 57, 4698, 30, 2609, 76, 3131, 23, 14215, 15, 104, 436, 38, 10158,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 test configuration to make email go to a local folder during testing === Have you enver wanted to test sending email from your applicaiton byut didnt want to flood your own or someone elses inbox? there is a way to tell IIs/ASP.NET how to deliver email to a local folder for inspection Alter web.config like this so that when you send email it will instead be created as a .EML file in c:\LocalDir <configuration> <system.net> <mailSettings> <smtp deliveryMethod="SpecifiedPickupDirectory"> <specifiedPickupDirectory pickupDirectoryLocation="c:\LocalDir"/> </smtp> </mailSettings> </system.net> </configuration>
0
[ 2, 28, 306, 9, 2328, 1289, 8091, 20, 233, 8517, 162, 20, 21, 375, 19294, 112, 4431, 800, 3726, 3726, 57, 42, 1957, 2304, 417, 20, 1289, 4907, 8517, 37, 154, 4865, 16904, 49, 444, 34, 1982, 1182, 259, 20, 5506, 154, 258, 54, 737,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Downloading Documents across multiple servers === This a bit of strange one.... We have an internal web app that runs on server (A) and a document repository that runs on server (B). I have simple link on a page and I want to enable the user to download a document(From IIS Server (A)). However this document does not exist on Server (A) until the user clicks the button(because there is 40+ documents to display cannot load them all when the page loads) When the user clicks the link(at which point I would like then to be prompted to download) The document is copied to server (A) and then redirected to a page where the browser prompts them to download. I believe I have set up the content header correctly and it works in FireFox. IE(7) just pops up a window and then the window disappears, If I turn down the security settings it works OK but that is not an option. Any Ideas how to solve this. I cannot point directly to the document on Server(B)
0
[ 2, 7121, 68, 4374, 464, 1886, 17595, 800, 3726, 3726, 48, 21, 1142, 16, 2578, 53, 9, 9, 9, 9, 95, 57, 40, 3117, 2741, 4865, 30, 1461, 27, 8128, 13, 5, 58, 6, 17, 21, 4492, 24869, 30, 1461, 27, 8128, 13, 5, 220, 6, 9, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WSGI Middleware recommendations === I have heard that there is lots of interesting and useful WSGI middleware around. However, I am not sure which ones (apart from the ones that are part of pylons) are useful and stable. What is your favourite WSGI middleware?
0
[ 2, 619, 18, 2234, 772, 5011, 12121, 800, 3726, 3726, 31, 57, 752, 30, 80, 25, 7503, 16, 4883, 17, 4811, 619, 18, 2234, 772, 5011, 140, 9, 207, 15, 31, 589, 52, 562, 56, 53, 18, 13, 5, 58, 3091, 37, 14, 53, 18, 30, 50, 141,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Simulating <%#Bind(...) %> === ASP.Net: In code-behind I can simulate `<%# Eval("Property")%>` with a call to `DataBinder.Eval(myObject,"Property");` How do I simulate a call to `<%# Bind("Property")%>` ? many thanks
0
[ 2, 4861, 10038, 13, 1, 11881, 5910, 4772, 43, 5, 9, 9, 9, 6, 13, 11881, 1, 800, 3726, 3726, 28, 306, 9, 2328, 45, 19, 1797, 8, 24878, 31, 92, 24969, 13, 1, 11881, 5910, 13, 62, 3377, 5, 7, 10890, 106, 1084, 7, 6, 11881, 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...
Problem selecting HTML elements with xpath in Internet Explorer === I'm trying to select a specific HTML element in a document, for firefox i just use: xpathobj = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null); which works fine. However when i try the IE equivilent: xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async=false; xmlDoc.load(document); xmlDoc.setProperty("SelectionLanguage", "XPath"); xpathobj = xmlDoc.selectNodes(xpath); I get no object returned. So my question is there an easy way to use xpath to get to the element i want in IE? The xpath i'm using looks like "/HTML/BODY/DIV[9]/DIV[2]"
0
[ 2, 1448, 20764, 13, 15895, 2065, 29, 993, 8353, 19, 2620, 8520, 800, 3726, 3726, 31, 22, 79, 749, 20, 5407, 21, 1903, 13, 15895, 4520, 19, 21, 4492, 15, 26, 535, 18219, 31, 114, 275, 45, 993, 8353, 111, 11741, 800, 4492, 9, 1559...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 embed a Google map into a Flash website? === I would like to include a Google map in a Flash site I am building. I would like to retain as much of the zoom, print, copy/send url, direction functionality as is practically possible. Please could somebody advise the best way to do this? Thanks.
0
[ 2, 184, 107, 31, 11911, 69, 21, 8144, 2942, 77, 21, 4433, 2271, 60, 800, 3726, 3726, 31, 83, 101, 20, 468, 21, 8144, 2942, 19, 21, 4433, 689, 31, 589, 353, 9, 31, 83, 101, 20, 8201, 28, 212, 16, 14, 19469, 15, 4793, 15, 4344...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 anyone suggest me from where i can get the materials to begin learning with CSS === I will be designing some web forms shortly..my bozz told me to use CSS. Never used before,,please guide me ..how can i start.
0
[ 2, 92, 1276, 5601, 55, 37, 113, 31, 92, 164, 14, 2895, 20, 2348, 2477, 29, 272, 18, 18, 800, 3726, 3726, 31, 129, 44, 15026, 109, 2741, 1997, 2100, 9, 9, 915, 1607, 5092, 470, 55, 20, 275, 272, 18, 18, 9, 243, 147, 115, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...