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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14,770 | 1 | 14,787 | null | 55 | 28,018 | In .NET there are two version numbers available when building a project, File Version and Assembly Version. How are you using these numbers? Keeping them the same? Auto-incrementing one, but manually changing the other?
Also what about the `AssemblyInformationalVersion` attribute?
I'd found this support Microsoft K... | How best to use File Version and Assembly Version? | CC BY-SA 3.0 | 0 | 2008-08-18T15:10:12.660 | 2013-07-10T16:07:09.323 | 2013-07-10T16:07:09.323 | 244,353 | 1,752 | [
".net",
"attributes",
"versions"
] |
14,778 | 2 | null | 14,717 | 3 | null | As Yaakov says, run profiler for a few minutes under typical load and save the results to a table which will allow you to run queries against the results making it much easier to spot any resource hogging queries.
| null | CC BY-SA 2.5 | null | 2008-08-18T15:13:47.503 | 2008-08-18T15:13:47.503 | null | null | 1,758 | null |
14,779 | 2 | null | 14,697 | 2 | null | I've used UrlRewriting.NET before on a very high-traffic site - it worked great for us. I believe the developers are German, so the English documentation is probably not as good as it could be. I'd highly recommend it.
| null | CC BY-SA 2.5 | null | 2008-08-18T15:15:01.480 | 2008-08-18T15:15:01.480 | null | null | 1,338 | null |
14,781 | 2 | null | 14,775 | 2 | null | I think the truth will-out on this:
I'm a software developer, the syntax of the language is the final part of the puzzle. By employing me, you're getting someone with demonstrable experience of problem solving and logic. I'm experienced with the .NET environment, the CLR and the associated Windows stack, including SQL... | null | CC BY-SA 2.5 | null | 2008-08-18T15:15:31.243 | 2008-08-18T15:15:31.243 | null | null | 1,776 | null |
14,785 | 2 | null | 14,775 | 3 | null | Some differences (that are more substantial than syntactical) that suitably catch me out sometimes:
- -
| null | CC BY-SA 2.5 | null | 2008-08-18T15:19:40.300 | 2008-08-18T15:19:40.300 | null | null | 1,111 | null |
14,780 | 2 | null | 14,756 | 4 | null | As I recall, running a website uses the Network User account, which may not have permission to view local printers.
There was a page on MSDN that said how you can impersonate another user that might have access to the printers, but I've not been able to find it.
Edit: I posted too soon. [Here's the page](http://suppo... | null | CC BY-SA 2.5 | null | 2008-08-18T15:15:06.097 | 2008-08-18T15:15:06.097 | null | null | 722 | null |
14,773 | 2 | null | 14,495 | 25 | null | Quick answer:
```
matlab -wait -nosplash -nodesktop -r waitHello
```
In Matlab 7.1 (the version I have) there is an undocumented command line option -wait in matlab.bat. If it doesn't work for your version, you could probably add it in. Here's what I found. The command at the bottom that finally launches matlab is (... | null | CC BY-SA 2.5 | null | 2008-08-18T15:10:43.033 | 2008-08-18T15:16:55.843 | 2008-08-18T15:16:55.843 | 229 | 229 | null |
14,787 | 2 | null | 14,770 | 15 | null | In a scenario where I have multiple file assemblies (i.e. 1 exe and 5 dlls) I will use a different file version for each, but the same assembly version for all of them, allowing you to know which exe each of the dlls go with.
| null | CC BY-SA 2.5 | null | 2008-08-18T15:20:59.377 | 2008-08-18T15:20:59.377 | null | null | 194 | null |
14,786 | 2 | null | 14,061 | 0 | null | True true,
You are right of course.. But there is a whole new generation of programmers being born into this world that will never touch unmanaged code, and I do believe language definitions will re-invent itself over and over again. Memory leaks in WPF are in this way different than say C/Cpp.
Or course to my manage... | null | CC BY-SA 2.5 | null | 2008-08-18T15:20:39.800 | 2008-08-18T15:20:39.800 | null | null | 900 | null |
14,793 | 2 | null | 3,088 | 1 | null | How about this: [Spawning the next generation of hackers](http://vodpod.com/watch/914464-inspirational-oscon-keynote) by Nat Torkington.
| null | CC BY-SA 2.5 | null | 2008-08-18T15:24:16.577 | 2008-08-18T15:24:16.577 | null | null | 1,633 | null |
14,782 | 2 | null | 13,763 | 108 | null | To answer the original question - there are various ways to do this, but the following would be the simplest.
If you already have a handle to the child node that you want to remove, i.e. you have a JavaScript variable that holds a reference to it:
```
myChildNode.parentNode.removeChild(myChildNode);
```
Obviously, ... | null | CC BY-SA 2.5 | null | 2008-08-18T15:16:16.437 | 2008-09-16T05:56:33.363 | 2008-09-16T05:56:33.363 | 1,790 | 1,790 | null |
14,794 | 2 | null | 14,717 | 2 | null | Run Profiler and filter for queries that take more than a certain number of reads. For the application I worked on, any non-reporting query that took more than 5000 reads deserved a second look. Your app may have a different threshold, but the idea is the same.
| null | CC BY-SA 2.5 | null | 2008-08-18T15:24:17.123 | 2008-08-18T15:24:17.123 | null | null | 533 | null |
14,791 | 1 | 14,815 | null | 2 | 392 | We have a website that uses `#include file` command to roll info into some web pages. The authors can access the text files to update things like the occasional class or contact information for the department.
My question is this, I don't anyone using this method and wonder if it is a good idea to keep using it. If... | Is "include file" in shtml the best method to keep non-database changing data | CC BY-SA 3.0 | null | 2008-08-18T15:23:33.693 | 2013-07-15T20:53:54.753 | 2013-07-15T20:53:54.753 | 730 | 730 | [
"html",
"include",
"shtml"
] |
14,803 | 2 | null | 14,791 | 1 | null | If you are using ASP.NET then you could bundle that code into a nice little UserControl that will display all of the important information.
Other platforms should allow you to bundle the logic into a class object, and display it using that.
It really depends on the platform that you are using to deploy the applicat... | null | CC BY-SA 2.5 | null | 2008-08-18T15:36:35.273 | 2008-08-18T15:36:35.273 | null | null | 1,393 | null |
14,804 | 2 | null | 14,775 | 1 | null | Truthfully? If you're a Java developer too, I'd lead with that. A Java developer with some experience in .NET will generally make a better impression than a VB developer with experience with Java. If you can answer questions on the difference between .NET and Java you should be in good shape.
I'd also recommend you l... | null | CC BY-SA 2.5 | null | 2008-08-18T15:38:40.887 | 2008-08-18T15:38:40.887 | null | null | 822 | null |
14,795 | 2 | null | 14,263 | 6 | null | HTTP has many advantages over FTP:
- - - - -
| null | CC BY-SA 2.5 | null | 2008-08-18T15:26:21.287 | 2008-08-18T15:26:21.287 | null | null | 1,265 | null |
14,809 | 2 | null | 4,230 | 1 | null | The key difference is in the ViewState management IIRC. The DataGrid requires ViewState turned on in order to have edit and sort capabilities.
| null | CC BY-SA 2.5 | null | 2008-08-18T15:42:29.660 | 2008-08-18T15:42:29.660 | null | null | 1,796 | null |
14,811 | 2 | null | 14,775 | 3 | null | I love C# to death, but I envy VB.NET's optional parameters. Office automation in C# is so very, very painful.
| null | CC BY-SA 2.5 | null | 2008-08-18T15:43:23.093 | 2008-08-18T15:43:23.093 | null | null | 414 | null |
14,807 | 2 | null | 88 | 3 | null | Reading the RDTSC is not reliable in SMP systems, since each CPU maintains their own counter and each counter is not guaranteed to by synchronized with respect to another CPU.
I might suggest trying `clock_gettime(CLOCK_REALTIME)`. The posix manual indicates that this should be implemented on all compliant systems. It... | null | CC BY-SA 2.5 | null | 2008-08-18T15:40:14.173 | 2009-07-07T23:05:44.060 | 2009-07-07T23:05:44.060 | 28,258 | 1,618 | null |
14,814 | 2 | null | 14,775 | 2 | null | @DAC - VB now (in .net3.5) has support for lambdas:
```
Function(x) x.ToString()
```
In an interview I'd say that understanding the CLR and what the code's really doing is what's important, and that you're happy to code in either (assuming that you are).
| null | CC BY-SA 2.5 | null | 2008-08-18T15:47:44.627 | 2008-08-18T15:47:44.627 | null | null | 905 | null |
14,801 | 1 | 15,279 | null | 6 | 4,123 | Suppose you have the following EJB 3 interfaces/classes:
```
public interface Repository<E>
{
public void delete(E entity);
}
public abstract class AbstractRepository<E> implements Repository<E>
{
public void delete(E entity){
//...
}
}
public interface FooRepository<Foo>
{
//other methods
}
@Loc... | How can I override an EJB 3 session bean method with a generic argument - if possible at all? | CC BY-SA 3.0 | null | 2008-08-18T15:34:34.920 | 2015-12-18T01:49:16.537 | 2015-12-18T01:49:16.537 | 1,997,093 | 1,793 | [
"java",
"generics",
"inheritance",
"jakarta-ee",
"ejb-3.0"
] |
14,819 | 2 | null | 4,230 | 5 | null | If you're working in Visual Studio 2008 / .NET 3.5, you probably shouldn't use either. Use the ListView - it gives you the features of the GridView combined with the styling flexibility of a repeater.
| null | CC BY-SA 2.5 | null | 2008-08-18T15:52:36.943 | 2008-08-18T15:52:36.943 | null | null | 5 | null |
14,824 | 2 | null | 10,599 | 0 | null | I've used this small bit of js code in a few projects, it'll do date quickly and easily along with a few others.
[Link](http://tetlaw.id.au/view/javascript/really-easy-field-validation/)
| null | CC BY-SA 2.5 | null | 2008-08-18T15:54:06.627 | 2008-08-18T15:54:06.627 | null | null | 1,419 | null |
14,815 | 2 | null | 14,791 | 1 | null | I don't think there is anything wrong with it, and I've done some similar things with PHP. If the people that make the changes are comfortable with how they do it and they can do what they need to, I think you should stick with it. There could be some retraining involved and/or a fair amount of work involved for changi... | null | CC BY-SA 2.5 | null | 2008-08-18T15:50:00.800 | 2008-08-18T15:50:00.800 | null | null | 1,441 | null |
14,817 | 2 | null | 88 | 14 | null | You may be interested in [Linux FAQ for clock_gettime(CLOCK_REALTIME)](http://juliusdavies.ca/posix_clocks/clock_realtime_linux_faq.html)
| null | CC BY-SA 2.5 | null | 2008-08-18T15:51:01.877 | 2009-07-07T23:04:40.397 | 2009-07-07T23:04:40.397 | 28,258 | 1,750 | null |
14,821 | 2 | null | 14,263 | 1 | null | Both FTP and HTTP seem sufficient for your needs, so I would definitely recommend choosing the approach, which is either to leave things as they currently are or consolidate on HTTP.
Personally, I would put everything on HTTP. If nothing else, it eliminates an extra server. There is no compelling reason to choose F... | null | CC BY-SA 2.5 | null | 2008-08-18T15:52:59.657 | 2008-08-18T15:52:59.657 | null | null | 872 | null |
14,826 | 2 | null | 14,770 | 3 | null | @Adam: Are you changing the file version with each build? Are you using version control (SYN or VSS) and using that information to link source back to the binaries?
Seems to make sense that the Assembly version stays the same. i.e. "2.0.0.0". That corresponds to the deployment of the product.
The file version chang... | null | CC BY-SA 2.5 | null | 2008-08-18T15:55:13.053 | 2008-08-18T15:55:13.053 | null | null | 1,752 | null |
14,828 | 1 | null | null | 3 | 540 | I work on quite a few DotNetNuke sites, and occasionally (I haven't figured out the common factor yet), when I use the Database Publishing Wizard from Microsoft to create scripts for the site I've created on my Dev server, after running the scripts at the host (usually GoDaddy.com), and uploading the site files, I get ... | Issues with DB after publishing via Database Publishing Wizard from MSFT | CC BY-SA 2.5 | null | 2008-08-18T15:55:34.970 | 2013-05-17T14:38:09.337 | null | null | 1,795 | [
"sql",
"deployment",
"dotnetnuke"
] |
14,840 | 2 | null | 14,588 | 0 | null | I use SVN to check in changes to Asterisk VOIP Server config files. I have one repository with a folder corresponding to each of several servers. That folder contains the entire contents of /etc/asterisk.
| null | CC BY-SA 2.5 | null | 2008-08-18T16:08:10.313 | 2008-08-18T16:08:10.313 | null | null | 763 | null |
14,835 | 2 | null | 14,770 | 76 | null | In solutions with multiple projects, one thing I've found very helpful is to have all the AssemblyInfo files point to a single project that governs the versioning. So my AssemblyInfos have a line:
```
[assembly: AssemblyVersion(Foo.StaticVersion.Bar)]
```
I have a project with a single file that declares the string:... | null | CC BY-SA 2.5 | null | 2008-08-18T16:03:33.223 | 2008-08-18T16:03:33.223 | null | null | 1,365 | null |
14,841 | 2 | null | 14,491 | 4 | null | ```
PostQuitMessage( [exit code] );
```
| null | CC BY-SA 3.0 | null | 2008-08-18T16:08:33.167 | 2012-07-03T14:44:27.663 | 2012-07-03T14:44:27.663 | 142,162 | 1,799 | null |
14,849 | 2 | null | 14,837 | 0 | null | What platform are you targeting ?. There is [Microsoft Speech APIs](http://www.microsoft.com/speech/speech2007/default.mspx) that you can use if its for windows.
| null | CC BY-SA 2.5 | null | 2008-08-18T16:14:49.033 | 2008-08-18T16:14:49.033 | null | null | 1,781 | null |
14,796 | 2 | null | 4,046 | 5 | null | a good start point, could be this [maven pluggin](http://jira.codehaus.org/browse/MOJO-392), not for use it, or maybe yes, but this maven is build over ant task. If you see WAS5+Plugin+Mojo.zip\src\main\scripts\was5.build.xml
Or as said "McDowell", you can use "WebSphere Application Server (WAS) Ant tasks" but directl... | null | CC BY-SA 2.5 | null | 2008-08-18T15:28:40.953 | 2008-08-18T15:28:40.953 | null | null | 1,713 | null |
14,855 | 2 | null | 14,837 | 2 | null | For OS X check out this: [OS X Speech Technologies](http://developer.apple.com/documentation/MacOSX/Conceptual/OSX_Technology_Overview/AppTechnology/chapter_5_section_3.html#//apple_ref/doc/uid/TP40001067-CH270-TPXREF174)
For Windows check out this: [Microsoft Speech API](http://www.microsoft.com/speech/speech2007/def... | null | CC BY-SA 2.5 | null | 2008-08-18T16:18:08.030 | 2008-08-18T16:26:09.853 | 2008-08-18T16:26:09.853 | 194 | 194 | null |
14,843 | 1 | 14,859 | null | 10 | 3,506 | On a quest to migrate some new UI into Managed/C# land, I have recently turned on Common Language Runtime Support (/clr) on a large legacy project, which uses MFC in a Shared DLL and relies on about a dozen other projects within our overall solution. This project is the core of our application, and would drive any mana... | Mixed C++/CLI TypeLoadException Internal limitation: too many fields | CC BY-SA 2.5 | 0 | 2008-08-18T16:11:14.860 | 2015-08-31T11:47:50.783 | 2014-12-13T05:51:19.350 | 3,204,551 | 1,169 | [
"compiler-construction",
"c++-cli",
"clr"
] |
14,851 | 2 | null | 14,837 | 3 | null | I would definitely recommend picking up [a book](http://www.amazon.com/s/ref=nb_ss_b?url=search-alias%3Dstripbooks&field-keywords=speech+recognition&x=0&y=0) or two if you are new to the field. I've got no experience in the field, so I can't make a recommendation. If you are still in college (or still have close ties... | null | CC BY-SA 2.5 | null | 2008-08-18T16:16:26.427 | 2008-08-18T16:16:26.427 | null | null | 872 | null |
14,859 | 2 | null | 14,843 | 15 | null | Make sure the [Enable String Pooling](http://msdn.microsoft.com/en-us/library/ms924287.aspx) option under C/C++ Code Generation is turned on.
That usually fixes this issue, which is one of those "huh?" MS limitations like the 64k limit on Excel spreadsheets. Only this one affects the number of symbols that may appear ... | null | CC BY-SA 3.0 | null | 2008-08-18T16:21:39.380 | 2013-02-22T21:34:39.720 | 2013-02-22T21:34:39.720 | 560,648 | null | null |
14,861 | 2 | null | 14,857 | 0 | null | When asking for help diagnosing compilation problems, it often helps to post the offending source code :)
These errors really mean that the specified name conflicts with another and the compiler cannot resolve this. It does look a little odd tho..
| null | CC BY-SA 2.5 | null | 2008-08-18T16:22:15.370 | 2008-08-18T16:22:15.370 | null | null | 1,043 | null |
14,837 | 1 | 14,908 | null | 10 | 3,935 | I'm really interested in speech-to-text algorithms, but I'm not sure where to start studying up on them. A bunch of searching around led me to [this](http://cslu.cse.ogi.edu/HLTsurvey/download.html), but it's from 1996 and I'm fairly certain that there have been improvements since then.
Does anyone who has any experie... | How to get started with speech-to-text? | CC BY-SA 2.5 | 0 | 2008-08-18T16:05:43.280 | 2014-11-24T09:47:37.973 | 2008-08-18T17:12:07.967 | 242,853 | 242,853 | [
"language-agnostic",
"speech-recognition"
] |
14,856 | 2 | null | 14,775 | 9 | null | I've had to interview people for a few C# positions and this is my general advice for VB.Net developers interviewing for a C# position:
- - -
For your specific question: I've asked that type of question before and what I wanted to hear about was how the underlying system and framework were the same. If possible, ta... | null | CC BY-SA 2.5 | null | 2008-08-18T16:18:29.823 | 2008-08-18T16:18:29.823 | null | null | 1,314 | null |
14,862 | 2 | null | 14,588 | 0 | null | I've used Subversion for everything from source control, build environments, installer scripts, and all that developmenty goodness. I've also set up a repository for non technical users for binary files, in this case old Excel and Word documents. It worked alright considering we lost any merge functionality. But it ... | null | CC BY-SA 2.5 | null | 2008-08-18T16:22:20.267 | 2008-08-18T16:22:20.267 | null | null | null | null |
14,871 | 2 | null | 4,110 | 0 | null | I upmodded Mark's post about Toad Data Modeler and wanted to point out that they have a beta version that is fully functional and free. The only downsides are the occasional bug and built in expiration (typically around the time a new beta is available), but for this poor bloke it does wonders until I can get my boss t... | null | CC BY-SA 2.5 | null | 2008-08-18T16:33:01.820 | 2008-08-18T16:33:01.820 | null | null | 71 | null |
14,866 | 2 | null | 8,761 | 0 | null | > Good suggestion, but unfortunately they just return various shades of grey, when currently I'm running my application with the style CMFCVisualManagerOffice2007::Office2007_LunaBlue
CMFCVisualManagerOffice2007::GetTabFrameColors - the clrFace output param is grey?
Perhaps they're all masks on top of a single base h... | null | CC BY-SA 2.5 | null | 2008-08-18T16:25:44.410 | 2008-08-18T16:25:44.410 | null | null | 1,042 | null |
14,868 | 2 | null | 14,717 | 2 | null | [This utility](http://www.sommarskog.se/sqlutil/aba_lockinfo.html) by Erland Sommarskog is awesomely useful.
It's a stored procedure you add to your database. Run it whenever you want to see what queries are active and get a good picture of locks, blocks, etc. I use it regularly when things seem gummed up.
| null | CC BY-SA 2.5 | null | 2008-08-18T16:27:51.037 | 2008-08-18T16:27:51.037 | null | null | 29 | null |
14,860 | 2 | null | 1,261 | 2 | null | btw: CVSNT supports atomic commits
| null | CC BY-SA 2.5 | null | 2008-08-18T16:22:00.097 | 2008-08-18T16:22:00.097 | null | null | 259 | null |
14,875 | 2 | null | 14,857 | 0 | null | I've been hit by this as well, specifically System.Data.SqlClient. Try unchecking namespaces in the Project manager and manually including them in the .vb file, like you would with C#:
Imports System.Data.SqlClient
| null | CC BY-SA 2.5 | null | 2008-08-18T16:34:18.480 | 2008-08-18T16:34:18.480 | null | null | 736 | null |
14,874 | 1 | 66,556 | null | 4 | 3,130 | For part of my application I have a need to create an image of a certain view and all of its subviews.
To do this I'm creating a context that wraps a bitmap with the same-size as the view, but I'm unsure how to draw the view hierarchy into it. I can draw a single view just be setting the context and explicitly calling... | Drawing a view hierarchy into a specific context in Cocoa | CC BY-SA 3.0 | 0 | 2008-08-18T16:34:01.040 | 2017-03-18T13:02:59.367 | 2017-03-18T13:02:59.367 | 1,033,581 | 1,043 | [
"objective-c",
"cocoa",
"macos"
] |
14,873 | 1 | 14,972 | null | 15 | 6,391 | I've noticed that a few Wordpress blogs have query statistics present in their footer that simply state the number of queries and the total time required to process them for the particular page, reading something like:
> 23 queries. 0.448 seconds
I was wondering how this is accomplished. Is it through the use of a p... | How do I display database query statistics on Wordpress site? | CC BY-SA 2.5 | 0 | 2008-08-18T16:33:58.870 | 2014-05-13T16:25:29.957 | null | null | 1,339 | [
"mysql",
"performance",
"wordpress",
"layout",
"statistics"
] |
14,877 | 2 | null | 14,857 | 0 | null | Take one error (like ArrayList) and replace the type with the full-qualified name (I'm not sure, but I guess here: System.Collection.ArrayList). If the error vanishes, you really have a resolving conflict. If not, it's something else.
If all solutions build "fine" with these errors, I suggest cleaning your projects. De... | null | CC BY-SA 2.5 | null | 2008-08-18T16:34:52.973 | 2008-08-18T16:34:52.973 | null | null | 1,069 | null |
14,872 | 1 | 39,514 | null | 6 | 13,535 | > CREATE DATABASE permission denied in database 'master'.
An attempt to attach an auto-named database for file
C:\Documents and Settings\..\App_Data\HelloWorld.mdf failed.
A database with the same name exists, or specified file cannot be
opened, or it is located on UNC share.
I've found these links:
- [http... | [ADO.NET error]: CREATE DATABASE permission denied in database 'master'. An attempt to attach an auto-named database for file HelloWorld.mdf failed | CC BY-SA 3.0 | null | 2008-08-18T16:33:46.890 | 2017-12-13T09:50:41.353 | 2017-12-13T09:50:41.353 | 1,033,581 | 1,659 | [
"sql-server",
"database",
"ado.net",
"sql-server-express"
] |
14,876 | 2 | null | 14,717 | 4 | null | I've found the [Performance Dashboard Reports](http://www.microsoft.com/downloads/details.aspx?FamilyId=1d3a4a0d-7e0c-4730-8204-e419218c1efc&displaylang=en) to be very helpful. They are a set of custom RS reports supplied by Microsoft. You just have to run the installer on your client PC and then run the setup.sql on t... | null | CC BY-SA 2.5 | null | 2008-08-18T16:34:43.987 | 2008-08-18T16:34:43.987 | null | null | 162 | null |
14,881 | 2 | null | 14,872 | 0 | null | Yes, a previous attachment wasn't unattached properly, or it was attached manually. Go in to Management Studio connect to the database, and disconnect the long database name that looks like a file path. Then try again it should work.
| null | CC BY-SA 2.5 | null | 2008-08-18T16:39:04.260 | 2008-08-18T16:39:04.260 | null | null | 17 | null |
14,892 | 2 | null | 14,884 | 5 | null | Sounds like what you have is called a "linear programming problem". It also sounds like a homework problem, no offense.
The classical solution to a LP problem is called the "Simplex Method". Google it.
However, to use that method, you must have the problem correctly formulated to describe your requirements.
Still,... | null | CC BY-SA 2.5 | null | 2008-08-18T16:48:34.660 | 2008-08-18T16:48:34.660 | null | null | 1,179 | null |
14,899 | 2 | null | 14,884 | 8 | null | Could alter some of the [shortest path algorithms](http://en.wikipedia.org/wiki/Shortest_path_problem), like Dijkstra's, to weight each path by cost but also keep track of time and stop going along a certain path if the time exceeds your threshold. Should find the cheapest that gets you in under your threshold that wa... | null | CC BY-SA 2.5 | null | 2008-08-18T16:52:36.930 | 2008-08-18T16:52:36.930 | null | null | 590 | null |
14,895 | 2 | null | 14,884 | 5 | null | Sounds like a job for [Dijkstra's algorithm](http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm):
> Dijkstra's algorithm, conceived by Dutch computer scientist Edsger Dijkstra in 1959, [1](http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm) is a graph search algorithm that solves the single-source shortest path prob... | null | CC BY-SA 2.5 | null | 2008-08-18T16:49:53.160 | 2008-08-18T16:49:53.160 | null | null | 1,109 | null |
14,904 | 2 | null | 14,884 | 3 | null | If I knew I only had to deal with 5 cities, in a predetermined order, and that there were only 3 routes between adjacent cities, I'd brute force it. No point in being elegant.
If, on the other hand, this were a homework assignment and I were supposed to produce an algorithm that could actually scale, I'd probably tak... | null | CC BY-SA 2.5 | null | 2008-08-18T16:56:02.243 | 2008-08-18T16:56:02.243 | null | null | 872 | null |
14,901 | 2 | null | 14,837 | 2 | null | I have worked with [IBMs ViaVoice product](http://www-01.ibm.com/software/websphere/products/mobilespeech.jsp). It has a good ASR (automated speech recognition) engine, and a nice text-to-speech engine.
The websites not very good, but this is a link for the Embedded version [http://www-01.ibm.com/software/voice/suppo... | null | CC BY-SA 2.5 | null | 2008-08-18T16:55:30.090 | 2008-08-18T16:55:30.090 | null | null | 1,611 | null |
14,906 | 2 | null | 14,884 | -1 | null | I think that Dijkstra's algorithm is for finding a shortest path.
is looking for the minimal cost subject to the constraint that he gets it there in 5 days.
So, merely finding the quickest way won't get him there cheapest, and getting there for the cheapest, won't get it there in the required amount of time.
| null | CC BY-SA 2.5 | null | 2008-08-18T16:56:10.480 | 2008-08-18T16:56:10.480 | null | null | 1,179 | null |
14,903 | 2 | null | 14,893 | 9 | null | I have a set of Powershell scripts that do all of this for me.
Script 1: Build - this one is simple, it is mostly handled by a call to msbuild, and also it creates my database scripts.
Script 2: Package - This one takes various arguments to package a release for various environments, such as test, and subsets of the ... | null | CC BY-SA 2.5 | null | 2008-08-18T16:55:46.457 | 2008-08-18T16:55:46.457 | null | null | 1,219 | null |
14,909 | 1 | 14,921 | null | 5 | 396 | Anyone who writes client-side JavaScript is familiar with the DOM - the tree structure that your browser references in memory, generated from the HTML it got from the server. JavaScript can add, remove and modify nodes on the DOM tree to make changes to the page. I find it very nice to work with (browser bugs aside), a... | Tree-Based (vs. HTML-Based) Web Framework? | CC BY-SA 2.5 | null | 2008-08-18T16:58:12.393 | 2012-06-07T02:43:19.060 | 2012-06-07T02:43:19.060 | 1,324,019 | 619 | [
"javascript",
"html",
"dom"
] |
14,910 | 2 | null | 14,893 | 1 | null | I've only worked on a couple of .Net projects (I've done mostly Java) but one thing I would recommend is using a tool like [NAnt](http://nant.sourceforge.net/). I have a real problem with coupling my build to the IDE, it ends up making it a real pain to set up build servers down the road since you have to go do a full... | null | CC BY-SA 2.5 | null | 2008-08-18T16:58:47.137 | 2008-08-18T16:58:47.137 | null | null | 1,247 | null |
14,914 | 2 | null | 14,909 | -1 | null | I see where you're coming from but it's all a bit moot isn't it. You can't send anything but rendered content to the browser, and you have to do it all in one go (AJAX aside). There's no value from what you are suggesting (from what I can see) as even if you build it tree-like, you're still only building a page which i... | null | CC BY-SA 2.5 | null | 2008-08-18T17:01:31.967 | 2008-08-18T17:01:31.967 | null | null | 1,776 | null |
14,893 | 1 | 15,011 | null | 27 | 7,112 | Or, actually establishing a build process when there isn't much of one in place to begin with.
Currently, that's pretty much the situation my group faces. We do web-app development primarily (but no desktop development at this time). Software deployments are ugly and unwieldy even with our modest apps, and we've had... | Improving Your Build Process | CC BY-SA 2.5 | 0 | 2008-08-18T16:48:50.293 | 2009-05-18T15:02:11.360 | null | null | 1,734 | [
"build-process",
"build-automation",
"build"
] |
14,911 | 1 | 114,334 | null | 5 | 2,600 | Can anyone recommend a good server-side PDF generation tool that would work in a Linux environment. I want easy as possible, pass it a XHTML file (with images) and have it generate a PDF from the source.
I don't have a massive budget, but anything under $1000 should be alright.
Andrew
| PDF generation from XHTML in a LAMP environment | CC BY-SA 2.5 | 0 | 2008-08-18T16:58:50.007 | 2015-10-06T09:03:18.253 | null | null | 1,776 | [
"linux",
"pdf",
"pdf-generation"
] |
14,916 | 2 | null | 14,911 | 1 | null | I sounds like [FPDF](http://www.fpdf.org/) might be of help...
Also, the creation of PDF documents is called "PDF printing". I believe that might help you find other resources.
| null | CC BY-SA 2.5 | null | 2008-08-18T17:03:34.817 | 2008-08-18T17:03:34.817 | null | null | 572 | null |
14,919 | 2 | null | 1,261 | 4 | null | I'll second Eridius' suggestion of Git, but I'd expand it to the other DRCS (Distributed Revision Control System) such as [Mercurial](http://www.selenic.com/mercurial/wiki/) and [bazaar](http://bazaar-vcs.org/).
These products are fairly recent and the level of tooling and integration with them seems low at the moment... | null | CC BY-SA 2.5 | null | 2008-08-18T17:04:41.977 | 2008-08-18T17:04:41.977 | null | null | 1,809 | null |
14,920 | 2 | null | 14,801 | 1 | null | Can you write a unit test against your FooRepository class just using it as a POJO. If that works as expected then I'm not familiar with any reason why it would function differently inside a container.
I suspect there is something else going on and it will probably be easier to debug if you test it as a POJO.
| null | CC BY-SA 2.5 | null | 2008-08-18T17:04:42.927 | 2008-08-18T17:04:42.927 | null | null | 1,247 | null |
14,921 | 2 | null | 14,909 | 2 | null | You're describing [Rhino on Rails](http://www.youtube.com/watch?v=1QD9XQm_Jd4), which is not out but will be soon.
Similarly, [Aptana Jaxer](http://www.aptana.com/jaxer/), however RnR will include an actual framework (Rails) whereas Jaxer is just the server technology.
| null | CC BY-SA 2.5 | null | 2008-08-18T17:04:54.377 | 2008-08-18T17:26:30.560 | 2008-08-18T17:26:30.560 | 1,370 | 1,370 | null |
14,926 | 2 | null | 9,033 | 2 | null | I must admit that i'm not sure wether this performs better or worse than the normal ASP.NET repeater onItemDatabound cast code, but anyway here's my 5 cent.
```
MyObject obj = e.Item.DataItem as MyObject;
if(obj != null)
{
//Do work
}
```
| null | CC BY-SA 2.5 | null | 2008-08-18T17:06:41.957 | 2008-08-18T17:06:41.957 | null | null | 1,808 | null |
14,927 | 2 | null | 14,909 | 2 | null | Aptana's Jaxer AJAX server might be something for you to check out, as it uses JS server-side, as well.
That being said, I would argue that you're better off not generating your markup with print statements or echos, but rather template and hook in your dynamic content.
| null | CC BY-SA 2.5 | null | 2008-08-18T17:07:12.720 | 2008-08-18T17:07:12.720 | null | null | 1,344 | null |
14,908 | 2 | null | 14,837 | 8 | null | This is a HUGE questions, I wouldn't know how to begin... So let me just try giving you the right "terms" so you can refine your quest:
First, understand that Speech Recognition is a diverse and complicated subject, and it has many different applications. People tend to map this domain to the first thing that comes to... | null | CC BY-SA 2.5 | null | 2008-08-18T16:56:43.850 | 2008-10-22T20:56:00.640 | 2008-10-22T20:56:00.640 | 21,632 | 350 | null |
14,923 | 1 | 36,833 | null | 4 | 2,028 | I'm thinking of learning the `ASP.NET MVC` framework for an upcoming project. Can I use the advanced routing to create long URLs based on the sitemap hierarchy?
Example navigation path:
Typical (I think) MVC URL:
[http://example.com/products/category/NonstickCooksets](http://example.com/products/category/NonstickC... | Can I generate ASP.NET MVC routes from a Sitemap? | CC BY-SA 3.0 | 0 | 2008-08-18T17:05:40.400 | 2018-04-06T06:45:51.650 | 2018-04-06T06:45:51.650 | 6,620,474 | 83 | [
"asp.net",
"asp.net-mvc",
"url",
"routes",
"sitemap"
] |
14,935 | 2 | null | 14,893 | 5 | null | We switched from using a perl script to MSBuild two years ago and haven't looked back.
Building visual studio solutions can be done by just specifying them in the main xml file.
For anything more complicated (getting your source code, executing unit tests, building install packages, deploying web sites) you can just c... | null | CC BY-SA 2.5 | null | 2008-08-18T17:11:15.740 | 2008-08-18T17:11:15.740 | null | null | 1,078 | null |
14,934 | 1 | 14,946 | null | 7 | 3,122 | .NET, Java and other high level database API's in various language often provide techniques known as prepared statements and parameter binding as opposed to sending plain text commands to the Database server. What I would like to know is what happens when you execute a statement like this:
```
SqlCommand cmd = new Sql... | Parameter Binding: What happens under the hood? | CC BY-SA 3.0 | 0 | 2008-08-18T17:11:15.083 | 2014-09-23T07:59:14.257 | 2013-06-28T21:52:21.560 | 77,567 | null | [
"c#",
".net",
"sql",
"database",
"api"
] |
14,884 | 1 | 14,899 | null | 10 | 2,356 | Say you have a shipment. It needs to go from point A to point B, point B to point C and finally point C to point D. You need it to get there in five days for the least amount of money possible. There are three possible shippers for each leg, each with their own different time and cost for each leg:
```
Array
(
[le... | Find the best combination from a given set of multiple sets | CC BY-SA 2.5 | 0 | 2008-08-18T16:39:23.557 | 2012-07-03T15:05:38.677 | 2008-09-26T18:27:48.070 | 4,203 | 58 | [
"php",
"algorithm",
"puzzle",
"combinations",
"np-complete"
] |
14,414 | 2 | null | 14,413 | 21 | null | : Use [GLEW](http://glew.sourceforge.net/). See how [here](https://stackoverflow.com/questions/17370/using-glew-to-use-opengl-extensions-under-windows).
:
If you have a not to use GLEW, here's how to achieve the same without it:
Identify the OpenGL extension and the extension APIs you wish to use. OpenGL extensions ... | null | CC BY-SA 3.0 | null | 2008-08-18T10:12:00.577 | 2015-01-16T11:57:24.310 | 2017-05-23T12:01:23.407 | -1 | 1,630 | null |
14,946 | 2 | null | 14,934 | 6 | null | [The MySQL manual page](http://dev.mysql.com/doc/refman/5.0/en/c-api-prepared-statements.html) on prepared statements provides lots of information (which should apply to any other RDBMS).
Basically, your statement is parsed and processed ahead of time, and the parameters are sent separately instead of being handled al... | null | CC BY-SA 3.0 | null | 2008-08-18T17:18:50.310 | 2014-09-23T07:59:14.257 | 2014-09-23T07:59:14.257 | 1,178,337 | 1,694 | null |
14,943 | 1 | 14,960 | null | 83 | 81,738 | What is the best way to disable + in a c# win form to prevent the user from closing the form?
I am using a form as a popup dialog to display a progress bar and I do not want the user to be able to close it.
| How to Disable Alt + F4 closing form? | CC BY-SA 3.0 | 0 | 2008-08-18T17:16:52.577 | 2019-02-05T18:10:45.603 | 2014-02-11T19:59:08.163 | 5,640 | 1,375 | [
"c#",
".net",
"winforms"
] |
14,952 | 2 | null | 1,261 | 4 | null | One thing not to overlook is ecosystem. I was working at a CVSNT shop, and I was finding more and more open source tools supported SubVersion by default.
| null | CC BY-SA 2.5 | null | 2008-08-18T17:22:05.733 | 2008-08-18T17:22:05.733 | null | null | 175 | null |
14,947 | 2 | null | 14,874 | 2 | null | You can use [-[NSView dataWithPDFInsideRect:]](http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#//apple_ref/occ/instm/NSView/dataWithPDFInsideRect:) to render the entire hierarchy of the view you send it to into a PDF, returned as an `NSData` object. Yo... | null | CC BY-SA 2.5 | null | 2008-08-18T17:19:03.273 | 2008-08-18T17:19:03.273 | null | null | 714 | null |
14,938 | 2 | null | 328 | 2 | null | You need to be sure the session data are safe. By looking at your php.ini or using phpinfo() you can find you session settings. _session.save_path_ tells you where they are saved.
Check the permission of the folder and of its parents. It shouldn't be public (/tmp) or be accessible by other websites on your shared serv... | null | CC BY-SA 2.5 | null | 2008-08-18T17:12:34.847 | 2008-08-18T17:12:34.847 | null | null | 1,771 | null |
14,949 | 2 | null | 14,943 | 13 | null | You could handle the `FormClosing` event and set `FormClosingEventArgs.Cancel` to `true`.
| null | CC BY-SA 2.5 | null | 2008-08-18T17:20:15.580 | 2008-08-18T17:20:15.580 | null | null | 1,810 | null |
14,968 | 2 | null | 126 | 8 | null | i've found using setters/getters made my code easier to read. I also like the control it gives when other classes use the methods and if i change the data the property will store.
| null | CC BY-SA 2.5 | null | 2008-08-18T17:37:01.130 | 2008-08-18T17:37:01.130 | null | null | 1,425 | null |
14,953 | 2 | null | 14,893 | 1 | null | Our build process is a bunch of homegrown Perl scripts that have evolved over a decade or so, nothing fancy but it gets the job done. One script gets the latest source code, another builds it, a third stages it to a network location. We do desktop application development so our staging process also builds install pac... | null | CC BY-SA 2.5 | null | 2008-08-18T17:23:13.560 | 2008-08-18T17:23:13.560 | null | null | 1,254 | null |
14,963 | 1 | 15,098 | null | 5 | 3,159 | I have a problem with IIS 6.0 ceasing to work for an ASP.NET application after installing Service Pack 1 for `.NET 3.5`.
I have 2 identical virtual dedicated servers. Installing SP1 on the first had no adverse effect. Installing it on the second caused ASP.NET pages to start returning 404 page not found.
Static .html... | .NET 3.5 Service Pack 1 causes 404 pages on ASP.NET Web App | CC BY-SA 3.0 | null | 2008-08-18T17:30:18.553 | 2014-09-23T08:20:04.870 | 2013-07-04T12:22:57.767 | 1,584,286 | 1,463 | [
"iis",
".net-3.5",
"servicepacks"
] |
14,956 | 2 | null | 14,770 | 22 | null | The KB article mentions the most important distinction: File versions are only used for display purposes, whereas the assembly version plays an important part in the .NET loading behaviour.
If you change the assembly version number, then the identity of your assembly as a whole has changed. Developers will need to reb... | null | CC BY-SA 2.5 | null | 2008-08-18T17:25:54.400 | 2008-08-18T17:25:54.400 | null | null | 1,719 | null |
14,970 | 2 | null | 14,843 | 3 | null | Do you need to turn /clr on for the entire project? Could you instead turn it on only for a small select number of files and be very careful how you include managed code? I work with a large C++/MFC application and we have found it very difficult to use managed C++. I love C# and .NET but managed C++ has been nothin... | null | CC BY-SA 2.5 | null | 2008-08-18T17:40:27.847 | 2008-08-18T17:40:27.847 | null | null | 1,254 | null |
14,960 | 2 | null | 14,943 | 110 | null | This does the job:
```
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
e.Cancel = true;
}
```
Edit: In response to pix0rs concern - yes you are correct that you will not be able to programatically close the app. However, you can simply remove the event handler for the form_closing event ... | null | CC BY-SA 2.5 | null | 2008-08-18T17:27:38.343 | 2018-09-02T16:43:29.277 | 2018-09-02T16:43:29.277 | 770 | 770 | null |
14,973 | 2 | null | 14,967 | 4 | null | Microsoft's own rules are an excellent starting point. You can enforce them with FxCop.
| null | CC BY-SA 2.5 | null | 2008-08-18T17:41:00.530 | 2008-08-18T17:41:00.530 | null | null | 905 | null |
14,964 | 2 | null | 14,843 | 3 | null | I have done this with very large mixed-mode (C#/C++) applications three times (3x) and once putting the above fix into place have never seen the error again.
And no, if anything this should result in slightly faster run-time execution (nothing you could ever measure, however.)
But I agree it's somewhat of a stopgap. ... | null | CC BY-SA 2.5 | null | 2008-08-18T17:33:24.743 | 2008-08-18T17:33:24.743 | null | null | null | null |
14,967 | 1 | 14,974 | null | 159 | 72,420 | I'm a recent AI graduate (circa 2 years) working for a modest operation. It has fallen to me (primarily as I'm the first 'adopter' in the department) to create a basic (read useful?) C# coding standards document.
I think I should explain that I'm probably the most junior software engineer going, but I'm looking forwa... | Are there any suggestions for developing a C# coding standards / best practices document? | CC BY-SA 3.0 | 0 | 2008-08-18T17:35:38.777 | 2016-03-24T20:17:28.793 | 2011-12-13T13:37:11.567 | 300,311 | 1,816 | [
"c#",
"standards",
"procedure"
] |
14,972 | 2 | null | 14,873 | 18 | null | Try adding this to the bottom of the footer in your template:
```
<?php echo $wpdb->num_queries; ?> <?php _e('queries'); ?>. <?php timer_stop(1); ?> <?php _e('seconds'); ?>
```
| null | CC BY-SA 2.5 | null | 2008-08-18T17:40:51.717 | 2008-08-18T17:40:51.717 | null | null | 72 | null |
14,857 | 1 | 96,161 | null | 2 | 2,627 | I will send $5 via paypal for an answer that fixes this problem for me.
I'm not sure what VS setting I've changed or if it's a web.config setting or what, but I keep getting this error in the error list and yet all solutions build fine. Here are some examples:
As you can imagine, it's really annoying since there a... | Why does VS 2005 keep giving me the "'x' is ambiguous in the namespace 'y'" error? | CC BY-SA 3.0 | null | 2008-08-18T16:18:31.430 | 2012-06-13T15:58:53.357 | 2012-06-13T15:58:53.357 | 851,273 | 1,414 | [
".net",
"visual-studio",
"visual-studio-2005",
"namespaces"
] |
14,979 | 2 | null | 14,893 | 0 | null | Our build system is a makefile (or two). It has been rather fun getting it working as it needs to run on both windows (as a build task under VS) and under Linux (as a normal "make bla" task). The really fun thing is that the build gets the actual file list from a .csproj file, builds (another) makefile from that, and r... | null | CC BY-SA 2.5 | null | 2008-08-18T17:42:45.113 | 2008-08-18T17:42:45.113 | null | null | 1,343 | null |
14,981 | 2 | null | 14,967 | 14 | null | I have always used Juval Lowy's [pdf](http://www.idesign.net/idesign/download/IDesign%20CSharp%20Coding%20Standard.zip) as a reference when doing coding standards / best practices internally. It follows very close to [FxCop](http://msdn.microsoft.com/en-us/library/bb429476(VS.80).aspx)/[Source Analysis](http://blogs.m... | null | CC BY-SA 2.5 | null | 2008-08-18T17:45:27.197 | 2008-08-18T18:58:40.653 | 2008-08-18T18:58:40.653 | 1,117 | 1,117 | null |
14,980 | 2 | null | 126 | 8 | null | Private fields with public or protected properties. Access to the values should go through the properties, and be copied to a local variable if they will be used more than once in a method. If and ONLY if you have the rest of your application so totally tweaked, rocked out, and otherwise optimized to where accessing ... | null | CC BY-SA 2.5 | null | 2008-08-18T17:43:29.323 | 2008-08-18T17:43:29.323 | null | null | 1,763 | null |
14,984 | 2 | null | 14,943 | 2 | null | Would FormClosing be called even when you're programatically closing the window? If so, you'd probably want to add some code to allow the form to be closed when you're finished with it (instead of always canceling the operation)
| null | CC BY-SA 2.5 | null | 2008-08-18T17:46:48.507 | 2008-08-18T17:46:48.507 | null | null | 72 | null |
14,982 | 2 | null | 14,967 | 32 | null | [IDesign](http://www.idesign.net) has a C# coding standards document that is commonly used. Also see the [Framework Design Guidelines 2nd Ed](https://rads.stackoverflow.com/amzn/click/com/0321545613).
| null | CC BY-SA 2.5 | null | 2008-08-18T17:45:39.430 | 2009-07-29T13:00:25.263 | 2009-07-29T13:00:25.263 | 748 | 748 | null |
14,974 | 2 | null | 14,967 | 139 | null | We start with
- [http://msdn.microsoft.com/en-us/library/ms229042.aspx](http://msdn.microsoft.com/en-us/library/ms229042.aspx)- [http://blogs.msdn.com/brada/articles/361363.aspx](http://blogs.msdn.com/brada/articles/361363.aspx)
and then document the differences from and additions to that baseline.
| null | CC BY-SA 3.0 | null | 2008-08-18T17:41:18.860 | 2013-06-20T18:03:38.817 | 2013-06-20T18:03:38.817 | 649,524 | 150 | null |
14,985 | 2 | null | 14,967 | 9 | null | The other posters have pointed you at the baseline, all I would add is make your document short, sweet, and to the point, employing a heavy dose of Strunk and White to distinguish the "must haves" from the "it would be nice ifs".
The problem with coding standards documents is that nobody really reads them like they sh... | null | CC BY-SA 2.5 | null | 2008-08-18T17:46:57.007 | 2008-08-18T17:46:57.007 | null | null | null | null |