instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I'm new to .net and c#, so I want to make sure i'm using the right tool for the job. The XML i'm receiving is a description of a directory tree on another machine, so it go many levels deep. What I need to do now is to take the XML and create a structure of objects (custom classes) and populate them with info from the ...
You're correct in your intuition that recursive methods can be a good way to handle a tree structure, such as what you're dealing with when parsing an XML representation of a directory structure. .NET provides various tools for working with XML, and while `XmlReader` is indeed a forward-only reader, there are other opt...
38,740
[ { "from": "human", "value": "I'm new to .net and c#, so I want to make sure i'm using the right tool for the job.\nThe XML i'm receiving is a description of a directory tree on another machine, so it go many levels deep. What I need to do now is to take the XML and create a structure of objects (custom clas...
I would like to be a PHP/MySQL programmer What are the technologies that I must know? Like: Frameworks IDEs Template Engines Ajax and CSS Frameworks Please tell me the minimum requirements that I must know, and tell me your favourite things in the previous list? Thanks
To become a proficient PHP/MySQL programmer, there are several technologies, tools, and concepts you should be familiar with. Here's a breakdown of the minimum requirements and some recommendations for each category: ### Minimum Requirements 1. **PHP** - **Version**: Learn the latest stable version of PHP (as of m...
39,921
[ { "from": "human", "value": "I would like to be a PHP/MySQL programmer \nWhat are the technologies that I must know?\nLike:\n\nFrameworks\nIDEs\nTemplate Engines\nAjax and CSS Frameworks\n\nPlease tell me the minimum requirements that I must know, and tell me your favourite things in the previous list?\nTha...
G'day, I am working with a group of offshore developers who have been using the term unit testing quite loosely. Their QA document talks about writing unit tests and then performing unit testing of the system. This doesn't line up with my interpretation of what unit testing is at all. I am used to unit testing being a ...
G'day! Your understanding of unit testing aligns well with the established definitions in software testing. Unit testing is indeed generally regarded as testing a single, isolated unit of code, usually a class or a function, to ensure that it behaves as expected under various conditions. The core purpose of unit tests...
41,586
[ { "from": "human", "value": "G'day,\nI am working with a group of offshore developers who have been using the term unit testing quite loosely.\nTheir QA document talks about writing unit tests and then performing unit testing of the system.\nThis doesn't line up with my interpretation of what unit testing i...
We use SourceSafe 6.0d and have a DB that is about 1.6GB. We haven't had any problems yet, and there is no plan to change source control programs right now, but how big can the SourceSafe database be before it becomes an issue? Thanks
Microsoft Visual SourceSafe (VSS) 6.0d has a recommended maximum database size of around 2GB. While the database itself can technically grow larger than this limit, performance issues and potential data corruption can start to occur as the database approaches and exceeds that size. Here are a few considerations regar...
43,298
[ { "from": "human", "value": "We use SourceSafe 6.0d and have a DB that is about 1.6GB. We haven't had any problems yet, and there is no plan to change source control programs right now, but how big can the SourceSafe database be before it becomes an issue?\nThanks\n" }, { "from": "gpt", "value"...
Say I have some code like namespace Portal { public class Author { public Author() { } private void SomeMethod(){ string myMethodName = ""; // myMethodName = "Portal.Author.SomeMethod()"; } } } Can I find out the name of the method I am using? In my example I'ld ...
Yes, you can programmatically retrieve the name of the currently executing method in C#. You can achieve this using the `System.Diagnostics` namespace, specifically the `StackTrace` and `StackFrame` classes. Here's how you can set `myMethodName` to the name of the current method: ```csharp using System.Diagnostics; n...
40,858
[ { "from": "human", "value": "Say I have some code like\nnamespace Portal\n{\n public class Author\n {\n public Author() { }\n private void SomeMethod(){\n string myMethodName = \"\"; \n // myMethodName = \"Portal.Author.SomeMethod()\";\n }\n }\n}\n\nCan I find ...
Use case: 3rd party application wants to programatically monitor a text file being generated by another program. Text file contains data you want to analyze as it's being updated. I'm finding a lot of answers to this question wrapped around FileSystemWatcher but let's say you are writing an application for a Windows ma...
If you are developing a Windows application and want to monitor a text file for changes without relying on .NET or the FileSystemWatcher class, you have several options. However, the options will vary depending on the programming language you are using. Below are some possible approaches you can take: ### 1. Roll Your...
38,724
[ { "from": "human", "value": "Use case: 3rd party application wants to programatically monitor a text file being generated by another program. Text file contains data you want to analyze as it's being updated.\nI'm finding a lot of answers to this question wrapped around FileSystemWatcher but let's say you a...
I'm using VSTS Database Edition GDR Version 9.1.31024.02 I've got a project where we will be creating multiple databases with identical schema, on the fly, as customers are added to the system. It's one DB per customer. I thought I should be able to use the deploy script to do this. Unfortunately I always get the full ...
In VSTS Database Edition (now known as SQL Server Data Tools), customizing the generated deployment scripts can sometimes be a bit tricky due to the way the deployment process is designed. It sounds like you want to create a script that can dynamically handle database creation based on customer names, which is a reason...
40,232
[ { "from": "human", "value": "I'm using VSTS Database Edition GDR Version 9.1.31024.02\nI've got a project where we will be creating multiple databases with identical schema, on the fly, as customers are added to the system. It's one DB per customer. I thought I should be able to use the deploy script to do ...
I am using Oracle form 10 I want to know how can I access the parameters of URL in oracle form Ex: whenever I run the form it opens in a browser and the URL for the same is http://112.10.0.10:7778/forms/frmservlet?config=pkamble I just want to know how can I access the value of 'config' parameter inside oracle form co...
In Oracle Forms 10g, you can access URL parameters (like the `config` parameter in your example) using the built-in package `WEBUTIL`. However, you may also directly access the parameters using the built-in function `GET_APPLICATION_PROPERTY`. Here's how you can access the URL parameter `config` in an Oracle Form: 1....
40,577
[ { "from": "human", "value": "I am using Oracle form 10\nI want to know how can I access the parameters of URL in oracle form \nEx:\nwhenever I run the form it opens in a browser and the URL for the same is\nhttp://112.10.0.10:7778/forms/frmservlet?config=pkamble\nI just want to know how can I access the val...
I have some pages on my site that are plain HTML pages, but I want to add some ASP .NET type functionality to these pages. My concern is that if I simple rename the .html page to .aspx that I will break links, and lose SEO, and so on. I would think there is a "best practice" for how to handle this situation.
When transitioning from static HTML pages to ASP.NET pages, it's crucial to maintain the existing URLs to prevent broken links and minimize any negative impact on SEO. Here are some best practices for handling this situation: ### 1. **Use URL Redirects** If you are planning to rename your `.html` files to `.aspx`, it...
39,266
[ { "from": "human", "value": "I have some pages on my site that are plain HTML pages, but I want to add some ASP .NET type functionality to these pages. My concern is that if I simple rename the .html page to .aspx that I will break links, and lose SEO, and so on.\nI would think there is a \"best practice\" ...
I have many jobs that have a step to send 1 specific email out to a list of people. That list of reciepients is hardcoded in the step command and I need to remove one person from that list, in all jobs. How do I loop through ALL the jobs in the Sql Server Agent and modify the command text to find+replace a specific pi...
To loop through all SQL Server Agent jobs and modify the command text of their steps in SQL Server 2005, you can use the system tables that store job information. Specifically, you will be looking at the `msdb.dbo.sysjobs`, `msdb.dbo.sysjobsteps`, and `msdb.dbo.sysjobschedules` tables. Here's a script you can use to ...
39,834
[ { "from": "human", "value": "I have many jobs that have a step to send 1 specific email out to a list of people. That list of reciepients is hardcoded in the step command and I need to remove one person from that list, in all jobs.\nHow do I loop through ALL the jobs in the Sql Server Agent and modify the ...
Modern RDBMS's have support for XML column types and functionality for dealing with XML in stored procedures. Historically I would always have mapped hierarchical data (whether of OO objects or XML) to relational tables. Given the widespread database support for XML should I change my ways?
The decision to use XML column types in a modern relational database management system (RDBMS) versus traditional relational table structures for hierarchical data depends on several factors, including the nature of the data, the application’s requirements, and performance considerations. Here are some points to consid...
26,803
[ { "from": "human", "value": "Modern RDBMS's have support for XML column types and functionality for dealing with XML in stored procedures. Historically I would always have mapped hierarchical data (whether of OO objects or XML) to relational tables. Given the widespread database support for XML should I cha...
Is there a way to find all web pages that implement a specific master page in Visual Studio? I'm looking for a shortcut like shift F12 that will find all usages of a master page. When I do it on the master page class name it only takes me to the design view instead of showing all pages that use it. I do have Resharper ...
In Visual Studio, there isn't a built-in shortcut like Shift + F12 that directly finds all usages of a master page in a way that works seamlessly like it does for other code references. However, you have a few options, especially with ReSharper that can make this process easier. Here are some approaches you can take: ...
41,293
[ { "from": "human", "value": "Is there a way to find all web pages that implement a specific master page in Visual Studio?\nI'm looking for a shortcut like shift F12 that will find all usages of a master page. When I do it on the master page class name it only takes me to the design view instead of showing a...
I want to create a custom web part that has more than 1 filter web part and that can be connected to Report Viewer Web Part (Integrated Mode) at runtime/design time. I searched a lot for this, but could not find a way to have single web part that is a provider to more than 1 filters. Say for example - My Report accep...
To achieve the functionality where a single custom web part can provide two distinct filter parameters to a Report Viewer Web Part in SharePoint, you need to ensure that your web part effectively supports multiple connections and can be configured to work with both parameters independently. Here are the steps you can ...
39,464
[ { "from": "human", "value": "I want to create a custom web part that has more than 1 filter web part and that can be connected to Report Viewer Web Part (Integrated Mode) at runtime/design time.\nI searched a lot for this, but could not find a way to have single web part that is a provider to more than 1 fi...
Assume that you have a running SQL Server Express instance named (local)\SQLEXPRESS. Its database folder is c:\program files\Microsoft SQL Server\MSSQL.1\MSSQL\Data. How can VBScript be used to retrieve that folder? Maybe by using SMO? And if so, how? <- Forget that. SMO uses .NET. Only possible in PowerShell. Updat...
Your approach using the Windows Registry to retrieve the SQL Server instance's data folder is a common and practical method. There aren't many alternatives, especially when dealing with SQL Server Express installations, since SMO relies on .NET and PowerShell, as you noted. Here's a detailed explanation of your approac...
39,248
[ { "from": "human", "value": "Assume that you have a running SQL Server Express instance named (local)\\SQLEXPRESS. Its database folder is c:\\program files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\Data. \nHow can VBScript be used to retrieve that folder? \nMaybe by using SMO? And if so, how? <- Forget that. S...
I'm trying to use the freeware Multiple Find And Replace 1.00 suggested in this question. Multiple Find And Replace 1.00 http://www.nontube.com/images/screenshot-mfar.png Unfortunately it requires that I explicitly select each file I'd like it to search. But, it does allow me to load in a text file of the file paths. C...
You can easily generate a list of all `.php` files in a directory and its subdirectories using built-in command-line tools in Windows or Unix-based systems. Here are a couple of methods you can use: ### On Windows 1. **Using Command Prompt**: You can use the `dir` command to search for `.php` files and redirect th...
41,833
[ { "from": "human", "value": "I'm trying to use the freeware Multiple Find And Replace 1.00 suggested in this question.\nMultiple Find And Replace 1.00 http://www.nontube.com/images/screenshot-mfar.png\nUnfortunately it requires that I explicitly select each file I'd like it to search.\nBut, it does allow me...
I have quite a few partials in my application, and some of them need to do some jQuery goodness at $(document).ready time. The problem is, if I put the $(document).ready directly into a script block for the partial, then this gets overridden if another partial does the same thing. It seems a solution where the various ...
Yes, there is a common way to manage multiple jQuery `$(document).ready` functions without having them override each other. Instead of putting multiple `$(document).ready()` calls throughout your application, you can use a single event handler to collect all the functions you need to execute when the DOM is ready. Here...
35,675
[ { "from": "human", "value": "I have quite a few partials in my application, and some of them need to do some jQuery goodness at $(document).ready time.\nThe problem is, if I put the $(document).ready directly into a script block for the partial, then this gets overridden if another partial does the same thi...
Possible Duplicate: Can’t operator == be applied to generic types in C#? I've got the following generic class and the compiler complains that "Operator '!=' cannot be applied to operands of type 'TValue' and 'TValue'" (see CS0019): public class Example<TValue> { private TValue _value; public TValue Value ...
In C#, when you're working with generic types, the compiler does not know how to compare instances of `TValue` using `!=` or `==` because these operators are not defined for a generic type. However, there are a couple of ways to address this issue. ### 1. Use `Object.Equals()` You can use the `Object.Equals` method t...
42,360
[ { "from": "human", "value": "\nPossible Duplicate:\nCan’t operator == be applied to generic types in C#? \n\nI've got the following generic class and the compiler complains that \"Operator '!=' cannot be applied to operands of type 'TValue' and 'TValue'\" (see CS0019):\npublic class Example<TValue>\n{\n ...
I want my application to clean all the temp files it used, the problem is that not all the temp files are under my control, so I just want to "brutally" unlock them in order to delete them programatically.
To programmatically unlock and delete temporary files that might be in use by other processes, you need to be cautious, as forcefully unlocking files can lead to data corruption or crashes in the applications that are using those files. However, if you still wish to proceed, here are a few approaches you could take: #...
37,309
[ { "from": "human", "value": "I want my application to clean all the temp files it used, the problem is that not all the temp files are under my control, so I just want to \"brutally\" unlock them in order to delete them programatically.\n" }, { "from": "gpt", "value": "To programmatically unloc...
Is there any possibility that GetPropInfo returns nil even if the given class is declared with correct {$METHODINFO} directives. type ... ... {$METHODINFO ON} TMyClass = class private fField: integer; published property Field: integer read fField write fField; end; {$METHODIN...
Yes, there is a possibility that `GetPropInfo` can return `nil` even if the class is declared with the correct `{$METHODINFO}` directives. Here are some potential reasons why this might occur: 1. **Class Instantiation**: `GetPropInfo` requires that the class is instantiated properly in some contexts. If you're calling...
40,452
[ { "from": "human", "value": "Is there any possibility that GetPropInfo returns nil even if the given class is declared with correct {$METHODINFO} directives.\n type \n ... \n ...\n {$METHODINFO ON}\n TMyClass = class\n private\n fField: integer;\n published\n property Field: integer...
Are the validation controls available in Visual Studio 2005 for Windows Forms like they are for Web Forms? I don't see them.
In Visual Studio 2005, validation controls that are commonly used in Web Forms (such as RequiredFieldValidator, RangeValidator, etc.) are not available for Windows Forms applications. Windows Forms has a different approach to validation. In Windows Forms, you typically use the `ErrorProvider` component along with even...
41,612
[ { "from": "human", "value": "Are the validation controls available in Visual Studio 2005 for Windows Forms like they are for Web Forms? I don't see them.\n" }, { "from": "gpt", "value": "In Visual Studio 2005, validation controls that are commonly used in Web Forms (such as RequiredFieldValidato...
Where can I find algorithms for image distortions? There are so much info of Blur and other classic algorithms but so little of more complex ones. In particular, I am interested in swirl effect image distortion algorithm.
If you're looking for algorithms for image distortions, particularly for more complex effects like a swirl distortion, there are several resources and methodologies you can explore. Here's a guide to help you get started: ### 1. **Computer Vision and Image Processing Textbooks** - **"Digital Image Processing" by Rafae...
38,032
[ { "from": "human", "value": "Where can I find algorithms for image distortions? There are so much info of Blur and other classic algorithms but so little of more complex ones. In particular, I am interested in swirl effect image distortion algorithm.\n" }, { "from": "gpt", "value": "If you're lo...
I have an AVI file, which I want to re-encode to fit on a CD of size 650 MB. How can I encode such that file size does not exceed the given size? Which program can I use ?
To re-encode an AVI file to fit on a 650 MB CD, you will need to use video conversion software that allows you to adjust settings like bitrate, resolution, and codec. Here are a few popular programs you can use for this purpose: 1. **HandBrake**: - HandBrake is a free and open-source transcoder for digital video fi...
39,605
[ { "from": "human", "value": "I have an AVI file, which I want to re-encode to fit on a CD of size 650 MB. How can I encode such that file size does not exceed the given size? Which program can I use ?\n" }, { "from": "gpt", "value": "To re-encode an AVI file to fit on a 650 MB CD, you will need ...
I am trying to record the arguments passed to a method before it is called using bytecode instrumentation. Currently while instrumenting using java code I have to first pop all the args into a locals, then push them again twice (once for my method which will record and in this case all primitive types have to be conve...
In Java bytecode, you can only manipulate the stack using a limited set of instructions, and as you've noted, there’s no direct instruction that allows you to duplicate the entire stack in one go. The `dup` instruction only duplicates the topmost value, and more complex duplications require combinations of `dup`, `dup_...
41,000
[ { "from": "human", "value": "I am trying to record the arguments passed to a method before it is called using bytecode instrumentation. \nCurrently while instrumenting using java code I have to first pop all the args into a locals, then push them again twice (once for my method which will record and in this...
On researching another question I noted that the stat function in Perl can take a dirhandle as its argument (instead of a filehandle or filename). However I can't find any examples of correct use of this - there are none in the Perl manual. Can anyone show an example of how to use it?
Certainly! In Perl, the `stat` function can indeed take a directory handle as an argument. This allows you to obtain information about a directory instead of a file. Here's a simple example to demonstrate how to use `stat` with a directory handle. ### Example of Using `stat` with a Directory Handle ```perl use strict...
41,095
[ { "from": "human", "value": "On researching another question I noted that the stat function in Perl can take a dirhandle as its argument (instead of a filehandle or filename).\nHowever I can't find any examples of correct use of this - there are none in the Perl manual.\nCan anyone show an example of how to...
If you have a Java object and an XML schema (XSD), what is the best way to take that object and convert it into an xml file in line with the schema. The object and the schema do not know about each other (in that the java classes weren't created from the schema). For example, in the class, there may be an integer field...
To map a Java object to an XML structure based on an XSD schema where the object and schema do not know about each other, you can use a combination of libraries like JAXB (Java Architecture for XML Binding) for XML handling, along with a custom mapping layer to handle the conversions. Here are several approaches you ca...
34,744
[ { "from": "human", "value": "If you have a Java object and an XML schema (XSD), what is the best way to take that object and convert it into an xml file in line with the schema. The object and the schema do not know about each other (in that the java classes weren't created from the schema).\nFor example, i...
Currently I have a ListView (using the Details View). I would like to implement the behaviour whereby when a user selects a single item (log entry) the log entry expands (from one line to multiple lines) to provide more detailed information about the error that occured. My question is this: Is this possible? If so, is ...
Yes, it is possible to implement expandable items in a ListView using WPF. When a user selects an item, you can expand it to show additional details. This can be achieved by using an `Expander` control or by customizing the `ListView` to display additional information based on the selection. ### Solution Using WPF wit...
39,756
[ { "from": "human", "value": "Currently I have a ListView (using the Details View). I would like to implement the behaviour whereby when a user selects a single item (log entry) the log entry expands (from one line to multiple lines) to provide more detailed information about the error that occured.\nMy ques...
When I include an image as an <img> tag as well as a background image on a DOM element, the browser sometimes makes two requests for the same image. This also sometimes happens when using the hover pseudo-property. For example: <html> <head> <style> div{ background: transparent url(/img/stuff.png) no-repe...
The behavior you're observing, where a browser makes multiple requests for the same image, can occur for a few reasons: 1. **Separate Requests for Different Contexts**: When you use an `<img>` tag to include an image and also reference the same image as a background image in CSS, the browser treats these as separate r...
40,724
[ { "from": "human", "value": "When I include an image as an <img> tag as well as a background image on a DOM element, the browser sometimes makes two requests for the same image. This also sometimes happens when using the hover pseudo-property. For example:\n<html>\n<head>\n<style>\n div{\n backg...
I'm having trouble converting my Cocoa project from a manually-synched interface model to a bindings model so that I don't have to worry about interface glue code. I followed the CocoaDevCentral Cocoa Bindings tutorial to make sure that I had covered all the bases, but things aren't working correctly. I have a master-...
When working with Cocoa bindings and converting your project from a manually-synced interface model to a bindings model, there are several common pitfalls and troubleshooting steps to consider. Since you've already taken a number of steps and you mention your NSMutableArray has data but the bindings are not reflecting ...
39,408
[ { "from": "human", "value": "I'm having trouble converting my Cocoa project from a manually-synched interface model to a bindings model so that I don't have to worry about interface glue code.\nI followed the CocoaDevCentral Cocoa Bindings tutorial to make sure that I had covered all the bases, but things a...
The following Code does not compile Dim BasicGroups As String() = New String() {"Node1", "Node2"} Dim NodesToRemove = From Element In SchemaDoc.Root.<Group> _ Where Element.@Name not in BasicGroups For Each XNode In NodesToRemove XNode.Remove() Next It is supposed to Remove any Immediate child ...
The code you've provided has a couple of issues that prevent it from compiling. The main problem is with the `Where` clause where you attempt to use `not in` to check if the element attribute is not in the `BasicGroups` array. Instead, you should use `Contains` method on the array to check for membership. Here's how y...
43,602
[ { "from": "human", "value": "The following Code does not compile\nDim BasicGroups As String() = New String() {\"Node1\", \"Node2\"}\nDim NodesToRemove = From Element In SchemaDoc.Root.<Group> _\n Where Element.@Name not in BasicGroups\nFor Each XNode In NodesToRemove\n XNode.Remove()\n...
I know this has a certain "send me teh codes" quality, but the internet has really been letting me down on this one. I have an excel file in excel 2003's xml format that I want to attach an odbc connection to. And I can't seem to find the right connection string. connectionstrings.com has let me down, and other quest...
To connect to an Excel 2003 XML file (with a `.xml` extension) using an ODBC connection, you'll need to use an appropriate ODBC driver that can interpret the Excel XML format. Unfortunately, there is no direct ODBC driver specifically for the Excel 2003 XML format, but you can use the Microsoft Excel ODBC driver, which...
40,638
[ { "from": "human", "value": "I know this has a certain \"send me teh codes\" quality, but the internet has really been letting me down on this one. I have an excel file in excel 2003's xml format that I want to attach an odbc connection to.\nAnd I can't seem to find the right connection string. connection...
Is there a way to recursively add all "non added" files to SVN? I want to do something like svn add trunk/ to add all new files, without getting: svn: warning: 'trunk' is already under version control If this is not possible, is there a way to get a list of all files that are not under version control in the director...
Yes, you can recursively add all "non added" (untracked) files to SVN from the command line without encountering the warning about the directory already being under version control. While SVN itself does not provide a direct command to add only untracked files, you can use a combination of commands to achieve the desir...
42,283
[ { "from": "human", "value": "Is there a way to recursively add all \"non added\" files to SVN?\nI want to do something like\nsvn add trunk/\n\nto add all new files, without getting:\nsvn: warning: 'trunk' is already under version control\n\nIf this is not possible, is there a way to get a list of all files ...
I've got a backup made using the regular SQL Server 2005 backup command. Is there a way to restore just a single table, not the whole DB?
Restoring a single table from a full database backup in SQL Server is not straightforward, as SQL Server does not provide a built-in way to restore just one table from a backup. However, there are a few methods you can use to achieve this goal: ### Method 1: Restore to a Temporary Database 1. **Restore the full databa...
41,969
[ { "from": "human", "value": "I've got a backup made using the regular SQL Server 2005 backup command. Is there a way to restore just a single table, not the whole DB?\n" }, { "from": "gpt", "value": "Restoring a single table from a full database backup in SQL Server is not straightforward, as S...
I wish to create an online system to track some things (e.g., a database with children, where each child has 1 or more visits from doctors). I want the users to be able to enter data as well as search for it, especially from mobile devices. So, this is a custom mobile online DB app of modest but non-zero size. I've loo...
When considering whether to use an online database app like DabbleDB or Zoho Creator versus building a custom solution, there are several factors to weigh. Here are some key considerations based on your needs and experiences: ### Pros of Using Online Database Apps 1. **Ease of Use**: These platforms often come with u...
40,558
[ { "from": "human", "value": "I wish to create an online system to track some things (e.g., a database with children, where each child has 1 or more visits from doctors). I want the users to be able to enter data as well as search for it, especially from mobile devices. So, this is a custom mobile online DB ...
In vs2008, how can I (possibly with a macro) assign a shortcut key to collapse to definitons but leave regions expanded (they must expand if collapsed)? EDIT: I hate regions but my co-workers does not (: So I want this to avoid the regions used by them. I read jeff's post. Ctrl M + O is what I really want to do, if the...
In Visual Studio 2008, the functionality you're looking for—collapsing to definitions while leaving regions expanded—does not have a direct built-in shortcut key. However, you can achieve this functionality using a macro. Here’s how to create a macro that will collapse to definitions while leaving regions expanded: ...
36,885
[ { "from": "human", "value": "In vs2008, how can I (possibly with a macro) assign a shortcut key to collapse to definitons but leave regions expanded (they must expand if collapsed)?\nEDIT: I hate regions but my co-workers does not (: So I want this to avoid the regions used by them.\nI read jeff's post. Ctr...
I'm working on a PocketPC app in Visual Studio 2005. The solution was building fine, then suddenly broke. The first error is this (assume the project is FooPDA): "Unable to find source file 'C:\FooPDA\obj\Release\FooPDA.exe' for file 'FooPDA.exe', located in '%InstallDir%', the file may be absent or locked." This err...
It sounds like you've run into an issue that can sometimes occur when building projects in Visual Studio, especially when there are changes made to the project settings or files. Here are several things you can try to resolve the "Unable to find source file" error: 1. **Clean and Rebuild the Solution**: - Go to the...
40,900
[ { "from": "human", "value": "I'm working on a PocketPC app in Visual Studio 2005. The solution was building fine, then suddenly broke. The first error is this (assume the project is FooPDA):\n\"Unable to find source file 'C:\\FooPDA\\obj\\Release\\FooPDA.exe' for file 'FooPDA.exe', located in '%InstallDir...
I would like to design very high availability(never take server down, roll out features without restart etc) application with both client(probably C# gui) and server components(Java,C++,Perl). I got some advice from (minimize-code-maximize-data.html and Yegge), and I would like to make most logic dynamically readable ...
Designing a highly available application that never requires server downtime and allows for real-time updates and configurations is a challenging yet rewarding endeavor. Here's a breakdown of the key considerations, limitations, experiences, and best practices in this realm. ### Key Considerations 1. **Dynamic Config...
37,790
[ { "from": "human", "value": "I would like to design very high availability(never take server down, roll out features without restart etc) application with both client(probably C# gui) and server components(Java,C++,Perl). \nI got some advice from (minimize-code-maximize-data.html and Yegge), and I would lik...
I need to create a BAT file to run an application through telnet, but as far as I know there is no way to do this on DOS. Telnet does not allow any command to be sent to the remote machine at the very instant of the connection, and each subsequent command in the BAT file would only be executed after telnet stops. This ...
You're correct that the `telnet` command in Windows does not directly allow you to send commands immediately upon connection. However, you can use other methods to achieve your goal of executing a command on a remote machine via telnet. One common approach is to use a tool called `plink`, which is part of the PuTTY su...
35,023
[ { "from": "human", "value": "I need to create a BAT file to run an application through telnet, but as far as I know there is no way to do this on DOS. Telnet does not allow any command to be sent to the remote machine at the very instant of the connection, and each subsequent command in the BAT file would o...
I am looking for a way to periodically send some data over all clients connected to a TCP port. I am looking at twisted python and I am aware of reactor.callLater. But how do I use it to send some data to all connected clients periodically ? The data sending logic is in Protocol class and it is instantiated by the reac...
To periodically send data to all connected clients in a Twisted application, you can maintain a list of all connected `Protocol` instances and use `reactor.callLater` to schedule periodic data sending. Here's a step-by-step breakdown of how to achieve this: 1. **Create a list to keep track of connected clients**: You...
40,848
[ { "from": "human", "value": "I am looking for a way to periodically send some data over all clients connected to a TCP port. I am looking at twisted python and I am aware of reactor.callLater. But how do I use it to send some data to all connected clients periodically ? The data sending logic is in Protocol...
I am using Infragistics UltraGrid in a Windows Forms application. I need an event which is raised on cell value change. I've tried many events like AfterCellActivate, AfterCellUpdate but was unable to find the right one.
In Infragistics UltraGrid for Windows Forms, to detect when a cell's value changes, you can use the `AfterRowUpdate` event in conjunction with the `BeforeCellChange` event. Here's how you can utilize these events effectively: 1. **AfterRowUpdate**: This event is triggered after the cell's value has been updated and co...
36,689
[ { "from": "human", "value": "I am using Infragistics UltraGrid in a Windows Forms application.\nI need an event which is raised on cell value change.\nI've tried many events like AfterCellActivate, AfterCellUpdate but was unable to find the right one. \n" }, { "from": "gpt", "value": "In Infrag...
I have an array of RGB values, whose size I can guarantee to match the client area of a window on screen. Using the Win32 API, what are the easiest and fastest ways to get the contents of my array on the screen in response to a WM_PAINT message? If it makes it simpler/faster, we can assume it's a 32-bit display and eac...
To display an array of RGB values in a Windows application using the Win32 API during a `WM_PAINT` message, you can create a bitmap from your array and then use the `BitBlt` function to render it to the client area of your window. Here’s a step-by-step guide on how to do this: ### Step 1: Create a Bitmap from Your Arr...
37,280
[ { "from": "human", "value": "I have an array of RGB values, whose size I can guarantee to match the client area of a window on screen.\nUsing the Win32 API, what are the easiest and fastest ways to get the contents of my array on the screen in response to a WM_PAINT message?\nIf it makes it simpler/faster, ...
I want to add some Ajax-niceness to my Django-coded website. In my Django code, I use the @login_required decorator from django.contrib.auth.decorators to mark which view requires authentication. The default behavior when a not authenticated user clicks it is to redirect him/her to login page, and then pass the target...
To achieve the functionality of displaying a login/signup popup for restricted links instead of redirecting users to the login page, you will need to follow a systematic approach involving both Django and JavaScript. Below are the steps you can take to implement this feature: ### 1. Mark Restricted Links in Django Yo...
35,843
[ { "from": "human", "value": "I want to add some Ajax-niceness to my Django-coded website. \nIn my Django code, I use the @login_required decorator from django.contrib.auth.decorators to mark which view requires authentication. The default behavior when a not authenticated user clicks it is to redirect him/h...
I'm currently using Win32ShellFolderManager2 and ShellFolder.getLinkLocation to resolve windows shortcuts in Java. Unfortunately, if the Java program is running as a service under Vista, getLinkLocation, this does not work. Specifically, I get an exception stating "Could not get shell folder ID list". Searching the web...
Resolving Windows shortcuts (.lnk files) can indeed be tricky, especially when running in different contexts such as a service. If you're looking for third-party libraries to handle .lnk files in Java, there are a few options you can explore. Here are some recommendations: 1. **Java Native Access (JNA)**: While JNA is...
36,048
[ { "from": "human", "value": "I'm currently using Win32ShellFolderManager2 and ShellFolder.getLinkLocation to resolve windows shortcuts in Java. Unfortunately, if the Java program is running as a service under Vista, getLinkLocation, this does not work. Specifically, I get an exception stating \"Could not ge...
Is there an analogous conditional-not-present attribute or maybe a way to use the Conditional attribute to only include a method if that symbol is not defined? What I'm looking for is something that works like this: [Conditional("!SILVERLIGHT")] private void DoStuffThatSilverlightCant() {...} Such that the method will...
Unfortunately, the C# language does not provide a built-in attribute that is directly analogous to `Conditional` for scenarios where a method should only be included if a specific symbol is not defined. The `Conditional` attribute can only be used with symbols that exist; it does not support negation or the concept of ...
40,424
[ { "from": "human", "value": "Is there an analogous conditional-not-present attribute or maybe a way to use the Conditional attribute to only include a method if that symbol is not defined?\nWhat I'm looking for is something that works like this:\n[Conditional(\"!SILVERLIGHT\")]\nprivate void DoStuffThatSilv...
I've recently had my PC upgraded to Vista, which means it includes IIS7. The problem is that the ASP.NET website we're working on doesn't work anymore. I get an error because the application is trying to connect to the SQL Server with NT AUTHORITY/ANONYMOUS LOGON instead of my domain user, and anonymous isn't authorize...
It sounds like you're facing a common issue with IIS7 and how it handles authentication, especially after an upgrade from an older version of IIS. Here are some steps you can take to resolve the issue with NT AUTHORITY/ANONYMOUS LOGON when connecting to SQL Server: ### 1. Configure Application Pool Identity Ensure tha...
39,353
[ { "from": "human", "value": "I've recently had my PC upgraded to Vista, which means it includes IIS7. The problem is that the ASP.NET website we're working on doesn't work anymore. I get an error because the application is trying to connect to the SQL Server with NT AUTHORITY/ANONYMOUS LOGON instead of my d...
How do you feel about VS making you hunt for a tab that you used just minutes ago when you have a bazillion open tabs? What about constantly dragging tabs around to keep the ones you use close together? Oh, so you think AARGH, too? Then read on. I work on a piece of software with dozens of projects and hundreds of file...
It sounds like you’ve got quite the workflow challenge with Visual Studio and managing all those tabs! The frustration of hunting for a recently used tab amid a sea of open files is all too common for developers. Here are a few additional strategies that might help make tab management easier: 1. **Use the Solution Exp...
41,560
[ { "from": "human", "value": "How do you feel about VS making you hunt for a tab that you used just minutes ago when you have a bazillion open tabs? What about constantly dragging tabs around to keep the ones you use close together?\nOh, so you think AARGH, too? Then read on.\nI work on a piece of software w...
These days, many projects have started their life written in Java. Some of them are eventually converted to C# for incorporation in .NET. Examples that come to mind are log4net, nhibernate and db4o. Including sharpen (which is db4o's tool) have you seen and/or used any tools that make continual conversion manageable....
Continual conversion between Java and C# can indeed be a complex task, especially when trying to maintain synchronization between the two languages for long-term projects. However, there are some tools and approaches that have been developed to aid in this process, allowing for more manageable and efficient conversions...
40,359
[ { "from": "human", "value": "These days, many projects have started their life written in Java. Some of them are eventually converted to C# for incorporation in .NET. Examples that come to mind are log4net, nhibernate and db4o.\nIncluding sharpen (which is db4o's tool) have you seen and/or used any tools ...
I have a large UIScrollView into which I'm placing 3-4 rather large (320x1500 pixels or so) UIImageView image tiles. I'm adding these UIImageViews to the scroll view inside of my NIB files. I have one outlet on my controller, and that is to the UIScrollView. I'm using a property (nonatomic, retain) for this, and syt...
It sounds like you're encountering an issue with memory management and image handling in your app. Here are some potential causes and solutions you can consider: ### Potential Causes 1. **Large Image Memory Usage**: Large images (like 320x1500 pixels) can consume significant amounts of memory, and if you're holding o...
39,295
[ { "from": "human", "value": "I have a large UIScrollView into which I'm placing 3-4 rather large (320x1500 pixels or so) UIImageView image tiles. I'm adding these UIImageViews to the scroll view inside of my NIB files. I have one outlet on my controller, and that is to the UIScrollView. I'm using a prope...
Any links/Turorials avalable? I want to write a simple ISAPI plugin for IIS6.0. Prefered language c++
Writing an ISAPI (Internet Server Application Programming Interface) plugin for IIS (Internet Information Services) can be a bit challenging, especially with older versions like IIS 6.0. Below are some resources and a simple guide to help you get started with writing an ISAPI extension in C++. ### Resources and Tutori...
39,507
[ { "from": "human", "value": "Any links/Turorials avalable? I want to write a simple ISAPI plugin for IIS6.0.\nPrefered language c++\n" }, { "from": "gpt", "value": "Writing an ISAPI (Internet Server Application Programming Interface) plugin for IIS (Internet Information Services) can be a bit ch...
I'm running through an XML document, selecting all the elements, and creating links based on the ancestor which is usually two nodes up in the tree, but occasionally 3 or 4 nodes up. For the majority of the elements, using <xsl:value-of select="translate(../../@name,$uc,$lc)" /> works just fine, but for the cases w...
It looks like you're encountering a common issue with XML namespaces in XSLT. The main problem is that your `ancestor::s4:package` XPath expression is not able to find the `package` element when it's affected by the presence of the `xsl` namespace and when nodes are mixed in your XML structure. ### Problem Breakdown 1...
38,783
[ { "from": "human", "value": "I'm running through an XML document, selecting all the elements, and creating links based on the ancestor which is usually two nodes up in the tree, but occasionally 3 or 4 nodes up. For the majority of the elements, using <xsl:value-of select=\"translate(../../@name,$uc,$lc...
My new ASP.NET MVC Web Application works on my development workstation, but does not run on my web server... Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details belo...
The error message you're encountering indicates that your ASP.NET MVC application is trying to load the assembly `System.Web.Mvc, Version=1.0.0.0`, but it's not found on the web server. This typically means that the ASP.NET MVC framework is not installed on the server. ### Steps to Resolve the Issue: 1. **Install ASP...
35,097
[ { "from": "human", "value": "My new ASP.NET MVC Web Application works on my development workstation, but does not run on my web server...\n\nServer Error in '/' Application.\n\nConfiguration Error\nDescription: An error occurred during the processing of a configuration file required to service this request....
I'm trying to consume a webmethod but it seems that my application can't resolve DNS. The problem surfaces when I configure my application with an url (e.g.: http://mywebservice.com/webservice/methods.asmx), but it does not when I access the same webmethod through the server's IP address. The thing is that I need to a...
It sounds like you're experiencing a DNS resolution issue when trying to access a web service using its domain name. Based on the `nslookup` result you provided, it seems that your DNS server cannot resolve the domain you are trying to reach (`server.com`). Here are a few steps you can take to troubleshoot and potentia...
37,283
[ { "from": "human", "value": "I'm trying to consume a webmethod but it seems that my application can't resolve DNS. The problem surfaces when I configure my application with an url (e.g.: http://mywebservice.com/webservice/methods.asmx), but it does not when I access the same webmethod through the server's I...
Is there a YAML driver for the Java XStream package? I'm already using XStream to serialise/deserialise both XML and JSON. I'd like to be able to do the same with YAML.
Yes, there is a YAML driver for the Java XStream package that allows you to serialize and deserialize YAML data. The XStream library supports various formats through drivers, including XML and JSON, and with the right library, you can also work with YAML. To use YAML with XStream, you can use the `xstream-yaml` extens...
41,423
[ { "from": "human", "value": "Is there a YAML driver for the Java XStream package?\nI'm already using XStream to serialise/deserialise both XML and JSON. I'd like to be able to do the same with YAML.\n" }, { "from": "gpt", "value": "Yes, there is a YAML driver for the Java XStream package that al...
I've written a Custom User Control which returns some user specific data. To load the Custom User Control I use the following line of code: UserControl myUC = (UserControl).Load("~/customUserControl.ascx"); But how can I access string user inside the User Control myUC?
To access a string variable (or any data) defined within your Custom User Control (`customUserControl.ascx`) from the code-behind, you will need to expose that variable as a public property or method in the User Control class. Here’s how you can achieve this: ### Step 1: Define a Public Property in Your User Control ...
41,413
[ { "from": "human", "value": "I've written a Custom User Control which returns some user specific data. \nTo load the Custom User Control I use the following line of code:\nUserControl myUC = (UserControl).Load(\"~/customUserControl.ascx\");\n\nBut how can I access string user inside the User Control myUC? \...
I'm trying to use a break statement in a for loop, but since I'm also using strict subs in my Perl code, I'm getting an error saying: Bareword "break" not allowed while "strict subs" in use at ./final.pl line 154. Is there a workaround for this (besides disabling strict subs)? My code is formatted as follows: for...
In Perl, the `break` statement as used in some other programming languages (like C or Java) doesn't exist. In Perl, you'll need to use a different mechanism to exit a loop. Since you're using `strict subs`, which disallows the use of barewords, you can't use `break` directly. To achieve similar functionality, you can ...
43,690
[ { "from": "human", "value": "I'm trying to use a break statement in a for loop, but since I'm also using strict subs in my Perl code, I'm getting an error saying:\n\nBareword \"break\" not allowed while\n \"strict subs\" in use at ./final.pl\n line 154.\n\nIs there a workaround for this (besides disabling...
I'm looking for articles, forum or blog posts dealing with SharePoint and thread safety? I'm quite sure there are some special aspects regarding thread safety that have to be considered when working with the SharePoint object model. Actually I didn't find many information about this, yet. So I'm looking forward to your...
Hi Flo, Thread safety is indeed an important aspect to consider when working with the SharePoint object model, particularly in custom solutions where you may be dealing with multiple threads or asynchronous operations. Below are some resources and points to consider regarding thread safety in SharePoint: ### Articles...
37,000
[ { "from": "human", "value": "I'm looking for articles, forum or blog posts dealing with SharePoint and thread safety? I'm quite sure there are some special aspects regarding thread safety that have to be considered when working with the SharePoint object model.\nActually I didn't find many information about...
Using C or C++, After I decrypt a file to disk- how can I guarantee it is deleted if the application crashes or the system powers off and can't clean it up properly? Using C or C++, on Windows and Linux?
To securely delete a file in C or C++ after decrypting it, especially in the context of preventing data recovery after a crash or unexpected power loss, you can follow these general strategies: 1. **Overwrite the File Contents**: Before you delete a file, overwrite it several times with random data or zeros to ensure ...
30,110
[ { "from": "human", "value": "Using C or C++, After I decrypt a file to disk- how can I guarantee it is deleted if the application crashes or the system powers off and can't clean it up properly? Using C or C++, on Windows and Linux?\n" }, { "from": "gpt", "value": "To securely delete a file in ...
I wonder if MailMessage class is protected from e-mail injection. For example, should I check values before passing them to its constructor: MailMessage message = new MailMessage(fromTextBox.Text, toTextBox.Text);
The `MailMessage` class in the .NET framework does not provide built-in protection against email injection attacks. Therefore, it is important to validate and sanitize user input before passing values to the constructor of `MailMessage`. Email injection occurs when an attacker injects additional headers into the email...
40,295
[ { "from": "human", "value": "I wonder if MailMessage class is protected from e-mail injection. For example, should I check values before passing them to its constructor:\nMailMessage message = new MailMessage(fromTextBox.Text, toTextBox.Text);\n\n" }, { "from": "gpt", "value": "The `MailMessage`...
I was looking into GWT. It seems nice, but our software have the must work without JS requirement. Is it possible?
Google Web Toolkit (GWT) is designed primarily to allow developers to write client-side applications in Java and then compile that code into optimized JavaScript for web browsers. This means that GWT inherently relies on JavaScript for rendering and running its client-side components in the browser. If your software h...
40,670
[ { "from": "human", "value": "I was looking into GWT. It seems nice, but our software have the must work without JS requirement. Is it possible?\n" }, { "from": "gpt", "value": "Google Web Toolkit (GWT) is designed primarily to allow developers to write client-side applications in Java and then c...
I am about to make some changes to an existing Apache C module to fix some possible security flaws and general bad practices. However the functionality of the code must remain unchanged (except in cases where its fixing a bug). Standard regression testing stuff seems to be in order. I would like to know if anyone knows...
When it comes to testing Apache C modules, particularly for regression testing, there are several approaches and tools you can leverage. Here's a breakdown of how to set up your testing environment effectively, including suggestions for frameworks and strategies: ### 1. **Unit Testing with CUnit** CUnit is a popular ...
38,689
[ { "from": "human", "value": "I am about to make some changes to an existing Apache C module to fix some possible security flaws and general bad practices. However the functionality of the code must remain unchanged (except in cases where its fixing a bug). Standard regression testing stuff seems to be in or...
can i somehow compare two numbers in regex? i want regex that is correct for 10-12, but incorrect for 12-10. I mean that 10 must be smaller than 12. I want to do it in Javascript.
Regular expressions (regex) are not designed to compare numerical values directly. They excel at pattern matching but lack the inherent capability to perform arithmetic comparisons. However, you can achieve the desired behavior in JavaScript by combining regex to validate the format and additional logic to compare the ...
41,898
[ { "from": "human", "value": "can i somehow compare two numbers in regex?\ni want regex that is correct for 10-12, but incorrect for 12-10. I mean that 10 must be smaller than 12.\nI want to do it in Javascript.\n" }, { "from": "gpt", "value": "Regular expressions (regex) are not designed to comp...
What are the pros and cons of adopting Open Source software for an organisation? Is there anybody out there who has done this and how well has it been working out with some examples of the softwares they adopted and how it has been in use? Usually contributions come because people do it as a hobby, then how can we make...
Adopting open-source software (OSS) can have both advantages and disadvantages for organizations. Here’s a breakdown of the pros and cons, along with some examples of organizations that have successfully implemented OSS, considerations for ongoing support, and potential arguments from managers who may oppose its adopti...
38,966
[ { "from": "human", "value": "What are the pros and cons of adopting Open Source software for an organisation? Is there anybody out there who has done this and how well has it been working out with some examples of the softwares they adopted and how it has been in use?\nUsually contributions come because peo...
A good and flexible database schema illustrating e-commerce products and their rates management is required.
Creating a flexible database schema for managing e-commerce products and their rates requires careful consideration of the entities involved, their attributes, and the relationships between them. Below is a sample schema that demonstrates how to structure a database for e-commerce products, categories, rates, and disco...
38,366
[ { "from": "human", "value": "A good and flexible database schema illustrating e-commerce products and their rates management is required.\n" }, { "from": "gpt", "value": "Creating a flexible database schema for managing e-commerce products and their rates requires careful consideration of the en...
How can I turn off anti-aliasing for one specific JLabel? It uses a very small font which might look better without anti-aliasing. If important, I'm using Java 1.5 on Mac OS X.
In Java Swing, anti-aliasing is controlled by the Graphics2D settings. To turn off anti-aliasing for a specific `JLabel`, you can override the `paintComponent` method of the label to customize the rendering settings. Below is an example of how you can achieve this: ```java import javax.swing.*; import java.awt.*; pub...
40,437
[ { "from": "human", "value": "How can I turn off anti-aliasing for one specific JLabel? It uses a very small font which might look better without anti-aliasing.\nIf important, I'm using Java 1.5 on Mac OS X.\n" }, { "from": "gpt", "value": "In Java Swing, anti-aliasing is controlled by the Graphi...
I have a custom control that I need to use in another custom control. I have written all code at server side (no HTML). Can anyone tell me how to write below line of code in code behind using htmlTextWriter and how to register this control or how to write custom control within another where html is written from code be...
To create a custom control in ASP.NET and include it within another custom control while rendering everything programmatically using `HtmlTextWriter`, you can follow these steps. Below, I'll walk you through the process of defining a custom control that includes another custom control in its rendering. ### Step 1: Def...
38,773
[ { "from": "human", "value": "I have a custom control that I need to use in another custom control. I have written all code at server side (no HTML). Can anyone tell me how to write below line of code in code behind using htmlTextWriter and how to register this control or how to write custom control within a...
I've struggled for the last couple of months to come up with some clean code to report progress to a user. Everything always seems to boil down to: ReportProgress("Starting Task 1"); doTask1(); ReportProgress("Task 1 is done"); ReportProgress("Starting Task 2"); doTask2(); ReportProgress("Task 2 is done"); //etc... ...
It sounds like you're looking for a more structured and maintainable approach to reporting progress within your task execution. Here are several architectural ideas that can help improve the clarity and maintainability of your code: ### 1. Use a Task Wrapper Create a helper function or class that handles the task exec...
39,904
[ { "from": "human", "value": "I've struggled for the last couple of months to come up with some clean code to report progress to a user. Everything always seems to boil down to:\nReportProgress(\"Starting Task 1\");\ndoTask1();\nReportProgress(\"Task 1 is done\");\n\nReportProgress(\"Starting Task 2\");\ndo...
I'm working on a Flex app that needs to display ads from third party vendors that come in the form of HTML docs containing javascript. Are there any components available that can display such things? It seems like we need a mini-browser that runs inside of Flex. Thanks a lot, Alex
To display HTML content, including ads with JavaScript, within a Flex application, you can use the `HTMLLoader` class available in Adobe AIR. This class allows you to create a mini-browser within your Flex app, enabling the rendering of HTML and JavaScript content. Here’s how you can achieve this: 1. **Set Up an AIR ...
39,485
[ { "from": "human", "value": "I'm working on a Flex app that needs to display ads from third party vendors that come in the form of HTML docs containing javascript. Are there any components available that can display such things? It seems like we need a mini-browser that runs inside of Flex.\nThanks a lot,...
Hi I want to generate running time graphs on my java program. Is there any program which makes it?
Yes, there are several tools and libraries available that can help you generate running time graphs for your Java program. Here are a few popular options: 1. **Java VisualVM**: - Java VisualVM is a powerful profiling tool that comes bundled with the JDK. It allows you to monitor the performance of your Java applica...
38,637
[ { "from": "human", "value": "Hi I want to generate running time graphs on my java program. Is there any program which makes it?\n" }, { "from": "gpt", "value": "Yes, there are several tools and libraries available that can help you generate running time graphs for your Java program. Here are a f...
I'm using waf to build a C program. I'd like to check for the existence of a particular header file during the configuration phase. Is there a way to do that?
Yes, you can check for the existence of a particular header file in the configuration phase of a Waf build system. Waf provides a method called `check_header` that allows you to check for the presence of a header file. Here’s a simple example of how to do this in your `wscript` file: ```python def configure(ctx): ...
43,524
[ { "from": "human", "value": "I'm using waf to build a C program. I'd like to check for the existence of a particular header file during the configuration phase. Is there a way to do that?\n" }, { "from": "gpt", "value": "Yes, you can check for the existence of a particular header file in the con...
I understand how Map is easily parallelizable - each computer/CPU can just operate on a small portion of the array. Is Reduce/foldl parallelizable? It seems like each computation depends on the previous one. Is it just parallelizable for certain types of functions?
The `Reduce` operation, also known as `foldl` in functional programming, is a bit more complex in terms of parallelization compared to `Map`. This is primarily because `Reduce` typically operates on a sequence of values in a way that each step depends on the result of the previous step, creating a serial dependency. Ho...
42,148
[ { "from": "human", "value": "I understand how Map is easily parallelizable - each computer/CPU can just operate on a small portion of the array.\nIs Reduce/foldl parallelizable? It seems like each computation depends on the previous one. Is it just parallelizable for certain types of functions?\n" }, { ...
How and why do 7- and 35-pass erases work? Shouldn't a simple rewrite with all zeroes be enough?
The concepts of 7-pass and 35-pass erases stem from a desire to securely erase data, particularly on hard drives, in such a way that it cannot be easily recovered. Here’s a breakdown of how and why these methods are used: ### How Do 7-Pass and 35-Pass Erases Work? 1. **Multiple Overwrites**: The fundamental idea behi...
40,877
[ { "from": "human", "value": "How and why do 7- and 35-pass erases work?\nShouldn't a simple rewrite with all zeroes be enough?\n" }, { "from": "gpt", "value": "The concepts of 7-pass and 35-pass erases stem from a desire to securely erase data, particularly on hard drives, in such a way that it ...
I've been trying to use WF in my ASP.NET application (actually, it's ASP.NET MVC ... but the fact that it's MVC instead of WebForms should not matter at all). Now, I can run the WF and it works fine, etc, but it kicks off ASYNCHRONOUSLY, so any results from the WF (good or bad) get lost page life cycle. I found an MSDN...
Great questions! Let's tackle them one by one. ### Question 1: Application State vs Static Object #### Application State: 1. **Lifecycle**: Storing the `WorkflowRuntime` in the Application state means that the instance will last for the lifetime of the application, and it can be accessed by all requests and users. Th...
37,491
[ { "from": "human", "value": "I've been trying to use WF in my ASP.NET application (actually, it's ASP.NET MVC ... but the fact that it's MVC instead of WebForms should not matter at all).\nNow, I can run the WF and it works fine, etc, but it kicks off ASYNCHRONOUSLY, so any results from the WF (good or bad)...
We are in the process of selecting a workflow solution for a company that uses Microsoft products end to end. Given the news on WF4, in that it seems to be essentially a rewrite of previous versions, is it a wise move to back the current version or should we be looking elsewhere? Ie - is the current version so bad that...
When considering the adoption of a workflow solution, particularly with Microsoft products, it's crucial to weigh the benefits and potential challenges associated with the current offerings. ### Workflow Foundation 4 (WF4) 1. **Improvements Over Previous Versions**: WF4 introduced a number of enhancements over previo...
40,923
[ { "from": "human", "value": "We are in the process of selecting a workflow solution for a company that uses Microsoft products end to end. Given the news on WF4, in that it seems to be essentially a rewrite of previous versions, is it a wise move to back the current version or should we be looking elsewhere...
I ran into this bug where an element of an array, if its index is the string "0", is inaccessible. It's not a bug with unserialize, either, as this occurred in my code without invoking it. $arr = unserialize('a:1:{s:1:"0";i:5;}'); var_dump($arr["0"]); //should be 5, but is NULL var_dump($arr[0]); //maybe this would ...
The issue you are encountering arises from how PHP handles array keys and indexing with strings versus integers. In your example, the key in the array is the string `"0"` which is not the same as the integer `0`. This distinction can lead to unexpected behavior when you try to access the elements of the array. Here's ...
43,153
[ { "from": "human", "value": "I ran into this bug where an element of an array, if its index is the string \"0\", is inaccessible. \nIt's not a bug with unserialize, either, as this occurred in my code without invoking it.\n$arr = unserialize('a:1:{s:1:\"0\";i:5;}');\nvar_dump($arr[\"0\"]); //should be 5, bu...
We have a number of MS SQL Server 2005 installations (both Standard and Enterprise editions) on our webservers. From time to time I need to administrate them from home. Right now I'm using Remote Desktop to connect to my work machine, but I'd prefer to install SQL Server Management Studio on my home machine so that I c...
Yes, you can install SQL Server Management Studio (SSMS) that comes with SQL Server 2005 Express on your home machine to administer SQL Server 2005 Standard or Enterprise editions remotely. The management tools in SQL Server Express do not require a separate license, and they can connect to higher versions of SQL Serve...
43,295
[ { "from": "human", "value": "We have a number of MS SQL Server 2005 installations (both Standard and Enterprise editions) on our webservers. From time to time I need to administrate them from home. Right now I'm using Remote Desktop to connect to my work machine, but I'd prefer to install SQL Server Managem...
I'm updating my code generator and have a choice between implementing a method stub as a Virtual Method in a base class or a partial method in the generated code. Is there any performance difference between the two?
When choosing between implementing a method stub as a virtual method in a base class versus using a partial method in generated code, there are several considerations to keep in mind regarding performance, design, and usability. ### Performance Considerations 1. **Virtual Method**: - **Overhead**: Virtual methods ...
40,300
[ { "from": "human", "value": "I'm updating my code generator and have a choice between implementing a method stub as a Virtual Method in a base class or a partial method in the generated code. Is there any performance difference between the two?\n" }, { "from": "gpt", "value": "When choosing bet...
The assembly it's trying to find isn't the root assembly - it's a referenced one, but it's in the same folder, and Directory.GetCurrentDirectory() is the folder with all of the files in. I'm stuck - any suggestions?
When dealing with assembly loading issues in .NET, especially when you're encountering a scenario where a referenced assembly cannot be found, here are several suggestions and troubleshooting steps to help you resolve the issue: 1. **Check Assembly Location**: Ensure that the assembly you are trying to load is indeed ...
40,462
[ { "from": "human", "value": "The assembly it's trying to find isn't the root assembly - it's a referenced one, but it's in the same folder, and Directory.GetCurrentDirectory() is the folder with all of the files in.\nI'm stuck - any suggestions?\n" }, { "from": "gpt", "value": "When dealing with...
termios.h defines: #define TIOCM_OUT1 0x2000 #define TIOCM_OUT2 0x4000 But what are the flags good for?
The flags `TIOCM_OUT1` and `TIOCM_OUT2` defined in `<termios.h>` are part of a set of flags used to represent the status of various control lines in serial communication, specifically in the context of the `TIOCM` (Terminal Input/Output Control Mode) mechanism. ### Overview of TIOCM Flags: 1. **Purpose**: The `TIOCM`...
42,076
[ { "from": "human", "value": "termios.h defines:\n#define TIOCM_OUT1 0x2000\n#define TIOCM_OUT2 0x4000\n\nBut what are the flags good for?\n" }, { "from": "gpt", "value": "The flags `TIOCM_OUT1` and `TIOCM_OUT2` defined in `<termios.h>` are part of a set of flags used to represent the s...
I have multiple winforms applications that download large sets of reference data on startup. I realized that there might be a more efficient way to store this data locally instead of duplicating the memory in everyone one of the applications. This data is used for large drop down pick lists and data mappings. Does a...
Using a shared memory approach can indeed help reduce memory duplication across multiple WinForms applications. Here are a few methods you could consider for sharing reference data among your applications: ### 1. Memory-Mapped Files Memory-mapped files allow multiple processes to access the same block of memory. Here'...
32,823
[ { "from": "human", "value": "I have multiple winforms applications that download large sets of reference data on startup. I realized that there might be a more efficient way to store this data locally instead of duplicating the memory in everyone one of the applications. This data is used for large drop d...
I've copied a Dataset from one csproj to another, and the new project gets the following compile warning: "The custom tool 'MSDataSetGenerator' failed while processing the file 'Client.xsd'." In researching this warning I discovered that if I opened a VS cmd prompt and run XSD.exe on the xsd file directly I get more in...
To resolve the issue with Visual Studio not properly generating the dataset from your XSD file, you can manually specify the custom tool to use for the XSD file. Here's how to configure Visual Studio to use the `/d` option for generating the dataset: 1. **Open your project in Visual Studio**. 2. **Locate the XSD file...
42,403
[ { "from": "human", "value": "I've copied a Dataset from one csproj to another, and the new project gets the following compile warning:\n\"The custom tool 'MSDataSetGenerator' failed while processing the file 'Client.xsd'.\"\nIn researching this warning I discovered that if I opened a VS cmd prompt and run X...
Have a use case wherein need to maintain a connection open to a database open to execute queries periodically. Is it advisable to close connection after executing the query and then reopen it after the period interval (10 minutes). I would guess no since opening a connection to database is expensive. Is connection po...
You're correct that maintaining an open connection to a database can be expensive in terms of performance and resource utilization, especially if you're frequently opening and closing connections. Here’s a breakdown of your options: ### Keeping a Connection Open - **Pros:** - Reduced latency since you don’t have to ...
41,691
[ { "from": "human", "value": "Have a use case wherein need to maintain a connection open to a database open to execute queries periodically. \nIs it advisable to close connection after executing the query and then reopen it after the period interval (10 minutes). I would guess no since opening a connection ...
Visual Studio has certainly gone from strength to strength since humble Visual Studio 6 (and previous renditions). There seems to be a lot more coming in Visual Studio 2010 (based on blogs, the PDC and the more recent CTP virtual machines). The recent Service Pack 1 seemed to introduce some really intriguing new funct...
Visual Studio 2008 (SP1) introduced several features that developers found valuable. One of the most outstanding features that many developers couldn't live without was **IntelliSense** and the enhanced code editing capabilities. IntelliSense provides real-time code suggestions and context-aware completion, significant...
42,738
[ { "from": "human", "value": "Visual Studio has certainly gone from strength to strength since humble Visual Studio 6 (and previous renditions). There seems to be a lot more coming in Visual Studio 2010 (based on blogs, the PDC and the more recent CTP virtual machines).\nThe recent Service Pack 1 seemed to ...
I am in the process of researching/comparing CXF and Spring-WS for web services? I need to function both as a provider and a consumer of WS. In a nutshell, I have been told that Spring-WS is more configurable, but CXF is easier to get up and running. This question is subjective, but will help direct me in my research. ...
Both Apache CXF and Spring Web Services (Spring-WS) are popular frameworks for building web services in Java, and they each have their own strengths and weaknesses. Here's a summary based on general experience and knowledge of both frameworks: ### Apache CXF **Pros:** 1. **Ease of Setup:** CXF is often seen as straigh...
38,836
[ { "from": "human", "value": "I am in the process of researching/comparing CXF and Spring-WS for web services? I need to function both as a provider and a consumer of WS. In a nutshell, I have been told that Spring-WS is more configurable, but CXF is easier to get up and running. This question is subjective,...
When I create a new instance of a ChannelFactory: var factory = new ChannelFactory<IMyService>(); and that I create a new channel, I have an exception saying that the address of the Endpoint is null. My configuration inside my web.config is as mentioned and everything is as it is supposed to be (especially the addres...
The issue you are experiencing is due to how the `ChannelFactory<T>` works in relation to configuration settings specified in your `web.config` (or `app.config`). When you create an instance of `ChannelFactory<T>` without specifying a specific configuration or endpoint address, the factory does not automatically load t...
42,019
[ { "from": "human", "value": "When I create a new instance of a ChannelFactory:\nvar factory = new ChannelFactory<IMyService>();\n\nand that I create a new channel, I have an exception saying that the address of the Endpoint is null. \nMy configuration inside my web.config is as mentioned and everything is a...
Why are the split lists always empty in this program? (It is derived from the code on the Wikipedia page on Linked Lists.) /* Example program from wikipedia linked list article Modified to find nth node and to split the list */ #include <stdio.h> #include <stdlib.h> typedef struct ns { int data; str...
The issue you're experiencing with the `list_split` function, where the split lists are always empty, stems from the way you are building the new lists in that function. Let's break down the key issues: 1. **Incorrect Use of Temp Pointer**: In the `list_split` function, you initialize `temp` with `list_nth(current, in...
39,424
[ { "from": "human", "value": "Why are the split lists always empty in this program? (It is derived from the code on the Wikipedia page on Linked Lists.)\n/* \n Example program from wikipedia linked list article\n Modified to find nth node and to split the list\n*/\n\n#include <stdio.h>\n#include <stdl...
What is the best way to make one of the branches of a subversion repository the new trunk? There has been a major rewrite for the entire system: things have been moved around, rewritten, replaces, removed, renamed etc. The rewritten code has been tested and is ready to replace the old trunk. Basically, the the old mai...
To make a branch in a Subversion (SVN) repository become the new trunk, you can follow these steps. In your case, you want to take `Branch(6)` and set it up as the new trunk `Trunk(7)`. Below are the detailed steps: 1. **Tag the Current Trunk**: Since you've already mentioned that you have tagged `Trunk(5)`, ensure th...
38,695
[ { "from": "human", "value": "What is the best way to make one of the branches of a subversion repository the new trunk? \nThere has been a major rewrite for the entire system: things have been moved around, rewritten, replaces, removed, renamed etc. The rewritten code has been tested and is ready to replace...
I have a three-step process that is entirely reliant upon JavaScript and Ajax to load data and animate the process from one step to the next. To further complicate matters, the transition (forward and backward) between steps is animated :-(. As user's progress through the process anchor's appear showing the current ste...
The issue you're encountering is a common problem in JavaScript, known as a closure problem with loops. When the click event handler is executed, it does not capture the values of `action` and `dao_id` from each iteration of your loop. Instead, it captures the last values assigned to `action` and `dao_id` after the loo...
40,770
[ { "from": "human", "value": "I have a three-step process that is entirely reliant upon JavaScript and Ajax to load data and animate the process from one step to the next. To further complicate matters, the transition (forward and backward) between steps is animated :-(. As user's progress through the proces...
I'm building a c++ DLL in visual studio 2008. For some reason, even when I build in release mode, my dll still depends on msvcr90d.dll. I can see that using depends.exe Is there any way to figure out what is causing this dependency? My run-time library setting is /MD Thanks, Dan
The issue you're encountering with your C++ DLL in Visual Studio 2008 may stem from a few potential causes, particularly related to project settings and dependencies. The `msvcr90d.dll` indicates that your DLL is still being linked against the debug version of the Microsoft C Runtime Library. Here are several steps you...
41,107
[ { "from": "human", "value": "I'm building a c++ DLL in visual studio 2008.\nFor some reason, even when I build in release mode, my dll still depends on msvcr90d.dll.\nI can see that using depends.exe\nIs there any way to figure out what is causing this dependency?\nMy run-time library setting is /MD \nThank...
I always have this notion that writing SQL queries in the code behind is not good compared to writing it using a SqlDataSource SqlDataAdapter ad = new SqlDataAdapter("SELECT * FROM Categories", myConnection); DataSet ds = new DataSet(); ad.Fill(ds, "Categories"); myGridView.DataSource = ds; myGridView.DataBind(); ...
Your concern about writing SQL queries in code-behind compared to using a SqlDataSource is valid, and both approaches have their own pros and cons. Let's break down the arguments for each method to better understand your concerns about maintainability, security, and ease of use. ### Using SqlDataSource: 1. **Ease of ...
39,985
[ { "from": "human", "value": "I always have this notion that writing SQL queries in the code behind is not good compared to writing it using a SqlDataSource\nSqlDataAdapter ad = new SqlDataAdapter(\"SELECT * FROM Categories\", myConnection);\n\nDataSet ds = new DataSet();\n\nad.Fill(ds, \"Categories\");\n\nm...
I know there are already a few questions regarding recommendations for C++ unit test frameworks, but all the answers did not help as they just recommend one of the frameworks but do not provide any information about a (feature) comparison. I think the most interesting frameworks are CppUnit, Boost and the new Google te...
Certainly! Below is a comparison of three popular C++ unit testing frameworks: CppUnit, Boost.Test, and Google Test (gtest). Each framework has its own strengths and weaknesses, which might suit different project requirements. Here’s a feature comparison based on various aspects: ### 1. **Ease of Use** - **CppUnit**: ...
37,419
[ { "from": "human", "value": "I know there are already a few questions regarding recommendations for C++ unit test frameworks, but all the answers did not help as they just recommend one of the frameworks but do not provide any information about a (feature) comparison.\nI think the most interesting framework...
This is very similar to Where should cross-platform apps keep their data?, but expanding on it a bit. There is some good advice on where the parent directory for data should be, but not so much on what a given app's directory should be. For example, let's say we have a cross-platform application, written by My Corp, wi...
When designing a cross-platform application, it’s important to follow the conventions of each operating system for where to store application data and configuration files. This ensures that users can easily find and manage these files and helps maintain a clean and organized system. ### Suggested Locations for Applica...
35,808
[ { "from": "human", "value": "This is very similar to Where should cross-platform apps keep their data?, but expanding on it a bit.\nThere is some good advice on where the parent directory for data should be, but not so much on what a given app's directory should be.\nFor example, let's say we have a cross-p...
Is there a way that my .NET CF app running on a Windows CE device can know when the device is docked/synced with the PC?
Yes, in a .NET Compact Framework (CF) application running on a Windows CE device, you can determine if the device is docked or synced with a PC by using the `ActiveSync` or `RAPI` (Remote API) functionalities. However, Windows CE does not provide a straightforward, built-in event that notifies you when the device is do...
38,983
[ { "from": "human", "value": "Is there a way that my .NET CF app running on a Windows CE device can know when the device is docked/synced with the PC?\n" }, { "from": "gpt", "value": "Yes, in a .NET Compact Framework (CF) application running on a Windows CE device, you can determine if the device...
I am looking for a generic, bidirectional 1 to 1 Dictionary class in C# (2), ie. a BiDictionaryOneToOne<T, S> which is guaranteed to only contain one of each value and key (up to RefEquals anyway), and which can be searched using either key or value. Anyone know of one, or should I just implement it myself? I can't bel...
Creating a generic bidirectional dictionary (BiDictionary) in C# that maintains a one-to-one relationship between keys and values is a useful task. Below is a simple implementation of a `BiDictionaryOneToOne<T, S>` class that supports the required operations, including adding, removing, and retrieving items by key or v...
33,968
[ { "from": "human", "value": "I am looking for a generic, bidirectional 1 to 1 Dictionary class in C# (2), ie. a BiDictionaryOneToOne<T, S> which is guaranteed to only contain one of each value and key (up to RefEquals anyway), and which can be searched using either key or value. Anyone know of one, or shoul...
A couple people just recommended removing the curly brackets from ${1}, but that didn't seem to change anything; still getting nothing for $1. I am trying to put the stuff within parentheses into the value of a src attribute in an img tag: $toc_line =~ s!<inlineFig.*?(\.\./pics/ch09_inline99_*?\.jpg)*?</inlineFig>!<img...
The issue you're experiencing stems from how the regular expression in your substitution is constructed. When you're capturing groups in a regex using parentheses, it's important to ensure that you're matching the data you expect. In your current substitution, it looks like you might not be capturing the right data due...
41,416
[ { "from": "human", "value": "A couple people just recommended removing the curly brackets from ${1}, but that didn't seem to change anything; still getting nothing for $1.\nI am trying to put the stuff within parentheses into the value of a src attribute in an img tag:\n$toc_line =~ s!<inlineFig.*?(\\.\\./p...
Frequently, I've dug into apropos and docs looking for something like the following only to give up to get back to the task at hand: (repeat-last-command) do the last C- or M- command I just executed (to be rebound to a fn key) or sometimes the related: (describe-last-function) what keystroke did I just mistakenly iss...
It sounds like you’re looking for ways to efficiently recall and describe your last command in Emacs, which can certainly enhance your workflow. While there is no built-in command that exactly matches your description, there are some approaches and customizations you can consider to achieve similar functionality. 1. *...
41,681
[ { "from": "human", "value": "Frequently, I've dug into apropos and docs looking for something like the following only to give up to get back to the task at hand:\n(repeat-last-command)\ndo the last C- or M- command I just executed (to be rebound to a fn key)\nor sometimes the related: \n(describe-last-funct...
I had a discussion with a colleague at work, it was about SQL queries and sorting. He has the opinion that you should let the server do any sorting before returning the rows to the client. I on the other hand thinks that the server is probably busy enough as it is, and it must be better for performance to let the clien...
When discussing the best approach for sorting data in a multi-user system, there are several factors to consider, and the answer often depends on the specific context of your application and its architecture. However, there are some general principles that can guide the decision: ### Server-Side Sorting (Letting the D...
41,299
[ { "from": "human", "value": "I had a discussion with a colleague at work, it was about SQL queries and sorting. He has the opinion that you should let the server do any sorting before returning the rows to the client. I on the other hand thinks that the server is probably busy enough as it is, and it must b...
Just came across this quote in a book on OOP that I'm reading, A child is only allowed to augment functionality and add functionality. A child is never allowed to remove functionality. If you do find that a child need to remove functionality, this is an indication that the child should appear before the ...
The quote you encountered highlights a principle in object-oriented programming (OOP) related to inheritance and the relationship between parent and child classes. In OOP, a child class (or subclass) can extend the functionality of a parent class (or superclass) but is typically not expected to remove functionality. In...
41,520
[ { "from": "human", "value": "Just came across this quote in a book on OOP that I'm reading,\n\nA child is only allowed to augment\n functionality and add functionality. \n A child is never allowed to remove\n functionality. If you do find that a\n child need to remove functionality,\n this is an indic...
I try to migrate a Windows SVN Server to Linux. I have configured Apache to validate against AD for Useraccess so only AD Users can logon. Now i have to set permissions for repositories with authz files. When i set permission with AD username it works, but AD groups it doesn't. The authz file looks like the following: ...
Using Active Directory (AD) groups within Apache’s authorization system for Subversion repositories can indeed be tricky. If your configuration allows for users to authenticate against AD but doesn't recognize AD groups in the authorization file, there are a few steps and considerations you can take to troubleshoot and...
38,096
[ { "from": "human", "value": "I try to migrate a Windows SVN Server to Linux.\nI have configured Apache to validate against AD for Useraccess so only AD Users can logon.\nNow i have to set permissions for repositories with authz files.\nWhen i set permission with AD username it works, but AD groups it doesn'...
I've written an image processing script in php which is run as a cron scheduled task (in OSX). To avoid overloading the system, the script checks the system load (using 'uptime') and only runs when load is below a predefined threshold. I've now ported this over to Windows (2003 Server) and am looking for a similar comm...
In Windows, you can utilize the `wmic` command to obtain CPU load information. However, instead of the standard "load" like in Unix systems, Windows provides a "CPU load" percentage. Here's how you can obtain the current CPU load: 1. **Using WMIC**: You can execute the following command in the command prompt to get t...
38,910
[ { "from": "human", "value": "I've written an image processing script in php which is run as a cron scheduled task (in OSX). To avoid overloading the system, the script checks the system load (using 'uptime') and only runs when load is below a predefined threshold.\nI've now ported this over to Windows (2003...
I'm using RSACryptoServiceProvider in .NET 2 and it seems that the Private part of a Public/Private key pair always contains the Public part as well. I need to encrypt some info using my Public key, and allow the other party to ONLY DECRYPT what I encrypted. I don't want them to be able to know how I encrypted my messa...
When using RSA encryption, the general principle is that the public key can be used to encrypt data, while the private key is used to decrypt it. In your case, if you use the `RSACryptoServiceProvider` in .NET to encrypt data with the public key, only the holder of the private key can decrypt that data. However, it is ...
39,384
[ { "from": "human", "value": "I'm using RSACryptoServiceProvider in .NET 2 and it seems that the Private part of a Public/Private key pair always contains the Public part as well.\nI need to encrypt some info using my Public key, and allow the other party to ONLY DECRYPT what I encrypted. I don't want them t...
I'd like to call svn up from an asp.net page so people can hit the page to update a repository. (BTW: I'm using Beanstalk.com svn hosting which doesn't allow post-commit hooks, which is why I am doing it this way). See what I've got below. The process starts (it shows up in Processes in Task Manager) and exits after s...
Running SVN commands from an ASP.NET web page can be tricky due to permissions and environment issues. Here are a few suggestions to help you troubleshoot and resolve the problem: 1. **Set Working Directory**: You need to set the working directory to where the SVN repository is located. You can do this by setting the ...
38,017
[ { "from": "human", "value": "I'd like to call svn up from an asp.net page so people can hit the page to update a repository. (BTW: I'm using Beanstalk.com svn hosting which doesn't allow post-commit hooks, which is why I am doing it this way). \nSee what I've got below. The process starts (it shows up in Pr...