Id
int64
4
8.51M
PostTypeId
int64
1
7
AcceptedAnswerId
int64
7
75.5M
ParentId
int64
4
41.8M
Score
int64
-208
27.7k
ViewCount
int64
11
12.4M
Body
stringlengths
0
45k
Title
stringlengths
2
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
225
CreationDate
stringdate
2008-07-31 21:42:52
2011-12-14 18:48:47
LastActivityDate
stringdate
2008-08-01 12:19:17
2023-03-05 04:40:26
LastEditDate
stringdate
2008-08-01 13:54:25
2023-03-05 03:12:45
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
-1
21.1M
Tags
listlengths
1
6
34,650
2
null
34,635
5
null
Project->Properties->Configuration Properties->C/C++->Output Files There you should see an option for Assembler Output. John.
null
CC BY-SA 2.5
null
2008-08-29T16:31:18.870
2008-08-29T16:31:18.870
null
null
887
null
34,651
2
null
34,635
5
null
1. Open the Properties page for a project 2. Select the Configuration Properties -> C/C++ -> Output Files branch 3. Change the Assembler Output option to something other than No Listing 4. Make sure ASM List Location is set to a valid path or sub-path 5. Build.
null
CC BY-SA 2.5
null
2008-08-29T16:31:32.117
2008-08-29T16:31:32.117
null
null
811
null
34,655
1
34,686
null
9
4,921
I would like to have an `iframe` take as much vertical space as it needs to display its content and not display a scrollbar. Is it at all possible ? Are there any workarounds?
Making an iframe take vertical space
CC BY-SA 3.0
0
2008-08-29T16:34:05.027
2016-02-08T14:29:54.640
2016-02-08T14:27:46.540
92,701
1,983
[ "javascript", "html", "css", "iframe" ]
34,656
2
null
34,399
40
null
The best option I saw in other answers was to use `float:left;`. Unfortunately, it doesn't work in IE7 which is a requirement here — you still lose the bullet. I'm not really keen on using a background image either. What I'm gonna do instead (that no one else suggested, hence the self-answer) is go with manually addin...
null
CC BY-SA 3.0
null
2008-08-29T16:34:13.280
2015-08-20T17:25:42.110
2015-08-20T17:25:42.110
3,043
3,043
null
34,645
2
null
34,588
164
null
You could always try doing a `ulimit -n 2048`. This will only reset the limit for your current shell and the number you specify must not exceed the hard limit Each operating system has a different hard limit setup in a configuration file. For instance, the hard open file limit on Solaris can be set on boot from /etc...
null
CC BY-SA 3.0
null
2008-08-29T16:30:04.443
2017-06-26T06:29:14.403
2017-06-26T06:29:14.403
372,496
3,499
null
34,644
2
null
34,571
7
null
For Java I'd use [reflection](http://docs.oracle.com/javase/tutorial/reflect/index.html), since I don't like the idea of changing the access to a package on the declared method just for the sake of testing. However, I usually just test the public methods which should also ensure the private methods are working correctl...
null
CC BY-SA 3.0
null
2008-08-29T16:30:03.570
2017-12-14T12:26:40.087
2017-12-14T12:26:40.087
545,127
2,030
null
34,591
2
null
34,506
2
null
It seems like the answer is in the question - the method you suggested seems to be the right direction to go, except that if you have a big number of those shared members you might want to gather them into a struct or class and past that as the argument to the constructor of the base class. If you insist on having the...
null
CC BY-SA 2.5
null
2008-08-29T16:14:57.600
2008-08-30T09:07:29.960
2008-08-30T09:07:29.960
1,596
1,596
null
34,652
2
null
34,595
55
null
There's no such thing as a “good hash function” for universal hashes (ed. yes, I know there's such a thing as “universal hashing” but that's not what I meant). Depending on the context different criteria determine the quality of a hash. Two people already mentioned SHA. This is a cryptographic hash and it isn't at all ...
null
CC BY-SA 2.5
null
2008-08-29T16:31:53.830
2009-07-02T06:39:19.047
2009-07-02T06:39:19.047
1,968
1,968
null
34,663
2
null
34,655
0
null
This CSS snippet should remove the vertical scrollbar: ``` body { overflow-x: hidden; overflow-y: hidden; } ``` I'm not sure yet about having it take up as much vertical space as it needs, but I'll see if I can't figure it out.
null
CC BY-SA 3.0
null
2008-08-29T16:36:43.647
2016-01-14T19:12:18.490
2016-01-14T19:12:18.490
2,678,454
3,641
null
34,646
2
null
34,536
2
null
``` <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready( function(){ $( '#switches li' ).mouseover( function(){ $( "#slides div" ).hide(); $( '#switches li' ).css( 'font-weight', 'normal' ); $( this ).css( 'font-we...
null
CC BY-SA 2.5
null
2008-08-29T16:30:30.620
2008-08-29T16:30:30.620
null
null
3,448
null
34,664
1
708,594
null
93
22,125
Has anyone found a useful solution to the DesignMode problem when developing controls? The issue is that if you nest controls then DesignMode only works for the first level. The second and lower levels DesignMode will always return FALSE. The standard hack has been to look at the name of the process that is running ...
DesignMode with nested Controls
CC BY-SA 3.0
0
2008-08-29T16:37:10.323
2022-11-07T12:00:25.413
2017-11-09T19:23:10.693
199,364
2,862
[ ".net", "user-controls" ]
34,677
2
null
34,516
1
null
The previous answers point out the XML syntax perfectly. I just wanted to throw in my recommendation for the [free (and open-source) nDoc help library generator](http://ndoc.sourceforge.net/) that parses all comments in a project.
null
CC BY-SA 2.5
null
2008-08-29T16:40:29.443
2008-08-29T16:40:29.443
null
null
1,414
null
34,658
2
null
34,571
1,821
null
If you have somewhat of a legacy application, and you're not allowed to change the visibility of your methods, the best way to test private methods is to use [reflection](http://en.wikipedia.org/wiki/Reflection_%28computer_programming%29). Internally we're using helpers to get/set `private` and `private static` variab...
null
CC BY-SA 4.0
null
2008-08-29T16:35:11.560
2022-04-23T18:05:12.267
2022-04-23T18:05:12.267
845,414
3,087
null
34,667
2
null
33,949
1
null
I don't think either of these answers are definitive. The 4guysfromrolla reference is helpful. Deploying .NET 3.5 to 100+ sites will be a pain. You can't just upgrade the server to the new framework, you have to upgrade the web.config of each site. As far as I can tell, there is no command line tool to do it.
null
CC BY-SA 2.5
null
2008-08-29T16:38:01.023
2008-08-29T16:38:01.023
null
null
2,580
null
34,661
1
34,693
null
5
1,505
I have an application that sends messages to an external web service. I build and deploy this application using [MSBuild](http://msdn.microsoft.com/en-us/library/wea2sca5(VS.80).aspx) and [Cruisecontrol.NET](http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET). As CCNET build and deploy...
Automate test of web service communication
CC BY-SA 2.5
0
2008-08-29T16:35:53.790
2009-04-10T12:25:00.573
2008-11-17T23:35:51.820
1,463
298
[ "web-services", "msbuild", "build-process", "nunit", "cruisecontrol.net" ]
34,674
1
35,636
null
13
5,369
You can use a standard dot notation or a method call in Objective-C to access a property of an object in Objective-C. ``` myObject.property = YES; ``` or ``` [myObject setProperty:YES]; ``` Is there a difference in performance (in terms of accessing the property)? Is it just a matter of preference in terms of cod...
Performance difference between dot notation versus method call in Objective-C
CC BY-SA 2.5
0
2008-08-29T16:39:51.737
2022-04-18T05:25:54.017
2008-11-10T15:09:59.307
1,288
1,987
[ "objective-c", "performance" ]
34,678
2
null
34,669
2
null
It's kind of a hack, but sometimes I use an AtomicInteger, which is mutable, to do things like this. I've also seen cases where an int[] of size 1 is passed in.
null
CC BY-SA 2.5
null
2008-08-29T16:40:44.903
2008-08-29T16:40:44.903
null
null
1,471
null
34,685
2
null
31,930
0
null
That's why you have to avoid: ``` catch (Exception ex) { throw ex; } ``` As that basically cloaks your exception in a new one. If you use: ``` catch (Exception ex) { throw; //note: no ex } ``` It keeps the original exception and stack trace.
null
CC BY-SA 2.5
null
2008-08-29T16:43:14.227
2008-08-29T16:43:14.227
null
null
905
null
34,688
2
null
34,674
0
null
As far as I've seen, there isn't a significant performance difference between the two. I'm reasonably certain that in most cases it will be 'compiled' down to the same code. If you're not sure, try writing a test application that does each method a million times or so, all the while timing how long it takes. That's th...
null
CC BY-SA 2.5
null
2008-08-29T16:44:00.463
2008-08-29T16:44:00.463
null
null
3,641
null
34,669
1
34,716
null
4
6,055
I have a recursive algorithm which steps through a string, character by character, and parses it to create a tree-like structure. I want to be able to keep track of the character index the parser is currently at (for error messages as much as anything else) but am not keen on implementing something like a tuple to han...
How to keep a "things done" count in a recursive algorithm in Java?
CC BY-SA 2.5
null
2008-08-29T16:38:09.637
2012-03-06T16:47:23.727
null
null
2,455
[ "java", "recursion", "coding-style", "integer", "final" ]
34,686
2
null
34,655
11
null
This should set the `IFRAME` height to its content's height: ``` <script type="text/javascript"> the_height = document.getElementById('the_iframe').contentWindow.document.body.scrollHeight; document.getElementById('the_iframe').height = the_height; </script> ``` You may want to add `scrolling="no"` to your `IFRAME` ...
null
CC BY-SA 3.0
null
2008-08-29T16:43:18.030
2016-02-08T14:28:38.133
2016-02-08T14:28:38.133
92,701
1,902,010
null
34,689
2
null
34,669
2
null
The current solution I am using is: ``` int[] counter = {0}; ``` and then pass it to the recursive algorithm: ``` public List<Thing> doIt (String aString, int[] counter) { ... } ``` and when I want to increment it: ``` counter[0]++; ``` Not super elegant, but it works...
null
CC BY-SA 2.5
null
2008-08-29T16:44:06.267
2008-08-29T16:44:06.267
null
null
2,455
null
34,696
2
null
34,664
2
null
I've never been caught by this myself, but couldn't you just walk back up the Parent chain from the control to see if DesignMode is set anywhere above you?
null
CC BY-SA 2.5
null
2008-08-29T16:47:03.593
2008-08-29T16:47:03.593
null
null
987
null
34,693
2
null
34,661
3
null
I just started looking into [http://www.soapui.org/](http://www.soapui.org/) and it seems like it will work nicely for testing web services. Also, maybe look at adding an abstraction layer in your web service, each service call would directly call a testable method (outside of the web scope)? I just did this with a b...
null
CC BY-SA 2.5
null
2008-08-29T16:45:58.120
2008-08-29T16:45:58.120
null
null
820
null
34,690
2
null
34,674
5
null
Check out [article from Cocoa is My Girlfriend](http://www.cimgf.com/2008/07/08/a-case-against-dot-syntax/). The gist of it, is that there is no performance penalty of using one over the other. However, the notation does make it more difficult to see what is happening with your variables and what your variables are.
null
CC BY-SA 2.5
null
2008-08-29T16:45:25.123
2008-08-29T19:09:54.090
2008-08-29T19:09:54.090
3,467
3,467
null
34,681
2
null
34,595
1
null
A good hash function has the following properties: 1. Given a hash of a message it is computationally infeasible for an attacker to find another message such that their hashes are identical. 2. Given a pair of message, m' and m, it is computationally infeasible to find two such that that h(m) = h(m') The two cases...
null
CC BY-SA 2.5
null
2008-08-29T16:41:57.927
2008-08-29T16:47:31.873
2008-08-29T16:47:31.873
854
854
null
34,702
2
null
34,698
3
null
Right click > TortoiseSVN > Settings > System Sounds.. Scroll down to the bottom.
null
CC BY-SA 2.5
null
2008-08-29T16:48:31.170
2008-08-29T16:48:31.170
null
null
832
null
34,700
2
null
34,669
2
null
Integers are immutable, which means that when you pass it as an argument it creates a copy rather than a reference to the same item. ([explanation](http://www.javaworld.com/javaworld/javaqa/2000-06/01-qa-0602-immutable.html)). To get the behavior you're looking for, you can write your own class which is like Integer o...
null
CC BY-SA 2.5
null
2008-08-29T16:47:59.440
2008-08-29T16:47:59.440
null
null
3,044
null
34,707
2
null
34,698
1
null
You can do this from the Sounds panel in Control Panel.
null
CC BY-SA 2.5
null
2008-08-29T16:49:22.790
2008-08-29T16:49:22.790
null
null
2,822
null
34,705
1
34,753
null
6
2,024
We have an application with a good amount of jQuery JSON calls to server side code. Because of this, we have a large amount of binding code to parse responses and bind the appropriate values to the form. This is a two part question. 1. What is the reccomended approach for dealing with a large number of forms that all...
Best practices with jQuery form binding code in an application
CC BY-SA 2.5
0
2008-08-29T16:48:58.890
2011-01-07T19:57:55.947
2008-08-29T16:59:33.157
1,790
2,993
[ "javascript", "jquery", "ooad" ]
34,701
2
null
34,506
1
null
@Hershi: the problem with that approach is that each instance of each derived class has a copy of the data, which may be expensive in some way. Perhaps you could try something like this (I'm spit-balling without a compiling example, but the idea should be clear). ``` #include <iostream> #include <string> using namespac...
null
CC BY-SA 4.0
null
2008-08-29T16:48:06.040
2022-08-01T08:01:17.910
2022-08-01T08:01:17.910
4,751,173
825
null
34,708
1
null
null
15
3,230
A few months back I was tasked with implementing a unique and random code for our web application. The code would have to be user friendly and as small as possible, but still be essentially random (so users couldn't easily predict the next code in the sequence). It ended up generating values that looked something lik...
How can I generate a unique, small, random, and user-friendly key?
CC BY-SA 3.0
0
2008-08-29T16:49:24.040
2020-07-16T17:47:02.673
2013-12-02T12:57:23.593
2,432,317
1,931
[ "encoding", "cryptography", "key" ]
34,698
1
34,702
null
2
361
I do not want TortoiseSVN to alert me with sounds - e.g. when it fails to update. How do I turn off sounds in TortoiseSVN?
How to turn off sounds in TortoiseSVN?
CC BY-SA 3.0
null
2008-08-29T16:47:45.977
2014-12-13T02:55:06.340
2014-12-13T02:55:06.340
1,810,429
31,505
[ "tortoisesvn", "system-sounds" ]
34,713
2
null
34,579
7
null
When you get this (and other errors out of the InnoDB engine) issue: ``` SHOW ENGINE INNODB STATUS; ``` It will give a more detailed reason why the operation couldn't be completed. Make sure to run that from something that'll allow you to scroll or copy the data, as the response is quite long.
null
CC BY-SA 2.5
null
2008-08-29T16:50:56.547
2008-08-29T16:50:56.547
null
null
2,314
null
34,716
2
null
34,669
2
null
Since you've already discovered the pseudo-mutable integer "hack," how about this option: Does it make sense for you to make a separate Parser class? If you do this, you can store the current state in a member variable. You probably need to think about how you're going to handle any thread safety issues, and it migh...
null
CC BY-SA 2.5
null
2008-08-29T16:52:37.917
2008-08-29T16:52:37.917
null
null
1,471
null
34,711
1
35,502
null
2
881
What graphics toolkit is used for the Window's Google Talk application?
Google Talk's Graphics Toolkit?
CC BY-SA 2.5
null
2008-08-29T16:50:20.743
2014-04-02T15:52:56.567
2014-04-02T15:52:56.567
241,211
3,210
[ "windows", "user-interface", "toolkit" ]
34,714
2
null
34,486
3
null
I've never been a fan of nested try/catch blocks, so I'd do it something like: ``` var xmlHttp; if (window.XMLHttpRequest) { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } else if (window.ActiveXObject) { try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new Activ...
null
CC BY-SA 2.5
null
2008-08-29T16:51:04.050
2008-08-29T16:51:04.050
null
null
1,900
null
34,717
1
35,143
null
1
973
Is it possible to embed an audio object (mp3, wma, whatever) in a web-enabled InfoPath form ? If it is, how do you do it ?
Can an audio object be embedded in an InfoPath form?
CC BY-SA 2.5
null
2008-08-29T16:52:41.503
2015-09-01T09:44:09.460
2008-08-30T10:31:29.837
381
1,753
[ "sharepoint", "audio", "moss", "infopath" ]
34,709
1
null
null
4
2,958
You'll notice that Preview 5 includes the following in their release notes: > Added support for custom model binders. Custom binders allow you to define complex types as parameters to an action method. To use this feature, mark the complex type or the parameter declaration with [ModelBinder(…)]. So how do you go abou...
How do you use the new ModelBinder classes in ASP.NET MVC Preview 5
CC BY-SA 2.5
0
2008-08-29T16:49:47.453
2020-03-19T07:17:48.247
null
null
3,046
[ "asp.net-mvc" ]
34,722
2
null
34,708
3
null
In C#, I have used the '[System.IO.Path.GetRandomFileName() : String](http://msdn.microsoft.com/en-us/library/system.io.path.getrandomfilename.aspx)' method... but I was generating salt for debug file names. This method returns stuff that looks like your first example, except with a random '.xyz' file extension too. I...
null
CC BY-SA 2.5
null
2008-08-29T16:53:34.950
2008-08-29T16:53:34.950
null
null
3,619
null
34,724
2
null
34,712
0
null
There's the [IsThemeActive](http://msdn.microsoft.com/en-us/library/bb759813%28VS.85%29.aspx) WinAPI function.
null
CC BY-SA 2.5
null
2008-08-29T16:55:35.787
2008-08-29T16:55:35.787
null
null
1,968
null
34,726
1
null
null
3
297
I am deploying new versions of java servlets with JRun as the host. I am having difficulty finding good sources for information about JRun and tutorials about how to configure and manage it. After installing JRun and opening the launcher it can't start the admin server that it creates by default...so obviously I'm run...
Trouble using JRun to Host Java Servlets
CC BY-SA 2.5
null
2008-08-29T16:56:23.727
2010-04-07T14:04:02.100
2010-04-07T14:04:02.100
27
27
[ "java", "servlets", "hosting", "jrun" ]
34,712
1
34,729
null
3
1,287
I have some UI in VB 2005 that looks great in XP Style, but goes hideous in Classic Style. Any ideas about how to detect which mode the user is in and re-format the forms on the fly? --- Post Answer Edit: Thanks Daniel, looks like this will work. I'm using the first solution you posted with the GetCurrentThemeNa...
.Net - Detecting the Appearance Setting (Classic or XP?)
CC BY-SA 3.0
null
2008-08-29T16:50:22.990
2015-11-20T11:37:24.003
2015-11-20T11:37:24.003
3,218,692
3,648
[ "vb.net", "windows-xp", "appearance" ]
34,727
2
null
34,708
5
null
In .NET you can use the RNGCryptoServiceProvider method GetBytes() which will "fill an array of bytes with a cryptographically strong sequence of random values" (from ms documentation). ``` byte[] randomBytes = new byte[4]; RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider(); rng.GetBytes(randomBytes); ``` ...
null
CC BY-SA 2.5
null
2008-08-29T16:56:29.450
2008-08-29T16:56:29.450
null
null
820
null
34,719
2
null
34,493
5
null
You could iterate over the entire Workbook using vba (i've included the code from @PabloG and @euro-micelli ): ``` Sub iterateOverWorkbook() For Each i In ThisWorkbook.Worksheets Set rRng = i.UsedRange For Each j In rRng If (Not IsEmpty(j)) Then If (j.HasFormula) Then If InS...
null
CC BY-SA 2.5
null
2008-08-29T16:53:09.723
2008-08-29T18:33:15.270
2008-08-29T18:33:15.270
3,445
3,445
null
34,728
1
67,355
null
16
26,049
I am particularly interested in Document Libraries, but in terms of general SharePoint lists, can anyone answer the following...? 1. What is the maximum number of items that a SharePoint list can contain? 2. What is the maximum number of lists that a single SharePoint server can host? 3. When the number of items in t...
SharePoint List Scalability
CC BY-SA 2.5
0
2008-08-29T16:56:39.637
2013-03-27T15:11:07.827
2008-08-29T17:59:24.057
1,414
3,362
[ "sharepoint", "scalability" ]
34,732
1
34,796
null
595
513,653
How do I list the symbols being exported from a .so file? If possible, I'd also like to know their source (e.g. if they are pulled in from a static library). I'm using gcc 4.0.2, if that makes a difference.
How do I list the symbols in a .so file
CC BY-SA 4.0
0
2008-08-29T16:57:47.920
2019-11-25T22:04:40.347
2019-01-10T11:53:00.020
8,649,393
3,051
[ "c++", "c", "gcc", "symbols", "name-mangling" ]
34,718
2
null
34,536
6
null
Here's my light-markup jQuery version: ``` <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> function switchTo(i) { $('#switches li').css('font-weight','normal').eq(i).css('font-weight','bold'); $('#slides div').css('display','none').eq(i).css('display','block'); } $(document...
null
CC BY-SA 3.0
null
2008-08-29T16:53:06.667
2016-02-08T14:33:26.843
2016-02-08T14:33:26.843
92,701
619
null
34,734
1
34,747
null
5
5,591
I've tried two different methods of reusing code. I have a solution full of just class library projects with generic code that I reuse in almost every project I work on. When I get to work on a new project, I will reuse code from this code library in one of two ways: 1. I have tried bringing the projects I need from t...
Best Way to Reuse Code When Using Visual Studio?
CC BY-SA 4.0
null
2008-08-29T16:58:01.617
2021-01-15T13:33:23.713
2020-06-23T22:06:30.533
933,198
1,284
[ ".net", "visual-studio" ]
34,729
2
null
34,712
2
null
Try using a combination of [GetCurrentThemeName](http://www.pinvoke.net/default.aspx/uxtheme/GetCurrentThemeName.html) ([MSDN Page](http://msdn.microsoft.com/en-us/library/bb773365%28VS.85%29.aspx)) and [DwmIsCompositionEnabled](http://msdn.microsoft.com/en-us/library/aa969518%28VS.85%29.aspx) I linked the first to PI...
null
CC BY-SA 3.0
null
2008-08-29T16:56:40.620
2011-08-15T21:24:10.177
2011-08-15T21:24:10.177
95
3,641
null
34,735
1
35,126
null
5
31,743
I'm having trouble getting a rotary encoder to work properly with AVR micro controllers. The encoder is a mechanical [ALPS encoder](http://no.farnell.com/1520815/passives/product.us0?sku=alps-ec12d1524401), and I'm using [Atmega168](http://www.atmel.com/dyn/resources/prod_documents/doc2545.pdf). I have tried using a...
Using a rotary encoder with AVR Micro controller
CC BY-SA 2.5
0
2008-08-29T16:58:02.083
2012-10-22T11:34:35.003
2008-08-29T17:47:53.993
1,585
1,585
[ "microcontroller", "avr", "encoder", "atmega" ]
34,740
2
null
34,669
0
null
To be honest I would recode the function to make it a linear algorithm that uses a loop. This way you have no chance of running out of heap space if you are stepping through an extremely large string. Also, you would not need to have a the extra parameter just to keep track of the count. This also would probably have ...
null
CC BY-SA 2.5
null
2008-08-29T16:59:16.073
2008-08-29T16:59:16.073
null
null
1,377
null
34,738
2
null
34,194
4
null
You don't have to live with that extension if you can install an ISAPI filter on the server. Basically you route matched urls to the {controller}.mvc variety, then in ASP.NET you rewrite this url to remove .mvc -- doing this you don't have to define any extra routes or expose .mvc to your users. I've written about th...
null
CC BY-SA 2.5
null
2008-08-29T16:58:31.210
2008-08-29T16:58:31.210
null
null
3,381
null
34,687
1
38,386
null
56
180,533
When I try to do any svn command and supply the `--username` and/or `--password` options, it prompts me for my password anyways, and always will attempt to use my current user instead of the one specified by `--username`. Neither `--no-auth-cache` nor `--non-interactive` have any effect on this. This is a problem becau...
Subversion ignoring "--password" and "--username" options
CC BY-SA 3.0
0
2008-08-29T16:43:21.150
2016-04-09T16:00:14.707
2013-10-22T09:46:20.013
993,246
3,625
[ "svn", "version-control" ]
34,743
2
null
34,726
1
null
This is probably going to be difficult to resolve unless you post either the error message from the log file or the list of steps that you took so far. I have JRun 3.1 configured on my machine so maybe I can duplicate your issue if you give us more information.
null
CC BY-SA 2.5
null
2008-08-29T17:00:25.400
2008-08-29T17:00:25.400
null
null
1,471
null
34,741
2
null
34,664
1
null
DesignMode is a private property (from what I can tell). The answer is to provide a public property that exposes the DesignMode prop. Then you can cascasde back up the chain of user controls until you run into a non-user control or a control that is in design mode. Something like this.... ``` public bool RealDesign...
null
CC BY-SA 2.5
null
2008-08-29T16:59:22.063
2008-08-29T16:59:22.063
null
null
2,894
null
34,725
2
null
34,709
2
null
Well I looked into this. ASP.NET provides a common location for registering the implementation of IControlBinders. They also have the basics of this working via the new Controller.UpdateModel method. So I essentially combined these two concepts by creating an implementation of IModelBinder that does the same thing as...
null
CC BY-SA 4.0
null
2008-08-29T16:55:37.690
2020-03-19T07:17:48.247
2020-03-19T07:17:48.247
5,421,321
3,046
null
34,747
2
null
34,734
8
null
In short, what you are doing is right, you want to move the common code into a class library (DLL) and then reference that in any projects that require its logic. Where you are going wrong is that you are not it. If you need to make little "tweaks", [subclass](http://en.wikipedia.org/wiki/Subclass_(computer_science)) ...
null
CC BY-SA 4.0
null
2008-08-29T17:02:11.480
2021-01-15T13:33:23.713
2021-01-15T13:33:23.713
3,598,237
832
null
34,736
2
null
34,708
10
null
Here's how I would do it. I'd obtain a list of common English words with usage frequency and some grammatical information (like is it a noun or a verb?). I think you can look around the intertubes for some copy. Firefox is open-source and it has a spellchecker... so it must be obtainable somehow. Then I'd run a filte...
null
CC BY-SA 2.5
null
2008-08-29T16:58:12.253
2008-08-29T17:05:19.290
2008-08-29T17:05:19.290
3,055
3,055
null
34,744
2
null
34,717
0
null
Edit: My apologies, I missed that the question was about Web forms - for which the below does not work. Must learn to read the question fully! 1. Go to menu View 2. Click on Design Tasks 3. Select Controls in the 'Design Tasks' Task pane 4. Click on the 'add or remove custom controls' button to install your custom ...
null
CC BY-SA 2.5
null
2008-08-29T17:01:04.120
2008-08-30T10:56:17.687
2008-08-30T10:56:17.687
770
770
null
34,710
2
null
34,536
19
null
Rather than displaying all slides when JS is off (which would likely break the page layout) I would place inside the switch LIs real A links to server-side code which returns the page with the "active" class pre-set on the proper switch/slide. ``` $(document).ready(function() { switches = $('#switches > li'); sl...
null
CC BY-SA 3.0
null
2008-08-29T16:49:56.673
2016-12-18T08:24:48.527
2016-12-18T08:24:48.527
6,512,469
3,207
null
34,752
2
null
34,734
0
null
I don't use Visual Studio or .NET, but it think this problem is common enough amongst ALL programmers so I guess I'll take a crack at it. We've run into problems just like this when we try to extract common code into a separate library. It might be OK at first, but eventually 1 client is going to need some new functi...
null
CC BY-SA 2.5
null
2008-08-29T17:04:37.013
2008-08-29T17:04:37.013
null
null
1,471
null
34,755
2
null
34,687
0
null
Best I can give you is a "works for me" on SVN 1.5. You may try adding `--no-auth-cache` to your `svn update` to see if that lets you override more easily. If you want to permanently switch from user2 to user1, head into ~/.subversion/auth/ on *nix and delete the auth cache file for domain.com (most likely in ~/.subv...
null
CC BY-SA 2.5
null
2008-08-29T17:06:46.790
2008-08-29T17:06:46.790
null
null
2,314
null
34,750
2
null
34,493
0
null
You can use something like this in VBA: ``` Sub ListIndirectRef() Dim rRng As Range Dim oSh As Worksheet Dim oCell As Range For Each oSh In ThisWorkbook.Worksheets Set rRng = oSh.UsedRange For Each oCell In rRng If InStr(oCell.Formula, "INDIRECT") Then Debug.Print oCell.Address, oCell.For...
null
CC BY-SA 2.5
null
2008-08-29T17:03:21.883
2008-08-29T17:03:21.883
null
null
394
null
34,749
2
null
34,734
0
null
I like to write all of my generic classes as just that: generics. I keep them as application independent as possible, and try to keep them even type unaware. If I make a fancy Tree class, I'll use generics to create it as Tree<T> so that I can use any type I want with the class. If I need to use the Tree to hold GameCh...
null
CC BY-SA 2.5
null
2008-08-29T17:03:15.770
2008-08-29T17:03:15.770
null
null
3,641
null
34,753
2
null
34,705
3
null
Not 100% sure example what you are asking, but personally, and I use MochiKit, I create JavaScript "classes" (or widgets, if you prefer) for every significant client-side UI structure. These know, of course, how to populate themselves with data. I don't know what more there is to say - writing UI code for the browser ...
null
CC BY-SA 2.5
null
2008-08-29T17:05:14.733
2008-08-29T17:05:14.733
null
null
1,790
null
34,757
2
null
34,708
0
null
If by user friendly, you mean that a user could type the answer in then I think you would want to look in a different direction. I've seen and done implementations for initial random passwords that pick random words and numbers as an easier and less error prone string. If though you're looking for a way to encode a r...
null
CC BY-SA 2.5
null
2008-08-29T17:07:09.050
2008-08-29T17:07:09.050
null
null
3,046
null
34,758
2
null
34,732
12
null
You can use the `nm -g` tool from the binutils toolchain. However, their source is not always readily available. and I'm not actually even sure that this information can always be retrieved. Perhaps `objcopy` reveals further information. /EDIT: The tool's name is of course `nm`. The flag `-g` is used to show only expo...
null
CC BY-SA 2.5
null
2008-08-29T17:07:11.563
2008-08-29T17:07:11.563
null
null
1,968
null
34,761
2
null
34,734
0
null
@Outlaw If you need to copy code and make application-specific changes, then that code isn't generic. it should be refactored so that the common functionality stays in the common library, and the application specific functionality should be added to a subclass in that application's codebase. Using version control wit...
null
CC BY-SA 2.5
null
2008-08-29T17:09:19.543
2008-08-29T17:09:19.543
null
null
96
null
34,756
2
null
34,734
0
null
What you really need to do is to use some sort of source control software such that: - - Just make sure that you have unit tests in hand to make sure that your previous projects are unaffected or only minorly affected by any changes you make on your library. Goodluck!
null
CC BY-SA 2.5
null
2008-08-29T17:07:01.470
2008-08-29T17:07:01.470
null
null
372
null
34,764
2
null
34,734
1
null
I have done it both ways that you mentioned. I like the second, but like you said, it is a little tedious for when you make updates to that library. Another way that I have used, is choosing a central location to keep your libraries. Then add a registry key with a string value to point to that directory. When addin...
null
CC BY-SA 2.5
null
2008-08-29T17:10:13.787
2008-08-29T17:10:13.787
null
null
1,117
null
34,773
2
null
34,728
4
null
[Link To Resource](http://blogs.msdn.com/sharepoint/archive/2007/07/25/scaling-large-lists.aspx)
null
CC BY-SA 2.5
null
2008-08-29T17:13:44.463
2008-08-29T17:18:57.650
2008-08-29T17:18:57.650
1,112
1,112
null
34,768
1
34,810
null
8
3,885
I have recently installed .net 3.5 SP1. When I deployed a compiled web site that contained a form with its action set: ``` <form id="theForm" runat="server" action="post.aspx"> ``` I received this error. Method not found: 'Void System.Web.UI.HtmlControls.HtmlForm.set_Action(System.String)'. If a fellow developer wh...
Setting a form's action in .net 3.5 SP1 causes errors when compiled
CC BY-SA 2.5
null
2008-08-29T17:11:40.007
2020-01-28T23:27:26.773
2008-11-13T21:35:28.320
2,660
2,903
[ "asp.net", ".net-3.5" ]
34,775
2
null
34,711
0
null
I'm not positive but I believe it's QT.
null
CC BY-SA 2.5
null
2008-08-29T17:14:11.203
2008-08-29T17:14:11.203
null
null
3,415
null
34,745
2
null
34,510
249
null
A "race condition" exists when multithreaded (or otherwise parallel) code that would access a shared resource could do so in such a way as to cause unexpected results. Take this example: ``` for ( int i = 0; i < 10000000; i++ ) { x = x + 1; } ``` If you had 5 threads executing this code at once, the value of x ...
null
CC BY-SA 3.0
null
2008-08-29T17:01:56.083
2015-11-12T19:31:01.373
2015-11-12T19:31:01.373
1,552,737
2,570,347
null
34,779
2
null
34,734
0
null
Some really good re-usable code is in [Ayende](http://www.ayende.com/about-me.aspx) Rahien's [Rhino Tools](http://sourceforge.net/projects/rhino-tools/). Take a peek at not only how he implements various common code, but how it is organized.
null
CC BY-SA 2.5
null
2008-08-29T17:16:24.927
2008-08-29T17:16:24.927
null
null
3,619
null
34,776
2
null
34,768
1
null
I don't know the specific solution, but HtmlForm.set_Action() is a function the compiler creates that acts as the setter for a property called Action. When you do: ``` public String Action { set { DoStuff(); } } ``` The code actually becomes a function called . I know it's not the best answer, but I hope it helps...
null
CC BY-SA 2.5
null
2008-08-29T17:14:19.237
2008-08-29T17:14:19.237
null
null
3,641
null
34,781
1
34,792
null
6
364
We have need for a "rating" system in a project we are working on, similar to the one in SO. However, in ours there are multiple entities that need to be "tagged" with a vote up (only up, never down, like an increment). Sometimes we will need to show all of the entities in order of what is rated highest, regardless of ...
How do you build a ratings implementation?
CC BY-SA 2.5
0
2008-08-29T17:16:59.667
2013-09-25T14:36:31.363
2008-08-29T17:20:12.717
832
577
[ "algorithm", "database-design", "architecture", "data-structures" ]
34,788
2
null
34,735
0
null
What exactly are you having problems with? I assume you've been able to hook the pins of the encoder to your PIC as per the technical specifications linked on the Farnell page you gave, so is the problem with reading the data? Do you not get any data from the encoder? Do you not know how to interpret the data you're ge...
null
CC BY-SA 2.5
null
2008-08-29T17:18:46.433
2008-08-29T17:18:46.433
null
null
3,641
null
34,784
1
744,333
null
166
25,195
What is a good setup for .hgignore file when working with Visual Studio 2008? I mostly develop on my own, only occasionly I clone the repository for somebody else to work on it. I'm thinking about obj folders, .suo, .sln, .user files etc.. Can they just be included or are there file I shouldn't include? Thanks! p.s...
Mercurial .hgignore for Visual Studio 2008 projects
CC BY-SA 2.5
0
2008-08-29T17:17:40.507
2015-03-11T10:44:45.067
2013-08-27T10:51:36.103
406,464
925
[ "visual-studio", "visual-studio-2008", "mercurial", "hgignore" ]
34,746
2
null
33,476
3
null
> It is the only framework that I've ever used where component creation is a deep intricate process like this. None of the other web frameworks (whether in the .net world or not) make this so painful, which is completely inexplicable to me. Some of the design decisions behind JSF start to make a little mor...
null
CC BY-SA 2.5
null
2008-08-29T17:02:07.393
2008-08-29T17:02:07.393
null
null
304
null
34,798
1
403,473
null
2
6,599
I have a gridview that is within an updatepanel for a modal popup I have on a page. The issue is that the entire page refreshes every time I click an imagebutton that is within my gridview. This causes my entire page to load and since I have grayed out the rest of the page so that the user cannot click on it this is ve...
Entire Page refreshes even though gridview is in an update panel
CC BY-SA 2.5
0
2008-08-29T17:21:32.153
2023-03-01T05:08:14.980
2009-01-15T18:51:52.920
2,486
2,486
[ "asp.net", "gridview", "asp.net-ajax", "updatepanel" ]
34,782
2
null
34,020
16
null
The standard implementation of Python (generally known as CPython as it is written in C) uses OS threads, but since there is the [Global Interpreter Lock](http://en.wikipedia.org/wiki/Global_Interpreter_Lock), only one thread at a time is allowed to run Python code. But within those limitations, the threading librarie...
null
CC BY-SA 2.5
null
2008-08-29T17:17:18.527
2009-02-23T16:24:02.693
2009-02-23T16:24:02.693
6,899
3,189
null
34,792
2
null
34,781
6
null
Since reddit's ranking algorithm rocks, it makes very much sense to have a look at it, if not copy it: --- Given the time the entry was posted A and the time of 7:46:43 a.m. December 8, 2005 B we have t as their difference in seconds: t = A - B and x as the difference between the number of up votes U and the num...
null
CC BY-SA 3.0
null
2008-08-29T17:20:34.947
2013-09-25T14:36:31.363
2013-09-25T14:36:31.363
1,634,069
31,505
null
34,771
2
null
32,596
1
null
I think the problem is that when the Grid is drawn, it draws each row from top to bottom, and within each row the items left to right. So the row-spanned <mx:TextArea> item is drawn first extending down into the area of the 2 next rows, which get drawn after and on top. The quickest way around I can see would be to d...
null
CC BY-SA 2.5
null
2008-08-29T17:12:05.327
2008-08-29T17:12:05.327
null
null
1,798
null
34,802
1
34,885
null
1
1,900
I'm trying to write a custom WPF ValidationRule to enforce that a certain property is unique within the context of a given collection. For example: I am editing a collection of custom objects bound to a ListView and I need to ensure that the Name property of each object in the collection is unique. Does anyone know how...
ValidationRule To Enforce Unique Name
CC BY-SA 2.5
null
2008-08-29T17:22:59.747
2017-10-27T16:57:12.813
null
null
317
[ "wpf", "validation", "data-binding" ]
34,780
2
null
34,518
3
null
If the OP is asking about idomatic sorting expressions, then not all languages have a expression built in. For c I'd go to `<stdlib.h>` and use `qsort`. Something on the lines of : ``` /* non-functional mess deleted */ ``` to sort the arguments into lexical order. Unfortunately this idiom is rather hard to parse fo...
null
CC BY-SA 2.5
null
2008-08-29T17:16:45.690
2008-08-30T13:23:50.827
2008-08-30T13:23:50.827
2,509
2,509
null
34,796
2
null
34,732
731
null
The standard tool for listing symbols is `nm`, you can use it simply like this: ``` nm -gD yourLib.so ``` If you want to see symbols of a C++ library, add the "-C" option which demangle the symbols (it's far more readable demangled). ``` nm -gDC yourLib.so ``` If your .so file is in elf format, you have two optio...
null
CC BY-SA 4.0
null
2008-08-29T17:21:08.550
2019-11-25T22:04:40.347
2019-11-25T22:04:40.347
1,578
1,578
null
34,803
2
null
34,314
-2
null
If you application uses the Java EE stack and you are using [Hibernate](http://hibernate.org) you can use the [Compass Framework](http://www.compass-project.org) maintain a searchable index of your database. The Compass Framework uses [Lucene](http://lucene.apache.org) under the hood. The only catch is that you cannot...
null
CC BY-SA 3.0
null
2008-08-29T17:23:23.940
2013-05-05T10:00:14.093
2013-05-05T10:00:14.093
472,792
1,969
null
34,805
2
null
34,784
37
null
This is specific to a C# project, but I ignore these files/directories: > - `*.csproj.user`- `/obj/*`- `/bin/*`- `*.ncb`- `*.suo` I have no problems running the code in the depot on other machines after I ignore all of these files. The easiest way to find out what you need to keep is to make a copy of the folder and ...
null
CC BY-SA 3.0
null
2008-08-29T17:29:20.480
2011-12-01T12:58:16.937
2011-12-01T12:58:16.937
162,671
3,641
null
34,801
2
null
34,183
0
null
I think cmd.exe hangs if the parameters are incorrect. If the batch executes correctly then I would just shell execute it like this instead. ``` ProcessStartInfo psi = new ProcessStartInfo(); Process p = new Process(); psi.WindowStyle = ProcessWindowStyle.Hidden; psi.WorkingDirectory = @"c:\build"; psi.FileName = @"C...
null
CC BY-SA 2.5
null
2008-08-29T17:22:34.520
2008-08-29T17:22:34.520
null
null
1,147
null
34,810
2
null
34,768
6
null
[.NET 3.5 SP1 tries to use the action="" attribute](http://johnsheehan.me/blog/less-code-is-fun-aspnet-35-sp1-removes-need-for-control-adapter-when-using-url-rewriting/) (.NET 3.5 RTM did not). So, when you deploy, your code is attempting to set the HtmlForm.Action property and failing, as the System.Web.dll on the dep...
null
CC BY-SA 3.0
null
2008-08-29T17:30:23.690
2012-07-03T15:52:48.330
2012-07-03T15:52:48.330
2,314
2,314
null
34,809
1
34,882
null
5
2,403
I have an object that is mapped to a cookie as a serialized base-64 string. I only want to write out a new cookie if there are changes made to the object stored in the cookie on server-side. What I want to do is get a hash code when the object is pulled from the cookie/initialized and compare the original hash code to...
What is the best way to tell if an object is modified?
CC BY-SA 2.5
null
2008-08-29T17:30:15.407
2012-11-04T23:11:34.120
2008-08-29T18:54:08.873
392
392
[ "c#", ".net" ]
34,812
2
null
34,314
1
null
If you are on Microsoft plattform you could use the Indexing service. This integrates very easliy with IIS websites. It has all the basic features like full text search, ranking, exlcude and include certain files types and you can add your own meta information as well via meta tags in the html pages. Do a google and...
null
CC BY-SA 2.5
null
2008-08-29T17:30:59.743
2008-08-29T17:30:59.743
null
null
925
null
34,807
2
null
34,790
12
null
I use a CSS class instead: ``` <input type="text" id="BeginDate" class="calendar" /> <input type="text" id="EndDate" class="calendar" /> ``` Then, in your `document.ready` function: ``` $('.calendar').datepicker(); ``` Using it that way for multiple calendar fields works for me.
null
CC BY-SA 3.0
null
2008-08-29T17:29:59.637
2016-02-08T14:26:09.357
2016-02-08T14:26:09.357
92,701
60
null
34,806
1
34,832
null
1
241
I have a little dilemma that maybe you can help me sort out. I've been working today in modifying ASP.NET's Membership to add a level of indirection. Basically, ASP.NET's Membership supports Users and Roles, leaving all authorization rules to be based on whether a user belongs to a Role or not. What I need to do is...
Class design decision
CC BY-SA 2.5
null
2008-08-29T17:29:38.060
2017-06-09T10:24:50.897
2008-08-29T18:49:52.393
1,782
1,782
[ "inheritance", "asp.net-membership", "oop" ]
34,823
2
null
34,818
3
null
I would say the answer to all those questions is NO, altough my experience with MS-SQL goes as far as SQL2000. Might be a different story in SQL2005
null
CC BY-SA 2.5
null
2008-08-29T17:37:15.017
2008-08-29T17:37:15.017
null
null
3,399
null
34,827
2
null
34,818
1
null
No to the first 3 because the index will hold the data and no the last once also
null
CC BY-SA 2.5
null
2008-08-29T17:38:42.423
2008-08-29T17:38:42.423
null
null
740
null
34,830
2
null
34,809
0
null
I personally would say go with the plan you have.. A good hash code is the best way to see if an object is "as-is".. Theres tons of hashing algorithms you can look at, check out the obvious [Wikipedia page](http://en.wikipedia.org/wiki/Hash_function) on hash functions and go from there.. Override GetHashCode and go fo...
null
CC BY-SA 2.5
null
2008-08-29T17:40:27.270
2008-08-29T17:40:27.270
null
null
832
null
34,818
1
null
null
28
10,315
In terms of performance and optimizations: - - - - -
SQL Server - Does column order matter?
CC BY-SA 2.5
0
2008-08-29T17:34:46.783
2022-06-13T14:30:14.860
null
null
357
[ "sql-server", "performance", "optimization" ]