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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
164,144 | 164,261 | Compare two DataTables to determine rows in one but not the other | I have two DataTables, A and B, produced from CSV files. I need to be able to check which rows exist in B that do not exist in A. Is there a way to do some sort of query to show the different rows or would I have to iterate through each row on each DataTable to check if they are the same? The latter option seems to be ... | would I have to iterate through each row on each DataTable to check if they are the same. Seeing as you've loaded the data from a CSV file, you're not going to have any indexes or anything, so at some point, something is going to have to iterate through every row, whether it be your code, or a library, or whatever. Any... | Compare two DataTables to determine rows in one but not the other I have two DataTables, A and B, produced from CSV files. I need to be able to check which rows exist in B that do not exist in A. Is there a way to do some sort of query to show the different rows or would I have to iterate through each row on each DataT... | TITLE:
Compare two DataTables to determine rows in one but not the other
QUESTION:
I have two DataTables, A and B, produced from CSV files. I need to be able to check which rows exist in B that do not exist in A. Is there a way to do some sort of query to show the different rows or would I have to iterate through each... | [
"c#",
"datatable"
] | 18 | 10 | 103,056 | 13 | 0 | 2008-10-02T19:33:12.997000 | 2008-10-02T19:55:02.990000 |
164,147 | 790,081 | Character offset in an Internet Explorer TextRange | As far as I can tell there's no simple way of retrieving a character offset from a TextRange object in Internet Explorer. The W3C Range object has a node, and the offset into the text within that node. IE seems to just have pixel offsets. There are methods to create, extend and compare ranges, so it would be possible t... | I'd suggest IERange, or just the TextRange -to- DOM Range algorithm from it. Update, 9 August 2011 I'd now suggest using my own Rangy library, which is similar in idea to IERange but much more fully realized and supported. | Character offset in an Internet Explorer TextRange As far as I can tell there's no simple way of retrieving a character offset from a TextRange object in Internet Explorer. The W3C Range object has a node, and the offset into the text within that node. IE seems to just have pixel offsets. There are methods to create, e... | TITLE:
Character offset in an Internet Explorer TextRange
QUESTION:
As far as I can tell there's no simple way of retrieving a character offset from a TextRange object in Internet Explorer. The W3C Range object has a node, and the offset into the text within that node. IE seems to just have pixel offsets. There are me... | [
"javascript",
"html",
"internet-explorer",
"dom-selection"
] | 4 | 5 | 8,542 | 4 | 0 | 2008-10-02T19:34:12.103000 | 2009-04-26T01:30:56.597000 |
164,162 | 177,310 | Flex graphic assets: SWF or SWC? | Which is a better format to store graphic assets for a Flex application, SWF or SWC? Are there any real differences, and if so what are they? | Assets in a seperate SWF are loaded and included at runtime. Assets in a SWC are loaded and included / compiled at compile time. You can also directly embed assets within the main app SWF at compile time (check out the Embed meta data). Of course, you can also load individual assets (such as a PNG) directly at runtime.... | Flex graphic assets: SWF or SWC? Which is a better format to store graphic assets for a Flex application, SWF or SWC? Are there any real differences, and if so what are they? | TITLE:
Flex graphic assets: SWF or SWC?
QUESTION:
Which is a better format to store graphic assets for a Flex application, SWF or SWC? Are there any real differences, and if so what are they?
ANSWER:
Assets in a seperate SWF are loaded and included at runtime. Assets in a SWC are loaded and included / compiled at com... | [
"apache-flex",
"actionscript-3",
"flash",
"asset-management"
] | 12 | 15 | 12,565 | 4 | 0 | 2008-10-02T19:37:24.170000 | 2008-10-07T05:27:40.643000 |
164,163 | 164,177 | Quicksort: Choosing the pivot | When implementing Quicksort, one of the things you have to do is to choose a pivot. But when I look at pseudocode like the one below, it is not clear how I should choose the pivot. First element of list? Something else? function quicksort(array) var list less, greater if length(array) ≤ 1 return array select and remove... | Choosing a random pivot minimizes the chance that you will encounter worst-case O(n 2 ) performance (always choosing first or last would cause worst-case performance for nearly-sorted or nearly-reverse-sorted data). Choosing the middle element would also be acceptable in the majority of cases. Also, if you are implemen... | Quicksort: Choosing the pivot When implementing Quicksort, one of the things you have to do is to choose a pivot. But when I look at pseudocode like the one below, it is not clear how I should choose the pivot. First element of list? Something else? function quicksort(array) var list less, greater if length(array) ≤ 1 ... | TITLE:
Quicksort: Choosing the pivot
QUESTION:
When implementing Quicksort, one of the things you have to do is to choose a pivot. But when I look at pseudocode like the one below, it is not clear how I should choose the pivot. First element of list? Something else? function quicksort(array) var list less, greater if ... | [
"algorithm",
"sorting",
"pseudocode",
"quicksort"
] | 133 | 112 | 201,681 | 15 | 0 | 2008-10-02T19:37:42.500000 | 2008-10-02T19:41:36.657000 |
164,168 | 164,274 | How do you construct a std::string with an embedded null? | If I want to construct a std::string with a line like: std::string my_string("a\0b"); Where i want to have three characters in the resulting string (a, null, b), I only get one. What is the proper syntax? | Since C++14 we have been able to create literal std::string #include #include int main() { using namespace std::string_literals;
std::string s = "pl-\0-op"s; // <- Notice the "s" at the end // This is a std::string literal not // a C-String literal. std::cout << s << "\n"; } Before C++14 The problem is the std::string... | How do you construct a std::string with an embedded null? If I want to construct a std::string with a line like: std::string my_string("a\0b"); Where i want to have three characters in the resulting string (a, null, b), I only get one. What is the proper syntax? | TITLE:
How do you construct a std::string with an embedded null?
QUESTION:
If I want to construct a std::string with a line like: std::string my_string("a\0b"); Where i want to have three characters in the resulting string (a, null, b), I only get one. What is the proper syntax?
ANSWER:
Since C++14 we have been able ... | [
"c++",
"null",
"stdstring"
] | 109 | 157 | 56,776 | 11 | 0 | 2008-10-02T19:39:03.340000 | 2008-10-02T19:56:53.250000 |
164,173 | 164,224 | Informix SQL Syntax - Nest Count, Sum, Round | Let me apologize in advance for the simplicity of this question (I heard Jeff's podcast and his concern that the quality of the questions will be "dumbed down"), but I'm stuck. I'm using AquaData to hit my Informix DB. There are quirky little nuances between MS SQL and Informix SQL. Anyway, I'm trying to do a simple ne... | SELECT score, count(*) students, count(finished) finished, count(finished) / count(*) AS something_other_than_students, round((count(finished) / count(*)),2) AS rounded_value FROM now_calc GROUP BY score ORDER BY score; Note that the output column name 'students' was being repeated and was also confusing you. The AS I ... | Informix SQL Syntax - Nest Count, Sum, Round Let me apologize in advance for the simplicity of this question (I heard Jeff's podcast and his concern that the quality of the questions will be "dumbed down"), but I'm stuck. I'm using AquaData to hit my Informix DB. There are quirky little nuances between MS SQL and Infor... | TITLE:
Informix SQL Syntax - Nest Count, Sum, Round
QUESTION:
Let me apologize in advance for the simplicity of this question (I heard Jeff's podcast and his concern that the quality of the questions will be "dumbed down"), but I'm stuck. I'm using AquaData to hit my Informix DB. There are quirky little nuances betwee... | [
"sql",
"t-sql",
"syntax",
"count",
"informix"
] | 2 | 2 | 11,278 | 1 | 0 | 2008-10-02T19:40:03.883000 | 2008-10-02T19:48:40.027000 |
164,181 | 164,191 | How to fetch a remote image to display in a canvas? | How can I fetch images from a server? I've got this bit of code which allows me to draw some images on a canvas. Instead of looping over document.images, i would like to continually fetch images from a server. for (;;) { /* how to fetch myimage??? */ myimage = fetch???('http://myserver/nextimage.cgi'); ctx.drawImage(my... | Use the built-in JavaScript Image object. Here is a very simple example of using the Image object: myimage = new Image(); myimage.src = 'http://myserver/nextimage.cgi'; Here is a more appropriate mechanism for your scenario from the comments on this answer. Thanks olliej! It's worth noting that you can't synchronously ... | How to fetch a remote image to display in a canvas? How can I fetch images from a server? I've got this bit of code which allows me to draw some images on a canvas. Instead of looping over document.images, i would like to continually fetch images from a server. for (;;) { /* how to fetch myimage??? */ myimage = fetch??... | TITLE:
How to fetch a remote image to display in a canvas?
QUESTION:
How can I fetch images from a server? I've got this bit of code which allows me to draw some images on a canvas. Instead of looping over document.images, i would like to continually fetch images from a server. for (;;) { /* how to fetch myimage??? */... | [
"javascript",
"image",
"canvas"
] | 9 | 25 | 35,478 | 6 | 0 | 2008-10-02T19:42:28.713000 | 2008-10-02T19:44:43.827000 |
164,192 | 164,270 | How to get Single XElement object using Linq to Xml? | I would like to use Linq to Xml to get a single XElement from a.xml file by attribute name, similar to how you retrieve single objects in Linq to Sql by Id below: var singleDog = context.Dogs.Single(p => p.Id == int.Parse(Id)); Is this possible? | Absolutely. Just use something like: xdoc.Descendants().Where(x => x.HasAttribute("id") && x.Attribute("id")==id).Single(); There may be a more efficient way of doing it, admittedly... | How to get Single XElement object using Linq to Xml? I would like to use Linq to Xml to get a single XElement from a.xml file by attribute name, similar to how you retrieve single objects in Linq to Sql by Id below: var singleDog = context.Dogs.Single(p => p.Id == int.Parse(Id)); Is this possible? | TITLE:
How to get Single XElement object using Linq to Xml?
QUESTION:
I would like to use Linq to Xml to get a single XElement from a.xml file by attribute name, similar to how you retrieve single objects in Linq to Sql by Id below: var singleDog = context.Dogs.Single(p => p.Id == int.Parse(Id)); Is this possible?
AN... | [
"c#",
".net",
"linq-to-xml"
] | 3 | 7 | 3,996 | 1 | 0 | 2008-10-02T19:45:11.860000 | 2008-10-02T19:56:03.330000 |
164,194 | 164,258 | Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"? | The following code receives seg fault on line 2: char *str = "string"; str[0] = 'z'; // could be also written as *str = 'z' printf("%s\n", str); While this works perfectly well: char str[] = "string"; str[0] = 'z'; printf("%s\n", str); Tested with MSVC and GCC. | See the C FAQ, Question 1.32 Q: What is the difference between these initializations? char a[] = "string literal"; char *p = "string literal"; My program crashes if I try to assign a new value to p[i]. A: A string literal (the formal term for a double-quoted string in C source) can be used in two slightly different way... | Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"? The following code receives seg fault on line 2: char *str = "string"; str[0] = 'z'; // could be also written as *str = 'z' printf("%s\n", str); While this works perfectly well: char str[] = "string"; st... | TITLE:
Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"?
QUESTION:
The following code receives seg fault on line 2: char *str = "string"; str[0] = 'z'; // could be also written as *str = 'z' printf("%s\n", str); While this works perfectly well: char st... | [
"c",
"segmentation-fault",
"c-strings"
] | 344 | 283 | 102,770 | 20 | 0 | 2008-10-02T19:45:21.547000 | 2008-10-02T19:54:04.863000 |
164,197 | 164,218 | Printing barcode labels from a web page | I am working on an ASP.Net web application that must print dynamically created labels on standard Avery-style label sheets (one particular size, so only one overall layout). The labels have a variable number of lines (3-6) and may contain either lines of text or a graphic barcode image. Our first cut, that I inherited,... | Forget HTML and make a PDF. HTML printing is extremely variable - not just across browsers but across different versions of the same browser. PDF is a lot easier. Even if you get it exactly right with one browser / font setup / printer / phase of the moon, it will be the most fragile thing you've ever had to maintain. ... | Printing barcode labels from a web page I am working on an ASP.Net web application that must print dynamically created labels on standard Avery-style label sheets (one particular size, so only one overall layout). The labels have a variable number of lines (3-6) and may contain either lines of text or a graphic barcode... | TITLE:
Printing barcode labels from a web page
QUESTION:
I am working on an ASP.Net web application that must print dynamically created labels on standard Avery-style label sheets (one particular size, so only one overall layout). The labels have a variable number of lines (3-6) and may contain either lines of text or... | [
"asp.net",
"html",
"css",
"printing"
] | 13 | 29 | 17,803 | 10 | 0 | 2008-10-02T19:45:36.040000 | 2008-10-02T19:48:13.723000 |
164,247 | 164,259 | How do I add a EULA to a VS2008 setup project? | This is a very simple question with a simple answer, but it is not quite so simple to find the answer on the internet. I have a simple Setup (deployment) project in Visual Studio 2008, and I have the EULA text. What do I need to do in the project to get the EULA into the install wizard? | This is how you performed the actions in vs2003 an vs2005, I don't believe they've made changes but I'm not running vs2008 yet so I can't be certain. right click the installation project, select View->User Interface. In the "Start" section, right click, and select Add Dialog. Choose the license dialog. point the licens... | How do I add a EULA to a VS2008 setup project? This is a very simple question with a simple answer, but it is not quite so simple to find the answer on the internet. I have a simple Setup (deployment) project in Visual Studio 2008, and I have the EULA text. What do I need to do in the project to get the EULA into the i... | TITLE:
How do I add a EULA to a VS2008 setup project?
QUESTION:
This is a very simple question with a simple answer, but it is not quite so simple to find the answer on the internet. I have a simple Setup (deployment) project in Visual Studio 2008, and I have the EULA text. What do I need to do in the project to get t... | [
"visual-studio",
"visual-studio-2008",
"setup-project",
"eula"
] | 12 | 17 | 4,346 | 1 | 0 | 2008-10-02T19:52:16.397000 | 2008-10-02T19:54:26.890000 |
164,282 | 164,911 | Is there anyway to log Firebug 'profile' results to an external file? | Specifically, we've got some external JavaScript tracking code on our sites that throws itself into an infinite loop each time an anchor is clicked on. We don't maintain the tracking code, so we don't know exactly how it works. Since the code causes the browser to lock up almost immediately, I was wondering if there's ... | You should be able to narrow it down by setting breakpoints in the offending JavaScript. It might be messy (especially if they "minify" their JavaScript), but I think it's your best bet. | Is there anyway to log Firebug 'profile' results to an external file? Specifically, we've got some external JavaScript tracking code on our sites that throws itself into an infinite loop each time an anchor is clicked on. We don't maintain the tracking code, so we don't know exactly how it works. Since the code causes ... | TITLE:
Is there anyway to log Firebug 'profile' results to an external file?
QUESTION:
Specifically, we've got some external JavaScript tracking code on our sites that throws itself into an infinite loop each time an anchor is clicked on. We don't maintain the tracking code, so we don't know exactly how it works. Sinc... | [
"javascript",
"debugging",
"firebug"
] | 2 | 1 | 948 | 2 | 0 | 2008-10-02T20:00:17.033000 | 2008-10-02T22:37:06.767000 |
164,284 | 167,269 | How do I transfer a file using wininet that is readable by a php script? | I would like to transfer a text file to a webserver using wininet as if the file was being transferred using a web form that posts the file to the server. Based on answers I've received I've tried the following code: static TCHAR hdrs[] = "Content-Type: multipart/form-data\nContent-Length: 25"; static TCHAR frmdata[] =... | Changing the form data and headers that I had above to the following solved the problem: static TCHAR frmdata[] = "-----------------------------7d82751e2bc0858\nContent-Disposition: form-data; name=\"uploadedfile\"; filename=\"file.txt\"\nContent-Type: text/plain\n\nfile contents here\n-----------------------------7d82... | How do I transfer a file using wininet that is readable by a php script? I would like to transfer a text file to a webserver using wininet as if the file was being transferred using a web form that posts the file to the server. Based on answers I've received I've tried the following code: static TCHAR hdrs[] = "Content... | TITLE:
How do I transfer a file using wininet that is readable by a php script?
QUESTION:
I would like to transfer a text file to a webserver using wininet as if the file was being transferred using a web form that posts the file to the server. Based on answers I've received I've tried the following code: static TCHAR... | [
"php",
"c++",
"windows",
"wininet"
] | 4 | 1 | 3,839 | 3 | 0 | 2008-10-02T20:00:42.557000 | 2008-10-03T14:54:12.267000 |
164,286 | 164,312 | Writing a Scheduled Windows Service in .NET | I want to write a windows service which the user can schedule. i.e, the user can choose to run the service from 9:00 AM to 6 PM daily, or he could run it every night, starting from night 12 o clock at night to next day morning 6, etc. Is there any out of the box.NET API that will help me do this? I know I can do this u... | My first response is to question why a service? But more importantly, the question would be why not use the powerful scheduler that is provided by the operating system? That said, a windows service is pretty much just a thread that your application runs in. You could ship it in two parts, the first is the service itsel... | Writing a Scheduled Windows Service in .NET I want to write a windows service which the user can schedule. i.e, the user can choose to run the service from 9:00 AM to 6 PM daily, or he could run it every night, starting from night 12 o clock at night to next day morning 6, etc. Is there any out of the box.NET API that ... | TITLE:
Writing a Scheduled Windows Service in .NET
QUESTION:
I want to write a windows service which the user can schedule. i.e, the user can choose to run the service from 9:00 AM to 6 PM daily, or he could run it every night, starting from night 12 o clock at night to next day morning 6, etc. Is there any out of the... | [
".net",
"windows-services"
] | 3 | 6 | 3,153 | 5 | 0 | 2008-10-02T20:01:02.553000 | 2008-10-02T20:07:00.573000 |
164,292 | 301,145 | How do I avoid page breaks inside tables and groups in BIRT? | When creating reports using BIRT 2.3.1, I don't want page breaks inside tables or groups; if the table doesn't fit in the space available at the page, I want to put the entire element in the next page. Using previous versions of BIRT it was possible to set pageBreakInside to "avoid", but it didn't work. In BIRT 2.3.1 t... | This is one of the 'hard' problems in reporting. Tried to get it in 2.3 and we missed, rather than have people thinking that they were doing something wrong (when it didn't work), we backed it out in 2.3.1. This is high on the priority list for 2.5 (June 2009). Sorry to disappoint, we just ran out of time. | How do I avoid page breaks inside tables and groups in BIRT? When creating reports using BIRT 2.3.1, I don't want page breaks inside tables or groups; if the table doesn't fit in the space available at the page, I want to put the entire element in the next page. Using previous versions of BIRT it was possible to set pa... | TITLE:
How do I avoid page breaks inside tables and groups in BIRT?
QUESTION:
When creating reports using BIRT 2.3.1, I don't want page breaks inside tables or groups; if the table doesn't fit in the space available at the page, I want to put the entire element in the next page. Using previous versions of BIRT it was ... | [
"java",
"eclipse",
"report",
"birt"
] | 1 | 2 | 4,476 | 1 | 0 | 2008-10-02T20:02:16.047000 | 2008-11-19T06:17:01.993000 |
164,295 | 680,328 | How do you specify a message label when using WCF and NetMsmqBinding? | I would like to set the MSMQ message label using the NetMsmqBinding. I understand it’s easy when using the MsmqIntegrationBinding, but I would like to continue to use the NetMsmqBinding ( even call private methods, if possible) | I thought this was an interesting question. Unfortunately, from everything I've seen, it looks like you can't access the Label property on an outgoing MSMQ message using NetMsmqBinding. Here are some of the links I came across: http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/3389679b-a130-4e83-bb4c-1b522c21622... | How do you specify a message label when using WCF and NetMsmqBinding? I would like to set the MSMQ message label using the NetMsmqBinding. I understand it’s easy when using the MsmqIntegrationBinding, but I would like to continue to use the NetMsmqBinding ( even call private methods, if possible) | TITLE:
How do you specify a message label when using WCF and NetMsmqBinding?
QUESTION:
I would like to set the MSMQ message label using the NetMsmqBinding. I understand it’s easy when using the MsmqIntegrationBinding, but I would like to continue to use the NetMsmqBinding ( even call private methods, if possible)
ANS... | [
"wcf",
"msmq"
] | 3 | 4 | 2,098 | 3 | 0 | 2008-10-02T20:02:59.163000 | 2009-03-25T05:30:59.360000 |
164,297 | 165,688 | How to upgrade PowerBuilder code? | I have code from PowerBuilder 5 that can't be built. The compiler just stops before it is done without any error codes. I would like to upgrade the code to the recent version of PowerBuilder but there are some intermediate versions of PowerBuilder that have binary dependencies to an old Microsoft java dll that Microsof... | Firstly, you don't need to use "intermediate versions of PowerBuilder" to migrate up to a current version, so even if this java DLL dependency sounds questionable to me (at least it doesn't ring a bell), it's irrelevant unless it affects the target version of PowerBuilder. For migrating, you might want to check out thi... | How to upgrade PowerBuilder code? I have code from PowerBuilder 5 that can't be built. The compiler just stops before it is done without any error codes. I would like to upgrade the code to the recent version of PowerBuilder but there are some intermediate versions of PowerBuilder that have binary dependencies to an ol... | TITLE:
How to upgrade PowerBuilder code?
QUESTION:
I have code from PowerBuilder 5 that can't be built. The compiler just stops before it is done without any error codes. I would like to upgrade the code to the recent version of PowerBuilder but there are some intermediate versions of PowerBuilder that have binary dep... | [
"migration",
"powerbuilder"
] | 2 | 5 | 3,658 | 4 | 0 | 2008-10-02T20:03:57.447000 | 2008-10-03T04:26:23.260000 |
164,304 | 168,852 | Windows hangs during headless build | We are trying to automate a build of one of our products which includes a step where it packages some things with WISE. At one point WISE pops up a window with a progress bar on it to show how it is doing. If one is connected to the machine with remote desktop the build works fine but if one is not connected the build ... | Sorry for yet another guess - but I had a problem with a wise installer locking up. It was because WISE had installed a "font" and so broadcast a "system config changed" message. My DELL had a Dell utility running on it that had a message queue it wasn't reading from so the broadcast locked up the installer. WISE made ... | Windows hangs during headless build We are trying to automate a build of one of our products which includes a step where it packages some things with WISE. At one point WISE pops up a window with a progress bar on it to show how it is doing. If one is connected to the machine with remote desktop the build works fine bu... | TITLE:
Windows hangs during headless build
QUESTION:
We are trying to automate a build of one of our products which includes a step where it packages some things with WISE. At one point WISE pops up a window with a progress bar on it to show how it is doing. If one is connected to the machine with remote desktop the b... | [
"windows",
"installation",
"build-process"
] | 3 | 1 | 330 | 2 | 0 | 2008-10-02T20:05:22.450000 | 2008-10-03T20:52:36.927000 |
164,305 | 168,157 | C++ types using CodeSynthesis XSD Tree Mapping | I'm using CodeSynthesis XSD C++/Tree Mapping utility to convert an existing xsd into c++ code we can populate the values in. This was we always make sure we follow the schema. After doing the conversion, I'm trying to get it to work so I can test it. Problem is, I'm not used to doing this in c++ and it's my first time ... | I've been bitten by this before. If the line:::xml_schema::time t(); is exactly as it appears in your code (that is, with the parens) then the problem is that you didn't actually instantiate an object like you think. To instantiate an object you would use::xml_schema::time t; The first line, instead, declares a functio... | C++ types using CodeSynthesis XSD Tree Mapping I'm using CodeSynthesis XSD C++/Tree Mapping utility to convert an existing xsd into c++ code we can populate the values in. This was we always make sure we follow the schema. After doing the conversion, I'm trying to get it to work so I can test it. Problem is, I'm not us... | TITLE:
C++ types using CodeSynthesis XSD Tree Mapping
QUESTION:
I'm using CodeSynthesis XSD C++/Tree Mapping utility to convert an existing xsd into c++ code we can populate the values in. This was we always make sure we follow the schema. After doing the conversion, I'm trying to get it to work so I can test it. Prob... | [
"c++",
"xsd",
"templates",
"types",
"codesynthesis"
] | 1 | 3 | 1,480 | 2 | 0 | 2008-10-02T20:05:25.057000 | 2008-10-03T18:13:44.703000 |
164,319 | 164,544 | Is there any difference between GROUP BY and DISTINCT? | The following two queries each give the same result: SELECT column FROM table GROUP BY column SELECT DISTINCT column FROM table Is there anything different in the way these commands are processed, or are they the same thing? (This is not a question about aggregates. The use of GROUP BY with aggregate functions is under... | MusiGenesis ' response is functionally the correct one with regard to your question as stated; the SQL Server is smart enough to realize that if you are using "Group By" and not using any aggregate functions, then what you actually mean is "Distinct" - and therefore it generates an execution plan as if you'd simply use... | Is there any difference between GROUP BY and DISTINCT? The following two queries each give the same result: SELECT column FROM table GROUP BY column SELECT DISTINCT column FROM table Is there anything different in the way these commands are processed, or are they the same thing? (This is not a question about aggregates... | TITLE:
Is there any difference between GROUP BY and DISTINCT?
QUESTION:
The following two queries each give the same result: SELECT column FROM table GROUP BY column SELECT DISTINCT column FROM table Is there anything different in the way these commands are processed, or are they the same thing? (This is not a questio... | [
"sql",
"group-by",
"distinct"
] | 469 | 330 | 384,963 | 25 | 0 | 2008-10-02T20:09:06.700000 | 2008-10-02T20:52:47.033000 |
164,324 | 186,836 | How to get file size from within TSQL (path specified in column) in SSRS 2005 | I need to get the Folder size and display the info on a report (SSRS). I need to do this for a number of Databases (loop!). These DB's are websites' backends. Are any samples available for this? Does xp_filesize and the like the right solution? | Looking at the question and Tomalak's response, and I'm assuming the reporting server will be able to reach the folders held in the DB: Firstly set up the query to get you back the result-set of paths - I assume you'll have no trouble with this part. Next you'll need to add a custom code function to your report: http:/... | How to get file size from within TSQL (path specified in column) in SSRS 2005 I need to get the Folder size and display the info on a report (SSRS). I need to do this for a number of Databases (loop!). These DB's are websites' backends. Are any samples available for this? Does xp_filesize and the like the right solutio... | TITLE:
How to get file size from within TSQL (path specified in column) in SSRS 2005
QUESTION:
I need to get the Folder size and display the info on a report (SSRS). I need to do this for a number of Databases (loop!). These DB's are websites' backends. Are any samples available for this? Does xp_filesize and the like... | [
"sql-server-2005",
"t-sql",
"reporting-services",
"filesize"
] | 2 | 2 | 2,379 | 4 | 0 | 2008-10-02T20:10:17.510000 | 2008-10-09T11:32:21.767000 |
164,335 | 165,013 | How to get the position() of an XElement? | Any XPath like /NodeName/position() would give you the position of the Node w.r.t it's parent node. There is no method on the XElement (Linq to XML) object that can get the position of the Element. Is there? | Actually NodesBeforeSelf().Count doesn't work because it gets everything even of type XText Question was about XElement object. So I figured it's int position = obj.ElementsBeforeSelf().Count(); that should be used, Thanks to Bryant for the direction. | How to get the position() of an XElement? Any XPath like /NodeName/position() would give you the position of the Node w.r.t it's parent node. There is no method on the XElement (Linq to XML) object that can get the position of the Element. Is there? | TITLE:
How to get the position() of an XElement?
QUESTION:
Any XPath like /NodeName/position() would give you the position of the Node w.r.t it's parent node. There is no method on the XElement (Linq to XML) object that can get the position of the Element. Is there?
ANSWER:
Actually NodesBeforeSelf().Count doesn't wo... | [
"linq",
"linq-to-xml"
] | 9 | 11 | 4,852 | 4 | 0 | 2008-10-02T20:12:20.873000 | 2008-10-02T23:19:52.920000 |
164,342 | 164,380 | Should repositories implement IQueryable<T>? | I'm considering one of two IRepository interfaces, one that is a descendant of IQueryable and one that contains IQueryable. Like this: public interface IRepository: IQueryable { T Save(T entity); void Delete(T entity); } Or this: public interface IRepository { T Save(T entity); void Delete(T entity); IQueryable Query()... | Depends on if you want a Has-A or an Is-A relationship. The first one is an Is-A relationship. The IRepository interface is a IQueryable interface. The second is a has-a. The IRepository has an IQueryable interface. In the process of writing this, I actually like the second better then the first, simply because when us... | Should repositories implement IQueryable<T>? I'm considering one of two IRepository interfaces, one that is a descendant of IQueryable and one that contains IQueryable. Like this: public interface IRepository: IQueryable { T Save(T entity); void Delete(T entity); } Or this: public interface IRepository { T Save(T entit... | TITLE:
Should repositories implement IQueryable<T>?
QUESTION:
I'm considering one of two IRepository interfaces, one that is a descendant of IQueryable and one that contains IQueryable. Like this: public interface IRepository: IQueryable { T Save(T entity); void Delete(T entity); } Or this: public interface IRepositor... | [
".net",
"linq",
"design-patterns"
] | 27 | 14 | 5,386 | 3 | 0 | 2008-10-02T20:13:27.783000 | 2008-10-02T20:21:02.973000 |
164,343 | 164,375 | Create a BCEL JavaClass object from arbitrary .class file | I'm playing around with BCEL. I'm not using it to generate bytecode, but instead I'm trying to inspect the structure of existing compiled classes. I need to be able to point to an arbitrary.class file anywhere on my hard drive and load a JavaClass object based on that. Ideally I'd like to avoid having to add the given ... | The straightforward way is to create a ClassParser with the file name and call parse(). Alternatively you can use SyntheticRepository and supply a classpath (that is not your classpath, IYSWIM). | Create a BCEL JavaClass object from arbitrary .class file I'm playing around with BCEL. I'm not using it to generate bytecode, but instead I'm trying to inspect the structure of existing compiled classes. I need to be able to point to an arbitrary.class file anywhere on my hard drive and load a JavaClass object based o... | TITLE:
Create a BCEL JavaClass object from arbitrary .class file
QUESTION:
I'm playing around with BCEL. I'm not using it to generate bytecode, but instead I'm trying to inspect the structure of existing compiled classes. I need to be able to point to an arbitrary.class file anywhere on my hard drive and load a JavaCl... | [
"java",
"bytecode",
"bcel"
] | 5 | 11 | 2,225 | 3 | 0 | 2008-10-02T20:13:34.693000 | 2008-10-02T20:20:11.697000 |
164,354 | 218,697 | Research on TDD | I know there is done some research on TDD at the North Carolina State University. They have published a paper called ' An Initial Investigation of Test Driven Development in Industry '. Other publications by NCSU can be found here. Can anybody point me to other good publications on this topic? | On the Effectiveness of the Test-First Approach to Programming, by Hakan Erdogmus, Maurizio Morisio, and Marco Torchiano. Despite the name it covers TDD: Abstract: Test-Driven Development (TDD) is based on formalizing a piece of functionality as a test, implementing the functionality such that the test passes, and iter... | Research on TDD I know there is done some research on TDD at the North Carolina State University. They have published a paper called ' An Initial Investigation of Test Driven Development in Industry '. Other publications by NCSU can be found here. Can anybody point me to other good publications on this topic? | TITLE:
Research on TDD
QUESTION:
I know there is done some research on TDD at the North Carolina State University. They have published a paper called ' An Initial Investigation of Test Driven Development in Industry '. Other publications by NCSU can be found here. Can anybody point me to other good publications on thi... | [
"tdd"
] | 11 | 7 | 1,110 | 3 | 0 | 2008-10-02T20:15:45.920000 | 2008-10-20T14:47:32.633000 |
164,356 | 1,281,627 | Can I use the STL if I cannot afford the slow performance when exceptions are thrown? | For example, I'm writing a multi-threaded time-critical application that processes and streams audio in real-time. Interruptions in the audio are totally unacceptable. Does this mean I cannot use the STL because of the potential slow down when an exception is thrown? | It's not clearly written in the previous answers, so: Exceptions happen in C++ Using the STL or not won't remove the RAII code that will free the objects's resources you allocated. For example: void doSomething() { MyString str; doSomethingElse(); } In the code above, the compiler will generate the code to free the MyS... | Can I use the STL if I cannot afford the slow performance when exceptions are thrown? For example, I'm writing a multi-threaded time-critical application that processes and streams audio in real-time. Interruptions in the audio are totally unacceptable. Does this mean I cannot use the STL because of the potential slow ... | TITLE:
Can I use the STL if I cannot afford the slow performance when exceptions are thrown?
QUESTION:
For example, I'm writing a multi-threaded time-critical application that processes and streams audio in real-time. Interruptions in the audio are totally unacceptable. Does this mean I cannot use the STL because of t... | [
"c++",
"performance",
"exception"
] | 8 | 7 | 1,697 | 7 | 0 | 2008-10-02T20:16:20.147000 | 2009-08-15T10:45:24.343000 |
164,369 | 164,398 | Moq'ing an interface | While I'm googling/reading for this answer I thought I would also ask here. I have a class that is a wrapper for a SDK. The class accepts an ILoader object and uses the ILoader object to create an ISBAObject which is cast into an ISmallBusinessInstance object. I am simply trying to mock this behavior using Moq. [TestMe... | You need to use sbainst.Object, as sbinst isn't an instance of ISbaObjects - it's just the mock part. | Moq'ing an interface While I'm googling/reading for this answer I thought I would also ask here. I have a class that is a wrapper for a SDK. The class accepts an ILoader object and uses the ILoader object to create an ISBAObject which is cast into an ISmallBusinessInstance object. I am simply trying to mock this behavi... | TITLE:
Moq'ing an interface
QUESTION:
While I'm googling/reading for this answer I thought I would also ask here. I have a class that is a wrapper for a SDK. The class accepts an ILoader object and uses the ILoader object to create an ISBAObject which is cast into an ISmallBusinessInstance object. I am simply trying t... | [
"c#",
".net",
"tdd",
"moq"
] | 4 | 9 | 585 | 2 | 0 | 2008-10-02T20:19:20.873000 | 2008-10-02T20:24:20.127000 |
164,372 | 164,399 | Structured exception handling with a multi-threaded server | This article gives a good overview on why structured exception handling is bad. Is there a way to get the robustness of stopping your server from crashing, while getting past the problems mentioned in the article? I have a server software that runs about 400 connected users concurrently. But if there is a crash all 400... | Break your program up into worker processes and a single server process. The server process will handle initial requests and then hand them off the the worker processes. If a worker process crashes, only the users on that worker are affected. Don't use SEH for general exception handling - as you have found out, it can ... | Structured exception handling with a multi-threaded server This article gives a good overview on why structured exception handling is bad. Is there a way to get the robustness of stopping your server from crashing, while getting past the problems mentioned in the article? I have a server software that runs about 400 co... | TITLE:
Structured exception handling with a multi-threaded server
QUESTION:
This article gives a good overview on why structured exception handling is bad. Is there a way to get the robustness of stopping your server from crashing, while getting past the problems mentioned in the article? I have a server software that... | [
"c++",
"exception",
"seh"
] | 4 | 2 | 1,163 | 3 | 0 | 2008-10-02T20:19:57.330000 | 2008-10-02T20:24:24.743000 |
164,378 | 164,549 | Programmatically inspect .class files | I'm working on a project where we're doing a lot of remote object transfer between a Java service and clients written in other various languages. Given our current constraints I've decided to see what it would take to generate code based on an existing Java class. Basically I need to take a.class file (or a collection ... | I've used BCEL and find it really quite awkward. ASM is much better. It very extensively uses visitors (which can be a little confusing) and does not create an object model. Not creating an object model turns out to be a bonus, as any model you do want to create is unlikely to look like a literal interpretation of all ... | Programmatically inspect .class files I'm working on a project where we're doing a lot of remote object transfer between a Java service and clients written in other various languages. Given our current constraints I've decided to see what it would take to generate code based on an existing Java class. Basically I need ... | TITLE:
Programmatically inspect .class files
QUESTION:
I'm working on a project where we're doing a lot of remote object transfer between a Java service and clients written in other various languages. Given our current constraints I've decided to see what it would take to generate code based on an existing Java class.... | [
"java",
"bytecode",
"decompiling"
] | 15 | 12 | 4,496 | 6 | 0 | 2008-10-02T20:20:53.083000 | 2008-10-02T20:53:00.917000 |
164,393 | 164,439 | Searching For String Literals | In the quest for localization I need to find all the string literals littered amongst our source code. I was looking for a way to script this into a post-modification source repository check. (I.E. after some one checks something in have a box setup to check this stat) I'll probably use NAnt and CruiseControl or someth... | Visual Studio 2010 and earlier: Find In Files (CTRL+SHIFT+F) Use: Regular Expressions Find::q (quoted string) Find All Find Results window will now contain a report of all files, with line numbers and the line itself with the quoted string. For Visual Studio 2012 and later search for ((\".+?\")|('.+?')) ( reference, ha... | Searching For String Literals In the quest for localization I need to find all the string literals littered amongst our source code. I was looking for a way to script this into a post-modification source repository check. (I.E. after some one checks something in have a box setup to check this stat) I'll probably use NA... | TITLE:
Searching For String Literals
QUESTION:
In the quest for localization I need to find all the string literals littered amongst our source code. I was looking for a way to script this into a post-modification source repository check. (I.E. after some one checks something in have a box setup to check this stat) I'... | [
".net",
"string",
"localization",
"string-literals"
] | 20 | 41 | 11,346 | 7 | 0 | 2008-10-02T20:23:33.077000 | 2008-10-02T20:32:34.133000 |
164,395 | 164,418 | Is it possible to add data members dynamically in PHP? | I'm wondering if its possible to add new class data members at run-time in PHP? | Yes. $prop = 'newname'; $obj->$prop = 42; will do the same thing as: $obj->newname = 42; Either one will add "newname" as a property in $obj if it does not yet exist. | Is it possible to add data members dynamically in PHP? I'm wondering if its possible to add new class data members at run-time in PHP? | TITLE:
Is it possible to add data members dynamically in PHP?
QUESTION:
I'm wondering if its possible to add new class data members at run-time in PHP?
ANSWER:
Yes. $prop = 'newname'; $obj->$prop = 42; will do the same thing as: $obj->newname = 42; Either one will add "newname" as a property in $obj if it does not ye... | [
"php",
"oop"
] | 4 | 12 | 761 | 2 | 0 | 2008-10-02T20:23:48.490000 | 2008-10-02T20:28:15.860000 |
164,397 | 164,408 | JavaScript: How do I print a message to the error console? | How can I print a message to the error console, preferably including a variable? For example, something like: print('x=%d', x); | Install Firebug and then you can use console.log(...) and console.debug(...), etc. (see the documentation for more). | JavaScript: How do I print a message to the error console? How can I print a message to the error console, preferably including a variable? For example, something like: print('x=%d', x); | TITLE:
JavaScript: How do I print a message to the error console?
QUESTION:
How can I print a message to the error console, preferably including a variable? For example, something like: print('x=%d', x);
ANSWER:
Install Firebug and then you can use console.log(...) and console.debug(...), etc. (see the documentation ... | [
"javascript",
"debugging"
] | 460 | 477 | 960,534 | 18 | 0 | 2008-10-02T20:23:55.150000 | 2008-10-02T20:26:42.663000 |
164,400 | 166,317 | Sql 2005 Express edition slow connections | I'm running SqlServer 2005 express edition on my laptop for development purposes. It seems that when I open a connection to the database, the setup time is REALLY slow. It can take up to 10 seconds to get a connection. I usually have multiple connections open at the same time (Profiler, Development environment, Query A... | I figured it out. The problem was I had multiple databases with AutoClose set to true. I shut it off in all my databases and the problem went away. see this article for more info. | Sql 2005 Express edition slow connections I'm running SqlServer 2005 express edition on my laptop for development purposes. It seems that when I open a connection to the database, the setup time is REALLY slow. It can take up to 10 seconds to get a connection. I usually have multiple connections open at the same time (... | TITLE:
Sql 2005 Express edition slow connections
QUESTION:
I'm running SqlServer 2005 express edition on my laptop for development purposes. It seems that when I open a connection to the database, the setup time is REALLY slow. It can take up to 10 seconds to get a connection. I usually have multiple connections open ... | [
"sql-server-2005"
] | 1 | 2 | 1,478 | 3 | 0 | 2008-10-02T20:24:56.240000 | 2008-10-03T10:52:18.317000 |
164,403 | 164,506 | What JavaScript frameworks conflict with each other? | There are times when I want to use mootools for certain things and Prototype & script.aculo.us for others but within the same site. I've even considered adding others, but was concerned about conflicts. Anyone have experience, or am I just trying to make things too complicated for myself? | If you really, really want to do this, then you will be able to without too many problems - the main libraries are designed to behave well inside their own namespaces, with a couple of notable exceptions - from Using JQuery with Other Frameworks: The jQuery library, and virtually all of its plugins are constrained with... | What JavaScript frameworks conflict with each other? There are times when I want to use mootools for certain things and Prototype & script.aculo.us for others but within the same site. I've even considered adding others, but was concerned about conflicts. Anyone have experience, or am I just trying to make things too c... | TITLE:
What JavaScript frameworks conflict with each other?
QUESTION:
There are times when I want to use mootools for certain things and Prototype & script.aculo.us for others but within the same site. I've even considered adding others, but was concerned about conflicts. Anyone have experience, or am I just trying to... | [
"javascript",
"frameworks",
"conflict"
] | 5 | 7 | 1,679 | 7 | 0 | 2008-10-02T20:25:26.007000 | 2008-10-02T20:44:19.457000 |
164,414 | 164,419 | How can I "inverse match" with regex? | I'm processing a file, line-by-line, and I'd like to do an inverse match. For instance, I want to match lines where there is a string of six letters, but only if these six letters are not ' Andrea '. How should I do that? I'm using RegexBuddy, but still having trouble. | (?!Andrea).{6} Assuming your regexp engine supports negative lookaheads......or maybe you'd prefer to use [A-Za-z]{6} in place of.{6} Note that lookaheads and lookbehinds are generally not the right way to "inverse" a regular expression match. Regexps aren't really set up for doing negative matching; they leave that to... | How can I "inverse match" with regex? I'm processing a file, line-by-line, and I'd like to do an inverse match. For instance, I want to match lines where there is a string of six letters, but only if these six letters are not ' Andrea '. How should I do that? I'm using RegexBuddy, but still having trouble. | TITLE:
How can I "inverse match" with regex?
QUESTION:
I'm processing a file, line-by-line, and I'd like to do an inverse match. For instance, I want to match lines where there is a string of six letters, but only if these six letters are not ' Andrea '. How should I do that? I'm using RegexBuddy, but still having tro... | [
"regex",
"inverse-match"
] | 167 | 100 | 422,999 | 10 | 0 | 2008-10-02T20:27:08.247000 | 2008-10-02T20:28:46.700000 |
164,425 | 164,455 | Determining if enum value is in list (C#) | I am building a fun little app to determine if I should bike to work. I would like to test to see if it is either Raining or Thunderstorm(ing). public enum WeatherType: byte { Sunny = 0, Cloudy = 1, Thunderstorm = 2, Raining = 4, Snowing = 8, MostlyCloudy = 16 } I was thinking I could do something like: WeatherType _ba... | Your current code will say whether it's exactly "raining and thundery". To find out whether it's "raining and thundery and possibly something else" you need: if ((currentWeather.Type & _badWeatherTypes) == _badWeatherTypes) To find out whether it's "raining or thundery, and possibly something else" you need: if ((curre... | Determining if enum value is in list (C#) I am building a fun little app to determine if I should bike to work. I would like to test to see if it is either Raining or Thunderstorm(ing). public enum WeatherType: byte { Sunny = 0, Cloudy = 1, Thunderstorm = 2, Raining = 4, Snowing = 8, MostlyCloudy = 16 } I was thinking ... | TITLE:
Determining if enum value is in list (C#)
QUESTION:
I am building a fun little app to determine if I should bike to work. I would like to test to see if it is either Raining or Thunderstorm(ing). public enum WeatherType: byte { Sunny = 0, Cloudy = 1, Thunderstorm = 2, Raining = 4, Snowing = 8, MostlyCloudy = 16... | [
"c#",
".net",
"enums"
] | 8 | 18 | 14,858 | 6 | 0 | 2008-10-02T20:29:50.317000 | 2008-10-02T20:35:14.750000 |
164,427 | 164,507 | Change Django Templates Based on User-Agent | I've made a Django site, but I've drank the Koolaid and I want to make an IPhone version. After putting much thought into I've come up with two options: Make a whole other site, like i.xxxx.com. Tie it into the same database using Django's sites framework. Find some time of middleware that reads the user-agent, and cha... | Rather than changing the template directories dynamically you could modify the request and add a value that lets your view know if the user is on an iphone or not. Then wrap render_to_response (or whatever you are using for creating HttpResponse objects) to grab the iphone version of the template instead of the standar... | Change Django Templates Based on User-Agent I've made a Django site, but I've drank the Koolaid and I want to make an IPhone version. After putting much thought into I've come up with two options: Make a whole other site, like i.xxxx.com. Tie it into the same database using Django's sites framework. Find some time of m... | TITLE:
Change Django Templates Based on User-Agent
QUESTION:
I've made a Django site, but I've drank the Koolaid and I want to make an IPhone version. After putting much thought into I've come up with two options: Make a whole other site, like i.xxxx.com. Tie it into the same database using Django's sites framework. F... | [
"python",
"django",
"django-templates",
"mobile-website",
"django-middleware"
] | 41 | 20 | 19,228 | 9 | 0 | 2008-10-02T20:30:09.443000 | 2008-10-02T20:44:38.020000 |
164,430 | 164,447 | Why is it that UTF-8 encoding is used when interacting with a UNIX/Linux environment? | I know it is customary, but why? Are there real technical reasons why any other way would be a really bad idea or is it just based on the history of encoding and backwards compatibility? In addition, what are the dangers of not using UTF-8, but some other encoding (most notably, UTF-16 )? Edit: By interacting, I mostly... | Partly because the file systems expect NUL ('\0') bytes to terminate file names, so UTF-16 would not work well. You'd have to modify a lot of code to make that change. | Why is it that UTF-8 encoding is used when interacting with a UNIX/Linux environment? I know it is customary, but why? Are there real technical reasons why any other way would be a really bad idea or is it just based on the history of encoding and backwards compatibility? In addition, what are the dangers of not using ... | TITLE:
Why is it that UTF-8 encoding is used when interacting with a UNIX/Linux environment?
QUESTION:
I know it is customary, but why? Are there real technical reasons why any other way would be a really bad idea or is it just based on the history of encoding and backwards compatibility? In addition, what are the dan... | [
"linux",
"unix",
"encoding"
] | 12 | 16 | 2,983 | 8 | 0 | 2008-10-02T20:31:03.823000 | 2008-10-02T20:33:44.207000 |
164,433 | 164,487 | Continuing in the Visual Studio debugger after an exception occurs | When I debug a C# program and I get an exception throwed (either thrown by code OR thrown by the framework), the IDE stops and get me to the corresponding line in my code. Everything is fine for now. I then press "F5" to continue. From this moment, it seams like I'm in an infinite loop. The IDE always get me back to th... | This is because the exception is un-handled and Visual Studio can not move past that line without it being handled in some manner. Simply put, it is by design. One thing that you can do is drag and drop the execution point (yellow line/arrow) to a previous point in your code and modify the in memory values (using the V... | Continuing in the Visual Studio debugger after an exception occurs When I debug a C# program and I get an exception throwed (either thrown by code OR thrown by the framework), the IDE stops and get me to the corresponding line in my code. Everything is fine for now. I then press "F5" to continue. From this moment, it s... | TITLE:
Continuing in the Visual Studio debugger after an exception occurs
QUESTION:
When I debug a C# program and I get an exception throwed (either thrown by code OR thrown by the framework), the IDE stops and get me to the corresponding line in my code. Everything is fine for now. I then press "F5" to continue. From... | [
"c#",
"debugging",
"exception"
] | 61 | 21 | 20,976 | 7 | 0 | 2008-10-02T20:31:16.240000 | 2008-10-02T20:41:26.670000 |
164,460 | 165,089 | Programmatically launching standalone Adobe flashplayer on Linux/X11 | The standalone flashplayer takes no arguments other than a.swf file when you launch it from the command line. I need the player to go full screen, no window borders and such. This can be accomplished by hitting ctrl+f once the program has started. I want to do this programmatically as I need it to launch into full scre... | You can use a dedicated application which sends the keystroke to the window manager, which should then pass it to flash, if the window starts as being the active window on the screen. This is quite error prone, though, due to delays between starting flash and when the window will show up. For example, your script could... | Programmatically launching standalone Adobe flashplayer on Linux/X11 The standalone flashplayer takes no arguments other than a.swf file when you launch it from the command line. I need the player to go full screen, no window borders and such. This can be accomplished by hitting ctrl+f once the program has started. I w... | TITLE:
Programmatically launching standalone Adobe flashplayer on Linux/X11
QUESTION:
The standalone flashplayer takes no arguments other than a.swf file when you launch it from the command line. I need the player to go full screen, no window borders and such. This can be accomplished by hitting ctrl+f once the progra... | [
"python",
"linux",
"adobe",
"x11",
"flash"
] | 7 | 7 | 10,929 | 6 | 0 | 2008-10-02T20:36:02.750000 | 2008-10-02T23:44:15.357000 |
164,468 | 164,497 | Does This ASP.NET Consultant Know What He's Doing? | The IT department of a subsidiary of ours had a consulting company write them an ASP.NET application. Now it's having intermittent problems with mixing up who the current user is and has been known to show Joe some of Bob's data by mistake. The consultants were brought back to troubleshoot and we were invited to listen... | I would agree. These guys seem quite incompetent. (BTW, I'd check to see if in "SomeProprietarySessionManagementLookup," they're using static data. Saw this -- with behavior exactly as you describe on a project I inherited several months ago. It was a total head-slap moment when we finally saw it... And wished we could... | Does This ASP.NET Consultant Know What He's Doing? The IT department of a subsidiary of ours had a consulting company write them an ASP.NET application. Now it's having intermittent problems with mixing up who the current user is and has been known to show Joe some of Bob's data by mistake. The consultants were brought... | TITLE:
Does This ASP.NET Consultant Know What He's Doing?
QUESTION:
The IT department of a subsidiary of ours had a consulting company write them an ASP.NET application. Now it's having intermittent problems with mixing up who the current user is and has been known to show Joe some of Bob's data by mistake. The consul... | [
"c#",
"asp.net",
"exception",
"session-variables"
] | 9 | 14 | 1,891 | 22 | 0 | 2008-10-02T20:37:56.927000 | 2008-10-02T20:43:06.977000 |
164,492 | 164,582 | What is the reporting tool that you would use? | I need a tool that handle both on-screen and printed reports, via my C# application. I'm looking for simple, standard and powerful. I need to be able to give the user the ability to select which columns to display, formatting, etc... with my own GUI and dynamically build the report based upon their choices. Crystal doe... | We use SQL reporting services. HTML reports have their place but you dont get very much controlling over formatting. SQL reporting services summary: Advantages: Basic version is free Included with SQL express Many exporting options pdf, html, csv etc Can use many different datasources Webservice which exposes various m... | What is the reporting tool that you would use? I need a tool that handle both on-screen and printed reports, via my C# application. I'm looking for simple, standard and powerful. I need to be able to give the user the ability to select which columns to display, formatting, etc... with my own GUI and dynamically build t... | TITLE:
What is the reporting tool that you would use?
QUESTION:
I need a tool that handle both on-screen and printed reports, via my C# application. I'm looking for simple, standard and powerful. I need to be able to give the user the ability to select which columns to display, formatting, etc... with my own GUI and d... | [
"c#",
"printing",
"report"
] | 1 | 6 | 2,019 | 6 | 0 | 2008-10-02T20:42:30.083000 | 2008-10-02T20:59:25.970000 |
164,496 | 164,640 | How can I create a thread-safe singleton pattern in Windows? | I've been reading about thread-safe singleton patterns here: http://en.wikipedia.org/wiki/Singleton_pattern#C.2B.2B_.28using_pthreads.29 And it says at the bottom that the only safe way is to use pthread_once - which isn't available on Windows. Is that the only way of guaranteeing thread safe initialisation? I've read ... | If you are are using Visual C++ 2005/2008 you can use the double checked locking pattern, since " volatile variables behave as fences ". This is the most efficient way to implement a lazy-initialized singleton. From MSDN Magazine: Singleton* GetSingleton() { volatile static Singleton* pSingleton = 0;
if (pSingleton ==... | How can I create a thread-safe singleton pattern in Windows? I've been reading about thread-safe singleton patterns here: http://en.wikipedia.org/wiki/Singleton_pattern#C.2B.2B_.28using_pthreads.29 And it says at the bottom that the only safe way is to use pthread_once - which isn't available on Windows. Is that the on... | TITLE:
How can I create a thread-safe singleton pattern in Windows?
QUESTION:
I've been reading about thread-safe singleton patterns here: http://en.wikipedia.org/wiki/Singleton_pattern#C.2B.2B_.28using_pthreads.29 And it says at the bottom that the only safe way is to use pthread_once - which isn't available on Windo... | [
"c++",
"windows",
"singleton"
] | 16 | 11 | 18,720 | 9 | 0 | 2008-10-02T20:43:01.253000 | 2008-10-02T21:12:58.903000 |
164,516 | 164,560 | Using CURRENT_TIMESTAMP, arithmetic operator and parameter with Firebird | Why doesn't this work (when parameter is set to 1): SELECT * FROM TABLE WHERE TIMESTAMPFIELD > (CURRENT_TIMESTAMP -?) But this works: SELECT * FROM TABLE WHERE TIMESTAMPFIELD > (CURRENT_TIMESTAMP - 1) I get error message: "conversion error from string "39723.991882951" " I'm using Firebird 2.1 EDIT: I found the answer ... | What do you want to do exactly? Maybe I can be more helpfull with more details. SELECT * FROM TABLE WHERE TIMESTAMPFIELD > (CURRENT_TIMESTAMP -?) How do you set your parameter in your code? Which language do you use? If you use Delphi, then your parameter should be passed as Float. Ie: MyQuery.ParamByName('delta').asFl... | Using CURRENT_TIMESTAMP, arithmetic operator and parameter with Firebird Why doesn't this work (when parameter is set to 1): SELECT * FROM TABLE WHERE TIMESTAMPFIELD > (CURRENT_TIMESTAMP -?) But this works: SELECT * FROM TABLE WHERE TIMESTAMPFIELD > (CURRENT_TIMESTAMP - 1) I get error message: "conversion error from st... | TITLE:
Using CURRENT_TIMESTAMP, arithmetic operator and parameter with Firebird
QUESTION:
Why doesn't this work (when parameter is set to 1): SELECT * FROM TABLE WHERE TIMESTAMPFIELD > (CURRENT_TIMESTAMP -?) But this works: SELECT * FROM TABLE WHERE TIMESTAMPFIELD > (CURRENT_TIMESTAMP - 1) I get error message: "conver... | [
"firebird"
] | 4 | 2 | 2,012 | 1 | 0 | 2008-10-02T20:48:04.330000 | 2008-10-02T20:56:05.730000 |
164,527 | 164,547 | Exposing Member Objects As Properties or Methods in .NET | In.NET, if a class contains a member that is a class object, should that member be exposed as a property or with a method? | If all you are doing is exposing an object instance that is relevant to the state of the current object you should use a property. A method should be used when you have some logic that is doing more than accessing an in memory object and returning that value or when you are performing an action that has a broad affect ... | Exposing Member Objects As Properties or Methods in .NET In.NET, if a class contains a member that is a class object, should that member be exposed as a property or with a method? | TITLE:
Exposing Member Objects As Properties or Methods in .NET
QUESTION:
In.NET, if a class contains a member that is a class object, should that member be exposed as a property or with a method?
ANSWER:
If all you are doing is exposing an object instance that is relevant to the state of the current object you shoul... | [
".net",
"class",
"properties",
"methodology"
] | 16 | 14 | 8,058 | 7 | 0 | 2008-10-02T20:49:38.320000 | 2008-10-02T20:52:59.387000 |
164,559 | 182,039 | fmt:parseDate - a parse index locale can not be established | Does anyone know the root cause of this error? I am feeding known good data to the fmt:parseDate tag (its db driven data controlled by us), and yet this error randomly pops up. I can't seem to find a way to replicate what causes this exception. | How open is the website - the Locale comes from the user preferences in some cases Accept--Language header - perhaps the user is sending a bad value, maybe its from a Chrome browser:). Here is a similar example | fmt:parseDate - a parse index locale can not be established Does anyone know the root cause of this error? I am feeding known good data to the fmt:parseDate tag (its db driven data controlled by us), and yet this error randomly pops up. I can't seem to find a way to replicate what causes this exception. | TITLE:
fmt:parseDate - a parse index locale can not be established
QUESTION:
Does anyone know the root cause of this error? I am feeding known good data to the fmt:parseDate tag (its db driven data controlled by us), and yet this error randomly pops up. I can't seem to find a way to replicate what causes this exceptio... | [
"java",
"jsp",
"jstl"
] | 2 | 2 | 3,705 | 1 | 0 | 2008-10-02T20:55:41.237000 | 2008-10-08T10:22:11.253000 |
164,575 | 164,662 | MSXML from C++ - pretty print / indent newly created documents | I'm writing out XML files using the MSXML parser, with a wrapper I downloaded from here: http://www.codeproject.com/KB/XML/JW_CXml.aspx. Works great except that when I create a new document from code (so not load from file and modify), the result is all in one big line. I'd like elements to be indented nicely so that I... | Try this, I found this years ago on the web. #include bool FormatDOMDocument (IXMLDOMDocument *pDoc, IStream *pStream) {
// Create the writer
CComPtr pMXWriter; if (FAILED (pMXWriter.CoCreateInstance(__uuidof (MXXMLWriter), NULL, CLSCTX_ALL))) { return false; } CComPtr pISAXContentHandler; if (FAILED (pMXWriter.Query... | MSXML from C++ - pretty print / indent newly created documents I'm writing out XML files using the MSXML parser, with a wrapper I downloaded from here: http://www.codeproject.com/KB/XML/JW_CXml.aspx. Works great except that when I create a new document from code (so not load from file and modify), the result is all in ... | TITLE:
MSXML from C++ - pretty print / indent newly created documents
QUESTION:
I'm writing out XML files using the MSXML parser, with a wrapper I downloaded from here: http://www.codeproject.com/KB/XML/JW_CXml.aspx. Works great except that when I create a new document from code (so not load from file and modify), the... | [
"xml",
"msxml",
"pretty-print"
] | 8 | 2 | 12,034 | 5 | 0 | 2008-10-02T20:58:24.257000 | 2008-10-02T21:18:59.200000 |
164,585 | 164,608 | Omitting XML processing instruction when serializing an object | I'm serializing an object in a C# VS2003 /.Net 1.1 application. I need it serialized without the processing instruction, however. The XmlSerializer class puts out something like this: Data More Data Is there any way to get something like the following, without processing the resulting text to remove the tag? Data More ... | The following link will take you to a post where someone has a method of supressing the processing instruction by using an XmlWriter and getting into an 'Element' state rather than a 'Start' state. This causes the processing instruction to not be written. Suppress Processing Instruction If you pass an XmlWriter to the ... | Omitting XML processing instruction when serializing an object I'm serializing an object in a C# VS2003 /.Net 1.1 application. I need it serialized without the processing instruction, however. The XmlSerializer class puts out something like this: Data More Data Is there any way to get something like the following, with... | TITLE:
Omitting XML processing instruction when serializing an object
QUESTION:
I'm serializing an object in a C# VS2003 /.Net 1.1 application. I need it serialized without the processing instruction, however. The XmlSerializer class puts out something like this: Data More Data Is there any way to get something like t... | [
"c#",
".net",
"xml-serialization",
"visual-studio-2003"
] | 10 | 3 | 12,922 | 6 | 0 | 2008-10-02T21:01:02.160000 | 2008-10-02T21:06:02.600000 |
164,594 | 164,626 | Calling stored procedures | I have a c# application that interfaces with the database only through stored procedures. I have tried various techniques for calling stored procedures. At the root is the SqlCommand class, however I would like to achieve several things: make the interface between c# and sql smoother, so that procedure calls look more ... | When stored procedures are the interface to the database, I tend to wrap them in classes which reflect the problem domain, so that most of the application code is using these objects and not calling stored procedures, and not even knowing about the stored procedures or the database connection. The application objects, ... | Calling stored procedures I have a c# application that interfaces with the database only through stored procedures. I have tried various techniques for calling stored procedures. At the root is the SqlCommand class, however I would like to achieve several things: make the interface between c# and sql smoother, so that ... | TITLE:
Calling stored procedures
QUESTION:
I have a c# application that interfaces with the database only through stored procedures. I have tried various techniques for calling stored procedures. At the root is the SqlCommand class, however I would like to achieve several things: make the interface between c# and sql ... | [
"c#",
".net",
"sql",
"stored-procedures"
] | 1 | 4 | 2,351 | 7 | 0 | 2008-10-02T21:02:51.750000 | 2008-10-02T21:10:10.937000 |
164,597 | 164,670 | How can I setup the permissions in Linux so that two users can update the same SVN working copy on the server? | My server has both Subversion and Apache installed, and the Apache web directory is also a Subversion working copy. The reason for this is that the simple command svn update /server/staging will deploy the latest source to the staging server. Apache public web directory: /server/staging — (This is an SVN working copy.)... | Directory Set Group ID If the setgid bit on a directory entry is set, files in that directory will have the group ownership as the directory, instead of than the group of the user that created the file. This attribute is helpful when several users need access to certain files. If the users work in a directory with the ... | How can I setup the permissions in Linux so that two users can update the same SVN working copy on the server? My server has both Subversion and Apache installed, and the Apache web directory is also a Subversion working copy. The reason for this is that the simple command svn update /server/staging will deploy the lat... | TITLE:
How can I setup the permissions in Linux so that two users can update the same SVN working copy on the server?
QUESTION:
My server has both Subversion and Apache installed, and the Apache web directory is also a Subversion working copy. The reason for this is that the simple command svn update /server/staging w... | [
"linux",
"svn",
"permissions"
] | 4 | 9 | 8,165 | 4 | 0 | 2008-10-02T21:03:20.347000 | 2008-10-02T21:21:31.643000 |
164,621 | 278,916 | Using Crystal Reports in Visual Studio 2005 (C# .NET Windows App) | I need to create reports in a C#.NET Windows app. I've got an SQL Server 2005 database, Visual Studio 2005 and am quite OK with creating stored procedures and datasets. Can someone please point me in the right direction for creating reports? I just can't seem work it out. Some examples would be a good start, or a simpl... | I have managed to make this work now. Brief Overview It works by having a 'data class' which is just a regular C# class containing variables and no code. This is then instantiated and filled with data and then placed inside an ArrayList. The ArrayList is bound to the report viewer, along with the name of the report to ... | Using Crystal Reports in Visual Studio 2005 (C# .NET Windows App) I need to create reports in a C#.NET Windows app. I've got an SQL Server 2005 database, Visual Studio 2005 and am quite OK with creating stored procedures and datasets. Can someone please point me in the right direction for creating reports? I just can't... | TITLE:
Using Crystal Reports in Visual Studio 2005 (C# .NET Windows App)
QUESTION:
I need to create reports in a C#.NET Windows app. I've got an SQL Server 2005 database, Visual Studio 2005 and am quite OK with creating stored procedures and datasets. Can someone please point me in the right direction for creating rep... | [
"c#",
".net",
"database",
"visual-studio",
"crystal-reports"
] | 9 | 4 | 47,337 | 9 | 0 | 2008-10-02T21:09:26.213000 | 2008-11-10T19:39:06.550000 |
164,642 | 164,702 | Create grails war without version number | How do I create a grails war file so that it doesn't have the version number (e.g. foo-0.1.war) attached to the end when I execute the 'grails war' command? | I think you can specify the war name in the war command. grails war foo.war Also check the latest Grails documentation for where to set this as a configuration option. See the other answers for details. | Create grails war without version number How do I create a grails war file so that it doesn't have the version number (e.g. foo-0.1.war) attached to the end when I execute the 'grails war' command? | TITLE:
Create grails war without version number
QUESTION:
How do I create a grails war file so that it doesn't have the version number (e.g. foo-0.1.war) attached to the end when I execute the 'grails war' command?
ANSWER:
I think you can specify the war name in the war command. grails war foo.war Also check the late... | [
"grails"
] | 29 | 34 | 19,053 | 7 | 0 | 2008-10-02T21:13:40.447000 | 2008-10-02T21:32:18.467000 |
164,643 | 164,650 | Is an int a 64-bit integer in 64-bit C#? | In my C# source code I may have declared integers as: int i = 5; or Int32 i = 5; In the currently prevalent 32-bit world they are equivalent. However, as we move into a 64-bit world, am I correct in saying that the following will become the same? int i = 5; Int64 i = 5; | No. The C# specification rigidly defines that int is an alias for System.Int32 with exactly 32 bits. Changing this would be a major breaking change. | Is an int a 64-bit integer in 64-bit C#? In my C# source code I may have declared integers as: int i = 5; or Int32 i = 5; In the currently prevalent 32-bit world they are equivalent. However, as we move into a 64-bit world, am I correct in saying that the following will become the same? int i = 5; Int64 i = 5; | TITLE:
Is an int a 64-bit integer in 64-bit C#?
QUESTION:
In my C# source code I may have declared integers as: int i = 5; or Int32 i = 5; In the currently prevalent 32-bit world they are equivalent. However, as we move into a 64-bit world, am I correct in saying that the following will become the same? int i = 5; Int... | [
"c#",
"64-bit",
"32-bit",
"primitive"
] | 31 | 48 | 13,151 | 10 | 0 | 2008-10-02T21:13:47.497000 | 2008-10-02T21:15:18.663000 |
164,645 | 164,729 | Formatting Literal parameters of a C# code snippet | Is there any way that I can change how a Literal of a code snippet renders when it is used in the code that the snippet generates? Specifically I'd like to know if I can have a literal called say, $PropertyName$ and then get the snippet engine to render "_$PropertyName$ where the first character is made lowercase. I ca... | Unfortunately there seems to be no way. Snippets offer amazingly limited support for transformation functions as you can see. You have to stick with the VS standard solution, which is to write two literals: one for the property name, and the other for the member variable name. | Formatting Literal parameters of a C# code snippet Is there any way that I can change how a Literal of a code snippet renders when it is used in the code that the snippet generates? Specifically I'd like to know if I can have a literal called say, $PropertyName$ and then get the snippet engine to render "_$PropertyName... | TITLE:
Formatting Literal parameters of a C# code snippet
QUESTION:
Is there any way that I can change how a Literal of a code snippet renders when it is used in the code that the snippet generates? Specifically I'd like to know if I can have a literal called say, $PropertyName$ and then get the snippet engine to rend... | [
"c#",
"code-generation",
"code-snippets"
] | 37 | 24 | 7,512 | 3 | 0 | 2008-10-02T21:14:43 | 2008-10-02T21:40:12.113000 |
164,648 | 174,396 | Where can I find a good collection of public domain owl ontologies for various domains? | I am building an ontology-processing tool and need lots of examples of various owl ontologies, as people are building and using them in the real world. I'm not talking about foundational ontologies such as Cyc, I'm talking about smaller, domain-specific ones. | There's no definitive collection afaik, but these links all have useful collections of OWL and RDFS ontologies: schemaweb.info vocab.org owlseek linking open data constellation RDF schema registry (rather old now) In addition, there are some general-purpose RDF/RDFS/OWL search engines you may find helpful: sindice swoo... | Where can I find a good collection of public domain owl ontologies for various domains? I am building an ontology-processing tool and need lots of examples of various owl ontologies, as people are building and using them in the real world. I'm not talking about foundational ontologies such as Cyc, I'm talking about sma... | TITLE:
Where can I find a good collection of public domain owl ontologies for various domains?
QUESTION:
I am building an ontology-processing tool and need lots of examples of various owl ontologies, as people are building and using them in the real world. I'm not talking about foundational ontologies such as Cyc, I'm... | [
"semantic-web",
"owl",
"ontology"
] | 16 | 10 | 4,170 | 6 | 0 | 2008-10-02T21:14:56.637000 | 2008-10-06T13:59:46.103000 |
164,661 | 164,683 | Best Practices for Entity Framework and ASP.NET | I've been driving myself crazy trying to get the Entity Framework to work as expected (or at least as I expect) in an ASP.NET environment, specifically dealing with objects belonging to different contexts when attempting to save to the database. What are the best practices when dealing with the Entity Framework and ASP... | Persistence Ignorance (POCO) Adapter for Entity Framework V1 http://blogs.gotdotnet.com/jkowalski/archive/2008/09/09/persistence-ignorance-poco-adapter-for-entity-framework-v1.aspx | Best Practices for Entity Framework and ASP.NET I've been driving myself crazy trying to get the Entity Framework to work as expected (or at least as I expect) in an ASP.NET environment, specifically dealing with objects belonging to different contexts when attempting to save to the database. What are the best practice... | TITLE:
Best Practices for Entity Framework and ASP.NET
QUESTION:
I've been driving myself crazy trying to get the Entity Framework to work as expected (or at least as I expect) in an ASP.NET environment, specifically dealing with objects belonging to different contexts when attempting to save to the database. What are... | [
"c#",
"asp.net",
".net",
"entity-framework",
"linq-to-entities"
] | 4 | 1 | 3,380 | 1 | 0 | 2008-10-02T21:18:19.483000 | 2008-10-02T21:26:30.850000 |
164,689 | 164,746 | Office 2003 PIA Prerequisite in the .Net framework and Office 2007 | What happens when the Office 2003 PIA prerequisite and launch condition in a Windows installer are run against an Office 2007 system? | Yes, it will fail unless for the simple reason that Office 2003 is not installed. We create separate installers for Office 2007 and Office 2003. Also, there is a difference in the structure of Office 2003 add-ins versus Office 2007 add-ins. | Office 2003 PIA Prerequisite in the .Net framework and Office 2007 What happens when the Office 2003 PIA prerequisite and launch condition in a Windows installer are run against an Office 2007 system? | TITLE:
Office 2003 PIA Prerequisite in the .Net framework and Office 2007
QUESTION:
What happens when the Office 2003 PIA prerequisite and launch condition in a Windows installer are run against an Office 2007 system?
ANSWER:
Yes, it will fail unless for the simple reason that Office 2003 is not installed. We create ... | [
".net",
"office-2007"
] | 0 | 1 | 2,180 | 2 | 0 | 2008-10-02T21:28:10.817000 | 2008-10-02T21:44:38.297000 |
164,697 | 165,172 | .NET DBNull vs Nothing across all variable types? | I am a little confused about null values and variables in.NET. (VB preferred) Is there any way to check the "nullness" of ANY given variable regardless of whether it was an object or a value type? Or does my null check have to always anticipate whether it's checking a value type (e.g. System.Integer) or an object? I gu... | Normal value types (booleans, ints, longs, float, double, enum and structs) are not nullable. The default value for all value types is 0. The CLR won't let you access variables unless they have been set. You may think this isn't always the case, but sometimes the CLR steps in and initializes them for you. At a method l... | .NET DBNull vs Nothing across all variable types? I am a little confused about null values and variables in.NET. (VB preferred) Is there any way to check the "nullness" of ANY given variable regardless of whether it was an object or a value type? Or does my null check have to always anticipate whether it's checking a v... | TITLE:
.NET DBNull vs Nothing across all variable types?
QUESTION:
I am a little confused about null values and variables in.NET. (VB preferred) Is there any way to check the "nullness" of ANY given variable regardless of whether it was an object or a value type? Or does my null check have to always anticipate whether... | [
".net",
"vb.net",
"variables",
"dbnull",
"null"
] | 6 | 2 | 15,464 | 6 | 0 | 2008-10-02T21:30:32.247000 | 2008-10-03T00:12:38.580000 |
164,714 | 164,891 | How can I use C# style enumerations in Ruby? | I just want to know the best way to emulate a C# style enumeration in Ruby. | Specifically, I would like to be able to perform logical tests against the set of values given some variable. Example would be the state of a window: "minimized, maximized, closed, open" If you need the enumerations to map to values (eg, you need minimized to equal 0, maximised to equal 100, etc) I'd use a hash of symb... | How can I use C# style enumerations in Ruby? I just want to know the best way to emulate a C# style enumeration in Ruby. | TITLE:
How can I use C# style enumerations in Ruby?
QUESTION:
I just want to know the best way to emulate a C# style enumeration in Ruby.
ANSWER:
Specifically, I would like to be able to perform logical tests against the set of values given some variable. Example would be the state of a window: "minimized, maximized,... | [
"ruby",
"enumeration",
"language-construct"
] | 8 | 5 | 2,030 | 5 | 0 | 2008-10-02T21:36:45.397000 | 2008-10-02T22:24:58.997000 |
164,719 | 164,730 | API for creating installers on Windows | There are lots of tools for creating installers on Windows (InstallShield, InnoSetup, NSIS, just to name a few). All tools I've seen fall in one or both of these categories Point-and-click. Nice GUI for creating the installer, but the installer definition/project file can not be manually edited. Textfile: No (official)... | Wix 3.0 beta has.NET support included for this purpose. I don't know how well it works but it includes documentation. It's a framework of types for manipulating the installation creation process and all that goodness, so I don't think you even need to write a line of WiX XML if you don't want to. | API for creating installers on Windows There are lots of tools for creating installers on Windows (InstallShield, InnoSetup, NSIS, just to name a few). All tools I've seen fall in one or both of these categories Point-and-click. Nice GUI for creating the installer, but the installer definition/project file can not be m... | TITLE:
API for creating installers on Windows
QUESTION:
There are lots of tools for creating installers on Windows (InstallShield, InnoSetup, NSIS, just to name a few). All tools I've seen fall in one or both of these categories Point-and-click. Nice GUI for creating the installer, but the installer definition/project... | [
"windows",
"installation"
] | 6 | 6 | 511 | 3 | 0 | 2008-10-02T21:38:19.903000 | 2008-10-02T21:41:44.840000 |
164,727 | 165,584 | Return custom structure from Popup window in Powerbuilder 9.0 | How do you return values or structures from a Popup window in Powerbuilder 9.0? The CloseWithReturn is only valid for Response windows and thus is not available. When I set a value to the Message.PowerObjectParm, the value becomes null when the Popup window closes. I need to use a Popup window so the user can click bac... | You won't be able to accomplish this the way you are thinking. Since the window you are opening from the parent is not a Response window, the two aren't explicitly linked together. But you could accomplish this by having a public instance variable in the parent window that is of the type of your custom structure. Then ... | Return custom structure from Popup window in Powerbuilder 9.0 How do you return values or structures from a Popup window in Powerbuilder 9.0? The CloseWithReturn is only valid for Response windows and thus is not available. When I set a value to the Message.PowerObjectParm, the value becomes null when the Popup window ... | TITLE:
Return custom structure from Popup window in Powerbuilder 9.0
QUESTION:
How do you return values or structures from a Popup window in Powerbuilder 9.0? The CloseWithReturn is only valid for Response windows and thus is not available. When I set a value to the Message.PowerObjectParm, the value becomes null when... | [
"powerbuilder"
] | 1 | 2 | 4,331 | 6 | 0 | 2008-10-02T21:40:02.113000 | 2008-10-03T03:28:57.423000 |
164,736 | 164,791 | Redirect Standard Output Efficiently in .NET | I am trying to call php-cgi.exe from a.NET program. I use RedirectStandardOutput to get the output back as a stream but the whole thing is very slow. Do you have any idea on how I can make that faster? Any other technique? Dim oCGI As ProcessStartInfo = New ProcessStartInfo() oCGI.WorkingDirectory = "C:\Program Files\A... | You can use the OutputDataReceived event to receive data as it's pumped to StdOut. | Redirect Standard Output Efficiently in .NET I am trying to call php-cgi.exe from a.NET program. I use RedirectStandardOutput to get the output back as a stream but the whole thing is very slow. Do you have any idea on how I can make that faster? Any other technique? Dim oCGI As ProcessStartInfo = New ProcessStartInfo(... | TITLE:
Redirect Standard Output Efficiently in .NET
QUESTION:
I am trying to call php-cgi.exe from a.NET program. I use RedirectStandardOutput to get the output back as a stream but the whole thing is very slow. Do you have any idea on how I can make that faster? Any other technique? Dim oCGI As ProcessStartInfo = New... | [
"c#",
".net",
"process",
"cgi"
] | 9 | 8 | 18,462 | 3 | 0 | 2008-10-02T21:42:36.100000 | 2008-10-02T21:56:19.047000 |
164,743 | 165,037 | What's the best way to create a "magnifying glass" on a 2D scene? | I'm working on a game where I need to let the player look at a plane (e.g., a wall) through a lens (e.g., a magnifying glass). The game is to run on the iPhone, so my choices are Core Animation or OpenGL ES. My first idea (that I have not yet tried) is to do this using Core Animation. Create the wall and objects on it ... | That is how I'd do it, it sounds like a good plan. Whether you choose OGL or CA the basic principle is the same so I would stick with what you're more comfortable with. Identify the region you wish to magnify Render this region to a separate surface Render any border/overlay onto of the surface Render your surface enla... | What's the best way to create a "magnifying glass" on a 2D scene? I'm working on a game where I need to let the player look at a plane (e.g., a wall) through a lens (e.g., a magnifying glass). The game is to run on the iPhone, so my choices are Core Animation or OpenGL ES. My first idea (that I have not yet tried) is t... | TITLE:
What's the best way to create a "magnifying glass" on a 2D scene?
QUESTION:
I'm working on a game where I need to let the player look at a plane (e.g., a wall) through a lens (e.g., a magnifying glass). The game is to run on the iPhone, so my choices are Core Animation or OpenGL ES. My first idea (that I have n... | [
"iphone",
"objective-c",
"opengl",
"core-animation"
] | 2 | 2 | 2,983 | 2 | 0 | 2008-10-02T21:44:08.640000 | 2008-10-02T23:29:34.050000 |
164,751 | 216,223 | How to avoid flicker while handling WM_ERASEBKGND in Windows dialog | I have a dialog that resizes. It also has a custom background which I paint in response to a WM_ERASEBKGND call (currently a simple call to FillSolidRect). When the dialog is resized, there is tremendous flickering going on. To try and reduce the flickering I enumerate all child windows and add them to the clipping reg... | Assuming that "FillSolidRect" is the erase of your background then return TRUE from the WM_ERASEBKGND. To do the double buffering that you are almost doing in your code fragment, you will need to use CreateCompatibleBitmap and select that into your memDC. | How to avoid flicker while handling WM_ERASEBKGND in Windows dialog I have a dialog that resizes. It also has a custom background which I paint in response to a WM_ERASEBKGND call (currently a simple call to FillSolidRect). When the dialog is resized, there is tremendous flickering going on. To try and reduce the flick... | TITLE:
How to avoid flicker while handling WM_ERASEBKGND in Windows dialog
QUESTION:
I have a dialog that resizes. It also has a custom background which I paint in response to a WM_ERASEBKGND call (currently a simple call to FillSolidRect). When the dialog is resized, there is tremendous flickering going on. To try an... | [
"windows",
"dialog",
"resize",
"gdi",
"flicker"
] | 10 | 10 | 19,819 | 6 | 0 | 2008-10-02T21:46:21.693000 | 2008-10-19T09:47:47.477000 |
164,752 | 164,819 | Best Practices - Should meta data and functional defining data be intermixed? | Consider the case of a simple news article web application that has a DB table column of "Status" that is accessible by a radio button set of: Status - [x] Publish [ ] Draft [ ] Archive...where "Publish" shows an article publicly and "Draft" and "Archive" do not. Functionally "Draft" and "Archive" do the same thing but... | Functional states are about behavior - they do not need to be modeled in your database. If your business logic only cares about "showing" articles with a status of "Published" - there's no reason to double the complexity of your data with a Show column. At the point that you decide your business logic needs additional ... | Best Practices - Should meta data and functional defining data be intermixed? Consider the case of a simple news article web application that has a DB table column of "Status" that is accessible by a radio button set of: Status - [x] Publish [ ] Draft [ ] Archive...where "Publish" shows an article publicly and "Draft" ... | TITLE:
Best Practices - Should meta data and functional defining data be intermixed?
QUESTION:
Consider the case of a simple news article web application that has a DB table column of "Status" that is accessible by a radio button set of: Status - [x] Publish [ ] Draft [ ] Archive...where "Publish" shows an article pub... | [
"metadata"
] | 1 | 2 | 169 | 2 | 0 | 2008-10-02T21:46:34.127000 | 2008-10-02T22:05:43.473000 |
164,767 | 165,062 | How to access the last element in an array? | $array = explode(".", $row[copy]); $a = $array.length -1; I want to return the last element of this array but all i get from this is -1. | You can also use: $a = end($array); This also sets the arrays internal pointer to the end of the array, but it does get you the last element easily. | How to access the last element in an array? $array = explode(".", $row[copy]); $a = $array.length -1; I want to return the last element of this array but all i get from this is -1. | TITLE:
How to access the last element in an array?
QUESTION:
$array = explode(".", $row[copy]); $a = $array.length -1; I want to return the last element of this array but all i get from this is -1.
ANSWER:
You can also use: $a = end($array); This also sets the arrays internal pointer to the end of the array, but it d... | [
"php",
"arrays",
"element"
] | 5 | 17 | 4,792 | 9 | 0 | 2008-10-02T21:50:31.027000 | 2008-10-02T23:34:43.163000 |
164,800 | 2,082,754 | CLOS like object model for PHP | I have returned to php development from Moose and I really miss CLOS like object model for php. Is there some kind of syntaxtic sugar which would allow me to write less code in php when dealing with objects? Just to stress this requirement a bit more. I don't want to write one thing in several places. I can live with p... | There is also new project http://github.com/huberry/phuby which implements roles in php! | CLOS like object model for PHP I have returned to php development from Moose and I really miss CLOS like object model for php. Is there some kind of syntaxtic sugar which would allow me to write less code in php when dealing with objects? Just to stress this requirement a bit more. I don't want to write one thing in se... | TITLE:
CLOS like object model for PHP
QUESTION:
I have returned to php development from Moose and I really miss CLOS like object model for php. Is there some kind of syntaxtic sugar which would allow me to write less code in php when dealing with objects? Just to stress this requirement a bit more. I don't want to wri... | [
"php",
"oop",
"moose",
"clos"
] | 4 | 0 | 297 | 3 | 0 | 2008-10-02T21:59:13.113000 | 2010-01-17T21:36:08.237000 |
164,802 | 164,814 | How do I access a public property of a User Control from codebehind? | I have a user control in a repeater that I need to pass data to during the databound event, so I've created two public properties in the control. How do I access these properties from the page's codebehind class? | During the databind event in the repeater? MyUserControl myControl = (MyUserControl)e.item.FindControl("NameInASPX"); myControl.MyCustomProperty = foo; | How do I access a public property of a User Control from codebehind? I have a user control in a repeater that I need to pass data to during the databound event, so I've created two public properties in the control. How do I access these properties from the page's codebehind class? | TITLE:
How do I access a public property of a User Control from codebehind?
QUESTION:
I have a user control in a repeater that I need to pass data to during the databound event, so I've created two public properties in the control. How do I access these properties from the page's codebehind class?
ANSWER:
During the ... | [
"c#",
"asp.net"
] | 0 | 4 | 637 | 1 | 0 | 2008-10-02T21:59:49.790000 | 2008-10-02T22:03:51.153000 |
164,831 | 164,980 | How to rank a million images with a crowdsourced sort | I'd like to rank a collection of landscape images by making a game whereby site visitors can rate them, in order to find out which images people find the most appealing. What would be a good method of doing that? Hot-or-Not style? I.e. show a single image, ask the user to rank it from 1-10. As I see it, this allows me ... | As others have said, ranking 1-10 does not work that well because people have different levels. The problem with the Pick A-or-B method is that its not guaranteed for the system to be transitive (A can beat B, but B beats C, and C beats A). Having nontransitive comparison operators breaks sorting algorithms. With quick... | How to rank a million images with a crowdsourced sort I'd like to rank a collection of landscape images by making a game whereby site visitors can rate them, in order to find out which images people find the most appealing. What would be a good method of doing that? Hot-or-Not style? I.e. show a single image, ask the u... | TITLE:
How to rank a million images with a crowdsourced sort
QUESTION:
I'd like to rank a collection of landscape images by making a game whereby site visitors can rate them, in order to find out which images people find the most appealing. What would be a good method of doing that? Hot-or-Not style? I.e. show a singl... | [
"algorithm",
"sorting",
"crowdsourcing"
] | 87 | 102 | 15,696 | 12 | 0 | 2008-10-02T22:09:06.850000 | 2008-10-02T23:05:05.187000 |
164,849 | 1,974,101 | Can someone compare a Fuzzy Query to a LuceneDictionary solution? | According to this post on how to do query auto-completionsuggestions in lucene getting "Did You Mean" functionality best involves using a LuceneDictionary. But I probably would have used a fuzzy query for this before reading this post. Now I'm wondering which is faster, which is easier to implement? | Have you looked at some NGram wrappers for Lucene. They are the best ways to do the "did you mean" functionality in Lucene. I found this page for the docs. | Can someone compare a Fuzzy Query to a LuceneDictionary solution? According to this post on how to do query auto-completionsuggestions in lucene getting "Did You Mean" functionality best involves using a LuceneDictionary. But I probably would have used a fuzzy query for this before reading this post. Now I'm wondering ... | TITLE:
Can someone compare a Fuzzy Query to a LuceneDictionary solution?
QUESTION:
According to this post on how to do query auto-completionsuggestions in lucene getting "Did You Mean" functionality best involves using a LuceneDictionary. But I probably would have used a fuzzy query for this before reading this post. ... | [
"autocomplete",
"lucene",
"spell-checking"
] | 1 | 1 | 759 | 1 | 0 | 2008-10-02T22:14:59.940000 | 2009-12-29T11:09:57.480000 |
164,855 | 227,958 | How can I set the focus inside the Yahoo Rich Text Editor | I have a an HTML form which contains the YAHOO rich text editor on it. When I display the form I want the YAHOO editor to have focus so that the cursor is ready to accept input without the user having to click on it or tab into it | I got this from the documenation over at the YUI library. Specifically at a sample titled Editor - Basic Buttons var myEditor = new YAHOO.widget.Editor('editor', {focusAtStart:true}); myEditor.render(); The key here is the the "focusAtStart" attribute as part of the optional attributes object | How can I set the focus inside the Yahoo Rich Text Editor I have a an HTML form which contains the YAHOO rich text editor on it. When I display the form I want the YAHOO editor to have focus so that the cursor is ready to accept input without the user having to click on it or tab into it | TITLE:
How can I set the focus inside the Yahoo Rich Text Editor
QUESTION:
I have a an HTML form which contains the YAHOO rich text editor on it. When I display the form I want the YAHOO editor to have focus so that the cursor is ready to accept input without the user having to click on it or tab into it
ANSWER:
I go... | [
"javascript",
"html",
"richtext"
] | 2 | 1 | 695 | 3 | 0 | 2008-10-02T22:15:53.727000 | 2008-10-22T23:53:47.007000 |
164,858 | 164,908 | Does the assign then evaluate of each parameter "pattern" have a name? | The following snippet of C# code: int i = 1; string result = String.Format("{0},{1},{2}", i++, i++, i++); Console.WriteLine(result); writes out: 1,2,3 Before I tried this in the compiler I was expecting the assignments to take place and then the evaluations, so my expected output was: 1,1,1 So my question is: Does this... | The order of evaluation of arguments is strictly left-to-right in C#. When you evaluate the expression i++, what happens is the value of i is calculated and pushed, then the value of i is incremented. The ++ operator on System.Int32 is effectively a function with the special name ++ and the special syntax of calling it... | Does the assign then evaluate of each parameter "pattern" have a name? The following snippet of C# code: int i = 1; string result = String.Format("{0},{1},{2}", i++, i++, i++); Console.WriteLine(result); writes out: 1,2,3 Before I tried this in the compiler I was expecting the assignments to take place and then the eva... | TITLE:
Does the assign then evaluate of each parameter "pattern" have a name?
QUESTION:
The following snippet of C# code: int i = 1; string result = String.Format("{0},{1},{2}", i++, i++, i++); Console.WriteLine(result); writes out: 1,2,3 Before I tried this in the compiler I was expecting the assignments to take plac... | [
"c#"
] | 2 | 3 | 183 | 2 | 0 | 2008-10-02T22:16:24.820000 | 2008-10-02T22:29:10.840000 |
164,865 | 164,906 | How can I split a pipe-separated string in a list? | Here at work, we are working on a newsletter system that our clients can use. As an intern one of my jobs is to help with the smaller pieces of the puzzle. In this case what I need to do is scan the logs of the email server for bounced messages and add the emails and the reason the email bounced to a "bad email databas... | Something like this would work: while( ) { my $line = $_; chomp($line); my ($email,$reason) = split(/\|/, $line); print "Email: $email\n"; print "Reason: $reason"; my $sth = $dbh->prepare(qq{INSERT INTO bademails VALUES(?,?)}); $sth->execute($email, $reason); $sth->finish(); } You might find it easier to just do the wh... | How can I split a pipe-separated string in a list? Here at work, we are working on a newsletter system that our clients can use. As an intern one of my jobs is to help with the smaller pieces of the puzzle. In this case what I need to do is scan the logs of the email server for bounced messages and add the emails and t... | TITLE:
How can I split a pipe-separated string in a list?
QUESTION:
Here at work, we are working on a newsletter system that our clients can use. As an intern one of my jobs is to help with the smaller pieces of the puzzle. In this case what I need to do is scan the logs of the email server for bounced messages and ad... | [
"perl",
"parsing"
] | 7 | 14 | 26,253 | 5 | 0 | 2008-10-02T22:17:20.900000 | 2008-10-02T22:28:58.907000 |
164,879 | 164,898 | How to write from Java to the Windows Event Log? | How can I write from Java to the Windows Event Log? | EDIT (2023): See JNA https://stackoverflow.com/a/3815771/3937 Old answer Log4J is a Java-based logging utility. The class NTEventLogAppender can be used to "append to the NT event log system". See the documentation here: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/nt/NTEventLogAppender.html Edit: There... | How to write from Java to the Windows Event Log? How can I write from Java to the Windows Event Log? | TITLE:
How to write from Java to the Windows Event Log?
QUESTION:
How can I write from Java to the Windows Event Log?
ANSWER:
EDIT (2023): See JNA https://stackoverflow.com/a/3815771/3937 Old answer Log4J is a Java-based logging utility. The class NTEventLogAppender can be used to "append to the NT event log system".... | [
"java",
"windows",
"logging",
"event-log"
] | 25 | 24 | 29,966 | 4 | 0 | 2008-10-02T22:20:36.243000 | 2008-10-02T22:27:30.813000 |
164,896 | 166,548 | Limitations in running Ruby/Rails on windows | In the installation documentation to RoR it mentions that there are many limitations to running Ruby on Rails on Windows, and in some cases, whole libraries do not work. How bad are these limitations, should I always default to Linux to code / run RoR, and is Iron Ruby expected to fix these limitations or are they core... | Here's an overview of the current issues with Rails on Windows: Ruby and Rails are slower on Windows than they are on Unix-like OS's. A few gems and libraries don't work on Windows. Some Unix-isms aren't available on Windows ( examples ). The community is mostly on either Mac or Linux ( This is a particularly hard one ... | Limitations in running Ruby/Rails on windows In the installation documentation to RoR it mentions that there are many limitations to running Ruby on Rails on Windows, and in some cases, whole libraries do not work. How bad are these limitations, should I always default to Linux to code / run RoR, and is Iron Ruby expec... | TITLE:
Limitations in running Ruby/Rails on windows
QUESTION:
In the installation documentation to RoR it mentions that there are many limitations to running Ruby on Rails on Windows, and in some cases, whole libraries do not work. How bad are these limitations, should I always default to Linux to code / run RoR, and ... | [
"ruby-on-rails",
"windows",
"ruby",
"ironruby"
] | 81 | 102 | 37,284 | 16 | 0 | 2008-10-02T22:26:38.507000 | 2008-10-03T12:20:59.300000 |
164,901 | 164,987 | How would I package and sell a Django app? | Currently I am hosting a Django app I developed myself for my clients, but I am now starting to look at selling it to people for them to host themselves. My question is this: How can I package up and sell a Django app, while protecting its code from pirating or theft? Distributing a bunch of.py files doesn't sound like... | Don't try and obfuscate or encrypt the code - it will never work. I would suggest selling the Django application "as a service" - either host it for them, or sell them the code and support. Write up a contract that forbids them from redistributing it. That said, if you were determined to obfuscate the code in some way ... | How would I package and sell a Django app? Currently I am hosting a Django app I developed myself for my clients, but I am now starting to look at selling it to people for them to host themselves. My question is this: How can I package up and sell a Django app, while protecting its code from pirating or theft? Distribu... | TITLE:
How would I package and sell a Django app?
QUESTION:
Currently I am hosting a Django app I developed myself for my clients, but I am now starting to look at selling it to people for them to host themselves. My question is this: How can I package up and sell a Django app, while protecting its code from pirating ... | [
"python",
"django",
"piracy-prevention"
] | 42 | 63 | 18,978 | 7 | 0 | 2008-10-02T22:27:56.977000 | 2008-10-02T23:10:21.443000 |
164,915 | 246,904 | Code for extending the NETCF MainMenu to support background color property | I've searched for the solution to change the background color on the Compact Framework's MainMenu control, and the only answer I've found is that you need to create a custom control. Does anyone have example code for this? | There is no way of doing this. Your right in that you'll probably need to create your own control. This was something I was considering doing anyway to make the application go on Windows CE and Windows Mobile. The problem with adding menus when the application needs to work with both is that the menu goes to the top of... | Code for extending the NETCF MainMenu to support background color property I've searched for the solution to change the background color on the Compact Framework's MainMenu control, and the only answer I've found is that you need to create a custom control. Does anyone have example code for this? | TITLE:
Code for extending the NETCF MainMenu to support background color property
QUESTION:
I've searched for the solution to change the background color on the Compact Framework's MainMenu control, and the only answer I've found is that you need to create a custom control. Does anyone have example code for this?
ANS... | [
"compact-framework",
"mobile"
] | 4 | 0 | 1,481 | 3 | 0 | 2008-10-02T22:38:42.877000 | 2008-10-29T14:01:00.843000 |
164,926 | 164,932 | How do I display a decimal value to 2 decimal places? | When displaying the value of a decimal currently with.ToString(), it's accurate to like 15 decimal places, and since I'm using it to represent dollars and cents, I only want the output to be 2 decimal places. Do I use a variation of.ToString() for this? | decimalVar.ToString("#.##"); // returns ".5" when decimalVar == 0.5m or decimalVar.ToString("0.##"); // returns "0.5" when decimalVar == 0.5m or decimalVar.ToString("0.00"); // returns "0.50" when decimalVar == 0.5m | How do I display a decimal value to 2 decimal places? When displaying the value of a decimal currently with.ToString(), it's accurate to like 15 decimal places, and since I'm using it to represent dollars and cents, I only want the output to be 2 decimal places. Do I use a variation of.ToString() for this? | TITLE:
How do I display a decimal value to 2 decimal places?
QUESTION:
When displaying the value of a decimal currently with.ToString(), it's accurate to like 15 decimal places, and since I'm using it to represent dollars and cents, I only want the output to be 2 decimal places. Do I use a variation of.ToString() for ... | [
"c#",
".net",
"format",
"decimal"
] | 835 | 1,183 | 1,554,499 | 19 | 0 | 2008-10-02T22:41:56.833000 | 2008-10-02T22:43:02.617000 |
164,927 | 164,942 | How to find out if a certain value exists as a primary key in mySql? | What is the best way to find out if a primary key with a certain value already exists in a table? I can think of: SELECT key FROM table WHERE key = 'value'; and count the results, or: SELECT SQL_CALC_FOUND_ROWS key FROM table WHERE key = 'value' LIMIT 1; SELECT FOUND_ROWS(); | I think either of your suggestions in the question are suitable. Depending on how you are using this though, you can potentially save time by doing an INSERT IGNORE, which allows you to insert a new row if the primary key doesn't exist. If it does exist, the error is ignored so you can continue as normal. Other similar... | How to find out if a certain value exists as a primary key in mySql? What is the best way to find out if a primary key with a certain value already exists in a table? I can think of: SELECT key FROM table WHERE key = 'value'; and count the results, or: SELECT SQL_CALC_FOUND_ROWS key FROM table WHERE key = 'value' LIMIT... | TITLE:
How to find out if a certain value exists as a primary key in mySql?
QUESTION:
What is the best way to find out if a primary key with a certain value already exists in a table? I can think of: SELECT key FROM table WHERE key = 'value'; and count the results, or: SELECT SQL_CALC_FOUND_ROWS key FROM table WHERE k... | [
"mysql"
] | 4 | 3 | 7,881 | 6 | 0 | 2008-10-02T22:42:21.683000 | 2008-10-02T22:47:23.560000 |
164,931 | 164,970 | How can I add internationalization to my Perl script? | I'm looking at introducing multi-lingual support to a mature CGI application written in Perl. I had originally considered rolling my own solution using a Perl hash (stored on disk) for translation files but then I came across a CPAN module which appears to do just what I want ( i18n ). Does anyone have any experience w... | There is a Perl Journal article on software localisation. It will provide you with a good idea of what you can expect when adding multi-lingual support. It's beautifully written and humourous. Specifically, the article is written by the folks who wrote and maintain Locale::Maketext, so I would recommend that module sim... | How can I add internationalization to my Perl script? I'm looking at introducing multi-lingual support to a mature CGI application written in Perl. I had originally considered rolling my own solution using a Perl hash (stored on disk) for translation files but then I came across a CPAN module which appears to do just w... | TITLE:
How can I add internationalization to my Perl script?
QUESTION:
I'm looking at introducing multi-lingual support to a mature CGI application written in Perl. I had originally considered rolling my own solution using a Perl hash (stored on disk) for translation files but then I came across a CPAN module which ap... | [
"perl",
"localization",
"internationalization",
"cgi"
] | 13 | 16 | 5,891 | 2 | 0 | 2008-10-02T22:43:02.150000 | 2008-10-02T23:00:49.690000 |
164,964 | 165,181 | How are exponents calculated? | I'm trying to determine the asymptotic run-time of one of my algorithms, which uses exponents, but I'm not sure of how exponents are calculated programmatically. I'm specifically looking for the pow() algorithm used for double-precision, floating point numbers. | I've had a chance to look at fdlibm's implementation. The comments describe the algorithm used: * n * Method: Let x = 2 * (1+f) * 1. Compute and return log2(x) in two pieces: * log2(x) = w1 + w2, * where w1 has 53-24 = 29 bit trailing zeros. * 2. Perform y*log2(x) = n+y' by simulating muti-precision * arithmetic, where... | How are exponents calculated? I'm trying to determine the asymptotic run-time of one of my algorithms, which uses exponents, but I'm not sure of how exponents are calculated programmatically. I'm specifically looking for the pow() algorithm used for double-precision, floating point numbers. | TITLE:
How are exponents calculated?
QUESTION:
I'm trying to determine the asymptotic run-time of one of my algorithms, which uses exponents, but I'm not sure of how exponents are calculated programmatically. I'm specifically looking for the pow() algorithm used for double-precision, floating point numbers.
ANSWER:
I... | [
"math",
"analysis"
] | 7 | 15 | 14,034 | 6 | 0 | 2008-10-02T22:58:14 | 2008-10-03T00:16:34 |
164,967 | 165,044 | Enumerating the list of DSN's set up on a computer | I have an Excel application in which I want to present the user with a list of the Data Source Names (ie: DSN's), whereby s/he can choose what data source to use. Hopefully once I've got the list, I can easily access the DSN properties to connect to the appropriate database. Please note, I do not want to use a DSN-less... | The DSN entries are stored in the registry in the following keys. HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\ODBC Data Sources HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources This contains the list of all defined DSN. This acts as an global index and the specific details for each DSN are stored in a key with ... | Enumerating the list of DSN's set up on a computer I have an Excel application in which I want to present the user with a list of the Data Source Names (ie: DSN's), whereby s/he can choose what data source to use. Hopefully once I've got the list, I can easily access the DSN properties to connect to the appropriate dat... | TITLE:
Enumerating the list of DSN's set up on a computer
QUESTION:
I have an Excel application in which I want to present the user with a list of the Data Source Names (ie: DSN's), whereby s/he can choose what data source to use. Hopefully once I've got the list, I can easily access the DSN properties to connect to t... | [
"vba",
"excel",
"dsn"
] | 5 | 14 | 9,167 | 3 | 0 | 2008-10-02T23:00:17.350000 | 2008-10-02T23:31:48.023000 |
164,979 | 164,994 | RegEx for matching UK Postcodes | I'm after a regex that will validate a full complex UK postcode only within an input string. All of the uncommon postcode forms must be covered as well as the usual. For instance: Matches CW3 9SS SE5 0EG SE50EG se5 0eg WC2H 7LT No Match aWC2H 7LT WC2H 7LTa WC2H How do I solve this problem? | I'd recommend taking a look at the UK Government Data Standard for postcodes [link now dead; archive of XML, see Wikipedia for discussion]. There is a brief description about the data and the attached xml schema provides a regular expression. It may not be exactly what you want but would be a good starting point. The R... | RegEx for matching UK Postcodes I'm after a regex that will validate a full complex UK postcode only within an input string. All of the uncommon postcode forms must be covered as well as the usual. For instance: Matches CW3 9SS SE5 0EG SE50EG se5 0eg WC2H 7LT No Match aWC2H 7LT WC2H 7LTa WC2H How do I solve this proble... | TITLE:
RegEx for matching UK Postcodes
QUESTION:
I'm after a regex that will validate a full complex UK postcode only within an input string. All of the uncommon postcode forms must be covered as well as the usual. For instance: Matches CW3 9SS SE5 0EG SE50EG se5 0eg WC2H 7LT No Match aWC2H 7LT WC2H 7LTa WC2H How do I... | [
"regex",
"validation",
"regex-group",
"postal-code"
] | 243 | 257 | 285,812 | 32 | 0 | 2008-10-02T23:05:03.907000 | 2008-10-02T23:13:26.197000 |
164,990 | 165,030 | Referencing build artifacts from an svn:external build in .Net project | This is a continuation question from a previous question I have asked I now have a /externals directory in the root of my project tree. Inside this I have a reference to another project. I'm able to script the build of all my externals in the main project NAnt script. The result of these builds are as follows: /externa... | I'd say build them once and check the build artifacts in /public/ext/some_dependency/ref (obviously, the naming of that folder is up to you:-)) and reference them from there. My main reason is that you seldom need to build external dependencies every time you do a build of your product. In general external dependencies... | Referencing build artifacts from an svn:external build in .Net project This is a continuation question from a previous question I have asked I now have a /externals directory in the root of my project tree. Inside this I have a reference to another project. I'm able to script the build of all my externals in the main p... | TITLE:
Referencing build artifacts from an svn:external build in .Net project
QUESTION:
This is a continuation question from a previous question I have asked I now have a /externals directory in the root of my project tree. Inside this I have a reference to another project. I'm able to script the build of all my exter... | [
"svn",
"build-process",
"nant"
] | 2 | 1 | 697 | 2 | 0 | 2008-10-02T23:11:38.603000 | 2008-10-02T23:25:48.617000 |
164,991 | 165,007 | CHAR() or VARCHAR() as primary key in an ISAM MySQL table? | I need a simple table with a user name and password field in MySQL. Since user names must be unique, it makes sense to me to make them the primary key. Is it better to use CHAR() or VARCHAR() as a primary key? | may as well just use a user ID index, it's much faster for joins vs char/varchar. the two seconds it takes to add that now could save you a lot of time later if you accidently have to expand the functionality of your schema. some pitfalls to think about: say we add a few tables at a future date, what if someone wants t... | CHAR() or VARCHAR() as primary key in an ISAM MySQL table? I need a simple table with a user name and password field in MySQL. Since user names must be unique, it makes sense to me to make them the primary key. Is it better to use CHAR() or VARCHAR() as a primary key? | TITLE:
CHAR() or VARCHAR() as primary key in an ISAM MySQL table?
QUESTION:
I need a simple table with a user name and password field in MySQL. Since user names must be unique, it makes sense to me to make them the primary key. Is it better to use CHAR() or VARCHAR() as a primary key?
ANSWER:
may as well just use a u... | [
"mysql"
] | 9 | 10 | 11,840 | 4 | 0 | 2008-10-02T23:12:06.760000 | 2008-10-02T23:18:02.940000 |
164,996 | 165,006 | How do I discover the return value at the end of a function when debugging in VS2008? | Using C# in Visual Studio 2008 and stepping through a function in the debugger I get to the end of a function and am on the final curly brace } and about to return. Is there a way to find out what value the function is about to return? This is necessary if the return value is calculated such as: return (x.Func() > y.Fu... | It's a little low level, but if you switch to disassembly then you can single step through the instructions and see what the return value is being set to. It is typically set in the @eax register. You can place a breakpoint on the ret instructions and inspect the register at that point if you don't want to single step ... | How do I discover the return value at the end of a function when debugging in VS2008? Using C# in Visual Studio 2008 and stepping through a function in the debugger I get to the end of a function and am on the final curly brace } and about to return. Is there a way to find out what value the function is about to return... | TITLE:
How do I discover the return value at the end of a function when debugging in VS2008?
QUESTION:
Using C# in Visual Studio 2008 and stepping through a function in the debugger I get to the end of a function and am on the final curly brace } and about to return. Is there a way to find out what value the function ... | [
"c#",
"visual-studio-2008"
] | 4 | 4 | 465 | 4 | 0 | 2008-10-02T23:14:22.463000 | 2008-10-02T23:17:35.890000 |
165,010 | 165,022 | Installing .NET 3.5 on a server with .NET 2.0 applications | I would like to upgrade my web projects on an IIS 5 server from.NET 2.0 to.NET 3.5. These web applications live on a server with other web applications that will not be upgraded to.NET 3.5. The server administrator is reluctant to install.NET 3.5 because he is afraid it will break the applications on that machine that ... | If you have.NET 2 SP1 you shouldn't have a problem. To be exact.NET 3 & 3.5 are built on top of.NET 2.0 SP 1, we had a problem deploying 3.5 onto a server which only had.NET 2 (not SP1) and it caused the apps on there to break. The reason is your core framework assemblies in.NET 2 are upgraded and have new version numb... | Installing .NET 3.5 on a server with .NET 2.0 applications I would like to upgrade my web projects on an IIS 5 server from.NET 2.0 to.NET 3.5. These web applications live on a server with other web applications that will not be upgraded to.NET 3.5. The server administrator is reluctant to install.NET 3.5 because he is ... | TITLE:
Installing .NET 3.5 on a server with .NET 2.0 applications
QUESTION:
I would like to upgrade my web projects on an IIS 5 server from.NET 2.0 to.NET 3.5. These web applications live on a server with other web applications that will not be upgraded to.NET 3.5. The server administrator is reluctant to install.NET ... | [
"asp.net-2.0",
"asp.net-3.5",
"iis-5"
] | 3 | 5 | 2,419 | 6 | 0 | 2008-10-02T23:19:20.440000 | 2008-10-02T23:22:01.510000 |
165,025 | 165,118 | Why does my Excel export have a blank row at the top? | In ASP.NET, I am exporting some data to Excel by simply binding a DataSet to a GridView and then setting the ContentType to Excel. My ASPX page is very simple and looks like this: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExamExportReport.aspx.cs" Inherits="Cabi.CamCentral.Web.Pages.Utility.ExamExportRe... | @azamsharp - I found the solution elsewhere while you were replying.:-) It turns out that removing the form tag entirely from the ASPX page is the trick, and the only way to do this is to override the VerifyRenderingInServerForm method as you are doing. If you update your solution to include the fact that you need to r... | Why does my Excel export have a blank row at the top? In ASP.NET, I am exporting some data to Excel by simply binding a DataSet to a GridView and then setting the ContentType to Excel. My ASPX page is very simple and looks like this: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExamExportReport.aspx.cs" In... | TITLE:
Why does my Excel export have a blank row at the top?
QUESTION:
In ASP.NET, I am exporting some data to Excel by simply binding a DataSet to a GridView and then setting the ContentType to Excel. My ASPX page is very simple and looks like this: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExamExport... | [
"asp.net",
"excel"
] | 3 | 4 | 4,558 | 3 | 0 | 2008-10-02T23:23:55.077000 | 2008-10-02T23:53:18.423000 |
165,041 | 165,047 | Redundancy vs dependencies: which is worse? | When working on developing new software i normally get stuck with the redundancy vs dependencies problem. That is, to either accept a 3rd party library that i have a huge dependencies to or code it myself duplicate all the effect but reduce the dependencies. Though I've recently been trying to come up with a metric way... | I would definitely recommend reading Joels essay on this: "In Defense of Not-Invented-Here Syndrome" For a dependency, the best metric I can think of would be "would the world grind to a halt if this disappeared". For example if the STL of C++ magically went away, tons of programs would stop working. If.Net or Java dis... | Redundancy vs dependencies: which is worse? When working on developing new software i normally get stuck with the redundancy vs dependencies problem. That is, to either accept a 3rd party library that i have a huge dependencies to or code it myself duplicate all the effect but reduce the dependencies. Though I've recen... | TITLE:
Redundancy vs dependencies: which is worse?
QUESTION:
When working on developing new software i normally get stuck with the redundancy vs dependencies problem. That is, to either accept a 3rd party library that i have a huge dependencies to or code it myself duplicate all the effect but reduce the dependencies.... | [
"language-agnostic"
] | 12 | 7 | 1,146 | 3 | 0 | 2008-10-02T23:30:12.707000 | 2008-10-02T23:32:45.587000 |
165,042 | 165,052 | Stop Excel from automatically converting certain text values to dates | Does anyone happen to know if there is a token I can add to my csv for a certain field so Excel doesn't try to convert it to a date? I'm trying to write a.csv file from my application and one of the values happens to look enough like a date that Excel is automatically converting it from text to a date. I've tried putti... | I have found that putting an '=' before the double quotes will accomplish what you want. It forces the data to be text. eg. ="2008-10-03",="more text" EDIT (according to other posts): because of the Excel 2007 bug noted by Jeffiekins one should use the solution proposed by Andrew: "=""2008-10-03""" | Stop Excel from automatically converting certain text values to dates Does anyone happen to know if there is a token I can add to my csv for a certain field so Excel doesn't try to convert it to a date? I'm trying to write a.csv file from my application and one of the values happens to look enough like a date that Exce... | TITLE:
Stop Excel from automatically converting certain text values to dates
QUESTION:
Does anyone happen to know if there is a token I can add to my csv for a certain field so Excel doesn't try to convert it to a date? I'm trying to write a.csv file from my application and one of the values happens to look enough lik... | [
"excel",
"csv",
"import"
] | 626 | 400 | 636,061 | 36 | 0 | 2008-10-02T23:30:43.643000 | 2008-10-02T23:33:21.123000 |
165,043 | 165,057 | Letters within integers. What are they? | This is an excerpt of code from a class I am working with in Java (below). Obviously the code is defining a static variable named EPSILON with the data type double. What I don't understand is the "1E-14" part. What kind of number is that? What does it mean? final double EPSILON = 1E-14; | In your case, this is equivalent to writing: final double EPSILON = 0.00000000000001; except you don't have to count the zeros. This is called scientific notation and is helpful when writing very large or very small numbers. | Letters within integers. What are they? This is an excerpt of code from a class I am working with in Java (below). Obviously the code is defining a static variable named EPSILON with the data type double. What I don't understand is the "1E-14" part. What kind of number is that? What does it mean? final double EPSILON =... | TITLE:
Letters within integers. What are they?
QUESTION:
This is an excerpt of code from a class I am working with in Java (below). Obviously the code is defining a static variable named EPSILON with the data type double. What I don't understand is the "1E-14" part. What kind of number is that? What does it mean? fina... | [
"java",
"types",
"double",
"int",
"literals"
] | 11 | 21 | 10,101 | 5 | 0 | 2008-10-02T23:31:07.777000 | 2008-10-02T23:33:44.290000 |
165,066 | 165,076 | How do I uninstall the .NET framework? | I'm having a problem running a VS 2005 app on some machines and not others. I looked up the error message on google and found a post by someone who had the same error and fixed it by uninstalling and reinstalling the.NET framework. When I try to do that, Windows won't let me because it is in use. Am I expected to unins... | Check out Aaron Stebner's.NET Framework Cleanup Tool. Works quite nicely. | How do I uninstall the .NET framework? I'm having a problem running a VS 2005 app on some machines and not others. I looked up the error message on google and found a post by someone who had the same error and fixed it by uninstalling and reinstalling the.NET framework. When I try to do that, Windows won't let me becau... | TITLE:
How do I uninstall the .NET framework?
QUESTION:
I'm having a problem running a VS 2005 app on some machines and not others. I looked up the error message on google and found a post by someone who had the same error and fixed it by uninstalling and reinstalling the.NET framework. When I try to do that, Windows ... | [
".net"
] | 4 | 11 | 8,994 | 2 | 0 | 2008-10-02T23:36:02.723000 | 2008-10-02T23:40:00.657000 |
165,075 | 165,091 | Map an object reference with HashTable | I'd like to map a reference to an object instead of the object value with an HashTable configMapping.Add("HEADERS_PATH", Me.headers_path) that way when I'm going to retrieve the value of "HEADERS_PATH" I'll be able to assign a value to Me.headers_path something like the " & " operator in C | I am assuming that Me.headers_path is a System.String. Because System.String are immutable what you want cannot be achieved. But you can add an extra level of indirection to achieve a similar behavior. All problems in computer science can be solved by another level of indirection. Butler Lampson Sample in C# (Please be... | Map an object reference with HashTable I'd like to map a reference to an object instead of the object value with an HashTable configMapping.Add("HEADERS_PATH", Me.headers_path) that way when I'm going to retrieve the value of "HEADERS_PATH" I'll be able to assign a value to Me.headers_path something like the " & " oper... | TITLE:
Map an object reference with HashTable
QUESTION:
I'd like to map a reference to an object instead of the object value with an HashTable configMapping.Add("HEADERS_PATH", Me.headers_path) that way when I'm going to retrieve the value of "HEADERS_PATH" I'll be able to assign a value to Me.headers_path something l... | [
"vb.net",
"hashtable"
] | 0 | 3 | 1,061 | 4 | 0 | 2008-10-02T23:39:27.957000 | 2008-10-02T23:45:14.183000 |
165,082 | 165,100 | Insert a Link Using CSS | I'm hand-maintaining an HTML document, and I'm looking for a way to automatically insert a link around text in a table. Let me illustrate: 123456 I would like to automatically make every text in a TD with class "case" a link to that case in our bug tracking system (which, incidentally, is FogBugz). So I'd like that "12... | Not in a manner that will work across browsers. You could, however, do that with some relatively trivial Javascript.. function makeCasesClickable(){ var cells = document.getElementsByTagName('td') for (var i = 0, cell; cell = cells[i]; i++){ if (cell.className!= 'case') continue var caseId = cell.innerHTML cell.innerHT... | Insert a Link Using CSS I'm hand-maintaining an HTML document, and I'm looking for a way to automatically insert a link around text in a table. Let me illustrate: 123456 I would like to automatically make every text in a TD with class "case" a link to that case in our bug tracking system (which, incidentally, is FogBug... | TITLE:
Insert a Link Using CSS
QUESTION:
I'm hand-maintaining an HTML document, and I'm looking for a way to automatically insert a link around text in a table. Let me illustrate: 123456 I would like to automatically make every text in a TD with class "case" a link to that case in our bug tracking system (which, incid... | [
"html",
"hyperlink",
"fogbugz"
] | 21 | 12 | 103,494 | 6 | 0 | 2008-10-02T23:42:47 | 2008-10-02T23:47:27.517000 |
165,092 | 166,043 | Can I push to more than one repository in a single command in git? | Basically I wanted to do something like git push mybranch to repo1, repo2, repo3 right now I'm just typing push many times, and if I'm in a hurry to the the pushing done, I just send them all to the background git push repo1 & git push repo2 & I'm just wondering if git natively supports what I want to do, or if maybe t... | You can have several URLs per remote in git, even though the git remote command did not appear to expose this last I checked. In.git/config, put something like this: [remote "public"] url = git@github.com:kch/inheritable_templates.git url = kch@homeserver:projects/inheritable_templates.git Now you can say “ git push pu... | Can I push to more than one repository in a single command in git? Basically I wanted to do something like git push mybranch to repo1, repo2, repo3 right now I'm just typing push many times, and if I'm in a hurry to the the pushing done, I just send them all to the background git push repo1 & git push repo2 & I'm just ... | TITLE:
Can I push to more than one repository in a single command in git?
QUESTION:
Basically I wanted to do something like git push mybranch to repo1, repo2, repo3 right now I'm just typing push many times, and if I'm in a hurry to the the pushing done, I just send them all to the background git push repo1 & git push... | [
"git",
"version-control"
] | 41 | 79 | 7,136 | 2 | 0 | 2008-10-02T23:45:28.833000 | 2008-10-03T09:10:20.287000 |
165,101 | 165,153 | "invalid use of incomplete type" error with partial template specialization | The following code: template struct foo { void bar(); };
template void foo::bar() { } gives me the error invalid use of incomplete type 'struct foo ' declaration of 'struct foo ' (I'm using gcc.) Is my syntax for partial specialization wrong? Note that if I remove the second argument: template struct foo { void bar();... | You can't partially specialize a function. If you wish to do so on a member function, you must partially specialize the entire template (yes, it's irritating). On a large templated class, to partially specialize a function, you would need a workaround. Perhaps a templated member struct (e.g. template struct Nested ) wo... | "invalid use of incomplete type" error with partial template specialization The following code: template struct foo { void bar(); };
template void foo::bar() { } gives me the error invalid use of incomplete type 'struct foo ' declaration of 'struct foo ' (I'm using gcc.) Is my syntax for partial specialization wrong? ... | TITLE:
"invalid use of incomplete type" error with partial template specialization
QUESTION:
The following code: template struct foo { void bar(); };
template void foo::bar() { } gives me the error invalid use of incomplete type 'struct foo ' declaration of 'struct foo ' (I'm using gcc.) Is my syntax for partial spec... | [
"c++",
"gcc",
"templates",
"partial-specialization"
] | 46 | 48 | 26,241 | 5 | 0 | 2008-10-02T23:47:55.723000 | 2008-10-03T00:05:53.807000 |
165,102 | 165,130 | What's wrong with Linq to SQL? | What's wrong with Linq to SQL? Or - what about Linq to SQL would make it unsuitable for a project, either new or existing? I want to hear about why you would not choose Linq to SQL for a particular project - including what project parameters make it unsuitable. | It is not very adaptable to changes in the database schema. You have to rebuild the dbml layer and regenerate your data contexts. Like any ORM (I am not getting into the debate as to whether it is an ORM or not), you do have to be aware what SQL is being generated, and how that will influence your calls. Inserts are no... | What's wrong with Linq to SQL? What's wrong with Linq to SQL? Or - what about Linq to SQL would make it unsuitable for a project, either new or existing? I want to hear about why you would not choose Linq to SQL for a particular project - including what project parameters make it unsuitable. | TITLE:
What's wrong with Linq to SQL?
QUESTION:
What's wrong with Linq to SQL? Or - what about Linq to SQL would make it unsuitable for a project, either new or existing? I want to hear about why you would not choose Linq to SQL for a particular project - including what project parameters make it unsuitable.
ANSWER:
... | [
".net",
"database",
"linq-to-sql"
] | 9 | 16 | 2,209 | 11 | 0 | 2008-10-02T23:48:48.997000 | 2008-10-02T23:57:06.230000 |
165,105 | 165,124 | How to disable Oracle XE component which is listening on 8080? | After installing Oracle XE, something in Oracle is listening on port 8080. I am not sure if they have an Apache HTTPD, a Tomcat, or something else. But how can I disable it? | It is Oracle XML DB HTTP Server; disable it as follows: sqlplus '/ as sysdba' EXEC DBMS_XDB.SETHTTPPORT(0); commit; You might have to restart Oracle XE (not just the listener). | How to disable Oracle XE component which is listening on 8080? After installing Oracle XE, something in Oracle is listening on port 8080. I am not sure if they have an Apache HTTPD, a Tomcat, or something else. But how can I disable it? | TITLE:
How to disable Oracle XE component which is listening on 8080?
QUESTION:
After installing Oracle XE, something in Oracle is listening on port 8080. I am not sure if they have an Apache HTTPD, a Tomcat, or something else. But how can I disable it?
ANSWER:
It is Oracle XML DB HTTP Server; disable it as follows: ... | [
"oracle",
"oracle-xe"
] | 28 | 44 | 17,640 | 1 | 0 | 2008-10-02T23:49:33.317000 | 2008-10-02T23:55:34.377000 |
165,106 | 165,136 | What does the perfect status report look like? | I work with a lot of offsite developers and contractors. I ask them daily to send me a quick 5 minute status of their work for the day. I have to sometimes consolidate the status of individuals into teams and sometimes consolidate the status of a week, for end-of-period reporting to my clients. I want to learn: Items a... | Use Scrum. Create the sprint backlog, have a spreadsheet with the tasks and a column for each day of the sprint. Ask people to fill out the hours worked on each task every day. Send daily report starting with the burndown chart for the sprint and then short two one liners for each member - last worked on and next worki... | What does the perfect status report look like? I work with a lot of offsite developers and contractors. I ask them daily to send me a quick 5 minute status of their work for the day. I have to sometimes consolidate the status of individuals into teams and sometimes consolidate the status of a week, for end-of-period re... | TITLE:
What does the perfect status report look like?
QUESTION:
I work with a lot of offsite developers and contractors. I ask them daily to send me a quick 5 minute status of their work for the day. I have to sometimes consolidate the status of individuals into teams and sometimes consolidate the status of a week, fo... | [
"project-management",
"projects",
"status"
] | 7 | 2 | 5,467 | 5 | 0 | 2008-10-02T23:50:04.547000 | 2008-10-03T00:00:54.817000 |
165,133 | 165,142 | GPU-based video cards to accelerate your program calculations, How? | I read in this article that a company has created a software capable of using multiple GPU-based video cards in parallel to process hundreds of billions fixed-point calculations per second. The program seems to run in Windows. Is it possible from Windows to assign a thread to a GPU? Do they create their own driver and ... | I imagine that they are using a language like CUDA to program the critical sections of code on the GPUs to accelerate their computation. The main function for the program (and its threads) would still run on the host CPU, but data are shipped off the the GPUs for processing of advanced algorithms. CUDA is an extension ... | GPU-based video cards to accelerate your program calculations, How? I read in this article that a company has created a software capable of using multiple GPU-based video cards in parallel to process hundreds of billions fixed-point calculations per second. The program seems to run in Windows. Is it possible from Windo... | TITLE:
GPU-based video cards to accelerate your program calculations, How?
QUESTION:
I read in this article that a company has created a software capable of using multiple GPU-based video cards in parallel to process hundreds of billions fixed-point calculations per second. The program seems to run in Windows. Is it p... | [
"multithreading",
"gpu"
] | 6 | 5 | 4,545 | 2 | 0 | 2008-10-02T23:59:40.373000 | 2008-10-03T00:02:37.467000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.