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
27,694
2
null
1,625
3
null
I highly recommend [Stylus Studio](http://www.stylusstudio.com) if you have any need for a long term broadly capable XML IDE. I've used it mostly for XSLT development but it supports development of almost everything XML related you would want to do. It's only (very annoying).
null
CC BY-SA 2.5
null
2008-08-26T10:18:16.700
2008-08-26T10:18:16.700
null
null
2,978
null
27,678
2
null
27,670
0
null
I also experienced it on my XP. I searched for it, and the result was that some kind of beta .NET remained on my PC. There is a [tool to remove all](http://blogs.msdn.com/astebner/archive/2005/04/08/406671.aspx) .NET framework from the system. I run it and after it I successfully installed 3.5 SP1.
null
CC BY-SA 2.5
null
2008-08-26T10:05:26.667
2008-08-26T10:05:26.667
null
null
968
null
27,696
2
null
27,695
9
null
If you accidentally 'add' a file in svn & you haven't committed it, you can revert that file & it will remove the add.
null
CC BY-SA 2.5
null
2008-08-26T10:21:58.297
2008-08-26T10:21:58.297
null
null
2,975
null
27,674
1
619,685
null
4
2,574
In our project, [SharpWired](http://sharpwired.sourceforge.net/), we're trying to create a download component similar to the download windows in Firefox or Safari. That is, one single top down list of downloads which are custom controls containing progress bars, buttons and what not. The requirements are that there sh...
Dynamic top down list of controls in WindowsForms and C#?
CC BY-SA 2.5
0
2008-08-26T10:03:24.787
2011-07-10T02:28:00.923
2009-08-30T20:53:30.023
34,397
2,457
[ "c#", ".net", "winforms", "user-interface", "user-controls" ]
27,683
2
null
27,663
1
null
Yep, Redgate is magic. And Not that expenssive for what it provides.
null
CC BY-SA 2.5
null
2008-08-26T10:07:07.630
2008-08-26T10:07:07.630
null
null
2,936
null
27,693
2
null
27,562
4
null
If you are using PL/SQL then you can use the UTL_FILE package, the difference from using sql+ spool is that the files are written to the server file system. UTL_FILE has a number of limitations so an alternative on the server side would be to use Java stored procedures.
null
CC BY-SA 2.5
null
2008-08-26T10:17:37.340
2008-08-26T10:17:37.340
null
null
2,985
null
27,661
2
null
27,655
2
null
First of all, try emailing your webhost either for SSH-access or to remove the symlink for you. If you get SSH-access, use: ``` unlink index.php ``` Or if neither works: Create a file there (for instance remove.php) that contains: ``` <?php unlink("./index.php") ?> ``` Then open that file in your browser, after...
null
CC BY-SA 3.0
null
2008-08-26T09:55:10.967
2015-04-17T18:20:38.570
2015-04-17T18:20:38.570
1,215,724
1,830
null
27,700
1
27,749
null
6
7,332
I have to develop an application which parses a log file and sends specific data to a server. It has to run on both Linux and Windows. The problem appears when I want to test the log rolling system (which appends .1 to the name of the creates a new one with the same name). On Windows (haven't tested yet on Linux) I c...
C++ : Opening a file in non exclusive mode
CC BY-SA 2.5
null
2008-08-26T10:24:10.680
2009-04-08T19:33:06.813
2009-04-08T19:33:06.813
49,018
1,578
[ "c++", "windows", "linux", "filesystems" ]
27,699
2
null
17,840
5
null
Here are some parser combinator libraries in more mainstream languages: - [Spirit](http://spirit.sourceforge.net/documentation.html)- [Jparsec](http://jparsec.codehaus.org/)
null
CC BY-SA 2.5
null
2008-08-26T10:23:39.277
2008-08-26T10:23:39.277
null
null
2,948
null
27,706
2
null
24,866
1
null
The only time I've done something like this in production code was when a collegue and I built a pre-processor so that we could embed XML fragments from other files into a larger XML. On load we would first parse these embed (file references in XML comment strings) and replace them with the actual fragment they referen...
null
CC BY-SA 2.5
null
2008-08-26T10:25:43.110
2008-08-26T10:25:43.110
null
null
2,978
null
27,599
1
68,096
null
18
21,961
() I'm not very experienced with internationalization using PHP, it must be said, and a deal of searching didn't really provide the answers I was looking for. I'm in need of working out a reliable way to convert only 'relevant' text to Unicode to send in an SMS message, using PHP (just temporarily, whilst service is ...
'Reliable' SMS Unicode & GSM Encoding in PHP
CC BY-SA 4.0
0
2008-08-26T09:04:19.357
2019-01-18T11:19:03.307
2019-01-18T11:19:03.307
567,854
2,951
[ "php", "unicode", "sms", "gsm" ]
27,704
2
null
27,695
0
null
As far as I know there is no easy way to remove an added file from versioning control in svn once it is committed. You will have to save the file somewhere else and delete it from version control. Than copy the backup back again. It's a version control system after all... ;)
null
CC BY-SA 2.5
null
2008-08-26T10:25:06.760
2008-08-26T10:25:06.760
null
null
2,374
null
27,708
2
null
4,138
4
null
I always add Thumbs.db in as well, because I hate having those files versioned. Probably more of an issue for web developers
null
CC BY-SA 2.5
null
2008-08-26T10:26:37.193
2008-08-26T10:26:37.193
null
null
2,975
null
27,705
2
null
24,723
0
null
The biggest problem by using jeffs code is the @ which currently isnt available. I would probably just take the "raw" regexp from jeffs code if i needed it and paste it into [http://www.cis.upenn.edu/~matuszek/General/RegexTester/regex-tester.html](http://www.cis.upenn.edu/~matuszek/General/RegexTester/regex-tester...
null
CC BY-SA 2.5
null
2008-08-26T10:25:15.560
2008-08-26T10:25:15.560
null
null
86
null
27,710
2
null
27,700
1
null
It's not the reading operation that's requiring the exclusive mode, it's the rename, because this is essentially the same as moving the file to a new location. I'm not sure but I don't think this can be done. Try copying the file instead, and later delete/replace the old file when it is no longer read.
null
CC BY-SA 2.5
null
2008-08-26T10:28:34.663
2008-08-26T10:28:34.663
null
null
1,968
null
27,701
2
null
27,695
2
null
To remove a file already in source control: ``` git rm <filename> ``` and then ``` git commit -m ... ``` You should add every file you want to ignore to the .gitignore file. I additionally always check the .gitignore file to my repository, so if someone checks out the code on his machine, and the file gets genera...
null
CC BY-SA 2.5
null
2008-08-26T10:24:29.650
2008-08-26T10:29:38.950
2008-08-26T10:29:38.950
2,954
2,954
null
27,709
2
null
27,695
0
null
You can exclude files from subversion with the global-ignore setting [http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.2](http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.2) check out the documentation for details
null
CC BY-SA 2.5
null
2008-08-26T10:27:37.333
2008-08-26T10:27:37.333
null
null
2,976
null
27,713
2
null
27,700
1
null
Win32 filesystem semantics require that a file you rename not be open (in any mode) at the time you do the rename. You will need to close the file, rename it, and then create the new log file. Unix filesystem semantics allow you to rename a file that's open because the filename is just a pointer to the inode.
null
CC BY-SA 2.5
null
2008-08-26T10:32:45.947
2008-08-26T10:32:45.947
null
null
893
null
27,707
2
null
27,695
3
null
Look up svn:ignore and .gitignore - these features allow you to have extra files in your checkout that are ignored by your RCS (when doing a "status" operation or whatever). For machine-specific config files, a good option is to check in a file named with an extra ".sample" extension, ie. `config.xml.sample`. Individu...
null
CC BY-SA 2.5
null
2008-08-26T10:26:19.643
2008-08-26T10:26:19.643
null
null
893
null
27,711
1
null
null
4
11,428
I'm having a problem obtaining the total row count for items displayed in a Gridview using Paging and with a LinqDataSource as the source of data. I've tried several approaches: ``` protected void GridDataSource_Selected(object sender, LinqDataSourceStatusEventArgs e) { totalLabel.Text = e.TotalRowCount.ToStr...
Total row count in GridView control using LinqDataSource and paging
CC BY-SA 3.0
null
2008-08-26T10:31:46.230
2013-01-21T16:26:48.607
2013-01-21T16:26:48.607
79,485
2,841
[ "c#", "asp.net", "linq", "gridview" ]
27,729
1
28,512
null
6
3,764
I'm starting developing with Flex on my Mac but i don't find good tools to ease the development (apart from Flex Builder). What is your favourite choice for Flex development on Mac?
Flex tools for Mac
CC BY-SA 2.5
0
2008-08-26T10:48:04.710
2009-07-03T17:55:56.507
2008-10-02T17:59:36.653
2,937
2,937
[ "apache-flex", "macos" ]
27,728
2
null
18,920
0
null
If you're interested in setting the document root, you might look at getting a web server installed on your machine, or, if you already have one (like Apache or IIS), storing your project-in-development in the web root of that server (htdocs in Apache, not entirely sure in IIS). If you'd rather leave your files where t...
null
CC BY-SA 3.0
null
2008-08-26T10:47:11.297
2017-08-04T17:23:36.943
2017-08-04T17:23:36.943
3,303,195
1,344
null
27,703
2
null
27,695
1
null
For SVN you can revert files you haven't committed yet. In TortoiseSVN you just right click the file in the commit window and choose Revert... On command line use svn revert [file] Don't know about GIT since I've never used it.
null
CC BY-SA 2.5
null
2008-08-26T10:24:40.477
2008-08-26T10:24:40.477
null
null
2,957
null
27,730
2
null
4,724
10
null
Lisp is very useful for creating little DSLs. I've got a copy of Lisp in a Box running at work and I've written little DSLs to interrogate SQL server databases and generate data layers etc in C#. All my boiler plate code is now written in lisp macros that output to C#. I generate HTML, XML, all sorts of things with ...
null
CC BY-SA 2.5
null
2008-08-26T10:48:14.380
2008-08-26T10:48:14.380
null
null
2,995
null
27,732
2
null
27,729
1
null
Unfortunately, you're pretty much limited to Flex Builder or some text editor combined with the Flex SDK. I've been hoping that someone would port FlashDevelop, my favorite AS/Flex IDE over to the Mac (at least via Mono), but no dice as of yet. If you can wait X number of years, perhaps my CocoAS IDE will be complete ...
null
CC BY-SA 2.5
null
2008-08-26T10:50:53.453
2008-08-26T10:50:53.453
null
null
1,344
null
27,727
2
null
27,695
6
null
Without having tried it... In git, if your changes haven't been propagated to another repository, you be able to `git rm` the affected file(s), `git rebase --interactive` to reorder the deletion commit to be just after the commit in which you accidentally added the offending files, and then squash those two commits t...
null
CC BY-SA 2.5
null
2008-08-26T10:47:05.117
2008-08-26T10:47:05.117
null
null
2,963
null
27,717
2
null
27,700
1
null
If you are only reading from the file I know it can be done with windows api CreateFile. Just specify FILE_SHARE_DELETE | FILE_SHARE_READ | FILE_SHARE_WRITE as the input to dwShareMode. Unfortunally this is not crossplatform. But there might be something similar for Linux. [See msdn for more info on CreateFile](http:...
null
CC BY-SA 2.5
null
2008-08-26T10:35:41.120
2008-08-26T10:50:22.893
2008-08-26T10:50:22.893
2,957
2,957
null
27,736
2
null
27,726
7
null
Some unit test mocking frameworks make use of expression trees in order to set up strongly typed expectations/verifications. Ie: ``` myMock.Verify(m => m.SomeMethod(someObject)); // tells moq to verify that the method // SomeMethod was called with ...
null
CC BY-SA 2.5
null
2008-08-26T10:53:10.423
2008-08-26T10:53:10.423
null
null
1,710
null
27,739
2
null
27,711
3
null
The LinqDataSourceEventArgs returned in those events return -1 on these occasions: > -1 if the LinqDataSourceStatusEventArgs object was created during a data modification operation; -1 if you enabled customized paging by setting AutoPage to true and by setting RetrieveTotalRowCount to false. [Check here for more inf...
null
CC BY-SA 2.5
null
2008-08-26T10:54:25.427
2008-08-26T10:54:25.427
null
null
1,075
null
27,695
1
1,066,304
null
77
55,320
It happens to me all the time. I accidentally version a file, I do not want to be versioned (i.e. developer/machine specific config-files). If I commit this file, I will mess up the paths on all the other developer machines - they will be unhappy. If I do delete the file from versioning, it will be deleted from the o...
How to "unversion" a file in either svn and/or git
CC BY-SA 3.0
0
2008-08-26T10:20:41.407
2016-12-06T17:31:51.380
2017-05-23T11:54:53.577
-1
1,870
[ "svn", "git", "version-control", "versioning" ]
27,725
2
null
18,920
0
null
As far as local, static html goes, unless you specify it, most browsers will take the location of the html file you are viewing as the root. So any css put in there can just be referenced by it's name only. The lazy way to get the correct reference for your css file is to open it in your browser. Then just grab the u...
null
CC BY-SA 2.5
null
2008-08-26T10:42:52.490
2008-09-17T10:43:15.693
2008-09-17T10:43:15.693
2,977
2,977
null
27,744
2
null
27,711
0
null
The TotalRowCount property is only valid for certain values of AutoPage and AllowPaging. They should both be true (in your case) or both be false. chech out the following page for an explanation of the TotalRowCount property. [http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.linqdatasourcestatusevent...
null
CC BY-SA 2.5
null
2008-08-26T11:00:06.320
2008-08-26T11:00:06.320
null
null
1,851
null
27,743
1
31,556
null
4
3,588
My RubyOnRails app is set up with the usual pack of mongrels behind Apache configuration. We've noticed that our Mongrel web server memory usage can grow quite large on certain operations and we'd really like to be able to dynamically do a graceful restart of selected Mongrel processes at any time. However, for reason...
How do I gracefully shut down a Mongrel web server
CC BY-SA 2.5
0
2008-08-26T10:59:50.517
2009-02-05T19:21:19.360
null
null
2,994
[ "ruby-on-rails", "ruby", "mongrel" ]
27,742
1
27,750
null
12
8,365
An app I'm writing always crashes on a clients computer, but I don't get an exception description, or a stack trace. The only thing I get is a crash report that windows wants to send to Microsoft. I would like to get that dump file and investigate it myself, but I cannot find it. When I "View the contents of the error...
Finding the crash dump files for a C# app
CC BY-SA 3.0
0
2008-08-26T10:56:37.717
2014-05-04T21:54:11.893
2014-05-04T21:54:11.893
1,537,726
2,973
[ "c#", "crash", "memory-dump" ]
27,747
2
null
27,621
14
null
The only problem with Magnus' solution is that it forks off a new "cp" process for every file, which is not terribly efficient especially if there is a large number of files. On Linux (or other systems with GNU coreutils) you can do: ``` find . -name "*.xml" -print0 | xargs -0 echo cp -t a ``` (The -0 allows it to ...
null
CC BY-SA 2.5
null
2008-08-26T11:02:36.717
2008-08-26T11:02:36.717
null
null
2,998
null
27,752
2
null
27,643
1
null
This kind of flowchart can be accomplished using CSS, resorting to JavaScript graphing libraries (canvas) might be overkill. You may wish to checkout how some Genealogy sites do this to get a family tree.
null
CC BY-SA 2.5
null
2008-08-26T11:03:59.867
2008-08-26T11:03:59.867
null
null
370,899
null
27,726
1
27,751
null
11
1,491
I completely understand the concept of expression trees, but I am having a hard time trying to find situations in which they are useful. Is there a specific instance in which expression trees can be applied? Or is it only useful as a transport mechanism for code? I feel like I am missing something here. Thanks!
What are some instances in which expression trees are useful?
CC BY-SA 3.0
0
2008-08-26T10:45:59.927
2012-12-04T08:41:08.557
2012-12-04T08:41:08.557
1,136,709
2,993
[ "c#", "expression" ]
27,750
2
null
27,742
8
null
You can use the [Windows debugging tools](http://www.microsoft.com/whdc/DevTools/Debugging/default.mspx) to view the crash dump. To get the most use out of it, you'll need an exact copy of the symbols for that application (i.e. same version). Have a look at [Tess's blog](http://blogs.msdn.com/tess/) for tutorials on h...
null
CC BY-SA 2.5
null
2008-08-26T11:03:32.957
2008-08-26T11:03:32.957
null
null
2,822
null
27,745
1
27,755
null
154
315,179
Given the URL (single line): [http://test.example.com/dir/subdir/file.html](http://test.example.com/dir/subdir/file.html) How can I extract the following parts using regular expressions: 1. The Subdomain (test) 2. The Domain (example.com) 3. The path without the file (/dir/subdir/) 4. The file (file.html) 5. The pat...
Getting parts of a URL (Regex)
CC BY-SA 4.0
0
2008-08-26T11:01:37.267
2022-10-20T10:10:19.867
2019-01-13T11:34:20.863
1,788,806
2,644
[ "regex", "language-agnostic", "url" ]
27,751
2
null
27,726
6
null
> Or is it only useful as a transport mechanism for code? It's useful as an for code. Using the [interpreter pattern](http://en.wikipedia.org/wiki/Interpreter_pattern), expression trees can directly be interpreted. This is useful because it's very easy and fast to implement. Such interpreters are ubiquitous and used ...
null
CC BY-SA 2.5
null
2008-08-26T11:03:34.687
2008-08-26T11:03:34.687
null
null
1,968
null
27,735
2
null
27,695
4
null
It sounds like you have already added and committed the file to subversion (I assume that you are using Subversion). If that is the case, then there are only two ways to remove that file: 1. Mark the file as deleted and commit. 2. Perform an svnadmin dump, filter out the revision where you accidentally committed the ...
null
CC BY-SA 2.5
null
2008-08-26T10:52:31.203
2008-08-26T10:52:31.203
null
null
2,822
null
27,749
2
null
27,700
3
null
> Is there a way to open file in a non-exclusive way, Yes, using Win32, passing the various FILE_SHARE_Xxxx flags to CreateFile. > is it cross platform? No, it requires platform-specific code. Due to annoying backwards compatibility concerns (DOS applications, being single-tasking, assume that nothing can delete a ...
null
CC BY-SA 2.5
null
2008-08-26T11:02:41.227
2008-08-26T11:02:41.227
null
null
2,131
null
27,755
2
null
27,745
166
null
> A single regex to parse and breakup a full URL including query parameters and anchors e.g.[https://www.google.com/dir/1/2/search.html?arg=0-a&arg1=1-b&arg3-c#hash](https://www.google.com/dir/1/2/search.html?arg=0-a&arg1=1-b&arg3-c#hash) `^((http[s]?|ftp):\/)?\/?([^:\/\s]+)((\/\w+)*\/)([\w\-\.]+[^#?\s]+)(.*)?(#[\w...
null
CC BY-SA 3.0
null
2008-08-26T11:06:09.173
2015-04-25T19:17:33.580
2015-04-25T19:17:33.580
1,084,554
2,009
null
27,763
2
null
27,758
2
null
I read the heading and immediately thought "obsolete atribute". How about ``` /// <summary> /// do not use /// </summary> /// <param name="item">don't pass it anything -- you shouldn't use it.</param> /// <returns>nothing - you shouldn't use it</returns> public bool Include(T item) { .... ```...
null
CC BY-SA 2.5
null
2008-08-26T11:12:47.317
2008-08-26T11:12:47.317
null
null
2,009
null
27,733
1
27,854
null
1
1,927
Background: I have a little video playing app with a UI inspired by the venerable Sasami2k, just updated to use VMR9 (i.e. Direct3D9 with DirectShow) and be less unstable. Currently, it's a C++ app using raw Win32, through necessity: none of the various toolkits are worth a damn. WPF, in particular, was not possible,...
So what am I missing with this here WPF?
CC BY-SA 2.5
null
2008-08-26T10:51:34.390
2008-12-10T19:31:41.430
null
null
2,131
[ "wpf", "winapi" ]
27,759
2
null
27,745
5
null
Try the following: ``` ^((ht|f)tp(s?)\:\/\/|~/|/)?([\w]+:\w+@)?([a-zA-Z]{1}([\w\-]+\.)+([\w]{2,5}))(:[\d]{1,5})?((/?\w+/)+|/?)(\w+\.[\w]{3,4})?((\?\w+=\w+)?(&\w+=\w+)*)? ``` It supports HTTP / FTP, subdomains, folders, files etc. I found it from a quick google search: [Link](https://web.archive.org/web/20210126191109/...
null
CC BY-SA 4.0
null
2008-08-26T11:10:16.497
2022-07-21T14:05:45.313
2022-07-21T14:05:45.313
4,751,173
986
null
27,766
2
null
27,758
0
null
Yep there is. I wrote this blogpost about it [Working with the designer](http://blogs.lessthandot.com/admin.php?ctrl=items&blog=4&p=104). And here is the code: ``` public class MyClass { [Obsolete("reason", true)] public MyClass() { // required for xml serialization } } ```
null
CC BY-SA 3.0
null
2008-08-26T11:13:53.773
2015-10-08T08:11:49.500
2015-10-08T08:11:49.500
67,579
2,936
null
27,764
2
null
27,758
0
null
[ObsoleteAttribute](http://msdn.microsoft.com/en-us/library/system.obsoleteattribute.aspx) will probably work in your situation - you can even cause the build to break if that method is used. Since obsolete warnings occur at compile time, and since the reflection needed for serialization occurs at runtime, marking th...
null
CC BY-SA 3.0
null
2008-08-26T11:13:06.240
2015-10-08T08:08:18.360
2015-10-08T08:08:18.360
67,579
2,822
null
27,767
2
null
27,758
0
null
I'm using the [ObsoleteAttribute](http://msdn.microsoft.com/en-us/library/system.obsoleteattribute.aspx). But also you can have some comments of course. And finally remove it completely if you can (don't have to maintain the compatibility with something old). That's the best way.
null
CC BY-SA 3.0
null
2008-08-26T11:13:56.630
2015-10-08T08:11:25.137
2015-10-08T08:11:25.137
67,579
968
null
27,771
2
null
22,469
28
null
Any modern Mac will be fine. I work on a two year old MacBook (2GHz) with 2Gb of memory and its perfectly usable. The biggest constraint I find it screen real-estate. I am more productive on my 22" external screen. Go big if you get an iMac or consider adding an external monitor to the base model.
null
CC BY-SA 2.5
null
2008-08-26T11:19:43.853
2008-08-26T11:19:43.853
null
null
2,998
null
27,769
2
null
27,757
19
null
I'm guessing that your class is in a different namespace. The canonical way to solve this would be to use the resources class and a strongly typed resource: ``` ProjectNamespace.Properties.Resources.file ``` Use the IDE's resource manager to add resources.
null
CC BY-SA 3.0
null
2008-08-26T11:17:38.617
2016-12-17T22:05:49.663
2016-12-17T22:05:49.663
63,550
1,968
null
27,768
2
null
27,745
6
null
subdomain and domain are difficult because the subdomain can have several parts, as can the top level domain, [http://sub1.sub2.domain.co.uk/](http://sub1.sub2.domain.co.uk/) ``` the path without the file : http://[^/]+/((?:[^/]+/)*(?:[^/]+$)?) the file : http://[^/]+/(?:[^/]+/)*((?:[^/.]+\.)+[^/.]+)$ the path w...
null
CC BY-SA 2.5
null
2008-08-26T11:17:28.727
2008-08-26T11:29:28.620
2008-08-26T11:29:28.620
1,851
1,851
null
27,757
1
27,773
null
118
153,517
I am storing a PNG as an embedded resource in an assembly. From within the same assembly I have some code like this: ``` Bitmap image = new Bitmap(typeof(MyClass), "Resources.file.png"); ``` The file, named "file.png" is stored in the "Resources" folder (within Visual Studio), and is marked as an embedded resource....
How can I discover the "path" of an embedded resource?
CC BY-SA 3.0
0
2008-08-26T11:08:48.933
2021-09-20T14:08:07.197
2014-09-05T07:07:31.093
419,956
1,006
[ "c#", ".net", "resources" ]
27,780
2
null
742
1
null
If you want to share common functionality between pages I suggest you look at custom tags. They're quite [easy to create](https://docs.djangoproject.com/en/1.1/howto/custom-template-tags/), and are very powerful. Also, [templates can extend from other templates](https://code.djangoproject.com/wiki/ExtendingTemplates)....
null
CC BY-SA 3.0
null
2008-08-26T11:30:50.050
2013-07-12T19:05:51.097
2013-07-12T19:05:51.097
1,011,749
2,990
null
27,775
2
null
27,745
0
null
Using [http://www.fileformat.info/tool/regex.htm](http://www.fileformat.info/tool/regex.htm) hometoast's regex works great. But here is the deal, I want to use different regex patterns in different situations in my program. For example, I have this URL, and I have an enumeration that lists all supported URLs in my pr...
null
CC BY-SA 2.5
null
2008-08-26T11:23:45.403
2008-08-26T11:23:45.403
null
null
2,644
null
27,781
2
null
27,779
7
null
The best: [The Code Project](http://www.codeproject.com/)
null
CC BY-SA 2.5
null
2008-08-26T11:30:50.067
2008-08-26T11:30:50.067
null
null
2,957
null
27,773
2
null
27,757
214
null
This will get you a string array of all the resources: ``` System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames(); ```
null
CC BY-SA 2.5
null
2008-08-26T11:21:34.333
2010-09-15T07:16:41.457
2010-09-15T07:16:41.457
33
33
null
27,782
2
null
15,007
2
null
There's John Resig's project [Bringing the Browser to the Server](http://ejohn.org/blog/bringing-the-browser-to-the-server/): "browser/DOM environment, written in JavaScript, that runs on top of [Rhino](http://www.mozilla.org/rhino/); capable of running jQuery, Prototype, and MochiKit (at the very least)."
null
CC BY-SA 3.0
null
2008-08-26T11:31:28.193
2016-01-22T08:55:44.200
2016-01-22T08:55:44.200
2,541
2,541
null
27,765
2
null
27,758
0
null
What you're looking for is the [ObsoleteAttribute](http://msdn.microsoft.com/en-us/library/system.obsoleteattribute.aspx) class: ``` using System; public sealed class App { static void Main() { // The line below causes the compiler to issue a warning: // 'App.SomeDeprecatedMethod()' is obsolete: ...
null
CC BY-SA 3.0
null
2008-08-26T11:13:41.793
2015-10-08T08:07:30.937
2015-10-08T08:07:30.937
67,579
986
null
27,783
2
null
27,499
1
null
Here is a [link to the PostgreSQL doc page on MVCC](http://www.postgresql.org/docs/8.3/static/mvcc-intro.html). The choice quote (emphasis mine): > The main advantage to using the MVCC model of concurrency control rather than locking is that in MVCC locks acquired for querying (reading) data do not conflict with locks...
null
CC BY-SA 2.5
null
2008-08-26T11:31:37.257
2008-08-26T11:31:37.257
null
null
619
null
27,786
2
null
22,697
1
null
I started using mocks through JMock, but eventually transitioned to use EasyMock. EasyMock was just that, --easier-- and provided a syntax that felt more natural. I haven't switched since.
null
CC BY-SA 2.5
null
2008-08-26T11:35:39.150
2008-08-26T11:35:39.150
null
null
3,005
null
27,758
1
27,825
null
33
10,117
OK, I know what you're thinking, "why write a method you do not want people to use?" Right? Well, in short, I have a class that needs to be serialized to XML. In order for the [XmlSerializer](https://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer%28v=vs.110%29.aspx) to do its magic, the class m...
Notify Developer of a "DO NOT USE" Method
CC BY-SA 3.0
0
2008-08-26T11:09:30.820
2022-05-31T08:00:23.543
2020-06-20T09:12:55.060
-1
832
[ ".net", "attributes" ]
27,784
1
35,967
null
0
574
My goal is to maintain a web file server separately from my main ASP.NET application server for better scalability. The web file server will store a lot of files downloaded by users. So the question is: Is it worth to adopt FreeBSD + Apache + ZFS, or will good old IIS be сonvenient enough?
Web server statics repository -or- ZFS vs. NTFS
CC BY-SA 3.0
null
2008-08-26T11:32:57.613
2015-05-07T15:45:15.403
2015-05-07T15:45:15.403
812,149
2,313
[ "windows", "bsd" ]
27,779
1
29,443
null
13
2,799
I am about to reenter the MFC world after years away for a new job. What resources to people recommend for refreshing the memory? I have been doing mainly C# recently. Also any MFC centric websites or blogs that people recommend?
MFC resources / links
CC BY-SA 2.5
0
2008-08-26T11:28:43.113
2012-07-18T07:03:26.863
null
null
1,075
[ "c++", "c", "mfc" ]
27,791
2
null
17,373
10
null
In Java 1.6 you have a stardard way to open the default mailer of the platform: [the Desktop.mail(URI) method](http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html).The URI can be used to set all the fields of the mail (sender, recipients, body, subject). You can check a full example of desktop integration in Ja...
null
CC BY-SA 2.5
null
2008-08-26T11:38:21.250
2008-08-26T11:38:21.250
null
null
901
null
27,785
2
null
27,745
0
null
I know you're claiming language-agnostic on this, but can you tell us what you're using just so we know what regex capabilities you have? If you have the capabilities for non-capturing matches, you can modify hometoast's expression so that subexpressions that you aren't interested in capturing are set up like this: `...
null
CC BY-SA 2.5
null
2008-08-26T11:34:49.463
2008-08-26T11:34:49.463
null
null
1,344
null
27,774
1
29,690
null
2
17,837
Effectively I want to give numeric scores to alphabetic grades and sum them. In Excel, putting the `LOOKUP` function into an array formula works: ``` {=SUM(LOOKUP(grades, scoringarray))} ``` With the `VLOOKUP` function this does not work (only gets the score for the first grade). Google Spreadsheets does not appear ...
Using VLOOKUP in an array formula on Google Spreadsheets
CC BY-SA 2.5
0
2008-08-26T11:21:52.553
2019-03-16T12:50:36.393
2015-09-04T05:46:08.903
1,505,120
2,492
[ "google-sheets", "gs-vlookup" ]
27,811
2
null
27,640
8
null
In my company, we are currently using Qt and are very happy with it. I personnally never had to move a MFC-app into using the Qt framework, but here is something which might be of some interest for you : [Qt/MFC Migration Framework](http://www.qtsoftware.com/products/appdev/add-on-products/catalog/3/Windows/qtwinmigr...
null
CC BY-SA 3.0
null
2008-08-26T11:50:35.247
2011-10-20T06:21:32.473
2011-10-20T06:21:32.473
321,013
2,796
null
27,813
2
null
11,635
32
null
My first thought for a non-unicode version was to do something like this: ``` bool caseInsensitiveStringCompare(const string& str1, const string& str2) { if (str1.size() != str2.size()) { return false; } for (string::const_iterator c1 = str1.begin(), c2 = str2.begin(); c1 != str1.end(); ++c1, ++c2) ...
null
CC BY-SA 4.0
null
2008-08-26T11:51:28.737
2020-09-27T13:27:02.047
2020-09-27T13:27:02.047
1,697
1,697
null
27,815
2
null
22,212
4
null
I think you may be getting confused between TAggregate and TAggregateField objects, and the Delphi documentation probably isn't helping. AFAICT, TAggregateField objects are automatically 'recalculated' and can be bound to data-aware controls like TDBText, but don't have any OnUpdate event. "TAggregate" objects, on t...
null
CC BY-SA 2.5
null
2008-08-26T11:52:35.960
2008-08-26T12:46:11.977
2008-08-26T12:46:11.993
1,737
1,737
null
27,821
2
null
27,745
1
null
Java offers a URL class that will do this. [Query URL Objects.](http://java.sun.com/docs/books/tutorial/networking/urls/urlInfo.html) On a side note, PHP offers [parse_url()](http://www.php.net/parse_url).
null
CC BY-SA 2.5
null
2008-08-26T11:55:04.503
2008-08-26T11:55:04.503
null
null
497
null
27,792
2
null
742
3
null
You can always create a class, override the `__call__` function and then point the URL file to an instance of the class. You can take a look at the [FormWizard](http://code.djangoproject.com/browser/django/trunk/django/contrib/formtools/wizard.py) class to see how this is done.
null
CC BY-SA 3.0
null
2008-08-26T11:38:36.913
2011-11-15T20:41:16.320
2011-11-15T20:41:16.320
444,705
2,384
null
27,828
2
null
26,904
3
null
I'm sure this could be of some great help for you : [deployqt](https://blog.qt.io/blog/2007/08/23/deploying-mac-applications-without-the-hassle/) Hope this helps !
null
CC BY-SA 3.0
null
2008-08-26T12:00:19.607
2015-04-18T17:59:54.230
2015-04-18T17:59:54.230
1,536,843
2,796
null
27,825
2
null
27,758
17
null
If a class is [[Serialisable]](https://msdn.microsoft.com/en-us/library/system.serializableattribute%28v=vs.110%29.aspx) (i.e. it can be copied around the place as needed) the param-less constructor is needed to deserialise. I'm guessing that you want to force your code's access to pass defaults for your properties to...
null
CC BY-SA 3.0
null
2008-08-26T11:58:55.040
2015-10-08T07:51:52.820
2015-10-08T07:51:52.820
67,579
905
null
27,789
2
null
27,779
3
null
I would highly recommend my all-time favorite book: [MFC Internals: Inside the Microsoft© Foundation Class Architecture](https://rads.stackoverflow.com/amzn/click/com/0201407213) [](https://rads.stackoverflow.com/amzn/click/com/0201407213)
null
CC BY-SA 3.0
null
2008-08-26T11:36:50.083
2012-03-29T18:55:27.837
2012-03-29T18:55:27.837
122,607
123
null
27,787
2
null
27,743
0
null
Try using: ``` mongrel_cluster_ctl stop ``` You can also use: ``` mongrel_cluster_ctl restart ```
null
CC BY-SA 2.5
null
2008-08-26T11:35:41.070
2008-08-26T11:35:41.070
null
null
1,450
null
27,796
2
null
27,758
0
null
Wow, that problem is bugging me too. You also need default constructors for NHibernate, but I want to force people to NOT use C# 3.0 object initializers so that classes go through constructor code.
null
CC BY-SA 2.5
null
2008-08-26T11:41:54.253
2008-08-26T11:41:54.253
null
null
372
null
27,832
1
27,858
null
15
6,121
I have a DirectShow graph to render MPEG2/4 movies from a network stream. When I assemble the graph by connecting the pins manually it doesn't render. But when I call Render on the GraphBuilder it renders fine. Obviously there is some setup step that I'm not performing on some filter in the graph that GraphBuilder is...
How can I reverse engineer a DirectShow graph?
CC BY-SA 2.5
0
2008-08-26T12:02:08.400
2015-04-04T13:56:05.347
null
null
2,587,612
[ "video", "directx", "directshow", "mpeg" ]
27,836
1
29,585
null
1
1,686
Is there a [Box Plot](http://en.wikipedia.org/wiki/Box_plot) graph, or box and whisker graph available for Reporting Services 2005? From the looks of the documentation there doesn't seem to be one out of the box; so I am wondering if there is a third party that has the graph, or a way to build my own?
Is there a Box Plot graph available for Reporting Services 2005?
CC BY-SA 3.0
null
2008-08-26T12:04:15.633
2014-01-07T12:11:35.017
2014-01-07T12:11:35.017
759,866
1,185
[ "sql", "reporting-services", "graph" ]
27,841
2
null
26,148
3
null
You mentioned that you're using NHibernate - are you closing your NHibernate sessions at appropriate points (such as the end of each iteration?) If not, then the size of the object map loaded into memory will be gradually increasing over time, and each session flush will take increasingly more CPU time.
null
CC BY-SA 2.5
null
2008-08-26T12:06:59.793
2008-08-26T12:06:59.793
null
null
2,084
null
27,844
2
null
27,835
0
null
The syntax you want is: create table #tablename The # prefix identifies the table as a temporary table.
null
CC BY-SA 2.5
null
2008-08-26T12:08:14.970
2008-08-26T12:08:14.970
null
null
1,453
null
27,818
1
478,654
null
11
8,857
We've embedded an OSGi runtime (Equinox) into out custom client-server application to facilitate plugin development and so far things are going great. We've been using Eclipse to build plugins due to the built-in manifest editor, dependency management, and export wizard. Using Eclipse to manager builds isn't very condu...
How can I manage OSGi build dependencies?
CC BY-SA 2.5
0
2008-08-26T11:54:35.283
2012-11-28T10:57:04.947
2008-09-03T16:12:50.123
-1
287
[ "dependencies", "osgi", "build" ]
27,842
2
null
27,835
3
null
You can declare a "table variable" in SQL Server 2005, like this: ``` declare @foo table ( Id int, Name varchar(100) ); ``` You then refer to it just like a variable: ``` select * from @foo f join bar b on b.Id = f.Id ``` No need to drop it - it goes away when the variable goes out of scope.
null
CC BY-SA 2.5
null
2008-08-26T12:07:21.523
2008-08-26T12:07:21.523
null
null
615
null
27,846
1
null
null
36
30,010
What is the configuration setting for modifying the default homepage in a Grails application to no longer be appName/index.gsp? Of course you can set that page to be a redirect but there must be a better way.
How do you change the default homepage in a Grails application?
CC BY-SA 2.5
0
2008-08-26T12:10:00.830
2019-05-03T13:38:19.713
null
null
3,014
[ "grails" ]
27,850
1
28,217
null
5
262
So far I have encountered adjacency list, nested sets and nested intervals as models for storing tree structures in a database. I know these well enough and have migrated trees from one to another. What are other popular models? What are their characteristics? What are good resources (books, web, etc) on this topic? ...
What are models for storing tree structures and what are their characteristics?
CC BY-SA 2.5
null
2008-08-26T12:11:05.010
2008-09-27T19:54:54.780
2008-09-12T12:39:11.227
2,077
2,077
[ "data-structures", "modeling" ]
27,840
2
null
27,835
0
null
CREATE TABLE #tmptablename Use the hash/pound sign prefix
null
CC BY-SA 2.5
null
2008-08-26T12:06:59.030
2008-08-26T12:21:25.703
2008-08-26T12:21:25.703
1,122
1,122
null
27,835
1
27,895
null
17
30,477
Recently, I started changing some of our applications to support `MS SQL Server` as an alternative back end. One of the compatibility issues I ran into is the use of MySQL's CREATE TEMPORARY TABLE to create in-memory tables that hold data for very fast access during a session with no need for permanent storage. What...
Does MS-SQL support in-memory tables?
CC BY-SA 3.0
0
2008-08-26T12:03:44.013
2016-06-21T04:37:46.653
2016-06-21T04:37:46.653
2,912,665
2,077
[ "mysql", "sql-server", "rdbms", "portability" ]
27,853
1
245,175
null
0
2,068
Whenever I show a ModalPopupExtender on my Sharepoint site, the popup shown creates both horizontal and vertical scrollbars. If you scroll all the way to the end of the page, the scrollbar refreshes, and there is more page to scroll through. Basically, I think the popup is setting its bounds beyond the end of the pag...
ModalPopupExtender adding scrollbars in SharePoint
CC BY-SA 2.5
null
2008-08-26T12:12:23.603
2008-10-28T22:54:00.910
2008-08-26T13:09:27.443
3,018
3,018
[ "sharepoint", "modalpopupextender" ]
27,848
2
null
27,835
1
null
A good [blog post here](http://arplis.com/temporary-tables-in-microsoft-sql-server/) but basically prefix local temp tables with # and global temp with ## - eg ``` CREATE TABLE #localtemp ```
null
CC BY-SA 3.0
null
2008-08-26T12:10:33.310
2012-02-10T21:08:25.003
2012-02-10T21:08:25.003
45,261
1,075
null
27,849
2
null
27,835
19
null
You can create table variables (in memory), and two different types of temp table: ``` --visible only to me, in memory (SQL 2000 and above only) declare @test table ( Field1 int, Field2 nvarchar(50) ); --visible only to me, stored in tempDB create table #test ( Field1 int, Field2 nvarchar(50) ) --vis...
null
CC BY-SA 2.5
null
2008-08-26T12:10:52.343
2008-09-02T13:47:53.317
2008-09-02T13:47:53.317
905
905
null
27,831
2
null
27,784
2
null
I understand you will serve only static files. In this case, lightweight HTTP servers will give you a higher performance for a given machine. The following are well known: - [Lighttpd](http://en.wikipedia.org/wiki/Lighttpd)- [Thttpd](http://en.wikipedia.org/wiki/Thttpd)- [Nginx](http://www.nginx.net/) Many more are l...
null
CC BY-SA 2.5
null
2008-08-26T12:02:07.480
2008-08-26T12:02:07.480
null
null
341
null
27,819
2
null
27,733
1
null
In code you can set the WindowStyle property to "None" and WindowsState to "Maximized" Im not sure what the Xaml would look like.
null
CC BY-SA 2.5
null
2008-08-26T11:54:35.330
2008-08-26T11:54:35.330
null
null
403
null
27,854
2
null
27,733
1
null
> And I seem to be completely overlooking where the system tells me about resizes. Likewise the hit testing. For the resizing you're indeed missing the [SizeChanged](http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.sizechanged.aspx) event. AFAIK there is sadly no OnSizeChanging, OnLocationChangin...
null
CC BY-SA 2.5
null
2008-08-26T12:12:58.407
2008-08-26T13:33:21.537
2020-06-20T09:12:55.060
-1
1,830
null
27,857
1
null
null
67
61,885
Basically I want tools which generate source code visualization like: - - -
C/C++ source code visualization?
CC BY-SA 3.0
0
2008-08-26T12:15:02.630
2018-12-12T12:19:45.770
2016-12-21T03:26:21.047
1,459,996
3,006
[ "c++", "c", "visualization" ]
27,858
2
null
27,832
14
null
You can watch the graph you created using GraphEdit, a tool from the DirectShow SDK. In GraphEdit, select File->Connect to remote Graph... In order to find your graph in the list, you have to register it in the running object table: ``` void AddToRot( IUnknown *pUnkGraph, DWORD *pdwRegister ) { IMoniker* pMonike...
null
CC BY-SA 2.5
null
2008-08-26T12:15:13.160
2008-08-26T12:15:13.160
null
null
1,810
null
27,856
2
null
27,535
3
null
Many issues can cause that error. It's usually a Response.Write call, but anything that modifies the response can cause it. We probably won't be able to help you unless you post some pertinent code-behind.
null
CC BY-SA 2.5
null
2008-08-26T12:14:39.883
2008-08-26T12:14:39.883
null
null
60
null
27,859
2
null
15,376
1
null
Try [alt text http://www.sparxsystems.com.au/images/products/logos/EA.png](http://www.sparxsystems.com.au/products/ea/index.html) But, It is NOT free It has amazing features.. Check the [screenshots](http://www.sparxsystems.com.au/products/ea/screenshots.html) here. And they have [alt text http://www.sparxsystems.c...
null
CC BY-SA 2.5
null
2008-08-26T12:15:16.980
2008-08-26T12:15:16.980
null
null
123
null
27,878
2
null
27,857
4
null
Try [doxygen](http://www.doxygen.nl/) Example output from [Xerces](http://xerces.apache.org/xerces-c/apiDocs-3/classXercesDOMParser.html)
null
CC BY-SA 4.0
null
2008-08-26T12:23:00.830
2018-12-12T12:19:45.770
2018-12-12T12:19:45.770
1,657,886
842
null
27,886
2
null
27,857
1
null
Might be a duplication, but check out ollydbg, IDA Pro and [this website](http://www.openrce.org/) has a whole bunch of resources with some very sexy images.
null
CC BY-SA 2.5
null
2008-08-26T12:24:51.747
2008-08-26T12:24:51.747
null
null
1,693
null
27,895
2
null
27,835
13
null
@Keith This is a common misconception: Table variables are NOT necessarily stored in memory. In fact SQL Server decides whether to keep the variable in memory or to spill it to TempDB. There is no reliable way (at least in SQL Server 2005) to ensure that table data is kept in memory. For more detailed info look [here]...
null
CC BY-SA 2.5
null
2008-08-26T12:29:08.850
2008-08-26T12:29:08.850
null
null
2,133
null