question_id int64 4 6.31M | answer_id int64 7 6.31M | title stringlengths 9 150 | question_body stringlengths 0 28.8k | answer_body stringlengths 60 27.2k | question_text stringlengths 40 28.9k | combined_text stringlengths 124 39.6k | tags listlengths 1 6 | question_score int64 0 26.3k | answer_score int64 0 28.8k | view_count int64 15 14M | answer_count int64 0 182 | favorite_count int64 0 32 | question_creation_date stringdate 2008-07-31 21:42:52 2011-06-10 18:12:18 | answer_creation_date stringdate 2008-07-31 22:17:57 2011-06-10 18:14:17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
121,821 | 122,006 | Setting a key field on a view | I am creating an SQL view for a file that strips out the spaces in a particular field. My question is if there is a why to set a key on that new view so a person can still CHAIN the file. We are on V5R3. | Okay found the answer at http://archive.midrange.com/midrange-l/200809/msg01062.html. It is not possible at V5R3. Supposedly at V6R1 this is possible. | Setting a key field on a view I am creating an SQL view for a file that strips out the spaces in a particular field. My question is if there is a why to set a key on that new view so a person can still CHAIN the file. We are on V5R3. | TITLE:
Setting a key field on a view
QUESTION:
I am creating an SQL view for a file that strips out the spaces in a particular field. My question is if there is a why to set a key on that new view so a person can still CHAIN the file. We are on V5R3.
ANSWER:
Okay found the answer at http://archive.midrange.com/midran... | [
"sql",
"view",
"ibm-midrange"
] | 1 | 2 | 1,001 | 3 | 0 | 2008-09-23T15:40:27.383000 | 2008-09-23T16:06:31.830000 |
121,837 | 121,851 | SQL Server 2005: Importing data from SQL Server 2000 | In SQL Server 2000, you have the "All Tasks... - Export Data" option. Where is this option the SQL Server 2005 Management Studio? Or, is there a SQL Server 2005 way of doing this? EDIT: I am using the Express edition. EDIT: Joel's response answers my question but Mike's answer gives a great alternative to those of us u... | If you're using the express edition of management studio the Import and Export features aren't available. | SQL Server 2005: Importing data from SQL Server 2000 In SQL Server 2000, you have the "All Tasks... - Export Data" option. Where is this option the SQL Server 2005 Management Studio? Or, is there a SQL Server 2005 way of doing this? EDIT: I am using the Express edition. EDIT: Joel's response answers my question but Mik... | TITLE:
SQL Server 2005: Importing data from SQL Server 2000
QUESTION:
In SQL Server 2000, you have the "All Tasks... - Export Data" option. Where is this option the SQL Server 2005 Management Studio? Or, is there a SQL Server 2005 way of doing this? EDIT: I am using the Express edition. EDIT: Joel's response answers m... | [
"sql-server",
"sql-server-2005",
"sql-server-2000"
] | 0 | 2 | 3,661 | 5 | 0 | 2008-09-23T15:43:34.507000 | 2008-09-23T15:45:37.667000 |
121,839 | 126,237 | What software development process do you use? | I have always used the agile Feature Driven Development process for developing software. What does everyone else use, and why do you prefer it? I prefer FDD because that's what I started with fresh out of college. In college, everything was very free-form and my "customer" was typically my professor, who might not have... | At work we use the ICONIX process. It is a subset of AGILE techniques and it is behavioural requirements driven. The ICONIX process aims to be as low-celebration as possible having as little documentation as possible - in order to allow you to easily keep it up-to-date (this is a big difference from other AGILE process... | What software development process do you use? I have always used the agile Feature Driven Development process for developing software. What does everyone else use, and why do you prefer it? I prefer FDD because that's what I started with fresh out of college. In college, everything was very free-form and my "customer" ... | TITLE:
What software development process do you use?
QUESTION:
I have always used the agile Feature Driven Development process for developing software. What does everyone else use, and why do you prefer it? I prefer FDD because that's what I started with fresh out of college. In college, everything was very free-form ... | [
"agile",
"feature-driven"
] | 3 | 10 | 2,014 | 15 | 0 | 2008-09-23T15:44:13.163000 | 2008-09-24T09:39:45.480000 |
121,847 | 121,900 | Where can I learn about logarithms? | I hear logarithms mentioned quite a lot in the programming context. They seem to be the solution to many problems and yet I can't seem to find a real-world way of making use of them. I've read the Wikipedia entry and that, quite frankly, leaves me none the wiser. So, where can I learn about the real-world programming p... | Say you've got $1000, and it's in a savings account with 2.4% interest. How many years do you have to wait until you have $2000 to buy a new laptop? 1000 × 1.024 x = 2000 1.024 x = 2 x = log 1.024 2 = 29.23 years | Where can I learn about logarithms? I hear logarithms mentioned quite a lot in the programming context. They seem to be the solution to many problems and yet I can't seem to find a real-world way of making use of them. I've read the Wikipedia entry and that, quite frankly, leaves me none the wiser. So, where can I lear... | TITLE:
Where can I learn about logarithms?
QUESTION:
I hear logarithms mentioned quite a lot in the programming context. They seem to be the solution to many problems and yet I can't seem to find a real-world way of making use of them. I've read the Wikipedia entry and that, quite frankly, leaves me none the wiser. So... | [
"math",
"logarithm"
] | 20 | 12 | 5,158 | 19 | 0 | 2008-09-23T15:44:59.230000 | 2008-09-23T15:52:07.527000 |
121,849 | 121,929 | Pros and cons of using one file for entire webpage? | I'm not sure how I should express this, but I'll give it a try. I recently started coding my portfolio in object-oriented PHP and I'm wondering if it's according to best practices to use a single page where the content changes depending on SQL data and the $_GET variable? If so/not, why? Edit: Take a look at my next po... | Are you asking about using the front controller pattern, where a single file serves all of your requests? Often this is done with an index.php and mod_rewrite getting all of the requests with the rest of the URL being given to it as a parameter in the query string. http://www.onlamp.com/pub/a/php/2004/07/08/front_contr... | Pros and cons of using one file for entire webpage? I'm not sure how I should express this, but I'll give it a try. I recently started coding my portfolio in object-oriented PHP and I'm wondering if it's according to best practices to use a single page where the content changes depending on SQL data and the $_GET varia... | TITLE:
Pros and cons of using one file for entire webpage?
QUESTION:
I'm not sure how I should express this, but I'll give it a try. I recently started coding my portfolio in object-oriented PHP and I'm wondering if it's according to best practices to use a single page where the content changes depending on SQL data a... | [
"php",
"file"
] | 2 | 11 | 1,299 | 12 | 0 | 2008-09-23T15:45:22.583000 | 2008-09-23T15:56:29.513000 |
121,864 | 121,890 | Most efficient T-SQL way to pad a varchar on the left to a certain length? | As compared to say: REPLICATE(@padchar, @len - LEN(@str)) + @str | This is simply an inefficient use of SQL, no matter how you do it. perhaps something like right('XXXXXXXXXXXX'+ rtrim(@str), @n) where X is your padding character and @n is the number of characters in the resulting string (assuming you need the padding because you are dealing with a fixed length). But as I said you sho... | Most efficient T-SQL way to pad a varchar on the left to a certain length? As compared to say: REPLICATE(@padchar, @len - LEN(@str)) + @str | TITLE:
Most efficient T-SQL way to pad a varchar on the left to a certain length?
QUESTION:
As compared to say: REPLICATE(@padchar, @len - LEN(@str)) + @str
ANSWER:
This is simply an inefficient use of SQL, no matter how you do it. perhaps something like right('XXXXXXXXXXXX'+ rtrim(@str), @n) where X is your padding ... | [
"sql",
"sql-server",
"t-sql"
] | 218 | 340 | 321,612 | 21 | 0 | 2008-09-23T15:46:39.147000 | 2008-09-23T15:50:14.240000 |
121,866 | 122,052 | Why does Django generate HTTP 500 errors for static media when Debug is set to False? | I'm preparing to deploy my Django app and I noticed that when I change the "DEBUG" setting to False, all references to static files (i.e., JavaScript, CSS, etc..) result in HTTP 500 errors. Any idea what's causing that issue (and how to fix it)? | I would highly recommend letting your web server handle the static requests, without getting to Django. In my urls.py, I only add the static request handler when debug is set to True. Technically, Django serving the static works fine though. Definitely read the short docs page, http://docs.djangoproject.com/en/dev/howt... | Why does Django generate HTTP 500 errors for static media when Debug is set to False? I'm preparing to deploy my Django app and I noticed that when I change the "DEBUG" setting to False, all references to static files (i.e., JavaScript, CSS, etc..) result in HTTP 500 errors. Any idea what's causing that issue (and how ... | TITLE:
Why does Django generate HTTP 500 errors for static media when Debug is set to False?
QUESTION:
I'm preparing to deploy my Django app and I noticed that when I change the "DEBUG" setting to False, all references to static files (i.e., JavaScript, CSS, etc..) result in HTTP 500 errors. Any idea what's causing th... | [
"django",
"deployment",
"debugging"
] | 6 | 12 | 4,662 | 4 | 0 | 2008-09-23T15:46:58.740000 | 2008-09-23T16:16:07.003000 |
121,922 | 122,443 | Automatic casts | I am currently suffering a brain fart. I've done this before but I can't remember the exact syntax and I can't look at the code I wrote because I was working at another company at the time. I have this arrangement: class P { // stuff };
class PW: public P { // more stuff };
class PR: public P { // more stuff };
clas... | If you want to get this part to compile: //... P p = c.GetP( ); // valid PW p = c.GetP( ); // invalid PR p = c.GetP( ); // invalid //... You need to be able to construct/convert a P into a PW or a PR. You need to do something like this: class PW: public P { PW(const P &); // more stuff };
class PR: public P { PR(const... | Automatic casts I am currently suffering a brain fart. I've done this before but I can't remember the exact syntax and I can't look at the code I wrote because I was working at another company at the time. I have this arrangement: class P { // stuff };
class PW: public P { // more stuff };
class PR: public P { // mor... | TITLE:
Automatic casts
QUESTION:
I am currently suffering a brain fart. I've done this before but I can't remember the exact syntax and I can't look at the code I wrote because I was working at another company at the time. I have this arrangement: class P { // stuff };
class PW: public P { // more stuff };
class PR:... | [
"c++",
"casting"
] | 2 | 3 | 499 | 10 | 0 | 2008-09-23T15:55:08.643000 | 2008-09-23T17:26:19.783000 |
121,937 | 121,960 | RSS/ATOM feed reader for windows (or cross-platform) | Looking for a good rss/feed reader for windows or if there are any good cross platforms one i would be really amazed, or good web services (dont like the google one). I want something simplistic and minimalistic. | I like the NewsGator family of tools ( http://newsgator.com ). I mostly use the Mac and web-based versions, but thought FeedDemon was good, too, for the Windows environment. All keep a common subscription list, so you can bounce back and forth as needed. | RSS/ATOM feed reader for windows (or cross-platform) Looking for a good rss/feed reader for windows or if there are any good cross platforms one i would be really amazed, or good web services (dont like the google one). I want something simplistic and minimalistic. | TITLE:
RSS/ATOM feed reader for windows (or cross-platform)
QUESTION:
Looking for a good rss/feed reader for windows or if there are any good cross platforms one i would be really amazed, or good web services (dont like the google one). I want something simplistic and minimalistic.
ANSWER:
I like the NewsGator family... | [
"xml",
"rss",
"cross-platform"
] | 2 | 3 | 958 | 10 | 0 | 2008-09-23T15:57:38.763000 | 2008-09-23T16:00:09.520000 |
121,946 | 122,060 | Assembly.GetCallingAssembly() and static constructors? | Ok, so I just ran into the following problem that raised an eyebrow. For various reasons I have a testing setup where Testing classes in a TestingAssembly.dll depend on the TestingBase class in a BaseTestingAssembly.dll. One of the things the TestBase does in the meantime is look for a certain embedded resource in its ... | The static constructor is called by the runtime and not directly by user code. You can see this by setting a breakpoint in the constructor and then running in the debugger. The function immediately above it in the call chain is native code. Edit: There are a lot of ways in which static initializers run in a different e... | Assembly.GetCallingAssembly() and static constructors? Ok, so I just ran into the following problem that raised an eyebrow. For various reasons I have a testing setup where Testing classes in a TestingAssembly.dll depend on the TestingBase class in a BaseTestingAssembly.dll. One of the things the TestBase does in the m... | TITLE:
Assembly.GetCallingAssembly() and static constructors?
QUESTION:
Ok, so I just ran into the following problem that raised an eyebrow. For various reasons I have a testing setup where Testing classes in a TestingAssembly.dll depend on the TestingBase class in a BaseTestingAssembly.dll. One of the things the Test... | [
"c#",
"reflection",
"static-constructor"
] | 6 | 6 | 3,875 | 3 | 0 | 2008-09-23T15:58:38.993000 | 2008-09-23T16:17:23.253000 |
121,947 | 122,044 | C# .NET 3.5 GUI design | I'm looking for some programming guides to C# GUI design. I come from the Java camp (where I can happily hand-code Swing/AWT GUIs) and thus don't have a clue where to start:( Also, what difference (if any) is there between the Windows Presentation Foundation and WinForms? | Chris Sells seems to be 'dah man' with regard to Windows Forms and WPF: http://www.sellsbrothers.com/writing/ http://www.sellsbrothers.com/writing/wfbook http://www.sellsbrothers.com/writing/wpfbook Also well taking a look at Charles Petzold as well: http://www.charlespetzold.com/winforms/index.html MS also have a heap... | C# .NET 3.5 GUI design I'm looking for some programming guides to C# GUI design. I come from the Java camp (where I can happily hand-code Swing/AWT GUIs) and thus don't have a clue where to start:( Also, what difference (if any) is there between the Windows Presentation Foundation and WinForms? | TITLE:
C# .NET 3.5 GUI design
QUESTION:
I'm looking for some programming guides to C# GUI design. I come from the Java camp (where I can happily hand-code Swing/AWT GUIs) and thus don't have a clue where to start:( Also, what difference (if any) is there between the Windows Presentation Foundation and WinForms?
ANSWE... | [
"c#",
".net",
"wpf",
"winforms",
"user-interface"
] | 9 | 9 | 9,077 | 5 | 0 | 2008-09-23T15:58:39.430000 | 2008-09-23T16:13:14.153000 |
121,962 | 231,475 | Determine site's absolute, fully-qualified url in asp.net | How can I consistently get the absolute, fully-qualified root or base url of the site regardless of whether the site is in a virtual directory and regardless of where my code is in the directory structure? I've tried every variable and function I can think of and haven't found a good way. I want to be able to get the u... | In reading through the answer provided in Rick Strahl's Blog I found what I really needed was quite simple. First you need to determine the relative path (which for me was the easy part), and pass that into the function defined below: VB.NET Public Shared Function GetFullyQualifiedURL(ByVal s as string) As String Dim R... | Determine site's absolute, fully-qualified url in asp.net How can I consistently get the absolute, fully-qualified root or base url of the site regardless of whether the site is in a virtual directory and regardless of where my code is in the directory structure? I've tried every variable and function I can think of an... | TITLE:
Determine site's absolute, fully-qualified url in asp.net
QUESTION:
How can I consistently get the absolute, fully-qualified root or base url of the site regardless of whether the site is in a virtual directory and regardless of where my code is in the directory structure? I've tried every variable and function... | [
"asp.net",
"url",
"uri"
] | 8 | 12 | 8,279 | 7 | 0 | 2008-09-23T16:00:16.773000 | 2008-10-23T20:52:03.690000 |
121,979 | 121,993 | How to detect screen resolution in (classic) ASP | I want to detect users' screen size and pass this into a charting application (Chart Director by http://www.advsofteng.com ) to control how big an image to display. I have to use ASP, but I can only think to use JavaScript to detect screen-size and then pass this into the server-side script. Is there an easier way? Tha... | No, the server knows nothing about the client other than basic info like IP and browser version. Screen resolution can easily be determined via javascript and passed to the server though, using ajax, or via form submission. | How to detect screen resolution in (classic) ASP I want to detect users' screen size and pass this into a charting application (Chart Director by http://www.advsofteng.com ) to control how big an image to display. I have to use ASP, but I can only think to use JavaScript to detect screen-size and then pass this into th... | TITLE:
How to detect screen resolution in (classic) ASP
QUESTION:
I want to detect users' screen size and pass this into a charting application (Chart Director by http://www.advsofteng.com ) to control how big an image to display. I have to use ASP, but I can only think to use JavaScript to detect screen-size and then... | [
"asp-classic"
] | 1 | 4 | 15,935 | 6 | 0 | 2008-09-23T16:03:02.180000 | 2008-09-23T16:04:55.640000 |
122,033 | 122,116 | How do I write this in Ruby/Python? Or, can you translate my LINQ to Ruby/Python? | Yesterday, I asked this question and never really got an answer I was really happy with. I really would like to know how to generate a list of N unique random numbers using a functional language such as Ruby without having to be extremely imperative in style. Since I didn't see anything I really liked, I've written the... | In Ruby: a = (0..100).entries.sort_by {rand}.slice! 0, 5 Update: Here is a slightly different way: a = (0...100).entries.sort_by{rand}[0...5] EDIT: and In Ruby 1.9 you can do this: Array(0..100).sample(5) | How do I write this in Ruby/Python? Or, can you translate my LINQ to Ruby/Python? Yesterday, I asked this question and never really got an answer I was really happy with. I really would like to know how to generate a list of N unique random numbers using a functional language such as Ruby without having to be extremely... | TITLE:
How do I write this in Ruby/Python? Or, can you translate my LINQ to Ruby/Python?
QUESTION:
Yesterday, I asked this question and never really got an answer I was really happy with. I really would like to know how to generate a list of N unique random numbers using a functional language such as Ruby without havi... | [
"python",
"ruby",
"linq",
"functional-programming"
] | 8 | 5 | 924 | 14 | 0 | 2008-09-23T16:10:42.553000 | 2008-09-23T16:27:31.920000 |
122,067 | 122,111 | favicon not working in IE | I have a site using a custom favicon.ico. The favicon displays as expected in all browsers except IE. When trying to display the favicon in IE, I get the big red x; when displaying the favicon in another browser, it displays just fine. The page source includes and it does work in other browsers. Thanks for your thought... | Right you've not been that helpful (providing source would be have been really useful!) but here you go... Some things to check: Is the code like this: Is it in the? Is the image a real ico file? (renaming a bitmap is not a real.ico! Mildly different format) Does it work when you add the page as a bookmark? | favicon not working in IE I have a site using a custom favicon.ico. The favicon displays as expected in all browsers except IE. When trying to display the favicon in IE, I get the big red x; when displaying the favicon in another browser, it displays just fine. The page source includes and it does work in other browser... | TITLE:
favicon not working in IE
QUESTION:
I have a site using a custom favicon.ico. The favicon displays as expected in all browsers except IE. When trying to display the favicon in IE, I get the big red x; when displaying the favicon in another browser, it displays just fine. The page source includes and it does wor... | [
"internet-explorer",
"favicon"
] | 41 | 59 | 117,077 | 22 | 0 | 2008-09-23T16:19:24.140000 | 2008-09-23T16:26:53.247000 |
122,088 | 122,129 | Sql query to determine status? | I have a table in a MSSQL database that looks like this: Timestamp (datetime) Message (varchar(20)) Once a day, a particular process inserts the current time and the message 'Started' when it starts. When it is finished it inserts the current time and the message 'Finished'. What is a good query or set of statements th... | Select Count(Message) As Status From Process_monitor Where TimeStamp >= '20080923' And TimeStamp < '20080924' And (Message = 'Started' or Message = 'Finished') You could modify this slightly to detect invalid conditions, like multiple starts, finishes, starts without a finish, etc... Select Case When SumStarted = 0 And... | Sql query to determine status? I have a table in a MSSQL database that looks like this: Timestamp (datetime) Message (varchar(20)) Once a day, a particular process inserts the current time and the message 'Started' when it starts. When it is finished it inserts the current time and the message 'Finished'. What is a goo... | TITLE:
Sql query to determine status?
QUESTION:
I have a table in a MSSQL database that looks like this: Timestamp (datetime) Message (varchar(20)) Once a day, a particular process inserts the current time and the message 'Started' when it starts. When it is finished it inserts the current time and the message 'Finish... | [
"sql",
"sql-server"
] | 3 | 2 | 1,645 | 4 | 0 | 2008-09-23T16:23:54.673000 | 2008-09-23T16:28:48.267000 |
122,097 | 122,112 | Apache Mod-Rewrite Primers? | I am wondering what primers/guides/tutorials/etc. are out there for learning to rewrite URLs using Apache/.htaccess? Where is a good place to start? My primary interest is learning how to point certain directories to others, and how to use portions of a URL as parameters to a script (i.e. "/some/subdirs/like/this" => "... | I found this to be pretty useful: http://www.addedbytes.com/apache/url-rewriting-for-beginners/ | Apache Mod-Rewrite Primers? I am wondering what primers/guides/tutorials/etc. are out there for learning to rewrite URLs using Apache/.htaccess? Where is a good place to start? My primary interest is learning how to point certain directories to others, and how to use portions of a URL as parameters to a script (i.e. "/... | TITLE:
Apache Mod-Rewrite Primers?
QUESTION:
I am wondering what primers/guides/tutorials/etc. are out there for learning to rewrite URLs using Apache/.htaccess? Where is a good place to start? My primary interest is learning how to point certain directories to others, and how to use portions of a URL as parameters to... | [
"apache",
".htaccess",
"mod-rewrite"
] | 14 | 8 | 1,429 | 5 | 0 | 2008-09-23T16:25:28.757000 | 2008-09-23T16:27:06.820000 |
122,098 | 122,833 | Best practice for parameterizing GWT app? | I have a Google Web Toolkit (GWT) application and when I link to it, I want to pass some arguments/parameters that it can use to dynamically retrieve data. E.g. if it were a stock chart application, I would want my link to contain the symbol and then have the GWT app read that and make a request to some stock service. ... | If you want to read query string parameters from the request you can use the com.google.gwt.user.client.Window class: // returns whole query string public static String getQueryString() { return Window.Location.getQueryString(); }
// returns specific parameter public static String getQueryString(String name) { return ... | Best practice for parameterizing GWT app? I have a Google Web Toolkit (GWT) application and when I link to it, I want to pass some arguments/parameters that it can use to dynamically retrieve data. E.g. if it were a stock chart application, I would want my link to contain the symbol and then have the GWT app read that ... | TITLE:
Best practice for parameterizing GWT app?
QUESTION:
I have a Google Web Toolkit (GWT) application and when I link to it, I want to pass some arguments/parameters that it can use to dynamically retrieve data. E.g. if it were a stock chart application, I would want my link to contain the symbol and then have the ... | [
"gwt"
] | 6 | 10 | 4,814 | 2 | 0 | 2008-09-23T16:25:39.443000 | 2008-09-23T18:29:01.677000 |
122,099 | 122,401 | What GUI Framework would you recommend | Management wants us to switch to Infragistics. But my boss says that any 3rd party is destined to fail, and at that point there won't be anything we can do about it. Is he right, is he wrong? I don't know. What are your opinions, is it better to use something developed inside the company, or do you prefer something lik... | When shopping for 3rd party controls, look for the option to purchase source code (for a reasonable price). With source code you should be able to make any necessary changes to the components to keep them running well in your environment. The Krypton Suite of controls from Component Factory does just this. Phil offers ... | What GUI Framework would you recommend Management wants us to switch to Infragistics. But my boss says that any 3rd party is destined to fail, and at that point there won't be anything we can do about it. Is he right, is he wrong? I don't know. What are your opinions, is it better to use something developed inside the ... | TITLE:
What GUI Framework would you recommend
QUESTION:
Management wants us to switch to Infragistics. But my boss says that any 3rd party is destined to fail, and at that point there won't be anything we can do about it. Is he right, is he wrong? I don't know. What are your opinions, is it better to use something dev... | [
"user-interface",
"frameworks"
] | 1 | 4 | 1,760 | 9 | 0 | 2008-09-23T16:25:46.730000 | 2008-09-23T17:18:38.023000 |
122,102 | 122,704 | What is the most efficient way to deep clone an object in JavaScript? | What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but that's non-standard and only supported by Firefox. I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency. I've also seen recursive copying functions with various flaws. I'm surp... | Native deep cloning There's now a JS standard called "structured cloning", that works experimentally in Node 11 and later, will land in browsers, and which has polyfills for existing systems. structuredClone(value) If needed, loading the polyfill first: import structuredClone from '@ungap/structured-clone'; See this an... | What is the most efficient way to deep clone an object in JavaScript? What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but that's non-standard and only supported by Firefox. I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency. I... | TITLE:
What is the most efficient way to deep clone an object in JavaScript?
QUESTION:
What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but that's non-standard and only supported by Firefox. I've done things like obj = JSON.parse(JSON.stringify(o)); but question... | [
"javascript",
"object",
"clone"
] | 5,165 | 5,882 | 2,920,223 | 67 | 0 | 2008-09-23T16:26:09.163000 | 2008-09-23T18:09:37.277000 |
122,105 | 1,385,698 | How to filter a Java Collection (based on predicate)? | I want to filter a java.util.Collection based on a predicate. | Java 8 ( 2014 ) solves this problem using streams and lambdas in one line of code: List beerDrinkers = persons.stream().filter(p -> p.getAge() > 16).collect(Collectors.toList()); Here's a tutorial. Use Collection#removeIf to modify the collection in place. (Notice: In this case, the predicate will remove objects who sa... | How to filter a Java Collection (based on predicate)? I want to filter a java.util.Collection based on a predicate. | TITLE:
How to filter a Java Collection (based on predicate)?
QUESTION:
I want to filter a java.util.Collection based on a predicate.
ANSWER:
Java 8 ( 2014 ) solves this problem using streams and lambdas in one line of code: List beerDrinkers = persons.stream().filter(p -> p.getAge() > 16).collect(Collectors.toList())... | [
"java",
"collections",
"filter"
] | 771 | 851 | 873,730 | 30 | 0 | 2008-09-23T16:26:26.383000 | 2009-09-06T13:37:49.070000 |
122,107 | 122,291 | Checkout one file from Subversion | "It is not possible to check out a single file. The finest level of checkouts you can do is at the directory level." How do I get around this issue when using Subversion? We have this folder in Subversion where we keep all our images. I just want to check out one file (image) from that. This folder is really big and ha... | The simple answer is that you svn export the file instead of checking it out. But that might not be what you want. You might want to work on the file and check it back in, without having to download GB of junk you don't need. If you have Subversion 1.5+, then do a sparse checkout: svn checkout --depth empty cd svn up F... | Checkout one file from Subversion "It is not possible to check out a single file. The finest level of checkouts you can do is at the directory level." How do I get around this issue when using Subversion? We have this folder in Subversion where we keep all our images. I just want to check out one file (image) from that... | TITLE:
Checkout one file from Subversion
QUESTION:
"It is not possible to check out a single file. The finest level of checkouts you can do is at the directory level." How do I get around this issue when using Subversion? We have this folder in Subversion where we keep all our images. I just want to check out one file... | [
"svn",
"version-control"
] | 343 | 425 | 349,041 | 19 | 0 | 2008-09-23T16:26:32.453000 | 2008-09-23T16:58:27.773000 |
122,108 | 122,572 | How do you store the markdown using WMD in ASP.NET? | I have implemented the WMD control that Stack Overflow uses into a project of mine, it almost works like a charm, but when I save the changes to the database it is saving the HTML version and not the Markdown version. So where I have this in my text box: **boldtext** It is really saving this: boldtext How do I make it ... | Before you include wmd.js, or whatever you've named the WMD editor JavaScript code locally, add one line of JavaScript code: wmd_options = {"output": "Markdown"}; This will force the output of the editor to Markdown. | How do you store the markdown using WMD in ASP.NET? I have implemented the WMD control that Stack Overflow uses into a project of mine, it almost works like a charm, but when I save the changes to the database it is saving the HTML version and not the Markdown version. So where I have this in my text box: **boldtext** ... | TITLE:
How do you store the markdown using WMD in ASP.NET?
QUESTION:
I have implemented the WMD control that Stack Overflow uses into a project of mine, it almost works like a charm, but when I save the changes to the database it is saving the HTML version and not the Markdown version. So where I have this in my text ... | [
"asp.net",
"markdown",
"wmd"
] | 10 | 10 | 1,273 | 2 | 0 | 2008-09-23T16:26:45.697000 | 2008-09-23T17:47:12.367000 |
122,109 | 122,138 | How can I split up a PDF file into pages (preferably C#) | My client has a multi-page PDF file. They need it split by page. Does anyone know of a way to do this - preferably in C#. | PDFSharp is an open source library which may be what you're after: Key Features Creates PDF documents on the fly from any.Net language Easy to understand object model to compose documents One source code for drawing on a PDF page as well as in a window or on the printer Modify, merge, and split existing PDF files This ... | How can I split up a PDF file into pages (preferably C#) My client has a multi-page PDF file. They need it split by page. Does anyone know of a way to do this - preferably in C#. | TITLE:
How can I split up a PDF file into pages (preferably C#)
QUESTION:
My client has a multi-page PDF file. They need it split by page. Does anyone know of a way to do this - preferably in C#.
ANSWER:
PDFSharp is an open source library which may be what you're after: Key Features Creates PDF documents on the fly f... | [
"c#",
"pdf"
] | 17 | 17 | 30,050 | 4 | 0 | 2008-09-23T16:26:45.930000 | 2008-09-23T16:29:47.343000 |
122,110 | 122,141 | Is there a way to get jadclipse working with Eclipse 3.4? | I'm a big fan of the Jadclipse plugin and I'd really like to upgrade to Eclipse 3.4 but the plugin currently does not work. Are there any other programs out there that let you use jad to view source of code you navigate to from Eclipse? (Very useful when delving into ambiguous code in stack traces). | I'm successfully using JadClipse with Eclipse 3.4 Eclipse 3.4.0.I20080617-2000 JadClipse 3.3.0 It just works! EDIT: Actually, see OlegSOM's answer below for the additional steps that you might need to remember to take, if like me you forget to read documentation sometimes! | Is there a way to get jadclipse working with Eclipse 3.4? I'm a big fan of the Jadclipse plugin and I'd really like to upgrade to Eclipse 3.4 but the plugin currently does not work. Are there any other programs out there that let you use jad to view source of code you navigate to from Eclipse? (Very useful when delving... | TITLE:
Is there a way to get jadclipse working with Eclipse 3.4?
QUESTION:
I'm a big fan of the Jadclipse plugin and I'd really like to upgrade to Eclipse 3.4 but the plugin currently does not work. Are there any other programs out there that let you use jad to view source of code you navigate to from Eclipse? (Very u... | [
"java",
"eclipse",
"plugins",
"eclipse-plugin",
"jad"
] | 8 | 6 | 36,750 | 13 | 0 | 2008-09-23T16:26:47.973000 | 2008-09-23T16:29:50.697000 |
122,115 | 122,222 | What is the popen equivalent to read and write to a child process in Windows? | Ruby's standard popen3 module does not work on Windows. Is there a maintained replacement that allows for separating stdin, stdout, and stderr? | POpen4 gem has a common interface between unix and Windows. The following example (from their website) works like a charm. require 'rubygems' require 'popen4'
status = POpen4::popen4("cmd") do |stdout, stderr, stdin, pid| stdin.puts "echo hello world!" stdin.puts "echo ERROR! 1>&2" stdin.puts "exit" stdin.close
puts ... | What is the popen equivalent to read and write to a child process in Windows? Ruby's standard popen3 module does not work on Windows. Is there a maintained replacement that allows for separating stdin, stdout, and stderr? | TITLE:
What is the popen equivalent to read and write to a child process in Windows?
QUESTION:
Ruby's standard popen3 module does not work on Windows. Is there a maintained replacement that allows for separating stdin, stdout, and stderr?
ANSWER:
POpen4 gem has a common interface between unix and Windows. The followi... | [
"windows",
"ruby"
] | 1 | 5 | 1,176 | 2 | 0 | 2008-09-23T16:27:18.567000 | 2008-09-23T16:43:56.873000 |
122,127 | 122,423 | How do you get the DataSource that a report uses in SQL Server Reporting Services 2005 | In order to create the proper queries I need to be able to run a query against the same datasource that the report is using. How do I get that information programatically? Preferably the connection string or pieces of data used to build the connection string. | DataSourceDefinition dataSourceDefinition = reportingService.GetDataSourceContents("DataSourceName");
string connectionString = dataSourceDefinition.ConnectString; | How do you get the DataSource that a report uses in SQL Server Reporting Services 2005 In order to create the proper queries I need to be able to run a query against the same datasource that the report is using. How do I get that information programatically? Preferably the connection string or pieces of data used to bu... | TITLE:
How do you get the DataSource that a report uses in SQL Server Reporting Services 2005
QUESTION:
In order to create the proper queries I need to be able to run a query against the same datasource that the report is using. How do I get that information programatically? Preferably the connection string or pieces ... | [
"sql-server",
"reporting-services"
] | 0 | 1 | 1,635 | 3 | 0 | 2008-09-23T16:28:43.803000 | 2008-09-23T17:23:15.313000 |
122,154 | 122,660 | How can I disable work item creation at the end of a failed Team Foundation Build? | I'm using Team Foundation Build but we aren't yet using TFS for problem tracking, so I would like to disable the work item creation on a failed build. Is there any way to do this? I tried commenting out the work item info in the TFSBuild.proj file for the build type but that didn't do the trick. | Try adding this inside the PropertyGroup in your TFSBuild.proj: true If you are curious as to how this works, Microsoft.TeamFoundation.Build.targets contians the following: $(WorkItemTitle) $(BuildNumber) $(BuildlogText) <a href='file:///$(DropLocation)\$(BuildNumber)\BuildLog.txt'>$(DropLocation)\$(BuildNumber)\BuildL... | How can I disable work item creation at the end of a failed Team Foundation Build? I'm using Team Foundation Build but we aren't yet using TFS for problem tracking, so I would like to disable the work item creation on a failed build. Is there any way to do this? I tried commenting out the work item info in the TFSBuild... | TITLE:
How can I disable work item creation at the end of a failed Team Foundation Build?
QUESTION:
I'm using Team Foundation Build but we aren't yet using TFS for problem tracking, so I would like to disable the work item creation on a failed build. Is there any way to do this? I tried commenting out the work item in... | [
"tfs",
"msbuild",
"tfsbuild"
] | 13 | 23 | 2,623 | 2 | 0 | 2008-09-23T16:32:10.550000 | 2008-09-23T18:03:02.517000 |
122,175 | 1,082,237 | Using ASP.Net 3.5 SP1 Routing with SharePoint 2007 | I'm trying to setup some friendly URLs on a SharePoint website. I know that I can do the ASP.Net 2.0 friendly URLs using RewritePath, but I was wondering if it was possible to make use of the System.Web.Routing that comes with ASP.NET 3.5 SP1. I think I've figured out how to get my route table loaded, but I'm not clear... | I ended up taking what Ryan had: var route = new Route("blah/{*path}", new MyRouteHandler()); RouteTable.Routes.Add(route); public class MyRouteHandler: IRouteHandler { public IHttpHandler GetHttpHandler(RequestContext requestContext) { //rewrite to some know sharepoint path HttpContext.Current.RewritePath("~/Pages/Def... | Using ASP.Net 3.5 SP1 Routing with SharePoint 2007 I'm trying to setup some friendly URLs on a SharePoint website. I know that I can do the ASP.Net 2.0 friendly URLs using RewritePath, but I was wondering if it was possible to make use of the System.Web.Routing that comes with ASP.NET 3.5 SP1. I think I've figured out ... | TITLE:
Using ASP.Net 3.5 SP1 Routing with SharePoint 2007
QUESTION:
I'm trying to setup some friendly URLs on a SharePoint website. I know that I can do the ASP.Net 2.0 friendly URLs using RewritePath, but I was wondering if it was possible to make use of the System.Web.Routing that comes with ASP.NET 3.5 SP1. I think... | [
"sharepoint",
"sharepoint-2007",
"moss",
"asp.net-routing"
] | 2 | 0 | 1,565 | 3 | 0 | 2008-09-23T16:37:17.730000 | 2009-07-04T13:43:57.423000 |
122,178 | 122,255 | What is the best practice for an environment based configuration file in Ruby on Rails | I have several properties that are dependent on the environment the application is running. For example, there are links to another application that is being developed concurrantly that get displayed in the header and footer. I want those links to be different depending on what environment they are in. This is slightly... | You can go with a custom config file. Check out this thread. | What is the best practice for an environment based configuration file in Ruby on Rails I have several properties that are dependent on the environment the application is running. For example, there are links to another application that is being developed concurrantly that get displayed in the header and footer. I want ... | TITLE:
What is the best practice for an environment based configuration file in Ruby on Rails
QUESTION:
I have several properties that are dependent on the environment the application is running. For example, there are links to another application that is being developed concurrantly that get displayed in the header a... | [
"ruby-on-rails",
"ruby",
"capistrano"
] | 1 | 2 | 1,406 | 2 | 0 | 2008-09-23T16:37:32.583000 | 2008-09-23T16:49:51.227000 |
122,198 | 122,970 | Automated Test Framework - Windows CE | Looking for a way to drive a Compact Framework app running on a CE device. All we basically need is to be able to write little scripts that press buttons and click on things. Anyone know of such a tool or it best to just hack one up ourselves? | Unfortunately there are no nice, unified tools (that I've found anyway) for testing CF apps. No one provides mocking, since the CF CLR is missing things like Emit, making the taks difficult for a small market. Microsoft provides unit test capabilities in Studio and Team Foundation Server for smart device apps, but they... | Automated Test Framework - Windows CE Looking for a way to drive a Compact Framework app running on a CE device. All we basically need is to be able to write little scripts that press buttons and click on things. Anyone know of such a tool or it best to just hack one up ourselves? | TITLE:
Automated Test Framework - Windows CE
QUESTION:
Looking for a way to drive a Compact Framework app running on a CE device. All we basically need is to be able to write little scripts that press buttons and click on things. Anyone know of such a tool or it best to just hack one up ourselves?
ANSWER:
Unfortunate... | [
"testing",
"automation",
"windows-ce"
] | 8 | 6 | 5,595 | 5 | 0 | 2008-09-23T16:40:23.730000 | 2008-09-23T18:47:12.163000 |
122,205 | 1,041,908 | How can you hook a SharePoint 2007 feature into the Application_Start of a site? | I was wondering if there is a good way to hook into the Application_Start of a SharePoint 2007 site when developing a feature? I know I can directly edit the Global.asax file in the site root, but is there a way to do this so that it gets deployed with the feature? Thanks! | This is actually possible, but it doesn't involve the Global.asax file. Many of Microsoft's examples demonstrate wiring code in via the Global.asax, but this is not a best-practices approach when it comes to SharePoint. Ideally, your code should get packaged as a Feature and deployed via WSP (as you already know). The ... | How can you hook a SharePoint 2007 feature into the Application_Start of a site? I was wondering if there is a good way to hook into the Application_Start of a SharePoint 2007 site when developing a feature? I know I can directly edit the Global.asax file in the site root, but is there a way to do this so that it gets ... | TITLE:
How can you hook a SharePoint 2007 feature into the Application_Start of a site?
QUESTION:
I was wondering if there is a good way to hook into the Application_Start of a SharePoint 2007 site when developing a feature? I know I can directly edit the Global.asax file in the site root, but is there a way to do thi... | [
"sharepoint",
"sharepoint-2007",
"global-asax",
"application-start"
] | 5 | 13 | 1,064 | 2 | 0 | 2008-09-23T16:41:29.953000 | 2009-06-25T02:31:07.560000 |
122,215 | 5,908,499 | How can I mock/fake/stub sealed OracleException with no public constructor? | In my tests I need to test what happens when an OracleException is thrown (due to a stored procedure failure). I am trying to setup Rhino Mocks to Expect.Call(....).Throw(new OracleException()); For whatever reason however, OracleException seems to be sealed with no public constructor. What can I do to test this? Edit:... | It seems that Oracle changed their constructors in later versions, therefore the solution above will not work. If you only want to set the error code, the following will do the trick for 2.111.7.20: ConstructorInfo ci = typeof(OracleException).GetConstructor( BindingFlags.NonPublic | BindingFlags.Instance, null, new Ty... | How can I mock/fake/stub sealed OracleException with no public constructor? In my tests I need to test what happens when an OracleException is thrown (due to a stored procedure failure). I am trying to setup Rhino Mocks to Expect.Call(....).Throw(new OracleException()); For whatever reason however, OracleException seem... | TITLE:
How can I mock/fake/stub sealed OracleException with no public constructor?
QUESTION:
In my tests I need to test what happens when an OracleException is thrown (due to a stored procedure failure). I am trying to setup Rhino Mocks to Expect.Call(....).Throw(new OracleException()); For whatever reason however, Or... | [
"c#",
".net",
"oracle",
"mocking",
"oracleclient"
] | 13 | 4 | 3,625 | 9 | 0 | 2008-09-23T16:43:21.960000 | 2011-05-06T08:03:01.007000 |
122,226 | 148,558 | Invalid file descriptor problem with Git on Windows | I've been using Git on Linux for about a year, and everything works fine. Since recently, a colleague has joined development and he's using Windows. Everything works fine there as well, but sometimes when he tries to push changes to a remote repository (bare) on Linux server it bails out with 'Invalid file descriptor' ... | Maybe you have problem with your anti virus. I had the same problem on my machine, I was(still) use nod32, just disable thread protection module IMON, that could fix the problem. | Invalid file descriptor problem with Git on Windows I've been using Git on Linux for about a year, and everything works fine. Since recently, a colleague has joined development and he's using Windows. Everything works fine there as well, but sometimes when he tries to push changes to a remote repository (bare) on Linux... | TITLE:
Invalid file descriptor problem with Git on Windows
QUESTION:
I've been using Git on Linux for about a year, and everything works fine. Since recently, a colleague has joined development and he's using Windows. Everything works fine there as well, but sometimes when he tries to push changes to a remote reposito... | [
"windows",
"git",
"version-control",
"push"
] | 3 | 2 | 3,139 | 3 | 0 | 2008-09-23T16:45:04.157000 | 2008-09-29T13:04:13.953000 |
122,234 | 152,473 | What is the comparative robustness of C++ Builder versions? | Our development team work with Borland C++ Builder 6 and CodeGear C++ Builder 2007 (as well as Visual Studio). I hear a lot of comments that the Builder 2007 IDE crashes a lot more than BCB6 does. Does anyone out there have any experience of the C++ Builder 2009 IDE yet, particularly with a decent size application, and... | My experiences with BCB2009 so far have been mostly positive. the IDE seems stable and installs etc are much faster. However, I haven't yet moved a major project over to 2009, but I can almost guarantee you it will be non-trivial because of the Unicode changes. You will need to switch to new versions of any third-party... | What is the comparative robustness of C++ Builder versions? Our development team work with Borland C++ Builder 6 and CodeGear C++ Builder 2007 (as well as Visual Studio). I hear a lot of comments that the Builder 2007 IDE crashes a lot more than BCB6 does. Does anyone out there have any experience of the C++ Builder 20... | TITLE:
What is the comparative robustness of C++ Builder versions?
QUESTION:
Our development team work with Borland C++ Builder 6 and CodeGear C++ Builder 2007 (as well as Visual Studio). I hear a lot of comments that the Builder 2007 IDE crashes a lot more than BCB6 does. Does anyone out there have any experience of ... | [
"c++builder",
"c++builder-2009"
] | 3 | 4 | 889 | 2 | 0 | 2008-09-23T16:46:30.313000 | 2008-09-30T10:08:23.043000 |
122,238 | 122,266 | Handling a colon in an element ID in a CSS selector | JSF is setting the ID of an input field to search_form:expression. I need to specify some styling on that element, but that colon looks like the beginning of a pseudo-element to the browser so it gets marked invalid and ignored. Is there anyway to escape the colon or something? input#search_form:expression { ///... } | Backslash: input#search_form\:expression { ///...} See also Using Namespaces with CSS (MSDN) | Handling a colon in an element ID in a CSS selector JSF is setting the ID of an input field to search_form:expression. I need to specify some styling on that element, but that colon looks like the beginning of a pseudo-element to the browser so it gets marked invalid and ignored. Is there anyway to escape the colon or ... | TITLE:
Handling a colon in an element ID in a CSS selector
QUESTION:
JSF is setting the ID of an input field to search_form:expression. I need to specify some styling on that element, but that colon looks like the beginning of a pseudo-element to the browser so it gets marked invalid and ignored. Is there anyway to es... | [
"css",
"jsf",
"css-selectors"
] | 163 | 145 | 67,604 | 8 | 0 | 2008-09-23T16:47:20.453000 | 2008-09-23T16:52:40.847000 |
122,239 | 127,277 | Floated Divs Obeying/Not Obeying Vertical-Align | Within a table cell that is vertical-align:bottom, I have one or two divs. Each div is floated right. Supposedly, the divs should not align to the bottom, but they do (which I don't understand, but is good). However, when I have two floated divs in the cell, they align themselves to the same top line. I want the first,... | I never answered the first two questions, so feel free to give your answers below. But I did solve the last problem, of how to make it work. I added a containing div to the two divs inside the table cells like so: Title Text Line 2 @ Then I used the following CSS The key to it all is for a div to be position absolutely... | Floated Divs Obeying/Not Obeying Vertical-Align Within a table cell that is vertical-align:bottom, I have one or two divs. Each div is floated right. Supposedly, the divs should not align to the bottom, but they do (which I don't understand, but is good). However, when I have two floated divs in the cell, they align th... | TITLE:
Floated Divs Obeying/Not Obeying Vertical-Align
QUESTION:
Within a table cell that is vertical-align:bottom, I have one or two divs. Each div is floated right. Supposedly, the divs should not align to the bottom, but they do (which I don't understand, but is good). However, when I have two floated divs in the c... | [
"css"
] | 6 | 2 | 25,853 | 5 | 0 | 2008-09-23T16:47:27.287000 | 2008-09-24T13:54:12.810000 |
122,254 | 125,161 | accessing constants in JSP (without scriptlet) | I have a class that defines the names of various session attributes, e.g. class Constants { public static final String ATTR_CURRENT_USER = "current.user"; } I would like to use these constants within a JSP to test for the presence of these attributes, something like: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/j... | It's not working in your example because the ATTR_CURRENT_USER constant is not visible to the JSTL tags, which expect properties to be exposed by getter functions. I haven't tried it, but the cleanest way to expose your constants appears to be the unstandard tag library. ETA: Old link I gave didn't work. New links can ... | accessing constants in JSP (without scriptlet) I have a class that defines the names of various session attributes, e.g. class Constants { public static final String ATTR_CURRENT_USER = "current.user"; } I would like to use these constants within a JSP to test for the presence of these attributes, something like: <%@ t... | TITLE:
accessing constants in JSP (without scriptlet)
QUESTION:
I have a class that defines the names of various session attributes, e.g. class Constants { public static final String ATTR_CURRENT_USER = "current.user"; } I would like to use these constants within a JSP to test for the presence of these attributes, som... | [
"java",
"jsp",
"session",
"jstl"
] | 29 | 16 | 81,368 | 7 | 0 | 2008-09-23T16:49:41.790000 | 2008-09-24T02:58:00.967000 |
122,267 | 122,296 | IMAP: how to move a message from one folder to another | (using the IMAP commands, not with the assistance of any other mail package) | I'm not sure how well-versed you are in imap-speak, but basically after login, "SELECT" the source mailbox, "COPY" the messages, and "EXPUNGE" the messages (or "DELETE" the old mailbox if it is empty now:-). a login a s b select source c copy 1 othermbox d store 1 +flags (\Deleted) e expunge would be an example of mess... | IMAP: how to move a message from one folder to another (using the IMAP commands, not with the assistance of any other mail package) | TITLE:
IMAP: how to move a message from one folder to another
QUESTION:
(using the IMAP commands, not with the assistance of any other mail package)
ANSWER:
I'm not sure how well-versed you are in imap-speak, but basically after login, "SELECT" the source mailbox, "COPY" the messages, and "EXPUNGE" the messages (or "... | [
"imap"
] | 25 | 19 | 47,505 | 4 | 0 | 2008-09-23T16:52:47.990000 | 2008-09-23T16:59:10.580000 |
122,271 | 122,738 | WPF hosting windows forms elements inside a ScrollViewer | when putting a ScrollViewer inside a window(not keeping all the window's size) inside the ScrollViewer there's (with other stuff) a WinFormsHost and a control inside (let's say a DateTimePicker). when scrolling, the inner winforms control keeps being visible when there's no longer a reason (it's outside of the scrollin... | According to this msdn link WindowsFormsHost elements are always drawn on top of other WPF elements, and they are unaffected by z-order I don't think there's an easy solution. You might want to consider having the windows forms control handle the scrolling itself instead of using WPF's ScrollViewer. | WPF hosting windows forms elements inside a ScrollViewer when putting a ScrollViewer inside a window(not keeping all the window's size) inside the ScrollViewer there's (with other stuff) a WinFormsHost and a control inside (let's say a DateTimePicker). when scrolling, the inner winforms control keeps being visible when... | TITLE:
WPF hosting windows forms elements inside a ScrollViewer
QUESTION:
when putting a ScrollViewer inside a window(not keeping all the window's size) inside the ScrollViewer there's (with other stuff) a WinFormsHost and a control inside (let's say a DateTimePicker). when scrolling, the inner winforms control keeps ... | [
"wpf"
] | 4 | 6 | 4,177 | 3 | 0 | 2008-09-23T16:53:43.200000 | 2008-09-23T18:15:56.760000 |
122,273 | 122,361 | Constructor parameters for controllers without a DI container for ASP.NET MVC | Does anyone have any code examples on how to create controllers that have parameters other than using a Dependency Injection Container? I see plenty of samples with using containers like StructureMap, but nothing if you wanted to pass in the dependency class yourself. | You can use poor-man's dependency injection: public ProductController(): this( new Foo() ) { //the framework calls this }
public ProductController(IFoo foo) { _foo = foo; } | Constructor parameters for controllers without a DI container for ASP.NET MVC Does anyone have any code examples on how to create controllers that have parameters other than using a Dependency Injection Container? I see plenty of samples with using containers like StructureMap, but nothing if you wanted to pass in the ... | TITLE:
Constructor parameters for controllers without a DI container for ASP.NET MVC
QUESTION:
Does anyone have any code examples on how to create controllers that have parameters other than using a Dependency Injection Container? I see plenty of samples with using containers like StructureMap, but nothing if you want... | [
"c#",
".net",
"asp.net-mvc"
] | 9 | 13 | 11,011 | 3 | 0 | 2008-09-23T16:54:14.353000 | 2008-09-23T17:10:11.473000 |
122,278 | 122,286 | Silverlight development [Visual Studio 2008 vs Expression Blend] | I'm a.Net developer and want to get into developing Silverlight applications. I have VS 2008 but wanted to know if I should/need expression blend. What are pros/cons of having blend along side VS? | I don't mean to push my own questions, but this might help you a little, especially if you are not familiar with Expression Studio or Expression Blend: " What exactly is Microsoft Expression Studio and how does it integrate with Visual Studio? " | Silverlight development [Visual Studio 2008 vs Expression Blend] I'm a.Net developer and want to get into developing Silverlight applications. I have VS 2008 but wanted to know if I should/need expression blend. What are pros/cons of having blend along side VS? | TITLE:
Silverlight development [Visual Studio 2008 vs Expression Blend]
QUESTION:
I'm a.Net developer and want to get into developing Silverlight applications. I have VS 2008 but wanted to know if I should/need expression blend. What are pros/cons of having blend along side VS?
ANSWER:
I don't mean to push my own que... | [
"visual-studio-2008",
"silverlight",
"expression-blend"
] | 2 | 5 | 2,975 | 5 | 0 | 2008-09-23T16:55:31.383000 | 2008-09-23T16:57:38.853000 |
122,282 | 122,322 | Can the Java File method "canWrite()" support locking? | I have a Java application that monitors a folder for incoming XML files. When a new file is detected I need to test the file that it is not currently being updated and is closed. My thought is to use File.canWrite() to test this. Is there any issue with doing this? Is this a good way to test that a file has been comple... | No, canWrite is not suitable for this purpose. In general the file will be writable even if another process is writing. You need a higher level protocol to coordinate the locking. If you plan to use this code on a single platform, you may be able to use NIO's FileLock facility. But read the documentation carefully, and... | Can the Java File method "canWrite()" support locking? I have a Java application that monitors a folder for incoming XML files. When a new file is detected I need to test the file that it is not currently being updated and is closed. My thought is to use File.canWrite() to test this. Is there any issue with doing this?... | TITLE:
Can the Java File method "canWrite()" support locking?
QUESTION:
I have a Java application that monitors a folder for incoming XML files. When a new file is detected I need to test the file that it is not currently being updated and is closed. My thought is to use File.canWrite() to test this. Is there any issu... | [
"java",
"xml",
"file-io"
] | 12 | 14 | 5,642 | 5 | 0 | 2008-09-23T16:56:24.080000 | 2008-09-23T17:04:14.267000 |
122,298 | 122,436 | How do you Schedule Index Updates in CouchDB | As far as I understand, CouchDB indexes are updated when a view is queried. Assuming there are more reads than writes, isn't this bad for scaling? How would I configure CouchDB to update indexes on writes, or better yet, on a schedule? | CouchDB does regenerate views on update, but only on what has changed since the last read access to the view. Assuming your read volume greatly outweighs your write volume, this shouldn't be a problem. When you're changing large numbers of documents at once this could lead to the possibility of the first read requests ... | How do you Schedule Index Updates in CouchDB As far as I understand, CouchDB indexes are updated when a view is queried. Assuming there are more reads than writes, isn't this bad for scaling? How would I configure CouchDB to update indexes on writes, or better yet, on a schedule? | TITLE:
How do you Schedule Index Updates in CouchDB
QUESTION:
As far as I understand, CouchDB indexes are updated when a view is queried. Assuming there are more reads than writes, isn't this bad for scaling? How would I configure CouchDB to update indexes on writes, or better yet, on a schedule?
ANSWER:
CouchDB does... | [
"database",
"couchdb",
"scaling"
] | 18 | 29 | 7,680 | 3 | 0 | 2008-09-23T16:59:35.227000 | 2008-09-23T17:25:20.517000 |
122,301 | 169,551 | How can I get a summary of my cvs conflicts when doing a cvs update on the command line? | Is there an easy way to get a conflict summary after running a cvs update? I work on a large project and after doing some work I need to do an update. The list of changes coming back from the cvs update command is several pages long and I'd like to see only the list of conflicts (starts with 'C') repeated at the end of... | Given the specification, it seems that you need a minor adaptation of Martin York's solution (because that only shows the conflicts and not the normal log information). Something like this - which might be called 'cvsupd': tmp=${TMPDIR:-/tmp}/cvsupd.$$ trap "rm -f $tmp; exit 1" 0 1 2 3 13 15 cvs update "$@" | tee $tmp ... | How can I get a summary of my cvs conflicts when doing a cvs update on the command line? Is there an easy way to get a conflict summary after running a cvs update? I work on a large project and after doing some work I need to do an update. The list of changes coming back from the cvs update command is several pages lon... | TITLE:
How can I get a summary of my cvs conflicts when doing a cvs update on the command line?
QUESTION:
Is there an easy way to get a conflict summary after running a cvs update? I work on a large project and after doing some work I need to do an update. The list of changes coming back from the cvs update command is... | [
"version-control",
"command-line",
"merge",
"cvs",
"conflict"
] | 3 | 3 | 2,525 | 2 | 0 | 2008-09-23T16:59:58.770000 | 2008-10-04T02:00:55.323000 |
122,302 | 122,309 | As System in Sqlplus, how do I query another user's table? | According to select name from system_privilege_map System has been granted: SELECT ANY TABLE...and lots of other * ANY TABLES. Plainly running select * from the_table; select * from the_table;...nets the given response: ERROR at line 1: ORA-00942: table or view does not exist I can log in as that user and run the same ... | If the_table is owned by user "some_user" then: select * from some_user.the_table; | As System in Sqlplus, how do I query another user's table? According to select name from system_privilege_map System has been granted: SELECT ANY TABLE...and lots of other * ANY TABLES. Plainly running select * from the_table; select * from the_table;...nets the given response: ERROR at line 1: ORA-00942: table or view... | TITLE:
As System in Sqlplus, how do I query another user's table?
QUESTION:
According to select name from system_privilege_map System has been granted: SELECT ANY TABLE...and lots of other * ANY TABLES. Plainly running select * from the_table; select * from the_table;...nets the given response: ERROR at line 1: ORA-00... | [
"sql",
"oracle",
"sqlplus",
"ora-00942"
] | 5 | 7 | 14,143 | 3 | 0 | 2008-09-23T17:00:09.750000 | 2008-09-23T17:01:33.337000 |
122,313 | 122,335 | How do you include/exclude a certain type of files under Subversion? | I'm getting confused with the include/exclude jargon, and my actual SVN client doesn't seem to have (or I've been unable to find it easily) a simple option to add or remove a certain type of files for version control. Let's say for example I've added the entire Visual Studio folder, with its solutions, projects, debug ... | You're probably safest excluding particular filetypes, rather than picking those you want to include, as you could then add a new type and not realize it wasn't versioned. On a per-directory basis, you can edit the svn:ignore property. Run svn propedit svn:ignore. for each relevant directory to bring up an editor with ... | How do you include/exclude a certain type of files under Subversion? I'm getting confused with the include/exclude jargon, and my actual SVN client doesn't seem to have (or I've been unable to find it easily) a simple option to add or remove a certain type of files for version control. Let's say for example I've added ... | TITLE:
How do you include/exclude a certain type of files under Subversion?
QUESTION:
I'm getting confused with the include/exclude jargon, and my actual SVN client doesn't seem to have (or I've been unable to find it easily) a simple option to add or remove a certain type of files for version control. Let's say for e... | [
"svn",
"version-control"
] | 50 | 67 | 51,744 | 7 | 0 | 2008-09-23T17:02:57.437000 | 2008-09-23T17:06:32.293000 |
122,316 | 122,368 | Template Constraints C++ | In C# we can define a generic type that imposes constraints on the types that can be used as the generic parameter. The following example illustrates the usage of generic constraints: interface IFoo { }
class Foo where T: IFoo { }
class Bar: IFoo { }
class Simpson { }
class Program { static void Main(string[] args)... | As someone else has mentioned, C++0x is getting this built into the language. Until then, I'd recommend Bjarne Stroustrup 's suggestions for template constraints. Edit: Boost also has an alternative of its own. Edit2: Looks like concepts have been removed from C++0x. | Template Constraints C++ In C# we can define a generic type that imposes constraints on the types that can be used as the generic parameter. The following example illustrates the usage of generic constraints: interface IFoo { }
class Foo where T: IFoo { }
class Bar: IFoo { }
class Simpson { }
class Program { static... | TITLE:
Template Constraints C++
QUESTION:
In C# we can define a generic type that imposes constraints on the types that can be used as the generic parameter. The following example illustrates the usage of generic constraints: interface IFoo { }
class Foo where T: IFoo { }
class Bar: IFoo { }
class Simpson { }
clas... | [
"c++",
"templates",
"constraints"
] | 88 | 37 | 68,224 | 10 | 0 | 2008-09-23T17:03:14.050000 | 2008-09-23T17:12:18.210000 |
122,324 | 122,405 | Why doesn't VB.NET 9 have Automatic Properties like C# 3? | Would having a nice little feature that makes it quicker to write code like Automatic Properties fit very nicely with the mantra of VB.NET? Something like this would work perfect: Public Property FirstName() As String Get Set End Property UPDATE: VB.NET 10 (coming with Visual Studio 2010 and.NET 4.0) will have Automati... | One reason many features get delayed in VB is that the development structure is much different than in C# and additionally, that often more thought goes into details. The same seems to be true in this case, as suggested by Paul Vick's post on the matter. This is unfortunate because it means a delay in many cases (autom... | Why doesn't VB.NET 9 have Automatic Properties like C# 3? Would having a nice little feature that makes it quicker to write code like Automatic Properties fit very nicely with the mantra of VB.NET? Something like this would work perfect: Public Property FirstName() As String Get Set End Property UPDATE: VB.NET 10 (comi... | TITLE:
Why doesn't VB.NET 9 have Automatic Properties like C# 3?
QUESTION:
Would having a nice little feature that makes it quicker to write code like Automatic Properties fit very nicely with the mantra of VB.NET? Something like this would work perfect: Public Property FirstName() As String Get Set End Property UPDAT... | [
"c#",
"vb.net",
"properties",
"language-features"
] | 11 | 6 | 6,724 | 7 | 0 | 2008-09-23T17:04:22.737000 | 2008-09-23T17:19:39.597000 |
122,348 | 123,184 | Scale image down, but not up in latex | I have a command which includes an includegraphics command - I can pass an image to my command, and it will do some standard formatting for me before actually including the image. Some of the images that I'm including via this command are smaller than \textwidth, while some are larger. I'd like to scale the larger imag... | To get the width of the image you can use this code: \newlength{\imgwidth} \settowidth{\imgwidth}{\includegraphics{img}} You could use this in the document preamble to create a new command to automatically set the width: \usepackage{graphicx} \usepackage{calc}
\newlength{\imgwidth}
\newcommand\scalegraphics[1]{% \set... | Scale image down, but not up in latex I have a command which includes an includegraphics command - I can pass an image to my command, and it will do some standard formatting for me before actually including the image. Some of the images that I'm including via this command are smaller than \textwidth, while some are lar... | TITLE:
Scale image down, but not up in latex
QUESTION:
I have a command which includes an includegraphics command - I can pass an image to my command, and it will do some standard formatting for me before actually including the image. Some of the images that I'm including via this command are smaller than \textwidth, ... | [
"latex"
] | 17 | 22 | 9,963 | 5 | 0 | 2008-09-23T17:07:31.667000 | 2008-09-23T19:20:58.213000 |
122,362 | 123,163 | How to empty/flush Windows READ disk cache in C#? | If I am trying to determine the read speed of a drive, I can code a routine to write files to a filesystem and then read those files back. Unfortunately, this doesn't give an accurate read speed because Windows does disk read caching. Is there a way to flush the disk read cache of a drive in C# /.Net (or perhaps with W... | Why DIY? If you only need to determine drive speed and not really interested in learning how to flush I/O buffers from.NET, you may just use DiskSpd utility from http://research.microsoft.com/barc/Sequential_IO/. It has random/sequential modes with and without buffer flushing. The page also has some I/O related researc... | How to empty/flush Windows READ disk cache in C#? If I am trying to determine the read speed of a drive, I can code a routine to write files to a filesystem and then read those files back. Unfortunately, this doesn't give an accurate read speed because Windows does disk read caching. Is there a way to flush the disk re... | TITLE:
How to empty/flush Windows READ disk cache in C#?
QUESTION:
If I am trying to determine the read speed of a drive, I can code a routine to write files to a filesystem and then read those files back. Unfortunately, this doesn't give an accurate read speed because Windows does disk read caching. Is there a way to... | [
"c#",
".net",
"caching",
"disk",
"flush"
] | 11 | 4 | 15,129 | 5 | 0 | 2008-09-23T17:10:40.740000 | 2008-09-23T19:16:12.887000 |
122,367 | 849,543 | Simulate Control-Alt-Delete key sequence in Vista and XP | Can I simulate in C#/C++ code Control + Alt + Delete sequence in Vista? When UAC enabled/disabled? How it is done in XP? Can you provide a code sample that works in Vista? | Existing code to simulate the Secure Attention Sequence (SAS), which most people refer to as control alt delete or ctrl-alt-del, no longer works in Windows Vista. It seems that Microsoft offers a library that exports a function called SimulateSAS(). It is not public and one is supposed to request it by sending a mail t... | Simulate Control-Alt-Delete key sequence in Vista and XP Can I simulate in C#/C++ code Control + Alt + Delete sequence in Vista? When UAC enabled/disabled? How it is done in XP? Can you provide a code sample that works in Vista? | TITLE:
Simulate Control-Alt-Delete key sequence in Vista and XP
QUESTION:
Can I simulate in C#/C++ code Control + Alt + Delete sequence in Vista? When UAC enabled/disabled? How it is done in XP? Can you provide a code sample that works in Vista?
ANSWER:
Existing code to simulate the Secure Attention Sequence (SAS), w... | [
"windows",
"winapi",
"windows-vista"
] | 5 | 6 | 6,760 | 5 | 0 | 2008-09-23T17:12:07.600000 | 2009-05-11T19:03:02.840000 |
122,388 | 122,565 | How would you implement MVC in a Windows Forms application? | I don't develop too many desktop / Windows Forms applications, but it had occurred to me that there may be some benefit to using the MVC (Model View Controller) pattern for Windows Forms.NET development. Has anyone implemented MVC in Windows Forms? If so, do you have any tips on the design? | What I've done in the past is use something similar, Model-View-Presenter. [NOTE: This article used to be available on the web. To see it now, you'll need to download the CHM, and then view the file properties and click Unblock. Then you can open the CHM and find the article. Thanks a million, Microsoft! sigh ] The for... | How would you implement MVC in a Windows Forms application? I don't develop too many desktop / Windows Forms applications, but it had occurred to me that there may be some benefit to using the MVC (Model View Controller) pattern for Windows Forms.NET development. Has anyone implemented MVC in Windows Forms? If so, do y... | TITLE:
How would you implement MVC in a Windows Forms application?
QUESTION:
I don't develop too many desktop / Windows Forms applications, but it had occurred to me that there may be some benefit to using the MVC (Model View Controller) pattern for Windows Forms.NET development. Has anyone implemented MVC in Windows ... | [
"winforms",
"model-view-controller"
] | 69 | 44 | 76,268 | 6 | 0 | 2008-09-23T17:16:24.813000 | 2008-09-23T17:45:42.810000 |
122,394 | 122,505 | Router to handle multiple public IP addresses | I am presently running several websites and a mail server from my home network. I have a business DSL account with 8 public IP addresses (1 by itself, and 7 in a block). To handle routing/firewall/gateway, I am presently using RRAS, DNS, & DHCP from Windows 2003 running on a ancient (circa 2001) PC -- which I suspect i... | This can't be done on a Linksys router with stock firmware. It can be done if you load a third-party firmware, but there's no GUI (afaik) to accomplish it, so you'll be hacking system shell scripts which is pretty hairy. I would recommend getting a low-power or older PC and installing PFSense. PFSense is an open-source... | Router to handle multiple public IP addresses I am presently running several websites and a mail server from my home network. I have a business DSL account with 8 public IP addresses (1 by itself, and 7 in a block). To handle routing/firewall/gateway, I am presently using RRAS, DNS, & DHCP from Windows 2003 running on ... | TITLE:
Router to handle multiple public IP addresses
QUESTION:
I am presently running several websites and a mail server from my home network. I have a business DSL account with 8 public IP addresses (1 by itself, and 7 in a block). To handle routing/firewall/gateway, I am presently using RRAS, DNS, & DHCP from Window... | [
"networking",
"routes",
"hardware",
"router"
] | 7 | 7 | 17,076 | 2 | 0 | 2008-09-23T17:17:13.283000 | 2008-09-23T17:37:09.803000 |
122,400 | 122,431 | What are reserved filenames for various platforms? | I'm not asking about general syntactic rules for file names. I mean gotchas that jump out of nowhere and bite you. For example, trying to name a file "COM " on Windows? | From: http://www.grouplogic.com/knowledge/index.cfm/fuseaction/view_Info/docID/111. The following characters are invalid as file or folder names on Windows using NTFS: /? < > \: * | " and any character you can type with the Ctrl key. In addition to the above illegal characters the caret ^ is also not permitted under Wi... | What are reserved filenames for various platforms? I'm not asking about general syntactic rules for file names. I mean gotchas that jump out of nowhere and bite you. For example, trying to name a file "COM " on Windows? | TITLE:
What are reserved filenames for various platforms?
QUESTION:
I'm not asking about general syntactic rules for file names. I mean gotchas that jump out of nowhere and bite you. For example, trying to name a file "COM " on Windows?
ANSWER:
From: http://www.grouplogic.com/knowledge/index.cfm/fuseaction/view_Info/... | [
"filesystems",
"naming"
] | 16 | 18 | 11,405 | 7 | 0 | 2008-09-23T17:18:36.087000 | 2008-09-23T17:24:53.577000 |
122,402 | 122,418 | Is there an Application to Create Regular Expression Out of Text by Selecting Wanted Area? | I hope this is programmer-related question. I'm in the hobby business of C# programming. For my own purposes I need to parse html files and the best idea is..regular expression. As many found out, it's quite time consuming to learn them and thus I'm quite interested if you know about some application that would be able... | Yes there is Roy Osherove wrote exactly what you're looking for - regulazy | Is there an Application to Create Regular Expression Out of Text by Selecting Wanted Area? I hope this is programmer-related question. I'm in the hobby business of C# programming. For my own purposes I need to parse html files and the best idea is..regular expression. As many found out, it's quite time consuming to lea... | TITLE:
Is there an Application to Create Regular Expression Out of Text by Selecting Wanted Area?
QUESTION:
I hope this is programmer-related question. I'm in the hobby business of C# programming. For my own purposes I need to parse html files and the best idea is..regular expression. As many found out, it's quite tim... | [
"c#",
"regex",
"automation"
] | 5 | 8 | 2,517 | 4 | 0 | 2008-09-23T17:18:56.430000 | 2008-09-23T17:22:45.407000 |
122,404 | 785,282 | How to copy and paste code without rich text formatting? | I used to often find myself coping a piece of code from a website/Word document etc only to discover that when doing Paste I would end up with the desired code plus some extra HTML tags/text, basically extra formatting information. To get rid of that extra ballast I would paste the text to the Notepad and then copy it ... | Just to summarize the available options: Tools PureText - free tool for Windows Use AutoHotkey and write your own macro as suggested by Dean Browsers To copy plain text from a browser: Copy As Plain Text or CopyPlainText (suggested by cori ) - Firefox extensions To paste without formatting to a browser (Firefox/Chrome ... | How to copy and paste code without rich text formatting? I used to often find myself coping a piece of code from a website/Word document etc only to discover that when doing Paste I would end up with the desired code plus some extra HTML tags/text, basically extra formatting information. To get rid of that extra ballas... | TITLE:
How to copy and paste code without rich text formatting?
QUESTION:
I used to often find myself coping a piece of code from a website/Word document etc only to discover that when doing Paste I would end up with the desired code plus some extra HTML tags/text, basically extra formatting information. To get rid of... | [
"editor",
"copy-paste"
] | 77 | 83 | 132,005 | 13 | 0 | 2008-09-23T17:19:10.797000 | 2009-04-24T10:14:35.483000 |
122,407 | 122,414 | What's the nearest substitute for a function pointer in Java? | I have a method that's about ten lines of code. I want to create more methods that do exactly the same thing, except for a small calculation that's going to change one line of code. This is a perfect application for passing in a function pointer to replace that one line, but Java doesn't have function pointers. What's ... | Anonymous inner class Say you want to have a function passed in with a String param that returns an int. First you have to define an interface with the function as its only member, if you can't reuse an existing one. interface StringFunction { int func(String param); } A method that takes the pointer would just accept ... | What's the nearest substitute for a function pointer in Java? I have a method that's about ten lines of code. I want to create more methods that do exactly the same thing, except for a small calculation that's going to change one line of code. This is a perfect application for passing in a function pointer to replace t... | TITLE:
What's the nearest substitute for a function pointer in Java?
QUESTION:
I have a method that's about ten lines of code. I want to create more methods that do exactly the same thing, except for a small calculation that's going to change one line of code. This is a perfect application for passing in a function po... | [
"java",
"closures",
"function-pointers"
] | 307 | 273 | 92,668 | 21 | 0 | 2008-09-23T17:20:10.700000 | 2008-09-23T17:21:43.927000 |
122,422 | 122,504 | Change datatype when importing Excel file into Access | Is there any way to change the default datatype when importing an Excel file into Access? (I'm using Access 2003, by the way). I know that I sometimes have the freedom to assign any datatype to each column that is being imported, but that could only be when I'm importing non-Excel files. EDIT: To be clear, I understand... | This may be caused by Excel Jet driver default settings. Check out the following registry key and change it's value from default 8 to 0, meaning "guess column data type based on all values, not just first 8 rows." [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Excel] "TypeGuessRows"=dword:00000000 Please, tell ... | Change datatype when importing Excel file into Access Is there any way to change the default datatype when importing an Excel file into Access? (I'm using Access 2003, by the way). I know that I sometimes have the freedom to assign any datatype to each column that is being imported, but that could only be when I'm impo... | TITLE:
Change datatype when importing Excel file into Access
QUESTION:
Is there any way to change the default datatype when importing an Excel file into Access? (I'm using Access 2003, by the way). I know that I sometimes have the freedom to assign any datatype to each column that is being imported, but that could onl... | [
"excel",
"ms-access",
"import"
] | 7 | 3 | 28,345 | 8 | 0 | 2008-09-23T17:23:06.373000 | 2008-09-23T17:36:21.210000 |
122,424 | 124,747 | Build sequencing when using distributed version control | Right now, we are using Perforce for version control. It has the handy feature of a strictly increasing change number that we can use to refer to builds, eg "you'll get the bugfix if your build is at least 44902". I'd like to switch over to using a distributed system (probably git) to make it easier to branch and to wo... | I second the suggestion of using git describe. Provided that you have a sane versioning policy, and you don't do any crazy stuff with your repository, git describe will always be monotonic (at least as monotonic as you can be, when your revision history is a DAG instead of a tree) and unique. A little demonstration: gi... | Build sequencing when using distributed version control Right now, we are using Perforce for version control. It has the handy feature of a strictly increasing change number that we can use to refer to builds, eg "you'll get the bugfix if your build is at least 44902". I'd like to switch over to using a distributed sys... | TITLE:
Build sequencing when using distributed version control
QUESTION:
Right now, we are using Perforce for version control. It has the handy feature of a strictly increasing change number that we can use to refer to builds, eg "you'll get the bugfix if your build is at least 44902". I'd like to switch over to using... | [
"git",
"build-process",
"dvcs"
] | 30 | 28 | 7,129 | 8 | 0 | 2008-09-23T17:23:32.830000 | 2008-09-24T00:35:04.167000 |
122,445 | 122,795 | How does theming for ziya charts work? | I'm implementing charts using The Ziya Charts Gem. Unfortunately, the documentation isn't really helpful or I haven't had enough coffee to figure out theming. I know I can set a theme using chart.add(:theme, 'whatever') Problem: I haven't found any predefined themes, nor have I found a reference to the required format. | As I understand it, the themes are used by initializing the theme directory in your ziya.rb file like so: Ziya.initialize(:themes_dir => File.join( File.dirname(__FILE__), %w[.... public charts themes]) ) And you'll need to set up the proper directory, in this case public/charts/themes. It doesn't come with any in ther... | How does theming for ziya charts work? I'm implementing charts using The Ziya Charts Gem. Unfortunately, the documentation isn't really helpful or I haven't had enough coffee to figure out theming. I know I can set a theme using chart.add(:theme, 'whatever') Problem: I haven't found any predefined themes, nor have I fo... | TITLE:
How does theming for ziya charts work?
QUESTION:
I'm implementing charts using The Ziya Charts Gem. Unfortunately, the documentation isn't really helpful or I haven't had enough coffee to figure out theming. I know I can set a theme using chart.add(:theme, 'whatever') Problem: I haven't found any predefined the... | [
"ruby-on-rails",
"ruby",
"charts"
] | 1 | 1 | 591 | 3 | 0 | 2008-09-23T17:26:55.117000 | 2008-09-23T18:24:35.010000 |
122,451 | 154,033 | Specifying a VC++ Redistributable version for ClickOnce prerequisite | My ClickOnce application uses a third party tool that requires the Visual C++ 2005 redistributable. The third party tool will not work if only the VC++ 2008 redistributable is installed. However, in Visual Studio 2008, the ClickOnce prerequisites do not allow a version to be specified for the VC++ redistributable; it w... | If you can find a machine with VS 2005 installed, the solution shouldn't be too hard. You have the ability to customize what appears in the Prerequisites dialog on the Publish tab of your project. On a machine with VS 2005 installed, go to \Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages and copy... | Specifying a VC++ Redistributable version for ClickOnce prerequisite My ClickOnce application uses a third party tool that requires the Visual C++ 2005 redistributable. The third party tool will not work if only the VC++ 2008 redistributable is installed. However, in Visual Studio 2008, the ClickOnce prerequisites do n... | TITLE:
Specifying a VC++ Redistributable version for ClickOnce prerequisite
QUESTION:
My ClickOnce application uses a third party tool that requires the Visual C++ 2005 redistributable. The third party tool will not work if only the VC++ 2008 redistributable is installed. However, in Visual Studio 2008, the ClickOnce ... | [
"visual-c++",
"clickonce",
"versions",
"redistributable",
"prerequisites"
] | 9 | 8 | 4,920 | 3 | 0 | 2008-09-23T17:28:19.950000 | 2008-09-30T17:08:32.610000 |
122,455 | 122,485 | Handling file paths cross platform | Do any C++ GNU standalone classes exist which handle paths cross platform? My applications build on Windows and LInux. Our configuration files refer to another file in a seperate directory. I'd like to be able to read the path for the other configuration file into a class which would work on both Linux or Windows. Whic... | Unless you're using absolute paths, there's no need to translate at all - Windows automatically converts forward slashes into backslashes, so if you use relative paths with forward slash path separators, you'll be golden. You should really avoid absolute paths if at all possible. | Handling file paths cross platform Do any C++ GNU standalone classes exist which handle paths cross platform? My applications build on Windows and LInux. Our configuration files refer to another file in a seperate directory. I'd like to be able to read the path for the other configuration file into a class which would ... | TITLE:
Handling file paths cross platform
QUESTION:
Do any C++ GNU standalone classes exist which handle paths cross platform? My applications build on Windows and LInux. Our configuration files refer to another file in a seperate directory. I'd like to be able to read the path for the other configuration file into a ... | [
"c++",
"windows",
"linux",
"cross-platform",
"gnu"
] | 15 | 21 | 17,236 | 4 | 0 | 2008-09-23T17:28:47.467000 | 2008-09-23T17:33:13.213000 |
122,463 | 123,005 | How to retrieve namespaces in XML files using Xpath | I have an XML file that starts like this: I'll have to open a lot of these files. Each of these have a different namespace but will only have one namespace at a time (I'll never find two namespaces defined in one xml file). Using XPath I'd like to have an automatic way to add the given namespace to the namespace manage... | There are a few techniques that you might try; which you use will depend on exactly what information you need to get out of the document, how rigorous you want to be, and how conformant the XPath implementation you're using is. One way to get the namespace URI associated with a particular prefix is using the namespace:... | How to retrieve namespaces in XML files using Xpath I have an XML file that starts like this: I'll have to open a lot of these files. Each of these have a different namespace but will only have one namespace at a time (I'll never find two namespaces defined in one xml file). Using XPath I'd like to have an automatic wa... | TITLE:
How to retrieve namespaces in XML files using Xpath
QUESTION:
I have an XML file that starts like this: I'll have to open a lot of these files. Each of these have a different namespace but will only have one namespace at a time (I'll never find two namespaces defined in one xml file). Using XPath I'd like to ha... | [
"xml",
"xpath",
"namespaces"
] | 42 | 92 | 55,436 | 3 | 0 | 2008-09-23T17:29:38.540000 | 2008-09-23T18:53:32.460000 |
122,468 | 123,833 | How do I configure a project to use latest Derby DB version (10.4)? | Every time I try to run a small application that uses a Derby DB I get this error message: Message: Database at /path/to/db/TheDB has an incompatible format with the current version of the software. The database was created by or upgraded by version 10.4. I've added the library from Netbeans, and still have the same pr... | The version included with Netbeans might be old (Derby 10.2 as of NB 6.0). If you added Derby via the project properties and added the "Library", then you probably had the old version. You can update the library by going to Tool -> Libraries. Select "Java DB Driver". Delete the jar references and update them to point a... | How do I configure a project to use latest Derby DB version (10.4)? Every time I try to run a small application that uses a Derby DB I get this error message: Message: Database at /path/to/db/TheDB has an incompatible format with the current version of the software. The database was created by or upgraded by version 10... | TITLE:
How do I configure a project to use latest Derby DB version (10.4)?
QUESTION:
Every time I try to run a small application that uses a Derby DB I get this error message: Message: Database at /path/to/db/TheDB has an incompatible format with the current version of the software. The database was created by or upgr... | [
"java",
"netbeans",
"derby"
] | 3 | 4 | 6,015 | 3 | 0 | 2008-09-23T17:30:03.813000 | 2008-09-23T20:58:41.037000 |
122,483 | 122,499 | Specifying "all odd values" in crontab? | In crontab, I can use an asterisk to mean every value, or "*/2" to mean every even value. Is there a way to specify every odd value? (Would something like "1+*/2" work?) | Depending on your version of cron, you should be able to do (for hours, say): 1-23/2 Going by the EXTENSIONS section in the crontab(5) manpage: Ranges can include "steps", so "1-9/2" is the same as "1,3,5,7,9". For a more portable solution, I suspect you just have to use the simple list: 1,3,5,7,9,11,13,15,17,19,21,23 ... | Specifying "all odd values" in crontab? In crontab, I can use an asterisk to mean every value, or "*/2" to mean every even value. Is there a way to specify every odd value? (Would something like "1+*/2" work?) | TITLE:
Specifying "all odd values" in crontab?
QUESTION:
In crontab, I can use an asterisk to mean every value, or "*/2" to mean every even value. Is there a way to specify every odd value? (Would something like "1+*/2" work?)
ANSWER:
Depending on your version of cron, you should be able to do (for hours, say): 1-23/... | [
"cron"
] | 82 | 107 | 41,950 | 6 | 0 | 2008-09-23T17:32:25.057000 | 2008-09-23T17:35:04.190000 |
122,514 | 179,462 | C# serialization and event for data binding are lost | I have already posted something similar here but I would like to ask the question more general over here. Have you try to serialize an object that implement INotifyPropertyChanged and to get it back from serialization and to bind it to a DataGridView? When I do it, I have no refresh from the value that change (I need t... | Use the DataContractSerializer and create a method for OnDeserialized [OnDeserialized] private void OnDeserialized(StreamingContext c) {} This will let you raise the PropertyChanged event when deserialization is complete | C# serialization and event for data binding are lost I have already posted something similar here but I would like to ask the question more general over here. Have you try to serialize an object that implement INotifyPropertyChanged and to get it back from serialization and to bind it to a DataGridView? When I do it, I... | TITLE:
C# serialization and event for data binding are lost
QUESTION:
I have already posted something similar here but I would like to ask the question more general over here. Have you try to serialize an object that implement INotifyPropertyChanged and to get it back from serialization and to bind it to a DataGridVie... | [
"c#",
"data-binding",
"serialization"
] | 3 | 2 | 1,132 | 3 | 0 | 2008-09-23T17:38:05.387000 | 2008-10-07T17:10:36.297000 |
122,523 | 122,536 | Why is a SQL float different from a C# float | Howdy, I have a DataRow pulled out of a DataTable from a DataSet. I am accessing a column that is defined in SQL as a float datatype. I am trying to assign that value to a local variable (c# float datatype) but am getting an InvalidCastExecption DataRow exercise = _exerciseDataSet.Exercise.FindByExerciseID(65); _AccelL... | A SQL float is a double according to the documentation for SQLDbType. | Why is a SQL float different from a C# float Howdy, I have a DataRow pulled out of a DataTable from a DataSet. I am accessing a column that is defined in SQL as a float datatype. I am trying to assign that value to a local variable (c# float datatype) but am getting an InvalidCastExecption DataRow exercise = _exerciseD... | TITLE:
Why is a SQL float different from a C# float
QUESTION:
Howdy, I have a DataRow pulled out of a DataTable from a DataSet. I am accessing a column that is defined in SQL as a float datatype. I am trying to assign that value to a local variable (c# float datatype) but am getting an InvalidCastExecption DataRow exe... | [
"c#",
".net",
"sql",
"casting",
"dataset"
] | 51 | 87 | 69,242 | 6 | 0 | 2008-09-23T17:39:28.363000 | 2008-09-23T17:41:20.340000 |
122,533 | 122,609 | How can I downgrade the format of a Subversion repositiory? | Is there any way to down-format a Subversion repository to avoid messages like this: svn: Expected format '3' of repository; found format '5' This happens when you access repositories from more than one machine, and you aren't able to use a consistent version of Subversion across all of those machines. Worse still, the... | If you can't use the same version of Subversion across all machines, then you should set up a server process (either svnserve or Apache) and access the repository only through the server. The server can mediate between different versions of Subversion; it's only when you're using direct repository access that you run i... | How can I downgrade the format of a Subversion repositiory? Is there any way to down-format a Subversion repository to avoid messages like this: svn: Expected format '3' of repository; found format '5' This happens when you access repositories from more than one machine, and you aren't able to use a consistent version ... | TITLE:
How can I downgrade the format of a Subversion repositiory?
QUESTION:
Is there any way to down-format a Subversion repository to avoid messages like this: svn: Expected format '3' of repository; found format '5' This happens when you access repositories from more than one machine, and you aren't able to use a c... | [
"svn"
] | 4 | 13 | 9,814 | 6 | 0 | 2008-09-23T17:40:38.593000 | 2008-09-23T17:54:35.330000 |
122,544 | 122,557 | How can you add additional logic to type resolution at runtime? | Is there a generic way, without creating and managing your own CLR host, to take over locating and loading a type if that type is not found? The following is just an example. In your rush to be the first answer, don't suggest the new add-in framework or the MEF as a solution to my question. An example would be a sample... | There are events on the AppDomain that you can use. You would want TypeResolve event, and possibly the AssemblyResolve event. Also, you can read more about how the.net runtime resolves assemblies, so it's possible you could define this information in the probing section. | How can you add additional logic to type resolution at runtime? Is there a generic way, without creating and managing your own CLR host, to take over locating and loading a type if that type is not found? The following is just an example. In your rush to be the first answer, don't suggest the new add-in framework or th... | TITLE:
How can you add additional logic to type resolution at runtime?
QUESTION:
Is there a generic way, without creating and managing your own CLR host, to take over locating and loading a type if that type is not found? The following is just an example. In your rush to be the first answer, don't suggest the new add-... | [
".net",
"clr",
"types"
] | 2 | 4 | 270 | 2 | 0 | 2008-09-23T17:42:42.160000 | 2008-09-23T17:44:44.853000 |
122,546 | 122,876 | What to do when IE's moveToElementText spits out an Invalid Argument exception | We've written a plugin to the Xinha text editor to handle footnotes. You can take a look at: http://www.nicholasbs.com/xinha/examples/Newbie.html In order to handle some problems with the way Webkit and IE handle links at the end of lines (there's no way to use the cursor to get out of the link on the same line) we ins... | It's not visible in the snippet above, but newel has been appended to the dom using another element that was itself appended to the DOM. When inserting a dom element, you have to re-retrieve your handle if you wish to reference its siblings, since the handle is invalid (I'm not sure, but I think it refers to a DOM elem... | What to do when IE's moveToElementText spits out an Invalid Argument exception We've written a plugin to the Xinha text editor to handle footnotes. You can take a look at: http://www.nicholasbs.com/xinha/examples/Newbie.html In order to handle some problems with the way Webkit and IE handle links at the end of lines (t... | TITLE:
What to do when IE's moveToElementText spits out an Invalid Argument exception
QUESTION:
We've written a plugin to the Xinha text editor to handle footnotes. You can take a look at: http://www.nicholasbs.com/xinha/examples/Newbie.html In order to handle some problems with the way Webkit and IE handle links at t... | [
"javascript",
"html",
"internet-explorer"
] | 5 | 5 | 4,376 | 2 | 0 | 2008-09-23T17:43:00.787000 | 2008-09-23T18:35:08.290000 |
122,547 | 122,610 | How well does Bugzilla work for managing Scrum projects? | We have MS Sharepoint -- which isn't all bad for managing a task list. The data's publicly available, people are notified of changes and assignments. I think that Bugzilla might be a little easier for management and reporting purposes. While there are some nice Open Source Scrum management tools, I've used up a lot of ... | Bugzilla Is a great bug tracking system. We have tried to use it for other project management tasks and the results are less then stellar. I would recommend finding something designed with your goals in mind. | How well does Bugzilla work for managing Scrum projects? We have MS Sharepoint -- which isn't all bad for managing a task list. The data's publicly available, people are notified of changes and assignments. I think that Bugzilla might be a little easier for management and reporting purposes. While there are some nice O... | TITLE:
How well does Bugzilla work for managing Scrum projects?
QUESTION:
We have MS Sharepoint -- which isn't all bad for managing a task list. The data's publicly available, people are notified of changes and assignments. I think that Bugzilla might be a little easier for management and reporting purposes. While the... | [
"project-management",
"scrum",
"bugzilla"
] | 6 | 9 | 8,772 | 4 | 0 | 2008-09-23T17:43:06.060000 | 2008-09-23T17:54:45.797000 |
122,571 | 122,888 | When to use Hibernate/JPA/Toplink? | Right now I'm making an extremely simple website- about 5 pages. Question is if it's overkill and worth the time to integrate some sort of database mapping solution or if it would be better to just use plain old JNDI. I'll have maybe a dozen things I need to read/write from the database. I guess I have a basic understa... | Short answer: It depends on the complexity you want to support. Long answer: First of all, ORM ( object relational mapping - database mapping as you call it - ) and JNDI ( Java Naming and Directory Interfaces ) are two different things. The first as you already know, is used to map the Database tables to classes and ob... | When to use Hibernate/JPA/Toplink? Right now I'm making an extremely simple website- about 5 pages. Question is if it's overkill and worth the time to integrate some sort of database mapping solution or if it would be better to just use plain old JNDI. I'll have maybe a dozen things I need to read/write from the databa... | TITLE:
When to use Hibernate/JPA/Toplink?
QUESTION:
Right now I'm making an extremely simple website- about 5 pages. Question is if it's overkill and worth the time to integrate some sort of database mapping solution or if it would be better to just use plain old JNDI. I'll have maybe a dozen things I need to read/wri... | [
"java",
"hibernate",
"orm",
"jpa",
"toplink"
] | 7 | 18 | 22,107 | 6 | 0 | 2008-09-23T17:46:37.860000 | 2008-09-23T18:37:28.050000 |
122,582 | 123,689 | Real (Great Circle) distance in PostGIS with lat/long SRID? | I'm using a lat/long SRID in my PostGIS database (-4326). I would like to find the nearest points to a given point in an efficient manner. I tried doing an ORDER BY ST_Distance(point, ST_GeomFromText(?,-4326)) which gives me ok results in the lower 48 states, but up in Alaska it gives me garbage. Is there a way to do r... | You are looking for ST_distance_sphere(point,point) or st_distance_spheroid(point,point). See: http://postgis.refractions.net/documentation/manual-1.3/ch06.html#distance_sphere http://postgis.refractions.net/documentation/manual-1.3/ch06.html#distance_spheroid This is normally referred to a geodesic or geodetic distanc... | Real (Great Circle) distance in PostGIS with lat/long SRID? I'm using a lat/long SRID in my PostGIS database (-4326). I would like to find the nearest points to a given point in an efficient manner. I tried doing an ORDER BY ST_Distance(point, ST_GeomFromText(?,-4326)) which gives me ok results in the lower 48 states, ... | TITLE:
Real (Great Circle) distance in PostGIS with lat/long SRID?
QUESTION:
I'm using a lat/long SRID in my PostGIS database (-4326). I would like to find the nearest points to a given point in an efficient manner. I tried doing an ORDER BY ST_Distance(point, ST_GeomFromText(?,-4326)) which gives me ok results in the... | [
"gis",
"postgis"
] | 6 | 9 | 8,598 | 3 | 0 | 2008-09-23T17:49:26.310000 | 2008-09-23T20:37:13.287000 |
122,583 | 3,049,332 | 64-bit Alternative for Microsoft Jet | Microsoft has chosen to not release a 64-bit version of Jet, their database driver for Access. Does anyone know of a good alternative? Here are the specific features that Jet supports that I need: Multiple users can connect to database over a network. Users can use Windows Explorer to copy the database while it is open... | Luckily, things have changed in the past two years: Since Office 2010 is available in a 64-bit version, Microsoft had to create a 64-bit version of their Jet Engine. According to the Microsoft Customer Service blog, the Microsoft Access Database Engine 2010 Redistributable contains a 64-bit driver, which is able to acc... | 64-bit Alternative for Microsoft Jet Microsoft has chosen to not release a 64-bit version of Jet, their database driver for Access. Does anyone know of a good alternative? Here are the specific features that Jet supports that I need: Multiple users can connect to database over a network. Users can use Windows Explorer ... | TITLE:
64-bit Alternative for Microsoft Jet
QUESTION:
Microsoft has chosen to not release a 64-bit version of Jet, their database driver for Access. Does anyone know of a good alternative? Here are the specific features that Jet supports that I need: Multiple users can connect to database over a network. Users can use... | [
"ms-access",
"64-bit"
] | 3 | 12 | 9,310 | 7 | 0 | 2008-09-23T17:49:37.527000 | 2010-06-15T21:50:31.020000 |
122,589 | 619,865 | ASP.NET: ICollection Constructor Not Found? | I have a ASP.NET application running on a remote web server and I just started getting this error. I can't seem to reproduce it in my development environment: Method not found: 'Void System.Collections.Generic.ICollection`1..ctor()'. Could this be due to some misconfiguration of.NET Framework or IIS 6? Update: I disass... | This was caused by a bug in the aspnet merge tool which incorrectly merged optimized assemblies. It can be solved by either not merging the assemblies or not optimizing them. | ASP.NET: ICollection Constructor Not Found? I have a ASP.NET application running on a remote web server and I just started getting this error. I can't seem to reproduce it in my development environment: Method not found: 'Void System.Collections.Generic.ICollection`1..ctor()'. Could this be due to some misconfiguration... | TITLE:
ASP.NET: ICollection Constructor Not Found?
QUESTION:
I have a ASP.NET application running on a remote web server and I just started getting this error. I can't seem to reproduce it in my development environment: Method not found: 'Void System.Collections.Generic.ICollection`1..ctor()'. Could this be due to som... | [
"c#",
"asp.net"
] | 0 | 0 | 678 | 3 | 0 | 2008-09-23T17:50:45.293000 | 2009-03-06T18:15:09.450000 |
122,593 | 122,631 | throw exception from a JSP | Is it possible to throw an exception in a JSP without using scriptlet code? | You really shouldn't be doing anything at the JSP layer that explicitly throws exceptions. The reason you don't want to use scriptlets in JSPs is because that puts application logic in your view. Throwing an exception is inherently application logic, so it doesn't belong in your JSP, scriptlet or not. | throw exception from a JSP Is it possible to throw an exception in a JSP without using scriptlet code? | TITLE:
throw exception from a JSP
QUESTION:
Is it possible to throw an exception in a JSP without using scriptlet code?
ANSWER:
You really shouldn't be doing anything at the JSP layer that explicitly throws exceptions. The reason you don't want to use scriptlets in JSPs is because that puts application logic in your ... | [
"java",
"exception",
"jsp"
] | 4 | 9 | 5,840 | 3 | 0 | 2008-09-23T17:51:04.200000 | 2008-09-23T17:59:23.260000 |
122,595 | 126,378 | NLP: Qualitatively "positive" vs "negative" sentence | I need your help in determining the best approach for analyzing industry-specific sentences (i.e. movie reviews) for "positive" vs "negative". I've seen libraries such as OpenNLP before, but it's too low-level - it just gives me the basic sentence composition; what I need is a higher-level structure: - hopefully with w... | What you are looking for is commonly dubbed Sentiment Analysis. Typically, sentiment analysis is not able to handle delicate subtleties, like sarcasm or irony, but it fares pretty well if you throw a large set of data at it. Sentiment analysis usually needs quite a bit of pre-processing. At least tokenization, sentence... | NLP: Qualitatively "positive" vs "negative" sentence I need your help in determining the best approach for analyzing industry-specific sentences (i.e. movie reviews) for "positive" vs "negative". I've seen libraries such as OpenNLP before, but it's too low-level - it just gives me the basic sentence composition; what I... | TITLE:
NLP: Qualitatively "positive" vs "negative" sentence
QUESTION:
I need your help in determining the best approach for analyzing industry-specific sentences (i.e. movie reviews) for "positive" vs "negative". I've seen libraries such as OpenNLP before, but it's too low-level - it just gives me the basic sentence c... | [
"nlp",
"text-analysis"
] | 13 | 23 | 13,375 | 2 | 0 | 2008-09-23T17:51:47.707000 | 2008-09-24T10:22:13.177000 |
122,607 | 123,285 | How to consume a web service from VB6? | I need to consume an external web service from my VB6 program. I want to be able to deploy my program without the SOAP toolkit, if possible, but that's not a requirement. I do not have the web service source and I didn't create it. It is a vendor-provided service. So outside of the SOAP toolkit, what is the best way to... | I use this function to get data from a web service. Private Function HttpGetRequest(url As String) As DOMDocument Dim req As XMLHTTP60 Set req = New XMLHTTP60 req.Open "GET", url, False req.send ""
Dim resp As DOMDocument If req.responseText <> vbNullString Then Set resp = New DOMDocument60 resp.loadXML req.responseTe... | How to consume a web service from VB6? I need to consume an external web service from my VB6 program. I want to be able to deploy my program without the SOAP toolkit, if possible, but that's not a requirement. I do not have the web service source and I didn't create it. It is a vendor-provided service. So outside of th... | TITLE:
How to consume a web service from VB6?
QUESTION:
I need to consume an external web service from my VB6 program. I want to be able to deploy my program without the SOAP toolkit, if possible, but that's not a requirement. I do not have the web service source and I didn't create it. It is a vendor-provided service... | [
"web-services",
"deployment",
"vb6",
"soap"
] | 15 | 11 | 49,249 | 6 | 0 | 2008-09-23T17:54:11.760000 | 2008-09-23T19:39:43.253000 |
122,614 | 123,104 | Is there a .NET equivalent of Perl's LWP / WWW::Mechanize? | After working with.NET's HttpWebRequest / Response objects, I'd rather shoot myself than use this to crawl through web sites. I'm looking for an existing.NET library that can fetch URLs, and give you the ability to follow links, extract/fill in/submit forms on the page, etc. Perl's LWP and WWW::Mechanize modules do thi... | Somebody built a bit of code to run as an addon to the HTML Agility Pack (which I also love) that allows you to do a bit of form tinkering: http://apps.ultravioletconsulting.com/projects/uvcwebtransform/docs/class_html_agility_pack_1_1_add_ons_1_1_form_processor_1_1_form_processor.html I read a review that says it's no... | Is there a .NET equivalent of Perl's LWP / WWW::Mechanize? After working with.NET's HttpWebRequest / Response objects, I'd rather shoot myself than use this to crawl through web sites. I'm looking for an existing.NET library that can fetch URLs, and give you the ability to follow links, extract/fill in/submit forms on ... | TITLE:
Is there a .NET equivalent of Perl's LWP / WWW::Mechanize?
QUESTION:
After working with.NET's HttpWebRequest / Response objects, I'd rather shoot myself than use this to crawl through web sites. I'm looking for an existing.NET library that can fetch URLs, and give you the ability to follow links, extract/fill i... | [
".net",
"html",
"forms",
"web-crawler"
] | 5 | 2 | 1,674 | 1 | 0 | 2008-09-23T17:56:46.417000 | 2008-09-23T19:08:40.613000 |
122,615 | 122,627 | ASP.Net Web Site Won't Compile, But Works Anyway? | I have an ASP.Net 2.0 web site, using the DotNetNuke framework (4.09), and it will not compile, but when I hit the site in a browser, it works. Even the parts that don't compile will work. How is IIS able to compile and run this site, when Visual Studio can't? Everything is the same in both places... I copied the entir... | Is this a web site or a web application? If it's a web application, you're probably still running off the last successfully built bits in the bin. | ASP.Net Web Site Won't Compile, But Works Anyway? I have an ASP.Net 2.0 web site, using the DotNetNuke framework (4.09), and it will not compile, but when I hit the site in a browser, it works. Even the parts that don't compile will work. How is IIS able to compile and run this site, when Visual Studio can't? Everythin... | TITLE:
ASP.Net Web Site Won't Compile, But Works Anyway?
QUESTION:
I have an ASP.Net 2.0 web site, using the DotNetNuke framework (4.09), and it will not compile, but when I hit the site in a browser, it works. Even the parts that don't compile will work. How is IIS able to compile and run this site, when Visual Studi... | [
"asp.net",
"visual-studio",
"debugging",
"dotnetnuke"
] | 1 | 2 | 700 | 5 | 0 | 2008-09-23T17:57:02.250000 | 2008-09-23T17:59:00.313000 |
122,616 | 122,721 | How do I trim leading/trailing whitespace in a standard way? | Is there a clean, preferably standard method of trimming leading and trailing whitespace from a string in C? I'd roll my own, but I would think this is a common problem with an equally common solution. | If you can modify the string: // Note: This function returns a pointer to a substring of the original string. // If the given string was allocated dynamically, the caller must not overwrite // that pointer with the returned value, since the original pointer must be // deallocated using the same allocator with which it ... | How do I trim leading/trailing whitespace in a standard way? Is there a clean, preferably standard method of trimming leading and trailing whitespace from a string in C? I'd roll my own, but I would think this is a common problem with an equally common solution. | TITLE:
How do I trim leading/trailing whitespace in a standard way?
QUESTION:
Is there a clean, preferably standard method of trimming leading and trailing whitespace from a string in C? I'd roll my own, but I would think this is a common problem with an equally common solution.
ANSWER:
If you can modify the string: ... | [
"c",
"string",
"whitespace",
"trim"
] | 210 | 205 | 431,217 | 40 | 0 | 2008-09-23T17:57:15.043000 | 2008-09-23T18:12:32.883000 |
122,639 | 122,720 | Insert into ... Select *, how to ignore identity? | I have a temp table with the exact structure of a concrete table T. It was created like this: select top 0 * into #tmp from T After processing and filling in content into #tmp, I want to copy the content back to T like this: insert into T select * from #tmp This is okay as long as T doesn't have identity column, but in... | As identity will be generated during insert anyway, could you simply remove this column from #tmp before inserting the data back to T? alter table #tmp drop column id UPD: Here's an example I've tested in SQL Server 2008: create table T(ID int identity(1,1) not null, Value nvarchar(50)) insert into T (Value) values (N'... | Insert into ... Select *, how to ignore identity? I have a temp table with the exact structure of a concrete table T. It was created like this: select top 0 * into #tmp from T After processing and filling in content into #tmp, I want to copy the content back to T like this: insert into T select * from #tmp This is okay... | TITLE:
Insert into ... Select *, how to ignore identity?
QUESTION:
I have a temp table with the exact structure of a concrete table T. It was created like this: select top 0 * into #tmp from T After processing and filling in content into #tmp, I want to copy the content back to T like this: insert into T select * from... | [
"sql",
"sql-server"
] | 13 | 11 | 37,286 | 9 | 0 | 2008-09-23T18:00:56.110000 | 2008-09-23T18:12:17.707000 |
122,641 | 122,658 | How can I decode HTML characters in C#? | I have email addresses encoded with HTML character entities. Is there anything in.NET that can convert them to plain strings? | You can use HttpUtility.HtmlDecode. If you are using.NET 4.0+ you can also use WebUtility.HtmlDecode which does not require an extra assembly reference as it is available in the System.Net namespace. | How can I decode HTML characters in C#? I have email addresses encoded with HTML character entities. Is there anything in.NET that can convert them to plain strings? | TITLE:
How can I decode HTML characters in C#?
QUESTION:
I have email addresses encoded with HTML character entities. Is there anything in.NET that can convert them to plain strings?
ANSWER:
You can use HttpUtility.HtmlDecode. If you are using.NET 4.0+ you can also use WebUtility.HtmlDecode which does not require an ... | [
"c#"
] | 443 | 677 | 397,610 | 10 | 0 | 2008-09-23T18:01:15.017000 | 2008-09-23T18:02:52.907000 |
122,642 | 124,476 | WSS 3.0: change parent type for a content type | I have created a hierarchy of content types. The root of my hierarchy has the content type "Document" as a parent. There are about 20 other content types derived from my root. Now, I want to change the parent from "Document" to something else. Is it possible? Either in the web interface or in code? Can the definition o... | If you can create a feature that contains all your custom content types, you will be able to change the XML that defines each content type and it's columns. This will give you the ability to change the content types for your site by removing the feature and installing it again with the changes (using a Solution is best... | WSS 3.0: change parent type for a content type I have created a hierarchy of content types. The root of my hierarchy has the content type "Document" as a parent. There are about 20 other content types derived from my root. Now, I want to change the parent from "Document" to something else. Is it possible? Either in the... | TITLE:
WSS 3.0: change parent type for a content type
QUESTION:
I have created a hierarchy of content types. The root of my hierarchy has the content type "Document" as a parent. There are about 20 other content types derived from my root. Now, I want to change the parent from "Document" to something else. Is it possi... | [
"sharepoint",
"wss"
] | 2 | 1 | 1,925 | 1 | 0 | 2008-09-23T18:01:15.547000 | 2008-09-23T23:03:30.673000 |
122,649 | 122,674 | What would be the simplest way to alpha sort an array of chars in C? | I'm looking for a simple, easy to understand algorithm to alphabetically sort an array of characters in C. | characters in C have numeric values that happen to be in order, so you just treat your characters like integers. the C standard library includes a 'qsort' function. Use that ( man qsort on a linux-like system). You might have to convert upper-case letters to lowercase to simplify things, but that's trivial. If you want... | What would be the simplest way to alpha sort an array of chars in C? I'm looking for a simple, easy to understand algorithm to alphabetically sort an array of characters in C. | TITLE:
What would be the simplest way to alpha sort an array of chars in C?
QUESTION:
I'm looking for a simple, easy to understand algorithm to alphabetically sort an array of characters in C.
ANSWER:
characters in C have numeric values that happen to be in order, so you just treat your characters like integers. the ... | [
"c",
"arrays",
"sorting",
"character"
] | 1 | 5 | 1,593 | 7 | 0 | 2008-09-23T18:01:57.060000 | 2008-09-23T18:05:12.403000 |
122,684 | 405,015 | Is there anyway to remove Design (and Split) views from Visual Studio 2005/2008? | I am trying to find a way to disable Design / Split views from appearing in Visual Studio. I figure there's no way to completely disable it, but I still can't seem to find a way to remove the shortcut (F7), or remove the buttons from the bottom bar. | The best I found was: for HTML/ASPX - Options -> HTML Designer -> start pages in source view for XAML -> Options -> Text Editor -> XAML -> Misc -> Always open documents in full XAML view | Is there anyway to remove Design (and Split) views from Visual Studio 2005/2008? I am trying to find a way to disable Design / Split views from appearing in Visual Studio. I figure there's no way to completely disable it, but I still can't seem to find a way to remove the shortcut (F7), or remove the buttons from the b... | TITLE:
Is there anyway to remove Design (and Split) views from Visual Studio 2005/2008?
QUESTION:
I am trying to find a way to disable Design / Split views from appearing in Visual Studio. I figure there's no way to completely disable it, but I still can't seem to find a way to remove the shortcut (F7), or remove the ... | [
"visual-studio",
"visual-studio-2008",
"visual-studio-2005"
] | 5 | 8 | 4,230 | 5 | 0 | 2008-09-23T18:06:30.917000 | 2009-01-01T14:50:22.543000 |
122,685 | 125,860 | Which Java-library can be used to access data via WebDAV? | That's the question: Which library can help me to access data available via WebDAV in my Java-programs? OpenSource is preferred. | The now deprecated Apache Jakarta Slide project includes a Java WebDAV client library - but this project is retired due to the lack of a developer community. Apache Jackrabbit is mentioned as alternative to Slide. You might want to check if its WebDAV library can be used instead. If you just want to access files from a... | Which Java-library can be used to access data via WebDAV? That's the question: Which library can help me to access data available via WebDAV in my Java-programs? OpenSource is preferred. | TITLE:
Which Java-library can be used to access data via WebDAV?
QUESTION:
That's the question: Which library can help me to access data available via WebDAV in my Java-programs? OpenSource is preferred.
ANSWER:
The now deprecated Apache Jakarta Slide project includes a Java WebDAV client library - but this project i... | [
"java",
"webdav"
] | 18 | 12 | 25,758 | 7 | 0 | 2008-09-23T18:06:40.027000 | 2008-09-24T07:38:06.410000 |
122,687 | 122,742 | Working with client certificates for an ASP.NET MVC site on IIS 6 | Wanting to implement authentication by client certificates I am experiencing some issues. First some facts The whole site is using SSL. I am using IIS 6 (on Windows Server 2003) and have configured the site to accept client certificates, not requiring them. Most browsers are however implemented in a way so that they wi... | There's no difference in the CertificateRequest message sent by a server when the certificate is merely requested, rather than required. The server makes the same request in both cases, and simply terminates the handshake when a client fails to provide a required certificate. Thus, if your browser appears to be ignorin... | Working with client certificates for an ASP.NET MVC site on IIS 6 Wanting to implement authentication by client certificates I am experiencing some issues. First some facts The whole site is using SSL. I am using IIS 6 (on Windows Server 2003) and have configured the site to accept client certificates, not requiring th... | TITLE:
Working with client certificates for an ASP.NET MVC site on IIS 6
QUESTION:
Wanting to implement authentication by client certificates I am experiencing some issues. First some facts The whole site is using SSL. I am using IIS 6 (on Windows Server 2003) and have configured the site to accept client certificates... | [
".net",
"asp.net",
"asp.net-mvc",
"iis",
"iis-6"
] | 4 | 3 | 4,763 | 1 | 0 | 2008-09-23T18:06:52.743000 | 2008-09-23T18:16:26.807000 |
122,688 | 267,115 | How can you load balance an IIS 6 hosted WCF Service? | We use BigIP to load balance between our two IIS servers. We recently deployed a WCF service hosted on by IIS 6 onto these two Windows Server 2003R2 servers. Each server is configured with two host headers: one for the load balancer address, and then a second host header that points only to that server. That way we can... | On your bigIP Create 2 new virtual servers http://server1.domain.com/ http://server2.domain.com/ create a pool for each VS with only the specific server in it - so there will be no actual load balancing and access it that way. If you are short on external IP'S you can still use the same IP as your production domain nam... | How can you load balance an IIS 6 hosted WCF Service? We use BigIP to load balance between our two IIS servers. We recently deployed a WCF service hosted on by IIS 6 onto these two Windows Server 2003R2 servers. Each server is configured with two host headers: one for the load balancer address, and then a second host h... | TITLE:
How can you load balance an IIS 6 hosted WCF Service?
QUESTION:
We use BigIP to load balance between our two IIS servers. We recently deployed a WCF service hosted on by IIS 6 onto these two Windows Server 2003R2 servers. Each server is configured with two host headers: one for the load balancer address, and th... | [
"wcf",
"iis-6",
"hostheaders"
] | 7 | 1 | 4,504 | 3 | 0 | 2008-09-23T18:07:07.063000 | 2008-11-05T23:18:40.507000 |
122,690 | 122,737 | What is a simple command line program or script to backup SQL server databases? | I've been too lax with performing DB backups on our internal servers. Is there a simple command line program that I can use to backup certain databases in SQL Server 2005? Or is there a simple VBScript? | To backup a single database from the command line, use osql or sqlcmd. "C:\Program Files\Microsoft SQL Server\90\Tools\Binn\osql.exe" -E -Q "BACKUP DATABASE mydatabase TO DISK='C:\tmp\db.bak' WITH FORMAT" You'll also want to read the documentation on BACKUP and RESTORE and general procedures. | What is a simple command line program or script to backup SQL server databases? I've been too lax with performing DB backups on our internal servers. Is there a simple command line program that I can use to backup certain databases in SQL Server 2005? Or is there a simple VBScript? | TITLE:
What is a simple command line program or script to backup SQL server databases?
QUESTION:
I've been too lax with performing DB backups on our internal servers. Is there a simple command line program that I can use to backup certain databases in SQL Server 2005? Or is there a simple VBScript?
ANSWER:
To backup ... | [
"sql-server",
"command-line",
"scripting",
"backup"
] | 106 | 118 | 269,587 | 14 | 0 | 2008-09-23T18:07:47.233000 | 2008-09-23T18:15:38.337000 |
122,714 | 123,259 | Help configuring JNDI with embedded JBoss in Tomcat 5.5.x | When I try the following lookup in my code: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); return (DataSource) envCtx.lookup("jdbc/mydb"); I get the following exception: java.sql.SQLException: QueryResults: Unable to initialize naming context: Name java:comp is not b... | Thanks for the response toolkit.... yes, I can access my datasource by going directly to java:jdbc/mydb, but I'm using an existing code base that connects via the ENC. Here's some interesting info that I've found out.... The above code works with JBoss 4.2.2.GA and here's the JNDI ctx parameters being used: java.naming... | Help configuring JNDI with embedded JBoss in Tomcat 5.5.x When I try the following lookup in my code: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); return (DataSource) envCtx.lookup("jdbc/mydb"); I get the following exception: java.sql.SQLException: QueryResults: Un... | TITLE:
Help configuring JNDI with embedded JBoss in Tomcat 5.5.x
QUESTION:
When I try the following lookup in my code: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); return (DataSource) envCtx.lookup("jdbc/mydb"); I get the following exception: java.sql.SQLException... | [
"java",
"jboss",
"seam",
"jndi",
"embedded-jboss"
] | 5 | 2 | 6,053 | 3 | 0 | 2008-09-23T18:11:09.707000 | 2008-09-23T19:33:23.830000 |
122,736 | 122,817 | Explain Plan for Query in a Stored Procedure | I have a stored procedure that consists of a single select query used to insert into another table based on some minor math that is done to the arguments in the procedure. Can I generate the plan used for this query by referencing the procedure somehow, or do I have to copy and paste the query and create bind variables... | Use SQL Trace and TKPROF. For example, open SQL*Plus, and then issue the following code:- alter session set tracefile_identifier = 'something-unique' alter session set sql_trace = true; alter session set events '10046 trace name context forever, level 8';
select 'right-before-my-sp' from dual; exec your_stored_procedu... | Explain Plan for Query in a Stored Procedure I have a stored procedure that consists of a single select query used to insert into another table based on some minor math that is done to the arguments in the procedure. Can I generate the plan used for this query by referencing the procedure somehow, or do I have to copy ... | TITLE:
Explain Plan for Query in a Stored Procedure
QUESTION:
I have a stored procedure that consists of a single select query used to insert into another table based on some minor math that is done to the arguments in the procedure. Can I generate the plan used for this query by referencing the procedure somehow, or ... | [
"oracle"
] | 8 | 7 | 11,130 | 3 | 0 | 2008-09-23T18:15:34.873000 | 2008-09-23T18:26:21.510000 |
122,739 | 122,950 | Can SQL Try-Catch blocks handle thrown CLR errors? | We are using SQL 2005 and the try-catch functionality to handle all of our error handling within the DB. We are currently working on deploying a.NET CLR function to make some WCF calls in the DB. This WCF procedure is written in the CLR and then deployed to SQL. If I put a try-catch block in the CLR code, it catches th... | Here is a blog post that covers it at a highish level: Exception handling in SQLCLR When SQL server execute a user function/procedure/trigger implemented in CLR (i.e., managed code), we will install a managed exception handler around the user code. So if the user code leaked a exception, the server will catch it and th... | Can SQL Try-Catch blocks handle thrown CLR errors? We are using SQL 2005 and the try-catch functionality to handle all of our error handling within the DB. We are currently working on deploying a.NET CLR function to make some WCF calls in the DB. This WCF procedure is written in the CLR and then deployed to SQL. If I p... | TITLE:
Can SQL Try-Catch blocks handle thrown CLR errors?
QUESTION:
We are using SQL 2005 and the try-catch functionality to handle all of our error handling within the DB. We are currently working on deploying a.NET CLR function to make some WCF calls in the DB. This WCF procedure is written in the CLR and then deplo... | [
"error-handling",
"clr",
"try-catch"
] | 3 | 2 | 3,882 | 1 | 0 | 2008-09-23T18:16:00.397000 | 2008-09-23T18:44:48.330000 |
122,741 | 122,983 | Testing for Random Value - Thoughts on this Approach? | OK, I have been working on a random image selector and queue system (so you don't see the same images too often). All was going swimmingly (as far as my crappy code does) until I got to the random bit. I wanted to test it, but how do you test for it? There is no Debug.Assert(i.IsRandom) (sadly):D So, I got my brain on ... | Test from the requirement: "so you don't see the same images too often" Ask for 100 images. Did you see an image too often? | Testing for Random Value - Thoughts on this Approach? OK, I have been working on a random image selector and queue system (so you don't see the same images too often). All was going swimmingly (as far as my crappy code does) until I got to the random bit. I wanted to test it, but how do you test for it? There is no Deb... | TITLE:
Testing for Random Value - Thoughts on this Approach?
QUESTION:
OK, I have been working on a random image selector and queue system (so you don't see the same images too often). All was going swimmingly (as far as my crappy code does) until I got to the random bit. I wanted to test it, but how do you test for i... | [
"unit-testing",
"testing",
"random",
"automated-tests"
] | 8 | 6 | 1,344 | 19 | 0 | 2008-09-23T18:16:23.390000 | 2008-09-23T18:49:18.397000 |
122,749 | 494,402 | How to get rid of the "Console Root" node in a MMC 3.0 snapin? | I've been creating snapins with the new MMC 3.0 classes and C#. I can't seem to find any examples of how to get rid of the "Console Root" node when creating the *.msc files. I looked through the examples in the SDK, but I can't seem to find anything for this. I have seen other snapins that do what I want, but I can't t... | If I've understood you correctly, this isn't specific to MMC3, but it did take me a while to realise. Right-click on the node, and click New Window from Here. Then switch back to the Console Root window, and close it (Ctrl+F4). Inside the.msc, it's //View/BookMark/@NodeID, which needs to be "2" (etc.), instead of "1". | How to get rid of the "Console Root" node in a MMC 3.0 snapin? I've been creating snapins with the new MMC 3.0 classes and C#. I can't seem to find any examples of how to get rid of the "Console Root" node when creating the *.msc files. I looked through the examples in the SDK, but I can't seem to find anything for thi... | TITLE:
How to get rid of the "Console Root" node in a MMC 3.0 snapin?
QUESTION:
I've been creating snapins with the new MMC 3.0 classes and C#. I can't seem to find any examples of how to get rid of the "Console Root" node when creating the *.msc files. I looked through the examples in the SDK, but I can't seem to fin... | [
"c#",
"mmc",
"mmc3"
] | 3 | 7 | 3,004 | 3 | 0 | 2008-09-23T18:17:13.980000 | 2009-01-30T03:37:28.817000 |
122,752 | 122,922 | What is the recommended toolchain for formatting XML DocBook? | I've seen Best tools for working with DocBook XML documents, but my question is slightly different. Which is the currently recommended formatting toolchain - as opposed to editing tool - for XML DocBook? In Eric Raymond's 'The Art of Unix Programming' from 2003 (an excellent book!), the suggestion is XML-FO (XML Format... | I've been doing some manual writing with DocBook, under cygwin, to produce One Page HTML, Many Pages HTML, CHM and PDF. I installed the following: The docbook stylesheets (xsl) repository. xmllint, to test if the xml is correct. xsltproc, to process the xml with the stylesheets. Apache's fop, to produce PDF's.I make su... | What is the recommended toolchain for formatting XML DocBook? I've seen Best tools for working with DocBook XML documents, but my question is slightly different. Which is the currently recommended formatting toolchain - as opposed to editing tool - for XML DocBook? In Eric Raymond's 'The Art of Unix Programming' from 2... | TITLE:
What is the recommended toolchain for formatting XML DocBook?
QUESTION:
I've seen Best tools for working with DocBook XML documents, but my question is slightly different. Which is the currently recommended formatting toolchain - as opposed to editing tool - for XML DocBook? In Eric Raymond's 'The Art of Unix P... | [
"xml",
"apache",
"pdf",
"apache-fop",
"docbook"
] | 24 | 14 | 5,505 | 13 | 0 | 2008-09-23T18:17:20.033000 | 2008-09-23T18:40:46.950000 |
122,763 | 122,785 | Need to create a layered dict from a flat one | I have a dict, that looks like this: { 'foo': { 'opt1': 1, 'opt2': 2, }, 'foo/bar': { 'opt3': 3, 'opt4': 4, }, 'foo/bar/baz': { 'opt5': 5, 'opt6': 6, } } And I need to get it to look like: { 'foo': { 'opt1': 1, 'opt2': 2, 'bar': { 'opt3': 3, 'opt4': 4, 'baz': { 'opt5': 5, 'opt6': 6, } } } } I should point out that ther... | Like this: def nest(d): rv = {} for key, value in d.iteritems(): node = rv for part in key.split('/'): node = node.setdefault(part, {}) node.update(value) return rv | Need to create a layered dict from a flat one I have a dict, that looks like this: { 'foo': { 'opt1': 1, 'opt2': 2, }, 'foo/bar': { 'opt3': 3, 'opt4': 4, }, 'foo/bar/baz': { 'opt5': 5, 'opt6': 6, } } And I need to get it to look like: { 'foo': { 'opt1': 1, 'opt2': 2, 'bar': { 'opt3': 3, 'opt4': 4, 'baz': { 'opt5': 5, '... | TITLE:
Need to create a layered dict from a flat one
QUESTION:
I have a dict, that looks like this: { 'foo': { 'opt1': 1, 'opt2': 2, }, 'foo/bar': { 'opt3': 3, 'opt4': 4, }, 'foo/bar/baz': { 'opt5': 5, 'opt6': 6, } } And I need to get it to look like: { 'foo': { 'opt1': 1, 'opt2': 2, 'bar': { 'opt3': 3, 'opt4': 4, 'ba... | [
"python",
"algorithm",
"performance"
] | 8 | 8 | 440 | 3 | 0 | 2008-09-23T18:19:25.083000 | 2008-09-23T18:23:31.923000 |
122,768 | 124,307 | How can I load different endpoints for WCF in SQL CLR? | We're deploying some new WCF calls in our SQL 2005 DB using the CLR. In testing, I hardcoded in the code the endpoint to connect to, and deployed it to our test server. When we go to deploy this to production, we will be deploying it to many different SQL DBs, and using different endpoints to connect to (same service r... | The solutions above would work, but we found that the best practice approach would be to create a new table storing all of the different endpoints into the DB. Then, we updated the CLR to make a call to this table to get the endpoint(s) that were needed. So each server would have the proper metadata loaded for it, and ... | How can I load different endpoints for WCF in SQL CLR? We're deploying some new WCF calls in our SQL 2005 DB using the CLR. In testing, I hardcoded in the code the endpoint to connect to, and deployed it to our test server. When we go to deploy this to production, we will be deploying it to many different SQL DBs, and ... | TITLE:
How can I load different endpoints for WCF in SQL CLR?
QUESTION:
We're deploying some new WCF calls in our SQL 2005 DB using the CLR. In testing, I hardcoded in the code the endpoint to connect to, and deployed it to our test server. When we go to deploy this to production, we will be deploying it to many diffe... | [
"wcf",
"clr",
"endpoints"
] | 3 | 2 | 810 | 2 | 0 | 2008-09-23T18:20:19.293000 | 2008-09-23T22:25:40.843000 |
122,775 | 123,303 | Repeating Header in a group | I am parsing text that has a heading and then data that applies to that heading. I need to break each data field into groups, and have the heading also apply to those groups. Here's an example: (Update: The text below has been updated to better reflect it's current layout, and to indicate an annotation.) Heading 1 Head... | 1) Loop through line by line. This isn't the place for a regex 2) You really need to clarify your question. It isn't clear if (Group 1) and ** The headings become different here ** are part of your input, or whether you're annotating it. | Repeating Header in a group I am parsing text that has a heading and then data that applies to that heading. I need to break each data field into groups, and have the heading also apply to those groups. Here's an example: (Update: The text below has been updated to better reflect it's current layout, and to indicate an... | TITLE:
Repeating Header in a group
QUESTION:
I am parsing text that has a heading and then data that applies to that heading. I need to break each data field into groups, and have the heading also apply to those groups. Here's an example: (Update: The text below has been updated to better reflect it's current layout, ... | [
".net",
"regex"
] | 1 | 2 | 302 | 1 | 0 | 2008-09-23T18:21:40.337000 | 2008-09-23T19:41:44.510000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.