content
stringlengths
86
88.9k
title
stringlengths
0
150
question
stringlengths
1
35.8k
answers
list
answers_scores
list
non_answers
list
non_answers_scores
list
tags
list
name
stringlengths
30
130
Q: Automating MSI Build Process Does anyone have a good way to build MSI (vdproj) projects using MsBuild or Nant? I know one answer was to install Visual Studio on the build server and just use devenv.exe to build the project, but, I prefer not to install Visual Studio on our build servers. A: Short of the method...
Automating MSI Build Process
Does anyone have a good way to build MSI (vdproj) projects using MsBuild or Nant? I know one answer was to install Visual Studio on the build server and just use devenv.exe to build the project, but, I prefer not to install Visual Studio on our build servers.
[ "Short of the method you mentioned above (devenv), there is no way to do this with the current version of MSBuild. \nThe method the Visual Studio team uses to run their MSI builds is with Windows Installer XML. You can learn more about using WiX to deploy setup packages here.\nPlease note WiX doesn't support vdproj...
[ 8, 1 ]
[]
[]
[ "build_automation", "build_process" ]
stackoverflow_0000024813_build_automation_build_process.txt
Q: How to add "Project Description" in FogBugz? When I create a new project (or even when I edit the Sample Project) there is no way to add Description to the project. Or am I blind to the obvious? A: There's no such thing as a project description, really. There's a column in the Projects page which is used so you ...
How to add "Project Description" in FogBugz?
When I create a new project (or even when I edit the Sample Project) there is no way to add Description to the project. Or am I blind to the obvious?
[ "There's no such thing as a project description, really. There's a column in the Projects page which is used so you can see which project is the default, built-in inbox, and we couldn't think of anything better to put as the column header for that column.\n", "You are not crazy. It is used internally and not eve...
[ 20, 8, 0 ]
[]
[]
[ "fogbugz" ]
stackoverflow_0000014646_fogbugz.txt
Q: Database query representation impersonating file on Windows share? Is there any way to have something that looks just like a file on a Windows file share, but is really a resource served up over HTTP? For context, I'm working with an old app that can only deal with files on a Windows file share, I want to create a...
Database query representation impersonating file on Windows share?
Is there any way to have something that looks just like a file on a Windows file share, but is really a resource served up over HTTP? For context, I'm working with an old app that can only deal with files on a Windows file share, I want to create a simple HTTP-based service to serve the content of the files dynamically...
[ "WebDAV (basically) takes an existing directory, and shares it over HTTP - which sounds like the opposite of what you want. \nYou need something that speaks SMB/CIFS on one end, and your own code on the other. The easiest way to do that is with a userspace file system.\nTo that end, here's a couple of links:\n\nWin...
[ 2, 0, 0 ]
[]
[]
[ "file", "http", "webdav" ]
stackoverflow_0000024408_file_http_webdav.txt
Q: What to do about ScanAlert? One of my clients uses McAfee ScanAlert (i.e., HackerSafe). It basically hits the site with about 1500 bad requests a day looking for security holes. Since it demonstrates malicious behavior it is tempting to just block it after a couple bad requests, but maybe I should let it exercis...
What to do about ScanAlert?
One of my clients uses McAfee ScanAlert (i.e., HackerSafe). It basically hits the site with about 1500 bad requests a day looking for security holes. Since it demonstrates malicious behavior it is tempting to just block it after a couple bad requests, but maybe I should let it exercise the UI. Is it a true test if I ...
[ "\nIsn't it a security flaw of the site to let hackers throw everything in their arsenal against the site?\n\nWell, you should focus on closing holes, rather than trying to thwart scanners (which is a futile battle). Consider running such tests yourself.\n", "It's good that you block bad request after a couple of...
[ 2, 1, 1, 0 ]
[]
[]
[ "performance", "security" ]
stackoverflow_0000023961_performance_security.txt
Q: What are the most important things to learn about .net as a Project Manager? Thinking about getting into .net technology project management I've had plenty of experience with PHP projects: I'm aware of most of the existing frameworks and libraries, and I've written specs and case studies based on this knowledge. W...
What are the most important things to learn about .net as a Project Manager?
Thinking about getting into .net technology project management I've had plenty of experience with PHP projects: I'm aware of most of the existing frameworks and libraries, and I've written specs and case studies based on this knowledge. What should I know about .net? Which top resources would you recommend me to know s...
[ "The number one rule is do NOT just ask for status updates. It is Especially annoying when phrases like \"where are we on this?\" are used. If you aren't directly involved in the details then just make sure you have established communication times or plans so that you know whats going on rather than asking for u...
[ 3, 2, 1, 1, 1 ]
[]
[]
[ ".net", "project_management" ]
stackoverflow_0000020040_.net_project_management.txt
Q: How do I profile a Maven Application in Netbeans? I've got a project using Maven 2 as the build tool. Now I am using Netbeans 6 as my IDE and really want to be able to use the profiler. Is there any way I can get this to work? A: I thought this might be more complicated. It wasn't. To use the Netbeans profile...
How do I profile a Maven Application in Netbeans?
I've got a project using Maven 2 as the build tool. Now I am using Netbeans 6 as my IDE and really want to be able to use the profiler. Is there any way I can get this to work?
[ "I thought this might be more complicated. It wasn't. To use the Netbeans profiler with your Maven 2 project you simply need to add a single pair of parameters when running your java app. Call up the project's Properties dialogue, select the \"Run\" tab and add something like the following to the jvm args:\n-agentp...
[ 1 ]
[]
[]
[ "maven_2", "netbeans", "profiler", "profiling" ]
stackoverflow_0000024986_maven_2_netbeans_profiler_profiling.txt
Q: How Does One Sum Dimensions of an Array Specified at Run-Time? I am working on a function to establish the entropy of a distribution. It uses a copula, if any are familiar with that. I need to sum up the values in the array based on which dimensions are "cared about." Example: Consider the following example... ...
How Does One Sum Dimensions of an Array Specified at Run-Time?
I am working on a function to establish the entropy of a distribution. It uses a copula, if any are familiar with that. I need to sum up the values in the array based on which dimensions are "cared about." Example: Consider the following example... Dimension 0 (across) _ _ _ _ _ _ _ _ _ _ _ _ _ |_ 0 _|_ 0 _|_ 0 _|_...
[ "@Jeff\nI actually think this is an interesting question. I'm not sure how useful it is, but it is a valid question.\n@Ed\nCan you provide a little more info on this question? You said the dimension of the array is dynamic, but is the number of elements dynamic as well?\nEDIT: I'm going to try and answer the questi...
[ 2, 2, 2, 0, 0, 0, 0, 0, 0, 0 ]
[]
[]
[ "arrays", "c", "c++", "microsoft_dynamics" ]
stackoverflow_0000023190_arrays_c_c++_microsoft_dynamics.txt
Q: Implementing a custom Windows Workflow activity that executes an asynchronous operation I'm having some conceptual trouble on figuring out how to best implement this... I want to create a custom Activity class for Windows Workflow. The activity has to call out to a third party library method that itself runs anot...
Implementing a custom Windows Workflow activity that executes an asynchronous operation
I'm having some conceptual trouble on figuring out how to best implement this... I want to create a custom Activity class for Windows Workflow. The activity has to call out to a third party library method that itself runs another process asynchronously and may take anywhere from seconds to many hours to complete. Thi...
[ "Kirk Allen Evans wrote an interesting blog about this with some pretty good code examples. \n" ]
[ 1 ]
[]
[]
[ "asynchronous", "workflow", "workflow_activity", "workflow_foundation" ]
stackoverflow_0000024823_asynchronous_workflow_workflow_activity_workflow_foundation.txt
Q: How Do You Communicate Service Layer Messages/Errors to Higher Layers Using MVP? I'm currently writing an ASP.Net app from the UI down. I'm implementing an MVP architecture because I'm sick of Winforms and wanted something that had a better separation of concerns. So with MVP, the Presenter handles events raised b...
How Do You Communicate Service Layer Messages/Errors to Higher Layers Using MVP?
I'm currently writing an ASP.Net app from the UI down. I'm implementing an MVP architecture because I'm sick of Winforms and wanted something that had a better separation of concerns. So with MVP, the Presenter handles events raised by the View. Here's some code that I have in place to deal with the creation of users: ...
[ "That sounds just right to me. Exceptions are preferable as they can be thrown up to the top of the service layer from anywhere inside the service layer, no matter how deeply nested inside the service method implementation it is. This keeps the service code clean as you know the calling presenter will always get no...
[ 15, 3, 1 ]
[]
[]
[ "asp.net", "c#", "exception", "mvp", "n_tier_architecture" ]
stackoverflow_0000021697_asp.net_c#_exception_mvp_n_tier_architecture.txt
Q: Is it "bad practice" to be sensitive to linebreaks in XML documents? I'm generating some XML documents and when it comes to the address part I have fragments that look like this: <Address>15 Sample St Example Bay Some Country</Address> The XSLT that I have for converting this to XHTML has some funky recursive tem...
Is it "bad practice" to be sensitive to linebreaks in XML documents?
I'm generating some XML documents and when it comes to the address part I have fragments that look like this: <Address>15 Sample St Example Bay Some Country</Address> The XSLT that I have for converting this to XHTML has some funky recursive template to convert newline characters within strings to <br/> tags. This is ...
[ "It's generally considered bad practice to rely on linebreaks, since it's a fragile way to differentiate data. While most XML processors will preserve any whitespace you put in your XML, it's not guaranteed. \nThe real problem is that most applications that output your XML into a readable format consider all whit...
[ 9, 3, 3, 2, 1, 1, 1, 0 ]
[ "Yes, I think using a CDATA block would protect the whitespace. Although some parser APIs allow you to preserve whitespace.\n", "What you really should be doing is converting your XML to a format that preserves white-space.\nSo rather than seek to replace \\n with <br /> you should wrap the whole block in a <pre>...
[ -1, -1, -1, -2 ]
[ "line_breaks", "whitespace", "xhtml", "xml", "xslt" ]
stackoverflow_0000007277_line_breaks_whitespace_xhtml_xml_xslt.txt
Q: Where can I find extended HTML reporters for Simpletest? I am using Simpletest as my unit test framework for the PHP site I am currently working on. I like the fact that it is shipped with a simple HTML reporter, but I would like a bit more advanced reporter. I have read the reporter API documentation, but it woul...
Where can I find extended HTML reporters for Simpletest?
I am using Simpletest as my unit test framework for the PHP site I am currently working on. I like the fact that it is shipped with a simple HTML reporter, but I would like a bit more advanced reporter. I have read the reporter API documentation, but it would be nice to be able to use an existing reporter, instead of h...
[ "For SimpleTest I can't say I've ever found any \"better\" test reporters, so you may have to just buckle down and hack together some quick HTML/PHP for what you need.\nAs for PHPUnit, there's PHPUnit2_HTML_Runner, but it is far from ideal. However, if you're willing to set up a continuous integration server like ...
[ 1, 1 ]
[]
[]
[ "php", "simpletest", "unit_testing", "user_interface" ]
stackoverflow_0000024941_php_simpletest_unit_testing_user_interface.txt
Q: Are named entities in HTML still necessary in the age of Unicode aware browsers? I did a lot of PHP programming in the last years and one thing that keeps annoying me is the weak support for Unicode and multibyte strings (to be sure, natively there is none). For example, "htmlentities" seems to be a much used func...
Are named entities in HTML still necessary in the age of Unicode aware browsers?
I did a lot of PHP programming in the last years and one thing that keeps annoying me is the weak support for Unicode and multibyte strings (to be sure, natively there is none). For example, "htmlentities" seems to be a much used function in the PHP world and I found it to be absolutely annoying when you've put an effo...
[ "Named entities in \"real\" XHTML (i.e. with application/xhtml+xml, rather than the more frequently-used text/html compatibility mode) are discouraged. Aside from the five defined in XML itself (&lt;, &gt;, &amp;, &quot;, &apos;), they'd all have to be defined in the DTD of the particular DocType you're using. That...
[ 7, 3, 0 ]
[]
[]
[ "html", "internationalization", "php", "unicode" ]
stackoverflow_0000025132_html_internationalization_php_unicode.txt
Q: My VMware ESX server console volume went readonly. How can I save my VMs? Two RAID volumes, VMware kernel/console running on a RAID1, vmdks live on a RAID5. Entering a login at the console just results in SCSI errors, no password prompt. Praise be, the VMs are actually still running. We're thinking, though, that ...
My VMware ESX server console volume went readonly. How can I save my VMs?
Two RAID volumes, VMware kernel/console running on a RAID1, vmdks live on a RAID5. Entering a login at the console just results in SCSI errors, no password prompt. Praise be, the VMs are actually still running. We're thinking, though, that upon reboot the kernel may not start again and the VMs will be down. We have da...
[ "It was the backplane. Both drives of the RAID1 and one drive of the RAID5 were inaccessible. Incredibly, the VMware hypervisor continued to run for three days from memory with no access to its host disk, keeping the VMs it managed alive.\nAt step 3 above we diagnosed the hardware problem and replaced the RAID cont...
[ 1 ]
[]
[]
[ "esx", "recovery", "vmware" ]
stackoverflow_0000020899_esx_recovery_vmware.txt
Q: Set and Oldset in sigprocmask() I haven't completely understood, how to use sigprocmask(). Particularly, how the set and oldset and its syntax work and how to use them. int sigprocmask(int how, const sigset_t *set, sigset_t *oldset); Please explain with an example, to block, say SIGUSR1 for a few seconds and then...
Set and Oldset in sigprocmask()
I haven't completely understood, how to use sigprocmask(). Particularly, how the set and oldset and its syntax work and how to use them. int sigprocmask(int how, const sigset_t *set, sigset_t *oldset); Please explain with an example, to block, say SIGUSR1 for a few seconds and then unblock and handle it. ­­­­­­­­­­­­­...
[ "The idea is that you provide a mask in set, effectively a list of signals. The how argument says what you should do with the mask in set.\nYou can either use SIG_BLOCK to block the signals in the set list, or SIG_UNBLOCK to unblock them. Neither of these changes the signals that aren't set in the list. SIG_SETM...
[ 77 ]
[]
[]
[ "c", "posix", "signals", "sigprocmask" ]
stackoverflow_0000025261_c_posix_signals_sigprocmask.txt
Q: What's optimal? UNION vs WHERE IN (str1, str2, str3) I'm writing a program that sends an email out at a client's specific local time. I have a .NET method that takes a timezone & time and destination timezone and returns the time in that timezone. So my method is to select every distinct timezone in the database, ...
What's optimal? UNION vs WHERE IN (str1, str2, str3)
I'm writing a program that sends an email out at a client's specific local time. I have a .NET method that takes a timezone & time and destination timezone and returns the time in that timezone. So my method is to select every distinct timezone in the database, check if it is the correct time using the method, then sel...
[ "For most database related performance questions, the real answer is to run it and analyze what the DB does for your dataset. Run an explain plan or trace to see if your query is hitting the proper indexes or create indexes if necessary.\nI would likely go with the first using the IN clause since that carries the m...
[ 3, 3, 2, 1, 1, 1, 0 ]
[]
[]
[ "optimization", "sql" ]
stackoverflow_0000025182_optimization_sql.txt
Q: What would be the fastest way to remove Newlines from a String in C#? I have a string that has some Environment.Newline in it. I'd like to strip those from the string and instead, replace the Newline with something like a comma. What would be, in your opinion, the best way to do this using C#.NET 2.0? A: Why no...
What would be the fastest way to remove Newlines from a String in C#?
I have a string that has some Environment.Newline in it. I'd like to strip those from the string and instead, replace the Newline with something like a comma. What would be, in your opinion, the best way to do this using C#.NET 2.0?
[ "Why not:\nstring s = \"foobar\\ngork\";\nstring v = s.Replace(Environment.NewLine,\",\");\nSystem.Console.WriteLine(v);\n\n", "Like this:\nstring s = \"hello\\nworld\";\ns = s.Replace(Environment.NewLine, \",\");\n\n", "string sample = \"abc\" + Environment.NewLine + \"def\";\nstring replaced = sample.Replace(...
[ 19, 7, 2, 2, 0 ]
[]
[]
[ ".net", "c#", "replace", "string" ]
stackoverflow_0000025349_.net_c#_replace_string.txt
Q: Custom Attribute Binding in Silverlight I've got two Silverlight Controls in my project, both have properties TeamId. I would like to bind these together in XAML in the control hosting both user controls similar to: <agChat:UserTeams x:Name="oUserTeams" /> <agChat:OnlineUser x:Name="oOnlineUsers" ...
Custom Attribute Binding in Silverlight
I've got two Silverlight Controls in my project, both have properties TeamId. I would like to bind these together in XAML in the control hosting both user controls similar to: <agChat:UserTeams x:Name="oUserTeams" /> <agChat:OnlineUser x:Name="oOnlineUsers" TeamId="{Binding ElementName=oUserTeams, Path...
[ "That is the correct approach in WPF, but not in Silverlight. \nYou cannot bind to elements using xaml in Silverlight. \nThis is the offending line:\n TeamId=\"{Binding ElementName=oUserTeams, Path=TeamId}\"\nSpecificly ElementName\nIf you can, place the data object into Resources and declare it there, then you can...
[ 4 ]
[]
[]
[ "silverlight" ]
stackoverflow_0000025355_silverlight.txt
Q: What is appliance and how to use lambda expressions? I've read that Lambda Expressions are an incredibly powerful addition to C#, yet I find myself mystified by them. How can they improve my life or make my code better? Can anyone point to a good resource for learning such expressions? They seem cool as hell, but ...
What is appliance and how to use lambda expressions?
I've read that Lambda Expressions are an incredibly powerful addition to C#, yet I find myself mystified by them. How can they improve my life or make my code better? Can anyone point to a good resource for learning such expressions? They seem cool as hell, but how do they relate to my day-to-day life as an asp.net dev...
[ "\n: are lambda expressions useful for anything other than querying\n\nLamba expressions are nothing much other than a convenient way of writing a function 'in-line'.\nSo they're useful any place you wanted a bit of code which can be called as though it's a separate function but which is actually written inside its...
[ 12, 7, 5 ]
[]
[]
[ "c#", "lambda" ]
stackoverflow_0000025376_c#_lambda.txt
Q: Linq 2 SQL on shared host I recently ran into an issue with linq on a shared host. The host is Shared Intellect and they support v3.5 of the framework. However, I am uncertain to whether they have SP1 installed. My suspicion is that they do not. I have a simple News table that has the following structure: NewsID...
Linq 2 SQL on shared host
I recently ran into an issue with linq on a shared host. The host is Shared Intellect and they support v3.5 of the framework. However, I am uncertain to whether they have SP1 installed. My suspicion is that they do not. I have a simple News table that has the following structure: NewsID uniqueidentifier Titl...
[ "System.MethodAccessException is thrown by the framework when it is missing an assembly, or one of the references are of the wrong version.\nThe first thing I would do is try uploading and referencing your code to the LINQ assemblies in your BIN, instead of the shared hosting providers GAC.\n" ]
[ 2 ]
[]
[]
[ "hosting", "linq_to_sql", "shared" ]
stackoverflow_0000025432_hosting_linq_to_sql_shared.txt
Q: Can you perform an AND search of keywords using FREETEXT() on SQL Server 2005? There is a request to make the SO search default to an AND style functionality over the current OR when multiple terms are used. The official response was: not as simple as it sounds; we use SQL Server 2005's FREETEXT() function, and I...
Can you perform an AND search of keywords using FREETEXT() on SQL Server 2005?
There is a request to make the SO search default to an AND style functionality over the current OR when multiple terms are used. The official response was: not as simple as it sounds; we use SQL Server 2005's FREETEXT() function, and I can't find a way to specify AND vs. OR -- can you? So, is there a way? There are a...
[ "As far as I've seen, it is not possible to do AND when using FREETEXT() under SQL 2005 (nor 2008, afaik). \nA FREETEXT query ignores Boolean, proximity, and wildcard operators by design. However you could do this: \nWHERE FREETEXT('You gotta love MS-SQL') > 0\n AND FREETEXT('You gotta love MySQL too...') > 0\n\nO...
[ 2, 1, 1 ]
[]
[]
[ "freetext", "full_text_search", "search", "sql_server_2005" ]
stackoverflow_0000025277_freetext_full_text_search_search_sql_server_2005.txt
Q: How do I put unicode characters in my Antlr grammar? I'm trying to build a grammar with the following: NUMERIC: INTEGER | FLOAT | INFINITY | PI ... INFINITY: '∞' PI: 'π' But Antlr refuses to load the grammar. A: Use the Java expression representing the Unicode character: 'π' = '\u03C0' '∞' = '\u221E' That will...
How do I put unicode characters in my Antlr grammar?
I'm trying to build a grammar with the following: NUMERIC: INTEGER | FLOAT | INFINITY | PI ... INFINITY: '∞' PI: 'π' But Antlr refuses to load the grammar.
[ "Use the Java expression representing the Unicode character:\n\n'π' = '\\u03C0'\n'∞' = '\\u221E'\n\nThat will work up to '\\uFFFF'; Java doesn't support five-digit Unicode.\n" ]
[ 3 ]
[]
[]
[ "antlr", "internationalization", "parsing", "unicode" ]
stackoverflow_0000025475_antlr_internationalization_parsing_unicode.txt
Q: Asynchronous Stored Procedure Calls Is it possible to call a stored procedure from another stored procedure asynchronously? Edit: Specifically I'm working with a DB2 database. ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ A: Executive summary: Yes, if your database has a message queue service. You can push a message onto a...
Asynchronous Stored Procedure Calls
Is it possible to call a stored procedure from another stored procedure asynchronously? Edit: Specifically I'm working with a DB2 database. ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
[ "Executive summary: Yes, if your database has a message queue service.\nYou can push a message onto a queue and the queue processor will consume it asynchronously.\n\nOracle: queues\nSql Server: service broker\nDB2: event broker\n\nFor \"pure\" stored procedure languages (PL/Sql or T-Sql) the answer is no, since i...
[ 5, 1, 0 ]
[]
[]
[ "db2", "sql", "stored_procedures" ]
stackoverflow_0000025460_db2_sql_stored_procedures.txt
Q: Stored Procedure and Timeout I'm running a long process stored procedure. I'm wondering if in case of a timeout or any case of disconnection with the database after initiating the call to the stored procedure. Is it still working and implementing the changes on the server? ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­...
Stored Procedure and Timeout
I'm running a long process stored procedure. I'm wondering if in case of a timeout or any case of disconnection with the database after initiating the call to the stored procedure. Is it still working and implementing the changes on the server? ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
[ "\nAnyway if the client is not there to commit at the end of the job the changes should be rolled back by the server.\n\nIn other words, if you have a stored procedure making changes to the database and there is a possibility that the connection might disconnect in the middle, be sure to enclose all changes within ...
[ 2, 1, 0 ]
[]
[]
[ "database", "stored_procedures", "timeout" ]
stackoverflow_0000025142_database_stored_procedures_timeout.txt
Q: Combining values from different files into one CSV file I have a couple of files containing a value in each line. EDIT : I figured out the answer to this question while in the midst of writing the post and didn't realize I had posted it by mistake in its incomplete state. I was trying to do: paste -d ',' file1 fil...
Combining values from different files into one CSV file
I have a couple of files containing a value in each line. EDIT : I figured out the answer to this question while in the midst of writing the post and didn't realize I had posted it by mistake in its incomplete state. I was trying to do: paste -d ',' file1 file2 file 3 file 4 > file5.csv and was getting a weird output....
[ "file 1:\n\n1\n2\n3\n\nfile2:\n\n2\n4\n6\n\npaste --delimiters=\\; file1 file2\n\nWill yield:\n\n1;2\n3;4\n5;6\n\n", "I have a feeling you haven't finished typing your question yet, but I'll give it a shot still. ;)\nfile1: file2: file3:\n1 a A\n2 b B\n3 c C\n\n~$ paste file...
[ 2, 1, 0, 0, 0 ]
[]
[]
[ "linux", "regex", "shell", "unix" ]
stackoverflow_0000025225_linux_regex_shell_unix.txt
Q: Filtering out anchor tags in a string I need to filter out anchor tags in a string. For instance, Check out this site: <a href="http://www.stackoverflow.com">stackoverflow</a> I need to be able to filter out the anchor tag to this: Check out this site: http://www.stackoverflow.com That format may not be constant...
Filtering out anchor tags in a string
I need to filter out anchor tags in a string. For instance, Check out this site: <a href="http://www.stackoverflow.com">stackoverflow</a> I need to be able to filter out the anchor tag to this: Check out this site: http://www.stackoverflow.com That format may not be constant, either. There could be other attributes ...
[ "Here's a simple regular expression that should work.\nImports System.Text.RegularExpressions\n\n' ....\n\nDim reg As New Regex(\"<a.*?href=(?:'|\"\")(.+?)(?:'|\"\").*?>.+?</a>\")\nDim input As String = \"This is a link: <a href='http://www.stackoverflow.com'>Stackoverflow</a>\"\ninput = reg.Replace(input, \"$1\", ...
[ 8 ]
[]
[]
[ "asp.net", "html", "vb.net" ]
stackoverflow_0000025519_asp.net_html_vb.net.txt
Q: Add 1 to a field How do I turn the following 2 queries into 1 query $sql = "SELECT level FROM skills WHERE id = $id LIMIT 1;"; $result = $db->sql_query($sql); $level = (int) $db->sql_fetchfield('level'); $db->sql_freeresult($result); ++$level; $sql = "UPDATE skills SET level = $level WHERE id = $id;"; $re...
Add 1 to a field
How do I turn the following 2 queries into 1 query $sql = "SELECT level FROM skills WHERE id = $id LIMIT 1;"; $result = $db->sql_query($sql); $level = (int) $db->sql_fetchfield('level'); $db->sql_freeresult($result); ++$level; $sql = "UPDATE skills SET level = $level WHERE id = $id;"; $result = $db->sql_query(...
[ "I get downmodded for this?\n$sql = \"UPDATE skills SET level = level+1 WHERE id = $id\";\n$result = $db->sql_query($sql);\n$db->sql_freeresult($result);\n\nIn Teifion's specific case, the phpBB DDL lists that particular field as NOT NULL, so there's no danger of incrementing NULL.\nIn the general case, you should ...
[ 31, 11, 6, 3, 2, 1 ]
[ "Mat: That's what pasted in from the question. It hasn't been edited, so I attribute that to a bug in Markdown. But, oddly enough, I have noticed.\nAlso: yes, mysql_escape_string()!\n" ]
[ -1 ]
[ "mysql", "php" ]
stackoverflow_0000005846_mysql_php.txt
Q: What is the most efficient way to populate a time (or time range)? While plenty of solutions exist for entering dates (such as calendars, drop-down menus, etc.), it doesn't seem like there are too many "standard" ways to ask for a time (or time range). I've personally tried drop-down menus for the hour, minute, an...
What is the most efficient way to populate a time (or time range)?
While plenty of solutions exist for entering dates (such as calendars, drop-down menus, etc.), it doesn't seem like there are too many "standard" ways to ask for a time (or time range). I've personally tried drop-down menus for the hour, minute, and second fields (and sometimes an "AM/PM" field, as well). I've also tr...
[ "There is quite a useful time entry tool for JQuery. It provides a 'spinner' type approach, in addition to a standard text field. It also supports the use of the mouse scroll-wheel for adjustment (as well as the traditional 'just type it in' approach) and can be configured to restrict to n-minute steps too if you l...
[ 0, 0, 0 ]
[]
[]
[ "time" ]
stackoverflow_0000025455_time.txt
Q: How do I run (unit) tests in different folders/projects separately in Visual Studio? I need some advice as to how I easily can separate test runs for unit tests and integration test in Visual Studio. Often, or always, I structure the solution as presented in the above picture: separate projects for unit tests and ...
How do I run (unit) tests in different folders/projects separately in Visual Studio?
I need some advice as to how I easily can separate test runs for unit tests and integration test in Visual Studio. Often, or always, I structure the solution as presented in the above picture: separate projects for unit tests and integration tests. The unit tests is run very frequently while the integration tests natu...
[ "I actually found kind of a solution for this on my own by using keyboard command bound to a macro. The macro was recorded from the menu Tools>Macros>Record TemporaryMacro. While recording I selected my [Tests] folder and ran ReSharpers UnitTest.ContextRun. This resulted in the following macro, \nSub TemporaryMacro...
[ 2, 0, 0, 0 ]
[]
[]
[ "configuration", "extensibility", "unit_testing", "visual_studio", "vsx" ]
stackoverflow_0000013938_configuration_extensibility_unit_testing_visual_studio_vsx.txt
Q: Is it possible to coax Visual Studio 2008 into using italics for comments? I'm quite used to my IDE setup in Delphi 7, where I have my comments rendered in italics. This doesn't appear to be possible in VS2008. There's only an option for bold font, not italics. Is there some kind of registry hack or font magic I c...
Is it possible to coax Visual Studio 2008 into using italics for comments?
I'm quite used to my IDE setup in Delphi 7, where I have my comments rendered in italics. This doesn't appear to be possible in VS2008. There's only an option for bold font, not italics. Is there some kind of registry hack or font magic I can perform to get it to work? The font I'm using is Consolas, if that makes a di...
[ "If you have a font editor, you can change an italic font to pretend it's bold. Here's an example of it. (For VS 2005, but it should work all the same.)\n", "I recommend Damien Guard's \"Humane theme\" for Visual Studio. It includes a custom font he developed, Envy R, which uses a clever hack - the bold version o...
[ 3, 3, 2, 1, 1, 1, 0 ]
[]
[]
[ "consolas", "fonts", "visual_studio" ]
stackoverflow_0000015414_consolas_fonts_visual_studio.txt
Q: Audio player on Windows Mobile I'm trying to develop specialized audio player for windows mobile devices (Professional ones). And I've ran into the problem an once. There no compressed audio APIs on WM or I was unable to found house in documentation. Yes there are WM6 Sound API but it cannot even pause playback or...
Audio player on Windows Mobile
I'm trying to develop specialized audio player for windows mobile devices (Professional ones). And I've ran into the problem an once. There no compressed audio APIs on WM or I was unable to found house in documentation. Yes there are WM6 Sound API but it cannot even pause playback or seek to specified position. There a...
[ "This might be of no help at all, but the (very good) podcast player BeyondPod has a built in player, based on Windows Media Player, and it's open source - so you could have a look at what API they are using.\nObviously if they've written their own custom player, you wont be able to just copy it if you're writing a...
[ 2, 0 ]
[]
[]
[ "windows_mobile" ]
stackoverflow_0000020233_windows_mobile.txt
Q: Can I capture Windows Mobile PIE keyboard events? Anyone know of a way to capture keyboard events (keyup / keydown) in Portable IE under Window mobile? I noticed that key events are not supported in JS, and would like to come up with a solution that works without any client side additions. A: Without any client ...
Can I capture Windows Mobile PIE keyboard events?
Anyone know of a way to capture keyboard events (keyup / keydown) in Portable IE under Window mobile? I noticed that key events are not supported in JS, and would like to come up with a solution that works without any client side additions.
[ "Without any client side additions?\nAs per IEMobile Team Blog, the only way for that would be wait for the next release :(\n" ]
[ 1 ]
[]
[]
[ "internet_explorer", "key_events", "windows_mobile" ]
stackoverflow_0000024414_internet_explorer_key_events_windows_mobile.txt
Q: Multiple YACC grammars in one program How do I compile, link and call different YACC grammars using yyparse() in one program? A: Use the -p option for each separate yacc grammar generation -p prefix Use prefix instead of yy as the prefix for all external names produced by yacc. For X/Op...
Multiple YACC grammars in one program
How do I compile, link and call different YACC grammars using yyparse() in one program?
[ "Use the -p option for each separate yacc grammar generation \n -p prefix\n\n Use prefix instead of yy as the prefix for all external\n names produced by yacc. For X/Open compliance, when the\n environment variable _XPG is set, then the -p option will work\n as described in ...
[ 7 ]
[]
[]
[ "yacc" ]
stackoverflow_0000025823_yacc.txt
Q: Why can't I explicitly pass the type argument to a generic Java method? I have defined a Java function: static <T> List<T> createEmptyList() { return new ArrayList<T>(); } One way to call it is like so: List<Integer> myList = createEmptyList(); // Compiles Why can't I call it by explicitly passing the generi...
Why can't I explicitly pass the type argument to a generic Java method?
I have defined a Java function: static <T> List<T> createEmptyList() { return new ArrayList<T>(); } One way to call it is like so: List<Integer> myList = createEmptyList(); // Compiles Why can't I call it by explicitly passing the generic type argument? : Object myObject = createEmtpyList<Integer>(); // Doesn't c...
[ "When the java compiler cannot infer the parameter type by itself for a static method, you can always pass it using the full qualified method name: Class . < Type > method();\nObject list = Collections.<String> emptyList();\n\n", "You can, if you pass in the type as a method parameter.\nstatic <T> List<T> createE...
[ 49, 26, 0 ]
[]
[]
[ "generics", "java", "syntax" ]
stackoverflow_0000024991_generics_java_syntax.txt
Q: What is a data binding? What is a data binding? A: Binding generally refers to a mapping of one thing to another - i.e. a datasource to a presentation object. It can typically refer to binding data from a database, or similar source (XML file, web service etc) to a presentation control or element - think list or...
What is a data binding?
What is a data binding?
[ "Binding generally refers to a mapping of one thing to another - i.e. a datasource to a presentation object. It can typically refer to binding data from a database, or similar source (XML file, web service etc) to a presentation control or element - think list or table in HTML, combo box or data grid in desktop sof...
[ 12 ]
[]
[]
[ "data_binding", "glossary" ]
stackoverflow_0000025878_data_binding_glossary.txt
Q: What is a language binding? My good friend, Wikipedia, didn't give me a very good response to that question. So: What are language bindings? How do they work? Specifically accessing functions from code written in language X of a library written in language Y. A: Let's say you create a C library to post stuff t...
What is a language binding?
My good friend, Wikipedia, didn't give me a very good response to that question. So: What are language bindings? How do they work? Specifically accessing functions from code written in language X of a library written in language Y.
[ "Let's say you create a C library to post stuff to stackoverflow. Now you want to be able to use the same library from Python. In this case, you will write Python bindings for your library.\nAlso see SWIG: http://www.swig.org\n", "In the context of code libraries, bindings are wrapper libraries that bridge betwee...
[ 44, 23, 5 ]
[ "In Flex (Actionscript 3). Source\nA data binding copies the value of a property in one object to a property in another object. You can bind the properties of following objects: Flex components, Flex data models, and Flex data services.\nThe object property that provides the data is known as the source property. Th...
[ -1 ]
[ "glossary", "language_agnostic", "language_binding" ]
stackoverflow_0000025865_glossary_language_agnostic_language_binding.txt
Q: Capturing a repeated group I am attempting to parse a string like the following using a .NET regular expression: H3Y5NC8E-TGA5B6SB-2NVAQ4E0 and return the following using Split: H3Y5NC8E TGA5B6SB 2NVAQ4E0 I validate each character against a specific character set (note that the letters 'I', 'O', 'U' &...
Capturing a repeated group
I am attempting to parse a string like the following using a .NET regular expression: H3Y5NC8E-TGA5B6SB-2NVAQ4E0 and return the following using Split: H3Y5NC8E TGA5B6SB 2NVAQ4E0 I validate each character against a specific character set (note that the letters 'I', 'O', 'U' & 'W' are absent), so using strin...
[ "BTW, you can replace [ABCDEFGHJKLMNPQRSTVXYZ0123456789] character class with a more readable subtracted character class.\n[[A-Z\\d]-[IOUW]]\n\nIf you just want to match 3 groups like that, why don't you use this pattern 3 times in your regex and just use captured 1, 2, 3 subgroups to form the new string?\n([[A-Z\\...
[ 5, 4, 3, 0, 0, 0, 0, 0, 0 ]
[]
[]
[ ".net_2.0", "regex" ]
stackoverflow_0000025561_.net_2.0_regex.txt
Q: What is ASP.NET? I've been strictly in a C++ environment for years (and specialized statistical languages). Visual Studio until 2001, and Borland since. Mostly specialized desktop applications for clients. I'm not remaining willfully ignorant of it, but over the years when I've dipped into other things, I've spen...
What is ASP.NET?
I've been strictly in a C++ environment for years (and specialized statistical languages). Visual Studio until 2001, and Borland since. Mostly specialized desktop applications for clients. I'm not remaining willfully ignorant of it, but over the years when I've dipped into other things, I've spent my time playing arou...
[ "I was going to write a lengthy answer but I felt that Wikipedia had it covered:\n\nASP.NET is a web application framework\n developed and marketed by Microsoft,\n that programmers can use to build\n dynamic web sites, web applications\n and web services. It was first\n released in January 2002 with version\n ...
[ 8, 6, 5, 5, 2, 0 ]
[]
[]
[ "asp.net", "glossary" ]
stackoverflow_0000025921_asp.net_glossary.txt
Q: Maximum buffer length for sendto? How do you get the maximum number of bytes that can be passed to a sendto(..) call for a socket opened as a UDP port? A: Use getsockopt(). This site has a good breakdown of the usage and options you can retrieve. In Windows, you can do: int optlen = sizeof(int); int optval; get...
Maximum buffer length for sendto?
How do you get the maximum number of bytes that can be passed to a sendto(..) call for a socket opened as a UDP port?
[ "Use getsockopt(). This site has a good breakdown of the usage and options you can retrieve.\nIn Windows, you can do:\n\nint optlen = sizeof(int);\nint optval;\ngetsockopt(socket, SOL_SOCKET, SO_MAX_MSG_SIZE, (int *)&optval, &optlen);\n\nFor Linux, according to the UDP man page, the kernel will use MTU discovery (i...
[ 14, 5, 2 ]
[]
[]
[ "ioctl", "networking", "sockets", "udp", "unix" ]
stackoverflow_0000025841_ioctl_networking_sockets_udp_unix.txt
Q: How to make a Flash movie with a transparent background This page from Adobe says to add a "wmode" parameter and set its value to "transparent": http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_1420 This works flawlessly in IE. The background renders correctly in Firefox and Safari, however as soon as...
How to make a Flash movie with a transparent background
This page from Adobe says to add a "wmode" parameter and set its value to "transparent": http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_1420 This works flawlessly in IE. The background renders correctly in Firefox and Safari, however as soon as you use the browser's scroll bar then mouse over the Flash c...
[ "On another note; setting the wmode to transparent has a few kinks. For instance it can break the scrolling (the flash stays in the same place disregarding the scroll) in some older versions of Firefox (pre 2.0). I've also had issues with ALT-key combinations in textfields not working when wmode is transparent.\nAl...
[ 2, 1, 0, 0, 0 ]
[]
[]
[ "firefox", "flash", "safari" ]
stackoverflow_0000006778_firefox_flash_safari.txt
Q: How is data compression more effective than indexing for search performance? For our application, we keep large amounts of data indexed by three integer columns (source, type and time). Loading significant chunks of that data can take some time and we have implemented various measures to reduce the amount of data ...
How is data compression more effective than indexing for search performance?
For our application, we keep large amounts of data indexed by three integer columns (source, type and time). Loading significant chunks of that data can take some time and we have implemented various measures to reduce the amount of data that has to be searched and loaded for larger queries, such as storing larger gran...
[ "\nThis made me wonder if the performance impact of disk I/O is actually much heavier than I thought.\n\nDefinitely. If you have to go to disk, the performance hit is many orders of magnitude greater than memory. This reminds me of the classic Jim Gray paper, Distributed Computing Economics:\n\nComputing economics ...
[ 4, 0 ]
[]
[]
[ "database", "performance" ]
stackoverflow_0000026021_database_performance.txt
Q: In a PHP5 class, when does a private constructor get called? Let's say I'm writing a PHP (>= 5.0) class that's meant to be a singleton. All of the docs I've read say to make the class constructor private so the class can't be directly instantiated. So if I have something like this: class SillyDB { private funct...
In a PHP5 class, when does a private constructor get called?
Let's say I'm writing a PHP (>= 5.0) class that's meant to be a singleton. All of the docs I've read say to make the class constructor private so the class can't be directly instantiated. So if I have something like this: class SillyDB { private function __construct() { } public static function getConnection...
[ "__construct() would only be called if you called it from within a method for the class containing the private constructor. So for your Singleton, you might have a method like so:\nclass DBConnection\n{\n private static $Connection = null;\n\n public static function getConnection()\n {\n if(!isset(self::...
[ 65 ]
[]
[]
[ "constructor", "oop", "php" ]
stackoverflow_0000026079_constructor_oop_php.txt
Q: Reconnect logic with connectivity notifications Say I have an application that wants a persistent connection to a server. How do I implement connection/re-connection logic so that I'm not wasting resources (power/bandwidth) and I have fast reconnect time when connectivity appears/improves? If I only use connectivi...
Reconnect logic with connectivity notifications
Say I have an application that wants a persistent connection to a server. How do I implement connection/re-connection logic so that I'm not wasting resources (power/bandwidth) and I have fast reconnect time when connectivity appears/improves? If I only use connectivity notifications, I can get stuck on problems not rel...
[ "This is a very \"huge\" question. I can say that we use an O/R Mapper and each \"query\" to the database needs an object called PersistenceBroker. This class is in charge of all the DB Stuff related to connecting, authenticating etc. \nWe've written a PersistenceBrokerFactory.GetCurrentBroker() which returns the \...
[ 1 ]
[]
[]
[ "networking", "offline", "sockets" ]
stackoverflow_0000026072_networking_offline_sockets.txt
Q: Setting Attributes in Webby Layouts I'm working with Webby and am looking for some clarification. Can I define attributes like title or author in my layout? A: Not really. The layout has access to the page attributes rather than the other way. The easiest way to do what you want is to populate the SITE.page_de...
Setting Attributes in Webby Layouts
I'm working with Webby and am looking for some clarification. Can I define attributes like title or author in my layout?
[ "Not really. The layout has access to the page attributes rather than the other way.\nThe easiest way to do what you want is to populate the SITE.page_defaults hash in your site's Rakefile (probably build.rake). Add something like the following:\nSITE.page_defaults['title'] = \"My awesome title\"\nSIT...
[ 1, 0 ]
[]
[]
[ "ruby", "webby" ]
stackoverflow_0000023996_ruby_webby.txt
Q: (N)Hibernate Auto-Join I'm developing a web- application using NHibernate. Can you tell me how to write a NHibernate Query for the following SQL query: SELECT v1.Id FROM VIEW v1 LEFT JOIN VIEW v2 ON v1.SourceView = v2.Id ORDER BY v1.Position It's basically a auto-join but I don't know how to write this in Nhibern...
(N)Hibernate Auto-Join
I'm developing a web- application using NHibernate. Can you tell me how to write a NHibernate Query for the following SQL query: SELECT v1.Id FROM VIEW v1 LEFT JOIN VIEW v2 ON v1.SourceView = v2.Id ORDER BY v1.Position It's basically a auto-join but I don't know how to write this in Nhibernate. Lets say the property n...
[ "You could just perform the select on the original entity and make the association between the two objects \"lazy = false\". As long as the entities are mapped then both will be returned and you wont get a lazyloadingexception when trying to access the object.\nIf you don't want to map \"lazy=false\" then you can a...
[ 1 ]
[]
[]
[ "nhibernate", "orm", "sql" ]
stackoverflow_0000024467_nhibernate_orm_sql.txt
Q: Output compile time stamp in Visual C++ executable? How can I insert compilation timestamp information into an executable I build with Visual C++ 2005? I want to be able to output something like this when I execute the program: This build XXXX was compiled at dd-mm-yy, hh:mm. where date and time reflect the time...
Output compile time stamp in Visual C++ executable?
How can I insert compilation timestamp information into an executable I build with Visual C++ 2005? I want to be able to output something like this when I execute the program: This build XXXX was compiled at dd-mm-yy, hh:mm. where date and time reflect the time when the project was built. They should not change with ...
[ "Though not your exact format, DATE will be of the format Mmm dd yyyy, while TIME will be of the format hh:mm:ss. You can create a string like this and use it in whatever print routine makes sense for you:\nconst char *buildString = \"This build XXXX was compiled at \" __DATE__ \", \" __TIME__ \".\";\n\n(Note on an...
[ 24, 10, 7, 5, 1, 0 ]
[]
[]
[ "c++", "compile_time", "execution", "visual_c++" ]
stackoverflow_0000025771_c++_compile_time_execution_visual_c++.txt
Q: Running "partially trusted" .NET assemblies from a network share When I try to run a .NET assembly (boo.exe) from a network share (mapped to a drive), it fails since it's only partially trusted: Unhandled Exception: System.Security.SecurityException: That assembly does not allow partially trusted callers. at Sy...
Running "partially trusted" .NET assemblies from a network share
When I try to run a .NET assembly (boo.exe) from a network share (mapped to a drive), it fails since it's only partially trusted: Unhandled Exception: System.Security.SecurityException: That assembly does not allow partially trusted callers. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly...
[ "With .NET 3.5 SP1, .NET assemblies running from UNC shares have full permissions. \nSee Brad Abrams's Allow .exes to be run off a network shares for workaround and discussions, and finally the follow up .NET 3.5 SP1 allows managed code to be launched from a network share.\n", "I resolved the problem by using cas...
[ 5, 3, 2, 0 ]
[]
[]
[ ".net", "security" ]
stackoverflow_0000024468_.net_security.txt
Q: Implementing permissions in PHP I've tried to do this several times with no luck. After reading this post, it made me interested in doing this again. So can anyone tell me why the following doesn't work? <?php $guest = 1; $editor = 2; $admin = 4; $user = $editor; if( $user == ($editor | $admin) ) { echo "...
Implementing permissions in PHP
I've tried to do this several times with no luck. After reading this post, it made me interested in doing this again. So can anyone tell me why the following doesn't work? <?php $guest = 1; $editor = 2; $admin = 4; $user = $editor; if( $user == ($editor | $admin) ) { echo "Test"; } ?>
[ "Use the bitwise OR operator (|) to set bits, use the AND operator (&) to check bits. Your code should look like this:\n<?php\n\n $guest = 1;\n $editor = 2;\n $admin = 4;\n\n $user = $editor;\n\n if( $user & ($editor | $admin) ) {\n echo \"Test\"; \n }\n\n?>\n\nIf you don't understand bi...
[ 11, 6, 2, 2, 1, 1, 1, 1, 0, 0 ]
[]
[]
[ "permissions", "php" ]
stackoverflow_0000017172_permissions_php.txt
Q: PostgreSQL: GIN or GiST indexes? From what information I could find, they both solve the same problems - more esoteric operations like array containment and intersection (&&, @>, <@, etc). However I would be interested in advice about when to use one or the other (or neither possibly). The PostgreSQL documentation...
PostgreSQL: GIN or GiST indexes?
From what information I could find, they both solve the same problems - more esoteric operations like array containment and intersection (&&, @>, <@, etc). However I would be interested in advice about when to use one or the other (or neither possibly). The PostgreSQL documentation has some information about this: GIN...
[ "First of all, do you need to use them for text search indexing? GIN and GiST are index specialized for some data types. If you need to index simple char or integer values then the normal B-Tree index is the best.\nAnyway, PostgreSQL documentation has a chapter on GIST and one on GIN, where you can find more info.\...
[ 18 ]
[]
[]
[ "gist_index", "gwt_gin", "indexing", "postgresql" ]
stackoverflow_0000021830_gist_index_gwt_gin_indexing_postgresql.txt
Q: What workshops / user groups / conventions do you attend? I haven't been to enough of these "live" events to really determine which, if any, are worth the time / money. Which ones do you attend and why? A: For conventions, if you're still in university, and can make it to Montreal, Canada, the Canadian Undergra...
What workshops / user groups / conventions do you attend?
I haven't been to enough of these "live" events to really determine which, if any, are worth the time / money. Which ones do you attend and why?
[ "For conventions, if you're still in university, and can make it to Montreal, Canada, the Canadian Undergraduate Software Engineering Conference (CUSEC) has been extremely enjoyable. See the 2009 site for the next event, and for a take on what previous years have been like, take a look at the 2008 speakers (note: ...
[ 2, 0 ]
[]
[]
[ "networking" ]
stackoverflow_0000026509_networking.txt
Q: Add a shortcut to Startup folder with parameters in Adobe AIR I am trying to include a link to my application in the Startup folder with a parameter passed to the program. I think it would work if I created the shortcut locally and then added it to my source. After that I could copy it to the Startup folder on fi...
Add a shortcut to Startup folder with parameters in Adobe AIR
I am trying to include a link to my application in the Startup folder with a parameter passed to the program. I think it would work if I created the shortcut locally and then added it to my source. After that I could copy it to the Startup folder on first run. File.userDirectory.resolvePath("Start Menu\\Programs\\Star...
[ "I'm new to Air, but also haven't found any way to customize the install process. It looks like you're limited to your application code. (Updating appears more flexible.)\nFrom your example, it looks like you want your app' to run with a parameter constant each time Windows starts. So you're probably already awa...
[ 2 ]
[]
[]
[ "adobe", "air" ]
stackoverflow_0000017966_adobe_air.txt
Q: .NET Multi Dimensional Array Printing Let's say I have a .NET Array of n number of dimensions. I would like to foreach through the elements and print out something like: [0, 0, 0] = 2 [0, 0, 1] = 32 And so on. I could write a loop using some the Rank and dimension functions to come up with the indices. Is ther...
.NET Multi Dimensional Array Printing
Let's say I have a .NET Array of n number of dimensions. I would like to foreach through the elements and print out something like: [0, 0, 0] = 2 [0, 0, 1] = 32 And so on. I could write a loop using some the Rank and dimension functions to come up with the indices. Is there a built in function instead?
[ "Thanks for the answer, here is what I wrote while I waited:\npublic static string Format(Array array)\n{\n var builder = new StringBuilder();\n builder.AppendLine(\"Count: \" + array.Length);\n var counter = 0;\n\n var dimensions = new List<int>();\n for (int i = 0; i < array.Rank; i++)\n {\n ...
[ 2, 1 ]
[]
[]
[ ".net", "arrays", "c#" ]
stackoverflow_0000026522_.net_arrays_c#.txt
Q: How to detect which blog API Let's say that you want to create a dead simple BlogEditor and, one of your ideas, is to do what Live Writer does and ask only the URL of the persons Blog. How can you detect what type of blog is it? Basic detection can be done with the URL itself, such as “http://myblog.blogger.com” e...
How to detect which blog API
Let's say that you want to create a dead simple BlogEditor and, one of your ideas, is to do what Live Writer does and ask only the URL of the persons Blog. How can you detect what type of blog is it? Basic detection can be done with the URL itself, such as “http://myblog.blogger.com” etc. But what if it's self hosted? ...
[ "Many (most?) blogs will have a meta tag for \"generator\" which will list the blog engine. For example a blogger blog will contain the following meta tag: \n<meta name=\"generator\" content=\"Blogger\" /> \n\nMy Subtext blog shows the following generator meta tag: \n<meta name=\"Generator\" content=\"Subtext Ve...
[ 3, 1, 1 ]
[]
[]
[ "api", "blogs", "java" ]
stackoverflow_0000026547_api_blogs_java.txt
Q: What HTML parsing libraries do you recommend in Java I want to parse some HTML in order to find the values of some attributes/tags etc. What HTML parsers do you recommend? Any pros and cons? A: NekoHTML, TagSoup, and JTidy will allow you to parse HTML and then process with XML tools, like XPath. A: I have trie...
What HTML parsing libraries do you recommend in Java
I want to parse some HTML in order to find the values of some attributes/tags etc. What HTML parsers do you recommend? Any pros and cons?
[ "NekoHTML, TagSoup, and JTidy will allow you to parse HTML and then process with XML tools, like XPath.\n", "I have tried HTML Parser which is dead simple.\n", "Do you need to do a full parse of the HTML? If you're just looking for specific values within the contents (a specific tag/param), then a simple regul...
[ 12, 7, 1 ]
[]
[]
[ "html", "html_content_extraction", "java", "parsing" ]
stackoverflow_0000026638_html_html_content_extraction_java_parsing.txt
Q: Active X Control JavaScript My coworker and I have encountered a nasty situation where we have to use an active X control to manipulate a web camera on a page. Is it possible to assign a javascript event handler to a button in the active x control so that it would fire an action on the page when clicked, or do we...
Active X Control JavaScript
My coworker and I have encountered a nasty situation where we have to use an active X control to manipulate a web camera on a page. Is it possible to assign a javascript event handler to a button in the active x control so that it would fire an action on the page when clicked, or do we have to create a button on the h...
[ "Please just use an existing ActiveX control. Like Flash or Silverlight. Flash has built-in webcam support and is controllable via JavaScript. Silverlight doesn't have built-in camera support, but it's JavaScript integration is fantastic.\nIf you must write your own then fret not, it is trivial to get it to interac...
[ 7, 4 ]
[]
[]
[ "activex", "javascript" ]
stackoverflow_0000026536_activex_javascript.txt
Q: Resize Infragistics GanttChart task with the mouse I loaded a custom DataTable into an UltraChart of type GanttChart. The data loads successfully. Do you know if it possible to add support for mouse resize(drag) to the tasks that show up into the chart? I have not been able to figure out if this is supported by th...
Resize Infragistics GanttChart task with the mouse
I loaded a custom DataTable into an UltraChart of type GanttChart. The data loads successfully. Do you know if it possible to add support for mouse resize(drag) to the tasks that show up into the chart? I have not been able to figure out if this is supported by the Infragistics control. ­­­­­­­­­­­­­­­­­­­­­­­­­­­
[ "In this forum post, an Infragistics employee states that this is not implemented (as of Feb '08), but may be doable handling FillSceneGraph.\n" ]
[ 1 ]
[]
[]
[ "charts", "gantt_chart", "infragistics", "winforms" ]
stackoverflow_0000026075_charts_gantt_chart_infragistics_winforms.txt
Q: Asp.net Reinstalling a DLL into the GAC I'm trying to re-install a DLL in the GAC, everything seems to work fine but the web application accessing it still seems to be using the old one. The old DLL is the same version as the new one with only a minor edit, it will be used by 50 different sites so changing the ver...
Asp.net Reinstalling a DLL into the GAC
I'm trying to re-install a DLL in the GAC, everything seems to work fine but the web application accessing it still seems to be using the old one. The old DLL is the same version as the new one with only a minor edit, it will be used by 50 different sites so changing the version then changing the reference in the web.c...
[ "AFAIK, you need to restart IIS for it to get a fresh reference to the updated DLL. Your best bet is to perform the reset at a low traffic time. If you are running multiple servers with load balancing, you can prevent new connections from hitting one server until all connections have been closed. Afterwards, upd...
[ 3, 1 ]
[]
[]
[ "dll", "gac", "iis" ]
stackoverflow_0000026711_dll_gac_iis.txt
Q: Any negative impacts when using Mod-Rewrite? I know there are a lot of positive things mod-rewrite accomplishes. But are there any negative? Obviously if you have poorly written rules your going to have problems. But what if you have a high volume site and your constantly using mod-rewrite, is it going to have a ...
Any negative impacts when using Mod-Rewrite?
I know there are a lot of positive things mod-rewrite accomplishes. But are there any negative? Obviously if you have poorly written rules your going to have problems. But what if you have a high volume site and your constantly using mod-rewrite, is it going to have a significant impact on performance? I did a quick s...
[ "I've used mod_rewrite on sites that get millions/hits/month without any significant performance issues. You do have to know which rewrites get applied first depending on your rules.\nUsing mod_rewrite is most likely faster than parsing the URL with your current language. \nIf you are really worried about performan...
[ 41, 7, 3 ]
[]
[]
[ "mod_rewrite", "performance" ]
stackoverflow_0000026559_mod_rewrite_performance.txt
Q: What's a good way to encapsulate data access with PHP/MySQL? Most of my experience is on the MSFT stack, but I am now working on a side project, helping someone with a personal site with cheap hosting that is built on the LAMP stack. My options for installing extras are limited, so I'm wondering about how to writ...
What's a good way to encapsulate data access with PHP/MySQL?
Most of my experience is on the MSFT stack, but I am now working on a side project, helping someone with a personal site with cheap hosting that is built on the LAMP stack. My options for installing extras are limited, so I'm wondering about how to write my data access code without embedding raw queries in the .php fi...
[ "ActiveRecord seems to be the state of the art at the moment. I can't recommend any good PHP frameworks for that though. I tried Propel which, while nice, is not easy to set up (especially on a host that you can't install anything on).\nUltimately, I rolled my own ORM/ActiveRecord framework, which is not too much w...
[ 4, 3, 3, 3, 1, 1 ]
[]
[]
[ "database", "lamp", "mysql", "php" ]
stackoverflow_0000022278_database_lamp_mysql_php.txt
Q: Third party Visual Studio snippets Do you know where I could find some useful third party (free) code snippets for VS 2008? A: http://gotcodesnippets.com/ http://www.codekeep.net/ has a VS add-in for their snippets, too A: bdukes site has more options, but here are the ones MSDN has published... http://msdn.mi...
Third party Visual Studio snippets
Do you know where I could find some useful third party (free) code snippets for VS 2008?
[ "http://gotcodesnippets.com/\nhttp://www.codekeep.net/ has a VS add-in for their snippets, too\n", "bdukes site has more options, but here are the ones MSDN has published...\nhttp://msdn.microsoft.com/en-us/vstudio/aa718338.aspx\n" ]
[ 6, 2 ]
[]
[]
[ "code_snippets", "visual_studio", "visual_studio_2008" ]
stackoverflow_0000026422_code_snippets_visual_studio_visual_studio_2008.txt
Q: Setting up a large Xcode project I have a large exiting C++ project involving: 4 applications 50+ libraries 20+ third party libraries It all builds fine on Windows using VS8, Linux using QMake (project uses Qt a lot). I also build it on OS X using QMake but I was wanting to setup an Xcode project to handle ...
Setting up a large Xcode project
I have a large exiting C++ project involving: 4 applications 50+ libraries 20+ third party libraries It all builds fine on Windows using VS8, Linux using QMake (project uses Qt a lot). I also build it on OS X using QMake but I was wanting to setup an Xcode project to handle it in an IDE. I'm struggling to setup ...
[ "Step in to Xcode may be the book you're looking for. It's got a whole section devoted to using AppleScript to automate configuration includes. I've been going through the book myself on O'Reilly Safari as I've found myself in a situation similar to yourself!\n" ]
[ 3 ]
[]
[]
[ "xcode" ]
stackoverflow_0000026875_xcode.txt
Q: Animation in javascript, a starting point I understand how JS is run and I think I understand most of the DOM but I've no idea about animation. Does anybody here know of a good guide that can explain to me how it's done in Javascript? In addition, should I even consider Javascript for animation? Should I instead b...
Animation in javascript, a starting point
I understand how JS is run and I think I understand most of the DOM but I've no idea about animation. Does anybody here know of a good guide that can explain to me how it's done in Javascript? In addition, should I even consider Javascript for animation? Should I instead be looking to learn flash?
[ "Avoid flash, its a horrible requirement, uncrawlable by Google, unsopported by a bunch of browsers and systems (eg iPhone) and most importantly: it forces you to reinvent web standards (e.g. scroll bars and whatnot), Javascript on the other hand is easier to maintain and code for in the noscript case.\ntry scripta...
[ 4, 2, 1, 0 ]
[]
[]
[ "animation", "javascript" ]
stackoverflow_0000010038_animation_javascript.txt
Q: How to avoid redefining VERSION, PACKAGE, etc I haven't seen any questions relating to GNU autoconf/automake builds, but I'm hoping at least some of you out there are familiar with it. Here goes: I have a project (I'll call it myproject) that includes another project (vendor). The vendor project is a standalone ...
How to avoid redefining VERSION, PACKAGE, etc
I haven't seen any questions relating to GNU autoconf/automake builds, but I'm hoping at least some of you out there are familiar with it. Here goes: I have a project (I'll call it myproject) that includes another project (vendor). The vendor project is a standalone project maintained by someone else. Including a pr...
[ "Some notes:\n\nyou didn't mention how config.h was included - with quotes or angle brackets. See this other question for more information on the difference. In short, config.h is typically included with quotes, not angle brackets, and this should make the preprocessor prefer the config.h from the project's own dir...
[ 5, 2, 1 ]
[]
[]
[ "autoconf", "automake", "c", "linux", "unix" ]
stackoverflow_0000007398_autoconf_automake_c_linux_unix.txt
Q: What are some web-based knowledge-base solutions? I've used a WordPress blog and a Screwturn Wiki (at two separate jobs) to store private, company-specific KB info, but I'm looking for something that was created to be a knowledge base. Specifically, I'd like to see: Free/low cost Simple method for users to subsc...
What are some web-based knowledge-base solutions?
I've used a WordPress blog and a Screwturn Wiki (at two separate jobs) to store private, company-specific KB info, but I'm looking for something that was created to be a knowledge base. Specifically, I'd like to see: Free/low cost Simple method for users to subscribe to KB (or just sections) to get updates Ability to...
[ "I second Luke's answer.\nI can Recommend Confluence and here is why:\nI tested extensively many commercial and free Wiki based solutions. Not a single one is a winner on all accounts, including confluence. Let me try to make your quest a little shorter by summarizing what I have learned to be a pain and what is im...
[ 10, 3, 2, 1, 1, 0 ]
[]
[]
[ "language_agnostic" ]
stackoverflow_0000002639_language_agnostic.txt
Q: How can I make sure scrollbars don't overlap content? When creating scrollable user controls with .NET and WinForms I have repeatedly encountered situations where, for example, a vertical scrollbar pops up, overlapping the control's content, causing a horizontal scrollbar to also be needed. Ideally the content wo...
How can I make sure scrollbars don't overlap content?
When creating scrollable user controls with .NET and WinForms I have repeatedly encountered situations where, for example, a vertical scrollbar pops up, overlapping the control's content, causing a horizontal scrollbar to also be needed. Ideally the content would shrink just a bit to make room for the vertical scrollb...
[ "You will need your controls to resize slightly to accommodate the width of the vertical scroll bar. One way to achieve this achieved through docking. Rather than just dropping controls on the form, you'll have to play a bit with panels, padding, min/max sizing and docking.\nHere is example code you can place behin...
[ 1, 0 ]
[]
[]
[ ".net", "winforms" ]
stackoverflow_0000026721_.net_winforms.txt
Q: Difference between wiring events with and without "new" In C#, what is the difference (if any) between these two lines of code? tmrMain.Elapsed += new ElapsedEventHandler(tmrMain_Tick); and tmrMain.Elapsed += tmrMain_Tick; Both appear to work exactly the same. Does C# just assume you mean the former when you typ...
Difference between wiring events with and without "new"
In C#, what is the difference (if any) between these two lines of code? tmrMain.Elapsed += new ElapsedEventHandler(tmrMain_Tick); and tmrMain.Elapsed += tmrMain_Tick; Both appear to work exactly the same. Does C# just assume you mean the former when you type the latter?
[ "I did this\nstatic void Hook1()\n{\n someEvent += new EventHandler( Program_someEvent );\n}\n\nstatic void Hook2()\n{\n someEvent += Program_someEvent;\n}\n\nAnd then ran ildasm over the code.\nThe generated MSIL was exactly the same.\nSo to answer your question, yes they are the same thing.\nThe compiler is...
[ 26, 4, 2, 2, 0 ]
[ "I think the one way to really tell would be to look at the MSIL produced for the code.. Tends to be a good acid test..\nI have funny concerns that it may somehow mess with GC.. Seems odd that there would be all the overhead of declaring the new delegate type if it never needed to be done this way, you know?\n" ]
[ -1 ]
[ "c#", "delegates", "events", "syntax" ]
stackoverflow_0000026877_c#_delegates_events_syntax.txt
Q: What is your best tool or techniques for getting the same display on IE6/7 and Firefox? I'm not talking about tools that let one view a page in combinations of operating systems and browsers like crossbrowsertesting.com but in creating or figuring out the actual CSS. A: Use a css reset to level the field across ...
What is your best tool or techniques for getting the same display on IE6/7 and Firefox?
I'm not talking about tools that let one view a page in combinations of operating systems and browsers like crossbrowsertesting.com but in creating or figuring out the actual CSS.
[ "Use a css reset to level the field across browsers. YUI and Eric Meyer have good ones.\n", "If you guys are still coding for IE6, you're making a mistake. \nI use IE7.js to get IE6 to render pages like IE7. IE7 is not perfect, but at least it has some semblance of standards. Since I only have to code for IE7 ...
[ 4, 3, 0, 0, 0, 0, 0, 0 ]
[]
[]
[ "cross_browser", "css", "firefox", "internet_explorer" ]
stackoverflow_0000026113_cross_browser_css_firefox_internet_explorer.txt
Q: How do I delete a directory with cc.net / cruiscontrol? Possible Duplicate: Pre-build task - deleting the working copy in CruiseControl.NET I would like to delete my working directory during the cruisecontrol build process...I'm sure this is easy, but I have been unable to find an example of it... If you know ho...
How do I delete a directory with cc.net / cruiscontrol?
Possible Duplicate: Pre-build task - deleting the working copy in CruiseControl.NET I would like to delete my working directory during the cruisecontrol build process...I'm sure this is easy, but I have been unable to find an example of it... If you know how to create a directory, that would be useful as well. Thank...
[ "One of two ways.\n\nIf you're already using an MSBuild file or something similar, add the action to the MSBuild file.\nInstead of directly executing some command, create a batch file that executes that command and then deletes the directory, and have CCnet call that batch file instead.\n\n", "My guess is that yo...
[ 4, 0, 0, 0 ]
[]
[]
[ "cruisecontrol", "cruisecontrol.net" ]
stackoverflow_0000026925_cruisecontrol_cruisecontrol.net.txt
Q: How to represent cross-model information in MVC? I have an application, built using MVC, that produces a view which delivers summary information across a number of models. Further to that, some calculations are performed across the different sets of data. There's no clear single model (that maps to a table at leas...
How to represent cross-model information in MVC?
I have an application, built using MVC, that produces a view which delivers summary information across a number of models. Further to that, some calculations are performed across the different sets of data. There's no clear single model (that maps to a table at least) that seems to make sense as the starting point for ...
[ "As Brian said, you can create another model that marshals out the work that needs doing. There is a great Railscast on how to do this type of thing.\nHTH\n", "Why not create a model that doesn't inherit ActiveRecord::Base and execute the logic there (think the Cart class in Agile...With Rails).\n", "Controller...
[ 3, 1, 1, 0, 0 ]
[]
[]
[ "design_patterns", "model_view_controller", "ruby_on_rails" ]
stackoverflow_0000026834_design_patterns_model_view_controller_ruby_on_rails.txt
Q: Link from ASP.NET yellow error page directly to VS source code When an ASP.NET application errors out and generates the yellow-screen display, I'd like to create some kind of link from the error page which would jump directly to the correct line of code in Visual Studio. I'm not sure how to approach this, or if th...
Link from ASP.NET yellow error page directly to VS source code
When an ASP.NET application errors out and generates the yellow-screen display, I'd like to create some kind of link from the error page which would jump directly to the correct line of code in Visual Studio. I'm not sure how to approach this, or if there are any tools already in existence which accomplish it - but I'd...
[ "You would probably need to embed an ActiveX control in the page for something like that to be possible.\n", "The yellow screen of death is served by the default ASP.NET HTTPHandler.\nIn order to intercept it, you would need to add another HTTPHandler in front of it that intercepts all uncaught exceptions.\nAt th...
[ 1, 0, 0, 0, 0 ]
[ "The easiest, laziest thing I could think of would be to have the process happen thusly:\n\nThe yellow screen is modified so the line is source code is clickable. When clicked it delivers a small text file with the source file name and line number.\nA small program on the PC is tied to the extension of the small f...
[ -1 ]
[ "asp.net", "yellow_screen_of_death" ]
stackoverflow_0000020575_asp.net_yellow_screen_of_death.txt
Q: Keeping key value pairs together in HTML with jQuery? Given a select with multiple option's in jQuery. $select = $("<select></select>"); $select.append("<option>Jason</option>") //Key = 1 .append("<option>John</option>") //Key = 32 .append("<option>Paul</option>") //Key = 423 How should the key be...
Keeping key value pairs together in HTML with jQuery?
Given a select with multiple option's in jQuery. $select = $("<select></select>"); $select.append("<option>Jason</option>") //Key = 1 .append("<option>John</option>") //Key = 32 .append("<option>Paul</option>") //Key = 423 How should the key be stored and retrieved? The ID may be an OK place but would n...
[ "Like lucas said the value attribute is what you need. Using your code it would look something like this ( I added an id attribute to the select to make it fit ):\n$select = $('<select id=\"mySelect\"></select>');\n$select.append('<option value=\"1\">Jason</option>') //Key = 1\n .append('<option value=\"32\">John...
[ 17, 6, 3 ]
[]
[]
[ "html", "javascript", "jquery" ]
stackoverflow_0000027219_html_javascript_jquery.txt
Q: Javascript: declaring a variable before the conditional result? My JavaScript is pretty nominal, so when I saw this construction, I was kind of baffled: var shareProxiesPref = document.getElementById("network.proxy.share_proxy_settings"); shareProxiesPref.disabled = proxyTypePref.value != 1; Isn't it better to do...
Javascript: declaring a variable before the conditional result?
My JavaScript is pretty nominal, so when I saw this construction, I was kind of baffled: var shareProxiesPref = document.getElementById("network.proxy.share_proxy_settings"); shareProxiesPref.disabled = proxyTypePref.value != 1; Isn't it better to do an if on proxyTypePref.value, and then declare the var inside the re...
[ "\n(Incidentally, I also found this form very hard to read in comparison to the normal usage.\n\nNot necessarily, although that was my first thought, too. A code should always emphasize its function, especially if it has side effects. If the writer's intention was to emphasize the assignment to sharedProxiesPref.di...
[ 2, 2, 1 ]
[]
[]
[ "javascript" ]
stackoverflow_0000027034_javascript.txt
Q: Upgrading Sharepoint 3.0 to SQL 2005 Backend? We're trying to get rid of all of our SQL Server 2000 databases to re purpose our old DB server... Sharepoint 3.0 is being a showstopper. I've looked at a lot of guides from Microsoft and tried the instructions in those. I've also just tried the good ol' exec sp_detac...
Upgrading Sharepoint 3.0 to SQL 2005 Backend?
We're trying to get rid of all of our SQL Server 2000 databases to re purpose our old DB server... Sharepoint 3.0 is being a showstopper. I've looked at a lot of guides from Microsoft and tried the instructions in those. I've also just tried the good ol' exec sp_detach_db / sp_attach_db with no luck. Has anyone actual...
[ "my boss has. it was a real pain. permissions issues. he used the built in sharepoint backup tool. I can more details tomorrow if need. I'll check back. \nI'm back. Here's the steps he used.\n\ninstall an instance of sql server\n2005 on the sql 2000 box\n(side-by-side)\nback up the sharepoint site using the sharepo...
[ 1 ]
[]
[]
[ "sharepoint", "sql_server_2000", "sql_server_2005" ]
stackoverflow_0000026028_sharepoint_sql_server_2000_sql_server_2005.txt
Q: IE6 security login (debugging via VirtualPC) I am debugging my ASP.NET application on my Windows XP box with a virtual directory set up in IIS (5.1). I am also running VirtualPC with XP and IE6 for testing purposes. When I connect to my real machine from the virtual machine, I enter the URL: http://machinename/pro...
IE6 security login (debugging via VirtualPC)
I am debugging my ASP.NET application on my Windows XP box with a virtual directory set up in IIS (5.1). I am also running VirtualPC with XP and IE6 for testing purposes. When I connect to my real machine from the virtual machine, I enter the URL: http://machinename/projectname. I get a security popup to connect to my ...
[ "It sounds like you need to allow anonymous users. Can you connect from other machines on your network?\nTry changing your virtual directory's authentication settings, so that anonymous users are allowed (MyVirtualDir > Properties > Authentication).\n", "uncheck allow anonymous on the virtual dir and check integr...
[ 2, 2 ]
[]
[]
[ "asp.net", "iis", "internet_explorer" ]
stackoverflow_0000027078_asp.net_iis_internet_explorer.txt
Q: Bandwith throttling in IIS 6 by IP Address I am writing an application that downloads large files in the background. All clients are logged in locally, or through a VPN. When they are logged in locally, I do not want to throttle downloads. However, I would like to limit downloads to 10 KBps when the user is connec...
Bandwith throttling in IIS 6 by IP Address
I am writing an application that downloads large files in the background. All clients are logged in locally, or through a VPN. When they are logged in locally, I do not want to throttle downloads. However, I would like to limit downloads to 10 KBps when the user is connected via VPN. I can differentiate between these u...
[ "My first thought is this. I don't know if it would work but it would only take a few minutes to try.\nCreate two IIS web sites on the same server. The first site is bound to the public IP, but the second site is bound to the private IP. Both point to the same folder on the file system.\nYour VPN users will be acce...
[ 11 ]
[]
[]
[ "asp.net", "iis" ]
stackoverflow_0000001409_asp.net_iis.txt
Q: Word Automation: Write RTF text without going through clipboard I am trying to replace the current selection in Word (2003/2007) by some RTF string stored in a variable. Here is the current code: Clipboard.SetText(strRTFString, TextDataFormat.Rtf) oWord.ActiveDocument.ActiveWindow.Selection.PasteAndFormat(0) Is t...
Word Automation: Write RTF text without going through clipboard
I am trying to replace the current selection in Word (2003/2007) by some RTF string stored in a variable. Here is the current code: Clipboard.SetText(strRTFString, TextDataFormat.Rtf) oWord.ActiveDocument.ActiveWindow.Selection.PasteAndFormat(0) Is there any way to do the same thing without going through the clipboard...
[ "Put the RTF in a file instead of the clipboard, then insert from the file, e.g.\n\nSelection.InsertFile FileName:=\"myfile.rtf\", Range :=\"\", _\n ConfirmConversions:=False, Link:=False, Attachment:=False\n\n" ]
[ 14 ]
[ "You can use a RichTextbox to convert RTF to text or vice versa.\nRichTextBox r = new RichTextBox();\nr.Rtf = strRTFString;\nConsole.WriteLine(r.Text);\n\n" ]
[ -3 ]
[ "automation", "ms_word", "vba" ]
stackoverflow_0000022326_automation_ms_word_vba.txt
Q: How to send out email at a user's local time in .NET / Sql Server? I am writing a program that needs to send out an email every hour on the hour, but at a time local to the user. Say I have 2 users in different time zones. John is in New York and Fred is in Los Angeles. The server is in Chicago. If I want to send ...
How to send out email at a user's local time in .NET / Sql Server?
I am writing a program that needs to send out an email every hour on the hour, but at a time local to the user. Say I have 2 users in different time zones. John is in New York and Fred is in Los Angeles. The server is in Chicago. If I want to send an email at 6 PM local to each user, I'd have to send the email to John ...
[ "I'm a PHP developer so I'll share what I know from PHP. I'm sure .NET will include something similar.\nIn PHP you can get timezone differences for the server time - as you've suggested you'd send the emails at different times on the server.\nEvery time you add a user save their time offset from the server time (or...
[ 0, 0, 0 ]
[]
[]
[ ".net", "sql", "sql_server", "timezone" ]
stackoverflow_0000022319_.net_sql_sql_server_timezone.txt
Q: What's the simplest way to connect to a .NET remote server object Given that my client code knows everything it needs to about the remoting object, what's the simplest way to connect to it? This is what I'm doing at the moment: ChannelServices.RegisterChannel(new HttpChannel(), false); RemotingConfiguration.Regis...
What's the simplest way to connect to a .NET remote server object
Given that my client code knows everything it needs to about the remoting object, what's the simplest way to connect to it? This is what I'm doing at the moment: ChannelServices.RegisterChannel(new HttpChannel(), false); RemotingConfiguration.RegisterWellKnownServiceType( typeof(IRemoteServer), "RemoteServer.rem",...
[ "The first two lines are in the server-side code, for marshaling out the server object, yes?\nIn that case, yes, the third line is the simplest you can get at client-side.\nIn addition, you can serve out additional server-side objects from the MyServerObject instance, if you include public accessors for them in IRe...
[ 1, 0 ]
[]
[]
[ ".net", "c#", "remote_server", "remoting" ]
stackoverflow_0000025982_.net_c#_remote_server_remoting.txt
Q: Does Mono support System.Drawing and System.Drawing.Printing? I'm attempting to use Mono to load a bitmap and print it on Linux but I'm getting an exception. Does Mono support printing on Linux? The code/exception are below: EDIT: No longer getting the exception, but I'm still curious what kind of support there ...
Does Mono support System.Drawing and System.Drawing.Printing?
I'm attempting to use Mono to load a bitmap and print it on Linux but I'm getting an exception. Does Mono support printing on Linux? The code/exception are below: EDIT: No longer getting the exception, but I'm still curious what kind of support there is. Leaving the code for posterity or something. private void btnP...
[ "From the Mono docs, I think yes:\n\nManaged.Windows.Forms (aka\n System.Windows.Forms): A complete and\n cross platform, System.Drawing based\n Winforms implementation.\n\nIt also useful if you run the Mono Migration Analyzer first.\n", "According to\nSystem.Drawing is now complete, and in addition to being t...
[ 7, 5 ]
[]
[]
[ ".net", "c#", "linux", "mono", "printing" ]
stackoverflow_0000027455_.net_c#_linux_mono_printing.txt
Q: Avoid traffic shaping by using ssh on port 443 I heard that if you use port 443 (the port usually used for https) for ssh, the encrypted packets look the same to your isp. Could this be a way to avoid traffic shaping/throttling? A: I'm not sure it's true that any given ssh packet "looks" the same as any given ht...
Avoid traffic shaping by using ssh on port 443
I heard that if you use port 443 (the port usually used for https) for ssh, the encrypted packets look the same to your isp. Could this be a way to avoid traffic shaping/throttling?
[ "I'm not sure it's true that any given ssh packet \"looks\" the same as any given https packet.\nHowever, over their lifetime they don't behave the same way. The session set up and tear down don't look alike (SSH offer a plain text banner during initial connect, for one thing). Also, typically wouldn't an https s...
[ 5, 4, 2 ]
[]
[]
[ "https", "linux", "ssh", "trafficshaping" ]
stackoverflow_0000027266_https_linux_ssh_trafficshaping.txt
Q: Timeout not being honoured in connection string I have a long running SQL statement that I want to run, and no matter what I put in the "timeout=" clause of my connection string, it always seems to end after 30 seconds. I'm just using SqlHelper.ExecuteNonQuery() to execute it, and letting it take care of opening...
Timeout not being honoured in connection string
I have a long running SQL statement that I want to run, and no matter what I put in the "timeout=" clause of my connection string, it always seems to end after 30 seconds. I'm just using SqlHelper.ExecuteNonQuery() to execute it, and letting it take care of opening connections, etc. Is there something else that could...
[ "What are you using to set the timeout in your connection string? From memory that's \"ConnectionTimeout\" and only affects the time it takes to actually connect to the server.\nEach individual command has a separate \"CommandTimeout\" which would be what you're looking for. Not sure how SqlHelper implements that t...
[ 44, 15 ]
[]
[]
[ "database", "sql_server", "timeout" ]
stackoverflow_0000027472_database_sql_server_timeout.txt
Q: Databind RenderTransform Scaling in Silverlight 2 Beta 2 Anyone know if it's possible to databind the ScaleX and ScaleY of a render transform in Silverlight 2 Beta 2? Binding transforms is possible in WPF - But I'm getting an error when setting up my binding in Silverlight through XAML. Perhaps it's possible to do...
Databind RenderTransform Scaling in Silverlight 2 Beta 2
Anyone know if it's possible to databind the ScaleX and ScaleY of a render transform in Silverlight 2 Beta 2? Binding transforms is possible in WPF - But I'm getting an error when setting up my binding in Silverlight through XAML. Perhaps it's possible to do it through code? <Image Height="60" HorizontalAlignment="Righ...
[ "Is it a runtime error or compile-time, Jonas? Looking at the documentation, ScaleX and ScaleY are dependency properties, so you should be able to write\n<ScaleTransform ScaleX=\"{Binding Foo}\" ScaleY=\"{Binding Bar}\" />\n\n... where Foo and Bar are of the appropriate type.\nEdit: Of course, that's the WPF docume...
[ 1, 1, 0, 0, 0, 0, 0 ]
[]
[]
[ "data_binding", "silverlight" ]
stackoverflow_0000027303_data_binding_silverlight.txt
Q: How do you deal with the light side and dark side of distributed version control systems? I've had some discussions recently at work about switching from Subversion to a DVCS like bazaar, and I would like to get other people's opinion. I've managed to crystallize my reluctance to do so into a simple parallel. Ver...
How do you deal with the light side and dark side of distributed version control systems?
I've had some discussions recently at work about switching from Subversion to a DVCS like bazaar, and I would like to get other people's opinion. I've managed to crystallize my reluctance to do so into a simple parallel. Version Control can be used well or badly. The 'light side' of version control is when you use i...
[ "If there are developers on your team that don't want to share their \"one week local hack\" then thats the problem, not the source control tool you are using. A better term for the \"dark side\" you are describing is \"the wrong way\" of coding for a team. Source control is a tool used to facilitate collaborative ...
[ 3, 2, 1, 0 ]
[]
[]
[ "svn", "version_control" ]
stackoverflow_0000027054_svn_version_control.txt
Q: Cannot delete, a file with that name may already exist This is starting to vex me. I recently decided to clear out my FTP, and stumbled across an old Wordpress install I forgot I had (oh yes, very security conscious me). Anyway, for some reason deleting the directory failed so I investigated to see what was causin...
Cannot delete, a file with that name may already exist
This is starting to vex me. I recently decided to clear out my FTP, and stumbled across an old Wordpress install I forgot I had (oh yes, very security conscious me). Anyway, for some reason deleting the directory failed so I investigated to see what was causing the blockage and I've narrowed it down to a file in wp-con...
[ "First of all, try emailing your webhost either for SSH-access or to remove the symlink for you.\nIf you get SSH-access, use:\nunlink index.php\n\nOr if neither works: Create a PHP file there (for instance remove.php) that contains:\n<?php unlink(\"./index.php\") ?>\n\nThen open that file in your browser, afterward...
[ 2 ]
[]
[]
[ "file", "ftp", "symlink" ]
stackoverflow_0000027655_file_ftp_symlink.txt
Q: SVN Client Ignore Pattern for VB.NET Solutions What is the best SVN Ignore Pattern should TortoiseSVN have for a VB.NET solution? A: this is what I use for C# w/resharper, should work just the same with vb.net: build deploy */bin */bin/* obj *.dll *.pdb *.user *.suo _ReSharper* *.resharper* bin A: I always a...
SVN Client Ignore Pattern for VB.NET Solutions
What is the best SVN Ignore Pattern should TortoiseSVN have for a VB.NET solution?
[ "this is what I use for C# w/resharper, should work just the same with vb.net:\nbuild deploy */bin */bin/* obj *.dll *.pdb *.user *.suo _ReSharper* *.resharper* bin\n\n", "I always add Thumbs.db in as well, because I hate having those files versioned. Probably more of an issue for web developers \n" ]
[ 17, 4 ]
[]
[]
[ "svn", "tortoisesvn", "vb.net" ]
stackoverflow_0000004138_svn_tortoisesvn_vb.net.txt
Q: Executing JavaScript to Render HTML for Server-Side Caching There are lots of widgets provided by sites that are effectively bits of JavaScript that generate HTML through DOM manipulation or document.write(). Rather than slow the browser down even more with additional requests and trust yet another provider to be ...
Executing JavaScript to Render HTML for Server-Side Caching
There are lots of widgets provided by sites that are effectively bits of JavaScript that generate HTML through DOM manipulation or document.write(). Rather than slow the browser down even more with additional requests and trust yet another provider to be fast, reliable and not change the widget output, I want to execut...
[ "Wikipedia's \"Server-side JavaScript\" article lists numerous implementations, many of which are based on Mozilla's Rhino JavaScript-to-Java converter, or its cousin SpiderMonkey (the same engine as found in Firefox and other Gecko-based browsers). In particular, something simple like mod_js for Apache may suit yo...
[ 4, 2, 2 ]
[]
[]
[ "greasemonkey", "html", "javascript", "rendering" ]
stackoverflow_0000015007_greasemonkey_html_javascript_rendering.txt
Q: TClientDataSet Aggregates specification aren't added automatically when creating an Aggregate field I need to create an Aggregate Field in a TClientDataSet, but as said in the docs: Choose OK. The newly defined aggregate field is automatically added to the client dataset and its Aggregates property is autom...
TClientDataSet Aggregates specification aren't added automatically when creating an Aggregate field
I need to create an Aggregate Field in a TClientDataSet, but as said in the docs: Choose OK. The newly defined aggregate field is automatically added to the client dataset and its Aggregates property is automatically updated to include the appropriate aggregate specification. When I add a new aggregate fiel...
[ "I think you may be getting confused between TAggregate and TAggregateField objects, and the Delphi documentation probably isn't helping.\nAFAICT, TAggregateField objects are automatically 'recalculated' and can be bound to data-aware controls like TDBText, but don't have any OnUpdate event. \n\"TAggregate\" object...
[ 4, 1 ]
[]
[]
[ "delphi" ]
stackoverflow_0000022212_delphi.txt
Q: How print Flex components in FireFox3? Thanks to FireFox's buggy implementation of ActiveX components (it really should take an image of them when printing) Flex components (in our case charts) don't print in FX. They print fine in IE7, even IE6. We need these charts to print, but they also have dynamic content. ...
How print Flex components in FireFox3?
Thanks to FireFox's buggy implementation of ActiveX components (it really should take an image of them when printing) Flex components (in our case charts) don't print in FX. They print fine in IE7, even IE6. We need these charts to print, but they also have dynamic content. I don't really want to draw them again as im...
[ "Using the ACPrintManager I was able to get firefox 3 to print perfectly!\nThe one thing I had to add to the example was to check if stage was null, and callLater if the stage was null.\nprivate function initPrint():void {\n //if we don't have a stage, wait until the next frame and try again\n if ( stage == ...
[ 3, 0 ]
[]
[]
[ "actionscript_3", "apache_flex", "firefox" ]
stackoverflow_0000009256_actionscript_3_apache_flex_firefox.txt
Q: Finding the crash dump files for a C# app An app I'm writing always crashes on a clients computer, but I don't get an exception description, or a stack trace. The only thing I get is a crash report that windows wants to send to Microsoft. I would like to get that dump file and investigate it myself, but I cannot f...
Finding the crash dump files for a C# app
An app I'm writing always crashes on a clients computer, but I don't get an exception description, or a stack trace. The only thing I get is a crash report that windows wants to send to Microsoft. I would like to get that dump file and investigate it myself, but I cannot find it. When I "View the contents of the error ...
[ "You can use the Windows debugging tools to view the crash dump. To get the most use out of it, you'll need an exact copy of the symbols for that application (i.e. same version).\nHave a look at Tess's blog for tutorials on how to use the Windows debugging tools. I refer to her blog constantly whenever I'm in need ...
[ 8, 6 ]
[]
[]
[ "c#", "crash", "memory_dump" ]
stackoverflow_0000027742_c#_crash_memory_dump.txt
Q: Dynamic Element Names I want to transform an XML document. The source XML looks like this: <svc:ElementList> <svc:Element> <Year>2007</Year> </svc:Element> <svc:Element> <Year>2006</Year> </svc:Element> <svc:Element> <Year>2005</Year> </svc:Element> </svc:ElementList...
Dynamic Element Names
I want to transform an XML document. The source XML looks like this: <svc:ElementList> <svc:Element> <Year>2007</Year> </svc:Element> <svc:Element> <Year>2006</Year> </svc:Element> <svc:Element> <Year>2005</Year> </svc:Element> </svc:ElementList> I want to turn that into...
[ "Probably namespace issues and maybe one with current context. For source (with added namespace declaration to make it well-formed xml)\n<svc:ElementList xmlns:svc=\"svc\">\n <svc:Element>\n <Year>2007</Year>\n </svc:Element>\n <svc:Element>\n <Year>2006</Year>\n </svc:Element>\n <svc:Element>\n <Year...
[ 13 ]
[]
[]
[ "namespaces", "xml", "xslt" ]
stackoverflow_0000027931_namespaces_xml_xslt.txt
Q: Reverse Find in a string I need to be able to find the last occurrence of a character within an element. For example: <mediaurl>http://www.blah.com/path/to/file/media.jpg</mediaurl> If I try to locate it through using substring-before(mediaurl, '.') and substring-after(mediaurl, '.') then it will, of course, matc...
Reverse Find in a string
I need to be able to find the last occurrence of a character within an element. For example: <mediaurl>http://www.blah.com/path/to/file/media.jpg</mediaurl> If I try to locate it through using substring-before(mediaurl, '.') and substring-after(mediaurl, '.') then it will, of course, match on the first dot. How woul...
[ "The following is an example of a template that would produce the required output in XSLT 1.0:\n<xsl:template name=\"getExtension\">\n<xsl:param name=\"filename\"/>\n\n <xsl:choose>\n <xsl:when test=\"contains($filename, '.')\">\n <xsl:call-template name=\"getExtension\">\n <xsl:with-param name=\"filena...
[ 14, 4, 0, 0 ]
[]
[]
[ "xml", "xslt" ]
stackoverflow_0000014527_xml_xslt.txt
Q: Use table metadata for select statement in SQL Server? I have a large database and would like to select table names that have a certain column name. I have done something like this in MySQL, but can't find any info on SQL Server. I want to do something like: select [table] from [db] where table [has column 'clas...
Use table metadata for select statement in SQL Server?
I have a large database and would like to select table names that have a certain column name. I have done something like this in MySQL, but can't find any info on SQL Server. I want to do something like: select [table] from [db] where table [has column 'classtypeid'] How can I do something like this?
[ "Use the ANSI information_schema views, this will also work in MySQL\nselect table_name \nfrom information_schema.columns \nwhere column_name = 'classtypeid'\n\n", "Here you go:\nSELECT C.TABLE_NAME\nFROM INFORMATION_SCHEMA.COLUMNS AS C\n INNER JOIN INFORMATION_SCHEMA.TABLES AS T ON C.TABLE_NAME = T.TABLE_NAME\n...
[ 5, 2 ]
[]
[]
[ "sql", "sql_server" ]
stackoverflow_0000028003_sql_sql_server.txt
Q: SQL Server to MySQL I have a backup of an SQL Server DB in .bak format which I've successfully managed to restore to a local instance of SQL Server Express. I now want to export both the structure and data in a format that MySQL will accept. The tools that I use for MySQL management typically allow me to import/ex...
SQL Server to MySQL
I have a backup of an SQL Server DB in .bak format which I've successfully managed to restore to a local instance of SQL Server Express. I now want to export both the structure and data in a format that MySQL will accept. The tools that I use for MySQL management typically allow me to import/export .sql files, but unfo...
[ "There will be 2 issues:\n1) Datatypes. There isn't always a direct analog between an MS SQL type and a MySQL type. For example, MySQL handles timestamps very differently and has the cut-off for when you need to switch between varchar(n) and varchar(max)/text at a different value of n. There are also some small ...
[ 1 ]
[]
[]
[ "database", "sql_server" ]
stackoverflow_0000028033_database_sql_server.txt
Q: Print a barcode to a Intermec PB20 via the LinePrinter API Does anyone know how to print a barcode to the Intermec PB20 bluetooth printer from a Windows Compact Framework application? We are currently using the Intermec LinePrinter API but have been unable to find a way to print a barcode. ­­­­­­­­­­­­­­­­­­­­­­­­...
Print a barcode to a Intermec PB20 via the LinePrinter API
Does anyone know how to print a barcode to the Intermec PB20 bluetooth printer from a Windows Compact Framework application? We are currently using the Intermec LinePrinter API but have been unable to find a way to print a barcode. ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
[ "Thank you all for your thoughts. Printing directly to the serial port is likely the most flexible method. In this case we didn't want to replicate all of the work that was already built into the Intermec dll for handling the port, printer errors, etc. We were able to get this working by sending the printer the app...
[ 1, 0, 0, 0, 0 ]
[]
[]
[ "c#", "windows_mobile" ]
stackoverflow_0000026354_c#_windows_mobile.txt
Q: Form post doesn't contain textbox data [ASP.NET C#] I have several "ASP:TextBox" controls on a form (about 20). When the form loads, the text boxes are populated from a database. The user can change the populated values, and when they submit the form, I take the values posted to the server and conditionally save t...
Form post doesn't contain textbox data [ASP.NET C#]
I have several "ASP:TextBox" controls on a form (about 20). When the form loads, the text boxes are populated from a database. The user can change the populated values, and when they submit the form, I take the values posted to the server and conditionally save them (determined by some business logic). All but 1 of the...
[ "Are you initially loading the data only when !Page.IsPostBack? Also, is view state enabled for the text box?\n", "this happens to me all the time.\nprotected void Page_Load(object sender, EventArgs e)\n{\n if (!Page.IsPostBack)\n {\n // populate text boxes from database\n }\n}\n\n", "I would se...
[ 9, 7, 2, 1, 1 ]
[]
[]
[ "asp.net", "c#" ]
stackoverflow_0000022988_asp.net_c#.txt
Q: What are models for storing tree structures and what are their characteristics? So far I have encountered adjacency list, nested sets and nested intervals as models for storing tree structures in a database. I know these well enough and have migrated trees from one to another. What are other popular models? What a...
What are models for storing tree structures and what are their characteristics?
So far I have encountered adjacency list, nested sets and nested intervals as models for storing tree structures in a database. I know these well enough and have migrated trees from one to another. What are other popular models? What are their characteristics? What are good resources (books, web, etc) on this topic? I'...
[ "A variation is where you use a direct hierarchical representation (ie. parent link in node), but also store a path value.\nie. for a directory tree consisting of the following:\nC:\\\n Temp\n Windows\n System32\n\nYou would have the following nodes\nKey Name Parent Path\n1 C: ...
[ 2, 1 ]
[]
[]
[ "data_structures", "modeling" ]
stackoverflow_0000027850_data_structures_modeling.txt
Q: How can I convert types in C++? I'm using two different libraries in my project, and both of them supply a basic rectangle struct. The problem with this is that there seems to be no way to insert a conversion between the types, so I can't call a function in one library with the result from a function in the other....
How can I convert types in C++?
I'm using two different libraries in my project, and both of them supply a basic rectangle struct. The problem with this is that there seems to be no way to insert a conversion between the types, so I can't call a function in one library with the result from a function in the other. If I was the author of either of the...
[ "Create an intermediate shim type \"RectangleEx\", and define custom conversions to/from the 3rd-party string types. Whenever you speak to either API, do so through the shim class.\nAnother way would be to derive a class from either rect or Rectangle, and insert conversions/constructors there.\n", "Not sure how s...
[ 4, 3, 2, 0, 0, 0 ]
[ "Maybe you could try it with operator overloading ? (Maybe a = operator which is not a method of your class) ?\nRect operator= (const Rect&,const rectangle&)\nMore about this in the C++ programming language by Bjarne Stroustrup or maybe on this page: http://www.cs.caltech.edu/courses/cs11/material/cpp/donnie/cpp-op...
[ -1 ]
[ "c++", "oop", "types" ]
stackoverflow_0000028212_c++_oop_types.txt
Q: Is there any way to prevent find from digging down recursively into subdirectories? When I do: $ find / It searches the entire system. How do I prevent that? (This question comes from an "answer" to another question.) A: Consider: -maxdepth n True if the depth of the current file into the tree is ...
Is there any way to prevent find from digging down recursively into subdirectories?
When I do: $ find / It searches the entire system. How do I prevent that? (This question comes from an "answer" to another question.)
[ "Consider:\n-maxdepth n\n True if the depth of the current file into the tree is less than\n or equal to n.\n\n-mindepth n\n True if the depth of the current file into the tree is greater\n than or equal to n.\n\n", "G'day,\nJust wanted to expand on the suggestion f...
[ 10, 4, 3, 0, 0 ]
[]
[]
[ "bash", "ksh", "shell", "unix" ]
stackoverflow_0000027077_bash_ksh_shell_unix.txt
Q: How to get SpecUnit to run within a TeamCity CI build I am trying to get SpecUnit to run in a continuous integration build using Nant. At the moment the files are in the correct place but no output is generated from SpecUnit.Report.exe. Here is the relevant task from the nant build script: <echo message="**** Star...
How to get SpecUnit to run within a TeamCity CI build
I am trying to get SpecUnit to run in a continuous integration build using Nant. At the moment the files are in the correct place but no output is generated from SpecUnit.Report.exe. Here is the relevant task from the nant build script: <echo message="**** Starting SpecUnit report generation ****" /> <copy file="${spec...
[ "You need to specify the full path to the assembly argument I think...\n <exec program=\"${output.dir}SpecUnit.Report.exe\" verbose=\"true\">\n <arg value=\"${output.dir}${acceptance.tests.assembly}\" />\n </exec>\n\n" ]
[ 0 ]
[]
[]
[ "c#", "nant", "teamcity" ]
stackoverflow_0000027889_c#_nant_teamcity.txt
Q: Does PHP have an equivalent to this type of Python string substitution? Python has this wonderful way of handling string substitutions using dictionaries: >>> 'The %(site)s site %(adj)s because it %(adj)s' % {'site':'Stackoverflow', 'adj':'rocks'} 'The Stackoverflow site rocks because it rocks' I love this becaus...
Does PHP have an equivalent to this type of Python string substitution?
Python has this wonderful way of handling string substitutions using dictionaries: >>> 'The %(site)s site %(adj)s because it %(adj)s' % {'site':'Stackoverflow', 'adj':'rocks'} 'The Stackoverflow site rocks because it rocks' I love this because you can specify a value once in the dictionary and then replace it all over...
[ "function subst($str, $dict){\n return preg_replace(array_map(create_function('$a', 'return \"/%\\\\($a\\\\)s/\";'), array_keys($dict)), array_values($dict), $str);\n }\n\nYou call it like so:\necho subst('The %(site)s site %(adj)s because it %(adj)s', array('site'=>'Stackoverflow', 'adj'=>'rocks'));\n\n", "@M...
[ 5, 4, 1 ]
[]
[]
[ "php", "python", "string" ]
stackoverflow_0000028165_php_python_string.txt
Q: Comparing two XML Schemas Are there any tools to effectively compare two XML schema's? I have seen some generic XML diff tools, but I was wondering if there is anything that knows more about schemas. A: I would look into DeltaXML. It seems to have the features you're looking for. They even have a guide on how...
Comparing two XML Schemas
Are there any tools to effectively compare two XML schema's? I have seen some generic XML diff tools, but I was wondering if there is anything that knows more about schemas.
[ "I would look into DeltaXML. It seems to have the features you're looking for. They even have a guide on how to compare schemas.\n" ]
[ 6 ]
[]
[]
[ "comparison", "xml", "xsd" ]
stackoverflow_0000028433_comparison_xml_xsd.txt