unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
How does one put a link / url to the web-site's home page in Django? === In Django templates, is there a variable in the context (e.g. {{ BASE\_URL }}, {{ ROOT\_URL }}, or {{ MEDIA\_URL }} that one can use to link to the "home" url of a project? I.e. if Django is running in the root of a project, the variable (let's call it R) {{ R }} in a template would be "/". If the root url is a sub-folder "http://host/X/" the variable {{ R }} would be "/X/" (or "http://host/X/"). It seems painfully simple, but I can't find an answer. :) Thank you!
0
[ 2, 184, 630, 53, 442, 21, 3508, 13, 118, 287, 6362, 20, 14, 2741, 8, 9097, 22, 18, 213, 2478, 19, 3857, 14541, 60, 800, 3726, 3726, 19, 3857, 14541, 22894, 18, 15, 25, 80, 21, 7612, 19, 14, 4141, 13, 5, 62, 9, 263, 9, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best tool for build automation for a one-man software shop? === I am building Windows apps for a few clients. I read Joel on Software and took the Joel Test and realized I don't quite measure up. One place I am lacking is automated builds. What should I use to have automated builds? I have Windows apps that use .NET 1.1, 2.0, and 3.5. Also, I need to be able to build my .vdproj to create MSI's. I am looking for something that is free and would work well for a one-man team.
4
[ 2, 98, 25, 14, 246, 5607, 26, 1895, 23217, 26, 21, 53, 8, 177, 2306, 2546, 60, 800, 3726, 3726, 31, 589, 353, 1936, 4865, 18, 26, 21, 310, 7421, 9, 31, 1302, 8873, 27, 2306, 17, 199, 14, 8873, 1289, 17, 1896, 31, 221, 22, 38...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Migrating Java UNO code from OpenOffice 2.4 to 3.0 === I had a nifty small tool written to convert spreadsheets to plain text. Since it was my private hacker tool, it relied on OpenOffice 2.x to read the files. But when i installed **OpenOffice 3** and tried to get it get it to run, i failed miserably, because i'm either missing some jars or half the classes have been replaced. I'm including all five jars from URE/java and am still missing these classes: com.sun.star.frame.XComponentLoader com.sun.star.frame.XController com.sun.star.frame.XDesktop com.sun.star.frame.XModel com.sun.star.frame.XStorable com.sun.star.sheet.XSpreadsheet com.sun.star.sheet.XSpreadsheetDocument com.sun.star.sheet.XSpreadsheetView com.sun.star.text.XTextDocument Any pointers?
0
[ 2, 28749, 8247, 13, 15762, 1797, 37, 368, 17047, 172, 9, 300, 20, 203, 9, 387, 800, 3726, 3726, 31, 41, 21, 1781, 3072, 93, 284, 5607, 642, 20, 8406, 1789, 17627, 18, 20, 3748, 1854, 9, 179, 32, 23, 51, 932, 20395, 5607, 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...
After Animation, View position resets === I am trying to make a view slide from top to bottom. This is not a big deal, I used CABasicAnimation for this. The problem is when I want to remove the view. I use this animation. CABasicAnimation *animation; animation = [CABasicAnimation animationWithKeyPath:@"position"]; [animation setDelegate:self]; animation.toValue = [NSValue valueWithCGPoint:CGPointMake(self.view.layer.position.x, 0 - self.view.bounds.size.height / 2)]; animation.fromValue = [NSValue valueWithCGPoint:self.view.layer.position]; animation.autoreverses = NO; animation.repeatCount = 0; animation.duration = 0.25; animation.timingFunction = [CAMediaTimingFunction functionWithName: kCAMediaTimingFunctionEaseInEaseOut]; [self.view.layer addAnimation:animation forKey:@"moveX"]; Which animates the view perfectly. But, after the animation finishes, my view appears again. So I added this line : [self.view removeFromSuperview]; Which removes the view, but with no animation. So I decided to add the remove code the this delegate: -(void) animationDidStop:(CAAnimation *) animation finished:(bool) flag So now, the animation works, the view dissapears, but sometimes, I can see the view appear and disappear faster, is like after the animation, the view appears, then the animationDidStop delegate is called, and the view dissapears, obviously this is awful. What am I doing wrong? Thanks.
0
[ 2, 75, 6236, 15, 1418, 649, 23422, 18, 800, 3726, 3726, 31, 589, 749, 20, 233, 21, 1418, 6464, 37, 371, 20, 2129, 9, 48, 25, 52, 21, 580, 1183, 15, 31, 147, 1658, 26467, 3443, 79, 857, 26, 48, 9, 14, 1448, 25, 76, 31, 259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Prevent VB.NET Properties from auto-collapsing in Visual Studio? === The auto-collapse feature is neat AFTER you've got your properties all worked out, but while you're still editing them I find the feature to be REALLY annoying. **How can you disable it?** (I'm in VS2008 if it makes a difference)
0
[ 2, 2501, 13, 20468, 9, 2328, 3704, 37, 3108, 8, 20410, 2552, 18, 68, 19, 3458, 1120, 60, 800, 3726, 3726, 14, 3108, 8, 7771, 17057, 1580, 25, 15956, 75, 42, 22, 195, 330, 154, 3704, 65, 577, 70, 15, 47, 133, 42, 22, 99, 174, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Regex problem : removing string with attribut from html tag === I am not very good with Regex but I am learning. I would like to remove some html tag by the class name. This is what I have so far : <div class="footer".*?>(.*?)</div> The first .*? is because it might contain other attribute and the second is it might contain other html stuff. What am I doing wrong? I have try a lot of set without success.
0
[ 2, 7953, 1706, 1448, 13, 45, 9096, 3724, 29, 35, 13202, 38, 37, 13, 15895, 3383, 800, 3726, 3726, 31, 589, 52, 253, 254, 29, 7953, 1706, 47, 31, 589, 2477, 9, 31, 83, 101, 20, 4681, 109, 13, 15895, 3383, 34, 14, 718, 204, 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...
Is it possible to point a local instance IIS to a shared windows file server as the home directory? === I'm just beginning work with IIS, .NET, etc. so I apologize if any of this is unclear. I recently installed a local instance of IIS and it's up and running just fine. I'm wondering if it's possible to point IIS to a shared windows folder that exists on another server, and have that folder serve as the root directory for IIS. Is this at all possible? If so, can anyone point me to a resource explaining how to do this? One thing to note is that the shared folder requires authentication. Thanks for any information you're able to provide.
0
[ 2, 25, 32, 938, 20, 454, 21, 375, 4851, 595, 18, 20, 21, 2592, 1936, 3893, 8128, 28, 14, 213, 16755, 60, 800, 3726, 3726, 31, 22, 79, 114, 997, 170, 29, 595, 18, 15, 13, 9, 2328, 15, 2722, 9, 86, 31, 12059, 100, 186, 16, 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...
Alternative IDE for VB6 === I've been spoiled by Visual studio 2008 and Eclipse and have to do a little maintainence work on a VB6 app. Does anyone know of an alternative/ updated IDE for VB6? A rewrite is not an option I'm just fixing a couple of bugs and it's a big codebase.
0
[ 2, 2676, 13, 3448, 26, 13, 20468, 379, 800, 3726, 3726, 31, 22, 195, 74, 22782, 34, 3458, 1120, 570, 17, 11652, 17, 57, 20, 107, 21, 265, 4027, 2940, 170, 27, 21, 13, 20468, 379, 4865, 9, 630, 1276, 143, 16, 40, 2676, 118, 637...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
XPath in C# code behind of WPF === You can use XPath if you're binding the XML document in the XAML, but what if you're loading the XML document dynamically in the code behind? Is there any XPath methods available in the C# code behind? (using .NET 3.5 SP1)
0
[ 2, 993, 8353, 19, 272, 5910, 1797, 439, 16, 619, 7721, 800, 3726, 3726, 42, 92, 275, 993, 8353, 100, 42, 22, 99, 8728, 14, 23504, 4492, 19, 14, 13, 6791, 8184, 15, 47, 98, 100, 42, 22, 99, 12797, 14, 23504, 4492, 7782, 1326, 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...
Strange program hang, what does this mean in debug? === Strange program hang, what does this mean in debug? After attaching windbg I found the following: (1714.258): Access violation - code c0000005 (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and handled. eax=015b5c74 ebx=178a13e0 ecx=dddddddd edx=009a8ca0 esi=09fbf698 edi=09fbf594 eip=005ae2f7 esp=09fbf4a4 ebp=09fbf594 iopl=0 nv up ei ng nz na pe nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010286 TestApplication!std::_Container_base::_Orphan_all+0x57: 005ae2f7 c70100000000 mov dword ptr [ecx],0 ds:0023:dddddddd=???????? Call stack: TestApplication!std::_Container_base::_Orphan_all+0x57 TestApplication!std::vector<boost::asio::detail::timer_queue_base *,std::allocator<boost::asio::detail::timer_queue_base *> >::operator=+0x37 TestApplication!boost::asio::detail::win_iocp_io_service::do_one+0x189 TestApplication!boost::asio::detail::win_iocp_io_service::run+0xa2 TestApplication!boost::asio::io_service::run+0x3a
0
[ 2, 2578, 625, 4546, 15, 98, 630, 48, 884, 19, 121, 16254, 60, 800, 3726, 3726, 2578, 625, 4546, 15, 98, 630, 48, 884, 19, 121, 16254, 60, 75, 19514, 68, 1511, 19924, 31, 216, 14, 249, 45, 13, 5, 1053, 1419, 9, 23264, 6, 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...
Update a dll without stopping the service === I would like to update a dll for a server process without stopping the service. How do I do that? A bit like how asp.net automatically picks up new dlls placed in the bin folder.
0
[ 2, 11100, 21, 13, 43, 211, 366, 7048, 14, 365, 800, 3726, 3726, 31, 83, 101, 20, 11100, 21, 13, 43, 211, 26, 21, 8128, 953, 366, 7048, 14, 365, 9, 184, 107, 31, 107, 30, 60, 21, 1142, 101, 184, 28, 306, 9, 2328, 7499, 13267,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
.NET SOAP Extension is throwing NullReferenceException inside MethodInfo? === **NOTE:** Using .NET 2.0, and VS2005 as IDE Hello all, I'm working on logging webservice calls to our database, and finally got the SoapExtension configured and running using a very stripped-down implementation that was ported over from another project. I've set it up in the configuration file so it will run for all methods. When I call my webservice, and the soap extension fires, a NullPointerException is thrown when the SoapServerMessage attempts to call its MethodInfo property: System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. ---> System.NullReferenceException: Object reference not set to an instance of an object. at System.Web.Services.Protocols.SoapServerProtocol.get_MethodInfo() at System.Web.Services.Protocols.SoapServerMessage.get_MethodInfo() at MyService.SOAPLoggingExtension.LogInput(SoapMessage message) The LogInput method is called during the BeforeDeserialize stage of ProcessMessage(SoapMessage): SoapMessageStage.BeforeDeserialize: CopyStream(_oldStream, _newStream); _newStream.Position = 0; if(_enabled) LogInput(message); break; And the LogInput method is failing when attempting to access the MethodInfo property of the message object it is trying to log. Here is the block of code where the property is called: entry = new MyServerLogEntry(); entry.ServerURL = message.Url; entry.Method = (message.MethodInfo == null) ? null : message.MethodInfo.Name; When message.MethodInfo is called, it bubbles over to SoapServerProtocol.get_MethodInfo(), and the null reference exception gets thrown in there. I've googled, and checked around here on Stack Overflow, but haven't been able to find out why the MethodInfo property would be throwing an exception. Does anyone know how to ensure this MethodInfo property is properly initialized during the web service call?
0
[ 2, 13, 9, 2328, 6447, 3896, 25, 6033, 16203, 28018, 10066, 872, 572, 2109, 108, 4120, 60, 800, 3726, 3726, 13, 1409, 10280, 45, 1409, 568, 13, 9, 2328, 172, 9, 387, 15, 17, 4611, 2835, 28, 13, 3448, 10975, 65, 15, 31, 22, 79, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 building a Linux From Scratch system good for learning about operating systems? === Or learning about C/C++, Linux development, or anything else? Or is it just something that might be fun or useful for some people to do?
0
[ 2, 25, 353, 21, 13024, 37, 12395, 329, 254, 26, 2477, 88, 2455, 1242, 60, 800, 3726, 3726, 54, 2477, 88, 272, 118, 150, 20512, 15, 13024, 522, 15, 54, 602, 962, 60, 54, 25, 32, 114, 301, 30, 530, 44, 2414, 54, 4811, 26, 109, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
PowerShell array initialization === What's the best way to initialize an array in Powershell? For example the code $array = @() for($i=0; $i -lt 5;$i++) { $array[$i] = $FALSE } generates the error Array assignment failed because index '0' was out of range. At H:\Software\PowerShell\TestArray.ps1:4 char:10 + $array[$ <<<< i] = $FALSE
0
[ 2, 414, 15984, 7718, 2104, 1829, 800, 3726, 3726, 98, 22, 18, 14, 246, 161, 20, 2104, 2952, 40, 7718, 19, 414, 15984, 60, 26, 823, 14, 1797, 5579, 8576, 93, 800, 13, 1, 5, 6, 26, 5, 4403, 49, 3726, 387, 73, 5579, 49, 13, 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...
Deserializing XML to Objects in C# === So I have xml that looks like this: <todo-list> <id type="integer">#{id}</id> <name>#{name}</name> <description>#{description}</description> <project-id type="integer">#{project_id}</project-id> <milestone-id type="integer">#{milestone_id}</milestone-id> <position type="integer">#{position}</position> <!-- if user can see private lists --> <private type="boolean">#{private}</private> <!-- if the account supports time tracking --> <tracked type="boolean">#{tracked}</tracked> <!-- if todo-items are included in the response --> <todo-items type="array"> <todo-item> ... </todo-item> <todo-item> ... </todo-item> ... </todo-items> </todo-list> How would I go about using .NET's serialization library to deserialize this into C# objects? Currently I'm using reflection and I map between the xml and my objects using the naming conventions.
0
[ 2, 1746, 106, 2815, 3335, 23504, 20, 3916, 19, 272, 5910, 800, 3726, 3726, 86, 31, 57, 23504, 30, 1879, 101, 48, 45, 13, 1, 262, 537, 8, 5739, 1, 13, 1, 1340, 1001, 3726, 7, 6391, 13699, 7, 1, 5910, 1, 1340, 1, 118, 1340, 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...
Automated unit testing SSIS packages === How can I unit test SSIS packages? I want to be able to create and maintain unit tests for various components such as the workflow tasks, data flow tasks, event handlers, etc. Are there any existing frameworks and/or tools that can be used?
0
[ 2, 14904, 1237, 4431, 13, 18, 4557, 16875, 800, 3726, 3726, 184, 92, 31, 1237, 1289, 13, 18, 4557, 16875, 60, 31, 259, 20, 44, 777, 20, 1600, 17, 4027, 1237, 4894, 26, 617, 5090, 145, 28, 14, 170, 9990, 8674, 15, 1054, 3312, 867...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 you use reference appSettings in an SSRS report? === Using SSRS2005, can you pull in values specified in the SSRS Web.Config file (think appSettings)? I'm needing to build up a dynamic hyperlink in a series of reports and would like this to be based on a value set in a config file. At present, it seems my only options are to: 1. Update the hardcoded variable in each report that is building up the links *blech* 2. Store the value in a dedicated configuration table and then query that I could live with #2 above, but would like to avoid having to create yet another table to store this information.
0
[ 2, 92, 42, 275, 2801, 4865, 19831, 18, 19, 40, 22118, 18, 1330, 60, 800, 3726, 3726, 568, 22118, 18, 2835, 15, 92, 42, 2201, 19, 4070, 9931, 19, 14, 22118, 18, 2741, 9, 14093, 2816, 3893, 13, 5, 10550, 4865, 19831, 18, 6, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to transform time value into YYYY-MM-DD format in Java === long lastmodified = file.lastModified(); String lasmod = /*TODO: Transform it to this format YYYY-MM-DD*/
0
[ 2, 184, 20, 8007, 85, 1923, 77, 13, 93, 93, 93, 93, 8, 3363, 8, 8096, 2595, 19, 8247, 800, 3726, 3726, 175, 236, 13670, 4462, 800, 3893, 9, 8558, 13670, 4462, 5, 6, 73, 3724, 3695, 13670, 800, 13, 118, 2483, 262, 537, 45, 8007...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
possible javascript exploits from exposed link? === On a page from a website (one of ours) I can enter in the url the following code: javascript:createNewWindow('Something', 100, 100, 'Text') Without knowing the code in createNewWindow is there a way someone can exploit this?
0
[ 2, 938, 8247, 8741, 10880, 18, 37, 5043, 3508, 60, 800, 3726, 3726, 27, 21, 2478, 37, 21, 2271, 13, 5, 849, 16, 318, 18, 6, 31, 92, 2830, 19, 14, 287, 6362, 14, 249, 1797, 45, 8247, 8741, 45, 6037, 1373, 2681, 27508, 5, 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...
Sharing labels in TFS? === If I've created a label in TFS, assigning it to several files, my coworkers cannot change the versions of files (nor add other files) to that label. We get this error: TF14077: The owner of a label cannot be changed. Researching the problem, I found [this article][1], which states: > It is possible that a user could be > allowed to manipulate a **shared label** > in the development folder but only > manipulate labels that they own in a > production folder. (emphasis mine) Try as I might, I can't find any reference to "shared labels". So far as I can see, a label must have an owner. FWIW, what I'm trying to do is employ a "floating" label so that developers can indicate that their code is ready to become part of the build by tagging it with a particular label. Then the build process would just need to get everything having that label, and automatically get the most recent stuff that's actually ready to be built, ignoring both past versions as well as newer stuff that's not ready for prime time. [1]: http://tinyurl.com/6zuw9e
0
[ 2, 6126, 13173, 19, 13, 11720, 18, 60, 800, 3726, 3726, 100, 31, 22, 195, 679, 21, 1899, 19, 13, 11720, 18, 15, 13952, 68, 32, 20, 238, 6488, 15, 51, 326, 16355, 1967, 753, 14, 3281, 16, 6488, 13, 5, 4747, 3547, 89, 6488, 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...
Setting up SMTP under IIS 7 on Windows Server 2008 === Website started life originally under IIS 6 and the site worked great there. Now after relocating to a new server running W2K8S, everything but mail delivery from the website now works great under IIS 7. Researched briefly on the Web to see if anybody had a good resolution, but no avail... Not even a glimmer of hope on Microsoft's own support site. Here are the steps taken so far on the new W2K8S box: - Added the feature for SMTP under the Server Manager - Enabled SMTP e-mail for the site itself in IIS 7 Manager to deliver e-mail to SMTP server local host, unsuccessful - Enabled SMTP e-mail for the root site in IIS 7 Manager (not sure if that needs to be on to enable sites) to deliver e-mail to SMTP server local host, unsuccessful After failing those basic setups, I wanted to be sure I can actually talk from/to the serveron port 25. And I can successfully telnet from/to the server in question to a test e-mail on port 25 get a HELO, etc. So I do not believe it is a firewall config issue. The IIS 7 setup test was performed with both anonymous and Windows authentication - no luck either way. Manually checked Web Config file and it reflects correct entry for the server to use the localhost. Read the manual and no luck there either... :-/
0
[ 2, 2697, 71, 7613, 13726, 131, 595, 18, 453, 27, 1936, 8128, 570, 800, 3726, 3726, 2271, 373, 201, 912, 131, 595, 18, 400, 17, 14, 689, 577, 374, 80, 9, 130, 75, 27777, 20, 21, 78, 8128, 946, 619, 135, 197, 457, 18, 15, 796, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Parse RSS with jQuery === I am looking for a jQuery solution to parse RSS feeds. I want something reusable and easy... Know of a plugin? Or a way to do this with jQuery base?
0
[ 2, 2017, 870, 13, 1224, 18, 29, 487, 8190, 93, 800, 3726, 3726, 31, 589, 699, 26, 21, 487, 8190, 93, 4295, 20, 2017, 870, 13, 1224, 18, 17058, 9, 31, 259, 301, 302, 267, 579, 17, 2010, 9, 9, 9, 143, 16, 21, 10922, 108, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
What fields can a nested class access of the class it's nested in? === I have a web service in C# and would like to have a nested inner class, that abstracts away the session collection, something like this: <pre> <code> public class Service : System.Web.Services.WebService { [WebMethod] public string Foo(string ticket) { SessionPool.getSession(ticket); } private class SessionPool { public static Session getSession(string ticket) { // this is what i want to do, but I can't access Context return (Session)Context.Session[ticket]; } } } </code> </pre> Is it possible to access the HTTP context of the WebService class via a nested class? If not, is there way I can store the reference to it?
0
[ 2, 98, 2861, 92, 21, 5618, 69, 718, 1381, 16, 14, 718, 32, 22, 18, 5618, 69, 19, 60, 800, 3726, 3726, 31, 57, 21, 2741, 365, 19, 272, 5910, 17, 83, 101, 20, 57, 21, 5618, 69, 3754, 718, 15, 30, 8502, 18, 229, 14, 3723, 120...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Tabs - issue with nested tabs - Activating sub tab on initial load === I have an issue with nested jquery tabs and needs some help/pointer. Currently I have 5 Parent tabs and have few sub tabs under each parent tabs. When page gets loaded I want to show a particular Parent tab and one of its child tab active. I am able to activate a particular parent tab but same is not working with child tabs. Please let me know if anyone has faced similar issue and has any solution to share. Reference - http://docs.jquery.com/UI/Tabs Thanks & Regards, Ajay
0
[ 2, 487, 8190, 93, 6523, 18, 13, 8, 1513, 29, 5618, 69, 6523, 18, 13, 8, 13, 27939, 972, 6523, 27, 2104, 6305, 800, 3726, 3726, 31, 57, 40, 1513, 29, 5618, 69, 487, 8190, 93, 6523, 18, 17, 2274, 109, 448, 118, 3132, 106, 9, 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...
[Java] How to get system proxy configuration? === In a nutshell: **Is it possible to get system proxy configuration in Java?** Besides, in the Java Control Panel, you can set a proxy configuration. How can I access to that proxy configuration in order to open URL connections behind a proxy? Thanks.
0
[ 2, 636, 1004, 1385, 500, 184, 20, 164, 329, 27188, 8091, 60, 800, 3726, 3726, 19, 21, 8619, 15984, 45, 13, 1409, 403, 32, 938, 20, 164, 329, 27188, 8091, 19, 8247, 60, 1409, 3410, 15, 19, 14, 8247, 569, 4113, 15, 42, 92, 309, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
db4o client/server appears to only be able to process one query at a time? === We're evaluating db4o (an OO-DBMS from http://www.db4o.com). We've put together a performance test for client/server mode, where we spin up a server, then hammer it with several clients at once. It seems like the server can only process one client's query at a time. Have we missed a configuration switch somewhere that allows for this scenario? Server implementation is below. The client connects, queries (read-only), and disconnects per operation, and operations run one immediately after the other from several worker threads in the client process. We see same behaviour if we spin up one client process with one worker each against the same server. Any suggestions? <pre><code> public class Db4oServer : ServerConfiguration, IMessageRecipient { private bool stop; #region IMessageRecipient Members public void ProcessMessage(IMessageContext con, object message) { if (message is StopDb4oServer) { Close(); } } #endregion public static void Main(string[] args) { //Ingestion.Do(); new Db4oServer().Run(true, true); } public void Run(bool shouldIndex, bool shouldOptimizeNativeQueries) { lock (this) { var cfg = Db4oFactory.NewConfiguration(); if (shouldIndex) { cfg.ObjectClass(typeof (Sequence)).ObjectField("<ChannelID>k__BackingField").Indexed(true); cfg.ObjectClass(typeof (Vlip)).ObjectField("<ChannelID>k__BackingField").Indexed(true); } if (shouldOptimizeNativeQueries) { cfg.OptimizeNativeQueries(true); } var server = Db4oFactory.OpenServer(cfg, FILE, PORT); server.GrantAccess("0", "kieran"); server.GrantAccess("1", "kieran"); server.GrantAccess("2", "kieran"); server.GrantAccess("3", "kieran"); //server.Ext().Configure().ClientServer().SingleThreadedClient(false); server.Ext().Configure().MessageLevel(3); server.Ext().Configure().Diagnostic().AddListener(new DiagnosticToConsole()); server.Ext().Configure().ClientServer().SetMessageRecipient(this); try { if (!stop) { Monitor.Wait(this); } } catch (Exception e) { Console.WriteLine(e.ToString()); } server.Close(); } } public void Close() { lock (this) { stop = true; Monitor.PulseAll(this); } } } </code></pre>
0
[ 2, 13, 9007, 300, 111, 6819, 118, 10321, 106, 1780, 20, 104, 44, 777, 20, 953, 53, 25597, 35, 21, 85, 60, 800, 3726, 3726, 95, 22, 99, 26764, 13, 9007, 300, 111, 13, 5, 210, 13, 4328, 8, 43, 13178, 18, 37, 7775, 6903, 6483, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ant filtering - fail if property not set === I've got a ant `build.xml` that uses the `<copy>` task to copy a variety of xml files. It uses filtering to merge in properties from a `build.properties` file. Each environment (dev, stage, prod) has a different `build.properties` that stores configuration for that environment. Sometimes we add new properties to the Spring XML or other config files that requires updating the `build.properties` file. I want ant to fail fast if there are properties missing from `build.properties`. That is, if any raw `@...@` tokens make it into the generated files, I want the build to die so that the user knows they need to add one or more properties to their local build.properties. Is this possible with the built in tasks? I couldn't find anything in the docs. I'm about to write a custom ant task, but maybe I can spare myself the effort. Thanks
0
[ 2, 40, 38, 25272, 13, 8, 7476, 100, 1354, 52, 309, 800, 3726, 3726, 31, 22, 195, 330, 21, 40, 38, 13, 1, 29361, 9, 396, 8184, 1, 30, 2027, 14, 13, 1, 19625, 1, 3005, 20, 4344, 21, 1747, 16, 23504, 6488, 9, 32, 2027, 25272, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unique element ID, even if element doesn't have one === I'm writing a GreaseMonkey script where I'm iterating through a bunch of elements. For each element, I need a string ID that I can use to reference that element later. The element itself doesn't have an <code>id</code> attribute, and I can't modify the document to give it one. I can't store the references in my script because when I need them, the GreaseMonkey script itself will have gone out of scope. Is there some way to get at an "internal" ID that the browser uses, for example? A Firefox-only solution is fine; a cross-browser solution that could be applied in other scenarios would be awesome.
0
[ 2, 2619, 4520, 4924, 15, 166, 100, 4520, 1437, 22, 38, 57, 53, 800, 3726, 3726, 31, 22, 79, 1174, 21, 21167, 2111, 4237, 3884, 113, 31, 22, 79, 32, 106, 1880, 120, 21, 7653, 16, 2065, 9, 26, 206, 4520, 15, 31, 376, 21, 3724, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python Disk-Based Dictionary === I was running some dynamic programming code (trying to brute-force disprove the Collatz conjecture =P) and I was using a dict to store the lengths of the chains I had already computed. Obviously, it ran out of memory at some point. Is there any easy way to use some variant of a `dict` which will page parts of itself out to disk when it runs out of room? Obviously it will be slower than an in-memory dict, and it will probably end up eating my hard drive space, but this could apply to other problems that are not so futile. I realized that a disk-based dictionary is pretty much a database, so I manually implemented one using sqlite3, but I didn't do it in any smart way and had it look up every element in the DB one at a time... it was about 300x slower. Is the smartest way to just create my own set of dicts, keeping only one in memory at a time, and paging them out in some efficient manner?
0
[ 2, 20059, 8582, 8, 1281, 9186, 800, 3726, 3726, 31, 23, 946, 109, 7782, 3143, 1797, 13, 5, 5840, 68, 20, 27066, 8, 8774, 1460, 2740, 195, 14, 9470, 58, 2796, 20448, 800, 306, 6, 17, 31, 23, 568, 21, 13, 16315, 20, 1718, 14, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Need a good way to share iPhone source code on the Web. === I'm looking for a way to share some iPhone SDK source code I have with others. Goals: Share iPhone SDK source code, Objective C written in XCode. I have a good bit of source code I want to share. I'd like for it to be easy. I'd like for it to have syntax highlighting, by this I mean coloring and formatting Ideally it would allow me some room to make it "fit" into my site. I want it to look like basically another page on my site where the content is the code. It shouldn't be just a text file in other words. Here's an example where someone was able to do this for C#: [http://www.opennetcf.com/library/sdf/][1] I guess what I want is the ability to create html documentation for all the classes, etc. [1]: http://www.opennetcf.com/library/sdf/
0
[ 2, 376, 21, 254, 161, 20, 1891, 21024, 1267, 1797, 27, 14, 2741, 9, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 161, 20, 1891, 109, 21024, 13, 18, 43, 197, 1267, 1797, 31, 57, 29, 654, 9, 1547, 45, 1891, 21024, 13, 18, 43, 197...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to monitor Postfix MTA Status === What is a good command to monitor a Postfix installation on a linux server? It should be one command that can be run from a command prompt in an SSH session and returns information about whether the postfix process is active and the size of the relevant mail queues.
0
[ 2, 184, 20, 7626, 678, 18594, 307, 536, 1782, 800, 3726, 3726, 98, 25, 21, 254, 1202, 20, 7626, 21, 678, 18594, 7758, 27, 21, 13024, 8128, 60, 32, 378, 44, 53, 1202, 30, 92, 44, 485, 37, 21, 1202, 11443, 4417, 19, 40, 13, 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...
"Don't drive like my brother drives": if (bolean) -> else if (!bolean) -> else === (Background: from a previous job, a co-worker and I would end up discussing the bug pile during lunch. We began to develop a topic called "bug of the week". I doubt I have material for 52 posts a year, but here's the first one...) Reported by: QA tester was reading HTML/JS code to write a functional test of a web form, and saw: if (form_field == empty) { ...do stuff for empty field } else if (form_field != empty) { ...do stuff for non-empty field } else { ...do stuff that will never be done } After a couple embarassing attempts, tester realized that they couldn't trigger the alert strings hidden in the third block. Things I'm wondering are: - Is this problem more or less language specific (can non-JS people learn lessons here?) - Are there legitimate reasons code ended up this way? - What approaches should be used to find/address the problem (code coverage, code review, blackbox testing, etc.) A couple other points: 1. I'm hoping we can keep it positive. Imagine this is a person you work with (in a company that does not encourage flaming). Whatever mean things you might think of the guilty party, I probably already thought them too. 2. I'm not a coder by profession. I checked the wiki box, in case someone wants to provide a more literal example, or add to the base of the thread.
0
[ 2, 13, 7, 804, 22, 38, 1493, 101, 51, 655, 10396, 7, 45, 100, 13, 5, 22008, 210, 6, 13, 8, 1, 962, 100, 13, 5, 187, 22008, 210, 6, 13, 8, 1, 962, 800, 3726, 3726, 13, 5, 1958, 8810, 45, 37, 21, 1158, 1205, 15, 21, 326, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 prompt for input in a Linux shell script? === I want to pause input in a shell script, and prompt the user for choices. The standard 'Yes, No, or Cancel' type question. How do I accomplish this at a typical bash prompt?
0
[ 2, 184, 107, 31, 11443, 4417, 26, 6367, 19, 21, 13024, 3593, 3884, 60, 800, 3726, 3726, 31, 259, 20, 6911, 6367, 19, 21, 3593, 3884, 15, 17, 11443, 4417, 14, 4155, 26, 10978, 9, 14, 1236, 13, 22, 1714, 15, 90, 15, 54, 14815, 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, 0, 0...
Email message recall does it actually work? === I was asked to recall a message I sent out to remove some personal info from it and replace it with a generic made up person as an example. Does message recall really work? It's my opinion because you get told a message has been recalled it just causes you to want to find out what was in the original message. All you do is find someone who had already read it. Can exchange server be adjusted to not tell users when a message is recalled or replaced? What about bcc, recall doesn't seem to work on these and global emails tend to be the ones you really need to recall.
2
[ 2, 8517, 2802, 7111, 630, 32, 1121, 170, 60, 800, 3726, 3726, 31, 23, 411, 20, 7111, 21, 2802, 31, 795, 70, 20, 4681, 109, 1319, 15404, 37, 32, 17, 3934, 32, 29, 21, 12733, 117, 71, 840, 28, 40, 823, 9, 630, 2802, 7111, 510, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can we display a "step" inside Visual Studio build process? === When you are monitoring the TFS build from Visual Studio (2008 or 2005), you can see where it is up to. The issue is that I have some Post-Build custom steps I would like the developer to be able to see directly throught the UI. Those steps take some times and we can also get a "timing" of the build step. Any idea how to have it displayed?
0
[ 2, 184, 92, 95, 3042, 21, 13, 7, 8375, 7, 572, 3458, 1120, 1895, 953, 60, 800, 3726, 3726, 76, 42, 50, 8984, 14, 13, 11720, 18, 1895, 37, 3458, 1120, 13, 5, 2753, 54, 812, 6, 15, 42, 92, 196, 113, 32, 25, 71, 20, 9, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating friendly urls to dynamic resources in struts2 === I have a struts2 application with a single page that may show one of a number of values stored in a database. The application is for a school with many departments and each department has many programs. The department page is accessed using a url like this department.action?id=2 and the DepartmentAction will load the Department with id = 2 for display. All this is fine if the user is just browsing around the site but it gets uncomfortable if I want to provide a link to say the Engineering department in the newspapers. The link will have to be www.myschooldomain.com/department.action?id=2. I see a number of problems with this. First, it is not user friendly. Second, it is prone to be broken because the departments are dynamically maintained and the id for a department could change without warning making the link unstable. I would prefer to print a url like this: www.myschooldomain.com/department/engineering and have that somehow go to department.action?id=2. My thoughts so far: create an action that will parse the url for the department name at the end then look it up by name. Maybe I could add a friendlyurl field to the database for each department. But the question is: Is there a better way to do this in struts2? Thanks.
0
[ 2, 2936, 4753, 13, 911, 7532, 20, 7782, 2566, 19, 18316, 18, 135, 800, 3726, 3726, 31, 57, 21, 18316, 18, 135, 3010, 29, 21, 345, 2478, 30, 123, 298, 53, 16, 21, 234, 16, 4070, 8214, 19, 21, 6018, 9, 14, 3010, 25, 26, 21, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.net webbrowser control === I am using the webbrowser control in visual studio. I think it is a wrapper around internet explorer. Anyway all is going well I am using it in edit mode however I can't get he document's keydown event to fire (in order to catch ctrl+v) anyone had similar problems with it? Anyone have a solution?
0
[ 2, 13, 9, 2328, 10192, 5417, 4104, 569, 800, 3726, 3726, 31, 589, 568, 14, 10192, 5417, 4104, 569, 19, 3458, 1120, 9, 31, 277, 32, 25, 21, 28051, 140, 2620, 8520, 9, 2774, 65, 25, 228, 134, 31, 589, 568, 32, 19, 9392, 3740, 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...
Why does Convert.ToDouble(string) round? === For example, Convert.ToDouble("0.1234567890123456789") = 0.123456789012346 Is there a maximum number of significant figures?
0
[ 2, 483, 630, 8406, 9, 262, 14368, 5, 11130, 6, 560, 60, 800, 3726, 3726, 26, 823, 15, 8406, 9, 262, 14368, 5, 7, 387, 9, 918, 21997, 4167, 27330, 918, 21997, 4167, 3877, 7, 6, 800, 713, 9, 918, 21997, 4167, 27330, 918, 24844, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How do I get a notification when user creates a mount point? === First off, here are the constraints: - Must run on XP - Must notify of both drive letter assignments and mounting a volume to a folder - Must not 'wake' a drive if it is sleeping. - I'd really rather not polling the drive. What I've tried: 1. Google 2. I've looked at WMI and the Win32\_LogicalDisk class. I can determine which drives are mounted to a drive letter, but not those mounted to a folder. The Win32\_Volume\* and Win32\_MountPoint classes would be perfect, but are not available on XP. 3. I've tried polling the drives using FindFirstVolume & GetVolumePathNamesForVolumeName (even though I'd rather not do that), but it appears that the drives must be spun up before it can give me the information. And again, ew, polling. I was considering the possibility of using API hooking to hook calls to SetVolumeMountPoint and DeleteVolumeMountPoint but I don't think that would catch everything and it seems like that might be an ugly hack anyway. So, yea, I'm looking for suggestions :)
0
[ 2, 184, 107, 31, 164, 21, 52, 4634, 76, 4155, 9695, 21, 2149, 454, 60, 800, 3726, 3726, 64, 168, 15, 235, 50, 14, 16747, 45, 13, 8, 491, 485, 27, 23045, 13, 8, 491, 52, 8612, 16, 156, 1493, 1748, 16898, 17, 17022, 21, 2310, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Silverlight 2 UI pattern === I have to build small (for now) admin app in Silverlight2, and would like to use some pattern for binding UI with my BL/DAL. I found view-model-viewmodel and mvp/mvc patterns, where first one (V/M/VM) is specially suited for WPF apps, because it uses rich capabilities of WPF data-binding options. What do you suggest? Can you write simple example of V/M/VM for SL2?
0
[ 2, 1172, 3130, 172, 13, 5661, 3732, 800, 3726, 3726, 31, 57, 20, 1895, 284, 13, 5, 1106, 130, 6, 21, 43, 2160, 4865, 19, 1172, 3130, 135, 15, 17, 83, 101, 20, 275, 109, 3732, 26, 8728, 13, 5661, 29, 51, 13, 6287, 118, 3952, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Symbian automated testing tool === Could you recommend any testing tool that is able to run on a phone (or at least emulatior) and simulate predefined (via scripting) sequence of operations (eq. "press" keys, "type" data etc) ? Thanks
0
[ 2, 13, 7261, 10035, 14904, 4431, 5607, 800, 3726, 3726, 110, 42, 12360, 186, 4431, 5607, 30, 25, 777, 20, 485, 27, 21, 1132, 13, 5, 248, 35, 639, 3579, 3743, 1388, 248, 6, 17, 24969, 782, 13439, 13, 5, 5034, 3884, 68, 6, 4030, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 create a simple proxy in C#? === I have downloaded Privoxy few weeks ago and for the fun I was curious to know how a simple version of it can be done. I understand that I need to configure the browser (client) to send request to the proxy. The proxy send the request to the web (let say it's a http proxy). The proxy will receive the answer... but how can the proxy send back the request to the browser (client)? I have search on the web for C# and http proxy but haven't found something that let me understand how it works behind the scene correctly. (I believe I do not want a reverse proxy but I am not sure). Does any of you have some explication or some information that will let me continue this small project?
0
[ 2, 184, 20, 1600, 21, 1935, 27188, 19, 272, 5910, 60, 800, 3726, 3726, 31, 57, 23887, 4566, 22611, 93, 310, 1342, 1464, 17, 26, 14, 2414, 31, 23, 7686, 20, 143, 184, 21, 1935, 615, 16, 32, 92, 44, 677, 9, 31, 1369, 30, 31, 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...
Netbeans, generated code, and svn === We have a netbeans project that has an xsd that we use to create a wsdl and we use the wsdl to create a webservice. Since we are using types in our xsd jaxb is used and one of our webservice methods looks like this: public void someMethod( org.netbeans.xml.schema.line.Line x )... So that leaves us a problem with subversion since the Line objects are generated by netbeans. So we want to do is either tell netbeans to place the files inside of the project? Or tell netbeans that we will generate the jaxb code and that they should use our classes when the webservice calls are processed? How can we accomplish one of these, what are some other alternatives?
0
[ 2, 4275, 863, 5950, 15, 6756, 1797, 15, 17, 13, 18, 16578, 800, 3726, 3726, 95, 57, 21, 4275, 863, 5950, 669, 30, 63, 40, 993, 18, 43, 30, 95, 275, 20, 1600, 21, 619, 18, 8643, 17, 95, 275, 14, 619, 18, 8643, 20, 1600, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Error when compiling with Windows DDK === Forgive me for being a complete newbie with Windows DDK. I have create a simple file named `test.cpp`: #include <windows.h> #define BAD_ADDRESS 0xBAADF00D int __cdecl main(int argc, char* args[]) { char* p =(char*)BAD_ADDRESS; *p='A'; return 0; } In the same directory I created a `sources` file like this: <pre> TARGETNAME=test TARGETTYPE=PROGRAM TARGETPATH=obj TARGETLIBS=$(SDK_LIB_PATH)\kernel32.lib SOURCES= test.cpp </pre> And a `makefile` like this: <pre> # # DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source # file to this component. This file merely indirects to the real make file # that is shared by all the components of Windows # !INCLUDE $(NTMAKEENV)\makefile.def </pre> After launching the Windows XP Free Build Environment I browse to the directory with the three files (test.cpp, makefile and sources) and run the following command: <pre>F:\temp\debug\dir1>build -cZg</pre> Which outputs: <pre> BUILD: Adding /Y to COPYCMD so xcopy ops won't hang. BUILD: Using 2 child processes BUILD: Object root set to: ==> objfre_wxp_x86 BUILD: Compile and Link for i386 BUILD: Examining f:\temp\debug\dir1 directory for files to compile. BUILD: Compiling (NoSync) f:\temp\debug\dir1 directory 1>Compiling - test.cpp for i386 BUILD: Compiling f:\temp\debug\dir1 directory BUILD: Linking f:\temp\debug\dir1 directory 1>Linking Executable - objfre_wxp_x86\i386\test.exe for i386 BUILD: Done 2 files compiled 1 executable built </pre> The problem is that when I run the created executable `test.exe` it says: <pre> F:\temp\debug\dir1\objfre_wxp_x86\i386>test The F:\temp\debug\dir1\objfre_wxp_x86\i386\test.exe application cannot be run in Win32 mode. </pre> **What am I missing here?**
0
[ 2, 7019, 76, 24378, 29, 1936, 13, 8096, 197, 800, 3726, 3726, 8591, 55, 26, 142, 21, 1279, 78, 5893, 29, 1936, 13, 8096, 197, 9, 31, 57, 1600, 21, 1935, 3893, 377, 13, 1, 10543, 9, 150, 3421, 1, 45, 6926, 22640, 13, 1, 27508, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Debugging Visual Studio 2008 Web Application takes long to launch === When debugging an asp.net web application in VS2008 IDE, i feel it takes 'long' to launch the application because it my app is not big (about six pages). I am not using the in-built VS web-server, I'm using the standard IIS web-server on my development machine. (That is, on the 'Start Options' dialog, I have set to 'Use custom server' and pointed 'Base URL' to the one I have defined in IIS) I have not tried to fine-tune any options so I though someone can quickly point what needs to be changed to optmise this process My machine is a P3 Duo-core and I feel it has sufficient memory for the job :)
0
[ 2, 121, 16254, 2762, 3458, 1120, 570, 2741, 3010, 1384, 175, 20, 3394, 800, 3726, 3726, 76, 121, 16254, 2762, 40, 28, 306, 9, 2328, 2741, 3010, 19, 4611, 2753, 13, 3448, 15, 31, 583, 32, 1384, 13, 22, 2701, 22, 20, 3394, 14, 301...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL Server 2005 - Granting permission to create stored procedures (but no other objects) === I want to grant a user permission to create, alter, and execute stored procedures, but without the ability to create other database objects. I excluded them from the role db_ddladmin, but explicitly granted the permissions "Create procedure" and "Execute". These permssions appear in the effective permissions list. However, when I try to create a stored procedure with this login, I get the following error: "The specified schema name "dbo" either does not exist or you do not have permission to use it." Any suggestions?
0
[ 2, 4444, 255, 8128, 812, 13, 8, 18599, 5572, 20, 1600, 8214, 8876, 13, 5, 811, 90, 89, 3916, 6, 800, 3726, 3726, 31, 259, 20, 2048, 21, 4155, 5572, 20, 1600, 15, 7835, 15, 17, 15644, 8214, 8876, 15, 47, 366, 14, 2165, 20, 1600...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you compile gnu flex in Visual Studio 2005/2008? === I can't figure this one out. I can download a win32 binary of flex 2.5.4a from gnuwin32, but I'd like to build the latest version (2.5.35) using Visual Studio 2005. I suppose I could build in in cygwin, but where is the fun in that? http://flex.sourceforge.net/
0
[ 2, 184, 107, 42, 26561, 26092, 14409, 19, 3458, 1120, 812, 118, 2753, 60, 800, 3726, 3726, 31, 92, 22, 38, 1465, 48, 53, 70, 9, 31, 92, 7121, 21, 628, 3125, 14171, 16, 14409, 172, 9, 264, 9, 300, 58, 37, 26092, 4181, 3125, 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...
Icon Background on IE6 === I'm developing a website (using asp.net by the way) and I'm having a problem with IE6. When I use some icons near links, using background-image and padding-left on the links, the icons display nice on FF and Chrome but in IE6 they take a kind of "gray" background, and sometimes the flash strangely. Any ideas? is there some CSS hack to solve this? Thanks everyone!
0
[ 2, 9801, 2395, 27, 13, 660, 379, 800, 3726, 3726, 31, 22, 79, 3561, 21, 2271, 13, 5, 12655, 28, 306, 9, 2328, 34, 14, 161, 6, 17, 31, 22, 79, 452, 21, 1448, 29, 13, 660, 379, 9, 76, 31, 275, 109, 9801, 18, 424, 6271, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C++ constructs replacing C constructs === After discussing with a newly arrived developer in my team, I realized that there are still, in C++, habits of using C constructs because they are supposed to be better (i.e. faster, leaner, prettier, pick your reason). **What are the examples worth sharing, showing a C constructs, compared to the similar C++ construct?** For each example, I need to read the reasons the C++ construct is as good or even better the original C construct: The aim is to offer alternatives to some C constructs that are considered somewhat dangerous/unsafe in C++ code (C++0x valid only answers are accepted as long as clearly marked as C++0x only). I'll post below an answer (struct inline initialization) as an example. *Note 1: Please, one answer per case. If you have multiple cases, please post multiple answers* *Note 2: This is not a C question. Do not add the "C" tag to this question.* *Note 3: This is not a C-bashing question. I want reasons. Boasting, bashing, and unproven comparisons will be downmodded. Mentionning C++ features without a C equivalent could be considered out of topic: I want the put side by side a C feature against a C++ feature.*
0
[ 2, 272, 20512, 6960, 18, 5496, 272, 6960, 18, 800, 3726, 3726, 75, 10988, 29, 21, 2771, 1568, 10058, 19, 51, 173, 15, 31, 1896, 30, 80, 50, 174, 15, 19, 272, 20512, 15, 16760, 16, 568, 272, 6960, 18, 185, 59, 50, 2293, 20, 44,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HTML anchor with name attribute in ASP.NET === I'd like to make anchors to every post in my asp.net forum. Every forum's post is rendered using repeater control. How can I render `<a name="anchor_name"></a>` in asp.net?
0
[ 2, 13, 15895, 6265, 29, 204, 35, 14755, 19, 28, 306, 9, 2328, 800, 3726, 3726, 31, 22, 43, 101, 20, 233, 6265, 18, 20, 352, 678, 19, 51, 28, 306, 9, 2328, 5691, 9, 352, 5691, 22, 18, 678, 25, 10877, 568, 6830, 106, 569, 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...
Ad Management Software for ASP.NET === Can anyone recommend any Ad Management components for .NET? I have a customer who would like to sell his own advertising through his own site. This rules out using packaged ad providers such as Google Ads. I've googled several packages, but I'd like to see if anyone has any first hand experience with a particular package. Or should I just roll my own ad management system? Thanks!
0
[ 2, 21, 43, 1097, 2306, 26, 28, 306, 9, 2328, 800, 3726, 3726, 92, 1276, 12360, 186, 21, 43, 1097, 5090, 26, 13, 9, 2328, 60, 31, 57, 21, 7705, 72, 83, 101, 20, 3344, 33, 258, 5620, 120, 33, 258, 689, 9, 48, 1761, 70, 568, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 JavaScript code to create an img element === I want to create a simple bit of JS code that creates an image element in the background and doesn't display anything. The image element will call a tracking URL (such as Omniture) and needs to be simple and robust and work in IE 6 > only. Here is the code I have: var oImg=document.createElement("img"); oImg.setAttribute('src', 'http://www.testtrackinglink.com'); oImg.setAttribute('alt', 'na'); oImg.setAttribute('height', '1px'); oImg.setAttribute('width', '1px'); document.body.appendChild(oImg); Is this the best way to do it?
0
[ 2, 98, 25, 14, 246, 8247, 8741, 1797, 20, 1600, 40, 797, 263, 4520, 800, 3726, 3726, 31, 259, 20, 1600, 21, 1935, 1142, 16, 487, 18, 1797, 30, 9695, 40, 1961, 4520, 19, 14, 2395, 17, 1437, 22, 38, 3042, 602, 9, 14, 1961, 4520,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
disadvantage stored procedure === Would like to get a list of advantages and disadvantages of using Stored Procedures. The main advantage of SPs seems to be precompiled and an abstraction of data from the application. Give me your thoughts....
0
[ 2, 13387, 8214, 7004, 800, 3726, 3726, 83, 101, 20, 164, 21, 968, 16, 14683, 17, 13387, 18, 16, 568, 8214, 8876, 9, 14, 407, 3314, 16, 3782, 18, 2206, 20, 44, 782, 11103, 49, 1294, 17, 40, 23907, 16, 1054, 37, 14, 3010, 9, 590...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do you manage your external documentation? === Depending on the project, there are a number of artifacts that might be produced. On top of the number of documents, they also come in many formats (and some are produced in multiple formats). So how do you keep everything organized and up-to-date, especially in a project with a large amount of documentation?
2
[ 2, 184, 107, 42, 4705, 154, 4886, 13945, 60, 800, 3726, 3726, 4758, 27, 14, 669, 15, 80, 50, 21, 234, 16, 10996, 30, 530, 44, 671, 9, 27, 371, 16, 14, 234, 16, 4374, 15, 59, 67, 340, 19, 151, 13767, 13, 5, 290, 109, 50, 67...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Remove or change Default Route post Global.asax === I'm building a CMS in ASP.NET MVC and want to allow users to pick which page they want to be displayed by default when the user first visits the site. I set my default route in Global.asax, like so (for example): routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = "" } // Parameter defaults ); But then later I want to change the default route in an HttpModule based on something I retrieve from a data source; how can I change that default route initially setup in Global.asax? Is it too late to change the routing table in the HttpModule and if so how can I realise this feature?
0
[ 2, 4681, 54, 753, 12838, 858, 678, 2062, 9, 8588, 396, 800, 3726, 3726, 31, 22, 79, 353, 21, 2390, 18, 19, 28, 306, 9, 2328, 307, 8990, 17, 259, 20, 1655, 3878, 20, 2036, 56, 2478, 59, 259, 20, 44, 6115, 34, 12838, 76, 14, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you copy a file in PHP without overwriting an existing file? === When you use the PHP [copy][1] function, the operation blindly copies over the destination file, even if it already exists. How do you copy a file safely, only performing the copy if there is no existing file? [1]: http://us2.php.net/manual/en/function.copy.php
0
[ 2, 184, 107, 42, 4344, 21, 3893, 19, 13, 26120, 366, 84, 12646, 40, 3149, 3893, 60, 800, 3726, 3726, 76, 42, 275, 14, 13, 26120, 636, 19625, 500, 2558, 165, 500, 1990, 15, 14, 1453, 4631, 102, 3298, 84, 14, 6970, 3893, 15, 166, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ExceptProc not being called in Windows === I am currently trying to create an Exception handler built into my windows service that, on an unhandled exception, sends a message to another program. I have built the method and gotten the communication working, but it seems that every time my program throws the error, (I have a raise call in the code to force it.) windows catches it instead and the Handler isn't called. Can anyone explain what I am doing wrong?. Simplified Code to explain: procedure unhandled(); begin raise Exception.Create('Unhandled'); end; procedure ExceptionHandler(ExceptObject: TObject; ExceptAddr: Pointer); begin WriteLn('Display: ' + Exception(ExceptObject).Message); //send Message Here end; I call this code to run it: WriteLn('Starting'); ExceptProc := @ExceptionHandler; unhandled(); I would expect the output to be: Starting<br/> Display: Unhandled but all it does is display: Starting Then windows returns a command prompt after about 5 seconds. Why isn't the handler being properly called? P.S. I've been running these tests in a console app for testing.
0
[ 2, 1613, 15617, 52, 142, 227, 19, 1936, 800, 3726, 3726, 31, 589, 871, 749, 20, 1600, 40, 5391, 24641, 392, 77, 51, 1936, 365, 30, 15, 27, 40, 367, 3203, 1294, 5391, 15, 11350, 21, 2802, 20, 226, 625, 9, 31, 57, 392, 14, 2109,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 run a very large query (MS SQL and ColdFusion) === I've got a reasonably simply query (this time) that I need ALL the results back from (I'm storing them in an excel spreadsheet). The query itself times out the server, so how do I go about running it without that happening?
0
[ 2, 184, 20, 485, 21, 253, 370, 25597, 13, 5, 79, 18, 4444, 255, 17, 1191, 9818, 6, 800, 3726, 3726, 31, 22, 195, 330, 21, 19531, 1659, 25597, 13, 5, 1565, 85, 6, 30, 31, 376, 65, 14, 1736, 97, 37, 13, 5, 49, 22, 79, 25615,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 the Internet explorer developer toolbar work with popups? === I can't seem to get the developer tool bar to work with a pop-up, suggestions?
0
[ 2, 630, 14, 2620, 8520, 10058, 5607, 1850, 170, 29, 1675, 15699, 60, 800, 3726, 3726, 31, 92, 22, 38, 2260, 20, 164, 14, 10058, 5607, 748, 20, 170, 29, 21, 1675, 8, 576, 15, 18389, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to sanity check a date in java === I find it curious that the most obvious way to create Date objects in Java has been deprecated and appears to have been "substituted" with not so obvious to use lenient calendar. So... How do you check that a date given as a combination of day, month and year is a valid date? For instance a date 2008-02-31 (as in yyyy-mm-dd) would be invalid date.
0
[ 2, 184, 20, 22869, 2631, 21, 1231, 19, 8247, 800, 3726, 3726, 31, 477, 32, 7686, 30, 14, 127, 4674, 161, 20, 1600, 1231, 3916, 19, 8247, 63, 74, 121, 3515, 150, 1669, 17, 1780, 20, 57, 74, 13, 7, 7563, 384, 12866, 1427, 7, 29,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there an application to generate Winform Code? === I need a simple app to edit database tables. Are there any code generators that will generate winforms in c#? I have CodeSmith, are there any templates around that would help in doing this?
0
[ 2, 25, 80, 40, 3010, 20, 7920, 628, 4190, 1797, 60, 800, 3726, 3726, 31, 376, 21, 1935, 4865, 20, 9392, 6018, 7484, 9, 50, 80, 186, 1797, 20495, 30, 129, 7920, 628, 4190, 18, 19, 272, 5910, 60, 31, 57, 1797, 7017, 15, 50, 80, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Catching window.print() from SWT Browser === I 'm exploring for a browser solution / API that has the following features: * Must support the nowadays default web technologies * Must support client side XSLT * Must support executing arbitrary Javascript on the pages it loads * Must be able to catch events from the web page targeted to the browser or OS (I am specifically interested in window.print()) QtWebkit seemed like the way to go but it still doesn't support XSLT so I had to look for alternatives. SWT Browser is a wrapper around the native browser component of the underlying system and in linux that I 'm interested this would mean the firefox engine that supports the attributes I 'm interested in except that I haven't still found out how to catch window.print() and provide my own implementation instead of the default one that is opening up a print dialog. Any suggestions?
0
[ 2, 9436, 1463, 9, 10299, 5, 6, 37, 8783, 38, 16495, 800, 3726, 3726, 31, 13, 22, 79, 11748, 26, 21, 16495, 4295, 13, 118, 21, 2159, 30, 63, 14, 249, 967, 45, 1637, 491, 555, 14, 15694, 12838, 2741, 5740, 1637, 491, 555, 6819, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 map classes in NHibernate using Roles or Composition === I believe this is a common question / problem but have not been able to find a good clean concise answer. **The Problem** How to map entities that appear to have an inheritance relationship: Company Supplier Manufacturer Customer However, a Supplier can be a Manufacturer. or Person Doctor Patient Employee Where a Patient can be a Doctor or can be an Employee. **Suggestion: Use Roles** In discussions on the NHibernate forums, the response is often that this is multiple inheritance. <http://forum.hibernate.org/viewtopic.php?t=959076> They solution suggested is to use composition or to use "Roles". However, I cannot find any examples or explanation on how exactly to do that. > "Favor composition over inheritance." > Remember that little goodie from > class? In this instance I have to > agree that you are trying multiple > inheritance-- not possible in C# or > Java (yet). I, personally, would > encourage you to think about > re-modeling so you have a Person > object and a person has a one-to-many > collection of Roles.
0
[ 2, 184, 20, 2942, 2684, 19, 12109, 15191, 8820, 568, 2954, 54, 4046, 800, 3726, 3726, 31, 985, 48, 25, 21, 757, 1301, 13, 118, 1448, 47, 57, 52, 74, 777, 20, 477, 21, 254, 2745, 29455, 1623, 9, 13, 1409, 124, 1448, 1409, 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...
Java Timestamp valueOf === I came across a code snippet like this: <code>Timestamp expiryDate = Timestamp.valueOf(dateStr + " " + "23:59:59.000"); </code> Here dateStr is a string entered by the user in a form, in the format yyyy-mm-dd. Now the behavior of Timestamp.valueOf is such that it converts non-existent dates into appropriate proper dates. Say 31st June 2008 into 01st July 2008. How can I check in Java if the dateStr string is in fact a valid date ? I know I can manually do the check, but what I would like to know is whether any method is already available to do the same.
0
[ 2, 8247, 436, 38, 10158, 1923, 1041, 800, 3726, 3726, 31, 281, 464, 21, 1797, 13, 29061, 101, 48, 45, 13, 1, 9375, 1, 891, 384, 10158, 1396, 2159, 622, 8209, 800, 436, 38, 10158, 9, 15165, 1041, 5, 8209, 9729, 2754, 13, 7, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Code Synthesis doesn't seem to generate a "valid" xml tree === I've been working with code synthesis xsd to generate an xml tree to ensure constinency of the xml output to the original xsd. After initial testing, everything looked ok but when I tried entering invalid values (correct type, but outside the defined range), the values were allowed. Although the xml is well formed and conforms to the types set in the xsd, it is not a valid xml wrt the schema. Has anybody else used this tool and/or come up across this problem?
0
[ 2, 1797, 10376, 1437, 22, 38, 2260, 20, 7920, 21, 13, 7, 18506, 43, 7, 23504, 1541, 800, 3726, 3726, 31, 22, 195, 74, 638, 29, 1797, 10376, 993, 18, 43, 20, 7920, 40, 23504, 1541, 20, 4062, 11608, 2864, 8883, 16, 14, 23504, 5196...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
@#$^# Master Pages === So, from my experience, masterpages sometimes can lag when you do updates. This is not a new occurance, you make a change, you build, you go to test and the MasterPage is still looking for the old control. Anyone have any tips/tricks they use when this happens? Usually it goes away after a while, but I don't have a while. I am using VS 2008.
0
[ 2, 13, 1, 5910, 4403, 1, 5910, 1129, 4434, 800, 3726, 3726, 86, 15, 37, 51, 1496, 15, 1129, 6486, 18, 1030, 92, 13, 6828, 76, 42, 107, 16779, 9, 48, 25, 52, 21, 78, 3744, 2416, 15, 42, 233, 21, 753, 15, 42, 1895, 15, 42, 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...
Client Customizations === <p>We have a product with an install base of about 50, over 50% of these installs have customizations in the code for the business logic, and that is currently done by huge IF and Switch statements. </p> <p>We are currently in the process of updating the code to .NET 3.5 and would like to handle the customizations in a more managable way. The only ways we can think of at the moment are to either stick with the large IF and Switch statements or have seperate files within Source Code Control for each client, which again doesn't seem to be ideal.</p> <p> <p>Is there an accepted way of handling large numbers of customizations across a codebase?</p>
0
[ 2, 6819, 5816, 1829, 18, 800, 3726, 3726, 13, 1, 306, 1, 458, 57, 21, 2374, 29, 40, 16146, 1000, 16, 88, 1222, 15, 84, 10496, 16, 158, 16146, 18, 57, 5816, 1829, 18, 19, 14, 1797, 26, 14, 508, 7085, 15, 17, 30, 25, 871, 677,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
autocomplete algorithms, papers, strategies, etc. === I'm wondering if anyone has good resources to read or code to experiment for "autcomplete" I would like to know what's the theory behind autocompletion, where to start what are the commonn mistakes etc. I found fascinating the way products like Enso, Launchy, Google chrome and even tcsh perform their auto complete, I started my self just for curiosity some sample code and I got to the conclusion this must be a field widely explored before. I would appreciate if someone shares any good technical resource on how to implement this. Thanks in advance.
0
[ 2, 3108, 15990, 15935, 15, 3747, 15, 10272, 15, 2722, 9, 800, 3726, 3726, 31, 22, 79, 5712, 100, 1276, 63, 254, 2566, 20, 1302, 54, 1797, 20, 5737, 26, 13, 7, 1346, 38, 15990, 7, 31, 83, 101, 20, 143, 98, 22, 18, 14, 1639, 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...
Good articles for Sharepoint Web Part creation? === Does anyone know of any good basic articles for creating Sharepoint Web Parts. I have found a couple, but most of them jumped in a little quick. Thanks.
0
[ 2, 254, 3376, 26, 1891, 3132, 2741, 141, 2502, 60, 800, 3726, 3726, 630, 1276, 143, 16, 186, 254, 2125, 3376, 26, 2936, 1891, 3132, 2741, 1341, 9, 31, 57, 216, 21, 1335, 15, 47, 127, 16, 105, 4298, 19, 21, 265, 2231, 9, 3669, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Compiling .cs from .Net Applications === Is there a managed API to compile csharp applications (to memory or disk)? I assume one exists because SharePoint compiles Asp.Net pages in memory. We want to use it to, at runtime, generate Linq DataContexts and compile those against various projects. Any help is appreciated! Cheers, James
0
[ 2, 24378, 13, 9, 6824, 37, 13, 9, 2328, 3767, 800, 3726, 3726, 25, 80, 21, 1471, 21, 2159, 20, 26561, 272, 23646, 3767, 13, 5, 262, 1912, 54, 8582, 6, 60, 31, 7158, 53, 5636, 185, 1891, 3132, 26561, 18, 28, 306, 9, 2328, 4434,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 best open source game ever? === For me to read code an learn, not to play... ...of course ;-)
2
[ 2, 98, 22, 18, 14, 246, 368, 1267, 250, 462, 60, 800, 3726, 3726, 26, 55, 20, 1302, 1797, 40, 2484, 15, 52, 20, 418, 9, 9, 9, 13, 9, 9, 9, 1041, 674, 13, 73, 8, 6, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to edit EXIF data in .NET === I am writing a photo gallery/sharing website and want to (1) write EXIF data to the JPEGs stored on server, and (2) strip that EXIF data prior to writing to the output stream for display. Is anyone aware of a dotNet library -- preferably open source -- that allows the editing (the key here is that I need to write/erase the EXIF data, not just read it) of EXIF data in image files?
0
[ 2, 184, 20, 9392, 1396, 821, 1054, 19, 13, 9, 2328, 800, 3726, 3726, 31, 589, 1174, 21, 3056, 2246, 118, 25213, 2271, 17, 259, 20, 13, 5, 165, 6, 2757, 1396, 821, 1054, 20, 14, 487, 20427, 18, 8214, 27, 8128, 15, 17, 13, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I know in git if a branch has been already merged into master? === I have a git repository with multiple branches. How can I know which branches are already merged into the master branch?
0
[ 2, 184, 92, 31, 143, 19, 13, 10404, 100, 21, 1686, 63, 74, 614, 3901, 77, 1129, 60, 800, 3726, 3726, 31, 57, 21, 13, 10404, 24869, 29, 1886, 4395, 9, 184, 92, 31, 143, 56, 4395, 50, 614, 3901, 77, 14, 1129, 1686, 60, 3, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What the heck is "loose coupling?" Please show code. === I can't seem to grok the concept of "loose coupling." I suppose it doesn't help that the word "loose" usually has a negative connotation, so I always forget that loose coupling is a *good* thing. Will somebody please show some "before" and "after" code (or pseudocode) that illustrates this concept?
0
[ 2, 98, 14, 16490, 25, 13, 7, 1415, 6641, 20920, 60, 7, 2247, 298, 1797, 9, 800, 3726, 3726, 31, 92, 22, 38, 2260, 20, 3452, 197, 14, 2420, 16, 13, 7, 1415, 6641, 20920, 9, 7, 31, 5787, 32, 1437, 22, 38, 448, 30, 14, 833, 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...
syncing two lists with VBA === What is the best way to sync up two lists each of which may contain items not in the other? As shown the lists are not sorted - although if necessary sorting them first would not be an issue. List 1 = a,b,c,e List 2 = b,e,c,d Using the lists above, I'm looking for a solution that will write out to a spreadsheet in two columns: a b b c c d e e
0
[ 2, 6063, 6302, 81, 7227, 29, 566, 969, 800, 3726, 3726, 98, 25, 14, 246, 161, 20, 6063, 150, 71, 81, 7227, 206, 16, 56, 123, 3717, 3755, 52, 19, 14, 89, 60, 28, 1721, 14, 7227, 50, 52, 22554, 13, 8, 419, 100, 2378, 2058, 68,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Google Maps API - GMarker.openInfoWindowHtml() stopped working === I have a Google Map that suddenly stopped working for no apparent reason (I hadn't touched the code for months, but the wrapper code from our CMS may have changed without Corporate telling me). [http://www.democratandchronicle.com/section/builder][1] (sorry about the nasty HTML outside the map, most of that comes from our corporate parent...) I've narrowed it down to this part of my `drawMarker` function: GEvent.addListener(marker, 'click', function() { marker.openInfoWindowHtml(html, { maxWidth: 500 }); }); Of note: - `alert(html);` displays the correct HTML for the infowindow. - The HTML in the html variable is indeed valid. - The click event is firing (confirmed by `alert('test');` within it) - Another map I host on the same site [works fine][2], despite similar code. - No JavaScript errors in Firebug or IE that I can see. I've been bashing my head against this for a while. What am I missing? [1]: http://www.democratandchronicle.com/section/builder [2]: http://www.democratandchronicle.com/garagesales
0
[ 2, 8144, 6867, 21, 2159, 13, 8, 489, 4527, 106, 9, 10157, 108, 4120, 27508, 15895, 5, 6, 1175, 638, 800, 3726, 3726, 31, 57, 21, 8144, 2942, 30, 1605, 1175, 638, 26, 90, 5982, 1215, 13, 5, 49, 1241, 22, 38, 3491, 14, 1797, 26,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to sort an IList<T> in .Net 2.0? === I have an `IList<T>` that I need to sort, and I would rather not copy the list if possible. I've noticed that `ArrayList` has an `Adapter` static method that wraps the passed list without copying it, but this takes an `IList` and I have an `IList<T>`. Is it safe to cast from a `System.Collections.Generic.IList<T>` to a `System.Collections.IList` and just use the `Adapter` method? Note that this is .Net 2.0, so LINQ is not an option.
0
[ 2, 98, 25, 14, 246, 161, 20, 2058, 40, 31, 5739, 1, 38, 1, 19, 13, 9, 2328, 172, 9, 387, 60, 800, 3726, 3726, 31, 57, 40, 13, 1, 49, 5739, 1, 38, 1, 30, 31, 376, 20, 2058, 15, 17, 31, 83, 864, 52, 4344, 14, 968, 100, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Launch The Appstore App Directly from my Application === I've used several apps now that launch the itunes store directly from the app. I'm even using some on my 2.1 iPod 2G. I know there's a bug in 2.1 that prevents appstore links from working in safari, but somehow people are launching the appstore directly, not even through safari. How do you do this? Is it an undocumented openURL feature?
0
[ 2, 184, 92, 31, 3394, 14, 4865, 16828, 4865, 1703, 37, 51, 3010, 800, 3726, 3726, 31, 22, 195, 147, 238, 4865, 18, 130, 30, 3394, 14, 12952, 1718, 1703, 37, 14, 4865, 9, 31, 22, 79, 166, 568, 109, 27, 51, 172, 9, 165, 31, 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...
Best method to determine changed data in C++ === I need to write a tool in C++ to determine the changed bits in a file compared against another file for replication. What would be the best method of accomplishing this? I don't have a specific OS or library in mind, I'm open to suggestions. My primary goal is reducing the amount of network traffic involved in replicating.
0
[ 2, 246, 2109, 20, 3746, 1015, 1054, 19, 272, 20512, 800, 3726, 3726, 31, 376, 20, 2757, 21, 5607, 19, 272, 20512, 20, 3746, 14, 1015, 10181, 19, 21, 3893, 2428, 149, 226, 3893, 26, 23841, 9, 98, 83, 44, 14, 246, 2109, 16, 14570,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Manually drawing a gradient in iPhone apps? === If I have two UIColors, what's the best way to draw an even gradient between them over an arbitrarily-sized area? I am guessing you would create a UIView subclass and use the CG drawing methods in the drawRect method. I just don't know which ones, or if there are any pitfalls to watch out for, like performance. Has anyone done this?
0
[ 2, 23671, 3533, 21, 17442, 19, 21024, 4865, 18, 60, 800, 3726, 3726, 100, 31, 57, 81, 13, 5661, 11282, 18, 15, 98, 22, 18, 14, 246, 161, 20, 2003, 40, 166, 17442, 128, 105, 84, 40, 13, 25267, 18966, 8, 6560, 217, 60, 31, 589, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Resetting the time part of a timestamp in Java === In Java, given a timestamp, how to reset the time part alone to 00:00:00 so that the timestamp represents the midnight of that particular day ? In T-SQL, this query will do to achieve the same, but I don't know how to do this in Java. <code>SELECT CAST( FLOOR( CAST(GETDATE() AS FLOAT ) ) AS DATETIME) AS 'DateTimeAtMidnight';</code>
0
[ 2, 302, 19831, 14, 85, 141, 16, 21, 436, 38, 10158, 19, 8247, 800, 3726, 3726, 19, 8247, 15, 504, 21, 436, 38, 10158, 15, 184, 20, 23422, 14, 85, 141, 1056, 20, 13, 2032, 45, 2032, 45, 2032, 86, 30, 14, 436, 38, 10158, 4719, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Databases which can handle semi-structured data? === Other than [CouchDB][^1] and Native XML Databases (such as [eXist][^2]), which databases can store and query un- and semi-structured data? I've been handed lots of data in different formats, which I need to merge and work with, but developing a schema in a relational database will be time-consuming and difficult. [^1]: http://couchdb.org [^2]: http://exist-db.org
0
[ 2, 6018, 18, 56, 92, 3053, 1922, 8, 13971, 43, 1054, 60, 800, 3726, 3726, 89, 119, 636, 716, 6396, 9007, 500, 2558, 1, 165, 500, 17, 1275, 23504, 6018, 18, 13, 5, 4289, 28, 636, 1706, 702, 500, 2558, 1, 135, 500, 6, 15, 56, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there offline version of JSLint for Windows? === I'd like to check my JavaScript files without going to [JSLint][1] web site. Is there a desktop version of this tool for Windows? [1]: http://www.jslint.com/
0
[ 2, 25, 80, 168, 1143, 615, 16, 487, 18, 1226, 38, 26, 1936, 60, 800, 3726, 3726, 31, 22, 43, 101, 20, 2631, 51, 8247, 8741, 6488, 366, 228, 20, 636, 728, 18, 1226, 38, 500, 2558, 165, 500, 2741, 689, 9, 25, 80, 21, 17404, 61...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 acceptable to "borrow" dependency properties from unrelated classes? === I'm writing a class that renders some content in WPF, and I want to give the user control over how the content is rendered. The rendering is mostly stroking lines, so I decided to look to the System.Windows.Forms.Shapes.Line class to get an idea of what properties I might want to implement. This led me to implement most of the <code>StrokeXXXX</code> properties, and it's a lot of drudgework since each requires metadata to affect the rendering. A colleague suggested that I just "borrow" the properties from Shape like this: Shape.StrokeThicknessProperty.AddOwner(typeof(MyType)); This seems like a pretty good idea. I thought that by doing this I'd lose the ability to set coercion and property changed callbacks, but it looks like the overload that takes a PropertyMetadata allows this. The only downside I can see is if the implementation of Shape changes, it will affect our class, but I'm uncertain how often I expect the .NET interfaces to change significantly. What do you think? Is this a decent shortcut to defining properties when a well-known class has the behavior you want and a stable interface, or a sure-fire way to play with fire while in a gasoline bath?
0
[ 2, 25, 32, 12513, 20, 13, 7, 6157, 5417, 7, 26835, 3704, 37, 17379, 2684, 60, 800, 3726, 3726, 31, 22, 79, 1174, 21, 718, 30, 16535, 18, 109, 2331, 19, 619, 7721, 15, 17, 31, 259, 20, 590, 14, 4155, 569, 84, 184, 14, 2331, 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...
How do you use debugging to step into a class in a web application from another project in the same solution? === When using NUnit and the test project, we haven't been able to find a way to step into the class we are testing in a web application. We are using TestDriven.NET add-in for Visual Studio 2008. We are able to hit a breakpoint in the test project, but not step into the web app class that is being tested.
0
[ 2, 184, 107, 42, 275, 121, 16254, 2762, 20, 1424, 77, 21, 718, 19, 21, 2741, 3010, 37, 226, 669, 19, 14, 205, 4295, 60, 800, 3726, 3726, 76, 568, 10210, 242, 17, 14, 1289, 669, 15, 95, 2933, 22, 38, 74, 777, 20, 477, 21, 161...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Server Control for surrounding blocks === I am wondering what server control people generally use for surrounding and separating blocks of related controls and content in a Web Forms scenario. Often times I need to surround a block of HTML and related Server controls with a 'panel' that I can show or hide based upon some UI logic in the code behind. I am usually faced with either using a Panel, however this doesn't work if I need to surround multiple TR's in a table for example because the Panel renders as a div which is invalid inside a Table tag. In this situation I usually just set each TR to runat server and show/hide each of them individually, but there must be a better way. I have seen the PlaceHolder control used for this scenario, but wanted to know if anyone does this or has any other suggestions.
0
[ 2, 246, 8128, 569, 26, 2470, 5198, 800, 3726, 3726, 31, 589, 5712, 98, 8128, 569, 148, 1469, 275, 26, 2470, 17, 16880, 5198, 16, 1597, 8671, 17, 2331, 19, 21, 2741, 1997, 12705, 9, 478, 436, 31, 376, 20, 12215, 21, 1921, 16, 13,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# Extensions === I typically use extension methods very sparingly. When I do feel compelled to write an extension method, I sometimes want to overload the method. My question is, what are your thoughts on extension methods calling other extension methods? Bad practice? It feels wrong, but I can't really define why. For example, the second CaselessIs method calls the first: public static bool CaselessIs(this string s, string compareTo) { return string.Compare(s, compareTo, true) == 0; } public static bool CaselessIs(this string s, IEnumerable<string> compareTo) { foreach(string comparison in compareTo) { if (s.CaselessIs(comparison)) { return true; } } return false; } Would it be more appropriate to not do this? The downside would be that it violates DRY. public static bool CaselessIs(this string s, string compareTo) { return string.Compare(s, compareTo, true) == 0; } public static bool CaselessIs(this string s, IEnumerable<string> compareTo) { foreach(string comparison in compareTo) { if (string.Compare(s, comparison, true) == 0) { return true; } } return false; }
0
[ 2, 272, 5910, 17529, 800, 3726, 3726, 31, 2442, 275, 3896, 3195, 253, 12196, 68, 102, 9, 76, 31, 107, 583, 17350, 20, 2757, 40, 3896, 2109, 15, 31, 1030, 259, 20, 84, 8294, 14, 2109, 9, 51, 1301, 25, 15, 98, 50, 154, 3064, 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...
Continuous integration tools with "pipeline" support? === Our automated builds and tests are taking an increasing amount of resources, especially since we support many platforms and test in both debug and optimized. So, I'm looking for some tool support that would allow a more incremental "pipeline" approach so we could get feedback and results faster. Some ideal characteristics would include: 1. Support for incremental feedback so we can see the results of the build, unit tests, fast tests, longer running tests, static analysis, etc. as they become available. 1. Task dependency: if the build fails, then tests shouldn't be run but other tasks could be (like lint or something). 1. Support for multiple build and test tools (including custom). 1. Support for multiple platforms (Linux, Mac, possibly Windows). 1. Some archiving ability would be great, things like log files, build/test output, etc. Natrually, this can get unmanageably large so some data would ideally be purged after X many days or Y many builds. Any pointers or personal advice is greatly appreciated.
0
[ 2, 6357, 8078, 4672, 29, 13, 7, 15185, 1143, 7, 555, 60, 800, 3726, 3726, 318, 14904, 1895, 18, 17, 4894, 50, 741, 40, 3425, 2006, 16, 2566, 15, 1118, 179, 95, 555, 151, 6843, 17, 1289, 19, 156, 121, 16254, 17, 22864, 43, 9, 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...
Optimal Rectangle hatching algorithm === I am looking for an algorithm to hatch a rectangle with shortest overall line length, so that an object of given area can be passed through the hatching. For example given a rectangle of 5x3 cm, and I hatch using parallel lines 1cm across, the biggest object I can pass through the hatch is a square of 1cm side. I have used an overall 22 cm (ie 4x3+2x5) of hatch lines. So to pass an area of 1sqcm I have used 22cm of hatch lines. The algorithm should find a pattern that minimize the overall hatch lines from current 22cm while not allowing an area with more than 1sqcm to pass through (the object need not be in the form of a square or even rectangle, it's overall area that matters).
0
[ 2, 17586, 27181, 6882, 68, 9083, 800, 3726, 3726, 31, 589, 699, 26, 40, 9083, 20, 6882, 21, 27181, 29, 23576, 1677, 293, 1476, 15, 86, 30, 40, 3095, 16, 504, 217, 92, 44, 1100, 120, 14, 6882, 68, 9, 26, 823, 504, 21, 27181, 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...
Creating a left-arrow button (like UINavigationBar's "back" style) on a UIToolbar === I'd love to create a "back" left-arrow-bezel button in a UIToolbar. As far as I can tell, the only way to get one of these is to leave UINavigationController at default settings and it uses one for the left bar item. But there's no way I can find to create one as a UIBarButtonItem, so I can't make one in a standard UIToolbar, even though they're very similar to UINavigationBars. I could manually create it with button images, but I can't find the source images anywhere. They have alpha-channel edges, so screenshotting and cutting won't get very versatile results. Any ideas beyond screenshotting for every size and color scheme I intend to use?
0
[ 2, 2936, 21, 225, 8, 17638, 5167, 13, 5, 1403, 287, 1673, 13227, 857, 1850, 22, 18, 13, 7, 1958, 7, 1034, 6, 27, 21, 13, 5661, 20799, 1850, 800, 3726, 3726, 31, 22, 43, 339, 20, 1600, 21, 13, 7, 1958, 7, 225, 8, 17638, 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...
ElementName Binding Broken in a ControlTemplate === <Window xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'> <Window.Resources> <XmlDataProvider x:Key="MyData" XPath="/Info"> <x:XData> <Info xmlns=""> <Item Name="Item 1" Category="Cat1" /> <Item Name="Item 2" Category="Cat1" /> <Item Name="Item 3" Category="Cat2" /> <Item Name="Item 4" Category="Cat2" /> <Item Name="Item 5" Category="Cat2" /> <Item Name="Item 6" Category="Cat3" /> </Info> </x:XData> </XmlDataProvider> <CollectionViewSource x:Key='src' Source="{Binding Source={StaticResource MyData}, XPath=Item}"> <CollectionViewSource.GroupDescriptions> <PropertyGroupDescription PropertyName="@Category" /> </CollectionViewSource.GroupDescriptions> </CollectionViewSource> <ControlTemplate x:Key="ListTemplate" TargetType="ListView"> <ListView BorderThickness="0" ItemsSource='{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ItemsSource}' DisplayMemberPath="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DisplayMemberPath}"> <ListView.GroupStyle> <GroupStyle> <GroupStyle.ContainerStyle> <Style TargetType="{x:Type GroupItem}"> <Setter Property="Margin" Value="0,0,0,5" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type GroupItem}"> <Expander IsExpanded="{Binding IsChecked, ElementName=chkExpandAll, Mode=OneWay}"> <Expander.Header> <DockPanel> <TextBlock FontWeight="Bold" Text="{Binding Path=Name}" Margin="5,0,0,0" Width="100" /> <TextBlock FontWeight="Bold" Text="{Binding Path=ItemCount}" /> </DockPanel> </Expander.Header> <Expander.Content> <ItemsPresenter /> </Expander.Content> </Expander> </ControlTemplate> </Setter.Value> </Setter> </Style> </GroupStyle.ContainerStyle> </GroupStyle> </ListView.GroupStyle> </ListView> </ControlTemplate> </Window.Resources> <StackPanel> <CheckBox Name="chkExpandAll" IsChecked="True" Content="Expand All" /> <ListView ItemsSource='{Binding Source={StaticResource src}}' DisplayMemberPath="@Name" BorderThickness="1" Template="{StaticResource ListTemplate}" /> </StackPanel> </Window>
0
[ 2, 4520, 7259, 8728, 2023, 19, 21, 569, 9577, 6554, 800, 3726, 3726, 13, 1, 27508, 23504, 2172, 3726, 22, 21127, 6903, 7526, 5250, 9, 22019, 12980, 9, 960, 118, 4181, 16488, 118, 2821, 118, 6791, 8184, 118, 3914, 857, 22, 23504, 217...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Convert Byte Array to Integer In VB.Net === I'm wonder what the best way to convert a byte array (length 4) to an integer is in vb.net? I'm aware of BitConverter, but it seems like quite a waste to do a function call to do something that should be able to be done by copying 4 bytes of memory. Along the same lines, what about converting a single/double from it's binary representation to an single/double variable.
0
[ 2, 8406, 34, 591, 7718, 20, 13820, 19, 13, 20468, 9, 2328, 800, 3726, 3726, 31, 22, 79, 2666, 98, 14, 246, 161, 20, 8406, 21, 34, 591, 7718, 13, 5, 6325, 268, 6, 20, 40, 13820, 25, 19, 13, 20468, 9, 2328, 60, 31, 22, 79, 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...
DTS Packages & a Connection to Access === Using DTS I'm dynamically creating an access database. After the file is created (which works at this point) I'm having the DTS package post it via HTTP to another site. (This HTTP is just how it has to be done -- part of the spec.) But when the package posts the file, the posted version comes out as a 0 byte file. The code to post the file is tested and well implemented code. I'm sure it works. A colleague told me that he believes this "0-byte" error occurs because the Access connection hasn't closed the access file. He said that the DTS package must complete for the access file to be closed. **The Question is:** How do I get Access to close the Access file before the step to post the file executes? Just in case it is needed, the steps are: - Create the Access file, set a pre-defined access connection object to this new file - Create the Table in Access - Use a Transform Data task to Populate the Access Database (from a SQL Server) - Post the file via HTTP (predefined/Pretested Libaary is being used) Thank you in advance for your help!
0
[ 2, 13, 43, 38, 18, 16875, 279, 21, 2760, 20, 1381, 800, 3726, 3726, 568, 13, 43, 38, 18, 31, 22, 79, 7782, 1326, 2936, 40, 1381, 6018, 9, 75, 14, 3893, 25, 679, 13, 5, 2140, 693, 35, 48, 454, 6, 31, 22, 79, 452, 14, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I block search crawlers for every site on an Apache web server? === I have somewhat of a staging server on the public internet running copies of the production code for a few websites. I'd really not like it if the staging sites get indexed. Is there a way I can modify my httpd.conf on the staging server to block search engine crawlers? Changing the robots.txt wouldn't really work since I use scripts to copy the same code base to both servers. Also, I would rather not change the virtual host conf files either as there is a bunch of sites and I don't want to have to remember to copy over a certain setting if I make a new site.
0
[ 2, 92, 31, 1921, 2122, 12392, 445, 26, 352, 689, 27, 40, 17140, 2741, 8128, 60, 800, 3726, 3726, 31, 57, 4131, 16, 21, 16824, 8128, 27, 14, 317, 2620, 946, 3298, 16, 14, 637, 1797, 26, 21, 310, 13931, 9, 31, 22, 43, 510, 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...
File Transfer Protocol options? === I am looking for a good way to transfer non-trivial (10G > x >10MB) amounts of data from one machine to another, potentially over multiple sessions. I have looked briefly at - *ftp (sftp, tftp, ftp) - http - torrents (out because I will not have a seed network in general) - rsync (not sure if I can really adapt this to what I need) Are there any other protocols out there that might fit the bill a little better? Most of the above are not very fault tolerant in and of themselves, but rather rely on client/server apps to pick up the slack. At this stage I care much more about the protocol itself, rather than a particular client/server implementation that works well. (And yea I know I can write my own over udp, but I'd prefer *almost anything else*!!)
0
[ 2, 3893, 2617, 8494, 6368, 60, 800, 3726, 3726, 31, 589, 699, 26, 21, 254, 161, 20, 2617, 538, 8, 19712, 13, 5, 1036, 263, 13, 1, 993, 13, 1, 1036, 5024, 6, 8545, 16, 1054, 37, 53, 1940, 20, 226, 15, 9465, 84, 1886, 5763, 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...
Casting a UserControl as a specific type of user control === Is there a way to cast a user control as a specific user control so I have access to it's public properties? Basicly I'm foreaching through a placeholder's controls collection and I'm trying to access the user control's public properties. <pre><code> foreach(UserControl uc in plhMediaBuys.Controls) { uc.PulblicPropertyIWantAccessTo; } </code>
0
[ 2, 9087, 21, 4155, 12898, 28, 21, 1903, 1001, 16, 4155, 569, 800, 3726, 3726, 25, 80, 21, 161, 20, 1325, 21, 4155, 569, 28, 21, 1903, 4155, 569, 86, 31, 57, 1381, 20, 32, 22, 18, 317, 3704, 60, 2125, 102, 31, 22, 79, 26, 143...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.load in jQuery not loading cfcharts in IE6 === I am trying to dynamically load the contents of a div tag with a .cfm page that contains a cfchart in png format. When the user clicks on a link, I am using the load function to put the .cfm page into the div. $("#bank").bind("click", function(){ $("#chartx").load("bank.cfm"); }); I can get this to come up perfectly in Firefox, but not in IE6. It gives no error messages.
0
[ 2, 13, 9, 8294, 19, 487, 8190, 93, 52, 12797, 10084, 5433, 38, 18, 19, 13, 660, 379, 800, 3726, 3726, 31, 589, 749, 20, 7782, 1326, 6305, 14, 8478, 16, 21, 13, 12916, 3383, 29, 21, 13, 9, 8940, 79, 2478, 30, 1588, 21, 10084, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Hibernate returns invalida results with composite key. === I'm getting the strangest results. I have a class with a composite key. If i do the following query: > from LOVEJB l order by l.canonicalId > desc my results are not ordered by the '**canonicalId**' column I asked for. Instead, the canonical id result is like: > 823 823 822 823 ,,, Can someone give me some pointers on how should I try to crack this? I already messed up with *haschodes* and *equals*, I experimented with a new class, etc. to no avail.
0
[ 2, 4148, 2102, 8820, 4815, 16671, 58, 1736, 29, 12639, 1246, 9, 800, 3726, 3726, 31, 22, 79, 1017, 14, 2578, 384, 1736, 9, 31, 57, 21, 718, 29, 21, 12639, 1246, 9, 100, 31, 107, 14, 249, 25597, 45, 13, 1, 37, 339, 728, 220, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# Speech Recognition - Is this what the user said? === I have need to write an application which uses a speech recognition engine -- either the built in vista one, or a third party one -- that can display a word or phrase, and recognise when the user reads it (or an approximation of it). I also need to be able to switch quickly between languages, without changing the language of the operating system. The users will be using the system for very short periods. The application needs to work without the requirement of first training the recognition engine to the users' voices. It would also be fantastic if this could work on Windows XP or lesser versions of Windows Vista. Optionally, the system needs to be able to read information on the screen back to the user, in the user's selected language. I can work around this specification using pre-recorded voice-overs, but the preferred method would be to use a text-to-speech engine. Can anyone recommend something for me?
0
[ 2, 272, 5910, 2974, 3514, 13, 8, 25, 48, 98, 14, 4155, 87, 60, 800, 3726, 3726, 31, 57, 376, 20, 2757, 40, 3010, 56, 2027, 21, 2974, 3514, 1406, 13, 8, 8, 694, 14, 392, 19, 13520, 53, 15, 54, 21, 422, 346, 53, 13, 8, 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...
Java: What is java.awt.Component.getName() and setName() used for? === What is <a href="http://java.sun.com/javase/6/docs/api/java/awt/Component.html#getName()">java.awt.Component.getName()</a> used for? It always seems to be null in the applications I build with netbeans. I'm thinking of storing some help text per component in it -- I don't want to use the tooltip, I have another panel where I'll show the help text.
0
[ 2, 8247, 45, 98, 25, 8247, 9, 3885, 38, 9, 11103, 218, 2291, 9, 3060, 7259, 5, 6, 17, 309, 7259, 5, 6, 147, 26, 60, 800, 3726, 3726, 98, 25, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 1004, 1385, 9, 7843, 9, 960, 118, 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...