unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
How to define / configure priority for multiple aspects using Spring AOP (or AspectJ) === I have been able to define multiple aspects (one is @Before and another is @Around) using Spring AOP (combined with AspectJ annotations) over a business service class. Currently they are getting called one by one (in sequence). However I would like to know how the priority of calling the aspects can be defined and where. Please guide me with respect to Spring AOP. Please note that I am using Spring 2.5.3 framework. Thanks in advance.
0
[ 2, 184, 20, 9267, 13, 118, 1065, 15951, 9857, 26, 1886, 4842, 568, 1573, 21, 2594, 13, 5, 248, 7289, 728, 6, 800, 3726, 3726, 31, 57, 74, 777, 20, 9267, 1886, 4842, 13, 5, 849, 25, 13, 1, 12750, 17, 226, 25, 13, 1, 10037, 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...
R test for morning rush hour - time vector in interval === I'm trying to create a clean function in R to return TRUE/FALSE if a vector of POSIXlt times are in morning rush hour, i.e. 7.30am to 9.30am Monday to Friday. This is what I've done so far, but it seems a bit long and convoluted. Is it possible to improve on this while keeping the code itself readable? library(lubridate) morning.rush.hour <- function(tm) { # between 7.30am and 9.30am Monday to Friday # vectorised... # HARDCODED times here! tm.mrh.start <- update(tm, hour=7, minute=30, second=0) tm.mrh.end <- update(tm, hour=9, minute=30, second=0) mrh <- new_interval(tm.mrh.start, tm.mrh.end) # HARDCODED weekdays here! ((tm$wday %in% 1:5) & # a weekday? (tm %within% mrh)) } # for test purposes... # nb I'm forcing UTC to avoid the error message "Error in as.POSIXlt.POSIXct(x, tz) : invalid 'tz' value" # - bonus points for solving this too :-) tm <- with_tz(as.POSIXlt(as.POSIXlt('2012-07-15 00:00:01', tz='UTC') + (0:135)*3000), 'UTC') data.frame(tm, day=wday(tm, label=TRUE, abbr=FALSE), morning.rush.hour(tm)) Even better if there is a clean function definition for weekday time ranges like this, as I also have evening rush hour, and daytime which is not rush hour and finally not any of these!
0
[ 2, 761, 1289, 26, 959, 3785, 1671, 13, 8, 85, 7497, 19, 14422, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 21, 2745, 1990, 19, 761, 20, 788, 1151, 118, 13192, 870, 100, 21, 7497, 16, 2353, 6742, 255, 38, 436, 50, 19, 959, 3785...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 volatileread on string doesn't compile === class CFoo { private string _filePathFormatString; public string Foo() { System.Threading.Thread.VolatileRead(ref _filePathFormatString); ... } } string is object, why this VolatileRead doesn't compile? I think it should match VolatileRead(ref object) signature.
0
[ 2, 483, 24208, 10647, 27, 3724, 1437, 22, 38, 26561, 800, 3726, 3726, 718, 10084, 4328, 13, 1, 932, 3724, 13, 1, 16877, 8353, 23588, 11130, 73, 317, 3724, 4310, 111, 5, 6, 13, 1, 329, 9, 96, 22883, 9, 96, 10647, 9, 5847, 58, 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...
Calling a Java function from an applet === All I want to do is call a javascript function from a Applet and pass multiple variables, I'm able to do this with just one variable, but I want to do it with multiple. calling Javascript function from applet and passing one variable which works: msg = "test"; try { getAppletContext().showDocument (new URL("javascript:UpdateComputerDetails(\"" + msg + "\")")); } catch (MalformedURLException me) { } How Can I pass Multiple variables to this function?
0
[ 2, 2555, 21, 8247, 1990, 37, 40, 4037, 38, 800, 3726, 3726, 65, 31, 259, 20, 107, 25, 645, 21, 8247, 8741, 1990, 37, 21, 4037, 38, 17, 1477, 1886, 12157, 15, 31, 22, 79, 777, 20, 107, 48, 29, 114, 53, 7612, 15, 47, 31, 259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to find ClearCase activity's dependents? === As you know, sometimes a UCM activity depends on another activity, and sometimes other activities are depended on that activity. I'm wondering how can I get this information easily? Assuming my input is an activity ID - how do I get these two outputs easily? Thank you
0
[ 2, 184, 20, 477, 1207, 10325, 2358, 22, 18, 9063, 18, 60, 800, 3726, 3726, 28, 42, 143, 15, 1030, 21, 12669, 79, 2358, 9597, 27, 226, 2358, 15, 17, 1030, 89, 1648, 50, 19961, 27, 30, 2358, 9, 31, 22, 79, 5712, 184, 92, 31, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the command 'sd' do in make file rule? === I have a makefile which has a target for gdb as below. I dont know what type of programme the 'sd' is ? Man pages help shows sd as "sd - Driver for SCSI Disk Drives". But i think 'sd' used in the below makefile code is a shell command and not a dev special file as described in "man 4 sd ". Is there any Linux command called sd ( man 1 sd ) ? Makefile: ================ ... <snip from- Makefile> gdb: sd gdbserver :9999 my_app .... ====================
0
[ 2, 98, 25, 14, 1202, 13, 22, 18, 43, 22, 107, 19, 233, 3893, 1828, 60, 800, 3726, 3726, 31, 57, 21, 233, 16877, 56, 63, 21, 2935, 26, 489, 9007, 28, 1021, 9, 31, 1049, 143, 98, 1001, 16, 2866, 14, 13, 22, 18, 43, 22, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how can we send email text with image which is in drawable folder? === How can we send image and text with email attachement. image fatch from drawable folder and send it in mail. Please help me. thanks.
0
[ 2, 184, 92, 95, 2660, 8517, 1854, 29, 1961, 56, 25, 19, 2003, 579, 19294, 60, 800, 3726, 3726, 184, 92, 95, 2660, 1961, 17, 1854, 29, 8517, 23453, 1130, 9, 1961, 4211, 673, 37, 2003, 579, 19294, 17, 2660, 32, 19, 4216, 9, 2247, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How can I fetch specific record from json file in android? === I have a text file in my SD card which contains json array. Say for example file is like this: [ {"CountryID" : "1","CountryName" : "Australia"}, {"CountryID" : "2","CountryName" : "Japan"}, {"CountryID" : "3","CountryName" : "China"}, {"CountryID" : "4","CountryName" : "India"}, {"CountryID" : "5","CountryName" : "Holland"} ] Now I want to fetch data based on Country ID. Ex. I want to pass ID = 2 and I get only one object. I can fetch whole file in a string variable and loop through each object to find my data. But I dont think it is best practice to do. Because in my real file I might have more than 1000 objects which I dont want to loop through. THanks in advance. CHeers.
0
[ 2, 184, 92, 31, 18312, 1903, 571, 37, 487, 528, 3893, 19, 13005, 60, 800, 3726, 3726, 31, 57, 21, 1854, 3893, 19, 51, 13, 18, 43, 2056, 56, 1588, 487, 528, 7718, 9, 395, 26, 823, 3893, 25, 101, 48, 45, 636, 13, 1, 7, 10741, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sharepoint document library source === I am working with a SharePoint document library and I'm trying to locate the source of the document library page. I just can't find it, where should it be stored? Thank you!
0
[ 2, 1891, 3132, 4492, 1248, 1267, 800, 3726, 3726, 31, 589, 638, 29, 21, 1891, 3132, 4492, 1248, 17, 31, 22, 79, 749, 20, 12717, 14, 1267, 16, 14, 4492, 1248, 2478, 9, 31, 114, 92, 22, 38, 477, 32, 15, 113, 378, 32, 44, 8214, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Capturing Input in Linux === First, yes I know about [this question][1], but I'm looking for a bit more information that that. I have actually, a fairly similar problem, in that I need to be able to capture input for mouse/keyboard/joystick, and I'd also like to avoid SDL if at all possible. I was more or less wondering if anyone knows where I can get some decent primers on handling input from devices in Linux, perhaps even some tutorials. SDL works great for cross-platform input handling, but I'm not going to be using anything else at all from SDL, so I'd like to cut it out altogether. Suggestion, comments, and help are all appreciated. Thanks! [1]: http://stackoverflow.com/questions/50182/linuxx11-input-library-without-creating-a-window
0
[ 2, 12859, 6367, 19, 13024, 800, 3726, 3726, 64, 15, 1643, 31, 143, 88, 636, 1565, 1301, 500, 2558, 165, 500, 15, 47, 31, 22, 79, 699, 26, 21, 1142, 91, 676, 30, 30, 9, 31, 57, 1121, 15, 21, 6647, 835, 1448, 15, 19, 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...
Managing ThreadPool starvation within a multithreaded work queue processor? === I am investigating the design of a work queue processor where the QueueProcessor retrieves a Command Pattern object from the Queue and executes it in a new thread. I am trying to get my head around a potential Queue lockup scenario where nested Commands may result in a deadlock. E.G. A FooCommand object is placed onto the queue which the QueueProcessor then executes in its own thread. The executing FooCommand places a BarCommand onto the queue. Assuming that the maximum allowed threads was only 1 thread, the QueueProcessor would be in a deadlocked state since the FooCommand is infinitely waiting for the BarCommand to complete. How can this situation be managed? Is a queue object the right object for the job? Are there any checks and balances that can be put into place to resolve this issue? Many thanks. ( application uses C# .NET 3.0 )
0
[ 2, 5616, 9322, 13378, 24920, 363, 21, 1889, 96, 10647, 69, 170, 22521, 14762, 60, 800, 3726, 3726, 31, 589, 12490, 14, 704, 16, 21, 170, 22521, 14762, 113, 14, 22521, 16835, 248, 11917, 18, 21, 1202, 3732, 3095, 37, 14, 22521, 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...
What is the best method to achieve dynamic URL Rewriting in ASP.Net? === I'm currently using [Intelligencia.UrlRewriter][1] does anyone have better suggestions? [1]: http://dotnetguts.blogspot.com/2008/07/url-rewriting-with-urlrewriternet.html
0
[ 2, 98, 25, 14, 246, 2109, 20, 4689, 7782, 287, 6362, 302, 12646, 19, 28, 306, 9, 2328, 60, 800, 3726, 3726, 31, 22, 79, 871, 568, 636, 108, 4213, 2816, 16486, 9, 911, 255, 99, 9657, 500, 2558, 165, 500, 630, 1276, 57, 574, 183...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to capture stdout from a system() command so it can be passed to another function === I'm trying to start an external application through system() - for example system("ls") - i would like to capture it's output as it happens so i can send it to another function for further processing. What's the best way to do that in C/C++ ?
0
[ 2, 246, 161, 20, 3683, 354, 43, 1320, 37, 21, 329, 5, 6, 1202, 86, 32, 92, 44, 1100, 20, 226, 1990, 800, 3726, 3726, 31, 22, 79, 749, 20, 799, 40, 4886, 3010, 120, 329, 5, 6, 13, 8, 26, 823, 329, 5, 7, 7532, 7, 6, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get up to speed on SOA? === I've been given the task of laying the groundwork of a SOA for my client. The goal is to open up various processes in an end-client independent way and also to make data available offline e.g. for reps visiting customers. I do have extensive experience with J2EE (Websphere) and web services but I would appreciate advice on how to build up such an SOA. Where are the pitfalls? What about security? How finely granulated should services be? etc. Links to tutorials and book recommendations would also be useful. Thanks!
0
[ 2, 184, 20, 164, 71, 20, 1362, 27, 86, 58, 60, 800, 3726, 3726, 31, 22, 195, 74, 504, 14, 3005, 16, 11514, 14, 666, 3783, 16, 21, 86, 58, 26, 51, 6819, 9, 14, 1195, 25, 20, 368, 71, 617, 5102, 19, 40, 241, 8, 150, 18513, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual Studio Context Menu Shortcut === Does anyone know the keyboard shortcut in Visual Studio to open the context menu? i.e The equivalent of right clicking. Thanks.
0
[ 2, 3458, 1120, 4141, 11379, 502, 4118, 800, 3726, 3726, 630, 1276, 143, 14, 8896, 502, 4118, 19, 3458, 1120, 20, 368, 14, 4141, 11379, 60, 31, 9, 62, 14, 4602, 16, 193, 25590, 9, 3669, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
MS-SQL Server 2005: Initializing a merge subscription with alternate snapshot location === We started some overseas merge replication 1 year ago and everything is going fine till now. My problem is that we have now so much data in our system that any crash on one of the subscriber's servers will be a disaster: reinitialising a subscription the standard way will take days (our connexions are definitely slow, but already very very expensive)! Among the ideas I have been following up are the following: 1. make a copy of the original database, freeze it, send the files by plane to the subscriber, and initiate replication without snapshot: this is something that was done traditionnaly with older versions of SQL, but it sounds a little bit messy to me: I would have to put my publisher's data in read-only mode and stop all replications untill the operation is completed. 2. make a snapshot of the data, send the snapshot files abroad, install them on the subscriber, and indicate the new snapshot location as an alternate location in the replication properties. This one sounds fair to me (no necessity to suspend ongoing replications, no data freeze), but, on this point, Microsoft help does not ... help. I am sure some of you have already experienced such a situation. What was your choice?
0
[ 2, 4235, 8, 18, 22402, 8128, 18228, 2104, 3335, 21, 12666, 14213, 29, 4912, 29946, 1474, 800, 3726, 3726, 95, 373, 109, 6108, 12666, 23841, 137, 159, 1464, 17, 796, 25, 228, 1123, 3924, 130, 9, 51, 1448, 25, 30, 95, 57, 130, 86, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.NET TreeView won't show images === Having a problem getting a TreeView control to display node images. The code below works sometimes but fails to show any image at other times. <pre><code> private TreeNode AddNodeForCore(TreeNode root, Core c) { string key = GetImageKey(c); TreeNode t = root.Nodes.Add(c.Name, c.Name, key, key); t.Tag = c; return t; } </code></pre> Note that when it fails, the TreeView fails to show any images for any node. The TreeView does have an ImageList assigned to it, and the image key is definitely in the images collection.
0
[ 2, 13, 9, 2328, 1541, 4725, 230, 22, 38, 298, 3502, 800, 3726, 3726, 452, 21, 1448, 1017, 21, 1541, 4725, 569, 20, 3042, 15421, 3502, 9, 14, 1797, 1021, 693, 1030, 47, 13614, 20, 298, 186, 1961, 35, 89, 436, 9, 13, 1, 3515, 1,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to change the credentials of a Windows service using C# === I need to change the credentials of an already existing Windows service using C#. I am aware of two different ways of doing this. 1. ChangeServiceConfig, see ttp://www.pinvoke.net/default.aspx/advapi32.ChangeServiceConfig 2. ManagementObject.InvokeMethod using Change as the method name. Neither seems a very "friendly" way of doing this and I was wondering if I am missing another and better way to do this.
0
[ 2, 98, 25, 14, 246, 161, 20, 753, 14, 5059, 43, 10107, 18, 16, 21, 1936, 365, 568, 272, 5910, 800, 3726, 3726, 31, 376, 20, 753, 14, 5059, 43, 10107, 18, 16, 40, 614, 3149, 1936, 365, 568, 272, 5910, 9, 31, 589, 3854, 16, 81...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Versioning Database Persisted Objects, How would you? === (Not related to versioning the database schema) Applications that interfaces with databases often have domain objects that are composed with data from many tables. Suppose the application were to support versioning, in the sense of CVS, for these domain objects. For some arbitry domain object, how would you design a database schema to handle this requirement? Any experience to share?
0
[ 2, 615, 68, 6018, 22125, 3916, 15, 184, 83, 42, 60, 800, 3726, 3726, 13, 5, 1270, 1597, 20, 615, 68, 14, 6018, 23874, 6, 3767, 30, 6573, 18, 29, 6018, 18, 478, 57, 4603, 3916, 30, 50, 1869, 29, 1054, 37, 151, 7484, 9, 5787, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, NetBean : Access web.xml context parameters from Web Service method? === I am new to java so excuse my lame questions:) I am trying to build a web service in Java NetBeans 6.1 , but I have some troubles with configuration parameters ( like .settings in .net). What is the right way to save and access such settings in a java web service. Is there a way to read context parameters from web.xml in a web method? If no what are the alternatives for storing your configuration variables like pathnames ? Thank you
0
[ 2, 8247, 15, 4275, 863, 210, 13, 45, 1381, 2741, 9, 396, 8184, 4141, 12905, 37, 2741, 365, 2109, 60, 800, 3726, 3726, 31, 589, 78, 20, 8247, 86, 6658, 51, 17182, 2346, 45, 6, 31, 589, 749, 20, 1895, 21, 2741, 365, 19, 8247, 42...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can anyone recommend a C++ std::map replacement container? === Maps are great to get things done easily, but they are memory hogs and suffer from caching issues. And when you have a map in a critical loop that can be bad. So I was wondering if anyone can recommend another container that has the same API but uses lets say a vector or hash implementation instead of a tree implementation. My goal here is to swap the containers and not have to rewrite all the user code that relies on the map.
0
[ 2, 92, 1276, 12360, 21, 272, 20512, 354, 43, 45, 45, 15022, 4610, 12147, 60, 800, 3726, 3726, 6867, 50, 374, 20, 164, 564, 677, 2351, 15, 47, 59, 50, 1912, 13716, 18, 17, 6586, 37, 1658, 7192, 1549, 9, 17, 76, 42, 57, 21, 2942...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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++ Function List === I'm working on a fairly complex project, a custom encryption routine if you will (just for fun) and I've run into this issue in designing my code layout. I have a number of functions that I want to be able to call by index. Specifically, I need to be able to call one randomly for the encrypt process, but then address that by a specific index in the decrypt process. I was considering a classic function array, but my main concern is that a function array would be tricky to maintain, and a little ugly. (The goal is to get each function pair in a separate file, to reduce compile times and make the code easier to manage.) Does anyone have a more elegant C++ solution as an alternative to a function array? Speed isn't really an issue, I'm more worried about maintainability. -Nicholas
0
[ 2, 272, 20512, 1990, 968, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 6647, 1502, 669, 15, 21, 5816, 24420, 8275, 100, 42, 129, 13, 5, 2759, 26, 2414, 6, 17, 31, 22, 195, 485, 77, 48, 1513, 19, 15026, 51, 1797, 9106, 9, 31, 57...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there an alternative to FTP? === I am trying to find an alternative to FTP? It's a single file transfer up to 4gb. Any suggestions? maybe HTTP? Or should I stick it out with FTP?
2
[ 2, 25, 80, 40, 2676, 20, 1187, 306, 60, 800, 3726, 3726, 31, 589, 749, 20, 477, 40, 2676, 20, 1187, 306, 60, 32, 22, 18, 21, 345, 3893, 2617, 71, 20, 268, 11400, 9, 186, 18389, 60, 913, 7775, 60, 54, 378, 31, 5258, 32, 70, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Tool for calculating cyclomatic complexity === Can you recommend free tools for calcualting cyclomatic complexity. Looking for all languages. One tool/language per answer please.
0
[ 2, 5607, 26, 22937, 12833, 6732, 12745, 800, 3726, 3726, 92, 42, 12360, 551, 4672, 26, 13, 16304, 6948, 1203, 12833, 6732, 12745, 9, 699, 26, 65, 2556, 9, 53, 5607, 118, 7020, 416, 1623, 2247, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Saving contents of the WMD Editor Control === I'm trying to implement the WMD editor used on StackOverflow to create some basic Wiki-style functionality. I'm up to the point where it's time to save to the database, but I'm unsure as to what I should be saving. If I save the produced HTML then I can retrieve and display it correctly, but on re-edit I'm faced with editing HTML, not Markdown. However, if I save the Markdown I can't see any way of converting this back to HTML to display, and looking at StackOverflow it sends the browser HTML. I'm guessing that I don't need to save both, so what simple thing am I missing?
0
[ 2, 7599, 8478, 16, 14, 19312, 43, 1835, 569, 800, 3726, 3726, 31, 22, 79, 749, 20, 8713, 14, 19312, 43, 1835, 147, 27, 7566, 2549, 9990, 20, 1600, 109, 2125, 13, 17375, 8, 4381, 18548, 9, 31, 22, 79, 71, 20, 14, 454, 113, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MSWinsock.Winsock event handling in VisualBasic === I'm trying to handle Winsock_Connect event (Actually I need it in Excel macro) using the following code: Dim Winsock1 As Winsock Sub Init() Set Winsock1 = CreateObject("MSWinsock.Winsock") Winsock1.RemoteHost = "MyHost" Winsock1.RemotePort = "22" Winsock1.Connect Do While (Winsock1.State <> sckConnected) Sleep 200 Loop End Sub Private Sub Winsock1_Connect() MsgBox "Winsock1::Connect" End Sub But it never goes to Winsock1_Connect subroutine although Winsock1.State is "Connected". Can anybody tell me, where I'm wrong?
0
[ 2, 4235, 4181, 18, 5668, 9, 4181, 18, 5668, 807, 7988, 19, 3458, 26467, 800, 3726, 3726, 31, 22, 79, 749, 20, 3053, 4041, 5668, 1, 25996, 807, 13, 5, 15661, 31, 376, 32, 19, 20700, 9069, 6, 568, 14, 249, 1797, 45, 5937, 4041, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
System.Diagnostics.Process.Start weird behaviour. === I'm writing an application to start and monitor other applications in C#. I'm using the System.Diagnostics.Process class to start applications and then monitor the applications using the Process.Responding property to poll the state of the application every 100 milisecs. I use Process.CloseMainWindow to stop the application or Process.Kill to kill it if it's not responding. I've noticed a weird behaviour where sometimes the process object gets into a state where the responding property always returns true even when the underlying process hangs in a loop and where it doesn't respond to CloseMainWindow. One way to reproduce it is to poll the Responding property right after starting the process instance. So for example _process.Start(); bool responding = _process.Responding; will reproduce the error state while _process.Start(); Thread.Sleep(1000); bool responding = _process.Responding; will work. Reducing the sleep period to 500 will introduce the error state again. Something in calling _process.Responding too fast after starting seems to prevent the object from getting the right windows message queue handler. I guess I need to wait for _process.Start to finish doing it's asynchronous work. Is there a better way to wait for this than calling Thread.Sleep ? I'm not too confident that the 1000 ms will always be enough.
0
[ 2, 329, 9, 4286, 21944, 18, 9, 16835, 9, 13680, 5455, 7727, 9, 800, 3726, 3726, 31, 22, 79, 1174, 40, 3010, 20, 799, 17, 7626, 89, 3767, 19, 272, 5910, 9, 31, 22, 79, 568, 14, 329, 9, 4286, 21944, 18, 9, 16835, 718, 20, 799,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Command line program to create website screenshots (on Linux) === What is a good command line tool to create screenshots of websites on Linux? I need to automatically generate screenshots of websites without human interaction. The only tool that I found was [khtml2png][1], but I wonder if there are others that aren't based on khtml (i.e. have good JavaScript support, ...). [1]: http://khtml2png.sourceforge.net/
0
[ 2, 1202, 293, 625, 20, 1600, 2271, 2324, 7868, 18, 13, 5, 218, 13024, 6, 800, 3726, 3726, 98, 25, 21, 254, 1202, 293, 5607, 20, 1600, 2324, 7868, 18, 16, 13931, 27, 13024, 60, 31, 376, 20, 7499, 7920, 2324, 7868, 18, 16, 13931, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
nginx setup question === I know this is not directly a programming question, but people on stackoverflow seems to be able to answer any question. I have a server running Centos 5.2 64 bit. Pretty powerful dual core 2 server with 4GB memory. It mostly serves static files, flash and pictures. When I use lighttpd it easily serves over 80 MB/sec, but when I test with nginx it drops down to less than 20 MB/sec. My setup is pretty straight forward, uses the default setup file, and I have added the following user lighttpd; worker_processes 8; worker_rlimit_nofile 206011; #worker_rlimit_nofile 110240; error_log /var/log/nginx/error.log; #error_log /var/log/nginx/error.log notice; #error_log /var/log/nginx/error.log info; pid /var/run/nginx.pid; events { worker_connections 4096; } http { .... keepalive_timeout 2; .... } And I thought nginx was supposed to be at least as powerful, so I must be not doing something.
0
[ 2, 13, 2723, 108, 396, 18161, 1301, 800, 3726, 3726, 31, 143, 48, 25, 52, 1703, 21, 3143, 1301, 15, 47, 148, 27, 7566, 2549, 9990, 2206, 20, 44, 777, 20, 1623, 186, 1301, 9, 31, 57, 21, 8128, 946, 5802, 759, 331, 9, 135, 4384,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Easier way to start debugging a windows service in C# === Is there a way to easier start stepping through code except to start the service through the Windows Service Controll Management and then attach the debugger to the thread? It's kind of cumbersome and I'm wondering if there is not a more straight-forward approach.
0
[ 2, 4950, 161, 20, 799, 121, 16254, 2762, 21, 1936, 365, 19, 272, 5910, 800, 3726, 3726, 25, 80, 21, 161, 20, 4950, 799, 9451, 120, 1797, 1613, 20, 799, 14, 365, 120, 14, 1936, 365, 569, 255, 1097, 17, 94, 19514, 14, 121, 2345, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 java.lang.UnsatisfiedLinkError ... (Operation Failed: 14) === I am trying to deploy our eRCP (embedded Rich Client Platform) application on a Windows CE5 Professional device. While the eRCP demo applications work fine on the J9 VM upon starting our application I get the following exception: !ENTRY org.eclipse.osgi 4 0 2008-09-24 11:01:15.088 !MESSAGE An error occurred while automatically activating bundle org.eclipse.ercp.swt (63). !STACK 0 org.osgi.framework.BundleException: Exception in org.eclipse.ercp.swt.Activator.start() of bundle org.eclipse.ercp.swt. [...] Caused by: java.lang.UnsatisfiedLinkError: \eRCP\plugins\org.eclipse.ercp.swt.wince5_1.2.0\os\win32\arm\eswt-converged.dll (Operation Failed: 14) at java.lang.ClassLoader.loadLibraryWithPath(Unknown Source) at java.lang.ClassLoader.loadLibraryWithClassLoader(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at org.eclipse.ercp.swt.Activator.start(Unknown Source) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Unknown Source) ... 33 more I cannot find anything on the web what "Operation Failed: 14" means. I guess it may be some return value from a native function, but cannot be sure. The DLL *is* present at the location specified and I also tried to put it in the \j9\bin directory.
0
[ 2, 98, 25, 8247, 9, 9949, 9, 1020, 18, 5166, 18, 1707, 69, 6258, 29992, 13, 9, 9, 9, 13, 5, 11377, 1702, 45, 513, 6, 800, 3726, 3726, 31, 589, 749, 20, 17617, 318, 13, 106, 7439, 13, 5, 1503, 4283, 7424, 2042, 6819, 2452, 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...
How to Enable/Disable MenuItem and ToolButton together === I'm a newbie in C# bu I'm experienced Delphi developer. In Delphi I can use same code for MenuItem and ToolButton using TAction.OnExecute event and I can disable/enable MenuItem and ToolButton together using TAction.OnUpdate event. Is there a similar way to do this in C# without using external libraries? Or more - How C# developers share code between different controls?
0
[ 2, 184, 20, 9240, 118, 2906, 579, 11379, 2119, 79, 17, 5607, 811, 444, 429, 800, 3726, 3726, 31, 22, 79, 21, 78, 5893, 19, 272, 5910, 3183, 31, 22, 79, 3882, 23030, 10058, 9, 19, 23030, 31, 92, 275, 205, 1797, 26, 11379, 2119, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 processes are using which ports on unix? === I need to find out what ports are attached to which processes on a unix machine (HP Itanium). Unfortunately, the <i>lsof</i> is not installed and I have no way of installing it. Does anyone know an alternative method? A fairly lengthy google hasn't turned up anything. Thanks.
0
[ 2, 98, 5102, 50, 568, 56, 9551, 27, 22540, 60, 800, 3726, 3726, 31, 376, 20, 477, 70, 98, 9551, 50, 3638, 20, 56, 5102, 27, 21, 22540, 1940, 13, 5, 12491, 32, 210, 2187, 6, 9, 6200, 15, 14, 13, 1, 49, 1, 7532, 1041, 1, 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...
How do I escape a script to an external editor and return afterwards? === Specifically I have a PHP command-line script that at a certain point requires input from the user. I would like to be able to execute an external editor (such as vi), and wait for the editor to finish execution before resuming the script. My basic idea was to use a temporary file to do the editing in, and to retrieve the contents of the file afterwards. Something along the lies of: $filename = '/tmp/script_' . time() . '.tmp'; get_user_input ($filename); $input = file_get_contents ($filename); unlink ($filename); I suspect that this isn't possible from a PHP command-line script, however I'm hoping that there's some sort of shell scripting trick that can be employed to achieve the same effect. Suggestions for how this can be achieved in other scripting languages are also more than welcome.
0
[ 2, 184, 107, 31, 2220, 21, 3884, 20, 40, 4886, 1835, 17, 788, 4601, 60, 800, 3726, 3726, 3524, 31, 57, 21, 13, 26120, 1202, 8, 1143, 3884, 30, 35, 21, 1200, 454, 4781, 6367, 37, 14, 4155, 9, 31, 83, 101, 20, 44, 777, 20, 156...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Monitoring a server-side process on Rails application using AJAX XMLHttpRequest === I'm using the following in the web page but can't get a response from the server while it's processing <script type="text/javascript"> <!-- function updateProgress() { //alert('Hello'); new Ajax.Request('/fmfiles/progress_monitor', { parameters: 'authenticity_token=' + encodeURIComponent(AUTH_TOKEN), onSuccess: function(response) { alert(response.responseText); fillProgress('progressBar',response.responseText); } }); } //--> </script> <% form_for( :fmfile, :url => '/fmfiles', :html => { :method => :post, :name => 'Form_Import', :enctype => 'multipart/form-data' } ) do |f| %> ... <%= f.file_field :document, :accept => 'text/xml', :name => 'fmfile_document' %> <%= submit_tag 'Import', :onClick => "setInterval('updateProgress()', 2000);" %> The 'create' method in fmfiles_controller.rb then happily processes the file and gets the right results (as per the submit button on the form). If I uncomment the '//alert('Hello')' line I get a dialog saying Hello every 2 seconds ... as expected. However, the server never logs any call to 'progress_monitor' method in 'files' not even a failed attempt. If I click the link <a href="#" onclick="updateProgress();">Run</a> it makes a call to the server, gets a response and displays the dialog, so I assume the routes and syntax and naming is all OK. I really don't know why this isn't working. Is it because 2 methods in the same controller are being called via URLs? (N.B. This follows on from another [question][1], but I think it's sufficiently different to merit its own question.) [1]: http://stackoverflow.com/questions/120201/updating-server-side-progress-on-rails-application
0
[ 2, 8984, 21, 8128, 8, 1416, 953, 27, 2240, 18, 3010, 568, 20624, 23504, 21127, 99, 10351, 800, 3726, 3726, 31, 22, 79, 568, 14, 249, 19, 14, 2741, 2478, 47, 92, 22, 38, 164, 21, 1627, 37, 14, 8128, 133, 32, 22, 18, 5511, 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...
View Temporary Table Created from Stored Procedure === I have a stored procedure in SQL 2005. The Stored Procedure is actually creating temporary tables in the beginning of SP and deleting it in the end. I am now debugging the SP in VS 2005. In between the SP i would want to know the contents into the temporary table. Can anybody help in in viewing the contents of the temporary table at run time. Thanks Vinod T
0
[ 2, 1418, 4700, 859, 679, 37, 8214, 7004, 800, 3726, 3726, 31, 57, 21, 8214, 7004, 19, 4444, 255, 812, 9, 14, 8214, 7004, 25, 1121, 2936, 4700, 7484, 19, 14, 997, 16, 3782, 17, 121, 1336, 68, 32, 19, 14, 241, 9, 31, 589, 130, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 write an installer that checks for openGL support? === We have a 3D viewer that uses OpenGL, but our clients sometimes complain about it "not working". We suspect that most of these issues stem from them trying to use, what is in effect a modern 3d realtime game, on a businiss laptop computer. **How can we, in the windows msi installer we use, check for support for openGL?** And as a side note, if you can answer "List of OpenGL supported graphic cards?", that would also be greate. Strange that google doesnt help here..
0
[ 2, 184, 20, 2757, 40, 16146, 106, 30, 16602, 26, 368, 8430, 555, 60, 800, 3726, 3726, 95, 57, 21, 203, 43, 16812, 30, 2027, 368, 8430, 15, 47, 318, 7421, 1030, 15310, 88, 32, 13, 7, 1270, 638, 7, 9, 95, 7551, 30, 127, 16, 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...
Checking stack usage at compile time === Is there a way to know and output the stack size needed by a function at compile time in C ? Here is what I would like to know : Let's take some function : void foo(int a) { char c[5]; char * s; //do something return; Middle post comment : Please edit this question if you know how to make a closing bracket When compiling this function, I would like to know how much stack space it will consume whent it is called. This might be useful to detect the on stack declaration of a structure hiding a big buffer. I am looking for something that would print something like this : file foo.c : function foo stack usage is `n` bytes
0
[ 2, 9886, 7566, 7514, 35, 26561, 85, 800, 3726, 3726, 25, 80, 21, 161, 20, 143, 17, 5196, 14, 7566, 1072, 851, 34, 21, 1990, 35, 26561, 85, 19, 272, 13, 60, 235, 25, 98, 31, 83, 101, 20, 143, 13, 45, 408, 22, 18, 247, 109, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Delphi 2009 + Unicode + Char-size === I just got Delphi 2009 and have previously read some articles about modifications that might be necessary because of the switch to Unicode strings. Mostly, it is mentioned that sizeof(char) is not guaranteed to be 1 anymore. But why would this be interesting regarding string manipulation? For example, if I use an AnsiString:='Test' and do the same with a String (which is unicode now), then I get Length() = 4 which is correct for both cases. Without having tested it, I'm sure all other string manipulation functions behave the same way and decide internally if the argument is a unicode string or anything else. Why would the actual size of a char be of interest for me if I do string manipulations? (Of course if I use strings as strings and not to store any other data) Thanks for any help! Holger
0
[ 2, 23030, 588, 2754, 28010, 2754, 4892, 8, 10454, 800, 3726, 3726, 31, 114, 330, 23030, 588, 17, 57, 1343, 1302, 109, 3376, 88, 13922, 30, 530, 44, 2378, 185, 16, 14, 5521, 20, 28010, 7887, 9, 1555, 15, 32, 25, 2211, 30, 1072, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to interact between Web App and Windows Form Application === I have a problem where a Web Application needs to (after interaction from the user via Javascript) &nbsp;&nbsp; 1) open a Windows Forms Application &nbsp;&nbsp; 2) send a parameter to the app (e.g. an ID) Correspondingly, the Windows Forms Application should be able to &nbsp;&nbsp; 1) send parameters back to the Web Application (updating the URL is ok) &nbsp;&nbsp; 2) open the Web App in a new brower, if it does not exist If many browser windows are open it's important that the correct one is updated. Windows Forms Application is in ASP.NET Browser is IE6+ Question A) Is this possible? Question B) How do I send parameters to an open Windows Forms Application from a Web App? Question C) If updating the Web App, how do I make sure the right browser is targeted?
0
[ 2, 184, 20, 10001, 128, 2741, 4865, 17, 1936, 505, 3010, 800, 3726, 3726, 31, 57, 21, 1448, 113, 21, 2741, 3010, 2274, 20, 13, 5, 5162, 7754, 37, 14, 4155, 1197, 8247, 8741, 6, 279, 13502, 3401, 73, 1569, 13502, 3401, 73, 137, 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...
Avoid RePublishing the web application after Eclipse Shutdown === I am having my web application deployed on Tomcat5.5 and I use it in integration with eclipse 3.2.Each time I close the eclipse and restart it, I need to republish the application even when it hasn't been modified. Is there a way to avoid this or any step I am missing ?
0
[ 2, 2658, 302, 17848, 18491, 68, 14, 2741, 3010, 75, 11652, 28450, 800, 3726, 3726, 31, 589, 452, 51, 2741, 3010, 6698, 27, 2067, 5782, 264, 9, 264, 17, 31, 275, 32, 19, 8078, 29, 11652, 203, 9, 135, 9, 14322, 85, 31, 543, 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 would you implement database updates via email? === I'm building a public website which has its own domain name with pop/smtp mail services. I'm considering giving users the option to update their data via email - something similar to the functionality found in Flickr or Blogger where you email posts to a special email address. The email data is then processed and stored in the underlying database for the website. I'm using ASP.NET and SQL Server and using a shared hosting service. Any ideas how one would implement this, or if it's even possible using shared hosting? Thanks
0
[ 2, 184, 83, 42, 8713, 6018, 16779, 1197, 8517, 60, 800, 3726, 3726, 31, 22, 79, 353, 21, 317, 2271, 56, 63, 82, 258, 4603, 204, 29, 1675, 118, 18, 79, 13726, 4216, 687, 9, 31, 22, 79, 5154, 1438, 3878, 14, 4255, 20, 11100, 66,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
decode a UTF8 string === I have an email subject of the form: =?utf-8?B?T3.....?= The body of the email is utf-8 base64 encoded - and has decoded fine. I am current using Perls Email::MIME module to decode the email. My question is .. What is the meaning of the =?utf-8 delimiter and how do I extract information from this string?
0
[ 2, 121, 9375, 21, 287, 11720, 457, 3724, 800, 3726, 3726, 31, 57, 40, 8517, 1550, 16, 14, 505, 45, 800, 60, 1982, 410, 8, 457, 60, 220, 60, 38, 240, 9, 9, 9, 9, 9, 60, 3726, 14, 358, 16, 14, 8517, 25, 287, 11720, 8, 457, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Modular web apps === I've been looking into [OSGi][1] recently and think it looks like a really good idea for modular Java apps. However, I was wondering how OSGi would work in a web application, where you don't just have code to worry about - also HTML, images, CSS, that sort of thing. At work we're building an application which has multiple 'tabs', each tab being one part of the app. I think this could really benefit from taking an OSGi approach - however I'm really not sure what would be the best way to handle all the usual web app resources. I'm not sure whether it makes any difference, but we're using JSF and [IceFaces][2] (which adds another layer of problems because you have navigation rules and you have to specify all faces config files in your web.xml... doh!) Any suggestions would be greatly appreciated :-) [1]: http://www.osgi.org/Main/HomePage [2]: http://www.icefaces.org
0
[ 2, 20802, 2741, 4865, 18, 800, 3726, 3726, 31, 22, 195, 74, 699, 77, 636, 759, 2234, 500, 2558, 165, 500, 1989, 17, 277, 32, 1879, 101, 21, 510, 254, 882, 26, 20802, 8247, 4865, 18, 9, 207, 15, 31, 23, 5712, 184, 13, 759, 2234...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 do you HATE most in your development team? === It is a good place to give feedbacks to software development team. What do you hate most in your development team? It can be anything like, > the role, the attitude, the design, > the architecture, the technology, the > personality of the other programmer, > the customers, the office environment > etc Do you think it would increase the productivity of your team if that could be changed? Start from me, > I hate people walk pass by my desk and > talk about my screen~~ Please give your generous feedback to your team which can be used as a reference to the developers and team lead.
2
[ 2, 98, 107, 42, 3223, 127, 19, 154, 522, 173, 60, 800, 3726, 3726, 32, 25, 21, 254, 209, 20, 590, 13111, 18, 20, 2306, 522, 173, 9, 98, 107, 42, 3223, 127, 19, 154, 522, 173, 60, 32, 92, 44, 602, 101, 15, 13, 1, 14, 597, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get the source file and the line number of a method declaration? === Considering that the debug data file is available (PDB) and by using either **System.Reflection** or another similar framework such as **Mono.Cecil**, how to retrieve programmatically the source file name and the line number where a type or a member of a type is declared. For example, let's say you have compiled this file into an assembly: *C:\MyProject\Foo.cs* 1: public class Foo 2: { 3: public string SayHello() 4: { 5: return "Hello"; 6: } 7: } How to do something like: MethodInfo methodInfo = typeof(Foo).GetMethod("SayHello"); string sourceFileName = methodInfo.GetSourceFile(); // ?? Does not exist! int sourceLineNumber = methodInfo.GetLineNumber(); // ?? Does not exist! sourceFileName would contain "C:\MyProject\Foo.cs" and sourceLineNumber be equal to 3.
0
[ 2, 184, 20, 164, 14, 1267, 3893, 17, 14, 293, 234, 16, 21, 2109, 7098, 60, 800, 3726, 3726, 5154, 30, 14, 121, 16254, 1054, 3893, 25, 904, 13, 5, 9251, 220, 6, 17, 34, 568, 694, 13, 1409, 10724, 9, 27977, 872, 1409, 54, 226, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 efficiently count the number of keys/properties of an object in JavaScript? === How can you count the number of keys/properties of an object without iterating over the object? i.e. without doing var count = 0; for (k in myobj) if (myobj.hasOwnProperty(k)) count++; Firefox provides a magic `__count__` property, but this isn't available in other implementations.
0
[ 2, 184, 20, 20519, 2468, 14, 234, 16, 5534, 118, 10890, 106, 3915, 16, 40, 3095, 19, 8247, 8741, 60, 800, 3726, 3726, 184, 92, 42, 2468, 14, 234, 16, 5534, 118, 10890, 106, 3915, 16, 40, 3095, 366, 32, 106, 1880, 84, 14, 3095, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
EPiServer Development === Aside from Episerver.com What other websites do people who develop using EPiServer use as development resources!? Been using coderesort.com but I find that it lacks examples of how to do stuff. Many thanks, J
0
[ 2, 5971, 10321, 106, 522, 800, 3726, 3726, 3841, 37, 5971, 10321, 106, 9, 960, 98, 89, 13931, 107, 148, 72, 2803, 568, 5971, 10321, 106, 275, 28, 522, 2566, 187, 60, 74, 568, 1797, 99, 22843, 9, 960, 47, 31, 477, 30, 32, 1792, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Mnesia create table fails === I defined a record named `log`. I want to create an mnesia table with name `log_table`. When I try to write a record to table, I get `bad_type` error as follows: (node1@kitt)4> mnesia:create_table(log_table, [{ram_copies, [node()]}, {attributes, record_info(fields, log)}]). {atomic,ok} (node1@kitt)5> mnesia:dirty_write(log_table, #log{id="hebelek"}). ** exception exit: {aborted,{bad_type,#log{id = "hebelek"}}} in function mnesia:abort/1 What am I missing?
0
[ 2, 307, 2696, 549, 1600, 859, 13614, 800, 3726, 3726, 31, 2811, 21, 571, 377, 13, 1, 5567, 1, 9, 31, 259, 20, 1600, 40, 307, 2696, 549, 859, 29, 204, 13, 1, 5567, 1, 5924, 1, 9, 76, 31, 1131, 20, 2757, 21, 571, 20, 859, 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...
Caluclate client-server time difference in Borland Starteam server 8 === **Problem**. I need a way to find Starteam server time through Starteam Java SDK 8.0. Version of server is 8.0.172 so method `Server.getCurrentTime()` is not available since it was added only in server version 9.0. **Motivation**. My application needs to use views at specific dates. So if there's some difference in system time between client (where the app is running) and server then obtained views are not accurate. In the worst case client requested date is in future for server so the operation results in exception.
0
[ 2, 1658, 10542, 6554, 6819, 8, 10321, 106, 85, 2841, 19, 3895, 618, 778, 6575, 8128, 469, 800, 3726, 3726, 13, 1409, 2740, 2854, 79, 1409, 9, 31, 376, 21, 161, 20, 477, 778, 6575, 8128, 85, 120, 778, 6575, 8247, 13, 18, 43, 197,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Linux commands from Java === Is it possbile to execute linux commands with java? I am trying to create a web servlet to allow ftp users to change their passwords without ssh login access. I would like to execute the next commands: # adduser -s /sbin/nologin clientA -d /home/mainclient/clientA # passwd clientA # cd /home/mainclient; chgrp -R mainclient clientA # cd /home/mainclient/clientA; chmod 770 . thanks in advanced for the feedback.
0
[ 2, 13024, 14294, 37, 8247, 800, 3726, 3726, 25, 32, 12928, 18, 16833, 20, 15644, 13024, 14294, 29, 8247, 60, 31, 589, 749, 20, 1600, 21, 2741, 13, 10321, 1336, 20, 1655, 1187, 306, 3878, 20, 753, 66, 20884, 18, 366, 13, 18, 1635, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Wierd Exception while using DataGridView and possibly Multi-Threads === I followed google to this MSDN forum [thread][1]. [1]: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3905448&SiteID=1 The last answer was and I qoute : "Using threads? Don't" Does someone knows a walk around?
0
[ 2, 11842, 897, 5391, 133, 568, 1054, 16375, 4725, 17, 2879, 1889, 8, 96, 10647, 18, 800, 3726, 3726, 31, 709, 8144, 20, 48, 4235, 43, 103, 5691, 636, 96, 10647, 500, 2558, 165, 500, 9, 636, 165, 500, 45, 7775, 6903, 1106, 723, 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...
Can Java POI write image to word document? === Anyone know if it is possible? And got any sample code for this? Or any other java API that can do this?
0
[ 2, 92, 8247, 2353, 49, 2757, 1961, 20, 833, 4492, 60, 800, 3726, 3726, 1276, 143, 100, 32, 25, 938, 60, 17, 330, 186, 5717, 1797, 26, 48, 60, 54, 186, 89, 8247, 21, 2159, 30, 92, 107, 48, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Python library for rendering HTML and javascript === Is there any python module for rendering a HTML page with javascript and get back a DOM object? I want to parse a page which generates almost all of its content using javascript.
0
[ 2, 20059, 1248, 26, 15307, 13, 15895, 17, 8247, 8741, 800, 3726, 3726, 25, 80, 186, 20059, 12613, 26, 15307, 21, 13, 15895, 2478, 29, 8247, 8741, 17, 164, 97, 21, 11859, 3095, 60, 31, 259, 20, 2017, 870, 21, 2478, 56, 7920, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I handle multiple streams in Java? === I'm trying to run a process and do stuff with its input, output and error streams. The obvious way to do this is to use something like select(), but the only thing I can find in Java that does that is Selector.select(), which takes Channels. It doesn't appear to be possible to get a Channel from an InputStream or OutputStream (FileStream has a .getChannel() method but that doesn't help here) So, instead I wrote some code to poll all the streams: while( !out_eof || !err_eof ) { while( out_str.available() ) { if( (bytes = out_str.read(buf)) != -1 ) { // Do something with output stream } else out_eof = true; } while( err_str.available() ) { if( (bytes = err_str.read(buf)) != -1 ) { // Do something with error stream } else err_eof = true; } sleep(100); } which works, except that it never terminates. When one of the streams reaches end of file, available() returns zero so read() isn't called and we never get the -1 return that would indicate EOF. One solution would be a non-blocking way to detect EOF. I can't see one in the docs anywhere. Alternatively is there a better way of doing what I want to do? I see this question here: [link text][1] and although it doesn't exactly do what I want, I can probably use that idea, of spawning separate threads for each stream, for the particular problem I have now. But surely that isn't the only way to do it? Surely there must be a way to read from multiple streams without using a thread for each? [1]: http://stackoverflow.com/questions/60302/starting-a-process-with-inherited-stdinstdoutstderr-in-java-6#60578 "Processes with inherited stdin/stdout/stderr in Java"
0
[ 2, 184, 107, 31, 3053, 1886, 9464, 19, 8247, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 485, 21, 953, 17, 107, 3217, 29, 82, 6367, 15, 5196, 17, 7019, 9464, 9, 14, 4674, 161, 20, 107, 48, 25, 20, 275, 301, 101, 5407, 5, 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...
How do you find out which version of the GTK Ubuntu is using? === I need to determine which version of GTK Ubuntu is using. Man does not seem to help
0
[ 2, 184, 107, 42, 477, 70, 56, 615, 16, 14, 9509, 197, 287, 12968, 2473, 25, 568, 60, 800, 3726, 3726, 31, 376, 20, 3746, 56, 615, 16, 9509, 197, 287, 12968, 2473, 25, 568, 9, 169, 630, 52, 2260, 20, 448, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
text box giving problems on ASP.Net page === I am designing a page to Add/Edit users - I used a repeater control and a table to display users. In users view the individual columns of the table row have labels to display a record values and when users click on edit button, the labels are hidden and text boxes are displayed for users to edit values - The problem is - as soon as the text boxes are visible, the table size increases - the row height and cells size becomes large. Is there a way to display the text boxes so that they take the same size as the labels
0
[ 2, 1854, 1649, 1438, 1716, 27, 28, 306, 9, 2328, 2478, 800, 3726, 3726, 31, 589, 15026, 21, 2478, 20, 3547, 118, 69, 242, 3878, 13, 8, 31, 147, 21, 6830, 106, 569, 17, 21, 859, 20, 3042, 3878, 9, 19, 3878, 1418, 14, 1359, 7498...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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# Array XML Serialization === I found a problem with the XML Serialization of C#. The output of the serializer is inconsistent between normal Win32 and WinCE (but surprisingly WinCE has the IMO correcter output). Win32 simply ignores the Class2 <code>XmlRoot("c2")</code> Attribute. Does anyone know a way how to get the WinCE like output on Win32 (because i don't want the XML tags to have the class name of the serialization class). Test Code: using System; using System.Xml.Serialization; using System.IO; namespace ConsoleTest { [Serializable] [XmlRoot("c1")] public class Class1 { [XmlArray("items")] public Class2[] Items; } [Serializable] [XmlRoot("c2")] public class Class2 { [XmlAttribute("name")] public string Name; } class SerTest { public void Execute() { XmlSerializer ser = new XmlSerializer(typeof (Class1)); Class1 test = new Class1 {Items = new [] {new Class2 {Name = "Some Name"}, new Class2 {Name = "Another Name"}}}; using (TextWriter writer = new StreamWriter("test.xml")) { ser.Serialize(writer, test); } } } } Expected XML (WinCE generates this): <?xml version="1.0" encoding="utf-8"?> <c1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <items> <c2 name="Some Name" /> <c2 name="Another Name" /> </items> </c1> Win32 XML (seems to be the wrong version): <?xml version="1.0" encoding="utf-8"?> <c1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <items> <Class2 name="Some Name" /> <Class2 name="Another Name" /> </items> </c1>
0
[ 2, 272, 5910, 7718, 23504, 5956, 1829, 800, 3726, 3726, 31, 216, 21, 1448, 29, 14, 23504, 5956, 1829, 16, 272, 5910, 9, 14, 5196, 16, 14, 5956, 11907, 25, 22380, 128, 1826, 628, 3125, 17, 26818, 13, 5, 811, 11701, 26818, 63, 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...
Where do the responsibilities of a Db Abstraction in PHP start and end? === In PHP, what is the best practice for laying out the responsibilities of a Db Abstraction Layer? Is OOP a good idea in terms of performance? How much should be generic object code, and how much should be very specific functions?
0
[ 2, 113, 107, 14, 13, 10525, 16, 21, 13, 9007, 23907, 19, 13, 26120, 799, 17, 241, 60, 800, 3726, 3726, 19, 13, 26120, 15, 98, 25, 14, 246, 1345, 26, 11514, 70, 14, 13, 10525, 16, 21, 13, 9007, 23907, 5385, 60, 25, 13, 21709, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 delegate interface implementation to other class in C# === Assume the following class: public class MyEnum: IEnumerator { private List<SomeObject> _myList = new List<SomeObject>(); ... } It is necessary to implement the IEnumerator methods in MyEnum. But is it possible to 'delegate' or redirect the implementation for IEnumerator directly to _myList without needing to implement the IEnumerator methods?
0
[ 2, 184, 20, 11300, 6573, 6123, 20, 89, 718, 19, 272, 5910, 800, 3726, 3726, 7158, 14, 249, 718, 45, 317, 718, 51, 219, 723, 45, 13, 660, 6336, 106, 3457, 13, 1, 932, 968, 1, 3220, 23793, 1, 13, 1, 915, 5739, 800, 78, 968, 1,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP.NET - how to show a error page when uploading big file (Maximum request length exceeded)? === Application able to record error in OnError, but we are not able to do any redirect or so to show something meaningfull to user. Any ideas? I know that we can set maxRequestLength in web.config, but anyway user can exceed this limit and some normal error need to be displayed.
0
[ 2, 28, 306, 9, 2328, 13, 8, 184, 20, 298, 21, 7019, 2478, 76, 71, 16866, 580, 3893, 13, 5, 8304, 49, 18535, 3772, 1476, 17365, 6, 60, 800, 3726, 3726, 3010, 777, 20, 571, 7019, 19, 27, 29992, 15, 47, 95, 50, 52, 777, 20, 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...
Does an index help with < or > MySQL queries? === If I have a query like "DELETE FROM table WHERE datetime_field < '2008-01-01 00:00:00'", does having the 'datetime_field' column indexed help? i.e. is the index only useful when using equality (or inequality) testing, or is it useful when doing an ordered comparison as well? (Suggestions for better executing this query, without recreating the table, would also be ok!)
0
[ 2, 630, 40, 4348, 448, 29, 13, 1, 54, 13, 1, 51, 18, 22402, 9386, 2829, 60, 800, 3726, 3726, 100, 31, 57, 21, 25597, 101, 13, 7, 24249, 591, 37, 859, 113, 1231, 891, 1, 1109, 13, 1, 13, 22, 2753, 8, 3026, 8, 3026, 13, 2032...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 "autopopulate" fields in IE? === the company I work for want to use a "hosted payment form" to charge our customers. A question came up on how we can populate the "payment form" automatically with information from one of our other system. We have no control over the hosed payment form, and we have to use IE. Is this possible at all? And if so, how can this be done? If something is unclear, please let me know...
0
[ 2, 25, 32, 938, 20, 13, 7, 18042, 6057, 12383, 7, 2861, 19, 13, 660, 60, 800, 3726, 3726, 14, 237, 31, 170, 26, 259, 20, 275, 21, 13, 7, 25219, 7582, 505, 7, 20, 1906, 318, 5279, 9, 21, 1301, 281, 71, 27, 184, 95, 92, 1675...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MSSQL and Oracle, which one is better in terms of scalability? === MSSQL and Oracle, which one is better in terms of scalability? For example, if the data size reach 500 TB etc.
4
[ 2, 4235, 18, 22402, 17, 15759, 15, 56, 53, 25, 574, 19, 1663, 16, 18957, 4091, 60, 800, 3726, 3726, 4235, 18, 22402, 17, 15759, 15, 56, 53, 25, 574, 19, 1663, 16, 18957, 4091, 60, 26, 823, 15, 100, 14, 1054, 1072, 1470, 3033, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Shape recognition algorithm(s) === Can anyone point me to a shape recognition algorithm, preferably in C#/Java but other languages are fine too.
0
[ 2, 2539, 3514, 9083, 5, 18, 6, 800, 3726, 3726, 92, 1276, 454, 55, 20, 21, 2539, 3514, 9083, 15, 6369, 4801, 19, 272, 5910, 118, 1004, 1385, 47, 89, 2556, 50, 1123, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
.NET Compact Framework Can you get grids which have multi line text in cells? === Is it possible to show multiple lines of text in grid cells using the .NET Compact framework? We need to create a grid where the middle column contains an address. We'd like to show this over multiple lines and (possibly) apply some formatting to the final line. e.g. 123 Anywhere Street Birmingham B1 2DU **tel:** 0123 555555
0
[ 2, 13, 9, 2328, 8285, 6596, 92, 42, 164, 7354, 18, 56, 57, 1889, 293, 1854, 19, 2934, 60, 800, 3726, 3726, 25, 32, 938, 20, 298, 1886, 1560, 16, 1854, 19, 7354, 2934, 568, 14, 13, 9, 2328, 8285, 6596, 60, 95, 376, 20, 1600, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 practices for consistent and comprehensive address storage in a database === Are there any best practices (or even standards) to store addresses in a consistent and comprehensive way in a database ? To be more specific, I believe at this stage that there are two cases for address storage : - you just need to associate an address to a person, a building or any item (the most common case). Then a flat table with text columns (address1, address2, zip, city) is probably enough. This is not the case I'm interested in. - you want to run statistics on your addresses : how many items in a specific street, or city or... Then you want to avoid misspellings of any sorts, and ensure consistency. My question is about best practices in this specific case : what are the best ways to model a consitent address database ?
0
[ 2, 246, 5242, 26, 8224, 17, 7041, 3218, 4326, 19, 21, 6018, 800, 3726, 3726, 50, 80, 186, 246, 5242, 13, 5, 248, 166, 3364, 6, 20, 1718, 12636, 19, 21, 8224, 17, 7041, 161, 19, 21, 6018, 13, 60, 20, 44, 91, 1903, 15, 31, 985...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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: .NET code runs from one directory, but not another, on same disk === Our application is a hybrid Win32 unmanaged application and a .NET 2.0 managed application. The Win32 part is the main executable, which at some point loads and hosts the .NET 2.0 runtime and loads some managed modules to open new winforms windows. We've had our share of CASPOL-type problems, but today we have a very odd problem and I'm hoping someone can give me some pointers or ideas, or basically just anything really, that would trigger a spark of something that would help us resolve this. On a server, accessed through citrix, if the application files are located in a directory located on the desktop of the currently logged on user, which is a server/domain administrator, the program runs fine. The .NET windows open as expected. However, if we move the directory to the root of the same disk, which is a physical disk in the server (so no SAN mapping or anything that would trigger a CASPOL command *to my knowledge*) *and keep everything else the same, same user, same configuration, etc.*, the application silently crashes when we try to invoke the .NET windows. It crashes by way of just disappearing, which suggests it might be something like a stack overflow. We're looking into adding logging to some parts of the app to perhaps be able to figure out what happens, and where, but I'm posting this question here as well. So far we've verified that there are no oddities in the CASPOL access list, nothing odd in the NGEN cache (I was thinking perhaps there was corrupted images from before, if the server owner had played with it), and no oddities in the GAC (we don't use GAC for the assemblies). Summarized: * If the program is run from U:\Documents and Settings\USERNAME\Desktop\directory, it works * If it is run from U:\directory, it doesn't * U: is a physical disk in the server * No apparent oddities in NGEN or GAC caches * The right .NET runtime is installed, the right files for our application has been installed (and indeed work fine if run from the desktop location) Anyone with anything that might help?
3
[ 2, 1448, 45, 13, 9, 2328, 1797, 1461, 37, 53, 16755, 15, 47, 52, 226, 15, 27, 205, 8582, 800, 3726, 3726, 318, 3010, 25, 21, 6957, 628, 3125, 367, 177, 8030, 3010, 17, 21, 13, 9, 2328, 172, 9, 387, 1471, 3010, 9, 14, 628, 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...
Resources and guides to UI virtualization in WPF === UI Virtualization is an awkward terminology that describes WPF UI controls that load and and dispose child elements on demand (based on their visibility) to reduce memory footprint. ListBox and ListView use a class called VirtualizingStackPanel by default to achieve higher performance. I found [this control][1], which is really helpful, a virtualized canvas which produces a scrollable Canvas object that manages its children with a quadtree. It produces some great results and can easily be tweaked to your needs. Are there any other guides or sample wpf controls that deal with this issue? Maybe generic one's that deal with dynamic memory allocation of gui objects in other languages and toolkits? [1]: http://blogs.msdn.com/jgoldb/archive/2008/03/08/performant-virtualized-wpf-canvas.aspx
0
[ 2, 2566, 17, 14838, 20, 13, 5661, 6599, 1829, 19, 619, 7721, 800, 3726, 3726, 13, 5661, 6599, 1829, 25, 40, 9309, 20513, 30, 4359, 619, 7721, 13, 5661, 8671, 30, 6305, 17, 17, 17913, 850, 2065, 27, 3888, 13, 5, 1281, 27, 66, 194...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unit Testing data? === Our software manages a lot of data feeds from various sources: real time replicated databases, files FTPed automatically, scheduled running of database stored procedures to cache snapshots of data from linked servers and numerous other methods of acquiring data. We need to verify and validate this data: - has an import even happened - is the data reasonable (null values, number of rows, etc.) - does the data reconcile with other values (perhaps we have multiple sources for similar data) - is it out of data and the import needs manually prompting In many ways this is like Unit Testing: there are many types of check to make, just add a new check to the list and just re-run each class of test in response to a particular event. There are already nice GUIs for running tests, perhaps even being able to schedule them. Is this a good approach? Are there better, similarly generalised, patterns for data validation? We're a .NET shop, would WF be a better more flexible solution?
0
[ 2, 1237, 4431, 1054, 60, 800, 3726, 3726, 318, 2306, 9118, 21, 865, 16, 1054, 17058, 37, 617, 2662, 45, 683, 85, 22156, 43, 6018, 18, 15, 6488, 1187, 3631, 7499, 15, 3758, 946, 16, 6018, 8214, 8876, 20, 16522, 29946, 18, 16, 1054,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Need advice: Structure of Rails views for submenus? === Imagine to have two RESTful controllers (UsersController, OffersController) and a PagesController (used for static content such as index, about and so on) in your application. You have the following routes defined: map.with_options :controller => 'pages' do |pages| pages.root :action => 'index' # static home page pages.about :action => 'about' # static about page # maybe more static pages... end map.resources :users # RESTful UsersController map.resources :posts # RESTful PostsController Your application layout looks like this: <html> <head> <title>Demo Application</title> </head> <body> <ul id="menu"> <li> <%= link_to 'Home', root_path %> </li> <li> <%= link_to 'Offers', offers_path %> <ul id="submenu> <li><%= link_to 'Search', 'path/to/search' %></li> <li>maybe more links...</li> </ul> </li> <li> <%= link_to 'About', about_path %> </li> <li> <%= link_to 'Admin', users_path %> <ul id="submenu"> <li><%= link_to 'New User', new_user_path %></li> <li><%= link_to 'New Offer', new_offer_path %></li> <li>maybe more links</li> </ul> </li> </li> <%= yield %> </body> </html> The problem with the layout is that I want only one `#submenu` to be visible at any time. All other submenus can be completely skipped (don't need to rendered at all). Take the Admin menu for example: This menu should be active for all RESTful paths in the application except for `offers_path`. Active means that the submenu is visible. The only solution I can think of to achieve this is to build a lot complicated if conditions and that sucks (really complicated to write and to maintain). I'm looking for an elegant solution? I hope someone understands my question - if there's something unclear just comment the question and I'm going to explain it in more detail.
0
[ 2, 376, 4978, 45, 1411, 16, 2240, 18, 4146, 26, 972, 755, 267, 60, 800, 3726, 3726, 4382, 20, 57, 81, 760, 1566, 9919, 18, 13, 5, 16704, 18, 12898, 1252, 15, 2486, 12898, 1252, 6, 17, 21, 4434, 12898, 1252, 13, 5, 8795, 26, 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 a relative URL into a full URL? === This is probably explained more easily with an example. I'm trying to find a way of turning a relative URL, e.g. "/Foo.aspx" or "~/Foo.aspx" into a full URL, e.g. http://localhost/Foo.aspx. That way when I deploy to test or stage, where the domain under which the site runs is different, I will get http://test/Foo.aspx and http://stage/Foo.aspx. Any ideas?
0
[ 2, 184, 107, 31, 805, 21, 4543, 287, 6362, 77, 21, 503, 287, 6362, 60, 800, 3726, 3726, 48, 25, 910, 2897, 91, 2351, 29, 40, 823, 9, 31, 22, 79, 749, 20, 477, 21, 161, 16, 2101, 21, 4543, 287, 6362, 15, 13, 62, 9, 263, 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...
Objections against Java Webstart? === Since the release of Adobe AIR I am wondering why Java Web Start has not gained more attention in the past as to me it seems to be very similar, but web start is available for a much longer time. Is it mainly because of bad marketing from Sun, or are there more technical concerns other than the need of having the right JVM installed? Do you have bad experiences using Web Start? If yes, which? What are you recommendations when using Web Start for distributing applications?
0
[ 2, 20045, 149, 8247, 2741, 13680, 60, 800, 3726, 3726, 179, 14, 830, 16, 20299, 282, 31, 589, 5712, 483, 8247, 2741, 799, 63, 52, 2528, 91, 1220, 19, 14, 640, 28, 20, 55, 32, 2206, 20, 44, 253, 835, 15, 47, 2741, 799, 25, 904,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Key value pairs in relational database === Does someone have experience with storing key-value pairs in a database? I've been using this type of table: CREATE TABLE key_value_pairs ( itemid varchar(32) NOT NULL, itemkey varchar(32) NOT NULL, itemvalue varchar(32) NOT NULL, CONSTRAINT ct_primarykey PRIMARY KEY(itemid,itemkey) ) Then for example the following rows could exist: itemid itemkey itemvalue ---------------- ------------- ------------ 123 Colour Red 123 Size Medium 123 Fabric Cotton The trouble with this scheme is the SQL syntax required to extract data is quite complex. Would it be better to just create a series of key/value columns? CREATE TABLE key_value_pairs ( itemid varchar(32) NOT NULL, itemkey1 varchar(32) NOT NULL, itemvalue1 varchar(32) NOT NULL, itemkey2 varchar(32) NOT NULL, itemvalue2 varchar(32) NOT NULL, . . .etc . . . ) This will be easier and faster to query but lacks the extensibility of the first approach. Any advice?
0
[ 2, 1246, 1923, 7473, 19, 5827, 192, 6018, 800, 3726, 3726, 630, 737, 57, 1496, 29, 25615, 1246, 8, 15165, 7473, 19, 21, 6018, 60, 31, 22, 195, 74, 568, 48, 1001, 16, 859, 45, 1600, 859, 1246, 1, 15165, 1, 11541, 1224, 13, 5, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Setting a Sharepoint Site Theme through a Web Service? === Is it possible to change a Sharepoint 2007 Site Theme through a Web Service? I know it can be done through the Object Model with (i think) SPWeb.ApplyTheme, but I did not see anything in the available Web Services, apart from CustomizeCss in Webs.asmx, which does not seem to be exactly what I need.
0
[ 2, 2697, 21, 1891, 3132, 689, 3184, 120, 21, 2741, 365, 60, 800, 3726, 3726, 25, 32, 938, 20, 753, 21, 1891, 3132, 624, 689, 3184, 120, 21, 2741, 365, 60, 31, 143, 32, 92, 44, 677, 120, 14, 3095, 1061, 29, 13, 5, 49, 277, 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...
Making something both a C identifier and a string? === Say you want to generate a matched list of identifiers and strings enum { NAME_ONE, NAME_TWO, NAME_THREE }; myFunction(NAME_ONE, "NAME_ONE"); myFunction(NAME_TWO, "NAME_TWO"); myFunction(NAME_THREE, "NAME_THREE"); ..without repeating yourself, and without auto-generating the code, using C/C++ macros <b>Initial guess:</b> You could add an #include file containing myDefine(NAME_ONE) myDefine(NAME_TWO) myDefine(NAME_THREE) Then use it twice like: #define myDefine(a) a, enum { #include "definitions" } #define myDefine(a) myFunc(a, "a"); #include "definitions" but #define doesn't let you put parameters within a string?
0
[ 2, 544, 301, 156, 21, 272, 25570, 17, 21, 3724, 60, 800, 3726, 3726, 395, 42, 259, 20, 7920, 21, 11265, 968, 16, 25570, 18, 17, 7887, 1957, 723, 13, 1, 204, 1, 849, 15, 204, 1, 3734, 15, 204, 1, 5642, 13, 1, 73, 51, 22359, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C99 stdint.h header and MS Visual Studio === To my amazement I just discovered that the C99 stdint.h is missing from MS Visual Studio 2003 upwards. I'm sure they have their reasons, but does anyone know where I can download a copy? Without this header I have no definitions for useful types such as uint32_t, etc.
0
[ 2, 272, 3483, 354, 3653, 38, 9, 252, 157, 106, 17, 4235, 3458, 1120, 800, 3726, 3726, 20, 51, 24115, 31, 114, 1848, 30, 14, 272, 3483, 354, 3653, 38, 9, 252, 25, 2863, 37, 4235, 3458, 1120, 973, 16686, 9, 31, 22, 79, 562, 59, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Has anyone been able to get SharePoint using NTLM working with SQUID as a reverse proxy? === 1. We have a SQUID reverse proxy and a MOSS 2007 portal. All sites are using NTLM. 2. We cannot get it working with SQUID as a reverse proxy. Any ideas where to start?
0
[ 2, 63, 1276, 74, 777, 20, 164, 1891, 3132, 568, 13, 2877, 10363, 638, 29, 25756, 28, 21, 7006, 27188, 60, 800, 3726, 3726, 137, 9, 95, 57, 21, 25756, 7006, 27188, 17, 21, 8188, 624, 8281, 9, 65, 3259, 50, 568, 13, 2877, 10363, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
where can i get some good tutorials about views === i want to design a view in sql server 2005. where can i get some good reading materials on this...
0
[ 2, 113, 92, 31, 164, 109, 254, 29724, 18, 88, 4146, 800, 3726, 3726, 31, 259, 20, 704, 21, 1418, 19, 4444, 255, 8128, 812, 9, 113, 92, 31, 164, 109, 254, 1876, 2895, 27, 48, 9, 9, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Automatic Casts redux === After I [messed up the description of my previous post][1] on this I have sat down and tried to convey my exact intent. I have a class called P which performs some distinct purpose. I also have PW which perform some distinct purpose on P. PW has no member variables, just member functions. From this description you would assume that the code would follow like this: class P { public: void a( ); }; class PW { public: PW( const P& p ) : p( p ) { } void b( ); P& p; }; class C { public: P GetP( ) const { return p; } private: P p; }; // ... PW& p = c.GetP( ); // valid // ... However that brings up a problem. I can't call the functions of P without indirection everywhere. // ... p->p->a( ) // ... **What I would like to do is call p->a( ) and have it automatically determine that I would like to call the member function of P.** Also having a member of PW called *a* doesn't really scale - what if I add (or remove) another function to P - this will need to be added (or removed) to PW. [1]: http://stackoverflow.com/questions/121922/automatic-casts
0
[ 2, 6715, 1325, 18, 402, 7147, 800, 3726, 3726, 75, 31, 636, 3845, 18, 69, 71, 14, 5318, 16, 51, 1158, 678, 500, 2558, 165, 500, 27, 48, 31, 57, 847, 125, 17, 794, 20, 11266, 51, 5340, 6936, 9, 31, 57, 21, 718, 227, 351, 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...
What happens when a Flex App can't run at the specified framerate? === In our application (a game), in some cases it can't run fast enough. Obviously we'd like to speed it up, but in the mean-time when this happens it causes many problems (or if it's not causing them, the two are related). The one which is least related to our own functionality is that the built in Alert.show() method stops working. Typically the full-screen transparent box appears but not the actual popup. I believe this is down to Flex giving all available cycles to other tasks... but it's proving difficult to investigate analytically so I am happy to hear another explanation.
0
[ 2, 98, 5531, 76, 21, 14409, 4865, 92, 22, 38, 485, 35, 14, 9931, 3523, 5487, 60, 800, 3726, 3726, 19, 318, 3010, 13, 5, 58, 250, 6, 15, 19, 109, 1871, 32, 92, 22, 38, 485, 1512, 511, 9, 4409, 95, 22, 43, 101, 20, 1362, 32,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
subversion cherry picking === Suppose I have a set of commits in a repository folder... 123 (250 new files, 137 changed files, 14 deleted files) 122 (150 changed files) 121 (renamed folder) 120 (90 changed files) 119 (115 changed files, 14 deleted files, 12 added files) 118 (113 changed files) 117 (10 changed files) I want to get a working copy that includes all changes from revision 117 onward but does NOT include the changes for revisions 118 and 120. What is the best way to achieve this?
0
[ 2, 972, 10898, 9257, 7833, 800, 3726, 3726, 5787, 31, 57, 21, 309, 16, 9686, 18, 19, 21, 24869, 19294, 9, 9, 9, 390, 240, 13, 5, 9798, 78, 6488, 15, 13, 13786, 1015, 6488, 15, 513, 19584, 6488, 6, 390, 135, 13, 5, 9839, 1015, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Specifying a non-.NET dependency in Visual Studio === I'm calling a non-.NET dll from my project using P/Invoke, meaning that the .dll must always be present in the .exe's directory. Is there any way to tell Visual Studio of this dependency, so that it will automatically copy the .dll to the output directory when compiling, and will automatically include the .dll in the setup? Or do I have to do this manually?
0
[ 2, 19077, 68, 21, 538, 8, 9, 2328, 26835, 19, 3458, 1120, 800, 3726, 3726, 31, 22, 79, 2555, 21, 538, 8, 9, 2328, 13, 43, 211, 37, 51, 669, 568, 351, 118, 108, 2625, 1048, 15, 1813, 30, 14, 13, 9, 43, 211, 491, 550, 44, 73...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way in Rails to determine if two (or more) given URLs (as strings or hash options) are equal? === I'm wanting a method called same_url? that will return true if the passed in URLs are equal. The passed in URLs might be either params options hash or strings. same_url?({:controller => :foo, :action => :bar}, "foo/bar") # => true The Rails Framework helper [current_page?][1] seems like a good starting point but I'd like to pass in an arbitrary number of URLs. [1]: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#M001607 As an added bonus It would be good if a hash of params to exclude from the comparison could be passed in. So a method call might look like: same_url?(projects_path(:page => 2), "projects?page=3", :excluding => :page) # => true
0
[ 2, 98, 25, 14, 246, 161, 19, 2240, 18, 20, 3746, 100, 81, 13, 5, 248, 91, 6, 504, 13, 911, 7532, 13, 5, 472, 7887, 54, 19170, 6368, 6, 50, 2747, 60, 800, 3726, 3726, 31, 22, 79, 4638, 21, 2109, 227, 205, 1, 911, 255, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which Ruby XML library would you recommend for a 2.4MB XML file? === I have a 2.4 MB XML file, an export from Microsoft Project (hey I'm the victim here!) from which I am requested to extract certain details for re-presentation. Ignoring the intelligence or otherwise of the request, which library should I try first from a Ruby perspective? I'm aware of the following (in no particular order): - [REXML](http://www.germane-software.com/software/rexml/) - [Chilkat Ruby XML library](http://www.chilkatsoft.com/ruby-xml.asp) - [hpricot XML](http://code.whytheluckystiff.net/hpricot/wiki/HpricotXML) - [libXML](http://libxml.rubyforge.org/) I'd prefer something packaged as a Ruby gem, which I suspect the Chilkat library is not. Performance isn't a major issue - I don't expect the thing to need to run more than once a day (once a week is more likely). I'm more interested in something that's as easy to use as anything XML-related is able to get.
0
[ 2, 56, 10811, 23504, 1248, 83, 42, 12360, 26, 21, 172, 9, 300, 5024, 23504, 3893, 60, 800, 3726, 3726, 31, 57, 21, 172, 9, 300, 14023, 23504, 3893, 15, 40, 7487, 37, 7099, 669, 13, 5, 3909, 31, 22, 79, 14, 5508, 235, 187, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it safe to redirect to the same URL? === I have URLs of the form `http://domain/image/⟨uuid⟩/42x42/some_name.png`. The Web server (nginx) is configured to look for a file `/some/path/image/⟨uuid⟩/thumbnail_42x42.png`, and if it does not exist, it sends the URL to the backend (Django via mod_wsgi) which then generates the thumbnail. Then the backend emits a 302 redirect to exactly the same URL that was requested by the client, with the idea that upon this second request the server will notice the thumbnail file and send it directly. The question is, will this work with all the browsers? So far testing has shown no problems, but can I be sure all the user agents will interpret this as intended?
0
[ 2, 25, 32, 1834, 20, 302, 14706, 20, 14, 205, 287, 6362, 60, 800, 3726, 3726, 31, 57, 13, 911, 7532, 16, 14, 505, 13, 1, 21127, 6903, 537, 6232, 118, 22039, 118, 1, 19612, 1340, 1, 118, 3941, 396, 3941, 118, 3220, 1, 7259, 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 secure MS SSAS 2005 for HTTP remote access via Internet? === We are building an hosted application that uses MS SQL Server Analysis Services 2005 for some of the reporting, specifically OLAP cube browsing. Since it is designed to be used by very large global organizations, security is important. It seems that Microsoft's preferred client tool for browsing OLAP cubes is Excel 2007 and the whole infrastructure is geared around Windows Integrated Authentication. We, however, are trying to build an internet-facing web application and do not want to create Windows Accounts for every user. It also seems that there are not many nice AJAXy web-based OLAP cube browsing tools (fast, drag-and-drop for dimensions, support for actions, cross-browser etc.) As an aside, we're currently using [Dundas OLAP Grid](http://www.dundas.com/Products/Chart/NET/OLAP/index.aspx) but have also considered [RadarCube](http://www.radar-soft.com/products/radaraspnet_MSAS.aspx) and other more expensive commercial solutions and are still thinking of taking on [CellSetGrid](http://www.sqlserveranalysisservices.com/cellsetgrid/cellsetgridintro.htm) and developing it further - if you know of any other cheap/open solutions please let me know! We are therefore planning on providing two modes of access to the cube data: 1. Through our own Web Application using one of these 3rd party Web-based OLAP browsing tools. 2. Direct access from Excel over HTTPS via the msmdpump.dll data pump, for when the web version is too slow/clunky or user needs more powerful analysis. For the web app access, the connection to the SSAS data source happens from the web server so we can happily pass a CustomData item on the Connection String which indicates which user is connecting. Since we potentially have too many combinations of rights to create individual SSAS roles for, we have implemented **dynamic dimension security** that uses a "Cube Users" dimension in conjunction with the CustomData item from the connection string and limits the Allowed Set of various other dimension members accordingly (via other Many-to-Many dinemsion relationships with Measure Groups that contain the 'rights mapping') See Mosha on Dimension Security: <http://www.sqljunkies.com/WebLog/mosha/archive/2004/12/16/5605.aspx> This all seems to work fine so far. For the 'direct connection' from Excel, we set up the data pump for HTTP access (see the [MS Technet article](http://www.microsoft.com/technet/prodtechnol/sql/2005/httpasws.mspx)) but have enabled anonymous access, relying again on the Connection String to control access since we don't have windows accounts. However, in this case, the connection string is controlled by the user (we push a .odc file from the web app, but a curious user could view & change it), so we cannot rely on users to be good and keep the CustomData=grunt@corp.org from changing to CustomData=superuser@corp.org. As it turns out, this also causes the same problem with Roles, since these are also specified on the connection string if you are **not** using Windows Integrated Authentication. The question therefore boils down to this: is there a way of getting basic authentication in IIS working without windows accounts in such a way that it can be used with the SSAS data pump to let SSAS know which user is connecting so that dynamic dimension security can be used successfully? (This is my first q on StackOverflow and probably the most complicated question I've ever asked: let me know where I haven't explained myself very well and I'll attempt to clarify)
0
[ 2, 184, 20, 4315, 4235, 13, 8234, 18, 812, 26, 7775, 5388, 1381, 1197, 2620, 60, 800, 3726, 3726, 95, 50, 353, 40, 2812, 3010, 30, 2027, 4235, 4444, 255, 8128, 2495, 687, 812, 26, 109, 16, 14, 6670, 15, 3524, 13, 2268, 306, 1368...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
"cannot find -lpq" when trying to install psycopg2 === **Intro**: I'm trying to migrate our Trac SQLite to a PostgreSQL backend, to do that I need psycopg2. After clicking past the embarrassing rant on www.initd.org I downloaded the latest version and tried running `setup.py install`. This didn't work, telling me I needed mingw. So I downloaded and installed mingw. **Problem**: I now get the following error when running `setup.py build_ext --compiler=mingw32 install`: running build_ext building 'psycopg2._psycopg' extension writing build\temp.win32-2.4\Release\psycopg\_psycopg.def C:\mingw\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.4\Release\psycopg \psycopgmodule.o build\temp.win32-2.4\Release\psycopg\pqpath.o build\temp.win32- 2.4\Release\psycopg\typecast.o build\temp.win32-2.4\Release\psycopg\microprotoco ls.o build\temp.win32-2.4\Release\psycopg\microprotocols_proto.o build\temp.win3 2-2.4\Release\psycopg\connection_type.o build\temp.win32-2.4\Release\psycopg\con nection_int.o build\temp.win32-2.4\Release\psycopg\cursor_type.o build\temp.win3 2-2.4\Release\psycopg\cursor_int.o build\temp.win32-2.4\Release\psycopg\lobject_ type.o build\temp.win32-2.4\Release\psycopg\lobject_int.o build\temp.win32-2.4\R elease\psycopg\adapter_qstring.o build\temp.win32-2.4\Release\psycopg\adapter_pb oolean.o build\temp.win32-2.4\Release\psycopg\adapter_binary.o build\temp.win32- 2.4\Release\psycopg\adapter_asis.o build\temp.win32-2.4\Release\psycopg\adapter_ list.o build\temp.win32-2.4\Release\psycopg\adapter_datetime.o build\temp.win32- 2.4\Release\psycopg\_psycopg.def -LC:\Python24\libs -LC:\Python24\PCBuild -Lc:/P ROGRA~1/POSTGR~1/8.3/lib -lpython24 -lmsvcr71 -lpq -lmsvcr71 -lws2_32 -ladvapi32 -o build\lib.win32-2.4\psycopg2\_psycopg.pyd C:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot fin d -lpq collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 **What I've tried** - I noticed the forward slashes in the -L option, so I manually entered my PostgreSQL lib directory in the library_dirs option in the setup.cfg, to no avail (the call then had a -L option with backslashes, but the error message stayed the same).
0
[ 2, 13, 7, 1245, 1270, 477, 13, 8, 5478, 1251, 7, 76, 749, 20, 16146, 13, 16033, 9734, 263, 135, 800, 3726, 3726, 13, 1409, 23979, 1409, 45, 31, 22, 79, 749, 20, 22985, 318, 13, 38, 5797, 4444, 10601, 20, 21, 678, 6879, 18, 224...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Controlling access to an internal collection in c# - Pattern required === This is kind of hard to explain, I hope my english is suffient: I have a class "A" which should maintain a list of objects of class "B" (like a private List<B>). A consumer of class "A" should be able to add items to the list. After the items are added to the list, the consumer should not be able to modify them again, left alone that he should not be able to temper with the list itself (add or remove items). But he should be able to enumerate the items in the list and get their values. Is there a pattern for it? How would you do that? If the question is not clear enough, please let me know.
0
[ 2, 10106, 1381, 20, 40, 3117, 1206, 19, 272, 5910, 13, 8, 3732, 1390, 800, 3726, 3726, 48, 25, 825, 16, 552, 20, 3271, 15, 31, 1376, 51, 486, 25, 13, 18, 5386, 49, 2291, 45, 31, 57, 21, 718, 13, 7, 58, 7, 56, 378, 4027, 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...
In SCRUM, where does the detail sit? === We've been using SCRUM on a few projects now with varying success and I now have a query relating to documentation. In SCRUM, you obviously have the product backlog ("The application begins by bringing up the last document the user was working with.") and the sprint task backlog ("Implement forgot password screen"). However, in all the examples I have seen, these two items are fairly high level in terms of detail (being designed on fit on a post-it note). So, where does the detail sit? Let's say the client has some very specific requirements for a stock management screen, or has a complex API that needs to be integrated with on the back end, where is this documented, how and who captures this information? Is it seperate to the backlog but populated on a just-in-time basis or some other way?
0
[ 2, 19, 26562, 15, 113, 630, 14, 6110, 2066, 60, 800, 3726, 3726, 95, 22, 195, 74, 568, 26562, 27, 21, 310, 2314, 130, 29, 9852, 1280, 17, 31, 130, 57, 21, 25597, 8456, 20, 13945, 9, 19, 26562, 15, 42, 4409, 57, 14, 2374, 97, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to implement unobtrusive javascript with dynamic content generation? === I write a lot of dynamically generated content ( developing under PHP ) and I use jQuery to add extra flexibility and functionality to my projects. Thing is that it's rather hard to add JavaScript in an unobtrusive manner. Here's an example: You have to generate a random number of DIV elements each with different functionality triggered onClick. I can use the "onclick" attribute on my DIV elements to call a JS function with a parameter but that is just a bad solution. Also I could generate some jQuery code along with each div in my PHP "for" loop, but then again this won't be entirely unobtrusive. So what's the solution in situations like this?
0
[ 2, 184, 20, 8713, 367, 4995, 8989, 18, 1284, 8247, 8741, 29, 7782, 2331, 2782, 60, 800, 3726, 3726, 31, 2757, 21, 865, 16, 7782, 1326, 6756, 2331, 13, 5, 3561, 131, 13, 26120, 13, 6, 17, 31, 275, 487, 8190, 93, 20, 3547, 2230, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Hash-algorithm === I am looking for a hash-algorithm, to create as close to a unique hash of a string (max len = 255) as possible, that produces a long integer (DWORD). I realize that 26^255 >> 2^32, but also know that the number of words in the English language is far less than 2^32. The strings I need to 'hash' would be mostly single words or some simple construct using two or three words.
0
[ 2, 19170, 8, 192, 6979, 242, 7015, 800, 3726, 3726, 31, 589, 699, 26, 21, 19170, 8, 192, 6979, 242, 7015, 15, 20, 1600, 28, 543, 20, 21, 2619, 19170, 16, 21, 3724, 13, 5, 8304, 10655, 800, 13, 20038, 6, 28, 938, 15, 30, 6700, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Define small row height in Reporting Services 2005 === I want to specify a small row height in a Reporting Services report of about 3pt. However, while the report looks ok in the previewer, once deployed, the row height resets to the standard row height. I've tried adjusting the "CanGrow" and "CanShrink" settings as well as playing around with the padding, lineHeight, font size, etc... Any ideas?
0
[ 2, 9267, 284, 3131, 2947, 19, 6670, 687, 812, 800, 3726, 3726, 31, 259, 20, 19077, 21, 284, 3131, 2947, 19, 21, 6670, 687, 1330, 16, 88, 203, 4417, 9, 207, 15, 133, 14, 1330, 1879, 5854, 19, 14, 16121, 106, 15, 382, 6698, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it a bad idea to implement a timer loop in Flex? === In our game project we did have a timer loop set to fire about 20 times a second (the same as the application framerate). We use this to move some sprites around. I'm wondering if this could cause problems and we should instead do our updates using an EnterFrame event handler?
0
[ 2, 25, 32, 21, 896, 882, 20, 8713, 21, 85, 139, 5293, 19, 14409, 60, 800, 3726, 3726, 19, 318, 250, 669, 95, 144, 57, 21, 85, 139, 5293, 309, 20, 535, 88, 434, 436, 21, 153, 13, 5, 124, 205, 28, 14, 3010, 3523, 5487, 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...
Change database files location in MySQL administrator? === I would like to change the database files location of MySQL administrator to another drive of my computer. ( i run windows xp SP2, mySQL Administrator 1.2.8) --Under the startup variable --> General Parameters --> i change the **Data directory: C:/Program Files/MySQL/MySQL Server 5.0/data** to **D:/.....** but after i stop the service and restart it, the following error came out : Could not re-connect to the MySQL Server. Server could not be started. Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist Anyone used to face this problem ?
0
[ 2, 753, 6018, 6488, 1474, 19, 51, 18, 22402, 8890, 60, 800, 3726, 3726, 31, 83, 101, 20, 753, 14, 6018, 6488, 1474, 16, 51, 18, 22402, 8890, 20, 226, 1493, 16, 51, 1428, 9, 13, 5, 31, 485, 1936, 23045, 3782, 135, 15, 51, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ways to eliminate switch in code === What are the ways to eliminate the use of switch in code?
0
[ 2, 2847, 20, 10628, 5521, 19, 1797, 800, 3726, 3726, 98, 50, 14, 2847, 20, 10628, 14, 275, 16, 5521, 19, 1797, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 0, 0, 0, 0, 0, 0...
Oracle Coherence: Is it stable? === Has anyone used [Oracle Coherence][1]? It looks very promising at the roadshows. My concern is whether it's a stable and robust enough to implement mission-critical financial solutions. I'd be grateful for any feedback on its performance, robustness and ease of maintenance. [1]: http://www.oracle.com/technology/products/coherence/index.html
0
[ 2, 15759, 326, 1694, 2940, 45, 25, 32, 4521, 60, 800, 3726, 3726, 63, 1276, 147, 636, 6055, 5615, 326, 1694, 2940, 500, 2558, 165, 500, 60, 32, 1879, 253, 10466, 35, 14, 383, 9303, 18, 9, 51, 3630, 25, 1472, 32, 22, 18, 21, 45...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to change the natural order of columns in Postgres? === Is it possible to change the natural order of columns in Postgres 8.1? I know that you shouldn't rely on column order - it's not *essential* to what I am doing - I only need it to make some auto-generated stuff come out in a way that is more pleasing, so that the field order matches all the way from pgadmin through the back end and out to the front end.
0
[ 2, 25, 32, 938, 20, 753, 14, 1112, 389, 16, 7498, 19, 678, 6879, 18, 60, 800, 3726, 3726, 25, 32, 938, 20, 753, 14, 1112, 389, 16, 7498, 19, 678, 6879, 18, 469, 9, 165, 60, 31, 143, 30, 42, 5714, 22, 38, 12139, 27, 4698, 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...
Any way to remove IEs black border around submit button in active forms? === I am implementing a design that uses custom styled submit-buttons. They are quite simply light grey buttons with a slightly darker outer border: input.button { background: #eee; border: 1px solid #ccc; } This looks just right in Firefox, Safari and Opera. The problem is with Internet Explorer, both 6 and 7. Since the form is the first one on the page, it's counted as the main form - and thus active from the get go. The first submit button in the active form receives a solid black border in IE, to mark it as the main action. If I turn off borders, then the black extra border in IE goes away too. I am looking for a way to keep my normal borders, but remove the outline.
0
[ 2, 186, 161, 20, 4681, 13, 1596, 319, 1862, 140, 12298, 5167, 19, 1348, 1997, 60, 800, 3726, 3726, 31, 589, 17333, 21, 704, 30, 2027, 5816, 1034, 43, 12298, 8, 811, 444, 18, 9, 59, 50, 1450, 1659, 471, 2682, 12861, 29, 21, 1847,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Call Stack at Runtime === I want to access the call stack at runtime in a Native C++ application. I am not using the IDE. How do I display the call stack?
0
[ 2, 645, 7566, 35, 485, 891, 800, 3726, 3726, 31, 259, 20, 1381, 14, 645, 7566, 35, 485, 891, 19, 21, 1275, 272, 20512, 3010, 9, 31, 589, 52, 568, 14, 13, 3448, 9, 184, 107, 31, 3042, 14, 645, 7566, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...