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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79,880 | 88,969 | ActiveRecord#save_only_valid_attributes | I'm looking for a variation on the #save method that will only save attributes that do not have errors attached to them. So a model can be updated without being valid overall, and this will still prevent saving invalid data to the database. By "valid attributes", I mean those attributes that give nil when calling @mode... | I'm not sure how much luck you will have with this without a lot of messing around. No matter how DRY and OO and easy your framework makes things ( which is in this case - alot =) you've still got to remember it's running in front of a bog-standard relational database, which has atomic commits as one of it's defining f... | ActiveRecord#save_only_valid_attributes I'm looking for a variation on the #save method that will only save attributes that do not have errors attached to them. So a model can be updated without being valid overall, and this will still prevent saving invalid data to the database. By "valid attributes", I mean those att... | TITLE:
ActiveRecord#save_only_valid_attributes
QUESTION:
I'm looking for a variation on the #save method that will only save attributes that do not have errors attached to them. So a model can be updated without being valid overall, and this will still prevent saving invalid data to the database. By "valid attributes"... | [
"ruby-on-rails",
"ruby"
] | 1 | 0 | 163 | 2 | 0 | 2008-09-17T04:07:48.187000 | 2008-09-18T00:40:57.613000 |
79,891 | 80,222 | What is the best testing tool for Swing-based applications? | While we try to set up as many unit tests as time allows for our applications, I always find the amount of UI-level tests lacking. There are many options out there, but I'm not sure what would be a good place to start. What is your preferred unit testing tool for testing Swing applications? Why do you like it? | On our side, we use to test SWING GUI with FEST. This is an adapter on the classical swing robot, but it ease dramatically its use. Combined with TestNG, We found it an easy way to simulate "human" actions trough the GUI. | What is the best testing tool for Swing-based applications? While we try to set up as many unit tests as time allows for our applications, I always find the amount of UI-level tests lacking. There are many options out there, but I'm not sure what would be a good place to start. What is your preferred unit testing tool ... | TITLE:
What is the best testing tool for Swing-based applications?
QUESTION:
While we try to set up as many unit tests as time allows for our applications, I always find the amount of UI-level tests lacking. There are many options out there, but I'm not sure what would be a good place to start. What is your preferred ... | [
"java",
"swing",
"testing"
] | 37 | 11 | 23,404 | 9 | 0 | 2008-09-17T04:10:54.810000 | 2008-09-17T05:15:50.283000 |
79,892 | 80,240 | How does vxWorks deal with two tasks at the same priority? | We have two tasks (T1 and T2) in our vxWorks embedded system that have the same priority (110). How does the regular vxWorks scheduler deal with this if both tasks are ready to run? Which task executes first? | The task that will run first is the task that is spawned first as realized by the VxWorks scheduler task. VxWorks uses priority-based scheduling by default. So in your case, since T1 and T2 have the same priority, whichever one gets the CPU first will continue to run indefinitely until it is explicitly blocked (using t... | How does vxWorks deal with two tasks at the same priority? We have two tasks (T1 and T2) in our vxWorks embedded system that have the same priority (110). How does the regular vxWorks scheduler deal with this if both tasks are ready to run? Which task executes first? | TITLE:
How does vxWorks deal with two tasks at the same priority?
QUESTION:
We have two tasks (T1 and T2) in our vxWorks embedded system that have the same priority (110). How does the regular vxWorks scheduler deal with this if both tasks are ready to run? Which task executes first?
ANSWER:
The task that will run fi... | [
"embedded",
"vxworks",
"rtos"
] | 3 | 5 | 11,585 | 3 | 0 | 2008-09-17T04:11:04.573000 | 2008-09-17T05:19:36.983000 |
79,923 | 80,113 | What and where are the stack and heap? | What are the stack and heap? Where are they located physically in a computer's memory? To what extent are they controlled by the OS or language run-time? What is their scope? What determines their sizes? What makes one faster? | The stack is the memory set aside as scratch space for a thread of execution. When a function is called, a block is reserved on the top of the stack for local variables and some bookkeeping data. When that function returns, the block becomes unused and can be used the next time a function is called. The stack is always... | What and where are the stack and heap? What are the stack and heap? Where are they located physically in a computer's memory? To what extent are they controlled by the OS or language run-time? What is their scope? What determines their sizes? What makes one faster? | TITLE:
What and where are the stack and heap?
QUESTION:
What are the stack and heap? Where are they located physically in a computer's memory? To what extent are they controlled by the OS or language run-time? What is their scope? What determines their sizes? What makes one faster?
ANSWER:
The stack is the memory set... | [
"data-structures",
"memory-management",
"heap-memory",
"dynamic-memory-allocation",
"stack-memory"
] | 9,412 | 6,811 | 1,927,347 | 31 | 0 | 2008-09-17T04:18:06.337000 | 2008-09-17T04:52:19.437000 |
79,949 | 80,026 | Best way of store only date on datetime field? | Scenario: A stored procedure receives from code a DateTime with, let's say DateTime.Now value, as a datetime parameter. The stored procedure needs to store only the date part of the datetime on the row, but preserving all date related arithmetics for, to say, do searches over time intervals and doing reports based on d... | Business Logic should be handled outside of the proc. The procs jobs should be to save the data passed to it. If the requirment is to only store Date and not time, then the BL/DL should pass in DateTime.Now**.Date** (or the equiv...basically the Date part of your DateTime object). If you can't control the code for some... | Best way of store only date on datetime field? Scenario: A stored procedure receives from code a DateTime with, let's say DateTime.Now value, as a datetime parameter. The stored procedure needs to store only the date part of the datetime on the row, but preserving all date related arithmetics for, to say, do searches o... | TITLE:
Best way of store only date on datetime field?
QUESTION:
Scenario: A stored procedure receives from code a DateTime with, let's say DateTime.Now value, as a datetime parameter. The stored procedure needs to store only the date part of the datetime on the row, but preserving all date related arithmetics for, to ... | [
"database",
"t-sql"
] | 3 | 4 | 3,715 | 5 | 0 | 2008-09-17T04:22:01.397000 | 2008-09-17T04:33:24.787000 |
79,954 | 79,965 | Visual Studio opens the default browser instead of Internet Explorer | When I debug in Visual Studio, Firefox opens and that is annoying because of the hookups that Internet Explorer and Visual Studio have, such as when you close the Internet Explorer browser that starting debug opened, Visual Studio stops debugging. How can I get Visual Studio to open Internet Explorer instead without ha... | Scott Guthrie has made a post on how to change Visual Studio's default browser: 1) Right click on a.aspx page in your solution explorer 2) Select the "browse with" context menu option 3) In the dialog you can select or add a browser. If you want Firefox in the list, click "add" and point to the firefox.exe filename 4) ... | Visual Studio opens the default browser instead of Internet Explorer When I debug in Visual Studio, Firefox opens and that is annoying because of the hookups that Internet Explorer and Visual Studio have, such as when you close the Internet Explorer browser that starting debug opened, Visual Studio stops debugging. How... | TITLE:
Visual Studio opens the default browser instead of Internet Explorer
QUESTION:
When I debug in Visual Studio, Firefox opens and that is annoying because of the hookups that Internet Explorer and Visual Studio have, such as when you close the Internet Explorer browser that starting debug opened, Visual Studio st... | [
"visual-studio",
"internet-explorer"
] | 208 | 281 | 220,094 | 14 | 0 | 2008-09-17T04:23:35.510000 | 2008-09-17T04:24:58.083000 |
79,960 | 79,986 | How to Truncate a string in PHP to the word closest to a certain number of characters? | I have a code snippet written in PHP that pulls a block of text from a database and sends it out to a widget on a webpage. The original block of text can be a lengthy article or a short sentence or two; but for this widget I can't display more than, say, 200 characters. I could use substr() to chop off the text at 200 ... | By using the wordwrap function. It splits the texts in multiple lines such that the maximum width is the one you specified, breaking at word boundaries. After splitting, you simply take the first line: substr($string, 0, strpos(wordwrap($string, $your_desired_width), "\n")); One thing this one-liner doesn't handle is t... | How to Truncate a string in PHP to the word closest to a certain number of characters? I have a code snippet written in PHP that pulls a block of text from a database and sends it out to a widget on a webpage. The original block of text can be a lengthy article or a short sentence or two; but for this widget I can't di... | TITLE:
How to Truncate a string in PHP to the word closest to a certain number of characters?
QUESTION:
I have a code snippet written in PHP that pulls a block of text from a database and sends it out to a widget on a webpage. The original block of text can be a lengthy article or a short sentence or two; but for this... | [
"php",
"string",
"function"
] | 205 | 245 | 206,573 | 31 | 0 | 2008-09-17T04:24:04.277000 | 2008-09-17T04:27:34.970000 |
79,968 | 79,985 | Split a string by spaces -- preserving quoted substrings -- in Python | I have a string which is like this: this is "a test" I'm trying to write something in Python to split it up by space while ignoring spaces within quotes. The result I'm looking for is: ['this', 'is', 'a test'] PS. I know you are going to ask "what happens if there are quotes within the quotes, well, in my application, ... | You want split, from the built-in shlex module. >>> import shlex >>> shlex.split('this is "a test"') ['this', 'is', 'a test'] This should do exactly what you want. If you want to preserve the quotation marks, then you can pass the posix=False kwarg. >>> shlex.split('this is "a test"', posix=False) ['this', 'is', '"a te... | Split a string by spaces -- preserving quoted substrings -- in Python I have a string which is like this: this is "a test" I'm trying to write something in Python to split it up by space while ignoring spaces within quotes. The result I'm looking for is: ['this', 'is', 'a test'] PS. I know you are going to ask "what ha... | TITLE:
Split a string by spaces -- preserving quoted substrings -- in Python
QUESTION:
I have a string which is like this: this is "a test" I'm trying to write something in Python to split it up by space while ignoring spaces within quotes. The result I'm looking for is: ['this', 'is', 'a test'] PS. I know you are goi... | [
"python",
"regex"
] | 350 | 530 | 130,599 | 16 | 0 | 2008-09-17T04:25:15.710000 | 2008-09-17T04:27:32.240000 |
80,021 | 80,046 | Is it me, or is Eclipse horribly unpredictable? | I recently started using Eclipse at work for my Java servlet projects. I've been using jEdit for years, which is a uber-powerful text editor. It has syntax highlighting, but it doesn't have any language-specific features like code completion and intelligent refactoring. I'm finding that's hindering my productivity. I d... | Try NetBeans A free, open-source Integrated Development Environment for software developers. You get all the tools you need to create professional desktop, enterprise, web, and mobile applications with the Java language, C/C++, and Ruby. | Is it me, or is Eclipse horribly unpredictable? I recently started using Eclipse at work for my Java servlet projects. I've been using jEdit for years, which is a uber-powerful text editor. It has syntax highlighting, but it doesn't have any language-specific features like code completion and intelligent refactoring. I... | TITLE:
Is it me, or is Eclipse horribly unpredictable?
QUESTION:
I recently started using Eclipse at work for my Java servlet projects. I've been using jEdit for years, which is a uber-powerful text editor. It has syntax highlighting, but it doesn't have any language-specific features like code completion and intellig... | [
"java",
"eclipse",
"ide",
"editor"
] | 11 | 5 | 3,501 | 11 | 0 | 2008-09-17T04:32:57.250000 | 2008-09-17T04:36:24.450000 |
80,031 | 80,060 | What can cause Web.sitemap to not be found? | I have a asp:menu object which I set up to use a SiteMapDataSource but everytime I try to run the site, I get a yellow screen from firefox saying it cannot find the web.sitemap. Here's the code for the sitemapdatasource and the menu. The Web.sitemap file is sitting in the root directory of the website. And this is the ... | I had a similar problem where I was specifying the path to the SiteMap from within my DataSource control. I tried removing it and it worked. Try removing the path from the SiteMapDataSource and ensure that web.sitemap is in the root directory and see if that fixes it. | What can cause Web.sitemap to not be found? I have a asp:menu object which I set up to use a SiteMapDataSource but everytime I try to run the site, I get a yellow screen from firefox saying it cannot find the web.sitemap. Here's the code for the sitemapdatasource and the menu. The Web.sitemap file is sitting in the roo... | TITLE:
What can cause Web.sitemap to not be found?
QUESTION:
I have a asp:menu object which I set up to use a SiteMapDataSource but everytime I try to run the site, I get a yellow screen from firefox saying it cannot find the web.sitemap. Here's the code for the sitemapdatasource and the menu. The Web.sitemap file is ... | [
"asp.net"
] | 3 | 2 | 1,495 | 2 | 0 | 2008-09-17T04:34:25.237000 | 2008-09-17T04:40:00.107000 |
80,042 | 80,071 | Byte buffer transfer via UDP | Can you provide an example of a byte buffer transferred between two java classes via UDP datagram? | Hows' this? import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetSocketAddress;
public class Server {
public static void main(String[] args) throws IOException { DatagramSocket socket = new DatagramSocket(new InetSocketAddress(5000)); byte[] message = new byt... | Byte buffer transfer via UDP Can you provide an example of a byte buffer transferred between two java classes via UDP datagram? | TITLE:
Byte buffer transfer via UDP
QUESTION:
Can you provide an example of a byte buffer transferred between two java classes via UDP datagram?
ANSWER:
Hows' this? import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetSocketAddress;
public class Server {
pu... | [
"java",
"udp",
"datagram"
] | 3 | 4 | 6,855 | 2 | 0 | 2008-09-17T04:35:59.990000 | 2008-09-17T04:44:13.417000 |
80,062 | 80,104 | How to add monsters to a Pokemon game? | My friends and I are starting a game like Pokemon and we wanted to know how will we add monsters to the game? We're using VisualBasic because my friend's brother said it would be easier. So far we can put pictures of the monsters on the screen and you can click to attack and stuff. Right now when we want to add a monst... | I think the best solution would be to make a generic window which can take a few parameters which describe the monster. Im not entirely up-to-date with VB, but in an OO language we would have a Monster base class, and inheritance to create a Pikachu. The base class would define basic things a monster has (like a pictur... | How to add monsters to a Pokemon game? My friends and I are starting a game like Pokemon and we wanted to know how will we add monsters to the game? We're using VisualBasic because my friend's brother said it would be easier. So far we can put pictures of the monsters on the screen and you can click to attack and stuff... | TITLE:
How to add monsters to a Pokemon game?
QUESTION:
My friends and I are starting a game like Pokemon and we wanted to know how will we add monsters to the game? We're using VisualBasic because my friend's brother said it would be easier. So far we can put pictures of the monsters on the screen and you can click t... | [
"vba"
] | 6 | 2 | 1,666 | 8 | 0 | 2008-09-17T04:40:49.057000 | 2008-09-17T04:50:48.223000 |
80,084 | 80,127 | In Javascript, why is the "this" operator inconsistent? | In JavaScript, the "this" operator can refer to different things under different scenarios. Typically in a method within a JavaScript "object", it refers to the current object. But when used as a callback, it becomes a reference to the calling object. I have found that this causes problems in code, because if you use a... | In JavaScript, this always refers to the object invoking the function that is being executed. So if the function is being used as an event handler, this will refer to the node that fired the event. But if you have an object and call a function on it like: myObject.myFunction(); Then this inside myFunction will refer to... | In Javascript, why is the "this" operator inconsistent? In JavaScript, the "this" operator can refer to different things under different scenarios. Typically in a method within a JavaScript "object", it refers to the current object. But when used as a callback, it becomes a reference to the calling object. I have found... | TITLE:
In Javascript, why is the "this" operator inconsistent?
QUESTION:
In JavaScript, the "this" operator can refer to different things under different scenarios. Typically in a method within a JavaScript "object", it refers to the current object. But when used as a callback, it becomes a reference to the calling ob... | [
"javascript"
] | 30 | 12 | 12,508 | 9 | 0 | 2008-09-17T04:46:25.487000 | 2008-09-17T04:54:52.643000 |
80,091 | 80,111 | diff a ruby string or array | How do I do a diff of two strings or arrays in Ruby? | diff.rb is what you want, which is available at http://users.cybercity.dk/~dsl8950/ruby/diff.html via internet archive: http://web.archive.org/web/20140421214841/http://users.cybercity.dk:80/~dsl8950/ruby/diff.html | diff a ruby string or array How do I do a diff of two strings or arrays in Ruby? | TITLE:
diff a ruby string or array
QUESTION:
How do I do a diff of two strings or arrays in Ruby?
ANSWER:
diff.rb is what you want, which is available at http://users.cybercity.dk/~dsl8950/ruby/diff.html via internet archive: http://web.archive.org/web/20140421214841/http://users.cybercity.dk:80/~dsl8950/ruby/diff.ht... | [
"ruby",
"diff"
] | 59 | 21 | 49,531 | 12 | 0 | 2008-09-17T04:47:35.453000 | 2008-09-17T04:52:15.083000 |
80,101 | 99,838 | iCal Format - storing the event creator | I am currently programming a scheduling application which loosely based on iCalendar standard. Does anyone knows in which property can I store the event creator's information? By browsing through the iCalendar RFC 2445, I find this property: Organizer. can I store the event creator's information in the property even if... | Some notes from the rfc2445 Conformance: This property MUST be specified in an iCalendar object that specifies a group scheduled calendar entity. This property MUST be specified in an iCalendar object that specifies the publication of a calendar user's busy time. This property MUST NOT be specified in an iCalendar obje... | iCal Format - storing the event creator I am currently programming a scheduling application which loosely based on iCalendar standard. Does anyone knows in which property can I store the event creator's information? By browsing through the iCalendar RFC 2445, I find this property: Organizer. can I store the event creat... | TITLE:
iCal Format - storing the event creator
QUESTION:
I am currently programming a scheduling application which loosely based on iCalendar standard. Does anyone knows in which property can I store the event creator's information? By browsing through the iCalendar RFC 2445, I find this property: Organizer. can I sto... | [
"icalendar",
"rfc2445",
"rfc5545"
] | 4 | 7 | 12,875 | 3 | 0 | 2008-09-17T04:50:31.843000 | 2008-09-19T05:16:20.970000 |
80,103 | 80,976 | Detect "Clone Mode" display setup | How can I determine if my displays are in "Clone Mode" without using either COPP (Computer Output Protection Protocol) or OPM (Output Protection Protocol) on Windows? Vista solution: hMonitor = MonitorFromWindow (HWND_DESKTOP, MONITOR_DEFAULTTOPRIMARY); bSuccess = GetNumberOfPhysicalMonitorsFromHMONITOR (hMonitor, &dwM... | I assume you've already tried EnumDisplayMonitors() and it didn't work. So if that returns a single HMONITOR for each set of cloned displays, you could compare this set of results to the result of EnumDisplayDevices(). Devices returned by EnumDisplayDevices() that are attached to the desktop but aren't returned by Enum... | Detect "Clone Mode" display setup How can I determine if my displays are in "Clone Mode" without using either COPP (Computer Output Protection Protocol) or OPM (Output Protection Protocol) on Windows? Vista solution: hMonitor = MonitorFromWindow (HWND_DESKTOP, MONITOR_DEFAULTTOPRIMARY); bSuccess = GetNumberOfPhysicalMo... | TITLE:
Detect "Clone Mode" display setup
QUESTION:
How can I determine if my displays are in "Clone Mode" without using either COPP (Computer Output Protection Protocol) or OPM (Output Protection Protocol) on Windows? Vista solution: hMonitor = MonitorFromWindow (HWND_DESKTOP, MONITOR_DEFAULTTOPRIMARY); bSuccess = Get... | [
"windows",
"multiple-monitors"
] | 1 | 3 | 1,561 | 1 | 0 | 2008-09-17T04:50:36.930000 | 2008-09-17T08:02:10.837000 |
80,105 | 80,597 | What's the best way to distribute Java applications? | Java is one of my programming languages of choice. I always run into the problem though of distributing my application to end-users. Giving a user a JAR is not always as user friendly as I would like and using Java WebStart requires that I maintain a web server. What's the best way to distribute a Java application? Wha... | There are a variety of solutions, depending on your distribution requirements. Just use a jar. This assumes that the user has the the correct java version installed, otherwise the user will get "class-file format version" exceptions. This is fine for internal distribution inside a company. Use launch4j and an installer... | What's the best way to distribute Java applications? Java is one of my programming languages of choice. I always run into the problem though of distributing my application to end-users. Giving a user a JAR is not always as user friendly as I would like and using Java WebStart requires that I maintain a web server. What... | TITLE:
What's the best way to distribute Java applications?
QUESTION:
Java is one of my programming languages of choice. I always run into the problem though of distributing my application to end-users. Giving a user a JAR is not always as user friendly as I would like and using Java WebStart requires that I maintain ... | [
"java",
"installation",
"jar",
"software-distribution"
] | 119 | 94 | 70,076 | 15 | 0 | 2008-09-17T04:50:50.313000 | 2008-09-17T06:45:54.263000 |
80,112 | 88,893 | What's the difference between XML-RPC and SOAP? | I've never really understand why a web service implementer would choose one over the other. Is XML-RPC generally found in older systems? Any help in understanding this would be greatly appreciated. | Differences? SOAP is more powerful, and is much preferred by software tool vendors (MSFT.NET, Java Enterprise edition, that sort of things). SOAP was for a long time (2001-2007ish) seen as the protocol of choice for SOA. xml-rpc not so much. REST is the new SOA darling, although it's not a protocol. SOAP is more verbos... | What's the difference between XML-RPC and SOAP? I've never really understand why a web service implementer would choose one over the other. Is XML-RPC generally found in older systems? Any help in understanding this would be greatly appreciated. | TITLE:
What's the difference between XML-RPC and SOAP?
QUESTION:
I've never really understand why a web service implementer would choose one over the other. Is XML-RPC generally found in older systems? Any help in understanding this would be greatly appreciated.
ANSWER:
Differences? SOAP is more powerful, and is much... | [
"xml",
"web-services",
"soap",
"xml-rpc"
] | 85 | 92 | 75,333 | 3 | 0 | 2008-09-17T04:52:16.753000 | 2008-09-18T00:23:58.183000 |
80,120 | 80,223 | Cruise Control .Net vs Team Foundation Build | Our team is setting up nightly and continuous integration builds. We own Team Foundation Server and could use Team Foundation Build. I'm more familiar with CC.Net and lean that way but management sees all the money spent on TFS and wants to use it. Some things I like better about CC.Net is the flexibility of notificati... | I've used both. I guess it depends on what your organization values. Since you are familiar with CC Net, I won't speak much to that. You already know what makes it cool. Here's what I like about Team Foundation Build: Build Agents. It's very simple to turn any box into a build machine and run a build on it. MSFT got th... | Cruise Control .Net vs Team Foundation Build Our team is setting up nightly and continuous integration builds. We own Team Foundation Server and could use Team Foundation Build. I'm more familiar with CC.Net and lean that way but management sees all the money spent on TFS and wants to use it. Some things I like better ... | TITLE:
Cruise Control .Net vs Team Foundation Build
QUESTION:
Our team is setting up nightly and continuous integration builds. We own Team Foundation Server and could use Team Foundation Build. I'm more familiar with CC.Net and lean that way but management sees all the money spent on TFS and wants to use it. Some thi... | [
"tfs",
"continuous-integration",
"build-automation",
"cruisecontrol.net",
"build"
] | 23 | 30 | 12,176 | 5 | 0 | 2008-09-17T04:53:50.883000 | 2008-09-17T05:16:03.920000 |
80,141 | 80,179 | storing revision changes of a message | What algorithms and processes are involved in storing revision changes like stackoverflow and wikipedia do? Is only one copy of the message kept? And if so is it only the latest copy? Then only changes to go back to the previous version(s) are stored from there? (This would make for a faster display of the main message... | The longest common substring algorithm can be used to detect differences between versions, but it is limited. For example, it does not detect the moving around of text as such, but it would see this as unrelated removals and insertions. I suppose that websites normally store the latest copy in full, and apply reverse d... | storing revision changes of a message What algorithms and processes are involved in storing revision changes like stackoverflow and wikipedia do? Is only one copy of the message kept? And if so is it only the latest copy? Then only changes to go back to the previous version(s) are stored from there? (This would make fo... | TITLE:
storing revision changes of a message
QUESTION:
What algorithms and processes are involved in storing revision changes like stackoverflow and wikipedia do? Is only one copy of the message kept? And if so is it only the latest copy? Then only changes to go back to the previous version(s) are stored from there? (... | [
"algorithm",
"version-control"
] | 2 | 1 | 408 | 5 | 0 | 2008-09-17T04:57:33.433000 | 2008-09-17T05:05:01.933000 |
80,152 | 80,172 | Comparing MySQL Cross and Inner Joins | What are the potential pros and cons of each of these queries given different databases, configurations, etc? Is there ever a time when one would be more efficient than the other? Vice versa? Is there an even better way to do it? Can you explain why? Query 1: SELECT * FROM table_a, table_b, table_c WHERE table_a.id = t... | Same query, different revision of SQL spec. The query optimizer should come up with the same query plan for those. | Comparing MySQL Cross and Inner Joins What are the potential pros and cons of each of these queries given different databases, configurations, etc? Is there ever a time when one would be more efficient than the other? Vice versa? Is there an even better way to do it? Can you explain why? Query 1: SELECT * FROM table_a,... | TITLE:
Comparing MySQL Cross and Inner Joins
QUESTION:
What are the potential pros and cons of each of these queries given different databases, configurations, etc? Is there ever a time when one would be more efficient than the other? Vice versa? Is there an even better way to do it? Can you explain why? Query 1: SELE... | [
"mysql",
"sql"
] | 1 | 2 | 225 | 4 | 0 | 2008-09-17T04:59:58.480000 | 2008-09-17T05:03:32.687000 |
80,160 | 80,189 | What does COINIT_SPEED_OVER_MEMORY do? | When calling CoInitializeEx, you can specify the following values for dwCoInit: typedef enum tagCOINIT { COINIT_MULTITHREADED = 0x0, COINIT_APARTMENTTHREADED = 0x2, COINIT_DISABLE_OLE1DDE = 0x4, COINIT_SPEED_OVER_MEMORY = 0x8, } COINIT; What does the suggestively titled "speed over memory" value do? Is it ignored these... | No idea if it's still used but it was meant to change the balance used by the COM algorithms. If you had tons of memory and wanted speed at all costs, you would set that flag. In low-memory environments, leaving that flag off would favor reduced memory usage. As it turns out, the marvellous Raymond Chen (of "The Old Ne... | What does COINIT_SPEED_OVER_MEMORY do? When calling CoInitializeEx, you can specify the following values for dwCoInit: typedef enum tagCOINIT { COINIT_MULTITHREADED = 0x0, COINIT_APARTMENTTHREADED = 0x2, COINIT_DISABLE_OLE1DDE = 0x4, COINIT_SPEED_OVER_MEMORY = 0x8, } COINIT; What does the suggestively titled "speed ove... | TITLE:
What does COINIT_SPEED_OVER_MEMORY do?
QUESTION:
When calling CoInitializeEx, you can specify the following values for dwCoInit: typedef enum tagCOINIT { COINIT_MULTITHREADED = 0x0, COINIT_APARTMENTTHREADED = 0x2, COINIT_DISABLE_OLE1DDE = 0x4, COINIT_SPEED_OVER_MEMORY = 0x8, } COINIT; What does the suggestively... | [
"com"
] | 8 | 15 | 2,195 | 1 | 0 | 2008-09-17T05:01:21.613000 | 2008-09-17T05:07:43.690000 |
80,175 | 81,806 | How do I hide a column only on the list page in ASP.NET Dynamic Data? | This is somewhat similar to this question. However, rather than wanting to hide a column all together, I am just looking to hide the column on the List.aspx page. My specific example is that fields that are long (or at least nvarchar(MAX)) automatically hide from the List.aspx page as is but are still visible on the Ed... | You can create a custom page for the particular table you want to change. There's an example here. Within your custom page, you can then set AutoGenerateColumns="false" within the asp:GridView control, and then define exactly the columns you want, like this:... | How do I hide a column only on the list page in ASP.NET Dynamic Data? This is somewhat similar to this question. However, rather than wanting to hide a column all together, I am just looking to hide the column on the List.aspx page. My specific example is that fields that are long (or at least nvarchar(MAX)) automatica... | TITLE:
How do I hide a column only on the list page in ASP.NET Dynamic Data?
QUESTION:
This is somewhat similar to this question. However, rather than wanting to hide a column all together, I am just looking to hide the column on the List.aspx page. My specific example is that fields that are long (or at least nvarcha... | [
"asp.net",
"dynamic-data"
] | 2 | 5 | 3,706 | 3 | 0 | 2008-09-17T05:03:49.360000 | 2008-09-17T10:26:20.570000 |
80,202 | 80,408 | How to insert a text-like element into document using javascript and CSS? | I want to use javascript to insert some elements into the current page. Such as this is the original document: Hello world! Now I want to insert an element in to the text so that it will become: Hello new world! I need the span tag because I want to handle it later.Show or hide. But now problem comes out, if the origin... | Simply override any span styles. Set layout properties back to browser defaults and set formating to inherit from the parent: span#yourSpan { /* defaults */ position: static; display: inline; margin: 0; padding: 0; background: transparent; border: none;
/* inherit from parent node */ font: inherit; color: inherit; tex... | How to insert a text-like element into document using javascript and CSS? I want to use javascript to insert some elements into the current page. Such as this is the original document: Hello world! Now I want to insert an element in to the text so that it will become: Hello new world! I need the span tag because I want... | TITLE:
How to insert a text-like element into document using javascript and CSS?
QUESTION:
I want to use javascript to insert some elements into the current page. Such as this is the original document: Hello world! Now I want to insert an element in to the text so that it will become: Hello new world! I need the span ... | [
"javascript",
"css"
] | 2 | 1 | 1,401 | 5 | 0 | 2008-09-17T05:11:20.077000 | 2008-09-17T05:58:40.883000 |
80,215 | 80,596 | Btrieve without Pervasive? | Is there any library available to query Btrieve databases without buying something from Pervasive? I'm looking to code in C# or Python. | As far as I know that is not possible. It is not an open source database, so writing drivers for it is really hard. | Btrieve without Pervasive? Is there any library available to query Btrieve databases without buying something from Pervasive? I'm looking to code in C# or Python. | TITLE:
Btrieve without Pervasive?
QUESTION:
Is there any library available to query Btrieve databases without buying something from Pervasive? I'm looking to code in C# or Python.
ANSWER:
As far as I know that is not possible. It is not an open source database, so writing drivers for it is really hard. | [
"c#",
"python",
"btrieve"
] | 1 | 2 | 3,077 | 3 | 0 | 2008-09-17T05:15:02.127000 | 2008-09-17T06:45:50.380000 |
80,216 | 80,238 | Do you use application frameworks? | Application frameworks such as DotNetNuke, Eclipse, Websphere and so forth are available today which offer customizable frameworks that can be used as dashboard applications. Do you use these or do you and your peers keep writing amazing, modular, maintainable dashboard frameworks which you support yourselves? Are ther... | The one I use is Oracle Application Development Framework. It's a complete, fully supported framework, and Oracle use it themselves to build their own enterprise applications. It comes with a lot of JSF components that are very easy to bind to the underlying data objects. I'd recommend this for all Java applications th... | Do you use application frameworks? Application frameworks such as DotNetNuke, Eclipse, Websphere and so forth are available today which offer customizable frameworks that can be used as dashboard applications. Do you use these or do you and your peers keep writing amazing, modular, maintainable dashboard frameworks whi... | TITLE:
Do you use application frameworks?
QUESTION:
Application frameworks such as DotNetNuke, Eclipse, Websphere and so forth are available today which offer customizable frameworks that can be used as dashboard applications. Do you use these or do you and your peers keep writing amazing, modular, maintainable dashbo... | [
"frameworks"
] | 0 | 1 | 393 | 5 | 0 | 2008-09-17T05:15:08.990000 | 2008-09-17T05:18:34.583000 |
80,234 | 80,245 | Open .NET form in designer mode - get "The path is not of a legal form" | I attempted to open a C#/VB form in designer mode, and instead of the form, I got an ugly error message saying "The path is not of a legal form". This form used to work! What happened? Thanks to all who have answered. This question is a problem I hit a while back, and I struggled with it for a long time, until I found ... | I don't know what this error message means, but it seems to be associated with third-party controls on the form. Anyway, the solution is almost as absurd as the problem: Close the designer/error message. Open the form code. Right-click on the form code and select "View Designer". Presto! The designer opens! | Open .NET form in designer mode - get "The path is not of a legal form" I attempted to open a C#/VB form in designer mode, and instead of the form, I got an ugly error message saying "The path is not of a legal form". This form used to work! What happened? Thanks to all who have answered. This question is a problem I h... | TITLE:
Open .NET form in designer mode - get "The path is not of a legal form"
QUESTION:
I attempted to open a C#/VB form in designer mode, and instead of the form, I got an ugly error message saying "The path is not of a legal form". This form used to work! What happened? Thanks to all who have answered. This questio... | [
"c#",
"vb.net",
"visual-studio",
"winforms"
] | 1 | 4 | 6,120 | 4 | 0 | 2008-09-17T05:17:41.247000 | 2008-09-17T05:20:39.617000 |
80,258 | 80,363 | How to get someone started with ALT.NET | What is the order of topics to explain to a.NET developer or user group to get them started and interested with alt.net tools and practices. ORM IoC TDD DDD DSL CI MVC - MVP Version Control (I think this is the one they get the fastest) Agile Etc, etc... | The essential principles to drive home are: Microsoft tools are a good place to start, but it's possible to write better software faster by using other companion products Change is good, so always think about ways that code can be changed and verified quickly If it isn't tested, it's not production quality Then, after ... | How to get someone started with ALT.NET What is the order of topics to explain to a.NET developer or user group to get them started and interested with alt.net tools and practices. ORM IoC TDD DDD DSL CI MVC - MVP Version Control (I think this is the one they get the fastest) Agile Etc, etc... | TITLE:
How to get someone started with ALT.NET
QUESTION:
What is the order of topics to explain to a.NET developer or user group to get them started and interested with alt.net tools and practices. ORM IoC TDD DDD DSL CI MVC - MVP Version Control (I think this is the one they get the fastest) Agile Etc, etc...
ANSWER... | [
".net",
"alt.net"
] | 5 | 4 | 593 | 8 | 0 | 2008-09-17T05:21:58.833000 | 2008-09-17T05:47:10.490000 |
80,271 | 82,534 | How do I refresh a training database with the data from production database? | I have a particular system on out network where we need to maintain a training installation. The system uses SQL Server 2000 as its database engine and I need to set up a system for refreshing the data in the training database with the data from the production database on a regular basis. I want to use SSIS as we have ... | Apparently this should be fix in SQLServer 2005 SP2 see here. Looks like you need to make sure to patch the client machine too if you are running the SSIS package from within Visual Studio. | How do I refresh a training database with the data from production database? I have a particular system on out network where we need to maintain a training installation. The system uses SQL Server 2000 as its database engine and I need to set up a system for refreshing the data in the training database with the data fr... | TITLE:
How do I refresh a training database with the data from production database?
QUESTION:
I have a particular system on out network where we need to maintain a training installation. The system uses SQL Server 2000 as its database engine and I need to set up a system for refreshing the data in the training databas... | [
"sql-server",
"ssis"
] | 2 | 2 | 2,403 | 1 | 0 | 2008-09-17T05:24:00.920000 | 2008-09-17T12:24:12.830000 |
80,278 | 100,406 | Using Google Maps in ColdFusion | I am trying to use the Google Maps API in a ColdFusion template that is a border type cflayoutarea container. However, the map simply doesn't show up: Map: " where lat and lng are the co-ordinates in degree.decimal format. I have traced down to the line where GBrowserIsCompatible() somehow never returns TRUE and thus n... | Success! (sort of...) Finally got it working, but not in the way Adam suggested: Map: The whole thing must be contained within the same file or it would not work. My suspicion is that the getElementByID function, as it stands, cannot not reference an element that is outside of its own file. If the div is in another fil... | Using Google Maps in ColdFusion I am trying to use the Google Maps API in a ColdFusion template that is a border type cflayoutarea container. However, the map simply doesn't show up: Map: " where lat and lng are the co-ordinates in degree.decimal format. I have traced down to the line where GBrowserIsCompatible() someh... | TITLE:
Using Google Maps in ColdFusion
QUESTION:
I am trying to use the Google Maps API in a ColdFusion template that is a border type cflayoutarea container. However, the map simply doesn't show up: Map: " where lat and lng are the co-ordinates in degree.decimal format. I have traced down to the line where GBrowserIs... | [
"javascript",
"google-maps",
"coldfusion"
] | 1 | 1 | 2,914 | 4 | 0 | 2008-09-17T05:25:47.937000 | 2008-09-19T08:08:31.973000 |
80,287 | 80,303 | How can I build a 'dependency tree diagram' from my .NET solution | I can get easily see what projects and dlls a single project references from within a Visual Studio.NET project. Is there any application or use of reflection that can build me a full dependency tree that I can use to plot a graphical chart of dependencies? | In addition to NDepend, you can also try this addin for Reflector for showing assembly dependency graph. | How can I build a 'dependency tree diagram' from my .NET solution I can get easily see what projects and dlls a single project references from within a Visual Studio.NET project. Is there any application or use of reflection that can build me a full dependency tree that I can use to plot a graphical chart of dependenci... | TITLE:
How can I build a 'dependency tree diagram' from my .NET solution
QUESTION:
I can get easily see what projects and dlls a single project references from within a Visual Studio.NET project. Is there any application or use of reflection that can build me a full dependency tree that I can use to plot a graphical c... | [
".net",
"reflection",
"dependencies"
] | 11 | 3 | 12,981 | 5 | 0 | 2008-09-17T05:26:52.973000 | 2008-09-17T05:30:19.097000 |
80,291 | 83,079 | Granting access to hundreds of SPs? | In Sql Server 2000/2005, I have a few NT user groups that need to be granted access to hundreds of stored procedures. Is there a nice easy way to do that? | Here's a script that I use for granting permissions to lots of procedures: DECLARE @DB sysname; set @DB = DB_NAME() DECLARE @U sysname; set @U = QUOTENAME('UserID')
DECLARE @ID integer, @LAST_ID integer, @NAME varchar(1000), @SQL varchar(4000)
SET @LAST_ID = 0
WHILE @LAST_ID IS NOT NULL BEGIN SELECT @ID = MIN(id) FR... | Granting access to hundreds of SPs? In Sql Server 2000/2005, I have a few NT user groups that need to be granted access to hundreds of stored procedures. Is there a nice easy way to do that? | TITLE:
Granting access to hundreds of SPs?
QUESTION:
In Sql Server 2000/2005, I have a few NT user groups that need to be granted access to hundreds of stored procedures. Is there a nice easy way to do that?
ANSWER:
Here's a script that I use for granting permissions to lots of procedures: DECLARE @DB sysname; set @D... | [
"sql-server",
"security",
"stored-procedures"
] | 2 | 1 | 236 | 2 | 0 | 2008-09-17T05:27:06.887000 | 2008-09-17T13:19:37.533000 |
80,292 | 80,400 | mysqli_stmt::num_rows() returns the wrong value | I was writing a database handler class in PHP using the mysqli class and prepared statements. I was attempting to print out the result. It didn't work right off the bat so I decided to do some debugging. I tried to use the num_rows() method from the mysqli_statement class, but it kept returning 0. I decided to write a ... | I wonder if num_rows() is reporting relative to the current resultset. Try capturing num_rows() prior to fetching the data. e.g. if($statement->prepare($query)) { $statement->execute(); $statement->store_result(); echo $statement->num_rows(); $statement->bind_result($name); $statement->fetch(); echo $name; } Does that ... | mysqli_stmt::num_rows() returns the wrong value I was writing a database handler class in PHP using the mysqli class and prepared statements. I was attempting to print out the result. It didn't work right off the bat so I decided to do some debugging. I tried to use the num_rows() method from the mysqli_statement class... | TITLE:
mysqli_stmt::num_rows() returns the wrong value
QUESTION:
I was writing a database handler class in PHP using the mysqli class and prepared statements. I was attempting to print out the result. It didn't work right off the bat so I decided to do some debugging. I tried to use the num_rows() method from the mysq... | [
"php",
"mysql",
"mysqli"
] | 1 | 6 | 2,329 | 4 | 0 | 2008-09-17T05:27:09.460000 | 2008-09-17T05:56:09.127000 |
80,307 | 84,489 | Windows wallpaper: not just BMPs? | I've read in a couple of places that the desktop wallpaper can be set to an HTML document. Has anyone had any success changing it programmatically? The following snippet of VB6 helps me set things up for BMPs but when I try to use it for HTML, I get a nice blue background and nothing else. Dim reg As New StdRegistry
P... | I'm not sure if there's an official API for this, but if you have your heart set on it you could use Sysinternal's Process Monitor and see what registry keys get touched when you set an HTML desktop background via the UI. Then you'd just need to repeat those edits in your code. However, an API call would be far prefera... | Windows wallpaper: not just BMPs? I've read in a couple of places that the desktop wallpaper can be set to an HTML document. Has anyone had any success changing it programmatically? The following snippet of VB6 helps me set things up for BMPs but when I try to use it for HTML, I get a nice blue background and nothing e... | TITLE:
Windows wallpaper: not just BMPs?
QUESTION:
I've read in a couple of places that the desktop wallpaper can be set to an HTML document. Has anyone had any success changing it programmatically? The following snippet of VB6 helps me set things up for BMPs but when I try to use it for HTML, I get a nice blue backgr... | [
"vb6",
"registry",
"desktop-wallpaper"
] | 3 | 1 | 871 | 5 | 0 | 2008-09-17T05:31:17.690000 | 2008-09-17T15:28:28.423000 |
80,313 | 80,346 | How do I preview a url using ajax? | How do I preview a url using ajax? I have seen this done with search engine plug ins and would like to learn how to do this. Specifically, I would like to be able to mouse over a link and see the preview of the webpage using ajax. | There's the easy solution, the hard solution, and the use-a-library solution. use-a-library: I prefer always doing the use-a-library solution unless you have a darn good reason otherwise. One possible site which wraps the "hard solution" as a service for you: http://thumbnails.iwebtool.com/demo/ easy: The easy solution... | How do I preview a url using ajax? How do I preview a url using ajax? I have seen this done with search engine plug ins and would like to learn how to do this. Specifically, I would like to be able to mouse over a link and see the preview of the webpage using ajax. | TITLE:
How do I preview a url using ajax?
QUESTION:
How do I preview a url using ajax? I have seen this done with search engine plug ins and would like to learn how to do this. Specifically, I would like to be able to mouse over a link and see the preview of the webpage using ajax.
ANSWER:
There's the easy solution, ... | [
"asp.net",
"ajax"
] | 0 | 2 | 4,009 | 2 | 0 | 2008-09-17T05:33:47.603000 | 2008-09-17T05:44:21.497000 |
80,320 | 80,373 | Poppler programming | Poppler is a classic example of something without documentation that you would prefer be documented. This question is language agnostic, just asking about the general idea.. In short, how do you make a PDF viewer control with poppler? From what I can tell, you'd need to use poppler to render it to some surface, which s... | You have to code it all yourself -- Poppler only handles the PDF part, you have to write the GUI. Look at the code to Evince for a good example. | Poppler programming Poppler is a classic example of something without documentation that you would prefer be documented. This question is language agnostic, just asking about the general idea.. In short, how do you make a PDF viewer control with poppler? From what I can tell, you'd need to use poppler to render it to s... | TITLE:
Poppler programming
QUESTION:
Poppler is a classic example of something without documentation that you would prefer be documented. This question is language agnostic, just asking about the general idea.. In short, how do you make a PDF viewer control with poppler? From what I can tell, you'd need to use poppler... | [
"language-agnostic",
"pdf",
"cross-platform",
"poppler"
] | 5 | 1 | 1,675 | 3 | 0 | 2008-09-17T05:35:46.773000 | 2008-09-17T05:49:13.323000 |
80,323 | 97,668 | SQL Server 2008 Reporting Services Report Definition Customization Extensions | I've been looking into report definition customization extensions (RDCE) in SQL2K8 recently and I've been at a loss to find much documentation or even chatter on the internet about it. MSDN has a brief overview: http://msdn.microsoft.com/en-us/library/cc281022.aspx And the sample report from this book http://www.amazon... | Normally MS publish examples on CodePlex ( http://www.codeplex.com/MSFTRSProdSamples ). But I didn't see any example for RDCE. Sorry, but MS had never good documentation for reporting extensions. | SQL Server 2008 Reporting Services Report Definition Customization Extensions I've been looking into report definition customization extensions (RDCE) in SQL2K8 recently and I've been at a loss to find much documentation or even chatter on the internet about it. MSDN has a brief overview: http://msdn.microsoft.com/en-u... | TITLE:
SQL Server 2008 Reporting Services Report Definition Customization Extensions
QUESTION:
I've been looking into report definition customization extensions (RDCE) in SQL2K8 recently and I've been at a loss to find much documentation or even chatter on the internet about it. MSDN has a brief overview: http://msdn.... | [
"sql-server",
"sql-server-2008",
"documentation",
"reporting-services"
] | 0 | 0 | 2,299 | 2 | 0 | 2008-09-17T05:36:17.333000 | 2008-09-18T22:31:41.550000 |
80,341 | 80,402 | Best OS App for Outbound SMTP Packet Capture? | Okay, so this probably sounds terribly nefarious, but I need such capabilities for my senior project. Essentially I'm tasked with writing something that will cut down outbound spam on a zombified pc through a system of packet interception and evaluation. We have a number of algorithms we'll use on the captured messages... | Sounds like you need to write a Winsock LSP. Once in the stack, a Layered Service Provider can intercept and modify inbound and outbound Internet traffic. It allows processing all the TCP/IP traffic taking place between the Internet and the applications that are accessing the Internet. | Best OS App for Outbound SMTP Packet Capture? Okay, so this probably sounds terribly nefarious, but I need such capabilities for my senior project. Essentially I'm tasked with writing something that will cut down outbound spam on a zombified pc through a system of packet interception and evaluation. We have a number of... | TITLE:
Best OS App for Outbound SMTP Packet Capture?
QUESTION:
Okay, so this probably sounds terribly nefarious, but I need such capabilities for my senior project. Essentially I'm tasked with writing something that will cut down outbound spam on a zombified pc through a system of packet interception and evaluation. W... | [
"c++",
"windows",
"smtp",
"packet-capture",
"spam-prevention"
] | 2 | 2 | 1,192 | 8 | 0 | 2008-09-17T05:42:59.643000 | 2008-09-17T05:56:18.597000 |
80,348 | 80,573 | In C++, can you have a function that modifies a tuple of variable length? | In C++0x I would like to write a function like this: template void fun(typename std::tuple my_tuple) { //Put things into the tuple } I first tried to use a for loop on int i and then do: get (my_tuple); And then store some value in the result. However, get only works on constexpr. If I could get the variables out of th... | Since the "i" in get (tup) needs to be a compile-time constant, template instantiation is used to "iterate" (actually recurse) through the values. Boost tuples have the "length" and "element" meta-functions that can be helpful here -- I assume C++0x has these too. | In C++, can you have a function that modifies a tuple of variable length? In C++0x I would like to write a function like this: template void fun(typename std::tuple my_tuple) { //Put things into the tuple } I first tried to use a for loop on int i and then do: get (my_tuple); And then store some value in the result. Ho... | TITLE:
In C++, can you have a function that modifies a tuple of variable length?
QUESTION:
In C++0x I would like to write a function like this: template void fun(typename std::tuple my_tuple) { //Put things into the tuple } I first tried to use a for loop on int i and then do: get (my_tuple); And then store some value... | [
"c++",
"tuples"
] | 3 | 4 | 2,319 | 5 | 0 | 2008-09-17T05:44:54.693000 | 2008-09-17T06:39:14.343000 |
80,351 | 84,901 | PHP debugging on OS X - hopeless? | I have tried: Xdebug and Eclipse. Eclipse launches a web browser, but the browser tries to access a non-existent file in Eclipse's.app bundle. Xdebug and NetBeans. It does a little bit better; a browser opens a page in /tmp which says "Launching. Please wait…" but nothing happens beyond that. Xdebug and debugclient, th... | You may want to look into MacGDBp. It's new, free, and the UI looks great. It utilizes the Xdebug PHP extension as well. You can find instructions in the help section, which includes Xdebug configurations, and there's also a nice overview of the app from the guys at Particletree here: Silence The Echo with MacGDBp. | PHP debugging on OS X - hopeless? I have tried: Xdebug and Eclipse. Eclipse launches a web browser, but the browser tries to access a non-existent file in Eclipse's.app bundle. Xdebug and NetBeans. It does a little bit better; a browser opens a page in /tmp which says "Launching. Please wait…" but nothing happens beyon... | TITLE:
PHP debugging on OS X - hopeless?
QUESTION:
I have tried: Xdebug and Eclipse. Eclipse launches a web browser, but the browser tries to access a non-existent file in Eclipse's.app bundle. Xdebug and NetBeans. It does a little bit better; a browser opens a page in /tmp which says "Launching. Please wait…" but not... | [
"php",
"debugging",
"macos"
] | 27 | 21 | 20,769 | 8 | 0 | 2008-09-17T05:45:22.193000 | 2008-09-17T16:11:48.867000 |
80,370 | 80,378 | Reparenting a Window as a Tab in a GTK Notebook | I'm using Mono with GTK# and am trying to display an existing window as a new tab in a GTK.Notebook. I'm currently re-parenting the widget to the notebook as follows: MyWindow myWindow = new MyWindow(); myWindow.Children[0].Reparent(myNotebook) Should I be doing this, or is there a better way to re-use an existing wind... | Your way is the best way, there's no way to embed windows into tabs without using horrible hacks like GtkPlug (which I'd guess you'd be uninterested in if you're using.NET). Look at the code to gnome-terminal for an example of how to do this. | Reparenting a Window as a Tab in a GTK Notebook I'm using Mono with GTK# and am trying to display an existing window as a new tab in a GTK.Notebook. I'm currently re-parenting the widget to the notebook as follows: MyWindow myWindow = new MyWindow(); myWindow.Children[0].Reparent(myNotebook) Should I be doing this, or ... | TITLE:
Reparenting a Window as a Tab in a GTK Notebook
QUESTION:
I'm using Mono with GTK# and am trying to display an existing window as a new tab in a GTK.Notebook. I'm currently re-parenting the widget to the notebook as follows: MyWindow myWindow = new MyWindow(); myWindow.Children[0].Reparent(myNotebook) Should I ... | [
"gtk",
"gtk#"
] | 3 | 4 | 1,579 | 1 | 0 | 2008-09-17T05:48:54.107000 | 2008-09-17T05:50:30.717000 |
80,388 | 1,735,810 | WPF Data Triggers and Story Boards | I'm trying to trigger a progress animation when ever the ViewModel/Presentation Model is Busy. I have an IsBusy Property, and the ViewModel is set as the DataContext of the UserControl. What is the best way to trigger a "progressAnimation" storyboard when the IsBusy property is true? Blend only lets me add event trigge... | What you want is possible by declaring the animation on the progressWheel itself: The XAML: Searching Search! Code behind: using System.Windows; using System.Windows.Controls;
namespace TriggerSpike { public partial class UserControl1: UserControl { private MyViewModel myModel;
public UserControl1() { myModel=new MyV... | WPF Data Triggers and Story Boards I'm trying to trigger a progress animation when ever the ViewModel/Presentation Model is Busy. I have an IsBusy Property, and the ViewModel is set as the DataContext of the UserControl. What is the best way to trigger a "progressAnimation" storyboard when the IsBusy property is true? ... | TITLE:
WPF Data Triggers and Story Boards
QUESTION:
I'm trying to trigger a progress animation when ever the ViewModel/Presentation Model is Busy. I have an IsBusy Property, and the ViewModel is set as the DataContext of the UserControl. What is the best way to trigger a "progressAnimation" storyboard when the IsBusy ... | [
"wpf",
"animation",
"expression-blend"
] | 29 | 48 | 55,011 | 5 | 0 | 2008-09-17T05:53:11.177000 | 2009-11-14T22:24:52.220000 |
80,415 | 80,948 | Perl Regex Match and Removal | I have a string which starts with //#... goes upto the newline characater. I have figured out the regex for the which is this..#([^\n]*). My question is how do you remove this line from a file if the following condition matches | Your regex is badly chosen on several points: Instead of matching two slashes specifically, you use.. to match two characters that can be anything at all, presumably because you don’t know how to match slashes when you’re also using them as delimiters. (Actually, dots match almost anything, as we’ll see in #3.) Within ... | Perl Regex Match and Removal I have a string which starts with //#... goes upto the newline characater. I have figured out the regex for the which is this..#([^\n]*). My question is how do you remove this line from a file if the following condition matches | TITLE:
Perl Regex Match and Removal
QUESTION:
I have a string which starts with //#... goes upto the newline characater. I have figured out the regex for the which is this..#([^\n]*). My question is how do you remove this line from a file if the following condition matches
ANSWER:
Your regex is badly chosen on severa... | [
"regex",
"perl"
] | 5 | 29 | 18,275 | 9 | 0 | 2008-09-17T06:00:50.863000 | 2008-09-17T07:56:04.033000 |
80,424 | 80,440 | Overriding "find" in ActiveRecord the DRY way | I have a few models that need to have custom find conditions placed on them. For example, if I have a Contact model, every time Contact.find is called, I want to restrict the contacts returned that only belong to the Account in use. I found this via Google (which I've customized a little): def self.find(*args) with_sco... | You don't tell us which version of rails you are using [edit - it is on rails 2.1 thus following advice is fully operational], but I would recommand you use the following form instead of overloading find yourself: account.contacts.find(...) this will automatically wrap the find in a scope where the user clause is inclu... | Overriding "find" in ActiveRecord the DRY way I have a few models that need to have custom find conditions placed on them. For example, if I have a Contact model, every time Contact.find is called, I want to restrict the contacts returned that only belong to the Account in use. I found this via Google (which I've custo... | TITLE:
Overriding "find" in ActiveRecord the DRY way
QUESTION:
I have a few models that need to have custom find conditions placed on them. For example, if I have a Contact model, every time Contact.find is called, I want to restrict the contacts returned that only belong to the Account in use. I found this via Google... | [
"ruby-on-rails",
"ruby",
"activerecord",
"metaprogramming",
"overriding"
] | 5 | 8 | 6,739 | 3 | 0 | 2008-09-17T06:02:33.370000 | 2008-09-17T06:05:55.047000 |
80,427 | 80,457 | How to iterate through a string and check the byte value of every character? | Code I have: cell_val = CStr(Nz(fld.value, "")) Dim iter As Long For iter = 0 To Len(cell_val) - 1 Step 1 If Asc(Mid(cell_val, iter, 1)) > 127 Then addlog "Export contains ascii character > 127" End If Next iter This code doesn't work. Anyone know how to do this? I've simply got no idea with VB or VBA. | I believe your problem is that in VBA string indexes start at 1 and not at 0. Try the following: For iter = 1 To Len(cell_val) If Asc(Mid(cell_val, iter, 1)) > 127 Then addlog "Export contains ascii character > 127" End If Next | How to iterate through a string and check the byte value of every character? Code I have: cell_val = CStr(Nz(fld.value, "")) Dim iter As Long For iter = 0 To Len(cell_val) - 1 Step 1 If Asc(Mid(cell_val, iter, 1)) > 127 Then addlog "Export contains ascii character > 127" End If Next iter This code doesn't work. Anyone ... | TITLE:
How to iterate through a string and check the byte value of every character?
QUESTION:
Code I have: cell_val = CStr(Nz(fld.value, "")) Dim iter As Long For iter = 0 To Len(cell_val) - 1 Step 1 If Asc(Mid(cell_val, iter, 1)) > 127 Then addlog "Export contains ascii character > 127" End If Next iter This code doe... | [
"string",
"excel",
"for-loop",
"vba"
] | 5 | 12 | 39,952 | 7 | 0 | 2008-09-17T06:03:06.303000 | 2008-09-17T06:10:15.410000 |
80,452 | 81,070 | Best technology for developing an app that runs on DESKTOP and in BROWSER? | Microsoft WPF? Adobe AIR/Flex? Adobe Flash? Curl programming language? How does AJAX fit in? Given a server written in C++.NET. | The answer does depend really on what your application actually does and your platform requirements. If its a regular web application like gmail and you want it to work on lots of browsers and platforms; then I'd recommend a combination of HTML, CSS and GWT as this means your application code is all Java, its very easy... | Best technology for developing an app that runs on DESKTOP and in BROWSER? Microsoft WPF? Adobe AIR/Flex? Adobe Flash? Curl programming language? How does AJAX fit in? Given a server written in C++.NET. | TITLE:
Best technology for developing an app that runs on DESKTOP and in BROWSER?
QUESTION:
Microsoft WPF? Adobe AIR/Flex? Adobe Flash? Curl programming language? How does AJAX fit in? Given a server written in C++.NET.
ANSWER:
The answer does depend really on what your application actually does and your platform req... | [
"c++",
"client",
"distributed"
] | 1 | 1 | 481 | 8 | 0 | 2008-09-17T06:09:24.180000 | 2008-09-17T08:18:39.737000 |
80,470 | 85,076 | Performance of an large directory structure, networked application | I'm trying to find out what the performance of a large directory structure would be if deep directories were to be accessed on a shared, nfs filesystem. The structure would be excessively large, with 4 levels of nested directories, each level containing 1024 directories. (1024 at root, 1024 in a given subdirectory, and... | I did that at my work once. Don't remember the exact numbers offhand, but I think it was 8 levels deep, 10 subdirectories in each level (user id 87654321 maps to directory 8/7/6/5/4/3/2/1/. Turned out that was not such a great idea, started running into problems with filesystem inode number limits, iirc (10^10 = 100000... | Performance of an large directory structure, networked application I'm trying to find out what the performance of a large directory structure would be if deep directories were to be accessed on a shared, nfs filesystem. The structure would be excessively large, with 4 levels of nested directories, each level containing... | TITLE:
Performance of an large directory structure, networked application
QUESTION:
I'm trying to find out what the performance of a large directory structure would be if deep directories were to be accessed on a shared, nfs filesystem. The structure would be excessively large, with 4 levels of nested directories, eac... | [
"performance",
"nfs"
] | 0 | 1 | 1,938 | 3 | 0 | 2008-09-17T06:12:43.657000 | 2008-09-17T16:32:33.573000 |
80,486 | 80,600 | How do you turn on Code Coverage in Builds within TFS? | I need to know how to turn on Code Coverage when running TFS builds on a solution with a.testrunconfig file. There is an option in the testrunconfig file that is for code coverage, but when running a TFS build there is no code coverage results. I am running my tests using the *Tests.dll mask and NOT using Test Lists (.... | How are you running the tests? Are you using a.vsmdi file or just specifying that you run all tests in *Tests.dll assemblies? If it is the latter and you are using TFS 2008, then you need to add the following to the and of the first PropertyGroup in your TFSBuild.proj file for the build. $(SolutionRoot)\TestRunConfig.t... | How do you turn on Code Coverage in Builds within TFS? I need to know how to turn on Code Coverage when running TFS builds on a solution with a.testrunconfig file. There is an option in the testrunconfig file that is for code coverage, but when running a TFS build there is no code coverage results. I am running my test... | TITLE:
How do you turn on Code Coverage in Builds within TFS?
QUESTION:
I need to know how to turn on Code Coverage when running TFS builds on a solution with a.testrunconfig file. There is an option in the testrunconfig file that is for code coverage, but when running a TFS build there is no code coverage results. I ... | [
"tfs",
"build-process",
"code-coverage"
] | 10 | 15 | 9,427 | 2 | 0 | 2008-09-17T06:17:09.030000 | 2008-09-17T06:47:15.417000 |
80,493 | 81,420 | Reading Unformatted Data | In C, using the standard Windows API, what is the best way to read an unformatted disk? Specifically, I have an MMC or SD card with data, but no file system (not FAT16, not FAT32, just raw data). If there was a simple way to open the entire card for byte by byte binary access, that would be great. Thanks! | I would go with HANDLE drive = CreateFile(_T("\\.\PhysicalDrive0"), GENERIC_READ, FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0); // error handling DWORD br = 0; DISK_GEOMETRY dg; DeviceIOControl(drive, IOCTL_DISK_GET_DRIVE_GEOMETRY, 0, 0, &dg, sizeof(dg), &br, 0); // LARGE_INTEGER pos; pos.QuadPart = static_cast (sectorToR... | Reading Unformatted Data In C, using the standard Windows API, what is the best way to read an unformatted disk? Specifically, I have an MMC or SD card with data, but no file system (not FAT16, not FAT32, just raw data). If there was a simple way to open the entire card for byte by byte binary access, that would be gre... | TITLE:
Reading Unformatted Data
QUESTION:
In C, using the standard Windows API, what is the best way to read an unformatted disk? Specifically, I have an MMC or SD card with data, but no file system (not FAT16, not FAT32, just raw data). If there was a simple way to open the entire card for byte by byte binary access,... | [
"c",
"windows",
"disk"
] | 2 | 4 | 3,463 | 3 | 0 | 2008-09-17T06:18:24.847000 | 2008-09-17T09:20:24.893000 |
80,515 | 80,524 | What is the location of OpenOffice.org templates in Linux? | I'd like to install some presentation templates, but don't know where to put them... Thanks a lot | Choose Tools > Options > OpenOffice.org > Paths and select the Templates line. There you can click "edit" and see the paths that it uses to search for templates. | What is the location of OpenOffice.org templates in Linux? I'd like to install some presentation templates, but don't know where to put them... Thanks a lot | TITLE:
What is the location of OpenOffice.org templates in Linux?
QUESTION:
I'd like to install some presentation templates, but don't know where to put them... Thanks a lot
ANSWER:
Choose Tools > Options > OpenOffice.org > Paths and select the Templates line. There you can click "edit" and see the paths that it uses... | [
"linux",
"debian",
"openoffice.org"
] | 2 | 2 | 1,102 | 3 | 0 | 2008-09-17T06:22:48.500000 | 2008-09-17T06:25:38.667000 |
80,518 | 80,566 | What happens when the stylus "lifts" on a tablet PC? | I am working on a legacy project in VC++/Win32/MFC. Recently it became a requirement that the application work on a tablet pc, and this ushered in a host of new issues. I have been able to work with, and around these issues, but am left with one wherein I could use some expert suggestions. I have a particular bug that ... | As a tablet user I can answer a few of your questions. First: You cannot very easily keep a "keyboard focus" on a window when the stylus has to trail out of the focused window to push a key on the virtual keyboard. Most of the virtual keyboards I've used (The windows tablet input panel and one under ubuntu) allow the p... | What happens when the stylus "lifts" on a tablet PC? I am working on a legacy project in VC++/Win32/MFC. Recently it became a requirement that the application work on a tablet pc, and this ushered in a host of new issues. I have been able to work with, and around these issues, but am left with one wherein I could use s... | TITLE:
What happens when the stylus "lifts" on a tablet PC?
QUESTION:
I am working on a legacy project in VC++/Win32/MFC. Recently it became a requirement that the application work on a tablet pc, and this ushered in a host of new issues. I have been able to work with, and around these issues, but am left with one whe... | [
"c++",
"windows",
"events",
"tablet-pc",
"stylus-pen"
] | 0 | 1 | 759 | 4 | 0 | 2008-09-17T06:23:34.990000 | 2008-09-17T06:36:51.027000 |
80,541 | 80,578 | Given two dates what is the best way of finding the number of weekdays in PHP? | The title is pretty much self explanatory. Given two dates what is the best way of finding the number of week days using PHP? Week days being Monday to Friday. For instance, how would I find out that there are 10 week days in between 31/08/2008 and 13/09/2008? | $datefrom = strtotime($datefrom, 0); $dateto = strtotime($dateto, 0);
$difference = $dateto - $datefrom;
$days_difference = floor($difference / 86400); $weeks_difference = floor($days_difference / 7); // Complete weeks
$first_day = date("w", $datefrom); $days_remainder = floor($days_difference % 7);
$odd_days = $fi... | Given two dates what is the best way of finding the number of weekdays in PHP? The title is pretty much self explanatory. Given two dates what is the best way of finding the number of week days using PHP? Week days being Monday to Friday. For instance, how would I find out that there are 10 week days in between 31/08/2... | TITLE:
Given two dates what is the best way of finding the number of weekdays in PHP?
QUESTION:
The title is pretty much self explanatory. Given two dates what is the best way of finding the number of week days using PHP? Week days being Monday to Friday. For instance, how would I find out that there are 10 week days ... | [
"php",
"date"
] | 1 | 3 | 1,224 | 4 | 0 | 2008-09-17T06:28:36.677000 | 2008-09-17T06:40:33.607000 |
80,544 | 80,562 | Is there any good tool for working on Database apart from Toad which requires license and DBVisualiser not supportive | Is there any good tool for working on Dabtabase apart from Toad which requires license and DBVisualiser not supportive | Try fabForce Database Designer; it is GPL too. http://fabforce.net/dbdesigner4/ | Is there any good tool for working on Database apart from Toad which requires license and DBVisualiser not supportive Is there any good tool for working on Dabtabase apart from Toad which requires license and DBVisualiser not supportive | TITLE:
Is there any good tool for working on Database apart from Toad which requires license and DBVisualiser not supportive
QUESTION:
Is there any good tool for working on Dabtabase apart from Toad which requires license and DBVisualiser not supportive
ANSWER:
Try fabForce Database Designer; it is GPL too. http://fa... | [
"sql",
"database"
] | 1 | 0 | 323 | 5 | 0 | 2008-09-17T06:29:32.963000 | 2008-09-17T06:35:43.307000 |
80,561 | 81,398 | File storing strategies for a web hosting website | I am going to hosting for files that user submits. I need to grab some data from the file and then move it to some directory. There two points of interest for the lifetime of this file. The first is when the data is being abstracted and the second is when the file is archived so that it can be shared. When data is bein... | When data is being abstracted, I would choose something like: filename + millisec(); It is unlikely that two call to millisec will be the same, and filename is more userfriendly when accessing. The date strategy can be convenient if you decide to remove old and unused files: you only have to get the 2006 folder, and re... | File storing strategies for a web hosting website I am going to hosting for files that user submits. I need to grab some data from the file and then move it to some directory. There two points of interest for the lifetime of this file. The first is when the data is being abstracted and the second is when the file is ar... | TITLE:
File storing strategies for a web hosting website
QUESTION:
I am going to hosting for files that user submits. I need to grab some data from the file and then move it to some directory. There two points of interest for the lifetime of this file. The first is when the data is being abstracted and the second is w... | [
"filesystems"
] | 0 | 3 | 528 | 4 | 0 | 2008-09-17T06:34:46.943000 | 2008-09-17T09:17:17.147000 |
80,564 | 80,587 | Visual Studio: How to trigger an alarm when a breakpoint is hit? | Is there a way to trigger a beep/alarm/sound when my breakpoint is hit? I'm using Visual Studio 2005/2008. | Windows XP Control Panel -> Sounds and Audio... -> Program Events - Microsoft Developer -> Breakpoint Hit Windows 7 Control Panel -> All Control Panel Items -> Sounds -> Sounds (tab) - Microsoft Visual Studio -> Breakpoint Hit | Visual Studio: How to trigger an alarm when a breakpoint is hit? Is there a way to trigger a beep/alarm/sound when my breakpoint is hit? I'm using Visual Studio 2005/2008. | TITLE:
Visual Studio: How to trigger an alarm when a breakpoint is hit?
QUESTION:
Is there a way to trigger a beep/alarm/sound when my breakpoint is hit? I'm using Visual Studio 2005/2008.
ANSWER:
Windows XP Control Panel -> Sounds and Audio... -> Program Events - Microsoft Developer -> Breakpoint Hit Windows 7 Contr... | [
"visual-studio",
"breakpoints"
] | 44 | 97 | 10,087 | 3 | 0 | 2008-09-17T06:36:09.750000 | 2008-09-17T06:42:14.413000 |
80,592 | 80,615 | Method Local Inner Class | public class Test { public static void main(String[] args) {
} }
class Outer { void aMethod() { class MethodLocalInner { void bMethod() { System.out.println("Inside method-local bMethod"); } } } } Can someone tell me how to print the message from bMethod? | You can only instantiate MethodLocalInner within aMethod. So do void aMethod() {
class MethodLocalInner {
void bMethod() {
System.out.println("Inside method-local bMethod"); } }
MethodLocalInner foo = new MethodLocalInner(); // Default Constructor foo.bMethod();
} | Method Local Inner Class public class Test { public static void main(String[] args) {
} }
class Outer { void aMethod() { class MethodLocalInner { void bMethod() { System.out.println("Inside method-local bMethod"); } } } } Can someone tell me how to print the message from bMethod? | TITLE:
Method Local Inner Class
QUESTION:
public class Test { public static void main(String[] args) {
} }
class Outer { void aMethod() { class MethodLocalInner { void bMethod() { System.out.println("Inside method-local bMethod"); } } } } Can someone tell me how to print the message from bMethod?
ANSWER:
You can on... | [
"java",
"inner-classes",
"method-invocation"
] | 2 | 6 | 4,696 | 4 | 0 | 2008-09-17T06:44:10.743000 | 2008-09-17T06:51:26.840000 |
80,593 | 153,713 | Enabling embedded controls in a FlowDocument | I have a FlowDocument in a standard WPF application window where I have some text, and in this text some hyperlinks and buttons. The problem is, if I put this FlowDocument inside anything except a FlowDocumentPageViewer the hyperlinks and buttons are disabled ("grayed out"). Hello, World! click me The above will work a... | I'm using a FlowDocumentScrollViewer for my about box: I don't have any of the controls or issues you mention. | Enabling embedded controls in a FlowDocument I have a FlowDocument in a standard WPF application window where I have some text, and in this text some hyperlinks and buttons. The problem is, if I put this FlowDocument inside anything except a FlowDocumentPageViewer the hyperlinks and buttons are disabled ("grayed out").... | TITLE:
Enabling embedded controls in a FlowDocument
QUESTION:
I have a FlowDocument in a standard WPF application window where I have some text, and in this text some hyperlinks and buttons. The problem is, if I put this FlowDocument inside anything except a FlowDocumentPageViewer the hyperlinks and buttons are disabl... | [
"c#",
".net",
"wpf",
".net-3.5"
] | 4 | 2 | 2,989 | 2 | 0 | 2008-09-17T06:44:45.610000 | 2008-09-30T15:59:17.770000 |
80,609 | 174,071 | Merge XML documents | I need to "merge" two XML documents, overwriting the overlapsed attributes and elements. For instance if I have document1: and document2: I want to merge the two like this: I prefer Java or XSLT -based solutions, ant will do fine, but if there's an easy way to do that in Rake, Ruby or Python please don't be shy:-) EDIT... | If you like XSLT, there's a nice merge script I've used before at: Oliver's XSLT page | Merge XML documents I need to "merge" two XML documents, overwriting the overlapsed attributes and elements. For instance if I have document1: and document2: I want to merge the two like this: I prefer Java or XSLT -based solutions, ant will do fine, but if there's an easy way to do that in Rake, Ruby or Python please ... | TITLE:
Merge XML documents
QUESTION:
I need to "merge" two XML documents, overwriting the overlapsed attributes and elements. For instance if I have document1: and document2: I want to merge the two like this: I prefer Java or XSLT -based solutions, ant will do fine, but if there's an easy way to do that in Rake, Ruby... | [
"xml"
] | 24 | 8 | 65,625 | 5 | 0 | 2008-09-17T06:50:01.667000 | 2008-10-06T12:26:26.977000 |
80,612 | 80,637 | Best practices for holding passwords in shell / Perl scripts? | I've recently had to dust off my Perl and shell script skills to help out some colleagues. The colleagues in question have been tasked with providing some reports from an internal application with a large Oracle database backend, and they simply don't have the skills to do this. While some might question whether I have... | Best practice, IMHO, would be to NOT hold any passwords in a shell / Perl script. That is what public key authentication is for. | Best practices for holding passwords in shell / Perl scripts? I've recently had to dust off my Perl and shell script skills to help out some colleagues. The colleagues in question have been tasked with providing some reports from an internal application with a large Oracle database backend, and they simply don't have t... | TITLE:
Best practices for holding passwords in shell / Perl scripts?
QUESTION:
I've recently had to dust off my Perl and shell script skills to help out some colleagues. The colleagues in question have been tasked with providing some reports from an internal application with a large Oracle database backend, and they s... | [
"perl",
"oracle",
"bash",
"ksh"
] | 11 | 7 | 12,436 | 13 | 0 | 2008-09-17T06:50:46 | 2008-09-17T06:55:10.030000 |
80,619 | 80,651 | 'Helper' functions in C++ | While refactoring some old code I have stripped out a number of public methods that should actually of been statics as they a) don't operate on any member data or call any other member functions and b) because they might prove useful elsewhere. This led me to think about the best way to group 'helper' functions togethe... | Overhead is not an issue, namespaces have some advantages though You can reopen a namespace in another header, grouping things more logically while keeping compile dependencies low You can use namespace aliasing to your advantage (debug/release, platform specific helpers,....) e.g. I've done stuff like namespace Little... | 'Helper' functions in C++ While refactoring some old code I have stripped out a number of public methods that should actually of been statics as they a) don't operate on any member data or call any other member functions and b) because they might prove useful elsewhere. This led me to think about the best way to group ... | TITLE:
'Helper' functions in C++
QUESTION:
While refactoring some old code I have stripped out a number of public methods that should actually of been statics as they a) don't operate on any member data or call any other member functions and b) because they might prove useful elsewhere. This led me to think about the ... | [
"c++",
"class",
"namespaces"
] | 32 | 39 | 22,583 | 7 | 0 | 2008-09-17T06:52:06.857000 | 2008-09-17T06:57:30.913000 |
80,632 | 80,708 | Are tags useful for navigation (on Stack Overflow or otherwise)? | I've done some research on using tags from social bookmarking sites for web search, but I'd like to learn more about other ways in which users might use tags for information retrieval. Do you use the tags on sites like Stack Overflow for navigation? Do you think of them like filters (narrowing down a large list of ques... | I use them for searching for my stack (C#, ASP.NET, WinForms etc). I have them set up in Launchy as shortcuts. I have posted some thoughts ideas on my StackOverflow blog post - feel free to comment on there if you like: Search Support The search functionality is improving. However, is it still limited (for example, no ... | Are tags useful for navigation (on Stack Overflow or otherwise)? I've done some research on using tags from social bookmarking sites for web search, but I'd like to learn more about other ways in which users might use tags for information retrieval. Do you use the tags on sites like Stack Overflow for navigation? Do yo... | TITLE:
Are tags useful for navigation (on Stack Overflow or otherwise)?
QUESTION:
I've done some research on using tags from social bookmarking sites for web search, but I'd like to learn more about other ways in which users might use tags for information retrieval. Do you use the tags on sites like Stack Overflow for... | [
"user-interface",
"navigation",
"tags",
"usability"
] | 2 | 2 | 389 | 6 | 0 | 2008-09-17T06:54:04.650000 | 2008-09-17T07:10:40.413000 |
80,634 | 80,966 | How to re-open the Java Console in Firefox 3 after I've closed it | I'm using firefox3 to run a Java Applet (on Linux). normally, when the JVM launches the Java Console window opens so I can see output from the Applet (stack traces etc.). However, if I close the console there appears to be no way of getting it back short of restarting Firefox (I have to close the console because it mak... | I have the Web developer add-on, so pressing Ctrl-Shift-O opens the Java console. (Firefox 3 on Ubuntu) | How to re-open the Java Console in Firefox 3 after I've closed it I'm using firefox3 to run a Java Applet (on Linux). normally, when the JVM launches the Java Console window opens so I can see output from the Applet (stack traces etc.). However, if I close the console there appears to be no way of getting it back short... | TITLE:
How to re-open the Java Console in Firefox 3 after I've closed it
QUESTION:
I'm using firefox3 to run a Java Applet (on Linux). normally, when the JVM launches the Java Console window opens so I can see output from the Applet (stack traces etc.). However, if I close the console there appears to be no way of get... | [
"java",
"firefox",
"applet"
] | 2 | 2 | 17,227 | 2 | 0 | 2008-09-17T06:54:16.117000 | 2008-09-17T08:00:38.237000 |
80,645 | 80,686 | Best way to make events asynchronous in C# | Events are synchronous in C#. I have this application where my main form starts a thread with a loop in it that listens to a stream. When something comes along on the stream an event is fired from the loop to the main form. If the main form is slow or shows a messagebox or something the loop will be suspended. What is ... | Hmmm, I've used different scenarios that depended on what I needed at the time. I believe the BeginInvoke would probably be the easiest to code since you're almost there. Either way you should be using Invoke already, so just changing to BeginInvoke. Using a callback on a separate thread will accomplish the same thing ... | Best way to make events asynchronous in C# Events are synchronous in C#. I have this application where my main form starts a thread with a loop in it that listens to a stream. When something comes along on the stream an event is fired from the loop to the main form. If the main form is slow or shows a messagebox or som... | TITLE:
Best way to make events asynchronous in C#
QUESTION:
Events are synchronous in C#. I have this application where my main form starts a thread with a loop in it that listens to a stream. When something comes along on the stream an event is fired from the loop to the main form. If the main form is slow or shows a... | [
"c#",
"events",
"asynchronous"
] | 15 | 3 | 15,027 | 5 | 0 | 2008-09-17T06:56:35.520000 | 2008-09-17T07:05:04.093000 |
80,646 | 80,649 | How do the PHP equality (== double equals) and identity (=== triple equals) comparison operators differ? | What is the difference between == and ===? How exactly does the loosely == comparison work? How exactly does the strict === comparison work? What would be some useful examples? | Difference between == and === The difference between the loosely == equal operator and the strict === identical operator is exactly explained in the manual: Comparison Operators Example Name Result $a == $b Equal TRUE if $a is equal to $b after type juggling. $a === $b Identical TRUE if $a is equal to $b, and they are ... | How do the PHP equality (== double equals) and identity (=== triple equals) comparison operators differ? What is the difference between == and ===? How exactly does the loosely == comparison work? How exactly does the strict === comparison work? What would be some useful examples? | TITLE:
How do the PHP equality (== double equals) and identity (=== triple equals) comparison operators differ?
QUESTION:
What is the difference between == and ===? How exactly does the loosely == comparison work? How exactly does the strict === comparison work? What would be some useful examples?
ANSWER:
Difference ... | [
"php",
"operators"
] | 578 | 705 | 385,430 | 13 | 0 | 2008-09-17T06:56:45.987000 | 2008-09-17T06:57:19.120000 |
80,654 | 82,951 | How to program call divert settings on Windows Mobile? | Does anyone know how to get/set the call divert settings in codes running on Windows mobile 5/6? I am new to windows mobile development and wonder if there is anyway to do it using C# and.NET CF? | I assume you mean call forwarding? In general terms, the Telephony API (TAPI) is used for programmatically controlling the phone interface. Call forwarding is specifically handled by TSPI_lineForward. Microsoft does not offer any built-in or SDK tools for managed developers to use TAPI, and the structures TAPI uses are... | How to program call divert settings on Windows Mobile? Does anyone know how to get/set the call divert settings in codes running on Windows mobile 5/6? I am new to windows mobile development and wonder if there is anyway to do it using C# and.NET CF? | TITLE:
How to program call divert settings on Windows Mobile?
QUESTION:
Does anyone know how to get/set the call divert settings in codes running on Windows mobile 5/6? I am new to windows mobile development and wonder if there is anyway to do it using C# and.NET CF?
ANSWER:
I assume you mean call forwarding? In gene... | [
"windows-mobile"
] | 1 | 2 | 2,249 | 2 | 0 | 2008-09-17T06:58:31.253000 | 2008-09-17T13:07:41.647000 |
80,655 | 81,856 | Exchange drop support for SMTP? | I want to send email with Exchange by using telnet to port 25. Until two week ago I was able to, but now a "security fix" from Microsoft has removed this possibility. When I try, I get this message: 421 4.3.2 Service not available, closing transmission channel What can I do? | I found the answer at website: http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=2900802&SiteID=17 Thanks for your help! Basically, this functionality was removed by default and it could be restored by means of an ad hoc configuration - but with no guarrantee that further "updates" break the system again. Thanks... | Exchange drop support for SMTP? I want to send email with Exchange by using telnet to port 25. Until two week ago I was able to, but now a "security fix" from Microsoft has removed this possibility. When I try, I get this message: 421 4.3.2 Service not available, closing transmission channel What can I do? | TITLE:
Exchange drop support for SMTP?
QUESTION:
I want to send email with Exchange by using telnet to port 25. Until two week ago I was able to, but now a "security fix" from Microsoft has removed this possibility. When I try, I get this message: 421 4.3.2 Service not available, closing transmission channel What can ... | [
"smtp",
"exchange-server",
"telnet"
] | 2 | 0 | 33,935 | 4 | 0 | 2008-09-17T06:58:31.630000 | 2008-09-17T10:32:38.870000 |
80,691 | 81,827 | Orthogonal variables code duplication problem | I've started refactoring some legacy code recently and came across two functions for drawing a coordinate grid, the problem is that these functions differ only in orthogonal variables they treat, something like that void DrawScaleX(HDC dc, int step, int x0, int x1, int y0, int y1) { for(int x = x0; x < x1; x += step) {... | Drawing a line is simply joining two points, and drawing a scaling incrementing (x0,y0) and(x1,y1) in a particular direction, through X, and/or through Y. This boils down to, in the scale case, which direction(s) stepping occurs (maybe both directions for fun). template< int XIncrement, YIncrement > struct DrawScale { ... | Orthogonal variables code duplication problem I've started refactoring some legacy code recently and came across two functions for drawing a coordinate grid, the problem is that these functions differ only in orthogonal variables they treat, something like that void DrawScaleX(HDC dc, int step, int x0, int x1, int y0, ... | TITLE:
Orthogonal variables code duplication problem
QUESTION:
I've started refactoring some legacy code recently and came across two functions for drawing a coordinate grid, the problem is that these functions differ only in orthogonal variables they treat, something like that void DrawScaleX(HDC dc, int step, int x0... | [
"c++",
"code-duplication"
] | 1 | 2 | 541 | 6 | 0 | 2008-09-17T07:06:45.400000 | 2008-09-17T10:28:21.280000 |
80,692 | 80,762 | Java logger that automatically determines caller's class name | public static Logger getLogger() { final Throwable t = new Throwable(); final StackTraceElement methodCaller = t.getStackTrace()[1]; final Logger logger = Logger.getLogger(methodCaller.getClassName()); logger.setLevel(ResourceManager.LOGLEVEL); return logger; } This method would return a logger that knows the class it'... | I guess it adds a lot of overhead for every class. Every class has to be 'looked up'. You create new Throwable objects to do that... These throwables don't come for free. | Java logger that automatically determines caller's class name public static Logger getLogger() { final Throwable t = new Throwable(); final StackTraceElement methodCaller = t.getStackTrace()[1]; final Logger logger = Logger.getLogger(methodCaller.getClassName()); logger.setLevel(ResourceManager.LOGLEVEL); return logger... | TITLE:
Java logger that automatically determines caller's class name
QUESTION:
public static Logger getLogger() { final Throwable t = new Throwable(); final StackTraceElement methodCaller = t.getStackTrace()[1]; final Logger logger = Logger.getLogger(methodCaller.getClassName()); logger.setLevel(ResourceManager.LOGLEV... | [
"java",
"logging",
"stack-trace"
] | 44 | 19 | 77,185 | 22 | 0 | 2008-09-17T07:06:47.380000 | 2008-09-17T07:21:05.087000 |
80,693 | 80,747 | What type of application/utilization is YAML best suited for? | Why would one choose YAML over XML or any other formats? | I agree with Sergio; YAML provides a format which is easily editable by humans, but also a good way to cleanly represent data structures. YAML tends to be much more human-readable, IMO. YAML is more of a data serialisation technique, rather than a markup language. | What type of application/utilization is YAML best suited for? Why would one choose YAML over XML or any other formats? | TITLE:
What type of application/utilization is YAML best suited for?
QUESTION:
Why would one choose YAML over XML or any other formats?
ANSWER:
I agree with Sergio; YAML provides a format which is easily editable by humans, but also a good way to cleanly represent data structures. YAML tends to be much more human-rea... | [
"xml",
"markup",
"yaml"
] | 7 | 9 | 759 | 5 | 0 | 2008-09-17T07:06:48.863000 | 2008-09-17T07:17:11.913000 |
80,697 | 80,763 | Hibernate Tools and the ever changing database | I am currently using Hibernate Tools 3.1; I customized naming convention and DAO templates. The database (SQL Server 2005) in early development phase and I'm in charge of rebuilding the mappings, entities, DAOs, configuration, whatever. Each time I have to reverse-engineer the tables and so I lose every customization I... | I'd strongly recommend against continual reverse engineering. Reverse engineering is a great one time thing, but changes need to be managed as changes to both the hbm and the database. We use migrations to manage db changes, and we include the associated changes in the hbm. If Hibernate has it (I believe it does) you m... | Hibernate Tools and the ever changing database I am currently using Hibernate Tools 3.1; I customized naming convention and DAO templates. The database (SQL Server 2005) in early development phase and I'm in charge of rebuilding the mappings, entities, DAOs, configuration, whatever. Each time I have to reverse-engineer... | TITLE:
Hibernate Tools and the ever changing database
QUESTION:
I am currently using Hibernate Tools 3.1; I customized naming convention and DAO templates. The database (SQL Server 2005) in early development phase and I'm in charge of rebuilding the mappings, entities, DAOs, configuration, whatever. Each time I have t... | [
"java",
"database",
"hibernate",
"hibernate-tools"
] | 1 | 2 | 680 | 2 | 0 | 2008-09-17T07:07:29.657000 | 2008-09-17T07:21:11.030000 |
80,706 | 80,720 | Query to find nᵗʰ max value of a column | How can I find the 2 nd, 3 rd,... n th maximum value of a column? | You could sort the column into descending format and then just obtain the value from the nth row. EDIT:: Updated as per comment request. WARNING completely untested! SELECT DOB FROM (SELECT DOB FROM USERS ORDER BY DOB DESC) WHERE ROWID = 6 Something like the above should work for Oracle... you might have to get the syn... | Query to find nᵗʰ max value of a column How can I find the 2 nd, 3 rd,... n th maximum value of a column? | TITLE:
Query to find nᵗʰ max value of a column
QUESTION:
How can I find the 2 nd, 3 rd,... n th maximum value of a column?
ANSWER:
You could sort the column into descending format and then just obtain the value from the nth row. EDIT:: Updated as per comment request. WARNING completely untested! SELECT DOB FROM (SELE... | [
"sql",
"database"
] | 33 | 12 | 120,496 | 28 | 0 | 2008-09-17T07:10:23.753000 | 2008-09-17T07:12:50.940000 |
80,721 | 80,811 | How to sync a database that exists in various (not networked) SQL Server 2005 instances | I am working on a database application that runs on various independent servers. Each server runs an Instance of SQL Server 2005 with the same database. We would have a Master Server where that would be the definitive source of information and various "Client" Servers that would be distributed around (with no network c... | Also check for database replication. Check the Master-Remote part too. | How to sync a database that exists in various (not networked) SQL Server 2005 instances I am working on a database application that runs on various independent servers. Each server runs an Instance of SQL Server 2005 with the same database. We would have a Master Server where that would be the definitive source of info... | TITLE:
How to sync a database that exists in various (not networked) SQL Server 2005 instances
QUESTION:
I am working on a database application that runs on various independent servers. Each server runs an Instance of SQL Server 2005 with the same database. We would have a Master Server where that would be the definit... | [
"sql-server"
] | 0 | 1 | 327 | 2 | 0 | 2008-09-17T07:13:09.817000 | 2008-09-17T07:30:47.933000 |
80,756 | 376,939 | Windows Server 2003 - Share current Desktop via RDP like in Windows XP? | Unfortunately I have to use Windows Server 2003 on my 32 bit workstation due to memory constraints of Windows XP. In Windows XP, when you connect via Remote Desktop the current session I am logged in is instantly shared on the Remote Desktop. I can see all the applications I have opened on my workstation and can contin... | Logon to any session on Windows 2003 server. Goto Administrative tools-->Terminal services configuration-->Server Settings-->Restrict each user to one session(check this box) login again using RDP & you are good to go. | Windows Server 2003 - Share current Desktop via RDP like in Windows XP? Unfortunately I have to use Windows Server 2003 on my 32 bit workstation due to memory constraints of Windows XP. In Windows XP, when you connect via Remote Desktop the current session I am logged in is instantly shared on the Remote Desktop. I can... | TITLE:
Windows Server 2003 - Share current Desktop via RDP like in Windows XP?
QUESTION:
Unfortunately I have to use Windows Server 2003 on my 32 bit workstation due to memory constraints of Windows XP. In Windows XP, when you connect via Remote Desktop the current session I am logged in is instantly shared on the Rem... | [
"windows",
"windows-server-2003"
] | 1 | 4 | 8,052 | 4 | 0 | 2008-09-17T07:19:20.223000 | 2008-12-18T04:50:31.050000 |
80,787 | 80,809 | Active threads in ExecutorService | Any ideas how to determine the number of active threads currently running in an ExecutorService? | Use a ThreadPoolExecutor implementation and call getActiveCount() on it: int getActiveCount() // Returns the approximate number of threads that are actively executing tasks. The ExecutorService interface does not provide a method for that, it depends on the implementation. | Active threads in ExecutorService Any ideas how to determine the number of active threads currently running in an ExecutorService? | TITLE:
Active threads in ExecutorService
QUESTION:
Any ideas how to determine the number of active threads currently running in an ExecutorService?
ANSWER:
Use a ThreadPoolExecutor implementation and call getActiveCount() on it: int getActiveCount() // Returns the approximate number of threads that are actively execu... | [
"java",
"multithreading",
"concurrency"
] | 75 | 78 | 95,657 | 6 | 0 | 2008-09-17T07:25:13.140000 | 2008-09-17T07:30:37.497000 |
80,788 | 81,226 | Fatal Error C1083 - Cannot open include file: "windows.h": No such file or directory | I'm trying to get IKVM to build (see this question ) but now have encountered a problem not having to do with IKVM so I'm opening up a new question: When running nant on the IKVM directory with the Visual Studio 2008 Command Prompt (from the Start Menu), I get the following error: ikvm-native-win32:
[cl] Compiling 2 f... | OK here is the answer I ended up finding: rather than being on the Path, the directory with windows.h (in my case, C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include) needed to be set in the Include environment variable. | Fatal Error C1083 - Cannot open include file: "windows.h": No such file or directory I'm trying to get IKVM to build (see this question ) but now have encountered a problem not having to do with IKVM so I'm opening up a new question: When running nant on the IKVM directory with the Visual Studio 2008 Command Prompt (fr... | TITLE:
Fatal Error C1083 - Cannot open include file: "windows.h": No such file or directory
QUESTION:
I'm trying to get IKVM to build (see this question ) but now have encountered a problem not having to do with IKVM so I'm opening up a new question: When running nant on the IKVM directory with the Visual Studio 2008 ... | [
"c#",
".net",
"path",
"ikvm"
] | 12 | 11 | 72,190 | 2 | 0 | 2008-09-17T07:25:18.337000 | 2008-09-17T08:48:49.507000 |
80,799 | 81,938 | JAX-RS Frameworks | I've been doing some work with the JAX-RS reference implementation (Jersey). I know of at least two other frameworks (Restlet & Apache CXF). My question is: Has anyone done some comparison between those frameworks and if so, which framework would you recommend and why? | FWIW we're using Jersey as its packed full of features (e.g. WADL, implicit views, XML/JSON/Atom support) has a large and vibrant developer community behind it and has great spring integration. If you use JBoss/SEAM you might find RESTeasy integrates a little better - but if you use Spring for Dependency Injection then... | JAX-RS Frameworks I've been doing some work with the JAX-RS reference implementation (Jersey). I know of at least two other frameworks (Restlet & Apache CXF). My question is: Has anyone done some comparison between those frameworks and if so, which framework would you recommend and why? | TITLE:
JAX-RS Frameworks
QUESTION:
I've been doing some work with the JAX-RS reference implementation (Jersey). I know of at least two other frameworks (Restlet & Apache CXF). My question is: Has anyone done some comparison between those frameworks and if so, which framework would you recommend and why?
ANSWER:
FWIW ... | [
"java",
"rest",
"jax-rs"
] | 50 | 29 | 39,666 | 7 | 0 | 2008-09-17T07:28:37.547000 | 2008-09-17T10:46:15.013000 |
80,802 | 81,329 | Does use of anonymous functions affect performance? | I've been wondering, is there a performance difference between using named functions and anonymous functions in Javascript? for (var i = 0; i < 1000; ++i) { myObjects[i].onMyEvent = function() { // do something }; } vs function myEventHandler() { // do something }
for (var i = 0; i < 1000; ++i) { myObjects[i].onMyEven... | The performance problem here is the cost of creating a new function object at each iteration of the loop and not the fact that you use an anonymous function: for (var i = 0; i < 1000; ++i) { myObjects[i].onMyEvent = function() { // do something }; } You are creating a thousand distinct function objects even though they... | Does use of anonymous functions affect performance? I've been wondering, is there a performance difference between using named functions and anonymous functions in Javascript? for (var i = 0; i < 1000; ++i) { myObjects[i].onMyEvent = function() { // do something }; } vs function myEventHandler() { // do something }
fo... | TITLE:
Does use of anonymous functions affect performance?
QUESTION:
I've been wondering, is there a performance difference between using named functions and anonymous functions in Javascript? for (var i = 0; i < 1000; ++i) { myObjects[i].onMyEvent = function() { // do something }; } vs function myEventHandler() { // ... | [
"javascript",
"performance",
"optimization"
] | 99 | 96 | 30,103 | 12 | 0 | 2008-09-17T07:28:45.207000 | 2008-09-17T09:07:24.707000 |
80,818 | 80,877 | How to: Pass an ampersand in a lousy filename to a flash object on a webpage | Argghh. I have a site that offers audio previews of songs hosted elsewhere. Some file names have an ampersand in them - see below where it passes "soundFile." Anytime there's an ampersand, Flash can't get the file - I think it drops the filename after the ampersand. It doesn't matter if I pass it as an "&" or an HTML e... | Sounds like you might have to URL-encode it, rather than HTML-encode it. Not sure without the code sample though. The URL-encoded code for ampersand is '%26'. | How to: Pass an ampersand in a lousy filename to a flash object on a webpage Argghh. I have a site that offers audio previews of songs hosted elsewhere. Some file names have an ampersand in them - see below where it passes "soundFile." Anytime there's an ampersand, Flash can't get the file - I think it drops the filena... | TITLE:
How to: Pass an ampersand in a lousy filename to a flash object on a webpage
QUESTION:
Argghh. I have a site that offers audio previews of songs hosted elsewhere. Some file names have an ampersand in them - see below where it passes "soundFile." Anytime there's an ampersand, Flash can't get the file - I think i... | [
"flash",
"encoding",
"character"
] | 3 | 8 | 2,250 | 1 | 0 | 2008-09-17T07:32:19.677000 | 2008-09-17T07:43:34.017000 |
80,820 | 81,047 | OpenFileDialog. How about "Specify Directory Dialog"? | On a file path field, I want to capture the directory path like: textbox1.Text = directory path Anyone? | Well I am using VS 2008 SP1. This all I need: private void button1_Click(object sender, EventArgs e) { FolderBrowserDialog profilePath = new FolderBrowserDialog();
if (profilePath.ShowDialog() == DialogResult.OK) { profilePathTextBox.Text = profilePath.SelectedPath; } else { profilePathTextBox.Text = "Please Specify T... | OpenFileDialog. How about "Specify Directory Dialog"? On a file path field, I want to capture the directory path like: textbox1.Text = directory path Anyone? | TITLE:
OpenFileDialog. How about "Specify Directory Dialog"?
QUESTION:
On a file path field, I want to capture the directory path like: textbox1.Text = directory path Anyone?
ANSWER:
Well I am using VS 2008 SP1. This all I need: private void button1_Click(object sender, EventArgs e) { FolderBrowserDialog profilePath ... | [
"c#",
"directory",
"openfiledialog"
] | 3 | 4 | 8,151 | 3 | 0 | 2008-09-17T07:33:18.317000 | 2008-09-17T08:15:08.887000 |
80,831 | 90,972 | How to find out the distinguished name of the information store to feed to IExchangeManageStore::GetMailboxTable? | There is a Microsoft knowledge base article with sample code to open all mailboxes in a given information store. It works so far (requires a bit of copy & pasting on compilers newer than VC++ 6.0). At one point it calls IExchangeManageStore::GetMailboxTable with the distinguished name of the information store. For the ... | Thinking there must be a pure MAPI solution, I believe I've figured out how OutlookSpy does it. The following code snippet, inserted after printf("Created MAPI session\n"); in the example from KB194627, will show the Server DN. LPPROFSECT lpProfSect; hr = lpSess->OpenProfileSection((LPMAPIUID)pbGlobalProfileSectionGuid... | How to find out the distinguished name of the information store to feed to IExchangeManageStore::GetMailboxTable? There is a Microsoft knowledge base article with sample code to open all mailboxes in a given information store. It works so far (requires a bit of copy & pasting on compilers newer than VC++ 6.0). At one p... | TITLE:
How to find out the distinguished name of the information store to feed to IExchangeManageStore::GetMailboxTable?
QUESTION:
There is a Microsoft knowledge base article with sample code to open all mailboxes in a given information store. It works so far (requires a bit of copy & pasting on compilers newer than V... | [
"c++",
"outlook",
"exchange-server",
"mapi"
] | 2 | 2 | 3,179 | 3 | 0 | 2008-09-17T07:35:06.707000 | 2008-09-18T08:36:36.220000 |
80,832 | 81,153 | Rebind Access combo box | I have an Access 2007 form that is searchable by a combobox. When I add a new record, I need to update the combobox to include the newly added item. I assume that something needs to be done in AfterInsert event of the form but I can't figure out what. How can I rebind the combobox after inserting so that the new item a... | The easiest way is to guarantee that the combobox is always up-to-date is to just requery the combobox once it gets the focus. Even if the recordset is then updated somewhere else, your combobox is always up-to-date. A simple TheCombobox.Requery in the OnFocus event should be enough. | Rebind Access combo box I have an Access 2007 form that is searchable by a combobox. When I add a new record, I need to update the combobox to include the newly added item. I assume that something needs to be done in AfterInsert event of the form but I can't figure out what. How can I rebind the combobox after insertin... | TITLE:
Rebind Access combo box
QUESTION:
I have an Access 2007 form that is searchable by a combobox. When I add a new record, I need to update the combobox to include the newly added item. I assume that something needs to be done in AfterInsert event of the form but I can't figure out what. How can I rebind the combo... | [
"ms-access"
] | 1 | 1 | 2,441 | 5 | 0 | 2008-09-17T07:35:08.123000 | 2008-09-17T08:33:38.077000 |
80,833 | 97,231 | Nuking huge file in svn repository | As the local subversion czar i explain to everyone to keep only source code and non-huge text files in the repository, not huge binary data files. Smaller binary files that are parts of tests, maybe. Unfortunately i work with humans! Someone is likely to someday accidentally commit a 800MB binary hulk. This slows down ... | Some extra info about this can be found at the blog post: Subversion Obliterate, the missing feature Be sure to read through the comments too, where Karl Fogel puts the article into perspective:-) | Nuking huge file in svn repository As the local subversion czar i explain to everyone to keep only source code and non-huge text files in the repository, not huge binary data files. Smaller binary files that are parts of tests, maybe. Unfortunately i work with humans! Someone is likely to someday accidentally commit a ... | TITLE:
Nuking huge file in svn repository
QUESTION:
As the local subversion czar i explain to everyone to keep only source code and non-huge text files in the repository, not huge binary data files. Smaller binary files that are parts of tests, maybe. Unfortunately i work with humans! Someone is likely to someday acci... | [
"svn",
"large-files"
] | 18 | 13 | 9,533 | 4 | 0 | 2008-09-17T07:35:25.580000 | 2008-09-18T21:34:40.610000 |
80,844 | 80,904 | How do I use LogParser to find out the LENGTH of a field in an IIS Log? | I'm trying to find LONG UserAgent strings with LogParser.exe in my IIS logs. This example searches for entries with the string 'poo' in them. LogParser.exe -i:IISW3C "SELECT COUNT(cs(User-Agent)) AS Client FROM *.log WHERE cs(User-Agent) LIKE '%poo%'" I'm trying to say "How many entries have a User-Agent that is longer... | Well, looks like I answered my own question. LogParser.exe -i:IISW3C "SELECT COUNT(cs(User-Agent)) AS Client FROM *.log WHERE STRLEN(cs(User-Agent)) > 100" | How do I use LogParser to find out the LENGTH of a field in an IIS Log? I'm trying to find LONG UserAgent strings with LogParser.exe in my IIS logs. This example searches for entries with the string 'poo' in them. LogParser.exe -i:IISW3C "SELECT COUNT(cs(User-Agent)) AS Client FROM *.log WHERE cs(User-Agent) LIKE '%poo... | TITLE:
How do I use LogParser to find out the LENGTH of a field in an IIS Log?
QUESTION:
I'm trying to find LONG UserAgent strings with LogParser.exe in my IIS logs. This example searches for entries with the string 'poo' in them. LogParser.exe -i:IISW3C "SELECT COUNT(cs(User-Agent)) AS Client FROM *.log WHERE cs(User... | [
"iis",
"logparser"
] | 27 | 45 | 4,124 | 1 | 0 | 2008-09-17T07:38:00.800000 | 2008-09-17T07:47:30.683000 |
80,846 | 80,871 | Zend Framework Select Operator Precedence | I am trying to use Zend_Db_Select to write a select query that looks somewhat like this: SELECT * FROM bar WHERE a = 1 AND (b = 2 OR b = 3) However, when using a combination of where() and orWhere(), it seems impossible to use condition grouping like the above. Are there any native ways in Zend Framework to achieve the... | From the manual (Example 11.61. Example of parenthesizing Boolean expressions) // Build this query: // SELECT product_id, product_name, price // FROM "products" // WHERE (price < 100.00 OR price > 500.00) // AND (product_name = 'Apple')
$minimumPrice = 100; $maximumPrice = 500; $prod = 'Apple';
$select = $db->select(... | Zend Framework Select Operator Precedence I am trying to use Zend_Db_Select to write a select query that looks somewhat like this: SELECT * FROM bar WHERE a = 1 AND (b = 2 OR b = 3) However, when using a combination of where() and orWhere(), it seems impossible to use condition grouping like the above. Are there any na... | TITLE:
Zend Framework Select Operator Precedence
QUESTION:
I am trying to use Zend_Db_Select to write a select query that looks somewhat like this: SELECT * FROM bar WHERE a = 1 AND (b = 2 OR b = 3) However, when using a combination of where() and orWhere(), it seems impossible to use condition grouping like the above... | [
"php",
"mysql",
"zend-framework"
] | 0 | 2 | 1,042 | 2 | 0 | 2008-09-17T07:38:23.937000 | 2008-09-17T07:43:00.227000 |
80,857 | 80,935 | In Visual Studio 2008, how can I make control+click do a "Go To Definition"? | In the Delphi IDE, you can hold control and click on a method to jump to its definition. In VS2008, you have to right-click and select "Go To Definition". I use this function quite often, so I'd really like to get VS to behave like Delphi in this regard - its so much quicker to ctrl+click. I don't think there's a way t... | You could create an Autohotkey script that does that. When you ctrl-click a word, send a doubleclick then a F12. I don't have AHK handy so I can't try and sketch some code but it should be pretty easy; the AHK recorder should have enough features to let you create it in a point 'n' click fashion and IIRC it is smart en... | In Visual Studio 2008, how can I make control+click do a "Go To Definition"? In the Delphi IDE, you can hold control and click on a method to jump to its definition. In VS2008, you have to right-click and select "Go To Definition". I use this function quite often, so I'd really like to get VS to behave like Delphi in t... | TITLE:
In Visual Studio 2008, how can I make control+click do a "Go To Definition"?
QUESTION:
In the Delphi IDE, you can hold control and click on a method to jump to its definition. In VS2008, you have to right-click and select "Go To Definition". I use this function quite often, so I'd really like to get VS to behav... | [
"visual-studio",
"visual-studio-2008",
"ide"
] | 19 | 6 | 8,507 | 7 | 0 | 2008-09-17T07:40:49.717000 | 2008-09-17T07:54:17.720000 |
80,859 | 3,737,505 | How to execute direct SQL code on a different database in Rails | I'm writing a Rails application which will monitor data quality over some specific databases. In order to do that, I need to be able to execute direct SQL queries over these databases - which of course are not the same as the one used to drive the Rails application models. In short, this means I can't use the trick of ... | I had a situation like this where I had to connect to hundreds of different instances of an external application, and I did code similar to the following: def get_custom_connection(identifier, host, port, dbname, dbuser, password) eval("Custom_#{identifier} = Class::new(ActiveRecord::Base)") eval("Custom_#{identifier}.... | How to execute direct SQL code on a different database in Rails I'm writing a Rails application which will monitor data quality over some specific databases. In order to do that, I need to be able to execute direct SQL queries over these databases - which of course are not the same as the one used to drive the Rails ap... | TITLE:
How to execute direct SQL code on a different database in Rails
QUESTION:
I'm writing a Rails application which will monitor data quality over some specific databases. In order to do that, I need to be able to execute direct SQL queries over these databases - which of course are not the same as the one used to ... | [
"ruby-on-rails",
"ruby",
"activerecord"
] | 5 | 10 | 7,895 | 3 | 0 | 2008-09-17T07:41:28.763000 | 2010-09-17T17:16:56.250000 |
80,863 | 83,236 | How to handle errors loading with the Flex Sound class | I am seeing strange behaviour with the flash.media.Sound class in Flex 3. var sound:Sound = new Sound(); try{ sound.load(new URLRequest("directory/file.mp3")) } catch(e:IOError){... } However this isn't helping. I'm getting a stream error, and it actually sees to be in the Sound constructor. Error #2044: Unhandled IOEr... | IOError = target file cannot be found (or for some other reason cannot be read). Check your file's path. Edit: I just realized this may not be your problem, you're just trying to catch the IO error? If so, you can do this: var sound:Sound = new Sound(); sound.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); sou... | How to handle errors loading with the Flex Sound class I am seeing strange behaviour with the flash.media.Sound class in Flex 3. var sound:Sound = new Sound(); try{ sound.load(new URLRequest("directory/file.mp3")) } catch(e:IOError){... } However this isn't helping. I'm getting a stream error, and it actually sees to b... | TITLE:
How to handle errors loading with the Flex Sound class
QUESTION:
I am seeing strange behaviour with the flash.media.Sound class in Flex 3. var sound:Sound = new Sound(); try{ sound.load(new URLRequest("directory/file.mp3")) } catch(e:IOError){... } However this isn't helping. I'm getting a stream error, and it ... | [
"apache-flex",
"flash",
"actionscript-3"
] | 3 | 5 | 2,260 | 3 | 0 | 2008-09-17T07:42:17.610000 | 2008-09-17T13:33:39.183000 |
80,875 | 805,001 | What is the Unix command to create a hardlink to a directory in OS X? | How do you create a hardlink (as opposed to a symlink or a Mac OS alias) in OS X that points to a directory? I already know the command "ln target destination" but that only works when the target is a file. I know that Mac OS, unlike other Unix environments, does allow hardlinking to folders (this is used for Time Mach... | You can't do it directly in BASH then. However... I found an article here that discusses how to do it indirectly: http://www.mactech.com/articles/mactech/Vol.23/23.11/ExploringLeopardwithDTrace/index.html by compiling a simple little C program: #include #include int main(int argc, char *argv[]) { if (argc!= 3) return 1... | What is the Unix command to create a hardlink to a directory in OS X? How do you create a hardlink (as opposed to a symlink or a Mac OS alias) in OS X that points to a directory? I already know the command "ln target destination" but that only works when the target is a file. I know that Mac OS, unlike other Unix envir... | TITLE:
What is the Unix command to create a hardlink to a directory in OS X?
QUESTION:
How do you create a hardlink (as opposed to a symlink or a Mac OS alias) in OS X that points to a directory? I already know the command "ln target destination" but that only works when the target is a file. I know that Mac OS, unlik... | [
"macos",
"bash",
"filesystems",
"unix",
"ln"
] | 63 | 31 | 65,057 | 14 | 0 | 2008-09-17T07:43:32.457000 | 2009-04-30T01:20:24.220000 |
80,892 | 80,915 | Get Methods: One vs Many | getEmployeeNameByBatchId(int batchID) getEmployeeNameBySSN(Object SSN) getEmployeeNameByEmailId(String emailID) getEmployeeNameBySalaryAccount(SalaryAccount salaryAccount) or getEmployeeName(int typeOfIdentifier, byte[] identifier) -> In this methods the typeOfIdentifier tells if identifier is batchID/SSN/emailID/salar... | Why not overload the getEmployeeName(??) method? getEmployeeName(int BatchID) getEmployeeName(object SSN) (bad idea) getEmployeeName(String Email) etc. Seems a good 'many' approach to me. | Get Methods: One vs Many getEmployeeNameByBatchId(int batchID) getEmployeeNameBySSN(Object SSN) getEmployeeNameByEmailId(String emailID) getEmployeeNameBySalaryAccount(SalaryAccount salaryAccount) or getEmployeeName(int typeOfIdentifier, byte[] identifier) -> In this methods the typeOfIdentifier tells if identifier is ... | TITLE:
Get Methods: One vs Many
QUESTION:
getEmployeeNameByBatchId(int batchID) getEmployeeNameBySSN(Object SSN) getEmployeeNameByEmailId(String emailID) getEmployeeNameBySalaryAccount(SalaryAccount salaryAccount) or getEmployeeName(int typeOfIdentifier, byte[] identifier) -> In this methods the typeOfIdentifier tells... | [
"java",
"oop",
"jakarta-ee"
] | 10 | 9 | 816 | 22 | 0 | 2008-09-17T07:45:37.193000 | 2008-09-17T07:49:00.120000 |
80,918 | 81,170 | Adding my own application events in Control Panel -> Sounds | I have just read this question and I really loved this answer to the question. Naturally, an interesting question popped in my head... How to add my own events (of my own applications) in the Control Panel -> Sounds and Audio Devices -> Sounds -> Program Events? And another related question, that I suppose should be an... | A bit of quality time with Google led me to a CodeProject article called " Creating Your Own Sound Alerts ". It seems the secret sauce is all underneath the HKEY_CURRENT_USER\AppEvents registry key. From the article: Ok, it was very easy to create new Sound Alert Scheme. Now let us move to add our own Sound Alert Type ... | Adding my own application events in Control Panel -> Sounds I have just read this question and I really loved this answer to the question. Naturally, an interesting question popped in my head... How to add my own events (of my own applications) in the Control Panel -> Sounds and Audio Devices -> Sounds -> Program Event... | TITLE:
Adding my own application events in Control Panel -> Sounds
QUESTION:
I have just read this question and I really loved this answer to the question. Naturally, an interesting question popped in my head... How to add my own events (of my own applications) in the Control Panel -> Sounds and Audio Devices -> Sound... | [
"windows",
"language-agnostic",
"events",
"audio"
] | 7 | 6 | 5,671 | 1 | 0 | 2008-09-17T07:49:54.190000 | 2008-09-17T08:36:15.293000 |
80,940 | 100,033 | Is anyone using XForms in their web applications? | A few years ago we started playing around with XForms from the W3C for a web app which required hundreds of custom forms. As they aren't currently supported natively by the major browsers, what parsers/tools are you using on your projects today? I'm not really interested in plugins - this needs to be something server s... | We use XForms for creating user interfaces for SOAP-based web services. Currently we settled with Chiba XForms engine ( http://chiba.sourceforge.net/ ), but Orbeon ( http://www.orbeon.com/ ) actually seems more mature. Both are server-side engines, which convert XForms into HTML on the fly. The validation is performed ... | Is anyone using XForms in their web applications? A few years ago we started playing around with XForms from the W3C for a web app which required hundreds of custom forms. As they aren't currently supported natively by the major browsers, what parsers/tools are you using on your projects today? I'm not really intereste... | TITLE:
Is anyone using XForms in their web applications?
QUESTION:
A few years ago we started playing around with XForms from the W3C for a web app which required hundreds of custom forms. As they aren't currently supported natively by the major browsers, what parsers/tools are you using on your projects today? I'm no... | [
"w3c",
"xforms"
] | 6 | 8 | 3,316 | 4 | 0 | 2008-09-17T07:55:26.827000 | 2008-09-19T06:25:03.690000 |
80,958 | 81,007 | What is the best way to store a knowledge base of business rules for helpdesk? | Does anyone know of any software or a good way for developers to build up a knowledge base of business rules that are built in to the software for help desk to use? We already have a helpdesk software but we are not looking to replace this. | A wiki is definitely the way to go. Processes change, sometimes frequently, and in a fast-paced environment like a help desk a tool that allows quick, easy access and management of that type of content is extremely important to allow people to do their jobs effectively. One of the greatest benefits I've found is the he... | What is the best way to store a knowledge base of business rules for helpdesk? Does anyone know of any software or a good way for developers to build up a knowledge base of business rules that are built in to the software for help desk to use? We already have a helpdesk software but we are not looking to replace this. | TITLE:
What is the best way to store a knowledge base of business rules for helpdesk?
QUESTION:
Does anyone know of any software or a good way for developers to build up a knowledge base of business rules that are built in to the software for help desk to use? We already have a helpdesk software but we are not looking... | [
"knowledge-management",
"tool-rec"
] | 1 | 2 | 947 | 3 | 0 | 2008-09-17T07:58:32.437000 | 2008-09-17T08:08:03.897000 |
80,980 | 80,995 | Creating/modifying images in JavaScript | Is it possible to dynamically create and modify images on a per pixel level in JavaScript (on client side)? Or has this to be done with server based languaged, such as PHP? My use case is as follows: The user opens webpage and loads locally stored image A preview of the image is displayed The user can modify the image ... | This has to be done on the server side. One thing you might look at doing is allowing all the editing to go on client side, and then in the end POST the final image (via AJAX) to the server to allow it to return it to you as the correct MIME type, and correctly packed. | Creating/modifying images in JavaScript Is it possible to dynamically create and modify images on a per pixel level in JavaScript (on client side)? Or has this to be done with server based languaged, such as PHP? My use case is as follows: The user opens webpage and loads locally stored image A preview of the image is ... | TITLE:
Creating/modifying images in JavaScript
QUESTION:
Is it possible to dynamically create and modify images on a per pixel level in JavaScript (on client side)? Or has this to be done with server based languaged, such as PHP? My use case is as follows: The user opens webpage and loads locally stored image A previe... | [
"javascript",
"image"
] | 7 | 2 | 9,486 | 7 | 0 | 2008-09-17T08:03:31.207000 | 2008-09-17T08:05:28.457000 |
80,993 | 81,087 | How to skip sys.exitfunc when unhandled exceptions occur | As you can see, even after the program should have died it speaks from the grave. Is there a way to "deregister" the exitfunction in case of exceptions? import atexit
def helloworld(): print("Hello World!")
atexit.register(helloworld)
raise Exception("Good bye cruel world!") outputs Traceback (most recent call last)... | I don't really know why you want to do that, but you can install an excepthook that will be called by Python whenever an uncatched exception is raised, and in it clear the array of registered function in the atexit module. Something like that: import sys import atexit
def clear_atexit_excepthook(exctype, value, traceb... | How to skip sys.exitfunc when unhandled exceptions occur As you can see, even after the program should have died it speaks from the grave. Is there a way to "deregister" the exitfunction in case of exceptions? import atexit
def helloworld(): print("Hello World!")
atexit.register(helloworld)
raise Exception("Good bye... | TITLE:
How to skip sys.exitfunc when unhandled exceptions occur
QUESTION:
As you can see, even after the program should have died it speaks from the grave. Is there a way to "deregister" the exitfunction in case of exceptions? import atexit
def helloworld(): print("Hello World!")
atexit.register(helloworld)
raise E... | [
"python",
"exception",
"atexit"
] | 5 | 7 | 3,648 | 2 | 0 | 2008-09-17T08:05:18.550000 | 2008-09-17T08:21:20.027000 |
80,997 | 81,053 | Which factors determine the success of an open source project? | We have a series of closed source applications and libraries, for which we think it would make sense opening up the source code. What has been blocking us, so far, is the effort needed to clean up the code base and documenting the source before opening up. We want to open up the source only if we have a reasonable chan... | There are a several things which dominate the successfulness of code. All of these must be achieved for the slightest chance of adoption. Market - There must be a market for your open source project. If your project is a orange juicer in space, I doubt that you'll be very successful. You must make sure your project get... | Which factors determine the success of an open source project? We have a series of closed source applications and libraries, for which we think it would make sense opening up the source code. What has been blocking us, so far, is the effort needed to clean up the code base and documenting the source before opening up. ... | TITLE:
Which factors determine the success of an open source project?
QUESTION:
We have a series of closed source applications and libraries, for which we think it would make sense opening up the source code. What has been blocking us, so far, is the effort needed to clean up the code base and documenting the source b... | [
"language-agnostic",
"open-source",
"project-management"
] | 6 | 5 | 610 | 10 | 0 | 2008-09-17T08:05:55.227000 | 2008-09-17T08:16:38.167000 |
81,022 | 81,135 | How to autocomplete at the KornShell command line with the vi editor | In the KornShell (ksh) on AIX UNIX Version 5.3 with the editor mode set to vi using: set -o vi What are the key-strokes at the shell command line to autocomplete a file or directory name? | ESC\ works fine on AIX4.2 at least. One thing I noticed is that it only autocompletes to the unique part of the file name. So if you have the files x.txt, x171go and x171stop, the following will happen: Press keys: Command line is: x x \ x 1 x1 \ x171 g \ x171go | How to autocomplete at the KornShell command line with the vi editor In the KornShell (ksh) on AIX UNIX Version 5.3 with the editor mode set to vi using: set -o vi What are the key-strokes at the shell command line to autocomplete a file or directory name? | TITLE:
How to autocomplete at the KornShell command line with the vi editor
QUESTION:
In the KornShell (ksh) on AIX UNIX Version 5.3 with the editor mode set to vi using: set -o vi What are the key-strokes at the shell command line to autocomplete a file or directory name?
ANSWER:
ESC\ works fine on AIX4.2 at least. ... | [
"unix",
"shell",
"vi",
"ksh",
"aix"
] | 8 | 12 | 29,802 | 2 | 0 | 2008-09-17T08:10:54.903000 | 2008-09-17T08:30:02.313000 |
81,052 | 81,171 | When should a class member be declared virtual (C#)/Overridable (VB.NET)? | Why wouldn't I choose abstract? What are the limitations to declaring a class member virtual? Can only methods be declared virtual? | An abstract method or property (both can be virtual or abstract) can only be declared in an abstract class and cannot have a body, i.e. you can't implement it in your abstract class. A virtual method or property must have a body, i.e. you must provide an implementation (even if the body is empty). If someone want to us... | When should a class member be declared virtual (C#)/Overridable (VB.NET)? Why wouldn't I choose abstract? What are the limitations to declaring a class member virtual? Can only methods be declared virtual? | TITLE:
When should a class member be declared virtual (C#)/Overridable (VB.NET)?
QUESTION:
Why wouldn't I choose abstract? What are the limitations to declaring a class member virtual? Can only methods be declared virtual?
ANSWER:
An abstract method or property (both can be virtual or abstract) can only be declared i... | [
"c#",
".net",
"vb.net"
] | 4 | 10 | 12,668 | 9 | 0 | 2008-09-17T08:15:59.103000 | 2008-09-17T08:36:39.083000 |
81,061 | 90,359 | MDB2 disconnects and forgets charset setting when reconnecting | We recently debugged a strange bug. A solution was found, but the solution is not entirely satisfactory. We use IntSmarty to localize our website, and store the localized strings in a database using our own wrapper. In its destructor, IntSmarty saves any new strings that it might have, resulting in a database call. We ... | From the PHP5 documentation: The destructor method will be called as soon as all references to a particular object are removed or when the object is explicitly destroyed or in any order in shutdown sequence. PHP documentation (emphasis mine) What is probably happening is that your script does not explicitly destroy the... | MDB2 disconnects and forgets charset setting when reconnecting We recently debugged a strange bug. A solution was found, but the solution is not entirely satisfactory. We use IntSmarty to localize our website, and store the localized strings in a database using our own wrapper. In its destructor, IntSmarty saves any ne... | TITLE:
MDB2 disconnects and forgets charset setting when reconnecting
QUESTION:
We recently debugged a strange bug. A solution was found, but the solution is not entirely satisfactory. We use IntSmarty to localize our website, and store the localized strings in a database using our own wrapper. In its destructor, IntS... | [
"php",
"mysql",
"pear",
"mdb2"
] | 0 | 1 | 1,566 | 1 | 0 | 2008-09-17T08:17:59.927000 | 2008-09-18T05:47:57.920000 |
81,067 | 81,186 | Is there a more efficient text spooler than TextWriter/StringBuilder | For a situation like capturing text incrementally, for example if you were receiving all of the output.write calls when a page was rendering, and those were being appended into a textwriter over a stringbuilder. Is there a more efficient way to do this? Something that exists in dotnet already preferably? Especially if ... | I think StringBuilder is the most efficient way to append text in.net. To be more efficient you can specify the initial size of the StringBuilder when you create it. | Is there a more efficient text spooler than TextWriter/StringBuilder For a situation like capturing text incrementally, for example if you were receiving all of the output.write calls when a page was rendering, and those were being appended into a textwriter over a stringbuilder. Is there a more efficient way to do thi... | TITLE:
Is there a more efficient text spooler than TextWriter/StringBuilder
QUESTION:
For a situation like capturing text incrementally, for example if you were receiving all of the output.write calls when a page was rendering, and those were being appended into a textwriter over a stringbuilder. Is there a more effic... | [
"c#",
".net",
"performance",
"string",
"data-structures"
] | 4 | 3 | 1,252 | 3 | 0 | 2008-09-17T08:18:31.267000 | 2008-09-17T08:40:20.450000 |
81,104 | 81,340 | .NET NumericTextBox | Does anyone know why Microsoft does not ship a numeric text box with its.NET framework e.g. a text box which would ensure that the characters entered are always a valid number? It's something which is commonly used across applications of different flavours and indeed something which most GUI libraries (well, those that... | I second Garry Shutlers recommendation of using NumericUpDown. You might not like the up-down-controls, but that is the standard look of a numeric entry control in Windows, and you should think twice about using a different look. If you end up coding your own implementation (or finding one on the web), there are some p... | .NET NumericTextBox Does anyone know why Microsoft does not ship a numeric text box with its.NET framework e.g. a text box which would ensure that the characters entered are always a valid number? It's something which is commonly used across applications of different flavours and indeed something which most GUI librari... | TITLE:
.NET NumericTextBox
QUESTION:
Does anyone know why Microsoft does not ship a numeric text box with its.NET framework e.g. a text box which would ensure that the characters entered are always a valid number? It's something which is commonly used across applications of different flavours and indeed something whic... | [
".net",
"textbox",
"numerical"
] | 0 | 4 | 1,327 | 8 | 0 | 2008-09-17T08:24:51.843000 | 2008-09-17T09:09:11.660000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.