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
3,922
2
null
3,903
2
null
> The easiest way to test for 64-bit under .NET is to check the value of IntPtr.Size. I believe the value of IntPtr.Size is 4 for a 32bit app that's running under WOW, isn't it? : @Edit: Yeah. :)
null
CC BY-SA 2.5
null
2008-08-06T20:07:33.587
2008-08-06T20:07:33.587
null
null
560
null
3,942
1
4,238
null
8
954
I inherited a Windows Forms app written in VB.Net. Certain parts of the app run dreadfully slow. What's the easiest way to find which parts of the code are holding things up? I'm looking for a way to quickly find the slowest subroutines and tackle them first in an attempt to speed up the app. I know that there are ...
What's the best way to find long-running code in a Windows Forms Application
CC BY-SA 2.5
null
2008-08-06T20:26:21.923
2016-02-11T04:20:47.313
2008-08-16T12:51:49.897
905
443
[ ".net", "vb.net" ]
3,974
2
null
3,894
0
null
Keep in mind that the money data type can have up to 4 digits past the decimal. Values with more than two digits might not work as expected for either your original solution or the x100 trick.
null
CC BY-SA 2.5
null
2008-08-06T20:59:36.880
2008-08-06T20:59:36.880
null
null
571
null
3,965
2
null
328
5
null
Using IP address isn't really the best idea in my experience. For example; my office has two IP addresses that get used depending on load and we constantly run into issues using IP addresses. Instead, I've opted for storing the sessions in a separate database for the domains on my servers. This way no one on the file...
null
CC BY-SA 2.5
null
2008-08-06T20:44:55.820
2008-08-06T20:44:55.820
null
null
538
null
3,958
2
null
3,868
10
null
Ajaxian actually had a [post on inserting / retrieving html from an iframe](http://ajaxian.com/archives/introducing-html-into-an-iframe-and-getting-it-back) today. You can probably use the js snippet they have posted there. As for handling closing of a browser / tab, you can attach to the onbeforeunload ([http://msdn....
null
CC BY-SA 2.5
null
2008-08-06T20:37:32.260
2008-08-06T20:50:05.357
2008-08-06T20:50:05.357
77
77
null
3,943
2
null
3,654
3
null
@Mike: While I agree that validity is not needed to make a page render (after all, we have to keep IE6 compatibility in...), creating valid XHTML that IS compatible AND valid is not a problem. The problems start when people are used to HTML 4 and using the depreciated tags and attributes. Just because the Web is a pi...
null
CC BY-SA 2.5
null
2008-08-06T20:27:27.883
2008-08-06T20:27:27.883
null
null
91
null
3,946
2
null
3,942
1
null
[nProf](http://nprof.sourceforge.net/Site/Description.html) is a good, free tool for .Net Profiling.
null
CC BY-SA 2.5
null
2008-08-06T20:30:50.450
2008-08-06T20:30:50.450
null
null
35
null
3,929
2
null
3,748
56
null
This might be a bit of a long shot, but if you're using (or planning on using) SQL Server 2008 I'd recommend having a look at the new [FileStream](http://msdn.microsoft.com/en-us/library/bb933993(SQL.100).aspx) data type. FileStream solves most of the problems around storing the files in the DB: 1. The Blobs are act...
null
CC BY-SA 3.0
null
2008-08-06T20:15:31.230
2011-07-26T21:47:17.207
2011-07-26T21:47:17.207
57,986
233
null
3,979
2
null
1,760
2
null
I used to use NUnit, but I switched to [MbUnit](https://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#.NET_programming_languages) since it has more features. I love RowTest. It lets you parametrize your tests. NUnit does have a little bit better tool support though. I am using ReSharper to run MbUnit tests. I'v...
null
CC BY-SA 4.0
null
2008-08-06T21:03:00.167
2020-07-30T11:04:29.003
2020-07-30T11:04:29.003
63,550
571
null
3,978
1
3,998
null
22
2,087
In a language such as (since I'm working in it now) PHP, which supports procedural and object-oriented paradigms. Is there a good rule of thumb for determining which paradigm best suits a new project? If not, how can you make the decision?
Multi-Paradigm Languages
CC BY-SA 3.0
0
2008-08-06T21:02:16.207
2015-12-14T19:53:32.090
2015-12-14T19:53:32.090
4,595,675
572
[ "php", "oop", "paradigms", "procedural" ]
3,984
1
418,605
null
21
1,530
I've created some MbUnit Test Fixtures that have SetUp methods marked with the SetUp attribute. These methods run before the tests just fine using the MbUnit GUI, the console runner, and the ReSharper MbUnit plugin. However, when I run the tests with TestDriven.NET it does not run the SetUp methods at all. Does an...
TestDriven.NET is not running my SetUp methods for MbUnit
CC BY-SA 2.5
null
2008-08-06T21:06:32.797
2020-06-18T11:10:58.790
2012-03-22T01:52:35.473
3
571
[ ".net", "visual-studio", "tdd", "mbunit", "testdriven.net" ]
3,981
2
null
3,975
0
null
Your best researching the most common type of queries that happen on your database and creating indexes based on that research. For example, if there is a table which stores website hits, which is written to very very often but hardly even read from. Then don't index the table in away. If how ever you have a list of ...
null
CC BY-SA 2.5
null
2008-08-06T21:03:51.913
2008-08-06T21:03:51.913
null
null
383
null
3,989
2
null
3,975
3
null
The advice you got is right. Try them all, one by one. There is NO substitute for testing when it comes to performance. Unless you prove it, you haven't done anything.
null
CC BY-SA 2.5
null
2008-08-06T21:11:53.987
2008-08-06T21:11:53.987
null
null
414
null
3,998
2
null
3,978
11
null
It all depends on the problem you're trying to solve. Obviously you can solve any problem in either style (procedural or OO), but you usually can figure out in the planning stages before you start writing code which style suits you better. Some people like to write up use cases and if they see a lot of the same nouns ...
null
CC BY-SA 2.5
null
2008-08-06T21:15:35.150
2008-08-06T21:15:35.150
null
null
422
null
3,996
1
4,043
null
10
1,083
I have Windows File sharing enabled on an OS X 10.4 computer. It's accessible via \rudy\myshare for all the Windows users on the network, except for one guy running Vista Ultimate 64-bit edition. All the other users are running Vista or XP, all 32-bit. All the workgroup information is the same, all login with the sam...
How do I configure a Vista Ultimate (64bit) account so it can access a SMB share on OSX?
CC BY-SA 2.5
null
2008-08-06T21:14:57.507
2008-12-17T19:42:42.623
null
null
575
[ "macos", "windows-vista", "smb" ]
4,008
2
null
3,748
3
null
The word on the street is that unless you are a database vendor trying to prove that your database can do it (like, let's say Microsoft boasting about Terraserver storing a bajillion images in SQL Server) it's not a very good idea. When the alternative - storing images on file servers and paths in the database is so mu...
null
CC BY-SA 2.5
null
2008-08-06T21:19:16.500
2008-08-06T21:19:16.500
null
null
556
null
3,975
1
5,907
null
9
1,376
We're in the process of upgrading one of our SQL Server instances from 2000 to 2005. I installed the performance dashboard ([http://www.microsoft.com/downloads/details.aspx?FamilyId=1d3a4a0d-7e0c-4730-8204-e419218c1efc&displaylang=en](http://www.microsoft.com/downloads/details.aspx?FamilyId=1d3a4a0d-7e0c-4730-8204-e419...
How do I know which SQL Server 2005 index recommendations to implement, if any?
CC BY-SA 2.5
null
2008-08-06T20:59:58.190
2014-06-10T21:42:38.397
2014-06-10T21:42:38.397
193,717
162
[ "sql-server", "sql-server-2005" ]
4,034
1
4,346
null
70
41,903
What is the best way to support multiple languages for the interface in an ASP.NET MVC application? I've seen people use resource files for other applications. Is this still the best way?
Multiple languages in an ASP.NET MVC application?
CC BY-SA 3.0
0
2008-08-06T21:43:33.923
2017-04-18T12:17:17.423
2012-09-22T19:38:28.817
61,164
571
[ "asp.net-mvc", "internationalization", "multilingual" ]
4,026
2
null
3,224
8
null
In my opinion, it is better to make the version number part of the file itself e.g. `myscript.1.2.3.js`. You can set your webserver to cache this file forever, and just add a new js file when you have a new version.
null
CC BY-SA 3.0
null
2008-08-06T21:33:14.473
2017-07-31T11:33:39.780
2017-07-31T11:33:39.780
92,701
571
null
4,025
2
null
438
6
null
The restful_authentication plugin has a good implementation of this: [http://agilewebdevelopment.com/plugins/restful_authentication](http://agilewebdevelopment.com/plugins/restful_authentication)
null
CC BY-SA 2.5
null
2008-08-06T21:30:25.180
2008-08-06T21:30:25.180
null
null
574
null
3,976
1
null
null
20
16,842
I have a Prolite LED sign that I like to set up to show scrolling search queries from a apache logs and other fun statistics. The problem is, my G5 does not have a serial port, so I have to use a usb to serial dongle. It shows up as /dev/cu.usbserial and /dev/tty.usbserial . When i do this everything seems to be hunk...
Programmatically talking to a Serial Port in OS X or Linux
CC BY-SA 3.0
0
2008-08-06T21:00:01.217
2015-11-15T13:15:20.733
2012-08-20T20:18:10.340
50,776
556
[ "python", "linux", "macos", "serial-port" ]
4,035
2
null
3,748
-1
null
I would go with the file system approach. As noted by a few others, most web servers are built to send images from a file path. You'll have much higher performance if you don't have to write or stream out BLOB fields from the database. Having filesystem storage for the images makes it easier to setup static pages wh...
null
CC BY-SA 2.5
null
2008-08-06T21:45:51.220
2008-08-06T21:45:51.220
null
null
206
null
4,038
2
null
4,034
3
null
Yes resources are still the best way to support multiple languages in the .NET environment. Because they are easy to reference and even easier to add new languages. ``` Site.resx Site.en.resx Site.en-US.resx Site.fr.resx etc... ``` So you are right still use the resource files.
null
CC BY-SA 2.5
null
2008-08-06T21:48:20.997
2008-08-06T21:48:20.997
null
null
17
null
4,039
2
null
3,978
2
null
If you're doing something for yourself, or if you're doing just a prototype, or testing an idea... use the free style that script languages gives you. After that: always think in objects, try to organize your work around the OO paradigm even if you're writing procedural stuff. Then, refactorize, refactorize, refactor...
null
CC BY-SA 2.5
null
2008-08-06T21:48:58.543
2008-08-06T21:48:58.543
null
null
527
null
4,044
2
null
3,996
0
null
No I have successfully done this with my Vista 64-bit machine. You may want to try using the IP Address of the machine and try connecting that way. Or maybe check out the log files on the Mac to see what the rejection error was.
null
CC BY-SA 2.5
null
2008-08-06T21:51:22.143
2008-08-06T21:51:22.143
null
null
17
null
4,051
1
4,192
null
55
81,571
In `C` can I to a function when I don't know what the dimensions of the array are going to be? Besides, my multidimensional array may contain types other than strings.
Passing multidimensional arrays as function arguments in C
CC BY-SA 4.0
0
2008-08-06T22:01:25.463
2019-12-13T11:22:39.827
2019-12-13T09:01:59.093
806,202
381
[ "c", "function", "multidimensional-array" ]
4,043
2
null
3,996
3
null
Try changing the local security policy on that Vista box for "Local Policies\Security Options\Network Security: LAN manager authentication level" from “Send NTLMv2 response only” to “Send LM & NTLM - use NTLMv2 session security if negotiated”.
null
CC BY-SA 2.5
null
2008-08-06T21:50:49.837
2008-08-06T21:50:49.837
null
null
206
null
4,056
2
null
3,058
47
null
But I think you have to be very careful with it. If you will overuse this pattern, you will make very complicated design and even more complicated code. Like in this example with TextEditor: if you have only one SpellChecker maybe it is not really necessary to use IoC ? Unless you need to write unit tests or somethin...
null
CC BY-SA 2.5
null
2008-08-06T22:08:27.180
2008-08-06T22:08:27.180
null
null
501
null
4,060
2
null
3,045
0
null
I can't say if this is overkill without knowing the details of your usage case, but consider creating a spreadsheet C to hold all data held in common between the two. Links can become dizzyingly complex as spreadsheets age, and having a shared data source might help clear up the confusion. Perhaps even more "enterpri...
null
CC BY-SA 2.5
null
2008-08-06T22:17:06.290
2008-08-06T22:17:06.290
null
null
59
null
4,068
2
null
3,867
3
null
I've used WiX a little bit before, and generally I found that it's great once you figure out what to do but there is a steep learning curve. If you spend a solid day going over the WiX tutorial you should be be able to get 80% of your setup working. [WiX Toolset Tutorial](http://wix.sourceforge.net/tutorial.html)
null
CC BY-SA 4.0
null
2008-08-06T22:26:49.873
2019-03-14T09:04:22.830
2019-03-14T09:04:22.830
65,545
322
null
4,046
1
4,902
null
22
24,329
I'm trying to convince my providers to use ANT instead of Rational Application Development so anyone can recompile, recheck, redeploy the solution anyplace, anytime, anyhow. :P I started a build.xml for a project that generates a JAR file but stopped there and I need real examples to compare notes. My good friends! I ...
Example of a build.xml for an EAR that deploys in WebSphere 6
CC BY-SA 3.0
0
2008-08-06T21:55:24.257
2014-04-29T05:58:20.757
2017-05-23T12:00:32.330
-1
527
[ "jakarta-ee", "deployment", "ant", "websphere", "ear" ]
4,064
2
null
4,062
1
null
You can also cache in memory which is much more efficient. Try [memcached](http://www.danga.com/memcached/).
null
CC BY-SA 2.5
null
2008-08-06T22:23:13.203
2008-08-06T22:23:13.203
null
null
189
null
4,062
1
4,222
null
13
695
Currently I know of only two ways to cache data (I use PHP but I assume that the same will apply to most languages). 1. Save the cache to a file 2. Save the cache to a large DB field Are there any other (perhaps better) ways of caching or is it really just this simple?
What methods of caching, other than to file or database, are available?
CC BY-SA 2.5
null
2008-08-06T22:21:55.373
2010-08-02T14:26:42.250
2010-08-02T14:26:42.250
437
1,384,652
[ "language-agnostic", "caching" ]
4,052
1
4,139
null
18
16,659
I am trying to enable Full-text indexing in SQL Server 2005 Express. I am running this on my laptop with Vista Ultimate. I understand that the standard version of SQL Server Express does not have full-text indexing. I have already downloaded and installed "Microsoft SQL Server 2005 Express Edition with Advanced Servic...
How to enable Full-text Indexing in SQL Server 2005 Express?
CC BY-SA 2.5
0
2008-08-06T22:02:33.993
2017-12-14T09:48:20.193
2014-11-25T20:40:52.483
2,641,576
576
[ "sql-server", "sql-server-2005", "full-text-search" ]
4,071
2
null
4,004
5
null
I don't have it entirely implemented yet, but this web site seems to give a [good walkthrough](http://developers.de/blogs/damir_dobric/archive/2006/08/01/897.aspx) of setting up the certificates and the code.
null
CC BY-SA 2.5
null
2008-08-06T22:29:57.073
2008-08-06T22:29:57.073
null
null
525
null
4,073
2
null
1,644
0
null
My favorites are: - - - - TWiT and CrankyGeeks I listen to if I want a laugh or get mad, they are horrible.
null
CC BY-SA 2.5
null
2008-08-06T22:30:28.290
2009-08-20T19:51:29.590
2009-08-20T19:51:29.590
63,550
580
null
4,078
2
null
2,027
6
null
There's a [good explanation here](http://codebetter.com/blogs/karlseguin/archive/2008/04/27/foundations-of-programming-pt-7-back-to-basics-memory.aspx) for .NET. A lot of people are surprise that reference objects are actually passed by value (in both C# and Java). It's a copy of a stack address. This prevents a metho...
null
CC BY-SA 2.5
null
2008-08-06T22:43:29.900
2008-08-06T22:43:29.900
null
null
34
null
4,088
2
null
173
12
null
You could also look at a migrations solution. These allow you to specify your database schema in C# code, and roll your database version up and down using MSBuild. I'm currently using [DbUp](https://dbup.github.io/), and it's been working well.
null
CC BY-SA 3.0
null
2008-08-06T22:51:35.923
2017-04-04T17:55:40.307
2017-04-04T17:55:40.307
571
571
null
4,092
2
null
3,984
2
null
After having this problem for weeks on Vista 64, I found a [post](http://blog.davebouwman.com/2008/08/06/trouble-running-mbunit-tests-with-testdriven-net-on-vista-64/) by Dave Bouwman just today, and it fixed this problem.
null
CC BY-SA 3.0
null
2008-08-06T22:56:14.463
2014-04-29T06:04:22.477
2014-04-29T06:04:22.477
1,540,450
571
null
4,096
2
null
173
7
null
We don't store the database schema, we store the changes to the database. What we do is store the schema changes so that we build a change script for any version of the database and apply it to our customer's databases. I wrote an database utility app that gets distributed with our main application that can read that...
null
CC BY-SA 2.5
null
2008-08-06T23:00:16.310
2008-08-06T23:00:16.310
null
null
206
null
4,004
1
null
null
43
21,822
I am using the .net `HttpListener` class, but I won't be running this application on IIS and am not using ASP.net. This [web site](http://www.leastprivilege.com/CommentView.aspx?guid=0c34094a-bdd4-4041-be6e-919f10fe1d31) describes what code to actually use to implement SSL with asp.net and [this site](http://blogs.ms...
How do I add SSL to a .net application that uses httplistener - it will *not* be running on IIS
CC BY-SA 4.0
0
2008-08-06T21:18:47.357
2020-12-08T06:07:53.970
2019-06-12T13:38:40.277
1,011,722
525
[ ".net", "authentication", "encryption", "ssl" ]
4,080
1
79,845
null
117
42,108
What code analysis tools do you use on your Java projects? I am interested in all kinds - - - - If applicable, also state what build tools you use and how well these tools integrate with both your IDEs and build tools. If a tool is only available a specific way (as an IDE plugin, or, say, a build tool plugin) tha...
What code analysis tools do you use for your Java projects?
CC BY-SA 2.5
0
2008-08-06T22:45:27.543
2014-04-29T06:05:47.530
2012-08-09T03:29:08.923
1,288
235
[ "java", "code-coverage", "static-analysis" ]
4,089
2
null
19
20
null
If by fastest you mean fastest to type in the code, here's the [golfscript](http://www.golfscript.com/golfscript/examples.html) solution: ``` ;''6666,-2%{2+.2/@*\/10.3??2*+}*`1000<~\; ```
null
CC BY-SA 2.5
null
2008-08-06T22:54:12.827
2008-08-06T22:54:12.827
null
null
136
null
4,074
2
null
717
1
null
`Sybase Anywhere` has a `OLEDB provider` for `VFP` tables. It states in the page that the server supports `64 bit Windows`, don't know about the `OLEDB provider`: > Support 64-bit Windows and Linux ServersIn order to further enhance scalability, support for the x86_64 architecture was added to the Advantage Database Se...
null
CC BY-SA 3.0
null
2008-08-06T22:33:32.760
2013-02-07T11:20:41.790
2020-06-20T09:12:55.060
-1
394
null
4,087
2
null
2,056
123
null
### MVP: the view is in charge. The view, in most cases, creates its presenter. The presenter will interact with the model and manipulate the view through an interface. The view will sometimes interact with the presenter, usually through some interface. This comes down to implementation; do you want the view to cal...
null
CC BY-SA 3.0
null
2008-08-06T22:51:07.717
2015-05-04T03:31:41.630
2020-06-20T09:12:55.060
-1
580
null
4,098
2
null
2,898
0
null
You can try Emacs with ruby-mode, [Rinari](http://rinari.rubyforge.org/) (for Rails) and [yasnippet](http://code.google.com/p/yasnippet/) which provides automatic snippets like Textmate.
null
CC BY-SA 2.5
null
2008-08-06T23:00:36.497
2008-08-06T23:00:36.497
null
null
161
null
4,102
2
null
1,261
1
null
You should take a look at [Git](http://git-scm.com) instead of SVN. It's a DVCS that's blazing-fast and very powerful. It's not as user-friendly as SVN, but it's improving in that regard, and it's not hard to learn.
null
CC BY-SA 2.5
null
2008-08-06T23:09:43.920
2008-08-06T23:09:43.920
null
null
582
null
4,126
2
null
4,110
4
null
I am a big fan of Embarcadero's [ER/Studio](http://www.embarcadero.com/products/er-studio). It is very powerful and produces excellent on-screen as well as printed results. They have a free trial as well, so you should be able to get in and give it a shot without too much strife. Good luck!
null
CC BY-SA 3.0
null
2008-08-06T23:36:58.547
2014-12-13T16:24:17.000
2014-12-13T16:24:17.000
1,810,429
172
null
4,117
2
null
4,110
0
null
If you are talking about MS SQL Server tables, I like the diagram support in SQL Server Management Studio. You just drag the tables from the explorer onto the canvas, and they are laid out for you along with lines for relationships. You'll have to do some adjusting by hand for the best looking diagrams, but it is a d...
null
CC BY-SA 2.5
null
2008-08-06T23:29:21.103
2008-08-06T23:29:21.103
null
null
571
null
4,124
2
null
3,859
2
null
Mark said: > git - very hot since Linus switched to it I just want to point out that Linus didn't switch to it, Linus it.
null
CC BY-SA 2.5
null
2008-08-06T23:33:52.843
2008-08-06T23:33:52.843
null
null
582
null
4,104
2
null
4,072
0
null
There's not really enough information to go on here. ``` svn merge -r 67212:67213 https://my.svn.repository/trunk . ``` will merge any files changed in the revision 67212 in the folder /trunk on the repository and merge them into your current working directory. If you do: ``` svn log -r 67212 ``` What files does ...
null
CC BY-SA 2.5
null
2008-08-06T23:12:35.083
2008-08-06T23:12:35.083
null
null
457
null
4,129
2
null
4,110
2
null
Toad Data Modeller from Quest does a nice job on this and is reasonably priced. Embarcadero E/R studio is good too, as Bruce mentioned.
null
CC BY-SA 2.5
null
2008-08-06T23:40:47.977
2008-08-06T23:40:47.977
null
null
116
null
4,110
1
4,126
null
15
4,814
I've been tasked with redesigning part of a ms-sql database structure which currently involves a lot of views, some of which contain joins to other views. Anyway, I wonder if anyone here could recommend a utility to automatically generate diagrams to help me visualise the whole structure. What's the best program you...
What program can I use to generate diagrams of SQL view/table structure?
CC BY-SA 2.5
0
2008-08-06T23:19:50.500
2014-12-13T16:24:17.000
2008-08-18T16:19:28.510
116
369
[ "sql", "sql-server", "database", "diagram" ]
4,128
2
null
3,976
0
null
have you tried watching the traffic between the GUI and the serial port to see if there is some kind of special command being sent across? Also just curious, Python is sending ASCII and not UTF-8 or something else right? The reason I ask is because I noticed your quote changes for the strings and in some languages th...
null
CC BY-SA 3.0
null
2008-08-06T23:40:43.810
2015-11-15T13:15:20.733
2015-11-15T13:15:20.733
675,568
17
null
4,139
2
null
4,052
14
null
``` sp_fulltext_database 'enable' CREATE FULLTEXT CATALOG [myFullText] WITH ACCENT_SENSITIVITY = ON CREATE FULLTEXT INDEX ON [dbo].[tblName] KEY INDEX [PK_something] ON [myFullText] WITH CHANGE_TRACKING AUTO ALTER FULLTEXT INDEX ON [dbo].[otherTable] ADD ([Text]) ALTER FULLTEXT INDEX ON [dbo].[teyOtherTable] ENABLE `...
null
CC BY-SA 2.5
null
2008-08-06T23:46:30.210
2011-02-11T22:35:07.073
2011-02-11T22:35:07.073
20,310
350
null
4,138
1
4,140
null
17
1,958
What is the best SVN Ignore Pattern should TortoiseSVN have for a VB.NET solution?
SVN Client Ignore Pattern for VB.NET Solutions
CC BY-SA 3.0
0
2008-08-06T23:46:24.673
2012-05-02T15:02:52.873
2012-05-02T15:02:52.873
1,011,616
83
[ "vb.net", "svn", "tortoisesvn" ]
4,072
1
13,738
null
13
1,191
I just did a merge using something like: ``` svn merge -r 67212:67213 https://my.svn.repository/trunk . ``` I only had 2 files, one of which is a simple `ChangeLog`. Rather than just merging my `ChangeLog` changes, it actually pulled mine plus some previous ones that were not in the destination `ChangeLog`. I noti...
SVN merge merged extra stuff
CC BY-SA 3.0
0
2008-08-06T22:30:26.387
2015-05-01T15:06:11.130
2015-05-01T15:06:11.130
4,818,540
122
[ "svn", "merge" ]
4,119
2
null
3,859
2
null
The simple answer is, do you like Undo buttons? The answer is of course yes, because we as human being make mistakes all the time. As programmers, its often the case though that it can take several hours of testing, code changes, overwrites, deletions, file moves and renames before we work out the method we are trying...
null
CC BY-SA 2.5
null
2008-08-06T23:31:21.270
2008-08-06T23:31:21.270
null
null
483
null
4,151
1
null
null
14
2,804
I am in the process of figuring out a cache strategy for our current setup, currently have multiple web servers and wanted to know what is the best way to cache data in this environment. I have done research about MemCache and the native asp.net caching but wanted to get some feedback first. Should I go with a Linux bo...
Best way to cache data
CC BY-SA 3.0
null
2008-08-06T23:58:47.580
2014-09-22T16:33:29.587
2014-06-04T10:08:11.540
1,584,106
453
[ ".net", "caching" ]
4,147
2
null
3,512
1
null
You could also look at either indexing the files yourself, or getting a third part app like google desktop or [copernic](http://www.copernic.com/en/products/desktop-search/whats-new-15.html) to do it and then interface with their index. I know copernic has an API that you can use to search for any file in their index a...
null
CC BY-SA 2.5
null
2008-08-06T23:53:38.637
2008-08-06T23:53:38.637
null
null
493
null
4,140
2
null
4,138
17
null
this is what I use for C# w/resharper, should work just the same with vb.net: ``` build deploy */bin */bin/* obj *.dll *.pdb *.user *.suo _ReSharper* *.resharper* bin ```
null
CC BY-SA 2.5
null
2008-08-06T23:48:46.353
2008-08-06T23:48:46.353
null
null
34
null
4,155
2
null
4,110
1
null
OP asked about diagramming views and view dependencies, SQL Management Studio and Enterprise Manager doesn't allow you to diagram views. I can't vouch for the other tools. The LINQ to SQL designer for Visual Studio does allow you to drop views on the design surface but there isn't a easy way to model the dependencies ...
null
CC BY-SA 2.5
null
2008-08-07T00:08:31.383
2008-08-07T00:08:31.383
null
null
419
null
4,149
1
154,588
null
109
59,809
I have an application that writes information to file. This information is used post-execution to determine pass/failure/correctness of the application. I'd like to be able to read the file as it is being written so that I can do these pass/failure/correctness checks in real time. I assume it is possible to do this, b...
How do I use Java to read from a file that is actively being written to?
CC BY-SA 3.0
0
2008-08-06T23:57:10.173
2017-11-02T22:09:31.077
2017-11-02T22:09:31.077
6,074,376
488
[ "java", "file", "file-io" ]
4,153
2
null
4,151
4
null
What about checking out [Microsoft Velocity](http://code.msdn.microsoft.com/velocity)? Another option if you don't want to start using Microsoft CTP-ware is to check out [Nache](http://www.alachisoft.com/ncache/) which allows distributed cache/session state management
null
CC BY-SA 3.0
null
2008-08-07T00:03:13.017
2014-09-22T16:33:29.587
2014-09-22T16:33:29.587
3,212,782
1,199,387
null
4,162
2
null
3,976
5
null
`/dev/cu.xxxxx` is the "callout" device, it's what you use when you establish a connection to the serial device and start talking to it. `/dev/tty.xxxxx` is the "dialin" device, used for monitoring a port for incoming calls for e.g. a fax listener.
null
CC BY-SA 2.5
null
2008-08-07T00:19:03.233
2008-08-07T00:19:03.233
null
null
582
null
4,166
2
null
4,080
1
null
We use FindBugs and JDepend integrated with Ant. We use JUnit but we're not using any coverage tool. I'm not using it integrated to Rational Application Developer (the IDE I'm using to develop J2EE applications) because I like how neat it looks when you run javac in the Windows console. :P
null
CC BY-SA 2.5
null
2008-08-07T00:20:41.750
2008-08-07T00:20:41.750
null
null
527
null
4,175
2
null
4,157
1
null
Someone correct me if I'm wrong, but I don't think that AppSettings is typically meant to be used for these type of configuration settings. Normally you would only put in settings that remain fairly static (database connection strings, file paths, etc.). If you want to store customizable user settings, it would be be...
null
CC BY-SA 2.5
null
2008-08-07T00:26:39.770
2008-08-07T00:26:39.770
null
null
423
null
4,168
1
4,577
null
46
47,856
I'm looking for a simple algorithm to 'serialize' a directed graph. In particular I've got a set of files with interdependencies on their execution order, and I want to find the correct order at compile time. I know it must be a fairly common thing to do - compilers do it all the time - but my google-fu has been weak t...
Graph serialization
CC BY-SA 3.0
0
2008-08-07T00:22:54.007
2017-03-22T16:32:13.657
2017-03-22T16:32:13.657
4,850,040
588
[ "algorithm", "sorting", "graph-algorithm", "directed-graph" ]
4,164
1
4,209
null
16
7,147
I'm about to start a project for a customer who wants CMS-like functionality. They want users to be able to log in, modify a profile, and a basic forum. They also wish to be able to submit things to a front page. Is there a framework or barebones CMS that I could expand on or tailor to my needs? I don't need anything ...
What is a good barebones CMS or framework?
CC BY-SA 3.0
null
2008-08-07T00:20:03.607
2016-04-10T18:32:16.957
2011-11-21T01:33:45.930
1,288
50
[ "frameworks", "content-management-system" ]
4,170
1
4,204
null
17
1,192
I need to learn ADO.NET to build applications based on MS Office. I have read a good deal about ADO.NET in the MSDN Library, but everything seems rather messy to me. What are the basics one must figure out when using ADO.NET? I think a few key words will suffice to let me organize my learning.
How to learn ADO.NET
CC BY-SA 3.0
0
2008-08-07T00:25:03.457
2017-05-20T04:58:58.797
2016-06-30T13:54:42.507
6,499,716
null
[ "ado.net" ]
4,177
2
null
4,168
1
null
I would expect tools that need this simply walk the tree in a depth-first manner and when they hit a leaf, just process it (e.g. compile) and remove it from the graph (or mark it as processed, and treat nodes with all leaves processed as leaves). As long as it's a DAG, this simple stack-based walk should be trivial.
null
CC BY-SA 2.5
null
2008-08-07T00:27:19.270
2008-08-07T00:27:19.270
null
null
582
null
4,171
2
null
4,151
2
null
[http://www.danga.com/memcached/](http://www.danga.com/memcached/) worked awesome for me and have heard nothing but goodness about it
null
CC BY-SA 2.5
null
2008-08-07T00:25:12.973
2008-08-07T00:25:12.973
null
null
590
null
4,157
1
4,220
null
27
6,722
I plan to be storing all my config settings in my application's app.config section (using the `ConfigurationManager.AppSettings` class). As the user changes settings using the app's UI (clicking checkboxes, choosing radio buttons, etc.), I plan to be writing those changes out to the `AppSettings`. At the same time, whi...
ConfigurationManager.AppSettings Performance Concerns
CC BY-SA 3.0
null
2008-08-07T00:12:55.663
2022-07-21T14:04:03.680
2017-12-22T10:12:07.717
3,804,420
551
[ "c#", ".net", "performance", "configuration", "properties" ]
4,178
2
null
4,157
0
null
Could I ask why you're not saving the user's settings in a database? Generally, I save application settings that are changed very infrequently in the appSettings section (the default email address error logs are sent to, the number of minutes after which you are automatically logged out, etc.) The scope of this really...
null
CC BY-SA 2.5
null
2008-08-07T00:27:36.807
2008-08-07T00:27:36.807
null
null
26
null
4,172
2
null
888
17
null
1) I use print_r(). In TextMate, I have a snippet for 'pre' which expands to this: ``` echo "<pre>"; print_r(); echo "</pre>"; ``` 2) I use Xdebug, but haven't been able to get the GUI to work right on my Mac. It at least prints out a readable version of the stack trace.
null
CC BY-SA 2.5
null
2008-08-07T00:25:13.487
2009-07-29T22:16:39.897
2009-07-29T22:16:39.897
586
586
null
4,144
2
null
3,143
4
null
TeamCity watches the command line output from the build. You can let it know how your tests are going by inserting certain markers into that output See [http://www.jetbrains.net/confluence/display/TCD3/Build+Script+Interaction+with+TeamCity](http://www.jetbrains.net/confluence/display/TCD3/Build+Script+Interaction+wit...
null
CC BY-SA 2.5
null
2008-08-06T23:49:46.600
2008-11-24T02:26:23.237
2008-11-24T02:26:23.237
571
571
null
4,180
2
null
4,157
0
null
one thing I would look at doing is caching the appsettings on a read, then flushing the settings from the cache on the write which should minimize the amount of actual load the server has to deal with for processing the appSettings. Also, if possible, look at breaking the appSettings up into [configSections](http://ww...
null
CC BY-SA 2.5
null
2008-08-07T00:28:58.877
2008-08-07T00:28:58.877
null
null
493
null
4,185
2
null
4,168
1
null
I've come up with a fairly naive recursive algorithm (pseudocode): ``` Map<Object, List<Object>> source; // map of each object to its dependency list List<Object> dest; // destination list function resolve(a): if (dest.contains(a)) return; foreach (b in source[a]): resolve(b); dest.add(a); foreac...
null
CC BY-SA 2.5
null
2008-08-07T00:30:52.180
2008-08-07T00:30:52.180
null
null
588
null
4,189
2
null
4,164
2
null
[tinyCMS](http://tinycms.sourceforge.net/) is about as barebones as you can get. (: fixed link, I had gotten a little click happy and linked to the wrong thing) @modesty, I would definitely NOT use SharePoint, as it is anything barebones. It is a fairly expensive product (especially when compared to the many free al...
null
CC BY-SA 2.5
null
2008-08-07T00:32:29.120
2008-08-07T00:46:47.813
2008-08-07T00:46:47.813
423
423
null
4,197
2
null
4,151
3
null
Dare Obasanjo has a [pretty good blog](http://www.25hoursaday.com/weblog/2007/07/05/ASPNETCachingVsMemcachedSeekingEfficientDataPartitioningLookupAndRetrieval.aspx) post about this topic. You really need to assess what it is you're caching, why you're caching it and what your needs are before you can make a decision on...
null
CC BY-SA 2.5
null
2008-08-07T00:35:36.447
2008-08-07T00:35:36.447
null
null
493
null
4,208
1
4,332
null
79
35,656
Is there a Windows equivalent of the Unix command, ? I'm specifically looking for something I can use at the command line, and the "Set Priority" menu from the task manager. My attempts at finding this on Google have been thwarted by those who can't come up with better adjectives.
Windows Equivalent of 'nice'
CC BY-SA 2.5
0
2008-08-07T00:39:17.453
2019-09-05T15:11:06.767
2009-06-26T13:20:19.863
2,351,099
55
[ "windows", "unix", "process-management" ]
4,206
2
null
4,149
0
null
I've never tried it, but you should write a test case to see if reading from a stream after you have hit the end will work, regardless of if there is more data written to the file. Is there a reason you can't use a piped input/output stream? Is the data being written and read from the same application (if so, you hav...
null
CC BY-SA 2.5
null
2008-08-07T00:37:44.880
2008-08-07T00:37:44.880
null
null
122
null
4,209
2
null
4,164
0
null
if you are looking .net you can take a look at umbraco, haven't done much with it (company i work for wanted much more functionality so went with something else) but it seemed lightweight. Edit : if the customer wants a tiny CMS with a forum, I would still probably just go Drupal with phpBB or [simple machines forum](...
null
CC BY-SA 2.5
null
2008-08-07T00:39:23.070
2008-08-07T03:54:28.527
2008-08-07T03:54:28.527
590
590
null
4,217
2
null
4,157
1
null
I would not use config files for storing user data. Use a db.
null
CC BY-SA 2.5
null
2008-08-07T00:43:11.297
2008-08-07T00:43:11.297
null
null
590
null
4,214
2
null
4,157
2
null
Check out SQLite, it seems like a good option for this particular scenario.
null
CC BY-SA 2.5
null
2008-08-07T00:41:38.977
2008-08-07T00:41:38.977
null
null
26
null
4,220
2
null
4,157
10
null
since you're using a winforms app, if it's in .net 2.0 there's actually a user settings system (called Properties) that is designed for this purpose. [This article on MSDN](https://learn.microsoft.com/en-us/previous-versions/aa730869%28v=vs.80%29) has a pretty good introduction into this If you're still worried about p...
null
CC BY-SA 4.0
null
2008-08-07T00:45:37.393
2022-07-21T14:04:03.680
2022-07-21T14:04:03.680
4,751,173
493
null
4,188
2
null
4,149
1
null
Not Java per-se, but you may run into issues where you have written something to a file, but it hasn't been actually written yet - it might be in a cache somewhere, and reading from the same file may not actually give you the new information. Short version - use flush() or whatever the relevant system call is to ensur...
null
CC BY-SA 2.5
null
2008-08-07T00:31:47.203
2008-08-07T00:31:47.203
null
null
188
null
4,187
2
null
2,472
4
null
AdBlock forum [says](http://adblockplus.org/forum/viewtopic.php?t=2107&postdays=0&postorder=asc&start=60) this is used to detect AdBlock. After some tweaking you could use this to gather some statistics. ``` setTimeout("detect_abp()", 10000); var isFF = (navigator.userAgent.indexOf("Firefox") > -1) ? true : false, ...
null
CC BY-SA 3.0
null
2008-08-07T00:31:18.077
2016-12-01T21:56:36.013
2016-12-01T21:56:36.013
2,571,493
501
null
4,226
2
null
4,062
0
null
Seconding memcached, does the simple stuff well and can go distributive and all that jazz if you need it too
null
CC BY-SA 2.5
null
2008-08-07T00:48:53.300
2008-08-07T00:48:53.300
null
null
590
null
4,225
1
4,281
null
17
1,356
Is there a trivial, or at least moderately straight-forward way to generate territory maps (e.g. Risk)? I have looked in the past and the best I could find were vague references to Voronoi diagrams. An example of a Voronoi diagram is this: ![here](https://i.stack.imgur.com/aX9Tp.gif). These hold promise, but I gues...
Territory Map Generation
CC BY-SA 4.0
null
2008-08-07T00:48:04.953
2018-12-27T21:50:55.553
2018-12-27T21:50:55.553
4,751,173
364
[ "language-agnostic", "maps", "voronoi" ]
4,219
1
4,228
null
77
55,830
A few months back my team switched our source control over to [Apache Subversion](http://subversion.apache.org/) from [Visual SourceSafe](http://msdn.microsoft.com/en-us/vs2005/aa718670.aspx), and we haven't been happier. Recently I've been looking at [Team Foundation Server](http://tfspreview.com/), and at least on...
SVN vs. Team Foundation Server
CC BY-SA 3.0
0
2008-08-07T00:43:33.700
2013-04-23T19:52:11.813
2013-04-23T19:52:11.813
41,688
423
[ "svn", "tfs" ]
4,228
2
null
4,219
46
null
I joined an Open Source project over at CodePlex, recently. They use TFS for their source control and I have to say that it's absolutely magnificent. I'm incredibly impressed with it, so far. I'm a huge fan of the IDE integration and how easy it is to branch and tag your code. Adding a solution to source control is som...
null
CC BY-SA 3.0
null
2008-08-07T00:52:27.130
2012-08-17T16:06:33.500
2012-08-17T16:06:33.500
761,095
560
null
4,204
2
null
4,170
6
null
There are three key components (assuming ur using SQL server): - `SQLConnection`- `SqlCommand`- `SqlDataReader` (if you're using something else, replace `Sql` with "Something", like `MySqlConnection`, `OracleCommand`) Everything else is just built on top of that. ``` using (SqlConnection connection = new SqlConne...
null
CC BY-SA 3.0
null
2008-08-07T00:37:04.727
2016-02-07T17:34:37.953
2016-02-07T17:34:37.953
2,921,691
34
null
4,192
2
null
4,051
23
null
You can do this with any data type. Simply make it a pointer-to-pointer: ``` typedef struct { int myint; char* mystring; } data; data** array; ``` But don't forget you still have to malloc the variable, and it does get a bit complex: ``` //initialize int x,y,w,h; w = 10; //width of array h = 20; //height of ar...
null
CC BY-SA 3.0
null
2008-08-07T00:34:21.097
2015-04-29T23:38:48.250
2015-04-29T23:38:48.250
1,505,939
432
null
4,222
2
null
4,062
2
null
Maybe you want to explicit more precisely what you want to cache. You have all this opportunities to cache: - [AdoDB](http://adodb.sourceforge.net/)- - [APC Cache](http://pecl.php.net/package/APC)- [Squid](http://www.squid-cache.org/)- From my experience, I'd bet you that your code can be improved a lot before we s...
null
CC BY-SA 2.5
null
2008-08-07T00:46:58.467
2008-08-07T02:02:32.403
2008-08-07T02:02:32.403
527
527
null
4,230
1
4,244
null
52
77,404
I've been doing ASP.NET development for a little while now, and I've used both the GridView and the DataGrid controls before for various things, but I never could find a really good reason to use one or the other. I'd like to know: What is the difference between these 2 ASP.NET controls? What are the advantages or dis...
The Difference Between a DataGrid and a GridView in ASP.NET?
CC BY-SA 2.5
0
2008-08-07T00:54:31.883
2019-04-06T07:08:52.627
2008-08-07T01:11:16.030
392
392
[ "asp.net" ]
4,221
1
null
null
35
23,529
I'd like to use a `LinqDataSource` control on a page and limit the amount of records returned. I know if I use code behind I could do something like this: ``` IEnumerable<int> values = Enumerable.Range(0, 10); IEnumerable<int> take3 = values.Take(3); ``` Does anyone know if something like this is possible with a `L...
LinqDataSource - Can you limit the amount of records returned?
CC BY-SA 3.0
0
2008-08-07T00:45:51.980
2019-12-27T08:59:01.210
2011-10-21T16:59:29.527
925,222
519
[ "c#", "asp.net", "database", "linq", "linq-to-sql" ]
4,233
2
null
4,157
2
null
Dylan, Don't use the application config file for this purpose, use a SQL DB (SQLite, MySQL, MSSQL, whatever) because you'll have to worry less about concurrency issues during reads and writes to the config file. You'll also have better flexibility in the type of data you want to store. The appSettings section is jus...
null
CC BY-SA 2.5
null
2008-08-07T00:56:26.933
2008-08-07T00:56:26.933
null
null
419
null
4,232
2
null
4,164
0
null
Might want to check out [Drupal](http://drupal.org/). Here are the details of the [technology stack](http://drupal.org/node/176052) that it uses. I have never used it so I can't vouch for the quality etc but definitely worth a look.
null
CC BY-SA 2.5
null
2008-08-07T00:55:48.323
2008-08-07T00:55:48.323
null
null
242
null
4,244
2
null
4,230
47
null
DataGrid was an ASP.NET 1.1 control, still supported. GridView arrived in 2.0, made certain tasks simpler added different databinding features: This link has a comparison of DataGrid and GridView features - [https://msdn.microsoft.com/en-us/library/05yye6k9(v=vs.100).aspx](https://msdn.microsoft.com/en-us/library/05y...
null
CC BY-SA 3.0
null
2008-08-07T01:06:22.687
2015-12-13T12:24:06.173
2015-12-13T12:24:06.173
905,671
419
null