unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
In an Oracle cluster will sysdate always return a consistent answer? === In an Oracle cluster (more than one machine co-operating to serve one database) will the "sysdate" function always return a consistent answer? Even if the servers' Operating System clock reports inconsistent values?
0
[ 2, 19, 40, 15759, 7460, 129, 10315, 18, 8209, 550, 788, 21, 8224, 1623, 60, 800, 3726, 3726, 19, 40, 15759, 7460, 13, 5, 1995, 119, 53, 1940, 326, 8, 9477, 1880, 20, 1884, 53, 6018, 6, 129, 14, 13, 7, 4980, 18, 8209, 7, 1990, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 you manage your daily tasks as a programmer? === What you use to manage your daily tasks as a programmer? 1. I use Outlook built in Tasks Manager. 2. I track them by emails. 3. Use third party software for task management. 4. I remember my all tasks. 5. Or Others?
0
[ 2, 184, 42, 4705, 154, 1954, 8674, 28, 21, 17968, 60, 800, 3726, 3726, 98, 42, 275, 20, 4705, 154, 1954, 8674, 28, 21, 17968, 60, 137, 9, 31, 275, 19837, 392, 19, 8674, 1382, 9, 172, 9, 31, 792, 105, 34, 8517, 18, 9, 203, 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...
Position in Vector using STL === im trying to locate the position of the maximum value in a vector, using STL find algorithm (and the min_element algorithm), but instead of returning the postion, its just giving me the value. E.g, if the minimum value is it, is position will be returned as 8 etc. What am I doing wrong here? int value=*min_element(v2.begin(),v2.end()); cout<<"min value at position "<< *find(v2.begin(),v2.end(),value);
0
[ 2, 649, 19, 7497, 568, 354, 255, 800, 3726, 3726, 797, 749, 20, 12717, 14, 649, 16, 14, 2979, 1923, 19, 21, 7497, 15, 568, 354, 255, 477, 9083, 13, 5, 290, 14, 4232, 1, 27567, 9083, 6, 15, 47, 700, 16, 2485, 14, 678, 872, 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...
Static library - visual studio 2005/6.0 compatibility === In the past we experienced some problems using a DLL library created with Visual Studio 2005 in our Visual Studio 6.0 application (VS2005 DLL was C++ unmanaged, of course). In your opinion can we fall in the same kind of problem if the library is static (*.lib) and not dynamic?
0
[ 2, 12038, 1248, 13, 8, 3458, 1120, 812, 118, 379, 9, 387, 13, 21618, 800, 3726, 3726, 19, 14, 640, 95, 3882, 109, 1716, 568, 21, 13, 43, 211, 1248, 679, 29, 3458, 1120, 812, 19, 318, 3458, 1120, 400, 9, 387, 3010, 13, 5, 710, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is more efficient for parsing Xml, XPath with XmlDocuments, XSLT or Linq? === I have parsed Xml using the both of these two methods - Parsing the XmlDocument using the object model and XPath queries. - XSL/T But I have never used... - The Linq Xml object model that was new to .Net 3.5 Can anyone tell me the comparative effeciantly between the three alternatives? I realise that the particular usage would be a factor, but I just want a rought idea. For example, is the Linq option massivly slower than the others?
0
[ 2, 98, 25, 91, 8243, 26, 2017, 18, 68, 23504, 15, 993, 8353, 29, 23504, 28132, 18, 15, 993, 18, 255, 38, 54, 6294, 1251, 60, 800, 3726, 3726, 31, 57, 2017, 18, 69, 23504, 568, 14, 156, 16, 158, 81, 3195, 13, 8, 2017, 18, 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...
ASP.NET- Instantiate a Web User Control in App_Code class === Files: Website\Controls\map.ascx Website\App_Code\map.cs I'd like to create a strongly typed instance of map.ascx in map.cs Normally, in an aspx, you would add a <%Register... tag to be able to instantiate in codebehind. Is this possible in an app_code class? I'm using .NET 3.5/Visual Studio 2008 Thanks!
0
[ 2, 28, 306, 9, 2328, 8, 6322, 15882, 21, 2741, 4155, 569, 19, 4865, 1, 9375, 718, 800, 3726, 3726, 6488, 45, 2271, 1, 12898, 18, 1, 15022, 9, 472, 150, 396, 2271, 1, 7753, 1, 9375, 1, 15022, 9, 6824, 31, 22, 43, 101, 20, 160...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP.NET MVC in a virtual directory === I have the following in my Global.asax.cs routes.MapRoute( "Arrival", "{partnerID}", new { controller = "Search", action = "Index", partnerID="1000" } ); routes.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" } ); My SearchController looks like this public class SearchController : Controller { // Display search results public ActionResult Index(int partnerID) { ViewData["partnerID"] = partnerID; return View(); } } and Index.aspx simply shows ViewData["partnerID"] at the moment. I have a virtual directory set up in IIS on Windows XP called Test. If I point my browser at http://localhost/Test/ then I get 1000 displayed as expected. However, if I try http://localhost/Test/1000 I get a page not found error. Any ideas? Are there any special considerations for running MVC in a virtual directory? [1]: http://localhost/Test/
0
[ 2, 28, 306, 9, 2328, 307, 8990, 19, 21, 6599, 16755, 800, 3726, 3726, 31, 57, 14, 249, 19, 51, 2062, 9, 8588, 396, 9, 6824, 5050, 9, 15022, 20179, 5, 13, 7, 512, 25109, 7, 15, 13, 7, 1, 3091, 1031, 1340, 1, 7, 15, 78, 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...
Build C project automaticly === I'm working on a free software (bsd license) project with others. We're searching for a system that check out our source code (svn) and build it also as test it (unit tests with Check / other tools). It should have a webbased interface and generate reports. I hope we don't have to write such a system from null by ourselves...
0
[ 2, 1895, 272, 669, 6715, 102, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 551, 2306, 13, 5, 4562, 43, 3962, 6, 669, 29, 654, 9, 95, 22, 99, 5792, 26, 21, 329, 30, 2631, 70, 318, 1267, 1797, 13, 5, 18, 16578, 6, 17, 1895, 32,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Protect Excel Worksheet for format and size and allow only for entry === I am creating an XLS worksheet that would be used to collect data from the users. I have restricted the user input using validations. In order to easily be able to print the worksheet i have set the lenghts of the columns. Have made the relevant columns wrap. However i would like to protect the worksheet such that User is not allowed to 1. Change the format 2. Change the Validations 3. Change the column size User should be allowed to 1. Enter input values 2. Select the value (from drop down whereever applicable) The protect sheet always restricts user inputs.
0
[ 2, 2196, 20700, 170, 17627, 26, 2595, 17, 1072, 17, 1655, 104, 26, 2792, 800, 3726, 3726, 31, 589, 2936, 40, 993, 7532, 170, 17627, 30, 83, 44, 147, 20, 5543, 1054, 37, 14, 3878, 9, 31, 57, 7079, 14, 4155, 6367, 568, 27999, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get a reference to a table row with a specific value in jQuery === I'm trying to highlight just one specific row in a table using jQuery. The row will have an 'active' status. I have seen plenty of examples online which show how to do zebra striping for alternate row styling. Does anyone know of a jQuery expression which will get a <tr> element based on the value of a <td> element in a specific column?
0
[ 2, 184, 20, 164, 21, 2801, 20, 21, 859, 3131, 29, 21, 1903, 1923, 19, 487, 8190, 93, 800, 3726, 3726, 31, 22, 79, 749, 20, 14373, 114, 53, 1903, 3131, 19, 21, 859, 568, 487, 8190, 93, 9, 14, 3131, 129, 57, 40, 13, 22, 7889, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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# Google Earth Error === A friend of mine has embedded a google earth plugin into a C# user control. All works fine but when you close the window we recieve and "Unspecified Error" with the option to continue running the scripts or not. From our tracking it down it appears this is being cause by a script that google is dropping onto the page. Any ideas?
0
[ 2, 272, 5910, 8144, 1073, 7019, 800, 3726, 3726, 21, 860, 16, 1114, 63, 12138, 21, 8144, 1073, 10922, 108, 77, 21, 272, 5910, 4155, 569, 9, 65, 693, 1123, 47, 76, 42, 543, 14, 1463, 95, 302, 10486, 195, 17, 13, 7, 1020, 18, 12...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Hibernate: comparing current & previous record === I want to compare the current value of an in-memory Hibernate entity with the value in the database: MyEntity newEntity = (MyEntity)HibernateSessionFactory.getSession().load(MyEntity.class, id); newEntity.setProperty("new value"); MyEntity oldEntity = (MyEntity)HibernateSessionFactory.getSession().load(MyEntity.class, id); // CODEBLOCK#1 evaluate differences between newEntity and oldEntity HibernateSessionFactory.getSession().update(newEntity); In **CODEBLOCK#1** I get that <code>newEntity.getProperty()="new value"</code> AND <code>oldEntity.getProperty()="new value"</code> (while I expected <code>oldEntity.getProperty()="old value"</code>, of course). In fact the two objects are exactly the same in memory. I messed around with <code>HibernateSessionFactory.getSession().evict(newEntity)</code> and attempted to set <code>oldEntity=null</code> to get rid of it (I need it only for the comparison): MyEntity newEntity = (MyEntity)HibernateSessionFactory.getSession().load(MyEntity.class, id); newEntity.setProperty("new value"); HibernateSessionFactory.getSession().evict(newEntity); MyEntity oldEntity = (MyEntity)HibernateSessionFactory.getSession().load(MyEntity.class, id); // CODEBLOCK#1 evaluate differences between newEntity and oldEntity oldEntity = null; HibernateSessionFactory.getSession().update(newEntity); and now the two entities are distinct, but of course I get the dreaded <code>org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session</code>. Any idea?
0
[ 2, 4148, 2102, 8820, 45, 15047, 866, 279, 1158, 571, 800, 3726, 3726, 31, 259, 20, 11590, 14, 866, 1923, 16, 40, 19, 8, 790, 5171, 93, 4148, 2102, 8820, 9252, 29, 14, 1923, 19, 14, 6018, 45, 51, 2291, 856, 78, 2291, 856, 800, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 top clause in Access sub report === I'm making a report in Access 2003 that contains a sub report of related records. Within the sub report, I want the top two records only. When I add "TOP 2" to the sub report's query, it seems to select the top two records before it filters on the link fields. How do I get the top two records of only those records that apply to the corresponding link field? Thanks.
0
[ 2, 568, 371, 9040, 19, 1381, 972, 1330, 800, 3726, 3726, 31, 22, 79, 544, 21, 1330, 19, 1381, 973, 30, 1588, 21, 972, 1330, 16, 1597, 742, 9, 363, 14, 972, 1330, 15, 31, 259, 14, 371, 81, 742, 104, 9, 76, 31, 3547, 13, 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...
Removing Cache Busing in Rails Production === When i deploy a rails application in production mode, it appends a date-time string as a query param to the end of all the static asset urls. This is to prevent browsers using old-out of date cahed copies of the assets after I redeploy the application. Is there a way to make rails use the old time stamps for the assets that have not changed (and **only** the ones that have not changed) since the last deployment. I want to do this to prevent users having to redownload those assets that have not changed.
0
[ 2, 9096, 16522, 1683, 68, 19, 2240, 18, 637, 800, 3726, 3726, 76, 31, 17617, 21, 2240, 18, 3010, 19, 637, 3740, 15, 32, 4865, 2451, 18, 21, 1231, 8, 891, 3724, 28, 21, 25597, 2258, 79, 20, 14, 241, 16, 65, 14, 12038, 12146, 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...
How to read sql_variant database type in C# === Looking into System.Data.DbType there is no SqlVariant type there. SqlDataReader, for example, provides the GetString method for reading into string variable. What is the appropriate way to retrieve data from the database field of type sql_variant, presumably into object?
0
[ 2, 184, 20, 1302, 4444, 255, 1, 18445, 6018, 1001, 19, 272, 5910, 800, 3726, 3726, 699, 77, 329, 9, 18768, 9, 9007, 4474, 80, 25, 90, 4444, 255, 18445, 1001, 80, 9, 4444, 255, 18768, 10647, 106, 15, 26, 823, 15, 1927, 14, 164, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Discover what process/query is using the oracle SGA. === I have a query to monitor SGA (non-)utilisation: select sum(bytes)/1024/1024 " SGA Free " from v$sgastat where name='free memory'; That's great, but I need more detail about what exactly is using the space. Essentially, I'm looking for clues to tell me more precisely what might be wrong with this (rather large application). select * from v$sgastat does not give me anything that I recognise as a developer - at least not without some pointers.
0
[ 2, 6297, 98, 953, 118, 8190, 93, 25, 568, 14, 15759, 13, 18, 1136, 9, 800, 3726, 3726, 31, 57, 21, 25597, 20, 7626, 13, 18, 1136, 13, 5, 3951, 8, 6, 14255, 4330, 45, 5407, 3907, 5, 23246, 18, 6, 118, 16284, 12918, 1036, 1996, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Drop-shadows text: CSS or graphic? === I have an internal web app with an image at the top of the page, currently containing some english text with drop shadows. I now need to provide localized versions of this page for various languages. My main choices are: <UL> <LI>Have a different graphic per supported language, containing the localized text.</LI> <LI>Use CSS to position localized text over a plain image, with a <A HREF="http://www.workingwith.me.uk/articles/css/cross-browser-drop-shadows">complex CSS technique</A> to get drop shadows in most current browsers.</LI> </UL> Are there other options? This is for an educational environment, I don't get to control the browser used by the students. I did try both removing the drop shadows from the graphic, and also moving the text into in a header in the HTML, but neither was appealing. People said it looked like a cheap knockoff of the current page, which wounds my pride.
0
[ 2, 2804, 8, 18396, 18, 1854, 45, 272, 18, 18, 54, 8479, 60, 800, 3726, 3726, 31, 57, 40, 3117, 2741, 4865, 29, 40, 1961, 35, 14, 371, 16, 14, 2478, 15, 871, 3503, 109, 486, 1854, 29, 2804, 5327, 9, 31, 130, 376, 20, 1181, 24...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Speeding Up C# === This is really two questions, but they are so similar, and to keep it simple, I figured I'd just roll them together: - **Firstly**: Given an established C# project, what are some decent ways to speed it up beyond just plain in-code optimization? - **Secondly**: When writing a program from scratch in C#, what are some good ways to greatly improve performance? **Please stay away from general optimization techniques unless they are _C# specific_.** This has previously been asked for [Python](http://stackoverflow.com/questions/172720/speeding-up-python), [Perl](http://stackoverflow.com/questions/177122/speeding-up-perl), and [Java](http://stackoverflow.com/questions/179745/speeding-up-java).
0
[ 2, 1362, 68, 71, 272, 5910, 800, 3726, 3726, 48, 25, 510, 81, 2346, 15, 47, 59, 50, 86, 835, 15, 17, 20, 643, 32, 1935, 15, 31, 5700, 31, 22, 43, 114, 3001, 105, 429, 45, 13, 8, 13, 1409, 3552, 102, 1409, 45, 504, 40, 613,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WPF ComboBox doesn't stay open when used in a Task Pane === I have a strange bug with WPF Interop and an Excel Addin. I'm using .Net 3.5 SP1. I'm using Add-in Express to create a Custom Task Pane for Excel 2003. Within that taskpane I'm using ElementHost to host a WPF UserControl. The UserControl simply contains a Grid with a TextBox and ComboBox. My problem is that whilst everything displays properly, the ComboBox won't stay dropped-down unless I hold the mouse down over the down-arrow. I don't believe this is necessarily related to Add-in Express because I've had a similar problem when I tried displaying a WPF window modelessly in Excel. Anybody else had a similar problem, and managed to fix it?
0
[ 2, 619, 7721, 22621, 5309, 1437, 22, 38, 1179, 368, 76, 147, 19, 21, 3005, 13, 16660, 800, 3726, 3726, 31, 57, 21, 2578, 6256, 29, 619, 7721, 1480, 2594, 17, 40, 20700, 3547, 108, 9, 31, 22, 79, 568, 13, 9, 2328, 203, 9, 264, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Current Cursor Position when Using the Prawn Ruby Library === I'm using the Prawn Ruby library (http://prawn.majesticseacreature.com/) to generate some pdf documents. I draw a table without any problem. Next, I want to insert some lines after the table for various people's signatures. Before I draw the lines, I would like to see if there is enough remaining room on the page to fit all the signatures. If not, I will start a new page and put the signature lines there. However, in order to determine if enough room remains on the page, I need to know what the current cursor position is after drawing the table. I can't for the life of me figure out how to do this. Any ideas?
0
[ 2, 866, 29588, 649, 76, 568, 14, 3865, 6156, 10811, 1248, 800, 3726, 3726, 31, 22, 79, 568, 14, 3865, 6156, 10811, 1248, 13, 5, 21127, 6903, 7310, 6156, 9, 540, 1969, 18, 1786, 6858, 14946, 6418, 9, 960, 118, 6, 20, 7920, 109, 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...
Graphing/Crystal Reports with ASP.Net MVC === Hi stack overflow community, I would like to add graphing to my User Controls in ASP.NET MVC. I'm fairly new to MVC just jumped into it about 2 Weeks ago and was hoping for some ideas or a guide on how to approach this issue. I have searched around and found no helpful answers to resolve this issue. I was thinking of doing crystal reports but they dont boat over well in ASP.NET from my previous experience. I would just like to know some ways to go about tackling this problem. So again what im trying to do is add graphing to MVC User Controls from a ViewDataDictionary that's passed to my User Control. Thank you.
0
[ 2, 7210, 68, 118, 25905, 2813, 29, 28, 306, 9, 2328, 307, 8990, 800, 3726, 3726, 4148, 7566, 20285, 514, 15, 31, 83, 101, 20, 3547, 7210, 68, 20, 51, 4155, 8671, 19, 28, 306, 9, 2328, 307, 8990, 9, 31, 22, 79, 6647, 78, 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...
How can I use UUIDs in SQLAlchemy? === Is there a way to define a column (primary key) as uuid in sqlalchemy if using postgresql?
0
[ 2, 184, 92, 31, 275, 13, 19612, 9178, 19, 4444, 10834, 2569, 915, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 9267, 21, 4698, 13, 5, 29584, 1246, 6, 28, 13, 19612, 1340, 19, 4444, 10834, 2569, 915, 100, 568, 678, 6879, 18, 22402, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
CSS 'schema' how-to === How does one go about establishing a CSS 'schema', or hierarchy, of general element styles, nested element styles, and classed element styles. For a rank novice like me, the amount of information in stylesheets I view is completely overwhelming. What process does one follow in creating a well factored stylesheet or sheets, compared to inline style attributes?
0
[ 2, 272, 18, 18, 13, 22, 7526, 540, 22, 184, 8, 262, 800, 3726, 3726, 184, 630, 53, 162, 88, 6814, 21, 272, 18, 18, 13, 22, 7526, 540, 22, 15, 54, 14417, 15, 16, 297, 4520, 6443, 15, 5618, 69, 4520, 6443, 15, 17, 718, 69, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I customize the behavior of "cut" in Eclipse? === My normal IDE is Visual Studio, but I'm currently doing some development in Eclipse for the first time. If you press Ctrl-X with text selected in either program, it cuts the text and puts on the clipboard exactly as you'd expect. If press Ctrl-X with no text selected in Visual Studio, it cuts the current line. In Eclipse it is ignored. Is there a way to get Eclipse to use Studio's behavior?
0
[ 2, 184, 107, 31, 5816, 2952, 14, 3257, 16, 13, 7, 4118, 7, 19, 11652, 60, 800, 3726, 3726, 51, 1826, 13, 3448, 25, 3458, 1120, 15, 47, 31, 22, 79, 871, 845, 109, 522, 19, 11652, 26, 14, 64, 85, 9, 100, 42, 901, 13, 4812, 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...
Is there a hotkey to speed up the repetitive commits in Eclipse? === I am making numerous, minute changes to .php files in Eclipse PDT then committing them and testing on the server. The repetitive six-step commit process is getting tedious: right-click team Commit... click "choose previously selected comment" select in list click OK Does anyone know of a hotkey or other process to expedite this?
0
[ 2, 25, 80, 21, 1047, 4237, 20, 1362, 71, 14, 24935, 9686, 18, 19, 11652, 60, 800, 3726, 3726, 31, 589, 544, 1548, 15, 2038, 1693, 20, 13, 9, 26120, 6488, 19, 11652, 13, 9251, 38, 94, 19524, 105, 17, 4431, 27, 14, 8128, 9, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SSIS - query another row in current data pipeline for a value === SSIS - I have data loaded and various transformations on the data complete, the problem is there is a parent/child relationship managed in the data - best explained by an example each row has (column names are made up) row_key parent_row_key row_name parent_row_name some rows have row_key == parent_row_key (their own parent) some rows relate to another row (row 25 is the parent to row 44 for example). In this case, row 25 is parent to row 44. I need to put row 25's row_name in row 44's parent_row_name. How do I query the data in the pipeline for the value? thanks.
0
[ 2, 13, 18, 4557, 13, 8, 25597, 226, 3131, 19, 866, 1054, 12250, 26, 21, 1923, 800, 3726, 3726, 13, 18, 4557, 13, 8, 31, 57, 1054, 8572, 17, 617, 6978, 18, 27, 14, 1054, 1279, 15, 14, 1448, 25, 80, 25, 21, 4766, 118, 11287, 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...
Need help writing a custom BuildListener === I would like to add a BuildListener to my headless build process, which is building an Eclipse product. The docs on how to do this are, shall we say, a bit scanty. I think I need to put my custom class in a plugin and then use the org.eclipse.ant.core.extraClasspathEntries extension point to make that visible to Ant. But everything I have tried results in <pre> [myClass] which was specified to be a build listener is not an instance of org.apache.tools.ant.BuildListener.</pre> My class implements the BuildListener interface. Various postings seem to indicate that this means my class is visible-to/loaded-by the Plugin classloader rather than the Ant classloader. But I thought the whole point of the extension point was to make jars visible to Ant... <p/>Can anyone shed light on what I'm doing wrong? <p/>Additional info: I am trying to run this build from the Eclipse IDE at the moment using the AntRunner application.
0
[ 2, 376, 448, 1174, 21, 5816, 1895, 13891, 106, 800, 3726, 3726, 31, 83, 101, 20, 3547, 21, 1895, 13891, 106, 20, 51, 157, 923, 1895, 953, 15, 56, 25, 353, 40, 11652, 2374, 9, 14, 9765, 18, 27, 184, 20, 107, 48, 50, 15, 3004, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Capistrano for Java? === I'm a big fan of Capistrano but I need to develop an automated deployment script for a Java-only shop. I've looked at Ant and Maven and they don't seem to be well geared towards remote administration the way Capistrano is - they seem much more focused on simply building and packaging applications. Is there a better tool out there?
0
[ 2, 2605, 702, 17555, 26, 8247, 60, 800, 3726, 3726, 31, 22, 79, 21, 580, 2514, 16, 2605, 702, 17555, 47, 31, 376, 20, 2803, 40, 14904, 10475, 3884, 26, 21, 8247, 8, 4965, 2546, 9, 31, 22, 195, 292, 35, 40, 38, 17, 1216, 3124, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Vb6 "Tag" property equivalent in ASP.Net? === I'm looking for ideas and opinions here, not a "real answer", I guess... Back in the old VB6 days, there was this property called "Tag" in all controls, that was a useful way to store custom information related to a control. Every single control had it, and all was bliss... Now, in .Net (at least for WebForms), it's not there anymore... Does anyone have a good replacement for that? I find this problem very often, where I have different functions that run at different times in the lifecycle, and they do stuff with my controls, and I want to keep them as separate as they are, but one should pass information to the other about specific controls. I can think of a million alternatives (starting with a module-level dictionary, obviously), but none as clean as the good ol' Tag. (NOTE: I know I can subclass ALL the controls and use my version instead. I'd rather not) Any suggestions? How do you solve this normally? Any ideas on why they removed this i the first place?
0
[ 2, 13, 20468, 379, 13, 7, 8628, 7, 1354, 4602, 19, 28, 306, 9, 2328, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 3478, 17, 11900, 235, 15, 52, 21, 13, 7, 7467, 1623, 7, 15, 31, 2321, 9, 9, 9, 97, 19, 14, 315, 13, 20468, 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...
MFC List Control scolling shows extra grid lines === I use the MFC list control in report view with grid lines to display data in a vaguely spreadsheet manner. Sometimes when the user scrolls vertically through the control, extra grid lines are drawn, which looks terrible. This does not happen when the slider or the mousewheel are used to scroll, only when the little down arrow button at the bottom of the scroll control is used. It seems that this occurs when the size of the list control window is not an exact even number of rows, so that a partial row is visible at the bottom. If I adjust the size of the list control so that there is no partial rows visible, the problem is solved. However, it will appear when the program is run on another computer, presumably because the number of pixels occupied by a row changes. I am assuming that it is an interaction between screen resolution, font size and "dialog units". I guess that I need to programmatically force the size of the control when it is created. But what size? I have tried using the ApproximateViewRect() method but I cannot get it to work. Perhaps this method does not know about report view? The other method, I suppose, would be to create my own specialization of CListCtrl and over-ride whatever method is doing the scrolling. This seems likely to be a lot of work.
0
[ 2, 307, 7061, 968, 569, 13, 18, 20410, 68, 1285, 2230, 7354, 1560, 800, 3726, 3726, 31, 275, 14, 307, 7061, 968, 569, 19, 1330, 1418, 29, 7354, 1560, 20, 3042, 1054, 19, 21, 17520, 1789, 17627, 3832, 9, 1030, 76, 14, 4155, 12159, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Automated screenshots? === I need a tool to make screenshots of *every* page on a rather large site so I'm looking for a tool that can (best case scenario) automatically spider the site and create screenshots of every page in a folder or (plan B) a browser plug-in that automatically takes a screenshot of every page I load/visit and saves it to my drive.
0
[ 2, 14904, 2324, 7868, 18, 60, 800, 3726, 3726, 31, 376, 21, 5607, 20, 233, 2324, 7868, 18, 16, 1637, 12068, 2483, 2478, 27, 21, 864, 370, 689, 86, 31, 22, 79, 699, 26, 21, 5607, 30, 92, 13, 5, 4936, 610, 12705, 6, 7499, 5650, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 object code generated for unused template class methods? === I have a C++ template class that gets instantiated with 3 different type parameters. There's a method that the class needs to have for only one of those types and that isn't ever called with the two other types. Will object code for that method be generated thrice (for all types for which the template is instantiated), or is object code generated only once (for the type with which it is actually used)?
0
[ 2, 25, 3095, 1797, 6756, 26, 18927, 22894, 718, 3195, 60, 800, 3726, 3726, 31, 57, 21, 272, 20512, 22894, 718, 30, 3049, 6322, 49, 1669, 29, 203, 421, 1001, 12905, 9, 80, 22, 18, 21, 2109, 30, 14, 718, 2274, 20, 57, 26, 104, 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 do I play background music in my iPhone game? === The official iphone docs aren't bad, but I'm finding them pretty unhelpful on this subject - all I can find is an API for playing midi files, but that's not what I want. I just want to play an MP3 in the background. And if the user is already playing their own music, obviously I don't want to play my own on top of it. Is there a "correct" way to do this?
0
[ 2, 184, 107, 31, 418, 2395, 232, 19, 51, 21024, 250, 60, 800, 3726, 3726, 14, 989, 21024, 9765, 18, 4847, 22, 38, 896, 15, 47, 31, 22, 79, 3007, 105, 1772, 367, 14593, 1566, 27, 48, 1550, 13, 8, 65, 31, 92, 477, 25, 40, 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...
'Un-SVN' a working copy === I have a folder that is my working copy. How do I remove all SVN functionality from this folder? There is a reason for me doing this, somehow my master folder that contains all my working copies of sites, has somehow been turned into a working copy itself, so I have a working copy within itself as such. So, is there an easy way of removing version control from a folder?
0
[ 2, 13, 22, 1020, 8, 18, 16578, 22, 21, 638, 4344, 800, 3726, 3726, 31, 57, 21, 19294, 30, 25, 51, 638, 4344, 9, 184, 107, 31, 4681, 65, 13, 18, 16578, 18548, 37, 48, 19294, 60, 80, 25, 21, 1215, 26, 55, 845, 48, 15, 3625, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to disable all apache virtual hosts? === I'm writing a shell script to do some web server configuration. I need to disable all currently active virtual hosts. `a2dissite` doesn't accept multiple arguments, so I can't do a2dissite `ls /etc/apache2/sites-enabled` Should I use `find`? Is it safe to manually delete the symlinks in `/etc/apache2/sites-enabled`?
0
[ 2, 184, 20, 1460, 579, 65, 17140, 6599, 5397, 60, 800, 3726, 3726, 31, 22, 79, 1174, 21, 3593, 3884, 20, 107, 109, 2741, 8128, 8091, 9, 31, 376, 20, 1460, 579, 65, 871, 1348, 6599, 5397, 9, 13, 1, 58, 135, 2906, 9097, 1, 1437,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Windows Forms: Screen capture when running non-graphically (i.e. screensaver is active) === I've got an application that is very graphics intensive and built on DirectX and Windows Forms. It has an automation and replay framework around which is built an automated testing system. Unfortunately, when the tests run unattended during a nightly build, the display is inactive or tied up with the screensaver, and our IT security policies don't allow us to disable that. So my question: is there a way to do a "screen" capture of an application that is running without the display? I'd like to ensure that the graphics card is engaged so that my rendering pipeline is the same, but the testing framework shouldn't need to care about the state of the display. Any help wildly appreciated!
0
[ 2, 1936, 1997, 45, 2324, 3683, 76, 946, 538, 8, 12084, 1326, 13, 5, 49, 9, 62, 9, 14236, 11937, 25, 1348, 6, 800, 3726, 3726, 31, 22, 195, 330, 40, 3010, 30, 25, 253, 8351, 13633, 17, 392, 27, 1744, 396, 17, 1936, 1997, 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...
Multiple random values in SQL Server 2005 === I need to generate multiple random values under SQL Server 2005 and somehow this simply wont work with Random(Value) as ( select rand() Value union all select rand() from Random )select top 10 * from Random Whats the preffered workaround?
0
[ 2, 1886, 5477, 4070, 19, 4444, 255, 8128, 812, 800, 3726, 3726, 31, 376, 20, 7920, 1886, 5477, 4070, 131, 4444, 255, 8128, 812, 17, 3625, 48, 1659, 7290, 170, 29, 5477, 5, 15165, 6, 28, 13, 5, 5407, 11310, 5, 6, 1923, 667, 65, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
I'm confused about something in the Zend Framework. === How do you decide if something goes in the view or the controller? Here are some specific examples: - Zend_Captcha: Does the controller generate the captcha and pass it to the view or does the view generate it? - Zend_Alc: Does the view decide if a segment of the view should be displayed to the user or do you have multiple views depending on available actions and the controller picks the right one for display? - Zend_Session: Does the view keep track of who is viewing it based on the session data or is that parsed by the controller and presented to the view as a parameter of some kind?
0
[ 2, 31, 22, 79, 4230, 88, 301, 19, 14, 10526, 43, 6596, 9, 800, 3726, 3726, 184, 107, 42, 4073, 100, 301, 1852, 19, 14, 1418, 54, 14, 9919, 60, 235, 50, 109, 1903, 3770, 45, 13, 8, 10526, 43, 1, 4666, 38, 1651, 45, 630, 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...
Visual Studio and Virus Scan of Temp folder === We are using Visual Studio 2008 as our primary development IDE. Our security team has set up McAfee to scan files in our <user>\Local Settings\Temp folder. Unfortunately VS uses this directory during code builds which is slowing the developers down. We've reached an impasse with the security team on this, and wonder if anyone knows of a configuration setting in VS where we could change the folder to where those temporary files are written. Thanks
0
[ 2, 3458, 1120, 17, 6231, 8313, 16, 13, 9577, 19294, 800, 3726, 3726, 95, 50, 568, 3458, 1120, 570, 28, 318, 1256, 522, 13, 3448, 9, 318, 1221, 173, 63, 309, 71, 18531, 16572, 20, 8313, 6488, 19, 318, 13, 1, 16704, 1, 15580, 1241...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the appropriate amount of error-checking? === public void PublicMethod(FooBar fooBar) { if (fooBar == null) throw new ArgumentNullException("fooBar", "fooBar cannot be null"); int action = DetermineAction(); PrivateMethod(fooBar, action); } public void PrivateMethod(FooBar fooBar, int action) { if (fooBar == null) throw new ArgumentNullException("fooBar", "fooBar cannot be null"); // Is this line superfluous? /* Do something */ } Is it OK to skip this kind of error checking in private methods if the input is already checked on the public interface? Usually there's some sort of rule-of-thumb one can go by...
0
[ 2, 98, 25, 14, 4593, 2006, 16, 7019, 8, 12542, 68, 60, 800, 3726, 3726, 317, 11364, 317, 5909, 1807, 43, 5, 4120, 111, 1850, 4310, 111, 1850, 6, 13, 1, 100, 13, 5, 4120, 111, 1850, 800, 3726, 16203, 6, 3814, 78, 5476, 4215, 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...
Best way to break from nested loops in Javascript? === What's the best way to break from nested loops in Javascript? //Write the links to the page. for (var x = 0; x < Args.length; x++) { for (var Heading in Navigation.Headings) { for (var Item in Navigation.Headings[Heading]) { if (Args[x] == Navigation.Headings[Heading][Item].Name) { document.write("<a href=\"" + Navigation.Headings[Heading][Item].URL + "\">" + Navigation.Headings[Heading][Item].Name + "</a> : "); break; // <---HERE, I need to break out of two loops. } } } }
0
[ 2, 246, 161, 20, 1442, 37, 5618, 69, 19661, 19, 8247, 8741, 60, 800, 3726, 3726, 98, 22, 18, 14, 246, 161, 20, 1442, 37, 5618, 69, 19661, 19, 8247, 8741, 60, 12894, 23716, 14, 6271, 20, 14, 2478, 9, 26, 13, 5, 3311, 993, 800, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 fade a row out before postback === I have a table that is created in a DataList in ASP.Net. This table has three fields of text, then a field with an edit button, and a field with a delete button. When a person clicks the delete button, it posts back, deletes the items, and then binds the DataList again. The DataList is in an UpdatePanel so the item smoothly disappears after a half of a second or maybe a little more, but what I'd really like is for the row to slide out (up) as soon as they hit the delete button, and then have it delete the item on the post back. I can make the row slide out with jQuery, but the postback gets in the way. How do you deal with that?
0
[ 2, 184, 107, 31, 11381, 21, 3131, 70, 115, 678, 1958, 800, 3726, 3726, 31, 57, 21, 859, 30, 25, 679, 19, 21, 1054, 5739, 19, 28, 306, 9, 2328, 9, 48, 859, 63, 132, 2861, 16, 1854, 15, 94, 21, 575, 29, 40, 9392, 5167, 15, 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...
UserType join in Hibernate === Is it possible to make hibernate do "the right thing" for some value of "right" in this situation? from ClassA a, ClassB b where a.prop = b.prop The thing is that prop is a UserType with different representation in the joined tables. In table A it is represented as an integer and in table B it is represented as a char. So the eq test translates to see if 1 == 'a' more or less, which is false but the object represented by 1 or 'a' should is the same so they should compare true.
0
[ 2, 4155, 4474, 1865, 19, 4148, 2102, 8820, 800, 3726, 3726, 25, 32, 938, 20, 233, 4148, 2102, 8820, 107, 13, 7, 124, 193, 584, 7, 26, 109, 1923, 16, 13, 7, 4183, 7, 19, 48, 1858, 60, 37, 718, 58, 21, 15, 718, 220, 334, 113, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should a developer aim for readability or performance first? === Oftentimes a developer will be faced with a choice between two possible ways to solve a problem -- one that is idiomatic and readable, and another that is less intuitive, but may perform better. For example, in C-bases languages, there are two ways to multiply a number by 2: int SimpleMultiplyBy2(int x) { return x * 2; } and int FastMultiplyBy2(int x) { return x << 1; } The first version is simpler to pick up for both technical and non-technical readers, but the second one may perform better, since bit shifting is a simpler operation than multiplication. (For now, let's assume that the compiler's optimizer would not detect this and optimize it, though that is also a consideration). As a developer, which would be better as an initial attempt?
0
[ 2, 378, 21, 10058, 5226, 26, 1302, 4091, 54, 956, 64, 60, 800, 3726, 3726, 478, 891, 18, 21, 10058, 129, 44, 3110, 29, 21, 1837, 128, 81, 938, 2847, 20, 8402, 21, 1448, 13, 8, 8, 53, 30, 25, 28380, 12479, 17, 1302, 579, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you catch a managed exception (from a delegate) in unmanaged C++ === I have unmanaged C++ calling a managed delegate via the function pointer provided by Marshal::GetFunctionPointerForDelegate. This delegate has the potential to throw an exception. I need to be able to properly handle this exception in my unmanaged C++ to ensure things like pointer cleanup, and potentially rethrow the exception up into more managed code. The call stack is similar to this: Managed Code -> Unmanaged C++ -> callback to Managed Code via delegate (exception can be thrown here). Anyone have pointers for properly handling this situation so that the resources in unmanaged code can be cleaned up and a usable exception can be thrown out to the managed code which initiated the whole call stack?
0
[ 2, 184, 107, 42, 2949, 21, 1471, 5391, 13, 5, 2665, 21, 11300, 6, 19, 367, 177, 8030, 272, 20512, 800, 3726, 3726, 31, 57, 367, 177, 8030, 272, 20512, 2555, 21, 1471, 11300, 1197, 14, 1990, 454, 106, 1173, 34, 7583, 45, 45, 3060...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Callback Scope === I'm having some trouble with plain old JavaScript (no frameworks) in referencing my object in a callback function. function foo(id) { this.dom = document.getElementById(id); this.bar = 5; var self = this; this.dom.addEventListener("click", self.onclick, false); } foo.prototype = { onclick : function() { this.bar = 7; } }; Now when I create a new object (after the DOM has loaded, with a span#test) var x = new foo('test'); The 'this' inside the onclick function points to the span#test and not the foo object. How do I get a reference to my foo object inside the onclick function?
0
[ 2, 8247, 8741, 645, 1958, 9914, 800, 3726, 3726, 31, 22, 79, 452, 109, 2572, 29, 3748, 315, 8247, 8741, 13, 5, 251, 6596, 18, 6, 19, 13, 29254, 51, 3095, 19, 21, 645, 1958, 1990, 9, 1990, 4310, 111, 5, 1340, 6, 13, 1, 48, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I suppress individual BizTalk warnings in Visual Studio 2005 === We are currently using BizTalk 2006 R2 to build Enterprise Integration solutions. We use BizTalk maps extensively, but when you build a solution in Visual Studio 2005, it produces the following warning against maps: Warning Double-click here to show/hide compiler links. In my opinion, these are not real warnings and can be ignored, but I don't like that startegy because ignoring warnings is a bad habit to get into. So I was wondering if there is a way to suppress this type of warning in Visual Studio.
0
[ 2, 184, 92, 31, 12451, 1359, 1732, 380, 9718, 3590, 18, 19, 3458, 1120, 812, 800, 3726, 3726, 95, 50, 871, 568, 1732, 380, 9718, 592, 761, 135, 20, 1895, 6002, 8078, 6776, 9, 95, 275, 1732, 380, 9718, 6867, 7802, 15, 47, 76, 42,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WPF DocumentViewer Find-function and FixedPage documents === .NEt contains a nice control called DocumentViewer. it also offers a subcontrol for finding text in the loaded document (that's at least what it is supposed to do). when inserting FixedPage's objects as document source for the documentviewer, the find-functionality just does not find anything. not even single letters. i haven't tried flowdocument's yet, as the documentation for DocumentViewer is not that useful and the resources on the net are actually not existing, i now want to ask the stackoverflow community: what does it need to get the Find-Function of the WPF DocumentViewer working with FixedPage documents? (btw, i don't use custom controltemplates for documentviewer).
0
[ 2, 619, 7721, 4492, 4725, 106, 477, 8, 22359, 17, 3535, 6486, 4374, 800, 3726, 3726, 13, 9, 2328, 1588, 21, 2210, 569, 227, 4492, 4725, 106, 9, 32, 67, 2486, 21, 972, 12898, 26, 3007, 1854, 19, 14, 8572, 4492, 13, 5, 887, 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 is returned when I call ToString() on an uninitialized char object property? === I have a c# object with a property called Gender this is declared as a char. private char _Gender; public char Gender { get{ return _Gender; } set{ _Gender = value; } } What string returned created when I call MyObject.Gender.ToString()? I ask because I am calling a webservice (which accepts a string rather than a char) so I am doing a ToString on the property as I pass it over. I was expecting it to send an empty string if the char is not set. However this doesn't appear to be the case, so the question is what is the string?
0
[ 2, 98, 25, 587, 76, 31, 645, 20, 11130, 5, 6, 27, 40, 367, 27313, 1333, 4892, 3095, 1354, 60, 800, 3726, 3726, 31, 57, 21, 272, 5910, 3095, 29, 21, 1354, 227, 4552, 48, 25, 2482, 28, 21, 4892, 9, 932, 4892, 13, 1, 25465, 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...
What is a postback? === I'm making my way into web development and have seen the word ***postback*** thrown around. Coming from a non-web based background, **what does a new web developer have to know about postbacks? (i.e. what are they and when do they arise?)** Any more information you'd like to share to help a newbie in the web world be aware of postbacks would be most greatly appreciated.
0
[ 2, 98, 25, 21, 678, 1958, 60, 800, 3726, 3726, 31, 22, 79, 544, 51, 161, 77, 2741, 522, 17, 57, 541, 14, 833, 8980, 6962, 1958, 2483, 1409, 6027, 140, 9, 880, 37, 21, 538, 8, 14113, 432, 2395, 15, 13, 1409, 608, 630, 21, 78,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Passing copy of object to method -- who does the copying? === I have an object that I'm passing in a method call. Say I'm using a language that only allows you to pass objects by reference, like Java or PHP. If the method makes changes to the object, it will affect the caller. I don't want this to happen. So it seems like I need to make a copy of the object. My question is: whose responsibility is it to clone the object? The caller, before it calls the method? Or the callee, before it changes the object?
0
[ 2, 2848, 4344, 16, 3095, 20, 2109, 13, 8, 8, 72, 630, 14, 4344, 68, 60, 800, 3726, 3726, 31, 57, 40, 3095, 30, 31, 22, 79, 2848, 19, 21, 2109, 645, 9, 395, 31, 22, 79, 568, 21, 816, 30, 104, 2965, 42, 20, 1477, 3916, 34, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Please wait dialog & downloading files in asp.net === In my ASP.Net application I have a requirement that when a user clicks on an UI element we generate a PDF for them which they can download. This is currently implemented by doing a form post to an ashx page. This page essentially inspects the form and then executes the correct server side page which either results in HTML or a PDF document of that pages HTML. On the client I know ahead of time if we are going to be getting a PDF or HTML, when its an HTML I open a new window and direct the form post to that window and all works well. When its a PDF I don't change the target for the form and it remains on the current page. This works, the user is presented with a save dialog, and the current page is not changed or lost. The problem I have is that generating the PDF takes anywhere from 1-15 seconds. What I want to do is popup a please wait dialog. Displaying the popup is going to be easy, what I am not sure of is how do I know to close the popup? The popup will be a div in the current page. Thanks in advance, Josh
0
[ 2, 2247, 1760, 28223, 279, 7121, 68, 6488, 19, 28, 306, 9, 2328, 800, 3726, 3726, 19, 51, 28, 306, 9, 2328, 3010, 31, 57, 21, 8981, 30, 76, 21, 4155, 10840, 18, 27, 40, 13, 5661, 4520, 95, 7920, 21, 13, 11124, 26, 105, 56, 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...
Classpath including JAR within a JAR === Is it possible to specify a Java `classpath` that includes a JAR file contained within another JAR file?
0
[ 2, 718, 8353, 215, 5112, 363, 21, 5112, 800, 3726, 3726, 25, 32, 938, 20, 19077, 21, 8247, 13, 1, 1898, 8353, 1, 30, 1103, 21, 5112, 3893, 3437, 363, 226, 5112, 3893, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I find a Gridview from a WebMethod from code behind? === All, How do I get access to a Gridview on a aspx page from a webmethod? Here is my code. [WebMethod] public static string GetDate() { return DateTime.Now.ToString(); } I can't use the "findcontrol" or the "this" methods so I need some help.
0
[ 2, 184, 107, 31, 477, 21, 7354, 4725, 37, 21, 2741, 5909, 1807, 43, 37, 1797, 439, 60, 800, 3726, 3726, 65, 15, 184, 107, 31, 164, 1381, 20, 21, 7354, 4725, 27, 21, 28, 306, 396, 2478, 37, 21, 2741, 5909, 1807, 43, 60, 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...
What are the BEST resources for learning WPF & .NET? === I'm a longtime C/C++ Unix guy. I recently started work in a new position that's gonna eventually require C# and WPF (and probably some LINQ). What are the best resources to quickly come up to speed on all these Microsoft technologies? Years ago I read Petzold's book and loved it because it was so complete and by the end I really felt like I knew what I was doing... Is their something equivalent for the .NET world?
0
[ 2, 98, 50, 14, 246, 2566, 26, 2477, 619, 7721, 279, 13, 9, 2328, 60, 800, 3726, 3726, 31, 22, 79, 21, 11740, 272, 118, 150, 20512, 22540, 1244, 9, 31, 1989, 373, 170, 19, 21, 78, 649, 30, 22, 18, 5172, 878, 4077, 272, 5910, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
asp.net MVC HandleError === How do I go about the [HandleError] filter in asp.net MVC Preview 5? I set the customErrors in my web.config file <customErrors mode="On" defaultRedirect="Error.aspx"> <error statusCode="403" redirect="NoAccess.htm"/> <error statusCode="404" redirect="FileNotFound.htm"/> </customErrors> and put [HandleError] above my Controller Class like this: [HandleError] public class DSWebsiteController: Controller{ [snip] public ActionResult CrashTest() { throw new Exception("Oh Noes!"); } } Then I let my controllers inherit from this class and call CrashTest() on them. Visual studio halts at the error and after pressing f5 to continue, I get rerouted to Error.aspx?aspxerrorpath=/sxi.mvc/CrashTest (where sxi is the name of the used controller. Off course the path cannot be found and I get "Server Error in '/' Application." 404. This site was ported from preview 3 to 5. Everything runs (wasn't that much work to port) except the error handling. When I create a complete new project the error handling seems to work. Ideas?
0
[ 2, 28, 306, 9, 2328, 307, 8990, 3053, 29992, 800, 3726, 3726, 184, 107, 31, 162, 88, 14, 636, 3203, 413, 29992, 500, 11945, 19, 28, 306, 9, 2328, 307, 8990, 16121, 331, 60, 31, 309, 14, 5816, 29992, 18, 19, 51, 2741, 9, 14093, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MYSQL: REGEXP single quotation matching === I am having a trouble matching a string in a MySQL-query with the following regex: I want it to match to this string: "Rue de l' Harmonie" SELECT id, street_name FROM street_names WHERE street_name REGEXP '^(rue[a-z]+[[:blank:]])((du|de|la|des|d[\']|l[\'])[[:blank:]])*[[:<:]]HARMONIE$' Anybody can give me a hint?
0
[ 2, 51, 18, 22402, 45, 7953, 6899, 345, 22786, 10120, 800, 3726, 3726, 31, 589, 452, 21, 2572, 10120, 21, 3724, 19, 21, 51, 18, 22402, 8, 8190, 93, 29, 14, 249, 7953, 1706, 45, 31, 259, 32, 20, 730, 20, 48, 3724, 45, 13, 7, 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...
C# - Any reason why this code would not function correctly? === For some reason, Section 1 works but Section 2 does not. When run in the opposite order (2 before 1), Section 1 (Affiliation) is not run at all. All the data is the same. //Section 1 UserService.DsUserAttributes dsAffiliation = us_service.GetUserAttributeDropDown(systemId, "Affiliation"); Affiliation.DataSource = dsAffiliation.tblDropDownValues; Affiliation.DataTextField = "AttrValue"; Affiliation.DataValueField = "Id"; Affiliation.DataBind(); //Section 2 UserService.DsUserAttributes dsCountry = us_service.GetUserAttributeDropDown(systemId, "Country"); Country.DataSource = dsCountry.tblDropDownValues; Country.DataTextField = "AttrValue"; Country.DataValueField = "Id"; Country.DataBind();
0
[ 2, 272, 5910, 13, 8, 186, 1215, 483, 48, 1797, 83, 52, 1990, 12044, 60, 800, 3726, 3726, 26, 109, 1215, 15, 1050, 137, 693, 47, 1050, 172, 630, 52, 9, 76, 485, 19, 14, 2794, 389, 13, 5, 135, 115, 137, 6, 15, 1050, 137, 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...
Maintaining an index of a filesystem === I need to record in some kind of file, the specific time at which blocks are written to in a filesystem, over a number of physical disks (RAID). I intend to do this by periodically by interrogating the writing device to find out which block it is writing to at that specific time. At some later date it will be necessary to locate and read from the disks the data which was written during a specific time period, by specifying the number of blocks. The data throughput could be high and the block size could be small. So my questions are: 1) how do I accurately determine the time at which a specific block was written to... 2) what is the best way to store this information.. should I just write it out to a binary file.. or text file? 3) Is some kind of C++ streamwriter sufficient for maintaining this index file?
0
[ 2, 8215, 40, 4348, 16, 21, 3893, 10724, 800, 3726, 3726, 31, 376, 20, 571, 19, 109, 825, 16, 3893, 15, 14, 1903, 85, 35, 56, 5198, 50, 642, 20, 19, 21, 3893, 10724, 15, 84, 21, 234, 16, 1825, 8582, 18, 13, 5, 23539, 6, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What was the funnest programming challenge you were ever tasked with? === The funnest thing I ever got paid to do was a compete in a competition. I the "Unix Guy" was tasked with using C# and .NET to build a client/server database application. Our resident "Windows Guy" was given the same specification and tasked with building the same application on Linux with Trolltech QT toolkit. I had NO .NET experience and he had zero Linux experience... I had the app done in 2 days. At two weeks, the boss called the competition done even though my competition wasn't complete yet. This was all done so my boss could prove to the higher ups that .NET was the way to go. What fun programming tasks have you been paid to complete?
4
[ 2, 98, 23, 14, 2414, 2696, 38, 3143, 2404, 42, 46, 462, 14605, 29, 60, 800, 3726, 3726, 14, 2414, 2696, 38, 584, 31, 462, 330, 2192, 20, 107, 23, 21, 3975, 19, 21, 1076, 9, 31, 14, 13, 7, 1020, 4028, 1244, 7, 23, 14605, 29, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Monitoring Windows directory size === I'm looking for something that will monitor Windows directories for size and file count over time. Requirements: - Notification on X increase in size over Y time - Notification on X increase in file count over Y time - Historical graphing (or at least saving snapshot data over time) of size and file count - All of this on a set of directories and their child directories I'd prefer a free solution but would also appreciate getting pointed in the right direction. If we were to write our own, how would we go about doing that? Available languages being Ruby, Groovy, Java, Perl, or PowerShell (since I'd be writing it).
0
[ 2, 8984, 1936, 16755, 1072, 800, 3726, 3726, 31, 22, 79, 699, 26, 301, 30, 129, 7626, 1936, 559, 1596, 26, 1072, 17, 3893, 2468, 84, 85, 9, 4786, 45, 13, 8, 52, 4634, 27, 993, 1839, 19, 1072, 84, 13, 93, 85, 13, 8, 52, 4634,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Groovy execute "cp *" shell command === I want to copy text files and only text files from src/ to dst/ <pre> groovy:000> "cp src/*.txt dst/".execute().text ===> groovy:000> </pre> You can see the command executes w/out error but the file "src/test.txt" does not get copied to dst/ This also fails <pre> groovy:000> "cp src/* dst/".execute().text ===> groovy:000> </pre> However... <pre> "cp src/this.txt dst/".execute().text </pre> works Also, <pre> "cp -R src/ dst".execute().text </pre> works Why dose the wild card seem to cause my command to silently fail?
0
[ 2, 3452, 2026, 93, 15644, 13, 7, 7439, 1637, 7, 3593, 1202, 800, 3726, 3726, 31, 259, 20, 4344, 1854, 6488, 17, 104, 1854, 6488, 37, 13, 18, 5453, 118, 20, 13, 43, 384, 118, 13, 1, 3515, 1, 3452, 2026, 93, 45, 3993, 1, 13, 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 do I determine if an array is intialized in VB6? === Passing an undimensioned array to the VB6's Ubound function will cause an error, so I want to check if it has been dimensioned yet before attempting to check its upper bound. How do I do this? P.S.: I found an answer to this, but wanted to post this question anyway because one of the top hits I got was a link to that f@#$ing expert sex change site. Also, I wouldn't mind seeing other methods.
0
[ 2, 184, 107, 31, 3746, 100, 40, 7718, 25, 19, 38, 2815, 1333, 19, 13, 20468, 379, 60, 800, 3726, 3726, 2848, 40, 13, 22539, 755, 5991, 69, 7718, 20, 14, 13, 20468, 379, 22, 18, 287, 7410, 1990, 129, 1679, 40, 7019, 15, 86, 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...
Where (which layer) to put Entity query methods, "persist" methods etc. ? === I have a SEAM app with some JPA/Hibernate entities. And I now wonder where to put my query, persistence methods. The default choice seems to put them in a session bean layer with injected @PersistenceContext(...) @Inject EntityManager entityManager; But I think I would rather have the methods on the entities themselves. What are the pro's/con's? 1. Testablity? 2. Niceness? 3. Performance? And does anyone have links to best practices for interacting with the EntityManager etc. from methods on the Entities rather than session beans? Best, Anders
0
[ 2, 113, 13, 5, 2140, 5385, 6, 20, 442, 9252, 25597, 3195, 15, 13, 7, 7490, 702, 7, 3195, 2722, 9, 13, 60, 800, 3726, 3726, 31, 57, 21, 13927, 4865, 29, 109, 487, 1060, 118, 8630, 106, 8820, 12549, 9, 17, 31, 130, 2666, 113, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unsubscribe anonymous method in C# === Is it possible to unsubscribe an anonymous method from an event? If I subscribe to an event like this: void MyMethod() { Console.WriteLine("I did it!"); } MyEvent += MyMethod; I can un-subscribe like this: MyEvent -= MyMethod; But if I subscribe using an anonymous method: MyEvent += delegate(){Console.WriteLine("I did it!");}; is it possible to unsubscribe this anonymous method? If so, how?
0
[ 2, 367, 20330, 10364, 2109, 19, 272, 5910, 800, 3726, 3726, 25, 32, 938, 20, 367, 20330, 40, 10364, 2109, 37, 40, 807, 60, 100, 31, 13, 20330, 20, 40, 807, 101, 48, 45, 11364, 51, 5909, 1807, 43, 5, 6, 13, 1, 8650, 9, 23716, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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-browser XPath implementation in JavaScript === I'm looking for a XPath library to query over XML documents in FF, IE, Opera and Safari... and couldn't find one. Have you seen any?
0
[ 2, 919, 8, 25699, 4104, 993, 8353, 6123, 19, 8247, 8741, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 993, 8353, 1248, 20, 25597, 84, 23504, 4374, 19, 13, 2460, 15, 13, 660, 15, 1877, 17, 25055, 9, 9, 9, 17, 711, 22, 38, 477, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
When writing Eclipse JDT plugins, is there a way to track appearace of certain strings in code? === I'm writing an Eclipse plugin for the JDT. I need a functionality that tracks certain strings or regular expressions and possibly creates markers. I know that Eclipse already does that for //TODO comments, for example (creating task markers for them) but I'm not sure if I can use the same mechanism. I can write my own but worried it would be too inefficient and not sensitive enough to code chnanges.
0
[ 2, 76, 1174, 11652, 487, 43, 38, 10922, 108, 18, 15, 25, 80, 21, 161, 20, 792, 1893, 6174, 16, 1200, 7887, 19, 1797, 60, 800, 3726, 3726, 31, 22, 79, 1174, 40, 11652, 10922, 108, 26, 14, 487, 43, 38, 9, 31, 376, 21, 18548, 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...
Does Mono .NET support and compile C++ / CLI? === Does Mono .NET support and compile C++ / CLI? If not, do you know if they have any plans of supporting it?
0
[ 2, 630, 4129, 13, 9, 2328, 555, 17, 26561, 272, 20512, 13, 118, 19391, 60, 800, 3726, 3726, 630, 4129, 13, 9, 2328, 555, 17, 26561, 272, 20512, 13, 118, 19391, 60, 100, 52, 15, 107, 42, 143, 100, 59, 57, 186, 1753, 16, 3134, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do you handle arbitrary namespaces when querying over Linq to XML? === I have a project where I am taking some particularly ugly "live" HTML and forcing it into a formal XML DOM with the HTML Agility Pack. What I would like to be able to do is then query over this with Linq to XML so that I can scrape out the bits I need. I'm using the method described [here][1] to parse the HtmlDocument into an XDocument, but when trying to query over this I'm not sure how to handle namespaces. In one particular document the original HTML was actually poorly formatted XHTML with the following tag: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> When trying to query from this document it seems that the namespace attribute is preventing me from doing something like: var x = xDoc.Descendants("div"); // returns null Apparently for those "div" tags only the LocalName is "div", but the proper tag name is the namespace plus "div". I have tried to do some research on the issue of XML namespaces and it seems that I can bypass the namespace by querying this way: var x = (from x in xDoc.Descendants() where x.Name.LocalName == "div" select x); // works However, this seems like a rather hacky solution and does not properly address the namespace issue. As I understand it a proper XML document can contain multiple namespaces and therefore the proper way to handle it should be to parse out the namespaces I'm querying under. Has anyone else ever had to do this? Am I just making it way to complicated? I know that I could avoid all this by just sticking with HtmlDocument and querying with XPath, but I would rather stick to what I know (Linq) if possible and I would also prefer to know that I am not setting myself up for further namespace-related issues down the road. What is the proper way to deal with namespaces in this situation? [1]: http://vijay.screamingpens.com/archive/2008/05/26/linq-amp-lambda-part-3-html-agility-pack-to-linq.aspx
0
[ 2, 184, 107, 42, 3053, 17237, 204, 5582, 18, 76, 25597, 68, 84, 6294, 1251, 20, 23504, 60, 800, 3726, 3726, 31, 57, 21, 669, 113, 31, 589, 741, 109, 1653, 9212, 13, 7, 5928, 7, 13, 15895, 17, 6135, 32, 77, 21, 3337, 23504, 118...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
XAML: Newline in string attribute === How can I add a line break to text when it is being set as an attribute i.e.: <TextBlock Text="Stuff on line1 \n Stuff on line2" /> Breaking it out into the exploded format isn't an option for my particular situation. What I need is someway to emulate the following: <TextBlock> <TextBlock.Text> Stuff on line1 <LineBreak/> Stuff on line2 </TextBlock.Text> <TextBlock/>
0
[ 2, 13, 6791, 8184, 45, 78, 1143, 19, 3724, 35, 14755, 800, 3726, 3726, 184, 92, 31, 3547, 21, 293, 1442, 20, 1854, 76, 32, 25, 142, 309, 28, 40, 35, 14755, 31, 9, 62, 9, 45, 13, 1, 11969, 12048, 1854, 3726, 7, 384, 5386, 27,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I get a section of this div to sit next to each other? === Code and preview: ![what i have][1] <html> <head> <title>Testing some CSS</title> <style type="text/css"> .dDay { font-size:205% } .dMon { font-weight:bold; font-variant:small-caps; font-size:130%; margin-top:-.7em; } .detailContainer { vertical-align:middle; display:table-cell; padding:0em 0em 0em 1em; } #dContainer { border:1px solid green; display:table; height:3.25em; } </style> <body> <div id="dContainer"> <div class="dDay">31</div> <div class="dMon">sep</div> <div class="detailContainer">Test O.O</div> </div> </body> </html> My question is: is it possible to place another date section next to the first one, so it appears like this: ![what i want][2] [1]: http://img78.imageshack.us/img78/9795/previewec9.gif [2]: http://img505.imageshack.us/img505/2787/previewsp2.gif
0
[ 2, 184, 92, 31, 164, 21, 1050, 16, 48, 13, 12916, 20, 2066, 328, 20, 206, 89, 60, 800, 3726, 3726, 1797, 17, 16121, 45, 13, 187, 2558, 608, 31, 57, 500, 2558, 165, 500, 13, 1, 15895, 1, 13, 1, 1743, 1, 13, 1, 22235, 1, 105...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HTTP 1.1 Persistent Connections using Sockets in Java === Let's say I have a java program that makes an HTTP request on a server using HTTP 1.1 and doesn't close the connection. I make one request, and read all data returned from the input stream I have bound to the socket. However, upon making a second request, I get no response from the server (or there's a problem with the stream - it doesn't provide any more input). If I make the requests in order (Request, request, read) it works fine, but (request, read, request) doesn't. Could someone shed some insight onto why this might be happening? (Code snippets follow). No matter what I do, the second read loop's isr_reader.read() only ever returns -1. try{ connection = new Socket("SomeServer", port); con_out = connection.getOutputStream(); con_in = connection.getInputStream(); PrintWriter out_writer = new PrintWriter(con_out, false); out_writer.print("GET http://somesite HTTP/1.1\r\n"); out_writer.print("Host: thehost\r\n"); //out_writer.print("Content-Length: 0\r\n"); out_writer.print("\r\n"); out_writer.flush(); // If we were not interpreting this data as a character stream, we might need to adjust byte ordering here. InputStreamReader isr_reader = new InputStreamReader(con_in); char[] streamBuf = new char[8192]; int amountRead; StringBuilder receivedData = new StringBuilder(); while((amountRead = isr_reader.read(streamBuf)) > 0){ receivedData.append(streamBuf, 0, amountRead); } // Response is processed here. if(connection != null && !connection.isClosed()){ //System.out.println("Connection Still Open..."); out_writer.print("GET http://someSite2\r\n"); out_writer.print("Host: somehost\r\n"); out_writer.print("Connection: close\r\n"); out_writer.print("\r\n"); out_writer.flush(); streamBuf = new char[8192]; amountRead = 0; receivedData.setLength(0); while((amountRead = isr_reader.read(streamBuf)) > 0 || amountRead < 1){ if (amountRead > 0) receivedData.append(streamBuf, 0, amountRead); } } // Process response here }
0
[ 2, 7775, 137, 9, 165, 15348, 6760, 568, 18482, 18, 19, 8247, 800, 3726, 3726, 408, 22, 18, 395, 31, 57, 21, 8247, 625, 30, 1364, 40, 7775, 3772, 27, 21, 8128, 568, 7775, 137, 9, 165, 17, 1437, 22, 38, 543, 14, 2760, 9, 31, 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...
ASP.NET: How to set the css class of a Control during DataBind? === A table row is generated using an asp:Repeater: <asp:repeater ID="announcementsRepeater" OnItemDataBound="announcementsRepeater_ItemDataBound" runat="Server"> <itemtemplate> <tr id="announcementRow" class="announcementItem" runat="server">...</tr> </itemtemplate> </asp:repeater> Now in the data-bind i want to mark "unread" announcements with a different css class, so that the web-guy can perform whatever styling he wants to differentiate between read and unread announcements: protected void announcementsRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem) return; // get the associated data item Announcement announcement = (Announcement)e.Item.DataItem; WebControl row = (WebControl)e.Item.FindControl("announcementRow"); if (row != null) row.CssClass = row.CssClass + " announcementItemUnread"; } except the cast fails at runtime: System.InvalidCastException occurred Message="Unable to cast object of type 'System.Web.UI.HtmlControls.HtmlTableRow' to type 'System.Web.UI.WebControls.WebControl'." It turns out that `HtmlTableRow` has a different parent heirarchy than `WebControl`: HtmlTableRow : HtmlContainerControl : HtmlControl : System.Web.UI.Control which is ultimately where WebControl comes from WebControl : System.Web.UI.Control So i changed the code to try to use a System.Web.UI.Control instead: Control row = (Control)e.Item.FindControl("announcementRow"); if (row != null) row.CssClass = row.CssClass + " announcementItemUnread"; But `Control` doesn't contain a definition for `CssClass`: 'System.Web.UI.Control' does not contain a definition for 'CssClass' so how do i set the css class name for a `<TR>` element during DataBind?
0
[ 2, 28, 306, 9, 2328, 45, 184, 20, 309, 14, 272, 18, 18, 718, 16, 21, 569, 112, 1054, 4772, 43, 60, 800, 3726, 3726, 21, 859, 3131, 25, 6756, 568, 40, 28, 306, 45, 99, 306, 9834, 45, 13, 1, 472, 306, 45, 99, 306, 9834, 4924...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
dlinq versus ADO.NET Entity Framework === I am about to finalize the design of my webapplication, i am building it as an n-tier architecture and i am posed with the question of using DLinq vs EFM. I would appreciate if someone could give me some expert advice on it.
0
[ 2, 13, 43, 1226, 1251, 5706, 21, 537, 9, 2328, 9252, 6596, 800, 3726, 3726, 31, 589, 88, 20, 426, 2952, 14, 704, 16, 51, 2741, 2552, 20669, 15, 31, 589, 353, 32, 28, 40, 13, 103, 8, 5259, 2607, 17, 31, 589, 15760, 29, 14, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to change the height of an NSProgressIndicator? === By default, cocoa progress bars are slightly fat and I want something a little slimmer, like the progress bars seen in the Finder copy dialog. However, Interface Builder locks the `NSProgressIndicator` control height to 20 pixels and my programmatic attempts to slim down aren't working, as calls to [progressBar setControlSize:NSMiniControlSize]; and [progressBar setControlSize:NSSmallControlSize]; in `awakeFromNib` don't do anything, and the suggestive looking `NSProgressIndicatorThickness` seen in the header file doesn't seem to plug into any methods that I can see. What's the trick?
0
[ 2, 184, 20, 753, 14, 2947, 16, 40, 13, 2172, 2740, 13026, 108, 4673, 3457, 60, 800, 3726, 3726, 34, 12838, 15, 24507, 3455, 6062, 50, 1847, 4211, 17, 31, 259, 301, 21, 265, 8824, 1263, 15, 101, 14, 3455, 6062, 541, 19, 14, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why does batch file FOR fail when iterating over command output? === I have a batch file that uses this idiom (many times) to read a registry value into an environment variable: FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKLM\SOFTWARE\Path\To\Key" /v ValueName') DO SET MyVariable=%%B (There's a tab character after <code>delims=</code>) This works fine on thousands of customer's computers. But on one customer's computer (running Windows Server 2003), it fails with 'REG QUERY "HKLM\SOFTWARE\Path\To\Key" /v ValueName' is not recognized as an internal or external command, operable program or batch file.' Running the "reg query" command alone works fine. Reg.exe is present in C:\Windows\System32. I was able to work around the problem by changing the code to REG QUERY "HKLM\SOFTWARE\Path\To\Key" /v ValueName > temp.txt FOR /F "tokens=2* delims= " %%A IN (temp.txt) DO SET MyVariable=%%B This got the customer up and running, but I would like to understand why the problem occurred so I can avoid it in the future. Slightly off the primary topic - a more direct way to get a registry value (string or DWORD) into an environment variable would also be useful.
0
[ 2, 483, 630, 13064, 3893, 26, 7476, 76, 32, 106, 1880, 84, 1202, 5196, 60, 800, 3726, 3726, 31, 57, 21, 13064, 3893, 30, 2027, 48, 28380, 13, 5, 14842, 436, 6, 20, 1302, 21, 18269, 1923, 77, 40, 2307, 7612, 45, 26, 13, 118, 41...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
what is a good cross-platform css compressor? === i need to compress my css as part of my ant build. i noticed that csstidy does this, but it would not be easy to include this in my ant build because i would need to use a different binary on different platforms. so, is there a java css compressor that people use?
0
[ 2, 98, 25, 21, 254, 919, 8, 27035, 272, 18, 18, 26810, 60, 800, 3726, 3726, 31, 376, 20, 26060, 51, 272, 18, 18, 28, 141, 16, 51, 40, 38, 1895, 9, 31, 2711, 30, 272, 18, 5509, 1851, 630, 48, 15, 47, 32, 83, 52, 44, 2010, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why is Mongrel failing to pick up the correct HTTP verb? === I have an _extremely_ simple `routes.rb` in my Rails app: ActionController::Routing::Routes.draw do |map| map.resources :tags end Starting up my app with `script/server` and pointing my browser to `localhost:3000/tags/` yields: ### ActionController::MethodNotAllowed ### Only get and post requests are allowed. ... Starting up my app with `script/server webrick`, however, solves the problem. _Later_: in case it matters, I'm running Mongrel 1.1.5 on OSX 10.5.5.
0
[ 2, 483, 25, 21028, 7256, 7250, 20, 2036, 71, 14, 4456, 7775, 9504, 60, 800, 3726, 3726, 31, 57, 40, 13, 1, 27979, 102, 1, 1935, 13, 1, 20179, 18, 9, 7549, 1, 19, 51, 2240, 18, 4865, 45, 1028, 12898, 1252, 45, 45, 8821, 1203, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MySQL - Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation 'UNION' === How do I fix that error once and for all? I just want to be able to do unions in MySQL. (I'm looking for a shortcut, like an option to make MySQL ignore that issue or take it's best guess, not looking to change collations on 100s of tables ... at least not today)
0
[ 2, 51, 18, 22402, 13, 8, 5143, 2917, 16, 9470, 7504, 13, 5, 1982, 410, 457, 1, 3661, 1, 1892, 15, 13848, 5453, 3426, 6, 17, 13, 5, 10577, 165, 1, 21777, 1, 1892, 15, 8983, 16927, 38, 6, 26, 1453, 13, 22, 17162, 22, 800, 3726...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Any way to determine speed of a removable drive in windows? === Is there any way to determine a removable drive speed in Windows without actually reading in a file. And if I do have to read in a file, how much needs to be read to get a semi accurate speed (e.g. determine whether a device is USB2 or USB1)?
0
[ 2, 186, 161, 20, 3746, 1362, 16, 21, 302, 15146, 579, 1493, 19, 1936, 60, 800, 3726, 3726, 25, 80, 186, 161, 20, 3746, 21, 302, 15146, 579, 1493, 1362, 19, 1936, 366, 1121, 1876, 19, 21, 3893, 9, 17, 100, 31, 107, 57, 20, 1302...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there any kind of dependency tracer for Asp.Net apps? === I have an Asp.Net 2.0 (VB.Net) app and I'm trying to export an .ascx/.ascx.vb to another site. Is there any way - using VS.Net 2005 or an external app - to recursively trace the dependencies of a page or control in a solution? For example, if I select `~/Controls/SomeControl.ascx`, I'd like to get the following list of files: ~/Controls/SomeControl.ascx ~/Controls/SomeControl.ascx.vb ~/App_Code/SomeClass.vb ~/App_Code/AnotherClass.vb ~/App_WebReferences/com/example/SomeWebService/SomeWebService.disco ~/App_WebReferences/com/example/SomeWebService/SomeWebService.discomap ~/App_WebReferences/com/example/SomeWebService/SomeWebService.wsdl ~/App_Code/AnotherClass.vb
0
[ 2, 25, 80, 186, 825, 16, 26835, 5565, 139, 26, 28, 306, 9, 2328, 4865, 18, 60, 800, 3726, 3726, 31, 57, 40, 28, 306, 9, 2328, 172, 9, 387, 13, 5, 20468, 9, 2328, 6, 4865, 17, 31, 22, 79, 749, 20, 7487, 40, 13, 9, 472, 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...
Showing completion in a progress bar === In this particular situation, there are 9 automated steps in a process that take varying lengths of time. We currently have a number showing percentage in the center of a progress bar, but it suffers from the common stop-and-go problem of racing up to 33%, waiting a long time, racing up to 55%, waiting an even longer time, then finishing. What's the best way to present this to the user? Should we remove the number, remove the whole progress bar in favor of an ajax-type circle animation, add descriptive text for the nine steps and checking them off or leave it the way it is? What are your thoughts?
0
[ 2, 3187, 5392, 19, 21, 3455, 748, 800, 3726, 3726, 19, 48, 1498, 1858, 15, 80, 50, 561, 14904, 2382, 19, 21, 953, 30, 247, 9852, 13189, 16, 85, 9, 95, 871, 57, 21, 234, 3187, 5780, 19, 14, 459, 16, 21, 3455, 748, 15, 47, 32,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What does it mean for a programming language to be "on rails"? === I'm currently working with Groovy and Grails. While Groovy is pretty straight-forward since it's basically Java, I can't say I grok Grails. I read that Groovy is to Grails as Ruby is to Ruby on Rails, but what does that mean?
0
[ 2, 98, 630, 32, 884, 26, 21, 3143, 816, 20, 44, 13, 7, 218, 2240, 18, 7, 60, 800, 3726, 3726, 31, 22, 79, 871, 638, 29, 3452, 2026, 93, 17, 489, 7301, 18, 9, 133, 3452, 2026, 93, 25, 1772, 1599, 8, 21216, 179, 32, 22, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a library to read JSON in C# on Windows Mobile? === I am trying to find a library to parse JSON on C# on Windows Mobile (working with Visual Studio 2005). The libraries that I have found that allow me to parse JSON in C# (litjson and Jayrock) don't work on Windows Mobile, they require classes that are not present in the .NET compact framework. Is there any library that I have overlooked? Or is there another easy way to parse JSON given these circumstances? Thanks, La-Z
0
[ 2, 25, 80, 21, 1248, 20, 1302, 487, 528, 19, 272, 5910, 27, 1936, 3241, 60, 800, 3726, 3726, 31, 589, 749, 20, 477, 21, 1248, 20, 2017, 870, 487, 528, 27, 272, 5910, 27, 1936, 3241, 13, 5, 14120, 29, 3458, 1120, 812, 6, 9, 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...
Do I need to dispose transient disposable objects? === I have a class that creates several IDisposable objects, all of these objects are then passed to another 'manager' class in a 3rd party library. As I need some of the objects in later calls I kept a local field reference to the created objects so that I could access them at a later time. When I ran FxCop on the class it said that I should implement IDisposable, due to the disposable objects that I kept a reference to. My questions are: 1. Should I implement IDisposable for my class? (or is it the manager's responsibility?) 2. If so, should I only dispose the objects I kept a reference to? or should I find a way to dispose all objects I created. public class MyClass { ClassThatIsDisposable aReference; public MyClass(ManagerClass manager) { ClassThatIsDisposable transient=new ClassThatIsDisposable(); manager.Add(transient); aReference=new ClassThatIsDisposable(); manager.Add(aReference); } public void LaterCall() { areference.Method(); } }
0
[ 2, 107, 31, 376, 20, 17913, 26008, 29854, 3916, 60, 800, 3726, 3726, 31, 57, 21, 718, 30, 9695, 238, 13, 19405, 12551, 579, 3916, 15, 65, 16, 158, 3916, 50, 94, 1100, 20, 226, 13, 22, 22256, 22, 718, 19, 21, 203, 897, 346, 124...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 this the best way to get unique version of filename w/ Python? === Still 'diving in' to Python, and want to make sure I'm not overlooking something. I wrote a script that extracts files from several zip files, and saves the extracted files together in one directory. To prevent duplicate filenames from being over-written, I wrote this little function - and I'm just wondering if there is a better way to do this? Thanks! def unique_filename(file_name): counter = 1 file_name_parts = os.path.splitext(file_name) # returns ('/path/file', '.ext') while os.path.isfile(file_name): file_name = file_name_parts[0] + '_' + str(counter) + file_name_parts[1] counter += 1 return file_name I really *do* require the files to be in a single directory, and numbering duplicates is definitely acceptable in my case, so I'm not looking for a more robust method (tho' I suppose any pointers are welcome), but just to make sure that what this accomplishes is getting done the right way.
0
[ 2, 25, 48, 14, 246, 161, 20, 164, 2619, 615, 16, 3893, 7259, 619, 118, 20059, 60, 800, 3726, 3726, 174, 13, 22, 12916, 68, 19, 22, 20, 20059, 15, 17, 259, 20, 233, 562, 31, 22, 79, 52, 14237, 301, 9, 31, 738, 21, 3884, 30, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Resizing a two dimensional array in C# === What is an effective way to shrink a two dimensional array to a smaller size in C#? For example: var bigArray = new object[100, 100]; var smallArray = new object[10, 10]; bigArray[0, 0] = 1; bigArray[0, 1] = 2; ... bigArray[99, 99] = 100000; smallArray = bigArray.SomeShirnkingMethod(); How will you write SomeShrinkingMethod() ? Thanks!
0
[ 2, 10719, 3335, 21, 81, 13, 7865, 7718, 19, 272, 5910, 800, 3726, 3726, 98, 25, 40, 3140, 161, 20, 16269, 21, 81, 13, 7865, 7718, 20, 21, 2012, 1072, 19, 272, 5910, 60, 26, 823, 45, 4033, 580, 8576, 93, 800, 78, 3095, 2558, 40...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can anyone recommend a good, free javascript for punycode to Unicode conversion? === I found this the other day: http://0xcc.net/jsescape/ but the punycode conversion doesn't work if there's a dash in the middle. For instance - I need to convert the punycode NIATO-OTABD to nñiñatoñ. Any help much appreciated
0
[ 2, 92, 1276, 12360, 21, 254, 15, 551, 8247, 8741, 26, 11582, 93, 9375, 20, 28010, 6263, 60, 800, 3726, 3726, 31, 216, 48, 14, 89, 208, 45, 7775, 6903, 387, 396, 3384, 9, 2328, 118, 728, 870, 13109, 118, 47, 14, 11582, 93, 9375, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What does the SQL Server Error "String Data, Right Truncation" mean and how do I fix it? === We are doing some performance tests on our website and we are getting the following error a lot: *** 'C:\inetpub\foo.plex' log message at: 2008/10/07 13:19:58 DBD::ODBC::st execute failed: [Microsoft][SQL Native Client]String data, right truncation (SQL-22001) at C:\inetpub\foo.plex line 25. Line 25 is the following: SELECT DISTINCT top 20 ZIP_CODE, CITY, STATE FROM Zipcodes WHERE (ZIP_CODE like ?) OR (CITY like ?) ORDER BY ZIP_CODE And lastly, this is perl code. Any ideas?
0
[ 2, 98, 630, 14, 4444, 255, 8128, 7019, 13, 7, 11130, 1054, 15, 193, 22328, 872, 7, 884, 17, 184, 107, 31, 6098, 32, 60, 800, 3726, 3726, 95, 50, 845, 109, 956, 4894, 27, 318, 2271, 17, 95, 50, 1017, 14, 249, 7019, 21, 865, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JavaScript style/optimisation: String.indexOf() v. Regex.test() === I've recently come across this piece of JavaScript code: if (",>=,<=,<>,".indexOf("," + sCompOp + ",") != -1) I was intrigued, because to write this test I would have done: if (/(>=|<=|<>)/.test(sCompOp)) Is this just a stylistic difference, or does the author of the other code know something about optimisation that I don't? Or perhaps there is a different good reason to do this, or to not use regexes...? It seems to me that using <code>String.indexOf()</code> for this is a little more difficult to read (but then, I'm quite comfortable with regular expressions), but are there instances where it might be "better" than writing an equivalent regex? By "better" that might be quicker or more efficient, (although obviously that depends on the browser's JavaScript engine), or some other reason I'm not aware of. Can anyone enlighten me?
0
[ 2, 8247, 8741, 1034, 118, 25458, 79, 4330, 45, 3724, 9, 25671, 1041, 5, 6, 566, 9, 7953, 1706, 9, 10543, 5, 6, 800, 3726, 3726, 31, 22, 195, 1989, 340, 464, 48, 1855, 16, 8247, 8741, 1797, 45, 100, 13, 5, 7, 15, 1, 3726, 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 preference for nested try/catch blocks? === One of the things that always bugs me about using Readers and Streams in Java is that the close() method can throw an exception. Since it's a good idea to put the close method in a finally block, that necessitates a bit of an awkward situation. I usually use this construction: FileReader fr = new FileReader("SomeFile.txt"); try { try { fr.read(); } finally { fr.close(); } } catch(Exception e) { // Do exception handling } But I've also seen this construction: FileReader fr = new FileReader("SomeFile.txt"); try { fr.read() } catch (Exception e) // Do exception handling } finally { try { fr.close(); } catch (Exception e) // Do exception handling } } I prefer the first construction because there's only one catch block and it just seems more elegant. Is there a reason to actually prefer the second or an alternate construction?
0
[ 2, 25, 80, 21, 9808, 26, 5618, 69, 1131, 118, 18208, 5198, 60, 800, 3726, 3726, 53, 16, 14, 564, 30, 550, 13925, 55, 88, 568, 7807, 17, 9464, 19, 8247, 25, 30, 14, 543, 5, 6, 2109, 92, 3814, 40, 5391, 9, 179, 32, 22, 18, 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...
Storing Crystal Reports Files in Database? === I've got a UI front end which talks to and manipulates a SQL Server database, and one of the things it can do is run reports on the data in the database. This UI can be installed on multiple computers, and so far I've just been keeping the reports in a folder with the install, but this means that any time a new report is added is has to manually be copied to every single UI install out there. I was thinking of storing the .rpt files in the database itself (As Blobs) and having some mechanism for the UI to fetch them when needed as a way to centralize the reports and eliminate this issue. Has anybody tried this, and did it work well? Or if you haven't, can you think of anything I should take into account before moving forward with this? Are the any tips, tricks, or caveats you can think of that might be helpful to me?
0
[ 2, 25615, 4282, 2813, 6488, 19, 6018, 60, 800, 3726, 3726, 31, 22, 195, 330, 21, 13, 5661, 431, 241, 56, 7837, 20, 17, 18468, 18, 21, 4444, 255, 8128, 6018, 15, 17, 53, 16, 14, 564, 32, 92, 107, 25, 485, 2813, 27, 14, 1054, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Driven Design - Logical Deletes === So, I have a nice domain model built. Repositories handle the data access and what not. A new requirements has popped up that indicates that reasons need to be logged with deletes. Up until now, deletes have been fairly simple => Entity.Children.Remove(child). No internal change tracking was happening as my ORM tool was handling state management. However, I'm not sure exactyl how to handle this. 1) I could keep a deleted children collection in the parent entity and pull the change tracking out of nHibernate and handle it myself. 2) ??????
0
[ 2, 4603, 5355, 704, 13, 8, 11545, 27448, 18, 800, 3726, 3726, 86, 15, 31, 57, 21, 2210, 4603, 1061, 392, 9, 302, 14882, 262, 2829, 3053, 14, 1054, 1381, 17, 98, 52, 9, 21, 78, 4786, 63, 11370, 71, 30, 6475, 30, 2932, 376, 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...
Passing a variable to dtsx package results in unexpected precedence constraint evaluation === I have a dtsx package with a precedence constraint that evaluates an expression and a constraint. The constraint is "success" and the expression is "@myVariable" == 3. myVariable is an int32, and when set in Visual Studio's design GUI the package executes fine. There are two other paths that check for the value to be 1 or 2. However when I try to run the package from the command line and pass in a value for my variable, it errors out claiming the expression does not evaluate to a boolean! **Command:** dtexec /F "c:myPackage.dtsx" /SET \Package.Variables[User::myVariable].Properties[Value];3 **Error:** The expression "@myVariable == 1" must evaluate to True or False. Change the expression to evaluate to a Boolean value. The fact this runs fine from the GUI and that microsofts documentation claims == (intuiatively) returns a boolean has me very confused. I've also tried surrounding the 3 in double quotes in my command with no luck, and now I am out of ideas. Anybody have an idea of what is going on?
0
[ 2, 2848, 21, 7612, 20, 13, 43, 38, 18, 396, 6030, 1736, 19, 9380, 24720, 28804, 8670, 800, 3726, 3726, 31, 57, 21, 13, 43, 38, 18, 396, 6030, 29, 21, 24720, 28804, 30, 13, 15599, 18, 40, 1803, 17, 21, 28804, 9, 14, 28804, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WCF Endpoint with Priority === I need WCF service with 3 endpoints 1. High 2. Normal 3. Low Most of messages will come through Normal and Low Endpoints. If Message on High will appear it have to be processed asap. Does anyone knows how to do it ???
0
[ 2, 11801, 410, 241, 3132, 29, 9857, 800, 3726, 3726, 31, 376, 11801, 410, 365, 29, 203, 241, 3132, 18, 137, 9, 183, 172, 9, 1826, 203, 9, 708, 127, 16, 7561, 129, 340, 120, 1826, 17, 708, 241, 3132, 18, 9, 100, 2802, 27, 183, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the difference between HTML tags DIV and SPAN? === I would like to ask for some simple examples showing the uses of `<div>` and `<span>`. I've seen them both used to mark a section of a page with an `id` or `class`, but I'm interested in knowing if there are times when one is preferred over the other.
0
[ 2, 98, 25, 14, 2841, 128, 13, 15895, 3383, 18, 13, 12916, 17, 6289, 60, 800, 3726, 3726, 31, 83, 101, 20, 1349, 26, 109, 1935, 3770, 3187, 14, 2027, 16, 13, 1, 12916, 1, 17, 13, 1, 18, 3206, 1, 9, 31, 22, 195, 541, 105, 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...
forking subprocesses in perl unit tests stops prove test harness exiting === I have been trying to use the perl utility/module "prove" as a test harness for some unit tests. The unit tests are a little more "system" than "unit" as I need to fork off some background processes as part of the test, Using the following... sub SpinupMonitor{ my $base_dir = shift; my $config = shift; my $pid = fork(); if($pid){ return $pid; }else{ my $cmd = "$base_dir\/..\/bin\/monitor_real.pl -config $config -test"; close STDOUT; exec ($cmd) or die "cannot exec test code [$cmd]\n"; } } sub KillMonitor{ my $pid = shift; print "Killing monitor [$pid]\n"; kill(1,$pid); } However for some reason when I have my .t file spin up some extra processes it causes the test harness to hang at the end of the first .t file after all the tests have finished, rather than going on to the next file, or exiting if there is only one. At first I wondered if it might be because I was killing of my sub-processes and leaving them defunct. So I added.. $SIG{CHLD} = \&REAPER; sub REAPER { my $pid = wait; $SIG{CHLD} = \&REAPER; } To the code. But that doesn't help. In fact on closed examination it turns out that my perl test file has exited and is now a defunct process and it is the prove wrapper script that has not reaped its child. In fact when I added a die() call at the end of my test script I got... # Looks like your test died just after 7. So my script exited but for some reason the harness isn't unraveling. I did confirm that it is definitely my sub-processes that are upsetting it as when I disabled them while the tests failed the harness exited properly. Is there anything I am doing wrong with the way I am starting up my processes that might upset the harness in some way? Thanks Peter
0
[ 2, 26, 1581, 972, 16835, 160, 19, 416, 255, 1237, 4894, 6604, 4220, 1289, 16445, 24999, 800, 3726, 3726, 31, 57, 74, 749, 20, 275, 14, 416, 255, 10082, 118, 19673, 62, 13, 7, 2740, 195, 7, 28, 21, 1289, 16445, 26, 109, 1237, 489...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Zero-to-many relationship with Linq to SQL === I have a User class which may or may not have an associated Department. This is referenced through the foreign key DepartmentId, and the relevant field in the User table is set to allow nulls. When I set up my "Create User" form and select no Department, I get a conflict error on SubmitChanges(): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_User_Department". How can I convince Linq to SQL to insert a NULL when the "Department" has been selected as the "blank" first option? Or, perhaps, is there a keyword I am missing for the "optionLabel" parameter of the Html.DropDownList method that does this? I am currently using "None" because using null or "" cause no "blank option" to be displayed, and I suspect that this may be contributing to the problem. Thanks for any assistance.
0
[ 2, 4606, 8, 262, 8, 14842, 1429, 29, 6294, 1251, 20, 4444, 255, 800, 3726, 3726, 31, 57, 21, 4155, 718, 56, 123, 54, 123, 52, 57, 40, 1598, 604, 9, 48, 25, 17571, 120, 14, 1228, 1246, 604, 1340, 15, 17, 14, 7480, 575, 19, 14...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Error installing newgem on linux === I am trying to install newgem on my linux box (sudo gem install newgem) and i am getting the following error: Building native extensions. This could take a while... ERROR: Error installing newgem: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb install newgem extconf.rb:1:in `require': no such file to load -- mkmf (LoadError) from extconf.rb:1 Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/RedCloth-4.0.4 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/RedCloth-4.0.4/ext/redcloth_scan/gem_make.out What could the problem be?
0
[ 2, 7019, 25429, 78, 20231, 27, 13024, 800, 3726, 3726, 31, 589, 749, 20, 16146, 78, 20231, 27, 51, 13024, 1649, 13, 5, 18, 18601, 8551, 16146, 78, 20231, 6, 17, 31, 589, 1017, 14, 249, 7019, 45, 353, 1275, 17529, 9, 48, 110, 247...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL command to LINQ (pivoting) === I'm moving DB from MySQL (used ODBC) to MS SQL and I want to "translate" SQL queries to LINQ. Can someone help me with this (it should SUM Charge column for every location and group result by months): SELECT sum(case when Location="Location1" then Charge else 0 end) as Location1, sum(case when Location="Location2" then Charge else 0 end) as Location2, sum(case when Location="Location3" then Charge else 0 end) as Location3, MAKEDATE(YEAR(OrderTime),DAYOFYEAR(OrderTime)) AS date FROM Sales GROUP BY YEAR(OrderTime),MONTH(OrderTime) ORDER BY OrderTime DESC ? Output should look like this: Location1 | Location2 | Location3 | date Thanks in advance
0
[ 2, 4444, 255, 1202, 20, 6294, 1251, 13, 5, 306, 7852, 1203, 6, 800, 3726, 3726, 31, 22, 79, 1219, 13, 9007, 37, 51, 18, 22402, 13, 5, 8795, 12340, 7229, 6, 20, 4235, 4444, 255, 17, 31, 259, 20, 13, 7, 7028, 6554, 7, 4444, 25...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...