unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
percentages of subtotal in a report === Am using Report Designer in VS 2008. Is there a way to display the percentages of a subtotalin a crosstab report?
0
[ 2, 5780, 18, 16, 972, 20148, 19, 21, 1330, 800, 3726, 3726, 589, 568, 1330, 4742, 19, 4611, 570, 9, 25, 80, 21, 161, 20, 3042, 14, 5780, 18, 16, 21, 972, 20148, 108, 21, 919, 15783, 1330, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Determining when an EDGE connection comes back after a dropout on an iPhone === I've incorporated Apple's Reachability sample into my own project so I know whether or not I have a network connection - if I don't have a network connection, I don't bother sending out and requests. I decided to go with the status notification implementation because it seemed easier to have the reachablity updated in the background and have the current results available immediately as opposed to kicking off a synchronous request whenever I want to make a network connection. My problem is that I start getting false negatives when on an EDGE network - the phone has connectivity, but the app thinks this isn't the case. My understanding is you don't get a notification when an EDGE connection, so my assumption is that I lost and regained the connection at some point. Restarting the app is usually sufficient to see the network connection. This isn't an optimal solution, so I was wondering if anybody else came across this problem and had any thoughts on a solutions. (I don't know whether this applies to 3G as well; I'm running a first gen iPhone).
0
[ 2, 13521, 76, 40, 1407, 2760, 1624, 97, 75, 21, 2804, 1320, 27, 40, 21024, 800, 3726, 3726, 31, 22, 195, 3678, 4037, 22, 18, 1470, 4091, 5717, 77, 51, 258, 669, 86, 31, 143, 1472, 54, 52, 31, 57, 21, 982, 2760, 13, 8, 100, 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...
lists:usort for nth element in tuple === I need to sort tuples according to the second element of each tuple but apparently usort/1 only works with the first element. So I have to swap the elements, usort them and swap back.Is there an easier way?Also is there a way to sort in descending order (I know sorting and reversing can be done, but just want to know).
0
[ 2, 7227, 45, 291, 22843, 26, 13, 103, 96, 4520, 19, 2289, 5106, 800, 3726, 3726, 31, 376, 20, 2058, 2289, 18534, 496, 20, 14, 153, 4520, 16, 206, 2289, 5106, 47, 3083, 287, 22843, 11698, 104, 693, 29, 14, 64, 4520, 9, 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...
Add record to SqlDataReader === Is there any way I can push a new record to SqlDataReader after i pull a table down? I have this piece of trash code that I need to modify, and this seems like the easiest way to do what I need. I understand that this should not be done, and if you have to do it there is something seriously wrong with your logic, but is there a way?
0
[ 2, 3547, 571, 20, 4444, 255, 18768, 10647, 106, 800, 3726, 3726, 25, 80, 186, 161, 31, 92, 3250, 21, 78, 571, 20, 4444, 255, 18768, 10647, 106, 75, 31, 2201, 21, 859, 125, 60, 31, 57, 48, 1855, 16, 10744, 1797, 30, 31, 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...
What is the most important feature a website can have? === Ok, I'm planning to build a site. What *single* features is going to optimize my chance of success. Where do I put the most effort? * Nice design. * Simple design. * Clear purpose. * Low response time. * A reason for someone to care.
0
[ 2, 98, 25, 14, 127, 681, 1580, 21, 2271, 92, 57, 60, 800, 3726, 3726, 5854, 15, 31, 22, 79, 2334, 20, 1895, 21, 689, 9, 98, 1637, 14031, 2483, 967, 25, 228, 20, 22864, 51, 1504, 16, 1280, 9, 113, 107, 31, 442, 14, 127, 2150,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python style: multiple-line conditions in IFs === Sometimes I break long conditions in IFs to several lines. The most obvious way to do this is: if (cond1 == 'val1' and cond2 == 'val2' and cond3 == 'val3' and cond4 == 'val4') do_something Isn't very very appealing visually, because the action blends with the conditions. However, it is the natural way using correct Python indentation of 4 spaces. Can you recommend an alternative way ?
0
[ 2, 20059, 1034, 45, 1886, 8, 1143, 2039, 19, 100, 18, 800, 3726, 3726, 1030, 31, 1442, 175, 2039, 19, 100, 18, 20, 238, 1560, 9, 14, 127, 4674, 161, 20, 107, 48, 25, 45, 100, 13, 5, 1126, 43, 165, 800, 3726, 13, 22, 3377, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
If one page executes a Response.Redirect() to a different web page, can the new page access values in asp.net controls from the original page? === I have a text string value that I'd like to persist from one web page to another without using query strings or the session/view states. I've been trying to get the ASP <A href = "http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.hiddenfield.aspx">HiddenField control</a> to pass information from one web form to a <i>different</i> form.<br><br> All the hiddenfield control examples that I've seen is to preserve round trips from the client to the server for the same form.<br><br> Is there way for a form to access the ASP controls (and their values) from the previously-rendered form? Or is the initial form simply disposed of in memory by the time the second form executes it's <i>OnLoad</i> method?
0
[ 2, 100, 53, 2478, 15644, 18, 21, 1627, 9, 99, 14706, 5, 6, 20, 21, 421, 2741, 2478, 15, 92, 14, 78, 2478, 1381, 4070, 19, 28, 306, 9, 2328, 8671, 37, 14, 501, 2478, 60, 800, 3726, 3726, 31, 57, 21, 1854, 3724, 1923, 30, 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...
Exporting IIS log files into a database using LogParser === So basically we have lots of IIS log files generated by our SharePoint 2007 site and we would like to make sense of them. For that we're thinking of reading the log files and dumping into a database with the appropriate columns and all. Now I was going to make an SSIS package to read all the text files and extract the data when I came across LogParser. Is there a way to use LogParser to dump data into an Sql Server database or the SSIS way is better? Or is there any other better way to use the IIS logs?
0
[ 2, 7487, 68, 595, 18, 6738, 6488, 77, 21, 6018, 568, 6738, 3574, 4104, 800, 3726, 3726, 86, 11374, 95, 57, 7503, 16, 595, 18, 6738, 6488, 6756, 34, 318, 1891, 3132, 624, 689, 17, 95, 83, 101, 20, 233, 1259, 16, 105, 9, 26, 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...
Summing Split ranges in a SQL query === I have a table which contains my server status create table ServerStatus ( ServerId int, StartTime datetime, Seconds int, [State] char(8) ) I would like a query that given a start and end date will summarize the time the server spends in each state during that time. I would also like the query to return the amount of time the servers spend in an unknown state. So, for example for the following data 1 2008-01-01 00:00:00.000 120 broken 1 2008-01-02 00:00:00.000 120 off 1 2008-01-03 00:00:00.000 240 burning 1 2008-01-04 00:00:00.000 60 off 1 2008-01-05 00:00:00.000 60 off 2 2008-01-01 00:00:00.000 60 broken 2 2008-01-02 00:00:00.000 30 off 2 2008-01-03 00:00:00.000 20 burning 2 2008-01-04 00:00:00.000 600 off 3 2007-01-04 00:00:00.000 600 off 4 2007-12-12 00:00:00.000 999999999 onfire Provided the range. select @start = dateadd(second, 60, '2008-01-01'), @fin = dateadd(second, 60, '2008-01-04') I would like to return the results: 1 broken 60 1 burning 240 1 off 180 1 unknown 258720 2 burning 20 2 off 90 2 unknown 259090 4 onfire 259200 This question is somewhat related to: [Combining split date ranges in a SQL query][1] [1]: http://stackoverflow.com/questions/140205/combining-split-date-ranges-in-a-sql-query
0
[ 2, 3907, 3863, 2132, 9230, 19, 21, 4444, 255, 25597, 800, 3726, 3726, 31, 57, 21, 859, 56, 1588, 51, 8128, 1782, 1600, 859, 17595, 38, 8796, 13, 5, 1884, 5175, 19, 38, 15, 799, 891, 1231, 891, 15, 2582, 19, 38, 15, 636, 3859, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 problem with reduce()? === There seems to be a lot of heated discussion on the net about the changes to the reduce() function in python 3.0 and how it should be removed. I am having a little difficulty understanding why this is the case; I find it quite reasonable to use it in a variety of cases. If the contempt was simply subjective, I cannot imagine that such a large number of people would care about it. What am I missing? What is the problem with reduce()?
0
[ 2, 98, 25, 14, 1448, 29, 4136, 5, 6, 60, 800, 3726, 3726, 80, 2206, 20, 44, 21, 865, 16, 10264, 5460, 27, 14, 4275, 88, 14, 1693, 20, 14, 4136, 5, 6, 1990, 19, 20059, 203, 9, 387, 17, 184, 32, 378, 44, 1974, 9, 31, 589, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 check in Java using JIntegra if COM object implements an interface ? === I'm working with JIntegra java com bridge. I have an object of type Object which true coclass is unknown. I need to check if that object can be casted to specific COM interface (which has a proxy class generated by JIntegra).
0
[ 2, 184, 20, 2631, 19, 8247, 568, 487, 12370, 58, 100, 13, 960, 3095, 8713, 18, 40, 6573, 13, 60, 800, 3726, 3726, 31, 22, 79, 638, 29, 487, 12370, 58, 8247, 13, 960, 955, 9, 31, 57, 40, 3095, 16, 1001, 3095, 56, 1151, 326, 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...
py2exe including MSVC DLLs in the .exe === When using py2exe to distribute Python applications with wxPython, some MSVC DLLs are usually needed to make the .exe work on freshly installed machines. In particular, the two most common DLLs are msvc**p**71.dll and msvc**r**71.dll The former can be included in the .exe using [this tip][1]. However, the latter is just placed in the `dist` dir by py2exe and not into the executable, even if I specifically ask to include it. Any idea how to cause py2exe to include both inside the .exe ? [1]: http://www.py2exe.org/index.cgi/OverridingCriteraForIncludingDlls
0
[ 2, 7103, 135, 1706, 62, 215, 4235, 8990, 13, 43, 211, 18, 19, 14, 13, 9, 1706, 62, 800, 3726, 3726, 76, 568, 7103, 135, 1706, 62, 20, 14751, 20059, 3767, 29, 619, 396, 6448, 11570, 15, 109, 4235, 8990, 13, 43, 211, 18, 50, 951...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Disable the error message box while loading an external movie with actionscript 3 === I have a compiled <b>swf</b> file and a I <b>can't edit it</b>, but the movie is working fine (but gives an error message with a message box). I am using it from an other movie (load with as3 code). When the loader movie loads it the error message box appears. <b>I wonder is it possible to disable the errors while loading a movie with as3.</b><br /><p><br></p>
0
[ 2, 1460, 579, 14, 7019, 2802, 1649, 133, 12797, 40, 4886, 1308, 29, 1028, 8741, 203, 800, 3726, 3726, 31, 57, 21, 9316, 13, 1, 220, 1, 18, 15263, 1, 118, 220, 1, 3893, 17, 21, 31, 13, 1, 220, 1, 1245, 22, 38, 9392, 32, 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...
Which Java Profiling tool do you use and which tool you think is the best? === Want to know what the stackoverflow community feels about the various free and non-free Java Profilers and profiling tools available.
0
[ 2, 56, 8247, 8721, 49, 802, 5607, 107, 42, 275, 17, 56, 5607, 42, 277, 25, 14, 246, 60, 800, 3726, 3726, 259, 20, 143, 98, 14, 7566, 2549, 9990, 514, 5121, 88, 14, 617, 551, 17, 538, 8, 4639, 8247, 5296, 1224, 17, 8721, 49, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
wxPython: displaying multiple widgets in same frame === I would like to be able to display `Notebook` and a `TxtCtrl` wx widgets in a single frame. Below is an example adapted from the wxpython wiki; is it possible to change their layout (maybe with something like `wx.SplitterWindow`) to display the text box below the `Notebook` in the same frame? import wx import wx.lib.sheet as sheet class MySheet(sheet.CSheet): def __init__(self, parent): sheet.CSheet.__init__(self, parent) self.SetLabelBackgroundColour('#CCFF66') self.SetNumberRows(50) self.SetNumberCols(50) class Notebook(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(600, 600)) menubar = wx.MenuBar() file = wx.Menu() file.Append(101, 'Quit', '' ) menubar.Append(file, "&File") self.SetMenuBar(menubar) wx.EVT_MENU(self, 101, self.OnQuit) nb = wx.Notebook(self, -1, style=wx.NB_BOTTOM) self.sheet1 = MySheet(nb) self.sheet2 = MySheet(nb) self.sheet3 = MySheet(nb) nb.AddPage(self.sheet1, "Sheet1") nb.AddPage(self.sheet2, "Sheet2") nb.AddPage(self.sheet3, "Sheet3") self.sheet1.SetFocus() self.StatusBar() def StatusBar(self): self.statusbar = self.CreateStatusBar() def OnQuit(self, event): self.Close() class MyFrame(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, wx.Size(450, 400)) self.text = wx.TextCtrl(self, -1, style = wx.TE_MULTILINE) self.Center() class MyApp(wx.App): def OnInit(self): frame = Notebook(None, -1, 'notebook.py') frame.Show(True) frame.Center() frame2 = MyFrame(None, -1, '') frame2.Show(True) self.SetTopWindow(frame2) return True app = MyApp(0) app.MainLoop()
0
[ 2, 619, 396, 6448, 11570, 45, 17418, 1886, 4807, 43, 3060, 18, 19, 205, 3523, 800, 3726, 3726, 31, 83, 101, 20, 44, 777, 20, 3042, 13, 1, 10280, 5199, 1, 17, 21, 13, 1, 38, 396, 38, 4812, 6362, 1, 619, 396, 4807, 43, 3060, 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...
Convex Hull generation in .NET === I've got a bunch of 3D vertex positions & need to generate a convex hull containing them; does anyone know of any QHull bindings for .NET? or native 3D Delaunay triangulation algorithms?
0
[ 2, 20292, 5542, 2782, 19, 13, 9, 2328, 800, 3726, 3726, 31, 22, 195, 330, 21, 7653, 16, 203, 43, 22895, 3062, 279, 376, 20, 7920, 21, 20292, 5542, 3503, 105, 73, 630, 1276, 143, 16, 186, 2593, 19371, 8728, 18, 26, 13, 9, 2328, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
List Comprehension in an Open Office Spreadsheet === List Comprehension is a very useful code mechanism that is found in several languages, such as Haskell, Python, and Ruby (just to name a few off the top of my head). I'm familiar with the construct. I find myself working on an Open Office Spreadsheet and I need to do something fairly common: I want to count all of the values in a range of cells that fall between a high and low bounds. I instantly thought that list comprehension would do the trick, but I can't find anything analogous in Open Office. There is a function called "COUNTIF", and it something similar, but not quite what I need. Is there a construct in Open Office that could be used for list comprehension?
0
[ 2, 968, 27300, 19, 40, 368, 488, 1789, 17627, 800, 3726, 3726, 968, 27300, 25, 21, 253, 4811, 1797, 6534, 30, 25, 216, 19, 238, 2556, 15, 145, 28, 63, 16507, 15, 20059, 15, 17, 10811, 13, 5, 2759, 20, 204, 21, 310, 168, 14, 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...
Generate X.509 certificate key pair and signing request (CSR) in C# === How do you generate a X.509 public and private key pair and a signing request (CSR file) to be sent to a CA for signing in C#?
0
[ 2, 7920, 993, 9, 264, 2545, 6259, 1246, 2146, 17, 5479, 3772, 13, 5, 6824, 139, 6, 19, 272, 5910, 800, 3726, 3726, 184, 107, 42, 7920, 21, 993, 9, 264, 2545, 317, 17, 932, 1246, 2146, 17, 21, 5479, 3772, 13, 5, 6824, 139, 3893...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
XML as data source : best practice for reading === I'm working on a small project where for the first time I want to use XML and the one and only data source...a file based store suits the need of the project. When writing the DAL should I have all the get methods static? to aviod and "reading while file open" errors? Should I use CacheDependency on the file? Thx
0
[ 2, 23504, 28, 1054, 1267, 13, 45, 246, 1345, 26, 1876, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 284, 669, 113, 26, 14, 64, 85, 31, 259, 20, 275, 23504, 17, 14, 53, 17, 104, 1054, 1267, 9, 9, 9, 58, 3893, 432, 1718, 12702, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
TraceSource in TestDriven.NET AppDomain === I'm running tests using the TestDriven.NET VS add-in, and the class library I'm testing is instrumented using TraceSource. How can I get the output of that TraceSource to show up in the Output window in Visual Studio? The DefaultTraceListener doesn't appear to be working quite right. Do I need to manually add a ConsoleListener or something (boy, would that be tedious with one TraceSource per class...)?
0
[ 2, 5565, 12097, 19, 1289, 14489, 9, 2328, 4865, 537, 6232, 800, 3726, 3726, 31, 22, 79, 946, 4894, 568, 14, 1289, 14489, 9, 2328, 4611, 3547, 8, 108, 15, 17, 14, 718, 1248, 31, 22, 79, 4431, 25, 5529, 69, 568, 5565, 12097, 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 to convert a column number (eg. 127) into an excel column (eg. AA) === How do you convert a numerical number to an Excel column name in C# without using automation getting the value directly from Excel. Excel 2007 has a possible range of 1 to 65536, which is the number of columns that it supports. The resulting values should be in the form of excel column names, e.g. A, AA, AAA etc.
0
[ 2, 184, 20, 8406, 21, 4698, 234, 13, 5, 5431, 9, 13, 11595, 6, 77, 40, 20700, 4698, 13, 5, 5431, 9, 21, 58, 6, 800, 3726, 3726, 184, 107, 42, 8406, 21, 16010, 234, 20, 40, 20700, 4698, 204, 19, 272, 5910, 366, 568, 23217, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are the naming guidelines for ASP.NET controls? === We are in the process of nutting out the design guidelines we would like to use in our development team and got into a discussion today around how ASP.NET controls should be named. I am talking about our good friends Label, TextBox, Button etc. We came up with the following three possibilities that we voted on: (Example is a TextBox to enter/display a FirstName) 1. Add the control type as a postfix to your controls ID: [FirstName`_`TextBox] or [FirstName`_`tbx] 2. Add the control type as a prefix to your controls ID [tbxFirstName] 3. Set the ID of the control to FirstName and name related fields (like a label for the textbox or a validator) as in option 2 [lblTextBox]. We ended up deciding to use option 2. It's not as verbose as option 1 and I like that it specifies what control it is before the name of the control. My question is whether Microsoft has released any guidelines for these prefixes and or if you have any comments about our decision.
0
[ 2, 98, 50, 14, 10929, 12629, 26, 28, 306, 9, 2328, 8671, 60, 800, 3726, 3726, 95, 50, 19, 14, 953, 16, 8619, 1203, 70, 14, 704, 12629, 95, 83, 101, 20, 275, 19, 318, 522, 173, 17, 330, 77, 21, 5460, 786, 140, 184, 28, 306, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Help refactor function that takes lots of arguments. === I was wondering if anyone would be able to help me refactor some code that I wrote a while ago. I wrote a wrapper for a COM object that only excepted strings as input, so in good OOP practice I wrapped the string up in a function so that it was easier to build and call. I was just wondering if anyone could think of a better way to do the following code. Public Function OpenTable(ByVal TablePath As String, Optional ByVal OpenAs As String = Nothing, _ Optional ByVal Hide As Boolean = False, Optional ByVal AsReadOnly As Boolean = False, _ Optional ByVal Interactive As Boolean = True, Optional ByVal Password As String = Nothing, _ Optional ByVal NoIndex As Boolean = False, Optional ByVal ViewAutomatic As Boolean = True) As TableInfo If String.IsNullOrEmpty(TablePath) Then Throw New ArgumentNullException("TablePath", "TablePath cannot be null or empty") End If Dim Builder = New StringBuilder("Open Table ") Builder.AppendFormat("{0}{1}{2}", ControlChars.Quote, TablePath, ControlChars.Quote) If (Not String.IsNullOrEmpty(OpenAs)) Then Builder.AppendFormat(" as {0} ", OpenAs) If (Hide) Then Builder.Append(" Hide ") If (AsReadOnly) Then Builder.Append(" ReadOnly ") If (Interactive) Then Builder.Append(" Interactive ") If (Not String.IsNullOrEmpty(Password)) Then Builder.AppendFormat(" Password {0} ", Password) If (NoIndex) Then Builder.Append(" NoIndex ") If (ViewAutomatic) Then Builder.Append(" View Automatic ") MyComApp.Do(Builder.ToString) Dim FileInfo = New IO.FileInfo(TablePath) Return New TableInfo(FileInfo.Name.Substring(0, InStrRev(FileInfo.Name, ".") - 1)) End Function The amount of arguments that the function has to take is my biggest worry. This one is not too bad but there are some other functions that I may have to make in the future that will take a lot more arguments, so I'm mainly looking for better ways to build large argument functions. Thanks.
0
[ 2, 448, 302, 17455, 1990, 30, 1384, 7503, 16, 10553, 9, 800, 3726, 3726, 31, 23, 5712, 100, 1276, 83, 44, 777, 20, 448, 55, 302, 17455, 109, 1797, 30, 31, 738, 21, 133, 1464, 9, 31, 738, 21, 28051, 26, 21, 13, 960, 3095, 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...
Hidden Features of F# === This is the unabashed attempt of a similar [C#][1] question. So what are your favorite F# hidden (or not) features? [1]: http://stackoverflow.com/questions/9033/hidden-features-of-c
0
[ 2, 3689, 967, 16, 398, 5910, 800, 3726, 3726, 48, 25, 14, 367, 5753, 7399, 1735, 16, 21, 835, 636, 150, 5910, 500, 2558, 165, 500, 1301, 9, 86, 98, 50, 154, 3839, 398, 5910, 3689, 13, 5, 248, 52, 6, 967, 60, 636, 165, 500, 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...
Java threads: Is it possible view/pause/kill a particular thread from a different java program running on the same JVM? === I have a program 'foo' running different threads, fooT1, fooT2, .. fooTn. Now if I want write another program 'bar', which could kill the thread fooTr, is that possible? Reason: One of the thread fooTr tracks product license. If this thread is killed; one may run this product indefinitely. And killing 'foo' itself is tolerable as 'foo' as that is exactly what is being done on license expiry. System: Fedora Distribution of Linux Note: The commands which start JVM and program foo are placed in /etc/init.d and anyone who has a decent knowledge of rc.1/rc.2/rc.3 structure can change/add the starting parameters to these. I hope my question is clear. If not, I can always edit it.
0
[ 2, 8247, 20396, 45, 25, 32, 938, 1418, 118, 1060, 3699, 118, 7577, 21, 1498, 9322, 37, 21, 421, 8247, 625, 946, 27, 14, 205, 487, 20147, 60, 800, 3726, 3726, 31, 57, 21, 625, 13, 22, 4120, 111, 22, 946, 421, 20396, 15, 1749, 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...
Screencapture from the browser using Javascript ?? === I guess this is an odd one, and the answer is most likely it is not possible since it would represent a security breach; but I am looking for a way - if any - to get a screendump of content inside the browser. I don't need the entire window, but actually just need to dump the rendered state of an <object> tag. It need to be cross platform and cross browser compatible.
0
[ 2, 2324, 4666, 6418, 37, 14, 16495, 568, 8247, 8741, 13, 60, 60, 800, 3726, 3726, 31, 2321, 48, 25, 40, 4210, 53, 15, 17, 14, 1623, 25, 127, 1720, 32, 25, 52, 938, 179, 32, 83, 3501, 21, 1221, 9333, 73, 47, 31, 589, 699, 26,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C++: what regex library should I use? === I'm working on a commercial (not open source) C++ project that runs on a linux-based system. I need to do some regex within the C++ code. (I know: I now have 2 problems.) QUESTION: What libraries do people who regularly do regex from C/C++ recommend I look into? A quick search has brought the following to my attention: 1) Boost.Regex (I need to go read the Boost Software License, but this question is not about software licenses) 2) C (not C++) POSIX regex (#include <regex.h>, regcomp, regexec, etc.) 3) http://freshmeat.net/projects/cpp_regex/ (I know nothing about this one; seems to be GPL, therefore not usable on this project) Thanks.
0
[ 2, 272, 20512, 45, 98, 7953, 1706, 1248, 378, 31, 275, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 1439, 13, 5, 1270, 368, 1267, 6, 272, 20512, 669, 30, 1461, 27, 21, 13024, 8, 1281, 329, 9, 31, 376, 20, 107, 109, 7953, 17...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why is my K2 process not appearing in the reports? === I use K2 as my workflow engine. For some reason my processes are not available in any of the reporting views (on the workspace). Do I have to do something special when deploying to get them there?
0
[ 2, 483, 25, 51, 680, 135, 953, 52, 4870, 19, 14, 2813, 60, 800, 3726, 3726, 31, 275, 680, 135, 28, 51, 170, 9990, 1406, 9, 26, 109, 1215, 51, 5102, 50, 52, 904, 19, 186, 16, 14, 6670, 4146, 13, 5, 218, 14, 170, 5582, 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...
How can I set the /baseaddress to a "good" value? === We have a project with many dll files which get loaded when the application starts. The baseaddresses of the dll files do overlap so that the memory image gets relocated. Is there a possibility to assign the baseaddresses automatically or a way to calculate a "good" baseaddress for each dll file?
0
[ 2, 184, 92, 31, 309, 14, 13, 118, 8436, 27950, 20, 21, 13, 7, 3264, 7, 1923, 60, 800, 3726, 3726, 95, 57, 21, 669, 29, 151, 13, 43, 211, 6488, 56, 164, 8572, 76, 14, 3010, 3244, 9, 14, 1000, 27950, 160, 16, 14, 13, 43, 211...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's a good and stable C++ tree implementation? === I'm wondering if anyone can recommend a good C++ tree implementation, hopefully one that is stl compatible if at all possible. For the record, I've written tree algorithms many times before, and I know it can be fun, but I want to be pragmatic and lazy if at all possible. So an actual link to a working solution is the goal here.
0
[ 2, 98, 22, 18, 21, 254, 17, 4521, 272, 20512, 1541, 6123, 60, 800, 3726, 3726, 31, 22, 79, 5712, 100, 1276, 92, 12360, 21, 254, 272, 20512, 1541, 6123, 15, 13416, 53, 30, 25, 354, 255, 14961, 100, 35, 65, 938, 9, 26, 14, 571, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Simplest, efficient ways to read binary and ascii files to string or similar in various languages. === Personally, I always forget this stuff. So I figured this is a useful thing to have as a reference. 1) Read an ascii file into a string 2) Write an ascii file from a string 3) Read a binary file into something appropriate. If possible, store in a string, too. 4) Write a binary file from something appropriate. If possible, write from a string, too.
0
[ 2, 24384, 15, 8243, 2847, 20, 1302, 14171, 17, 28, 1892, 49, 6488, 20, 3724, 54, 835, 19, 617, 2556, 9, 800, 3726, 3726, 7200, 15, 31, 550, 3856, 48, 3217, 9, 86, 31, 5700, 48, 25, 21, 4811, 584, 20, 57, 28, 21, 2801, 9, 137...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Wait window in a windows application === I basically need to show a wait window to the user. For this i have put two seperate window forms in the application. the first form is the main form with a button. The second one is a empty one with just a label text. On click of the button in Form1 i do the below Form2 f = new Form2(); f.Show(); Thread.Sleep(2000); f.Close(); My idea here is to show the wait window to the user for 2 second. But when i do this the Form 2 is not completely loaded because of which the label in it is blank. Please let me know your inputs on this.
0
[ 2, 1760, 1463, 19, 21, 1936, 3010, 800, 3726, 3726, 31, 11374, 376, 20, 298, 21, 1760, 1463, 20, 14, 4155, 9, 26, 48, 31, 57, 442, 81, 10332, 106, 1373, 1463, 1997, 19, 14, 3010, 9, 14, 64, 505, 25, 14, 407, 505, 29, 21, 516...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Problem opening berkeley db in python === I have problems opening a berkeley db in python using bdtables. As bdtables is used by the library I am using to access the database, I need it to work. The problem seems to be that the db environment I am trying to open (I got a copy of the database to open), is version 4.4 while libdb is version 4.6. I get the following error using bsddb.dbtables.bsdTableDB([dbname],[folder]): (-30972, "DB_VERSION_MISMATCH: Database environment version mismatch -- Program version 4.6 doesn't match environment version 4.4") However, bsddb.btopen([dbname]) works. I have also tried installing db4.4-util, db4.5-util and db4.6-util. Trying to use db4.6_verify results in: db4.6_verify: Program version 4.6 doesn't match environment version 4.4 db4.6_verify: DB_ENV->open: DB_VERSION_MISMATCH: Database environment version mismatchs db4.4_verify results in the computer just hanging, and nothing happening. Finally, if I run db4.4_recover on the database, that works. However, afterwards I get the following error 'No such file or directory' in python. ..... Damn, verifying everything in this question I eventually solved the problem. The 'No such file or directory' are caused by some __db.XXX files missing. Using bsddb.dbtables.bsdTableDB([dbname],[folder], create=1) after db4.4_recover, these files got created and everything is now working. Still, it was a bit of an obscure problem, and initially hard to figure out. But thanks to the question [Examining Berkeley DB files from the CLI][1] I got the tools I needed. I'll just post it here if someone ends up with the same problem in the future and end up at stackoverflow.com [1]: http://stackoverflow.com/questions/37644/examining-berkeley-db-files-from-the-cli
0
[ 2, 1448, 1214, 8039, 13, 9007, 19, 20059, 800, 3726, 3726, 31, 57, 1716, 1214, 21, 8039, 13, 9007, 19, 20059, 568, 334, 43, 5924, 18, 9, 28, 334, 43, 5924, 18, 25, 147, 34, 14, 1248, 31, 589, 568, 20, 1381, 14, 6018, 15, 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...
Ruby on Rails - Can I modify the value of an attribute before it is called? === Let's say I have this model named *Product* with a field named *brand*. Suppose the values of *brand* are stored in the format *this_is_a_brand*. Can I define a method in the model (or anywhere else) that allows me to modify the value of *brand* before it is called. For example, if I call *@product.brand*, I want to get *This is a Brand*, instead of *this_is_a_brand*.
0
[ 2, 10811, 27, 2240, 18, 13, 8, 92, 31, 17579, 14, 1923, 16, 40, 35, 14755, 115, 32, 25, 227, 60, 800, 3726, 3726, 408, 22, 18, 395, 31, 57, 48, 1061, 377, 1637, 14086, 2483, 29, 21, 575, 377, 1637, 8842, 2483, 9, 5787, 14, 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...
Backup tool for Microsoft Virtual Server 2005 R2 ? === I am seeking a backup tool to back-up virtual OS instances run through Microsoft Virtual Server 2005 R2. According to the [MS docs](http://technet.microsoft.com/en-us/library/cc720377.aspx), it should be possible to do it _live_ through volume shadow copy service, but I am having trouble finding any tool for any. What are the best solution to back-up MS Virtual Server instances?
0
[ 2, 10119, 5607, 26, 7099, 6599, 8128, 812, 761, 135, 13, 60, 800, 3726, 3726, 31, 589, 5246, 21, 10119, 5607, 20, 97, 8, 576, 6599, 13, 759, 13946, 485, 120, 7099, 6599, 8128, 812, 761, 135, 9, 496, 20, 14, 636, 79, 18, 9765, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Thread synchronization question (in java) === my java application has a loading task which requires two server calls which can be parallelized. So I launch a Thread t1 (doing **task1**) and a Thread t2 (for **task2**). I want then to do a specific task, **task3** when both other tasks (1 & 2) are over. Naturally I can't tell which of **task1** and **task2** will finish first... Which would be for you the simplest (and safest) way to code this ? Thank you for your help
0
[ 2, 9322, 13, 16023, 1829, 1301, 13, 5, 108, 8247, 6, 800, 3726, 3726, 51, 8247, 3010, 63, 21, 12797, 3005, 56, 4781, 81, 8128, 3029, 56, 92, 44, 3821, 1333, 9, 86, 31, 3394, 21, 9322, 13, 38, 165, 13, 5, 537, 68, 13, 1409, 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...
What are the Complexity garantees of the standard containers === Apparently ;-) the standard containers provide some form of guarantees.<br> What type of guarantees and what exactly are the differences between the different types of container?
0
[ 2, 98, 50, 14, 12745, 3126, 4760, 160, 16, 14, 1236, 18988, 800, 3726, 3726, 3083, 13, 73, 8, 6, 14, 1236, 18988, 1181, 109, 505, 16, 9120, 18, 9, 1, 5145, 1, 98, 1001, 16, 9120, 18, 17, 98, 1890, 50, 14, 4921, 128, 14, 421,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Multiple languages in one database - SQL Server 2005 === We have an application where people can type in multiple langugaes. Though we only have one database to store all the data. We have text columns as nvarchar ( assuming we only want text data to be in multiple languages and not all dates etc.) Do you think this is a feasbile solution and are there any other points to consider besides sorting and searching ? Thanks.
0
[ 2, 1886, 2556, 19, 53, 6018, 13, 8, 4444, 255, 8128, 812, 800, 3726, 3726, 95, 57, 40, 3010, 113, 148, 92, 1001, 19, 1886, 4544, 7149, 160, 9, 362, 95, 104, 57, 53, 6018, 20, 1718, 65, 14, 1054, 9, 95, 57, 1854, 7498, 28, 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...
Should I use Mono on a real project? === Has anyone used Mono, the open source .NET implementation on a large or medium sized project? I'm wondering if it's ready for real world, production environments. Is it stable, fast, compatible, ... enough to use? Does it take a lot of effort to port projects to the Mono runtime, or is it really, really compatible enough to just take of and run already written code for Microsoft's runtime?
0
[ 2, 378, 31, 275, 4129, 27, 21, 683, 669, 60, 800, 3726, 3726, 63, 1276, 147, 4129, 15, 14, 368, 1267, 13, 9, 2328, 6123, 27, 21, 370, 54, 4152, 13, 6560, 669, 60, 31, 22, 79, 5712, 100, 32, 22, 18, 1451, 26, 683, 126, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why can't I debug my asp.net web app === When I add a breakpoint and hit F5 to run in the debugger (I am using my debug build), a dialog pops up telling my my web.config file does not have debug=true in it (which is does) and I get 2 choices a) run without the debugger or b) let visual studio update my web.config file. If I choose b) the web.config is updated badly and nothing will work. If I choose a) then the site appears and I can test it out, but no debugging. I am an experienced developer, but I have never used visual studio and asp.net for web development before, so I am feeling rather frustrated by all the walls it is putting up to prevent me working. So far I have not been able to use the debugger. Is there something totally obvious that I am missing? What would you check if it was happening to you?
0
[ 2, 483, 92, 22, 38, 31, 121, 16254, 51, 28, 306, 9, 2328, 2741, 4865, 800, 3726, 3726, 76, 31, 3547, 21, 1442, 3132, 17, 770, 398, 264, 20, 485, 19, 14, 121, 2345, 11356, 13, 5, 49, 589, 568, 51, 121, 16254, 1895, 6, 15, 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...
When to use the Python debugger === Since Python is a dynamic, interpreted language you don't have to compile your code before running it. Hence, it's very easy to simply write your code, run it, see what problems occur, and fix them. Using hotkeys or macros can make this incredibly quick. So, because it's so easy to immediately see the output of your program and any errors that may occur, I haven't uses a debugger tool yet. What situations may call for using a real debugger vs. the method I currently use? I'd like to know before I get into a situation and get frustrated because I don't know how to fix the problem.
0
[ 2, 76, 20, 275, 14, 20059, 121, 2345, 11356, 800, 3726, 3726, 179, 20059, 25, 21, 7782, 15, 10394, 816, 42, 221, 22, 38, 57, 20, 26561, 154, 1797, 115, 946, 32, 9, 5796, 15, 32, 22, 18, 253, 2010, 20, 1659, 2757, 154, 1797, 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...
Texture Sampling in Open GL === i need to get the color at a particular coordinate from a texture. There are 2 ways i can do this, by getting and looking at the raw png data, or by sampling my generated opengl texture. Is it possible to sample an opengl texture to get the color (RGBA) at a given UV or XY coord? If so, how?
0
[ 2, 12714, 19030, 19, 368, 13, 8430, 800, 3726, 3726, 31, 376, 20, 164, 14, 1665, 35, 21, 1498, 15154, 37, 21, 12714, 9, 80, 50, 172, 2847, 31, 92, 107, 48, 15, 34, 1017, 17, 699, 35, 14, 4333, 351, 2723, 1054, 15, 54, 34, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why does the message BC30560 'mymodule_ascx' is ambiguous in the namespace 'ASP' come up sometimes then go away? === Often when making changes to a VS2008 ASP.net project we get a message like: BC30560: 'mymodule_ascx' is ambiguous in the namespace 'ASP'. This goes away after a recompile or sometimes just waiting 10 seconds and refreshing the page. Any way to get rid of it?
0
[ 2, 483, 630, 14, 2802, 2726, 1762, 18797, 13, 22, 915, 19673, 62, 1, 472, 150, 396, 22, 25, 22154, 19, 14, 204, 5582, 13, 22, 472, 306, 22, 340, 71, 1030, 94, 162, 229, 60, 800, 3726, 3726, 478, 76, 544, 1693, 20, 21, 4611, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's new in SP1 for .NET 3.5 === Is there an exact overview what has changed in the SP1 for .NET 3.5? New classes, methods, etc. For example, I've noticed there is a new `WaitOne(TimeSpan)` and `WaitOne(int)` overload in the `WaitHandle` class.
0
[ 2, 98, 22, 18, 78, 19, 3782, 165, 26, 13, 9, 2328, 203, 9, 264, 800, 3726, 3726, 25, 80, 40, 5340, 21598, 98, 63, 1015, 19, 14, 3782, 165, 26, 13, 9, 2328, 203, 9, 264, 60, 78, 2684, 15, 3195, 15, 2722, 9, 26, 823, 15, 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...
Event Handler behavioral difference .net 1.1 vs 2.0 with null delegate === Not sure what exactly is going on here, but seems like in .NET 1.1 an uninitialized event delegate can run without issues, but in .NET 2.0+ it causes a NullReferencException. Any ideas why. The code below will run fine without issues in 1.1, in 2.0 it gives a NullReferenceException. I'm curious why does it behave differently? What changed? Thanks eg class Class1 { public delegate void ChartJoinedRowAddedHandler(object sender); public static event ChartJoinedRowAddedHandler ChartJoinedRowAdded; public static DataTable dt; public static void Main() { dt = new DataTable(); dt.RowChanged += new DataRowChangeEventHandler(TableEventHandler); object [] obj = new object[]{1,2}; dt.Columns.Add("Name"); dt.Columns.Add("Last"); dt.NewRow(); dt.Rows.Add(obj); } private static void TableEventHandler(object sender, DataRowChangeEventArgs e) { ChartJoinedRowAdded(new object()); } }
0
[ 2, 807, 24641, 16276, 2841, 13, 9, 2328, 137, 9, 165, 4611, 172, 9, 387, 29, 16203, 11300, 800, 3726, 3726, 52, 562, 98, 1890, 25, 228, 27, 235, 15, 47, 2206, 101, 19, 13, 9, 2328, 137, 9, 165, 40, 367, 27313, 1333, 807, 11300...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there an documented way to set the iPhone orientation? === I have an app where I would like to support device rotation in certain views but other don't particularly make sense in Landscape mode, so as I swapping the views out I would like to force the rotation to be set to portrait. There is an undocumented property setter on UIDevice that does the trick but obviously generates a compiler warning and could disappear with a future revision of the SDK. [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationPortrait]; Are there any documented ways to force the orientation?
0
[ 2, 25, 80, 40, 8926, 161, 20, 309, 14, 21024, 10245, 60, 800, 3726, 3726, 31, 57, 40, 4865, 113, 31, 83, 101, 20, 555, 3646, 9431, 19, 1200, 4146, 47, 89, 221, 22, 38, 1653, 233, 1259, 19, 4453, 3740, 15, 86, 28, 31, 10143, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JAVA Swing client, Data Access to Remote Database; Ibatis === I've got a Java client that needs to access a remote database. It is the goal to hide database credentials from the user and not hardcode any credentials within the code. I'm restricted to use Ibatis as a data abstraction framework. Apart from that I have JBoss running on the webserver, allowing me to use data sources. How would you design the remote database access and data serialization/deserialization.
0
[ 2, 8247, 5587, 6819, 15, 1054, 1381, 20, 5388, 6018, 73, 13, 9747, 3409, 800, 3726, 3726, 31, 22, 195, 330, 21, 8247, 6819, 30, 2274, 20, 1381, 21, 5388, 6018, 9, 32, 25, 14, 1195, 20, 3077, 6018, 5059, 43, 10107, 18, 37, 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...
how can I save the output of windows internal FTP client? === windows internal ftp client has a strange behavior. When redirecting its output and error to a file, the errors do not show up there: > ftp -n -s:commands.txt host >output.log 2>&1 When running it from Task Scheduler inside a batch file, I don't get any error messages if connection refused. Even if echo is on or with the -d option. Do you have a workaround for it?
0
[ 2, 184, 92, 31, 2079, 14, 5196, 16, 1936, 3117, 1187, 306, 6819, 60, 800, 3726, 3726, 1936, 3117, 1187, 306, 6819, 63, 21, 2578, 3257, 9, 76, 302, 14706, 68, 82, 5196, 17, 7019, 20, 21, 3893, 15, 14, 11908, 107, 52, 298, 71, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Millions of records in a database === I once had a MySQL database table containing 25 million records, which made even a simple count(*) query takes minute to execute. I ended up making partitions, separating them into a couple tables. What i'm asking is, is there any pattern or design techniques to handle this kind of problem (huge number of records)? Is MSSQL or Oracle better in handling lots of records?
0
[ 2, 11999, 16, 742, 19, 21, 6018, 800, 3726, 3726, 31, 382, 41, 21, 51, 18, 22402, 6018, 859, 3503, 771, 507, 742, 15, 56, 117, 166, 21, 1935, 2468, 5, 2483, 6, 25597, 1384, 2038, 20, 15644, 9, 31, 1272, 71, 544, 10711, 18, 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...
CDO: Outlook contact sync - How to identify the correct object to sync with? === I have a web application that syncs Outlook contacts to a database (and back) via CDO. The DB contains every contact only once (at least theoretically, of course doublets happen), providing a single point of change for a contact, regardless of how many users have that particular contact in Outlook (like Interaction or similar products). The sync process is not automatic, but user-initialized. An arbitrary timespan can pass before users decide to sync their contacts. A subset of these contacts may have been updated by other users in the meantime. Generally, this runs fine, but I have never been able to solve this fundamental problem: **How do I doubtlessly identify a contact object in a mailbox?** 1. I can't rely on `PR_ENTRYID`, this property changes on contact move or mailbox move. 2. I can't rely on my own IDs (e.g. DB table ID), because these get copied with the contact. 3. I absolutely can't rely on fields like name or e-mail address, they are subject to changes and updates. Currently I use a combination of 1 (preferred) and 2 (fall-back). But inevitably, sometimes users run into the problem of synching to the wrong contact because there is none with a given `PR_ENTRYID`, but two with the same DB ID, of which the wrong one is chosen. There are a bunch of Outlook-synching products out there, so I guess the problem must be solvable.
0
[ 2, 272, 537, 45, 19837, 2203, 6063, 150, 13, 8, 184, 20, 5808, 14, 4456, 3095, 20, 6063, 150, 29, 60, 800, 3726, 3726, 31, 57, 21, 2741, 3010, 30, 6063, 6824, 19837, 11894, 20, 21, 6018, 13, 5, 290, 97, 6, 1197, 272, 537, 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...
Issue with localizing html title of a page === I'm trying to localize my aspx pages. I'm done with content localization using L10n features provided by .net f/w, like resource files. But I'm finding it difficult to set local data in page titles. Most of the browsers, including IE and FF, shows content on window title with some boxes (FF will show properly localized text in tab, IE doesn't even do that). But its working fine in safari (on windows). When I did a research it seems like this issue exits ONLY for some of the languages. For example, the [Hindi version of BBC][1] shows the title with boxes. But [Arabic version][2] shows the localized text in title. Can somebody please tell me why this is happening? How we can solve this issue? Note: My site is using Asp.net 2.0 / IIS [1]: http://www.bbc.co.uk/hindi/ [2]: http://news.bbc.co.uk/hi/arabic/news/
0
[ 2, 1513, 29, 375, 3335, 13, 15895, 581, 16, 21, 2478, 800, 3726, 3726, 31, 22, 79, 749, 20, 375, 2952, 51, 28, 306, 396, 4434, 9, 31, 22, 79, 677, 29, 2331, 375, 1829, 568, 644, 1036, 103, 967, 1173, 34, 13, 9, 2328, 398, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Absolute path & Relative Path === What's the difference between absolute path & relative path when using any web server or tomcat?
0
[ 2, 7070, 2013, 279, 4543, 2013, 800, 3726, 3726, 98, 22, 18, 14, 2841, 128, 7070, 2013, 279, 4543, 2013, 76, 568, 186, 2741, 8128, 54, 2067, 5782, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Eclipse treating all the files in a project as Derived === I have created a Dynamic Web Project in my Eclipse workspace. It is a also a Maven project, and under SVN control. But in "Open Resource" (Ctrl+Alt+R) no file from this project appears, unless I check from the window's options (top right drop-down) "Show Derived Resources". I have checked on some of the project's folders and they are not marked as "Derived". I have two more (plain Java) projects in the workspace, and all the files from them are visible in "Open Resource". Do you know what might be wrong with either Eclipse, the Maven plugin or Subeclipse (the SVN plugin)? Thanks, Marius
0
[ 2, 11652, 13749, 65, 14, 6488, 19, 21, 669, 28, 3981, 800, 3726, 3726, 31, 57, 679, 21, 7782, 2741, 669, 19, 51, 11652, 170, 5582, 9, 32, 25, 21, 67, 21, 1216, 3124, 669, 15, 17, 131, 13, 18, 16578, 569, 9, 47, 19, 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 unit test a custom ant task? === I am writing a custom ant task that extends Task. I am using the log() method in the task. What I want to do is use a unit test while deveoping the task, but I don't know how to set up a context for the task to run in to initialise the task as if it were running in ant. This is the custom Task: public class CopyAndSetPropertiesForFiles extends Task { public void execute() throws BuildException { log("CopyAndSetPropertiesForFiles begin execute()"); log("CopyAndSetPropertiesForFiles end execute()"); } } This is the unit test code: CopyAndSetPropertiesForFiles task = new CopyAndSetPropertiesForFiles(); task.execute(); When the code is run as a test it gives a NullPointerException when it calls log. java.lang.NullPointerException at org.apache.tools.ant.Task.log(Task.java:346) at org.apache.tools.ant.Task.log(Task.java:334) at uk.co.tbp.ant.custom.CopyAndSetPropertiesForFiles.execute(CopyAndSetPropertiesForFiles.java:40) at uk.co.tbp.ant.custom.test.TestCopyAndSetPropertiesForFiles.testCopyAndSetPropertiesForFiles(TestCopyAndSetPropertiesForFiles.java:22) Thanks, Rob.
0
[ 2, 184, 107, 31, 1237, 1289, 21, 5816, 40, 38, 3005, 60, 800, 3726, 3726, 31, 589, 1174, 21, 5816, 40, 38, 3005, 30, 9073, 3005, 9, 31, 589, 568, 14, 6738, 5, 6, 2109, 19, 14, 3005, 9, 98, 31, 259, 20, 107, 25, 275, 21, 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...
How do I turn an RSS feed back into RSS? === According to the <a href="http://feedparser.org/docs/introduction.html">feedparser documentation</a>, I can turn an RSS feed into a parsed object like this: import feedparser d = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml') but I can't find anything showing how to go the other way; I'd like to be able do manipulate 'd' and then output the result as XML: print d.toXML() but there doesn't seem to be anything in feedparser for going in that direction. Am I going to have to loop through d's various elements, or is there a quicker way?
0
[ 2, 184, 107, 31, 805, 40, 13, 1224, 18, 4063, 97, 77, 13, 1224, 18, 60, 800, 3726, 3726, 496, 20, 14, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 20954, 3574, 4104, 9, 5583, 118, 13799, 18, 118, 26123, 9, 15895, 7, 1, 20954, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
VisualBasic Month function inconsistency === I'm working in a web application using VB.NET. There is also VisualBasic code mixed in it, in particular the Date variable and the Month function of VB. The problem is this part: Month("10/01/2008") On the servers, I get 10 (October) as the month (which is supposed to be correct). On my machine, I get 1 (January) (which is supposed to be wrong). Two of my colleagues (on their own machines) get different answers, one got 1, the other got 10. **The question is, why is this so?** On my end, I can solve the problem by using .NET's DateTime's Parse (or ParseExact) function to force everything to be "dd/MM/yyyy" format. This works. I'm just wondering why there's an inconsistency. Extra info: I know the parameter for Month function is supposed to be a Date variable. The code used a string as parameter, and Option Strict was off, and the developers mainly let VB do its own conversion thing. (Legacy code maintenance has a lot of inertia...) If it helps, the version of Microsoft.VisualBasic.dll on the servers is 7.10.6310.4 (under the Framework folder v1.1.4322). The version on mine (and my 2 colleagues') machine is 7.10.6001.4.
0
[ 2, 3458, 26467, 1617, 1990, 19, 12124, 702, 8883, 800, 3726, 3726, 31, 22, 79, 638, 19, 21, 2741, 3010, 568, 13, 20468, 9, 2328, 9, 80, 25, 67, 3458, 26467, 1797, 2198, 19, 32, 15, 19, 1498, 14, 1231, 7612, 17, 14, 1617, 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...
computing performance === I need to find out the time a function takes for computing the performance of the application / function. is their any open source Java APIs for doing the same ?
0
[ 2, 10626, 956, 800, 3726, 3726, 31, 376, 20, 477, 70, 14, 85, 21, 1990, 1384, 26, 10626, 14, 956, 16, 14, 3010, 13, 118, 1990, 9, 25, 66, 186, 368, 1267, 8247, 21, 8954, 26, 845, 14, 205, 13, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Transitioning from Java to Clojure === After discovering [Clojure][1] I have spent the last few days immersed in it. This question is directed at prominently at Java programmers who have transitioned to Clojure: ###What project types lend themselves to using Java over Clojure, vice versa, or in combination? ###Which programs which you would have never attempted before Clojure ? [1]: http://clojure.org
0
[ 2, 4513, 68, 37, 8247, 20, 7383, 2142, 99, 800, 3726, 3726, 75, 15799, 636, 13023, 2142, 99, 500, 2558, 165, 500, 31, 57, 1111, 14, 236, 310, 509, 27026, 19, 32, 9, 48, 1301, 25, 1012, 35, 16595, 35, 8247, 17968, 18, 72, 57, 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...
Help! WPF ListBox, more then 1000 Image Items, Zoom Images become slow! === I met a problem when deveoping a photo viewer application. I use ListBox to Show Images, which is contained in a ObservableCollection. I bind the ListBox's ItemsSource to the ObservableCollection. <DataTemplate DataType="{x:Type modeldata:ImageInfo}"> <Image Margin="6" Source="{Binding Thumbnail}" Width="{Binding ZoomBarWidth.Width, Source={StaticResource zoombarmanager}}" Height="{Binding ZoomBarWidth.Width, Source={StaticResource zoombarmanager}}"/> </DataTemplate> <Grid DataContext="{StaticResource imageinfolder}"> <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"> <ListBox Name="PhotosListBox" IsSynchronizedWithCurrentItem="True" Style="{StaticResource PhotoListBoxStyle}" Margin="5" SelectionMode="Extended" ItemsSource="{Binding}" /> </ScrollViewer> I also bind the Image'height in ListBox with a slider.(the slider's Value also bind to zoombarmanager.ZoomBarWidth.Width). But I found if the collection become larger, such as: contains more then 1000 images, If I use the slider to change the size of iamges, it become a bit slow. My Question is. 1. Why it become Slow? become it tries to zoom every images,or it just because notify("Width") is invoked more than 1000 times. 2. Is there any method to solve this kind of problem and make it faster.
0
[ 2, 448, 187, 619, 7721, 968, 5309, 15, 91, 94, 6150, 1961, 3755, 15, 19469, 3502, 533, 2276, 187, 800, 3726, 3726, 31, 798, 21, 1448, 76, 121, 195, 2594, 68, 21, 3056, 16812, 3010, 9, 31, 275, 968, 5309, 20, 298, 3502, 15, 56, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Help on Open source controls in commercial application. === What are the implications of including a set of visual components released under a [Mozilla Public License][1] in a commercial application. Do I have any obligations? [1]: http://www.mozilla.org/MPL/MPL-1.1.html
0
[ 2, 448, 27, 368, 1267, 8671, 19, 1439, 3010, 9, 800, 3726, 3726, 98, 50, 14, 14747, 16, 215, 21, 309, 16, 3458, 5090, 261, 131, 21, 636, 18057, 3247, 317, 3962, 500, 2558, 165, 500, 19, 21, 1439, 3010, 9, 107, 31, 57, 186, 166...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mocking an attribute change on a parameter - using Moq === I am using Moq to mock my Repository layer so I can unit test. My repository layer Insert methods update the Id property of my entities when a successful db insert occurs. How do I configure moq to update the Id property of the entity when the Insert method is called? Repository code:- void IAccountRepository.InsertAccount(AccountEntity account); Unit Test:- [TestInitialize()] public void MyTestInitialize() { accountRepository = new Mock<IAccountRepository>(); contactRepository = new Mock<IContactRepository>(); contractRepository = new Mock<IContractRepository>(); planRepository = new Mock<IPlanRepository>(); generator = new Mock<NumberGenerator>(); service = new ContractService(contractRepository.Object, accountRepository.Object, planRepository.Object, contactRepository.Object, generator.Object); } [TestMethod] public void SubmitNewContractTest() { // Setup Mock Objects planRepository .Expect(p => p.GetPlan(1)) .Returns(new PlanEntity() { Id = 1 }); generator .Expect(p => p.GenerateAccountNumber()) .Returns("AC0001"); // Not sure what to do here? // How to mock updating the Id field for Inserts? // // Creates a correctly populated NewContractRequest instance NewContractRequest request = CreateNewContractRequestFullyPopulated(); NewContractResponse response = service.SubmitNewContract(request); Assert.IsTrue(response.IsSuccessful); } implementation snippet from ContractService class (WCF service contract). AccountEntity account = new AccountEntity() { AccountName = request.Contact.Name, AccountNumber = accountNumber, BillingMethod = BillingMethod.CreditCard, IsInvoiceRoot = true, BillingAddressType = BillingAddressType.Postal, ContactId = request.Contact.Id.Value }; accountRepository.InsertAccount(account); if (account.Id == null) { // ERROR } I apologise if this information may be a little lacking. I only started learning moq and mocking frameworks today. ac
0
[ 2, 18446, 40, 35, 14755, 753, 27, 21, 18906, 13, 8, 568, 1873, 1251, 800, 3726, 3726, 31, 589, 568, 1873, 1251, 20, 10506, 51, 24869, 5385, 86, 31, 92, 1237, 1289, 9, 51, 24869, 5385, 14692, 3195, 11100, 14, 4924, 1354, 16, 51, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Intergrating Prolog with C# === Does anyone know of a nice (and preferably free) way to intergrate Prolog and C#? Im looking to create a Prolog dll or similar to call from my managed code, and retrieve an answer once all the processing has been complete. Im looking for it to be predominantly one sided (c# calls Prolog). I have seen [this question](http://stackoverflow.com/questions/130097/real-world-prolog-usage) which talks about Prologs real world usage but I was wondering if anyone had either any experience with c# & Prolog? or a nice tutorial/article?
0
[ 2, 1480, 15125, 68, 895, 5567, 29, 272, 5910, 800, 3726, 3726, 630, 1276, 143, 16, 21, 2210, 13, 5, 290, 6369, 4801, 551, 6, 161, 20, 1480, 15125, 62, 895, 5567, 17, 272, 5910, 60, 797, 699, 20, 1600, 21, 895, 5567, 13, 43, 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...
Reporting Services 2008: export instead of regenerate ? === Is there some way to cache a generated report in the reporting services, so that I could later export it to some other format ? I.e., currently, I'm generating an HTML version of the report (throught the webservice) and if the users asks for an excel file, I generate it again, this time in excel. The problem is, that the data can potentialy change during this time and the HTML and excel versions may differ. Another obvious drawback is that the report is being regenerated, when just a change of format would suffice. So the question is, whether reporting services support some sort of caching mechanism for the generated data and a later export to a specified format ? I'm currious, how is the "Export" button implemented in the report viewer control - does it actually regenerate the report, or does it somehow export it ?
0
[ 2, 6670, 687, 15573, 7487, 700, 16, 29608, 13, 60, 800, 3726, 3726, 25, 80, 109, 161, 20, 16522, 21, 6756, 1330, 19, 14, 6670, 687, 15, 86, 30, 31, 110, 138, 7487, 32, 20, 109, 89, 2595, 13, 60, 31, 9, 62, 9, 15, 871, 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...
xCode Performance Tool and UIImagePickerController === When I run this code in the Simulator in the debugger or standalone [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera] it tells me the camera is not available (returns NO), as expected. However, if I run the same code in the simulator in Performance Tool, it returns YES! My code (which works fine on device) then continues to display the camera view in the simulator. If I attempt to capture an image though, I get a console message > photos can only be captured on HW Which means that if I want to profile my application on the simulator (wouldn't it be nice if it worked on the device!!) I need to go change the code so that it displays the correct view (i.e. not the camera one!). This does not, from googling, appear to be a well-known issue. Has anyone else experienced it and/or got a workaround?
0
[ 2, 993, 9375, 956, 5607, 17, 13, 5661, 22039, 16855, 106, 12898, 1252, 800, 3726, 3726, 76, 31, 485, 48, 1797, 19, 14, 24565, 19, 14, 121, 2345, 11356, 54, 26986, 636, 5661, 22039, 16855, 106, 12898, 1252, 25, 12097, 4474, 4961, 947...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Alter :path_prefix dynamically when calling has_attachment via Attachment Fu plugin === By default [Attachment Fu][1] stores uploaded files in `"public/#{table_name}"`. I want to modify this to be something like `"public/#{table_name}/#{site_id}"`, where `site_id` is a property of the model. Note that I've tried using `self.site_id` and both fail. has_attachment :storage => :file_system, :max_size => 25.megabytes, :path_prefix => "public/#{table_name}/#{site_id}", :thumbnails => { :large => '256x256>', :medium => '128x128>', :small => '64x64>' } I receive "undefined local variable or method site_id" error messages. Removing the `#{site_id}` component from the `:path_prefix` works fine and the `initialize` method is run. I can access the `site_id` as expected. I have an `initialize` method which looks like this: def initialize(site_id = nil) super(nil) self.site_id ||= site_id end I instanciate the object via the Rails console like this: r = Resource.new(100) Is the `has_attachment` method running before my `initialize` method? How can I pass a parameter into the `:path_prefix` dynamically when the model is instantiated? [1]: http://agilewebdevelopment.com/plugins/attachment_fu
0
[ 2, 7835, 13, 45, 8353, 1, 3515, 18594, 7782, 1326, 76, 2555, 63, 1, 14986, 673, 1130, 1197, 14575, 2916, 10922, 108, 800, 3726, 3726, 34, 12838, 636, 14986, 673, 1130, 2916, 500, 2558, 165, 500, 4134, 23782, 6488, 19, 13, 1, 7, 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...
Problem reading from a device with libusb === The situation is this: I have a USB device (a custom device I'm trying to talk to) with two endpoints, one writing to the device, one reading from the device. Both are bulk transfers. Every communication transaction takes the form of (1) Write a command to the device (2) Read the response. I'm using libusb (version 0.1 rather than the 1.0 beta) to actually perform the communications. On Windows, all is well. I can connect the device, claim the interface and communicate happily. However, in Ubuntu (a standard Hardy desktop install), whilst I can connect to the device and write to it, all read operations fail with the error "error submitting URB: Invalid argument" reported from libusb. If I check /var/log/messages I see a warning message logged for the same time as the read was attempted: "sysfs: duplicate filename 'usbdev4.3_ep81' can not be created" - which tallies with the device (it is indeed on that bus and it's endpoint 81 I'm trying to read from). So... anyone seen a similar problem using libusb, or have any idea how to fix it?
0
[ 2, 1448, 1876, 37, 21, 3646, 29, 2093, 3822, 220, 800, 3726, 3726, 14, 1858, 25, 48, 45, 31, 57, 21, 182, 220, 3646, 13, 5, 58, 5816, 3646, 31, 22, 79, 749, 20, 930, 20, 6, 29, 81, 241, 3132, 18, 15, 53, 1174, 20, 14, 3646...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to use ServicePointManager with Webbrowser control? === I want to disable "Alert window" that I get from login page of one HTTPS site with "untrusted certificate". ServicePointManager is used for WebRequest/WebResponse: > > public static bool > > ValidateServerCertificate(object > > sender, X509Certificate certificate, > > X509Chain chain, SslPolicyErrors > > sslPolicyErrors) { > > return true; } > > > > ServicePointManager.ServerCertificateValidationCallback > > = new RemoteCertificateValidationCallback(ValidateServerCertificate); **but how can I use it with Webbrowser control?**
0
[ 2, 25, 32, 938, 20, 275, 365, 3132, 22256, 29, 10192, 5417, 4104, 569, 60, 800, 3726, 3726, 31, 259, 20, 1460, 579, 13, 7, 192, 6767, 1463, 7, 30, 31, 164, 37, 6738, 108, 2478, 16, 53, 7775, 18, 689, 29, 13, 7, 1020, 11592, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
apache + lighttpd front-proxy concept === In order to lighten Apache's load people often suggest using lighttpd to serve up static content. e.g. <http://www.linux.com/feature/51673> In this setup Apache passes requests for static content back to lighttpd via mod_proxy, while serving dynamic requests itself. My question is: how does this reduce the load on the server? Since you still have an apache process spawned for every request that comes in, how does this positively impact the load? From what I can see the size of the Apache process proxying its request through lighttpd is as large as it would be if it were serving the file itself.
0
[ 2, 17140, 2754, 471, 38, 9251, 431, 8, 4899, 9229, 2420, 800, 3726, 3726, 19, 389, 20, 471, 219, 17140, 22, 18, 6305, 148, 478, 5601, 568, 471, 38, 9251, 20, 1884, 71, 12038, 2331, 9, 13, 62, 9, 263, 9, 13, 1, 21127, 6903, 648...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Reflection.Net: how to load dependencies? === I try to add an addons system to my Windows.Net application using Reflection; but it fails when there is addon with dependencie.<br><br> Addon class have to implement an interface 'IAddon' and to have an empty constructor.<br> Main program load the addon using Reflection: Assembly assembly = Assembly.LoadFile(@"C:\Temp\TestAddon\Addon.dll"); Type t = assembly.GetType("Test.MyAddon"); ConstructorInfo ctor = t.GetConstructor(new Type[] { }); IAddon addon= (IAddon) ctor.Invoke(new object[] { }); addon.StartAddon(); It works great when addon do not use dependencie. But if my addon reference and use an another DLL (C:\Temp\TestAddon\MyTools.dll) that is saved near the addon in disk, it fails: <br> *System.IO.FileNotFoundException: Could not load file or assembly 'MyTools.dll' or one of its dependencies.* I do not wants to copy the addons DLL near my executable, how can i do to tell .Net runtime to search in "C:\Temp\TestAddon\" for any dependancy? Note that adding Assembly assembly = Assembly.LoadFile(@"C:\Temp\TestAddon\MyTools.dll"); do not change anything.
0
[ 2, 9138, 9, 2328, 45, 184, 20, 6305, 29411, 60, 800, 3726, 3726, 31, 1131, 20, 3547, 40, 3547, 4710, 329, 20, 51, 1936, 9, 2328, 3010, 568, 9138, 73, 47, 32, 13614, 76, 80, 25, 3547, 218, 29, 12547, 219, 10486, 9, 1, 5145, 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...
Tool for Scripting Table Data === Are there any free tools for scripting MSSQL table data? I'll gladly write one, but am hoping it's been done, and the app matured a bit before/
0
[ 2, 5607, 26, 3884, 68, 859, 1054, 800, 3726, 3726, 50, 80, 186, 551, 4672, 26, 3884, 68, 4235, 18, 22402, 859, 1054, 60, 31, 22, 211, 3539, 102, 2757, 53, 15, 47, 589, 3935, 32, 22, 18, 74, 677, 15, 17, 14, 4865, 8615, 43, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
In a layered design with a seperate DataAccess layer in .NET where should connection string be managed? === There is a long running habit here where I work that the connection string lives in the web.config, a Sql Connecton object is instantiated in a using block with that connection string and passed to the DataObjects constructor (via a CreateInstance Method as the constructor is private). Something like this: using(SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString)) { DataObject foo = DataObject.CreateInstance(conn); foo.someProperty = "some value"; foo.Insert(); } This all smells to me.. I don't know. Shouldn't the DataLayer class library be responsible for Connection objects and Conenction strings? I'd be grateful to know what others are doing or any good online articles about these kind of design decisions. Consider that the projects we work on are always Sql Server backends and that is extremely unlikely to change. So factory and provider pattern is not what I'm after. It's more about where responsibility lies and where config settings ahould be managed for data layer operation.
0
[ 2, 19, 21, 5385, 69, 704, 29, 21, 10332, 106, 1373, 1054, 20604, 5385, 19, 13, 9, 2328, 113, 378, 2760, 3724, 44, 1471, 60, 800, 3726, 3726, 80, 25, 21, 175, 946, 9474, 235, 113, 31, 170, 30, 14, 2760, 3724, 1551, 19, 14, 2741...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Windows SharePoint Services vs. Microsoft Office SharePoint Server? === There's Windows SharePoint Services (WSS) and then there is Microsoft Office SharePoint Server (MOSS). MOSS considerably more expensive than WSS (which ships as part of Microsoft Server licensing). My question is: what does MOSS do that makes it <i>worth</i> the extra cost? ..and does <a href="http://www.microsoft.com/Enterprisesearch/">Microsoft Search Server</a> not compete with the <a href="http://msdn.microsoft.com/en-us/library/ms563661.aspx">Business Data Cache</a> (BDC)?
0
[ 2, 1936, 1891, 3132, 687, 4611, 9, 7099, 488, 1891, 3132, 8128, 60, 800, 3726, 3726, 80, 22, 18, 1936, 1891, 3132, 687, 13, 5, 10268, 18, 6, 17, 94, 80, 25, 7099, 488, 1891, 3132, 8128, 13, 5, 7076, 18, 6, 9, 8188, 10259, 91, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Your preferred C/C++ header policy for big projects? === When working on a big C/C++ project, do you have some specific rules regarding the *#include* within source or header files? For instance, we can imagine to follow one of these two excessive rules: 1. *#include* are forbidden in *.h* files; it is up to each *.c* file to include all the headers it needs 2. Each *.h* file should include all its dependancies, i.e. it should be able to compile alone without any error. I suppose there is trade-off in between for any project, but what is yours? Do you have more specific rules? Or any link that argues for any of the solutions?
0
[ 2, 154, 5981, 272, 118, 150, 20512, 157, 106, 1486, 26, 580, 2314, 60, 800, 3726, 3726, 76, 638, 27, 21, 580, 272, 118, 150, 20512, 669, 15, 107, 42, 57, 109, 1903, 1761, 3467, 14, 1637, 5910, 22640, 2483, 363, 1267, 54, 157, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
TreeView label editing question === I have a treeview with nodes like this: "Foo (1234)", and want to allow the user to rename the nodes, but only the Foo part, without (1234). I first tried to change the node text in `BeforeLabelEdit` like this: private void treeView1_BeforeLabelEdit(object sender, NodeLabelEditEventArgs e) { e.Node.Text = "Foo"; } But when I click the node to edit it, "Foo (1234)" appears in the textbox. Okay, then let's try something else. I set `treeView1.LabelEdit` to false, and then do the following: private void treeView1_MouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { if (treeView1.SelectedNode == treeView1.GetNodeAt(e.Location)) { treeView1.SelectedNode.Text = "Foo"; treeView1.LabelEdit = true; treeView1.SelectedNode.BeginEdit(); } } } And then in `AfterLabelEdit`, I set `LabelEdit` back to false. And guess what? This doesn't work either. It changes the node text to "Foo" but the edit textbox does not appear. Any ideas? Thanks
0
[ 2, 1541, 4725, 1899, 9510, 1301, 800, 3726, 3726, 31, 57, 21, 1541, 4725, 29, 16272, 101, 48, 45, 13, 7, 4120, 111, 13, 5, 918, 3965, 6, 7, 15, 17, 259, 20, 1655, 14, 4155, 20, 302, 7259, 14, 16272, 15, 47, 104, 14, 4310, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MS SQL 2k5 Performance: Distinct or full table in WHERE IN statement === We have two Tables: - Document: id, title, document_type_id, showon_id - DocumentType: id, name Relationship: DocumentType hasMany Documents. (Document.document_type_id = DocumentType.id) We wish to retrieve a list of all document types for one given ShowOn_Id. We see two possiblities: SELECT DocumentType.* FROM DocumentType WHERE DocumentType.id IN ( SELECT DISTINCT Document.document_type_id FROM Document WHERE showon_id = 42 ); SELECT DocumentType.* FROM DocumentType WHERE DocumentType.id IN ( SELECT Document.document_type_id FROM Document WHERE showon_id = 42 ); Our question is: when and if is it better to use the DISTINCT to get the smaller record set versus retrieving the whole table and the IN statement walking the table to the first match. (We guess that's what it does ;-)) Is this different for different databases, is there a common answer? Or is there a better way of doing it? (We are in .NET land)
0
[ 2, 4235, 4444, 255, 172, 197, 264, 956, 45, 4421, 54, 503, 859, 19, 113, 19, 3331, 800, 3726, 3726, 95, 57, 81, 7484, 45, 13, 8, 4492, 45, 4924, 15, 581, 15, 4492, 1, 4474, 1, 1340, 15, 298, 218, 1, 1340, 13, 8, 4492, 4474, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Authentication in SQL Sever 2000 for an account not logged into Windows === An advantage by using Windows Authentication is that I do not need to provide a username and password to log into the server as the user currently logged into Windows. But in a specific case I would like to log into the SQL Server as another user, using the same Windows Authenticated ODBC connection. So, the question: Is it possible to log into an SQL Server using Windows Authentication, but not as the user currently logged into Windows (without a dialog asking for username and password)?
0
[ 2, 1936, 27963, 19, 4444, 255, 15114, 824, 26, 40, 2176, 52, 13, 19287, 77, 1936, 800, 3726, 3726, 40, 3314, 34, 568, 1936, 27963, 25, 30, 31, 107, 52, 376, 20, 1181, 21, 4155, 7259, 17, 20884, 20, 6738, 77, 14, 8128, 28, 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...
Views vs. inline subqueries SQL Server 2005/2008 === In certain areas in my application I need data from several tables in the database (I have an application, the application has many attributes, each attribute has several definitions, and each definition has a value). I need the data from all these tables for an application. Should I use a view (one that would be rather large) or subqueries for selecting the records? In the case of subqueries is the optimizer able to work efficiently? I'm also interested if caching will work for subqueries.
0
[ 2, 4146, 4611, 9, 19, 1143, 972, 2005, 2829, 4444, 255, 8128, 812, 118, 2753, 800, 3726, 3726, 19, 1200, 924, 19, 51, 3010, 31, 376, 1054, 37, 238, 7484, 19, 14, 6018, 13, 5, 49, 57, 40, 3010, 15, 14, 3010, 63, 151, 13422, 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...
Question regarding iframe and redirection === I have a webpage (say www.xyz.com/a.asp) .. I am having an iframe in this page which loads a page from a different website (www.abc.com/b.asp)... This b.asp asks few questions to the user and the results are posted to c.asp in my website (www.xyz.com/c.asp). This page (www.xyz.com/c.asp) gets loaded in the iframe. Is there any way so that I can reload the entire webpage and redirect to another wbpage when I get the response from www.abc.com. Sorry if this question is confusing, Any queries please let me know.
0
[ 2, 1301, 3467, 31, 8361, 17, 302, 14706, 872, 800, 3726, 3726, 31, 57, 21, 2741, 6486, 13, 5, 6366, 13, 6483, 9, 15161, 380, 9, 960, 118, 58, 9, 472, 306, 6, 13, 9, 9, 31, 589, 452, 40, 31, 8361, 19, 48, 2478, 56, 19069, 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...
Prevent user from resizing columns with WPF ListView === i wonder how i can prevent a user from resizing GridViewColumns withing a WPF ListView control as google doesn't came up wit a solution. probably one of the wpf guru's over here ;)
0
[ 2, 2501, 4155, 37, 10719, 3335, 7498, 29, 619, 7721, 968, 4725, 800, 3726, 3726, 31, 2666, 184, 31, 92, 2501, 21, 4155, 37, 10719, 3335, 7354, 4725, 716, 4404, 2172, 29, 68, 21, 619, 7721, 968, 4725, 569, 28, 8144, 1437, 22, 38, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
electronic leave application database design === I am currently working on a leave application (which is a subset of my e-scheduler project) and I have my database design as follows: event (event_id, dtstart, dtend... *follows icalendar standard*) event_leave (event_id*, leave_type_id*, total_days) _leave_type (leave_type_id, name, max_carry_forward) _leave_allocation (leave_allocation_id, leave_type_id*, name, user_group_id, total_days, year) _leave_carry_forward(leave_carry_forward_id, leave_type_id*, user_id, year) Does anyone here in stackoverflow also working on an e-leave app? mind to share your database design as I am looking for a better design than mine. The problem with my current design only occurs at the beginning of the year when the system is calculating the number of days that can be carried forward. In total I would have to run 1 + {$number_of users} * 2 queries (the first one to find out the number of allocation rules and the maximum carry forward quota. Then for each user, I need to find out the balance, and then to insert the balance to the database)
0
[ 2, 3253, 767, 3010, 6018, 704, 800, 3726, 3726, 31, 589, 871, 638, 27, 21, 767, 3010, 13, 5, 2140, 25, 21, 16622, 16, 51, 13, 62, 8, 7526, 11203, 106, 669, 6, 17, 31, 57, 51, 6018, 704, 28, 2415, 45, 807, 13, 5, 4943, 38, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Whirlwind tour of Eclipse? === Does anyone know of a whirlwind tour of Eclipse that would help a (former) Visual Studio user get up to speed with it? I just want something that tells me where all the basic features are and what all the cool stuff I've heard so much about is? So far I've been using it mostly as a text editor and have had some luck compiling and running programs in it. But... I'm a bit confused, for instance sometimes I can't seem to get out of debug mode. I'me sure I'm just looking in the wrong places for everything as I'm used to a different interface. Are there plugins for Eclipse that make it look and feel more like Visual Studio? I'm using Europa at the moment because thats what the rest of my team use, howver I'm more than happy to migrate to Ganemede...
0
[ 2, 29096, 846, 16, 11652, 60, 800, 3726, 3726, 630, 1276, 143, 16, 21, 29096, 846, 16, 11652, 30, 83, 448, 21, 13, 5, 12051, 6, 3458, 1120, 4155, 164, 71, 20, 1362, 29, 32, 60, 31, 114, 259, 301, 30, 2609, 55, 113, 65, 14, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
The ways of Database Integration in SOA/ESB? === *Situation: Some Bank has an old legacy ABS (Automatic bank system).* Bank wants to: 1. notify old legacy CRM system about client's account changes (Publish operation). 2. check PIN codes of client cards (Request/Response operation) - in synchronious mode. ABS is implemented in very old private technologies with StoredProcedures calls. So, I can connect to this system via database only. Which ways of Java/.Net (ESB) application integration with old/legacy database system do you know? **Write/Publish operation** Any vendor's databse server: 1. Scan tables for new entries - too low speed. 2. Trigger (if they're supported) which handles SQL updates and inserts and writes event information to some table. And application listener should be checking this table for events. 3. Oracle serevr : PL/SQL TRIGGERS + Oracle AQ. And listener for JMS. **Reading operation** 1. Just write result into tables of ABS - dangerous. 2. ... How to notify legacy database system about responses in synchronious mode??? How to implement Write/Read in synchronious mode??? **Again, which ways of Java/.Net (ESB) application integration with old/legacy database system do you know?**
0
[ 2, 14, 2847, 16, 6018, 8078, 19, 86, 58, 118, 160, 220, 60, 800, 3726, 3726, 1637, 18, 12866, 857, 45, 109, 965, 63, 40, 315, 7780, 12178, 13, 5, 23465, 965, 329, 6, 9, 2483, 965, 2846, 20, 45, 137, 9, 52, 8612, 315, 7780, 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...
What is the best way to organise e-mails in MS Outlook? === Every software development professional (and especially project managers) has to deal with a never ending stream of e-mails. What is the best way of organising them in MS Outlook? Obviously some fancy issue tracking tools give more flexibility but I am interested in plain vanilla approach that can be deployed within most organisations.
0
[ 2, 98, 25, 14, 246, 161, 20, 20119, 13, 62, 8, 8079, 18, 19, 4235, 19837, 60, 800, 3726, 3726, 352, 2306, 522, 736, 13, 5, 290, 1118, 669, 12657, 6, 63, 20, 1183, 29, 21, 243, 3119, 3766, 16, 13, 62, 8, 8079, 18, 9, 98, 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...
Any complete library for Jabber in Delphi? === I'm looking for for a Jabber library for Delphi, I can see some COM based jabber components. But I'm looking for a real VCL library. Somebody knows one?
0
[ 2, 186, 1279, 1248, 26, 11284, 2102, 19, 23030, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 26, 21, 11284, 2102, 1248, 26, 23030, 15, 31, 92, 196, 109, 13, 960, 432, 11284, 2102, 5090, 9, 47, 31, 22, 79, 699, 26, 21, 683, 566, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Programmatically access currency exchange rates === I'm setting up an online ordering system but I'm in Australia and for international customers I'd like to show prices in US dollars or Euros so they don't have to make the mental effort to convert from Australian dollars. Does anyone know if I can pull up to date exchange rates off the net somewhere in an easy-to-parse format I can access from my PHP script ?
0
[ 2, 625, 6732, 1326, 1381, 10507, 1950, 5332, 800, 3726, 3726, 31, 22, 79, 2697, 71, 40, 2087, 15775, 329, 47, 31, 22, 79, 19, 750, 17, 26, 294, 5279, 31, 22, 43, 101, 20, 298, 7334, 19, 182, 5415, 54, 4669, 18, 86, 59, 221, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 change Visual Studio's default web browser? (not .aspx) === This is a for a Silverlight project that isn't anchored to an .aspx file, so right clicking, etc. is a bit out of the question. Any ideas?
0
[ 2, 184, 107, 42, 753, 3458, 1120, 22, 18, 12838, 2741, 16495, 60, 13, 5, 1270, 13, 9, 472, 306, 396, 6, 800, 3726, 3726, 48, 25, 21, 26, 21, 1172, 3130, 669, 30, 2532, 22, 38, 17277, 20, 40, 13, 9, 472, 306, 396, 3893, 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...
Code to verify updates from the Google Safe Browsing API === In order to verify the data coming from the [Google Safe Browsing API][1], you can calculate a Message Authentication Code (MAC) for each update. The instructions to do this (from Google) are: > The MAC is computed from an MD5 Digest > over the following information: > client_key|separator|table > data|separator|client_key. The > separator is the string:coolgoog: - > that is a colon followed by "coolgoog" > followed by a colon. The resulting > 128-bit MD5 digest is websafe base-64 > encoded. There's also example data to check against: client key: "8eirwN1kTwCzgWA2HxTaRQ==" response: [goog-black-hash 1.180 update][mac=dRalfTU+bXwUhlk0NCGJtQ==] +8070465bdf3b9c6ad6a89c32e8162ef1 +86fa593a025714f89d6bc8c9c5a191ac +bbbd7247731cbb7ec1b3a5814ed4bc9d *Note that there are tabs at the end of each line. I'm unable to get a match. Please either point out where I'm going wrong, or just write the couple of lines of Python code necessary to do this! FWIW, I expected to be able to do something like this: >>> s = "+8070465bdf3b9c6ad6a89c32e8162ef1\t\n+86fa593a025714f89d6bc8c9c5a191ac\t\n+bbbd7247731cbb7ec1b3a5814ed4bc9d\t" >>> c = "8eirwN1kTwCzgWA2HxTaRQ==" >>> hashlib.md5("%s%s%s%s%s" % (c, ":coolgoog:", s, ":coolgoog:", c)).digest().encode("base64") 'qfb50mxpHrS82yTofPkcEg==\n' But as you can see, 'qfb50mxpHrS82yTofPkcEg==\n' != 'dRalfTU+bXwUhlk0NCGJtQ=='. [1]: http://code.google.com/apis/safebrowsing/developers_guide.html
0
[ 2, 1797, 20, 21012, 16779, 37, 14, 8144, 1834, 10175, 68, 21, 2159, 800, 3726, 3726, 19, 389, 20, 21012, 14, 1054, 880, 37, 14, 636, 16111, 4875, 1834, 10175, 68, 21, 2159, 500, 2558, 165, 500, 15, 42, 92, 18469, 21, 2802, 27963, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cast or convert when retrieving data from a database? === When accessing an object in a DataTable retrieved from a database, are there any reasons not to cast the object into your desired type, or are there reasons to use convert? I know the rule is cast when we know what data type we're working with, and convert when attempting to change the data type to something it isn't. Presuming we know what data type is stored in a column, cast seems appropriate, but are there any DB type issues that mean we can't rely on this?
0
[ 2, 1325, 54, 8406, 76, 13, 6239, 3272, 8397, 1054, 37, 21, 6018, 60, 800, 3726, 3726, 76, 1381, 68, 40, 3095, 19, 21, 1054, 5924, 3685, 37, 21, 6018, 15, 50, 80, 186, 2932, 52, 20, 1325, 14, 3095, 77, 154, 9264, 1001, 15, 54, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Writing resultset to file with sorted output === I want to put "random" output from my result set (about 1.5 mil rows) in a file in a sorted manner. I know i can use sort by command in my query but that command is "expensive". Can you tell me is there any algorithm for writing result set rows in a file so the content would be sorted in the end and can i gain in performance with this? I'm using java 1.6, and query has multiple joins.
0
[ 2, 1174, 1736, 1198, 20, 3893, 29, 22554, 5196, 800, 3726, 3726, 31, 259, 20, 442, 13, 7, 2195, 5555, 7, 5196, 37, 51, 829, 309, 13, 5, 6901, 137, 9, 264, 7097, 11295, 6, 19, 21, 3893, 19, 21, 22554, 3832, 9, 31, 143, 31, 92...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Windows Explorer gets its “Folder Up” and “Back” icons from? === XP-specific answers preferred, but others are welcome too.
0
[ 2, 113, 1936, 8520, 3049, 82, 13, 1, 8814, 106, 71, 1, 17, 13, 1, 1958, 1, 9801, 18, 37, 60, 800, 3726, 3726, 23045, 8, 9219, 6709, 5981, 15, 47, 654, 50, 5575, 266, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Is there a way to enhance by CSS an HTML <select> and its <option> on IE 6 ? === Internet explorer 6 seems totally ignore CSS classes or rules on select, option or optgroup tags. Is there a way to bypass that limitation (except install a recent version of IE) ?
0
[ 2, 25, 80, 21, 161, 20, 10734, 34, 272, 18, 18, 40, 13, 15895, 13, 1, 18, 16964, 1, 17, 82, 13, 1, 2594, 3309, 1, 27, 13, 660, 400, 13, 60, 800, 3726, 3726, 2620, 8520, 400, 2206, 5139, 7174, 272, 18, 18, 2684, 54, 1761, 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...
Default segment name in rails resources routing === I want to create a route in my rails application along the lines of /panda/blog /tiger/blog /dog/blog where panda, tiger, and dog are all permalinks (for an animal class) The normal way of doing this map.resources :animals do |animal| animal.resource :blog end would create routes along the lines of /animals/panda/blog /animals/tiger/blog /animals/dog/blog But i do not want the first segment, as it will always be the same. I know I could do this by manual routing, but I want to know how to do using rails resources, as having animals and blogs is a requirement for me.
0
[ 2, 12838, 5631, 204, 19, 2240, 18, 2566, 19880, 800, 3726, 3726, 31, 259, 20, 1600, 21, 858, 19, 51, 2240, 18, 3010, 303, 14, 1560, 16, 13, 118, 3206, 593, 118, 220, 5567, 13, 118, 38, 9038, 118, 220, 5567, 13, 118, 8462, 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...
Teamcity Artifact paths and how do they work? === Can anyone give me an example of what the Artifact paths setting defined for a build configuration could look like if I want to create two artifacts dist and source where I am using the sln 2008 build runner and building my projects using the default bin/Release? <pre> **/Source/Code/MyProject/bin/Release/*.* => dist **/*.* => source </pre> I get two artifact roots dist and source but under dist I get the whole directory structure (Source/Code/MyProject/bin/Release) which I don't want and under source I get the whole thing along with obj and bin/Release which I do not want. Can you give some advice on how to do this correctly? Do I need to change the target location for all the projects I am building to be able to get this thing to work?
0
[ 2, 173, 5788, 22929, 12074, 17, 184, 107, 59, 170, 60, 800, 3726, 3726, 92, 1276, 590, 55, 40, 823, 16, 98, 14, 22929, 12074, 2697, 2811, 26, 21, 1895, 8091, 110, 361, 101, 100, 31, 259, 20, 1600, 81, 10996, 1460, 38, 17, 1267, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL: WHERE IN (array of IDs) === I have webservice which is passed an array of ints. I'd like to do the select statement as follows but keep getting errors. Do I need to change the array to a string? [WebMethod] public MiniEvent[] getAdminEvents(int buildingID, DateTime startDate) command.CommandText = @"SELECT id, startDateTime, endDateTime From tb_bookings WHERE buildingID IN (@buildingIDs) AND startDateTime <= @fromDate"; SqlParameter buildID= new SqlParameter("@buildingIDs", buildingIDs); Thanks Barry
0
[ 2, 4444, 255, 45, 113, 19, 13, 5, 8576, 93, 16, 13, 9178, 6, 800, 3726, 3726, 31, 57, 2741, 11449, 56, 25, 1100, 40, 7718, 16, 19, 38, 18, 9, 31, 22, 43, 101, 20, 107, 14, 5407, 3331, 28, 2415, 47, 643, 1017, 11908, 9, 107...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
LINQ to SQL Table Dependency === If I have two tables... Category and Pet. Is there a way in LINQ to SQL to make the result of the query to some map to a strongly typed variable (such as: PetWithCategoryName) so that I can strongly pass it to a MVC View? I currently have Category and Pet classes... should I make another one? Maybe I missing something here. Can any of you enlighten me? from p in petTable join c in categoryTable on p.CategoryId equals c.Id where (c.Id == categoryId.Value) select new { p.Id, p.Name, p.Description, p.Price, CategoryName = c.Name } <?xml version="1.0" encoding="utf-8" ?> <Database Name="PetShop" xmlns="http://schemas.microsoft.com/linqtosql/mapping/2007"> <Table Name="Category" Member="PetShop.Models.Category"> <Type Name="PetShop.Models.Category"> <Column Name="Id" Member="Id" IsDbGenerated="true" IsPrimaryKey="true" /> <Column Name="Name" Member="Name" /> <Column Name="Description" Member="Description" /> </Type> </Table> <Table Name="Pet" Member="PetShop.Models.Pet"> <Type Name="PetShop.Models.Pet"> <Column Name="Id" Member="Id" IsDbGenerated="true" IsPrimaryKey="true" /> <Column Name="Name" Member="Name" /> <Column Name="Description" Member="Description" /> <Column Name="ImageUrl" Member="ImageUrl" /> <Column Name="Price" Member="Price" /> <Column Name="CategoryId" Member="CategoryId" /> <Association Name="FK_Pet_Category" Member="Category" ThisKey="CategoryId" OtherKey="Id" IsForeignKey="true" /> </Type> </Table> </Database>
0
[ 2, 6294, 1251, 20, 4444, 255, 859, 26835, 800, 3726, 3726, 100, 31, 57, 81, 7484, 9, 9, 9, 3230, 17, 3170, 9, 25, 80, 21, 161, 19, 6294, 1251, 20, 4444, 255, 20, 233, 14, 829, 16, 14, 25597, 20, 109, 2942, 20, 21, 5020, 1001...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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#] Serialization problem === The situation is like this : Main project A. and a class library B. **A references B** Project B has the classes that will be serialized. The classes are used in A. Now, the problem appears when from Project A I try to serialize the objects from B. An exception is thrown that says a class from A cannot be serialized. This is the strange part since in the classes in B I cant have a reference to those in A. (a circular dependency would be created). How can I track down the problem ? because the exception method doesn't say where the Problem appeared ?
0
[ 2, 636, 150, 5910, 500, 5956, 1829, 1448, 800, 3726, 3726, 14, 1858, 25, 101, 48, 13, 45, 407, 669, 21, 9, 17, 21, 718, 1248, 334, 9, 13, 1409, 58, 7231, 334, 1409, 669, 334, 63, 14, 2684, 30, 129, 44, 27877, 9, 14, 2684, 50...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 would be quicker Flash or Javascript? === I have an idea for a website which involves a canvas area which has no limit to its size. Basically you would be able to add items to the canvas (notes, photos whatever really). You would then be able to drag the canvas which would move those items along with the canvas until they disappear of screen. If you dragged the canvas back the other way they would appear again. Question: Which would be the best suited to this type of thing, Flash or Javacsript? My main worries are the speed at which javascript/ flash could handle moving multiple items around on screen in the way discribed. Which language would handle better for a user on a slow machine.
0
[ 2, 98, 83, 44, 21927, 4433, 54, 8247, 8741, 60, 800, 3726, 3726, 31, 57, 40, 882, 26, 21, 2271, 56, 6569, 21, 9696, 217, 56, 63, 90, 4496, 20, 82, 1072, 9, 11374, 42, 83, 44, 777, 20, 3547, 3755, 20, 14, 9696, 13, 5, 10280, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 use oracle.jdbc.driver.OracleLog to debug Oracle 10g database connection failures? === I am receiving the error below from the Oracle JDBC driver (ojdbc14.jar) when trying to obtain a connection to a 10g database. The driver has an oracle.jdbc.driver.OracleLog class which could help but the Oracle documentation is unclear how best to use it. Has anyone had any success using this class? If so, some guidance on its use would be appreciated. java.sql.SQLException: No more data to read from socket at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:112) at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:146) at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:208) at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1 (T4CMAREngine.java:1118) at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1 (T4CMAREngine.java:1070) at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOsesskey (T4CTTIoauthenticate.java:266) at oracle.jdbc.driver.T4CConnection.logon (T4CConnection.java:357) at oracle.jdbc.driver.PhysicalConnection.<init> (PhysicalConnection.java:414) at oracle.jdbc.driver.T4CConnection.<init> (T4CConnection.java:165) at oracle.jdbc.driver.T4CDriverExtension.getConnection (T4CDriverExtension.java:35) at oracle.jdbc.driver.OracleDriver.connect (OracleDriver.java:801) at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection (OracleDataSource.java:297) at oracle.jdbc.pool.OracleDataSource.getConnection (OracleDataSource.java:221) at oracle.jdbc.pool.OracleDataSource.getConnection (OracleDataSource.java:165)
0
[ 2, 184, 107, 31, 275, 15759, 9, 728, 43, 7229, 9, 21752, 9, 6055, 5615, 5567, 20, 121, 16254, 15759, 332, 263, 6018, 2760, 2990, 18, 60, 800, 3726, 3726, 31, 589, 3396, 14, 7019, 1021, 37, 14, 15759, 487, 43, 7229, 2425, 13, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WPF quickstart documentation === I am totally new to WPF and looking for good quickstart documentation to start with. I will buy the book WPF Unleashed from Adam Nathan, but thats more a reference than a quickstart i think. I just want you to tell me your favorite links and books and maybe demo applications concerning wpf development.
0
[ 2, 619, 7721, 2231, 13680, 13945, 800, 3726, 3726, 31, 589, 5139, 78, 20, 619, 7721, 17, 699, 26, 254, 2231, 13680, 13945, 20, 799, 29, 9, 31, 129, 3034, 14, 360, 619, 7721, 25092, 37, 2406, 6222, 15, 47, 30, 18, 91, 21, 2801, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 simulate a WAN network === Simplified, I have an application where data is intended to flow over the internet between two servers. Ideally, I'd like to test what the performance of the application will be like before it gets deployed. What I thought I would do was the following: 1. Setup up 3 machines (VMware instances) 2. Install the 2 applications on two of the servers. 3. Setup up the 3rd server to sit between the two machines by doing some sort of magic with Routing and Remote Access on Windows 2003 4. Install either [Traffic Shaper XP][1] or [NetLimiter][2] to limit the bandwidth 5. Run something like [TMnetSim Network Simulator][3] to simulate a bad connection. Does this sound like a good idea or are there easier/better ways of doing this? I'm not that comfortable on Linux and my team mates are even less so. [1]: http://bandwidthcontroller.com/trafficShaperXp.html [2]: http://netlimiter.com/ [3]: http://www.tmurgent.com/download%5CTMnetsim32_02040000.zip
0
[ 2, 246, 161, 20, 24969, 21, 10685, 982, 800, 3726, 3726, 13, 11268, 15, 31, 57, 40, 3010, 113, 1054, 25, 2081, 20, 3312, 84, 14, 2620, 128, 81, 17595, 9, 5628, 102, 15, 31, 22, 43, 101, 20, 1289, 98, 14, 956, 16, 14, 3010, 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...