unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Stoping a function from been overriden in Delphi === How do I stop a function/procedure in a superclass from been overridden in a subclass in Delphi (2007)? I want to mark it so it can not be altered, I believe there is a final keyword but can not for the life of me find the documentation for it, so I am not 100% sure that's what I need.
0
[ 2, 747, 68, 21, 1990, 37, 74, 84, 928, 817, 19, 23030, 800, 3726, 3726, 184, 107, 31, 747, 21, 1990, 118, 15617, 69, 4221, 19, 21, 1026, 1898, 37, 74, 84, 15267, 19, 21, 972, 1898, 19, 23030, 13, 5, 2727, 6, 60, 31, 259, 20,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Accessing private key with ASPNET === I'm having some trouble importing and accessing a private key with the ASPNET user. I know that when one imports a private key (.pfx file) manually, in windows, you get an option to mark the key as exportable. Now, as far as I can tell, this is needed in order to retrieve that private key later on. My problem comes in that I'm importing the private key in code, as the ASPNET user, and there doesn't seem to be a way to mark it as exportable, in the way that the windows certificate import wizard does. To clarify, the import works just fine, but when I access the details on the now-imported certificate, there is no private key data. This is the code I'm using to import the certificate, once I have already opened the .pfx file, with the correct password. public void ImportCertificate(X509Certificate2 cert, StoreName name, StoreLocation loc) { X509Store certStore = new X509Store(name, loc); StorePermission permission = new StorePermission(PermissionState.Unrestricted); permission.Flags = StorePermissionFlags.AddToStore; permission.Assert(); certStore.Open(OpenFlags.ReadWrite); certStore.Add(cert); certStore.Close(); } Am I mucking up the permissions or the way I import this private key? Or am I going about this the wrong way entirely?
0
[ 2, 1381, 68, 932, 1246, 29, 28, 306, 2328, 800, 3726, 3726, 31, 22, 79, 452, 109, 2572, 9010, 68, 17, 1381, 68, 21, 932, 1246, 29, 14, 28, 306, 2328, 4155, 9, 31, 143, 30, 76, 53, 20617, 21, 932, 1246, 13, 5, 9, 7721, 396, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Watching a table for change in MySQL? === Is there a better way to watch for new entries in a table besides selecting from it every n ticks of time or something like that? I have a table that an external program updates very often, and clients can watch for this new data as it arrive, how can I make that without having to set a fixed period of repeatable select statements?
0
[ 2, 1953, 21, 859, 26, 753, 19, 51, 18, 22402, 60, 800, 3726, 3726, 25, 80, 21, 574, 161, 20, 1455, 26, 78, 11399, 19, 21, 859, 3410, 20764, 37, 32, 352, 13, 103, 8809, 18, 16, 85, 54, 301, 101, 30, 60, 31, 57, 21, 859, 30,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you make a web application in Clojure? === I suppose this is a strange question to the huge majority of programmers that work daily with Java. I don't. I know Java-the-language, because I worked on Java projects, but not Java-the-world. I never made a web app from scratch in Java. If I have to do it with Python, Ruby, I know where to go (Django or Rails), but if I want to make a web application in Clojure, not because I'm forced to live in a Java world, but because I like the language and I want to give it a try, what libraries and frameworks should I use?
0
[ 2, 184, 107, 42, 233, 21, 2741, 3010, 19, 7383, 2142, 99, 60, 800, 3726, 3726, 31, 5787, 48, 25, 21, 2578, 1301, 20, 14, 2329, 1698, 16, 17968, 18, 30, 170, 1954, 29, 8247, 9, 31, 221, 22, 38, 9, 31, 143, 8247, 8, 124, 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...
How to get Https URL content === I have a https link that requires user login & password. If I run it in FX like this: https://usernameassword@www.example.com/link/sublink it will return the xml data as expected. However, what i'm trying to do, is to automate this process. I try to use file_get_contents in PHP fSocket in PHP I even try Ajax, but still.. doesn't work. and try to get the content (xml) either in Server or in the front-end (ajax), but both don't work. Does anyone know what I need to go in order to get the content? Do I need to obtain the ssl certificate? Solution in any ohter languages will be welcome too.
0
[ 2, 184, 20, 164, 7775, 18, 287, 6362, 2331, 800, 3726, 3726, 31, 57, 21, 7775, 18, 3508, 30, 4781, 4155, 6738, 108, 279, 20884, 9, 100, 31, 485, 32, 19, 13, 16488, 101, 48, 45, 7775, 18, 6903, 16704, 7259, 9755, 9587, 1, 6483, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
non-DB attr_accessor attribute persistence in Rails === I have an application in which attr_accessor is being used to keep temporary data for a model which will be passed to a rake task. Seeing there is not a database field for these attributes and they are not being calculated from database data, will the attr_accessor data persist and be available to the rake task? What happens if I need to restart the server - does the data get lost then if it's not saved to database? Or to pull this off, do I need to either save to a temp file or a database field?
0
[ 2, 538, 8, 9007, 35, 6384, 1, 20604, 248, 35, 14755, 28584, 19, 2240, 18, 800, 3726, 3726, 31, 57, 40, 3010, 19, 56, 35, 6384, 1, 20604, 248, 25, 142, 147, 20, 643, 4700, 1054, 26, 21, 1061, 56, 129, 44, 1100, 20, 21, 21009, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Pivot data using LINQ? === I am new to LINQ, but I am wondering if it is possible to use LINQ to pivot data from the following layout: CustID | OrderDate | Qty 1 | 1/1/2008 | 100 2 | 1/2/2008 | 200 1 | 2/2/2008 | 350 2 | 2/28/2008 | 221 1 | 3/12/2008 | 250 2 | 3/15/2008 | 2150 into something like this: CustID | Jan- 2008 | Feb- 2008 | Mar - 2008 | 1 | 100 | 350 | 250 2 | 200 | 221 | 2150
0
[ 2, 25, 32, 938, 20, 20670, 1054, 568, 6294, 1251, 60, 800, 3726, 3726, 31, 589, 78, 20, 6294, 1251, 15, 47, 31, 589, 5712, 100, 32, 25, 938, 20, 275, 6294, 1251, 20, 20670, 1054, 37, 14, 249, 9106, 45, 13, 4636, 13647, 13, 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...
validating and adjusting a treeview label === I've got a treeview control, and have caught its after-label-edit event. I want to be able to validate the user's input and adjust it - if for instance it's too long - but I only seem able to cancel the new value, not change it. Any ideas? I don't want to have to open a new form, the user might be renaming a range of these and it shouldn't be too cumbersome. Cheers.
0
[ 2, 7394, 1880, 17, 22209, 21, 1541, 4725, 1899, 800, 3726, 3726, 31, 22, 195, 330, 21, 1541, 4725, 569, 15, 17, 57, 1383, 82, 75, 8, 21018, 8, 69, 242, 807, 9, 31, 259, 20, 44, 777, 20, 7394, 1373, 14, 4155, 22, 18, 6367, 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...
How do I get the last possible time of a particular day === I'm trying to achieve the last possible time of a particular day eg for Date of 2008-01-23 00:00:00.000 i would need 2008-01-23 23:59:59.999 perhaps by using the dateadd function on the Date field?
0
[ 2, 184, 107, 31, 164, 14, 236, 938, 85, 16, 21, 1498, 208, 800, 3726, 3726, 31, 22, 79, 749, 20, 4689, 14, 236, 938, 85, 16, 21, 1498, 208, 12369, 26, 1231, 16, 570, 8, 3026, 8, 2001, 13, 2032, 45, 2032, 45, 2032, 9, 3993, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 open a form in a thread and force it to stay open === I am still having problems with figuring out how to create winforms in a separate UI thread that I discussed [here][1]. In trying to figure this out I wrote the following simple test program. I simply want it to open a form on a separate thread named "UI thread" and keep the thread running as long as the form is open while allowing the user to interact with the form (spinning is cheating). I understand why the below fails and the thread closes immediately but am not sure of what I should do to fix it. using System; using System.Windows.Forms; using System.Threading; namespace UIThreadMarshalling { static class Program { [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var tt = new ThreadTest(); ThreadStart ts = new ThreadStart(tt.StartUiThread); Thread t = new Thread(ts); t.Name = "UI Thread"; t.Start(); Thread.Sleep(new TimeSpan(0, 0, 10)); } } public class ThreadTest { Form _form; public ThreadTest() { } public void StartUiThread() { _form = new Form1(); _form.Show(); } } } [1]: http://stackoverflow.com/questions/164789/winforms-implementation-question-for-having-my-ui-run-independently-of-my-bll-l
0
[ 2, 184, 20, 368, 21, 505, 19, 21, 9322, 17, 558, 32, 20, 1179, 368, 800, 3726, 3726, 31, 589, 174, 452, 1716, 29, 25379, 70, 184, 20, 1600, 628, 4190, 18, 19, 21, 1725, 13, 5661, 9322, 30, 31, 6078, 636, 6836, 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...
(Vocal code) Need some help finding text-to-speech addon === I am looking for an addon that can say characters vocally. It is for non-commercial use, and it would be nice if it can vocalize more languages, like asian, english etc... I have googled it, but can't seem to find anything for free use. Update: This is for web use
0
[ 2, 13, 5, 24045, 1797, 6, 376, 109, 448, 3007, 1854, 8, 262, 8, 18, 1664, 7455, 3547, 218, 800, 3726, 3726, 31, 589, 699, 26, 40, 3547, 218, 30, 92, 395, 1766, 3969, 102, 9, 32, 25, 26, 538, 8, 22547, 275, 15, 17, 32, 83, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Class data responsibilities === I have a 'Purchase Order' class. It contains information about a single purchase order. I have a DAO class for database methods. Where should the responsibility reside for the methods that will load and update the purchase order? Should the PurchaseOrder class have '.update', 'insert', 'delete', and '.load' methods that use the DAO class directly, or should the PurchaseOrder class be ignorant of the DAO methods and have a POController class that manages these interactions? The user will only be working on a single PurchaseOrder at a time. Thanks!
0
[ 2, 718, 1054, 13, 10525, 800, 3726, 3726, 31, 57, 21, 13, 22, 2051, 1651, 870, 389, 22, 718, 9, 32, 1588, 676, 88, 21, 345, 3301, 389, 9, 31, 57, 21, 13, 17104, 718, 26, 6018, 3195, 9, 113, 378, 14, 4024, 14670, 26, 14, 3195...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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# Lambda expression, why should I use this? === I have quickly read the [Microsoft Lambda Expression][1] documentation. I see example that have help me to understand more like this one : delegate int del(int i); del myDelegate = x => x * x; int j = myDelegate(5); //j = 25 But, I still do not understand why it's so an innovation. It's just a method that die when the "method variable" end, right? Why should I use this instead of real method? [1]: http://msdn.microsoft.com/en-us/library/bb397687.aspx
0
[ 2, 272, 5910, 13, 24187, 1803, 15, 483, 378, 31, 275, 48, 60, 800, 3726, 3726, 31, 57, 976, 1302, 14, 636, 22019, 12980, 13, 24187, 1803, 500, 2558, 165, 500, 13945, 9, 31, 196, 823, 30, 57, 448, 55, 20, 1369, 91, 101, 48, 53,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I see what files were changed between 2 revisions? === I just want to see what files were modded/added/deleted between 2 arbitrary revisions. How do I do this?
0
[ 2, 184, 107, 31, 196, 98, 6488, 46, 1015, 128, 172, 11323, 18, 60, 800, 3726, 3726, 31, 114, 259, 20, 196, 98, 6488, 46, 7226, 7424, 118, 14854, 69, 118, 24249, 1427, 128, 172, 17237, 11323, 18, 9, 184, 107, 31, 107, 48, 60, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Any clever way to launch a makefile in Visual Studio only if build succeeded? === We have a makefile that is built last in our build process using Visual Studio to launch our unit tests. Unfortunately if the build fails the makefile is still processed and we have extra (annoying) errors. Any way to prevent that? Example Project A : build dummy.exe Project B (makefile) : build command is : run dummy.exe /unittest We want Project B to skip its build command when Project A has build errors. Thanks!
0
[ 2, 186, 11994, 161, 20, 3394, 21, 233, 16877, 19, 3458, 1120, 104, 100, 1895, 2914, 60, 800, 3726, 3726, 95, 57, 21, 233, 16877, 30, 25, 392, 236, 19, 318, 1895, 953, 568, 3458, 1120, 20, 3394, 318, 1237, 4894, 9, 6200, 100, 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...
Lisp Web Frameworks? === What are the popular (ok, popular is relative) web frameworks for the various flavours of LISP?
0
[ 2, 2093, 3401, 2741, 6596, 18, 60, 800, 3726, 3726, 98, 50, 14, 844, 13, 5, 3085, 15, 844, 25, 4543, 6, 2741, 6596, 18, 26, 14, 617, 22408, 18, 16, 2093, 3401, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Eclipse for IntilliJ Idea Users === I have a coworker who is looking to switch from InteilliJ Idea to Eclipse, and is concerned about not knowing the Eclipse set of commands. I was wondering - would anyone have a link to keyboard mappings that can set Eclipse commands to at least sort of match Idea? Have you made this switch? Any "gotchas", tips, or info we should be aware of? Thanks!
2
[ 2, 11652, 26, 19, 38, 16566, 728, 882, 3878, 800, 3726, 3726, 31, 57, 21, 326, 22560, 72, 25, 699, 20, 5521, 37, 19, 591, 16566, 728, 882, 20, 11652, 15, 17, 25, 3518, 88, 52, 2506, 14, 11652, 309, 16, 14294, 9, 31, 23, 5712, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Subversion and revision engineering - what are the best web resources to read about? === We are migrationg from CVS to SVN and embracing some kind of revision management in order to enforce order to development/testing/release cycle. We are currently testing, developing and releasing on the same code line, we know its a bad practice and we want to make end to it. What are your experience, know how, suggestions working with source code tree. We are building small/average (2-5 months) custom projects and we have to give early access to customer for review. Requirement creep is common.
0
[ 2, 972, 10898, 17, 11323, 1552, 13, 8, 98, 50, 14, 246, 2741, 2566, 20, 1302, 88, 60, 800, 3726, 3726, 95, 50, 8443, 263, 37, 13, 12732, 18, 20, 13, 18, 16578, 17, 26336, 109, 825, 16, 11323, 1097, 19, 389, 20, 16525, 389, 20,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is an atomic file rename (with overwrite) possible on Windows? === On POSIX systems rename(2) provides for an atomic rename operation, including overwriting of the destination file if it exists and if permissions allow. Is there any way to get the same semantics on Windows? I know about MoveFileTransacted() on Vista and Server 2008, but I need this to support Win2k and up. The key word here is *atomic*... the solution must not be able to fail in any way that leaves the operation in an inconsistent state. I've seen a lot of people say this is impossible on win32, but I ask you, is it really? Please provide reliable citations if possible.
0
[ 2, 25, 40, 9692, 3893, 302, 7259, 13, 5, 1410, 84, 23716, 6, 938, 27, 1936, 60, 800, 3726, 3726, 27, 2353, 6742, 1242, 302, 7259, 5, 135, 6, 1927, 26, 40, 9692, 302, 7259, 1453, 15, 215, 84, 12646, 16, 14, 6970, 3893, 100, 32,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using .Net Framework Source debugging === I'm getting a null-object exception deep within XsltCompiledTransform, and I'd like to use the [.Net Framework Source debugging](http://blogs.msdn.com/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code.aspx) feature to see what isn't being initialized, but even after following the directions for enabling it, I can't figure out how to step into the .Transform() method and start spelunking. The tutorials I've found online say you can load the symbols for the framework library by using the Call Stack window while debugging, but this isn't useful when the callstack has yet to contain the library you want to debug. I've also tried loading symbols from the Modules window, but Step-Into still doesn't work. Is the System.Xml.Xslt namespace source even available to step into when debugging?
0
[ 2, 568, 13, 9, 2328, 6596, 1267, 121, 16254, 2762, 800, 3726, 3726, 31, 22, 79, 1017, 21, 16203, 8, 23793, 5391, 855, 363, 993, 18, 255, 38, 11103, 49, 1294, 7028, 4190, 15, 17, 31, 22, 43, 101, 20, 275, 14, 636, 9, 2328, 6596...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Share auto-incremented primary key between two tables === Hi I want to have two tables each have an "id" column which will auto-increment but I don't want either "id" columns to ever share the same number. What is this called and what's the best way to do it? Sequence? Iterator? Index? Incrementor? I'm using SQL Server 9.0.3068. Thanks!
0
[ 2, 1891, 3108, 8, 28461, 69, 1256, 1246, 128, 81, 7484, 800, 3726, 3726, 4148, 31, 259, 20, 57, 81, 7484, 206, 57, 40, 13, 7, 1340, 7, 4698, 56, 129, 3108, 8, 28461, 47, 31, 221, 22, 38, 259, 694, 13, 7, 1340, 7, 7498, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating a ruler bar in MFC === What's the best way to go about creating a vertical and horizontal ruler bars in an SDI app? Would you make it part of the frame or the view? Derive it from CControlBar, or is there a better method? The vertical ruler must also be docked to a pane and not the frame. To make it a little clearer as to what I'm after, imagine the vertical ruler in the Dialog Editor in Visual Studio (MFC only). It gets repositioned whenever the tree view is resized.
0
[ 2, 2936, 21, 7077, 748, 19, 307, 7061, 800, 3726, 3726, 98, 22, 18, 14, 246, 161, 20, 162, 88, 2936, 21, 7035, 17, 10095, 7077, 6062, 19, 40, 13, 18, 1115, 4865, 60, 83, 42, 233, 32, 141, 16, 14, 3523, 54, 14, 1418, 60, 2057...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 enter a pound sterling character (£) into the Python interactive shell on Mac OS X? === On Mac OS XI can’t enter a pound sterling sign (£) into the Python interactive shell. - Mac OS X 10.5.5 - Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) - European keyboard (£ is shift-3) When I type “£” at an empty shell, nothing appears. If I’ve already typed some characters, e.g. >>> 1234567890 1234567890 1234567890 ... then pressing shift-3 will make the cursor position itself after the most recent space, or the start of the line if there are no spaces left between the cursor and the start of the line. Any idea how I can type a literal “£”?
0
[ 2, 184, 107, 31, 2830, 21, 11168, 11949, 925, 13, 5, 11, 6, 77, 14, 20059, 9194, 3593, 27, 1572, 13, 759, 993, 60, 800, 3726, 3726, 27, 1572, 13, 759, 5641, 92, 1, 38, 2830, 21, 11168, 11949, 1676, 13, 5, 11, 6, 77, 14, 2005...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 know some cool PL/SQL plugin for IntelliJ Idea? === I've evaluated some plugins from official IntelliJ repository, but none of them seems to provide more then basic syntax highlighting. Even highlighting is limited. For example, Database Navigator doesn't highlight IF. It would be great to have proper highlighting. And if it would have auto-complete feature and provide file structure view I would be completely happy.
0
[ 2, 630, 1276, 143, 109, 2700, 12443, 118, 18, 22402, 10922, 108, 26, 19, 4213, 9999, 882, 60, 800, 3726, 3726, 31, 22, 195, 19018, 109, 10922, 108, 18, 37, 989, 19, 4213, 9999, 24869, 15, 47, 2369, 16, 105, 2206, 20, 1181, 91, 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...
Best Microsoft Certification study resource === What is the best resource for studying for Microsoft certifications -- specifically the .NET 2.0 developer series? There are a lot of options out there, we have been using the MS Press books and Transcender exams where I work, but I know there are other competitors -- I would like to see what the StackOverflow community considers the best.
4
[ 2, 246, 7099, 10439, 949, 6577, 800, 3726, 3726, 98, 25, 14, 246, 6577, 26, 4493, 26, 7099, 10439, 18, 13, 8, 8, 3524, 14, 13, 9, 2328, 172, 9, 387, 10058, 231, 60, 80, 50, 21, 865, 16, 6368, 70, 80, 15, 95, 57, 74, 568, 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...
trace.axd returns a 404 error === On a .Net production server, I am unable to look at the Application trace. The web server returns a 404 error. When copying the files on my local computer, the trace works, making further testing impractical. The trace seems to be correctly set: <trace enabled="true" requestLimit="20" pageOutput="true" traceMode="SortByTime" localOnly="false" /> *edit:* crap, I was trying to reply to it directly since I lost 2 hours on that and that some googling showed I was not the only one who stumbled there. Apparently I can't accept my own answer :)
0
[ 2, 5565, 9, 7522, 43, 4815, 21, 13, 23397, 7019, 800, 3726, 3726, 27, 21, 13, 9, 2328, 637, 8128, 15, 31, 589, 2343, 20, 361, 35, 14, 3010, 5565, 9, 14, 2741, 8128, 4815, 21, 13, 23397, 7019, 9, 76, 4344, 68, 14, 6488, 27, 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...
XSLT Abstractions === I'm exploring the XML -> XLST -> HTML meme for producing web content. I have very little XSLT experience. I'm curious what mechanisms are available in XSLT to handle abstractions or "refactoring". For example, with generic HTML and a service side include, many pages can be templated and decomposed to where there are, say, common header, nav, and footer segments, and the page itself is basically the body. The common markup languages, JSP, PHP, ASP, go as far as to allow all of those segments to have dynamic content (such as adding the user name to every header block). JSP goes even farther by allowing you to create Tag files, which can accept arguments to be used when generating the content, and even surround and work on content within the tags themselves. I'm curious similar functionality is done within XSLT. What facilities are there to make reusable block of XSLT for things like creating HTML pages?
0
[ 2, 993, 18, 255, 38, 23907, 18, 800, 3726, 3726, 31, 22, 79, 11748, 14, 23504, 13, 8, 1, 993, 24239, 13, 8, 1, 13, 15895, 55, 790, 26, 4081, 2741, 2331, 9, 31, 57, 253, 265, 993, 18, 255, 38, 1496, 9, 31, 22, 79, 7686, 98,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I connect to SQL Server using Windows Authentication from Java EE webapp? === I am currently investigating how to make a connection to a SQL Server database from my Java EE web application using Windows Authentication instead of SQL Server authentication. I am running this app off of Tomcat 6.0, and am utilizing the Microsoft JDBC driver. My connection properties file looks as follows: dbDriver = com.microsoft.sqlserver.jdbc.SQLServerDriver dbUser = user dbPass = password dbServer = localhost:1433;databaseName=testDb dbUrl = jdbc:sqlserver://localhost:1433 I have zero problems with connecting to a SQL Server database in this fashion when using SQL Server authentication. Is there any way I can retrieve the credentials of the user's Windows Authentication and use __that__ authentication for SQL Server?
0
[ 2, 92, 31, 6379, 20, 4444, 255, 8128, 568, 1936, 27963, 37, 8247, 13, 2851, 2741, 7753, 60, 800, 3726, 3726, 31, 589, 871, 12490, 184, 20, 233, 21, 2760, 20, 21, 4444, 255, 8128, 6018, 37, 51, 8247, 13, 2851, 2741, 3010, 568, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Oracle merge constants into single table === In Oracle, given a simple data table: create table data ( id VARCHAR2(255), key VARCHAR2(255), value VARCHAR2(511)); suppose I want to "insert or update" a value. I have something like: merge into data using dual on (id='someid' and key='testKey') when matched then update set value = 'someValue' when not matched then insert (id, key, value) values ('someid', 'testKey', 'someValue'); Is there a better way than this? This command seems to have the following drawbacks: * Every literal needs to be typed twice (or added twice via parameter setting) * The "using dual" syntax seems hacky If this is the best way, is there any way around having to set each parameter twice in JDBC?
0
[ 2, 15759, 12666, 3587, 18, 77, 345, 859, 800, 3726, 3726, 19, 15759, 15, 504, 21, 1935, 1054, 859, 45, 1600, 859, 1054, 13, 5, 4924, 4033, 5433, 135, 5, 20038, 6, 15, 1246, 4033, 5433, 135, 5, 20038, 6, 15, 1923, 4033, 5433, 135...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 map a list of string using castle active record === I am trying to map a list of strings to a class something like this; [ActiveRecord] public class MyClass { [HasMany(typeof(string), Table = "MyTable")] public IList<string> MyList { get { return _myList; } set { _myList= value; } } } where my table looks something like this; create table MyTable( Id NUMBER(10,0) not null, MyClassId NUMBER(10,0) not null, ListItem NVARCHAR2(255), primary key (Id) ); Can anyone help?
0
[ 2, 184, 107, 31, 2942, 21, 968, 16, 3724, 568, 1339, 1348, 571, 800, 3726, 3726, 31, 589, 749, 20, 2942, 21, 968, 16, 7887, 20, 21, 718, 301, 101, 48, 73, 636, 7889, 14953, 500, 317, 718, 51, 1898, 13, 1, 636, 6482, 14842, 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...
NSThread and UIViewController interaction === If I spawn a new thread, and then within it I push a new controller onto my UINavigationController, using code like this... (a) not working -(void)myCallbackInThread { // move on... UIApplication* app = [UIApplication sharedApplication]; [app changeView]; } then I find that the view appears, but does not respond to user input. If I change the code like this (b) working -(void)myCallbackInThread { // move on... UIApplication* app = [UIApplication sharedApplication]; [app performSelectorOnMainThread:@selector(moveToMain) withObject:nil waitUntilDone:FALSE]; } Then everything works just fine. Any hints as to why?
0
[ 2, 13, 2172, 96, 10647, 17, 13, 5661, 4725, 12898, 1252, 7754, 800, 3726, 3726, 100, 31, 13, 22860, 21, 78, 9322, 15, 17, 94, 363, 32, 31, 3250, 21, 78, 9919, 1204, 51, 287, 1673, 13227, 857, 12898, 1252, 15, 568, 1797, 101, 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...
SQL Server 2005 Using DateAdd to add a day to a date === How do I in SQL Server 2005 use the DateAdd function to add a day to a date
0
[ 2, 4444, 255, 8128, 812, 568, 1231, 14854, 20, 3547, 21, 208, 20, 21, 1231, 800, 3726, 3726, 184, 107, 31, 19, 4444, 255, 8128, 812, 275, 14, 1231, 14854, 1990, 20, 3547, 21, 208, 20, 21, 1231, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What is less annoying: no source code documentation or bad code documentation? === Today I had an argument with a colleague about one of his comments as summary of a method. Mostly he is not writing any summaries but in this case he added one and it was a really bad one: It was not described what the method is doing, it assumed what the method maybe is doing. I have to add that this piece of code was not his own, it was legacy code. I told him that in this case he should have never made any commentary, only after really checking what is happening there, because someone who does read his opinion as valid statement will not check by himself and screw up. He could have add "This is an assumption, please check for yourself." but he didn't. Even if no commentary was there it would be better because then the developer has to check for himself. Personally I'm very strict on code documentation. That doesn't mean I comment every line of code but method, class, etc summaries are mandatory and additional lines for difficult code parts are helping too. I have to add that I work in a team of 10 developers where no one writes code only for himself. Spending less time on code documentation means that other developers are spending more time to get the meaning of the code. I'm not even able to say if I like no documentation less than this kind of bad documentation. But at the end I guess I spend more time with not documented than not good documented foreign code. So... I hate both. ;) What do you think? You don't care or do you see these things in your daily work too? What is worse for you: no code documentation or bad code documentation? Thanks! Michael
0
[ 2, 98, 25, 787, 17610, 45, 90, 1267, 1797, 13945, 54, 896, 1797, 13945, 60, 800, 3726, 3726, 786, 31, 41, 40, 5476, 29, 21, 12321, 88, 53, 16, 33, 7534, 28, 14740, 16, 21, 2109, 9, 1555, 24, 25, 52, 1174, 186, 18074, 2829, 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...
UpdatePanelAnimationExtender - Resize not working === This is the page that I'm having. But the resize part in the <OnUpdated> section does not seem to be working. I copied most of the code from the [Ajax site][1]. I placed a alert() in the <ScriptAction> tag (line 108) to find the value of 'b._originalHeight' and it shows up as '44'. I have also tried the code in the above-said tutorial (line 132) and that did not work either. (I'm not sure where it is getting this value from. But I need it to show all the controls on the form. <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddEditContest.ascx.cs" Inherits="TMPInternational.Spawn2DotComAdmin.Contest.UserControls.AddEditContest" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="uc" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> <%@ Register TagPrefix="ew" Assembly="eWorld.UI, Version=1.9.0.0, Culture=neutral, PublicKeyToken=24d65337282035f2" Namespace="eWorld.UI" %> <h1 style="margin-left:8px">Add/Edit Contest</h1> <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" /> <div style="text-align:left;width:500px; margin-left:8px"> <div id="PanelContainer"> <asp:UpdatePanel ID="AddEditContestUpdatePanel" runat="server" UpdateMode="Always"> <ContentTemplate> <div id="background" style="text-align:left; height: 44px;"> <asp:Panel ID="ContestList" runat="server"> <asp:datagrid AllowSorting="false" id="ContestGrid" GridLines="None" CellPadding="5" Width="100%" AutoGenerateColumns="False" AlternatingItemStyle-BackColor="#cccccc" HeaderStyle-Font-Size="15px" HeaderStyle-Font-Bold="true" HeaderStyle-BackColor="#888f9b" Runat="server" AllowPaging="True" PageSize="10" PagerStyle-NextPageText="Next >>" PagerStyle-PrevPageText="<< Back" > <Columns> <asp:HyperLinkColumn DataNavigateUrlField="ContestID" DataNavigateUrlFormatString="../?Load=AddEditContest&Type=Edit&ContestID={0}" DataTextField="Title" ItemStyle-width="30%" headertext="Contest Title" /> <asp:BoundColumn DataField="StartDate" ItemStyle-Width="35%" HeaderText="Start Date" /> <asp:BoundColumn DataField="EndDate" ItemStyle-Width="35%" HeaderText="End Date" /> </Columns> </asp:datagrid> <div style="text-align:right;"> <asp:ImageButton ID="AddContest" runat="server" ImageUrl="~/Contest/Images/Add.png" AlternateText="Add Contest" onclick="AddContest_Click" /> </div> </asp:Panel> <asp:Panel ID="FieldsPanel" runat="server"> <p /><b>Title</b> <br /> <asp:TextBox Runat="server" id="TitleText" /> <asp:RequiredFieldValidator id="TitleValidator" runat="server" ForeColor="Red" ErrorMessage="Please add a title" ControlToValidate="TitleText">*</asp:RequiredFieldValidator> <p /><b>Contest Description</b> <br /> Use HTML tags to format this area. Start paragraphs with &lt;p /&gt; tag, bold items with &lt;b&gt;&lt;/b&gt; tags. Create a line-break between lines with one &lt;br /&gt; tag.<br /> <asp:TextBox Runat="server" ID="DescriptionText" TextMode="MultiLine" Width="400" Height="200" /> <asp:RequiredFieldValidator id="DescriptionValidator" runat="server" ErrorMessage="Please add a description" ControlToValidate="DescriptionText" ForeColor="Red">*</asp:RequiredFieldValidator> <p /> <b>Contest Start Date</b> <br /> <ew:CalendarPopup id="StartDate" runat="server" Text="Change Date" Width="75px" MonthYearArrowImageUrl="~/Images/monthchange.gif" CalendarLocation="Left" ControlDisplay="TextBoxImage" ImageUrl="~/Images/calendar.gif" MonthYearPopupApplyText="Select" CalendarWidth="150" UseExternalResource="True" ExternalResourcePath="~/Scripts/CalendarPopup.js" Nullable="False"> <WeekdayStyle Font-Names="Arial" ForeColor="Black" BackColor="White" Font-Size="9pt" /> <MonthHeaderStyle Font-Size="9pt" Font-Names="Arial" Font-Bold="True" ForeColor="White" BackColor="#669AC1" /> <OffMonthStyle ForeColor="Gray" BackColor="White" Font-Size="9pt" /> <GoToTodayStyle Font-Names="Arial" ForeColor="Black" BackColor="White"/> <TodayDayStyle Font-Bold="True" ForeColor="#669AC1" BackColor="White" /> <DayHeaderStyle Font-Size="9pt" Font-Names="Arial" Font-Bold="True" ForeColor="Blue" BackColor="White" /> <WeekendStyle Font-Names="Arial" ForeColor="Blue" BackColor="LightGray" Font-Size="9pt" /> <SelectedDateStyle Font-Bold="True" ForeColor="White" BackColor="#669AC1" Font-Size="9pt"/> <HolidayStyle Font-Names="Arial" ForeColor="Black" BackColor="White" /> </ew:CalendarPopup> &nbsp; <ew:TimePicker id="StartTime" runat="server" ControlDisplay="TextboxImage" Text="Change Time" ImageUrl="~/Images/clock.gif" NumberOfColumns="4" Scrollable="True" Width="75px"> <TimeStyle ForeColor="Blue" BackColor="White" Font-Size="9pt" /> <SelectedTimeStyle ForeColor="Blue" BackColor="Gray" /> </ew:TimePicker> <p/><b>Contest End Date</b> <br /> <ew:CalendarPopup id="EndDate" runat="server" Text="Change Date" Width="75px" MonthYearArrowImageUrl="~/Images/monthchange.gif" CalendarLocation="Left" ControlDisplay="TextBoxImage" ImageUrl="~/Images/calendar.gif" MonthYearPopupApplyText="Select" CalendarWidth="150" UseExternalResource="True" ExternalResourcePath="~/Scripts/CalendarPopup.js" Nullable="False"> <WeekdayStyle Font-Names="Arial" ForeColor="Black" BackColor="White" Font-Size="9pt" /> <MonthHeaderStyle Font-Size="9pt" Font-Names="Arial" Font-Bold="True" ForeColor="White" BackColor="#669AC1" /> <OffMonthStyle ForeColor="Gray" BackColor="White" Font-Size="9pt" /> <GoToTodayStyle Font-Names="Arial" ForeColor="Black" BackColor="White"/> <TodayDayStyle Font-Bold="True" ForeColor="#669AC1" BackColor="White" /> <DayHeaderStyle Font-Size="9pt" Font-Names="Arial" Font-Bold="True" ForeColor="Blue" BackColor="White" /> <WeekendStyle Font-Names="Arial" ForeColor="Blue" BackColor="LightGray" Font-Size="9pt" /> <SelectedDateStyle Font-Bold="True" ForeColor="White" BackColor="#669AC1" Font-Size="9pt"/> <HolidayStyle Font-Names="Arial" ForeColor="Black" BackColor="White" /> </ew:CalendarPopup> &nbsp; <ew:TimePicker id="EndTime" runat="server" ControlDisplay="TextboxImage" Text="Change Time" ImageUrl="~/Images/clock.gif" NumberOfColumns="4" Scrollable="True" Width="75px"> <TimeStyle ForeColor="Blue" BackColor="White" Font-Size="9pt" /> <SelectedTimeStyle ForeColor="Blue" BackColor="Gray" /> </ew:TimePicker> <p /> <asp:ImageButton ID="SaveContestButton" runat="server" AlternateText="Confirm" ImageUrl="~/Contest/Images/Confirm.png" onclick="SaveContestButton_Click" /> </asp:Panel> <br /> <asp:Label ID="MessageLabel" runat="server" /> </div> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="SaveContestButton" EventName="Click" /> </Triggers> </asp:UpdatePanel> </div> <uc:UpdatePanelAnimationExtender ID="upae" BehaviorID="animation" runat="server" TargetControlID="AddEditContestUpdatePanel"> <Animations> <OnUpdating> <Sequence> <%-- Store the original height of the panel --%> <ScriptAction Script="var b = $find('animation'); b._originalHeight = b._element.offsetHeight;" /> <%-- Disable all the controls --%> <Parallel duration="0"> <EnableAction AnimationTarget="SaveDefaultDescriptionButton" Enabled="false" /> </Parallel> <StyleAction Attribute="overflow" Value="hidden" /> <%-- Do each of the selected effects --%> <Parallel duration=".25" Fps="30"> <FadeOut AnimationTarget="PanelContainer" minimumOpacity=".2" /> <Resize Height="0px" /> </Parallel> </Sequence> </OnUpdating> <OnUpdated> <Sequence> <%-- Do each of the selected effects --%> <Parallel duration=".25" Fps="30"> <FadeIn AnimationTarget="PanelContainer" minimumOpacity=".2" /> <Length duration="2" fps="40" Property="style" PropertyKey="height" StartValue="10" EndValueScript="$get('animation').offsetHeight" AnimationTarget="animation" /> <%--Also tried the below <Resize HeightScript="$find('animation')._originalHeight" /> --%> </Parallel> <%-- Enable all the controls --%> <Parallel duration="0"> <EnableAction AnimationTarget="SaveDefaultDescriptionButton" Enabled="true" /> </Parallel> </Sequence> </OnUpdated> </Animations> </uc:UpdatePanelAnimationExtender> </div> [1]: http://www.asp.net/ajax/ajaxcontroltoolkit/samples/UpdatePanelAnimation/UpdatePanelAnimation.aspx
0
[ 2, 11100, 16660, 15945, 79, 857, 1706, 38, 13630, 13, 8, 302, 10454, 52, 638, 800, 3726, 3726, 48, 25, 14, 2478, 30, 31, 22, 79, 452, 9, 47, 14, 302, 10454, 141, 19, 14, 13, 1, 218, 576, 43, 1669, 1, 1050, 630, 52, 2260, 20,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to sort gridview by column containing nullable integer? === I have a GridView where one column is bound to an object property containing a nullable integer. I set SortExpression to the name of the property, and sorting works perfectly as long as all rows contain a value. If any rows contain null, however, I get an exception: System.InvalidOperationException : Failed to compare two elements in the array. Object reference not set to an instance of an object. How do I customize the sorting or comparison logic to handle the null case?
0
[ 2, 184, 20, 2058, 7354, 4725, 34, 4698, 3503, 16203, 579, 13820, 60, 800, 3726, 3726, 31, 57, 21, 7354, 4725, 113, 53, 4698, 25, 4138, 20, 40, 3095, 1354, 3503, 21, 16203, 579, 13820, 9, 31, 309, 2058, 28993, 20, 14, 204, 16, 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...
Pros and Cons of Developing on a VM on a PC === I recently build myself a semi beef up PC (Q9450, 8GB DDR2 1066, 1TB HDD, Dual 8600GT, Vista Ultimate and Dual 22' Monitors) and I'm evaluating whether i should develop on a VPC/VMWare session on top of Vista or not? One benefit i can see is that i can run the same VM on my Vista laptop so my development environment is the same on any of my machines. I also plan on purchasing a MBP before the end of the year as well. Found a couple of articles online that semi-help [Here](http://www.devx.com/vmspecialreport/Article/30410/1954) Any other thoughts would be really appreciated?
0
[ 2, 895, 18, 17, 11608, 16, 3561, 27, 21, 13, 20147, 27, 21, 5168, 800, 3726, 3726, 31, 1989, 1895, 992, 21, 1922, 12500, 71, 5168, 13, 5, 1251, 4588, 2290, 15, 469, 11400, 13, 43, 3807, 135, 332, 3526, 15, 137, 11872, 8590, 43, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Naked Objects. Good or Bad === I have recently been exposed to naked objects. It looks like a pretty decent framework. However I do not see it in widespread use like say, Spring. So why is this framework not getting any mainstream application credit. What are its shortcomings as you see?
0
[ 2, 5426, 3916, 9, 254, 54, 896, 800, 3726, 3726, 31, 57, 1989, 74, 5043, 20, 5426, 3916, 9, 32, 1879, 101, 21, 1772, 12238, 6596, 9, 207, 31, 107, 52, 196, 32, 19, 6025, 275, 101, 395, 15, 1573, 9, 86, 483, 25, 48, 6596, 52,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
Is it ok to use a css reset stylesheet? === I'm starting a new web project and I was planning to use a css reset stylesheet to have the same starting point styles in all major browsers. Have you used css resets? Would you recomment it?
4
[ 2, 25, 32, 5854, 20, 275, 21, 272, 18, 18, 23422, 1034, 17627, 60, 800, 3726, 3726, 31, 22, 79, 1422, 21, 78, 2741, 669, 17, 31, 23, 2334, 20, 275, 21, 272, 18, 18, 23422, 1034, 17627, 20, 57, 14, 205, 1422, 454, 6443, 19, 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...
Best Voice Compression Algorythims/Formats === We have some raw voice audio that we need to distribute over the internet. We need decent quality, but it doesn't need to be of musical quality. Our main concern is usability by the consumer (i.e. what and where they can play it) and size of the download. My experience has shown that mp3s do not produce the best compression numbers for voice audio, but I am at a loss for what the best alternatives are. Ultimately we would like to automate the conversion process to allow the consumer to choose the quality vs. size level that they would like.
0
[ 2, 246, 430, 14864, 493, 839, 622, 96, 1660, 18, 118, 23588, 18, 800, 3726, 3726, 95, 57, 109, 4333, 430, 4023, 30, 95, 376, 20, 14751, 84, 14, 2620, 9, 95, 376, 12238, 2190, 15, 47, 32, 1437, 22, 38, 376, 20, 44, 16, 1457, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 declare a multi-column PK in MySQL === I'm trying to create a table with two columns comprising the primary key in MySQL, but I can't figure out the syntax. I understand single-column PKs, but the syntax isn't the same to create a primary key with two columns.
0
[ 2, 184, 107, 31, 10123, 21, 1889, 8, 716, 4404, 103, 13, 17244, 19, 51, 18, 22402, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 21, 859, 29, 81, 7498, 10026, 14, 1256, 1246, 19, 51, 18, 22402, 15, 47, 31, 92, 22, 38, 1465, 70...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
(Compiled in/kernel module/inexistent device drivers) in linux === How can I know which device driver controls a specific device? For instance, lspci on a server(PowerEdge 2900) gives: 00:00.0 Host bridge: Intel Corporation 5000X Chipset Memory Controller Hub (rev 12)<br/> 00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 2 (rev 12)<br/> 00:03.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3 (rev 12)<br/> 00:04.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 4 (rev 12)<br/> 00:05.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 5 (rev 12)<br/> 00:06.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 6-7 (rev 12)<br/> 00:07.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 7 (rev 12)<br/> 00:08.0 System peripheral: Intel Corporation 5000 Series Chipset DMA Engine (rev 12)<br/> 00:10.0 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev 12)<br/> 00:10.1 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev 12)<br/> 00:10.2 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev 12)<br/> 00:11.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev 12)<br/> 00:13.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev 12)<br/> 00:15.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev 12)<br/> 00:16.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev 12)<br/> 00:1c.0 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 1 (rev 09)<br/> 00:1d.0 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1 (rev 09)<br/> 00:1d.1 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2 (rev 09)<br/> 00:1d.2 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3 (rev 09)<br/> 00:1d.3 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #4 (rev 09)<br/> 00:1d.7 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller (rev 09)<br/> 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9)<br/> 00:1f.0 ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller (rev 09)<br/> 00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller (rev 09)<br/> 00:1f.2 IDE interface: Intel Corporation 631xESB/632xESB/3100 Chipset SATA IDE Controller (rev 09)<br/> 01:00.0 PCI bridge: Intel Corporation 80333 Segment-A PCI Express-to-PCI Express Bridge<br/> 01:00.2 PCI bridge: Intel Corporation 80333 Segment-B PCI Express-to-PCI Express Bridge<br/> 02:0e.0 RAID bus controller: Dell PowerEdge Expandable RAID controller 5<br/> 04:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev c3)<br/> 05:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)<br/> 06:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Upstream Port (rev 01)<br/> 06:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge (rev 01)<br/> 07:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E1 (rev 01)<br/> 07:01.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E2 (rev 01)<br/> 08:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev c3)<br/> 09:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)<br/> 0b:02.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)<br/> 0b:02.1 Input device controller: Creative Labs SB Audigy Game Port (rev 03)<br/> 0b:02.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port<br/> 10:0d.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02)<br/> how can I find:<br/> * which device driver(kernel module) controls each device?<br/> * which device is controled by a device driver compiled _in_ the kernel (and not as a module)<br/> * which device doesn't have a device driver (compiled in or as a module)?<br/>
0
[ 2, 13, 5, 11103, 49, 1294, 19, 118, 2429, 7440, 12613, 118, 108, 20788, 3646, 5783, 6, 19, 13024, 800, 3726, 3726, 184, 92, 31, 143, 56, 3646, 2425, 8671, 21, 1903, 3646, 60, 26, 4851, 15, 644, 3401, 1892, 27, 21, 8128, 5, 9844,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
NUnit: Running multiple assertions in a single test === I have been asked to write a testing application that needs to test a new stored procedure on multiple rows in a database, in essence I want to do something like this: <pre> <code> [Test] public void TestSelect() { foreach(id in ids) { DataTable old = Database.call("old_stored_proc",id); DataTable new_ = Database.call("new_stored_proc",id); Assert.AreEqual(old.Rows[0]["column"],ne_.Rows[0]["column"]); } } </code> </pre> When I run this test, if 1 row doesn't match the other, the entire test fails; instead I would like to count how many times the assertion was passed and how many times it has failed. Is there a way to do this with NUnit? I realize that NUnit might be overkill and this is a simple task without it...I just wanted to learn it. ;)
0
[ 2, 10210, 242, 45, 946, 1886, 20878, 18, 19, 21, 345, 1289, 800, 3726, 3726, 31, 57, 74, 411, 20, 2757, 21, 4431, 3010, 30, 2274, 20, 1289, 21, 78, 8214, 7004, 27, 1886, 11295, 19, 21, 6018, 15, 19, 11887, 31, 259, 20, 107, 30...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Problems executing compiled 3.5 code on a server which only has the 2.0 framework. === I can't seem to get my application up and running on my dev server and I'm not sure why. I have compiled my code in VS 2008 with a target framework of 3.5. I am using 3.5 mainly because I have implemented LINQ rather extensively. Compiling and runs local without any problems. The hang up is that my server only has the 2.0 .Net framework and upgrading to 3.5 is apparently not going to happen. I was under the impression after doing some research that as long as I was trying to execute compiled code the server would not need 3.5 installed. Today I am trying to publish to the server and I can't get past this error in my WEB.CONFIG Configuration Error Parser Error Message: Child nodes not allowed. providerOption name="CompilerVersion" value="v3.5"/
0
[ 2, 1716, 25836, 9316, 203, 9, 264, 1797, 27, 21, 8128, 56, 104, 63, 14, 172, 9, 387, 6596, 9, 800, 3726, 3726, 31, 92, 22, 38, 2260, 20, 164, 51, 3010, 71, 17, 946, 27, 51, 9664, 8128, 17, 31, 22, 79, 52, 562, 483, 9, 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 can one create package for ClearQuest? === I am modifying ClearQuest database schema and I wonder is there a way to create a package for future deployment. If there isn't what are best practices for tracking and deployment of schema modifications?
0
[ 2, 184, 92, 53, 1600, 6030, 26, 1207, 10351, 60, 800, 3726, 3726, 31, 589, 17579, 68, 1207, 10351, 6018, 23874, 17, 31, 2666, 25, 80, 21, 161, 20, 1600, 21, 6030, 26, 1022, 10475, 9, 100, 80, 2532, 22, 38, 98, 50, 246, 5242, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Should a project manager enforce coding standards? === Running a team of about 10 developers, mostly working in their own components, is it absolutely needed to force certain coding standards. Example 1 in function names: perform_action vs performAction vs PerformAction Example 2 in Using hungarian notation vs not. The reason I would not like to force coding standards is because each of these developers have 10+ years of experience and have their own clean way of doing things. And I feel that everyone can understand each others coding standards. Also we use some third party libraries that will never fit into our coding standards. I just have the feeling that forcing a coding standard is not as important as people make it. And people probably waste way too much time trying to make the code look like the coding standards perfectly. Also it is easy to identify certain sections of code based on which coding standards are used when they are different.
4
[ 2, 378, 21, 669, 1382, 16525, 13, 15458, 3364, 60, 800, 3726, 3726, 946, 21, 173, 16, 88, 332, 10168, 15, 1555, 638, 19, 66, 258, 5090, 15, 25, 32, 6916, 851, 20, 558, 1200, 13, 15458, 3364, 9, 823, 137, 19, 1990, 1817, 45, 29...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL Server: Check if table exists === I would like this to be the ultimate discussion on how to check if a table exists in SQL Server 2000/2005 using SQL Statement. When you Google for the answer, you get so many different answers. Is there an official/backward & forward compatible way of doing it? Here are two ways to start discussion: IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE' AND TABLE_NAME='mytablename') SELECT 1 AS res ELSE SELECT 0 AS res; IF OBJECT_ID (N'".$table_name."', N'U') IS NOT NULL SELECT 1 AS res ELSE SELECT 0 AS res; It's a shame it's so hard to figure out, since MySQL provides a nice SHOW TABLES LIKE '%tablename%'; statement.
0
[ 2, 4444, 255, 8128, 45, 2631, 100, 859, 5636, 800, 3726, 3726, 31, 83, 101, 48, 20, 44, 14, 6612, 5460, 27, 184, 20, 2631, 100, 21, 859, 5636, 19, 4444, 255, 8128, 824, 118, 2835, 568, 4444, 255, 3331, 9, 76, 42, 8144, 26, 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...
Access to old, no longer available, Feed entries. === I am working on a project that requires reliable access to historic feed entries not necessarily available in the current feed of the website. I have found several ways to access such data, but none of them give me all the characteristics I need. Look at this as a brainstorm. I will tell you how much I have found and you can contribute if you have any other ideas. 1. Google AJAX Feed API [http://code.google.com/apis/ajaxfeeds/] - will limit you to 250 items 2. Unofficial Google Reader API [http://www.niallkennedy.com/blog/2005/12/google-reader-api.html] - Perfect but unofficial and therefore unreliable (and perhaps quasi-illegal?). Also, the authentication seems to be tricky. 3. Spinn3r [http://spinn3r.com/] - Costs a lot of money 4. Spidering the internet archive at the site of the feed [www.archive.org] - Lots of complexity, spotty coverage, only useful as a last resort 5. Yahoo! Feed API [http://www.niallkennedy.com/blog/2005/12/my-yahoo-feed-a.html], Yahoo! Search BOSS [http://developer.yahoo.com/search/boss/] - The first looks more like an aggregator, meaning i'd need a different registration for each feed and the second should give more access to yahoo's data but i can find no mention of feeds. 6. other search engines/blog search/whatever? This is a really irritating problem as we are talking about semantic information that was once out there, is still (usually) valid, yet is difficult to access reliably, freely and without limits. Anybody know any alternative sources for feed entry goodness?
0
[ 2, 1381, 20, 315, 15, 90, 1045, 904, 15, 4063, 11399, 9, 800, 3726, 3726, 31, 589, 638, 27, 21, 669, 30, 4781, 11398, 1381, 20, 1310, 4063, 11399, 52, 9324, 904, 19, 14, 866, 4063, 16, 14, 2271, 9, 31, 57, 216, 238, 2847, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to prevent the VB6 compiler from shuffling the contents of files? === For reasons unknown, the VB6 compiler often likes to reorder the contents of .vbp files and the control descriptor block at the top of .frm files (The code that describes the properties of controls on the form. Code that you don't see in the IDE but you do see in a text editor and *when doing diffs against the previous revision in version control*.). This is monumentally annoying and very distracting when comparing revisions of a file. Is there a way to prevent this?
0
[ 2, 25, 80, 21, 161, 20, 2501, 14, 13, 20468, 379, 21486, 37, 26588, 14, 8478, 16, 6488, 60, 800, 3726, 3726, 26, 2932, 2562, 15, 14, 13, 20468, 379, 21486, 478, 101, 18, 20, 302, 7861, 14, 8478, 16, 13, 9, 20468, 306, 6488, 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...
Visual Studio database project designers === I have this huge legacy database that I'm trying to get under source control. I looked around here on stackoverflow and decided to use the Visual Studio 2008 database project, then committing stuff on svn. I successfully imported the schema into the project, but I can't find any way to use the user-friendly table designers with this kind of project. Whenever I open a table, it opens the DDL definition. I need the designers, otherwise I won't get buy-in from the team. Any suggestions/workarounds?
0
[ 2, 3458, 1120, 6018, 669, 12760, 800, 3726, 3726, 31, 57, 48, 2329, 7780, 6018, 30, 31, 22, 79, 749, 20, 164, 131, 1267, 569, 9, 31, 292, 140, 235, 27, 7566, 2549, 9990, 17, 868, 20, 275, 14, 3458, 1120, 570, 6018, 669, 15, 94...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Loading Assemblies into seperate AppDomain, getting InvalidCastException === I'm trying to load assemblies in a separate app domain, but am running into a very strange problem. Here's some code: public static void LoadAssembly(string assemblyPath) { string pathToDll = Assembly.GetCallingAssembly().CodeBase; AppDomainSetup domainSetup = new AppDomainSetup { PrivateBinPath = pathToDll }; AppDomain newDomain = AppDomain.CreateDomain("AssemblyLoader",null,domainSetup); AssemblyLoader loader = (AssemblyLoader)newDomain.CreateInstanceFromAndUnwrap( pathToDll, typeof(AssemblyLoader).FullName); } AssemblyLoader is another class in the same assembly as this one, and it inherits from MarshalByRef, however for some strange reason, I get a cast exception every time I try to run this. I even hardcoded the path to the DLL instead of using GetCallingAssembly().CodeBase yet I keep getting this exception. I understand it's hard to answer a question like this without actually seeing it and having more information, but maybe someone has run into a similar situation and would know the common "gotchas" and what I should look out for.
0
[ 2, 12797, 21066, 77, 10332, 106, 1373, 4865, 537, 6232, 15, 1017, 16671, 6146, 10066, 872, 800, 3726, 3726, 31, 22, 79, 749, 20, 6305, 21066, 19, 21, 1725, 4865, 4603, 15, 47, 589, 946, 77, 21, 253, 2578, 1448, 9, 235, 22, 18, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I add Dispose functionality to a C# UserControl? === I have a class which implements UserControl. In .NET 2005, a Dispose method is automatically created in the MyClass.Designer.cs partial class file that looks like this: protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } If I want to add my own Dispose functionality, where would I put it? Since this file is generated, I don't want to add code here and risk it getting blown away.
0
[ 2, 184, 107, 31, 3547, 17913, 18548, 20, 21, 272, 5910, 4155, 12898, 60, 800, 3726, 3726, 31, 57, 21, 718, 56, 8713, 18, 4155, 12898, 9, 19, 13, 9, 2328, 812, 15, 21, 17913, 2109, 25, 7499, 679, 19, 14, 51, 1898, 9, 19862, 106...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should the Network Service Account receive temp file permissions by default? === Recently I was working with generating a PDF from Crystal Reports through a webform. It was failing, which I determined to be caused by the permissions settings on the c:\windows\temp dir. I gave the Network Service account full access to this folder, which promptly fixed the issue. But is there a reason the Network Service account didn't have these permissions by default? Rick Strahl asks this question [here][1]. It sounds like there shouldn't be any issues with doing this, but Rick wasn't clear on why the default is set that way. [1]: http://west-wind.com/WebLog/posts/112111.aspx
0
[ 2, 378, 14, 982, 365, 2176, 2588, 13, 9577, 3893, 5572, 18, 34, 12838, 60, 800, 3726, 3726, 1989, 31, 23, 638, 29, 13500, 21, 13, 11124, 37, 4282, 2813, 120, 21, 2741, 4190, 9, 32, 23, 7250, 15, 56, 31, 2734, 20, 44, 1497, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How best to modify my model in Spring MVC if I care about IOC === I am building an application using Spring MVC. I want to make certain changes to my Model for every Controller in the application. In particular, I want to insert certain extra data into the model which will be present for all pages of the application. I could do this several ways: just add the data at the end of every Controller, use a subclass of Model that adds my extra data, use a subclass of ModelAndView that wraps my Model, use a subclass of VelocityView that wraps the Model before using it... I'm sure there are other options. But I have an "elegance" constraint: I don't want to write code in each and every Controller, I want this behavior defined in [one-and-only-one][1] place. Ideally, it would be controlled by my IOC bean config file. Does anyone have a recommendation of how to achieve this elegantly? [1]: http://en.wikipedia.org/wiki/Don%27t_repeat_yourself
0
[ 2, 184, 246, 20, 17579, 51, 1061, 19, 1573, 307, 8990, 100, 31, 781, 88, 31, 2499, 800, 3726, 3726, 31, 589, 353, 40, 3010, 568, 1573, 307, 8990, 9, 31, 259, 20, 233, 1200, 1693, 20, 51, 1061, 26, 352, 9919, 19, 14, 3010, 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...
Where do you get your application sounds from? === Specifically for prompts, message boxes etc. Thanks
0
[ 2, 113, 107, 42, 164, 154, 3010, 2795, 37, 60, 800, 3726, 3726, 3524, 26, 11443, 13531, 15, 2802, 8120, 2722, 9, 3669, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Bindable Linq vs. Continuous Linq === Does anybody know and can explain the major difference between Bindable Linq and Continuous Linq? •Bindable LINQ: www.codeplex.com/bindablelinq •Continuous LINQ: www.codeplex.com/clinq
0
[ 2, 10193, 579, 6294, 1251, 4611, 9, 6357, 6294, 1251, 800, 3726, 3726, 630, 11181, 143, 17, 92, 3271, 14, 394, 2841, 128, 10193, 579, 6294, 1251, 17, 6357, 6294, 1251, 60, 13, 1, 4772, 43, 579, 6294, 1251, 45, 13, 6483, 9, 9375, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Migration To Trac === We are managing our development with Subversion over HTTPS, Bugzilla, and Mediawiki. Some of our developers have expressed an interest in migrating to Trac, so I have to evaluate what the cost of doing so would be. For both the wiki and bugzilla, we would need to either migrate the existing data into Trac or a way to integrate with trac. Having two apps to create wiki pages or log bugs would not be acceptable. Also, currently each of these applications requires a separate sign on so we would need to map each of these accounts into Trac. So know of any easy methods of importing or integrating these systems with Trac and/or a tutorial for doing so?
0
[ 2, 8443, 20, 13, 38, 5797, 800, 3726, 3726, 95, 50, 5616, 318, 522, 29, 972, 10898, 84, 7775, 18, 15, 6256, 380, 3247, 15, 17, 941, 17375, 9, 109, 16, 318, 10168, 57, 3741, 40, 1163, 19, 28749, 20, 13, 38, 5797, 15, 86, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Linux - Using ldconfig === Let's say I 've added a library foo.so.1.1.1 to a path that is included in /etc/ld.so.conf When I run ldconfig on the system I get the links foo.so.1.1 and foo.so.1 to foo.so.1.1.1 How can I change the behavior to also get the foo.so link to foo.so.1.1.1?
0
[ 2, 13024, 13, 8, 568, 13, 6252, 14093, 2816, 800, 3726, 3726, 408, 22, 18, 395, 31, 13, 22, 195, 905, 21, 1248, 4310, 111, 9, 656, 9, 165, 9, 165, 9, 165, 20, 21, 2013, 30, 25, 506, 19, 13, 118, 1198, 150, 118, 6252, 9, 65...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 INSERT an array of values in SQL Server 2005? === How do I write the SQL code to INSERT (or UPDATE) an array of values (with probably an attendant array of fieldnames, or with a matrix with them both) without simple iteration?
0
[ 2, 184, 20, 14692, 40, 7718, 16, 4070, 19, 4444, 255, 8128, 812, 60, 800, 3726, 3726, 184, 107, 31, 2757, 14, 4444, 255, 1797, 20, 14692, 13, 5, 248, 11100, 6, 40, 7718, 16, 4070, 13, 5, 1410, 910, 40, 13980, 7718, 16, 575, 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, 0, 0, 0...
Will targeting IE8 with conditional comments work? === When IE8 is released, will the following code work to add a conditional stylesheet? <!--[if IE 8]> <link rel="stylesheet" type="text/css" href="ie-8.0.css" /> <![endif]--> I've read conflicting reports as to whether this works with the beta. I'm hoping someone can share their experience. Thanks.
0
[ 2, 129, 15972, 13, 660, 457, 29, 21206, 7534, 170, 60, 800, 3726, 3726, 76, 13, 660, 457, 25, 261, 15, 129, 14, 249, 1797, 170, 20, 3547, 21, 21206, 1034, 17627, 60, 13, 1, 187, 8, 8, 2558, 821, 13, 660, 469, 500, 1, 13, 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 are some effective organization strategies? === As a programmer, I am very organized with code, but find creating order in the area around me difficult. In particular, papers accumulate around me, and I just focus more on the computer and less on my surroundings. However, now that I have been laid off and am looking at starting my own business, I understand this is unacceptable. So - what are some effective organization practices that you employ? Especially as it relates to paper mess, or other business organization. **Most useful format for answers**: Please provide 1 post for each strategy, and elaborate as needed. **Note**: to those tempted to close this as not-programming related, please bear in mind that issues of personal startup are of interest to programmers, just as the kind of mouse or chair a programmer uses are of interest. So I believe this is a valid question. Thanks!
2
[ 2, 98, 50, 109, 3140, 1165, 10272, 60, 800, 3726, 3726, 28, 21, 17968, 15, 31, 589, 253, 2518, 29, 1797, 15, 47, 477, 2936, 389, 19, 14, 217, 140, 55, 1956, 9, 19, 1498, 15, 3747, 25481, 140, 55, 15, 17, 31, 114, 1776, 91, 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 to change NSIS Error message about CRC Check === Some of my users are complaining about some odd errors my installers had after downloading them from my web server. This are NSIS installer that when downloaded came crippled or incomplete (usually because of slow Internet connections), the message is very clear "The installer you are trying to use is corrupted or incomplete....." IN ENGLISH!! (Did I mention my users only speak Spanish?). How do I change the language or create custom error messages? I already create the installer in Spanish by using: ; Language files !insertmacro MUI_LANGUAGE "Spanish" Any Idea?
0
[ 2, 184, 20, 753, 13, 103, 4557, 7019, 2802, 88, 6186, 150, 2631, 800, 3726, 3726, 109, 16, 51, 3878, 50, 20154, 88, 109, 4210, 11908, 51, 16146, 445, 41, 75, 7121, 68, 105, 37, 51, 2741, 8128, 9, 48, 50, 13, 103, 4557, 16146, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Any problems with SVN merge on a multi column ( tab delimited ) text file? === I have a multi-column text file ( tab delimited ) that I use for localized text in my project. I picked this format since it can easily be edited by anyone in most text editors (and excel too). My makefile processes it into a bunch of defines and binary data for including directly into my app. Do you know if SVN merge only does line by line merging or can it so sub-line merging too? For example: Original File ( untranslated ) contains: DEFINE ENGLISH GERMAN FRENCH STRING_YES YES *YES* *YES* STRING_NO NO *NO* *NO* Then the french tranlator updates it: DEFINE ENGLISH GERMAN FRENCH STRING_YES YES *YES* OUI STRING_NO NO *NO* NON Then the german tranlator updates it: DEFINE ENGLISH GERMAN FRENCH STRING_YES YES JA *YES* STRING_NO NO NEIN *NO* Then they both merge the results back int SVN, so will they overwrite each others changes or can it handle mulitple changes on a line?
0
[ 2, 186, 1716, 29, 13, 18, 16578, 12666, 27, 21, 1889, 4698, 13, 5, 6523, 121, 23012, 13, 6, 1854, 3893, 60, 800, 3726, 3726, 31, 57, 21, 1889, 8, 716, 4404, 103, 1854, 3893, 13, 5, 6523, 121, 23012, 13, 6, 30, 31, 275, 26, 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 can I set up a configuation file for .NET console applications? === Is it possible to use a ".net configuration" file for a .NET console application? I'm looking for an equivalent to web.config, but specifically for console applications... I can certainly roll my own, but If I can use .NET's built in configuration reader then I would like to do that...I really just need to store a connection string... Thanks
0
[ 2, 184, 92, 31, 309, 71, 21, 13, 14093, 24623, 3309, 3893, 26, 13, 9, 2328, 8650, 3767, 60, 800, 3726, 3726, 25, 32, 938, 20, 275, 21, 13, 7, 9, 2328, 8091, 7, 3893, 26, 21, 13, 9, 2328, 8650, 3010, 60, 31, 22, 79, 699, 26...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I map local branches to remote branches with different prefixes in git? === We're working with a semi-centralized git repository here where I work. Each developer has their own subtree in the central git repository, so it looks something like this: master alice/branch1 alice/branch2 bob/branch1 michael/feature release/1.0 release/1.1 Working locally in my tree I have <code>topic/feature</code>, which corresponds to <code>michael/feature</code> in the central tree. I've been using git push origin topic/feature:michael/feature to push my changes to the remote tree. However, this is cumbersome and prone to mistakes (e.g. omitting the developer name, misspelling the feature name, etc.). I'm looking for a cleaner way to do this. For instance, "<code>git push</code>". I suspect that setting a different remote with a modified fetch refspec will do it, but I'm not sure how exactly to do it. I'm also not sure how to modify my current branch definitions to use the different remote. My current <code>.git/config</code> looks something like: [remote "origin"] url = git://central/git/project fetch = +refs/heads/*:refs/remotes/origin/* [branch "topic/feature"] remote = origin merge = refs/heads/michael/project I'll continue to research this and post here if I find something, but I'm hoping to get some other good ideas.
0
[ 2, 92, 31, 2942, 375, 4395, 20, 5388, 4395, 29, 421, 14315, 160, 19, 13, 10404, 60, 800, 3726, 3726, 95, 22, 99, 638, 29, 21, 1922, 8, 6306, 1333, 13, 10404, 24869, 235, 113, 31, 170, 9, 206, 10058, 63, 66, 258, 972, 8101, 19,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Not restarting Emacs === How do I load the edited .emacs file without restarting Emacs?
0
[ 2, 52, 22767, 68, 13, 62, 6893, 18, 800, 3726, 3726, 184, 107, 31, 6305, 14, 4802, 13, 9, 62, 6893, 18, 3893, 366, 22767, 68, 13, 62, 6893, 18, 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, 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...
What is the difference between CouchDB and Lotus Notes? === I was looking into the possibility of using CouchDB. I heard that it was similar to Lotus Notes which everyone loves to hate. Is this true?
0
[ 2, 98, 25, 14, 2841, 128, 4914, 9007, 17, 15175, 2434, 60, 800, 3726, 3726, 31, 23, 699, 77, 14, 4813, 16, 568, 4914, 9007, 9, 31, 752, 30, 32, 23, 835, 20, 15175, 2434, 56, 1266, 9330, 20, 3223, 9, 25, 48, 1151, 60, 3, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Again with JPA not making sense === I asked this earlier and was to look at mapped by. > I have 2 tables: A s_id(key) name cli type > > B sa_id(key) s_id user pwd. > > So in Jpa I have: > > @Entity class A...{ > @OneToMany(fetch=FetchType.EAGER) > @JoinTable( name="A_B", > joinColumns={@JoinColumn(name="a_id", > table="a",unique=false)}, > inverseJoinColumns={@JoinColumn(name="b_id", > table="b", unique=true)} ) Collection > getB(){...} } > > class b is just a basic entity class > with no reference to A. > > Hopefully that is clear. My question > is: Do I really need a join table to > do such a simple join? Can't this be > done with a simple joincolumn or > something? So now if Have this, but jpa is trying to write the query with some new column that doesn't exist (s_s_id) @Entity class A{ ... @OneToMany(fetch=FetchType.EAGER, mappedBy="s") Collection<B> x; } @Entity class B{ @ManyToOne A s; } With these tables: A s_id(key) name cli type B sa_id(key) s_id(the keys from A) user pwd. How can I do The OneToMany and ManyToOne joins such that I don't need a new column nor a new table? Please give me an example. Is the issue the lack of a foreign key in the B table? The errors I have: If I leave out the mapped by i get this Unknown column 't1.S_S_ID' in 'field list If I put in the mapped by I get this Unknown column 'S_S_ID' in 'field list'
0
[ 2, 188, 29, 487, 1060, 52, 544, 1259, 800, 3726, 3726, 31, 411, 48, 1201, 17, 23, 20, 361, 35, 20877, 34, 9, 13, 1, 31, 57, 172, 7484, 45, 21, 13, 18, 1, 1340, 5, 4237, 6, 204, 19391, 1001, 13, 1, 13, 1, 334, 1929, 1, 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...
Fast pseudo random number generator for procedural content === I am looking for a pseudo random number generator which would be specialized to work fast when it is given a seed before generating each number. Most generators I have seen so far assume you set seed once and then generate a long sequence of numbers. The only thing which looks somewhat similar to I have seen so far is Perlin Noise, but it generates too "smooth" data - for similar inputs it tends to produce similar results. The declaration of the generator should look something like: int RandomNumber1(int seed); Or: int RandomNumber3(int seedX, int seedY, int seedZ); I think having good RandomNumber1 should be enough, as it is possible to implement RandomNumber3 by hashing its inputs and passing the result into the RandomNumber1, but I wrote the 2nd prototype in case some implementation could use the independent inputs. The intended use for this generator is to use it for procedural content generator, like generating a forest by placing trees in a grid and determining a random tree species and random spatial offsets for each location. The generator needs to be very efficient (below 500 CPU cycles), because the procedural content is created in huge quantities in real time during rendering.
0
[ 2, 1512, 8452, 5477, 234, 15286, 26, 26429, 2331, 800, 3726, 3726, 31, 589, 699, 26, 21, 8452, 5477, 234, 15286, 56, 83, 44, 7119, 20, 170, 1512, 76, 32, 25, 504, 21, 5134, 115, 13500, 206, 234, 9, 127, 20495, 31, 57, 541, 86, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Possible Memory leak in Number of Loaded classes in Java Application === I recently began profiling an osgi java application that I am writing using VisualVM. One thing I have noticed is that when the application starts sending data to a client (over JMS), the number of loaded classes starts increasing at a steady rate. The Heap size and the PermGen size remains constant, however. The number of classes never falls, even after it stops sending data. Is this a memory leak? I think it is, because the loaded classes have to be stored somewhere, however the heap and permgen never increase even after I run the application for several hours. For the screenshot of my profiling application go [here][1] [1]: http://sites.google.com/site/javaperformacescreenshot/Home/profile.png
0
[ 2, 938, 1912, 11724, 19, 234, 16, 8572, 2684, 19, 8247, 3010, 800, 3726, 3726, 31, 1989, 260, 8721, 49, 802, 40, 13, 759, 2234, 8247, 3010, 30, 31, 589, 1174, 568, 3458, 20147, 9, 53, 584, 31, 57, 2711, 25, 30, 76, 14, 3010, 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...
C++ Win32 Splash Screen Golf === Whip out your Petzold books, it's time for a quick game of Win32 golf! What's the most efficient and complete c++ Win32 code needed to...<br /> - display an 800x600x24 uncompressed bitmap image<br /> - in a window without borders (the only thing visible is the image)<br /> - that closes after ten seconds<br /> Additional comments...<br /> - MFC is NOT allowed, code must use bare Win32 API<br /> - Readability is important, comments and good variable names are encouraged<br /> - Metric for efficiency considers memory footprint and speed of execution, not source file size
0
[ 2, 272, 20512, 628, 3125, 13873, 2324, 4034, 800, 3726, 3726, 8853, 70, 154, 3170, 380, 1218, 964, 15, 32, 22, 18, 85, 26, 21, 2231, 250, 16, 628, 3125, 4034, 187, 98, 22, 18, 14, 127, 8243, 17, 1279, 272, 20512, 628, 3125, 1797...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Spring: Obtaining ResourceBundle based on MessageSource === I'm using hibernate validator framework with Spring. A class implementing the Spring Validator validates objects with Hibernate's ClassValidator. To localize ClassValidator's error messages I need to pass a ResourceBundle into the class' constructor. My ApplicationCountext has a MessageSource bean (ReloadableResourceBundleMessageSource) which is used throught the application. It makes sense to use this same MessafeSource for the ClassValidator. But how do I convert the MessageSource to a ResourceBundle? Is there any adapter class?
0
[ 2, 1573, 45, 12114, 6577, 9930, 413, 432, 27, 2802, 12097, 800, 3726, 3726, 31, 22, 79, 568, 4148, 2102, 8820, 7394, 3457, 6596, 29, 1573, 9, 21, 718, 17333, 14, 1573, 7394, 3457, 7394, 7759, 3916, 29, 4148, 2102, 8820, 22, 18, 71...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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# opensource projects === I am trying to write a Windows Form and Asp.net C# front-end and MSAcess backend for a pretty small database concept I have. I have written this app once before in just MSAcess but I now need the app and database to be in different places. I have no figured out (thanks to a StackOverflow user) that ADO will be a bad choice because it has to have a connection open all of the time. I bought Microsoft ADO.Net 2.0 Step-by-Step and have read through some of it and understand (I think) the basic concepts at play in ADO.NET. Datasets and the like. Where I get confused is the actual implementation. What I want to know is do any of you know of a C# project that has a database backend which is opensource that I can go look at the code and see how they did it. I find I learn better that way anyways. The book has a CD with code examples that I may turn to, but I would rather see real code in a real app. Thanks in advance.
0
[ 2, 272, 5910, 368, 12097, 2314, 800, 3726, 3726, 31, 589, 749, 20, 2757, 21, 1936, 505, 17, 28, 306, 9, 2328, 272, 5910, 431, 8, 2451, 17, 4235, 6174, 18, 18, 97, 2451, 26, 21, 1772, 284, 6018, 2420, 31, 57, 9, 31, 57, 642, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 you display Typing Speed using Javascript or the jQuery library? === I would like to add a typing speed indicator just below the textarea we use on our contact form. It is just for fun and to give the user some interactivity with the page while they are completing the form. It should display the average speed while typing and keep the last average when the keystrokes are idle. When they leave the textarea the last average should stick. Ideally I would like to have a jQuery plugin if it is available.
0
[ 2, 184, 92, 42, 3042, 25266, 1362, 568, 8247, 8741, 54, 14, 487, 8190, 93, 1248, 60, 800, 3726, 3726, 31, 83, 101, 20, 3547, 21, 25266, 1362, 13310, 114, 1021, 14, 1854, 17760, 95, 275, 27, 318, 2203, 505, 9, 32, 25, 114, 26, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Hiding a function. === I have a class holding complex scientific computations. It is set up to only allow a user to create a properly instantiated case. To properly test the code, however, requires setting internal state variables directly, since the reference documents supply this data in their test cases. Done improperly, however, it can invalidate the state.<p> So I must have the ability, a member function, to set internal variables from the unit test programs. But I want to <b>strongly discourage</b> normal users from calling this function. (Yes, a determined user can muck with anything... but I don't want to <i>advertise</i> that there is a way to do something <i>wrong</i>.)<p> It would be nice to be able to tell Intellisense to not show the function, for instance.<p> The best solution I have at the moment is to just name the function something like: DangerousSet().<p> What other options do I have?
0
[ 2, 5314, 21, 1990, 9, 800, 3726, 3726, 31, 57, 21, 718, 1337, 1502, 2272, 21683, 18, 9, 32, 25, 309, 71, 20, 104, 1655, 21, 4155, 20, 1600, 21, 7428, 6322, 49, 1669, 610, 9, 20, 7428, 1289, 14, 1797, 15, 207, 15, 4781, 2697, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 achieve a photo "stack" border effect with CSS? === I'd like to be able to add a class to images that adds a border that makes them look like a stack of photos. Anyone know how to do this?
0
[ 2, 184, 20, 4689, 21, 3056, 13, 7, 25325, 7, 1862, 1590, 29, 272, 18, 18, 60, 800, 3726, 3726, 31, 22, 43, 101, 20, 44, 777, 20, 3547, 21, 718, 20, 3502, 30, 10621, 21, 1862, 30, 1364, 105, 361, 101, 21, 7566, 16, 7064, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What is the simplest way to allow a user to drag and drop table rows in order to change their order? === I have a Ruby on Rails application that I'm writing where a user has the option to edit an invoice. They need to be able to reassign the order of the rows. Right now I have an index column in the db which is used as the default sort mechanism. I just exposed that and allowed the user to edit it. This is not very elegant. I'd like the user to be able to drag and drop table rows. I've used Scriptaculous and Prototype a bit and am familiar with them. I've done drag and drop lists, but haven't done table rows quite like this. Anyone have any suggestions for not only reordering but capturing the reorder efficiently? Also, the user can dynamically create a new row in JS right now, so that row has to be reorderable as well. Bonus points if it can be done with RJS instead of direct JavaScript.
0
[ 2, 98, 25, 14, 24384, 161, 20, 1655, 21, 4155, 20, 5501, 17, 2804, 859, 11295, 19, 389, 20, 753, 66, 389, 60, 800, 3726, 3726, 31, 57, 21, 10811, 27, 2240, 18, 3010, 30, 31, 22, 79, 1174, 113, 21, 4155, 63, 14, 4255, 20, 939...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Control multiple PCs with single Mouse and Keyboard === As a programmer I found it very hard to use my laptop and workstation with two different input devices, Can anyone suggest a good solution to use single mouse and keyboard to control my two machines
0
[ 2, 569, 1886, 5168, 18, 29, 345, 7567, 17, 8896, 800, 3726, 3726, 28, 21, 17968, 31, 216, 32, 253, 552, 20, 275, 51, 12294, 17, 170, 10839, 29, 81, 421, 6367, 4690, 15, 92, 1276, 5601, 21, 254, 4295, 20, 275, 345, 7567, 17, 88...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
AJAX, postbacks and browser refreshes === I have created a user control to handle adding comments to certain business entities, like contacts and customers. Works great ... except for one issue. I am using a ListView control to edit and delete comments, and a separate area, on the same user control to add a new comment. All of this is wrapped in an UpdatePanel. ![Screenshot][1] Here is my scenario ... the user adds a new comment ... the page does a postback, the data is successfully saved, and the ListView control is updated to show the new comment. Now, if the user **refreshes** the browser, it will naturally postback again and will add another duplicate record. Any ideas on how best to prevent this? [1]: http://farm4.static.flickr.com/3239/2909377399_888d42b595.jpg?v=0
0
[ 2, 20624, 15, 678, 1958, 18, 17, 16495, 24905, 160, 800, 3726, 3726, 31, 57, 679, 21, 4155, 569, 20, 3053, 4721, 7534, 20, 1200, 508, 12549, 15, 101, 11894, 17, 5279, 9, 693, 374, 13, 9, 9, 9, 1613, 26, 53, 1513, 9, 31, 589, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java Development on a Mac - Xcode, Eclipse, or Netbeans === I've been using XCode for the usual C/C++/ObjC development. I'm wondering what are practical considerations, opinions of XCode, Eclipse or NetBeans usage on a Mac for Java development? Please don't include my current usage of XCode in your analysis.
0
[ 2, 8247, 522, 27, 21, 1572, 13, 8, 993, 9375, 15, 11652, 15, 54, 4275, 863, 5950, 800, 3726, 3726, 31, 22, 195, 74, 568, 993, 9375, 26, 14, 3820, 272, 118, 150, 20512, 118, 4995, 15864, 522, 9, 31, 22, 79, 5712, 98, 50, 5713, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Script Compression/"Compilation" Tools === Are there any more generic tools that can "compile" or basically merge multiple PHP files into a single file based on includes and autoloading classes? I'm thinking of something similar to Doctrine's compiling functionality or the compiling that many of the major JS frameworks do for "production" sites to lighten the file size and improve performance. Before writing a script to do it myself, I just want to find out if anything worth looking at already exists (Google hasn't been much help so far).
0
[ 2, 3884, 14864, 118, 7, 11103, 49, 10832, 7, 4672, 800, 3726, 3726, 50, 80, 186, 91, 12733, 4672, 30, 92, 13, 7, 11103, 3599, 7, 54, 11374, 12666, 1886, 13, 26120, 6488, 77, 21, 345, 3893, 432, 27, 1103, 17, 3108, 16866, 2684, 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...
I work in SCM/build. How do I tell non-programmers what I do? === Friends/family/etc ask me what I do and it always causes me pause while I think of how to explain it. They know what a software developer is but how can I explain what SCM is in 10 words?
0
[ 2, 31, 170, 19, 4729, 79, 118, 29361, 9, 184, 107, 31, 494, 538, 8, 19746, 12271, 98, 31, 107, 60, 800, 3726, 3726, 954, 118, 13819, 118, 1198, 150, 1349, 55, 98, 31, 107, 17, 32, 550, 4047, 55, 6911, 133, 31, 277, 16, 184, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Should you worry about fake accounts/logins on a website? === I'm specifically thinking about the BugMeNot service, which provides user name and password combos to a good number of sites. Now, I realize that pay-for-content sites might be worried about this (and I would suspect that most watch for shared accounts), but how about other sites? Should administrators be on the lookout for these accounts? Should web developers do anything differently to take them into account (and perhaps prevent their use)?
0
[ 2, 378, 42, 3189, 88, 7031, 5310, 118, 1415, 17040, 27, 21, 2271, 60, 800, 3726, 3726, 31, 22, 79, 3524, 1440, 88, 14, 6256, 790, 1270, 365, 15, 56, 1927, 4155, 204, 17, 20884, 22621, 18, 20, 21, 254, 234, 16, 3259, 9, 130, 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...
WSDL URL for a WCF Service (basicHttpBinding) hosted inside a Windows Service === I am hosting a WCF service in a Windows Service on one of our servers. After making it work in basicHttpBinding and building a test client in .NET (which finally worked) I went along and try to access it from PHP using the SoapClient class. The final consumer will be a PHP site so I need to make it consumable in PHP. I got stumped when I had to enter the WSDL url in the constructor of the SoapClient class in the PHP code. Where is the WSDL? All I have is : http://172.27.7.123:8000/WordService and http://172.27.7.123:8000/WordService/mex None of these do not expose WSDL. Being a newbie in WCF I might have asked a dumb thing (or I might have a wrong assumption somewhere). Please be gentle :D And no, http://172.27.7.123:8000/WordService?wsdl does not show anything different than http://172.27.7.123:8000/WordService :( Am I forced to host it in IIS? Am I force to use a regular WebService?
0
[ 2, 619, 18, 8643, 287, 6362, 26, 21, 11801, 410, 365, 13, 5, 26467, 21127, 22260, 6, 2812, 572, 21, 1936, 365, 800, 3726, 3726, 31, 589, 10637, 21, 11801, 410, 365, 19, 21, 1936, 365, 27, 53, 16, 318, 17595, 9, 75, 544, 32, 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...
Need assistance with serial port communications in Ruby === I need to do some communications over a serial port in Ruby. From my research, it appears that there aren't many modern libraries for serial communications and the newest material I can find is from 2006. Are there any gems that I'm not aware of? I ultimately need to maintain communications with a serial device attached to USB (I can figure out the port no problem) for back and forth communications like so (somewhat Ruby-esque pseudo code). def serial_write_read if serial.read == "READY" serial.write "1" until serial.read == "OK" serial.write "5" end return when serial.read == "DONE" end end
0
[ 2, 376, 4067, 29, 5956, 1295, 3380, 19, 10811, 800, 3726, 3726, 31, 376, 20, 107, 109, 3380, 84, 21, 5956, 1295, 19, 10811, 9, 37, 51, 527, 15, 32, 1780, 30, 80, 4847, 22, 38, 151, 773, 8649, 26, 5956, 3380, 17, 14, 17175, 149...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 "unuse" a namespace? === One of the vagaries of my development system (Codegear C++Builder) is that some of the auto-generated headers insist on having... using namespace xyzzy ...statements in them, which impact on my code when I least want or expect it. Is there a way I can somehow cancel/override a previous "using" statement to avoid this. Maybe... unusing namespace xyzzy;
0
[ 2, 184, 92, 31, 13, 7, 1020, 3699, 7, 21, 204, 5582, 60, 800, 3726, 3726, 53, 16, 14, 13, 16484, 11301, 16, 51, 522, 329, 13, 5, 9375, 834, 512, 272, 20512, 20904, 6, 25, 30, 109, 16, 14, 3108, 8, 25314, 157, 445, 20061, 27,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Repeated cookie query or Storing in viewstate? Which is the better practice? === I have a internal website that users log into. This data is saved as a cookie. From there the users go on their merry way. Every so often the application(s) will query the authentication record to determine what permissions the user has. My question is this: Is it more efficent to just query the cookie for the user data when it is needed or to save the user information in viewstate?
0
[ 2, 4251, 19980, 25597, 54, 25615, 19, 1418, 3859, 60, 56, 25, 14, 574, 1345, 60, 800, 3726, 3726, 31, 57, 21, 3117, 2271, 30, 3878, 6738, 77, 9, 48, 1054, 25, 4377, 28, 21, 19980, 9, 37, 80, 14, 3878, 162, 27, 66, 14362, 161, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I GZip compress a file from Excel using VBA? === I need to be able to GZip a file in an Excel VBA function. Specifically I need to be able to use the 'deflate' algorithm. Is there a way to do this without having to exec a command line application?
0
[ 2, 184, 92, 31, 489, 2553, 306, 26060, 21, 3893, 37, 20700, 568, 566, 969, 60, 800, 3726, 3726, 31, 376, 20, 44, 777, 20, 489, 2553, 306, 21, 3893, 19, 40, 20700, 566, 969, 1990, 9, 3524, 31, 376, 20, 44, 777, 20, 275, 14, 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...
Very slow response for Visual Studio 2005 Web Site Administration Tool === I am working on an ASP.NET application and am trying to add user authentication. As a first step, I am using the Web Site Administration tool (Website | ASP.NET Configuration) to manage users and permissions. Accessing this website is incredibly slow. To load the main page takes 30 seconds. When navigating to the Security page (also 30 seconds), I am presented with this error: I have authentication mode set to "Forms" in the web.config file. ---------- There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. The following message may help in diagnosing the problem: Unable to connect to SQL Server database. ---------- It asks me to run "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe", which also gives me an error message. How do I fix these problems with speed and enabling security/users?
0
[ 2, 253, 2276, 1627, 26, 3458, 1120, 812, 2741, 689, 1603, 5607, 800, 3726, 3726, 31, 589, 638, 27, 40, 28, 306, 9, 2328, 3010, 17, 589, 749, 20, 3547, 4155, 27963, 9, 28, 21, 64, 1424, 15, 31, 589, 568, 14, 2741, 689, 1603, 56...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you stop interim solutions from lasting forever? === Say there are two possible solutions to a problem: the first is quick but hacky; the second is preferable but would take longer to implement. You need to solve the problem fast, so you decide to get the hack in place as quickly as you can, planning to start work on the better solution afterwards. The trouble is, as soon as the problem is alleviated, it plummets down the to-do list. You're still planning to put in the better solution at some point, but it's hard to justify implementing it right now. Suddenly you find you've spent five years using the less-than-perfect solution, cursing it the while. Does this sound familiar? I know it's happened more than once where I work. One colleague describes deliberately making a bad GUI so that it wouldn't be accidentally adopted long-term. Do you have a better strategy?
0
[ 2, 184, 107, 42, 747, 9997, 6776, 37, 11768, 3818, 60, 800, 3726, 3726, 395, 80, 50, 81, 938, 6776, 20, 21, 1448, 45, 14, 64, 25, 2231, 47, 11835, 93, 73, 14, 153, 25, 6369, 579, 47, 83, 247, 1045, 20, 8713, 9, 42, 376, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is F# suitable for Physics applications? === I hate Physics, but I love software development. When I go back to school after Thanksgiving, I'll be taking two more quarters of Physics before I'm done with the horrid thing. I am currently reading postings on the F# units of measurement feature, but I've never used a language like F#. Would it be suitable to write applications so I can perhaps learn something about Physics while doing something I like?
0
[ 2, 25, 398, 5910, 6445, 26, 4339, 3767, 60, 800, 3726, 3726, 31, 3223, 4339, 15, 47, 31, 339, 2306, 522, 9, 76, 31, 162, 97, 20, 116, 75, 17300, 15, 31, 22, 211, 44, 741, 81, 91, 8422, 16, 4339, 115, 31, 22, 79, 677, 29, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you enforce strong passwords? === There are many techniques to enforce strong passwords on website: - Requesting that passwords pass a regex of varying complexity - Setting the password autonomously, so that casual users have a strong password - Letting passwords expire - etc. On the other hands there are drawbacks, because all of them make life less easy for the user, meaning less registrations. So, **what techniques do you use? Which provide the best protection vs. inconvenience ratio?** *To clear things up, I am not referring to banking sites or sites that store credit cards. Think more in terms of popular (or not-so-popular) sites that still require registration.*
0
[ 2, 184, 107, 42, 16525, 966, 20884, 18, 60, 800, 3726, 3726, 80, 50, 151, 4212, 20, 16525, 966, 20884, 18, 27, 2271, 45, 13, 8, 20033, 30, 20884, 18, 1477, 21, 7953, 1706, 16, 9852, 12745, 13, 8, 2697, 14, 20884, 8087, 102, 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...
What is best way to remove duplicate lines matching regex from string using Python? === This is a pretty straight forward attempt. I haven't been using python for too long. Seems to work but I am sure I have much to learn. Someone let me know if I am way off here. Needs to find patterns, write the first line which matches, and then add a summary message for remaining consecutive lines which match pattern and return modified string. Just to be clear...regex `.*Dog.*` would take Cat Dog My Dog Her Dog Mouse and return Cat Dog ::::: Pattern .*Dog.* repeats 2 more times. Mouse #!/usr/bin/env python # import re import types def remove_repeats (l_string, l_regex): """Take a string, remove similar lines and replace with a summary message. l_regex accepts strings and tuples. """ # Convert string to tuple. if type(l_regex) == types.StringType: l_regex = l_regex, for t in l_regex: r = '' for l in l_string.splitlines(True): if l.startswith('::::: Pattern'): r = r + l else: if re.search(l_regex, l): m += 1 if m == 1: # If this is first match in a set of lines add line to file. r = r + l elif m > 1: # Else update the message string. p = "::::: Pattern '" + l_regex + "' repeats " + str(m-1) + ' more times.\n' else: if p: # Write the message string if it has value. r = r + p p = '' m = 0 r = r + 1 if p: # Write the message if loop ended in a pattern. r = r + p l_string = r # Reset string to modified string. return l_string
0
[ 2, 98, 25, 246, 161, 20, 4681, 19429, 1560, 10120, 7953, 1706, 37, 3724, 568, 20059, 60, 800, 3726, 3726, 48, 25, 21, 1772, 1599, 917, 1735, 9, 31, 2933, 22, 38, 74, 568, 20059, 26, 266, 175, 9, 2206, 20, 170, 47, 31, 589, 562...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 stack dump function === Can someone please provide an implementation of a C function that gets invoked to dump the current stack? It's for a x86 linux system. It can be invoked in 2 ways: explicitly by another function, or after a crash (probably as a trap/int handler). The output can be either to the screen or to a file, as indicated by a parameter (handle). A clear explanation/comments of how the stack is unwound would obviously be very helpful. Thank you.
0
[ 2, 272, 7566, 11424, 1990, 800, 3726, 3726, 92, 737, 2247, 1181, 40, 6123, 16, 21, 272, 1990, 30, 3049, 26252, 20, 11424, 14, 866, 7566, 60, 32, 22, 18, 26, 21, 993, 3274, 13024, 329, 9, 32, 92, 44, 26252, 19, 172, 2847, 45, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How would you compare two XML Documents? === As part of the base class for some extensive unit testing, I am writing a helper function which recursively compares the nodes of one XmlDocument object to another in C# (.NET). Some requirements of this: - The first document is the **source**, e.g. what I want the XML document to look like. Thus the second is the one I want to find differences in and it must not contain *extra* nodes not in the first document. - Must throw an exception when too many significant differences are found, and it should be easily understood by a human glancing at the description. - Child element order is important, attributes can be in any order. - Some attributes are ignorable; specifically `xsi:schemaLocation` and `xmlns:xsi`, though I would like to be able to pass in which ones are. - Prefixes for namespaces must match in both attributes and elements. - Whitespace between elements is irrelevant. - Elements will *either* have child elements *or* `InnerText`, but not both. While I'm scrapping something together: **has anyone written such code and would it be possible to share it here?** On an aside, what would you call the first and second documents? I've been referring to them as "source" and "target", but it feels wrong since the **source** is what I want the **target** to look like, else I throw an exception.
0
[ 2, 184, 83, 42, 11590, 81, 23504, 4374, 60, 800, 3726, 3726, 28, 141, 16, 14, 1000, 718, 26, 109, 3386, 1237, 4431, 15, 31, 589, 1174, 21, 448, 106, 1990, 56, 302, 24244, 102, 11590, 18, 14, 16272, 16, 53, 23504, 28132, 3095, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Null or empty string to represent no data in table column? === Null or empty string -- is one better than the other to represent no data in a table column? (I specifically use MySQL, but I'm thinking this is system-independent.) Are there major advantages/disadvantages to using one over the other, or is it simply programmer preference? Thanks!
0
[ 2, 16203, 54, 2424, 3724, 20, 3501, 90, 1054, 19, 859, 4698, 60, 800, 3726, 3726, 16203, 54, 2424, 3724, 13, 8, 8, 25, 53, 574, 119, 14, 89, 20, 3501, 90, 1054, 19, 21, 859, 4698, 60, 13, 5, 49, 3524, 275, 51, 18, 22402, 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...
Order dates by upcoming === So I build an array of various dates. Birthdays, anniversaries, and holidays. I'd like to order the array by which one is happening next, essentially sort October to September (wrapping to next year) so if my array is $a = ([0]=>"1980-04-14", [1]=>"2007-06-78", [2]=>"2008-12-25", [3]=>"1978-11-03") I'd like to sort it so it is arranged $a = ([0]=>"1978-11-03", [1]=>"2008-12-25", [2]=>"1980-04-14", [3]=>"2007-06-78") because the november 'event' is the one that will happen next (based on it being october right now). I'm trying usort where my cmp function is function cmp($a, $b) { $a_tmp = split("-", $a); $b_tmp = split("-", $b); return strcmp($a_tmp[1], $b_tmp[1]); } I am not sure how to modify this to get my desired effect.
0
[ 2, 389, 4076, 34, 9078, 800, 3726, 3726, 86, 31, 1895, 40, 7718, 16, 617, 4076, 9, 4455, 18, 15, 13, 15683, 5498, 11301, 15, 17, 13596, 9, 31, 22, 43, 101, 20, 389, 14, 7718, 34, 56, 53, 25, 4942, 328, 15, 7398, 2058, 311, 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 can I combat the "Not Invented Here" syndrome? === In the organization I work for, there is a strong aversion to many things that weren't built in-shop. For example, We make very little use of JavaScript libraries, suggestions for looking at development frameworks such as templating are often never considered or simply put off indefinitely. We don't have many developers ( < 20 ), so time spent writing code that has already been written, tested and optimized by a community feels like time wasted. Assuming we don't have any outstanding reason not to adopt third-party code, what, if anything, do you suggest to ease people toward the mindset that libraries can be an acceptable part of our product?
0
[ 2, 184, 92, 31, 2535, 14, 13, 7, 1270, 8854, 235, 7, 8404, 60, 800, 3726, 3726, 19, 14, 1165, 31, 170, 26, 15, 80, 25, 21, 966, 21, 10898, 20, 151, 564, 30, 4144, 22, 38, 392, 19, 8, 18, 5347, 9, 26, 823, 15, 95, 233, 25...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I embed one file into another with Ant? === I am developing a small web app project (ColdFusion) and I am trying to keep my project split into multiple files during development, but deploy just one file on completion. I have references to external files, for instance: <script type="text/javascript" src="jquery-1.2.6.pack.js"></script> <link type="text/css" rel="stylesheet" href="project.css" /> And when I build my project, I want to have the files included and embedded within the single finished product file. <script type="text/javascript">eval(function(p,a,c,k,e,r) [...]</script> <style type="text/css">div{font:normal;} [...]</style> Anyway, it doesn't look like there is a basic way for Ant to do this. Anyone know?
0
[ 2, 184, 92, 31, 11911, 69, 53, 3893, 77, 226, 29, 40, 38, 60, 800, 3726, 3726, 31, 589, 3561, 21, 284, 2741, 4865, 669, 13, 5, 15056, 9818, 6, 17, 31, 589, 749, 20, 643, 51, 669, 2132, 77, 1886, 6488, 112, 522, 15, 47, 17617...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 simple MVC and JQuery ASP.NET application? === Any ideas on a good working sample application which uses MVC and JQuery together? Something like a starter kit. I am not into something that's "half baked" or a CodePlex work-in-progress type of app. I prefer a complete simple app than a more complex unfinished app. Also one which uses the latest MVC preview is a plus. I hope I am not asking for too much!
0
[ 2, 254, 1935, 307, 8990, 17, 487, 8190, 93, 28, 306, 9, 2328, 3010, 60, 800, 3726, 3726, 186, 3478, 27, 21, 254, 638, 5717, 3010, 56, 2027, 307, 8990, 17, 487, 8190, 93, 429, 60, 301, 101, 21, 11744, 6346, 9, 31, 589, 52, 77, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 defend your application against corporate politics? === I can't tell you how many times I've run into situations where a higher-up says 'Look, just do it'. This is obviously at the expens By now, I have more experience with this, and with that, I have the confidence to stand up for the quality of the applications we produce here. **How would you handle this problem?** Is anyone out there a manager who's used the *just do it* command on a programmer? Why?
0
[ 2, 184, 107, 42, 5589, 154, 3010, 149, 4871, 2634, 60, 800, 3726, 3726, 31, 92, 22, 38, 494, 42, 184, 151, 436, 31, 22, 195, 485, 77, 8329, 113, 21, 1184, 8, 576, 898, 13, 22, 5810, 15, 114, 107, 32, 22, 9, 48, 25, 4409, 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...