question_id int64 4 6.31M | answer_id int64 7 6.31M | title stringlengths 9 150 | question_body stringlengths 0 28.8k | answer_body stringlengths 60 27.2k | question_text stringlengths 40 28.9k | combined_text stringlengths 124 39.6k | tags listlengths 1 6 | question_score int64 0 26.3k | answer_score int64 0 28.8k | view_count int64 15 14M | answer_count int64 0 182 | favorite_count int64 0 32 | question_creation_date stringdate 2008-07-31 21:42:52 2011-06-10 18:12:18 | answer_creation_date stringdate 2008-07-31 22:17:57 2011-06-10 18:14:17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
173,866 | 173,899 | jQuery: Problem with windowed controls in IE6 | I have a web page which contains a select box. When I open a jQuery Dialog it is displayed partly behind the select box. How should I approach this problem? Should I hide the select box or does jQuery offer some kind of 'shim' solution. (I have Googled but didn't find anything) Here is some code: testJQuery Click me s ... | This doesn't have anything to do with jQuery in particular. This is a known bug in IE 6 - Windows-native select boxes always appear on top of other elements. The only thing you can do is hide the select boxes when they're covered up - usually replacing them with something that looks like the select box. | jQuery: Problem with windowed controls in IE6 I have a web page which contains a select box. When I open a jQuery Dialog it is displayed partly behind the select box. How should I approach this problem? Should I hide the select box or does jQuery offer some kind of 'shim' solution. (I have Googled but didn't find anyth... | TITLE:
jQuery: Problem with windowed controls in IE6
QUESTION:
I have a web page which contains a select box. When I open a jQuery Dialog it is displayed partly behind the select box. How should I approach this problem? Should I hide the select box or does jQuery offer some kind of 'shim' solution. (I have Googled but... | [
"jquery",
"internet-explorer-6",
"dialog",
"shim"
] | 2 | 2 | 3,886 | 2 | 0 | 2008-10-06T10:59:15.093000 | 2008-10-06T11:09:29.473000 |
173,868 | 173,876 | How can I get a file's extension in PHP? | This is a question you can read everywhere on the web with various answers: $ext = end(explode('.', $filename)); $ext = substr(strrchr($filename, '.'), 1); $ext = substr($filename, strrpos($filename, '.') + 1); $ext = preg_replace('/^.*\.([^.]+)$/D', '$1', $filename);
$exts = split("[/\\.]", $filename); $n = count($ex... | People from other scripting languages always think theirs is better because they have a built-in function to do that and not PHP (I am looking at Pythonistas right now:-)). In fact, it does exist, but few people know it. Meet pathinfo(): $ext = pathinfo($filename, PATHINFO_EXTENSION); This is built-in. pathinfo() can g... | How can I get a file's extension in PHP? This is a question you can read everywhere on the web with various answers: $ext = end(explode('.', $filename)); $ext = substr(strrchr($filename, '.'), 1); $ext = substr($filename, strrpos($filename, '.') + 1); $ext = preg_replace('/^.*\.([^.]+)$/D', '$1', $filename);
$exts = s... | TITLE:
How can I get a file's extension in PHP?
QUESTION:
This is a question you can read everywhere on the web with various answers: $ext = end(explode('.', $filename)); $ext = substr(strrchr($filename, '.'), 1); $ext = substr($filename, strrpos($filename, '.') + 1); $ext = preg_replace('/^.*\.([^.]+)$/D', '$1', $fil... | [
"php",
"file-extension"
] | 866 | 1,980 | 826,308 | 32 | 0 | 2008-10-06T11:00:02.957000 | 2008-10-06T11:03:24.493000 |
173,870 | 176,879 | Why can't c++ ifstreams read from devices? | I knew I should never have started using c++ io, the whole "type safety" argument is a red herring (does anyone really find that it's one of their most pressing problems?). Anyhow, I did, and discovered a strange difference between ifstreams and FILE*s and plain old file descriptors: ifstreams cannot read from a device... | The device is unbuffered and must be read from in 512 byte multiples. ifstream does it's own buffering and strangely decided to read 1023 bytes ahead, which fails with "Invalid argument". Interestingly, this ifstream is implemented on top of a FILE*. However, FILE* left to its own devices was reading ahead using a nice... | Why can't c++ ifstreams read from devices? I knew I should never have started using c++ io, the whole "type safety" argument is a red herring (does anyone really find that it's one of their most pressing problems?). Anyhow, I did, and discovered a strange difference between ifstreams and FILE*s and plain old file descr... | TITLE:
Why can't c++ ifstreams read from devices?
QUESTION:
I knew I should never have started using c++ io, the whole "type safety" argument is a red herring (does anyone really find that it's one of their most pressing problems?). Anyhow, I did, and discovered a strange difference between ifstreams and FILE*s and pl... | [
"c++",
"macos",
"gcc",
"fstream"
] | 3 | 3 | 1,858 | 3 | 0 | 2008-10-06T11:01:24.340000 | 2008-10-07T01:15:43.307000 |
173,875 | 173,895 | How do you protect code from leaking outside? | Besides open-sourcing your project and legislation, are there ways to prevent, or at least minimize the damages of code leaking outside your company/group? We obviously can't block Internet access (to prevent emailing the code) because programmer's need their references. We also can't block peripheral devices (USB, Fir... | You can't stop it getting out. So two solutions - stop people wanting to hurt you, and have legal precautions. To stop people hating you treat them right (saying more is probably off topic for stack overflow). I'm not a lawyer, but to give yourself legal protection, if you believe in it, patent the ideas, put a copyrig... | How do you protect code from leaking outside? Besides open-sourcing your project and legislation, are there ways to prevent, or at least minimize the damages of code leaking outside your company/group? We obviously can't block Internet access (to prevent emailing the code) because programmer's need their references. We... | TITLE:
How do you protect code from leaking outside?
QUESTION:
Besides open-sourcing your project and legislation, are there ways to prevent, or at least minimize the damages of code leaking outside your company/group? We obviously can't block Internet access (to prevent emailing the code) because programmer's need th... | [
"security",
"project-management",
"source-code-protection"
] | 18 | 42 | 5,018 | 14 | 0 | 2008-10-06T11:03:16.023000 | 2008-10-06T11:09:09.740000 |
173,886 | 174,436 | Overriding serialization for a particular .NET type | Please consider this example class: [Serializable] public class SomeClass { private DateTime _SomeDateTime;
public DateTime SomeDateTime { get { return _SomeDateTime; } set { _SomeDateTime = value; } } } I would like to alter the serialization of any DateTime declared in the class according to my own rules. The member... | look at the OnSerializing and OnDeserializing attributes to call custom methods when your objects are serialized. you can impelment some custom logic in there and decouple the serializing process from the actual datatypes. | Overriding serialization for a particular .NET type Please consider this example class: [Serializable] public class SomeClass { private DateTime _SomeDateTime;
public DateTime SomeDateTime { get { return _SomeDateTime; } set { _SomeDateTime = value; } } } I would like to alter the serialization of any DateTime declare... | TITLE:
Overriding serialization for a particular .NET type
QUESTION:
Please consider this example class: [Serializable] public class SomeClass { private DateTime _SomeDateTime;
public DateTime SomeDateTime { get { return _SomeDateTime; } set { _SomeDateTime = value; } } } I would like to alter the serialization of an... | [
".net",
"serialization",
"overriding"
] | 3 | 3 | 1,798 | 3 | 0 | 2008-10-06T11:06:57.870000 | 2008-10-06T14:13:46.467000 |
173,893 | 178,759 | Performance issue with "new ReportDocument()" | I have a C# application where I create a Crystal Reports ReportDocument, with the line CrystalDecisions.CrystalReports.Engine.ReportDocument document = new CrystalDecisions.CrystalReports.Engine.ReportDocument(); This line takes 3-4 seconds to execute. This seems very slow, especially since the document.Load(file) line... | Unfortunately, according to https://www.sdn.sap.com/irj/sdn/message?messageID=5898122 3-4 seconds fór this constructor call is "quite normal". | Performance issue with "new ReportDocument()" I have a C# application where I create a Crystal Reports ReportDocument, with the line CrystalDecisions.CrystalReports.Engine.ReportDocument document = new CrystalDecisions.CrystalReports.Engine.ReportDocument(); This line takes 3-4 seconds to execute. This seems very slow,... | TITLE:
Performance issue with "new ReportDocument()"
QUESTION:
I have a C# application where I create a Crystal Reports ReportDocument, with the line CrystalDecisions.CrystalReports.Engine.ReportDocument document = new CrystalDecisions.CrystalReports.Engine.ReportDocument(); This line takes 3-4 seconds to execute. Thi... | [
"c#",
".net",
"performance",
"crystal-reports"
] | 1 | 1 | 1,521 | 1 | 0 | 2008-10-06T11:08:12.237000 | 2008-10-07T14:38:16.120000 |
173,897 | 173,926 | Checkstyle's PackageHtml-rule ignores package-info.java | I use checkstyle to analyze my code. A useful rule is PackageHtml, that checks, if a package contains a Javadoc-description. But with newer java-version it's recommended to use package-info.java instead of package.html. Problem is, checkstyle ignores the package-info.java and reports a rule violation. How can checkstyl... | What version of CheckStyle are you using? It seems to be an old bug closed late 2007. Actually, the documentation mentions package-info as being the default!... but only with CheckStyle 5.x, not 4.4 The announce for CheckStyle5.0 beta1 is here. CheckStyle 4.4 is the last one compatible with jdk1.4 | Checkstyle's PackageHtml-rule ignores package-info.java I use checkstyle to analyze my code. A useful rule is PackageHtml, that checks, if a package contains a Javadoc-description. But with newer java-version it's recommended to use package-info.java instead of package.html. Problem is, checkstyle ignores the package-i... | TITLE:
Checkstyle's PackageHtml-rule ignores package-info.java
QUESTION:
I use checkstyle to analyze my code. A useful rule is PackageHtml, that checks, if a package contains a Javadoc-description. But with newer java-version it's recommended to use package-info.java instead of package.html. Problem is, checkstyle ign... | [
"xml",
"javadoc",
"checkstyle"
] | 2 | 3 | 2,020 | 1 | 0 | 2008-10-06T11:09:14.590000 | 2008-10-06T11:19:01.670000 |
173,898 | 173,920 | Is anyone running a production ASP.NET site on top of Mono? | I'm trying to do an informal feasibility study for work on if Mono/Apache/Linux is realistically 'ready' and in any way comparable to a more traditional.NET/IIS/Windows stack. Any comparison of performance would be helpful too. | Take a look at companies using Mono. It even says that Wikipedia uses Mono for its search facilities. | Is anyone running a production ASP.NET site on top of Mono? I'm trying to do an informal feasibility study for work on if Mono/Apache/Linux is realistically 'ready' and in any way comparable to a more traditional.NET/IIS/Windows stack. Any comparison of performance would be helpful too. | TITLE:
Is anyone running a production ASP.NET site on top of Mono?
QUESTION:
I'm trying to do an informal feasibility study for work on if Mono/Apache/Linux is realistically 'ready' and in any way comparable to a more traditional.NET/IIS/Windows stack. Any comparison of performance would be helpful too.
ANSWER:
Take ... | [
"asp.net",
"performance",
"mono"
] | 10 | 12 | 2,151 | 5 | 0 | 2008-10-06T11:09:29.427000 | 2008-10-06T11:16:47.697000 |
173,905 | 173,914 | How do I blink/control Macbook keyboard LEDs programmatically? | Do you know how I can switch on/off (blink) Macbook keyboard led (caps lock,numlock) under Mac OS X (preferably Tiger)? I've googled for this, but have got no results, so I am asking for help. I would like to add this feature as notifications (eg. new message received on Adium, new mail received). I would prefer apples... | http://googlemac.blogspot.com/2008/04/manipulating-keyboard-leds-through.html | How do I blink/control Macbook keyboard LEDs programmatically? Do you know how I can switch on/off (blink) Macbook keyboard led (caps lock,numlock) under Mac OS X (preferably Tiger)? I've googled for this, but have got no results, so I am asking for help. I would like to add this feature as notifications (eg. new messa... | TITLE:
How do I blink/control Macbook keyboard LEDs programmatically?
QUESTION:
Do you know how I can switch on/off (blink) Macbook keyboard led (caps lock,numlock) under Mac OS X (preferably Tiger)? I've googled for this, but have got no results, so I am asking for help. I would like to add this feature as notificati... | [
"python",
"macos",
"keyboard",
"blink"
] | 5 | 4 | 2,844 | 1 | 0 | 2008-10-06T11:11:05.913000 | 2008-10-06T11:15:02.427000 |
173,919 | 3,364,506 | Is there a "theirs" version of "git merge -s ours"? | When merging topic branch "B" into "A" using git merge, I get some conflicts. I know all the conflicts can be solved using the version in "B". I am aware of git merge -s ours. But what I want is something like git merge -s theirs. Why doesn't it exist? How can I achieve the same result after the conflicting merge with ... | A similar alternative is the --strategy-option (short form -X ) option, which accepts theirs. For example: git checkout branchA git merge -X theirs branchB However, this is more equivalent to -X ours than -s ours. The key difference being that -X performs a regular recursive merge, resolving any conflicts using the cho... | Is there a "theirs" version of "git merge -s ours"? When merging topic branch "B" into "A" using git merge, I get some conflicts. I know all the conflicts can be solved using the version in "B". I am aware of git merge -s ours. But what I want is something like git merge -s theirs. Why doesn't it exist? How can I achie... | TITLE:
Is there a "theirs" version of "git merge -s ours"?
QUESTION:
When merging topic branch "B" into "A" using git merge, I get some conflicts. I know all the conflicts can be solved using the version in "B". I am aware of git merge -s ours. But what I want is something like git merge -s theirs. Why doesn't it exis... | [
"git",
"git-merge"
] | 1,128 | 1,294 | 700,731 | 21 | 0 | 2008-10-06T11:16:43.217000 | 2010-07-29T15:58:58.037000 |
173,930 | 173,947 | Incorporating shareware restrictions in C++ software | I wish to implement my software on a shareware basis, so that the user is given a maximum trial period of (say) 30 days with which to try out the software. On purchase I intend the user to be given a randomly-generated key, which when entered enables the software again. I've never been down this route before, so any ad... | With regards to a random-generated key, how will you verify a key is legit or if a key is bogus if it is actually random? Have a look at the article " Implementing a Partial Serial Number Verification System " as it is quite good and is easy to implement in any language. With regards to time trials, as basic solution w... | Incorporating shareware restrictions in C++ software I wish to implement my software on a shareware basis, so that the user is given a maximum trial period of (say) 30 days with which to try out the software. On purchase I intend the user to be given a randomly-generated key, which when entered enables the software aga... | TITLE:
Incorporating shareware restrictions in C++ software
QUESTION:
I wish to implement my software on a shareware basis, so that the user is given a maximum trial period of (say) 30 days with which to try out the software. On purchase I intend the user to be given a randomly-generated key, which when entered enable... | [
"c++",
"time",
"restriction",
"shareware"
] | 12 | 5 | 1,538 | 5 | 0 | 2008-10-06T11:20:46.113000 | 2008-10-06T11:30:41.850000 |
173,960 | 173,981 | How to upgrade JRE | Is there anyway to upgrade the installed JRE in the system? We are having 1.5.0_08 installed in out HP Unix system.We have to upgrade this to 1.5.0_15.Is there a way to patch up the existing JRE and upgrade to a newer version.Or can this only be achieved by installing the newer JRE and set this in the system PATH. | What's usually done is to have multiple JRE installed in separate directories (JRE_1_5_10, JRE_1_5_16, JRE_1_6_3,...) and use some symlinks as references as JRE_1_5 that will point to the latest version of JRE 1.5, same for JRE_1_6, and eventually, JRE that will point to the latest version of the JRE. Doing so, you jus... | How to upgrade JRE Is there anyway to upgrade the installed JRE in the system? We are having 1.5.0_08 installed in out HP Unix system.We have to upgrade this to 1.5.0_15.Is there a way to patch up the existing JRE and upgrade to a newer version.Or can this only be achieved by installing the newer JRE and set this in th... | TITLE:
How to upgrade JRE
QUESTION:
Is there anyway to upgrade the installed JRE in the system? We are having 1.5.0_08 installed in out HP Unix system.We have to upgrade this to 1.5.0_15.Is there a way to patch up the existing JRE and upgrade to a newer version.Or can this only be achieved by installing the newer JRE ... | [
"java"
] | 2 | 2 | 1,144 | 2 | 0 | 2008-10-06T11:36:37.657000 | 2008-10-06T11:43:47.563000 |
173,974 | 174,431 | How do I use the new SVN merge-tracking? | In my existing (Pre-SVN 1.5) merge strategy, we create a copy of the Trunk (called BasePoint) at the moment of branch-creation for referencing later during the merge. When we need to merge a branch back into the trunk, we perform 2 operations. Merge from BasePoint to LatestTrunk (Trunk has likely moved on since the ori... | The short answer is, You still have to do both steps. The SVN book explains the process for merging as: svn merge http://trunk/path while in a branch working copy svn merge --reintegrate http://branch/path while in a trunk working copy Notice the lack of revision numbers. This probably doesn't feel like a huge win. The... | How do I use the new SVN merge-tracking? In my existing (Pre-SVN 1.5) merge strategy, we create a copy of the Trunk (called BasePoint) at the moment of branch-creation for referencing later during the merge. When we need to merge a branch back into the trunk, we perform 2 operations. Merge from BasePoint to LatestTrunk... | TITLE:
How do I use the new SVN merge-tracking?
QUESTION:
In my existing (Pre-SVN 1.5) merge strategy, we create a copy of the Trunk (called BasePoint) at the moment of branch-creation for referencing later during the merge. When we need to merge a branch back into the trunk, we perform 2 operations. Merge from BasePo... | [
"svn",
"merge",
"merge-tracking"
] | 26 | 28 | 11,678 | 2 | 0 | 2008-10-06T11:39:54.013000 | 2008-10-06T14:11:53.427000 |
173,980 | 173,994 | Is abstracting data type (sometimes) a good idea? | There are numerous times you have an interface that accepts similar type arguments that have a separate domain logic meaning: public static class Database { public static bool HasAccess(string userId, string documentId) { return true; } } Now it's quite easy to have someone key documentId instead of userId and vice ver... | Interesting, but I suspect that in many cases (particularly seialization / RPC APIs) this will only add confustion/overhead. Also - a minor implementation detail, but given this approach I'd make the wrappers fully immutable, not just "internal set" immutable. TBH - I'd probably rather use unit tests for most of this..... | Is abstracting data type (sometimes) a good idea? There are numerous times you have an interface that accepts similar type arguments that have a separate domain logic meaning: public static class Database { public static bool HasAccess(string userId, string documentId) { return true; } } Now it's quite easy to have som... | TITLE:
Is abstracting data type (sometimes) a good idea?
QUESTION:
There are numerous times you have an interface that accepts similar type arguments that have a separate domain logic meaning: public static class Database { public static bool HasAccess(string userId, string documentId) { return true; } } Now it's quit... | [
"c#",
"design-patterns"
] | 2 | 1 | 296 | 9 | 0 | 2008-10-06T11:43:39.950000 | 2008-10-06T11:51:15.193000 |
173,995 | 174,571 | (re)initialise a vector to a certain length with initial values | As a function argument I get a vector & vec (an output vector, hence non-const) with unknown length and values. I want to initialise this vector to a specific length n with all zeroes. This will work vec.clear(); vec.resize( n, 0.0 ); And this will work as well: vec.resize( n ); vec.assign( n, 0.0 ); Is the second more... | std::vector (n).swap(vec); After this, vec is guaranteed to have size and capacity n, with all values 0.0. Perhaps the more idiomatic way since C++11 is vec.assign(n, 0.); vec.shrink_to_fit(); with the second line optional. In the case where vec starts off with more than n elements, whether to call shrink_to_fit is a t... | (re)initialise a vector to a certain length with initial values As a function argument I get a vector & vec (an output vector, hence non-const) with unknown length and values. I want to initialise this vector to a specific length n with all zeroes. This will work vec.clear(); vec.resize( n, 0.0 ); And this will work as... | TITLE:
(re)initialise a vector to a certain length with initial values
QUESTION:
As a function argument I get a vector & vec (an output vector, hence non-const) with unknown length and values. I want to initialise this vector to a specific length n with all zeroes. This will work vec.clear(); vec.resize( n, 0.0 ); And... | [
"c++",
"stl",
"initialization"
] | 7 | 11 | 3,449 | 4 | 0 | 2008-10-06T11:52:02.197000 | 2008-10-06T14:43:15.640000 |
174,005 | 174,608 | How to format a currency datafield in Flex | I have an xml file providing data for a datagrid in Flex 2 that includes an unformatted Price field (ie: it is just a number). Can anyone tell me how I take that datafield and format it - add a currency symbol, put in thousand separators etc. Thanks. S. | As stated above an easy way to do this would be to add a labelFunction to the specified column and format the data within there. Frequently I find that its much easier to work with objects then straight XML so normally if I am receiving XML from a function I would create an object and parser for that XML and you can fo... | How to format a currency datafield in Flex I have an xml file providing data for a datagrid in Flex 2 that includes an unformatted Price field (ie: it is just a number). Can anyone tell me how I take that datafield and format it - add a currency symbol, put in thousand separators etc. Thanks. S. | TITLE:
How to format a currency datafield in Flex
QUESTION:
I have an xml file providing data for a datagrid in Flex 2 that includes an unformatted Price field (ie: it is just a number). Can anyone tell me how I take that datafield and format it - add a currency symbol, put in thousand separators etc. Thanks. S.
ANSW... | [
"apache-flex",
"datagrid",
"currency",
"formatter"
] | 3 | 1 | 17,553 | 3 | 0 | 2008-10-06T11:58:10.030000 | 2008-10-06T14:50:49.183000 |
174,008 | 174,016 | Is it worth converting my functional JavaScript code to an object-oriented design? | I'm currently building a small web application that includes a fair amount of JavaScript. When I was prototyping the initial idea, I just hacked together a few functions to demonstrate how the application would eventually behave intending to go forward re-writing the JavaScript in an object-oriented nature. Now that I'... | No, although I personally find OOP more tasty, it is a means to an end, and not an end in itself. There are many cases where procedural programming makes more sense than OOP, an converting for the sake of converting, could be, as you said, overkill. | Is it worth converting my functional JavaScript code to an object-oriented design? I'm currently building a small web application that includes a fair amount of JavaScript. When I was prototyping the initial idea, I just hacked together a few functions to demonstrate how the application would eventually behave intendin... | TITLE:
Is it worth converting my functional JavaScript code to an object-oriented design?
QUESTION:
I'm currently building a small web application that includes a fair amount of JavaScript. When I was prototyping the initial idea, I just hacked together a few functions to demonstrate how the application would eventual... | [
"javascript",
"software-design",
"web-applications"
] | 8 | 13 | 1,357 | 8 | 0 | 2008-10-06T12:00:47.513000 | 2008-10-06T12:05:12.810000 |
174,024 | 174,036 | Object arrays in method signatures | Consider the following method signatures: public fooMethod (Foo[] foos) { /*...*/ } and public fooMethod (Foo... foos) { /*...*/ } Explanation: The former takes an array of Foo-objects as an argument - fooMethod(new Foo[]{..}) - while the latter takes an arbitrary amount of arguments of type Foo, and presents them as a... | These methods are actually the same. This feature is called varargs and it is a compiler feature. Behind the scenes is is translates to the former version. There is a pitfall if you define a method that accepts Object... and you sent one parameter of type Object[]! | Object arrays in method signatures Consider the following method signatures: public fooMethod (Foo[] foos) { /*...*/ } and public fooMethod (Foo... foos) { /*...*/ } Explanation: The former takes an array of Foo-objects as an argument - fooMethod(new Foo[]{..}) - while the latter takes an arbitrary amount of arguments ... | TITLE:
Object arrays in method signatures
QUESTION:
Consider the following method signatures: public fooMethod (Foo[] foos) { /*...*/ } and public fooMethod (Foo... foos) { /*...*/ } Explanation: The former takes an array of Foo-objects as an argument - fooMethod(new Foo[]{..}) - while the latter takes an arbitrary am... | [
"java",
"arrays",
"methods"
] | 6 | 13 | 5,913 | 4 | 0 | 2008-10-06T12:08:02.710000 | 2008-10-06T12:11:57.600000 |
174,025 | 174,034 | How do you trigger javascript functions from flash? | How do you trigger a javascript function using actionscript in flash? The goal is to trigger jQuery functionality from a flash movie | Take a look at the ExternalInterface -Class. From the AS3-Language Reference: The ExternalInterface class is the External API, an application programming interface that enables straightforward communication between ActionScript and the Flash Player container– for example, an HTML page with JavaScript. Adobe recommends ... | How do you trigger javascript functions from flash? How do you trigger a javascript function using actionscript in flash? The goal is to trigger jQuery functionality from a flash movie | TITLE:
How do you trigger javascript functions from flash?
QUESTION:
How do you trigger a javascript function using actionscript in flash? The goal is to trigger jQuery functionality from a flash movie
ANSWER:
Take a look at the ExternalInterface -Class. From the AS3-Language Reference: The ExternalInterface class is... | [
"javascript",
"jquery",
"flash",
"actionscript",
"function"
] | 9 | 13 | 4,899 | 2 | 0 | 2008-10-06T12:08:24.020000 | 2008-10-06T12:11:05.433000 |
174,059 | 174,076 | Which database would you recommend to use with C# (.NET) application? | I'm developing a little project plan and I came to a point when I need to decide what local databse system to use. The input data is going to be stored on webserver (hosting - MySQL DB). The idea is to build a process to download all necessary data (for example at midnight) and process them. However, there are going to... | I want to say Microsoft Sql 2005 Express, as it (almost) comes as the obvious choice when developing in.NET. But it all depends on what previous db skills you have. If you already know MySql and as you already said, the data should be exported back to MySql. Why not use MySql all the way? | Which database would you recommend to use with C# (.NET) application? I'm developing a little project plan and I came to a point when I need to decide what local databse system to use. The input data is going to be stored on webserver (hosting - MySQL DB). The idea is to build a process to download all necessary data (... | TITLE:
Which database would you recommend to use with C# (.NET) application?
QUESTION:
I'm developing a little project plan and I came to a point when I need to decide what local databse system to use. The input data is going to be stored on webserver (hosting - MySQL DB). The idea is to build a process to download al... | [
"c#",
".net",
"database",
"local"
] | 8 | 14 | 28,468 | 12 | 0 | 2008-10-06T12:22:25.287000 | 2008-10-06T12:28:40.733000 |
174,069 | 174,087 | Adding a new application group in linux | How can I, in Java or using some other programming language, add a new program group in the applications menu in both KDE and Gnome? I am testing with Ubuntu and Kubuntu 8. Putting a simple.menu file in ~/.config/menus/applications-merged worked in Kubuntu, but the same procedure does nothing in Ubuntu. The content of ... | Maybe xdg-desktop-menu does that? See man xdg-desktop-menu or http://manpages.ubuntu.com/manpages/hardy/en/man1/xdg-desktop-menu.html. | Adding a new application group in linux How can I, in Java or using some other programming language, add a new program group in the applications menu in both KDE and Gnome? I am testing with Ubuntu and Kubuntu 8. Putting a simple.menu file in ~/.config/menus/applications-merged worked in Kubuntu, but the same procedure... | TITLE:
Adding a new application group in linux
QUESTION:
How can I, in Java or using some other programming language, add a new program group in the applications menu in both KDE and Gnome? I am testing with Ubuntu and Kubuntu 8. Putting a simple.menu file in ~/.config/menus/applications-merged worked in Kubuntu, but ... | [
"linux",
"ubuntu",
"installation",
"menu"
] | 1 | 1 | 5,534 | 5 | 0 | 2008-10-06T12:25:32.720000 | 2008-10-06T12:35:47.037000 |
174,106 | 174,120 | Scaling an application | I have an application (an IP conferencing service) that I need to scale. It has quite a few independent components/applications, written in different languages (mainly C++ and PHP, some Perl). Currently a single installation runs on 5 machines, with 1-2 components sharing a single box. The configuration of each box the... | I'd go for virtualization. That way you can have various similar configuration machines, and distribute load among them as needed, even if you keep modules in separate VMs. | Scaling an application I have an application (an IP conferencing service) that I need to scale. It has quite a few independent components/applications, written in different languages (mainly C++ and PHP, some Perl). Currently a single installation runs on 5 machines, with 1-2 components sharing a single box. The config... | TITLE:
Scaling an application
QUESTION:
I have an application (an IP conferencing service) that I need to scale. It has quite a few independent components/applications, written in different languages (mainly C++ and PHP, some Perl). Currently a single installation runs on 5 machines, with 1-2 components sharing a sing... | [
"architecture",
"distribution"
] | 4 | 5 | 185 | 2 | 0 | 2008-10-06T12:44:12.120000 | 2008-10-06T12:50:41.377000 |
174,119 | 174,288 | Why do shell script comparisons often use x$VAR = xyes? | I see this often in the build scripts of projects that use autotools (autoconf, automake). When somebody wants to check the value of a shell variable, they frequently use this idiom: if test "x$SHELL_VAR" = "xyes"; then... What is the advantage to this over simply checking the value like this: if test $SHELL_VAR = "yes... | If you're using a shell that does simple substitution and the SHELL_VAR variable does not exist (or is blank), then you need to watch out for the edge cases. The following translations will happen: if test $SHELL_VAR = yes; then --> if test = yes; then if test x$SHELL_VAR = xyes; then --> if test x = xyes; then The fir... | Why do shell script comparisons often use x$VAR = xyes? I see this often in the build scripts of projects that use autotools (autoconf, automake). When somebody wants to check the value of a shell variable, they frequently use this idiom: if test "x$SHELL_VAR" = "xyes"; then... What is the advantage to this over simply... | TITLE:
Why do shell script comparisons often use x$VAR = xyes?
QUESTION:
I see this often in the build scripts of projects that use autotools (autoconf, automake). When somebody wants to check the value of a shell variable, they frequently use this idiom: if test "x$SHELL_VAR" = "xyes"; then... What is the advantage t... | [
"unix",
"shell",
"autotools"
] | 90 | 110 | 29,740 | 7 | 0 | 2008-10-06T12:50:21.343000 | 2008-10-06T13:29:01 |
174,131 | 174,135 | JKS protection | Are JKS (Java Key Store) files encrypted? Do they provide full protection for encryption keys, or do I need to rely solely on access control? Is there a way to ensure that the keys are protected? I'm interested in the gritty details, including algorithm, key management, etc. Is any of this configurable? | They are encrypted. The algorithm is provider dependent. The provider will return the key/certificate based on a password. If you need strong security, find a keystore provider that uses a strong encryption. | JKS protection Are JKS (Java Key Store) files encrypted? Do they provide full protection for encryption keys, or do I need to rely solely on access control? Is there a way to ensure that the keys are protected? I'm interested in the gritty details, including algorithm, key management, etc. Is any of this configurable? | TITLE:
JKS protection
QUESTION:
Are JKS (Java Key Store) files encrypted? Do they provide full protection for encryption keys, or do I need to rely solely on access control? Is there a way to ensure that the keys are protected? I'm interested in the gritty details, including algorithm, key management, etc. Is any of t... | [
"java",
"security",
"encryption",
"jks"
] | 10 | 3 | 5,135 | 2 | 0 | 2008-10-06T12:54:15.080000 | 2008-10-06T12:54:58.310000 |
174,149 | 184,573 | Storing X509 certificates in DB - Yea or Nay? | I find myself needing to store public key certificates, and a single private key certificate for an in-house application. A member of our team suggested storing the X509 certificates in the database, instead of storing it in the windows certificate store, as we have been doing up until now. I don't like re-inventing th... | What is the purpose of your application? If you are handling all the crypto in your application, and can reference a PKCS#12 cert + private key file, then going the database route is probably fine. If you need to use Windows Crypto API to access the certs, then you'll probably want to keep using the built-in certificat... | Storing X509 certificates in DB - Yea or Nay? I find myself needing to store public key certificates, and a single private key certificate for an in-house application. A member of our team suggested storing the X509 certificates in the database, instead of storing it in the windows certificate store, as we have been do... | TITLE:
Storing X509 certificates in DB - Yea or Nay?
QUESTION:
I find myself needing to store public key certificates, and a single private key certificate for an in-house application. A member of our team suggested storing the X509 certificates in the database, instead of storing it in the windows certificate store, ... | [
"windows",
"certificate",
"pki"
] | 4 | 3 | 5,099 | 2 | 0 | 2008-10-06T12:59:05.650000 | 2008-10-08T19:56:36.630000 |
174,153 | 174,175 | Pre and post increment/decrement operators in C# | In C#, does anybody know why the following will compile: int i = 1; ++i; i++; but this will not compile? int i = 1; ++i++; (Compiler error: The operand of an increment or decrement operator must be a variable, property or indexer.) | you are running one of the operands on the result of the other, the result of a increment/decrement is a value - and you can not use increment/decrement on a value it has to be a variable that can be set. | Pre and post increment/decrement operators in C# In C#, does anybody know why the following will compile: int i = 1; ++i; i++; but this will not compile? int i = 1; ++i++; (Compiler error: The operand of an increment or decrement operator must be a variable, property or indexer.) | TITLE:
Pre and post increment/decrement operators in C#
QUESTION:
In C#, does anybody know why the following will compile: int i = 1; ++i; i++; but this will not compile? int i = 1; ++i++; (Compiler error: The operand of an increment or decrement operator must be a variable, property or indexer.)
ANSWER:
you are runn... | [
"c#"
] | 16 | 19 | 5,460 | 4 | 0 | 2008-10-06T12:59:55.990000 | 2008-10-06T13:02:46.920000 |
174,155 | 174,223 | Switch statement fallthrough in C#? | Switch statement fallthrough is one of my personal major reasons for loving switch vs. if/else if constructs. An example is in order here: static string NumberToWords(int number) { string[] numbers = new string[] { "", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" }; string[] tens = new string[... | (Copy/paste of an answer I provided elsewhere ) Falling through switch - case s can be achieved by having no code in a case (see case 0 ), or using the special goto case (see case 1 ) or goto default (see case 2 ) forms: switch (/*...*/) { case 0: // shares the exact same code as case 1 case 1: // do something goto cas... | Switch statement fallthrough in C#? Switch statement fallthrough is one of my personal major reasons for loving switch vs. if/else if constructs. An example is in order here: static string NumberToWords(int number) { string[] numbers = new string[] { "", "one", "two", "three", "four", "five", "six", "seven", "eight", "... | TITLE:
Switch statement fallthrough in C#?
QUESTION:
Switch statement fallthrough is one of my personal major reasons for loving switch vs. if/else if constructs. An example is in order here: static string NumberToWords(int number) { string[] numbers = new string[] { "", "one", "two", "three", "four", "five", "six", "... | [
"c#",
"switch-statement"
] | 420 | 739 | 234,844 | 14 | 0 | 2008-10-06T13:00:15.553000 | 2008-10-06T13:13:18.647000 |
174,170 | 174,203 | Python - Py2exe can't build .exe using the 'email' module | py2exe does not work with the standard email module Hello. I am trying to use py2exe for converting a script into an exe. The build process shows this: The following modules appear to be missing ['email.Encoders', 'email.Generator', 'email.Iterators', 'email.MIMEBase', 'email.MIMEMultipart', 'email.MIMEText', 'email.Ut... | If you don't have to work with py2exe, bbfreeze works better, and I've tried it with the email module. http://pypi.python.org/pypi/bbfreeze/0.95.4 | Python - Py2exe can't build .exe using the 'email' module py2exe does not work with the standard email module Hello. I am trying to use py2exe for converting a script into an exe. The build process shows this: The following modules appear to be missing ['email.Encoders', 'email.Generator', 'email.Iterators', 'email.MIM... | TITLE:
Python - Py2exe can't build .exe using the 'email' module
QUESTION:
py2exe does not work with the standard email module Hello. I am trying to use py2exe for converting a script into an exe. The build process shows this: The following modules appear to be missing ['email.Encoders', 'email.Generator', 'email.Iter... | [
"python",
"winapi",
"py2exe"
] | 8 | 1 | 7,592 | 8 | 0 | 2008-10-06T13:02:03.287000 | 2008-10-06T13:09:26.687000 |
174,171 | 211,374 | Including non-Java sources in a Maven project | I'm starting on a project that I expect will include a substantial amount of non-Java code (mostly shell and SQL scripts). I would still like to manage this project with Maven. What are the best practices wrt non-Java source code and Maven? Where should the source go? What happens to them during the different lifecycle... | You must not put the non-Java code into resources, if you don't want to include these files into your JAR files like heckj has suggested. Everything that is located in resources is automatically copied into the JAR file and I guess you don't want shell scripts and SQL scripts be included in a JAR file, right? So the Ma... | Including non-Java sources in a Maven project I'm starting on a project that I expect will include a substantial amount of non-Java code (mostly shell and SQL scripts). I would still like to manage this project with Maven. What are the best practices wrt non-Java source code and Maven? Where should the source go? What ... | TITLE:
Including non-Java sources in a Maven project
QUESTION:
I'm starting on a project that I expect will include a substantial amount of non-Java code (mostly shell and SQL scripts). I would still like to manage this project with Maven. What are the best practices wrt non-Java source code and Maven? Where should th... | [
"maven",
"maven-2"
] | 8 | 9 | 3,936 | 2 | 0 | 2008-10-06T13:02:16.233000 | 2008-10-17T08:12:00.360000 |
174,174 | 177,339 | Oracle APEX access | Is Oracle Application Express suitable for Intranet client/server application? If so, what should I do to enable client access to application? Well, I am working as a PowerBuilder/Oracle developer, so I am familiar with client/server architecture. I have recently read an article about APEX so I would like to develop AP... | "since there would be nothing like http:/www.appdomain.com" Given you are familiar with client/server technology, I guess you know about TNSNAMES.ORA Your Apex host would be defined in a similar manner to the way the database host is defined in tnsnames.ora If your tnsnames.ora says that your database is at 192.168.0.2... | Oracle APEX access Is Oracle Application Express suitable for Intranet client/server application? If so, what should I do to enable client access to application? Well, I am working as a PowerBuilder/Oracle developer, so I am familiar with client/server architecture. I have recently read an article about APEX so I would... | TITLE:
Oracle APEX access
QUESTION:
Is Oracle Application Express suitable for Intranet client/server application? If so, what should I do to enable client access to application? Well, I am working as a PowerBuilder/Oracle developer, so I am familiar with client/server architecture. I have recently read an article abo... | [
"oracle-apex"
] | 2 | 2 | 4,454 | 4 | 0 | 2008-10-06T13:02:40.930000 | 2008-10-07T05:56:24.987000 |
174,181 | 176,548 | In which layer are you putting your REST api? | Our application is structured something like: UI <--> REST API <--> Workflow <--> Business Logic <--> DAL <--> DB However, I am seeing a few examples where it looks like people are doing UI <--> Workflow <--> REST API <--> Business Logic <--> DAL <--> DB Is this my imagination? Or is the second option considered a viab... | It really is relative to what you mean workflow. Hypermedia as the engine of application state will give you a directed graph of states/resources. It is not necessary that these graphs form a workflow (e.g have a specific start and end point). They may well form a cycle, have bidirectional links and whatnot. I assume t... | In which layer are you putting your REST api? Our application is structured something like: UI <--> REST API <--> Workflow <--> Business Logic <--> DAL <--> DB However, I am seeing a few examples where it looks like people are doing UI <--> Workflow <--> REST API <--> Business Logic <--> DAL <--> DB Is this my imaginat... | TITLE:
In which layer are you putting your REST api?
QUESTION:
Our application is structured something like: UI <--> REST API <--> Workflow <--> Business Logic <--> DAL <--> DB However, I am seeing a few examples where it looks like people are doing UI <--> Workflow <--> REST API <--> Business Logic <--> DAL <--> DB I... | [
"language-agnostic",
"rest"
] | 4 | 4 | 935 | 3 | 0 | 2008-10-06T13:04:15.623000 | 2008-10-06T22:58:19.683000 |
174,193 | 175,613 | Visual Studio: Is there a "move class to different namespace" refactoring? | I'm doing some architectural cleanup that involves moving a bunch of classes into different projects and/or namespaces. Currently I'm moving the files by hand, building, and then manually adding using Foo statements as needed to resolve compilation errors. Anyone know of a smarter way of doing this? (We're a CodeRush a... | As mentioned in the comments, this answer is now outdated. Please see the up-to-date answer below Resharper is the only tool I am aware of what has this ability. There is also a lot of other functionality that it has that is missing in CodeRush and Refactor! | Visual Studio: Is there a "move class to different namespace" refactoring? I'm doing some architectural cleanup that involves moving a bunch of classes into different projects and/or namespaces. Currently I'm moving the files by hand, building, and then manually adding using Foo statements as needed to resolve compilat... | TITLE:
Visual Studio: Is there a "move class to different namespace" refactoring?
QUESTION:
I'm doing some architectural cleanup that involves moving a bunch of classes into different projects and/or namespaces. Currently I'm moving the files by hand, building, and then manually adding using Foo statements as needed t... | [
"visual-studio",
"refactoring"
] | 88 | 31 | 69,370 | 9 | 0 | 2008-10-06T13:07:19.313000 | 2008-10-06T18:35:10.633000 |
174,198 | 174,202 | C#3.0 Automatic properties, why not access the field directly? | With the new approach of having the get/set within the attribut of the class like that: public string FirstName { get; set; } Why simply not simply put the attribute FirstName public without accessor? | Two of the big problems with direct access to variable inside class (field/attribute) are: 1) You can't easily databind against fields. 2) If you expose public fields from your classes you can't later change them to properties (for example: to add validation logic to the setters) | C#3.0 Automatic properties, why not access the field directly? With the new approach of having the get/set within the attribut of the class like that: public string FirstName { get; set; } Why simply not simply put the attribute FirstName public without accessor? | TITLE:
C#3.0 Automatic properties, why not access the field directly?
QUESTION:
With the new approach of having the get/set within the attribut of the class like that: public string FirstName { get; set; } Why simply not simply put the attribute FirstName public without accessor?
ANSWER:
Two of the big problems with ... | [
"c#-3.0",
"properties"
] | 13 | 30 | 2,633 | 9 | 0 | 2008-10-06T13:07:54.990000 | 2008-10-06T13:09:08.560000 |
174,232 | 174,312 | How to open a new email, and assign subject, using .NET Compact Framework | Basically I'm trying to accomplish the same thing that "mailto:bgates@microsoft.com" does in Internet Explorer Mobile. But I want to be able to do it from a managed Windows Mobile application. I don't want to send an email pro grammatically in the background. I want to be able to create the email in Pocket Outlook and ... | I assume you use C#. You add a reference to System.Diagnostics and then write the following code: ProcessStartInfo psi = new ProcessStartInfo("mailto:bla@bla.com?subject=MySubject", ""); Process.Start(psi); This will start the default email client on your mobile device. The mailto protocol definition might come handy t... | How to open a new email, and assign subject, using .NET Compact Framework Basically I'm trying to accomplish the same thing that "mailto:bgates@microsoft.com" does in Internet Explorer Mobile. But I want to be able to do it from a managed Windows Mobile application. I don't want to send an email pro grammatically in th... | TITLE:
How to open a new email, and assign subject, using .NET Compact Framework
QUESTION:
Basically I'm trying to accomplish the same thing that "mailto:bgates@microsoft.com" does in Internet Explorer Mobile. But I want to be able to do it from a managed Windows Mobile application. I don't want to send an email pro g... | [
"email",
"windows-mobile",
"compact-framework",
"pocketpc"
] | 7 | 8 | 1,346 | 2 | 0 | 2008-10-06T13:14:30.423000 | 2008-10-06T13:36:37.633000 |
174,238 | 174,306 | Best way to send data to aspx page in ASP.NET 2.0/3.5? | Which is Best way to send data to aspx page, and why? using query string using session using cross page postback Something else Thanks. What are you trying to achieve? More info. please For example search form and advanced search form or multi step user registration. | It really depends greatly on your uses. using query string Query string data is a good way of sending data which is not important to keep secure. It is probably the best and easiest way of passing data which users should be able to see and it isn't a problem if they try to change the querystring data. Paging data and s... | Best way to send data to aspx page in ASP.NET 2.0/3.5? Which is Best way to send data to aspx page, and why? using query string using session using cross page postback Something else Thanks. What are you trying to achieve? More info. please For example search form and advanced search form or multi step user registratio... | TITLE:
Best way to send data to aspx page in ASP.NET 2.0/3.5?
QUESTION:
Which is Best way to send data to aspx page, and why? using query string using session using cross page postback Something else Thanks. What are you trying to achieve? More info. please For example search form and advanced search form or multi ste... | [
"asp.net"
] | 0 | 3 | 1,045 | 2 | 0 | 2008-10-06T13:16:35.830000 | 2008-10-06T13:33:35.580000 |
174,239 | 174,257 | C# Default scope resolution | I have inherited a c# class 'Button' (which I can't change) which clashes with the BCL class 'Windows.Forms.Button'. Normally, Id be very happy to go: MyPackage.MyClass.Button; But there are a large number or references to this class which is a pain to have to re-type. Is there any way to get the compiler (linker?) to ... | Add this to the top of the file: using MyButton = MyPackage.MyClass.Button; Now you can reference your custom button using a distinct name. You may need to do something similar for the stock button if you use that anywhere in the same file. | C# Default scope resolution I have inherited a c# class 'Button' (which I can't change) which clashes with the BCL class 'Windows.Forms.Button'. Normally, Id be very happy to go: MyPackage.MyClass.Button; But there are a large number or references to this class which is a pain to have to re-type. Is there any way to ge... | TITLE:
C# Default scope resolution
QUESTION:
I have inherited a c# class 'Button' (which I can't change) which clashes with the BCL class 'Windows.Forms.Button'. Normally, Id be very happy to go: MyPackage.MyClass.Button; But there are a large number or references to this class which is a pain to have to re-type. Is t... | [
"c#",
"linker",
"alias",
"scope-resolution",
"name-clash"
] | 6 | 21 | 1,293 | 5 | 0 | 2008-10-06T13:16:44.363000 | 2008-10-06T13:22:18.300000 |
174,240 | 174,256 | Writing a language for the Windows Scripting Host (WSH) | Has anyone had any experience targetting WSH in the way that VBScript, JScript, PerlScript, xbScript and ForthScript (among other) do, such that the language can be used from the command line and embedded in server-side web pages? Where do I go to get that kind of information? | These are called Windows Script Engines and are implemented by exposing the engine via COM. There is a lot documentation on MSDN, and the actual interfaces are fairly straight forward. | Writing a language for the Windows Scripting Host (WSH) Has anyone had any experience targetting WSH in the way that VBScript, JScript, PerlScript, xbScript and ForthScript (among other) do, such that the language can be used from the command line and embedded in server-side web pages? Where do I go to get that kind of... | TITLE:
Writing a language for the Windows Scripting Host (WSH)
QUESTION:
Has anyone had any experience targetting WSH in the way that VBScript, JScript, PerlScript, xbScript and ForthScript (among other) do, such that the language can be used from the command line and embedded in server-side web pages? Where do I go t... | [
"programming-languages",
"wsh",
"scripting-language"
] | 6 | 9 | 663 | 1 | 0 | 2008-10-06T13:16:53.710000 | 2008-10-06T13:21:42.983000 |
174,243 | 174,859 | How can I create a Firebug-like bottom window Firefox extension | Several extensions offer a "bottom window" for viewing their content. Firebug and ScribeFire are good examples where the main content appears at the bottom of the browser. This appears to be very similar to the sidebar functionality in the browser. Is there a best practice/method to create a bottom window in an extensi... | You would create your extensions UI using an Overlay. In the overlay you specify the insertion point of your UI with regards to the main browser page, browser.xul. Excerpted from Firefox's main pages browser.xul we have and excerpted from a previous version of Firebug file browserOverlay.xul we have Notice that both bl... | How can I create a Firebug-like bottom window Firefox extension Several extensions offer a "bottom window" for viewing their content. Firebug and ScribeFire are good examples where the main content appears at the bottom of the browser. This appears to be very similar to the sidebar functionality in the browser. Is ther... | TITLE:
How can I create a Firebug-like bottom window Firefox extension
QUESTION:
Several extensions offer a "bottom window" for viewing their content. Firebug and ScribeFire are good examples where the main content appears at the bottom of the browser. This appears to be very similar to the sidebar functionality in th... | [
"firefox",
"firefox-addon",
"xul"
] | 6 | 8 | 2,291 | 1 | 0 | 2008-10-06T13:17:18.700000 | 2008-10-06T15:50:07.877000 |
174,248 | 175,496 | Strategy for tracking user recent activity | Our customer would like to know who is online and currently using the custom application we wrote for them. I discussed it with them and this does not need to be exact, more of a guestimate will work. So my thought is a 15 minute time interval to determine user activity. Some ideas I have for doing this are as follows:... | Our solution is to maintain a "Transaction" table (which follows what was done), in addition to our "Session" table (which follows who was here). UPDATE, INSERT and DELETE instructions are all managed through a "Transaction" object and each of these SQL instruction is stored in the "Transaction" table once it has been ... | Strategy for tracking user recent activity Our customer would like to know who is online and currently using the custom application we wrote for them. I discussed it with them and this does not need to be exact, more of a guestimate will work. So my thought is a 15 minute time interval to determine user activity. Some ... | TITLE:
Strategy for tracking user recent activity
QUESTION:
Our customer would like to know who is online and currently using the custom application we wrote for them. I discussed it with them and this does not need to be exact, more of a guestimate will work. So my thought is a 15 minute time interval to determine us... | [
"database",
"database-design",
"user-input",
"n-tier-architecture"
] | 12 | 5 | 5,080 | 12 | 0 | 2008-10-06T13:19:07.527000 | 2008-10-06T18:11:51.010000 |
174,263 | 174,279 | Load and save bitmaps using dotnet | This may be simple one, but 5 mins of Googling didn't give me the answer. How do you save and load bitmaps using.Net librabries? I have an Image object and I need to save it to disk in some format (preferably png) and load back in later. A C# example would be great. | Here's a really simple example. Top of code file using System.Drawing; In code Image test = new Bitmap("picture.bmp"); test.Save("picture.png", System.Drawing.Imaging.ImageFormat.Png); Remember to give write permissions to the ASPNET user for the folder where the image is to be saved. | Load and save bitmaps using dotnet This may be simple one, but 5 mins of Googling didn't give me the answer. How do you save and load bitmaps using.Net librabries? I have an Image object and I need to save it to disk in some format (preferably png) and load back in later. A C# example would be great. | TITLE:
Load and save bitmaps using dotnet
QUESTION:
This may be simple one, but 5 mins of Googling didn't give me the answer. How do you save and load bitmaps using.Net librabries? I have an Image object and I need to save it to disk in some format (preferably png) and load back in later. A C# example would be great.
... | [
".net",
"graphics"
] | 2 | 12 | 2,511 | 3 | 0 | 2008-10-06T13:23:46.177000 | 2008-10-06T13:26:56.527000 |
174,289 | 174,332 | Techniques for dynamic (algorithmic) graphics | I'm programming an application for a 32 bit processor with limited memory (512k flash, 32k RAM). The display on this device is 128x160 with 16 bit color, which would normally consume 40k ram if I were to buffer it on my processor. I don't have that much RAM, so I'm looking for techniques, tips, tricks, ideas for genera... | In a way, you are in pretty much the same situation game developers where at the time of the Tandys, Spectrums and early PCs. So, here's my recommendation: You should read Michael Abrash writings on computer graphics. They were written in a time where a floating point co-processor was an optional piece of hardware, and... | Techniques for dynamic (algorithmic) graphics I'm programming an application for a 32 bit processor with limited memory (512k flash, 32k RAM). The display on this device is 128x160 with 16 bit color, which would normally consume 40k ram if I were to buffer it on my processor. I don't have that much RAM, so I'm looking ... | TITLE:
Techniques for dynamic (algorithmic) graphics
QUESTION:
I'm programming an application for a 32 bit processor with limited memory (512k flash, 32k RAM). The display on this device is 128x160 with 16 bit color, which would normally consume 40k ram if I were to buffer it on my processor. I don't have that much RA... | [
"graphics",
"user-interface",
"embedded",
"svg"
] | 6 | 8 | 466 | 4 | 0 | 2008-10-06T13:29:06.040000 | 2008-10-06T13:41:14.423000 |
174,292 | 174,313 | What is the best way to delete a value from an array in Perl? | The array has lots of data and I need to delete two elements. Below is the code snippet I am using, my @array = (1,2,3,4,5,5,6,5,4,9); my $element_omitted = 5; @array = grep { $_!= $element_omitted } @array; | Use splice if you already know the index of the element you want to delete. Grep works if you are searching. If you need to do a lot of these, you will get much better performance if you keep your array in sorted order, since you can then do binary search to find the necessary index. If it makes sense in your context, ... | What is the best way to delete a value from an array in Perl? The array has lots of data and I need to delete two elements. Below is the code snippet I am using, my @array = (1,2,3,4,5,5,6,5,4,9); my $element_omitted = 5; @array = grep { $_!= $element_omitted } @array; | TITLE:
What is the best way to delete a value from an array in Perl?
QUESTION:
The array has lots of data and I need to delete two elements. Below is the code snippet I am using, my @array = (1,2,3,4,5,5,6,5,4,9); my $element_omitted = 5; @array = grep { $_!= $element_omitted } @array;
ANSWER:
Use splice if you alrea... | [
"arrays",
"perl"
] | 89 | 95 | 195,869 | 15 | 0 | 2008-10-06T13:29:55.743000 | 2008-10-06T13:37:05.963000 |
174,308 | 1,492,065 | Using both Eclipse and NetBeans on the same project | Eclipse is a really great editor, which I prefer to use, but the GUI design tools for Eclipse are lacking. On the other hand, NetBeans works really well for GUI design. Are there any tips, tricks or pitfalls for using NetBeans for GUI design and Eclipse for everything else on the same project? EDIT: I tried Maven, and ... | Create your GUI with Netbeans. copy a Eclipse.project file (like below) into the project folder change the MyProjectName. Open Eclipse and import the project into your workspace, so you can open the projekt from your Eclipse workspace with Netbeans. Now you able to use Netbeans to create and change the GUI and editing ... | Using both Eclipse and NetBeans on the same project Eclipse is a really great editor, which I prefer to use, but the GUI design tools for Eclipse are lacking. On the other hand, NetBeans works really well for GUI design. Are there any tips, tricks or pitfalls for using NetBeans for GUI design and Eclipse for everything... | TITLE:
Using both Eclipse and NetBeans on the same project
QUESTION:
Eclipse is a really great editor, which I prefer to use, but the GUI design tools for Eclipse are lacking. On the other hand, NetBeans works really well for GUI design. Are there any tips, tricks or pitfalls for using NetBeans for GUI design and Ecli... | [
"java",
"eclipse",
"netbeans"
] | 38 | 6 | 13,890 | 8 | 0 | 2008-10-06T13:34:39.117000 | 2009-09-29T11:50:07.193000 |
174,319 | 174,328 | asp:TextBox ReadOnly=true or Enabled=false? | What's the difference between the Enabled and the ReadOnly-properties of an asp:TextBox control? | If a control is disabled it cannot be edited and its content is excluded when the form is submitted. If a control is readonly it cannot be edited, but its content (if any) is still included with the submission. | asp:TextBox ReadOnly=true or Enabled=false? What's the difference between the Enabled and the ReadOnly-properties of an asp:TextBox control? | TITLE:
asp:TextBox ReadOnly=true or Enabled=false?
QUESTION:
What's the difference between the Enabled and the ReadOnly-properties of an asp:TextBox control?
ANSWER:
If a control is disabled it cannot be edited and its content is excluded when the form is submitted. If a control is readonly it cannot be edited, but i... | [
"asp.net",
"textbox",
"readonly",
"disabled-control"
] | 64 | 90 | 155,178 | 7 | 0 | 2008-10-06T13:38:30.687000 | 2008-10-06T13:39:54.613000 |
174,322 | 175,401 | How do I retrieve the size of a directory from Perforce? | I would like to know how much disk space a directory is going to consume before I bring it over from the Perforce server. I don't see any way to do this other than getting the files and looking at the size of the directory in a file manager. This, of course, defeats the purpose. Is there a way to get file size info fro... | I don't know how I missed this command, but here's how you do it: p4 sizes -s //depot/directory/... | How do I retrieve the size of a directory from Perforce? I would like to know how much disk space a directory is going to consume before I bring it over from the Perforce server. I don't see any way to do this other than getting the files and looking at the size of the directory in a file manager. This, of course, defe... | TITLE:
How do I retrieve the size of a directory from Perforce?
QUESTION:
I would like to know how much disk space a directory is going to consume before I bring it over from the Perforce server. I don't see any way to do this other than getting the files and looking at the size of the directory in a file manager. Thi... | [
"perforce"
] | 20 | 30 | 12,004 | 4 | 0 | 2008-10-06T13:39:08.843000 | 2008-10-06T17:50:05.500000 |
174,325 | 174,361 | Comparative advantages of xdoc and apt formats | What are the relative merits of the xdoc and apt formats for writing websites of Maven projects? Is one more expressive than the other? Has one got better tool support than the other? | The XDOC format is definitely a richer mechanism for creating documents and is required if you want to produce documents with TOC/TOF, headers, footers or footnotes (and other document attributes), since the APT format doesn't support these. That being said, I tend to use the APT format for almost all internal document... | Comparative advantages of xdoc and apt formats What are the relative merits of the xdoc and apt formats for writing websites of Maven projects? Is one more expressive than the other? Has one got better tool support than the other? | TITLE:
Comparative advantages of xdoc and apt formats
QUESTION:
What are the relative merits of the xdoc and apt formats for writing websites of Maven projects? Is one more expressive than the other? Has one got better tool support than the other?
ANSWER:
The XDOC format is definitely a richer mechanism for creating ... | [
"maven-2",
"apt",
"xdoc"
] | 1 | 2 | 398 | 2 | 0 | 2008-10-06T13:39:41.200000 | 2008-10-06T13:50:35.247000 |
174,348 | 174,485 | Will web browsers cache content over https | Will content requested over https still be cached by web browsers or do they consider this insecure behaviour? If this is the case is there anyway to tell them it's ok to cache? | By default web browsers should cache content over HTTPS the same as over HTTP, unless explicitly told otherwise via the HTTP Headers received. This link is a good introduction to setting cache setting in HTTP headers. is there anyway to tell them it's ok to cache? This can be achieved by setting the max-age value in th... | Will web browsers cache content over https Will content requested over https still be cached by web browsers or do they consider this insecure behaviour? If this is the case is there anyway to tell them it's ok to cache? | TITLE:
Will web browsers cache content over https
QUESTION:
Will content requested over https still be cached by web browsers or do they consider this insecure behaviour? If this is the case is there anyway to tell them it's ok to cache?
ANSWER:
By default web browsers should cache content over HTTPS the same as over... | [
"security",
"https"
] | 251 | 136 | 96,990 | 3 | 0 | 2008-10-06T13:46:28.970000 | 2008-10-06T14:25:45.130000 |
174,349 | 174,397 | Forcing single-argument constructors to be explicit in C++? | By default, in C++, a single-argument constructor can be used as an implicit conversion operator. This can be suppressed by marking the constructor as explicit. I'd prefer to make "explicit" be the default, so that the compiler cannot silently use these constructors for conversion. Is there a way to do this in standard... | Nope, you have to do it all by hand. It's a pain, but you certainly should get in the habit of making single argument constructors explicit. I can't imagine the pain you would have if you did find a solution and then had to port the code to another platform. You should usually shy away from compiler extensions like thi... | Forcing single-argument constructors to be explicit in C++? By default, in C++, a single-argument constructor can be used as an implicit conversion operator. This can be suppressed by marking the constructor as explicit. I'd prefer to make "explicit" be the default, so that the compiler cannot silently use these constr... | TITLE:
Forcing single-argument constructors to be explicit in C++?
QUESTION:
By default, in C++, a single-argument constructor can be used as an implicit conversion operator. This can be suppressed by marking the constructor as explicit. I'd prefer to make "explicit" be the default, so that the compiler cannot silentl... | [
"c++"
] | 27 | 23 | 24,635 | 6 | 0 | 2008-10-06T13:46:42.307000 | 2008-10-06T14:00:00.033000 |
174,351 | 174,505 | 1-dimensional nesting algorithm | What is an effective algorithm for nesting 1 dimensional lengths into predefined stock lengths? For example, If you required steel bars in the following quantities and lengths, 5 x 2 metres 5 x 3 metres 5 x 4 metres and these can be cut from 10 metre bars. How could you calculate the pattern for cutting the 10m bars so... | Actually, there's an even more specific problem that applies: The cutting stock problem: The cutting stock problem is an optimization problem, or more specifically, an integer linear programming problem. It arises from many applications in industry. Imagine that you work in a paper mill and you have a number of rolls o... | 1-dimensional nesting algorithm What is an effective algorithm for nesting 1 dimensional lengths into predefined stock lengths? For example, If you required steel bars in the following quantities and lengths, 5 x 2 metres 5 x 3 metres 5 x 4 metres and these can be cut from 10 metre bars. How could you calculate the pat... | TITLE:
1-dimensional nesting algorithm
QUESTION:
What is an effective algorithm for nesting 1 dimensional lengths into predefined stock lengths? For example, If you required steel bars in the following quantities and lengths, 5 x 2 metres 5 x 3 metres 5 x 4 metres and these can be cut from 10 metre bars. How could you... | [
"algorithm"
] | 8 | 9 | 15,728 | 4 | 0 | 2008-10-06T13:47:22.447000 | 2008-10-06T14:30:08.133000 |
174,352 | 174,957 | Using ButtonField or HyperLinkField to write a cookie in ASP.NET | I currently have a DetailsView in ASP.NET that gets data from the database based on an ID passed through a QueryString. What I've been trying to do now is to then use that same ID in a new cookie that is created when a user clicks either a ButtonField or a HyperLinkField. What I have in the.aspx is this: When using a r... | Use the CommandName and the CommandArgument parameters of the Button class. Specifying a CommandName will expose the ItemCommand event. From there you can check for the CommandName, easily grab the CommandArgument (the ID of your row or item) then push whatever data your need into your cookie that way. More formally, y... | Using ButtonField or HyperLinkField to write a cookie in ASP.NET I currently have a DetailsView in ASP.NET that gets data from the database based on an ID passed through a QueryString. What I've been trying to do now is to then use that same ID in a new cookie that is created when a user clicks either a ButtonField or ... | TITLE:
Using ButtonField or HyperLinkField to write a cookie in ASP.NET
QUESTION:
I currently have a DetailsView in ASP.NET that gets data from the database based on an ID passed through a QueryString. What I've been trying to do now is to then use that same ID in a new cookie that is created when a user clicks either... | [
"asp.net",
"vb.net",
"cookies",
"detailsview",
"buttonfield"
] | 1 | 1 | 2,987 | 3 | 0 | 2008-10-06T13:47:46.907000 | 2008-10-06T16:13:26.287000 |
174,356 | 174,441 | Ways to ASSERT expressions at build time in C | I'm tidying up some older code that uses 'magic numbers' all over the place to set hardware registers, and I would like to use constants instead of these numbers to make the code somewhat more expressive (in fact they will map to the names/values used to document the registers). However, I'm concerned that with the vol... | NEW ANSWER: In my original answer (below), I had to have two different macros to support assertions in a function scope and at the global scope. I wondered if it was possible to come up with a single solution that would work in both scopes. I was able to find a solution that worked for Visual Studio and Comeau compiler... | Ways to ASSERT expressions at build time in C I'm tidying up some older code that uses 'magic numbers' all over the place to set hardware registers, and I would like to use constants instead of these numbers to make the code somewhat more expressive (in fact they will map to the names/values used to document the regist... | TITLE:
Ways to ASSERT expressions at build time in C
QUESTION:
I'm tidying up some older code that uses 'magic numbers' all over the place to set hardware registers, and I would like to use constants instead of these numbers to make the code somewhat more expressive (in fact they will map to the names/values used to d... | [
"c",
"refactoring",
"assert",
"static-assert"
] | 26 | 28 | 22,633 | 11 | 0 | 2008-10-06T13:49:17.403000 | 2008-10-06T14:15:32.360000 |
174,365 | 174,388 | How to detect a file modifications with TFS? | It seems that when I use a tool (such as winmerge) to update my codebase... my Visual Studio Team System (VSTS) integration with Team Foundation Server (TFS) doesn't seem to pick it up. How do I know which files to check out and check back in? Is there something I am missing? Is this a feature that isn't part of VSTS &... | First, this is probably because the files have not yet been checked out. If you do that first before running your update, TFS will see those changes. Second, you can use TFS Power Tools (available from MS) to review local repository for changes that are not recognized. If there are found differences, power toys resets ... | How to detect a file modifications with TFS? It seems that when I use a tool (such as winmerge) to update my codebase... my Visual Studio Team System (VSTS) integration with Team Foundation Server (TFS) doesn't seem to pick it up. How do I know which files to check out and check back in? Is there something I am missing... | TITLE:
How to detect a file modifications with TFS?
QUESTION:
It seems that when I use a tool (such as winmerge) to update my codebase... my Visual Studio Team System (VSTS) integration with Team Foundation Server (TFS) doesn't seem to pick it up. How do I know which files to check out and check back in? Is there some... | [
"visual-studio",
"tfs",
"version-control",
"winmerge"
] | 12 | 12 | 5,093 | 3 | 0 | 2008-10-06T13:51:23.420000 | 2008-10-06T13:58:52.953000 |
174,381 | 174,392 | How can I check if at least one of two subexpressions in a regular expression match? | I am trying to match floating-point decimal numbers with a regular expression. There may or may not be a number before the decimal, and the decimal may or may not be present, and if it is present it may or may not have digits after it. (For this application, a leading +/- or a trailing "E123" is not allowed). I have wr... | I think this will do what you want. It either starts with a digit, in which case the decimal point and digits after it are optional, or it starts with a decimal point, in which case at least one digit is mandatory after it. /^\d+(\.\d*)?|\.\d+$/ | How can I check if at least one of two subexpressions in a regular expression match? I am trying to match floating-point decimal numbers with a regular expression. There may or may not be a number before the decimal, and the decimal may or may not be present, and if it is present it may or may not have digits after it.... | TITLE:
How can I check if at least one of two subexpressions in a regular expression match?
QUESTION:
I am trying to match floating-point decimal numbers with a regular expression. There may or may not be a number before the decimal, and the decimal may or may not be present, and if it is present it may or may not hav... | [
"regex",
"syntax"
] | 7 | 6 | 350 | 3 | 0 | 2008-10-06T13:55:55.643000 | 2008-10-06T13:59:21.470000 |
174,383 | 174,544 | Does anyone know if NetBeans 6.x can be used with Java SE 6 on Leopard? | Java SE 6 (64 bit only) is now on OS X and that is a good thing. As I understand it since Eclipse is still Carbon and thus 32 bit, it cannot be used for 1.6 on Leopard, only 1.5. Does anyone know if NetBeans 6.x can be used with Java SE 6 on Leopard utilizing its JVM? | Yes, you should be able to. A number of blogs have reported running Netbeans on 1.6 as well as the the problems they had with earlier versions of NB. The NB issue tracker also has a number of bugs that have been fixed that affected 1.6 on Mac OS. If you have trouble getting it to run, you might also try the Netbeans fo... | Does anyone know if NetBeans 6.x can be used with Java SE 6 on Leopard? Java SE 6 (64 bit only) is now on OS X and that is a good thing. As I understand it since Eclipse is still Carbon and thus 32 bit, it cannot be used for 1.6 on Leopard, only 1.5. Does anyone know if NetBeans 6.x can be used with Java SE 6 on Leopar... | TITLE:
Does anyone know if NetBeans 6.x can be used with Java SE 6 on Leopard?
QUESTION:
Java SE 6 (64 bit only) is now on OS X and that is a good thing. As I understand it since Eclipse is still Carbon and thus 32 bit, it cannot be used for 1.6 on Leopard, only 1.5. Does anyone know if NetBeans 6.x can be used with J... | [
"java",
"eclipse",
"netbeans",
"osx-leopard"
] | 1 | 2 | 473 | 3 | 0 | 2008-10-06T13:57:19.150000 | 2008-10-06T14:35:19.760000 |
174,387 | 174,414 | Why does RSACryptoServiceProvider.VerifyHash need an LDAP check? | I recently encountered an odd problem with RSACryptoServiceProvider.VerifyHash. I have a web application using it for decryption. When users running the web service were doing so over our VPN it became very very slow. When they had no connection or a internet connection they were fine. After much digging I found that e... | From this KB it looks like a 'wrinkle' in the code that needs sorting: http://support.microsoft.com/kb/948080 | Why does RSACryptoServiceProvider.VerifyHash need an LDAP check? I recently encountered an odd problem with RSACryptoServiceProvider.VerifyHash. I have a web application using it for decryption. When users running the web service were doing so over our VPN it became very very slow. When they had no connection or a inte... | TITLE:
Why does RSACryptoServiceProvider.VerifyHash need an LDAP check?
QUESTION:
I recently encountered an odd problem with RSACryptoServiceProvider.VerifyHash. I have a web application using it for decryption. When users running the web service were doing so over our VPN it became very very slow. When they had no co... | [
"c#",
".net",
"asp.net",
"encryption",
"rsacryptoserviceprovider"
] | 6 | 7 | 2,457 | 2 | 0 | 2008-10-06T13:57:57.543000 | 2008-10-06T14:04:37.030000 |
174,393 | 174,425 | Why is getenv('REMOTE_ADDR') giving me a blank IP address? | This PHP code... 207 if (getenv(HTTP_X_FORWARDED_FOR)) { 208 $ip = getenv('HTTP_X_FORWARD_FOR'); 209 $host = gethostbyaddr($ip); 210 } else { 211 $ip = getenv('REMOTE_ADDR'); 212 $host = gethostbyaddr($ip); 213 } Throws this warning... Warning: gethostbyaddr() [function.gethostbyaddr]: Address is not in a.b.c.d form in... | on php.net it says the following: The function getenv does not work if your Server API is ASAPI (IIS). So, try to don't use getenv('REMOTE_ADDR'), but $_SERVER["REMOTE_ADDR"]. Did you maybe try to do it with $_SERVER? | Why is getenv('REMOTE_ADDR') giving me a blank IP address? This PHP code... 207 if (getenv(HTTP_X_FORWARDED_FOR)) { 208 $ip = getenv('HTTP_X_FORWARD_FOR'); 209 $host = gethostbyaddr($ip); 210 } else { 211 $ip = getenv('REMOTE_ADDR'); 212 $host = gethostbyaddr($ip); 213 } Throws this warning... Warning: gethostbyaddr() ... | TITLE:
Why is getenv('REMOTE_ADDR') giving me a blank IP address?
QUESTION:
This PHP code... 207 if (getenv(HTTP_X_FORWARDED_FOR)) { 208 $ip = getenv('HTTP_X_FORWARD_FOR'); 209 $host = gethostbyaddr($ip); 210 } else { 211 $ip = getenv('REMOTE_ADDR'); 212 $host = gethostbyaddr($ip); 213 } Throws this warning... Warning... | [
"php",
"ip-address"
] | 0 | 11 | 8,213 | 4 | 0 | 2008-10-06T13:59:22.267000 | 2008-10-06T14:09:50.497000 |
174,394 | 174,410 | Codify a measure in a database field name | I've got a question concerning fields in databases which are measures that might be displayed in different units but are stored only in one, such as "height", for example. Where should the "pattern unit" be stated?. Of course, in the documentation, etc... But we all know nobody reads the documentation and that self-doc... | What's weird about height_cm? Looks good to me. Sometimes you see measures and units in two separate fields, which is much more painful. As long as you know the units aren't going to change, I think height_cm is a good way to deal with it. | Codify a measure in a database field name I've got a question concerning fields in databases which are measures that might be displayed in different units but are stored only in one, such as "height", for example. Where should the "pattern unit" be stated?. Of course, in the documentation, etc... But we all know nobody... | TITLE:
Codify a measure in a database field name
QUESTION:
I've got a question concerning fields in databases which are measures that might be displayed in different units but are stored only in one, such as "height", for example. Where should the "pattern unit" be stated?. Of course, in the documentation, etc... But ... | [
"database",
"language-agnostic",
"coding-style"
] | 6 | 8 | 392 | 4 | 0 | 2008-10-06T13:59:34.963000 | 2008-10-06T14:03:33.507000 |
174,403 | 174,483 | .Net WebBrowser.DocumentText Isn't Changing! | In my vb.net program, I am using a webbrowser to show the user an HTML preview. I was previously hitting a server to grab the HTML, then returning on an asynchronous thread and raising an event to populate the WebBrowser.DocumentText with the HTML string I was returning. Now I set it up to grab all of the information o... | Try the following: browser.Navigate("about:blank"); HtmlDocument doc = browser.Document; doc.Write(String.Empty); browser.DocumentText = _emailHTML; I've found that the WebBrowser control usually needs to be initialized to about:blank anyway. The same needs to be done between navigates to different types of content (li... | .Net WebBrowser.DocumentText Isn't Changing! In my vb.net program, I am using a webbrowser to show the user an HTML preview. I was previously hitting a server to grab the HTML, then returning on an asynchronous thread and raising an event to populate the WebBrowser.DocumentText with the HTML string I was returning. Now... | TITLE:
.Net WebBrowser.DocumentText Isn't Changing!
QUESTION:
In my vb.net program, I am using a webbrowser to show the user an HTML preview. I was previously hitting a server to grab the HTML, then returning on an asynchronous thread and raising an event to populate the WebBrowser.DocumentText with the HTML string I ... | [
".net",
"html",
"browser"
] | 43 | 59 | 44,303 | 9 | 0 | 2008-10-06T14:01:03.013000 | 2008-10-06T14:25:36.190000 |
174,412 | 174,427 | Cookies and Objects | I'm having trouble figuring out how to access a cookie from a compiled object. I'm trying to make a compiled (DLL) object that will check the users cookie and then compare that to a database to confirm they have the correct access. I can pass in the cookie info fine and the component will work, but I'm trying to have t... | Objects (App_Code/ compiled dlls) can only access Request via the static HttpContext.Current object HttpCookie cookie = HttpContext.Current.Request.Cookies["CookieName"]; (If it's not called from a web app, HttpContext.Current is null, so you may want to check for that when running in unit testing) (If this isn't App_C... | Cookies and Objects I'm having trouble figuring out how to access a cookie from a compiled object. I'm trying to make a compiled (DLL) object that will check the users cookie and then compare that to a database to confirm they have the correct access. I can pass in the cookie info fine and the component will work, but ... | TITLE:
Cookies and Objects
QUESTION:
I'm having trouble figuring out how to access a cookie from a compiled object. I'm trying to make a compiled (DLL) object that will check the users cookie and then compare that to a database to confirm they have the correct access. I can pass in the cookie info fine and the compone... | [
"asp.net"
] | 1 | 2 | 216 | 2 | 0 | 2008-10-06T14:04:06.920000 | 2008-10-06T14:10:07.050000 |
174,417 | 174,445 | Modern equivalent of javadeps? | I am looking for a replacement for javadeps, which I used to use to generate sections of a Makefile to specify which classes depended on which source files. Unfortunately javadeps itself has not been updated in a while, and cannot parse generic types or static imports. The closest thing I've found so far is Dependency ... | I use the task in ant, which is ok, but not 100% trustworthy. Supposedly JavaMake can do this dependency analysis, but it seems to be rarely updated and the download page is only sometimes available. | Modern equivalent of javadeps? I am looking for a replacement for javadeps, which I used to use to generate sections of a Makefile to specify which classes depended on which source files. Unfortunately javadeps itself has not been updated in a while, and cannot parse generic types or static imports. The closest thing I... | TITLE:
Modern equivalent of javadeps?
QUESTION:
I am looking for a replacement for javadeps, which I used to use to generate sections of a Makefile to specify which classes depended on which source files. Unfortunately javadeps itself has not been updated in a while, and cannot parse generic types or static imports. T... | [
"java",
"command-line",
"dependencies",
"makefile"
] | 1 | 1 | 280 | 1 | 0 | 2008-10-06T14:05:44.907000 | 2008-10-06T14:16:55.977000 |
174,418 | 174,928 | Can you improve this 'lines of code algorithm' in F#? | I've written a little script to iterate across files in folders to count lines of code. The heart of the script is this function to count lines of whitespace, comments, and code. (Note that for the moment it is tailored to C# and doesn't know about multi-line comments). It just doesn't look very nice to me - has anyone... | I think what you have is fine, but here's some variety to mix it up. (This solution repeats your problem of ignoring trailing whitespace.) type Line = | Whitespace = 0 | Comment = 1 | Code = 2 let Classify (l:string) = let s = l.TrimStart([|' ';'\t'|]) match s with | "" | "{" | "}" -> Line.Whitespace | _ when s.StartsW... | Can you improve this 'lines of code algorithm' in F#? I've written a little script to iterate across files in folders to count lines of code. The heart of the script is this function to count lines of whitespace, comments, and code. (Note that for the moment it is tailored to C# and doesn't know about multi-line commen... | TITLE:
Can you improve this 'lines of code algorithm' in F#?
QUESTION:
I've written a little script to iterate across files in folders to count lines of code. The heart of the script is this function to count lines of whitespace, comments, and code. (Note that for the moment it is tailored to C# and doesn't know about... | [
"c#",
"algorithm",
"f#"
] | 3 | 2 | 573 | 3 | 0 | 2008-10-06T14:06:24.500000 | 2008-10-06T16:06:07.970000 |
174,430 | 176,119 | Log4Net "Could not find schema information" messages | I decided to use log4net as a logger for a new webservice project. Everything is working fine, but I get a lot of messages like the one below, for every log4net tag I am using in my web.config: Could not find schema information for the element 'log4net'... Below are the relevant parts of my web.config: Solved: Copy eve... | I had a different take, and needed the following syntax: [assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.xml", Watch = true)] which differs from xsl's last post, but made a difference for me. Check out this blog post, it helped me out. | Log4Net "Could not find schema information" messages I decided to use log4net as a logger for a new webservice project. Everything is working fine, but I get a lot of messages like the one below, for every log4net tag I am using in my web.config: Could not find schema information for the element 'log4net'... Below are ... | TITLE:
Log4Net "Could not find schema information" messages
QUESTION:
I decided to use log4net as a logger for a new webservice project. Everything is working fine, but I get a lot of messages like the one below, for every log4net tag I am using in my web.config: Could not find schema information for the element 'log4... | [
"web-services",
"logging",
"schema",
"web-config",
"log4net"
] | 64 | 17 | 46,134 | 13 | 0 | 2008-10-06T14:11:18.467000 | 2008-10-06T20:43:56.507000 |
174,438 | 174,568 | Query showing list of associations in many-to-many relationship | I have two tables, Book and Tag, and books are tagged using the association table BookTag. I want to create a report that contains a list of books, and for each book a list of the book's tags. Tag IDs will suffice, tag names are not necessary. Example: Book table: Book ID | Book Name 28 | Dracula
BookTag table: Book I... | You can almost do it. The only problem I haven't resolved is the comma delimiter. Here is a query on a similar structure that separates the tags using a space. SELECT em.Code, (SELECT et.Name + ' ' AS 'data()' FROM tblEmployeeTag et JOIN tblEmployeeTagAssignment eta ON et.Id = eta.EmployeeTag_Id AND eta.Employee_Id = e... | Query showing list of associations in many-to-many relationship I have two tables, Book and Tag, and books are tagged using the association table BookTag. I want to create a report that contains a list of books, and for each book a list of the book's tags. Tag IDs will suffice, tag names are not necessary. Example: Boo... | TITLE:
Query showing list of associations in many-to-many relationship
QUESTION:
I have two tables, Book and Tag, and books are tagged using the association table BookTag. I want to create a report that contains a list of books, and for each book a list of the book's tags. Tag IDs will suffice, tag names are not neces... | [
"sql",
"sql-server",
"database"
] | 1 | 4 | 445 | 4 | 0 | 2008-10-06T14:15:04.560000 | 2008-10-06T14:41:54.973000 |
174,446 | 176,608 | How to automate converting Excel xls files to Excel xml format? | I have about 200 Excel files that are in standard Excel 2003 format. I need them all to be saved as Excel xml - basically the same as opening each file and choosing Save As... and then choosing Save as type: XML Spreadsheet Would you know any simple way of automating that task? | Here is a routine that will convert all files in a single directory that have a.xls extension. It takes a straight forward approach. Any VBA code in a workbook is stripped out, the workbook is not saved with a.xlsm extension. Any incompatability warning are not dislayed, instead the changes are automatically accepted. ... | How to automate converting Excel xls files to Excel xml format? I have about 200 Excel files that are in standard Excel 2003 format. I need them all to be saved as Excel xml - basically the same as opening each file and choosing Save As... and then choosing Save as type: XML Spreadsheet Would you know any simple way of... | TITLE:
How to automate converting Excel xls files to Excel xml format?
QUESTION:
I have about 200 Excel files that are in standard Excel 2003 format. I need them all to be saved as Excel xml - basically the same as opening each file and choosing Save As... and then choosing Save as type: XML Spreadsheet Would you know... | [
"excel"
] | 5 | 8 | 29,266 | 6 | 0 | 2008-10-06T14:16:57.613000 | 2008-10-06T23:14:40.477000 |
174,449 | 174,728 | To STL or !STL, that is the question | Unquestionably, I would choose to use the STL for most C++ programming projects. The question was presented to me recently however, "Are there any cases where you wouldn't use the STL?"... The more I thought about it, the more I realized that perhaps there SHOULD be cases where I choose not to use the STL... For exampl... | Projects with strict memory requirements such as for embedded systems may not be suited for the STL, as it can be difficult to control and manage what's taken from and returned to the heap. As Evan mentioned, writing proper allocators can help with this, but if you're counting every byte used or concerned with memory f... | To STL or !STL, that is the question Unquestionably, I would choose to use the STL for most C++ programming projects. The question was presented to me recently however, "Are there any cases where you wouldn't use the STL?"... The more I thought about it, the more I realized that perhaps there SHOULD be cases where I ch... | TITLE:
To STL or !STL, that is the question
QUESTION:
Unquestionably, I would choose to use the STL for most C++ programming projects. The question was presented to me recently however, "Are there any cases where you wouldn't use the STL?"... The more I thought about it, the more I realized that perhaps there SHOULD b... | [
"c++",
"stl",
"containers"
] | 41 | 32 | 7,563 | 15 | 0 | 2008-10-06T14:17:08.470000 | 2008-10-06T15:21:18.903000 |
174,458 | 174,469 | Exceptions for flow of control | There is an interesting post over here about this, in relation to cross-application flow of control. Well, recently, I've come across an interesting problem. Generating the nth value in a potentially (practically) endless recursive sequence. This particular algorithm WILL be in atleast 10-15 stack references deep at th... | In this case I would be looking at your Walk_r method, you should have something that returns a value, throwing an exception to indicate success, is NOT a common practice, and at minimum is going to be VERY confusing to anyone that sees the code. Not to mention the overhead associated with exceptions. | Exceptions for flow of control There is an interesting post over here about this, in relation to cross-application flow of control. Well, recently, I've come across an interesting problem. Generating the nth value in a potentially (practically) endless recursive sequence. This particular algorithm WILL be in atleast 10... | TITLE:
Exceptions for flow of control
QUESTION:
There is an interesting post over here about this, in relation to cross-application flow of control. Well, recently, I've come across an interesting problem. Generating the nth value in a potentially (practically) endless recursive sequence. This particular algorithm WIL... | [
"algorithm",
"exception",
"data-structures",
"control-flow"
] | 4 | 5 | 1,832 | 7 | 0 | 2008-10-06T14:19:31.773000 | 2008-10-06T14:22:46.150000 |
174,472 | 174,480 | Deleting multiline text from multiple files | I have a bunch of java files from which I want to remove the javadoc lines with the license [am changing it on my code]. The pattern I am looking for is ^\* \* ProjectName.* USA\.$ but matched across lines Is there a way sed [or a commonly used editor in Windows/Linux] can do a search/replace for a multiline pattern? | Here's the appropriate reference point in my favorite sed tutorial. | Deleting multiline text from multiple files I have a bunch of java files from which I want to remove the javadoc lines with the license [am changing it on my code]. The pattern I am looking for is ^\* \* ProjectName.* USA\.$ but matched across lines Is there a way sed [or a commonly used editor in Windows/Linux] can do... | TITLE:
Deleting multiline text from multiple files
QUESTION:
I have a bunch of java files from which I want to remove the javadoc lines with the license [am changing it on my code]. The pattern I am looking for is ^\* \* ProjectName.* USA\.$ but matched across lines Is there a way sed [or a commonly used editor in Win... | [
"sed",
"grep",
"multiline"
] | 3 | 3 | 1,820 | 3 | 0 | 2008-10-06T14:23:30.003000 | 2008-10-06T14:25:13.167000 |
174,502 | 174,523 | String to Int in java - Likely bad data, need to avoid exceptions | Seeing as Java doesn't have nullable types, nor does it have a TryParse(), how do you handle input validation without throwing an exceptions? The usual way: String userdata = /*value from gui*/ int val; try { val = Integer.parseInt(userdata); } catch (NumberFormatException nfe) { // bad data - set to sentinel val = Int... | That's pretty much it, although returning MIN_VALUE is kind of questionable, unless you're sure it's the right thing to use for what you're essentially using as an error code. At the very least I'd document the error code behavior, though. Might also be useful (depending on the application) to log the bad input so you ... | String to Int in java - Likely bad data, need to avoid exceptions Seeing as Java doesn't have nullable types, nor does it have a TryParse(), how do you handle input validation without throwing an exceptions? The usual way: String userdata = /*value from gui*/ int val; try { val = Integer.parseInt(userdata); } catch (Nu... | TITLE:
String to Int in java - Likely bad data, need to avoid exceptions
QUESTION:
Seeing as Java doesn't have nullable types, nor does it have a TryParse(), how do you handle input validation without throwing an exceptions? The usual way: String userdata = /*value from gui*/ int val; try { val = Integer.parseInt(user... | [
"java",
"parsing",
"numbers"
] | 37 | 16 | 96,071 | 16 | 0 | 2008-10-06T14:29:22.580000 | 2008-10-06T14:32:07.723000 |
174,515 | 175,062 | How do you copy a MS SQL 2000 database programmatically using C#? | I need to copy several tables from one DB to another in SQL Server 2000, using C# (VS 2005). The call needs to be parameterized - I need to be able to pass in the name of the database to which I am going to be copying these tables. I could use DTS with parameters, but I can't find any sample code that does this from C#... | For SQL Server 7.0 and 2000, we have SQLDMO for this. For SQL Server 2005 there is SMO. This allows you do to pretty much everything related to administering the database, scripting objects, enumerating databases, and much more. This is better, IMO, than trying a "roll your own" approach. SQL 2000: Developing SQL-DMO A... | How do you copy a MS SQL 2000 database programmatically using C#? I need to copy several tables from one DB to another in SQL Server 2000, using C# (VS 2005). The call needs to be parameterized - I need to be able to pass in the name of the database to which I am going to be copying these tables. I could use DTS with p... | TITLE:
How do you copy a MS SQL 2000 database programmatically using C#?
QUESTION:
I need to copy several tables from one DB to another in SQL Server 2000, using C# (VS 2005). The call needs to be parameterized - I need to be able to pass in the name of the database to which I am going to be copying these tables. I co... | [
"c#",
".net",
"sql-server",
"dts"
] | 3 | 3 | 2,945 | 3 | 0 | 2008-10-06T14:31:08.740000 | 2008-10-06T16:32:57.400000 |
174,516 | 174,537 | Selecting a maximum order number in SQL | I have a table that records a sequence of actions with a field that records the sequence order: user data sequence 1 foo 0 1 bar 1 1 baz 2 2 foo 0 3 bar 0 3 foo 1 Selecting the first item for each user is easy enough with WHERE sequence = '0' but is there a way to select the last item for each user in SQL? The result I... | This sql will return the record with the highest sequence value for each user: select a.user, a.data, a.sequence from table as a inner join ( select user, max(sequence) as 'last' from table group by user) as b on a.user = b.user and a.sequence = b.last | Selecting a maximum order number in SQL I have a table that records a sequence of actions with a field that records the sequence order: user data sequence 1 foo 0 1 bar 1 1 baz 2 2 foo 0 3 bar 0 3 foo 1 Selecting the first item for each user is easy enough with WHERE sequence = '0' but is there a way to select the last... | TITLE:
Selecting a maximum order number in SQL
QUESTION:
I have a table that records a sequence of actions with a field that records the sequence order: user data sequence 1 foo 0 1 bar 1 1 baz 2 2 foo 0 3 bar 0 3 foo 1 Selecting the first item for each user is easy enough with WHERE sequence = '0' but is there a way ... | [
"sql",
"mysql"
] | 3 | 5 | 2,783 | 2 | 0 | 2008-10-06T14:31:09.957000 | 2008-10-06T14:34:14.163000 |
174,517 | 187,835 | Can Generic Type Mapper (MSSOAP toolkit) be persuaded to handle empty arrays | I'm having the problem described here: http://groups.google.com/group/microsoft.public.xml.soap/browse_thread/thread/029ee5b5d4fa2440/0895d73c5c3720a1 I am consuming a Web Service using Office 2003 Web Services Toolkit. This generates classes for all the data returned by my web service: one of the classes has a propert... | Since there are no takers, I'll describe what I've done to date in case anyone else has a similar issue. On my client (using Office 2003 Web Services Toolkit) I want to receive a collection of objects which have a property that itself is a collection of objects. For example, a collection of Customer objects from a C# w... | Can Generic Type Mapper (MSSOAP toolkit) be persuaded to handle empty arrays I'm having the problem described here: http://groups.google.com/group/microsoft.public.xml.soap/browse_thread/thread/029ee5b5d4fa2440/0895d73c5c3720a1 I am consuming a Web Service using Office 2003 Web Services Toolkit. This generates classes ... | TITLE:
Can Generic Type Mapper (MSSOAP toolkit) be persuaded to handle empty arrays
QUESTION:
I'm having the problem described here: http://groups.google.com/group/microsoft.public.xml.soap/browse_thread/thread/029ee5b5d4fa2440/0895d73c5c3720a1 I am consuming a Web Service using Office 2003 Web Services Toolkit. This ... | [
"vba",
"soap"
] | 0 | 0 | 2,088 | 1 | 0 | 2008-10-06T14:31:38.817000 | 2008-10-09T15:32:24.450000 |
174,531 | 174,552 | How to read the content of a file to a string in C? | What is the simplest way (least error-prone, least lines of code, however you want to interpret it) to open a file in C and read its contents into a string (char*, char[], whatever)? | I tend to just load the entire buffer as a raw memory chunk into memory and do the parsing on my own. That way I have best control over what the standard lib does on multiple platforms. This is a stub I use for this. you may also want to check the error-codes for fseek, ftell and fread. (omitted for clarity). char * bu... | How to read the content of a file to a string in C? What is the simplest way (least error-prone, least lines of code, however you want to interpret it) to open a file in C and read its contents into a string (char*, char[], whatever)? | TITLE:
How to read the content of a file to a string in C?
QUESTION:
What is the simplest way (least error-prone, least lines of code, however you want to interpret it) to open a file in C and read its contents into a string (char*, char[], whatever)?
ANSWER:
I tend to just load the entire buffer as a raw memory chun... | [
"c",
"string",
"file"
] | 145 | 192 | 224,208 | 13 | 0 | 2008-10-06T14:32:57.673000 | 2008-10-06T14:37:00.520000 |
174,532 | 176,219 | How to find "holes" in a table | I recently inherited a database on which one of the tables has the primary key composed of encoded values (Part1*1000 + Part2). I normalized that column, but I cannot change the old values. So now I have select ID from table order by ID ID 100001 100002 101001... I want to find the "holes" in the table (more precisely,... | select ID +1 From Table t1 where not exists (select * from Table t2 where t1.id +1 = t2.id); not sure if this version would be faster than the one you mentioned originally. | How to find "holes" in a table I recently inherited a database on which one of the tables has the primary key composed of encoded values (Part1*1000 + Part2). I normalized that column, but I cannot change the old values. So now I have select ID from table order by ID ID 100001 100002 101001... I want to find the "holes... | TITLE:
How to find "holes" in a table
QUESTION:
I recently inherited a database on which one of the tables has the primary key composed of encoded values (Part1*1000 + Part2). I normalized that column, but I cannot change the old values. So now I have select ID from table order by ID ID 100001 100002 101001... I want ... | [
"sql"
] | 23 | 21 | 18,195 | 11 | 0 | 2008-10-06T14:33:00.013000 | 2008-10-06T21:13:43.107000 |
174,560 | 174,937 | Sharing Test code in Maven | How can you depend on test code from another module in Maven? Example, I have 2 modules: Base Main I would like a test case in Main to extend a base test class in Base. Is this possible? Update: Found an acceptable answer, which involves creating a test jar. | I recommend using type instead of classifier (see also: classifier ). It tells Maven a bit more explicitly what you are doing (and I've found that m2eclipse and q4e both like it better). com.myco.app foo 1.0-SNAPSHOT test-jar test | Sharing Test code in Maven How can you depend on test code from another module in Maven? Example, I have 2 modules: Base Main I would like a test case in Main to extend a base test class in Base. Is this possible? Update: Found an acceptable answer, which involves creating a test jar. | TITLE:
Sharing Test code in Maven
QUESTION:
How can you depend on test code from another module in Maven? Example, I have 2 modules: Base Main I would like a test case in Main to extend a base test class in Base. Is this possible? Update: Found an acceptable answer, which involves creating a test jar.
ANSWER:
I recom... | [
"maven-2",
"testing"
] | 203 | 209 | 71,932 | 5 | 0 | 2008-10-06T14:38:27.633000 | 2008-10-06T16:06:42.400000 |
174,567 | 176,552 | Help with deploying Crystal Report embedded Visual Studio 2008 website | I have been trying to get around this error for a day now and have not had much luck. I have a VS 2008 project that uses the embedded Crystal Reports which of course runs fine locally, but when deploying to my remote server the reports will no longer run. I gathered that it was because I didn't have the right Crystal R... | I had a similar problem with 2005 a while ago, the only way I was about to get around the problem was to install the crystal reports redistributable on the server. Is there any reason that you're hesitant to install an MSI on your server? | Help with deploying Crystal Report embedded Visual Studio 2008 website I have been trying to get around this error for a day now and have not had much luck. I have a VS 2008 project that uses the embedded Crystal Reports which of course runs fine locally, but when deploying to my remote server the reports will no longe... | TITLE:
Help with deploying Crystal Report embedded Visual Studio 2008 website
QUESTION:
I have been trying to get around this error for a day now and have not had much luck. I have a VS 2008 project that uses the embedded Crystal Reports which of course runs fine locally, but when deploying to my remote server the rep... | [
"c#",
"asp.net",
"visual-studio-2008",
"crystal-reports"
] | 4 | 1 | 3,111 | 1 | 0 | 2008-10-06T14:41:35.927000 | 2008-10-06T22:59:25.203000 |
174,582 | 174,632 | How do I rename a column in a database table using SQL? | If I wish to simply rename a column (not change its type or constraints, just its name) in an SQL database using SQL, how do I do that? Or is it not possible? This is for any database claiming to support SQL, I'm simply looking for an SQL-specific query that will work regardless of actual database implementation. | On PostgreSQL (and many other RDBMS), you can do it with regular ALTER TABLE statement: => SELECT * FROM Test1; id | foo | bar ----+-----+----- 2 | 1 | 2
=> ALTER TABLE Test1 RENAME COLUMN foo TO baz; ALTER TABLE
=> SELECT * FROM Test1; id | baz | bar ----+-----+----- 2 | 1 | 2 | How do I rename a column in a database table using SQL? If I wish to simply rename a column (not change its type or constraints, just its name) in an SQL database using SQL, how do I do that? Or is it not possible? This is for any database claiming to support SQL, I'm simply looking for an SQL-specific query that will ... | TITLE:
How do I rename a column in a database table using SQL?
QUESTION:
If I wish to simply rename a column (not change its type or constraints, just its name) in an SQL database using SQL, how do I do that? Or is it not possible? This is for any database claiming to support SQL, I'm simply looking for an SQL-specifi... | [
"sql",
"database",
"rename"
] | 138 | 113 | 684,561 | 12 | 0 | 2008-10-06T14:44:41.723000 | 2008-10-06T14:57:15.753000 |
174,585 | 1,563,063 | Best open source LINQ provider | What's the best open source LINQ provider (in terms of completeness)? I'm developing an open source LINQ provider myself and I'd like to borrow as many ideas as I can, avoid common pitfalls, etc. Do not restrict yourself to database LINQ providers, any provider suggestion is welcome. | There is another implementation "re-linq". Have a look here: http://www.re-motion.org/blogs/team/archive/2009/04/23/introducing-re-linq-a-general-purpose-linq-provider-infrastructure.aspx http://www.codeproject.com/KB/linq/relinqish_the_pain.aspx Hope it helps, Patrick | Best open source LINQ provider What's the best open source LINQ provider (in terms of completeness)? I'm developing an open source LINQ provider myself and I'd like to borrow as many ideas as I can, avoid common pitfalls, etc. Do not restrict yourself to database LINQ providers, any provider suggestion is welcome. | TITLE:
Best open source LINQ provider
QUESTION:
What's the best open source LINQ provider (in terms of completeness)? I'm developing an open source LINQ provider myself and I'd like to borrow as many ideas as I can, avoid common pitfalls, etc. Do not restrict yourself to database LINQ providers, any provider suggestio... | [
".net",
"linq",
"open-source"
] | 10 | 6 | 3,561 | 8 | 0 | 2008-10-06T14:45:22.797000 | 2009-10-13T21:39:54.563000 |
174,593 | 174,601 | Can you add documents and spreadsheets to a Visual Studio Project? | In Eclipse, I often include all project-related material (including documents in PDF, Microsoft, and OpenDocument formats) in the project. Is this possible with Visual Studio, especially to the point where if I attempt to open the file from inside Visual Studio, it will open in the external application? | Yes, just right-click your project in the solution explorer and goto Add > Existing Item... Though -- I'd recommend making a new folder to keep this in. Yes, you can make sure that when you open it it opens with the correct application. Just right-click the file once it's added into the solution explorer and select Ope... | Can you add documents and spreadsheets to a Visual Studio Project? In Eclipse, I often include all project-related material (including documents in PDF, Microsoft, and OpenDocument formats) in the project. Is this possible with Visual Studio, especially to the point where if I attempt to open the file from inside Visua... | TITLE:
Can you add documents and spreadsheets to a Visual Studio Project?
QUESTION:
In Eclipse, I often include all project-related material (including documents in PDF, Microsoft, and OpenDocument formats) in the project. Is this possible with Visual Studio, especially to the point where if I attempt to open the file... | [
"visual-studio",
"file",
"projects",
"external-application"
] | 4 | 6 | 2,530 | 2 | 0 | 2008-10-06T14:47:42.480000 | 2008-10-06T14:48:57.627000 |
174,595 | 174,628 | In an Oracle database, what is the difference between ROWNUM and ROW_NUMBER? | What is the difference between ROWNUM and ROW_NUMBER? | ROWNUM is a "pseudocolumn" that assigns a number to each row returned by a query: SQL> select rownum, ename, deptno 2 from emp;
ROWNUM ENAME DEPTNO ---------- ---------- ---------- 1 SMITH 99 2 ALLEN 30 3 WARD 30 4 JONES 20 5 MARTIN 30 6 BLAKE 30 7 CLARK 10 8 SCOTT 20 9 KING 10 10 TURNER 30 11 FORD 20 12 MILLER 10 ROW... | In an Oracle database, what is the difference between ROWNUM and ROW_NUMBER? What is the difference between ROWNUM and ROW_NUMBER? | TITLE:
In an Oracle database, what is the difference between ROWNUM and ROW_NUMBER?
QUESTION:
What is the difference between ROWNUM and ROW_NUMBER?
ANSWER:
ROWNUM is a "pseudocolumn" that assigns a number to each row returned by a query: SQL> select rownum, ename, deptno 2 from emp;
ROWNUM ENAME DEPTNO ---------- --... | [
"sql",
"oracle",
"row-number",
"rownum"
] | 26 | 42 | 39,341 | 5 | 0 | 2008-10-06T14:47:45.570000 | 2008-10-06T14:56:31.167000 |
174,598 | 186,492 | rails in_place_edit: how do I pass an authenticity token? | I am trying to get in place editing working but I am running into this error: ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken) I understand that rails now wants to protect against forgery and that I need to pass a form authenticity token but I am not clear on how to do this with t... | I found a solution. I put the instructions here. Take a look at the part on patching in_place_edit. | rails in_place_edit: how do I pass an authenticity token? I am trying to get in place editing working but I am running into this error: ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken) I understand that rails now wants to protect against forgery and that I need to pass a form auth... | TITLE:
rails in_place_edit: how do I pass an authenticity token?
QUESTION:
I am trying to get in place editing working but I am running into this error: ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken) I understand that rails now wants to protect against forgery and that I need t... | [
"ruby-on-rails",
"ajax",
"token",
"in-place-edit",
"authenticity"
] | 2 | 1 | 2,676 | 2 | 0 | 2008-10-06T14:48:02.620000 | 2008-10-09T09:12:44.840000 |
174,600 | 178,192 | Is there a way to disable a SQL Server trigger for just a particular scope of execution? | In SQL Server 2005, is there a way for a trigger to find out what object is responsible for firing the trigger? I would like to use this to disable the trigger for one stored procedure. Is there any other way to disable the trigger only for the current transaction? I could use the following code, but if I'm not mistake... | I just saw this article recently highlighted on the SQL Server Central newsletter and it appears to offer a way which you may find useful using the Context_Info on the connection: http://www.mssqltips.com/tip.asp?tip=1591 EDIT by Terrapin: The above link includes the following code: USE AdventureWorks; GO -- creating t... | Is there a way to disable a SQL Server trigger for just a particular scope of execution? In SQL Server 2005, is there a way for a trigger to find out what object is responsible for firing the trigger? I would like to use this to disable the trigger for one stored procedure. Is there any other way to disable the trigger... | TITLE:
Is there a way to disable a SQL Server trigger for just a particular scope of execution?
QUESTION:
In SQL Server 2005, is there a way for a trigger to find out what object is responsible for firing the trigger? I would like to use this to disable the trigger for one stored procedure. Is there any other way to d... | [
"sql-server",
"t-sql",
"triggers"
] | 37 | 63 | 46,230 | 11 | 0 | 2008-10-06T14:48:39.173000 | 2008-10-07T12:22:26.550000 |
174,602 | 180,168 | CAML query to locate specific SPFolder nested in document library tree | It seems like searching with CAML and SPQuery doesn't work properly against custom metadata, when searching for SPFolders instead of files, or when searching for custom content types. I've been using U2U to test a variety of queries, and just not getting anywhere. The doc's aren't very complete on the topic, and google... | After more research, I'm answering my own question. Apparently the methods that I'm using to query don't return SPFolders as items in the result set. Only list items are returned, basically just documents. My fix was to execute a CAML query for all the documents with a certain metadata tag/value, and then using the par... | CAML query to locate specific SPFolder nested in document library tree It seems like searching with CAML and SPQuery doesn't work properly against custom metadata, when searching for SPFolders instead of files, or when searching for custom content types. I've been using U2U to test a variety of queries, and just not ge... | TITLE:
CAML query to locate specific SPFolder nested in document library tree
QUESTION:
It seems like searching with CAML and SPQuery doesn't work properly against custom metadata, when searching for SPFolders instead of files, or when searching for custom content types. I've been using U2U to test a variety of querie... | [
"sharepoint",
"caml"
] | 0 | 2 | 7,337 | 2 | 0 | 2008-10-06T14:49:04.133000 | 2008-10-07T20:12:20.767000 |
174,633 | 174,669 | Regular Expression: Match to (aa|bb) (cc)? | My regular expression needs to be able to find the strings: Visual Studio 2008 Visual Studio Express 2008 Visual Basic 2008 Visual Basic Express 2008 Visual C++ 2008 Visual C++ Express 2008 and a host of other similar variants, to be replaced with this one single string Visual Studio 2005 I tried "Visual (Basic|C++|Stu... | It should be "Visual (Basic|C\+\+|Studio)( Express)? 2008"
>>> import re >>> repl = 'Visual Studio 2005' >>> regexp = re.compile('Visual (Studio|Basic|C\+\+)( Express)? 2008') >>> test1 = 'Visual Studio 2008' >>> test2 = 'Visual Studio Express 2008' >>> test3 = 'Visual C++ Express 2008' >>> test4 = 'Visual C++ Express... | Regular Expression: Match to (aa|bb) (cc)? My regular expression needs to be able to find the strings: Visual Studio 2008 Visual Studio Express 2008 Visual Basic 2008 Visual Basic Express 2008 Visual C++ 2008 Visual C++ Express 2008 and a host of other similar variants, to be replaced with this one single string Visual... | TITLE:
Regular Expression: Match to (aa|bb) (cc)?
QUESTION:
My regular expression needs to be able to find the strings: Visual Studio 2008 Visual Studio Express 2008 Visual Basic 2008 Visual Basic Express 2008 Visual C++ 2008 Visual C++ Express 2008 and a host of other similar variants, to be replaced with this one si... | [
"regex"
] | 3 | 7 | 1,949 | 9 | 0 | 2008-10-06T14:57:21.680000 | 2008-10-06T15:06:38.543000 |
174,653 | 174,673 | Wiimote example programs | I'd like to use the Wiimote (accelerometers, gyroscopes, infrared camera, etc, etc, etc) on various applications. It's a bluetooth device, and I know others have connected it to their computer. What's the easiest way to start using it in my software - are there libraries for C#, for instance? I want my software to be u... | Have you seen Johnny Chung Lee's 'Procrastineering' Blog? He's written a lot on the subject of using wii remotes and has some fantastic demonstration videos. [Edit] I just found out Mr Lee did a TED talk which gives a good introduction to the stuff he's done too... There's a wealth of information over on Wiibrew.org - ... | Wiimote example programs I'd like to use the Wiimote (accelerometers, gyroscopes, infrared camera, etc, etc, etc) on various applications. It's a bluetooth device, and I know others have connected it to their computer. What's the easiest way to start using it in my software - are there libraries for C#, for instance? I... | TITLE:
Wiimote example programs
QUESTION:
I'd like to use the Wiimote (accelerometers, gyroscopes, infrared camera, etc, etc, etc) on various applications. It's a bluetooth device, and I know others have connected it to their computer. What's the easiest way to start using it in my software - are there libraries for C... | [
"c#",
"user-interface",
"wiimote",
"wii"
] | 13 | 14 | 6,181 | 4 | 0 | 2008-10-06T15:02:06.117000 | 2008-10-06T15:07:05.780000 |
174,659 | 174,793 | Calculating which tiles are lit in a tile-based game ("raytracing") | I'm writing a little tile-based game, for which I'd like to support light sources. But my algorithm-fu is too weak, hence I come to you for help. The situation is like this: There is a tile-based map (held as a 2D array), containing a single light source and several items standing around. I want to calculate which tile... | The roguelike development community has a bit of an obsession with line-of-sight, field-of-view algorithms. Here's a link to a roguelike wiki article on the subject: http://roguebasin.roguelikedevelopment.org/index.php?title=Field_of_Vision For my roguelike game, I implemented a shadow casting algorithm ( http://rogueb... | Calculating which tiles are lit in a tile-based game ("raytracing") I'm writing a little tile-based game, for which I'd like to support light sources. But my algorithm-fu is too weak, hence I come to you for help. The situation is like this: There is a tile-based map (held as a 2D array), containing a single light sour... | TITLE:
Calculating which tiles are lit in a tile-based game ("raytracing")
QUESTION:
I'm writing a little tile-based game, for which I'd like to support light sources. But my algorithm-fu is too weak, hence I come to you for help. The situation is like this: There is a tile-based map (held as a 2D array), containing a... | [
"algorithm",
"raytracing",
"lighting"
] | 47 | 23 | 16,873 | 12 | 0 | 2008-10-06T15:02:47.817000 | 2008-10-06T15:35:42.633000 |
174,662 | 259,035 | A C# to VB.Net conversion utility that handles Automatic properties correctly? | I hope this isn't considered a duplicate since it's more pointed than similar questions (I'm curious about a specific weakness in C# to VB.net conversion utilities). I've been looking at using a tool like this.net code converter to convert a class library to VB since I'm the only one in my group comfortable with C#. Th... | We've now updated the code generator to support this scenario. If you spot any others that we're not doing very well, please do drop me a line. | A C# to VB.Net conversion utility that handles Automatic properties correctly? I hope this isn't considered a duplicate since it's more pointed than similar questions (I'm curious about a specific weakness in C# to VB.net conversion utilities). I've been looking at using a tool like this.net code converter to convert a... | TITLE:
A C# to VB.Net conversion utility that handles Automatic properties correctly?
QUESTION:
I hope this isn't considered a duplicate since it's more pointed than similar questions (I'm curious about a specific weakness in C# to VB.net conversion utilities). I've been looking at using a tool like this.net code conv... | [
"c#",
"vb.net",
"automatic-properties"
] | 3 | 4 | 1,396 | 5 | 0 | 2008-10-06T15:04:06.630000 | 2008-11-03T15:43:52.067000 |
174,664 | 174,722 | operators as strings | I need to evaluate a mathmatical expression that is presented to me as a string in C#. Example noddy but gets the point across that the string as the expression. I need the evaluate to then populate an int. There is no Eval() in C# like in others langugaes... String myString = "3*4"; Edit: I am on VS2008 Tried the Micr... | The way I see it, you have two options - use an expression evaluator or construct, compile and run C# code on the fly. I would go with an expression evaluator library, as you do not have to worry about any security issues. That is, you might not be able to use code generation in medium trust environments, such as most ... | operators as strings I need to evaluate a mathmatical expression that is presented to me as a string in C#. Example noddy but gets the point across that the string as the expression. I need the evaluate to then populate an int. There is no Eval() in C# like in others langugaes... String myString = "3*4"; Edit: I am on ... | TITLE:
operators as strings
QUESTION:
I need to evaluate a mathmatical expression that is presented to me as a string in C#. Example noddy but gets the point across that the string as the expression. I need the evaluate to then populate an int. There is no Eval() in C# like in others langugaes... String myString = "3*... | [
"c#"
] | 20 | 13 | 7,257 | 12 | 0 | 2008-10-06T15:04:25.287000 | 2008-10-06T15:19:32.370000 |
174,699 | 174,726 | Using PHP to write to OS X's log database? | Do any apps/packages exist that will support writing to OS X's log database from external sources. I'm not too familiar with the specifics of the database, beyond the fact that you can view its contents from the Console app. I'm not even sure if it's just a version of some simple DB like SQLite or if it is some sort of... | I've never used OS X but you might want to look into the syslog function. | Using PHP to write to OS X's log database? Do any apps/packages exist that will support writing to OS X's log database from external sources. I'm not too familiar with the specifics of the database, beyond the fact that you can view its contents from the Console app. I'm not even sure if it's just a version of some sim... | TITLE:
Using PHP to write to OS X's log database?
QUESTION:
Do any apps/packages exist that will support writing to OS X's log database from external sources. I'm not too familiar with the specifics of the database, beyond the fact that you can view its contents from the Console app. I'm not even sure if it's just a v... | [
"php",
"macos",
"logging"
] | 1 | 4 | 2,121 | 4 | 0 | 2008-10-06T15:14:14.410000 | 2008-10-06T15:20:12.477000 |
174,705 | 181,631 | Automatic Update and checkin of AssemblyInfo.cs files occasionally causes partial fail | We have TFS 2008 our build set up to checkout all AssemblyInfo.cs files in the project, update them with AssemblyInfoTask, and then either undo the checkout or checkin depending on whether the build passed or not. Unfortunately, when two builds are queued close together this results in a Partially completed build as th... | Changing: To: Has forced the AssemblyInfo.cs files to be overwritten with top of tree. It's been working so far, but is more of a hack than something elegant. | Automatic Update and checkin of AssemblyInfo.cs files occasionally causes partial fail We have TFS 2008 our build set up to checkout all AssemblyInfo.cs files in the project, update them with AssemblyInfoTask, and then either undo the checkout or checkin depending on whether the build passed or not. Unfortunately, when... | TITLE:
Automatic Update and checkin of AssemblyInfo.cs files occasionally causes partial fail
QUESTION:
We have TFS 2008 our build set up to checkout all AssemblyInfo.cs files in the project, update them with AssemblyInfoTask, and then either undo the checkout or checkin depending on whether the build passed or not. U... | [
"tfs",
"msbuild",
"assemblies"
] | 2 | 0 | 3,076 | 2 | 0 | 2008-10-06T15:14:54.143000 | 2008-10-08T07:14:12.833000 |
174,706 | 174,799 | Comparing VB6.exes | We're going through a massive migration project at the minute and trying to validate the code that is deployed to the live estate matches the code we have in source control. Obviously the.net code is easy to compare because we can disassemble. I don't believe this is possible in vb6 exes because of the manner of compil... | Visual Basic had (has) two ways of compiling, one to the interpreter ( called P-code) that would result in smaller binaries, and a second one that generates "regular" windows.exe file (called native) that was introduced because it was supposed to be fastar than p-code; although the compiled file size increased with thi... | Comparing VB6.exes We're going through a massive migration project at the minute and trying to validate the code that is deployed to the live estate matches the code we have in source control. Obviously the.net code is easy to compare because we can disassemble. I don't believe this is possible in vb6 exes because of t... | TITLE:
Comparing VB6.exes
QUESTION:
We're going through a massive migration project at the minute and trying to validate the code that is deployed to the live estate matches the code we have in source control. Obviously the.net code is easy to compare because we can disassemble. I don't believe this is possible in vb6... | [
"vb6",
"migration",
"compare"
] | 2 | 3 | 717 | 6 | 0 | 2008-10-06T15:16:18.087000 | 2008-10-06T15:36:24.660000 |
174,727 | 174,765 | Discover what process/query is using oracle temp tablespace | Oracle FAQ defines temp table space as follows: Temporary tablespaces are used to manage space for database sort operations and for storing global temporary tables. For example, if you join two large tables, and Oracle cannot do the sort in memory, space will be allocated in a temporary tablespace for doing the sort op... | I'm not sure exactly what information you have to hand already, but using the following query will point out which program/user/sessions etc are currently using your temp space. SELECT b.TABLESPACE, b.segfile#, b.segblk#, ROUND ( ( ( b.blocks * p.VALUE ) / 1024 / 1024 ), 2 ) size_mb, a.SID, a.serial#, a.username, a.osu... | Discover what process/query is using oracle temp tablespace Oracle FAQ defines temp table space as follows: Temporary tablespaces are used to manage space for database sort operations and for storing global temporary tables. For example, if you join two large tables, and Oracle cannot do the sort in memory, space will ... | TITLE:
Discover what process/query is using oracle temp tablespace
QUESTION:
Oracle FAQ defines temp table space as follows: Temporary tablespaces are used to manage space for database sort operations and for storing global temporary tables. For example, if you join two large tables, and Oracle cannot do the sort in m... | [
"oracle",
"debugging",
"performance",
"statistics",
"oracleinternals"
] | 13 | 19 | 91,080 | 3 | 0 | 2008-10-06T15:20:39.217000 | 2008-10-06T15:30:37.357000 |
174,730 | 174,750 | What is the best way to validate a credit card in PHP? | Given a credit card number and no additional information, what is the best way in PHP to determine whether or not it is a valid number? Right now I need something that will work with American Express, Discover, MasterCard, and Visa, but it might be helpful if it will also work with other types. | There are three parts to the validation of the card number: PATTERN - does it match an issuers pattern (e.g. VISA/Mastercard/etc.) CHECKSUM - does it actually check-sum (e.g. not just 13 random numbers after "34" to make it an AMEX card number) REALLY EXISTS - does it actually have an associated account (you are unlike... | What is the best way to validate a credit card in PHP? Given a credit card number and no additional information, what is the best way in PHP to determine whether or not it is a valid number? Right now I need something that will work with American Express, Discover, MasterCard, and Visa, but it might be helpful if it wi... | TITLE:
What is the best way to validate a credit card in PHP?
QUESTION:
Given a credit card number and no additional information, what is the best way in PHP to determine whether or not it is a valid number? Right now I need something that will work with American Express, Discover, MasterCard, and Visa, but it might b... | [
"php",
"validation",
"e-commerce",
"numbers",
"credit-card"
] | 73 | 155 | 85,750 | 9 | 0 | 2008-10-06T15:21:39.200000 | 2008-10-06T15:25:26.507000 |
174,733 | 178,930 | How do I integrate VSS 6 so that VB 6 automatically checks out when editing? | I'm using Visual Studio 6.0 and Visual Basic 6.0. I have them integrated but when I check out a Project and then try to edit a module in that project it's locked and I have to manually right-click on it and do a Check Out to unlock it. I thought there was a way to have VSS automatically check out the file for editing. ... | Best solution I found was to check out all the files. Took a bit of poking around to figure out how to do that. Here's how: How to check out all VB6 Project files from VSS? | How do I integrate VSS 6 so that VB 6 automatically checks out when editing? I'm using Visual Studio 6.0 and Visual Basic 6.0. I have them integrated but when I check out a Project and then try to edit a module in that project it's locked and I have to manually right-click on it and do a Check Out to unlock it. I thoug... | TITLE:
How do I integrate VSS 6 so that VB 6 automatically checks out when editing?
QUESTION:
I'm using Visual Studio 6.0 and Visual Basic 6.0. I have them integrated but when I check out a Project and then try to edit a module in that project it's locked and I have to manually right-click on it and do a Check Out to ... | [
"vb6",
"visual-sourcesafe"
] | 2 | 0 | 1,657 | 6 | 0 | 2008-10-06T15:22:53.750000 | 2008-10-07T15:10:07.613000 |
174,745 | 174,771 | Adding Text to Clipboard on Click of ListView Column Header - C# | Is there a an event for ListViews that are activated when one of the column headers are clicked on? The plan was to add some text to the user's clipboard when they click on the column header. Is there any easy way to do this? | See link below for the column header click event, where you would add some text to the user's clipboard. http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.columnclick.aspx | Adding Text to Clipboard on Click of ListView Column Header - C# Is there a an event for ListViews that are activated when one of the column headers are clicked on? The plan was to add some text to the user's clipboard when they click on the column header. Is there any easy way to do this? | TITLE:
Adding Text to Clipboard on Click of ListView Column Header - C#
QUESTION:
Is there a an event for ListViews that are activated when one of the column headers are clicked on? The plan was to add some text to the user's clipboard when they click on the column header. Is there any easy way to do this?
ANSWER:
Se... | [
"c#",
"listview",
"clipboard"
] | 1 | 3 | 1,977 | 1 | 0 | 2008-10-06T15:24:50.940000 | 2008-10-06T15:31:43.250000 |
174,748 | 175,046 | Hibernate mappings with a discriminator | I have a table with one field that can point to a foreign key in one of 3 other tables based on what the descriminator value is (Project, TimeKeep, or CostCenter. Usually this is implemented with subclasses, and I am wondering if what I have below will work. Note the subclass name is the same as the parent class and th... | Discriminators are used for storing class hierarchies in a single table. What you have there is a single class with multiple meanings. http://docs.jboss.org/hibernate/core/3.5/reference/en-US/html/mapping.html#mapping-declaration-discriminator The element is required for polymorphic persistence using the table-per-clas... | Hibernate mappings with a discriminator I have a table with one field that can point to a foreign key in one of 3 other tables based on what the descriminator value is (Project, TimeKeep, or CostCenter. Usually this is implemented with subclasses, and I am wondering if what I have below will work. Note the subclass nam... | TITLE:
Hibernate mappings with a discriminator
QUESTION:
I have a table with one field that can point to a foreign key in one of 3 other tables based on what the descriminator value is (Project, TimeKeep, or CostCenter. Usually this is implemented with subclasses, and I am wondering if what I have below will work. Not... | [
"hibernate"
] | 8 | 9 | 42,532 | 4 | 0 | 2008-10-06T15:25:13.497000 | 2008-10-06T16:28:31.997000 |
174,755 | 175,453 | customized pages in TFS 2008 | Can we extend the Team Site to host our own pages. i.e. Does TFS allows you to add pages/web parts that are developed by us. I have found few clues in Google but no one could elaborate properly. | Yup - a TFS Sharepoint site is pretty much a standard WSS site. You can in fact point TFS to a different WSS or MOSS server if you want, but bear in mind that in TFS2008 the project sites all have to live as http://**wssserver /sites/**TeamProjectName Good luck, Martin. | customized pages in TFS 2008 Can we extend the Team Site to host our own pages. i.e. Does TFS allows you to add pages/web parts that are developed by us. I have found few clues in Google but no one could elaborate properly. | TITLE:
customized pages in TFS 2008
QUESTION:
Can we extend the Team Site to host our own pages. i.e. Does TFS allows you to add pages/web parts that are developed by us. I have found few clues in Google but no one could elaborate properly.
ANSWER:
Yup - a TFS Sharepoint site is pretty much a standard WSS site. You c... | [
".net",
"sharepoint",
"tfs"
] | 1 | 1 | 75 | 1 | 0 | 2008-10-06T15:25:56.913000 | 2008-10-06T18:02:31.480000 |
174,762 | 176,096 | I need help styling FormItem components in Flex | I have a form that I would like to style. specifcally I would like to chnage the background color of the form item's label. (the backgorundColor attribute changes both the label and the inputs background color) i.e. I would like to make the label with 'username:' have a different background color, but have the text inp... | A formitem has an object it uses to display the label called the FormItemLabel, this objects purpose is so you can style the label of a form item. In flex 2 to change the style you can try: FormItemLabel {
} However I looked over the flex 2 lang ref and it doesn't seem like you can change the background color of the l... | I need help styling FormItem components in Flex I have a form that I would like to style. specifcally I would like to chnage the background color of the form item's label. (the backgorundColor attribute changes both the label and the inputs background color) i.e. I would like to make the label with 'username:' have a d... | TITLE:
I need help styling FormItem components in Flex
QUESTION:
I have a form that I would like to style. specifcally I would like to chnage the background color of the form item's label. (the backgorundColor attribute changes both the label and the inputs background color) i.e. I would like to make the label with 'u... | [
"apache-flex"
] | 0 | 2 | 3,643 | 3 | 0 | 2008-10-06T15:29:49.353000 | 2008-10-06T20:38:26.720000 |
174,764 | 177,899 | How to move a ClickOnce deployment package | I have a collection of ClickOnce packages in a publish folder on a network drive and need to move them all to another server (our DR machine). After copy/pasting the whole directory and running the setups on the new machine I get an error message stating that it cannot find the old path: Activation of...MyClickOnceApp.... | I found a solution: Firstly, using MageUI, I changed the "Start Location" under "Deployment Options". On saving, it prompted me to sign with a key, which I created there and then. I then ran the setup.exe file, and it worked without fail. After checking which files had changed, I realised it was only the one file: the ... | How to move a ClickOnce deployment package I have a collection of ClickOnce packages in a publish folder on a network drive and need to move them all to another server (our DR machine). After copy/pasting the whole directory and running the setups on the new machine I get an error message stating that it cannot find th... | TITLE:
How to move a ClickOnce deployment package
QUESTION:
I have a collection of ClickOnce packages in a publish folder on a network drive and need to move them all to another server (our DR machine). After copy/pasting the whole directory and running the setups on the new machine I get an error message stating that... | [
"c#",
"clickonce",
"manifest"
] | 12 | 10 | 17,648 | 4 | 0 | 2008-10-06T15:30:28.243000 | 2008-10-07T10:39:38.143000 |
174,773 | 174,818 | What URL should I use to connect to an SVN repository? | I have TurtoiseSVN and ankhSVN installed. I created a repository on my computer: C:\Documents and Settings\user1\My Documents\Subversion\Repository\. I am trying to connect to this repository from my co-worker's computer. What should this URL be? | You will need to run the svnserve daemon on your computer, or run an apache server with the necessary modules, to allow your colleague to access this locally stored repository. For a simple case like this I would recommend svnserve, it should be simpler to configure and run. The url would then be: svn:// / As opposed t... | What URL should I use to connect to an SVN repository? I have TurtoiseSVN and ankhSVN installed. I created a repository on my computer: C:\Documents and Settings\user1\My Documents\Subversion\Repository\. I am trying to connect to this repository from my co-worker's computer. What should this URL be? | TITLE:
What URL should I use to connect to an SVN repository?
QUESTION:
I have TurtoiseSVN and ankhSVN installed. I created a repository on my computer: C:\Documents and Settings\user1\My Documents\Subversion\Repository\. I am trying to connect to this repository from my co-worker's computer. What should this URL be?
... | [
"svn"
] | 10 | 22 | 85,946 | 4 | 0 | 2008-10-06T15:31:58.023000 | 2008-10-06T15:39:47.710000 |
174,780 | 174,794 | LINQ - which layer should LINQ typically fall into, DAL? | just wanted to gather different ideas and perspectives as to which layer should (and why) LINQ fall into? | it depends on what you want to do with linq. when using linq2sql i`d recommend the DAL, but Linq is more than just database access. you can use it to manipulate lists, ienumerables of business objects and so on... Linq itself can be useful everywhere in your application. | LINQ - which layer should LINQ typically fall into, DAL? just wanted to gather different ideas and perspectives as to which layer should (and why) LINQ fall into? | TITLE:
LINQ - which layer should LINQ typically fall into, DAL?
QUESTION:
just wanted to gather different ideas and perspectives as to which layer should (and why) LINQ fall into?
ANSWER:
it depends on what you want to do with linq. when using linq2sql i`d recommend the DAL, but Linq is more than just database access... | [
"linq",
"frameworks",
"data-access-layer"
] | 4 | 4 | 1,544 | 9 | 0 | 2008-10-06T15:33:23.513000 | 2008-10-06T15:35:50.560000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.