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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
102,788 | 142,325 | What is the best way to encrypt a very short string in PHP? | I would like to encrypt strings which could potentially only be about three or four characters but run to about twenty characters. A hashing function ( md5, sha1, crypt etc) is not suitable as I would like to be able to decrypt the information as well. The mcrypt extension has a thoroughly daunting array of possibiliti... | I highly recommend the suggestions of Chris Kite. Without knowing more about what you're doing, why, and the threats you anticipate needing to protect against AES-128 is likely sufficient. The ability to use symmetric encryption is great for a standalone app that will be both the decryptor and encryptor of data. As bot... | What is the best way to encrypt a very short string in PHP? I would like to encrypt strings which could potentially only be about three or four characters but run to about twenty characters. A hashing function ( md5, sha1, crypt etc) is not suitable as I would like to be able to decrypt the information as well. The mcr... | TITLE:
What is the best way to encrypt a very short string in PHP?
QUESTION:
I would like to encrypt strings which could potentially only be about three or four characters but run to about twenty characters. A hashing function ( md5, sha1, crypt etc) is not suitable as I would like to be able to decrypt the informatio... | [
"php",
"encryption"
] | 12 | 4 | 11,872 | 8 | 0 | 2008-09-19T15:24:03.463000 | 2008-09-26T22:18:48.437000 |
102,789 | 109,047 | Table and List view with single Model in Qt | I have a 2D model where each row represents a frame in a video, and each column represents an object. The object can have different states on each frame, and this is stored in the model. Then I have a QTableView that shows this data. The model has header data, so each row has a header like "frame k" and each column has... | Two possible solutions: Try to use a proxy model (a subclass of QAbstractProxyModel) which accesses row headers as columns in a single row. Not trivial because the proxy model displays as data what the original model considers to be header. Display a second 2D view of your model, but hide everything except for the colu... | Table and List view with single Model in Qt I have a 2D model where each row represents a frame in a video, and each column represents an object. The object can have different states on each frame, and this is stored in the model. Then I have a QTableView that shows this data. The model has header data, so each row has... | TITLE:
Table and List view with single Model in Qt
QUESTION:
I have a 2D model where each row represents a frame in a video, and each column represents an object. The object can have different states on each frame, and this is stored in the model. Then I have a QTableView that shows this data. The model has header dat... | [
"qt",
"model",
"view"
] | 1 | 1 | 2,648 | 1 | 0 | 2008-09-19T15:24:09.703000 | 2008-09-20T19:11:32.877000 |
102,829 | 163,941 | Best Free Text Editor Supporting *More Than* 4GB Files? | I am looking for a text editor that will be able to load a 4+ Gigabyte file into it. Textpad doesn't work. I own a copy of it and have been to its support site, it just doesn't do it. Maybe I need new hardware, but that's a different question. The editor needs to be free OR, if its going to cost me, then no more than $... | glogg could also be considered, for a different usage: Caveat (reported by Simon Tewsi in the comments, Feb. 2013) One caveat - has two search functions, Main Search and Quick Find. The lower one, which I assume is Quick Find, is at least an order of magnitude slower than the upper one, which is fast. | Best Free Text Editor Supporting *More Than* 4GB Files? I am looking for a text editor that will be able to load a 4+ Gigabyte file into it. Textpad doesn't work. I own a copy of it and have been to its support site, it just doesn't do it. Maybe I need new hardware, but that's a different question. The editor needs to ... | TITLE:
Best Free Text Editor Supporting *More Than* 4GB Files?
QUESTION:
I am looking for a text editor that will be able to load a 4+ Gigabyte file into it. Textpad doesn't work. I own a copy of it and have been to its support site, it just doesn't do it. Maybe I need new hardware, but that's a different question. Th... | [
"editor",
"text-editor",
"text-files",
"large-files"
] | 82 | 54 | 276,631 | 24 | 0 | 2008-09-19T15:26:17.653000 | 2008-10-02T18:49:10.263000 |
102,832 | 103,547 | Get Form request with Seam/JSF | I have a query form that I would like to submit as a GET request so the result page may be bookmarked and otherwise RESTful. It's your classical text field with a submit button. How do I induce Seam/JSF to use GET and include the query expression as a parameter rather than POST, the default? | All you need to do is enable the SeamFilter in web.xml. See Blog Example for an example RESTful application using Seam. The key is to use a Seam page parameter, defined in WEB-INF/pages.xml | Get Form request with Seam/JSF I have a query form that I would like to submit as a GET request so the result page may be bookmarked and otherwise RESTful. It's your classical text field with a submit button. How do I induce Seam/JSF to use GET and include the query expression as a parameter rather than POST, the defau... | TITLE:
Get Form request with Seam/JSF
QUESTION:
I have a query form that I would like to submit as a GET request so the result page may be bookmarked and otherwise RESTful. It's your classical text field with a submit button. How do I induce Seam/JSF to use GET and include the query expression as a parameter rather th... | [
"java",
"rest",
"jsf",
"seam"
] | 2 | 3 | 2,942 | 3 | 0 | 2008-09-19T15:26:31.850000 | 2008-09-19T16:39:25.840000 |
102,833 | 102,867 | How do I use ASP.NET with Visual Studio 2008 | I haven't used Visual Studio since VB 3 and am trying to give it a shot with ASP.NET. It seems that it should be able to connect to a website (via some sort of ftp like protocol I figure) and allow to edit without having to manually upload/download the files. Is this the way it is supposed to work or am I mis-understan... | You really don't want to be working directly on a live web site, do you? That's just crazy. One little mistake and you've hosed the site. Visual Studio now has it's own built in web server. You use that for testing. If you really don't want to use that you can put IIS on your local machine or set up a Dev/QA server som... | How do I use ASP.NET with Visual Studio 2008 I haven't used Visual Studio since VB 3 and am trying to give it a shot with ASP.NET. It seems that it should be able to connect to a website (via some sort of ftp like protocol I figure) and allow to edit without having to manually upload/download the files. Is this the way... | TITLE:
How do I use ASP.NET with Visual Studio 2008
QUESTION:
I haven't used Visual Studio since VB 3 and am trying to give it a shot with ASP.NET. It seems that it should be able to connect to a website (via some sort of ftp like protocol I figure) and allow to edit without having to manually upload/download the file... | [
"asp.net",
"visual-studio"
] | 3 | 4 | 408 | 2 | 0 | 2008-09-19T15:26:33.927000 | 2008-09-19T15:28:53.013000 |
102,846 | 425,440 | Posting forms to a 404 + HttpHandler in IIS7: why has all POST data gone missing? | OK, this might sound a bit confusing and complicated, so bear with me. We've written a framework that allows us to define friendly URLs. If you surf to any arbitrary URL, IIS tries to display a 404 error (or, in some cases, 403;14 or 405). However, IIS is set up so that anything directed to those specific errors is sen... | Microsoft released a hotfix for this: http://support.microsoft.com/default.aspx/kb/956578 | Posting forms to a 404 + HttpHandler in IIS7: why has all POST data gone missing? OK, this might sound a bit confusing and complicated, so bear with me. We've written a framework that allows us to define friendly URLs. If you surf to any arbitrary URL, IIS tries to display a 404 error (or, in some cases, 403;14 or 405)... | TITLE:
Posting forms to a 404 + HttpHandler in IIS7: why has all POST data gone missing?
QUESTION:
OK, this might sound a bit confusing and complicated, so bear with me. We've written a framework that allows us to define friendly URLs. If you surf to any arbitrary URL, IIS tries to display a 404 error (or, in some cas... | [
"c#",
".net",
"iis-7",
"httphandler"
] | 2 | 2 | 4,933 | 5 | 0 | 2008-09-19T15:27:37.073000 | 2009-01-08T19:02:28.527000 |
102,866 | 366,863 | JSON string to list or other usable format in asp.net 2.0 | I have one JSON that is coming in a string format. I need to store it in a key-pair value or something like that. I am using asp.net 2.0 and can not use 3rd party DLL like Newtonsoft.Json.dll. I guess last option will be to use regular expression. Can anybody please help me in this? | If you go to http://www.json.org/ and look towards the bottom of the page there are dozens of json libraries most of them open source, I believe they list 8 for C#. If you can not reference one of these libraries, I think your best bet would be to find one with a permissive license and simply add the code to your proje... | JSON string to list or other usable format in asp.net 2.0 I have one JSON that is coming in a string format. I need to store it in a key-pair value or something like that. I am using asp.net 2.0 and can not use 3rd party DLL like Newtonsoft.Json.dll. I guess last option will be to use regular expression. Can anybody pl... | TITLE:
JSON string to list or other usable format in asp.net 2.0
QUESTION:
I have one JSON that is coming in a string format. I need to store it in a key-pair value or something like that. I am using asp.net 2.0 and can not use 3rd party DLL like Newtonsoft.Json.dll. I guess last option will be to use regular expressi... | [
"asp.net",
"json"
] | 1 | 4 | 2,829 | 4 | 0 | 2008-09-19T15:28:45.620000 | 2008-12-14T19:13:21.827000 |
102,877 | 253,805 | Can you use WMI to create an MSMQ message queue (PRIVATE queue)? | I need to create a PRIVATE message queue on a remote machine and I have resolved to fact that I can't do this with the.NET Framework in a straight forward manner. I can create a public message queue on a remote machine, but not a PRIVATE one. I can create a message queue (public or private) locally. I am wondering if a... | Yes, queue creation is simple in.NET, however you cannot create a private queue on a remote machine this way. I have been thinking about adding queue creation to the MSMQ WMI provider for some time... If you need it for a real product / customer, you can contact me and I will consider giving this feature a priority. Al... | Can you use WMI to create an MSMQ message queue (PRIVATE queue)? I need to create a PRIVATE message queue on a remote machine and I have resolved to fact that I can't do this with the.NET Framework in a straight forward manner. I can create a public message queue on a remote machine, but not a PRIVATE one. I can create... | TITLE:
Can you use WMI to create an MSMQ message queue (PRIVATE queue)?
QUESTION:
I need to create a PRIVATE message queue on a remote machine and I have resolved to fact that I can't do this with the.NET Framework in a straight forward manner. I can create a public message queue on a remote machine, but not a PRIVATE... | [
"wmi",
"msmq"
] | 1 | 1 | 3,952 | 5 | 0 | 2008-09-19T15:29:23.340000 | 2008-10-31T14:55:45.160000 |
102,881 | 102,909 | How can I get Datetime to display in military time in oracle? | I am running some queries to track down a problem with our backup logs and would like to display datetime fields in 24-hour military time. Is there a simple way to do this? I've tried googling and could find nothing. | select to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') from dual; Give the time in 24 hour format. More options are described here. | How can I get Datetime to display in military time in oracle? I am running some queries to track down a problem with our backup logs and would like to display datetime fields in 24-hour military time. Is there a simple way to do this? I've tried googling and could find nothing. | TITLE:
How can I get Datetime to display in military time in oracle?
QUESTION:
I am running some queries to track down a problem with our backup logs and would like to display datetime fields in 24-hour military time. Is there a simple way to do this? I've tried googling and could find nothing.
ANSWER:
select to_char... | [
"sql",
"oracle"
] | 5 | 17 | 27,870 | 4 | 0 | 2008-09-19T15:29:34.230000 | 2008-09-19T15:31:28.140000 |
102,894 | 109,540 | Is anyone targeting Google Chrome yet? (Web apps, plugins) | Is anyone writing applications specifically to take advantage of google chrome? Are there any enterprise users who are considering using it as the standard browser? | Yes, I have started to pay very good attention to Google Chrome for my applications. Recent analytics show that between 6%-15% of my users are accessing my applications (varies between 6 to 15 in different applications) on Chrome. And, this number looks on an upward trend. Thus, I can't really ignore it for testing rig... | Is anyone targeting Google Chrome yet? (Web apps, plugins) Is anyone writing applications specifically to take advantage of google chrome? Are there any enterprise users who are considering using it as the standard browser? | TITLE:
Is anyone targeting Google Chrome yet? (Web apps, plugins)
QUESTION:
Is anyone writing applications specifically to take advantage of google chrome? Are there any enterprise users who are considering using it as the standard browser?
ANSWER:
Yes, I have started to pay very good attention to Google Chrome for m... | [
"google-chrome"
] | 9 | 17 | 1,376 | 18 | 0 | 2008-09-19T15:30:43.883000 | 2008-09-20T21:51:05.630000 |
102,902 | 103,759 | What is a good CI build-process | What constitutes a good CI build-process? We use CI, but is deployment to production even a realistic CI goal when you have dependencies on several services that should be deployed too and other apps may depend on these too. Is a good good CI build process good enough when its automated to QA and manual from there? | Well "it depends":) We use our CI system to: build & unit test deploy to single box, run intergration tests and code analisys deploy to lab environment run acceptance tests in prod-like system drop builds that pass to code drop for prod deployment This is for a greenfield project of about a dozen services and databases... | What is a good CI build-process What constitutes a good CI build-process? We use CI, but is deployment to production even a realistic CI goal when you have dependencies on several services that should be deployed too and other apps may depend on these too. Is a good good CI build process good enough when its automated ... | TITLE:
What is a good CI build-process
QUESTION:
What constitutes a good CI build-process? We use CI, but is deployment to production even a realistic CI goal when you have dependencies on several services that should be deployed too and other apps may depend on these too. Is a good good CI build process good enough w... | [
"build-process",
"build-automation",
"continuous-integration"
] | 12 | 14 | 7,383 | 7 | 0 | 2008-09-19T15:31:02.573000 | 2008-09-19T17:09:44.160000 |
102,913 | 103,020 | Caching Data Objects when using Repository/Service Pattern and MVC | I have an MVC-based site, which is using a Repository/Service pattern for data access. The Services are written to be using in a majority of applications (console, winform, and web). Currently, the controllers communicate directly to the services. This has limited the ability to apply proper caching. I see my options a... | The easiest way would be to handle caching in your repository provider. That way you don't have to change out any code in the rest of your app; it will be oblivious to the fact that the data was served out of a cache rather than the repository. So, I'd create an interface that the controllers use to communicate with th... | Caching Data Objects when using Repository/Service Pattern and MVC I have an MVC-based site, which is using a Repository/Service pattern for data access. The Services are written to be using in a majority of applications (console, winform, and web). Currently, the controllers communicate directly to the services. This ... | TITLE:
Caching Data Objects when using Repository/Service Pattern and MVC
QUESTION:
I have an MVC-based site, which is using a Repository/Service pattern for data access. The Services are written to be using in a majority of applications (console, winform, and web). Currently, the controllers communicate directly to t... | [
"asp.net-mvc",
"caching",
"design-patterns"
] | 47 | 25 | 33,701 | 3 | 0 | 2008-09-19T15:31:39.327000 | 2008-09-19T15:40:01.927000 |
102,929 | 103,014 | How is AJAX implemented, and how does it help web dev? | From http://en.wikipedia.org/wiki/AJAX, I get a fairly good grasp of what AJAX is. However, it looks like in order to learn it, I'd have to delve into multiple technologies at the same time to get any benefit out of it. So two questions: What are resources that can help me understand/use AJAX? What sort of website woul... | There are many libraries out there that can help you get benefit out of AJAX without learning about implementing callbacks, etc. Are you using.NET? Look at http://ajax.asp.net. If you're not, then take a look at tools like qcodo for PHP, and learn about prototype.js, jquery, etc. As far as websites that would benefit: ... | How is AJAX implemented, and how does it help web dev? From http://en.wikipedia.org/wiki/AJAX, I get a fairly good grasp of what AJAX is. However, it looks like in order to learn it, I'd have to delve into multiple technologies at the same time to get any benefit out of it. So two questions: What are resources that can... | TITLE:
How is AJAX implemented, and how does it help web dev?
QUESTION:
From http://en.wikipedia.org/wiki/AJAX, I get a fairly good grasp of what AJAX is. However, it looks like in order to learn it, I'd have to delve into multiple technologies at the same time to get any benefit out of it. So two questions: What are ... | [
"ajax",
"resources"
] | 2 | 1 | 1,111 | 6 | 0 | 2008-09-19T15:32:56.407000 | 2008-09-19T15:39:35.063000 |
102,940 | 102,996 | Generate a Sandcastle help file for a website without the "Xml Documentation File" option | I am trying to generate a Sandcastle help file for a website. In the properties window for project, there aren't any options for creating the XML Documentation File required for Sandcastle. The Build tab in the property pages only contains options for: Start Action, Build Solution Action, and Accessibility validation. ... | The problem with websites in VS2k5 is that, when they get compiled, the resulting dlls are a mess. No namespaces, weird names, etc. If you truly want to generate a Sandcastle Help File, look at converting your website into a web application. You can definitely generate source code docs for that. | Generate a Sandcastle help file for a website without the "Xml Documentation File" option I am trying to generate a Sandcastle help file for a website. In the properties window for project, there aren't any options for creating the XML Documentation File required for Sandcastle. The Build tab in the property pages only... | TITLE:
Generate a Sandcastle help file for a website without the "Xml Documentation File" option
QUESTION:
I am trying to generate a Sandcastle help file for a website. In the properties window for project, there aren't any options for creating the XML Documentation File required for Sandcastle. The Build tab in the p... | [
"asp.net",
"visual-studio",
"sandcastle"
] | 2 | 1 | 2,169 | 2 | 0 | 2008-09-19T15:33:42.253000 | 2008-09-19T15:37:52.183000 |
102,956 | 102,982 | C# VB.NET Conversion | Which tools do you use to convert between C# and VB.NET? | This has been asked so many times. Like here: What is the best C# to VB.net converter? | C# VB.NET Conversion Which tools do you use to convert between C# and VB.NET? | TITLE:
C# VB.NET Conversion
QUESTION:
Which tools do you use to convert between C# and VB.NET?
ANSWER:
This has been asked so many times. Like here: What is the best C# to VB.net converter? | [
"c#",
".net",
"vb.net"
] | 1 | 4 | 555 | 5 | 0 | 2008-09-19T15:35:21.907000 | 2008-09-19T15:36:59.267000 |
102,964 | 103,973 | Calculate total sum of all numbers in c:forEach loop | I have a Java bean like this: class Person { int age; String name; } I'd like to iterate over a collection of these beans in a JSP, showing each person in a HTML table row, and in the last row of the table I'd like to show the total of all the ages. The code to generate the table rows will look something like this: ${p... | Note: I tried combining answers to make a comprehensive list. I mentioned names where appropriate to give credit where it is due. There are many ways to solve this problem, with pros/cons associated with each: Pure JSP Solution As ScArcher2 mentioned above, a very easy and simple solution to the problem is to implement... | Calculate total sum of all numbers in c:forEach loop I have a Java bean like this: class Person { int age; String name; } I'd like to iterate over a collection of these beans in a JSP, showing each person in a HTML table row, and in the last row of the table I'd like to show the total of all the ages. The code to gener... | TITLE:
Calculate total sum of all numbers in c:forEach loop
QUESTION:
I have a Java bean like this: class Person { int age; String name; } I'd like to iterate over a collection of these beans in a JSP, showing each person in a HTML table row, and in the last row of the table I'd like to show the total of all the ages.... | [
"jsp",
"foreach",
"sum",
"jstl"
] | 21 | 44 | 57,736 | 7 | 0 | 2008-09-19T15:35:42.920000 | 2008-09-19T17:39:59.673000 |
103,000 | 103,103 | Should I store a database ID field in ViewState? | I need to retrieve a record from a database, display it on a web page (I'm using ASP.NET) but store the ID (primary key) from that record somewhere so I can go back to the database later with that ID (perhaps to do an update). I know there are probably a few ways to do this, such as storing the ID in ViewState or a hid... | It depends. Do you care if anyone sees the record id? If you do then both hidden fields and viewstate are not suitable; you need to store it in session state, or encrypt viewstate. Do you care if someone submits the form with a bogus id? If you do then you can't use a hidden field (and you need to look at CSRF protecti... | Should I store a database ID field in ViewState? I need to retrieve a record from a database, display it on a web page (I'm using ASP.NET) but store the ID (primary key) from that record somewhere so I can go back to the database later with that ID (perhaps to do an update). I know there are probably a few ways to do t... | TITLE:
Should I store a database ID field in ViewState?
QUESTION:
I need to retrieve a record from a database, display it on a web page (I'm using ASP.NET) but store the ID (primary key) from that record somewhere so I can go back to the database later with that ID (perhaps to do an update). I know there are probably ... | [
"asp.net",
"viewstate"
] | 3 | 6 | 1,954 | 7 | 0 | 2008-09-19T15:38:18.827000 | 2008-09-19T15:46:33.847000 |
103,006 | 103,057 | What's the easiest way to convert latitude and longitude to double values | I've got a CSV file containing latitude and longitude values, such as: "25°36'55.57""E","45°39'12.52""N" Anyone have a quick and simple piece of C# code to convert this to double values? Thanks | If you mean C# code to do this: result = 25 + (36 / 60) + (55.57 / 3600) First you'll need to parse the expression with Regex or some other mechanism and split it into the individual parts. Then: String hour = "25"; String minute = "36"; String second = "55.57"; Double result = (hour) + (minute) / 60 + (second) / 3600;... | What's the easiest way to convert latitude and longitude to double values I've got a CSV file containing latitude and longitude values, such as: "25°36'55.57""E","45°39'12.52""N" Anyone have a quick and simple piece of C# code to convert this to double values? Thanks | TITLE:
What's the easiest way to convert latitude and longitude to double values
QUESTION:
I've got a CSV file containing latitude and longitude values, such as: "25°36'55.57""E","45°39'12.52""N" Anyone have a quick and simple piece of C# code to convert this to double values? Thanks
ANSWER:
If you mean C# code to do... | [
"c#",
"gis"
] | 9 | 11 | 13,684 | 3 | 0 | 2008-09-19T15:38:59.917000 | 2008-09-19T15:43:41.903000 |
103,016 | 121,892 | Broken pipe no longer ends programs? | When you pipe two process and kill the one at the "output" of the pipe, the first process used to receive the "Broken Pipe" signal, which usually terminated it aswell. E.g. running $> do_something_intensive | less and then exiting less used to return you immediately to a responsive shell, on a SuSE8 or former releases.... | Thanks for your advices, the solution is getting closer... According to the manpage of tcsh, "non-login shells inherit the terminate behavior from their parents. Other signals have the values which the shell inherited from its parent." Which suggest my terminal is actually the root of the problem... if it ignored SIGPI... | Broken pipe no longer ends programs? When you pipe two process and kill the one at the "output" of the pipe, the first process used to receive the "Broken Pipe" signal, which usually terminated it aswell. E.g. running $> do_something_intensive | less and then exiting less used to return you immediately to a responsive ... | TITLE:
Broken pipe no longer ends programs?
QUESTION:
When you pipe two process and kill the one at the "output" of the pipe, the first process used to receive the "Broken Pipe" signal, which usually terminated it aswell. E.g. running $> do_something_intensive | less and then exiting less used to return you immediatel... | [
"linux",
"shell",
"tcsh",
"broken-pipe"
] | 5 | 0 | 7,905 | 3 | 0 | 2008-09-19T15:39:44.143000 | 2008-09-23T15:50:35.503000 |
103,033 | 113,823 | What are pros and cons of Msmqdistributor service of Enterprise Library? | We are using EntLib Logging Application Block. And also it turned out that we should use msmq for logging because of performance. Now we are trying to use Msmqdistributor service to log those messages in the queue. What are pros and cons of Msmqdistributor service of Enterprise Library? Please share your experience. | The main drawback is going to be the Microsoft Message Queue (MSMQ) itself. MSMQ has been around for awhile and it is a pretty cool tool. It does however lack utilities. Because of the way that data is stored in the queue, most people end up needing to write some helper utilities for debugging and manually manipulating... | What are pros and cons of Msmqdistributor service of Enterprise Library? We are using EntLib Logging Application Block. And also it turned out that we should use msmq for logging because of performance. Now we are trying to use Msmqdistributor service to log those messages in the queue. What are pros and cons of Msmqdi... | TITLE:
What are pros and cons of Msmqdistributor service of Enterprise Library?
QUESTION:
We are using EntLib Logging Application Block. And also it turned out that we should use msmq for logging because of performance. Now we are trying to use Msmqdistributor service to log those messages in the queue. What are pros ... | [
"enterprise-library"
] | 2 | 4 | 1,805 | 1 | 0 | 2008-09-19T15:41:04.797000 | 2008-09-22T08:38:44.520000 |
103,034 | 4,354,724 | VS2008 Debugger does not break on unhandled exception | I'm having an odd problem with my vs debugger. When running my program under the vs debugger, the debugger does not break on an unhandled exception. Instead control is returned to VS as if the program exited normally. If I look in the output tab, There is a first-chance exeption listed just before the thread terminatio... | If you're on a 64-bit OS, there's a pretty good chance you're being bitten by an OS-level behavior that causes exceptions to disappear. The most reliable way to reproduce it is to make a new WinForm application that simply throws an exception in OnLoad; it will appear to not get thrown. Take a look at these: Visual Stu... | VS2008 Debugger does not break on unhandled exception I'm having an odd problem with my vs debugger. When running my program under the vs debugger, the debugger does not break on an unhandled exception. Instead control is returned to VS as if the program exited normally. If I look in the output tab, There is a first-ch... | TITLE:
VS2008 Debugger does not break on unhandled exception
QUESTION:
I'm having an odd problem with my vs debugger. When running my program under the vs debugger, the debugger does not break on an unhandled exception. Instead control is returned to VS as if the program exited normally. If I look in the output tab, T... | [
"visual-studio-2008",
"debugging",
"unhandled"
] | 2 | 5 | 8,002 | 6 | 0 | 2008-09-19T15:41:13.780000 | 2010-12-04T17:13:00.887000 |
103,035 | 103,052 | Where can I see what Color properties in .NET like "BlanchedAlmond" look like? | I'm in the middle of writing code in.Net to draw something in my app and I need to pick a color to use. But what does the color "Chartreuse" look like? Isn't there a nice bitmap that shows what each of the system colors look like somewhere? Thanks! | Try this site. This site is nice because it shows how the color will look as foreground and background color. | Where can I see what Color properties in .NET like "BlanchedAlmond" look like? I'm in the middle of writing code in.Net to draw something in my app and I need to pick a color to use. But what does the color "Chartreuse" look like? Isn't there a nice bitmap that shows what each of the system colors look like somewhere? ... | TITLE:
Where can I see what Color properties in .NET like "BlanchedAlmond" look like?
QUESTION:
I'm in the middle of writing code in.Net to draw something in my app and I need to pick a color to use. But what does the color "Chartreuse" look like? Isn't there a nice bitmap that shows what each of the system colors loo... | [
".net",
"colors"
] | 0 | 2 | 288 | 5 | 0 | 2008-09-19T15:41:25.857000 | 2008-09-19T15:43:12.357000 |
103,051 | 103,147 | How do you move from the Proof of Concept phase to working on a production-ready solution? | I'm working on a project that's been accepted as a proof of concept and is now on the schedule as an actual production project. I'm curious how others approach this transition. I've heard from various sources that when a project starts as a proof of concept it's often a good idea to trash all of the code written during... | As you already kind of hinted at, the answer is, "It Depends" Starting over is good because you can help trim out the stuff that was added while you were initially working out the kinks but isn't really needed. It also gives you a chance to give more consideration to how you want the architecture to be -- without alrea... | How do you move from the Proof of Concept phase to working on a production-ready solution? I'm working on a project that's been accepted as a proof of concept and is now on the schedule as an actual production project. I'm curious how others approach this transition. I've heard from various sources that when a project ... | TITLE:
How do you move from the Proof of Concept phase to working on a production-ready solution?
QUESTION:
I'm working on a project that's been accepted as a proof of concept and is now on the schedule as an actual production project. I'm curious how others approach this transition. I've heard from various sources th... | [
"project-management"
] | 2 | 3 | 1,028 | 5 | 0 | 2008-09-19T15:43:10.203000 | 2008-09-19T15:51:19.340000 |
103,059 | 103,403 | Where to start with source-control | Anyone have any suggestions on where to start for a newbie wanting to try out some sort of source-control along with a new journey into ASP.NET? SVN, VSS, CVS...I dont even know where to start! | Lots of people here have suggested introductions and comprehensive how-tos, which are all good for telling you how to do what you want. In addition, I'd give three pieces of advice for the novice on how to know what you want: 1) Version-control EVERYTHING (that is, everything you write). Version-control the project fil... | Where to start with source-control Anyone have any suggestions on where to start for a newbie wanting to try out some sort of source-control along with a new journey into ASP.NET? SVN, VSS, CVS...I dont even know where to start! | TITLE:
Where to start with source-control
QUESTION:
Anyone have any suggestions on where to start for a newbie wanting to try out some sort of source-control along with a new journey into ASP.NET? SVN, VSS, CVS...I dont even know where to start!
ANSWER:
Lots of people here have suggested introductions and comprehensi... | [
"svn",
"version-control",
"cvs",
"visual-sourcesafe"
] | 20 | 12 | 1,380 | 29 | 0 | 2008-09-19T15:43:47.893000 | 2008-09-19T16:21:16.057000 |
103,121 | 103,149 | How do I figure out who has a SQL Server 2005 database in Single User Mode? | I have a database in single user mode and I am trying to drop it so I can re-run the creation scripts on it, but I'm being locked out from it. How do I figure out who has the lock on it? How do I disable that lock? | run sp_who, find the spid with the database name you require, kill the spid. | How do I figure out who has a SQL Server 2005 database in Single User Mode? I have a database in single user mode and I am trying to drop it so I can re-run the creation scripts on it, but I'm being locked out from it. How do I figure out who has the lock on it? How do I disable that lock? | TITLE:
How do I figure out who has a SQL Server 2005 database in Single User Mode?
QUESTION:
I have a database in single user mode and I am trying to drop it so I can re-run the creation scripts on it, but I'm being locked out from it. How do I figure out who has the lock on it? How do I disable that lock?
ANSWER:
ru... | [
"sql-server-2005"
] | 0 | 1 | 135 | 2 | 0 | 2008-09-19T15:49:14.213000 | 2008-09-19T15:51:23.460000 |
103,155 | 103,224 | JavaScript Debugger | Does anyone know of a really good editor to debug JavaScript (other then Visual Studio 2008 and FireBug)? | Here is an article, Advanced JavaScript Debugging Techniques, that describes the use of several tools. One new tool I learned about that I hadn't heard of before is JSLint. Sometimes JSLint just immediately shows you your dodgy code that is causing the issue. | JavaScript Debugger Does anyone know of a really good editor to debug JavaScript (other then Visual Studio 2008 and FireBug)? | TITLE:
JavaScript Debugger
QUESTION:
Does anyone know of a really good editor to debug JavaScript (other then Visual Studio 2008 and FireBug)?
ANSWER:
Here is an article, Advanced JavaScript Debugging Techniques, that describes the use of several tools. One new tool I lear... | [
"ide",
"editor"
] | 18 | 8 | 4,221 | 9 | 0 | 2008-09-19T15:51:48.280000 | 2008-09-19T15:57:36.067000 |
103,158 | 103,327 | IIS ASP Caching | I'm trying to configure ASP caching in IIS, following the instructions of a software I purchased. This is supposed to make it run faster. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a5766228-828e-4e31-a92b-51da7d24d569.mspx?mfr=true The software instructions point to that article. The pro... | Right click on "Web sites" in IIS manager. Choose Properties->Home directory->Configuration and you'll see "Cache options" tab. The trick is to click on "Web sites" as opposed to proceeding to specific web site. | IIS ASP Caching I'm trying to configure ASP caching in IIS, following the instructions of a software I purchased. This is supposed to make it run faster. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a5766228-828e-4e31-a92b-51da7d24d569.mspx?mfr=true The software instructions point to that ... | TITLE:
IIS ASP Caching
QUESTION:
I'm trying to configure ASP caching in IIS, following the instructions of a software I purchased. This is supposed to make it run faster. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a5766228-828e-4e31-a92b-51da7d24d569.mspx?mfr=true The software instructi... | [
"iis",
"caching",
"asp-classic"
] | 2 | 7 | 8,180 | 1 | 0 | 2008-09-19T15:51:54.783000 | 2008-09-19T16:11:19.840000 |
103,167 | 1,120,005 | what is the difference between OLE DB and ODBC data sources? | I was reading a MS Excel help article about pivotcache and wonder what they mean by OLE DB and ODBC sources...You should use the CommandText property instead of the SQL property, which now exists primarily for compatibility with earlier versions of Microsoft Excel. If you use both properties, the CommandText property’s... | According to ADO: ActiveX Data Objects, a book by Jason T. Roff, published by O'Reilly Media in 2001 (excellent diagram here), he says precisely what MOZILLA said. (directly from page 7 of that book) ODBC provides access only to relational databases OLE DB provides the following features Access to data regardless of it... | what is the difference between OLE DB and ODBC data sources? I was reading a MS Excel help article about pivotcache and wonder what they mean by OLE DB and ODBC sources...You should use the CommandText property instead of the SQL property, which now exists primarily for compatibility with earlier versions of Microsoft ... | TITLE:
what is the difference between OLE DB and ODBC data sources?
QUESTION:
I was reading a MS Excel help article about pivotcache and wonder what they mean by OLE DB and ODBC sources...You should use the CommandText property instead of the SQL property, which now exists primarily for compatibility with earlier vers... | [
"odbc",
"oledb"
] | 195 | 166 | 302,305 | 11 | 0 | 2008-09-19T15:52:44.847000 | 2009-07-13T15:05:52.067000 |
103,174 | 103,292 | Figuring out the right language for the job: branching out from C# | I work in a Microsoft environment, so I can use my C# hammer on any nails I come across. That being said, what languages (compiled, interpreted, scripting, functional, any types!) complement knowing C#, and for what purposes? For example, I've moved a lot of script functionality away from compiled console apps and into... | Python/Perl/Ruby/PowerShell are great supplements to C#/VB.NET. If your boss hands you a text file and says insert it into the database once or twice, then any of Perl/Python/Ruby (I'm not sure about powershell but I imagine it is not that much more difficult) should be fine to parse it. Either way, for your main appli... | Figuring out the right language for the job: branching out from C# I work in a Microsoft environment, so I can use my C# hammer on any nails I come across. That being said, what languages (compiled, interpreted, scripting, functional, any types!) complement knowing C#, and for what purposes? For example, I've moved a l... | TITLE:
Figuring out the right language for the job: branching out from C#
QUESTION:
I work in a Microsoft environment, so I can use my C# hammer on any nails I come across. That being said, what languages (compiled, interpreted, scripting, functional, any types!) complement knowing C#, and for what purposes? For examp... | [
"asp.net",
"programming-languages"
] | 4 | 7 | 487 | 14 | 0 | 2008-09-19T15:53:19.697000 | 2008-09-19T16:06:48.883000 |
103,178 | 103,392 | Where can I find Microsoft assemblies that are not already in Visual Studio? | I figured someone can answer the question generally but if anyone wants to get specific I am trying to use: using System.Web.Security.SingleSignOn; using System.Web.Security.SingleSignOn.Authorization; I've googled my brains out and this is the closest answer I found: "We discussed this offline, but it looks like the A... | I found an install log showing that it was expected to be in C:\WINDOWS\ADFS\System.Web.Security.SingleSignon.dll on Windows Server 2003. You probably need to have active directory installed for it to appear there because I checked one of my 2003 servers without AD and it wasn't there. Normally I would guess the DLL wo... | Where can I find Microsoft assemblies that are not already in Visual Studio? I figured someone can answer the question generally but if anyone wants to get specific I am trying to use: using System.Web.Security.SingleSignOn; using System.Web.Security.SingleSignOn.Authorization; I've googled my brains out and this is th... | TITLE:
Where can I find Microsoft assemblies that are not already in Visual Studio?
QUESTION:
I figured someone can answer the question generally but if anyone wants to get specific I am trying to use: using System.Web.Security.SingleSignOn; using System.Web.Security.SingleSignOn.Authorization; I've googled my brains ... | [
".net",
"visual-studio",
"assemblies",
"gac",
"adfs"
] | 1 | 2 | 4,906 | 4 | 0 | 2008-09-19T15:53:44.953000 | 2008-09-19T16:19:57.853000 |
103,179 | 103,295 | How do I set an Application's Icon Globally in Swing? | I know I can specify one for each form, or for the root form and then it'll cascade through to all of the children forms, but I'd like to have a way of overriding the default Java Coffee Cup for all forms even those I might forget. Any suggestions? | You can make the root form (by which I assume you mean JFrame ) be your own subclass of JFrame, and put standard functionality in its constructor, such as: this.setIconImage(STANDARD_ICON); You can bundle other standard stuff in here too, such as memorizing the frame's window metrics as a user preference, managing spla... | How do I set an Application's Icon Globally in Swing? I know I can specify one for each form, or for the root form and then it'll cascade through to all of the children forms, but I'd like to have a way of overriding the default Java Coffee Cup for all forms even those I might forget. Any suggestions? | TITLE:
How do I set an Application's Icon Globally in Swing?
QUESTION:
I know I can specify one for each form, or for the root form and then it'll cascade through to all of the children forms, but I'd like to have a way of overriding the default Java Coffee Cup for all forms even those I might forget. Any suggestions?... | [
"java",
"swing"
] | 9 | 9 | 14,260 | 4 | 0 | 2008-09-19T15:54:00.520000 | 2008-09-19T16:07:08.930000 |
103,202 | 233,559 | Is there a macro recorder for Eclipse? | Is there a good Eclipse plugin for recording and playing back macros? I've tried this one, but it didn't do me any good- it seemed like it wasn't ready for prime time. I know about editor templates, but I'm looking for something that I can use to record my keystrokes and then apply multiple times against a wad of text.... | I put something together over the last month or so that you may find useful. It has limitations since the Eclipse editor/commands weren't designed with macro support in mind, but I think it works reasonably well. I just posted Practical Macro at SourceForge a couple of days ago. It requires Eclipse 3.4. | Is there a macro recorder for Eclipse? Is there a good Eclipse plugin for recording and playing back macros? I've tried this one, but it didn't do me any good- it seemed like it wasn't ready for prime time. I know about editor templates, but I'm looking for something that I can use to record my keystrokes and then appl... | TITLE:
Is there a macro recorder for Eclipse?
QUESTION:
Is there a good Eclipse plugin for recording and playing back macros? I've tried this one, but it didn't do me any good- it seemed like it wasn't ready for prime time. I know about editor templates, but I'm looking for something that I can use to record my keystr... | [
"java",
"eclipse",
"ide",
"editor",
"macros"
] | 115 | 40 | 49,034 | 9 | 0 | 2008-09-19T15:55:52.373000 | 2008-10-24T13:36:39.970000 |
103,203 | 103,768 | How would you implement a secure static login credentials system in Java? | We recently had a security audit and it exposed several weaknesses in the systems that are in place here. One of the tasks that resulted from it is that we need to update our partner credentials system make it more secure. The "old" way of doing things was to generate a (bad) password, give it to the partner with an ID... | Password Generation As far as encoding a password for transmission, the only encoding that will truly add security is encryption. Using Base-64 or hexadecimal isn't for security, but just to be able to include it in a text format like XML. Entropy is used to measure password quality. So, choosing each bit with a random... | How would you implement a secure static login credentials system in Java? We recently had a security audit and it exposed several weaknesses in the systems that are in place here. One of the tasks that resulted from it is that we need to update our partner credentials system make it more secure. The "old" way of doing ... | TITLE:
How would you implement a secure static login credentials system in Java?
QUESTION:
We recently had a security audit and it exposed several weaknesses in the systems that are in place here. One of the tasks that resulted from it is that we need to update our partner credentials system make it more secure. The "... | [
"java",
"security",
"encryption",
"https"
] | 3 | 6 | 2,453 | 3 | 0 | 2008-09-19T15:56:10.173000 | 2008-09-19T17:11:02.067000 |
103,240 | 103,388 | Finding First Row in a RDLC Table | I have a table in a RDLC report which is utilized as a subreport, and the first column of this table is a static string. Does anyone know how I can determine if a row is the first in the table. I tried using "=First("My String")" but it didn't work. | Aggregate functions work with "Scope', referring to the paragraph scope in this MSDN article, might help... http://msdn.microsoft.com/fr-fr/library/ms252112(VS.80).aspx " From what I understand you may have to define a scope or try =First("MyString", Nothing). | Finding First Row in a RDLC Table I have a table in a RDLC report which is utilized as a subreport, and the first column of this table is a static string. Does anyone know how I can determine if a row is the first in the table. I tried using "=First("My String")" but it didn't work. | TITLE:
Finding First Row in a RDLC Table
QUESTION:
I have a table in a RDLC report which is utilized as a subreport, and the first column of this table is a static string. Does anyone know how I can determine if a row is the first in the table. I tried using "=First("My String")" but it didn't work.
ANSWER:
Aggregate... | [
"asp.net",
"asp.net-2.0",
"rdlc"
] | 0 | 1 | 5,970 | 3 | 0 | 2008-09-19T15:59:31.083000 | 2008-09-19T16:19:49.350000 |
103,271 | 103,314 | Does Weblogic 9.x support the 2.4 Servlet standard? | Seems like a simple enough question but I can't seem to find the answer. And hey, dead simple questions like this with dead simple answers is what Joel and Jeff want SO to be all about, right? | http://e-docs.bea.com/wls/docs92/compatibility/compatibility.html BEA WebLogic Server is one hundred percent J2EE 1.4 compatible...which means that it supports the servlet 2.4 specification. | Does Weblogic 9.x support the 2.4 Servlet standard? Seems like a simple enough question but I can't seem to find the answer. And hey, dead simple questions like this with dead simple answers is what Joel and Jeff want SO to be all about, right? | TITLE:
Does Weblogic 9.x support the 2.4 Servlet standard?
QUESTION:
Seems like a simple enough question but I can't seem to find the answer. And hey, dead simple questions like this with dead simple answers is what Joel and Jeff want SO to be all about, right?
ANSWER:
http://e-docs.bea.com/wls/docs92/compatibility/c... | [
"java",
"servlets",
"weblogic"
] | 0 | 2 | 1,412 | 1 | 0 | 2008-09-19T16:03:24.883000 | 2008-09-19T16:09:35.960000 |
103,273 | 103,311 | What's the best way to make a mobile friendly site? | Speaking entirely in technology-free terms, what is the best way to make a mobile friendly site? That is, I want to make a site that will work on a regular computer but also have mobile versions of the pages. Should I rewrite each page? The pages will probably have different functionality, so should I rewrite the backe... | I added a mobile presentation layer to an operational site about a year ago. Based on the architecture of the site (hopefully this isn't too technology dependent for you) I added a new set of JSPs to accommodate mobile browsers (sidenote: see http://wurfl.sourceforge.net/ for a great way to build mobile pages independe... | What's the best way to make a mobile friendly site? Speaking entirely in technology-free terms, what is the best way to make a mobile friendly site? That is, I want to make a site that will work on a regular computer but also have mobile versions of the pages. Should I rewrite each page? The pages will probably have di... | TITLE:
What's the best way to make a mobile friendly site?
QUESTION:
Speaking entirely in technology-free terms, what is the best way to make a mobile friendly site? That is, I want to make a site that will work on a regular computer but also have mobile versions of the pages. Should I rewrite each page? The pages wil... | [
"mobile"
] | 8 | 1 | 1,794 | 7 | 0 | 2008-09-19T16:03:39.560000 | 2008-09-19T16:09:16.147000 |
103,280 | 103,926 | Portable way to catch signals and report problem to the user | If by some miracle a segfault occurs in our program, I want to catch the SIGSEGV and let the user (possibly a GUI client) know with a single return code that a serious problem has occurred. At the same time I would like to display information on the command line to show which signal was caught. Today our signal handler... | This table lists all of the functions that POSIX guarantees to be async-signal-safe and so can be called from a signal handler. By using the 'write' command from this table, the following relatively "ugly" solution hopefully will do the trick: #include #ifdef _WINDOWS_ #define _exit _Exit #else #include #endif
#define... | Portable way to catch signals and report problem to the user If by some miracle a segfault occurs in our program, I want to catch the SIGSEGV and let the user (possibly a GUI client) know with a single return code that a serious problem has occurred. At the same time I would like to display information on the command l... | TITLE:
Portable way to catch signals and report problem to the user
QUESTION:
If by some miracle a segfault occurs in our program, I want to catch the SIGSEGV and let the user (possibly a GUI client) know with a single return code that a serious problem has occurred. At the same time I would like to display informatio... | [
"c++",
"c",
"posix",
"signals",
"reentrancy"
] | 4 | 12 | 3,076 | 4 | 0 | 2008-09-19T16:05:34.377000 | 2008-09-19T17:32:48.007000 |
103,281 | 103,293 | What happens if MySQL connections continually aren't closed on PHP pages? | At the beginning of each PHP page I open up the connection to MySQL, use it throughout the page and close it at the end of the page. However, I often redirect in the middle of the page to another page and so in those cases the connection does not be closed. I understand that this is not bad for performance of the web s... | From: https://www.php.net/manual/en/mysqli.close.php "Open connections (and similar resources) are automatically destroyed at the end of script execution. However, you should still close or free all connections, result sets and statement handles as soon as they are no longer required. This will help return resources to... | What happens if MySQL connections continually aren't closed on PHP pages? At the beginning of each PHP page I open up the connection to MySQL, use it throughout the page and close it at the end of the page. However, I often redirect in the middle of the page to another page and so in those cases the connection does not... | TITLE:
What happens if MySQL connections continually aren't closed on PHP pages?
QUESTION:
At the beginning of each PHP page I open up the connection to MySQL, use it throughout the page and close it at the end of the page. However, I often redirect in the middle of the page to another page and so in those cases the c... | [
"php",
"mysql"
] | 9 | 18 | 8,929 | 3 | 0 | 2008-09-19T16:05:43.580000 | 2008-09-19T16:06:51.487000 |
103,298 | 103,381 | How to convert a unmanaged double to a managed string? | From managed C++, I am calling an unmanaged C++ method which returns a double. How can I convert this double into a managed string? | I assume something like (gcnew System::Double(d))->ToString() | How to convert a unmanaged double to a managed string? From managed C++, I am calling an unmanaged C++ method which returns a double. How can I convert this double into a managed string? | TITLE:
How to convert a unmanaged double to a managed string?
QUESTION:
From managed C++, I am calling an unmanaged C++ method which returns a double. How can I convert this double into a managed string?
ANSWER:
I assume something like (gcnew System::Double(d))->ToString() | [
"c++",
"double",
"unmanaged",
"managed"
] | 3 | 7 | 3,076 | 2 | 0 | 2008-09-19T16:07:20.270000 | 2008-09-19T16:18:20.837000 |
103,316 | 110,181 | In bash, environmental variables not tab-expanding correctly | In bash, environmental variables will tab-expand correctly when placed after an echo command, for example: echo $HOME But after cd or cat, bash places a \ before the $ sign, like so: cd \$HOME If I use a variable as the second argument to a command, it won't expand at all: cp somefile $HOM What mysterious option do I h... | Try complete -r cd to remove the special programmatic completion function that many Linux distributions install for the cd command. The function adds searching a list of of directories specified in the CDPATH variable to tab completions for cd, but at the expense of breaking the default completion behavior. See http://... | In bash, environmental variables not tab-expanding correctly In bash, environmental variables will tab-expand correctly when placed after an echo command, for example: echo $HOME But after cd or cat, bash places a \ before the $ sign, like so: cd \$HOME If I use a variable as the second argument to a command, it won't ... | TITLE:
In bash, environmental variables not tab-expanding correctly
QUESTION:
In bash, environmental variables will tab-expand correctly when placed after an echo command, for example: echo $HOME But after cd or cat, bash places a \ before the $ sign, like so: cd \$HOME If I use a variable as the second argument to a ... | [
"bash",
"unix",
"keyboard-shortcuts"
] | 15 | 4 | 4,248 | 6 | 0 | 2008-09-19T16:09:53.027000 | 2008-09-21T03:38:03.767000 |
103,325 | 103,417 | What is the correct XPath for choosing attributes that contain "foo"? | Given this XML, what XPath returns all elements whose prop attribute contains Foo (the first three nodes): | //a[contains(@prop,'Foo')] Works if I use this XML to get results back. a b c a Edit: Another thing to note is that while the XPath above will return the correct answer for that particular xml, if you want to guarantee you only get the "a" elements in element "bla", you should as others have mentioned also use /bla/a[c... | What is the correct XPath for choosing attributes that contain "foo"? Given this XML, what XPath returns all elements whose prop attribute contains Foo (the first three nodes): | TITLE:
What is the correct XPath for choosing attributes that contain "foo"?
QUESTION:
Given this XML, what XPath returns all elements whose prop attribute contains Foo (the first three nodes):
ANSWER:
//a[contains(@prop,'Foo')] Works if I use this XML to get results back. a b c a Edit: Another thing to note is that ... | [
"xml",
"xpath"
] | 221 | 381 | 235,908 | 10 | 0 | 2008-09-19T16:11:05.567000 | 2008-09-19T16:23:03.337000 |
103,358 | 103,511 | C++ strings: UTF-8 or 16-bit encoding? | I'm still trying to decide whether my (home) project should use UTF-8 strings (implemented in terms of std::string with additional UTF-8-specific functions when necessary) or some 16-bit string (implemented as std::wstring). The project is a programming language and environment (like VB, it's a combination of both). Th... | I would recommend UTF-16 for any kind of data manipulation and UI. The Mac OS X and Win32 API uses UTF-16, same for wxWidgets, Qt, ICU, Xerces, and others. UTF-8 might be better for data interchange and storage. See http://unicode.org/notes/tn12/. But whatever you choose, I would definitely recommend against std::strin... | C++ strings: UTF-8 or 16-bit encoding? I'm still trying to decide whether my (home) project should use UTF-8 strings (implemented in terms of std::string with additional UTF-8-specific functions when necessary) or some 16-bit string (implemented as std::wstring). The project is a programming language and environment (l... | TITLE:
C++ strings: UTF-8 or 16-bit encoding?
QUESTION:
I'm still trying to decide whether my (home) project should use UTF-8 strings (implemented in terms of std::string with additional UTF-8-specific functions when necessary) or some 16-bit string (implemented as std::wstring). The project is a programming language ... | [
"c++",
"encoding",
"utf-8",
"stdstring",
"ucs2"
] | 12 | 2 | 18,768 | 8 | 0 | 2008-09-19T16:15:55.570000 | 2008-09-19T16:33:57.493000 |
103,382 | 103,398 | Managed C++ Method naming | I'm using managed c++ to implement a method that returns a string. I declare the method in my header file using the following signature: String^ GetWindowText() However, when I'm using this method from C#, the signature is: string GetWindowTextW(); How do I get rid of the extra "W" at the end of the method's name? | To get around the preprocessor hackery of the Windows header files, declare it like this: #undef GetWindowText String^ GetWindowText() Note that, if you actually use the Win32 or MFC GetWindowText() routines in your code, you'll need to either redefine the macro or call them as GetWindowTextW(). | Managed C++ Method naming I'm using managed c++ to implement a method that returns a string. I declare the method in my header file using the following signature: String^ GetWindowText() However, when I'm using this method from C#, the signature is: string GetWindowTextW(); How do I get rid of the extra "W" at the end ... | TITLE:
Managed C++ Method naming
QUESTION:
I'm using managed c++ to implement a method that returns a string. I declare the method in my header file using the following signature: String^ GetWindowText() However, when I'm using this method from C#, the signature is: string GetWindowTextW(); How do I get rid of the ext... | [
".net",
"windows",
"c++-cli"
] | 2 | 2 | 424 | 3 | 0 | 2008-09-19T16:18:29.307000 | 2008-09-19T16:20:35.620000 |
103,389 | 103,934 | Oracle Natural Joins and Count(1) | Does anyone know why in Oracle 11g when you do a Count(1) with more than one natural join it does a cartesian join and throws the count way off? Such as SELECT Count(1) FROM record NATURAL join address NATURAL join person WHERE status=1 AND code = 1 AND state = 'TN' This pulls back like 3 million rows when SELECT * FRO... | My advice would be to NOT use NATURAL JOIN. Explicitly define your join conditions to avoid confusion and "hidden bugs". Here is the official NATURAL JOIN Oracle documentation and more discussion about this subject. | Oracle Natural Joins and Count(1) Does anyone know why in Oracle 11g when you do a Count(1) with more than one natural join it does a cartesian join and throws the count way off? Such as SELECT Count(1) FROM record NATURAL join address NATURAL join person WHERE status=1 AND code = 1 AND state = 'TN' This pulls back lik... | TITLE:
Oracle Natural Joins and Count(1)
QUESTION:
Does anyone know why in Oracle 11g when you do a Count(1) with more than one natural join it does a cartesian join and throws the count way off? Such as SELECT Count(1) FROM record NATURAL join address NATURAL join person WHERE status=1 AND code = 1 AND state = 'TN' T... | [
"oracle",
"natural-join"
] | 4 | 9 | 4,091 | 4 | 0 | 2008-09-19T16:19:51.987000 | 2008-09-19T17:34:52.977000 |
103,395 | 103,540 | Setting the SVN "execute" bit in a Subversion repository using TortoiseSVN or command line SVN | I've got an open-source app that is hosted at code.google.com. It is cross platform ( Linux / Windows / Mac ). I uploaded the code initially from a WinXP machine using TortoiseSVN and it seems that none of the "configure" batch files that are used for the linux build have their "execute" bits set. What would be the eas... | With tortoise SVN, it's quite easy: you can select several files (may be from search results, so they don't have to be in the same directory), select "properties" in the TortoiseSVN menu, add the needed property (there is a drop-down list of the mostly used properties, in this case "svn:executable") and set the value (... | Setting the SVN "execute" bit in a Subversion repository using TortoiseSVN or command line SVN I've got an open-source app that is hosted at code.google.com. It is cross platform ( Linux / Windows / Mac ). I uploaded the code initially from a WinXP machine using TortoiseSVN and it seems that none of the "configure" bat... | TITLE:
Setting the SVN "execute" bit in a Subversion repository using TortoiseSVN or command line SVN
QUESTION:
I've got an open-source app that is hosted at code.google.com. It is cross platform ( Linux / Windows / Mac ). I uploaded the code initially from a WinXP machine using TortoiseSVN and it seems that none of t... | [
"svn",
"version-control",
"tortoisesvn"
] | 50 | 21 | 43,260 | 5 | 0 | 2008-09-19T16:20:28.897000 | 2008-09-19T16:38:56.420000 |
103,402 | 103,446 | How can you have SharePoint Link Lists default to opening in a new window? | In SharePoint, it is easy to set up a List webpart consisting of Links to other documents, folders, sites, etc. Unfortunately, when clicking these links, the default behavior is for the page to open in the current browser window. That is, it does NOT open the page in a new instance of the browser. This has proven annoy... | It is not possible with the default Link List web part, but there are resources describing how to extend Sharepoint server-side to add this functionality. Share Point Links Open in New Window Changing Link Lists in Sharepoint 2007 | How can you have SharePoint Link Lists default to opening in a new window? In SharePoint, it is easy to set up a List webpart consisting of Links to other documents, folders, sites, etc. Unfortunately, when clicking these links, the default behavior is for the page to open in the current browser window. That is, it doe... | TITLE:
How can you have SharePoint Link Lists default to opening in a new window?
QUESTION:
In SharePoint, it is easy to set up a List webpart consisting of Links to other documents, folders, sites, etc. Unfortunately, when clicking these links, the default behavior is for the page to open in the current browser windo... | [
"sharepoint",
"web-parts"
] | 6 | 5 | 115,200 | 4 | 0 | 2008-09-19T16:21:07.647000 | 2008-09-19T16:26:17.400000 |
103,407 | 103,431 | Why Am I Getting Link Errors When Calling Function in Math.h? | When attempting to call functions in math.h, I'm getting link errors like the following undefined reference to sqrt But I'm doing a #include I'm using gcc and compiling as follows: gcc -Wall -D_GNU_SOURCE blah.c -o blah Why can't the linker find the definition for sqrt? | Add -lm to the command when you call gcc: gcc -Wall -D_GNU_SOURCE blah.c -o blah -lm This will tell the linker to link with the math library. Including math.h will tell the compiler that the math functions like sqrt() exist, but they are defined in a separate library, which the linker needs to pack with your executable... | Why Am I Getting Link Errors When Calling Function in Math.h? When attempting to call functions in math.h, I'm getting link errors like the following undefined reference to sqrt But I'm doing a #include I'm using gcc and compiling as follows: gcc -Wall -D_GNU_SOURCE blah.c -o blah Why can't the linker find the definiti... | TITLE:
Why Am I Getting Link Errors When Calling Function in Math.h?
QUESTION:
When attempting to call functions in math.h, I'm getting link errors like the following undefined reference to sqrt But I'm doing a #include I'm using gcc and compiling as follows: gcc -Wall -D_GNU_SOURCE blah.c -o blah Why can't the linker... | [
"math",
"gcc",
"linker"
] | 6 | 8 | 8,339 | 3 | 0 | 2008-09-19T16:21:31.343000 | 2008-09-19T16:24:32.273000 |
103,421 | 311,849 | How do I flip a sprite/texture in OpenGLES? | I have a sprite loaded as a texture and I need to animate it, allowing it to "face" left or right -- essentially sometimes I need to "flip" it. I know that OpenGL has a gltranslate which repositions an object, and glrotate which rotates it. Is there a method that simply flips it across one axis? If not, how would you a... | I haven't messed around with point sprites, but I believe that they are textures. Textures have texture matrices, which means you can use glTranslatef(), glScalef() and glRotatef() on them. I would try out something along the lines of glScalef(-1,1,1); which would flip the texture coordinate by the X axis. As I said, I... | How do I flip a sprite/texture in OpenGLES? I have a sprite loaded as a texture and I need to animate it, allowing it to "face" left or right -- essentially sometimes I need to "flip" it. I know that OpenGL has a gltranslate which repositions an object, and glrotate which rotates it. Is there a method that simply flips... | TITLE:
How do I flip a sprite/texture in OpenGLES?
QUESTION:
I have a sprite loaded as a texture and I need to animate it, allowing it to "face" left or right -- essentially sometimes I need to "flip" it. I know that OpenGL has a gltranslate which repositions an object, and glrotate which rotates it. Is there a method... | [
"iphone",
"objective-c",
"opengl"
] | 6 | 6 | 6,255 | 2 | 0 | 2008-09-19T16:23:23.757000 | 2008-11-22T22:23:55.850000 |
103,422 | 103,490 | Simple way to parse a person's name into its component parts? | A lot of contact management programs do this - you type in a name ( e.g., "John W. Smith") and it automatically breaks it up internally into: First name: John Middle name: W. Last name: Smith Likewise, it figures out things like "Mrs. Jane W. Smith" and "Dr. John Doe, Jr." correctly as well (assuming you allow for fiel... | There is no simple solution for this. Name construction varies from culture to culture, and even in the English-speaking world there's prefixes and suffixes that aren't necessarily part of the name. A basic approach is to look for honorifics at the beginning of the string (e.g., "Hon. John Doe") and numbers or some oth... | Simple way to parse a person's name into its component parts? A lot of contact management programs do this - you type in a name ( e.g., "John W. Smith") and it automatically breaks it up internally into: First name: John Middle name: W. Last name: Smith Likewise, it figures out things like "Mrs. Jane W. Smith" and "Dr.... | TITLE:
Simple way to parse a person's name into its component parts?
QUESTION:
A lot of contact management programs do this - you type in a name ( e.g., "John W. Smith") and it automatically breaks it up internally into: First name: John Middle name: W. Last name: Smith Likewise, it figures out things like "Mrs. Jane ... | [
"string",
"parsing",
"database-design"
] | 32 | 13 | 34,269 | 23 | 0 | 2008-09-19T16:23:28.717000 | 2008-09-19T16:31:26.517000 |
103,423 | 103,509 | What are the best SQL Server performance optimization techniques? | I've always taken the approach of first deploying the database with a minimal set of indexes and then adding/changing indexes as performance dictates. This approach works reasonably well. However, it still doesn't tell me where I could improve performance. It only tells me where performance is so bad that users complai... | My approach is to gather commands against the server or database into a table using SQL Server Profiler. Once you have that, you can query based on the max and avg execution times, max and avg cpu times, and (also very important) the number of times that the query was run. Since I try to put all database access code in... | What are the best SQL Server performance optimization techniques? I've always taken the approach of first deploying the database with a minimal set of indexes and then adding/changing indexes as performance dictates. This approach works reasonably well. However, it still doesn't tell me where I could improve performanc... | TITLE:
What are the best SQL Server performance optimization techniques?
QUESTION:
I've always taken the approach of first deploying the database with a minimal set of indexes and then adding/changing indexes as performance dictates. This approach works reasonably well. However, it still doesn't tell me where I could ... | [
"sql-server",
"optimization"
] | 17 | 12 | 27,367 | 14 | 0 | 2008-09-19T16:23:31.603000 | 2008-09-19T16:33:45.760000 |
103,427 | 104,253 | Displaying Window on Logon Screen Using C# in Windows XP | I am trying to create a service with C# that launches a process that can be displayed on the Windows XP Logon screen. I found some code that is doing this in C++. The C++ code is for a service that creates another process with STARTUPINFO.lpDesktop set to "WinSta0\WinLogon". The created process is then displayed to the... | The solution was to call the C++ Win32 API function CreateProcess from kernel32.dll from the C# code. This site was very helpful in getting the correct function signature for C#: http://www.pinvoke.net/default.aspx/kernel32/CreateProcess.html | Displaying Window on Logon Screen Using C# in Windows XP I am trying to create a service with C# that launches a process that can be displayed on the Windows XP Logon screen. I found some code that is doing this in C++. The C++ code is for a service that creates another process with STARTUPINFO.lpDesktop set to "WinSta... | TITLE:
Displaying Window on Logon Screen Using C# in Windows XP
QUESTION:
I am trying to create a service with C# that launches a process that can be displayed on the Windows XP Logon screen. I found some code that is doing this in C++. The C++ code is for a service that creates another process with STARTUPINFO.lpDesk... | [
"c#",
"windows-xp",
"service",
"desktop",
"winlogon"
] | 4 | 3 | 4,487 | 2 | 0 | 2008-09-19T16:24:04.987000 | 2008-09-19T18:19:29.610000 |
103,453 | 103,496 | Identify the host from a Windows user mode dump file | Is there an easy way of finding out the host name of a machine that generated a user mode dump file via WinDbg? Or at least any piece of identifying information to try and confirm that two dump files came from the same system. | You can do so by analyzing the user dump file with WinDbg. Run the!peb command and look for the value of COMPUTERNAME in its output. | Identify the host from a Windows user mode dump file Is there an easy way of finding out the host name of a machine that generated a user mode dump file via WinDbg? Or at least any piece of identifying information to try and confirm that two dump files came from the same system. | TITLE:
Identify the host from a Windows user mode dump file
QUESTION:
Is there an easy way of finding out the host name of a machine that generated a user mode dump file via WinDbg? Or at least any piece of identifying information to try and confirm that two dump files came from the same system.
ANSWER:
You can do so... | [
"windows",
"debugging",
"crash-dumps"
] | 2 | 5 | 6,536 | 4 | 0 | 2008-09-19T16:26:52.923000 | 2008-09-19T16:32:22.300000 |
103,460 | 104,154 | What's the best way to determine the name of your machine in a .NET app? | I need to get the name of the machine my.NET app is running on. What is the best way to do this? | Whilst others have already said that the System.Environment.MachineName returns you the name of the machine, beware... That property is only returning the NetBIOS name (and only if your application has EnvironmentPermissionAccess.Read permissions). It is possible for your machine name to exceed the length defined in: M... | What's the best way to determine the name of your machine in a .NET app? I need to get the name of the machine my.NET app is running on. What is the best way to do this? | TITLE:
What's the best way to determine the name of your machine in a .NET app?
QUESTION:
I need to get the name of the machine my.NET app is running on. What is the best way to do this?
ANSWER:
Whilst others have already said that the System.Environment.MachineName returns you the name of the machine, beware... That... | [
".net"
] | 4 | 8 | 1,587 | 3 | 0 | 2008-09-19T16:27:59.970000 | 2008-09-19T18:05:57.287000 |
103,480 | 103,594 | iPhone programming - impressions, opinions? | I've been programming in C,C++,C# and a few other languages for many years, mainly for Windows and Linux but also embedded platforms. Recently started to do some iPhone programming as a side project so I'm using Apple platforms for the first time since my Apple II days. I'm wondering what other developers that are comi... | I'm in the same boat as you (somewhat). I've been developing in C# for 7 years, ever since.NET 1.0. Over the past couple weeks I've been teaching myself Cocoa and Objective-C. Here are my impressions (note for note with yours) Agreed in that clutter can be a problem. I tend to use Spaces heavily when developing in XCod... | iPhone programming - impressions, opinions? I've been programming in C,C++,C# and a few other languages for many years, mainly for Windows and Linux but also embedded platforms. Recently started to do some iPhone programming as a side project so I'm using Apple platforms for the first time since my Apple II days. I'm w... | TITLE:
iPhone programming - impressions, opinions?
QUESTION:
I've been programming in C,C++,C# and a few other languages for many years, mainly for Windows and Linux but also embedded platforms. Recently started to do some iPhone programming as a side project so I'm using Apple platforms for the first time since my Ap... | [
"c#",
"c++",
"iphone",
"objective-c",
"development-environment"
] | 6 | 5 | 2,700 | 7 | 0 | 2008-09-19T16:29:48.127000 | 2008-09-19T16:45:09.243000 |
103,489 | 106,624 | Building an HTML table on the fly using jQuery | Below is the code I use to build an HTML table on the fly (using JSON data received from the server). I display an animated pleasewait (.gif) graphic while the data is loading. However, the graphic freezes while the JavaScript function is building the table. At first, I was just happy to make this happen (display the t... | You basically want to set up your loops so they yield to other threads every so often. Here is some example code from this article on the topic of running CPU intensive operations without freezing your UI: function doSomething (progressFn [, additional arguments]) { // Initialize a few things here... (function () { // ... | Building an HTML table on the fly using jQuery Below is the code I use to build an HTML table on the fly (using JSON data received from the server). I display an animated pleasewait (.gif) graphic while the data is loading. However, the graphic freezes while the JavaScript function is building the table. At first, I wa... | TITLE:
Building an HTML table on the fly using jQuery
QUESTION:
Below is the code I use to build an HTML table on the fly (using JSON data received from the server). I display an animated pleasewait (.gif) graphic while the data is loading. However, the graphic freezes while the JavaScript function is building the tab... | [
"javascript",
"jquery"
] | 21 | 26 | 63,756 | 8 | 0 | 2008-09-19T16:31:08.293000 | 2008-09-20T00:51:49.463000 |
103,512 | 103,868 | Why use static_cast<T>(x) instead of (T)x? | I've heard that the static_cast function should be preferred to C-style or simple function-style casting. Is this true? Why? | The main reason is that classic C casts make no distinction between what we call static_cast<>(), reinterpret_cast<>(), const_cast<>(), and dynamic_cast<>(). These four things are completely different. A static_cast<>() is usually safe. There is a valid conversion in the language, or an appropriate constructor that mak... | Why use static_cast<T>(x) instead of (T)x? I've heard that the static_cast function should be preferred to C-style or simple function-style casting. Is this true? Why? | TITLE:
Why use static_cast<T>(x) instead of (T)x?
QUESTION:
I've heard that the static_cast function should be preferred to C-style or simple function-style casting. Is this true? Why?
ANSWER:
The main reason is that classic C casts make no distinction between what we call static_cast<>(), reinterpret_cast<>(), const... | [
"c++",
"casting",
"static-cast"
] | 826 | 748 | 435,405 | 9 | 0 | 2008-09-19T16:33:58.100000 | 2008-09-19T17:23:59.680000 |
103,514 | 103,533 | What's the right way to dynamically choose menu items for a context menu in WinForms? | I'm trying to make a context menu for a control that is "linked" to a main menu item. There are two fixed menu items that are always there and an arbitrary number of additional menu items that might need to be on the menu. I've tried solving the problem by keeping a class-level reference to the fixed menu items and a l... | You could work out the items during the MouseDown event of the control. Check that it is the right mouse button too. | What's the right way to dynamically choose menu items for a context menu in WinForms? I'm trying to make a context menu for a control that is "linked" to a main menu item. There are two fixed menu items that are always there and an arbitrary number of additional menu items that might need to be on the menu. I've tried ... | TITLE:
What's the right way to dynamically choose menu items for a context menu in WinForms?
QUESTION:
I'm trying to make a context menu for a control that is "linked" to a main menu item. There are two fixed menu items that are always there and an arbitrary number of additional menu items that might need to be on the... | [
".net",
"winforms",
"menu"
] | 3 | 2 | 630 | 1 | 0 | 2008-09-19T16:34:21.080000 | 2008-09-19T16:38:24.267000 |
103,516 | 103,882 | Excel Addin Access Violation | Using c#, VS2005, and.NET 2.0. (XP 32 bit) This is a Winforms app that gets called by a VBA addin (.xla) via Interop libraries. This app has been around for a while and works fine when the assembly is compiled and executed anywhere other than my dev machine. On dev it crashes hard (in debugger and just running the obje... | I've had problems in this scenario with Office 2003 in the past. Some things that have helped: Installing Office 2003 Service Pack 2 stopped some crashes that happened when closing Excel. Installing Office 2003 Service Pack 3 fixes a bug with using XP styles in a VSTO2005 application (not your case here) Running the Ex... | Excel Addin Access Violation Using c#, VS2005, and.NET 2.0. (XP 32 bit) This is a Winforms app that gets called by a VBA addin (.xla) via Interop libraries. This app has been around for a while and works fine when the assembly is compiled and executed anywhere other than my dev machine. On dev it crashes hard (in debug... | TITLE:
Excel Addin Access Violation
QUESTION:
Using c#, VS2005, and.NET 2.0. (XP 32 bit) This is a Winforms app that gets called by a VBA addin (.xla) via Interop libraries. This app has been around for a while and works fine when the assembly is compiled and executed anywhere other than my dev machine. On dev it cras... | [
"c#",
"interop",
".net-2.0",
"add-in"
] | 0 | 2 | 1,679 | 3 | 0 | 2008-09-19T16:35:01.297000 | 2008-09-19T17:26:30.643000 |
103,519 | 103,543 | Junit output and OutOfMemoryError | I'm running some JUnit tests on my applications. Every test has a for loop calling respective method 10000 times. The tested methods produce a lot of log. These logs are also automatically collected by JUnit as test output. This situation takes to OutOfMemoryError because the string buffer where JUnit keeps the output ... | What type of logging are you using? Is there some way you can override the default logging behavior to just disregard all log messages? | Junit output and OutOfMemoryError I'm running some JUnit tests on my applications. Every test has a for loop calling respective method 10000 times. The tested methods produce a lot of log. These logs are also automatically collected by JUnit as test output. This situation takes to OutOfMemoryError because the string bu... | TITLE:
Junit output and OutOfMemoryError
QUESTION:
I'm running some JUnit tests on my applications. Every test has a for loop calling respective method 10000 times. The tested methods produce a lot of log. These logs are also automatically collected by JUnit as test output. This situation takes to OutOfMemoryError bec... | [
"java",
"junit"
] | 5 | 3 | 1,849 | 6 | 0 | 2008-09-19T16:35:32.620000 | 2008-09-19T16:39:07.807000 |
103,532 | 103,901 | Handling different ConnectionStates before opening SqlConnection | If you need to open a SqlConnection before issuing queries, can you simply handle all non-Open ConnectionStates in the same way? For example: if (connection.State!= ConnectionState.Open) { connection.Open(); } I read somewhere that for ConnectionState.Broken the connection needs to be closed before its re-opened. Does ... | http://msdn.microsoft.com/en-us/library/system.data.connectionstate.aspx Broken connection state does need to be closed and reopened before eligible for continued use. Edit: Unfortunately closing a closed connection will balk as well. You'll need to test the ConnectionState before acting on an unknown connection. Perha... | Handling different ConnectionStates before opening SqlConnection If you need to open a SqlConnection before issuing queries, can you simply handle all non-Open ConnectionStates in the same way? For example: if (connection.State!= ConnectionState.Open) { connection.Open(); } I read somewhere that for ConnectionState.Bro... | TITLE:
Handling different ConnectionStates before opening SqlConnection
QUESTION:
If you need to open a SqlConnection before issuing queries, can you simply handle all non-Open ConnectionStates in the same way? For example: if (connection.State!= ConnectionState.Open) { connection.Open(); } I read somewhere that for C... | [
"c#",
".net",
"sql-server",
"database"
] | 6 | 6 | 11,892 | 3 | 0 | 2008-09-19T16:38:07.093000 | 2008-09-19T17:28:59.980000 |
103,537 | 108,609 | How do I create a zoom effect in OpenGLES on the iPhone? | I have an OpenGL ES game that I am hacking together. One part of it involves looking at a large "map-like" area and then double-tapping on one part to "zoom into" it. How would you use OpenGL ES to provide this effect (given that it may need to zoom in on different parts of the map). I've heard of glScale and glOrtho, ... | The 2-D zooming you describe might be better achieved using Core Animation. NSView (and its NDA'd iPhone counterpart) provide implicit animation when you change their frame. All you'd need to do in this case would be to set the frame's origin.x and origin.y and size.width and size.height to such values to make the view... | How do I create a zoom effect in OpenGLES on the iPhone? I have an OpenGL ES game that I am hacking together. One part of it involves looking at a large "map-like" area and then double-tapping on one part to "zoom into" it. How would you use OpenGL ES to provide this effect (given that it may need to zoom in on differe... | TITLE:
How do I create a zoom effect in OpenGLES on the iPhone?
QUESTION:
I have an OpenGL ES game that I am hacking together. One part of it involves looking at a large "map-like" area and then double-tapping on one part to "zoom into" it. How would you use OpenGL ES to provide this effect (given that it may need to ... | [
"iphone",
"objective-c",
"opengl-es"
] | 1 | 2 | 3,480 | 2 | 0 | 2008-09-19T16:38:34.547000 | 2008-09-20T16:19:52.603000 |
103,556 | 135,630 | How to render unicode characters in the correct font? (C#/WinForms) | My application correctly handles different kind of character sets, but only internally - when it comes to displaying text in standard WinForms labels und textboxes, it seems to have problems with chinese characters. The problem seems to be the font used (Tahoma), because when I copy&paste the text, or view it in the de... | UniScribe, which was introduced in Windows 2000, is supposed to handle this transparently, meaning that it will automatically use a different font (such as Mincho) for characters that aren't present in the font you've selected. This is why it looks correct in the debugger, even though the font used in the debugger does... | How to render unicode characters in the correct font? (C#/WinForms) My application correctly handles different kind of character sets, but only internally - when it comes to displaying text in standard WinForms labels und textboxes, it seems to have problems with chinese characters. The problem seems to be the font use... | TITLE:
How to render unicode characters in the correct font? (C#/WinForms)
QUESTION:
My application correctly handles different kind of character sets, but only internally - when it comes to displaying text in standard WinForms labels und textboxes, it seems to have problems with chinese characters. The problem seems ... | [
"c#",
"winforms",
"unicode",
"rendering"
] | 6 | 4 | 4,363 | 2 | 0 | 2008-09-19T16:40:11.347000 | 2008-09-25T19:58:15.640000 |
103,557 | 104,186 | Rhino mocks ordered reply, throw exception problem | I'm trying to implement some retry logic if there is an exception in my code. I've written the code and now I'm trying to get Rhino Mocks to simulate the scenario. The jist of the code is the following: class Program { static void Main(string[] args) { MockRepository repo = new MockRepository(); IA provider = repo.Crea... | You need to use Expect.Call instead of SetupResult: using (repo.Record()) { Expect.Call(provider.Execute(23)).IgnoreArguments().Throw(new ApplicationException("Dummy exception"));
Expect.Call(provider.Execute(23)).IgnoreArguments().Return("result"); } The Rhino.Mocks wiki says, Using SetupResult.For() completely bypas... | Rhino mocks ordered reply, throw exception problem I'm trying to implement some retry logic if there is an exception in my code. I've written the code and now I'm trying to get Rhino Mocks to simulate the scenario. The jist of the code is the following: class Program { static void Main(string[] args) { MockRepository r... | TITLE:
Rhino mocks ordered reply, throw exception problem
QUESTION:
I'm trying to implement some retry logic if there is an exception in my code. I've written the code and now I'm trying to get Rhino Mocks to simulate the scenario. The jist of the code is the following: class Program { static void Main(string[] args) ... | [
"exception",
"mocking",
"rhino-mocks"
] | 0 | 2 | 1,944 | 1 | 0 | 2008-09-19T16:40:19.520000 | 2008-09-19T18:12:05.337000 |
103,561 | 168,262 | Can FxCop/StyleCop be limited to only analyze selected methods from with Visual Studio? | I am taking on a maintenance team and would like to introduce tools like FxCop and StyleCop to help improve the code and introduce the developers to better programming techniques and standards. Since we are maintaining code and not making significant enhancements, we will probably only deal with a couple of methods/rou... | I am using FxCopCmd.exe (FxCop 1.36) as an external tool with various command line parameters, including this one: /types: [Short form: /t: ] Analyze only these types and members. | Can FxCop/StyleCop be limited to only analyze selected methods from with Visual Studio? I am taking on a maintenance team and would like to introduce tools like FxCop and StyleCop to help improve the code and introduce the developers to better programming techniques and standards. Since we are maintaining code and not ... | TITLE:
Can FxCop/StyleCop be limited to only analyze selected methods from with Visual Studio?
QUESTION:
I am taking on a maintenance team and would like to introduce tools like FxCop and StyleCop to help improve the code and introduce the developers to better programming techniques and standards. Since we are maintai... | [
"visual-studio",
"coding-style",
"fxcop",
"stylecop"
] | 4 | 3 | 921 | 5 | 0 | 2008-09-19T16:40:53.763000 | 2008-10-03T18:37:23.003000 |
103,564 | 103,600 | The performance impact of using instanceof in Java | I am working on an application and one design approach involves extremely heavy use of the instanceof operator. While I know that OO design generally tries to avoid using instanceof, that is a different story and this question is purely related to performance. I was wondering if there is any performance impact? Is is j... | Modern JVM/JIT compilers have removed the performance hit of most of the traditionally "slow" operations, including instanceof, exception handling, reflection, etc. As Donald Knuth wrote, "We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." The performa... | The performance impact of using instanceof in Java I am working on an application and one design approach involves extremely heavy use of the instanceof operator. While I know that OO design generally tries to avoid using instanceof, that is a different story and this question is purely related to performance. I was wo... | TITLE:
The performance impact of using instanceof in Java
QUESTION:
I am working on an application and one design approach involves extremely heavy use of the instanceof operator. While I know that OO design generally tries to avoid using instanceof, that is a different story and this question is purely related to per... | [
"java",
"performance",
"instanceof"
] | 356 | 300 | 144,448 | 24 | 0 | 2008-09-19T16:41:12.310000 | 2008-09-19T16:45:45.170000 |
103,569 | 103,614 | Visual Studio 2008 saving files gets slow | I've looked for some other articles on this problem and even tried some of the ideas in this thread; however, nothing has solved the issue yet. So, on to the issue. Something happens when working in Visual Studio (usually C#) that causes the IDE to become a bit wonky when saving a file. I will be working along just fin... | I've had a problem similar to this happen before. Are you using an plugins like ReSharper or DevExpress? | Visual Studio 2008 saving files gets slow I've looked for some other articles on this problem and even tried some of the ideas in this thread; however, nothing has solved the issue yet. So, on to the issue. Something happens when working in Visual Studio (usually C#) that causes the IDE to become a bit wonky when savin... | TITLE:
Visual Studio 2008 saving files gets slow
QUESTION:
I've looked for some other articles on this problem and even tried some of the ideas in this thread; however, nothing has solved the issue yet. So, on to the issue. Something happens when working in Visual Studio (usually C#) that causes the IDE to become a bi... | [
"visual-studio-2008"
] | 5 | 3 | 4,567 | 4 | 0 | 2008-09-19T16:41:54.883000 | 2008-09-19T16:47:10.253000 |
103,575 | 1,347,399 | WPF Validation Not Firing on First LostFocus of the TextBox | I am trying to validate the WPF form against an object. The validation fires when I type something in the textbox lose focus come back to the textbox and then erase whatever I have written. But if I just load the WPF application and tab off the textbox without writing and erasing anything from the textbox, then it is n... | If you're not adverse to putting a bit of logic in your code behind, you can handle the actual LostFocus event with something like this:.xaml.xaml.cs private void TextBox_LostFocus(object sender, RoutedEventArgs e) { ((Control)sender).GetBindingExpression(TextBox.TextProperty).UpdateSource(); } | WPF Validation Not Firing on First LostFocus of the TextBox I am trying to validate the WPF form against an object. The validation fires when I type something in the textbox lose focus come back to the textbox and then erase whatever I have written. But if I just load the WPF application and tab off the textbox without... | TITLE:
WPF Validation Not Firing on First LostFocus of the TextBox
QUESTION:
I am trying to validate the WPF form against an object. The validation fires when I type something in the textbox lose focus come back to the textbox and then erase whatever I have written. But if I just load the WPF application and tab off t... | [
"wpf",
"validation",
"focus"
] | 17 | 20 | 21,545 | 6 | 0 | 2008-09-19T16:42:20.967000 | 2009-08-28T14:33:23.617000 |
103,576 | 104,404 | What's wrong with my XPath/XML? | I'm trying a very basic XPath on this xml (same as below), and it doesn't find anything. I'm trying both.NET and this website, and XPaths such as //PropertyGroup, /PropertyGroup and //MSBuildCommunityTasksPath are simply not working for me (they compiled but return zero results). Source XML: $(MSBuildProjectDirectory)\... | You can add namespaces in your code and all that, but you can effectively wildcard the namespace. Try the following XPath idiom. //*[local-name()='PropertyGroup'] //*[local-name()='MSBuildCommunityTasksPath'] name() usually works as well, as in: //*[name()='PropertyGroup'] //*[name()='MSBuildCommunityTasksPath'] EDIT: ... | What's wrong with my XPath/XML? I'm trying a very basic XPath on this xml (same as below), and it doesn't find anything. I'm trying both.NET and this website, and XPaths such as //PropertyGroup, /PropertyGroup and //MSBuildCommunityTasksPath are simply not working for me (they compiled but return zero results). Source ... | TITLE:
What's wrong with my XPath/XML?
QUESTION:
I'm trying a very basic XPath on this xml (same as below), and it doesn't find anything. I'm trying both.NET and this website, and XPaths such as //PropertyGroup, /PropertyGroup and //MSBuildCommunityTasksPath are simply not working for me (they compiled but return zero... | [
"xml",
"xpath",
"namespaces"
] | 10 | 16 | 3,628 | 3 | 0 | 2008-09-19T16:42:21.823000 | 2008-09-19T18:39:14.867000 |
103,583 | 103,637 | Exceptions: Is this a good practice? | This is written in PHP, but it's really language agnostic. try { try { $issue = new DM_Issue($core->db->escape_string($_GET['issue'])); } catch(DM_Exception $e) { throw new Error_Page($tpl, ERR_NOT_FOUND, $e->getMessage()); } } catch(Error_Page $e) { die($e); } Is nested try, catch blocks a good practice to follow? It ... | You're using Exceptions for page logic, and I personally think that's not a good thing. Exceptions should be used to signal when bad or unexpected things happen, not to control the output of an error page. If you want to generate an error page based on Exceptions, consider using set_exception_handler. Any uncaught exce... | Exceptions: Is this a good practice? This is written in PHP, but it's really language agnostic. try { try { $issue = new DM_Issue($core->db->escape_string($_GET['issue'])); } catch(DM_Exception $e) { throw new Error_Page($tpl, ERR_NOT_FOUND, $e->getMessage()); } } catch(Error_Page $e) { die($e); } Is nested try, catch ... | TITLE:
Exceptions: Is this a good practice?
QUESTION:
This is written in PHP, but it's really language agnostic. try { try { $issue = new DM_Issue($core->db->escape_string($_GET['issue'])); } catch(DM_Exception $e) { throw new Error_Page($tpl, ERR_NOT_FOUND, $e->getMessage()); } } catch(Error_Page $e) { die($e); } Is ... | [
"php",
"language-agnostic",
"exception",
"error-handling"
] | 1 | 8 | 1,519 | 7 | 0 | 2008-09-19T16:43:42.413000 | 2008-09-19T16:50:35.970000 |
103,593 | 103,609 | Using php, how to insert text without overwriting to the beginning of a text file | I have: "") { fwrite($file,$_POST["lastname"]."\n"); }
fclose($file);?> but it overwrites the beginning of the file. How do I make it insert? | I'm not entirely sure of your question - do you want to write data and not have it over-write the beginning of an existing file, or write new data to the start of an existing file, keeping the existing content after it? To insert text without over-writing the beginning of the file, you'll have to open it for appending ... | Using php, how to insert text without overwriting to the beginning of a text file I have: "") { fwrite($file,$_POST["lastname"]."\n"); }
fclose($file);?> but it overwrites the beginning of the file. How do I make it insert? | TITLE:
Using php, how to insert text without overwriting to the beginning of a text file
QUESTION:
I have: "") { fwrite($file,$_POST["lastname"]."\n"); }
fclose($file);?> but it overwrites the beginning of the file. How do I make it insert?
ANSWER:
I'm not entirely sure of your question - do you want to write data a... | [
"php",
"insert"
] | 9 | 29 | 56,650 | 4 | 0 | 2008-09-19T16:45:02.567000 | 2008-09-19T16:46:50.487000 |
103,598 | 235,760 | Why was the arguments.callee.caller property deprecated in JavaScript? | Why was the arguments.callee.caller property deprecated in JavaScript? It was added and then deprecated in JavaScript, but it was omitted altogether by ECMAScript. Some browser (Mozilla, IE) have always supported it and don't have any plans on the map to remove support. Others (Safari, Opera) have adopted support for i... | Early versions of JavaScript did not allow named function expressions, and because of that we could not make a recursive function expression: // This snippet will work: function factorial(n) { return (!(n>1))? 1: factorial(n-1)*n; } [1,2,3,4,5].map(factorial);
// But this snippet will not: [1,2,3,4,5].map(function(n) ... | Why was the arguments.callee.caller property deprecated in JavaScript? Why was the arguments.callee.caller property deprecated in JavaScript? It was added and then deprecated in JavaScript, but it was omitted altogether by ECMAScript. Some browser (Mozilla, IE) have always supported it and don't have any plans on the m... | TITLE:
Why was the arguments.callee.caller property deprecated in JavaScript?
QUESTION:
Why was the arguments.callee.caller property deprecated in JavaScript? It was added and then deprecated in JavaScript, but it was omitted altogether by ECMAScript. Some browser (Mozilla, IE) have always supported it and don't have ... | [
"javascript",
"ecma262"
] | 228 | 265 | 85,675 | 4 | 0 | 2008-09-19T16:45:37.807000 | 2008-10-25T01:51:40.203000 |
103,601 | 304,736 | What are you using for Distributed Caching in web farms running ASP.NET? | I am curious as to what others are using in this situation. I know a couple of the options that are out there like a memcached port or ScaleOutSoftware. The memcached ports don't seem to be actively worked on (correct me if I'm wrong). ScaleOutSoftware is too expensive for me (I don't doubt it is worth it). This is not... | We're currently using an incredibly simple cache that I wrote in a couple of hours, based on re-hosting the ASP.NET cache in a Windows Service ( more info and source code here ). I won't pretend it's anywhere near as optimised as something like Memcached but we were just looking for something simple and free until Velo... | What are you using for Distributed Caching in web farms running ASP.NET? I am curious as to what others are using in this situation. I know a couple of the options that are out there like a memcached port or ScaleOutSoftware. The memcached ports don't seem to be actively worked on (correct me if I'm wrong). ScaleOutSof... | TITLE:
What are you using for Distributed Caching in web farms running ASP.NET?
QUESTION:
I am curious as to what others are using in this situation. I know a couple of the options that are out there like a memcached port or ScaleOutSoftware. The memcached ports don't seem to be actively worked on (correct me if I'm w... | [
"asp.net",
"caching",
"memcached",
"scaling",
"distributed-cache"
] | 4 | 1 | 1,399 | 7 | 0 | 2008-09-19T16:45:57.993000 | 2008-11-20T09:13:51.420000 |
103,616 | 177,263 | Salesforce.com - Why uploading of Apex class is not working? | I have an Apex class (controller) originally developed under Developer Edition and need to upload it to production which is Enterprise Edition. The upload fails with following message classes/RenewalController.cls(RenewalController):An error occurred on your page.
package.xml(RenewalController):An object 'RenewalContr... | Controller class may reference other custom SalesForce objects like pages. If controller is uploaded before these objects Save error: An error occurred on your page. is reported. Correct order of uploading of custom components should be used. | Salesforce.com - Why uploading of Apex class is not working? I have an Apex class (controller) originally developed under Developer Edition and need to upload it to production which is Enterprise Edition. The upload fails with following message classes/RenewalController.cls(RenewalController):An error occurred on your ... | TITLE:
Salesforce.com - Why uploading of Apex class is not working?
QUESTION:
I have an Apex class (controller) originally developed under Developer Edition and need to upload it to production which is Enterprise Edition. The upload fails with following message classes/RenewalController.cls(RenewalController):An error... | [
"salesforce",
"apex-code",
"force.com"
] | 2 | 1 | 2,798 | 2 | 0 | 2008-09-19T16:47:13.467000 | 2008-10-07T04:52:00.560000 |
103,622 | 103,960 | Tools to view/solve Windows XP memory fragmentation | We have a java program that requires a large amount of heap space - we start it with (among other command line arguments) the argument -Xmx1500m, which specifies a maximum heap space of 1500 MB. When starting this program on a Windows XP box that has been freshly rebooted, it will start and run without issues. But if t... | Agree with Torlack, a lot of this is because other DLLs are getting loaded and go into certain spots, breaking up the amount of memory you can get for the VM in one big chunk. You can do some work on WinXP if you have more than 3G of memory to get some of the windows stuff moved around, look up PAE here: http://www.mic... | Tools to view/solve Windows XP memory fragmentation We have a java program that requires a large amount of heap space - we start it with (among other command line arguments) the argument -Xmx1500m, which specifies a maximum heap space of 1500 MB. When starting this program on a Windows XP box that has been freshly rebo... | TITLE:
Tools to view/solve Windows XP memory fragmentation
QUESTION:
We have a java program that requires a large amount of heap space - we start it with (among other command line arguments) the argument -Xmx1500m, which specifies a maximum heap space of 1500 MB. When starting this program on a Windows XP box that has... | [
"java",
"windows",
"memory",
"memory-management",
"windows-xp"
] | 6 | 2 | 6,975 | 6 | 0 | 2008-09-19T16:48:06.413000 | 2008-09-19T17:38:02.610000 |
103,630 | 647,656 | jQuery Menu and ASP.NET Sitemap | Is it possible to use an ASP.NET web.sitemap with a jQuery Superfish menu? If not, are there any standards based browser agnostic plugins available that work with the web.sitemap file? | I found this question while looking for the same answer... everyone says it's possible but no-one gives the actual solution! I seem to have it working now so thought I'd post my findings... Things I needed: Superfish which also includes a version of jQuery CSS Friendly Control Adaptors download DLL and.browsers file (i... | jQuery Menu and ASP.NET Sitemap Is it possible to use an ASP.NET web.sitemap with a jQuery Superfish menu? If not, are there any standards based browser agnostic plugins available that work with the web.sitemap file? | TITLE:
jQuery Menu and ASP.NET Sitemap
QUESTION:
Is it possible to use an ASP.NET web.sitemap with a jQuery Superfish menu? If not, are there any standards based browser agnostic plugins available that work with the web.sitemap file?
ANSWER:
I found this question while looking for the same answer... everyone says it'... | [
"asp.net",
"jquery",
"superfish"
] | 20 | 29 | 25,374 | 6 | 0 | 2008-09-19T16:49:27.063000 | 2009-03-15T11:24:55.053000 |
103,633 | 104,091 | Pascal's Theorem for non-unique sets? | Pascal's rule on counting the subset's of a set works great, when the set contains unique entities. Is there a modification to this rule for when the set contains duplicate items? For instance, when I try to find the count of the combinations of the letters A,B,C,D, it's easy to see that it's 1 + 4 + 6 + 4 + 1 (from Pa... | It looks like you want to know how many sub-multi-sets have, say, 3 elements. The math for this gets very tricky, very quickly. The idea is that you want to add together all of the combinations of ways to get there. So you have C(3,4) = 4 ways of doing it with no duplicated elements. B can be repeated twice in C(1,3) =... | Pascal's Theorem for non-unique sets? Pascal's rule on counting the subset's of a set works great, when the set contains unique entities. Is there a modification to this rule for when the set contains duplicate items? For instance, when I try to find the count of the combinations of the letters A,B,C,D, it's easy to se... | TITLE:
Pascal's Theorem for non-unique sets?
QUESTION:
Pascal's rule on counting the subset's of a set works great, when the set contains unique entities. Is there a modification to this rule for when the set contains duplicate items? For instance, when I try to find the count of the combinations of the letters A,B,C,... | [
"math",
"pascals-triangle"
] | 3 | 4 | 524 | 6 | 0 | 2008-09-19T16:49:44.443000 | 2008-09-19T17:55:18.717000 |
103,654 | 108,776 | Why don't languages raise errors on integer overflow by default? | In several modern programming languages (including C++, Java, and C#), the language allows integer overflow to occur at runtime without raising any kind of error condition. For example, consider this (contrived) C# method, which does not account for the possibility of overflow/underflow. (For brevity, the method also d... | In C#, it was a question of performance. Specifically, out-of-box benchmarking. When C# was new, Microsoft was hoping a lot of C++ developers would switch to it. They knew that many C++ folks thought of C++ as being fast, especially faster than languages that "wasted" time on automatic memory management and the like. B... | Why don't languages raise errors on integer overflow by default? In several modern programming languages (including C++, Java, and C#), the language allows integer overflow to occur at runtime without raising any kind of error condition. For example, consider this (contrived) C# method, which does not account for the p... | TITLE:
Why don't languages raise errors on integer overflow by default?
QUESTION:
In several modern programming languages (including C++, Java, and C#), the language allows integer overflow to occur at runtime without raising any kind of error condition. For example, consider this (contrived) C# method, which does not... | [
"language-agnostic",
"integer",
"language-design",
"integer-overflow"
] | 53 | 45 | 5,946 | 10 | 0 | 2008-09-19T16:53:10.533000 | 2008-09-20T17:15:15.730000 |
103,669 | 103,745 | What makes you a C programming expert? | I attended a job fair yesterday and a developer asked me how I would rank my proficiency in C. I then realized that this is incredibly arbitrary and almost impossible to nail down, so my question is what knowledge makes you an expert in programming C? Edit: or what would the breakdown be? what makes you good, decent, p... | Experience is key, knowing the "rules" and syntax of the of the language is of course a must, but it is only a base. Learning the common pitfalls and idioms for doing things right is key. Knowing what if any resources exist to get help from while your programing, and of course, knowing you're tool chain. I've known man... | What makes you a C programming expert? I attended a job fair yesterday and a developer asked me how I would rank my proficiency in C. I then realized that this is incredibly arbitrary and almost impossible to nail down, so my question is what knowledge makes you an expert in programming C? Edit: or what would the break... | TITLE:
What makes you a C programming expert?
QUESTION:
I attended a job fair yesterday and a developer asked me how I would rank my proficiency in C. I then realized that this is incredibly arbitrary and almost impossible to nail down, so my question is what knowledge makes you an expert in programming C? Edit: or wh... | [
"c"
] | 26 | 16 | 20,882 | 17 | 0 | 2008-09-19T16:55:46.440000 | 2008-09-19T17:06:49.893000 |
103,676 | 119,965 | What's the best database access pattern for testability? | I've read about and dabbled with some including active record, repository, data transfer objects. Which is best? | Repository is probably the best pattern for testability since it allows you to replace a repository with a mock when you need to test. ActiveRecord ties your models to the database (convenient sometimes, but generally more dificcult to test). | What's the best database access pattern for testability? I've read about and dabbled with some including active record, repository, data transfer objects. Which is best? | TITLE:
What's the best database access pattern for testability?
QUESTION:
I've read about and dabbled with some including active record, repository, data transfer objects. Which is best?
ANSWER:
Repository is probably the best pattern for testability since it allows you to replace a repository with a mock when you ne... | [
"database",
"testing",
"design-patterns",
"data-access"
] | 1 | 1 | 781 | 5 | 0 | 2008-09-19T16:57:03.567000 | 2008-09-23T09:03:18.820000 |
103,677 | 103,750 | Machine.Migrations mature enough to be used? | Ok thanks for the 1st guy I found the code. Machine.Migrations: I mean, the data schema/data migration framework. I mean, the one mentioned here: http://blog.eleutian.com/2008/04/25/AFirstLookAtMachineMigrations.aspx Ok so somebody had used it? I think I would like to have such framework in my project (I have been usin... | It is an experimental library authored by the blog author. See http://blog.eleutian.com/Default.aspx#a2e4f933f-e00c-445e-ab64-17bf9a64d96f There is a link at the bottom of that post. | Machine.Migrations mature enough to be used? Ok thanks for the 1st guy I found the code. Machine.Migrations: I mean, the data schema/data migration framework. I mean, the one mentioned here: http://blog.eleutian.com/2008/04/25/AFirstLookAtMachineMigrations.aspx Ok so somebody had used it? I think I would like to have s... | TITLE:
Machine.Migrations mature enough to be used?
QUESTION:
Ok thanks for the 1st guy I found the code. Machine.Migrations: I mean, the data schema/data migration framework. I mean, the one mentioned here: http://blog.eleutian.com/2008/04/25/AFirstLookAtMachineMigrations.aspx Ok so somebody had used it? I think I wo... | [
".net",
"database"
] | 1 | 1 | 1,083 | 2 | 0 | 2008-09-19T16:57:07.640000 | 2008-09-19T17:07:21.733000 |
103,679 | 103,827 | What is a javascript hash table implementation that avoids object namespace collisions? | First off: I'm using a rather obscure implementation of javascript embedded as a scripting engine for Adobe InDesign CS3. This implementation sometimes diverges from "standard" javascript, hence my problem. I'm using John Resig's jsdiff library ( source here ) to compare selections of text between two documents. jsdiff... | You might be "asking the wrong question" (as Raymond Chen would say); rather than trying to avoid using the vanilla objects, try changing the way the associative array members are named. The way I'd try to approach this: instead of there being an array member ns["reflect"], change the way that jsdiff builds the arrays ... | What is a javascript hash table implementation that avoids object namespace collisions? First off: I'm using a rather obscure implementation of javascript embedded as a scripting engine for Adobe InDesign CS3. This implementation sometimes diverges from "standard" javascript, hence my problem. I'm using John Resig's js... | TITLE:
What is a javascript hash table implementation that avoids object namespace collisions?
QUESTION:
First off: I'm using a rather obscure implementation of javascript embedded as a scripting engine for Adobe InDesign CS3. This implementation sometimes diverges from "standard" javascript, hence my problem. I'm usi... | [
"javascript",
"hash",
"diff",
"adobe-indesign"
] | 2 | 5 | 2,073 | 3 | 0 | 2008-09-19T16:57:32.553000 | 2008-09-19T17:19:12.423000 |
103,688 | 104,731 | ReportViewer displaying black background in Print Layout mode | In my ReportViewer control, when I click on Print Layout, the background turns black on the report. This must be a bug. Is there a workaround? | Microsoft was already aware of this issue, its KB is located here. You can solve the problem by installing Cumulative Update 1 (build 3161), which can be requested for download through the following Microsoft page If you can wait a little while more I think the fix will come out with SQL Server 2005 SP3 | ReportViewer displaying black background in Print Layout mode In my ReportViewer control, when I click on Print Layout, the background turns black on the report. This must be a bug. Is there a workaround? | TITLE:
ReportViewer displaying black background in Print Layout mode
QUESTION:
In my ReportViewer control, when I click on Print Layout, the background turns black on the report. This must be a bug. Is there a workaround?
ANSWER:
Microsoft was already aware of this issue, its KB is located here. You can solve the pro... | [
"visual-studio",
"reporting-services",
"reportviewer"
] | 4 | 7 | 1,661 | 1 | 0 | 2008-09-19T16:58:49.243000 | 2008-09-19T19:19:52.257000 |
103,707 | 103,746 | PHP/JS - Create thumbnails on the fly or store as files | For an image hosting web application: For my stored images, is it feasible to create thumbnails on the fly using PHP (or whatever), or should I save 1 or more different sized thumbnails to disk and just load those? Any help is appreciated. | Save thumbnails to disk. Image processing takes a lot of resources and, depending on the size of the image, might exceed the default allowed memory limit for php. It is less of a concern if you have your own server with only your application running but it still takes a lot of cpu power and memory to resize images. If ... | PHP/JS - Create thumbnails on the fly or store as files For an image hosting web application: For my stored images, is it feasible to create thumbnails on the fly using PHP (or whatever), or should I save 1 or more different sized thumbnails to disk and just load those? Any help is appreciated. | TITLE:
PHP/JS - Create thumbnails on the fly or store as files
QUESTION:
For an image hosting web application: For my stored images, is it feasible to create thumbnails on the fly using PHP (or whatever), or should I save 1 or more different sized thumbnails to disk and just load those? Any help is appreciated.
ANSWE... | [
"php",
"javascript",
"image",
"image-manipulation",
"thumbnails"
] | 2 | 12 | 8,323 | 5 | 0 | 2008-09-19T17:00:30.097000 | 2008-09-19T17:06:55.087000 |
103,708 | 104,829 | Disappearing checkbox label in ASP.Net 3.5 DetailsView control | I have a web form with a button and a DetailsView control on it. In the button's click event I change the DetailsView control to insert mode so I can add records: DetailsView1.ChangeMode(DetailsViewMode.Insert) Everything works fine, except for a checkbox in the DetailsView. When the DetailsView goes into insert mode, ... | I was able to fix my problem by changing it to a template field. Not sure why it wouldn't work the other way. | Disappearing checkbox label in ASP.Net 3.5 DetailsView control I have a web form with a button and a DetailsView control on it. In the button's click event I change the DetailsView control to insert mode so I can add records: DetailsView1.ChangeMode(DetailsViewMode.Insert) Everything works fine, except for a checkbox i... | TITLE:
Disappearing checkbox label in ASP.Net 3.5 DetailsView control
QUESTION:
I have a web form with a button and a DetailsView control on it. In the button's click event I change the DetailsView control to insert mode so I can add records: DetailsView1.ChangeMode(DetailsViewMode.Insert) Everything works fine, excep... | [
"asp.net",
"webforms",
"checkbox",
"detailsview"
] | 0 | 2 | 1,865 | 3 | 0 | 2008-09-19T17:00:34.590000 | 2008-09-19T19:31:45.770000 |
103,723 | 525,314 | Is there a way to get FlexBuilder 3 to treat a project as an Application and a LIbrary? | My team builds reusable libraries for other (internal) software development teams. We use FlexBuilder 3 as our development environment. Our SCM standards state that these projects must include test harnesses and a unit test runner, and (of course) we want to be able to use the debugger. For that reason, all the project... | I would also suggest breaking this up into 2 projects. Have 1 library project and 1 application for the tests and the testrunner. On a sidenote: FlexBuilder 4 will have support for running FlexUnit tests in the IDE, for both Flex applications and Flex library projects. So you won't have to maintain an application just ... | Is there a way to get FlexBuilder 3 to treat a project as an Application and a LIbrary? My team builds reusable libraries for other (internal) software development teams. We use FlexBuilder 3 as our development environment. Our SCM standards state that these projects must include test harnesses and a unit test runner, ... | TITLE:
Is there a way to get FlexBuilder 3 to treat a project as an Application and a LIbrary?
QUESTION:
My team builds reusable libraries for other (internal) software development teams. We use FlexBuilder 3 as our development environment. Our SCM standards state that these projects must include test harnesses and a ... | [
"apache-flex",
"flexbuilder"
] | 2 | 2 | 434 | 4 | 0 | 2008-09-19T17:03:00.247000 | 2009-02-08T07:09:31.957000 |
103,727 | 104,777 | How to think in data stores instead of databases? | As an example, Google App Engine uses Google Datastore, not a standard database, to store data. Does anybody have any tips for using Google Datastore instead of databases? It seems I've trained my mind to think 100% in object relationships that map directly to table structures, and now it's hard to see anything differe... | There's two main things to get used to about the App Engine datastore when compared to 'traditional' relational databases: The datastore makes no distinction between inserts and updates. When you call put() on an entity, that entity gets stored to the datastore with its unique key, and anything that has that key gets o... | How to think in data stores instead of databases? As an example, Google App Engine uses Google Datastore, not a standard database, to store data. Does anybody have any tips for using Google Datastore instead of databases? It seems I've trained my mind to think 100% in object relationships that map directly to table str... | TITLE:
How to think in data stores instead of databases?
QUESTION:
As an example, Google App Engine uses Google Datastore, not a standard database, to store data. Does anybody have any tips for using Google Datastore instead of databases? It seems I've trained my mind to think 100% in object relationships that map dir... | [
"database",
"google-app-engine",
"google-cloud-platform",
"google-cloud-datastore"
] | 186 | 150 | 24,306 | 8 | 0 | 2008-09-19T17:03:11.227000 | 2008-09-19T19:24:34.413000 |
103,765 | 103,826 | How do I persist the value of a label through a response.redirect? | Here's the situation: I have a label's text set, immediately followed by a response.redirect() call as follows (this is just an example, but I believe it describes my situation accurately): aspx: Code-behind (code called on an onclick event): Label.Text = "foo"; Response.Redirect("Default.aspx"); When the page renders,... | After a redirect you will loose any state information associated to your controls. If you simply want the page to refresh, remove the redirect. After the code has finished executing, the page will refresh and any state will be kept. Behind the scenes, this works because ASP.NET writes the state information to a hidden ... | How do I persist the value of a label through a response.redirect? Here's the situation: I have a label's text set, immediately followed by a response.redirect() call as follows (this is just an example, but I believe it describes my situation accurately): aspx: Code-behind (code called on an onclick event): Label.Text... | TITLE:
How do I persist the value of a label through a response.redirect?
QUESTION:
Here's the situation: I have a label's text set, immediately followed by a response.redirect() call as follows (this is just an example, but I believe it describes my situation accurately): aspx: Code-behind (code called on an onclick ... | [
"asp.net",
"persistence",
"viewstate"
] | 0 | 1 | 3,137 | 6 | 0 | 2008-09-19T17:10:57.090000 | 2008-09-19T17:19:10.207000 |
103,766 | 103,809 | What's the best way to store changes to database records that require approval before being visible? | I need to store user entered changes to a particular table, but not show those changes until they have been viewed and approved by an administrative user. While those changes are still in a pending state, I would still display the old version of the data. What would be the best way of storing these changes waiting for ... | Size is your enemy. If you are dealing with lots of data and large numbers of rows, then having the historical mixed in with the current will hammer you. You'll also have problems if you join out to other data with making sure you've got the right rows. If you need to save the historical data to show changes over time,... | What's the best way to store changes to database records that require approval before being visible? I need to store user entered changes to a particular table, but not show those changes until they have been viewed and approved by an administrative user. While those changes are still in a pending state, I would still ... | TITLE:
What's the best way to store changes to database records that require approval before being visible?
QUESTION:
I need to store user entered changes to a particular table, but not show those changes until they have been viewed and approved by an administrative user. While those changes are still in a pending sta... | [
"database-design"
] | 45 | 12 | 15,122 | 8 | 0 | 2008-09-19T17:10:58.340000 | 2008-09-19T17:16:14.007000 |
103,785 | 103,817 | What are the (dis)advantages of using Cassini instead of IIS? | I've found that on some occasions I can edit the source while debugging. Are there any other advantages of using the Visual Studio built-in webserver instead of a virtual directory in IIS? I'm using Windows XP on my development environment, and a local instance of IIS 5. I work on several projects, so I use multiple vi... | The built-in web server for Visual Studio is called Cassini and here are a few of its limitations... It can host only one ASP.NET application per port. It does not support HTTPS. It does not support authentication. It responds only to localhost requests. It is slow startup compared to IIS | What are the (dis)advantages of using Cassini instead of IIS? I've found that on some occasions I can edit the source while debugging. Are there any other advantages of using the Visual Studio built-in webserver instead of a virtual directory in IIS? I'm using Windows XP on my development environment, and a local insta... | TITLE:
What are the (dis)advantages of using Cassini instead of IIS?
QUESTION:
I've found that on some occasions I can edit the source while debugging. Are there any other advantages of using the Visual Studio built-in webserver instead of a virtual directory in IIS? I'm using Windows XP on my development environment,... | [
"asp.net",
"visual-studio",
"iis",
"cassini"
] | 52 | 61 | 16,154 | 28 | 0 | 2008-09-19T17:13:16.790000 | 2008-09-19T17:17:29.853000 |
103,791 | 111,512 | How do you add a button to the email message window toolbar in Lotus Notes 8.5+? | A coworker has been struggling with this problem. The desired result is an installable plugin for Notes that will add a button emails with attachments that will let users save the attachment to a document management system. Finding documentation on doing this for Notes has been an uphill battle to say the least. Writin... | Both Lotus Notes 8+ and Lotus Symphony use the IBM Lotus Expeditor Toolkit. If you get the Lotus Symphony SDK here. Their are one or two examples dealing with adding button's to the symphony toolbar. They should translate almost identically to Notes. Good Luck, Brian Gianforcaro | How do you add a button to the email message window toolbar in Lotus Notes 8.5+? A coworker has been struggling with this problem. The desired result is an installable plugin for Notes that will add a button emails with attachments that will let users save the attachment to a document management system. Finding documen... | TITLE:
How do you add a button to the email message window toolbar in Lotus Notes 8.5+?
QUESTION:
A coworker has been struggling with this problem. The desired result is an installable plugin for Notes that will add a button emails with attachments that will let users save the attachment to a document management syste... | [
"java",
"eclipse",
"lotus-notes"
] | 0 | 2 | 3,506 | 4 | 0 | 2008-09-19T17:14:17.707000 | 2008-09-21T17:41:17.097000 |
103,829 | 104,001 | T-SQL: How do I get the rows from one table whose values completely match up with values in another table? | Given the following: declare @a table ( pkid int, value int )
declare @b table ( otherID int, value int )
insert into @a values (1, 1000) insert into @a values (1, 1001) insert into @a values (2, 1000) insert into @a values (2, 1001) insert into @a values (2, 1002)
insert into @b values (-1, 1000) insert into @b val... | Probably not the cheapest way to do it: SELECT a.pkId,b.otherId FROM (SELECT a.pkId,CHECKSUM_AGG(DISTINCT a.value) as 'ValueHash' FROM @a a GROUP BY a.pkId) a INNER JOIN (SELECT b.otherId,CHECKSUM_AGG(DISTINCT b.value) as 'ValueHash' FROM @b b GROUP BY b.otherId) b ON a.ValueHash = b.ValueHash You can see, basically I'... | T-SQL: How do I get the rows from one table whose values completely match up with values in another table? Given the following: declare @a table ( pkid int, value int )
declare @b table ( otherID int, value int )
insert into @a values (1, 1000) insert into @a values (1, 1001) insert into @a values (2, 1000) insert in... | TITLE:
T-SQL: How do I get the rows from one table whose values completely match up with values in another table?
QUESTION:
Given the following: declare @a table ( pkid int, value int )
declare @b table ( otherID int, value int )
insert into @a values (1, 1000) insert into @a values (1, 1001) insert into @a values (... | [
"sql-server",
"t-sql"
] | 5 | 6 | 8,252 | 12 | 0 | 2008-09-19T17:19:32.467000 | 2008-09-19T17:43:45.077000 |
103,843 | 103,917 | TIGER shapefiles - using and interpreting | I know of the US GIS TIGER file format from years ago, but have never used it. I'm very shortly going to need to very quickly implement simple geocoding and vector graphics of roads and other features. Where do I go for information - are there tutorials, example queries, etc? Are there other ways to include geocoding a... | As far as I'm aware of, there aren't many applications that make use of the TIGER/Line format directly. Most apps use TIGER files that have been translated into ESRI's shapefile format. Edited to add: Is there information on ESRI's format available? There's an ESRI whitepaper describing the file format. If you're plann... | TIGER shapefiles - using and interpreting I know of the US GIS TIGER file format from years ago, but have never used it. I'm very shortly going to need to very quickly implement simple geocoding and vector graphics of roads and other features. Where do I go for information - are there tutorials, example queries, etc? A... | TITLE:
TIGER shapefiles - using and interpreting
QUESTION:
I know of the US GIS TIGER file format from years ago, but have never used it. I'm very shortly going to need to very quickly implement simple geocoding and vector graphics of roads and other features. Where do I go for information - are there tutorials, examp... | [
"mapping",
"gis",
"geocoding"
] | 3 | 3 | 712 | 2 | 0 | 2008-09-19T17:21:51.027000 | 2008-09-19T17:31:27.027000 |
103,844 | 103,895 | How do I merge a 2D array in Python into one string with List Comprehension? | List Comprehension for me seems to be like the opaque block of granite that regular expressions are for me. I need pointers. Say, I have a 2D list: li = [[0,1,2],[3,4,5],[6,7,8]] I would like to merge this either into one long list li2 = [0,1,2,3,4,5,6,7,8] or into a string with separators: s = "0,1,2,3,4,5,6,7,8" Real... | Like so: [ item for innerlist in outerlist for item in innerlist ] Turning that directly into a string with separators: ','.join(str(item) for innerlist in outerlist for item in innerlist) Yes, the order of 'for innerlist in outerlist' and 'for item in innerlist' is correct. Even though the "body" of the loop is at the... | How do I merge a 2D array in Python into one string with List Comprehension? List Comprehension for me seems to be like the opaque block of granite that regular expressions are for me. I need pointers. Say, I have a 2D list: li = [[0,1,2],[3,4,5],[6,7,8]] I would like to merge this either into one long list li2 = [0,1,... | TITLE:
How do I merge a 2D array in Python into one string with List Comprehension?
QUESTION:
List Comprehension for me seems to be like the opaque block of granite that regular expressions are for me. I need pointers. Say, I have a 2D list: li = [[0,1,2],[3,4,5],[6,7,8]] I would like to merge this either into one lon... | [
"python",
"list-comprehension"
] | 23 | 35 | 47,054 | 9 | 0 | 2008-09-19T17:21:53.570000 | 2008-09-19T17:28:14.087000 |
103,861 | 103,928 | Communicating between Java and Flash without a Flash-specific server | I have Java and Flash client applications. What is the best way for the two to communicate without special Flash-specific servers such as BlazeDS or Red5? I am looking for a light client-only solution. | Well, you can make http requests from flash to any url... so if your java server has a point where it can listen to incoming requests and process XML or JSON, your flash client can just make the request to that url. BlazeDS and Red5 just aim to make it simpler by handling the translation for you making it possible to c... | Communicating between Java and Flash without a Flash-specific server I have Java and Flash client applications. What is the best way for the two to communicate without special Flash-specific servers such as BlazeDS or Red5? I am looking for a light client-only solution. | TITLE:
Communicating between Java and Flash without a Flash-specific server
QUESTION:
I have Java and Flash client applications. What is the best way for the two to communicate without special Flash-specific servers such as BlazeDS or Red5? I am looking for a light client-only solution.
ANSWER:
Well, you can make htt... | [
"java",
"flash"
] | 0 | 1 | 1,451 | 5 | 0 | 2008-09-19T17:23:18.590000 | 2008-09-19T17:33:26.117000 |
103,892 | 2,060,598 | How does Authorize.Net Silent Post work? | Authorize.net offers a "Silent POST" feature for their Automated Recurring Billing. It's supposed to POST data to a url of your choosing, telling you whether they were able to charge the customer, how much, etc. The problem is, it isn't very well documented. Is there any way to test a post to that URL? I've signed up f... | Better late then never: All About Authorize.Net’s Silent Post | How does Authorize.Net Silent Post work? Authorize.net offers a "Silent POST" feature for their Automated Recurring Billing. It's supposed to POST data to a url of your choosing, telling you whether they were able to charge the customer, how much, etc. The problem is, it isn't very well documented. Is there any way to ... | TITLE:
How does Authorize.Net Silent Post work?
QUESTION:
Authorize.net offers a "Silent POST" feature for their Automated Recurring Billing. It's supposed to POST data to a url of your choosing, telling you whether they were able to charge the customer, how much, etc. The problem is, it isn't very well documented. Is... | [
"e-commerce",
"authorize.net",
"silent-post"
] | 4 | 8 | 10,075 | 6 | 0 | 2008-09-19T17:27:50.357000 | 2010-01-13T21:59:53.620000 |
103,918 | 104,163 | Automate a Ruby Gem install that has input | I am trying to install the ibm_db gem so that I can access DB2 from Ruby. When I try: sudo gem install ibm_db I get the following request for clarification: Select which gem to install for your platform (i486-linux) 1. ibm_db 0.10.0 (ruby) 2. ibm_db 0.10.0 (mswin32) 3. ibm_db 0.9.5 (mswin32) 4. ibm_db 0.9.5 (ruby) 5. S... | You can use a 'here document'. That is: sudo gem install ibm_db < What's between the \<\<\SOMETHING and SOMETHING gets inputted as entry to the previous command (somewhat like ruby's own heredocuments). The 1 there alone, of course, is the selection of the "ibm_db 0.10.0 (ruby)" platform. Hope it's enough. | Automate a Ruby Gem install that has input I am trying to install the ibm_db gem so that I can access DB2 from Ruby. When I try: sudo gem install ibm_db I get the following request for clarification: Select which gem to install for your platform (i486-linux) 1. ibm_db 0.10.0 (ruby) 2. ibm_db 0.10.0 (mswin32) 3. ibm_db ... | TITLE:
Automate a Ruby Gem install that has input
QUESTION:
I am trying to install the ibm_db gem so that I can access DB2 from Ruby. When I try: sudo gem install ibm_db I get the following request for clarification: Select which gem to install for your platform (i486-linux) 1. ibm_db 0.10.0 (ruby) 2. ibm_db 0.10.0 (m... | [
"ruby",
"database",
"automation",
"rubygems",
"db2"
] | 1 | 2 | 1,454 | 6 | 0 | 2008-09-19T17:31:33.780000 | 2008-09-19T18:07:55.427000 |
103,919 | 104,460 | How do you implement a function which returns the URL of last visited page | I want to store the current URL in a session variable to reference the previous visited page. If I store every URL (via a before_filter on ApplicationController), also actions which end in a redirect (create, update, etc) are considered as last visited page. Is there a way to tell Rails only to execute a function if a ... | Not sure why @performed_redirect isn't working, you can see that it does exist and have the desired values by calling the actions on this test controller: class RedirController < ApplicationController after_filter:redir_raise
def raise_true redirect_to:action =>:whatever end
def raise_false render:text => 'foo' end
... | How do you implement a function which returns the URL of last visited page I want to store the current URL in a session variable to reference the previous visited page. If I store every URL (via a before_filter on ApplicationController), also actions which end in a redirect (create, update, etc) are considered as last ... | TITLE:
How do you implement a function which returns the URL of last visited page
QUESTION:
I want to store the current URL in a session variable to reference the previous visited page. If I store every URL (via a before_filter on ApplicationController), also actions which end in a redirect (create, update, etc) are c... | [
"ruby-on-rails",
"ruby"
] | 1 | 2 | 991 | 4 | 0 | 2008-09-19T17:31:33.813000 | 2008-09-19T18:47:29.480000 |
103,938 | 104,123 | ResultSet not closed when connection closed? | I've been doing code review (mostly using tools like FindBugs) of one of our pet projects and FindBugs marked following code as erroneous (pseudocode): Connection conn = dataSource.getConnection();
try{ PreparedStatement stmt = conn.prepareStatement(); //initialize the statement stmt.execute(); ResultSet rs = stmt.get... | One problem with ONLY closing the connection and not the result set, is that if your connection management code is using connection pooling, the connection.close() would just put the connection back in the pool. Additionally, some database have a cursor resource on the server that will not be freed properly unless it i... | ResultSet not closed when connection closed? I've been doing code review (mostly using tools like FindBugs) of one of our pet projects and FindBugs marked following code as erroneous (pseudocode): Connection conn = dataSource.getConnection();
try{ PreparedStatement stmt = conn.prepareStatement(); //initialize the stat... | TITLE:
ResultSet not closed when connection closed?
QUESTION:
I've been doing code review (mostly using tools like FindBugs) of one of our pet projects and FindBugs marked following code as erroneous (pseudocode): Connection conn = dataSource.getConnection();
try{ PreparedStatement stmt = conn.prepareStatement(); //i... | [
"java",
"jdbc",
"findbugs"
] | 49 | 52 | 68,268 | 8 | 0 | 2008-09-19T17:35:35.767000 | 2008-09-19T18:00:44.100000 |
103,980 | 104,116 | Specifying location of new inlineshape in Word VBA? | I'm working on a document "wizard" for the company that I work for. It's a.dot file with a header consisting of some text and some form fields, and a lot of VBA code. The body of the document is pulled in as an OLE object from a separate.doc file. Currently, this is being done as a Shape, rather than an InlineShape. I ... | InlineShape is treated as a letter. Hence, the same technique. ThisDocument.Range(15).InlineShapes.AddPicture "1.gif" | Specifying location of new inlineshape in Word VBA? I'm working on a document "wizard" for the company that I work for. It's a.dot file with a header consisting of some text and some form fields, and a lot of VBA code. The body of the document is pulled in as an OLE object from a separate.doc file. Currently, this is b... | TITLE:
Specifying location of new inlineshape in Word VBA?
QUESTION:
I'm working on a document "wizard" for the company that I work for. It's a.dot file with a header consisting of some text and some form fields, and a lot of VBA code. The body of the document is pulled in as an OLE object from a separate.doc file. Cu... | [
"vba",
"ms-word"
] | 2 | 3 | 5,077 | 2 | 0 | 2008-09-19T17:40:44.057000 | 2008-09-19T17:58:20.363000 |
103,989 | 104,182 | looking for a tuple matching algorithm | I need to implement an in-memory tuple-of-strings matching feature in C. There will be large list of tuples associated with different actions and a high volume of events to be matched against the list. List of tuples: ("one", "four") ("one") ("three") ("four", "five") ("six") event ("one", "two", "three", "four") shoul... | If you only have a small number of possible tuple values it would make sense to write some sort of hashing function which could turn them into integer indexes for quick searching. If there are < 32 values you could do something with bitmasks: unsigned int hash(char *value){...}
typedef struct _tuple { unsigned int bit... | looking for a tuple matching algorithm I need to implement an in-memory tuple-of-strings matching feature in C. There will be large list of tuples associated with different actions and a high volume of events to be matched against the list. List of tuples: ("one", "four") ("one") ("three") ("four", "five") ("six") even... | TITLE:
looking for a tuple matching algorithm
QUESTION:
I need to implement an in-memory tuple-of-strings matching feature in C. There will be large list of tuples associated with different actions and a high volume of events to be matched against the list. List of tuples: ("one", "four") ("one") ("three") ("four", "f... | [
"c",
"algorithm"
] | 13 | 4 | 1,837 | 5 | 0 | 2008-09-19T17:41:33.523000 | 2008-09-19T18:11:21.970000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.