unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
How to install package in ActivePerl without internet connection? === In ActivePerl, "ppm" installs a package from the internet, "ppm install x.ppd" installs from a ppd file, but most CPAN packages are distributed as .tar.gz How do you supply modules to a machine running ActivePerl that doesn't have an internet connection? ("make" will probably not be available)
0
[ 2, 184, 20, 16146, 6030, 19, 1348, 1432, 255, 366, 2620, 2760, 60, 800, 3726, 3726, 19, 1348, 1432, 255, 15, 13, 7, 3421, 79, 7, 16146, 18, 21, 6030, 37, 14, 2620, 15, 13, 7, 3421, 79, 16146, 993, 9, 3421, 43, 7, 16146, 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...
Can anyone suggest an abstract base class to prevent XSRF in .NET 2.0+ === I'm looking for an abstract base class or master page solution that will prevent anyone from doing XSRF using both a token and ttl. Can anyone point me in the right direction?
0
[ 2, 92, 1276, 5601, 40, 8502, 1000, 718, 20, 2501, 993, 18, 8291, 19, 13, 9, 2328, 172, 9, 387, 2430, 800, 3726, 3726, 31, 22, 79, 699, 26, 40, 8502, 1000, 718, 54, 1129, 2478, 4295, 30, 129, 2501, 1276, 37, 845, 993, 18, 8291,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
new DOMDocument() in php 4 === I've make an application in php that uses DOMDocument() in php 5. The problem is that my server uses php4 and DOM object is not recognized. What can I do? Can I download any kind of software and put it in my server and use include? wich one? Thanks a lot.
0
[ 2, 78, 11859, 28132, 5, 6, 19, 13, 26120, 268, 800, 3726, 3726, 31, 22, 195, 233, 40, 3010, 19, 13, 26120, 30, 2027, 11859, 28132, 5, 6, 19, 13, 26120, 331, 9, 14, 1448, 25, 30, 51, 8128, 2027, 13, 26120, 300, 17, 11859, 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...
How to set the Taskbar Grouping Icon === When my application opens too many windows the taskbar groups them into one button. Each window has its own icon, but the grouping icon is the default "unknown"-kind icon. How can I set the grouping icon?
0
[ 2, 184, 20, 309, 14, 3005, 1850, 19288, 9801, 800, 3726, 3726, 76, 51, 3010, 8965, 266, 151, 1936, 14, 3005, 1850, 1170, 105, 77, 53, 5167, 9, 206, 1463, 63, 82, 258, 9801, 15, 47, 14, 19288, 9801, 25, 14, 12838, 13, 7, 1020, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
HTML color wheel control for website === Is there an HTML color wheel that I can throw in my site that will return a value of the color when a user clicks on it? would make one myself but don't want to "re-invent the wheel" HILARIOUS(punny?)
0
[ 2, 13, 15895, 1665, 3556, 569, 26, 2271, 800, 3726, 3726, 25, 80, 40, 13, 15895, 1665, 3556, 30, 31, 92, 3814, 19, 51, 689, 30, 129, 788, 21, 1923, 16, 14, 1665, 76, 21, 4155, 10840, 18, 27, 32, 60, 83, 233, 53, 992, 47, 221...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to check whether two dates are the same calendar day in Groovy? === Obviously I could create a Calendar object with the date and use get(DAY) on it, but knowing Groovy, I would guess there is an easier, quicker way I just don't know about?
0
[ 2, 246, 161, 20, 2631, 1472, 81, 4076, 50, 14, 205, 7036, 208, 19, 3452, 2026, 93, 60, 800, 3726, 3726, 4409, 31, 110, 1600, 21, 7036, 3095, 29, 14, 1231, 17, 275, 164, 5, 1185, 6, 27, 32, 15, 47, 2506, 3452, 2026, 93, 15, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How Python web frameworks, WSGI and CGI fit together === I have a Bluehost account where I can run Python scripts as CGI. I guess it's the simplest CGI because to run I have to define the following in `.htaccess`: Options +ExecCGI AddType text/html py AddHandler cgi-script .py Now, whenever I look up web programming with Python, I hear a lot about WSGI and how most frameworks use it. But I just don't understand how it all fits together, especially when my web server is given (Apache running at a host's machine) and not something I can really play with (except defining `.htaccess` commands). Can someone please shed some light on how WSGI, CGI, and the frameworks are all connected ? What do I need to know / install / do if I want to run a web framework (say web.py or cherrypy) on my basic CGI configuration ? How to install WSGI support ? Thanks in advance
0
[ 2, 184, 20059, 2741, 6596, 18, 15, 619, 18, 2234, 17, 272, 2234, 2742, 429, 800, 3726, 3726, 31, 57, 21, 705, 11694, 2176, 113, 31, 92, 485, 20059, 17505, 28, 272, 2234, 9, 31, 2321, 32, 22, 18, 14, 24384, 272, 2234, 185, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
x86 assembly Protected mode Keyboard Access === So I'm working on keyboard input for a very bare bones kernel that I'm throwing together, and I'm completely stuck. I can't seem to find *any* information online that can tell me the information I need to know. My kernel is running in protected mode right now, so I can't use the "normal" real mode keyboard routines without jumping into real mode and back, which I'm trying to avoid. So basically, I want to access my keyboard from protected mode. Does anyone know how to do this? The only thing I have found so far is that it involves talking to the controller directly using in/out ports, but beyond that I'm stumped. This is, of course, not something that comes up very often as usually asm tutorials assume you're running an OS underneath... I'm very new to x86 assembly, so really I'm just looking for some good resources for working with the standard hardware from protected mode. I think I'll be good if I can get that going. Oh, if you're going to post code examples, I'm compiling the assembly bits with NASM, and linking it to C bits compiled with DJGPP if it matters. Thanks
0
[ 2, 993, 3274, 1475, 3803, 3740, 8896, 1381, 800, 3726, 3726, 86, 31, 22, 79, 638, 27, 8896, 6367, 26, 21, 253, 4856, 4915, 17007, 30, 31, 22, 79, 6033, 429, 15, 17, 31, 22, 79, 1524, 4549, 9, 31, 92, 22, 38, 2260, 20, 477, 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 do I create my own custom group in mediawiki? === I have been reading carefully through the mediawiki documentation but I have not been able to find out how to create new groups. When I look at Special:Userrights, I see only 3 groups : Bots, Sysops, Bureaycrats I would like to create my own custom groups, so I can use some extensions like the http://www.mediawiki.org/wiki/Extension:Group_Based_Access_Control. Can someone tell me how it's done, or point me to some documentation? Thanks, Jeff
0
[ 2, 184, 107, 31, 1600, 51, 258, 5816, 214, 19, 941, 17375, 60, 800, 3726, 3726, 31, 57, 74, 1876, 4051, 120, 14, 941, 17375, 13945, 47, 31, 57, 52, 74, 777, 20, 477, 70, 184, 20, 1600, 78, 1170, 9, 76, 31, 361, 35, 621, 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...
get command output in pipe, C for Linux === I need to run a Linux CLI command and get its stdout output from C. I can use pipe() to create a pipe, then fork/exec, redirecting child's stdout descriptor into the pipe before calling exec(), and reading from the pipe in parent. Plus I'll need to wait on the child. But I can vaguely remember that there was a single call to do fork + redirect + exec + wait, like system() does fork + exec + wait, only system() doesn't do the redirect. Can anybody remember such an API?
0
[ 2, 164, 1202, 5196, 19, 7642, 15, 272, 26, 13024, 800, 3726, 3726, 31, 376, 20, 485, 21, 13024, 19391, 1202, 17, 164, 82, 354, 43, 1320, 5196, 37, 272, 9, 31, 92, 275, 7642, 5, 6, 20, 1600, 21, 7642, 15, 94, 8777, 118, 1706, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Polymorphic functors in std::for_each === I'm trying to use stl algorithm for\_each without proliferating templates throughout my code. std::for_each wants to instantiate MyFunctor class by value, but it can't since its abstract. I've created a functor adapter class which passes a pointer around and then derefernces it when appropriate. My Question: Does the STL or Boost already have such an adapter class? I don't want to have to reinvent the wheel! struct MyFunctor { virtual ~MyFunctor() {} virtual void operator()(int a) = 0; } namespace { template<typename FunctorType, typename OperandType> struct FunctorAdapter { FunctorAdapter(FunctorType* functor) : mFunctor(functor) {} void operator()(OperandType& subject) { (*mFunctor)(subject); } FunctorType* mFunctor; }; } void applyToAll(MyFunctor &f) { FunctorHelper<MyFunctor, int> tmp(&f); std::for_each(myvector.begin(), myvector.end(), tmp); } Cheers, Dave
0
[ 2, 3446, 12498, 596, 2414, 150, 10778, 19, 354, 43, 45, 45, 1106, 1, 14322, 800, 3726, 3726, 31, 22, 79, 749, 20, 275, 354, 255, 9083, 26, 1, 14322, 366, 895, 4102, 15073, 22894, 18, 892, 51, 1797, 9, 354, 43, 45, 45, 1106, 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...
NAnt with DB integration tests, and eventually Continuous Integration === I've been exploring different strategies for running integration tests within some Nant build scripts. Typically a number of different scripts are chained in one monolithic build that has separate targets: staging (build a staging version, like build), build (just build the stuff), integration (build the stuff and run the integration tests). This works reasonably well, the build target takes about a third of the time to run as the integration target and it's not painfully long so I don't find myself disinclined to run it frequently. The integration target on the other hand takes long enough that I don't want to do it very often - ideally just before I'm ready to do a deploy. Does this seem like a reasonable strategy? IOW, am I doing it right? The plan is to eventually move this project to Continuous Integration. I'm new to the whole Continuous Integration thing but I think I understand the concept of "breaking the build" so I'm wondering what are some good practices to pick up in order to make the most of it? Any good sources of reading on this subject would be appreciated as well. Thanks!
0
[ 2, 13, 11028, 29, 13, 9007, 8078, 4894, 15, 17, 878, 6357, 8078, 800, 3726, 3726, 31, 22, 195, 74, 11748, 421, 10272, 26, 946, 8078, 4894, 363, 109, 13, 11028, 1895, 17505, 9, 2442, 21, 234, 16, 421, 17505, 50, 2858, 69, 19, 53,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dealing with some grey code style issues === We have an intermediate developer who is really good at what he does, but there is one rough edge to this diamond. He's really insistent that every method have only one entry and one exit point. The approach that I'm taking is to not make too big a deal out of it for code that he writes (except when there is a serious clarity issue). What bothers me is that he starts to refactor other's code so that it only has one entry and exit point. This is code that has already been tested (but not always with automated tests), so there is risk involved. I am a senior developer in the team, so I have the authority to define the rules as far as the code base goes. But what would be the correct path to follow here? Should I let him continue to refactor other's code like this? If not, what is the best way of approaching the situation?
0
[ 2, 5746, 29, 109, 2682, 1797, 1034, 1549, 800, 3726, 3726, 95, 57, 40, 6889, 10058, 72, 25, 510, 254, 35, 98, 24, 630, 15, 47, 80, 25, 53, 4182, 1407, 20, 48, 5313, 9, 24, 22, 18, 510, 26720, 30, 352, 2109, 57, 104, 53, 2792...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Generics in legacy code === We've got a fairly large amount of code that just made the jump to Java 5. We've been using generics in those components targeted at being released in the Java 5 version, but the remaining code is, of course, full of raw types. I've set the compiler to generate an error for raw types and started manually clearing them, but at the present rate it'll take a *very* long time to go through with it (there are about *2500* errors). And that's with Eclipse's helpful Infer Generic Type quick fix, which always gets rid of the errors, but often generates code that needs further work. Is there any better way to dealing with this? Any automated tools better than Eclipse? Any way to apply the refactoring to *all* occurences instead of doing them one-by-one? Or do you just ignore the warnings?
0
[ 2, 12733, 18, 19, 7780, 1797, 800, 3726, 3726, 95, 22, 195, 330, 21, 6647, 370, 2006, 16, 1797, 30, 114, 117, 14, 3936, 20, 8247, 331, 9, 95, 22, 195, 74, 568, 12733, 18, 19, 273, 5090, 9536, 35, 142, 261, 19, 14, 8247, 331, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Literate programming === [Literate programming][1] is a way of developing software where documentation comes first, then the coding. One writes the documentation of a code snippet, and then writes the implementation of the snippet. The visual appearance of the software source code would be a plain document like word, with code paragraphs in it. I am trying to convert the dev shop I work to use only literate programming, as it brings great advantages to code readability and maintenance. However, due to the lack of tools the LP usage is limited in the company. For example, the ideal way to program literate is to write a paragraph using word markup, and then insert a subparagraph with the implementation. But i cannot seem to find any good tools for VS200x to perform LP with. Ideally, such a tool would look just like Word 2007, but integrated into the IDE. When the coder sets the cursor on a code paragraph, it would have all the functionality provided just like we have now in our IDE. What are good tools for LP, with .NET and VS200x in particular? [1]: http://en.wikipedia.org/wiki/Literate_programming
0
[ 2, 27146, 3143, 800, 3726, 3726, 636, 12438, 1373, 3143, 500, 2558, 165, 500, 25, 21, 161, 16, 3561, 2306, 113, 13945, 1624, 64, 15, 94, 14, 13, 15458, 9, 53, 6215, 14, 13945, 16, 21, 1797, 13, 29061, 15, 17, 94, 6215, 14, 6123,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Missing Visual Studio features when running in 64-bit mode === Can someone tell me why I don't have all of the dev studio windows available to me when I develop on a 64-bit platform? I upgraded my dev desktop box to server 2003 x64 to match our deployment platform. Since then (I'm using VS2005) I've noticed that several windows aren't available. I can't view Processes (which is the most annoying) so I don't know which processes I'm attached to. I can attach to a process fine, but it won't show me what is already running under the debugger. There are others, but that's the one that sticks out in my mind at the moment. My question is where are these limitations of developing under 64 bit documented (assuming they are)? (Of course, I also get the "Edit/Continue" warning dialog all the time telling me that doesn't work in 64-bit) Also, is VS2008 any better under 64 bit?
0
[ 2, 2863, 3458, 1120, 967, 76, 946, 19, 4384, 8, 3326, 3740, 800, 3726, 3726, 92, 737, 494, 55, 483, 31, 221, 22, 38, 57, 65, 16, 14, 9664, 1120, 1936, 904, 20, 55, 76, 31, 2803, 27, 21, 4384, 8, 3326, 2452, 60, 31, 9958, 51,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you change the colors of the text when doing a Schema Compare in Visual Studio 2008 Database Edition? === I am trying to find out how to modify the Colors / Fonts used in the Schema Compare "Object Definitions" window that appears after a comparison is done between two databases. The color scheme I have is unreadable, but I cannot seem to find the right settings in the Tools/Options/Environment/Fonts and Colors dialog. Thanks for any help. Jason
0
[ 2, 184, 107, 42, 753, 14, 5268, 16, 14, 1854, 76, 845, 21, 23874, 11590, 19, 3458, 1120, 570, 6018, 1322, 60, 800, 3726, 3726, 31, 589, 749, 20, 477, 70, 184, 20, 17579, 14, 5268, 13, 118, 9978, 18, 147, 19, 14, 23874, 11590, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I use Tkinter with Python on Windows Vista? === I installed Python 2.6 for one user on Windows Vista. Python works okay, but when I try: `import Tkinter`, it says the side-by-side configuration has errors. Any ideas on how to resolve this?
0
[ 2, 184, 107, 31, 275, 13, 38, 1767, 815, 29, 20059, 27, 1936, 13520, 60, 800, 3726, 3726, 31, 4066, 20059, 172, 9, 379, 26, 53, 4155, 27, 1936, 13520, 9, 20059, 693, 1705, 15, 47, 76, 31, 1131, 45, 13, 1, 1660, 1993, 13, 38, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to change a span to look like a pre with CSS? === Is it possible to to change a &lt;span&gt; tag (or &lt;div&gt;) to preformat its contents like a &lt;pre&gt; tag would using only CSS?
0
[ 2, 184, 20, 753, 21, 6289, 20, 361, 101, 21, 782, 29, 272, 18, 18, 60, 800, 3726, 3726, 25, 32, 938, 20, 20, 753, 21, 279, 255, 38, 73, 18, 3206, 1569, 263, 38, 73, 3383, 13, 5, 248, 279, 255, 38, 73, 12916, 1569, 263, 38,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I use Master theorem to describe recursion? === Recently I have been studying recursion; how to write it, analyze it, etc. I have thought for a while that recurrence and recursion were the same thing, but some problems on recent homework assignments and quizzes have me thinking there are slight differences, that 'recurrence' is the way to describe a recursive program or function. This has all been very Greek to me until recently, when I realized that there is something called the 'master theorem' used to write the 'recurrence' for problems or programs. I've been reading through the wikipedia page, but, as usual, things are worded in such a way that I don't really understand what it's talking about. I learn much better with examples. So, a few questions: Lets say you are given this recurrence: > r(n) = 2*r(n-2) + r(n-1); r(1) = r(2) > = 1 Is this, in fact, in the form of the master theorem? If so, in words, what is it saying? If you were to be trying to write a small program or a tree of recursion based on this recurrence, what would that look like? Should I just try substituting numbers in, seeing a pattern, then writing pseudocode that could recursively create that pattern, or, since this may be in the form of the master theorem, is there a more straightforward, mathematical approach? Now, lets say you were asked to find the recurrence, T(n), for the number of additions performed the program created from the previous recurrence. I can see that the base case would probably be T(1) = T(2) = 0, but I'm not sure where to go from there. Basically, I am asking how to go from a given recurrence to code, and the opposite. Since this looks like the master theorem, I'm wondering if there is a straightforward and mathematical way of going about it.
0
[ 2, 184, 107, 31, 275, 1129, 9532, 20, 4996, 26604, 5991, 60, 800, 3726, 3726, 1989, 31, 57, 74, 4493, 26604, 5991, 73, 184, 20, 2757, 32, 15, 16051, 32, 15, 2722, 9, 31, 57, 289, 26, 21, 133, 30, 26604, 139, 2940, 17, 26604, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Printing with the System.WIndows.Forms.WebBrowser control === I'm using th WebBrowser control in the .net 2.0 framework. Is it possible to change the printing behavior so it always prints to the default printer, without showing any dialog to the user? This is for a kiosk so there will always be a printer directly connected to the Kiosk, and printing should be seemless to the user.
0
[ 2, 7312, 29, 14, 329, 9, 27508, 18, 9, 4190, 18, 9, 14113, 25699, 4104, 569, 800, 3726, 3726, 31, 22, 79, 568, 13, 96, 10192, 5417, 4104, 569, 19, 14, 13, 9, 2328, 172, 9, 387, 6596, 9, 25, 32, 938, 20, 753, 14, 7312, 3257, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual Studio 2008 doesn't show my XML comments in JS files. === function Submit_click() { if (!bValidateFields()) return; } function bValidateFields() { /// <summary>Validation rules</summary> /// <returns>Boolean</returns> ... } So, when I type the call to my bValidateFields() function intellisence in Visual Studio doesn't show my comments. But according to [this][1] it should. Should it? [1]: http://weblogs.asp.net/scottgu/archive/2007/06/21/vs-2008-javascript-intellisense.aspx
0
[ 2, 3458, 1120, 570, 1437, 22, 38, 298, 51, 23504, 7534, 19, 487, 18, 6488, 9, 800, 3726, 3726, 1990, 12298, 1, 150, 10129, 5, 6, 13, 1, 100, 13, 5, 187, 220, 18506, 8209, 1109, 18, 5, 6, 6, 788, 73, 13, 1, 1990, 334, 18506, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Converting a String to HEX in SQL === I'm looking for a way to transform a genuine string into it's hexadecimal value in SQL. I'm looking something that is Informix-friendly but I would obviously prefer something database-neutral Here is the select I am using now: SELECT SomeStringColumn from SomeTable Here is the select I would like to use: SELECT hex( SomeStringColumn ) from SomeTable Unfortunately nothing is that simple... Informix gives me that message: *Character to numeric conversion error* Any idea?
0
[ 2, 19583, 21, 3724, 20, 24, 396, 19, 4444, 255, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 161, 20, 8007, 21, 10701, 3724, 77, 32, 22, 18, 24, 6791, 9522, 49, 3482, 1923, 19, 4444, 255, 9, 31, 22, 79, 699, 301, 30, 25, 10361,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 source control and bug fixes === If we need to issue a bug patch that does not include current development that has been committed, or any changes from their current version, what should be done to make the process safer and with lower overhead? We are currently using Subversion for our source control in a small (3 developers) team primarily developing in Visual Studio 2008. We anticipate that the team may group to 8 developers over the next year, and for any previous release support to become more complicated. While most customers are on the current release, some are further behind.
0
[ 2, 246, 5242, 26, 1267, 569, 17, 6256, 6098, 160, 800, 3726, 3726, 100, 95, 376, 20, 1513, 21, 6256, 7331, 30, 630, 52, 468, 866, 522, 30, 63, 74, 4164, 15, 54, 186, 1693, 37, 66, 866, 615, 15, 98, 378, 44, 677, 20, 233, 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...
Issue to determine a currently downloading file size? === I have an interesting problem. I need to do a progress bar from an asycronusly php file downloading. I thought the best way to do it is before the download starts the script is making a txt file which is including the file name and the original file size as well. Now we have an ajax function which calling a php script what is intended to check the local file size. I have 2 main problems. 1. files are bigger then 2GB so filesize() function is out of business 2. i tried to find a different way to determine the local file size like this: function getSize($filename) { $a = fopen($filename, 'r'); fseek($a, 0, SEEK_END); $filesize = ftell($a); fclose($a); return $filesize; } Unfortunately the second way giving me a tons of error assuming that i cannot open a file which is currently downloading. Is there any way i can check a size of a file which is currently downloading and the file size will be bigger then 2 GB? Any help is greatly appreciated.
0
[ 2, 1513, 20, 3746, 21, 871, 7121, 68, 3893, 1072, 60, 800, 3726, 3726, 31, 57, 40, 4883, 1448, 9, 31, 376, 20, 107, 21, 3455, 748, 37, 40, 28, 93, 19587, 267, 102, 13, 26120, 3893, 7121, 68, 9, 31, 289, 14, 246, 161, 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...
How to relate between two classes with mongodb and spring? === I'am new with mongodb, i have a Person class and Note class, a person could have 0 or n notes. So i create a person after he can add his own notes. My class Person @Document public class Person { @Id private String id; private String firstName; private String lastName; private String username; private String password; private String access ; Address address ; @DBRef private Set<Note> notes; public Person() { this.notes= new HashSet<Note>(); } public Person(String firstName, String lastName, Address address, Set<Note> notes) { super(); //this.id = id; generer automatiquement par MongoDB ( rempacer par UUID ) this.firstName = firstName; this.lastName = lastName; this.address = address; this.notes=new HashSet<Note>(); this.notes.addAll(notes); } //setters and getters Note class: @Document public class Note { @Id private String id; private String message; public Note() { } public Note(String id,String message) { this.id=id; this.message=message; } @Override public String toString() { return "id: "+this.getId()+ " - messgae: " + this.getMessage(); } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getMessage() { return message; } public void setMessage(String message) { this.message=message; } } PersonService public Boolean addPerson(Person person) {try {// Set a new value to the id property first since it's blank if((person.getId()==null)||(person.getId()=="")) { person.setId(UUID.randomUUID().toString()); // crypt password person.setPassword(getEncodedPassword(person.getPassword())); personRepository.save(person); return true; } else // for existent person ( updating) { if(person.getPassword().equals(personRepository.findOne(person.getId()).getPassword())) { personRepository.save(person); return true; } else { person.setPassword(getEncodedPassword(person.getPassword())); personRepository.save(person); return true; } } } catch (Exception e) { throw new TechnicalException(e); } } What i need to know , how to add notes and relate them to the person how created them tks in advance
0
[ 2, 184, 20, 16464, 128, 81, 2684, 29, 3521, 5474, 220, 17, 1573, 60, 800, 3726, 3726, 31, 22, 765, 78, 29, 3521, 5474, 220, 15, 31, 57, 21, 840, 718, 17, 1945, 718, 15, 21, 840, 110, 57, 713, 54, 13, 103, 2434, 9, 86, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Delete button on ListView items (like for iPhone) === I have a ListView (with an Adapter of my own) where I'd like to add a delete button by swaping an item on the ListView (like on iPhones). I really don't know how to do it and where to start ... Could you please give me some hints ? Thanks
0
[ 2, 27448, 5167, 27, 968, 4725, 3755, 13, 5, 1403, 26, 21024, 6, 800, 3726, 3726, 31, 57, 21, 968, 4725, 13, 5, 1410, 40, 9924, 106, 16, 51, 258, 6, 113, 31, 22, 43, 101, 20, 3547, 21, 27448, 5167, 34, 17150, 68, 40, 9101, 27...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Open Highcharts in modal window === I'm working on a site where I use Highcharts quite heavily for presenting data in charts. I want to user to be able to "zoom" each chart into a modal window for better readability. I know how to manipulate the chart with its API, but I'm not quite sure how I can clone the chart and refer to the new chart with an variable? I've done alot of searching, and all I've found is how to open in modal window with Highcharts own modal library, but I'm using a modal library called Lightview.
0
[ 2, 368, 183, 5433, 38, 18, 19, 13, 20756, 1463, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 689, 113, 31, 275, 183, 5433, 38, 18, 1450, 2991, 26, 12310, 1054, 19, 5158, 9, 31, 259, 20, 4155, 20, 44, 777, 20, 13, 7, 2500, 2636,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Script Custom High Chart method === i added a method inside my high chart function but im having trouble calling it. i think i might have the wrong syntax or may have placed the method in the wrong spot(relatively new to JS). the method is at the bottom of my code,i commented, and is called addPoint.its simply supposed to add a new point to the graph. i tried troubleshooting with putting an alert in the method but that has yet to work. heres a jfiddle: http://jsfiddle.net/fourgates/WdMrm/ here is my code: NewHighCharts = function() { chart = new Highcharts.Chart( { chart : { renderTo : 'container', type : 'line', marginRight : 130, marginBottom : 25, events: { click: function(e) { // find the clicked values and the series var x = e.xAxis[0].value, y = e.yAxis[0].value, series = this.series[0]; // Add it series.addPoint([x, y]); } } }, title : { text : 'Body Weight', x : -20 //center }, xAxis : { categories : ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] }, yAxis : { title : { text : 'Weight (lbs)' }, plotLines : [{ value : 0, width : 1, color : '#808080' }] }, tooltip : { formatter : function() { return '<b>' + this.series.name + '</b><br/>' + this.x + ': ' + this.y + 'lbs'; } }, legend : { layout : 'vertical', align : 'right', verticalAlign : 'top', x : -10, y : 100, borderWidth : 0 }, series : [{ name : 'George', data : [185,190,185,180] }, { name : 'Bindu', data : [115,110,112,115] }] });//end of chart //this is the method i added addPoint = function() { alert("You Added a point!") series = this.series[0]; series.addPoint([4, 190]); }; };//end of newHighCharts newChart = new NewHighCharts(); newChart.addPoint(); Thanks in advance for any help!
0
[ 2, 8247, 3884, 5816, 183, 1795, 2109, 800, 3726, 3726, 31, 905, 21, 2109, 572, 51, 183, 1795, 1990, 47, 797, 452, 2572, 2555, 32, 9, 31, 277, 31, 530, 57, 14, 1389, 22649, 54, 123, 57, 1037, 14, 2109, 19, 14, 1389, 1999, 5, 72...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
issue with android TelephonyManager on samsung galaxy S === I am trying to invoke an activity after receiving call ringtone, currently its just not working with samsung galaxy s . It is working on HTC & other phone. On samsung it is giving some weird behavior, first time it works diff & from second time it doesnt show any activity. aim is to silent ringtone after receiving the call & show diff activity for 5 sec public class CallPostPondActivity extends BroadcastReceiver { static Ringtone oRingtone; // code 2 BroadcastReceiver private AudioManager amanager; TelephonyManager telephonyManager; PhoneStateListener listener; public void onReceive(final Context context, Intent intent) { RingtoneManager rm = new RingtoneManager(context); //this.context = context; final Bundle extras = intent.getExtras(); if (intent.getAction().equals( TelephonyManager.ACTION_PHONE_STATE_CHANGED)){ final String state = extras.getString(TelephonyManager.EXTRA_STATE); if ("IDLE".equals(state)){ Log.d("RINGTONE", "Into idle"); if(CallPostPondActivity.oRingtone!=null) { Log.d("RINGTONE", "Into stop ringtone"); Ringtone ringtone = CallPostPondActivity.oRingtone; oRingtone = null; ringtone.stop(); rm.stopPreviousRingtone(); } } if ("OFFHOOK".equals(state)){ Log.d("RINGTONE", "Into offhook"); Ringtone ringtone = CallPostPondActivity.oRingtone; oRingtone = null; ringtone.stop(); rm.stopPreviousRingtone(); } if ("RINGING".equals(state)){ Log.d("RINGTONER", "Into Ringing"); amanager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); amanager.setRingerMode(amanager.RINGER_MODE_SILENT); // no sound and no vibration amanager.setStreamMute(amanager.STREAM_RING, true); Intent in = new Intent(context,RingingDisplayActivity.class); in.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); context.startActivity(in); Runnable stopMusic = new Runnable() { public void run() { playmusic(context); } }; Handler handler = new Handler(); handler.postDelayed(stopMusic, 5000); } } 2nd activity ........... public class RingingDisplayActivity extends Activity { /** Called when the activity is first created. */ private AudioManager amanager; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } class sleepInBkground extends AsyncTask<Void, integer, ArrayList<Object>> { //ProgressDialog dialog; @Override protected ArrayList<Object> doInBackground(Void... Params) { try { Thread.sleep(5000); Log.d("activity", "enetered in other activity"); //android.os.SystemClock.sleep(5000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } Log.d("activity", "enetered in other activity"); ArrayList wordDef = new ArrayList(); return wordDef; } protected void onPostExecute(ArrayList<Object> wordDef) { // Log.d("activity", "enetered in post execute activity"); RingingDisplayActivity.this.finish(); } } } any known issues ?
0
[ 2, 1513, 29, 13005, 4338, 22031, 22256, 27, 22981, 9358, 13, 18, 800, 3726, 3726, 31, 589, 749, 20, 28371, 40, 2358, 75, 3396, 645, 1765, 7117, 15, 871, 82, 114, 52, 638, 29, 22981, 9358, 13, 18, 13, 9, 32, 25, 638, 27, 746, 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 retrieve sum of a column in PHP === Hi I have a query in PHP that calculates the sum of all the values in a column. However when I try to print, nothing happens. I get a blank page. Im pretty sure its an obvious problem but constant coding means I cant think straight :( $query = 'SELECT SUM(cost) AS total_price FROM items WHERE item_ID = $input'; $sum = mysql_query($query, $database); $row = mysql_fetch_row($sum); echo "Total "" = $". $row['total_price'];
0
[ 2, 184, 20, 11917, 3907, 16, 21, 4698, 19, 13, 26120, 800, 3726, 3726, 4148, 31, 57, 21, 25597, 19, 13, 26120, 30, 18469, 18, 14, 3907, 16, 65, 14, 4070, 19, 21, 4698, 9, 207, 76, 31, 1131, 20, 4793, 15, 626, 5531, 9, 31, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Rails: Routes works locally, not on Heroku === I am trying to learn Ruby on Rails using this Rails Tutorial. Earlier, I got everything working fine but since Rails was updated to 3.2, I've tried doing it again. I got to this point where I am trying to customize the routes for my static pages. http://ruby.railstutorial.org/chapters/filling-in-the-layout?version=3.2#sec:rails_routes Locally, it works but when I push to Heroku, I get the default Rails page even though I have deleted public/index.html http://evening-summer-1951.herokuapp.com/ Does anyone have any idea what the problem might be?
0
[ 2, 2240, 18, 45, 5050, 693, 6680, 15, 52, 27, 36, 9266, 800, 3726, 3726, 31, 589, 749, 20, 2484, 10811, 27, 2240, 18, 568, 48, 2240, 18, 29724, 9, 1201, 15, 31, 330, 796, 638, 1123, 47, 179, 2240, 18, 23, 6372, 20, 203, 9, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Downloading files in api<9 === I just realized that my app, with over 300 users still using an Android version under Gingerbread, is having issues for them because they dont have the DownloadManager that was introduced in api 9 (2.3). Is there a compatibility library or something that I can use or is my best best just to use an asyncTask to download the files manually?
0
[ 2, 7121, 68, 6488, 19, 21, 2159, 1, 518, 800, 3726, 3726, 31, 114, 1896, 30, 51, 4865, 15, 29, 84, 3565, 3878, 174, 568, 40, 13005, 615, 131, 12101, 22852, 15, 25, 452, 1549, 26, 105, 185, 59, 1049, 57, 14, 7121, 22256, 30, 23...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
need an Hibernate ORM mapping idea === I Have a table(student) with columns stu_id, stu_name, favourite_subject, subject_id favourite_subject will have predefined values like maths,english etc. if the value is maths, subject_id will have table: maths_subject's id. meaning, based on favourite_subject value, subject_id will be pointing to the corresponding subject's id. How can i implement in Hibernate ORM Framework. <hibernate-mapping package="com.sample.project"> <class name="StudentDTO" table="student"> <meta attribute="class-description">class to hold student data</meta> <id name="id" type="long" column="stu_id"> <generator class="increment"/> </id> <discriminator column="favourite_subject" type="string"/> <property name="studentName" column="stu_name" not-null="true"/> <!--?? here i don't know how to proceed. ??--> <subclass name="??????" discriminator-value="Maths"> ???? </subclass> </class> </hibernate-mapping> all subjects will have their own tables & own corresponding entity classes.
0
[ 2, 376, 40, 4148, 2102, 8820, 54, 79, 13305, 882, 800, 3726, 3726, 31, 57, 21, 859, 5, 24822, 6, 29, 7498, 12519, 1, 1340, 15, 12519, 1, 7259, 15, 7740, 1, 28743, 15, 1550, 1, 1340, 7740, 1, 28743, 129, 57, 782, 13439, 4070, 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...
Thread Safe Random Numbers === I tried to implement "Mote Carlo" algorithm in parallel manner, so I need to use a thread safe version of random number generator I searched a lot and finally found int qrand () which is a Thread-safe version of the standard C++ rand() function,(defined in <cstdlib> and <stdlib.h>) when i use it, VS fired "identifier not found" error I use MS visual studio'10 and wrote my code in C++ using OMP Any help?
0
[ 2, 9322, 1834, 5477, 2116, 800, 3726, 3726, 31, 794, 20, 8713, 13, 7, 20209, 9365, 7, 9083, 19, 3821, 3832, 15, 86, 31, 376, 20, 275, 21, 9322, 1834, 615, 16, 5477, 234, 15286, 31, 9036, 21, 865, 17, 722, 216, 19, 38, 2593, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Display Currency in two decimals, but keeping all available decimals === Quick(I hope) question. I've got this DataGrid, containing a few currency column's. What I can't seem to find is how to display the currency in 2 decimals. But maintaining a possible 3 or 4 decimal value in the cell. If tried some string-formatting but that actually changes the value. And so does a IValueConverter of course. So what am I missing? or could anybody point me in the right direction?
0
[ 2, 3042, 10507, 19, 81, 26380, 18, 15, 47, 2882, 65, 904, 26380, 18, 800, 3726, 3726, 2231, 5, 49, 1376, 6, 1301, 9, 31, 22, 195, 330, 48, 1054, 16375, 15, 3503, 21, 310, 10507, 4698, 22, 18, 9, 98, 31, 92, 22, 38, 2260, 20,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Joomla contact pane toggler === I made a contact person in Joomla 2.5.1 and a conatct link. On the FE it shows the contact informations and the conatact form in an accordion. How can i rid off it and show the whole contact page?
0
[ 2, 2640, 2636, 531, 2203, 13, 16660, 20, 4572, 1252, 800, 3726, 3726, 31, 117, 21, 2203, 840, 19, 2640, 2636, 531, 172, 9, 264, 9, 165, 17, 21, 1065, 721, 4812, 3508, 9, 27, 14, 3686, 32, 1285, 14, 2203, 676, 18, 17, 14, 1065,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 define jquery version with rails asset pipeline === I use Rails 3.1 with asset-pipeline and I would like to use a specific version of JQuery. For example for my project JQuery 1.6.2 is added by default but I would like to use JQuery 1.7.1 Can I specified it in my application.js? Or it's something to configure in my Gemfile (jquery-rails gem for example, my version is 1.0.14)? Thanks
0
[ 2, 184, 9267, 487, 8190, 93, 615, 29, 2240, 18, 12146, 12250, 800, 3726, 3726, 31, 275, 2240, 18, 203, 9, 165, 29, 12146, 8, 15185, 1143, 17, 31, 83, 101, 20, 275, 21, 1903, 615, 16, 487, 8190, 93, 9, 26, 823, 26, 51, 669, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Linq-to-sql code is not returning results even though the sql generated DOES return results === I have the following code in my application var query = context.xosAssets.Where(x => x.GSA == 0).Take(INDEX_ASSET_QUERY_COUNT); var assets = query.ToList(); // Debug string message = string.Format("Assets waiting for indexing: {1}{0}Database:{3}{0}Query: {2}", Environment.NewLine, query.Count(), query.ToString(), context.Connection.Database); System.Diagnostics.EventLog.WriteEntry("GSAFeed", message, System.Diagnostics.EventLogEntryType.Information); When this runs, `query.Count()` is zero and `assets.Count` is zero because no results are returned. However, this is incorrect as ALL records in this database have their `GSA` field set to zero. When I take the output from `query.ToString()` and run it (replacing `@p0` with 0), I get all the correct responses. I have verified that I"m on the exact same database as is being outputted by `context.Connection.Database` and I am running out of options on what can be wrong. Why is Linq-to-sql returning no results even though the actual sql does?
0
[ 2, 6294, 1251, 8, 262, 8, 18, 22402, 1797, 25, 52, 2485, 1736, 166, 362, 14, 4444, 255, 6756, 630, 788, 1736, 800, 3726, 3726, 31, 57, 14, 249, 1797, 19, 51, 3010, 4033, 25597, 800, 4141, 9, 13955, 18, 9790, 38, 18, 9, 2798, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is implementing java.io.Serializable even in simple POJO Java classes a best practice? === In general, is it a best practice to have simple POJO Java classes implement java.io.Serializable?
0
[ 2, 25, 17333, 8247, 9, 1963, 9, 4104, 2815, 3186, 579, 166, 19, 1935, 2353, 1636, 8247, 2684, 21, 246, 1345, 60, 800, 3726, 3726, 19, 297, 15, 25, 32, 21, 246, 1345, 20, 57, 1935, 2353, 1636, 8247, 2684, 8713, 8247, 9, 1963, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do you manage your Javascript files? === Nowadays, we have tons of Javascript libraries per page in addition to the Javascript files we write ourselves. How do you manage them all? How do you minify them in an organized way?
0
[ 2, 184, 107, 42, 4705, 154, 8247, 8741, 6488, 60, 800, 3726, 3726, 15694, 15, 95, 57, 5278, 16, 8247, 8741, 8649, 416, 2478, 19, 848, 20, 14, 8247, 8741, 6488, 95, 2757, 10021, 9, 184, 107, 42, 4705, 105, 65, 60, 184, 107, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Implenting Team Foundation Server with a small development team === We have a small 3 developer team that is currently using Subversion for our source control. We expect the team to group to 8 members within the next 6 to 12 months. We are considering changing our source control to either TFS or Mercurial for improved branching. I know TFS is overkill for just branching, but that is the immediate need, and the other features of TFS could aid our team. One of our main concerns with TFS is we've heard that there is a lot of overhead deploying it, especially on a small team. I'm hoping to get some community insight into just how much overhead there may be involved, suggestions to make the process easier, and anything else the community may feel is useful in making the decision to implement.
0
[ 2, 5420, 13465, 68, 173, 1304, 8128, 29, 21, 284, 522, 173, 800, 3726, 3726, 95, 57, 21, 284, 203, 10058, 173, 30, 25, 871, 568, 972, 10898, 26, 318, 1267, 569, 9, 95, 4186, 14, 173, 20, 214, 20, 469, 443, 363, 14, 328, 400, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I use javascript timing to control on mouse stop and on mouse move events === So I have a control (a map) on an aspx page. I want to write some javascript to onload setup the following: 1. when mouse stops on control = some code 2. when mouse moves = some code (but only if the move is longer than 250 mil sec) This works to trigger code on stop and then on move... function setupmousemovement() { var map1 = document.getElementById('Map_Panel'); var map = document.getElementById('Map1'); map1.onmousemove = (function() { var onmousestop = function() { //code to do on stop }, thread; return function() { //code to do on mouse move clearTimeout(thread); thread = setTimeout(onmousestop, 25); }; })(); }; But I cannot figure out how to introduce a delay into the on move code. I thought I had it with this... function setupmousemovement() { var map1 = document.getElementById('Map_Panel'); var map = document.getElementById('Map1'); map1.onmousemove = (function() { var onmousestop = function() { //code to do on stop clearTimeout(thread2); }, thread; return function() { thread2 = setTimeout("code to do on mouse move", 250); clearTimeout(thread); thread = setTimeout(onmousestop, 25); }; })(); }; But it does not behave as I thought it would. The on move "thread2" is never cleared by the stop. What am I missing?
0
[ 2, 184, 92, 31, 275, 8247, 8741, 11812, 20, 569, 27, 7567, 747, 17, 27, 7567, 780, 963, 800, 3726, 3726, 86, 31, 57, 21, 569, 13, 5, 58, 2942, 6, 27, 40, 28, 306, 396, 2478, 9, 31, 259, 20, 2757, 109, 8247, 8741, 20, 27, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
php/mysql login works on one server (php 5.0.2) but does not work on the other (php 5.1.6) === Here is a stripped down version of what I use to authenticate users, it works fine on my php v5.0.2/mysql 4.0.21 server, but fails on my php v5.1.6/mysql v5.0.45 server. In the code below, should I be aware of anything that might not be supported by the newer version of php & mysql? Global variables have been enabled. <?php if(!isset($HTTP_POST_VARS['username'])&&!isset($HTTP_POST_VARS['password'])) { //Visitor needs to enter a name and password ?> <h1>Please Log In</h1> This page is secret. <form method="post" action="<?php echo $PHP_SELF;?>"> <table border="1"> <tr> <th> Username </th> <td> <input type="text" name="username"> </td> </tr> <tr> <th> Password </th> <td> <input type="password" name="password"> </td> </tr> <tr> <td colspan="2" align="center"> <input type="submit" value="Log In"> </td> </tr> </table> </form> <?php } else { // connect to mysql include('../cgi-bin/db.php'); $username = $HTTP_POST_VARS['username']; $password = md5($HTTP_POST_VARS['password']); if(!$db) { echo 'Cannot connect to database.'; exit; } // select the appropriate database $mysql = mysql_select_db('quickwebcms'); if(!$mysql) { echo 'Cannot select database.'; exit; } // query the database to see if there is a record which matches $query = "select count(*) from auth where username = '$username' and password = '$password'"; $result = mysql_query( $query ); if(!$result) { echo 'Cannot run query.'; exit; } $count = mysql_result( $result, 0, 0 ); if ( $count > 0 ) { // visitor's name and password combination are correct echo '<h1>Here it is!</h1>'; echo 'I bet you are glad you can see this secret page.'; } else { // visitor's name and password combination are not correct echo '<h1>Go Away!</h1>'; echo 'You are not authorized to view this resource.'; } } ?>
0
[ 2, 13, 26120, 118, 915, 18, 22402, 6738, 108, 693, 27, 53, 8128, 13, 5, 26120, 331, 9, 387, 9, 135, 6, 47, 630, 52, 170, 27, 14, 89, 13, 5, 26120, 331, 9, 165, 9, 379, 6, 800, 3726, 3726, 235, 25, 21, 10841, 125, 615, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
VS 2005 Setup Projects: Deploy Many Projects With One MSI === I have 3 projects in my solution that I want to deploy. Is there a nice and quick way of using Visual Studio's setup projects to deploy all three apps using one MSI and letting the user decide which apps he wants to install during the install process? I have setup projects for the 3 individual apps, I also have an overarching setup project that has the output of those other three projects. Am I on the right track or is there a better way?
0
[ 2, 4611, 812, 18161, 2314, 45, 17617, 151, 2314, 29, 53, 4235, 49, 800, 3726, 3726, 31, 57, 203, 2314, 19, 51, 4295, 30, 31, 259, 20, 17617, 9, 25, 80, 21, 2210, 17, 2231, 161, 16, 568, 3458, 1120, 22, 18, 18161, 2314, 20, 176...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JQuery Rounded Corners in Internet Explorer (IE) messed up === I'm using JQuery's jquery.corner.js to create rounded corners on some td tags, and they look fine in IE EXCEPT 1. if you open a new tab and then come back to the page 2. if you hover over a javascript-executing div / menu (I think). The rounded corners are replaced with horizontal lines, and text within the td tag is pushed down. Once the page is refreshed, however, the rendering is back to normal. In all cases it works perfectly in Firefox. Any ideas? For reference, the Javascript code I'm using is as follows (it's a MOSS 2007 page): $(document).ready(function(){ $("table.ms-navheader td").corner("top"); }); Ryan Shripat [Mindbase Consulting, for Trinidad and Tobago Web Development and Consulting][1] [Free Trinidad and Tobago Online Classifieds][2] [1]: http://www.mindbaseconsulting.com "Trinidad Web and Software Devlopment and Consulting" [2]: http://www.trinibargains.com "Free Trinidad and Tobago Online Classifieds"
0
[ 2, 487, 8190, 93, 8472, 8894, 19, 2620, 8520, 13, 5, 660, 6, 21537, 71, 800, 3726, 3726, 31, 22, 79, 568, 487, 8190, 93, 22, 18, 487, 8190, 93, 9, 8559, 106, 9, 728, 18, 20, 1600, 8472, 8894, 27, 109, 15596, 3383, 18, 15, 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...
Get UID for message from GMail using javax.mail with IMAP === I'm using javax.mail to retrieve mails from GMail using IMAP. I want to also obtain the tags being applied to each mail, so I'm iterating over all the folders in the store (which actually are tags) and downloading mails for each other. I was using the method [getUID][1] of ImapFolder to obtain the UID for each message, and then compare them to recognise the same mail along different folders. For example, if I had the mail "Hello" tagged with "A" and "B", I would iterate through folders "Inbox", "A" and "B" and get the same mail from each folder; so I could keep a single copy tagged with "Inbox", "A" and "B". However, the getUID method returns a folder-relative ID, so the same mail may have different IDs in different folders, or different mails may have the same ID in different folders. In the example. "HellO" may appear as mail 1 in "A" and as mail 2 in "B". Is there a way of obtaining a store-relative id for each mail, independent of the folder? Or a better way to obtain the tags attached to a single mail? [1]: http://java.sun.com/products/javamail/javadocs/javax/mail/UIDFolder.html#getUID(javax.mail.Message)
0
[ 2, 164, 287, 1340, 26, 2802, 37, 489, 8079, 568, 8247, 396, 9, 8079, 29, 31, 15022, 800, 3726, 3726, 31, 22, 79, 568, 8247, 396, 9, 8079, 20, 11917, 4216, 18, 37, 489, 8079, 568, 31, 15022, 9, 31, 259, 20, 67, 5545, 14, 3383, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WinForms: What happens to the values stored in .resx files? === What happens to the name/value pairs stored inside a form's resx file? Are they compiled into the binary when I compile my project? For my particular project, I would like the ability to edit one of these values manually without recompiling (app.config-style), is there a simple way to do this?
0
[ 2, 628, 4190, 18, 45, 98, 5531, 20, 14, 4070, 8214, 19, 13, 9, 99, 18, 396, 6488, 60, 800, 3726, 3726, 98, 5531, 20, 14, 204, 118, 15165, 7473, 8214, 572, 21, 505, 22, 18, 10719, 396, 3893, 60, 50, 59, 9316, 77, 14, 14171, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does anyone have emacs style keybindings setup in Visual Studio 2008? === I'm looking for a .vssettings file that has emacs keybindings in it so that a member of our development team can use them. Anyone already have one setup they can share?
0
[ 2, 630, 1276, 57, 13, 62, 6893, 18, 1034, 1246, 22260, 18, 18161, 19, 3458, 1120, 570, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 13, 9, 710, 18, 19831, 18, 3893, 30, 63, 13, 62, 6893, 18, 1246, 22260, 18, 19, 32, 86, 30,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Rake db:migration problem === i've got a unfinished project that a developer just didn't finish and didn't let any documentation about the installation process. I've downloaded the production directory to my windows machine (running InstantRails 2), i created the databases as required in the database.yml and i tried to run the rake:db:migrate --trace but i'm receiving the following error message: (in D:/projects/broke2) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate rake aborted! uninitialized constant Admin D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:279:in `load_missing_constant' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:468:in `const_missing' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:480:in `const_missing' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/inflector.rb:285:in `constantize' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/inflector.rb:284:in `each' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/inflector.rb:284:in `constantize' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/core_ext/string/inflections.rb:143:in `constantize' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/migration.rb:481:in `migrations' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/mysql_adapter.rb:15:in `inject' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/migration.rb:465:in `each' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/migration.rb:465:in `inject' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/migration.rb:465:in `migrations' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/migration.rb:431:in `migrate' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/migration.rb:373:in `up' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/migration.rb:356:in `migrate' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/tasks/databases.rake:99 D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain' D:/InstantRails-2.0-win/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31 D:/InstantRails-2.0-win/ruby/bin/rake:19:in `load' D:/InstantRails-2.0-win/ruby/bin/rake:19 I'm a regular rails developer (it's not my first app) but I never saw this error and i don't have even clue to start to debug. Regards, Victor
0
[ 2, 21009, 13, 9007, 45, 10183, 5946, 1448, 800, 3726, 3726, 31, 22, 195, 330, 21, 16858, 669, 30, 21, 10058, 114, 223, 22, 38, 2106, 17, 223, 22, 38, 408, 186, 13945, 88, 14, 7758, 953, 9, 31, 22, 195, 23887, 14, 637, 16755, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where to put a simple Class in an MVC project? === Ok, this is possibly borderline-subjective, but I wonder where one would put a simple class that does something within an ASP.net MVC project? I mean a class like the [Base36 De/Encoder][1], that is neither Model nor Controller. Should this always go into a separate Class Library Assembly, or do such Classes have a place within the MVC Web Application project? And yes, I know that it probably does not really matter, I'm just possibly a bit over careful to learn a new technology the "right" way from the beginning. [1]: http://www.stum.de/2008/10/20/base36-encoderdecoder-in-c/
0
[ 2, 113, 20, 442, 21, 1935, 718, 19, 40, 307, 8990, 669, 60, 800, 3726, 3726, 5854, 15, 48, 25, 2879, 1862, 1143, 8, 28743, 1284, 15, 47, 31, 2666, 113, 53, 83, 442, 21, 1935, 718, 30, 630, 301, 363, 40, 28, 306, 9, 2328, 307...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I obtain the coordinates of a selected item container in a WPF ListView === I want to display some WPF elements near to the selected item of a ListView. How can I obtain the coordinates (screen or relative) of the selected ListViewItem? <ListView x:Name="TechSchoolListView" ClipToBounds="False" Width="Auto" Height="Auto" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Top" ItemTemplate="{DynamicResource TechSchoolDataTemplate}" ItemsSource="{Binding Path=TechSchoolResearchList, Mode=Default}" SelectedIndex="1" SelectedValue="{Binding Path=SelectedTechSchool, Mode=Default}" SelectionChanged="TechSchoolList_SelectionChanged" ItemContainerStyle="{DynamicResource TechSchoolItemContainerStyle}" ScrollViewer.CanContentScroll="False" ScrollViewer.VerticalScrollBarVisibility="Disabled" > <ListView.Background> <SolidColorBrush Color="{DynamicResource PanelBackgroundColor}"/> </ListView.Background> </ListView>
0
[ 2, 184, 92, 31, 5545, 14, 13714, 16, 21, 1704, 9101, 12147, 19, 21, 619, 7721, 968, 4725, 800, 3726, 3726, 31, 259, 20, 3042, 109, 619, 7721, 2065, 424, 20, 14, 1704, 9101, 16, 21, 968, 4725, 9, 184, 92, 31, 5545, 14, 13714, 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 do you upgrade a web site that uses #include files to a Web Application === I've recently inherited a fairly large web site. The project is set up as a web site in Visual studio, and not a Web Application. For a number of reasons, I would like to convert it to a web application. I started converting the application using these directions from Scott Gu: [Migrating a VS 2005 Web Site Project to VS 2005 Web Application Project][1]. While doing the conversion I discovered that this web site uses a ton of #include directives to include other .aspx files. The main problem with this is that currently each code-behind file directly calls controls (using this.<control>) from the pages it is including. This behavior seems to be allowed by the way that the compiler dynamically creates the .designer files in memory at compile time. The problem is that since I'm converting the application to a Web Application, I'm creating physical versions of the .designer files. Now the same call to controls on the included pages (using this.<control>), no longer work. I've tried a few things to try and remedy this: First, I noticed that the .aspx include files didn't have a @ Page directive, so I tried adding one. This prevented the app from compiling because the main page now had multiple @page directives. Second, I tried to just rename the included .aspx files to .inc, but I still have the same problem of the main page no longer being able to access the controls as they could before. Anyone ever done this before and have any thoughts on how to proceed without changing the entire structure of the web site? [1]: http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx
0
[ 2, 184, 107, 42, 9483, 21, 2741, 689, 30, 2027, 6926, 22640, 6488, 20, 21, 2741, 3010, 800, 3726, 3726, 31, 22, 195, 1989, 7179, 21, 6647, 370, 2741, 689, 9, 14, 669, 25, 309, 71, 28, 21, 2741, 689, 19, 3458, 1120, 15, 17, 52,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
The SQL Server DTS Connection2 object has an undocumented property, UseDSL. What does it do? === I'm building a wrapper for DTS around the Microsoft.SqlServer.DTSPkg80 (the RCW generated from DTSPKG80.DLL). Inside the RCW, on the Connection2 interface, the property "UseDSL" is defined. This property is not in the SQL Server Books Online documentation, and googling it just found a bunch of "fix my code" listings where people have set it to false. Any ideas?
0
[ 2, 14, 4444, 255, 8128, 13, 43, 38, 18, 2760, 135, 3095, 63, 40, 367, 28132, 69, 1354, 15, 147, 18, 255, 9, 98, 630, 32, 107, 60, 800, 3726, 3726, 31, 22, 79, 353, 21, 28051, 26, 13, 43, 38, 18, 140, 14, 7099, 9, 18, 22402...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to exclude files from Visual Studio compile? === I'm in the process of refactoring a project. I've got an entire subfolder which is known to be broken. Is there any declarative way to exclude that folder from the compile temporarily while I test the refactoring thus far? I realize I could delete the folder, but I'd like to do this through configuration if possible.
0
[ 2, 184, 20, 21077, 6488, 37, 3458, 1120, 26561, 60, 800, 3726, 3726, 31, 22, 79, 19, 14, 953, 16, 302, 17455, 68, 21, 669, 9, 31, 22, 195, 330, 40, 1078, 972, 8814, 106, 56, 25, 167, 20, 44, 2023, 9, 25, 80, 186, 121, 12078,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adding a 64bit WFE to a 32bit MOSS 2007 Farm === We started out our Farm with 2 32bit WFE's and a 32bit Application server. We have decided to add 64bit front ends to are farm, and for the most part, almost everything worked fine. The exception is a custom web part that accesses the user profile database. Works fine on 32bit front end, but we get the following error on the 64bit front end: > User Not Found: Could not load profile data from the database. > > > Description: An unhandled exception > occurred during the execution of the > current web request. Please review the > stack trace for more information about > the error and where it originated in > the code. > > Exception Details: > Microsoft.Office.Server.UserProfiles.UserNotFoundException: > User Not Found: Could not load profile > data from the database. > > Source Error: > > > An unhandled exception was generated > during the execution of the current > web request. Information regarding the > origin and location of the exception > can be identified using the exception > stack trace below. > > Stack Trace: > > > [UserNotFoundException: User Not > Found: Could not load profile data > from the database.] > Microsoft.Office.Server.UserProfiles.UserProfile.Load(SqlDataReader > myReader, Boolean bFirstRead, Boolean > bWssId) +930 > Microsoft.Office.Server.UserProfiles.UserProfile.Load(SqlDataReader > myReader) +64 > Microsoft.Office.Server.UserProfiles.UserProfile.RetrieveUser(String > strAcct, Guid gAcct, Byte[] bSid, > Nullable`1 recordId, Boolean > doNotResolveToMasterAccount) +1507 > Microsoft.Office.Server.UserProfiles.UserProfile..ctor(UserProfileManager > objManager, String strAcct, Boolean > doNotResolveToMasterAccount, Boolean > forceUserIsSelf) +584 > Microsoft.Office.Server.UserProfiles.UserProfile..ctor(UserProfileManager > objManager, String strAcct) +80 > Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String > strAccountName) +205 Since the WFE is on the same farm, it should be looking at the same database. Let me know if any more info is needed. Thanks.
0
[ 2, 4721, 21, 4384, 3326, 619, 3739, 20, 21, 2512, 3326, 8188, 624, 1937, 800, 3726, 3726, 95, 373, 70, 318, 1937, 29, 172, 2512, 3326, 619, 3739, 22, 18, 17, 21, 2512, 3326, 3010, 8128, 9, 95, 57, 868, 20, 3547, 4384, 3326, 431,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 object validation frameworks === I'm working on an ASP.NET project using MVP architecture. We would like to use an object validation framework in the domain, but are not that familiar with available frameworks other than the Castle.Components.Validator namespace. Does anyone have experience with any other light-weight object validation frameworks. If not, what approach do you use to validate in the domain (no ASP.NET validator control answers please)?
0
[ 2, 13, 9, 2328, 3095, 27999, 6596, 18, 800, 3726, 3726, 31, 22, 79, 638, 27, 40, 28, 306, 9, 2328, 669, 568, 13552, 2607, 9, 95, 83, 101, 20, 275, 40, 3095, 27999, 6596, 19, 14, 4603, 15, 47, 50, 52, 30, 3694, 29, 904, 6596,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
refactoring stored procedure === I have a stored procedure currently executing a complicated fetch that is frequently timing out when used. The proposed solution in my department has been to simply increase the timeout time length; which I don't really want to do. I'd like to refactor this sproc, but because it's so complicated and undocumented (yay legacy systems) I'm concerned my refactoring my not result in the same functionality executing more efficiently. Are there any strategies to use when refactoring a stored procedure to ensure the same functions are being performed in less time?
0
[ 2, 302, 17455, 68, 8214, 7004, 800, 3726, 3726, 31, 57, 21, 8214, 7004, 871, 25836, 21, 8343, 18312, 30, 25, 3086, 11812, 70, 76, 147, 9, 14, 2097, 4295, 19, 51, 604, 63, 74, 20, 1659, 1839, 14, 85, 1320, 85, 1476, 73, 56, 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...
Is there an easy way to do a complete migration from CVS to StarTeam? === I'm currently maintaining a CVS repository for source control. There is a push afoot to move to StarTeam. It has already been purchased and is a corporate standard for most projects. I was told by the corporate owners of the StarTeam servers that there is no known way to do a complete migration of our current CVS repository to StarTeam. We have been advised to do a checkout of the latest version and import that into StarTeam. I would really prefer to keep all of my version history and not have to choose between simply losing all of the data or maintaining my CVS repository indefinitely. I'm still waiting for an official response from Borland. Has anybody had any luck doing this? Any recommended tools or processes? Or am I just wasting my time and I should just migrate and cut my losses?
0
[ 2, 25, 80, 40, 2010, 161, 20, 107, 21, 1279, 8443, 37, 13, 12732, 18, 20, 778, 6575, 60, 800, 3726, 3726, 31, 22, 79, 871, 8215, 21, 13, 12732, 18, 24869, 26, 1267, 569, 9, 80, 25, 21, 3250, 21, 3670, 20, 780, 20, 778, 6575,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 command that returns a part of a string === I want to find a linux command that can return a part of the sting. In most programming languages, its the substr() function. Does bash have any command that can be used for this purpose. I want to be able to do something like this... substr "abcdefg" 2 3 - prints 'cde'
0
[ 2, 13024, 1202, 30, 4815, 21, 141, 16, 21, 3724, 800, 3726, 3726, 31, 259, 20, 477, 21, 13024, 1202, 30, 92, 788, 21, 141, 16, 14, 8210, 9, 19, 127, 3143, 2556, 15, 82, 14, 972, 9729, 5, 6, 1990, 9, 630, 13158, 57, 186, 1202...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 plan test time === Say suppose 10 developers have taken 6 months to develop some application. As a project manager how much time should I spare in my plans for testing? 6 months of effort includes unit testing. I am specific about functional test and user acceptance test. Is there any ratio or relationship between development time and testing time?
0
[ 2, 184, 20, 944, 1289, 85, 800, 3726, 3726, 395, 5787, 332, 10168, 57, 658, 400, 818, 20, 2803, 109, 3010, 9, 28, 21, 669, 1382, 184, 212, 85, 378, 31, 8001, 19, 51, 1753, 26, 4431, 60, 400, 818, 16, 2150, 1103, 1237, 4431, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are the basics one needs to know when porting an application to Citrix? === I've developed an application (C#) that currently sits on a a number of workstations. Each workstation accesses the same database (MS-SQL). I've been asked to port this to Citrix. Can anyone offer insight into documentation or suggestion of where someone would start with this? Is the application installed on the Citrix server and then simply made available to users or do I need to do further development to make it ready for this type of deployment? Can anyone offer insight into Citrix application development?
0
[ 2, 98, 50, 14, 2125, 18, 53, 2274, 20, 143, 76, 1295, 68, 40, 3010, 20, 5486, 17224, 60, 800, 3726, 3726, 31, 22, 195, 885, 40, 3010, 13, 5, 150, 5910, 6, 30, 871, 7550, 27, 21, 21, 234, 16, 170, 10839, 18, 9, 206, 170, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to exclude web site code-behind files from Visual Studio compile? === This question is similar to [this one,][1] except that in this situation the files you want to exclude are code-behind in a website. The "Build Action" does not show up in the property window for code-behind files. [1]: http://stackoverflow.com/questions/219381/how-to-exclude-files-from-visual-studio-compile
0
[ 2, 184, 20, 21077, 2741, 689, 1797, 8, 24878, 6488, 37, 3458, 1120, 26561, 60, 800, 3726, 3726, 48, 1301, 25, 835, 20, 636, 1565, 53, 15, 500, 2558, 165, 500, 1613, 30, 19, 48, 1858, 14, 6488, 42, 259, 20, 21077, 50, 1797, 8, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I make a folder writeable in Medium trust? === My web app writes to several folders (logs, uploads, etc), and I've always set these permissions manually through my hosting provider. I'd like to create a setup script that performs this on new installations. Is this possible under Medium trust? I can't even call File.GetAccessControl, let alone File.SetAccessControl, but I don't need such a "big hammer", anyway. I just want to do what the ISP (in this case GoDaddy) is letting me do through a management console. I believe PHP is able to do this, and I'd be willing to consider a PHP page for this purpose if that's possible.
0
[ 2, 92, 31, 233, 21, 19294, 2757, 579, 19, 4152, 1527, 60, 800, 3726, 3726, 51, 2741, 4865, 6215, 20, 238, 19294, 18, 13, 5, 5567, 18, 15, 71, 8294, 18, 15, 2722, 6, 15, 17, 31, 22, 195, 550, 309, 158, 5572, 18, 23671, 120, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Interface Contract, Class Object? === Is contract to interface as object is to class? What is the need to differentiate identical things like this, from the code to the executing code? I sort of get the idea behind naming a class a class and the instantiated executing class an object, but overall, is that the only reason for these semi-redundant terms?
0
[ 2, 6573, 1305, 15, 718, 3095, 60, 800, 3726, 3726, 25, 1305, 20, 6573, 28, 3095, 25, 20, 718, 60, 98, 25, 14, 376, 20, 22144, 6323, 564, 101, 48, 15, 37, 14, 1797, 20, 14, 25836, 1797, 60, 31, 2058, 16, 164, 14, 882, 439, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to close connection/datareader when using SqlDataSource or ObjectDataSource === during beta testing we discovered connection pooling error messages . Therefore I have been going through the code and closing down the SqlDataReader objects wherever they have been left unclosed. What I need to know is how to close a datareader (or if there is a need at all to close) that is specified in the SelectStatement attribute of the SqlDataSource or ObjectDataSource tags. Could there be connection leak if they are not handled? Thanks in advance !
0
[ 2, 184, 20, 543, 2760, 118, 18768, 10647, 106, 76, 568, 4444, 255, 18768, 12097, 54, 3095, 18768, 12097, 800, 3726, 3726, 112, 8434, 4431, 95, 1848, 2760, 3067, 68, 7019, 7561, 13, 9, 1793, 31, 57, 74, 228, 120, 14, 1797, 17, 4239...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Repeater ItemDataBound happening AFTER PreRender event? === I have a repeater control on an ASP.NET 2.0 web form. As I understanding it, all of the page's data-bound controls fire their binding events somewhere in between the Page_Load and the Page_PreRender events. However, my repeater's ItemDataBound event appears to be happening AFTER the PreRender event. How is this so and is there any way I can access the page controls AFTER all the ItemDataBound events have fired? Thanks in advance for any light shed.
0
[ 2, 28, 306, 9, 2328, 6830, 106, 9101, 18768, 7410, 4942, 75, 782, 99, 16706, 807, 60, 800, 3726, 3726, 31, 57, 21, 6830, 106, 569, 27, 40, 28, 306, 9, 2328, 172, 9, 387, 2741, 505, 9, 28, 31, 3260, 32, 15, 65, 16, 14, 2478, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 view the history of a line in SVN? === Using SVN and/or Tortoise SVN (or any other SVN tool, really), is it possible to view the history for a specific line of a file? Recently I've had several occurrences of coming across a line in a file and wanting to find the log entry associated with its creation (either to determine how old the line of code was, or to get a larger context for why it was added). Right now I'm doing this by hand. I can display the log for the file, go back a ways, and see if the line in question is present. If it is, I go back further. If it isn't, I go look at a more recent revision. Repeat until the revision where the change was made is found. Needless to say, this process is awkward at best, especially for particularly old files. Does anyone know of an automated method of accomplishing this?
0
[ 2, 25, 32, 938, 20, 1418, 14, 447, 16, 21, 293, 19, 13, 18, 16578, 60, 800, 3726, 3726, 568, 13, 18, 16578, 17, 118, 248, 25691, 13, 18, 16578, 13, 5, 248, 186, 89, 13, 18, 16578, 5607, 15, 510, 6, 15, 25, 32, 938, 20, 141...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Generating unique codes in PHP/MySQL? === I'm working with a client that needs to generate millions of the alphanumeric codes used in magazine scratch-off cards, bottlecap prizes, and so on. They have to be short enough to print on a cap, they want to make sure that ambiguous characters like 1 and I, 0 and O, etc. are not included, and they have to be explicitly stored for future use -- we can't just have an algorithm that determines 'validity' when someone tries to redeem one. Finally, they want to make sure that the codes are randomly distributed inside of a large "code space" so that people can't just guess additional codes by walking through the alphabet. Are there any pointers towards reasonably efficient algorithms for generating these kinds of code sets? I've scratched a few out on the back of an envelope, but this problem smells like a trap for the unwary.
0
[ 2, 13500, 2619, 11358, 19, 13, 26120, 118, 915, 18, 22402, 60, 800, 3726, 3726, 31, 22, 79, 638, 29, 21, 6819, 30, 2274, 20, 7920, 11999, 16, 14, 5705, 6336, 14744, 11358, 147, 19, 1039, 12395, 8, 1299, 4092, 15, 4040, 4666, 14101...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using PHP to Access a User's Webcam === I'd like to allow users to record videos directly from their webcam. I haven't done much work with PHP but am stuck with it for this project. We currently have a system in place for video uploading and encoding, but nothing to actually access a user's webcam. How would you recommend I proceed?
0
[ 2, 568, 13, 26120, 20, 1381, 21, 4155, 22, 18, 2741, 8760, 800, 3726, 3726, 31, 22, 43, 101, 20, 1655, 3878, 20, 571, 6610, 1703, 37, 66, 2741, 8760, 9, 31, 2933, 22, 38, 677, 212, 170, 29, 13, 26120, 47, 589, 4549, 29, 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...
Best Approach to Brownfield Database Development in SQL Server 2000/2005 === I've recently taken over development on a SQL Server 2000 database that needs some help. We're planning on upgrading it to SQL Server 2005 soon. This database has no audit fields on the tables (CreatedBy, CreatedDate, etc.), no foreign keys, and terrible overall design. There are half a dozen programs that directly access the database using inline SQL, and other old/bad practices. I would like to clean up the schema, and the data access. Do you have any suggestions for a good place to start? This is a production database, and it has to continue to work while it's being improved. Thanks.
0
[ 2, 246, 2141, 20, 886, 1109, 6018, 522, 19, 4444, 255, 8128, 824, 118, 2835, 800, 3726, 3726, 31, 22, 195, 1989, 658, 84, 522, 27, 21, 4444, 255, 8128, 824, 6018, 30, 2274, 109, 448, 9, 95, 22, 99, 2334, 27, 26939, 32, 20, 444...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Oracle Text: How to sanitize user input === If anyone has experience using Oracle text (CTXSYS.CONTEXT) and wondering how to handle user input when the user wants to search for names that may contain an apostrophe. Escaping the ' seems to work in some cases, but not for 's at the end of the word - s is in the list of stop words, and so seems to get removed. We currently change simple query text (i.e. anything that's just letters) to %text%. We're only using: contains(field, :text) > 0 So search a search for **O'Neil** works, but **Joe's** doesn't. Anyone using Oracle Text dealt with this issue?
0
[ 2, 15759, 1854, 45, 184, 20, 523, 242, 2952, 4155, 6367, 800, 3726, 3726, 100, 1276, 63, 1496, 568, 15759, 1854, 13, 5, 4812, 396, 4980, 18, 9, 1126, 11969, 6, 17, 5712, 184, 20, 3053, 4155, 6367, 76, 14, 4155, 2846, 20, 2122, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the C# method/syntax for converting an array to a simple string? === What I'm looking for is a basic equivalent of JavaScript's `Array::join()` whereby you pass in a separator character and uses that in its return string of all the subscripts. I could certainly write my own function using a `StringBuilder` or whatnot, but there *must* be something built into the .NET BCL.
0
[ 2, 98, 22, 18, 14, 272, 5910, 2109, 118, 9507, 15514, 26, 19583, 40, 7718, 20, 21, 1935, 3724, 60, 800, 3726, 3726, 98, 31, 22, 79, 699, 26, 25, 21, 2125, 4602, 16, 8247, 8741, 22, 18, 13, 1, 8576, 93, 45, 45, 1636, 108, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it really a best practice to use jstl out tag? === I remember working on a project with a group of developers and they always wanted static html text to be inside of an out tag (`<c:out value="words" />`). I don't remember why this was the case. Is this really a best practice when building jsp pages? What are the advantages/disadvantages of such an approach?
0
[ 2, 25, 32, 510, 21, 246, 1345, 20, 275, 487, 18, 7786, 70, 3383, 60, 800, 3726, 3726, 31, 1518, 638, 27, 21, 669, 29, 21, 214, 16, 10168, 17, 59, 550, 417, 12038, 13, 15895, 1854, 20, 44, 572, 16, 40, 70, 3383, 13, 5, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cross-Platform Way of Creating Safari Webarchives === I've been searching around and haven't found any reference to tools that can create Safari's webarchive format. Does anyone have pointers to code for creating this format, or at least a format reference documentation? Ideally I'd like to build a tool that takes a directory and splits out a webarchive, for loading into a iPhone.
0
[ 2, 919, 8, 27035, 161, 16, 2936, 25055, 2741, 23941, 18, 800, 3726, 3726, 31, 22, 195, 74, 5792, 140, 17, 2933, 22, 38, 216, 186, 2801, 20, 4672, 30, 92, 1600, 25055, 22, 18, 2741, 23941, 2595, 9, 630, 1276, 57, 454, 445, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I create a Google Sitemap for my ASP.NET website? === I'm using DotNetNuke, so the whole site is basically dynamically driven and I'm clueless to how to go about creating a Google sitemap for it. Any help will be greatly appreciated. Thanks, John
0
[ 2, 184, 107, 31, 1600, 21, 8144, 689, 15022, 26, 51, 28, 306, 9, 2328, 2271, 60, 800, 3726, 3726, 31, 22, 79, 568, 14123, 2328, 4215, 1048, 15, 86, 14, 979, 689, 25, 11374, 7782, 1326, 5355, 17, 31, 22, 79, 8906, 923, 20, 184,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should you collect the young generation first in a full garbage collection? === I'm writing a program that contains a generational garbage collector. There are just two generations. What I wonder is: When doing a full collection, do I gain anything (performance-wise) by first collecting the younger objects, promoting the survivors to the old generation, and then collecting the old generation, or should I just garbage collect everything in one sweep? I'm not sure which way people usually do it. I'm using the two-step method now, since it was a bit simpler to implement, but perhaps a one-step method would be more efficient? The garbage collector is non-copying, if that matters.
0
[ 2, 378, 42, 5543, 14, 461, 2782, 64, 19, 21, 503, 15024, 1206, 60, 800, 3726, 3726, 31, 22, 79, 1174, 21, 625, 30, 1588, 21, 2782, 192, 15024, 10836, 9, 80, 50, 114, 81, 8163, 9, 98, 31, 2666, 25, 45, 76, 845, 21, 503, 1206,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
I’m stunned: wierd problem with python and sockets + threads === I have a python script that is a http-server: http://paste2.org/p/89701, when benchmarking it against ApacheBench (ab) with a concurrency level (-c switch) that is lower then or equal to the value i specified in the socket.listen()-call in the sourcecode everything works fine, but as soon as put the concurrency level in apache bench above the value in the socket.listen()-call performance drops through the floor, some example: - socket.listen(**10**) and ab -n 50 -c **10** http://localhost/ = **1200req/s** - socket.listen(**10**) and ab -n 50 -c **11** http://localhost/ = **40req/s** - socket.listen(**100**) and ab -n 5000 -c **100** http://localhost/ = **1000req/s** - socket.listen(**100**) and ab -n 5000 -c **101** http://localhost/ = **32req/s** Nothing changes in the code between the two calls, I can’t figure out what is wrong - been at this problem for one day now. Also note that: The multiplexing version of the same code (I wrote to compare to the threaded version) works FINE no matter what socket.listen() is set to or what the concurrency (-c switch) in apache is set to. *I've spent a day on IRC/python docs, posted on comp.lang.python and on my blog - I can't find ANYONE that even has an idea what could be wrong. Help me!*
0
[ 2, 31, 1, 79, 9956, 45, 11842, 897, 1448, 29, 20059, 17, 18482, 18, 2754, 20396, 800, 3726, 3726, 31, 57, 21, 20059, 3884, 30, 25, 21, 7775, 8, 10321, 106, 45, 7775, 6903, 19802, 62, 135, 9, 5583, 118, 306, 21701, 3643, 3026, 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...
Automated testing (non-UI) for existing Flash component === I build and maintain a set of Flash components that is distributed to publishers and allows them to integrate with our system. Currently the component has no UI and simply contains compiled code for querying our system servers, parsing the response, and modifying the params sent in the query. There's an As2 version and AS3 versions for both Flex and CS3. Our typical workflow is like this: 1.) load the component 2.) set parameters on the component 3.) tell the component to query our system 4.) wait for an event saying the response has been received and parsed 5.) call methods on the component for retrieving and using parsed data We've been talking a lot lately about automating the testing of these components, and there seems to be a lot of buzz around frameworks like AsUnit and FlexUnit. However, I've never been able to grasp how I might effectively use of one of these. The examples and tutorials always skimp on real-world examples and instead provide multiple classes and excessive code for testing whether an example function returns num1+num2. The only thing I can guess is that these testing frameworks are intended to be implemented from the start, with planning for the test suite, test runner, and test cases built in at the start of development. An automated test of our component would have to make sure properties were properly set, those properties were sent in the request to our system, the response received was correct considering the parameters sent, the parsed data includes correct information, and no errors, bad responses, or infinite parsing loops are caused. my question is, is there any way to automate testing of an existing, widely distributed, established Flash component without completely reworking it to fit into a testing framework? Or am I misunderstanding the test frameworks and this is already possible?
0
[ 2, 14904, 4431, 13, 5, 3951, 8, 5661, 6, 26, 3149, 4433, 5912, 800, 3726, 3726, 31, 1895, 17, 4027, 21, 309, 16, 4433, 5090, 30, 25, 4387, 20, 8642, 17, 2965, 105, 20, 18399, 29, 318, 329, 9, 871, 14, 5912, 63, 90, 13, 5661, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 SQL query or view will show "dynamic columns" === I have a table of data, and I allow people to add meta data to that table. I give them an interface that allows them to treat it as though they're adding extra columns to the table their data is stored in, but I'm actually storing the data in another table. Data Table DataID Data Meta Table DataID MetaName MetaData So if they wanted a table that stored the data, the date, and a name, then I'd have the data in the data table, and the word "Date" in metaname, and the date in MetaData, and another row in the meta table with "Name" in metaname and the name in metadata. I now need a query that takes the information from these tables and presents it as though coming from a single table with the two additional columns "Data" and "Name" so to the customer it would look like there's a single table with their custom columns: MyTable Data Date Name -Adam
0
[ 2, 98, 4444, 255, 25597, 54, 1418, 129, 298, 13, 7, 20985, 7498, 7, 800, 3726, 3726, 31, 57, 21, 859, 16, 1054, 15, 17, 31, 1655, 148, 20, 3547, 7618, 1054, 20, 30, 859, 9, 31, 590, 105, 40, 6573, 30, 2965, 105, 20, 5752, 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...
Best database field type for a URL === I need to store a url in a MySQL table. What's the best practice for defining a field that will hold a URL with an undetermined length?
0
[ 2, 246, 6018, 575, 1001, 26, 21, 287, 6362, 800, 3726, 3726, 31, 376, 20, 1718, 21, 287, 6362, 19, 21, 51, 18, 22402, 859, 9, 98, 22, 18, 14, 246, 1345, 26, 14684, 21, 575, 30, 129, 1027, 21, 287, 6362, 29, 40, 367, 22213, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I calculate the SIZE of stored procedures in SQL 2005? === Having some storage space issues in a current project. Total space used by stored procs is not likely to be significant (compared to actual *data*), but with hundreds of them, it could add up. I know I can use *sys.dm_db_partition_stats* in SQL2005 to figure out how much space each *table* in a database is using, but is there any way to determine the individual and total size of the *stored procedures* in a database? (Short of opening each one and counting the characters, of course.)
0
[ 2, 184, 107, 31, 18469, 14, 1072, 16, 8214, 8876, 19, 4444, 255, 812, 60, 800, 3726, 3726, 452, 109, 4326, 726, 1549, 19, 21, 866, 669, 9, 600, 726, 147, 34, 8214, 13, 15617, 18, 25, 52, 1720, 20, 44, 1505, 13, 5, 18415, 2095,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Am I destined to develop in XML? === Based on what I've seen on Oslo, declarative XML will have a key role. Can I expect to be mucking around a lot of designer generated XML to create real world applications? Just know I haven't researched this. I would just appreaciate your perspective if you have examined the subject. *Some background...* Whenever I dig just under the skin of any XML backed declarative technology (such as Silverlight and WPF, ASP.NET, or MSBuild) it seems I end up editing a lot of raw XML text. The designers are seldom expressive enough for my needs. One one hand I can't really see better compromise between human and machine readability, and to be fair, the XML editing experience gets better with each incarnation. On the other hand I havn't found XML ideal for some of it's usages. Especially when it comes to expressing logic, and for refactoring and testability. May it be the designers are too weak, or the XML too expressive, or I, too grumpy and spoiled by objects and methods.
0
[ 2, 589, 31, 18937, 20, 2803, 19, 23504, 60, 800, 3726, 3726, 432, 27, 98, 31, 22, 195, 541, 27, 10111, 15, 121, 12078, 3366, 23504, 129, 57, 21, 1246, 597, 9, 92, 31, 4186, 20, 44, 25872, 68, 140, 21, 865, 16, 4742, 6756, 2350...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Large Inner classes and private variables === One thing I've run into a few times is a service class (like a JBoss service) that has gotten overly large due to helper inner classes. I've yet to find a good way to break the class out. These helpers are usually threads. Here's an example: /** Asset service keeps track of the metadata about assets that live on other systems. Complications include the fact the assets have a lifecycle and their physical representation lives on other systems that have to be polled to find out if the Asset is still there.*/ public class AssetService { ...various private variables ...various methods public AssetService() { Job pollerJob = jobService.schedule( new AssetPoller() ); Job lifeCycleJob = jobService.schedule( AssetLifecycleMonitor() ); } class AssetPoller { public void run() { // contact remote systems and update this service's private variables that // track the assets. } } class AssetLifecycleMonitor() { public void run() { // look for assets that have meet criteria for a lifecycle shift // and update this service's private variables as relevant. } } } So, what can happen if I have a couple helpers and they're at all complex, is the overall class file can get really large. I like the inner classes in that it makes clear the classes are wholey owned by the service and exist only to help that service. I've tried breaking the classes out and passing the parent service as a reference, which works mostly, but things I don't like are: <li>I end up exposing package level accessors so the broken out classes can get to the variables, whereas before I didn't expose the setters at all since the inner classes had direct access. <li> Plus, things get a bit more wordy as I'm constantly calling accessors rather than the underlying variables. A minor nit, granted. <li> Convenience methods (e.g. checkAssetIsValid() or some such) need package level exposure now so the helper classes can call them, where as before as inner classes they could be private. <li> Even worse, I need to pass the service implementation class to the helper classes constructors since I don't want to expose these helpers methods in the interface the service implements because that forces them to be public. This can create some unit test/mocking issues. <li> Worse yet, any synchronization I wanted to do gets leaked out through some external convenience method (e.g. lockDownAssets() during a poller update). Before, the internal classes had access to private Locks. So, in short, breaking the classes out loses some of the encapsulation I like. But leaving them in can lead to some large java files. I've yet to find a good way to deal with this. C++ had the concept of "friends" which I've rarely missed, but would actually help in this case. Thoughts?
0
[ 2, 370, 3754, 2684, 17, 932, 12157, 800, 3726, 3726, 53, 584, 31, 22, 195, 485, 77, 21, 310, 436, 25, 21, 365, 718, 13, 5, 1403, 21, 487, 10349, 18, 365, 6, 30, 63, 4094, 18234, 370, 397, 20, 448, 106, 3754, 2684, 9, 31, 22,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can tooltips be added to a vb.net winforms datagrid row(s)? === I'm looking to add a tooltip to each row in a bound datagrid in vb.net winforms. How can this be done?
0
[ 2, 184, 92, 5607, 10169, 18, 44, 905, 20, 21, 13, 20468, 9, 2328, 628, 4190, 18, 1054, 16375, 3131, 5, 18, 6, 60, 800, 3726, 3726, 31, 22, 79, 699, 20, 3547, 21, 5607, 10169, 20, 206, 3131, 19, 21, 4138, 1054, 16375, 19, 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, 0, 0, 0, 0...
Setting multiple jars in java classpath === Is there a way to include all the jar files within a directory in the classpath? I'm trying `java -classpath lib/*.jar:. my.package.Program` and it is not able to find class files that are certainly in those jars. Do I need to add each jar file to the classpath separately?
0
[ 2, 2697, 1886, 5112, 18, 19, 8247, 718, 8353, 800, 3726, 3726, 25, 80, 21, 161, 20, 468, 65, 14, 5112, 6488, 363, 21, 16755, 19, 14, 718, 8353, 60, 31, 22, 79, 749, 13, 1, 1004, 1385, 13, 8, 1898, 8353, 13, 8326, 118, 2483, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 localize an IEnumerable? === What is the best way to localize a collection (IEnumerable)? From the BL I retrieve a collection of entities which still need to localized, I figured I write a method which extends the IEnumerable and returns the localized list. How can i get the code underneath working? Any ideas? Maybe better options? public static IEnumerable Localize(this IEnumerable items, CultureInfo cultureInfo) { foreach(string item in items) { /*Error underneath, cannot assign to item*/ item = ResourceHelper.GetString(item, cultureInfo); } return (items); }
0
[ 2, 98, 25, 14, 246, 161, 20, 375, 2952, 40, 13, 660, 6336, 106, 579, 60, 800, 3726, 3726, 98, 25, 14, 246, 161, 20, 375, 2952, 21, 1206, 13, 5, 660, 6336, 106, 579, 6, 60, 37, 14, 13, 6287, 31, 11917, 21, 1206, 16, 12549, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 - What's the best way to implement a "catch all exceptions handler" === I'm wondering what the best way is to have a "if all else fails catch it". I mean, you're handling as much exceptions as possible in your application, but still there are bound to be bugs, so I need to have something that catches all unhandled exceptions so I can collect information and store them in a database or submit them to a web service. Does the AppDomain.CurrentDomain.UnhandledException event capture everything? Even if the application is multithreaded? Side note: Windows Vista exposes native API functions that allow any application to recover itself after a crash... can't think of the name now... but I'd rather not use it, as many of our users are still using Windows XP.
0
[ 2, 13, 9, 2328, 13, 8, 98, 22, 18, 14, 246, 161, 20, 8713, 21, 13, 7, 18208, 65, 13392, 24641, 7, 800, 3726, 3726, 31, 22, 79, 5712, 98, 14, 246, 161, 25, 20, 57, 21, 13, 7, 821, 65, 962, 13614, 2949, 32, 7, 9, 31, 884, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best language communities === Often, a language won't have its own community, or the "official" community isn't the most popular one. Fpr all the langauges you use, what is your favorite place to visit (besides SO!) for help - or just plain discussion/complaints?
4
[ 2, 246, 816, 2584, 800, 3726, 3726, 478, 15, 21, 816, 230, 22, 38, 57, 82, 258, 514, 15, 54, 14, 13, 7, 16168, 7, 514, 2532, 22, 38, 14, 127, 844, 53, 9, 398, 4899, 65, 14, 6178, 27229, 18, 42, 275, 15, 98, 25, 154, 3839, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Extend No-Constructor class (C#) === In C#, is it possible to extend a class that has no constructors? Maybe I'm thinking about this incorrectly and just need a kick in the crotch. I have a Silverlight class that extends System.Windows.Media.Transform, With the official release of Silverlight 2, Transform now has no constructor. So, when I compile my class, I get an error saying that 'The type '...Transform' has no constructors defined.' Is it still possible to extend this class in a useful way? If not, I'm going to be drawing an awful lot of sad faces.
0
[ 2, 7206, 90, 8, 1126, 10346, 248, 718, 13, 5, 150, 5910, 6, 800, 3726, 3726, 19, 272, 5910, 15, 25, 32, 938, 20, 7206, 21, 718, 30, 63, 90, 6960, 248, 18, 60, 913, 31, 22, 79, 1440, 88, 48, 22870, 17, 114, 376, 21, 4728, 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...
Device Information from NSEvent/CGEvent === My application uses an event tap to capture keyboard events, and I'd like to know which device (i.e. which keyboard) each event comes from. Is there an sort of device-identifying information along with the CGEvent that a tap gets? I've looked at NSEvent's methods, and the various CGEventField keys, but none of them seem to be device-unique. Any help?
0
[ 2, 3646, 676, 37, 13, 23157, 6645, 118, 150, 834, 6645, 800, 3726, 3726, 51, 3010, 2027, 40, 807, 5526, 20, 3683, 8896, 963, 15, 17, 31, 22, 43, 101, 20, 143, 56, 3646, 13, 5, 49, 9, 62, 9, 56, 8896, 6, 206, 807, 1624, 37, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Encapsulating Java Preferences API === I used to have a custom preferences class for my applications. For my next hobby project i wanted to switch to the Preferences API. But the put and get functions require a default value and i do not want to spread default values all over the source files. Even though my project is small i can not imagine changing default values all over the source code. How do you guys use the api? I am thinking of wrapping the preferences api in another class but then what is the point of using the API because it only takes away the burden of saving the file to disk, which isn't that hard using serialization? Am i missing the point?
0
[ 2, 1957, 4666, 18, 10038, 8247, 9808, 18, 21, 2159, 800, 3726, 3726, 31, 147, 20, 57, 21, 5816, 9808, 18, 718, 26, 51, 3767, 9, 26, 51, 328, 18229, 669, 31, 417, 20, 5521, 20, 14, 9808, 18, 21, 2159, 9, 47, 14, 442, 17, 164,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unexpected variable subst behavior in DOS .bat file === What will the following DOS .bat file code segment display? Why (i.e. what doesn't it behave as you might first think)? set VAR=before if "%VAR%" == "before" ( set VAR=after; echo %VAR% ) [I do know the answer to this, but figured this valuable enough to post]
0
[ 2, 9380, 7612, 972, 384, 3257, 19, 107, 18, 13, 9, 4900, 3893, 800, 3726, 3726, 98, 129, 14, 249, 107, 18, 13, 9, 4900, 3893, 1797, 5631, 3042, 60, 483, 13, 5, 49, 9, 62, 9, 98, 1437, 22, 38, 32, 14149, 28, 42, 530, 64, 27...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ruby on iPhone === Hi I'm looking into iPhone development, and objective-c is not be my preferred language. As far as I can see at this moment Ruby cannot be used to talk to Cocoa-touch at the moment on the iPhone. So my question is, am I wrong? Can I use Ruby on the iPhone to develop Cocoa-touch applications. And what is the future looking like for Ruby on the iPhone?
0
[ 2, 10811, 27, 21024, 800, 3726, 3726, 4148, 31, 22, 79, 699, 77, 21024, 522, 15, 17, 7038, 8, 150, 25, 52, 44, 51, 5981, 816, 9, 28, 463, 28, 31, 92, 196, 35, 48, 688, 10811, 1967, 44, 147, 20, 930, 20, 24507, 8, 15725, 35, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 and Log4Net === I'm looking for best practices to integrate log4net to SharePoint for web request, feature activation and all timer stuff. I have several subprojects in my farm, and I would like to have only one Log4Net.config file.
0
[ 2, 1891, 3132, 17, 6738, 300, 2328, 800, 3726, 3726, 31, 22, 79, 699, 26, 246, 5242, 20, 18399, 6738, 300, 2328, 20, 1891, 3132, 26, 2741, 3772, 15, 1580, 15519, 17, 65, 85, 139, 3217, 9, 31, 57, 238, 972, 21011, 18, 19, 51, 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 can I create a context-menu macro in Outlook 2007 for links to open in my choice of browsers? === I want to have the context menu of links provide me an option to open in different browsers, rather than open in my default browser. For instance, Open in --> - IE - Firefox - Opera - Chrome - Safari - etc.
0
[ 2, 184, 92, 31, 1600, 21, 4141, 8, 755, 291, 9069, 19, 19837, 624, 26, 6271, 20, 368, 19, 51, 1837, 16, 16495, 18, 60, 800, 3726, 3726, 31, 259, 20, 57, 14, 4141, 11379, 16, 6271, 1181, 55, 40, 4255, 20, 368, 19, 421, 16495, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are the uses for Cross Join? === A cross join performs a cartesian product on the tuples of the two sets. SELECT * FROM Table1 CROSS JOIN Table2 Which circumstances render such an SQL operation particularly useful?
4
[ 2, 98, 50, 14, 2027, 26, 919, 1865, 60, 800, 3726, 3726, 21, 919, 1865, 11563, 21, 349, 3231, 806, 2374, 27, 14, 2289, 18534, 16, 14, 81, 3415, 9, 5407, 1637, 37, 859, 165, 919, 1865, 859, 135, 56, 5072, 16535, 145, 40, 4444, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Work Breaks & Eye condition === I've found [this][1] tips great. But some years ago, I had some programs that popped up an alert every hour or so (Tea Break or something like that was the name of the program). Does anybone know a good, non-intrusive program that indicates me when it's time to have a break? When I'm deep coding, I loose the notion of time, so some kind of notification program would be great to reduce eye strain. [1]: http://stackoverflow.com/questions/119064/tips-for-reducing-eye-strain
4
[ 2, 170, 7947, 279, 1356, 2874, 800, 3726, 3726, 31, 22, 195, 216, 636, 1565, 500, 2558, 165, 500, 11034, 374, 9, 47, 109, 122, 1464, 15, 31, 41, 109, 1726, 30, 11370, 71, 40, 7863, 352, 1671, 54, 86, 13, 5, 12265, 1442, 54, 30...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you handle BLOB and numerical data efficiently in a database? === SQL databases seem to be the cornerstone of most software. However, it seems optimized for textual data. In fact when doing any queries involving numerical data, integers specifically, it seems inefficient that the numbers are getting converted to text and then back to native formats both ways between the application and the database. This same inefficiency seems to apply to BLOB data as well. My understanding is that even with something like Linq to SQL, this two way conversion is occuring in the background. Are there general ways to bypass this overhead with SQL? Are there certain database management systems that handle this more efficiently than others (ie, with non-standard extensions/API's)?
0
[ 2, 184, 107, 42, 3053, 334, 10904, 17, 16010, 1054, 20519, 19, 21, 6018, 60, 800, 3726, 3726, 4444, 255, 6018, 18, 2260, 20, 44, 14, 24257, 16, 127, 2306, 9, 207, 15, 32, 2206, 22864, 43, 26, 1854, 6948, 1054, 9, 19, 837, 76, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
VCL alternative to IStorage === To preface I am using Borland C++ and the VCL. I need some sort of structured storage object which can be saved to disk as a single file and can contain multiple named blobs of binary data which I can programatically enumerate, access and manipulate. The [IStorage][1] interface seems to be close what I want but I would prefer a VCL style solution as converting TStream's (VCL) to IStream's among other things gets awkward and their must be a simpler solution using the VCL stuff allready available, like a TIniFile but for binary data. I don't want to use XML as the binary data blobs are very large and when correctly encoded for use in XML it's completely inneficient. Thanks in advance for all suggestions. [1]: http://msdn.microsoft.com/en-us/library/aa380015(VS.85).aspx
0
[ 2, 566, 5316, 2676, 20, 25, 2153, 1303, 800, 3726, 3726, 20, 20910, 31, 589, 568, 3895, 618, 272, 20512, 17, 14, 566, 5316, 9, 31, 376, 109, 2058, 16, 17784, 4326, 3095, 56, 92, 44, 4377, 20, 8582, 28, 21, 345, 3893, 17, 92, 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...