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
37,891
2
null
37,812
6
null
Check out the Windows Management Performance counters. If you look in your Administrative Tools and find "Performance Counters", you will be able to dig through there and find detailed metrics on what is happening on each message queue. This can also work for remote servers. Should you wish to create some sort of aut...
null
CC BY-SA 2.5
null
2008-09-01T12:58:28.267
2008-09-01T12:58:28.267
null
null
942
null
37,887
1
null
null
7
3,633
I am aware of [Capistrano](http://www.capify.org/), but it is a bit too heavyweight for me. Personally, I set up two [Mercurial](http://www.selenic.com/mercurial/wiki/) repositories, one on the production server and another on my local dev machine. Regularly, when a new feature is ready, I push changes from repository ...
How do you update your web application on the server?
CC BY-SA 4.0
0
2008-09-01T12:56:40.767
2022-08-22T13:14:41.593
2022-08-22T13:14:41.593
4,957,508
4,018
[ "deployment", "web-applications", "administration", "maintenance-mode" ]
37,889
2
null
37,821
0
null
Do you want to know if you can home-roll something or are you looking for an app you can get off the shelf? I'm not a Windows guy, but I think Microsoft's MOM/SCOM solution will probably let you view the event log over a web UI - probably really heavy and expensive if that's all you need though. A quick google found ...
null
CC BY-SA 2.5
null
2008-09-01T12:56:45.710
2008-09-01T12:56:45.710
null
null
2,362
null
37,904
2
null
37,743
0
null
@Matt Hamilton Your answer works with the example above but would not work if the data set was 100, 75, 75, 50, 50 (where it would return only 3 rows). TOP WITH TIES only includes the ties of the last row returned...
null
CC BY-SA 2.5
null
2008-09-01T13:02:31.673
2008-09-01T13:02:31.673
null
null
1,008
null
37,900
2
null
30,318
1
null
I know that in Mac OS X is not a shell but it is the best graphical tool I have ever used to do batch tasks. I think it is worth mentioning here as even I (self-titled as a power user) use it from time to time to rename files or other routines. Although these could be done in a few lines of shell script, the 's graphi...
null
CC BY-SA 2.5
null
2008-09-01T13:01:41.330
2008-09-01T13:01:41.330
null
null
3,388
null
37,906
2
null
23,930
1
null
Using anonymous functions: ``` var f = function(n){ if(n>1){ return arguments.callee(n-1)*n; } return 1; } ```
null
CC BY-SA 2.5
null
2008-09-01T13:02:56.303
2008-09-01T13:02:56.303
null
null
1,585
null
37,914
2
null
37,743
0
null
Crucible got it (assuming SQL 2005 is an option).
null
CC BY-SA 2.5
null
2008-09-01T13:08:10.783
2008-09-01T13:08:10.783
null
null
3,742
null
37,908
2
null
37,887
1
null
I used to use git push to publish to my web server but lately I've just been using rsync. I try to make my site as agnostic about where it's running as possible (using relative paths, etc) and so far it's worked pretty well. The only challenge is keeping databases in sync, and for that I usually use the production data...
null
CC BY-SA 2.5
null
2008-09-01T13:04:34.740
2008-09-01T13:04:34.740
null
null
658
null
37,912
1
null
null
3
1,074
How do you use the the org.springframework.ws.transport.jms.WebServiceMessageDrivenBean class from the Java Spring Framework - Spring-WS project? There is very little documentation or examples available on the web.
How do you use WebServiceMessageDrivenBean in Spring-WS?
CC BY-SA 2.5
0
2008-09-01T13:06:31.367
2015-08-06T09:10:34.773
2008-09-02T08:04:34.703
null
null
[ "java", "spring", "spring-ws" ]
37,917
2
null
37,535
17
null
I prefer [dbfpy](http://sourceforge.net/projects/dbfpy/). It supports both reading and writing of `.DBF` files and can cope with most variations of the format. It's the only implementation I have found that could both read and write the legacy DBF files of some older systems I have worked with.
null
CC BY-SA 2.5
null
2008-09-01T13:12:53.317
2008-09-01T13:12:53.317
null
null
1,709
null
37,919
2
null
37,832
1
null
[Read this](http://wiki.c2.com/?TheHumbleDialogBox) if you're struggling with UI Testing Manually test UI stuff where benefit to cost in automating it is minimal. Test everything under the UI skin ruthlessly. Use Humble Dialog, MVC or variants to keep logic and UI distinct and loosely coupled.
null
CC BY-SA 3.0
null
2008-09-01T13:13:57.307
2016-12-23T18:47:38.437
2016-12-23T18:47:38.437
18,160
1,695
null
37,918
2
null
25,259
2
null
There is a small Ruby on Rails plugin called [PermalinkFu](http://svn.techno-weenie.net/projects/plugins/permalink_fu/), that does this. The [escape method](http://svn.techno-weenie.net/projects/plugins/permalink_fu/lib/permalink_fu.rb) does the transformation into a string that is suitable for a [URL](http://en.wikipe...
null
CC BY-SA 3.0
null
2008-09-01T13:13:39.197
2014-01-01T11:47:01.677
2014-01-01T11:47:01.677
63,550
4,025
null
37,893
2
null
37,248
3
null
The main argument agaisnt building a pre-rocessor for C# is integration in Visual Studio: it would take a lot of efforts (if at all possible) to get intellisense and the new background compiling to work seamlessly. Alternatives are to use a Visual Studio productivity plugin like [ReSharper](http://www.jetbrains.com/re...
null
CC BY-SA 3.0
null
2008-09-01T12:59:13.270
2016-03-16T12:46:36.553
2016-03-16T12:46:36.553
1,546,844
3,811
null
37,922
2
null
25,259
11
null
You can also use this [JavaScript](http://en.wikipedia.org/wiki/JavaScript) function for in-form generation of the slug's (this one is based on/copied from [Django](http://en.wikipedia.org/wiki/Django_%28web_framework%29)): ``` function makeSlug(urlString, filter) { // Changes, e.g., "Petty theft" to "petty_theft"...
null
CC BY-SA 3.0
null
2008-09-01T13:16:17.957
2013-07-10T16:29:35.610
2013-07-10T16:29:35.610
63,550
3,215
null
37,926
2
null
9,033
17
null
The [extern alias](http://msdn.microsoft.com/en-us/library/ms173212.aspx) keyword to reference two versions of assemblies that have the same fully-qualified type names.
null
CC BY-SA 2.5
null
2008-09-01T13:21:10.630
2009-09-12T21:10:40.623
2009-09-12T21:10:40.623
63,550
2,361
null
37,924
2
null
37,702
27
null
I have to disagree with a lot of the answers to this question. It is possible to collect random data on a computer. SSL, SSH and VPNs would not be secure if you couldn't. The way software random number generator work is there is a of random data that is gathered from many different places, such as clock drift, inter...
null
CC BY-SA 2.5
null
2008-09-01T13:20:21.490
2008-09-01T13:20:21.490
null
null
854
null
37,928
2
null
3,088
1
null
A good resource to teach young people is the free eBook "Invent your own games with Python": [http://pythonbook.coffeeghost.net/book1/IYOCGwP_book1.pdf](http://pythonbook.coffeeghost.net/book1/IYOCGwP_book1.pdf)
null
CC BY-SA 2.5
null
2008-09-01T13:21:44.107
2008-09-01T13:21:44.107
null
null
4,020
null
37,920
1
null
null
2
519
I have developed a COM component (dll) that implements an Edit() method displaying a WTL modal dialog. The complete interface to this COM component corresponds to a software standard used in the chemical process industry (CAPE-OPEN) and as a result this COM component is supposed to be usable by a range of 3rd party ex...
How do you display a dialog from a hidden window application?
CC BY-SA 3.0
null
2008-09-01T13:15:33.653
2011-11-03T14:52:20.480
2011-11-03T14:52:20.480
9,314
3,229
[ "winapi", "com" ]
37,880
2
null
37,809
47
null
There are several things that could be improved in Jeff's solution, though. ``` if (String.IsNullOrEmpty(title)) return ""; ``` IMHO, not the place to test this. If the function gets passed an empty string, something went seriously wrong anyway. Throw an error or don't react at all. ``` // remove any leading or tra...
null
CC BY-SA 2.5
null
2008-09-01T12:35:51.173
2008-10-20T14:26:51.817
2008-10-20T14:26:51.817
383
1,968
null
37,931
1
null
null
3
1,320
The [official guidelines](http://msdn.microsoft.com/en-us/library/y23b5415.aspx) suggest that there can be very few practical uses for these. Does anyone have examples of where they've put them to good use?
What's the use of value types in .Net?
CC BY-SA 2.5
null
2008-09-01T13:22:50.203
2013-08-01T16:49:15.327
null
null
3,974
[ ".net" ]
37,916
2
null
37,555
5
null
After plenty of reading up on extender controls and JavaScript, I've cobbled together a solution that seems to be working so far. The main trick was getting the necessary postback code from server-side to the client-side behavior script. I did this by using an `ExtenderControlProperty` (which is set in the control's `...
null
CC BY-SA 3.0
null
2008-09-01T13:12:19.590
2014-12-13T02:20:08.410
2014-12-13T02:20:08.410
1,810,429
1,003
null
37,929
1
37,934
null
11
18,579
I am reviewing a big java application to see if there are any performance bottlenecks. The real problem is that I cannot pinpoint the performance issues to any single module. The whole application is slow as such. Is there some tool/technique I can use to help me out in this?
How to test java application for performance bottlenecks?
CC BY-SA 2.5
0
2008-09-01T13:22:19.033
2013-10-21T11:10:31.037
null
null
184
[ "java", "performance" ]
37,935
2
null
37,931
0
null
Enums are first class citizens of .NET world. As for structures I found that in most cases classes can be used, however for memory-intense scenarios consider using structures. As a practical example I used structures as data structures for OSCAR (ICQ) protocols primitives.
null
CC BY-SA 2.5
null
2008-09-01T13:26:42.050
2008-09-01T13:26:42.050
null
null
1,196
null
37,934
2
null
37,929
8
null
Try using a profiler on your running code. It should help you identify the bottlenecks. Try [jprofiler](http://www.ej-technologies.com/products/jprofiler/overview.html) or [Netbeans profiler](http://www.netbeans.org/features/java/profiler.html)
null
CC BY-SA 2.5
null
2008-09-01T13:25:22.100
2008-09-01T13:25:22.100
null
null
3,666
null
37,940
2
null
37,932
1
null
Quick question. Why do you need an Xml template? If you already know the schema before hand, then simply generate the complete Xml in your code. There shouldn't be a need for loading a template file.
null
CC BY-SA 2.5
null
2008-09-01T13:29:09.860
2008-09-01T13:29:09.860
null
null
380
null
37,938
2
null
37,931
0
null
I tend to use enum for avoiding magic numbers, this can be overcome by const I guess, but enum allows you to group them up. i.e ``` enum MyWeirdType { TypeA, TypeB, TypeC}; switch(value){ case MyWeirdType.TypeA: ... ```
null
CC BY-SA 2.5
null
2008-09-01T13:28:17.337
2008-09-01T13:28:17.337
null
null
3,193
null
37,942
2
null
37,929
3
null
If you are running on Java 6 you can use the [supplied monitoring tools](http://java.sun.com/developer/technicalArticles/J2SE/monitoring/)
null
CC BY-SA 2.5
null
2008-09-01T13:30:25.240
2008-09-01T13:30:25.240
null
null
3,416
null
37,943
2
null
37,920
1
null
Are you using a parent for the Dialog? e.g. ``` MyDialog dialog(pParent); dialog.DoModal(); ``` If you are, try removing the parent. Especially if the parent is the desktop window.
null
CC BY-SA 2.5
null
2008-09-01T13:32:06.610
2008-09-01T13:32:06.610
null
null
986
null
37,936
1
37,951
null
7
4,468
Does anyone have any tips for dealing with ConstraintExceptions thrown by XSD datasets? This is the exception with the cryptic message: ``` System.Data.ConstraintException : Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. ```
Handling XSD Dataset ConstraintExceptions
CC BY-SA 2.5
0
2008-09-01T13:27:08.633
2010-02-16T16:18:30.977
2008-09-09T22:13:43.057
-1
1,518
[ "xsd", "dataset", "constraintexception" ]
37,944
1
37,963
null
20
5,703
I had a discussion with some colleagues mentioning that there are not too many projects that we do which make use of WPF for creating UI for a windows application (we almost always use Windows Forms instead). - -
How popular is WPF as a technology?
CC BY-SA 2.5
0
2008-09-01T13:32:22.927
2021-10-13T09:39:42.887
2008-09-01T14:29:47.280
1,790
380
[ "wpf" ]
37,948
2
null
33,079
3
null
Colour guides like Kuler are a great start if you have no idea about choosing colours. Some basic considerations: Use contrast not colour to differentiate in your design. This is to accommodate colour-blindness and poorly sighted users. Use as limited a colour palette as you can. Pick one colour as your 'theme' and...
null
CC BY-SA 2.5
null
2008-09-01T13:34:24.730
2008-09-01T13:34:24.730
null
null
2,977
null
37,946
2
null
20,059
2
null
As I said [here](https://stackoverflow.com/questions/37133/programming-for-a-9-year-old#37627), I'd go for [Squeakland](http://www.squeakland.org/) and the famous [Drive a Car](http://www.squeakland.org/school/drive_a_car/html/Drivecar12.html) example (powered by [Squeak](http://www.squeak.org)). Smalltalk syntax is s...
null
CC BY-SA 2.5
null
2008-09-01T13:33:56.900
2008-09-01T13:33:56.900
2017-05-23T11:48:36.327
-1
2,797
null
37,941
2
null
37,248
1
null
To get the name of the currently executed method, you can look at the stack trace: ``` public static string GetNameOfCurrentMethod() { // Skip 1 frame (this method call) var trace = new System.Diagnostics.StackTrace( 1 ); var frame = trace.GetFrame( 0 ); return frame.GetMethod().Name; } ``` When you ...
null
CC BY-SA 2.5
null
2008-09-01T13:29:22.980
2008-09-01T13:29:22.980
null
null
1,810
null
37,933
2
null
37,041
0
null
My conclusions so far; I am torn on whether to use getters for the Track objects or just expose the members since the object is immutable. ``` class Track { public final String album; public final String artist; public final String title; public final String genre; public final String comment; ...
null
CC BY-SA 2.5
null
2008-09-01T13:23:18.830
2008-09-01T13:23:18.830
null
null
2,010
null
37,959
2
null
37,944
1
null
Though WPF was introduced few years ago it was too raw to use it in the real world apps. Major problem that stops WPF from wide adoption is a lack of RAD tools and out-of-box components. Currently we have Blend, more or less working Cider, but usable versions of these tools came not so long ago. Another reason is a c...
null
CC BY-SA 2.5
null
2008-09-01T13:36:38.797
2008-09-01T13:46:05.453
2008-09-01T13:46:05.453
1,196
1,196
null
37,963
2
null
37,944
10
null
Have a look at this [survey](http://www.componentfactory.com/blog/?p=322) it was done by a Windows Forms Contol Vendor in Australia. Personally I have worked on two commercial projects in the last year that were using WPF to varying degrees. The adoption of WPF is on the rise. Microsoft I believe is putting all their e...
null
CC BY-SA 4.0
null
2008-09-01T13:39:49.383
2021-10-13T09:39:42.887
2021-10-13T09:39:42.887
271,200
4,026
null
37,932
1
null
null
5
3,695
I'd like to do the following and can't find an elegant way: 1. Read an XML template into a System.Xml.XmlDocument 2. Populate it with data from my UI 3. Transform it with an XSLT I've written 4. Apply a CSS Stylesheet 5. Render it to a WebBrowser control I'm currently reading it from a file on disk, populating it,...
XML in C# - Read from Resources, Manipulate and Display
CC BY-SA 3.0
0
2008-09-01T13:23:17.597
2015-12-07T04:40:44.130
2015-12-07T04:40:44.130
4,519,059
4,019
[ "c#", "xml" ]
37,954
2
null
37,920
1
null
Depending on how the "hidden window" application works, it might not be able to display a window. For example, services don't have a "main message loop", and thus are not able to process messages sent to windows in the process. i.e, the application displaying the window should have something like this: ``` while(GetMe...
null
CC BY-SA 2.5
null
2008-09-01T13:35:22.607
2008-09-01T13:35:22.607
null
null
2,384
null
37,966
2
null
1,457
3
null
SWFAddress works in Flash & Javascript projects and lets you create bookmarkable URLs (using the hash method mentioned above) as well as giving you back-button support. [http://www.asual.com/swfaddress/](http://www.asual.com/swfaddress/)
null
CC BY-SA 2.5
null
2008-09-01T13:43:36.893
2008-09-01T13:43:36.893
null
null
null
null
37,965
2
null
37,944
3
null
Absolutely - the adoption is tiny. There was lots of hype but it does not seem to have materialized. I used WPF for one project and I can certainly say it left a very unfinished taste in my mouth. It was far too difficult to acheive simple things and the whole thing had very many rough edges - the reasons behind them ...
null
CC BY-SA 2.5
null
2008-09-01T13:41:53.277
2008-09-01T13:41:53.277
null
null
2,928
null
37,967
2
null
37,931
1
null
Au Contrare... you'll find C/C++ people flocking to structs a.k.a. value types. An example would be data packets. If you have a large number of data packets to transfer/transmit, you'd use value structs to model your data packets. reason: Turning something into a class adds an overhead of (approx 8-16 Bytes I forget) o...
null
CC BY-SA 2.5
null
2008-09-01T13:43:57.343
2008-09-01T13:43:57.343
null
null
1,695
null
37,968
2
null
37,931
0
null
You should use a value type whenever: - - - -
null
CC BY-SA 3.0
null
2008-09-01T13:46:15.297
2013-08-01T16:49:15.327
2013-08-01T16:49:15.327
96,780
2,695
null
37,969
1
41,164
null
23
78,372
: 1. The tool should allow the user to enter some data, perhaps an XML payload, and then submit it to a queue. 2. I should be able to test consumer without producer.
Tool for posting test messages onto a JMS queue?
CC BY-SA 4.0
0
2008-09-01T13:46:41.113
2021-03-31T23:59:24.037
2021-03-31T23:59:24.037
9,455,340
2,454
[ "jms", "messaging", "tooling" ]
37,976
1
38,224
null
11
12,418
By default IntelliJ IDEA 7.0.4 seems to use 4 spaces for indentation in XML files. The project I'm working on uses 2 spaces as indentation in all it's XML. Is there a way to configure the indentation in IntelliJ's editor?
How do I change XML indentation in IntelliJ IDEA?
CC BY-SA 2.5
0
2008-09-01T13:52:35.700
2014-11-14T12:03:38.870
2008-09-25T16:35:42.773
410
1,113
[ "java", "xml", "ide", "intellij-idea" ]
37,972
2
null
37,931
0
null
Value types, specifically, structs and enums, and have proper uses in object-oriented programming. Enums are, as aku said, first class citizens in .NET, which can be used from all sorts of things from Colors to DialogBox options to various types of flags. Structs, as far as my experience goes, are great as Data Trans...
null
CC BY-SA 2.5
null
2008-09-01T13:50:03.727
2008-09-01T13:50:03.727
null
null
372
null
37,956
1
38,017
null
27
52,987
I would like to open a small video file and map every frames in memory (to apply some custom filter). I don't want to handle the video codec, I would rather let the library handle that for me. I've tried to use Direct Show with the SampleGrabber filter (using this sample [http://msdn.microsoft.com/en-us/library/ms7878...
C++ : What's the easiest library to open video file
CC BY-SA 2.5
0
2008-09-01T13:35:41.937
2022-09-23T18:27:01.507
2008-09-01T14:39:15.590
1,578
1,578
[ "c++", "windows", "video" ]
37,970
2
null
37,931
0
null
Exactly what most other people use them for.. Fast and light data/value access. As well as being ideal for making grouping properties (where it makes sense of course) into an object. For example: - - - Its important to remember the [differences between value and reference types](http://www.gafvert.info/CSharpDataTy...
null
CC BY-SA 2.5
null
2008-09-01T13:49:48.907
2008-09-01T13:49:48.907
null
null
832
null
37,975
2
null
37,843
0
null
WPF is part of the .net 3.0 stack. Its microsoft's next generation Graphical User Interface system. All the information you need can be found on [wikipedia](http://en.wikipedia.org/wiki/Windows_Presentation_Foundation) and [msdn's wpf site](http://msdn.microsoft.com/en-us/netframework/aa663326.aspx) To Get Started pro...
null
CC BY-SA 2.5
null
2008-09-01T13:52:00.133
2008-09-01T13:52:00.133
null
null
4,026
null
37,979
1
38,077
null
2
970
Does anyone have any recommendations for implementations of ActiveRecord in PHP? I've been using [CBL ActiveRecord](http://31tools.com/cbl_activerecord/), but I was wondering if there were any viable alternatives.
Recommendations for implementations of ActiveRecord
CC BY-SA 4.0
0
2008-09-01T13:58:49.650
2021-06-29T17:10:06.790
2021-06-29T17:10:06.790
1,839,439
393,028
[ "php" ]
37,980
2
null
37,956
2
null
I have used [OpenCV](http://sourceforge.net/projects/opencvlibrary/) to load video files and process them. It's also handy for many types of video processing including those useful for computer vision.
null
CC BY-SA 2.5
null
2008-09-01T13:59:40.630
2008-09-01T13:59:40.630
null
null
3,836
null
37,981
2
null
37,931
1
null
For the most part, it's good to emulate the behaviour of the framework. Many elementary data types such as `int`s are value types. If you have types that have similar properties, use value types. For example, when writing a `Complex` data type or a `BigInteger`, value types are the logical solution. The same goes for t...
null
CC BY-SA 2.5
null
2008-09-01T14:00:14.763
2008-09-01T14:00:14.763
null
null
1,968
null
37,982
2
null
37,956
1
null
Try using the [OpenCV](http://opencvlibrary.sourceforge.net/) library. It definitely has the capabilities you require. [This guide](http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/index.html) has a section about accessing frames from a video file.
null
CC BY-SA 2.5
null
2008-09-01T14:01:03.200
2008-09-01T14:01:03.200
null
null
142
null
37,984
2
null
37,920
1
null
This isn't supposed to be reliable - but try ::GetDesktopWindow() as the parent (it returns a HWND). Be warned - if your app crashes, it will bring down the desktop with it. But i'd be interested to see if it works.
null
CC BY-SA 2.5
null
2008-09-01T14:02:16.957
2008-09-01T14:02:16.957
null
null
986
null
37,985
2
null
20,059
0
null
I know in the first few years of high school we were 'taught' Logo, and strangely, HTML. After that, the progression went to macros in MS Office, followed by basic VBA, followed by Visual Basic.
null
CC BY-SA 2.5
null
2008-09-01T14:03:49.763
2008-09-01T14:03:49.763
null
null
393,028
null
37,990
2
null
33,079
1
null
I like using [ColourSchemer](http://www.colorschemer.com/schemes/) and [EasyRGB](http://easyrgb.com/index.php?X=HARM).
null
CC BY-SA 2.5
null
2008-09-01T14:13:39.863
2008-09-01T14:13:39.863
null
null
393,028
null
37,992
2
null
4,689
0
null
If you're like me and only swear by serifs try Kourier with a K, a somewhat more compact Courier .
null
CC BY-SA 2.5
null
2008-09-01T14:17:51.443
2008-09-01T14:17:51.443
null
null
2,769
null
37,978
2
null
37,931
0
null
Actually prior to .net 3.5 SP1 there has been a performance issue with the intensive use of value types as mentioned here in [Vance Morrison's blog](http://blogs.msdn.com/vancem/archive/2008/05/12/what-s-coming-in-net-runtime-performance-in-version-v3-5-sp1.aspx). As far as I can see the vast majority of the time you ...
null
CC BY-SA 2.5
null
2008-09-01T13:53:17.883
2008-09-01T13:53:17.883
null
null
3,394
null
37,989
2
null
37,920
1
null
It turns out I was mistaken: - - So now I just have to find out how to bring my dialog to the front. Thanks for the answers ;-)
null
CC BY-SA 2.5
null
2008-09-01T14:12:12.457
2008-09-01T14:12:12.457
null
null
3,229
null
37,993
2
null
15,681
0
null
@peter I don't know why you had trouble with getting a simple app working, right off the bat without doing anything your app gets a lot of benefits from the Cocoa framework. If you mean you were trying to do stuff like connect a button to an action and have it print a alert on screen or something like that then yes I c...
null
CC BY-SA 2.5
null
2008-09-01T14:18:09.587
2008-09-01T14:18:09.587
null
null
2,750
null
37,991
1
38,587
null
8
15,287
I currently have an MS Access application that connects to a PostgreSQL database via ODBC. This successfully runs on a LAN with 20 users (each running their own version of Access). Now I am thinking through some disaster recovery scenarios, and it seems that a quick and easy method of protecting the data is to use [log...
Using MS Access & ODBC to connect to a remote PostgreSQL
CC BY-SA 2.5
0
2008-09-01T14:14:53.417
2009-01-14T23:09:05.927
2009-01-14T23:09:05.927
4,045
4,045
[ "ms-access", "postgresql", "odbc" ]
37,996
1
null
null
1
382
We are using SourceForge Enterprise Edition 4.4 in one of our project. My question is, in CollabNet SFEE (SourceForge Enterprise Edition 4.4), how will we get attachments associated with an Artifacts Using SFEE SOAP API? We have made our own .net 2.0 client. We are not using .net SDK provided by Collabnet,
How to Get attachments Associated with artifacts in SourceForge Enterprise Edition
CC BY-SA 2.5
null
2008-09-01T14:22:51.057
2008-10-09T12:25:02.550
2008-09-02T05:13:05.210
191
191
[ "sourceforge" ]
37,995
2
null
33,079
24
null
Let me tell you a story. I have absolutely no confidence in my ability to make aesthetic choices - you only have to look at the way I dress to realize I'm justified in my lack of confidence. Anyway, years ago I was put in charge of writing the gui for a new product (the "Clip Editor" in Cineon, for anybody who knows ...
null
CC BY-SA 2.5
null
2008-09-01T14:22:31.183
2008-09-01T14:22:31.183
null
null
3,333
null
37,997
1
null
null
12
7,398
I like the status email sent by TFS's alerts mechanism when a build breaks. However I would like to send such an email to the entire team and not rely on the team to subscribe to the alert... Having a hard time producing a nice and detailed enough message by myself when overriding the "OnBuildBreak" and using the MSBu...
Whats the best way to deliver TFS build status notifications to the team?
CC BY-SA 2.5
0
2008-09-01T14:26:39.300
2018-12-29T19:02:14.083
null
null
1,228,206
[ "tfs", "msbuild", "build-automation", "continuous-integration" ]
37,998
2
null
37,089
0
null
I would have a look at the Parallel extensions to the .NET framework. It is still in [CTP](http://en.wikipedia.org/wiki/Software_release_life_cycle#Open_and_closed_beta), however it supposed to make the best use of multi core processors. The easiest place to get started for .NET is on the [parallel teams blog](http://b...
null
CC BY-SA 2.5
null
2008-09-01T14:28:02.137
2010-04-24T22:27:49.610
2010-04-24T22:27:49.610
63,550
4,026
null
38,002
1
38,041
null
3
171
I'm trying to make the case for click-once and smart client development but my network support team wants to keep with web development for everything. What is the best way to convince them that click-once and smart client development have a place in the business?
How to get your network support team behind click-once?
CC BY-SA 2.5
null
2008-09-01T14:33:43.340
2012-06-07T13:47:13.767
2012-06-07T13:47:13.767
15,168
2,701
[ "smartclient" ]
38,000
2
null
29,761
3
null
Gitty is under development right now, basically I am working on it and it is in turn working off of BazaarX which is under heavy restructuring right now. Gitty will essentially be BazzarX with the Bazaar backend ripped out and a GIT backend put in instead and any UI tweaks made for GIT Differences from Bazaar (ie hashe...
null
CC BY-SA 2.5
null
2008-09-01T14:30:05.127
2008-09-01T14:30:05.127
null
null
2,750
null
38,004
2
null
37,997
6
null
You could try. [Brian the build bunny](http://www.woodwardweb.com/gadgets/000434.html) :-)
null
CC BY-SA 2.5
null
2008-09-01T14:35:31.200
2008-09-01T14:35:31.200
null
null
3,720
null
38,006
2
null
38,002
0
null
They have a place in the Windows environment but not in any other environment and so if you intend on writing applications for external clients, then your probably best sticking with Web based development. I heard this "Write Once, Run Many" before from Microsoft when Asp.net 1.1 was released, it never happened in pra...
null
CC BY-SA 2.5
null
2008-09-01T14:38:55.077
2008-09-01T14:38:55.077
null
null
383
null
38,005
1
38,716
null
15
4,467
Now that `LINQ` to `SQL` is a little more mature, I'd like to know of any techniques people are using to create an using the technology, because it does not seem that obvious to me.
How to use LINQ To SQL in an N-Tier Solution?
CC BY-SA 4.0
0
2008-09-01T14:37:40.163
2019-12-23T10:46:38.280
2019-12-23T10:46:38.280
11,383,441
4,050
[ "linq-to-sql", "n-tier-architecture" ]
38,008
2
null
37,997
4
null
Set up an email alias for the team on the mail server, and enter this when subscribing to the mail. Try the [Team Foundation Server Event Subscription Tool](http://www.codeplex.com/tfseventsubscription). This allows you to send emails to any address when any TFS event occurs.
null
CC BY-SA 2.5
null
2008-09-01T14:39:17.790
2008-09-01T14:39:17.790
null
null
2,084
null
38,011
2
null
38,010
4
null
If you create new strings, they will not automatically be put into the intern pool, unless you concatenate constants compile-time, in which case the compiler will create one string result and intern that as part of the JIT process.
null
CC BY-SA 2.5
null
2008-09-01T14:44:11.210
2008-09-01T14:44:11.210
null
null
267
null
38,010
1
38,011
null
4
1,336
When performing string concatentation of an existing string in the intern pool, is a new string entered into the intern pool or is a reference returned to the existing string in the intern pool? According to this article, String.Concat and StringBuilder will insert new string instances into the intern pool? [http://c...
C# string concatenation and string interning
CC BY-SA 2.5
null
2008-09-01T14:41:59.797
2015-08-20T07:42:03.897
2015-08-20T07:42:03.897
4,405,852
2,993
[ "c#", ".net", "string" ]
38,012
2
null
38,002
1
null
Here is a couple of ideas that may help 1. long running processes, they are not asp.net best friend. 2. scaling, using client side processing as compared to bigger or more servers reduces cost etc.
null
CC BY-SA 2.5
null
2008-09-01T14:44:45.327
2008-09-01T14:44:45.327
null
null
4,026
null
37,951
2
null
37,936
20
null
A couple of tips that I've found lately. 1. It's much better to use the TableAdapter FillByDataXXXX() methods instead of GetDataByXXXX() methods because the DataTable passed into the fill method can be interrogated for clues: DataTable.GetErrors() returns an array of DataRow instances in error DataRow.RowError contai...
null
CC BY-SA 2.5
null
2008-09-01T13:34:35.777
2008-09-01T13:34:35.777
null
null
1,518
null
38,013
2
null
38,002
0
null
@Mark > scaling, using client side processing as compared to bigger or more servers reduces cost etc. I'm not sure I would entirely agree with this. It would seem to cost less to buy 1 powerful server and 1,000's of "dum terminals" than an average powerful server and 1,000 of powerful desktop computers.
null
CC BY-SA 2.5
null
2008-09-01T14:47:08.410
2008-09-01T14:47:08.410
null
null
383
null
38,001
2
null
37,823
26
null
Matt Sheppard's answer is great (mod up), but I would take account these factors when thinking about a spindle: 1. Structure : does it obviously break into pieces, or are you making tradeoffs? 2. Usage : how will the data be analyzed/retrieved/grokked? 3. Lifetime : how long is the data useful? 4. Size : how much dat...
null
CC BY-SA 2.5
null
2008-09-01T14:33:03.170
2008-09-01T14:44:28.777
2008-09-01T14:44:28.777
3,436
3,436
null
38,021
1
38,028
null
354
530,162
How can I find the origins of conflicting DNS records?
How do I find the authoritative name-server for a domain name?
CC BY-SA 4.0
0
2008-09-01T14:57:16.967
2020-09-13T09:31:54.500
2019-02-05T12:25:02.730
220,935
319
[ "dns" ]
38,019
1
48,001
null
102
56,534
Coming up with good, precise names for classes is notoriously difficult. Done right, it makes code more self-documenting and provides a vocabulary for reasoning about code at a higher level of abstraction. Classes which implement a particular design pattern might be given a name based on the well known pattern name (...
What's the best approach to naming classes?
CC BY-SA 2.5
0
2008-09-01T14:55:47.453
2020-03-17T00:34:59.120
null
null
3,598
[ "naming" ]
38,022
2
null
38,014
0
null
Try adding ``` CONNECT_DATA=(SID=myDB)(SERVICE_NAME=ORCL) ``` in the connection string.
null
CC BY-SA 2.5
null
2008-09-01T14:58:47.510
2008-09-01T14:58:47.510
null
null
3,205
null
38,023
2
null
38,002
0
null
@GateKiller when i speak of scaling i was talking about the cost of buying more servers and not clients. most workstations in an organization barely use 50% of their computing power right through the day. If i was to use a click once deployed application i would be using the grunt of existing workstations therefore n...
null
CC BY-SA 2.5
null
2008-09-01T14:59:10.580
2008-09-01T14:59:10.580
null
null
4,026
null
38,016
2
null
22,566
5
null
You could use [DirHandle](http://search.cpan.org/~rgarcia/perl-5.10.0/lib/DirHandle.pm): ``` use DirHandle; $d = new DirHandle "."; if (defined $d) { while (defined($_ = $d->read)) { something($_); } $d->rewind; while (defined($_ = $d->read)) { something_else($_); } undef $d; } ``` `DirHandle` provid...
null
CC BY-SA 3.0
null
2008-09-01T14:52:11.160
2015-05-06T14:15:16.290
2015-05-06T14:15:16.290
4,248,931
4,040
null
38,024
2
null
37,932
0
null
Check out [Linq to XML](http://www.hookedonlinq.com/LINQtoXML5MinuteOverview.ashx) - it's really good way to write and read Xml based data. Easier than the System.Xml.XmlDocument mechanisms. Given that you are supplying the XSLT and the CSS, why not build the page in XHTML and inline the CSS? Alternatively just add th...
null
CC BY-SA 2.5
null
2008-09-01T15:00:44.290
2008-09-01T15:00:44.290
null
null
905
null
38,025
2
null
38,021
1
null
An easy way is to use an online domain tool. My favorite is [Domain Tools](http://whois.domaintools.com/stackoverflow.com) (formerly whois.sc). I'm not sure if they can resolve conflicting DNS records though. As an example, the DNS servers for stackoverflow.com are ``` NS51.DOMAINCONTROL.COM NS52.DOMAINCONTROL.COM `...
null
CC BY-SA 2.5
null
2008-09-01T15:01:25.147
2008-09-01T15:01:25.147
null
null
658
null
38,029
2
null
38,021
21
null
You could find out the nameservers for a domain with the "host" command: ``` [davidp@supernova:~]$ host -t ns stackoverflow.com stackoverflow.com name server ns51.domaincontrol.com. stackoverflow.com name server ns52.domaincontrol.com. ```
null
CC BY-SA 4.0
null
2008-09-01T15:05:51.313
2020-09-13T09:31:54.500
2020-09-13T09:31:54.500
12,706,049
4,040
null
38,027
1
38,033
null
4
487
Both are mathematical values, however the float does have more precision. Is that the only reason for the error - the difference in precision? Or is there another potential (and more serious) problem?
Why does Splint (the C code checker) give an error when comparing a float to an int?
CC BY-SA 2.5
null
2008-09-01T15:02:39.900
2012-07-03T13:23:09.637
null
null
572
[ "c", "lint", "splint" ]
38,026
1
38,129
null
2
447
I work for a .NET/MSSQL shop that has trouble supporting customers running Novell, partially because we don't have Novell (or the money for it) and partially because we have no one with Novell experience. This question could easily be expanded to "How can we improve our support of technology X when we don't have techno...
How can I improve my support of Novell networks when I don't have a Novell network?
CC BY-SA 2.5
null
2008-09-01T15:01:39.327
2014-05-21T20:14:31.847
2014-05-21T20:14:31.847
321,731
470
[ ".net", "sql-server", "vmware", "novell" ]
38,014
1
38,050
null
3
1,545
I am facing problem with an Oracle Query in a .net 2.0 based windows application. I am using `System.Data.OracleClient` to connect to oracle database. Name of database is `myDB`. Below the the connection string I am using: ``` Data Source=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP) (HOST = 172.16.0.24)(P...
Referencing same table name in different schemas
CC BY-SA 3.0
null
2008-09-01T14:51:30.693
2011-06-04T21:52:44.983
2011-06-04T03:48:35.103
146,325
191
[ ".net", "sql", "oracle" ]
38,033
2
null
38,027
8
null
It's because the set of integer values does not equal the set of float values for the 'int' and 'float' types. For example, the float value 0.5 has no equal in the integer set and the integer value 4519245367 might not exist in the set of values a float can store. So, the checker flags this as an issue to be checked by...
null
CC BY-SA 3.0
null
2008-09-01T15:06:30.377
2012-07-03T13:23:09.637
2012-07-03T13:23:09.637
142,162
1,898
null
38,030
2
null
38,027
3
null
Because it probably isn't a very good idea. Not all floats can be truncated to ints; not all ints can be converted to floats.
null
CC BY-SA 2.5
null
2008-09-01T15:06:11.890
2008-09-01T15:06:11.890
null
null
2,131
null
38,035
1
2,509,444
null
1
3,734
I'm building a basic search functionality, using LIKE (I'd be using fulltext but can't at the moment) and I'm wondering if MySQL can, on searching for a keyword (e.g. WHERE field LIKE '%word%') return 20 words either side of the keyword, as well?
Selecting X words from a text field in MySQL
CC BY-SA 2.5
0
2008-09-01T15:08:13.070
2010-03-24T16:28:03.290
null
null
393,028
[ "mysql" ]
38,034
2
null
38,021
44
null
On *nix: ``` $ dig -t ns <domain name> ```
null
CC BY-SA 3.0
null
2008-09-01T15:07:48.440
2016-10-29T10:46:20.327
2016-10-29T10:46:20.327
498,634
3,288
null
38,031
2
null
38,021
2
null
You can use the whois service. On a UNIX like operating system you would execute the following command. Alternatively you can do it on the web at [http://www.internic.net/whois.html](http://www.internic.net/whois.html). whois stackoverflow.com You would get the following response. ...text removed here... Domain ser...
null
CC BY-SA 2.5
null
2008-09-01T15:06:18.880
2008-09-01T15:06:18.880
null
null
3,836
null
38,036
2
null
38,027
1
null
Because floats can't store an exact int value, so if you have two variables, int i and float f, even if you assign "i = f;", the comparison "if (i == f)" probably won't return true.
null
CC BY-SA 2.5
null
2008-09-01T15:08:17.783
2008-09-01T15:08:17.783
null
null
3,333
null
38,028
2
null
38,021
458
null
You'll want the SOA (Start of Authority) record for a given domain name, and this is how you accomplish it using the universally available command line tool: ``` command line> nslookup > set querytype=soa > stackoverflow.com Server: 217.30.180.230 Address: 217.30.180.230#53 Non-authoritative answer: s...
null
CC BY-SA 2.5
null
2008-09-01T15:04:19.757
2008-09-01T15:16:06.407
2008-09-01T15:16:06.407
2,948
2,948
null
38,037
1
38,413
null
15
17,436
In my C++ program I want to parse a small piece of XML, insert some nodes, then extract the new XML (preferably as a `std::string`). [RapidXml](http://rapidxml.sourceforge.net/) has been recommended to me, but I can't see how to retrieve the XML back as a text string. (I could iterate over the nodes and attributes and ...
C++: How to extract a string from RapidXml
CC BY-SA 3.0
0
2008-09-01T15:10:13.800
2016-03-09T20:16:20.663
2016-03-09T20:16:20.663
490,018
3,590
[ "c++", "xml", "rapidxml" ]
38,017
2
null
37,956
29
null
Currently these are the most popular video frameworks available on Win32 platforms: 1. Video for Windows: old windows framework coming from the age of Win95 but still widely used because it is very simple to use. Unfortunately it supports only AVI files for which the proper VFW codec has been installed. 2. DirectShow...
null
CC BY-SA 2.5
null
2008-09-01T14:53:38.503
2008-09-01T14:53:38.503
null
null
3,373
null
38,040
2
null
38,010
0
null
You can see whether a string has been interned by calling `String.IsInterned`. The call will return a new string that is either a reference to an interned string equal to the string that was passed as an argument, or `null` if the string was not interned.
null
CC BY-SA 2.5
null
2008-09-01T15:11:24.593
2008-09-01T15:11:24.593
null
null
1,968
null
38,039
1
38,064
null
566
361,290
How do I find the start of the week (both Sunday and Monday) knowing just the current time in C#? Something like: ``` DateTime.Now.StartWeek(Monday); ```
How can I get the DateTime for the start of the week?
CC BY-SA 3.0
0
2008-09-01T15:10:38.527
2022-10-27T15:42:25.727
2011-10-22T09:22:44.453
63,550
383
[ "c#", "datetime" ]
38,044
2
null
38,027
0
null
If you need to get around this (you have a legitimate reason and are happy none of the issues mentioned in the other answers are an issue for you) then just cast from one type to another.
null
CC BY-SA 2.5
null
2008-09-01T15:14:02.120
2008-09-01T15:14:02.120
null
null
3,685
null
38,047
2
null
37,956
2
null
Using the "Callback" model of SampleGrabber may give you better results. See the example in Samples\C++\DirectShow\Editing\GrabBitmaps. There's also a lot of info in Samples\C++\DirectShow\Filters\Grabber2\grabber_text.txt and readme.txt.
null
CC BY-SA 2.5
null
2008-09-01T15:16:09.807
2008-09-01T15:16:09.807
null
null
2,574
null