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,537
1
15,577
null
3
3,650
If I press + that ought to give me ASCII code 2, but + is going to be interpreted as a Break. So I figure I've got to redirect a file in. How do I get these characters into a file?
How do I generate ASCII codes 2 and 3 in a Bash command line?
CC BY-SA 3.0
null
2008-08-19T02:05:55.817
2017-02-13T05:23:49.143
2012-06-22T16:44:02.440
115,845
257
[ "linux", "bash", "unix", "ascii" ]
15,587
2
null
15,399
0
null
I'm not expecting anything like this to exist. The tool would have to first implement everything that the SQL parser in your database implements, and then it would have to do a data model analysis to predict "bad" queries. Your best bet might be to write a plugin for a text editor that did some basic checking for sus...
null
CC BY-SA 2.5
null
2008-08-19T02:42:37.053
2008-08-19T02:42:37.053
null
null
1,219
null
15,577
2
null
15,537
10
null
- escapes the next keystoke. That's how you can get a - out: - -
null
CC BY-SA 3.0
null
2008-08-19T02:34:46.677
2013-07-24T04:12:47.193
2013-07-24T04:12:47.193
2,231,069
257
null
15,590
2
null
15,573
1
null
Not looking to travel. I'd rather get a powerful desktop for my dollar. I have a nice big panel here so problem with that. The majority of my development is ASP.NET stuff with some winforms projects.
null
CC BY-SA 2.5
null
2008-08-19T02:43:45.647
2008-08-19T02:43:45.647
null
null
447
null
15,574
2
null
15,537
6
null
``` echo $'\002\003' > ./myfile ```
null
CC BY-SA 2.5
null
2008-08-19T02:33:21.143
2008-08-19T02:33:21.143
null
null
1,848
null
15,581
2
null
15,573
0
null
There are some additional questions that would make our answers more complete. - - - - I've seen some great deals on 17" HP laptops lately - one at Best Buy that had 4GB of RAM and a monster hard drive along with a 2.4+ Ghz Core 2 Duo for roughly $800 after tax.
null
CC BY-SA 2.5
null
2008-08-19T02:39:58.320
2008-08-19T02:39:58.320
null
null
1,649
null
15,591
2
null
15,163
1
null
I think that like many events in VB, it can't be switched off. Just set a boolean flag as you've suggested.
null
CC BY-SA 2.5
null
2008-08-19T02:43:58.220
2008-08-19T02:43:58.220
null
null
1,855
null
15,583
1
null
null
0
2,486
All of my Visio experience is with LAN/WAN documentation. I recently had a desire to visualize the relationship between [objects](http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html) in the [Nagios](http://www.nagios.org/) configuration and I realized I didn't know how to do it properly and moved on to somet...
What are the correct stencils for object relational diagramming in visio?
CC BY-SA 2.5
0
2008-08-19T02:40:24.530
2010-09-03T10:37:46.790
2017-05-23T12:01:24.217
-1
430
[ "uml", "visualization", "modeling", "oop" ]
15,594
2
null
15,583
1
null
You can use a UML static class diagram with << stereotype >> annotations, which is the kind of thing you would do in Rational Rose for using UML for things that aren't necessarily classes and methods, such as databases.
null
CC BY-SA 2.5
null
2008-08-19T02:45:37.420
2008-08-19T02:45:37.420
null
null
1,659
null
15,593
1
15,627
null
39
7,197
I understand what [System.WeakReference](http://msdn.microsoft.com/en-us/library/ms404247.aspx) does, but what I can't seem to grasp is a practical example of what it might be useful for. The class itself seems to me to be, well, a hack. It seems to me that there are other, better means of solving a problem where a We...
Practical use of System.WeakReference
CC BY-SA 2.5
0
2008-08-19T02:45:27.747
2012-08-25T17:19:51.583
2008-08-23T05:14:04.430
893
1,875
[ ".net", "garbage-collection" ]
15,601
2
null
15,573
1
null
Jeff built an [Ultimate Developer Rig](http://www.hanselman.com/blog/TheCodingHorrorUltimateDeveloperRigThrowdownPart2.aspx) for Scott Hanselman a while back. You can check out his requirements and see if it matches closely to what you are looking for. From what you've mentioned, an Intel Q9450, 4 or 8gigs of ram and ...
null
CC BY-SA 2.5
null
2008-08-19T02:48:52.063
2008-08-19T02:48:52.063
null
null
1,877
null
15,621
1
15,651
null
12
1,796
I have a few C# `.dll` projects which are common to many applications. Currently, I have one big repository. I have each DLL stored as a separate project within the repository and every application project stored as a project within the same repository. I recently switched to Subversion for source control and I fear ...
Best way to structure a repository in Subversion for Visual Studio projects?
CC BY-SA 3.0
null
2008-08-19T03:03:30.973
2011-08-11T15:53:54.317
2011-08-11T15:53:54.317
387,076
1,511
[ "svn" ]
15,592
2
null
15,365
1
null
1. You should translate your requirements into a Product Backlog. This backlog is what you use to decide what Sprint Backlog items are chosen for each Sprint iteration. Management decides what is on the Product Backlog, but the team needs to agree to what they can produce in the Sprint (this is a negotiation that occu...
null
CC BY-SA 2.5
null
2008-08-19T02:44:26.393
2008-08-19T02:44:26.393
null
null
178
null
15,600
2
null
15,399
0
null
It would be pretty easy to build this by setting up a sample database with a extremely small amount of dummy data, which would receive the query first. A couple of things will happen: 1. You might get a SQL syntax error, which would not load the database much since it's a small database. 2. You might get back a respo...
null
CC BY-SA 2.5
null
2008-08-19T02:48:05.043
2008-08-19T02:48:05.043
null
null
1,854
null
15,622
2
null
15,513
0
null
It may not help if the problem is inside one of your controls - as you expect - but if the page is poorly designed and that's causing render to be slow, [YSlow](http://developer.yahoo.com/yslow/) should help clean that up.
null
CC BY-SA 2.5
null
2008-08-19T03:03:58.617
2008-08-19T03:03:58.617
null
null
751
null
15,630
2
null
15,399
2
null
If your people are using the mysql(1) program to run queries, you can use the [safe-updates](http://dev.mysql.com/doc/refman/5.1/en/mysql-tips.html) option (aka i-am-a-dummy) to get you part of what you need. Its name is somewhat misleading; it not only prevents UPDATE and DELETE without a WHERE (which you're not worr...
null
CC BY-SA 2.5
null
2008-08-19T03:10:41.253
2008-08-19T03:10:41.253
null
null
1,879
null
15,643
2
null
15,635
1
null
Wow, that sounds like a really strange use for Visual Studio. I'm very happy chugging away in vim. However, the one thing I love about Visual Studio is the debugger. It sounds like you are not even using it. When I opened the question I thought you must be referring to developing portable applications in Visual Studio...
null
CC BY-SA 2.5
null
2008-08-19T03:24:23.677
2008-08-19T03:24:23.677
null
null
1,491
null
15,616
2
null
15,593
13
null
I use it to implement a cache where unused entries are automatically garbage collected: ``` class Cache<TKey,TValue> : IEnumerable<KeyValuePair<TKey,TValue>> { Dictionary<TKey,WeakReference> dict = new Dictionary<TKey,WeakReference>(); public TValue this[TKey key] { get {lock(dict){ return getInternal(key);}} ...
null
CC BY-SA 2.5
null
2008-08-19T03:01:32.600
2008-08-20T16:35:15.610
2008-08-20T16:35:15.610
1,659
1,659
null
15,644
2
null
15,481
0
null
The convetion/best practise would still be not to use them at all and to refactor the code so that is more readable using extract as method.
null
CC BY-SA 2.5
null
2008-08-19T03:24:57.107
2008-08-19T03:24:57.107
null
null
1,675
null
15,627
2
null
15,593
49
null
One useful example is the guys who run DB4O object oriented database. There, WeakReferences are used as a kind of light cache: it will keep your objects in memory only as long as your application does, allowing you to put a real cache on top. Another use would be in the implementation of weak event handlers. Currently...
null
CC BY-SA 2.5
null
2008-08-19T03:07:38.343
2008-08-19T03:07:38.343
null
null
536
null
15,639
2
null
15,621
0
null
if your sub projects can be released at different versions (like controls, web parts, ect...) then it may make sense to build your structure like this: Project 1 > - - - Project 2 > - - - This way you can manage each project release independently. Otherwise the most common structure is: > - - - -
null
CC BY-SA 2.5
null
2008-08-19T03:22:18.937
2008-08-19T03:22:18.937
null
null
805
null
15,653
2
null
15,649
0
null
This question actually seems to be about Java vs. C++ performance, and that's not the object orientation so much as running on a virtual machine with garbage collection and such. [This whitepaper](http://scribblethink.org/Computer/javaCbenchmark.html) on Java vs. C++ performance might be worth a read.
null
CC BY-SA 3.0
null
2008-08-19T03:36:03.387
2013-11-26T04:36:57.437
2013-11-26T04:36:57.437
1,102,512
1,370
null
15,635
1
null
null
17
11,298
Does anyone have battle stories to share trying to use Visual Studio to develop applications for Unix? And I'm not talking using .NET with a Mono or Wine virtual platform running beneath. Our company has about 20 developers all running Windows XP/Vista and developing primarily for Linux & Solaris. Until recently we ...
Using Visual Studio to develop for C++ for Unix
CC BY-SA 2.5
0
2008-08-19T03:16:05.737
2014-09-14T04:29:36.033
2008-08-25T05:12:29.300
2,134
1,881
[ "c++", "visual-studio", "unix", "development-environment" ]
15,656
1
null
null
9
6,887
Another SSRS question here: We have a development, a QA, a Prod-Backup and a Production SSRS set of servers. On our production and prod-backup, SSRS will go to sleep if not used for a period of time. This does not occur on our development or QA server. In the corporate environment we're in, we don't have physic...
SSRS - Process dies/goes to sleep after not being used
CC BY-SA 3.0
0
2008-08-19T03:39:09.683
2018-02-16T17:22:51.037
2016-03-13T06:16:22.130
4,211,866
1,580
[ "sql-server", "reporting-services", "ssrs-2008" ]
15,659
2
null
15,656
0
null
I vaguely recall having problems with SSRS on one machine when we changed the "Enable HTTP Keep-Alives" setting in IIS. Try toggling that checkbox (I don't remember whether it was checked or unchecked when it caused us problems).
null
CC BY-SA 2.5
null
2008-08-19T03:43:55.023
2008-08-19T03:43:55.023
null
null
615
null
15,649
1
15,667
null
6
3,588
The Gang of Four's [Design Patterns](http://en.wikipedia.org/wiki/Design_Patterns) uses a word processor as an example for at least a few of their patterns, particularly Composite and Flyweight. Other than by using C or C++, could you really use those patterns and the object-oriented overhead they entail to write a hi...
Can you really build a fast word processor with GoF Design Patterns?
CC BY-SA 3.0
null
2008-08-19T03:31:27.750
2013-11-26T04:36:57.437
2011-09-21T00:34:50.587
1,288
1,659
[ "java", "performance", "design-patterns", "ide", "text-processing" ]
15,658
2
null
15,481
20
null
If you have to use them use capitals, this draws attention to them and singles them out from being mistakenly interpreted as "Class" names. Drawing attention to them has the additional benefit of catching someone's eye that will come along and refactor your code and remove them. ;)
null
CC BY-SA 2.5
null
2008-08-19T03:41:53.530
2008-08-19T03:41:53.530
null
null
1,611
null
15,651
2
null
15,621
4
null
using the branch/trunk/tag repository structure is pretty standard, but if I'm understanding you properly, your issue is that you have a set of common dll projects that get used across multiple projects. This can definately become tricky to manage. So the typical scenario here is that you have some class library calle...
null
CC BY-SA 2.5
null
2008-08-19T03:33:39.977
2008-08-19T03:33:39.977
null
null
493
null
15,666
2
null
13,745
5
null
I find VisualSVN to be well worth the money. There are ways to do it with Tortoise, but the integration of VisualSVN is very nice. I had tried over VS-integration tools before like Ankh and was not impressed. V-SVN has really upped the level of interaction with the repository from the IDE. The quick trick in TortoiseS...
null
CC BY-SA 2.5
null
2008-08-19T03:53:24.180
2008-08-19T03:53:24.180
null
null
1,882
null
15,660
2
null
15,649
3
null
Well, [flyweight](http://en.wikipedia.org/wiki/Flyweight_pattern) is a ridiculous pattern to use in a word processor. IIRC, they had each character being referenced as a object [note: it was for each , which is still crazy because your OS will happily draw that for you]. With a pointer being wider than a character an...
null
CC BY-SA 3.0
null
2008-08-19T03:44:14.510
2012-12-27T16:10:27.383
2012-12-27T16:10:27.383
20,578
257
null
15,632
1
17,103
null
-1
362
I want to know how to fully uninstall `MSSQL 2005`. I've been using the Trial version of SQL Server Reporting Services for a while now. My company finally purchased the software from an online distributor, and for support of Oracle, we needed to upgrade to MSSQL 2005 SP2. Anyway, the "full" version of the softwar...
SSRS - Uninstall Trial Version of VS Business Intelligence
CC BY-SA 3.0
null
2008-08-19T03:12:27.757
2014-12-09T13:45:43.837
2014-12-09T13:45:43.837
1,156,245
1,580
[ "sql-server", "visual-studio", "reporting-services" ]
15,668
2
null
12,142
1
null
From the demos of the designer I've seen, it's not a flawless tool. It is a version 1.0 product, so it's bound to have some pain points. The change type is one of them it seems. From watching the designer and the code generation, I figured that one would break either at compile time (not likely) or at run-time (when th...
null
CC BY-SA 2.5
null
2008-08-19T03:55:57.450
2008-08-19T03:55:57.450
null
null
1,882
null
15,663
2
null
15,481
0
null
They are kind of the goto of Java - not sure if C# has them. I have never used them in practice, I can't think of a case where avoiding them wouldn't result in much more readable code. But if you have to- I think all caps is ok. Most people won't use labelled breaks, so when they see the code, the caps will jump out ...
null
CC BY-SA 2.5
null
2008-08-19T03:49:26.947
2008-08-19T03:49:26.947
null
null
699
null
15,657
2
null
11,088
0
null
The best way to do bit manipulation/unsigned bytes is through using s. Even though they are signed they have plenty of spare bits (32 total) to treat as an unsigned byte. Also, all of the mathematical operators will convert smaller fixed precision numbers to . Example: ``` short a = 1s; short b = 2s; int c = a + b; //...
null
CC BY-SA 2.5
null
2008-08-19T03:39:43.473
2008-08-19T03:39:43.473
null
null
1,353
null
15,672
2
null
13,647
5
null
PHP doesn't support enums, which might be one area of mismatch. Also, watch out for collection types, PHP despite it's OO features, tends to have no alternative to over-using the array datatype. Check out the sections on the PHP manual on iterators if you would like to see beyond this. Public, protected, private, and...
null
CC BY-SA 2.5
null
2008-08-19T04:07:39.110
2008-08-19T04:07:39.110
null
null
14,446
null
15,633
2
null
15,621
9
null
Subversion repositories are typical sub-divided into: ``` branch/ tags/ trunk/ ``` You would either place all of your DLL and application projects into the and then use and for all of them as necessary too: ``` branch/ tags/ trunk/ project1/ project2/ ``` Alternatively, you could create folders for eac...
null
CC BY-SA 2.5
null
2008-08-19T03:12:54.043
2008-08-19T03:28:14.540
2008-08-19T03:28:14.540
1,491
1,491
null
15,670
2
null
13,745
12
null
You should really check the Free as in Beer option of [AnkhSVN](http://ankhsvn.open.collab.net/). They made some major improvements in v2.x and I don't feel penalized anymore when doing ReSharper refactoring-ninja moves inside Visual Studio.
null
CC BY-SA 2.5
null
2008-08-19T04:04:14.470
2008-08-19T04:04:14.470
null
null
307
null
15,665
2
null
15,481
0
null
> I know, I should not use labels.But just assume, I have some code, that could gain a lot in readability from labeled breaks, how do I format them. Mo, your premise is wrong. The question shouldn't be 'how do I format them?' Your question should be 'I have code that has a large amount of logic inside loops - how do I ...
null
CC BY-SA 2.5
null
2008-08-19T03:50:42.593
2008-08-19T03:50:42.593
2020-06-20T09:12:55.060
-1
943
null
15,673
2
null
15,635
0
null
We are using a similar solution to what you described. We have our code stored on the Windows side of the world and UNIX (QNX 4.25 to be exact) has access though an NFS mount (thanks to UNIX services for Windows). We have an ssh into UNIX to run make and the pipe to output into VS. Accessing the code is fast, builds a...
null
CC BY-SA 2.5
null
2008-08-19T04:08:02.667
2008-08-19T04:08:02.667
null
null
788
null
15,676
2
null
15,674
4
null
This is due to how subversion works. Each revision is really a snapshot of the repository identified by that revision number. If all your projects share a repository then it is unavoidable. Typically, in my experience, however you would setup separate repositories for completely unrelated projects. So short answer is n...
null
CC BY-SA 2.5
null
2008-08-19T04:12:56.247
2008-08-19T04:12:56.247
null
null
200
null
15,669
2
null
15,635
3
null
I feel your pain. We have an application which is 'cross-platform'. A typical client/server application where the client needs to be able to run on windows and linux. Since our client base mostly uses windows we work using VS2008 (the debugger makes life a lot easier) - however we still need to perform linux builds. ...
null
CC BY-SA 2.5
null
2008-08-19T03:58:22.873
2008-08-19T03:58:22.873
null
null
716
null
15,680
2
null
15,674
4
null
The revision number should really only be an identifier for a particular version. Whether it's sequential for a project or not shouldn't matter. That being said, I can understand that it's less than ideal. Most projects I've encountered have been setup in a single repository and the revision ids behave in this way. I ...
null
CC BY-SA 2.5
null
2008-08-19T04:15:23.620
2008-08-19T04:15:23.620
null
null
1,848
null
15,667
2
null
15,649
5
null
Flyweight really is just a way of conserving resources in situations where there are thousands of objects with intrinsic shared state, so it could be useful in higher level languages than C/C++. Maybe the GoF's example using glyphs in a document was not the best choice to illustrate this pattern. I think there's a lot...
null
CC BY-SA 2.5
null
2008-08-19T03:54:14.223
2010-02-05T02:18:00.827
2010-02-05T02:18:00.827
59,087
14,446
null
15,677
2
null
15,514
6
null
Try overriding the validate method in your markup. This will work (just tested): ``` <input type="text" name="startDate" dojoType="dijit.form.DateTextBox" constraints="{datePattern:'MM/dd/yyyy'}" value='<c:out value="${sessionScope.adminMessageForm.startDate}"/>' validate='return true;' /> ```
null
CC BY-SA 2.5
null
2008-08-19T04:13:01.923
2008-08-19T04:19:25.563
2008-08-19T04:19:25.563
943
943
null
15,682
2
null
15,621
0
null
I store everything in the repository to make it easy for developers (or rebuilt devboxes) to check-out from SVN and then run a build (with all necessary assemblies in relative paths). If you have multiple projects that should be separate, this would also encourage the team of your shared components to deliver high qua...
null
CC BY-SA 2.5
null
2008-08-19T04:16:12.247
2008-08-19T04:16:12.247
null
null
307
null
15,679
2
null
15,674
1
null
I store one project per repository, and like a previous [commenter](https://stackoverflow.com/questions/15621/subversion-question#15651) on this [subversion question](https://stackoverflow.com/questions/15621/subversion-question), I mark shared projects as external, so that they are only in source control once. I'm ju...
null
CC BY-SA 2.5
null
2008-08-19T04:14:43.573
2008-08-19T04:14:43.573
2017-05-23T11:46:06.867
-1
1,233
null
15,681
1
15,697
null
25
3,043
I'd like to start experimenting with Cocoa and programming for Mac OSX. I'm not terribly concerned with Objective C syntax/constructs/bheaviors at this point, but more curious as to an efficient setup on in terms of an editor and/or IDE that will get me going quickly. Is there any IDE even remotely similar to Visual ...
Developer Setup for Starting Out with Cocoa/Mac Programming
CC BY-SA 3.0
0
2008-08-19T04:15:52.993
2012-05-31T17:21:22.113
2012-05-31T17:21:22.113
50,776
1,875
[ "cocoa", "macos" ]
15,686
2
null
15,635
1
null
Network shares. Of course, then you have killer lag on the network, but at least there's only one copy of your files. You don't want to hear what I did when I was developing on both platforms. But you're going to: drag-n-drop copy a few times a day. Local build and run, and periodically checking it out on Unix to m...
null
CC BY-SA 2.5
null
2008-08-19T04:20:08.370
2008-08-19T04:20:08.370
null
null
257
null
15,678
1
15,724
null
2
2,443
I have a solution with several projects, where the startup project has a post-build event that does all the copying of "plugin" projects and other organizing tasks. After upgrading the solution from VS 2005 to VS 2008, it appears as though the post-build event only fires if I modify the startup project, which means my ...
Can I configure VisualStudio 2008 to always build the startup project?
CC BY-SA 2.5
null
2008-08-19T04:13:07.510
2010-09-28T16:04:27.823
null
null
470
[ "visual-studio" ]
15,687
1
16,020
null
24
19,785
So, you are all ready to do a big SVN Commit and it bombs because you have inconsistent line endings in some of your files. Fun part is, you're looking at 1,000s of files spanning dozens of folders of different depths. What do you do?
How can I convert all line endings to CRLF, LF, or CR during SVN operations
CC BY-SA 2.5
0
2008-08-19T04:22:34.057
2020-01-10T11:05:44.707
2013-12-10T19:59:58.733
2,872,121
307
[ "svn", "version-control", "eol" ]
15,688
2
null
15,573
3
null
I just built a quad core - 8 GB of RAM and run Server 2008 with Hyper-V on it. I have VMs for my build server, dev platform, and deployment options (XP, Vista, Server 2003/2008) with snapshots at the various service pack levels. What's nice is you can spin up a VM whenever you need it, and re-allocate the resources w...
null
CC BY-SA 2.5
null
2008-08-19T04:25:23.007
2008-08-19T04:25:23.007
null
null
1,233
null
15,691
2
null
15,681
0
null
AFAIK, pretty much every OS X developer uses Xcode. That, and Interface Builder for creating the GUIs. FWIW, try to get hold of a copy of Hillegas's book, as it's a great introductory tutorial, and the reference Docs Apple provides really aren't. (They are generally very good reference docs, however).
null
CC BY-SA 2.5
null
2008-08-19T04:27:06.980
2008-08-19T04:27:06.980
null
null
188
null
15,690
1
15,702
null
10
5,133
It's been mentioned to me that I'll be the sole developer behind a large new system. Among other things I'll be designing a UI and database schema. I'm sure I'll receive some guidance, but I'd like to be able to knock their socks off. What can I do in the meantime to prepare, and what will I need to keep in mind whe...
How do you begin designing a large system?
CC BY-SA 2.5
0
2008-08-19T04:26:33.347
2012-04-06T09:29:00.963
2012-04-06T09:29:00.963
307
1,650
[ "java", "oop", "architecture" ]
15,695
1
16,385
null
8
8,155
The company I just started working for is using [Stripes](http://www.stripesframework.org/display/stripes/Home) for parts of its web page development these days, and while it seems to be a nice enough web framework it no one really uses it-- it is almost non existent on the 'net. It's not even first in it's [google sea...
Good Stripes tutorials / examples?
CC BY-SA 2.5
0
2008-08-19T04:29:40.283
2018-12-19T06:01:47.287
2013-08-09T13:34:32.737
null
1,666
[ "java", "stripes" ]
15,698
2
null
15,690
2
null
Before you start coding, plan out your database schema - everything else will flow from that. Getting the database reasonably correct early on will save you time and headaches later.
null
CC BY-SA 2.5
null
2008-08-19T04:31:27.770
2008-08-19T04:31:27.770
null
null
658
null
15,674
1
230,005
null
24
11,654
When using Subversion (svn) for source control with multiple projects I've noticed that the revision number increases across all of my projects' directories. To illustrate my svn layout (using fictitious project names): When I perform a commit to the trunk of the Ninja Program, let's say I get that it has been upd...
Subversion revision number across multiple projects
CC BY-SA 2.5
0
2008-08-19T04:08:12.230
2013-04-22T13:21:52.190
2017-05-23T12:09:17.433
-1
1,339
[ "svn", "version-control", "repository" ]
15,699
2
null
15,678
2
null
I don't know if this is the right way to do it but you could add a prebuild event to your startup projcet (if it's static) to clean the project which will force a rebuild. something like: ``` devenv project.csproj /clean ```
null
CC BY-SA 2.5
null
2008-08-19T04:32:12.243
2008-08-19T04:32:12.243
null
null
493
null
15,697
2
null
15,681
18
null
I'd suggest you pick a fun little product and dive in. If you're looking for a book I'd suggest [Cocoa Programming for Max OSX](https://rads.stackoverflow.com/amzn/click/com/0321503619) which is a very good introduction both to Objective-C and Cocoa. XCode is pretty much the de facto IDE and free with OSX. It should b...
null
CC BY-SA 2.5
null
2008-08-19T04:30:35.897
2008-08-19T04:30:35.897
null
null
1,043
null
15,683
2
null
15,040
5
null
This is my install scrpt, I use it on debian servers, but it will work in Ubuntu (Ubuntu is built on Debian) ``` apt-get -yq update apt-get -yq upgrade apt-get -yq install sudo apt-get -yq install gcc apt-get -yq install g++ apt-get -yq install make apt-get -yq install apache2 apt-get -yq install php5 apt-get -yq inst...
null
CC BY-SA 2.5
null
2008-08-19T04:18:02.413
2008-08-27T08:14:24.650
2008-08-27T08:14:24.650
115
115
null
15,700
1
null
null
2
713
I'm looking for a way to configure a DB connection at runtime; specifically using the Enterprise Library. I see that there's a *.Data.Configuration (or something close to this ... don't recall off the top of my head) assembly but am finding not much on the interwebs. Complicating matters is the fact that the API help...
Runtime Configuration in .Net (specifically the EntLib)
CC BY-SA 3.0
0
2008-08-19T04:32:13.633
2013-07-05T08:59:48.110
2013-07-05T08:59:48.110
1,584,286
1,886
[ ".net", "enterprise-library", "connection-string" ]
15,704
2
null
15,700
1
null
If you're using a winforms app you could try using [UserProperties](http://msdn.microsoft.com/en-us/library/aa221771(office.11).aspx) to store this info. Another possible solution could be [custom configuration sections](http://msdn.microsoft.com/en-us/library/2tw134k3.aspx).
null
CC BY-SA 2.5
null
2008-08-19T04:35:14.750
2008-08-19T04:35:14.750
null
null
493
null
15,707
2
null
15,573
0
null
You didn't provide a budget or other considerations like sound footprint. You also didn't say if you actually can use more than a few cores at one time with the applications you are developing. So, everything below is a guess. If you have the budget, the Mac Pro with Bootcamp(or a vm if you are so inclinded) might be ...
null
CC BY-SA 2.5
null
2008-08-19T04:36:32.563
2008-08-19T04:36:32.563
null
null
1,046
null
15,709
1
null
null
4
3,971
So for my text parsing in C# [question](https://stackoverflow.com/questions/13963/best-method-of-textfile-parsing-in-c), I got directed at YAML. I'm hitting a wall with this library I was recommended, so this is a quickie. ``` heading: name: A name taco: Yes age: 32 heading: name: Another name taco: No age: 27 ...
Is this valid YAML?
CC BY-SA 2.5
null
2008-08-19T04:38:51.420
2019-04-11T19:23:50.820
2019-04-11T19:23:50.820
42,223
61
[ "validation", "yaml", "well-formed" ]
15,684
2
null
15,674
6
null
I think it is highly recommended that you create separate repositories for each project. If for nothing else than to avoid the scenario you are talking about. With version control, especially Subversion, you can easily check out pieces of a repository into another working copy and then commit them back to their res...
null
CC BY-SA 2.5
null
2008-08-19T04:18:47.623
2008-08-19T04:18:47.623
null
null
1,227
null
15,710
2
null
15,690
1
null
I do it the other way around. I find that doing it database-schema-first gets the system stuck in a data-driven-design that is difficult to abstract from persistence. We try to do domain model designs first base the database schema on those. And then there's the infrastructure design: the team should settle on conven...
null
CC BY-SA 2.5
null
2008-08-19T04:39:11.963
2008-08-19T04:39:11.963
null
null
372
null
15,711
2
null
15,687
2
null
Add a [pre-commit hook](http://wordaligned.org/articles/a-subversion-pre-commit-hook) which parses the file content and performs the munging of CRLF/LF/CR/etc for you before it's written to SVN.
null
CC BY-SA 2.5
null
2008-08-19T04:39:21.107
2008-08-19T04:39:21.107
null
null
611
null
15,714
2
null
15,700
0
null
If you don't want it saved, you do not need to execute the cfg.Save command. The Configuration object will store your changes until it isn't needed anymore.
null
CC BY-SA 2.5
null
2008-08-19T04:41:27.997
2008-08-19T04:41:27.997
null
null
372
null
15,712
2
null
15,349
0
null
There were some excellent suggestions already, but I just wanted to mention that Perl can also be called / can call to C/C++.
null
CC BY-SA 2.5
null
2008-08-19T04:39:59.827
2008-08-19T04:39:59.827
null
null
1,265
null
15,715
2
null
9,033
28
null
@lomaxx I also learned the other day (the same time I learned your tip) is that you can now have disparate access levels on the same property: ``` public string Name { get; private set;} ``` That way only the class itself can set the Name property. ``` public MyClass(string name) { Name = name; } ```
null
CC BY-SA 2.5
null
2008-08-19T04:41:58.247
2010-06-30T02:44:42.763
2010-06-30T02:44:42.763
61,883
1,886
null
15,716
1
15,803
null
3
830
I have created a UserControl that has a `ListView` in it. The ListView is publicly accessible though a property. When I put the UserControl in a form and try to design the `ListView` though the property, the `ListView` stays that way until I compile again and it reverts back to the default state. How do I get my desi...
Design problems with .Net UserControl
CC BY-SA 3.0
null
2008-08-19T04:42:31.910
2012-08-11T15:55:28.710
2012-08-11T15:55:28.710
1,477,076
788
[ "c#", "user-controls", ".net-2.0" ]
15,717
2
null
15,716
0
null
Just so I'm clear, you've done something like this, right? ``` public ListView MyListView { get { return this.listView1; } } ``` So then you are accessing (at design time) the MyListView property on your UserControl? I think if you want proper design-time support you're better off changing the "Modifier" property o...
null
CC BY-SA 2.5
null
2008-08-19T04:44:46.087
2008-08-19T04:44:46.087
null
null
615
null
15,719
2
null
15,708
11
null
Try [Handle](http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx). [Filemon](http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx) & [Regmon](http://technet.microsoft.com/en-us/sysinternals/bb896652.aspx) are also great for trying to figure out what the duce program foo is doing to your system.
null
CC BY-SA 2.5
null
2008-08-19T04:46:41.997
2008-08-19T04:46:41.997
null
null
1,635
null
15,721
2
null
3,666
2
null
> If you can I'd be horrified. Why would you be horrified? Air is a desktop platform, and having access to the OS's APIs (such as registry access) makes plenty of sense. That being said, it isn't supported now (and as Adobe seem to be very Mac-centric, I doubt it will ever be added). > I have settled on grabbing th...
null
CC BY-SA 2.5
null
2008-08-19T04:47:45.317
2008-08-19T04:47:45.317
null
null
943
null
15,713
2
null
15,708
2
null
If you right-click on your "Computer" (or "My Computer") icon and select "Manage" from the pop-up menu, that'll take you to the Computer Management console. In there, under System Tools\Shared Folders, you'll find "Open Files". This is probably close to what you want, but if the file is on a network share then you'd n...
null
CC BY-SA 2.5
null
2008-08-19T04:40:13.680
2008-08-19T04:40:13.680
null
null
615
null
15,722
2
null
15,708
84
null
Use [Process Explorer](http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx) from the Sysinternals Suite, the Find Handle or DLL function will let you search for the process with that file open.
null
CC BY-SA 2.5
null
2008-08-19T04:48:32.587
2008-08-19T04:48:32.587
null
null
535
null
15,724
2
null
15,678
3
null
Why not just add a dependency to the "startup" project for each of the plugins? This will force the project to be rebuilt if any of the others change, and you won't have to mess with any other pre/post-build events.
null
CC BY-SA 2.5
null
2008-08-19T04:51:16.387
2008-08-19T04:51:16.387
null
null
611
null
15,723
2
null
15,709
3
null
There appears to be a YAML validator called [Kwalify](http://www.kuwata-lab.com/kwalify/) which should give you the answer. You shoulda just gone with the String tokenizing, man. Writing parsers is fun :)
null
CC BY-SA 2.5
null
2008-08-19T04:51:05.000
2008-08-19T04:51:05.000
null
null
1,370
null
15,694
1
15,746
null
8
869
I've recently been looking into targeting the .NET Client Profile for a WPF application I am building. However, I was frustrated to notice that the Client Profile is only valid for the following OS configurations: - - [Appears](http://blogs.windowsclient.net/trickster92/archive/2008/05/21/introducing-the-net-framewor...
Is the .NET Client Profile worth targeting?
CC BY-SA 3.0
null
2008-08-19T04:28:54.310
2017-08-06T07:00:56.823
2017-08-06T07:00:56.823
1,033,581
708
[ ".net", ".net-client-profile" ]
15,703
2
null
15,349
1
null
[AngelScript](http://www.angelcode.com/angelscript/) > lets you call standard C functions and C++ methods with no need for proxy functions. The application simply registers the functions, objects, and methods that the scripts should be able to work with and nothing more has to be done with your code. The same functions...
null
CC BY-SA 2.5
null
2008-08-19T04:34:48.277
2008-08-19T04:34:48.277
2020-06-20T09:12:55.060
-1
486
null
15,731
1
26,865
null
4
1,118
I am looking for either a FireFox extension, or a similar program, that allows you to craft GET and POST requests. The user would put in a form action, and as many form key/value pairs as desired. It would also send any cookie information (or send the current cookies from any domain the user chooses.) The Web Developer...
Looking for a specific FireFox extension / program for Form posting
CC BY-SA 2.5
0
2008-08-19T04:59:03.533
2014-08-30T21:08:48.793
2014-08-30T21:08:48.793
3,366,929
26
[ "javascript", "html" ]
15,708
1
15,722
null
98
151,540
One of my favourite tools for linux is [lsof](http://en.wikipedia.org/wiki/Lsof) - a real swiss army knife! Today I found myself wondering which programs on a WinXP system had a specific file open. Is there any equivalent utility to lsof? Additionally, the file in question was over a network share so I'm not sure if t...
How can I determine whether a specific file is open in Windows?
CC BY-SA 3.0
0
2008-08-19T04:37:35.243
2016-02-17T09:14:05.047
2013-04-20T18:44:28.563
975,097
1,848
[ "windows", "linux", "command-line", "filesystems" ]
15,702
2
null
15,690
11
null
Do you know much about OOP? If so, look into Spring and Hibernate to keep your implementation clean and [orthogonal](http://codebetter.com/blogs/jeremy.miller/archive/2007/01/08/Orthogonal-Code.aspx). If you get that, you should find TDD a good way to keep your design compact and lean, especially since you have "auto...
null
CC BY-SA 3.0
null
2008-08-19T04:32:30.200
2011-06-23T19:31:17.630
2011-06-23T19:31:17.630
307
307
null
15,727
2
null
15,681
4
null
The first document to read and digest is [the Mem management guide](http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html), understand this before moving on. [This](http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Introduction/chapter_1_section_1.html) is a great guide...
null
CC BY-SA 2.5
null
2008-08-19T04:56:07.750
2008-08-19T04:56:07.750
null
null
1,075
null
15,729
1
null
null
2
821
As I browse through the site, I find a lot of terms that many developers just starting out (and even some advanced developers) may be unfamiliar with. It would be great if people could post here with a term and definition that might be unknown to beginners or those from different programming backgrounds. Some not-so...
Programming Glossary
CC BY-SA 2.5
null
2008-08-19T04:57:38.183
2013-04-14T23:37:46.770
2013-04-14T23:37:46.770
null
1,693
[ "language-agnostic", "glossary" ]
15,734
1
775,195
null
15
14,506
I know that there is no official API for Google Analytics but is there a way to access Google Analytics Reports with C#?
Google Analytics Access with C#
CC BY-SA 3.0
0
2008-08-19T05:01:52.183
2016-06-07T16:20:55.660
2016-06-07T16:20:55.660
6,083,675
1,890
[ "c#", "google-analytics", "google-analytics-api" ]
15,732
1
16,054
null
286
334,572
I'm generating some xml files that needs to conform to an xsd file that was given to me. How should I verify they conform?
How to validate an XML file against an XSD file?
CC BY-SA 4.0
0
2008-08-19T04:59:04.750
2022-02-09T14:04:25.990
2022-02-09T14:04:25.990
2,227,743
1,650
[ "java", "xml", "validation", "xsd" ]
15,742
2
null
15,709
4
null
Well, it appears YAML is gone out the window then. I want something both human writable readable. Plus, this C# implementation...I have no idea it's working or not, the documentation consists of a few one line code examples. It barfs on their own YAML files, and is an old student project. The only other C# YAML parse...
null
CC BY-SA 2.5
null
2008-08-19T05:11:34.067
2008-08-19T05:17:14.883
2008-08-19T05:17:14.883
61
61
null
15,739
2
null
15,732
25
null
Here's how to do it using [Xerces2](http://xerces.apache.org/xerces2-j/). A tutorial for this, [here](http://www.ibm.com/developerworks/edu/x-dw-xvalid-i.html) (req. signup). Original attribution: blatantly copied from [here](http://forums.sun.com/thread.jspa?messageID=3411478): ``` import org.apache.xerces.parsers.D...
null
CC BY-SA 3.0
null
2008-08-19T05:10:16.537
2017-04-13T18:16:51.097
2017-04-13T18:16:51.097
146,197
1,666
null
15,737
2
null
15,681
0
null
Cocoa is huge. The hardest part of learning how to write apps on Mac is learning Cocoa. By the way. You do not need to know ObjC (though it helps tons). You can write Cocoa apps with Python or Ruby (right in the IDE). I agree VS is a better IDE then Xcode. But if you throw in Interface Builder and all the other tools,...
null
CC BY-SA 2.5
null
2008-08-19T05:06:43.127
2008-08-19T05:06:43.127
null
null
534
null
15,749
2
null
15,744
1
null
Well, defines are used often for compile time constants and macros. This can make your code a bit faster as there are really no function calls, the output values of the macros are determined at compile time. The #if's are very useful. The most simple example that I can think of is checking for a debug build to add i...
null
CC BY-SA 2.5
null
2008-08-19T05:23:07.010
2008-08-19T05:23:07.010
null
null
1,053
null
15,746
2
null
15,694
5
null
Ultimately, it will not hurt any users if you target the Client Profile. This is because the client profile is a subset of the .net framework v3.5 sp1, and if v3.5 sp1 is already installed you don't need to install anything. The assemblies in the client profile are the same binaries as the full framework, so unless y...
null
CC BY-SA 2.5
null
2008-08-19T05:16:56.537
2008-08-19T05:16:56.537
null
null
100
null
15,741
2
null
15,732
0
null
Are you looking for a tool or a library? As far as libraries goes, pretty much the de-facto standard is [Xerces2](http://xerces.apache.org) which has both [C++](http://xerces.apache.org/xerces-c/) and [Java](http://xerces.apache.org/xerces2-j/) versions. Be fore warned though, it is a heavy weight solution. But then ...
null
CC BY-SA 2.5
null
2008-08-19T05:11:15.847
2008-08-19T05:11:15.847
null
null
1,366
null
15,751
2
null
15,731
2
null
You may want to check out the [Tamper Data](https://addons.mozilla.org/en-US/firefox/addon/966) extension which allows you to easily intercept and manipulate the request parameters among other features.
null
CC BY-SA 2.5
null
2008-08-19T05:24:24.930
2008-08-19T05:24:24.930
null
null
1,750
null
15,752
2
null
1,644
7
null
If you started out on an 8 bit machine, don't forget your roots: [The Retrobits Podcast](http://retrobits.libsyn.org/)
null
CC BY-SA 2.5
null
2008-08-19T05:25:52.057
2008-08-19T05:25:52.057
null
null
1,644
null
15,757
2
null
15,744
1
null
I often find myself defining some things that are done repetitively in certain functions. That makes the code much shorter and thus allows a better overview. But as always, try to find a good measure to not create a new language out of it. Might be a little hard to read for the occasional maintenance later on.
null
CC BY-SA 2.5
null
2008-08-19T05:30:12.283
2008-08-19T05:30:12.283
null
null
1,398
null
15,761
2
null
15,744
8
null
#define is used to define compile-time constants that you can use with #if to include or exclude bits of code. ``` #define USEFOREACH #if USEFOREACH foreach(var item in items) { #else for(int i=0; i < items.Length; ++i) { var item = items[i]; //take item #endif doSomethingWithItem(item);...
null
CC BY-SA 3.0
null
2008-08-19T05:38:29.210
2012-07-27T09:23:06.263
2012-07-27T09:23:06.263
543,591
1,659
null
15,758
2
null
15,744
14
null
In C# `#define` macros, like some of Bernard's examples, are not allowed. The only common use of `#define`/`#if`s in C# is for adding optional debug only code. For example: ``` static void Main(string[] args) { #if DEBUG //this only compiles if in DEBUG Console.WriteLine("DEBUG") #endif...
null
CC BY-SA 3.0
null
2008-08-19T05:33:49.390
2013-10-30T13:52:28.793
2013-10-30T13:52:28.793
null
100
null
15,763
2
null
15,681
2
null
One other suggestion: If you have feature or enhancement requests, or bugs that you've run into, be sure to file them at Apple's [Bug Reporter](http://bugreport.apple.com/). It's the best way for developers to communicate their needs to Apple, because every issue is tracked through the system.
null
CC BY-SA 2.5
null
2008-08-19T05:40:52.497
2008-08-19T05:40:52.497
null
null
714
null
15,762
2
null
15,681
0
null
I've heard the books currently out there are pretty out of date. The whole ecosystem seems to evolve very fast with dramatic changes made in every OS release. He wrote a [tutorial](http://andymatuschak.org/articles/2007/09/09/getting-started-with-cocoa-a-friendlier-approach) which pulls together some Apple documentati...
null
CC BY-SA 2.5
null
2008-08-19T05:38:36.900
2008-08-19T05:38:36.900
null
null
1,891
null
15,764
2
null
15,687
2
null
You may consider using a command like Linux's [dos2unix](http://www.linuxcommand.org/man_pages/dos2unix1.html) for the conversion. Being a Linux command, it is easy to use it in batch mode with scripts etc. I do not know whether there is an equivalent for other operating systems.
null
CC BY-SA 2.5
null
2008-08-19T05:43:20.307
2008-08-19T05:43:20.307
null
null
1,702
null