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
15,765
2
null
9,033
527
null
From [Rick Strahl](http://www.west-wind.com/weblog/posts/236298.aspx): You can chain the ?? operator so that you can do a bunch of null comparisons. ``` string result = value1 ?? value2 ?? value3 ?? String.Empty; ```
null
CC BY-SA 2.5
null
2008-08-19T05:43:53.457
2008-08-27T01:34:54.297
2008-08-27T01:34:54.297
718
718
null
15,733
2
null
15,729
1
null
- [http://en.wikipedia.org/wiki/Boxing_(Computer_science)#Boxing](http://en.wikipedia.org/wiki/Boxing_(Computer_science)#Boxing)- [http://en.wikipedia.org/wiki/Tuples](http://en.wikipedia.org/wiki/Tuples)- [http://en.wikipedia.org/wiki/Orthogonal#Computer_science](http://en.wikipedia.org/wiki/Orthogonal#Computer_scienc...
null
CC BY-SA 2.5
null
2008-08-19T05:00:04.623
2008-08-19T05:00:04.623
null
null
1,370
null
15,771
2
null
15,729
1
null
[http://en.wikipedia.org/wiki/Boxing_%28Computer_science%29#Boxing](http://en.wikipedia.org/wiki/Boxing_%28Computer_science%29#Boxing) thats the correct link for boxing as related to computer science :D
null
CC BY-SA 2.5
null
2008-08-19T05:50:02.463
2008-08-19T05:50:02.463
null
null
924
null
15,750
2
null
15,649
0
null
> One of the things you have to remember was that the GoF book was written in the early 90s, when the prevalent OSes did not have extensive graphic libraries. Even Windows was not yet an OS at that time. IIRC GoF was released in 1994. Even in 1994 Windows 95 Beta was available (and running on my 486DX33) and Windows 3...
null
CC BY-SA 2.5
null
2008-08-19T05:23:31.593
2008-08-19T05:23:31.593
null
null
342
null
15,766
2
null
15,142
1
null
SQL injection attacks are on the upswing. It's very easy for someone to find this code and run injection attacks on your website. You must always parameterize your queries. It's best to never run exec(@x) on a dynamic SQL query. It's just not a great idea to use inline SQL ever, IMO. Stored Procedures, as argued by s...
null
CC BY-SA 2.5
null
2008-08-19T05:44:14.220
2008-08-19T05:44:14.220
null
null
1,888
null
15,738
2
null
15,694
2
null
> I believe that once the .NET Framework has been installed, extra information is passed to a web server as part of a web request signifying that the framework is available. On IE, yes. It sends the .NET Framework version as part of the UA string, e.g.: ``` Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; .NET CLR ...
null
CC BY-SA 2.5
null
2008-08-19T05:06:57.027
2008-08-19T05:06:57.027
null
null
1,600
null
15,726
2
null
15,709
12
null
Partially. YAML supports the notion of multiple consecutive "documents". If this is what you are trying to do here, then yes, it is correct - you have two documents (or document fragments). To make it more explicit, you should separate them with three dashes, like this: ``` --- heading: name: A name taco: Yes age: ...
null
CC BY-SA 2.5
null
2008-08-19T04:52:38.520
2008-08-19T04:52:38.520
null
null
1,265
null
15,767
2
null
15,744
0
null
@Ed: When using C++, there is rarely any benefit for using #define over inline functions when creating macros. The idea of "greater speed" is a misconception. With inline functions you get the same speed, but you also get type safey, and no side-effects of preprocessor "pasting" due to the fact that parameters are eval...
null
CC BY-SA 2.5
null
2008-08-19T05:44:15.157
2008-08-19T05:44:15.157
null
null
611
null
15,780
2
null
15,774
1
null
CruiseControl.NET solves a different problem (continuous integration) ... however, I've had great success with NAnt for specifically what you're asking. There's a learning curve, but once you get proficient you'll wonder how you ever got along w/o it.
null
CC BY-SA 2.5
null
2008-08-19T05:59:49.540
2008-08-19T05:59:49.540
null
null
1,886
null
15,782
2
null
100,420
2
null
The most important feature I can't live without is Visual Studio 2008. :P
null
CC BY-SA 2.5
null
2008-08-19T06:00:46.497
2010-05-12T00:57:01.947
2010-05-12T00:57:01.947
63,550
1,886
null
15,744
1
15,758
null
18
37,875
I'm wondering about instances when it makes sent to use #define and #if statements. I've known about it for a while, but never incorporated it into my way of coding. How exactly does this affect the compilation? > Is #define the only thing that determines if the code is included when compiled? If I have #define DEBUGm...
How do you use #define?
CC BY-SA 2.5
0
2008-08-19T05:16:34.980
2013-10-30T13:52:28.793
2008-08-19T06:09:23.513
380
1,888
[ "c#" ]
15,778
2
null
15,744
3
null
> Is #define the only thing that determines if the code is included when compiled? If I have #define DEBUGme as a custom symbol, the only way to exclude it from compile is to remove this #define statement? You can [undefine](http://msdn.microsoft.com/en-us/library/wkxst87d(VS.80).aspx) symbols as well ``` #...
null
CC BY-SA 2.5
null
2008-08-19T05:59:22.117
2008-08-19T05:59:22.117
null
null
716
null
15,786
2
null
100,420
2
null
The Debugger :-) Beats Notepad by miles.
null
CC BY-SA 2.5
null
2008-08-19T06:10:47.507
2008-08-19T06:10:47.507
null
null
91
null
15,789
2
null
15,678
5
null
I think you need to reorganize the responsibilities. Each component should be responsible for itself and therefore copy its generated goodness where it needs to go. That way it doesn't matter if/who/what/when/where got built. Whatever is updated will put itself into the proper place. --- IMO the other suggestio...
null
CC BY-SA 2.5
null
2008-08-19T06:15:18.667
2008-08-19T06:24:42.533
2008-08-19T06:24:42.533
1,886
1,886
null
15,796
2
null
15,649
0
null
Eclipse + netbeans + IntelliJ all are written pretty much all in java or that runs on the JVM (not C++). In at least 2 of those IDEs I have spent some time with the editor code, so I can assure you its all java (and its not easy either). VS 2005 was my last experience of visual studio, and even then I thought eclips...
null
CC BY-SA 2.5
null
2008-08-19T06:23:14.330
2008-08-19T06:23:14.330
null
null
699
null
15,788
1
15,819
null
3
628
I love the ease that the ASP.NET Ajax control Toolkit provides to ASP.NET developers. However, I've not found it to be a scalable solution at all. I have a page with 2 date input fields. By putting a TextBox and an CalendarExtendar control attached to it for each date field, I get several (11, in fact) external Javascr...
Minimize javascript HTTP calls from AjaxControlToolkit controls?
CC BY-SA 2.5
null
2008-08-19T06:14:42.770
2015-12-22T22:50:11.333
2015-12-22T22:50:11.333
-1
1,888
[ "javascript", "asp.net", "ajax", "frontend" ]
15,783
2
null
15,690
2
null
The main thing is being able to abstract the complexity of the system so that you don't get bogged down by it as soon as you start off. - First read the spec like a story (skimming through it). Don't stop at every requirement to analyze it right there and then. This will allow you to get an overall picture of the syst...
null
CC BY-SA 2.5
null
2008-08-19T06:03:57.347
2008-08-19T06:03:57.347
null
null
380
null
15,785
2
null
15,690
3
null
I also disagree about starting with the database. The DB is simply an artifact of how your business objects are persisted. I don't know of an equivalent in Java, but .Net has stellar tools such as [SubSonic](http://subsonicproject.com/) that allow your DB design to stay fluid as you iterate through your business obje...
null
CC BY-SA 2.5
null
2008-08-19T06:08:31.770
2008-08-19T06:08:31.770
null
null
1,886
null
15,805
1
15,808
null
6
633
The product we are working on allows the user to easily set it up to run automatically whenever the computer is started. This is helpful because the product is part of the basic work environment of most of our users. This feature was implemented not so long ago and for a while all was well, but when we started testing ...
Why are my auto-run applications acting weird on Vista?
CC BY-SA 3.0
null
2008-08-19T06:36:13.290
2013-12-19T18:41:28.720
2013-12-19T18:41:28.720
2,124,004
1,596
[ "windows-vista", "virtual-pc" ]
15,803
2
null
15,716
6
null
You need to decorate the ListView property with the DesignerSerializationVisibility attribute, like so: ``` [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public ListView MyListView { get { return this.listView1; } } ``` This tells the designer's code generator to output code for it.
null
CC BY-SA 2.5
null
2008-08-19T06:28:41.603
2008-08-21T23:40:14.270
2008-08-21T23:40:14.270
615
1,710
null
15,798
1
15,931
null
31
10,471
I need to validate an XML string (and not a file) against a DTD description file. How can that be done in `python`?
How do I validate xml against a DTD file in Python
CC BY-SA 3.0
0
2008-08-19T06:24:54.217
2016-04-23T11:18:32.950
2013-07-04T12:26:04.030
1,584,286
446,497
[ "python", "xml", "validation", "dtd" ]
15,810
2
null
15,774
2
null
You can set the Build Action/Copy to Output Directory property on individual files (select the file and hit F4 to open the properties window) to control what happens to them during build, but not for folders. This could probably be automated with a (pre) build task if you don't want to do it manually. Alternatively, y...
null
CC BY-SA 2.5
null
2008-08-19T06:51:24.757
2008-08-19T06:51:24.757
null
null
1,710
null
15,815
1
15,919
null
0
177
As part of the publishing "best practices" I came up with my own, I tend to archive report groups and republish the "updated" reports. However, with this stratedgy, I lose users associated with each report or have to rehide reports. Is there an automated process I can use to hide reports or add users, after deploying...
SSRS - Post Publishing Tasks
CC BY-SA 3.0
null
2008-08-19T06:56:29.427
2014-12-17T12:24:43.677
2014-12-17T12:24:43.677
2,296,199
1,580
[ "reporting-services", "automation" ]
15,774
1
157,767
null
4
2,440
I run an ASP.NET website solution with a few other projects in it. I've known that MSBuild projects are capable of this, but is it the best way? Are they easy to create? Is nAnt, CruiseControl.NET or any other solution better? When I build the site (using [Web Deployment Projects](http://msdn.microsoft.com/en-us/asp.n...
How do I automate repetitive tasks post-build?
CC BY-SA 2.5
0
2008-08-19T05:54:18.913
2009-03-23T09:20:14.177
2009-03-23T09:20:14.193
14,444
1,888
[ "c#", "asp.net", "visual-studio-2005", "msbuild", "web-deployment-project" ]
15,813
2
null
15,478
0
null
What appears to be the matter with the code? OK, the question should be... what should the code do that it doesn't already. When I run the code, I see 2 red 'spikes' am I not meant to? You appear to draw the first spike within the clipped rectangle region verified by adding the the following after the declaration of th...
null
CC BY-SA 4.0
null
2008-08-19T06:52:57.297
2023-03-03T23:49:55.330
2023-03-03T23:49:55.330
472,495
1,816
null
15,808
2
null
15,805
6
null
This is the effect of a new feature in Vista called "Boxing": Windows has several mechanisms that allow the user/admin to set up applications to automatically run when windows starts. This feature is mostly used for one of these purposes: 1. Programs that are part of the basic work environment of the user, such that th...
null
CC BY-SA 2.5
null
2008-08-19T06:43:55.987
2008-08-19T06:43:55.987
null
null
1,596
null
15,821
2
null
100,420
14
null
A lot of people don't know or use the debugger to it's fullest - I.E. just use it to stop code, but right click on the red circle and there are a lot more options such as break on condition, run code on break. Also you can change variable values at runtime using the debugger which is a great feature - saves rerunning ...
null
CC BY-SA 2.5
null
2008-08-19T07:08:00.527
2008-08-19T07:08:00.527
null
null
1,075
null
15,824
2
null
15,816
0
null
As far as I know there's no way to change the client's resolution just using VNC, as it is just a "monitor mirroring" application. [TightVNC](http://www.tightvnc.com/) however (which is a VNC client and server application) can resize the screen on the client side, i.e. making everything a little smaller (similar to im...
null
CC BY-SA 2.5
null
2008-08-19T07:13:31.733
2008-08-19T07:13:31.733
null
null
999
null
15,819
2
null
15,788
2
null
I always preferred to write my Ajax calls in javascript using JQuery or Prototype. ASP.NET Ajax Toolkit does make things easier, but it never seems to do so elegantly. I personally would make a new Calendar Controller. This way you can control the AJAX (using JQuery/Prototype) calls that are being made.
null
CC BY-SA 2.5
null
2008-08-19T07:06:39.903
2008-08-19T07:06:39.903
null
null
889
null
15,832
2
null
15,716
1
null
[Fredrik](https://stackoverflow.com/questions/15716/design-problems-with-net-usercontrol#15803) is right, basically, when you need to enable the designer to persist the property to page so it can be instantiated at run time. There is only one way to do this, and that is to write its values to the ASPX page, which is th...
null
CC BY-SA 2.5
null
2008-08-19T07:25:54.517
2008-08-19T07:25:54.517
2017-05-23T10:27:42.823
-1
832
null
15,835
2
null
15,828
1
null
you could write an excel spreadsheet that loads a given excel spreadsheet and saves it as csv (rather than doing it manually). then you could automate that from c#. and once its in csv, the c# program can grok that. (also, if someone asks you to program in excel, it's best to pretend you don't know how) (edit: ah y...
null
CC BY-SA 2.5
null
2008-08-19T07:26:38.040
2008-08-19T07:26:38.040
null
null
49
null
15,828
1
16,051
null
232
521,158
Is there a free or open source library to read Excel files (.xls) directly from a C# program? It does not need to be too fancy, just to select a worksheet and read the data as strings. So far, I've been using Export to Unicode text function of Excel, and parsing the resulting (tab-delimited) file, but I'd like to eli...
Reading Excel files from C#
CC BY-SA 2.5
0
2008-08-19T07:23:46.703
2012-12-23T06:43:09.213
2008-09-26T18:42:01.077
2,134
838
[ "c#", ".net", "excel", "ms-office" ]
15,793
2
null
4,994
0
null
I previously organised my DDL code organised by one file per entity and made a tool that combined this into a single DDL script. My former employer used a scheme where all table DDL was in one file (stored in oracle syntax), indicies in another, constraints in a third and static data in a fourth. A change script was k...
null
CC BY-SA 2.5
null
2008-08-19T06:19:37.910
2008-08-19T06:19:37.910
null
null
224
null
15,837
2
null
15,828
3
null
Forgive me if I am off-base here, but isn't this what the [Office PIA's](http://www.microsoft.com/downloads/details.aspx?FamilyId=C41BD61E-3060-4F71-A6B4-01FEBA508E52&displaylang=en) are for?
null
CC BY-SA 2.5
null
2008-08-19T07:28:03.683
2008-08-19T07:28:03.683
null
null
832
null
15,811
2
null
6,613
10
null
I am one of the authors of Drools, I will avoid pimping my wares. But some other options are Jess (not open source) but uses the clips syntax (which we also support a subset of) - which is kinda a lisp dialect. It really depends what you want it for, Haley have strong Natural language tech (and they recently aquire...
null
CC BY-SA 2.5
null
2008-08-19T06:51:46.643
2008-08-19T06:51:46.643
null
null
699
null
15,816
1
1,083,668
null
172
560,233
I use VNC to connect to a Linux workstation at work. At work I have a 20" monitor that runs at 1600x1200, while at home I use my laptop with its resolution of 1440x900. If I set the vncserver to run at 1440x900 I miss out on a lot of space on my monitor, whereas if I set it to run at 1600x1200 it doesn't fit on the la...
Changing the resolution of a VNC session in linux
CC BY-SA 2.5
0
2008-08-19T06:56:39.440
2021-02-11T21:42:17.537
null
null
1,084
[ "linux", "vnc" ]
15,846
2
null
15,838
24
null
Yes, but only very slightly. A much bigger performance improvement can be achieved by using better algorithms (for example keeping the list sorted and doing a binary search). In general optimizing a given algorithm only gets you so far. Choosing a better algorithm (even if it's not completely optimized) can give you a...
null
CC BY-SA 2.5
null
2008-08-19T07:33:20.943
2008-08-19T07:33:20.943
null
null
1,265
null
15,838
1
15,846
null
9
3,645
Can the performance of this sequential search algorithm (taken from [The Practice of Programming](http://books.google.co.uk/books?id=to6M9_dbjosC&dq=the+practice+of+programming&pg=PP1&ots=3YH6Ggq0_a&sig=F2-ajdO37xA4iRec2sCyQF55Jjc&hl=en&sa=X&oi=book_result&resnum=1&ct=result)) be improved using any of C's native utili...
Optimizing a search algorithm in C
CC BY-SA 2.5
null
2008-08-19T07:28:31.967
2013-11-21T09:13:50.693
2008-08-19T09:57:36.580
770
381
[ "c", "performance", "algorithm", "optimization" ]
15,839
2
null
15,828
83
null
If it is just simple data contained in the Excel file you can read the data via ADO.NET. See the connection strings listed here: [http://www.connectionstrings.com/?carrier=excel2007](http://www.connectionstrings.com/?carrier=excel2007) or [http://www.connectionstrings.com/?carrier=excel](http://www.connectionstrings....
null
CC BY-SA 2.5
null
2008-08-19T07:28:37.630
2008-08-19T07:46:51.057
2008-08-19T07:46:51.073
1,627
1,627
null
15,849
2
null
15,838
2
null
I think, it will not make much of a difference. The compiler will already optimize it in that direction. Besides, the variable i does not have much impact, word stays constant throughout the function and the rest is too large to fit in any register. It is only a matter how large the cache is and if the whole array mig...
null
CC BY-SA 2.5
null
2008-08-19T07:36:47.863
2008-08-19T07:36:47.863
null
null
1,398
null
15,853
2
null
15,734
1
null
[This guy](http://www.mojoportal.com/mojoportal-gets-advanced-google-analytics-integration.aspx) has had some success with at least some light Analytics integration. Now I realize this isn't exactly what you're looking for, but he does mention a book and perhaps you can get in touch with him.
null
CC BY-SA 2.5
null
2008-08-19T07:45:30.403
2008-08-19T07:45:30.403
null
null
1,886
null
15,836
2
null
15,828
1
null
I know that people have been making an Excel "extension" for this purpose. You more or less make a button in Excel that says "Export to Program X", and then export and send off the data in a format the program can read. [http://msdn.microsoft.com/en-us/library/ms186213.aspx](http://msdn.microsoft.com/en-us/library/ms1...
null
CC BY-SA 2.5
null
2008-08-19T07:26:41.987
2008-08-19T07:26:41.987
null
null
960
null
15,817
2
null
6,613
4
null
Depending on what your requirements are, [Windows Workflow Foundation](http://msdn.microsoft.com/en-us/netframework/aa663328.aspx) (.NET 3.5) might be worth having a look at. The .NET rule engine [InRule](http://www.inrule.com/) supports WF and BizTalk; I've not tried it though so don't know if it's any good.
null
CC BY-SA 3.0
null
2008-08-19T06:57:14.043
2016-06-02T16:51:15.093
2016-06-02T16:51:15.093
253,938
1,710
null
15,855
2
null
15,851
1
null
Easily, my good man. ``` for( int idx = 0; idx < vectorLength; idx++) { if( conditionAtVectorPosition( v, idx ) ) continue; for( rowIdx = 0; rowIdx < n; rowIdx++ ) { if( anotherConditionAtVector( v, rowIdx ) ) continue; if( conditionAtMatrixRowCol( m, rowIdx, idx ) ) break; } if( !conditionAtMatrixRow...
null
CC BY-SA 2.5
null
2008-08-19T07:45:54.537
2008-08-19T08:00:10.123
2008-08-19T08:00:10.123
429
429
null
15,863
2
null
15,857
3
null
You could use jQuery. Here is an example: [http://www.jqueryplugins.com/plugin/47/](http://www.jqueryplugins.com/plugin/47/)
null
CC BY-SA 3.0
null
2008-08-19T07:52:20.547
2011-12-01T03:19:04.057
2011-12-01T03:19:04.057
202
202
null
15,869
2
null
15,851
1
null
@Patrick you are assuming calling setValueInVector( v, idx ); at the end of the second loop is OK. If the code is to be identical, logically, it must be rewritten to somethng like this:
null
CC BY-SA 2.5
null
2008-08-19T07:56:04.393
2008-08-19T07:56:04.393
null
null
1,709
null
15,858
2
null
15,828
1
null
Just did a quick demo project that required managing some excel files. The .NET component from GemBox software was adequate for my needs. It has a free version with a few limitations. [http://www.gemboxsoftware.com/GBSpreadsheet.htm](http://www.gemboxsoftware.com/GBSpreadsheet.htm)
null
CC BY-SA 2.5
null
2008-08-19T07:48:58.073
2008-08-19T07:48:58.073
null
null
202
null
15,842
2
null
15,828
4
null
Not free, but with the latest Office there's a nice automation .Net API. (there has been an API for a long while but was nasty COM) You can do everything you want / need in code all while the Office app remains a hidden background process.
null
CC BY-SA 2.5
null
2008-08-19T07:31:57.670
2008-08-19T07:31:57.670
null
null
1,886
null
15,870
2
null
15,851
0
null
Does this work for you? I extracted the inner loop into a method CheckedEntireMatrix (you can name it better than me) - Also my java is a bit rusty.. but I think it gets the message across ``` for( int idx = 0; idx < vectorLength; idx++) { if( conditionAtVectorPosition( v, idx ) || !CheckedEntireMatrix(v)) co...
null
CC BY-SA 2.5
null
2008-08-19T07:56:50.710
2008-08-19T07:56:50.710
null
null
1,695
null
15,857
1
null
null
15
2,682
I'm in the unfortunate position of having to implement a drop-down cascading menu on a site I'm building. I'm looking for a Suckerfish-style solution that is primarily CSS-based and works on a simple set of nested ULs and LIs. [Son of Suckerfish](http://htmldog.com/articles/suckerfish/dropdowns/) seems like the way t...
CSS Drop-Down Menus - "Best"? Most feature-rich?
CC BY-SA 2.5
0
2008-08-19T07:48:24.283
2017-03-07T10:41:17.723
2008-08-25T13:45:42.747
392
192
[ "css", "navigation", "suckerfish" ]
15,874
2
null
11,088
1
null
Using ints is generally better than using shorts because java uses 32-bit values internally anyway (Even for bytes, unless in an array) so using ints will avoid unnecessary conversion to/from short values in the bytecode.
null
CC BY-SA 2.5
null
2008-08-19T08:03:27.637
2008-08-19T08:03:27.637
null
null
974
null
15,866
2
null
6,613
0
null
WF is available already in .net 3.0. It is a bit buggy though on the Designer-side in Visual Studio and can get quite messy. I use it on Sharepoint (where WF is pretty much your only option anyway) and overall I am quite satisfied with it, even though the learning curve is rather steep. [Foundations of WF](http://www....
null
CC BY-SA 2.5
null
2008-08-19T07:54:20.510
2008-08-19T07:54:20.510
null
null
91
null
15,871
1
15,877
null
17
1,615
I work on a complex application where different teams work on their own modules with a degree of overlap. A while back we got a Mediawiki instance set up, partly at my prompting. I have a hard job getting people to actually use it, let alone contribute. I can see a lot of benefit in sharing information. It may at leas...
Getting developers to use a wiki
CC BY-SA 2.5
0
2008-08-19T07:57:20.100
2010-07-03T18:09:49.133
null
null
1,895
[ "documentation", "wiki", "mediawiki" ]
15,877
2
null
15,871
8
null
As I mentioned [before](https://stackoverflow.com/questions/10961/have-you-used-a-wiki-in-your-project-or-group#10977), a Wiki is very unorganized. However, if that is the only argument from your developers, then invest some effort to create a simple index page and keep it updated (either do it yourself or ask people ...
null
CC BY-SA 2.5
null
2008-08-19T08:05:53.623
2008-08-19T08:05:53.623
2017-05-23T10:32:50.733
-1
1,398
null
15,876
2
null
15,838
1
null
If you're reading TPOP, you will next see how they make this search many times faster with different data structures and algorithms. But you can make things a bit faster by replacing things like ``` for (i = 0; i < n; ++i) foo(a[i]); ``` with ``` char **p = a; for (i = 0; i < n; ++i) foo(*p); ++p; ``` ...
null
CC BY-SA 2.5
null
2008-08-19T08:05:16.730
2008-08-19T08:05:16.730
null
null
116
null
15,878
2
null
15,871
0
null
Find "sticky" items (sub-3 pg. docs / diagrams / etc) something that the team seems to be creating again and again & post it on the wiki. Make sure everyone has access to the wiki and knows its there - set up a notification mechanism if possible. With some luck, the next time they have to access, rather than dig it out...
null
CC BY-SA 2.5
null
2008-08-19T08:07:09.550
2008-08-19T08:07:09.550
null
null
1,695
null
15,865
2
null
15,816
-3
null
I think that depends on your window manager. I'm a windows user, so this might be a wrong guess, but: Isn't there something called [X-Server](http://de.wikipedia.org/wiki/X-Server) running on linux machines - at least on ones that might be interesting targets for VNC - that you can connect to with "X-Clients"? VNC ju...
null
CC BY-SA 2.5
null
2008-08-19T07:54:11.040
2008-08-19T07:54:11.040
null
null
999
null
15,886
2
null
15,334
5
null
[SnippetsEmu](http://www.vim.org/scripts/script.php?script_id=1318) is a useful snippets plugin.
null
CC BY-SA 3.0
null
2008-08-19T08:13:01.020
2015-07-08T20:49:19.937
2015-07-08T20:49:19.937
4,434,754
1,896
null
15,887
2
null
15,871
6
null
We've been using a wiki in some form or another for a while now, but it does take a while for people to get on board. You might find that you will be the only one writing articles for some time, but bear with it, other people will come on board eventually. If someone sends an email around that contains information re...
null
CC BY-SA 2.5
null
2008-08-19T08:14:09.287
2008-08-19T08:14:09.287
null
null
1,193
null
15,885
2
null
15,871
2
null
I have done some selling and even run some training sessions. I think some people are turned off by the lack of WYSIWYG editing and ability to paste formatted text from Word or Outlook. I know there are some tools to work around these, but they are still barriers. There are some areas where the wiki is being used to l...
null
CC BY-SA 2.5
null
2008-08-19T08:11:36.700
2008-08-19T08:11:36.700
null
null
1,895
null
15,889
2
null
15,871
5
null
I think most of the answers so far are spot on - the more you plug away at it yourself, the larger the body of useful information will become, so slowly but surely people will naturally start to use it. The other approach you could use is this: Suggest that every time someone asks another team member a question about...
null
CC BY-SA 2.5
null
2008-08-19T08:21:55.213
2008-08-19T08:21:55.213
null
null
475
null
15,892
2
null
15,774
1
null
In addition to @Fredrik's tip about setting project items to "Copy to Output Directory", you can also specify a post-build action in the project's properties in the Build tab and include CMD commands like copy.exe and move.exe.
null
CC BY-SA 2.5
null
2008-08-19T08:24:28.890
2008-08-19T08:24:28.890
null
null
1,659
null
15,873
2
null
15,871
3
null
Sell the idea of using the wiki to the developers. You've identified some benefits, share those with the developers. If they can see that they'll get something of value out of it they'll start using it. Example advantages from [What Is a Wiki](http://www.oreillynet.com/pub/a/network/2006/07/07/what-is-a-wiki.html?page...
null
CC BY-SA 2.5
null
2008-08-19T08:00:23.260
2008-08-19T08:05:37.227
2008-08-19T08:05:37.227
381
381
null
15,897
2
null
6,729
2
null
I have a couple that I really like: [GlyFx](http://glyfx.com/products/free.html) and [Liquidicity Vector Icons](http://www.gosquared.com/liquidicity/archives/122). Those from Liquidicity are specially useful for WPF or Silverlight, you can make an interface that even zoomed looks great.
null
CC BY-SA 2.5
null
2008-08-19T08:34:50.197
2008-08-19T08:34:50.197
null
null
1,013
null
15,894
2
null
15,481
2
null
The convention I've most seen is simply camel case, like a method name... ``` myLabel: ``` but I've also seen labels prefixed with an underscore ``` _myLabel: ``` or with lab... ``` labSomething: ``` You can probably sense though from the other answers that you'll be hard-pushed to find a coding standard that ...
null
CC BY-SA 2.5
null
2008-08-19T08:25:47.500
2008-08-19T08:25:47.500
null
null
974
null
15,893
2
null
15,880
0
null
If you open the .MSG file in a text editor, i believe you will find that the information you are after is stored as plain text inside the file. (It is on all the messages i have checked at least) It would be pretty easy to write some code to parse the file looking for lines beginning with "From:" or "To:" etc. and the...
null
CC BY-SA 2.5
null
2008-08-19T08:24:37.440
2008-08-19T08:24:37.440
null
null
1,061
null
15,883
2
null
15,788
0
null
ASP.NET AJAX allows you to register web services with the ScriptManager which will create JavaScript proxies for you to call. See [http://msdn.microsoft.com/en-us/library/bb515101.aspx](http://msdn.microsoft.com/en-us/library/bb515101.aspx).
null
CC BY-SA 2.5
null
2008-08-19T08:10:35.050
2013-01-23T09:29:02.453
2013-01-23T09:29:02.453
1,659
1,659
null
15,900
1
null
null
0
1,268
What's the best way/tool to display nice diagrams with entity relationships in ASP MVC views? i.e. servers and and applications, or servers with other servers. Are there any third party tools out there that can do this? I've been searching around things like Telerik, but it's really hard to google for this!
Entity diagrams in ASP.NET MVC
CC BY-SA 3.0
null
2008-08-19T08:46:08.613
2015-08-24T08:56:36.560
2015-08-24T08:56:36.560
155,077
1,122
[ "asp.net", "asp.net-mvc", ".net-3.5", "graphics", "diagram" ]
15,880
1
19,859
null
18
41,490
I need to read from Outlook .MSG file in .NET using COM API for Outlook (cos it will not be installed on the machines that my app will run). Are there any free 3rd party libraries to do that? I want to extract From, To, CC and BCC fields. Sent/Receive date fields would be good if they are also stored in MSG files.
Read from .msg files
CC BY-SA 2.5
0
2008-08-19T08:07:28.037
2016-03-02T21:24:53.680
2008-08-21T18:18:36.057
39
39
[ "c#", "outlook", "email", "message", "msg" ]
15,881
2
null
15,871
4
null
You can't force developers to do something they do not have an incentive of using for; unfortunately wikis, like documentation (well, in fact wikis documentation) rarely have any "cool" value for developers. Besides, they're already deep into dev work -- could you really bother them with a wiki? That being said, the ...
null
CC BY-SA 2.5
null
2008-08-19T08:08:00.623
2008-08-19T08:08:00.623
null
null
372
null
15,901
2
null
15,851
0
null
Gishu has the right idea : ``` for( int idx = 0; idx < vectorLength; idx++) { if (!conditionAtVectorPosition( v, idx ) && checkedRow(v, idx)) setValueInVector( v, idx ); } private boolean checkedRow(Vector v, int idx) { for( rowIdx = 0; rowIdx < n; rowIdx++ ) { if( anotherConditionAt...
null
CC BY-SA 2.5
null
2008-08-19T08:46:08.830
2008-08-19T08:46:08.830
null
null
1,730
null
15,904
2
null
15,272
3
null
A simple linked list can be used for this. Basically you add new items to the end, and remove too old items from the start, it is a cheap data structure. example-code: ``` list.push_end(new_data) while list.head.age >= age_limit: list.pop_head() ``` If the list will be busy enough to warrant chopping off large...
null
CC BY-SA 2.5
null
2008-08-19T08:53:14.697
2008-08-19T08:53:14.697
2017-05-23T10:27:49.720
-1
267
null
15,914
2
null
15,478
0
null
The bug is that both line segments should be drawn identical but they are not because the spike that is drawn within the clipping region is completely within the clipping region and should not be clipped in any way but it is. This is a very annoying but that results in any software that uses drawlines heavily + clippin...
null
CC BY-SA 2.5
null
2008-08-19T09:17:37.113
2008-08-19T09:17:37.113
null
null
1,873
null
15,898
2
null
3,088
0
null
In my biased opinion, C is the best point to start. The language is small, it's high level features are ubiquitous and the low level features let you learn the machine. I found the [C Primer Plus, 5th Edition](https://rads.stackoverflow.com/amzn/click/com/0672326973) very helpful as a beginning programmer with almost ...
null
CC BY-SA 2.5
null
2008-08-19T08:37:58.660
2008-08-19T08:37:58.660
null
null
1,897
null
15,908
2
null
15,851
1
null
From reading your code. - - So you can do this: - - - I hope this helps.
null
CC BY-SA 2.5
null
2008-08-19T09:09:28.767
2008-08-19T09:09:28.767
null
null
718
null
15,915
2
null
15,838
2
null
There is well-known technique as sentinal method. To use sentinal method, you must know about the length of "array[]". You can remove "array[i] != NULL" comparing by using sentinal. ``` int lookup(char *word, char*array[], int array_len) { int i = 0; array[array_len] = word; for (;; ++i) if (strcmp...
null
CC BY-SA 2.5
null
2008-08-19T09:19:33.443
2008-08-19T09:19:33.443
null
null
1,556
null
15,928
2
null
15,857
1
null
You won't be able to get a pure CSS drop down menu with the functionality you require. You'll have to use some kind of Javascript. Either a library like JQuery that has been mentioned or by modifying the Suckerfish code to use onclick instead of onmouseover/out. But by going an all Javascript route you could be maki...
null
CC BY-SA 2.5
null
2008-08-19T09:38:19.053
2008-08-19T09:38:19.053
null
null
1,900
null
15,903
2
null
15,851
0
null
I'm not too sure to understand the first continue. I would copy Gishu and write something like ( sorry if there are some mistakes ) : ``` for( int idx = 0; idx < vectorLength; idx++) { if( !conditionAtVectorPosition( v, idx ) && CheckedEntireMatrix(v)) setValueInVector( v, idx ); } inline bool CheckedEnti...
null
CC BY-SA 2.5
null
2008-08-19T08:50:59.227
2008-08-19T08:50:59.227
null
null
446,497
null
15,919
2
null
15,815
0
null
[Paul Stovell](http://www.paulstovell.com/blog/) posted some examples of [Reporting Services automation](http://svn.paulstovell.net/Projects/ReportingServicesAutomation/trunk/src/) that might get you going. EDIT: The link to the Subversion repository has been updated and is now working
null
CC BY-SA 2.5
null
2008-08-19T09:26:49.967
2008-09-11T10:19:36.080
2008-09-11T10:19:36.080
966
966
null
15,926
2
null
15,816
26
null
I think your best best is to run the VNC server with a different geometry on a different port. I would try based on the [man page](http://www.realvnc.com/products/free/4.1/man/vncserver.html) > ``` $vncserver :0 -geometry 1600x1200 $vncserver :1 -geometry 1440x900 ``` Then you can connect from work to one port and f...
null
CC BY-SA 2.5
null
2008-08-19T09:36:37.247
2008-08-19T13:09:50.407
2008-08-19T13:09:50.407
238
238
null
15,917
1
142,767
null
15
8,549
I'm using NHibernate on a project and I need to do data auditing. I found [this article](http://www.codeproject.com/KB/cs/NHibernate_IInterceptor.aspx) on codeproject which discusses the IInterceptor interface. What is your preferred way of auditing data? Do you use database triggers? Do you use something similar t...
Data Auditing in NHibernate and SqlServer
CC BY-SA 2.5
0
2008-08-19T09:24:08.583
2013-10-01T12:24:41.460
2013-10-01T12:24:41.460
299,327
1,122
[ "sql-server", "nhibernate", "audit" ]
15,937
2
null
14,617
210
null
Another option is to consider looking at the [JSch library](http://www.jcraft.com/jsch/). JSch seems to be the preferred library for a few large open source projects, including Eclipse, Ant and Apache Commons HttpClient, amongst others. It supports both user/pass and certificate-based logins nicely, as well as all a w...
null
CC BY-SA 2.5
null
2008-08-19T09:44:41.723
2008-08-21T09:48:25.503
2008-08-21T09:48:25.503
1,820
1,820
null
15,931
2
null
15,798
32
null
Another good option is [lxml's validation](http://lxml.de/validation.html) which I find quite pleasant to use. A simple example taken from the lxml site: ``` from StringIO import StringIO from lxml import etree dtd = etree.DTD(StringIO("""<!ELEMENT foo EMPTY>""")) root = etree.XML("<foo/>") print(dtd.validate(root)...
null
CC BY-SA 3.0
null
2008-08-19T09:39:56.927
2016-04-23T11:18:32.950
2016-04-23T11:18:32.950
279,610
995
null
15,939
2
null
15,481
41
null
I don't understand where this "don't use labels" rule comes from. When doing non-trivial looping logic, the test to break or continue isn't always neatly at the end of the surrounding block. ``` outer_loop: for (...) { // some code for (...) { // some code if (...) continue outer_loop; // more...
null
CC BY-SA 2.5
null
2008-08-19T09:46:52.577
2008-08-19T09:46:52.577
null
null
1,000
null
15,944
2
null
15,481
1
null
wrt [sadie's code example](https://stackoverflow.com/questions/15481/java-coding-standard-best-practices-labeled-brakecontinue#15939): You gave ``` outerloop: for (...) { // some code for (...) { // some code if (...) continue outerloop; // more code } // more code } ``` As an example...
null
CC BY-SA 2.5
null
2008-08-19T10:10:06.900
2008-08-19T10:10:06.900
2017-05-23T12:10:51.083
-1
1,666
null
15,940
2
null
15,917
3
null
I prefer the CodeProject approach you mentioned. One problem with database triggers is that it leaves you no choice but to use Integrated Security coupled with ActiveDirectory as access to your SQL Server. The reason for that is that your connection should inherit the identity of the user who triggered the connection;...
null
CC BY-SA 2.5
null
2008-08-19T09:48:50.547
2008-08-19T09:48:50.547
null
null
372
null
15,948
2
null
15,254
5
null
@Derek 5.3.4, section 12 talks about the array allocation overhead and, unless I'm misreading it, it seems to suggest to me that it is valid for the compiler to add it on placement new as well: > This overhead may be applied in all array new-expressions, including those referencing the library function operator new[]...
null
CC BY-SA 2.5
null
2008-08-19T10:16:44.577
2008-08-19T10:16:44.577
null
null
1,739
null
15,851
1
15,946
null
19
2,069
After I was convinced that labeled breaks/continues are a total "nono" over [here](https://stackoverflow.com/questions/15481/java-coding-standard-best-practices-labeled-brakecontinue#15501), I need help to remove the label out of my code. I have a square matrix and a vector that has the same length. The vector has alr...
Refactoring away labeled loops
CC BY-SA 3.0
0
2008-08-19T07:42:02.407
2013-12-02T12:41:25.173
2017-05-23T11:47:35.330
-1
1,870
[ "java", "refactoring", "label" ]
15,946
2
null
15,851
34
null
Looking at the solutions presented so far: - They all look less readable than the original, in that they involve spending more code on the mechanism of the code rather than on the algorithm itself- Some of them are broken, or were before they were edited. Most damning is the fact that people are having to think quite ...
null
CC BY-SA 2.5
null
2008-08-19T10:14:51.523
2008-08-19T10:14:51.523
null
null
1,000
null
15,947
2
null
12,669
1
null
I'm with Ian on this one. Reading books is all well and good, but nothing beats getting stuck in. I actually started with a Dummies Guide to ASP (that'd be "classic" ASP), back in 1999. If I was going to start from scratch today I'd be looking at something that covered a full stack solution, whether Apache/PHP/MySQL, ...
null
CC BY-SA 2.5
null
2008-08-19T10:16:15.903
2008-08-19T10:22:14.423
2008-08-19T10:22:14.423
1,025
1,025
null
15,938
2
null
2,933
6
null
For the GUI itself: [PyQT](http://wiki.python.org/moin/PyQt) is pretty much the reference. Another way to develop a rapid user interface is to write a web app, have it run locally and display the app in the browser. Plus, if you go for the Tkinter option suggested by lubos hasko you may want to try portablepy to hav...
null
CC BY-SA 2.5
null
2008-08-19T09:45:44.420
2008-08-19T09:45:44.420
null
null
446,497
null
15,954
1
null
null
3
4,402
How can a `sdbm` hash function (such as [this](http://www.cse.yorku.ca/~oz/hash.html)) be implemented in C# ?
How would a sdbm hash function be implemented in C#?
CC BY-SA 3.0
null
2008-08-19T10:33:21.703
2019-11-27T02:05:00.033
2013-10-07T12:03:53.310
2,642,204
1,658
[ "c#", "hash" ]
15,899
1
16,019
null
6
5,212
I have a `XmlDocument` in java, created with the `Weblogic XmlDocument` parser. I want to replace the content of a tag in this `XMLDocument` with my own data, or insert the tag if it isn't there. ``` <customdata> <tag1 /> <tag2>mfkdslmlfkm</tag2> <location /> <tag3 /> </customdata> ``` For example I wan...
How to insert/replace XML tag in XmlDocument?
CC BY-SA 4.0
null
2008-08-19T08:46:08.207
2019-11-21T19:44:09.563
2019-11-21T19:44:09.563
7,248,094
86
[ "java", "xml", "xquery" ]
15,952
2
null
15,816
1
null
I'm not sure about linux, but under windows, tightvnc will detect and adapt to resolution changes on the server. So you should be able to VNC into the workstation, do the equivalent of right-click on desktop, properties, set resolution to whatever, and have your client vnc window resize itself accordingly.
null
CC BY-SA 2.5
null
2008-08-19T10:32:18.010
2008-08-19T10:32:18.010
null
null
369
null
15,951
2
null
100,420
21
null
Sara Ford has this market cornered. [http://blogs.msdn.com/saraford/default.aspx](http://blogs.msdn.com/saraford/default.aspx) More Visual Studio tips and tricks than you can shake a stick at. Some others: - [used indefinitely](http://www.codingthewheel.com/archives/microsoft-vs-the-system-clock)- [Microsoft Dreams...
null
CC BY-SA 2.5
null
2008-08-19T10:24:53.500
2008-08-19T10:24:53.500
null
null
null
null
15,918
2
null
15,365
4
null
Let's see if my take adds anything (not certain by any means...) 1. I'm not sure about the "assigning a release to each one" thing. I thought the idea was to put a "price" on each story/function point/unit of development and pick what goes into the current sprint. Everything else is backlog - you can offer some indic...
null
CC BY-SA 2.5
null
2008-08-19T09:26:44.023
2008-08-19T09:26:44.023
null
null
1,060
null
15,956
2
null
15,690
5
null
This sounds very much like my first job. Straight out of university, I was asked to design the database and business logic layer, while other people would take care of the UI. Meanwhile the boss was looking over my shoulder, unwilling to let go of what used to be his baby and was now mine, and poking his finger in it. ...
null
CC BY-SA 2.5
null
2008-08-19T10:34:35.897
2008-08-19T10:34:35.897
null
null
1,000
null
15,963
2
null
15,266
1
null
I've hit the same issue - I was developing a SOAP client, and the dev server has a "homegrown" certificate. I wasn't able to solve the issue even using that method, since I wasn't using NSURL, but the (poorly documented and apparently abandoned) WS methods, and decided for the time being to (internally) just use a non...
null
CC BY-SA 2.5
null
2008-08-19T10:41:42.827
2008-08-19T10:41:42.827
null
null
188
null
15,949
1
16,168
null
17
42,320
I have a tomcat instance setup but the database connection I have configured in `context.xml` keeps dying after periods of inactivity. When I check the logs I get the following error: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was68051 seconds ago....
Java+Tomcat, Dying database connection?
CC BY-SA 4.0
0
2008-08-19T10:17:24.090
2019-02-13T15:38:08.917
2019-02-13T15:38:08.917
2,630,326
22
[ "java", "mysql", "database", "tomcat" ]
15,969
2
null
15,690
0
null
Split the big system to smaller pieces. And don't think that it's so complex, because it usually isn't. By thinking too complex it just ruins your thoughts and eventually the design. Some point you just realize that you could do the same thing easier, and then you redesign it. Atleast this has been my major mistake in...
null
CC BY-SA 2.5
null
2008-08-19T10:48:18.100
2008-08-19T10:48:18.100
null
null
1,703
null