unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
How do I profile a SQL CLR application? === I have a SQL CLR function in SQL Server 2005. I want to profile this function to make sure there are no memory leaks. Any recommendations on how to determine if my function is behaving properly?
0
[ 2, 184, 107, 31, 5296, 21, 4444, 255, 10842, 139, 3010, 60, 800, 3726, 3726, 31, 57, 21, 4444, 255, 10842, 139, 1990, 19, 4444, 255, 8128, 812, 9, 31, 259, 20, 5296, 48, 1990, 20, 233, 562, 80, 50, 90, 1912, 11724, 18, 9, 186,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Castle Windsor: How to wire up a component to a factory property rather than method === I have the following component public class MyTimer : IMyTimer { public MyTimer(TimeSpan timespan){...} } Where timespan should be provided by the property ISettings.MyTimerFrequency. How do I wire this up in windsor container xml? I thought I could do something like this: <component id="settings" service="MySample.ISettings, MySample" type="MySample.Settings, MySample" factoryId="settings_dao" factoryCreate="GetSettingsForInstance"> <parameters><instance_id>1</instance_id></parameters> </component> <component id="my_timer_frequency" type="System.TimeSpan" factoryId="settings" factoryCreate="MyTimerFrequency" /> <component id="my_timer" service="MySample.IMyTimer, MySample" type="MySample.MyTimer, MySample"> <parameters><timespan>${my_timer_frequency}</timespan></parameters> but I am getting an error because MyTimerFrequency is a property when the factory facility expects a method. Is there a simple resolution here? Am I approaching the whole thing the wrong way?
0
[ 2, 1339, 10784, 45, 184, 20, 6511, 71, 21, 5912, 20, 21, 3129, 1354, 864, 119, 2109, 800, 3726, 3726, 31, 57, 14, 249, 5912, 317, 718, 51, 891, 139, 13, 45, 31, 915, 891, 139, 13, 1, 317, 51, 891, 139, 5, 891, 18, 3206, 436,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best Way to Store/Access a Directed Graph === I have around 3500 flood control facilities that I would like to represent as a network to determine flow paths (essentially a directed graph). I'm currently using SqlServer and a CTE to recursively examine all the nodes and their upstream components and this works as long as the upstream path doesn't fork alot. However, some queries take exponentially longer than others even when they are not much farther physically down the path (i.e. two or three segments "downstream") because of the added upstream complexity; in some cases I've let it go over ten minutes before killing the query. I'm using a simple two-column table, one column being the facility itself and the other being the facility that is upstream from the one listed in the first column. So, my question is, am I storing this information wrong? Is there a better way other than a CTE to query the upstream points?
0
[ 2, 246, 161, 20, 1718, 118, 20604, 21, 1012, 7210, 800, 3726, 3726, 31, 57, 140, 203, 6000, 5506, 569, 2450, 30, 31, 83, 101, 20, 3501, 28, 21, 982, 20, 3746, 3312, 12074, 13, 5, 24219, 102, 21, 1012, 7210, 6, 9, 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...
Which .Net Timer() to use === I have a legacy WinForms Mdi App in VB.Net 2.0 which I am adding functionality to. One of the additions is a warning which needs to be raised when the current time nears a specified value (a deadline). My intention is to check the time once an hour until there is less than an hour until the deadline, then display warnings at specified intervals until the time's up. The user needs to be able to continue to use the app up to and even after the deadline, but they need to periodically be made aware of the deadline's proximity. The app does not use System.Threading yet and my knowledge of it is limited at this time. I do know that there are 3 different Timer() methods available: - System.Threading.Timer(), - Windows.Forms.Timer() and - System.Timers.Timer() My question is, which is the best way to go with this? I attempted to use the threaded timer, but since WinForms are not thread safe I got a run time error trying to access another class. Is it worth making the class/form thread safe? Am I completely off track? Thanks.
0
[ 2, 56, 13, 9, 2328, 85, 139, 5, 6, 20, 275, 800, 3726, 3726, 31, 57, 21, 7780, 628, 4190, 18, 8138, 49, 4865, 19, 13, 20468, 9, 2328, 172, 9, 387, 56, 31, 589, 4721, 18548, 20, 9, 53, 16, 14, 848, 18, 25, 21, 3590, 56, 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 I iterate through DOM elements in PHP? === I have an XML file loaded into a DOM document, I wish to iterate through all 'foo' tags, getting values from every tag below it. I know I can get values via $element = $dom->getElementsByTagName('foo')->item(0); foreach($element->childNodes as $node){ $data[$node->nodeName] = $node->nodeValue; } However, what I'm trying to do, is from an XML like, <stuff> <foo> <bar></bar> <value/> <pub></pub> </foo> <foo> <bar></bar> <pub></pub> </foo> <foo> <bar></bar> <pub></pub> </foo> </stuff> iterate over every *foo* tag, and get specific *bar* or *pub*, and get values from there. Now, how do I iterate over *foo* so that I can still access specific child nodes by name?
0
[ 2, 184, 107, 31, 32, 106, 1373, 120, 11859, 2065, 19, 13, 26120, 60, 800, 3726, 3726, 31, 57, 40, 23504, 3893, 8572, 77, 21, 11859, 4492, 15, 31, 2536, 20, 32, 106, 1373, 120, 65, 13, 22, 4120, 111, 22, 3383, 18, 15, 1017, 407...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a convention to the order of modifiers in C#? === If I were to use more than one, what order should I use modifier keywords such as: public, private, protected, virtual, abstract, override, new, static, internal, sealed, and any others I'm forgetting.
0
[ 2, 25, 80, 21, 3087, 20, 14, 389, 16, 7226, 16292, 18, 19, 272, 5910, 60, 800, 3726, 3726, 100, 31, 46, 20, 275, 91, 119, 53, 15, 98, 389, 378, 31, 275, 7226, 16292, 1246, 12827, 145, 28, 45, 317, 15, 932, 15, 3803, 15, 6599...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does anyone have database, programming language/framework suggestions for a GUI point of sale system? === Our company has a point of sale system with many extras, such as ordering and receiving functionality, sales and order history etc. Our main issue is that the system was not designed properly from the ground up, so it takes too long to make fixes and handle requests from our customers. Also, the current technology we are using (Progress database, Progress 4GL for the language) incurs quite a bit of licensing expenses on our customers due to mutli-user license fees for database connections etc. After a lot of discussion and a current Total Cost Analysis it is looking like we will probably start over from scratch. We are looking for a couple of things. 1. Create the system with a nice GUI front end (it is currently CHUI and the application was not built in a way that allows us to redesign the front end... no layering or separation of business logic and gui...shudder). 2. Create the system with the ability to modularize different functionality so the product doesn't have to include all features. This would keep the cost down for our current customers that want basic functionality and a lower price tag. The bells and whistles would be available for those that would want them. 3. Use proper design patterns to make the product easy to add or change any part at any time (i.e. change the database or change the front end without needing to rewrite the application or most of it). This is a problem today because the Progress 4GL code is directly compiled against the database. Small changes in the database requires lots of code recompiling. Our new system will be linux based, with a possiblity of a client application providing functionality from one or more windows boxes. So what I'm looking for is any suggestions on which database and/or framework or programming language(s) someone might recommend for this sort of product. Anyone that has experience in this field might be able to point us in the right direction or even have some ideas of what to avoid. We have considered .NET and SQL Express (we don't need an enterprise level DB), but that would limit us to windows (as far as I know anyway). I have heard of Mono for writing .NET code in a Linux environment, but I don't know much about it yet. We've also considered a Java and MySql based implementation. To summarize we are looking to do the following: 1. Keep licensing costs down on the technology we will use to develop the product (Oracle, yikes! MySQL, nice.) 2. Deliver a solution that is easily maintainable and supportable. 3. A solution that has a component capable of running on "old" hardware through a CHUI front end. (some of our customers have 40+ terminals which would be a ton of cash in order to convert over to a PC). Suggestions would be appreciated. Thanks
0
[ 2, 630, 1276, 57, 6018, 15, 3143, 816, 118, 8361, 3783, 18389, 26, 21, 9457, 454, 16, 3299, 329, 60, 800, 3726, 3726, 318, 237, 63, 21, 454, 16, 3299, 329, 29, 151, 2230, 18, 15, 145, 28, 15775, 17, 3396, 18548, 15, 2598, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# Generics wont allow Delegate Type Constraints === Is it possible to define a class in C# such that class GenericCollection<T> : SomeBaseCollection<T> where T : Delegate I couldn't for the life of me accomplish this last night in .NET 3.5. I tried using `delegate, Delegate, Action<T> and Func<T, T>` It seems to me that this should be allowable in some way. I'm trying to implement my own EventQueue. I ended up just doing this [primitive approximation mind you].. internal delegate void DWork(); class EventQueue { private Queue<DWork> eventq; } But then I loose the ability to reuse the same definition for different types of functions. Thoughts?
0
[ 2, 272, 5910, 12733, 18, 7290, 1655, 11300, 1001, 16747, 800, 3726, 3726, 25, 32, 938, 20, 9267, 21, 718, 19, 272, 5910, 145, 30, 718, 12733, 15015, 872, 1, 38, 1, 13, 45, 109, 8436, 15015, 872, 1, 38, 1, 113, 13, 38, 13, 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...
CIL stack exchange instruction === Is there CIL instruction to exchange the first two elements in the stack?
0
[ 2, 13, 12837, 7566, 1950, 7304, 800, 3726, 3726, 25, 80, 13, 12837, 7304, 20, 1950, 14, 64, 81, 2065, 19, 14, 7566, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to resolve incorrect "Ambiguous reference" from Resharper on class inheritance? === In my project I have a class that is inherited by many other classes. We'll call it ClassBase. public class ClassInheritFromBase : ClassBase When ClassBase is being inherited, Resharper throws an "Ambiguous reference" warning on the ClassBase, and anything inside the new class that inherited from ClassBase does not have Intellisense and gets warnings that it cannot find it. The project compiles and run fine. If I change the namespace ClassBase is in and then change the inheriting classes, they find it fine and Resharper has no problem, Intellisense works ... until it is compiled. After the compile it goes back to having the ambiguous reference warnings and everything else. Anybody seen this before and know how to fix? I saw an entry in JetBrains bug tracking for an issue just like this, but they closed it as unable to reproduce.
0
[ 2, 184, 20, 9854, 18867, 13, 7, 9150, 263, 9627, 2801, 7, 37, 302, 23646, 106, 27, 718, 13852, 60, 800, 3726, 3726, 19, 51, 669, 31, 57, 21, 718, 30, 25, 7179, 34, 151, 89, 2684, 9, 95, 22, 211, 645, 32, 718, 8436, 9, 317, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Index of Linq Error === If I have the following Linq code: context.Table1s.InsertOnSubmit(t); context.Table1s.InsertOnSubmit(t2); context.Table1s.InsertOnSubmit(t3); context.SubmitChanges(); And I get a database error due to the 2nd insert, Linq throws an exception that there was an error. But, is there a way to find out that it was the 2nd insert that had the problem and not the 1st or 3rd?
0
[ 2, 4348, 16, 6294, 1251, 7019, 800, 3726, 3726, 100, 31, 57, 14, 249, 6294, 1251, 1797, 45, 4141, 9, 5924, 165, 18, 9, 108, 18, 10931, 7563, 5130, 5, 38, 6, 73, 4141, 9, 5924, 165, 18, 9, 108, 18, 10931, 7563, 5130, 5, 38, 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...
Using a tristate parameter in a stored procedure === What is the correct way to do this? For example, how would I change a stored procedure with this signature: CREATE PROCEDURE dbo.MyProcedure @Param BIT = NULL AS SELECT * FROM dbo.SomeTable T WHERE T.SomeColumn = @Param So that giving @Param with a value of 1 or 0 performs the filter, but not specifying it or passing NULL performs no filtering? Thank you.
0
[ 2, 568, 21, 2286, 3859, 18906, 19, 21, 8214, 7004, 800, 3726, 3726, 98, 25, 14, 4456, 161, 20, 107, 48, 60, 26, 823, 15, 184, 83, 31, 753, 21, 8214, 7004, 29, 48, 7810, 45, 1600, 7004, 13, 43, 1192, 9, 915, 15617, 69, 4221, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Would you show things an Actor cannot do on a Use Case diagram? === On a Use Case diagram can you show things that an actor **cannot** do, for example because they won't have permissions to do it? Or is it just implied due to the fact that they won't have a line joining them to the particular use case?
0
[ 2, 83, 42, 298, 564, 40, 1574, 1967, 107, 27, 21, 275, 610, 14161, 60, 800, 3726, 3726, 27, 21, 275, 610, 14161, 92, 42, 298, 564, 30, 40, 1574, 13, 1409, 1245, 1270, 1409, 107, 15, 26, 823, 185, 59, 230, 22, 38, 57, 5572, 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...
NT AUTHORITY\NETWORK SERVICE issue when deploying on remote server SQL 2005 === I am getting a very non specific error when trying to connect to SQL server on remote server. I feel like I have made all the correct settings, allow TCP/IP, restarted the service, added rights to NT AUTHORITY\NETWORK SERVICE and other related users for the database. I can get to the aspx page, but as soon as I hit submit on the login I get: Exception information: Exception type: SqlException Exception message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Thank you for your help.
0
[ 2, 13, 2877, 1959, 1, 24106, 365, 1513, 76, 17617, 68, 27, 5388, 8128, 4444, 255, 812, 800, 3726, 3726, 31, 589, 1017, 21, 253, 538, 1903, 7019, 76, 749, 20, 6379, 20, 4444, 255, 8128, 27, 5388, 8128, 9, 31, 583, 101, 31, 57, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What relational database innovations have there been in the last 10 years === The SQL implementation of relational databases has been around in their current form for something like 25 years (since System R and Ingres). Even the main (loosely adhered to) standard is ANSI-92 (although there were later updates) is a good 15 years old. What innovations can you think of with SQL based databases in the last ten years or so. I am specifically excluding OLAP, Columnar and other non-relational (or at least non SQL) innovations. I also want to exclude 'application server' type features and bundling (like reporting tools) Although the basic approach has remained fairly static, I can think of: - Availability - Ability to handle larger sets of data - Ease of maintenance and configuration - Support for more advanced data types (blob, xml, unicode etc) Any others that you can think of?
0
[ 2, 98, 5827, 192, 6018, 18370, 57, 80, 74, 19, 14, 236, 332, 122, 800, 3726, 3726, 14, 4444, 255, 6123, 16, 5827, 192, 6018, 18, 63, 74, 140, 19, 66, 866, 505, 26, 301, 101, 771, 122, 13, 5, 7412, 329, 761, 17, 19, 6879, 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...
Using MFC, what's the easiest way to copy a file from one directory to another? === Should I create two CFile objects and copy one into the other character by character? Or is there something in the library that will do this for me?
0
[ 2, 568, 307, 7061, 15, 98, 22, 18, 14, 27237, 161, 20, 4344, 21, 3893, 37, 53, 16755, 20, 226, 60, 800, 3726, 3726, 378, 31, 1600, 81, 272, 16877, 3916, 17, 4344, 53, 77, 14, 89, 925, 34, 925, 60, 54, 25, 80, 301, 19, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
Winforms navigation bar control - like Explorer Address Bar === Can anyone recommend a .NET winforms control that offers similar functionality to the address bar in Windows Explorer, auto-completing file paths? I'm not too bothered about Vista-style breadcrumbs - quite happy with a simple XP-style textbox-only appearance, but I'd like it to offer auto-complete suggestions based on the file system.
0
[ 2, 628, 4190, 18, 8368, 748, 569, 13, 8, 101, 8520, 3218, 748, 800, 3726, 3726, 92, 1276, 12360, 21, 13, 9, 2328, 628, 4190, 18, 569, 30, 2486, 835, 18548, 20, 14, 3218, 748, 19, 1936, 8520, 15, 3108, 8, 11103, 1336, 68, 3893, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SD card write performance === I am writing a little application, which is writing jpeg images at a constant rate on a SD card. I choose an EXT3 filesystem, but the same behaviour was observed with an EXT2 filesystem. My writing loop looks like this : get_image() fwrite() fsync() Or like this : get_image() fopen() fwrite() fsync() fclose() I also display some timing statistics, and I can see my program is sometime blocked for several seconds. The average rate is still good, because if I keep the incoming images into a fifo, then I will write many image in a short period of time after such a stall. Do you know if it is a problem with the OS or if it is related to the SD card itself ? How could I move closer to realtime ? I don't need strong realtime, but being stalled for several seconds is not acceptable.
0
[ 2, 13, 18, 43, 2056, 2757, 956, 800, 3726, 3726, 31, 589, 1174, 21, 265, 3010, 15, 56, 25, 1174, 487, 20427, 3502, 35, 21, 3587, 1684, 27, 21, 13, 18, 43, 2056, 9, 31, 3538, 40, 1396, 38, 240, 3893, 10724, 15, 47, 14, 205, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual Studio 2005 quick file search === In Eclispe you can do Ctrl+Shit+R and a Window popup where you can write the name of the file (or just the beginning of it) and to press enter to go directly to the file. What is the equivalence in Visual Studio 2005? (Ctrl+Shift+F is not what I would like).
0
[ 2, 3458, 1120, 812, 2231, 3893, 2122, 800, 3726, 3726, 19, 6695, 3159, 1664, 42, 92, 107, 13, 4812, 6362, 2430, 13643, 2430, 139, 17, 21, 1463, 1675, 576, 113, 42, 92, 2757, 14, 204, 16, 14, 3893, 13, 5, 248, 114, 14, 997, 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...
Which Gant chart/Project management tool would you recommend for linux? === I need a Project managment tool that works in linux, and has Gant charts. 1. It doesn't have to be free, just not expensive. 2. I don't care how it stores the information I give it, as long as I can access it. 3. I must be able to **print** the Gant charts. 4. Must work in linux. With those requirements, what can you recommend? TheObserver asked a windows specific version of this question [here][1]. Thanks for the help everyone. [1]: http://stackoverflow.com/questions/151787/recommended-chartingreportingdashboard-tool
0
[ 2, 56, 7890, 38, 1795, 118, 21011, 1097, 5607, 83, 42, 12360, 26, 13024, 60, 800, 3726, 3726, 31, 376, 21, 669, 169, 3302, 1130, 5607, 30, 693, 19, 13024, 15, 17, 63, 7890, 38, 5158, 9, 137, 9, 32, 1437, 22, 38, 57, 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...
Attach Source Issue in Eclipse === In Eclipse (Ganymede) I'm debugging some code that uses Apache Commons HttpClient and would like to step into the HttpClient code. I've downloaded the source code and tried to attach it in the normal fashion (CTRL-click on the method name and use the Attach Source button). I've tried to attach both as external file and external folder with no success. I've attached source before with no issues and can currently step into Hibernate source code successfully. I've even tried editing the .classpath file directly to add sourcepath manually. Still no luck. Refreshing the project, doing a clean build, closing and re-opening Eclipse do not solve the issue. Frustratingly, Eclipse provides no error message; it just does not attach the source. Here are the entries in .claspath: <!-- Hibernate. Works --> <classpathentry kind="lib" path="/myEAP/EarContent/APP-INF/lib/hibernate.jar" sourcepath="D:/Data/Download/hibernate-3.2.2.ga/hibernate-3.2/src"/> <!-- Commons HttpClient. Will not attach --> <classpathentry kind="lib" path="/myEAP/EarContent/APP-INF/lib/commons-httpclient.jar" sourcepath="D:/Data/Download/commons-httpclient-3.1/src/java"/> I've tried changing the path to D:/Data/Download/commons-httpclient-3.1/src and that does not work either. The directory structure is: D Data Download commons-httpclient-3.1 src java org apache commons httpclient AutoCloseInputStream.java ... (and so forth)
0
[ 2, 19514, 1267, 1513, 19, 11652, 800, 3726, 3726, 19, 11652, 13, 5, 2342, 93, 4688, 62, 6, 31, 22, 79, 121, 16254, 2762, 109, 1797, 30, 2027, 17140, 8322, 7775, 150, 18513, 38, 17, 83, 101, 20, 1424, 77, 14, 7775, 150, 18513, 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...
Why are pipes considered dangerous to use? === Why are pipes considered dangerous to use? What can be done to avoid these security issues?
0
[ 2, 483, 50, 14104, 724, 3342, 20, 275, 60, 800, 3726, 3726, 483, 50, 14104, 724, 3342, 20, 275, 60, 98, 92, 44, 677, 20, 2658, 158, 1221, 1549, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
From String to Blob === I am trying to use concat\_ws inside a group\_concat command. With a query, which simplified looks like: SELECT item.title, GROUP_CONCAT( CONCAT_WS( ',', attachments.id, attachments.type, attachments.name ) ) as attachments FROM story AS item LEFT OUTER JOIN story_attachment AS attachments ON item.id = attachments.item_id GROUP BY item.id I get the attachments column as a Blob type. is it it possible to get it as a string instead of Blob?
0
[ 2, 37, 3724, 20, 334, 10904, 800, 3726, 3726, 31, 589, 749, 20, 275, 1065, 5782, 1, 10268, 572, 21, 214, 1, 1126, 5782, 1202, 9, 29, 21, 25597, 15, 56, 13, 11268, 1879, 101, 45, 5407, 9101, 9, 22235, 15, 214, 1, 1126, 5782, 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...
Can an html element have multiple ids? === I understand that an id must be unique within an HTML/XHTML page. My question is, for a given element, can I assign multiple ids to it? <div id="nested_element_123 task_123"></div> I realize I have an easy solution with simply using a class. I'm just curious about using ids in this manner.
0
[ 2, 92, 40, 13, 15895, 4520, 57, 1886, 13, 9178, 60, 800, 3726, 3726, 31, 1369, 30, 40, 4924, 491, 44, 2619, 363, 40, 13, 15895, 118, 396, 15895, 2478, 9, 51, 1301, 25, 15, 26, 21, 504, 4520, 15, 92, 31, 13952, 1886, 13, 9178, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 have an alias for the function name in lisp? === ...just like packages do. I use Emacs (maybe, it can offer some kind of solution). For example `(defun the-very-very-long-but-good-name () ...)` is not to useful later in code. But the name like `Fn-15` or the first letters abbreviation is not useful too. Is it possible either to have an alias like for packages or to access the documentation string while trying to recall the function's name? In other words, is it possible for functions to mix somehow self-documenting and short names?
0
[ 2, 25, 32, 938, 20, 57, 40, 15794, 26, 14, 1990, 204, 19, 2093, 3401, 60, 800, 3726, 3726, 13, 9, 9, 9, 2759, 101, 16875, 107, 9, 31, 275, 13, 62, 6893, 18, 13, 5, 5138, 15, 32, 92, 1994, 109, 825, 16, 4295, 6, 9, 26, 82...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I create Keyboard Shortcut Chords in my own Winforms Application === I want to create a component that allows us to have keyboard shortcut chords associated with an arbitrary command like the visual studio IDE does.
0
[ 2, 184, 107, 31, 1600, 8896, 502, 4118, 21430, 19, 51, 258, 628, 4190, 18, 3010, 800, 3726, 3726, 31, 259, 20, 1600, 21, 5912, 30, 2965, 182, 20, 57, 8896, 502, 4118, 21430, 1598, 29, 40, 17237, 1202, 101, 14, 3458, 1120, 13, 34...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What are the differences between pipes in Windows and Linux? === What are the differences between pipes in Windows and Linux?
0
[ 2, 98, 50, 14, 4921, 128, 14104, 19, 1936, 17, 13024, 60, 800, 3726, 3726, 98, 50, 14, 4921, 128, 14104, 19, 1936, 17, 13024, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Is Validation called before or after Coercion when setting a DependencyProperty value? === I created a simple class with a DependencyProperty. When setting the value, I observe that ValidateValueCallback is called before CoerceValueCallback. On [wpftutorial][1] and in other books, it is stated that coercion is called before validation. [1]: http://wpftutorial.net/How+does+a+DependencyProperty+resolve+its+value.htm
0
[ 2, 25, 27999, 227, 115, 54, 75, 326, 106, 10934, 76, 2697, 21, 26835, 10890, 106, 1084, 1923, 60, 800, 3726, 3726, 31, 679, 21, 1935, 718, 29, 21, 26835, 10890, 106, 1084, 9, 76, 2697, 14, 1923, 15, 31, 10503, 30, 7394, 1373, 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...
Java: How do I get the size of a java.sql.ResultSet? === Shouldn't this be a pretty straightforward operation? However, I there is no size() or length() method.
0
[ 2, 8247, 45, 184, 107, 31, 164, 14, 1072, 16, 21, 8247, 9, 18, 22402, 9, 29955, 3554, 60, 800, 3726, 3726, 5714, 22, 38, 48, 44, 21, 1772, 22262, 1453, 60, 207, 15, 31, 80, 25, 90, 1072, 5, 6, 54, 1476, 5, 6, 2109, 9, 3, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Firefox Links to local or network pages do not work === I have a .asp application where image files (.PDF) are stored in a directory (fed by a copier/scanner). The created filenames are stored in a database table, When a query is launched from the web page a link to the file is created. When clicked the image should be displayed. This functionality works 100% in Internet Explorer. No suck luck in Firefox (and I have some Firefox users) The created hyperlink looks like this File://Server/Scanner/XYZ.pdf The Firefox helps suggest the reason is this: Links to local or network pages do not work. As a security precaution, Firefox forbids sites on the Internet to link to files that are stored in your local computing environment. These files may include files on your computer, mapped network drives, and UNC network paths None of the suggestions for a workaround seem to work (or I am not understanding the steps to create the image display) Any Suggestions?
0
[ 2, 535, 18219, 6271, 20, 375, 54, 982, 4434, 107, 52, 170, 800, 3726, 3726, 31, 57, 21, 13, 9, 472, 306, 3010, 113, 1961, 6488, 13, 5, 9, 11124, 6, 50, 8214, 19, 21, 16755, 13, 5, 16777, 34, 21, 5326, 1944, 118, 18, 1245, 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...
Can php.ini settings be overridden in by a website using PHP + IIS6? === We have PHP 5.2.6 deployed to c:\php and in that folder there is the php.ini file. On Windows, can a website override these settings similar to the way that apache has .htaccess? e.g. DirectoryIndex index.php index.html <IfModule mod_php5.c> php_flag magic_quotes_gpc off php_flag register_globals off </IfModule> <IfModule mod_php4.c> php_flag magic_quotes_gpc off php_flag register_globals off </IfModule> Thanks in advance Kev
0
[ 2, 92, 13, 26120, 9, 2651, 12410, 44, 84, 15267, 19, 34, 21, 2271, 568, 13, 26120, 2754, 595, 18, 379, 60, 800, 3726, 3726, 95, 57, 13, 26120, 331, 9, 135, 9, 379, 6698, 20, 272, 45, 1, 26120, 17, 19, 30, 19294, 80, 25, 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...
Test to see if an image exists in C# === I am writing a diagnostic page for SiteScope and one area we need to test is if the connection to the file/media assets are accesible from the web server. One way I think I can do this is load the image via code behind and test to see if the IIS status message is 200. So basically I should be able to navigate to within the site to a folder like this: /media/1/image.jpg and see if it returns 200...if not throw exception. I am struggling to figure out how to write this code. Any help is greatly appreciated. Thanks
0
[ 2, 1289, 20, 196, 100, 40, 1961, 5636, 19, 272, 5910, 800, 3726, 3726, 31, 589, 1174, 21, 16458, 2478, 26, 689, 11555, 17, 53, 217, 95, 376, 20, 1289, 25, 100, 14, 2760, 20, 14, 3893, 118, 8260, 6223, 50, 7602, 160, 3426, 37, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Personal Code Library === So I assume I'm not the only one. I'm wondering if there are others out there who have compiled a personal code library. Something that you take from job to job that has examples of best practices, things you are proud of, or just common methods you see yourself using over and over. I just recently started my C# library. It already has quite a few small items. Common Regex validations, interfaces for exception handling, some type conversion overloads, enum wrappers, sql injection detection methods, and some common user controls with AJAX toolkit examples. I'm wondering what kind of things do you have in yours?
4
[ 2, 1319, 1797, 1248, 800, 3726, 3726, 86, 31, 7158, 31, 22, 79, 52, 14, 104, 53, 9, 31, 22, 79, 5712, 100, 80, 50, 654, 70, 80, 72, 57, 9316, 21, 1319, 1797, 1248, 9, 301, 30, 42, 247, 37, 1205, 20, 1205, 30, 63, 3770, 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...
How do you design a functional program? === From day 1 of my programming career, I started with object-oriented programming. However, I'm interested in learning other paradigms (something which I've said here on SO a number of times is a good thing, but I haven't had the time to do). I think I'm not only ready, but have the time, so I'll be starting functional programming with F#. However, I'm not sure how to structure much less design applications. I'm used to the one-class-per-file and class-noun/function-verb ideas in OO programming. How do you design and structure functional applications?
0
[ 2, 184, 107, 42, 704, 21, 7652, 625, 60, 800, 3726, 3726, 37, 208, 137, 16, 51, 3143, 545, 15, 31, 373, 29, 3095, 8, 6800, 3143, 9, 207, 15, 31, 22, 79, 3158, 19, 2477, 89, 20234, 18, 13, 5, 9099, 56, 31, 22, 195, 87, 235,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
In PHP, ensure current working directory is same as script is at, when using CLI === When calling php via cli, the current directory is NOT changed to the one of the script. All the scripts i have running in crontab run via the CLI, so this is an issue. I'm currently *fixing* the problem by doing a chdir() with the absolute path where the script is, but i REALLY dont like hardcoding paths into stuff like that. I'm looking for the most portable/reliable method for ensuring that the current working directory is the one where the script it is at.
0
[ 2, 19, 13, 26120, 15, 4062, 866, 638, 16755, 25, 205, 28, 3884, 25, 35, 15, 76, 568, 19391, 800, 3726, 3726, 76, 2555, 13, 26120, 1197, 19391, 15, 14, 866, 16755, 25, 52, 1015, 20, 14, 53, 16, 14, 3884, 9, 65, 14, 17505, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.NET Framework 2.0 SP2 === .NET Framework 3.5 SP1 installs the .NET Framework 2.0 SP2 and the .NET Framework 3.0 SP2 behind the scenes. These installation packages (especially .NET Framework 2.0 SP2) are not available directly from Microsoft. Is there a way to extract them from the .NET Framework 3.5 SP1 installation package?
0
[ 2, 13, 9, 2328, 6596, 172, 9, 387, 3782, 135, 800, 3726, 3726, 13, 9, 2328, 6596, 203, 9, 264, 3782, 165, 16146, 18, 14, 13, 9, 2328, 6596, 172, 9, 387, 3782, 135, 17, 14, 13, 9, 2328, 6596, 203, 9, 387, 3782, 135, 439, 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...
Is there a function in Python to print all the current properties and values of an object? === So what I'm looking for here is something like [PHP's print_r][1] function. This is so I can debug my scripts by seeing what's the state of the object in question. [1]: http://us2.php.net/print_r
0
[ 2, 25, 80, 21, 1990, 19, 20059, 20, 4793, 65, 14, 866, 3704, 17, 4070, 16, 40, 3095, 60, 800, 3726, 3726, 86, 98, 31, 22, 79, 699, 26, 235, 25, 301, 101, 636, 26120, 22, 18, 4793, 1, 139, 500, 2558, 165, 500, 1990, 9, 48, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
reference to static method in PHP? === In PHP, I am able to use a normal function as a variable without problem, but I haven't figured out how to use a static method. Am I just missing the right syntax, or is this not possible? function foo1($a,$b) { return $a/$b; } class Bar { static function foo2($a,$b) { return $a/$b; } public function UseReferences() { // WORKS FINE: $fn = foo1; print $fn(6,3); // DOES NOT WORK ... WHAT'S THE RIGHT WAY TO DO THIS? $fn = self::foo2; print $fn(6,2); } } (I am using PHP v5.2.6 -- does the answer change depending on version too?)
0
[ 2, 2801, 20, 12038, 2109, 19, 13, 26120, 60, 800, 3726, 3726, 19, 13, 26120, 15, 31, 589, 777, 20, 275, 21, 1826, 1990, 28, 21, 7612, 366, 1448, 15, 47, 31, 2933, 22, 38, 5700, 70, 184, 20, 275, 21, 12038, 2109, 9, 589, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I use DateTime.TryParse with a Nullable<DateTime>? === I want to use the DateTime.TryParse method to get the datetime value of a string into a Nullable<DateTime>. But when I try this: DateTime? d; bool success = DateTime.TryParse("some date text", out (DateTime)d); the compiler tells me "'out' argument is not classified as a variable". Not sure what I need to do here. I've also tried: out (DateTime)d.Value and that doesn't work either. Any ideas?
0
[ 2, 184, 107, 31, 275, 1231, 891, 9, 5840, 3574, 870, 29, 21, 16203, 579, 1, 8209, 891, 1, 60, 800, 3726, 3726, 31, 259, 20, 275, 14, 1231, 891, 9, 5840, 3574, 870, 2109, 20, 164, 14, 1231, 891, 1923, 16, 21, 3724, 77, 21, 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...
MOSS 2007 -- Invalid URL Exception SPSite.OpenWeb(...) === This may seem a bit trivial, but I have not been able to figure it out. I am opening up a SPSite and then trying to open up a SPWeb under that SPSite. This is working fine on the VPC, which has the same Site Collection/Site hierarchy, but on production, I get an exception telling me that the URL is invalid when I try the SPSite.OpenWeb(webUrl);. I have verified that the URL’s are correct. The Code: try { SPSite scheduleSiteCol = new SPSite(branchScheduleURL); lblError.Text += Environment.NewLine + "Site Collection URL: " + scheduleSiteCol.Url; SPWeb scheduleWeb = scheduleSiteCol.OpenWeb(branchScheduleURL.Replace(scheduleSiteCol.Url, "")); //<--- Throws error on this line SPList scheduleList = scheduleWeb.GetList(branchScheduleURL + "/lists/" + SPContext.Current.List.Title); return scheduleList.GetItemById(int.Parse(testID)); } catch (System.Exception ex) { lblError.Text += Environment.NewLine + ex.ToString(); return null; } Note:<br> branchScheduleURL is actually the whole URL that includes the URL of the Web as well. The output + exception: > Site Collection URL: https://ourSite.com/mocc <br>System.ArgumentException: Invalid URL: /internal/scheduletool. at Microsoft.SharePoint.SPSite.OpenWeb(String strUrl, Boolean requireExactUrl) at Microsoft.SharePoint.SPSite.OpenWeb(String strUrl) at MOCCBranchScheduleListWeb.MOCCBranchScheduleListV3.GetConflictListItem(String branchScheduleURL, String testID)System.NullReferenceException: Object reference not set to an instance of an object. at MOCCBranchScheduleListWeb.MOCCBranchScheduleListV3.CheckForConflicts(String[] cfcFlags1, DateTime startTime, DateTime endTime, String[] cfcFlags2) Note:<br>https://ourSite.com/mocc/internal/scheduletool is the SPWeb I am trying to open. Am I missing something obvious? Any help would be greatly appreciated. Thanks.
0
[ 2, 8188, 624, 13, 8, 8, 16671, 287, 6362, 5391, 3782, 9097, 9, 10157, 14113, 5, 9, 9, 9, 6, 800, 3726, 3726, 48, 123, 2260, 21, 1142, 13, 19712, 15, 47, 31, 57, 52, 74, 777, 20, 1465, 32, 70, 9, 31, 589, 1214, 71, 21, 3782...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 load and save an image from an SQL Server database using GDI+ and C++? === I need specifically to load a JPG image that was saved as a blob. GDI+ makes it very easy to retrieve images from files but not from databases...
0
[ 2, 184, 107, 31, 6305, 17, 2079, 40, 1961, 37, 40, 4444, 255, 8128, 6018, 568, 489, 1115, 2430, 17, 272, 20512, 60, 800, 3726, 3726, 31, 376, 3524, 20, 6305, 21, 487, 9623, 1961, 30, 23, 4377, 28, 21, 334, 10904, 9, 489, 1115, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
LIKE in Linq to SQL === I have a method that needs to accept an array of country names, and return a list of records that match one of those country names. I'm trying this Public Shared Function GetConcessions(ByVal Countries As String()) As IEnumerable Dim CountryList As String = Utility.JoinArray(Countries) ' turns string array into comma-separated string Return (From t In New Db().Concessions _ Where CountryList Like t.Country _ Select t.ConcessionID, t.Title, t.Country) End Function but I get this error *Only arguments that can be evaluated on the client are supported for the LIKE method In plain SQL, this would be simple: Select ConcessionID,Title from Concessions c where @CountryList like '%' + c.Country + '%' How can I achieve this result in Linq to SQL?
0
[ 2, 101, 19, 6294, 1251, 20, 4444, 255, 800, 3726, 3726, 31, 57, 21, 2109, 30, 2274, 20, 3440, 40, 7718, 16, 475, 1817, 15, 17, 788, 21, 968, 16, 742, 30, 730, 53, 16, 273, 475, 1817, 9, 31, 22, 79, 749, 48, 317, 2592, 1990, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
actionscript 2 - xml.load get 302 redirect === I am working on an Actionscript 2 project - trying to use the XML object to find a url which is returned as a 302 redirect. Is there a way to do this in actionscript 2? code: var urlone:XML = new XML(); urlone.load("http://mydomain.com/file.py"); urlone.onLoad = function (success) { trace("I want to print the 302 redirect url here, how do I access it?"); };
0
[ 2, 1028, 8741, 172, 13, 8, 23504, 9, 8294, 164, 13, 22863, 302, 14706, 800, 3726, 3726, 31, 589, 638, 27, 40, 1028, 8741, 172, 669, 13, 8, 749, 20, 275, 14, 23504, 3095, 20, 477, 21, 287, 6362, 56, 25, 587, 28, 21, 13, 22863, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 get a SVN checkout using a Public/Private key pair? === I have to check some code and run it. I have the URL: svn+ssh://myuser@www.myclient.com/home/svn/project/trunk I have a file with their private key. What do I do to get this code?
0
[ 2, 184, 107, 31, 164, 21, 13, 18, 16578, 2631, 1320, 568, 21, 317, 118, 20181, 1246, 2146, 60, 800, 3726, 3726, 31, 57, 20, 2631, 109, 1797, 17, 485, 32, 9, 31, 57, 14, 287, 6362, 45, 13, 18, 16578, 2430, 18, 1635, 6903, 915, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 name of this data structure or technique of using relative difference between sequence members === Let's say I have a sequence of values (e.g., 3, 5, 8, 12, 15) and I want to occasionally decrease all of them by a certain value. If I store them as the sequence (0, 2, 3, 4, 3) and keep a variable as a base of 3, I now only have to change the base (and check the first items) whenever I want to decrease them instead of actually going over all the values. I know there's an official term for this, but when I literally translate from my native language to English it doesn't come out right.
0
[ 2, 98, 25, 14, 204, 16, 48, 1054, 1411, 54, 4873, 16, 568, 4543, 2841, 128, 4030, 443, 800, 3726, 3726, 408, 22, 18, 395, 31, 57, 21, 4030, 16, 4070, 13, 5, 62, 9, 263, 9, 15, 203, 15, 331, 15, 469, 15, 390, 15, 357, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to implement layers in GDI+? === My idea would be to draw several Graphics objects on memory and combine them when drawing the image. But I haven't got a precise idea of how to do that. Shall I use GraphicsContainer's? Or save the objects as Metafile's? (these are temporary objects, I would like to keep them on memory)
0
[ 2, 25, 80, 21, 161, 20, 8713, 9124, 19, 489, 1115, 2430, 60, 800, 3726, 3726, 51, 882, 83, 44, 20, 2003, 238, 8351, 3916, 27, 1912, 17, 12287, 105, 76, 3533, 14, 1961, 9, 47, 31, 2933, 22, 38, 330, 21, 11114, 882, 16, 184, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to read the Rails session secret? === I would like to access the Rails session secret programmatically (I am using it to generate a sign-on token). Here's what I've come up with: ActionController::Base.session.first[:secret] This returns the session secret. However, every time you call ActionController::Base.session it adds another entry to an array so you end up with something like this: [{:session_key=>"_new_app_session", :secret=>"totally-secret-you-guys"}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}] This strikes me as being no good. Is there a better way to access the session secret?
0
[ 2, 98, 25, 14, 246, 161, 20, 1302, 14, 2240, 18, 3723, 1699, 60, 800, 3726, 3726, 31, 83, 101, 20, 1381, 14, 2240, 18, 3723, 1699, 625, 6732, 1326, 13, 5, 49, 589, 568, 32, 20, 7920, 21, 1676, 8, 218, 20, 2853, 6, 9, 235, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Are there caveats to dynamicly creating a form with javascript? === I have to do a cross site POST (with a redirection, so not using a XMLHTTPRequest), and the base platform is ASP.NET. I don't want to POST all of the controls in the ASP.NET FORM to this other site, so I was considering dynamicly creating a new form element using javascript and just posting that. Has anyone tried this trick? Is there any caveats?
0
[ 2, 50, 80, 3542, 721, 18, 20, 7782, 102, 2936, 21, 505, 29, 8247, 8741, 60, 800, 3726, 3726, 31, 57, 20, 107, 21, 919, 689, 678, 13, 5, 1410, 21, 302, 14706, 872, 15, 86, 52, 568, 21, 23504, 21127, 99, 10351, 6, 15, 17, 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...
What's the Linq to SQL equivalent to TOP? === How do I do this Select top 10 Foo from MyTable in Linq to SQL?
0
[ 2, 98, 22, 18, 14, 6294, 1251, 20, 4444, 255, 4602, 20, 371, 60, 800, 3726, 3726, 184, 107, 31, 107, 48, 5407, 371, 332, 4310, 111, 37, 51, 5924, 19, 6294, 1251, 20, 4444, 255, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 does one tell if an IDisposable object reference is disposed? === Is there a method, or some other light-weight way, to check if a reference is to a disposed object? P.S. - This is just a curiousity (sleep well, not in production code). Yes, I know I can catch the `ObjectDisposedException` upon trying to access a member of the object.
0
[ 2, 184, 630, 53, 494, 100, 40, 13, 19405, 12551, 579, 3095, 2801, 25, 17913, 43, 60, 800, 3726, 3726, 25, 80, 21, 2109, 15, 54, 109, 89, 471, 8, 8696, 161, 15, 20, 2631, 100, 21, 2801, 25, 20, 21, 17913, 43, 3095, 60, 351, 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...
NHibernate Criteria: concatenating two columns with an IN Expression === This is the SQL that I want to accomplish: WHERE domain_nm + '\' + group_nm in ('DOMAINNAME\USERNAME1','DOMAINNAME2\USERNAME2') I can't for the life of me find an appropriate Expression for this. Thanks!
0
[ 2, 12109, 15191, 8820, 9157, 45, 1065, 793, 1316, 1880, 81, 7498, 29, 40, 19, 1803, 800, 3726, 3726, 48, 25, 14, 4444, 255, 30, 31, 259, 20, 14570, 45, 113, 4603, 1, 103, 79, 2754, 13, 22, 1, 22, 2754, 214, 1, 103, 79, 19, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the most efficient/elegant way to parse a flat table into a tree? === Assume you have a flat table that stores an ordered tree hierarchy: Id Name ParentId Order 1 'Node 1' 0 10 2 'Node 1.1' 1 10 3 'Node 2' 0 20 4 'Node 1.1.1' 2 10 5 'Node 2.1' 3 10 6 'Node 1.2' 1 20 What minimalistic approach would you use to output that to HTML (or text, for that matter) as a correctly ordered, correctly intended tree? Assume further you only have basic data structures (arrays and hashmaps), no fancy objects with parent/children references, no ORM, no framework, just your two hands. The result set can be accessed randomly. Pseudo code or plain English is okay, this is purely a conceptional question. Bonus question: Is there a fundamentally better way to store a tree structure like this in a RDBMS?
0
[ 2, 98, 25, 14, 127, 8243, 118, 532, 9652, 38, 161, 20, 2017, 870, 21, 1844, 859, 77, 21, 1541, 60, 800, 3726, 3726, 7158, 42, 57, 21, 1844, 859, 30, 4134, 40, 1905, 1541, 14417, 45, 4924, 204, 4766, 1340, 389, 137, 13, 22, 251...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
table-based forms? === Looking for sites which offer templates for creating styled table-based web page forms. Similar to css-based forms at: http://www.smashingmagazine.com/2006/11/11/css-based-forms-modern-solutions/ (please no css is better than tables discussions)
0
[ 2, 859, 8, 1281, 1997, 60, 800, 3726, 3726, 699, 26, 3259, 56, 1994, 22894, 18, 26, 2936, 1034, 43, 859, 8, 1281, 2741, 2478, 1997, 9, 835, 20, 272, 18, 18, 8, 1281, 1997, 35, 45, 7775, 6903, 6483, 9, 18, 21168, 68, 27605, 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 define a property on a WPF user control is required? === When creating a WPF user control, is it possible to make a property required via an attribute or other mechanism?
0
[ 2, 25, 32, 938, 20, 9267, 21, 1354, 27, 21, 619, 7721, 4155, 569, 25, 1390, 60, 800, 3726, 3726, 76, 2936, 21, 619, 7721, 4155, 569, 15, 25, 32, 938, 20, 233, 21, 1354, 1390, 1197, 40, 35, 14755, 54, 89, 6534, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Why does declaring content as a string cause WinHttp not send HTTP content in Excel VBA? === I have an Excel VBA macro which does the equivalent of the following HTTP POST which works successfully: Set WebClient = CreateObject("WinHttp.WinHttpRequest.5.1") ' ... Configure WebClient for a POST request RequestBody = "<request>" WebClient.send RequestBody Previously, I had explicitly set the type of RequestBody as a String as in the following: Set WebClient = CreateObject("WinHttp.WinHttpRequest.5.1") ' ... Configure WebClient for a POST request Dim RequestBody As String RequestBody = "<request>" WebClient.send RequestBody This appeared to work correctly except that the server received no request content. On debugging through both versions a watch on RequestBody described its type as 'Variant/String' and the content was correct. Why does the addition of a type cause this issue?
0
[ 2, 483, 630, 15594, 2331, 28, 21, 3724, 1679, 628, 21127, 52, 2660, 7775, 2331, 19, 20700, 566, 969, 60, 800, 3726, 3726, 31, 57, 40, 20700, 566, 969, 9069, 56, 630, 14, 4602, 16, 14, 249, 7775, 678, 56, 693, 3673, 45, 309, 2741...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Issue with database connection from sharepoint workflow with integrated security options === Good morning everyone, I'm running into an issue using a SharePoint workflow project (C#, VS 2008) and connecting to a database. Here is my database connection string: Data Source=DBSERVER;Initial Catalog=DBNAME;Integrated Security=True; When I attempt to run the following code I get the following error ... SqlConnection dbEngine = new SqlConnection(Constants.DBCONNECTION_STRING); dbEngine.Open(); **"Login failed for user 'DOMAIN\MACHINE_NAME$'"** What I need it to do is pass through the logged in user's credentials. I've got impersonation turned on but it doesn't seem to be passing through. Any suggestions would be very much appreciated. Thank you in advance for any advice, Scott Vercuski
0
[ 2, 1513, 29, 6018, 2760, 37, 1891, 3132, 170, 9990, 29, 5547, 1221, 6368, 800, 3726, 3726, 254, 959, 1266, 15, 31, 22, 79, 946, 77, 40, 1513, 568, 21, 1891, 3132, 170, 9990, 669, 13, 5, 150, 5910, 15, 4611, 570, 6, 17, 6440, 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...
Best way to parse command line arguments in bash === Say I have a script that gets called with this line: ./myscript -vfd ./foo/bar/someFile -o /fizz/someOtherFile or this one: ./myscript -v -f -d -o /fizz/someOtherFile ./foo/bar/someFile What's the accepted way of parsing this such that in both cases (or some combination of the two) $v $f $d will all return true and $outFile will be equal to "/fizz/someOtherFile"?
0
[ 2, 246, 161, 20, 2017, 870, 1202, 293, 10553, 19, 13158, 800, 3726, 3726, 395, 31, 57, 21, 3884, 30, 3049, 227, 29, 48, 293, 45, 13, 9, 118, 915, 8741, 13, 8, 21441, 43, 13, 9, 118, 4120, 111, 118, 1850, 118, 3220, 16877, 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...
Where to put extra functionality for the database layer (Linq-to-SQL) === What would be the best method to implement extra functionality in a database layer that uses Linq-to-SQL? Currently I'm looking at implementing functions for adding information based on presets and similar tasks? Inserts, updates and deletes requires access to the DataContext and in the Table classes you don't have access to the context. I've seen solutions that uses Singletons but it seems like a hack and I wonder if anyone else has run into this problem and what your solutions were? Is there a better way all together to implement similar functionality. The reason for me looking to add this functionality to the database layer is that I have several applications that all use the same database objects and I want to be able to use these functions from all applications so I don't have to rewrite a lot of code.
0
[ 2, 113, 20, 442, 2230, 18548, 26, 14, 6018, 5385, 13, 5, 1226, 1251, 8, 262, 8, 18, 22402, 6, 800, 3726, 3726, 98, 83, 44, 14, 246, 2109, 20, 8713, 2230, 18548, 19, 21, 6018, 5385, 30, 2027, 6294, 1251, 8, 262, 8, 18, 22402, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Calculating a date around working days/hours? === I am currently working on a website to track projects. In it, it is possible to create Service Level Agreements (SLAs). These are configurable with days of the week that a project can be worked on and also the timespan on each of those days. Eg. on Monday it might be between 08:00 and 16:00 and then on friday from 10:00 to 14:00. They are also configured with a deadline time depending on priority. Eg. a project created with the "Low" priority has a deadline time of two weeks, and a project with "High" priority has a deadline of four hours. The problem I'm having is calculating the deadline AROUND the hours described earlier. Say I create a project on Monday at 14:00 with a "High" priority. That means I have four hours for this project. But because of the working hours, I have two hours on monday (untill 16:00) and then another two hours on Friday. That means the Deadline must be set for Friday at 12:00. I've spent quite some time googling this, and I can find quite a few examples of finding out how many working hours there are between a given start end ending date. I just can't figure out how to convert it into FINDING the ending datetime, given a starting time and an amount of time untill the deadline. The day/timespans are stored in an sql database in the format: Day(Eg. 1 for Monday) StartHour EndHour The StartHour/EndHour are saved as DateTimes, but of course only the time part is important. The way I figure it is, I have to somehow iterate through these times and do some datetime calculations. I just can't quite figure out what those calculations should be, what the best way is. I found [this Question][1] here on the site as I was writing this. It is sort of what I want and I'm playing with it right now, but I'm still lost on how exactly to make it work around my dynamic work days/hours. [1]: http://stackoverflow.com/questions/5260/what-is-the-best-way-to-wrap-time-around-the-work-day
0
[ 2, 22937, 21, 1231, 140, 638, 509, 118, 4754, 18, 60, 800, 3726, 3726, 31, 589, 871, 638, 27, 21, 2271, 20, 792, 2314, 9, 19, 32, 15, 32, 25, 938, 20, 1600, 365, 662, 12267, 13, 5, 18, 4830, 6, 9, 158, 50, 1065, 13549, 579, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 log an exception with trace back using the python logging framework? === Using something like this: <pre><code> try: #Something... except BaseException, excep: logger = logging.getLogger("componet") logger.warning("something raised an exception: " + excep) </code></pre>
0
[ 2, 184, 107, 31, 6738, 40, 5391, 29, 5565, 97, 568, 14, 20059, 13, 13919, 6596, 60, 800, 3726, 3726, 568, 301, 101, 48, 45, 13, 1, 3515, 1, 9375, 1, 1131, 45, 6926, 9099, 9, 9, 9, 1613, 1000, 10066, 872, 15, 1396, 20626, 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...
Asp.Net Static method to refresh page === I have a page that is hitting a webservice every 5 seconds to update the information on the page. I'm using the DynamicPopulateExtender from the Ajax Control Toolkit to just populate a panel with some text. What I was wanting to do, is if a certain condition is met, to refresh the page completely. Am I going to be able to do this in the current method that I have? here's my current stuff: ---------- ASP.NET <cc1:DynamicPopulateExtender ID="DynamicPopulateExtender1" runat="server" ClearContentsDuringUpdate="true" TargetControlID="panelQueue" BehaviorID="dp1" ServiceMethod="GetQueueTable" UpdatingCssClass="dynamicPopulate_Updating" /> JAVA Sys.Application.add_load(function(){updateQueue();}); function updateQueue() { var queueShown = document.getElementById('<%= hiddenFieldQueueShown.ClientID %>').value; if(queueShown == 1) { var behavior = $find('dp1'); if (behavior) { behavior.populate(); setTimeout('updateQueue()', 5000); } } } SERVER (C#) [System.Web.Services.WebMethod] [System.Web.Script.Services.ScriptMethod] public static string GetQueueTable() { System.Text.StringBuilder builder = new System.Text.StringBuilder(); try { // do stuff } catch (Exception ex) { // do stuff } return builder.ToString(); }
0
[ 2, 28, 306, 9, 2328, 12038, 2109, 20, 24905, 2478, 800, 3726, 3726, 31, 57, 21, 2478, 30, 25, 6687, 21, 2741, 11449, 352, 331, 2582, 20, 11100, 14, 676, 27, 14, 2478, 9, 31, 22, 79, 568, 14, 7782, 6057, 12383, 1706, 38, 13630, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Bash: How _best_ to include other scripts? === The way you would normally include a script is with "source" eg: main.sh: #!/bin/bash source incl.sh echo "The main script" incl.sh: echo "The included script" The output of executing "./main.sh" is: The included script The main script ... Now, if you attempt to execute that shell script from another location, it can't find the include unless it's in your path. What's a good way to ensure that your script can find the include script, especially if for instance, the script needs to be portable?
0
[ 2, 13158, 45, 184, 13, 1, 4936, 1, 20, 468, 89, 17505, 60, 800, 3726, 3726, 14, 161, 42, 83, 4147, 468, 21, 3884, 25, 29, 13, 7, 12097, 7, 12369, 45, 407, 9, 1635, 45, 6926, 187, 118, 4772, 118, 969, 1635, 1267, 19, 5316, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to write to the console in a GUI application === Background: We develop win32 applications, and use the "Thompson Toolkit" on windows to give us a unix-like shell that we use as our command-line. We have a GUI program (with a WinMain and message loop) that we want to write to the console, but printf and so on don't work, even when we launch the program from the console. How can we write to the console from a GUI program? We need to print text there so that an automated build system can display error messages and so on. Thanks.
0
[ 2, 184, 20, 2757, 20, 14, 8650, 19, 21, 9457, 3010, 800, 3726, 3726, 2395, 45, 95, 2803, 628, 3125, 3767, 15, 17, 275, 14, 13, 7, 11927, 2554, 528, 5607, 13703, 7, 27, 1936, 20, 590, 182, 21, 22540, 8, 1403, 3593, 30, 95, 275,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Application window sent behind other windows on closing different thread (C#) === I'm writing a Windows Forms Application in C#.NET On startup, the application displays a splash screen which is running in a separate thread. Whilst the splash screen is showing, the main application is initialising. Once the main application has finished initialising, the main form of the application is displayed, and the splash screen still shows over the top. Everything so far is as expected. Then, the Splash screen is closed, which causes that thread to exit. For some reason, at the point, the main application windows gets sent behind all other open Windows, notably the Windows Explorer window where you clicked the .exe file to run the application in the first place! What could be causing the windows to suddenly jump "behind" like this?
0
[ 2, 3010, 1463, 795, 439, 89, 1936, 27, 4239, 421, 9322, 13, 5, 150, 5910, 6, 800, 3726, 3726, 31, 22, 79, 1174, 21, 1936, 1997, 3010, 19, 272, 5910, 9, 2328, 27, 20205, 15, 14, 3010, 9412, 21, 13873, 2324, 56, 25, 946, 19, 21,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
In the bash script how do I know the script file name? === Sorry for nOOb question, but:<br> How can I determine the name of the bash script file inside the script itself?<br> Like if my script is in file runme.sh, than how would I make it to display "You are running runme.sh" message without hardcodding that?<br> <br> Thanks,<br>
0
[ 2, 19, 14, 13158, 3884, 184, 107, 31, 143, 14, 3884, 3893, 204, 60, 800, 3726, 3726, 1875, 26, 90, 4995, 1301, 15, 47, 45, 1, 5145, 1, 184, 92, 31, 3746, 14, 204, 16, 14, 13158, 3884, 3893, 572, 14, 3884, 1145, 60, 1, 5145, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Simple WPF sample causes uncontrolled memory growth === I have boiled down an issue I'm seeing in one of my applications to an incredibly simple reproduction sample. I need to know if there's something amiss or something I'm missing. Anyway, below is the code. The behavior is that the code runs and steadily grows in memory until it crashes with an OutOfMemoryException. That takes a while, but the behavior is that objects are being allocated and are not being garbage collected. I've taken memory dumps and ran !gcroot on some things as well as used ANTS to figure out what the problem is, but I've been at it for a while and need some new eyes. This reproduction sample is a simple console application that creates a Canvas and adds a Line to it. It does this continually. This is all the code does. It sleeps every now and again to ensure that the CPU is not so taxed that your system is unresponsive (and to ensure there's no weirdness with the GC not being able to run). Anyone have any thoughts? I've tried this with .NET 3.0 only, .NET 3.5 and also .NET 3.5 SP1 and the same behavior occurred in all three environments. Also note that I've put this code in a WPF application project as well and triggered the code in a button click and it occurs there too. <pre> using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Controls; using System.Windows.Shapes; using System.Windows; namespace SimplestReproSample { class Program { [STAThread] static void Main(string[] args) { long count = 0; while (true) { if (count++ % 100 == 0) { // sleep for a while to ensure we aren't using up the whole CPU System.Threading.Thread.Sleep(50); } BuildCanvas(); } } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] private static void BuildCanvas() { Canvas c = new Canvas(); Line line = new Line(); line.X1 = 1; line.Y1 = 1; line.X2 = 100; line.Y2 = 100; line.Width = 100; c.Children.Add(line); c.Measure(new Size(300, 300)); c.Arrange(new Rect(0, 0, 300, 300)); } } } </pre>
0
[ 2, 1935, 619, 7721, 5717, 4047, 367, 12742, 1912, 2232, 800, 3726, 3726, 31, 57, 20898, 125, 40, 1513, 31, 22, 79, 2078, 19, 53, 16, 51, 3767, 20, 40, 13003, 1935, 14776, 5717, 9, 31, 376, 20, 143, 100, 80, 22, 18, 301, 21, 72...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way in .NET to have a method called automatically after another method has been invoked but before it is entered === What I am looking for is a way to call a method after another method has been invoked but before it is entered. Example: public class Test { public void Tracer ( ... ) { } public int SomeFunction( string str ) { return 0; } public void TestFun() { SomeFunction( "" ); } } In the example above I would like to have Tracer() called after SomeFunction() has been invoked by TestFun() but before SomeFunction() is entered. I'd also like to get reflection data on SomeFunction().
0
[ 2, 25, 80, 21, 161, 19, 13, 9, 2328, 20, 57, 21, 2109, 227, 7499, 75, 226, 2109, 63, 74, 26252, 47, 115, 32, 25, 1297, 800, 3726, 3726, 98, 31, 589, 699, 26, 25, 21, 161, 20, 645, 21, 2109, 75, 226, 2109, 63, 74, 26252, 47...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Pylons with Elixir === I would like to use Pylons with Elixir, however, I am not sure what is the best way to get about doing this. There are several blog posts ([cleverdevil][1], [beachcoder][2], [adam hoscilo][3]) and even an [entire new framework][4] about how to go about doing this; however, I am not certain about the differences between them. Which one is the best to use? Am I going to run into issues using one over the other? I would prefer not to have to use SQLAlchemy directly because of its verbosity and repetitiveness. [1]: http://cleverdevil.org/computing/68/ "cleverdevil's technique" [2]: http://beachcoder.wordpress.com/2007/05/11/using-elixir-with-pylons/ "beachcoder's technique" [3]: http://hoscilo.pypla.net/2007/03/19/sqlalchemy-elixir-and-pylons-round-one/ "adam hoscilo's technique" [4]: http://code.google.com/p/tesla-pylons-elixir/ "tesla"
0
[ 2, 29262, 18, 29, 931, 4028, 1523, 800, 3726, 3726, 31, 83, 101, 20, 275, 29262, 18, 29, 931, 4028, 1523, 15, 207, 15, 31, 589, 52, 562, 98, 25, 14, 246, 161, 20, 164, 88, 845, 48, 9, 80, 50, 238, 8146, 9868, 13, 5, 2558, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 grab AD credentials from client machine in a web application. === Is it possible to grab activedirectory credentials for the user on a client machine from within a web application?
0
[ 2, 184, 20, 4931, 21, 43, 5059, 43, 10107, 18, 37, 6819, 1940, 19, 21, 2741, 3010, 9, 800, 3726, 3726, 25, 32, 938, 20, 4931, 1348, 10197, 93, 5059, 43, 10107, 18, 26, 14, 4155, 27, 21, 6819, 1940, 37, 363, 21, 2741, 3010, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I notify parent when child is saved in a foreign key relationship? === I have the following two models: class Activity(models.Model): name = models.CharField(max_length=50, help_text='Some help.') entity = models.ForeignKey(CancellationEntity) ... class Cancellation(models.Model): activity = models.ForeignKey(Activity) date = models.DateField(default=datetime.now().date()) description = models.CharField(max_length=250) ... I would like the Activity model to be aware when a Cancellation related to it is saved (both inserted or updated). What is the best way to go about this? Thanks in advance.
0
[ 2, 184, 107, 31, 52, 8612, 4766, 76, 850, 25, 4377, 19, 21, 1228, 1246, 1429, 60, 800, 3726, 3726, 31, 57, 14, 249, 81, 2761, 45, 718, 2358, 5, 13998, 18, 9, 13998, 6, 45, 204, 800, 2761, 9, 5433, 1109, 5, 8304, 1, 6325, 372...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Books for learning the R language === I'm looking for resources to start exploring the R language (as was recommended in my question on [Statistical Tools][1]). I know there are some suggestions for basic online tutorials in [this thread][2], but I'd like something a little bit more extensive. Any suggestions for good textbook like references, either online and in dead-tree form? [1]: http://stackoverflow.com/questions/189237/statistical-tools-for-programmers [2]: http://stackoverflow.com/questions/72860/understandable-documentation-about-r
4
[ 2, 964, 26, 2477, 14, 761, 816, 800, 3726, 3726, 31, 22, 79, 699, 26, 2566, 20, 799, 11748, 14, 761, 816, 13, 5, 472, 23, 5773, 19, 51, 1301, 27, 636, 29380, 4272, 4672, 500, 2558, 165, 500, 6, 9, 31, 143, 80, 50, 109, 18389...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Force Garbage Collection in AS3? === Is it possible to programmatically force a full garbage collection run in ActionScript 3.0? Let's say I've created a bunch of Display objects with eventListeners and some of the DO's have been removed, some of the eventListeners have been triggered and removed etc... Is there a way to force garbage collection to run and collect everything that is available to be collected?
0
[ 2, 558, 15024, 1206, 19, 28, 240, 60, 800, 3726, 3726, 25, 32, 938, 20, 625, 6732, 1326, 558, 21, 503, 15024, 1206, 485, 19, 1028, 8741, 203, 9, 387, 60, 408, 22, 18, 395, 31, 22, 195, 679, 21, 7653, 16, 3042, 3916, 29, 807, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Select XML nodes as rows === I am selecting from a table that has an XML column using T-SQL. I would like to select a certain type of node and have a row created for each one. For instance, suppose I am selecting from a _people_ table. This table has an XML column for _addresses_. The XML is formated similar to the following: <address> <street>Street 1</street> <city>City 1</city> <state>State 1</state> <zipcode>Zip Code 1</zipcode> </address> <address> <street>Street 2</street> <city>City 2</city> <state>State 2</state> <zipcode>Zip Code 2</zipcode> </address> How can I get results like this: **Name**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**City**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**State** Joe Baker&nbsp;&nbsp;&nbsp;Seattle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WA Joe Baker&nbsp;&nbsp;&nbsp;Tacoma&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WA Fred Jones&nbsp;&nbsp;Vancouver&nbsp;BC
0
[ 2, 5407, 23504, 16272, 28, 11295, 800, 3726, 3726, 31, 589, 20764, 37, 21, 859, 30, 63, 40, 23504, 4698, 568, 13, 38, 8, 18, 22402, 9, 31, 83, 101, 20, 5407, 21, 1200, 1001, 16, 15421, 17, 57, 21, 3131, 679, 26, 206, 53, 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...
Good explanation/documentation on ftrace === I just read that the 2.6.27 kernel has a new module called ftrace which sounds a lot like suns dtrace utility. I'm having some trouble googling for documentation, I was wondering if anyone else had something. Is this something that is going to be implemented on the full programming stack like dtrace and we'll get a nice little scripting language for tracing in linux?
0
[ 2, 254, 5764, 118, 28132, 857, 27, 1187, 7367, 800, 3726, 3726, 31, 114, 1302, 30, 14, 172, 9, 379, 9, 2567, 17007, 63, 21, 78, 12613, 227, 1187, 7367, 56, 2795, 21, 865, 101, 939, 18, 13, 43, 38, 7367, 10082, 9, 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...
improved collection Iterator === Personally, I find the range of functionality provided by java.util.Iterator to be fairly pathetic. At a minimum, I'd like to have methods such as: - peek() returns next element without moving the iterator forward - previous() returns the previous element Though there are lots of other possibilities such as first() and last(). Does anyone know if such a 3rd party iterator exists? It would probably need to be implemented as a decorator of java.util.Iterator so that it can work with the existing java collections. Ideally, it should be "generics aware". Thanks in advance, Don
0
[ 2, 3999, 1206, 32, 106, 3457, 800, 3726, 3726, 7200, 15, 31, 477, 14, 978, 16, 18548, 1173, 34, 8247, 9, 14255, 9, 242, 106, 3457, 20, 44, 6647, 18512, 9, 35, 21, 5187, 15, 31, 22, 43, 101, 20, 57, 3195, 145, 28, 45, 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...
Getting groovy's grape going. === I've tried to use the new Groovy Grape (http://groovy.codehaus.org/Grape) capability in Groovy 1.6-beta-2 but I get an error message; Exception thrown: org.codehaus.groovy.control.MultipleCompilationErrorsException startup failed, Script0: 1: unable to resolve class com.jidesoft.swing.JideSplitButton from the Groovy Console (/opt/groovy/groovy-1.6-beta-2/bin/groovyConsole) when running the stock example; import com.jidesoft.swing.JideSplitButton @Grab(group='com.jidesoft', module='jide-oss', version='[2.2.1,)') public class TestClassAnnotation { public static String testMethod () { return JideSplitButton.class.name } } I even tried running the grape command line tool to ensure the library is imported. Like this; $ /opt/groovy/groovy-1.6-beta-2/bin/grape install com.jidesoft jide-oss which does install the library just fine.
0
[ 2, 1017, 3452, 2026, 93, 22, 18, 12940, 228, 9, 800, 3726, 3726, 31, 22, 195, 794, 20, 275, 14, 78, 3452, 2026, 93, 12940, 13, 5, 21127, 6903, 7944, 2026, 93, 9, 9375, 7972, 9, 5583, 118, 4973, 1664, 6, 11480, 19, 3452, 2026, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 KDiff3 be used properly with TortoiseSVN to resolve conflicts? === I have TortoiseSVN set up to use KDiff3 as the conflict resolution tool (I find it shows more information useful to the merge than the built-in TortoiseMerge does). When I open a file with Tortoise's "Edit Conflicts" command it shows me the three files and I have to select "Merge->Merge Current File" manually. The problem is that KDiff3 saves the result to <code>source_file.working</code> instead of to <code>source_file</code>. So without doing a Save As, the real file with the conflict doesn't get modified. Is there a way around doing this manual Save As every time? <small>I know this isn't strictly a programming question but it's about an ancillary process common enough to programmers that it should be useful here. I couldn't find the answer to this elsewhere.</small>
0
[ 2, 184, 92, 680, 43, 6021, 240, 44, 147, 7428, 29, 25691, 18, 16578, 20, 9854, 10344, 60, 800, 3726, 3726, 31, 57, 25691, 18, 16578, 309, 71, 20, 275, 680, 43, 6021, 240, 28, 14, 2930, 4302, 5607, 13, 5, 49, 477, 32, 1285, 91,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Setting a log file name to include current date in Log4j === I would like to set the log file name for a log4j and log4net appender to have the current date. We are doing Daily rollovers but the current log file does not have a date. The log file name format would be logname.2008-10-10.log Anyone know the best way for me to do this?
0
[ 2, 2697, 21, 6738, 3893, 204, 20, 468, 866, 1231, 19, 6738, 300, 728, 800, 3726, 3726, 31, 83, 101, 20, 309, 14, 6738, 3893, 204, 26, 21, 6738, 300, 728, 17, 6738, 300, 2328, 4865, 13630, 20, 57, 14, 866, 1231, 9, 95, 50, 845,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Improving really bad systems === How would you begin improving on a really bad system? Let me explain what I mean before you recommend creating unit tests and refactoring. I could use those techniques but that would be pointless in this case. Actually the system is so broken it doesn't do what it needs to do. For example the system should count how many messages it sends. It mostly works but in some cases it "forgets" to increase the value of the message counter. The problem is that so many other modules with their own workarounds build upon this counter that if I correct the counter the system as a whole would become worse than it is currently. The solution could be to modify all the modules and remove their own corrections, but with 150+ modules that would require so much coordination that I can not afford it. Even worse, there are some problems that has workarounds not in the system itself, but in people's head. For example the system can not represent more than four related messages in one message group. Some services would require five messages grouped together. The accounting department knows about this limitation and every time they count the messages for these services, they count the message groups and multiply it by 5/4 to get the correct number of the messages. There is absolutely no documentation about these deviations and nobody knows how many such things are present in the system now. So how would you begin working on improving this system? What strategy would you follow? A few additional things: I'm a one-men-army working on this so it is not an acceptable answer to hire enough men and redesign/refactor the system. And in a few weeks or months I really should show some visible progression so it is not an option either to do the refactoring myself in a couple of years. Some technical details: the system is written in Java and PHP but I don't think that really matters. There are two databases behind it, an Oracle and a PostgreSQL one. Besides the flaws mentioned before the code itself is smells too, it is really badly written and documented.
0
[ 2, 9273, 510, 896, 1242, 800, 3726, 3726, 184, 83, 42, 2348, 9273, 27, 21, 510, 896, 329, 60, 408, 55, 3271, 98, 31, 884, 115, 42, 12360, 2936, 1237, 4894, 17, 302, 17455, 68, 9, 31, 110, 275, 273, 4212, 47, 30, 83, 44, 454, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 localize ASP .Net MVC application? === What would be best practice to localize your ASP .Net MVC application ? I would like to cover two situations: - one application deployment in IIS which would handle multiple languages - one language / application deployment. In first situation should you go with somekind of view based thing like, ~/View/EN, ~/View/FI, ~/View/SWE or something different ? What about second case, just application based config via Web.config and point these different languages to different urls ?
0
[ 2, 184, 20, 375, 2952, 28, 306, 13, 9, 2328, 307, 8990, 3010, 60, 800, 3726, 3726, 98, 83, 44, 246, 1345, 20, 375, 2952, 154, 28, 306, 13, 9, 2328, 307, 8990, 3010, 13, 60, 31, 83, 101, 20, 1227, 81, 8329, 45, 13, 8, 53, 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...
Connecting to Informix database from .Net === What's the best way to connect to a Informix database from .Net? I'm developing a client-server application based on a legacy Informix DB which used to be connected by JDBC. I need it, from the most important to the least: 1. To be fast 2. DB server changes not needed 3. No ODBC and no dependencies, other than de .Net Framework 2.0 Thanks in advance for your help.
0
[ 2, 6440, 20, 10361, 4028, 6018, 37, 13, 9, 2328, 800, 3726, 3726, 98, 22, 18, 14, 246, 161, 20, 6379, 20, 21, 10361, 4028, 6018, 37, 13, 9, 2328, 60, 31, 22, 79, 3561, 21, 6819, 8, 10321, 106, 3010, 432, 27, 21, 7780, 10361, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the coolest hack you've seen or done? === As programmers, we've all put together a really cool program or pieced together some hardware in an interesting way to solve a problem. Today I was thinking about those hacks and how some of them are deprecated by modern technology (for example, you no longer need to hack your Tivo to add a network port). In the software world, we take things like drag-and-drop on a web page for granted now, but not too long ago that was a pretty exciting hack as well. One of the neatest hardware hacks I've seen was done by a former coworker at a telecom company years ago. He had a small portable television in his office and he would watch it all day long while working. To get away with it, he wired a switch to the on/off that was activated via his foot under his desk. What's the coolest hardware or software hack you've seen or done? What hack are you working on right now?
4
[ 2, 98, 22, 18, 14, 2700, 1430, 11835, 42, 22, 195, 541, 54, 677, 60, 800, 3726, 3726, 28, 17968, 18, 15, 95, 22, 195, 65, 442, 429, 21, 510, 2700, 625, 54, 1855, 43, 429, 109, 7610, 19, 40, 4883, 161, 20, 8402, 21, 1448, 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...
Getting a useful report from SVN - non-code files messing the stats up === I have a SVN repository for my project; it keeps code, docs, graphs, etc. Everything related to the project is there and versioned. However, I am trying to get some kind of intelligent stats for my code. The stat program I am using is StatSVN - they seem to be best of breed as far as I can tell. However, I am getting results for old files, Word files, etc, and these results are skewing the graphs. Ideas for battling through this and getting a reliable set of information about my cpp files? I don't just want to rebuild the repo, but I'm fearing that might be the best idea at the moment...
0
[ 2, 1017, 21, 4811, 1330, 37, 13, 18, 16578, 13, 8, 538, 8, 9375, 6488, 3957, 68, 14, 12819, 18, 71, 800, 3726, 3726, 31, 57, 21, 13, 18, 16578, 24869, 26, 51, 669, 73, 32, 8968, 1797, 15, 9765, 18, 15, 7210, 18, 15, 2722, 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...
color picker utility === I am looking for a free color picker utility on windows. Anything simple and easy to use.
0
[ 2, 1665, 2036, 106, 10082, 800, 3726, 3726, 31, 589, 699, 26, 21, 551, 1665, 2036, 106, 10082, 27, 1936, 9, 602, 1935, 17, 2010, 20, 275, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
trac and svn (tortoise) - "Issue Tracker Plugin" - ( yes, yet another svn and trac question) === I would like to be able to "get information from the issue tracker" as described in the section "Getting Information from the Issue Tracker" at: http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-bugtracker.html (display a dlg box to the user when they start a commit action in svn so they can choose form a list of issues assigned to them) I have tried finding information about a COM plugin for tortoisesvn, but have been unsuccessful in actually finding one. There are many links to pages, etc stating what is possible, but I do not want to write one and am hoping one exists. Can anyone shed some light on this or point me to a plugin for my client? thanks
0
[ 2, 13, 38, 5797, 17, 13, 18, 16578, 13, 5, 2153, 38, 16238, 6, 13, 8, 13, 7, 12565, 792, 106, 10922, 108, 7, 13, 8, 13, 5, 1643, 15, 768, 226, 13, 18, 16578, 17, 13, 38, 5797, 1301, 6, 800, 3726, 3726, 31, 83, 101, 20, 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...
What are the advantages of memory-mapped files? === I've been researching memory mapped files for a project and would appreciate any thoughts from people who have either used them before, or decided against using them, and why? In particular, I am concerned about the following, in order of importance: * concurrency * random access * performance * ease of use * portability
0
[ 2, 98, 50, 14, 14683, 16, 1912, 8, 79, 16664, 6488, 60, 800, 3726, 3726, 31, 22, 195, 74, 527, 68, 1912, 20877, 6488, 26, 21, 669, 17, 83, 8831, 186, 3064, 37, 148, 72, 57, 694, 147, 105, 115, 15, 54, 868, 149, 568, 105, 15,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where can I find a good desktop favicon.ico editor? === What is a simple easy to use desktop program for creating and editing favicon.ico files? I already have used <http://favicon.cc> which is a great site, but are their any better desktop tools designed for this? (Ideally ones that run under Ubuntu and aren't as complex as Gimp)
0
[ 2, 113, 92, 31, 477, 21, 254, 17404, 1399, 6199, 218, 9, 7776, 1835, 60, 800, 3726, 3726, 98, 25, 21, 1935, 2010, 20, 275, 17404, 625, 26, 2936, 17, 9510, 1399, 6199, 218, 9, 7776, 6488, 60, 31, 614, 57, 147, 13, 1, 21127, 690...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
In the hCalendar microformat, what markup is allowed in a description? === I am working on a calendar application that outputs a list of events in [hCalendar format][1]. This includes an element that has a class of "`description`" which should be used for the event's description. My question is, **what markup is allowed in my hCalendar event's description?** I found one example on the hCalendar website that showed a description with `<br />` tags in it, but every other example was brief and had no additional markup in the description. [1]: http://microformats.org/wiki/hcalendar
0
[ 2, 19, 14, 746, 3430, 219, 2542, 2899, 23588, 15, 98, 943, 576, 25, 1159, 19, 21, 5318, 60, 800, 3726, 3726, 31, 589, 638, 27, 21, 7036, 3010, 30, 5196, 18, 21, 968, 16, 963, 19, 636, 252, 3430, 219, 2542, 2595, 500, 2558, 165...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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] Use asynchronous delegates or ThreadPool.QueueUserWorkItem for massive parallelism? === I have a .NET application that processes around 300,000 records in a batch import, and it takes a few seconds per record so I would like to parallelize this. In the following code, what's the difference between `ProcessWithAnsycDelegates()` and `ProcessWithThreadPool()`? public class ResultNotification { public EventHandler event Success; public EventHandler event Fail; internal void Notify(bool sucess) {if (success) Success(); else Fail();} } public static class Processor { public ResultNotification ProcessWithAnsycDelegates(Record record) { var r = new ResultNotification(); Func<Record,bool> processRecord=new RecordProcessor().ProcessRecord; processRecord.BeginInvoke ( record ,ar => result.Notify(processRecord.EndInvoke(ar)) ,null); return r; } public ResultNotification ProcessWithThreadPool(Record r) { var r = new ResultNotification(); var rp = new RecordProcessor(); ThreadPool.QueueWorkUserItem(_=>result.Notify(rp.ProcessRecord(r))); return r; } }
0
[ 2, 636, 9, 2328, 500, 275, 21, 16023, 1291, 10845, 54, 9322, 13378, 9, 2005, 4185, 16704, 3783, 2119, 79, 26, 3787, 3821, 756, 60, 800, 3726, 3726, 31, 57, 21, 13, 9, 2328, 3010, 30, 5102, 140, 3565, 15, 3993, 742, 19, 21, 13064...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to change the name of a Start menu link name using a Custom Action === We are localizing our application and need to change the name displayed in the Start menu based on the current UI culture. We would like to do this using a Custom Action during the installation. We are using Windows Installer deployment projects and do not plan on using any third party deployment tools. Thank you!
0
[ 2, 25, 80, 21, 161, 20, 753, 14, 204, 16, 21, 799, 11379, 3508, 204, 568, 21, 5816, 1028, 800, 3726, 3726, 95, 50, 375, 3335, 318, 3010, 17, 376, 20, 753, 14, 204, 6115, 19, 14, 799, 11379, 432, 27, 14, 866, 13, 5661, 1365, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is this the right approach for structuring codebase? === We have a Java codebase that is currently one Web-based Netbeans project. As our organization and codebase grows it seems obvious that we should partition the various independent pieces of our system into individual jars. So one Jar library for the data access layer, one for a general lib, one for a specialized knowledge access, etc. Then we'd have a separate project for the web application, and could have one for a command line tools app, another web app eventually, etc. What is the recommended practice for doing and managing this? Is it Maven? Can it all be effectively done with just Netbeans alone by simply creating individual projects and setting the dependecies of one project on the jar files of the others?
0
[ 2, 25, 48, 14, 193, 2141, 26, 13, 10346, 10450, 1797, 8436, 60, 800, 3726, 3726, 95, 57, 21, 8247, 1797, 8436, 30, 25, 871, 53, 2741, 8, 1281, 4275, 863, 5950, 669, 9, 28, 318, 1165, 17, 1797, 8436, 7120, 32, 2206, 4674, 30, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I use differnt RJS templates from the same rails controller? === I have a controller method that returns a list for a drop down that gets rendered in a partial, but depending on where the partial is being used, the RJS template needs to be different. Can I pass a parameter to the controller that will determine which RJS gets used? Here is the controller method, it is very simple: def services respond_to do |format| format.js { @type = HospitalCriteria.find_by_id(params[:type_id]) @services = @type.children.all } end end And here is the rjs template the gets rendered automatically page.replace_html 'select_service', :partial => 'hospital/services' page.replace_html 'select_condition', :partial => 'hospital/conditions' page.replace_html 'select_procedure', :partial => 'hospital/procedures' page << 'if ($("chosenType") != null) {' page.replace_html 'chosenType', @type.name page.replace_html 'chosenService', 'Selected Service' page.replace_html 'chosenCondition', 'Selected Condition' page.replace_html 'chosenProcedure', 'Selected Procedure' page << '}'
0
[ 2, 184, 92, 31, 275, 11394, 2877, 13, 23008, 18, 22894, 18, 37, 14, 205, 2240, 18, 9919, 60, 800, 3726, 3726, 31, 57, 21, 9919, 2109, 30, 4815, 21, 968, 26, 21, 2804, 125, 30, 3049, 10877, 19, 21, 7284, 15, 47, 4758, 27, 113, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP.net MVC custom string output overloaded operator <%=h === I am currently in the process of making a new ASP.net MVC website, and find myself using Html.Encode all over the place, which is good practice, but gets pretty messy. I think a good way to clean this up would be if I could overload an operator to automatically do Html encoding. Previously: <%= Html.Encode( ViewData['username'] ) %> Would be equivalent to: <%=h ViewData['username'] %> Anyone have any ideas how I could do this, maybe using an extension method or something?
0
[ 2, 28, 306, 9, 2328, 307, 8990, 5816, 3724, 5196, 84, 22546, 6022, 13, 1, 11881, 3726, 252, 800, 3726, 3726, 31, 589, 871, 19, 14, 953, 16, 544, 21, 78, 28, 306, 9, 2328, 307, 8990, 2271, 15, 17, 477, 992, 568, 13, 15895, 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 there a Visual Studio plugin for sorting build output (scrambled from multi-threaded builds)? === My work just gave me a quad core computer, and WOW build times are fast! (What used to take 20+ minutes now takes 7 minutes). Anyway, Visual Studio builds project in parallel (great for build times), but scrambles the output: 1>Performing Makefile project actions 3>arg.c 2>msg.c 3>log.c 4>test.c (and so on....) Is there a plugin that sorts the output when the build is complete?
0
[ 2, 25, 80, 21, 3458, 1120, 10922, 108, 26, 2058, 68, 1895, 5196, 13, 5, 18, 6711, 18260, 43, 37, 1889, 8, 96, 10647, 69, 1895, 18, 6, 60, 800, 3726, 3726, 51, 170, 114, 492, 55, 21, 13559, 2884, 1428, 15, 17, 15293, 1895, 436,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Firefox 'Error loading script' loading Google Analytics in FF2 === The project I'm working on uses a window.onerror event handler to report user problems. I've noticed a single user that just cannot seem to load the Google Analytics script. Our site doesn't see a lot of traffic so I'm not sure how widespread this is, but so far it seems to just effect one user. His user agent is: "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080829 Firefox/2.0.0.17". The error message Firefox gives is: "Error loading script". Has anybody else run across this, or have any idea what could be the issue? Thanks!
0
[ 2, 535, 18219, 13, 22, 29992, 12797, 3884, 22, 12797, 8144, 26320, 19, 13, 2460, 135, 800, 3726, 3726, 14, 669, 31, 22, 79, 638, 27, 2027, 21, 1463, 9, 218, 29992, 807, 24641, 20, 1330, 4155, 1716, 9, 31, 22, 195, 2711, 21, 345,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I set a different Tooltip text for each item in a listbox? === I have a listbox that is databound to a Collection of objects. The listbox is configured to display an identifier property of each object. I would like to show a tooltip with information specific to the item within the listbox that is being hovered over rather than one tooltip for the listbox as a whole. I am working within WinForms and thanks to some helpful blog posts put together a pretty nice solution, which I wanted to share. I'd be interested in seeing if there's any other elegant solutions to this problem, or how this may be done in WPF.
0
[ 2, 184, 92, 31, 309, 21, 421, 5607, 10169, 1854, 26, 206, 9101, 19, 21, 968, 5309, 60, 800, 3726, 3726, 31, 57, 21, 968, 5309, 30, 25, 1054, 7410, 20, 21, 1206, 16, 3916, 9, 14, 968, 5309, 25, 28895, 20, 3042, 40, 25570, 1354,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 send an email attachment with signature in excel === I would like to know how to write a macro that would send an email attachment in excel with user's signature. The same macro would be used by different users. So it should dynamically read any one (out of multiple html, rtf and txt files) signature file from user's location C:\Documents and Settings\" & Environ("username") "\Application Data\Microsoft\Signatures\[user file]" OR Environ("APPDATA") & "\Microsoft\Signatures\" and send email with that particular user's signature. Please guide me as how this could be achieved.
0
[ 2, 184, 20, 2660, 40, 8517, 14575, 29, 7810, 19, 20700, 800, 3726, 3726, 31, 83, 101, 20, 143, 184, 20, 2757, 21, 9069, 30, 83, 2660, 40, 8517, 14575, 19, 20700, 29, 4155, 22, 18, 7810, 9, 14, 205, 9069, 83, 44, 147, 34, 421, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are some of the advantage/disadvantages of using SQLDataReader? === SqlDataReader is a faster way to process the stored procedure. What are some of the advantage/disadvantages of using SQLDataReader?
0
[ 2, 98, 50, 109, 16, 14, 3314, 118, 2906, 1283, 17384, 14465, 16, 568, 4444, 255, 18768, 10647, 106, 60, 800, 3726, 3726, 4444, 255, 18768, 10647, 106, 25, 21, 4233, 161, 20, 953, 14, 8214, 7004, 9, 98, 50, 109, 16, 14, 3314, 118...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
Are there documented, organized collections of libraries for lisp? === I am a college student at a school that teaches mainly in Java. One of the strong points of Java, which I quite enjoy, is the large collection of libraries. What makes these libraries especially useful is the extensive documentation and organization presented via JavaDoc. Are there any library collections for Common Lisp which also have these qualities, and is there a tool similar to JavaDoc which would assist in the building, maintaining, or expanding of these libraries?
0
[ 2, 50, 80, 8926, 15, 2518, 5721, 16, 8649, 26, 2093, 3401, 60, 800, 3726, 3726, 31, 589, 21, 314, 1209, 35, 21, 116, 30, 13022, 2011, 19, 8247, 9, 53, 16, 14, 966, 819, 16, 8247, 15, 56, 31, 1450, 4696, 15, 25, 14, 370, 1206...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Google Page Rank - New Domain / Link Structure Migration === i've been tasked with re-organizing a pure HTML site into a CMS. if all goes well, the new site will eventually become the main URL, and the old domain will be phased out. the old domain has a decent enough page rank, and the company wishes to mitigate any loss of page rank for that. in looking over the options available, i've discovered a few things: - it's better to use a 301 redirect when you're ready to make the switch ([source][1]). - the current site does not have a sitemap, so adding one and submitting it may help their future page rank. - i'll need to suggest to them that they contact people currently linking to them to update their links. - the process for regaining an old page rank takes awhile, so plan on rebuilding links while we see if the new site is flexible enough to warrant switching over completely. **my question is**: as a result of a move to a CMS driven site, the links to various pages will change to accommodate the new structure. will this be an issue for trying to maintain (or improve) the current page rank? what sort of methods are available to mitigate the issue of changing individual page URL's? ex. http://domain.com/Messy_HTML_page_with_little_categorization.html -> http://newdomain.com/nice/structured/pages.php i realize this isn't strictly a programming question, however i felt the information could be useful to developers who are tasked with handling this sort of thing in addition to development of the site. [1]: http://www.seroundtable.com/archives/007233.html
0
[ 2, 8144, 2478, 2839, 13, 8, 78, 4603, 13, 118, 3508, 1411, 8443, 800, 3726, 3726, 31, 22, 195, 74, 14605, 29, 302, 8, 6826, 3335, 21, 4267, 13, 15895, 689, 77, 21, 2390, 18, 9, 100, 65, 1852, 134, 15, 14, 78, 689, 129, 878, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...