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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
174,784 | 421,087 | What are your favorite LogParser Scripts? | What are you favorite LogParser 2.2 Scripts to run against IIS logs and Event logs? I am putting a list of scripts together to run against our production environment to proactively look for issues and to help when isolating performance problems. Do you have a certain list of LogParser 2.2 scripts that you use? | I like to run queries to identify the top pages requested, the pages that have the highest sum of "time taken" as well as the pages with the highest average "time taken". With these it helps to identify heavy load sections, and sometimes leads to areas that can be improved with caching ETC. | What are your favorite LogParser Scripts? What are you favorite LogParser 2.2 Scripts to run against IIS logs and Event logs? I am putting a list of scripts together to run against our production environment to proactively look for issues and to help when isolating performance problems. Do you have a certain list of Lo... | TITLE:
What are your favorite LogParser Scripts?
QUESTION:
What are you favorite LogParser 2.2 Scripts to run against IIS logs and Event logs? I am putting a list of scripts together to run against our production environment to proactively look for issues and to help when isolating performance problems. Do you have a ... | [
"iis",
"logging",
"scripting",
"logparser",
"iis-logs"
] | 4 | 2 | 1,520 | 3 | 0 | 2008-10-06T15:34:23.557000 | 2009-01-07T16:51:25.093000 |
174,796 | 175,225 | Watermarked Textbox for Compact Framework | Does anyone know if anyone makes a watermarked textbox control for the compact framework? I already loked at the following and didn't see one. Component One Mobile Pocket PC Controls Resco Mobile Forms Toolkit | Daniel Moth has a pretty good blog post about how to do this here: TextBox with cue banner support for Windows Mobile Best of all it is simple and free! | Watermarked Textbox for Compact Framework Does anyone know if anyone makes a watermarked textbox control for the compact framework? I already loked at the following and didn't see one. Component One Mobile Pocket PC Controls Resco Mobile Forms Toolkit | TITLE:
Watermarked Textbox for Compact Framework
QUESTION:
Does anyone know if anyone makes a watermarked textbox control for the compact framework? I already loked at the following and didn't see one. Component One Mobile Pocket PC Controls Resco Mobile Forms Toolkit
ANSWER:
Daniel Moth has a pretty good blog post a... | [
"compact-framework"
] | 1 | 6 | 1,720 | 2 | 0 | 2008-10-06T15:35:56.347000 | 2008-10-06T17:06:22.107000 |
174,839 | 174,871 | Clone Debian/Ubuntu installation | Is there an easy way of cloning entire installed debian/ubuntu system? I want to have identical installation in terms of installed packages and as much as possible of settings. I've looked into options of aptitude, apt-get, synaptic but have found nothing. | This guide should answer your direct question But I would recomend Rsync and simply clone entire /root. Its only expensive the first time. You can also create your own package repository and have all your machines run their daily updates from your repository. | Clone Debian/Ubuntu installation Is there an easy way of cloning entire installed debian/ubuntu system? I want to have identical installation in terms of installed packages and as much as possible of settings. I've looked into options of aptitude, apt-get, synaptic but have found nothing. | TITLE:
Clone Debian/Ubuntu installation
QUESTION:
Is there an easy way of cloning entire installed debian/ubuntu system? I want to have identical installation in terms of installed packages and as much as possible of settings. I've looked into options of aptitude, apt-get, synaptic but have found nothing.
ANSWER:
Thi... | [
"linux",
"ubuntu",
"operating-system",
"debian",
"apt"
] | 13 | 9 | 14,829 | 8 | 0 | 2008-10-06T15:44:28.140000 | 2008-10-06T15:51:44.740000 |
174,841 | 175,050 | WPF Data Binding and IValueConverter | Why is it that when I use a converter in my binding expression in WPF, the value is not updated when the data is updated. I have a simple Person data model: class Person: INotifyPropertyChanged { public string FirstName { get; set; } public string LastName { get; set; } } My binding expression looks like this: My conve... | (see edits below; latest: #2) It isn't updating because your Person object is not capable of notifying anything that the value of FirstName or LastName has changed. See this Question. And here's how you implement INotifyPropertyChanged. ( Updated, see Edit 2 ) using System.ComponentModel;
class Person: INotifyProperty... | WPF Data Binding and IValueConverter Why is it that when I use a converter in my binding expression in WPF, the value is not updated when the data is updated. I have a simple Person data model: class Person: INotifyPropertyChanged { public string FirstName { get; set; } public string LastName { get; set; } } My binding... | TITLE:
WPF Data Binding and IValueConverter
QUESTION:
Why is it that when I use a converter in my binding expression in WPF, the value is not updated when the data is updated. I have a simple Person data model: class Person: INotifyPropertyChanged { public string FirstName { get; set; } public string LastName { get; s... | [
"c#",
"wpf",
"data-binding",
"converters"
] | 14 | 12 | 26,240 | 4 | 0 | 2008-10-06T15:45:00.400000 | 2008-10-06T16:29:48.937000 |
174,847 | 174,864 | Syntax Highlighting VS Addins | What tools are out there that compete with this product? CodeKana I know ReSharper has improved syntax highlighting. Is it comparable to this? | Both CodeRush and ReSharper do way mode than just syntax highlighting, but if that's what you're looking for, go for it they are both excellent tools. | Syntax Highlighting VS Addins What tools are out there that compete with this product? CodeKana I know ReSharper has improved syntax highlighting. Is it comparable to this? | TITLE:
Syntax Highlighting VS Addins
QUESTION:
What tools are out there that compete with this product? CodeKana I know ReSharper has improved syntax highlighting. Is it comparable to this?
ANSWER:
Both CodeRush and ReSharper do way mode than just syntax highlighting, but if that's what you're looking for, go for it ... | [
"visual-studio-2008",
"syntax-highlighting",
"visual-studio-addins"
] | 1 | 3 | 396 | 4 | 0 | 2008-10-06T15:46:45.637000 | 2008-10-06T15:50:58.297000 |
174,853 | 175,038 | What is the best way to run multiple subprocesses via fork()? | A python script need to spawn multiple sub-processes via fork(). All of those child processes should run simultaneously and the parent process should be waiting for all of them to finish. Having an ability to set some timeout on a "slow" child would be nice. The parent process goes on processing the rest of the script ... | Simple example: import os children = [] for job in jobs: child = os.fork() if child: children.append(child) else: pass # really should exec the job for child in children: os.waitpid(child, 0) Timing out a slow child is a little more work; you can use wait instead of waitpid, and cull the returned values from the list o... | What is the best way to run multiple subprocesses via fork()? A python script need to spawn multiple sub-processes via fork(). All of those child processes should run simultaneously and the parent process should be waiting for all of them to finish. Having an ability to set some timeout on a "slow" child would be nice.... | TITLE:
What is the best way to run multiple subprocesses via fork()?
QUESTION:
A python script need to spawn multiple sub-processes via fork(). All of those child processes should run simultaneously and the parent process should be waiting for all of them to finish. Having an ability to set some timeout on a "slow" ch... | [
"python",
"linux"
] | 10 | 12 | 14,156 | 4 | 0 | 2008-10-06T15:47:59.333000 | 2008-10-06T16:26:25.433000 |
174,856 | 174,868 | Printing from the web with few steps | I need to add functionality to my J2EE-based wep application: 1) Take some page, probably with form controls, convert it to some printer friendly format. 2) Print this rendered format a) without showing it and b) without a print dialog. I'm not too worried about 1, but have no idea if 2a and 2b are even possible. Thank... | you can set a specific CSS print style. and just trust that your users can use their print screen button effectively.:) here's an article from eric meyer on the subject | Printing from the web with few steps I need to add functionality to my J2EE-based wep application: 1) Take some page, probably with form controls, convert it to some printer friendly format. 2) Print this rendered format a) without showing it and b) without a print dialog. I'm not too worried about 1, but have no idea ... | TITLE:
Printing from the web with few steps
QUESTION:
I need to add functionality to my J2EE-based wep application: 1) Take some page, probably with form controls, convert it to some printer friendly format. 2) Print this rendered format a) without showing it and b) without a print dialog. I'm not too worried about 1,... | [
"css",
"jakarta-ee",
"printing"
] | 2 | 3 | 204 | 3 | 0 | 2008-10-06T15:49:08.817000 | 2008-10-06T15:51:35.580000 |
174,863 | 174,887 | How to turn off warning for no xml comment in VS 2005 | At some point in time I turned on a setting in Visual Studio 2005 that produces a warning when methods/classes don't have an xml comment associated with them. I would like to turn this off, but can't seem to find the setting again. Anyone know where this is? | Right-click your project and goto Properties. Select the Build tab on the left. Under Supress Warnings enter... 1591,1592,1573,1571,1570,1572. Though I don't recommend this because the whole point of generating documentation is to have it documented. If you don't like the warnings you can de-select the warning option i... | How to turn off warning for no xml comment in VS 2005 At some point in time I turned on a setting in Visual Studio 2005 that produces a warning when methods/classes don't have an xml comment associated with them. I would like to turn this off, but can't seem to find the setting again. Anyone know where this is? | TITLE:
How to turn off warning for no xml comment in VS 2005
QUESTION:
At some point in time I turned on a setting in Visual Studio 2005 that produces a warning when methods/classes don't have an xml comment associated with them. I would like to turn this off, but can't seem to find the setting again. Anyone know wher... | [
".net",
"visual-studio",
"visual-studio-2005",
"settings"
] | 4 | 10 | 3,946 | 4 | 0 | 2008-10-06T15:50:36.427000 | 2008-10-06T15:55:41.563000 |
174,885 | 174,974 | How do I concatenate two multi-dimensional arrays in VB? | I've got this code: rs1 = getResults(sSQL1) rs2 = getResults(sSQL2) rs1 and rs2 and 2D arrays. The first index represents the number of columns (static) and the second index represents the number of rows (dynamic). I need to join the two arrays and store them in rs3. I don't know what type rs1 and rs2 are though. | I've figured it out. Turns out I was doing it the right way all along, I was just off by one. You don't need a third array either. aRS_RU = rowsQuery(sSQL & ", 'RU'") aRS_KR = rowsQuery(sSQL & ", 'KR'")
uboundRU1 = UBound(aRS_RU, 1) uboundRU2 = UBound(aRS_RU, 2) uboundKR2 = Ubound(aRS_KR, 2)
' Redim original array Re... | How do I concatenate two multi-dimensional arrays in VB? I've got this code: rs1 = getResults(sSQL1) rs2 = getResults(sSQL2) rs1 and rs2 and 2D arrays. The first index represents the number of columns (static) and the second index represents the number of rows (dynamic). I need to join the two arrays and store them in ... | TITLE:
How do I concatenate two multi-dimensional arrays in VB?
QUESTION:
I've got this code: rs1 = getResults(sSQL1) rs2 = getResults(sSQL2) rs1 and rs2 and 2D arrays. The first index represents the number of columns (static) and the second index represents the number of rows (dynamic). I need to join the two arrays ... | [
"arrays",
"ms-access",
"vba",
"concatenation"
] | 0 | 1 | 4,756 | 3 | 0 | 2008-10-06T15:55:40.427000 | 2008-10-06T16:15:20.387000 |
174,888 | 174,988 | ASP.NET/IIS6: How to search the server's mime map? | i want to find the mime-type for a given file extension on an IIS ASP.NET web-server from the code-behind file. i want to search the same list that the server itself uses when serving up a file. This means that any mime types a web-server administrator has added to the Mime Map will be included. i could blindly use HKE... | Here's one I made earlier: public static string GetMimeTypeFromExtension(string extension) { using (DirectoryEntry mimeMap = new DirectoryEntry("IIS://Localhost/MimeMap")) { PropertyValueCollection propValues = mimeMap.Properties["MimeMap"];
foreach (object value in propValues) { IISOle.IISMimeType mimeType = (IISOle.... | ASP.NET/IIS6: How to search the server's mime map? i want to find the mime-type for a given file extension on an IIS ASP.NET web-server from the code-behind file. i want to search the same list that the server itself uses when serving up a file. This means that any mime types a web-server administrator has added to the... | TITLE:
ASP.NET/IIS6: How to search the server's mime map?
QUESTION:
i want to find the mime-type for a given file extension on an IIS ASP.NET web-server from the code-behind file. i want to search the same list that the server itself uses when serving up a file. This means that any mime types a web-server administrato... | [
"asp.net",
"iis",
"mime",
"mime-types"
] | 11 | 10 | 6,681 | 3 | 0 | 2008-10-06T15:55:52.233000 | 2008-10-06T16:17:22.940000 |
174,890 | 175,101 | How to output CDATA using ElementTree | I've discovered that cElementTree is about 30 times faster than xml.dom.minidom and I'm rewriting my XML encoding/decoding code. However, I need to output XML that contains CDATA sections and there doesn't seem to be a way to do that with ElementTree. Can it be done? | After a bit of work, I found the answer myself. Looking at the ElementTree.py source code, I found there was special handling of XML comments and preprocessing instructions. What they do is create a factory function for the special element type that uses a special (non-string) tag value to differentiate it from regular... | How to output CDATA using ElementTree I've discovered that cElementTree is about 30 times faster than xml.dom.minidom and I'm rewriting my XML encoding/decoding code. However, I need to output XML that contains CDATA sections and there doesn't seem to be a way to do that with ElementTree. Can it be done? | TITLE:
How to output CDATA using ElementTree
QUESTION:
I've discovered that cElementTree is about 30 times faster than xml.dom.minidom and I'm rewriting my XML encoding/decoding code. However, I need to output XML that contains CDATA sections and there doesn't seem to be a way to do that with ElementTree. Can it be do... | [
"python",
"xml"
] | 52 | 29 | 61,648 | 16 | 0 | 2008-10-06T15:56:07.537000 | 2008-10-06T16:41:48.007000 |
174,891 | 175,146 | Get a handle on event listening in JavaScript | Last week we released Omniture's analytics code onto a large volume of web sites after tinkering and testing for the last week or so. On almost all of our site templates, it works just fine. In a few scattered, unpredictable situations, there is a crippling, browser-crashing experience that may turn away some users. We... | I did an "inspect element" on a link in that page with firebug, and in the DOM tab it says there is an onclick function (anonymous), and also some other function called "s_onclick_0". I coaxed firebug placing a watch like alert(document.links[0].onclick) to alert me the onclick function that omniture (i guess) attaches... | Get a handle on event listening in JavaScript Last week we released Omniture's analytics code onto a large volume of web sites after tinkering and testing for the last week or so. On almost all of our site templates, it works just fine. In a few scattered, unpredictable situations, there is a crippling, browser-crashin... | TITLE:
Get a handle on event listening in JavaScript
QUESTION:
Last week we released Omniture's analytics code onto a large volume of web sites after tinkering and testing for the last week or so. On almost all of our site templates, it works just fine. In a few scattered, unpredictable situations, there is a cripplin... | [
"javascript",
"firebug",
"event-listener"
] | 7 | 4 | 3,793 | 5 | 0 | 2008-10-06T15:56:17.973000 | 2008-10-06T16:51:05.697000 |
174,914 | 177,833 | Upgrade to Quartz 1.6 on JBoss 4.2.x | Is there a recommended way to upgrade Quartz in JBoss 4.2.x? JBoss bundles quartz 1.5.2, but I have encountered issues ( QUARTZ-399, QUARTZ-520 ) that I want to avoid. I would not want to patch quartz.jar in JBoss just to resolve the errors, but instead provide a new quartz.jar (plus associated configuration artifacts)... | After trying around following skaffman's comments, I have found a very simple solution that does not involve changing JBoss' class loading behavior. Simply replacing the quartz.jar in ${jboss.server.dir}/lib with quartz 1.6 does the job, and I haven't had any problems yet. Restarting shows the following output: [Quartz... | Upgrade to Quartz 1.6 on JBoss 4.2.x Is there a recommended way to upgrade Quartz in JBoss 4.2.x? JBoss bundles quartz 1.5.2, but I have encountered issues ( QUARTZ-399, QUARTZ-520 ) that I want to avoid. I would not want to patch quartz.jar in JBoss just to resolve the errors, but instead provide a new quartz.jar (plu... | TITLE:
Upgrade to Quartz 1.6 on JBoss 4.2.x
QUESTION:
Is there a recommended way to upgrade Quartz in JBoss 4.2.x? JBoss bundles quartz 1.5.2, but I have encountered issues ( QUARTZ-399, QUARTZ-520 ) that I want to avoid. I would not want to patch quartz.jar in JBoss just to resolve the errors, but instead provide a n... | [
"java",
"jboss",
"upgrade",
"quartz-scheduler"
] | 0 | 1 | 3,282 | 2 | 0 | 2008-10-06T16:02:16.980000 | 2008-10-07T10:05:31.800000 |
174,915 | 175,018 | What PHP / MySQL drivers or Database Abstraction Layers Support Prepared Statements? | I am working on a project that is built on an extended version of the default PDO and PDOStatement classes and as such it uses PDO style named parameters instead of the "?" placeholder for variables. However, the client is now requesting that we look into using a different driver because their version OS X Web Server a... | PDO and ADODB both support prepared statements, but the API is not great. Most frameworks provide an abstraction to one of those. I'm using Zend_Db from the Zend Framework and I highly recommend it. It has a select class for composing queries (which turn into prepared statements when queried against the database adapte... | What PHP / MySQL drivers or Database Abstraction Layers Support Prepared Statements? I am working on a project that is built on an extended version of the default PDO and PDOStatement classes and as such it uses PDO style named parameters instead of the "?" placeholder for variables. However, the client is now requesti... | TITLE:
What PHP / MySQL drivers or Database Abstraction Layers Support Prepared Statements?
QUESTION:
I am working on a project that is built on an extended version of the default PDO and PDOStatement classes and as such it uses PDO style named parameters instead of the "?" placeholder for variables. However, the clie... | [
"php",
"pdo",
"prepared-statement",
"database-abstraction"
] | 0 | 2 | 848 | 4 | 0 | 2008-10-06T16:03:19.600000 | 2008-10-06T16:22:16.970000 |
174,916 | 174,926 | How do you specify your Content Type in ASP.NET WebForms? | I'm specifying my doctype as xhtml strict, but it's being sent over the wire as a content type of text/html. I'd like to specify that the content type is application/xhtml+xm, but I can't figure out where, or if, I can configure this from within my application | You can specify it in the @ page attributes section, like this: <%@ Page ContentType="application/xhtml+xm" %>...more on MSDN. | How do you specify your Content Type in ASP.NET WebForms? I'm specifying my doctype as xhtml strict, but it's being sent over the wire as a content type of text/html. I'd like to specify that the content type is application/xhtml+xm, but I can't figure out where, or if, I can configure this from within my application | TITLE:
How do you specify your Content Type in ASP.NET WebForms?
QUESTION:
I'm specifying my doctype as xhtml strict, but it's being sent over the wire as a content type of text/html. I'd like to specify that the content type is application/xhtml+xm, but I can't figure out where, or if, I can configure this from withi... | [
"asp.net",
"webforms",
"content-type",
"xhtml-1.0-strict"
] | 9 | 15 | 19,515 | 3 | 0 | 2008-10-06T16:03:34.620000 | 2008-10-06T16:05:50.857000 |
174,923 | 174,940 | Saving - Order of operations in .NET (C#) | I have a btnSave_Click() function in my code-behind. If a user clicks the save button (image) I created, it calls this function: protected void btnSave_Click(object sender, EventArgs e) { this.saveForm(); txtMessages.Text = "Save Complete"; } The saveForm() function obviously saves the form (through stored procedures).... | This is a synchronous method. It's going to wait until the saveForm() method has returned (exited) it's completion before it can move on. | Saving - Order of operations in .NET (C#) I have a btnSave_Click() function in my code-behind. If a user clicks the save button (image) I created, it calls this function: protected void btnSave_Click(object sender, EventArgs e) { this.saveForm(); txtMessages.Text = "Save Complete"; } The saveForm() function obviously s... | TITLE:
Saving - Order of operations in .NET (C#)
QUESTION:
I have a btnSave_Click() function in my code-behind. If a user clicks the save button (image) I created, it calls this function: protected void btnSave_Click(object sender, EventArgs e) { this.saveForm(); txtMessages.Text = "Save Complete"; } The saveForm() fu... | [
".net",
"save"
] | 2 | 5 | 960 | 5 | 0 | 2008-10-06T16:04:56.630000 | 2008-10-06T16:07:25.207000 |
174,933 | 174,967 | How to get a single character without pressing enter? | How can I get a single keyboard character from the terminal with Ruby without pressing enter? I tried Curses::getch, but that didn't really work for me. | http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/2999 #!/usr/bin/ruby
begin system("stty raw -echo") str = STDIN.getc ensure system("stty -raw echo") end p str.chr (Tested on my OS X system, may not be portable to all Ruby platforms). See http://www.rubyquiz.com/quiz5.html for some additional suggestions, i... | How to get a single character without pressing enter? How can I get a single keyboard character from the terminal with Ruby without pressing enter? I tried Curses::getch, but that didn't really work for me. | TITLE:
How to get a single character without pressing enter?
QUESTION:
How can I get a single keyboard character from the terminal with Ruby without pressing enter? I tried Curses::getch, but that didn't really work for me.
ANSWER:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/2999 #!/usr/bin/ruby
begi... | [
"ruby",
"getch"
] | 46 | 37 | 27,890 | 6 | 0 | 2008-10-06T16:06:20.747000 | 2008-10-06T16:14:35.223000 |
174,942 | 174,978 | How should strace be used? | A colleague once told me that the last option when everything has failed to debug on Linux was to use strace. I tried to learn the science behind this strange tool, but I am not a system admin guru and I didn’t really get results. So, What is it exactly and what does it do? How and in which cases should it be used? How... | Strace Overview strace can be seen as a light weight debugger. It allows a programmer / user to quickly find out how a program is interacting with the OS. It does this by monitoring system calls and signals. Uses Good for when you don't have source code or don't want to be bothered to really go through it. Also, useful... | How should strace be used? A colleague once told me that the last option when everything has failed to debug on Linux was to use strace. I tried to learn the science behind this strange tool, but I am not a system admin guru and I didn’t really get results. So, What is it exactly and what does it do? How and in which c... | TITLE:
How should strace be used?
QUESTION:
A colleague once told me that the last option when everything has failed to debug on Linux was to use strace. I tried to learn the science behind this strange tool, but I am not a system admin guru and I didn’t really get results. So, What is it exactly and what does it do? ... | [
"linux",
"debugging",
"strace"
] | 299 | 204 | 310,175 | 12 | 0 | 2008-10-06T16:07:41.040000 | 2008-10-06T16:16:16.297000 |
174,948 | 175,013 | Do you need a framework to write Ruby or Python code for the web? | Every time I see Ruby or Python discussed in the context of web development, it's always with a framework (Rails for Ruby, Django for Python). Are these frameworks necessary? If not, is there a reason why these languages are often used within a framework, while Perl and PHP are not? | The short answer is no, they are not necessary. In ruby you have.erb templates that can be used in a similar way as you use PHP pages. You can write a site in ruby or Python using several technologies (Rails-like frameworks, Templates or even talking directly with the HTTP library and building the page CGI-style). Web ... | Do you need a framework to write Ruby or Python code for the web? Every time I see Ruby or Python discussed in the context of web development, it's always with a framework (Rails for Ruby, Django for Python). Are these frameworks necessary? If not, is there a reason why these languages are often used within a framework... | TITLE:
Do you need a framework to write Ruby or Python code for the web?
QUESTION:
Every time I see Ruby or Python discussed in the context of web development, it's always with a framework (Rails for Ruby, Django for Python). Are these frameworks necessary? If not, is there a reason why these languages are often used ... | [
"frameworks"
] | 6 | 3 | 2,633 | 14 | 0 | 2008-10-06T16:10:10.067000 | 2008-10-06T16:21:12.153000 |
174,968 | 175,034 | How many parameters are too many? | Routines can have parameters, that's no news. You can define as many parameters as you may need, but too many of them will make your routine difficult to understand and maintain. Of course, you could use a structured variable as a workaround: putting all those variables in a single struct and passing it to the routine.... | When is something considered so obscene as to be something that can be regulated despite the 1st Amendment guarantee to free speech? According to Justice Potter Stewart, "I know it when I see it." The same holds here. I hate making hard and fast rules like this because the answer changes not only depending on the size ... | How many parameters are too many? Routines can have parameters, that's no news. You can define as many parameters as you may need, but too many of them will make your routine difficult to understand and maintain. Of course, you could use a structured variable as a workaround: putting all those variables in a single str... | TITLE:
How many parameters are too many?
QUESTION:
Routines can have parameters, that's no news. You can define as many parameters as you may need, but too many of them will make your routine difficult to understand and maintain. Of course, you could use a structured variable as a workaround: putting all those variabl... | [
"parameters",
"language-agnostic"
] | 228 | 162 | 179,528 | 34 | 0 | 2008-10-06T16:14:48.670000 | 2008-10-06T16:25:52.597000 |
174,981 | 185,820 | Mono IDE on Windows | Is there any IDE for coding mono on windows platform? | MonoDevelop has now released a installer for Windows. You no longer need to build it from source. It is available from the MonoDevelop website However on windows it runs on the.NET Framework, not Mono - it uses the.NET debugger instead of the Mono one. | Mono IDE on Windows Is there any IDE for coding mono on windows platform? | TITLE:
Mono IDE on Windows
QUESTION:
Is there any IDE for coding mono on windows platform?
ANSWER:
MonoDevelop has now released a installer for Windows. You no longer need to build it from source. It is available from the MonoDevelop website However on windows it runs on the.NET Framework, not Mono - it uses the.NET ... | [
"ide",
"mono"
] | 14 | 11 | 5,943 | 5 | 0 | 2008-10-06T16:16:29.760000 | 2008-10-09T03:21:28.247000 |
174,986 | 175,914 | How do I change the colours of a textarea in actionscript? | I create a TextArea in actionscript: var textArea:TextArea = new TextArea(); I want it to have a black background. I've tried textArea.setStyle("backgroundColor", 0x000000); and I've tried textArea.opaqueBackground = 0x000000; but the TextArea stays white. What should I do? | TextArea is a UI component built from TextField and other Flash built-in classes and UIComponents. As with most of the Adobe UI components, nothing is as it seems when setting properties. To set the color of the area behind the text in the TextArea, you need to actually set the opaque background of its internal TextFie... | How do I change the colours of a textarea in actionscript? I create a TextArea in actionscript: var textArea:TextArea = new TextArea(); I want it to have a black background. I've tried textArea.setStyle("backgroundColor", 0x000000); and I've tried textArea.opaqueBackground = 0x000000; but the TextArea stays white. What... | TITLE:
How do I change the colours of a textarea in actionscript?
QUESTION:
I create a TextArea in actionscript: var textArea:TextArea = new TextArea(); I want it to have a black background. I've tried textArea.setStyle("backgroundColor", 0x000000); and I've tried textArea.opaqueBackground = 0x000000; but the TextArea... | [
"flash",
"actionscript",
"skinning"
] | 2 | 5 | 6,051 | 2 | 0 | 2008-10-06T16:17:07.120000 | 2008-10-06T19:53:35.220000 |
175,042 | 175,060 | Disable 2 buttons on form submission ( ASP.NET ) | I have this solution for a single button: myButton.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(myButton).ToString()); Which works pretty well for one button, any ideas on how to expand this to 2 buttons? | You could add an clientside onSubmit handler, or you could do this: myButton.Attributes.Add("onclick", "this.disabled=true; document.getElementById('" + button2.ClientID + "').disabled = true;" + GetPostBackEventReference(myButton).ToString()); | Disable 2 buttons on form submission ( ASP.NET ) I have this solution for a single button: myButton.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(myButton).ToString()); Which works pretty well for one button, any ideas on how to expand this to 2 buttons? | TITLE:
Disable 2 buttons on form submission ( ASP.NET )
QUESTION:
I have this solution for a single button: myButton.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(myButton).ToString()); Which works pretty well for one button, any ideas on how to expand this to 2 buttons?
ANSWER:
You coul... | [
"asp.net"
] | 2 | 3 | 523 | 3 | 0 | 2008-10-06T16:27:56.133000 | 2008-10-06T16:31:51.570000 |
175,044 | 175,130 | Django development IDE | I have done a little Django development, but it has all been in a text editor. I was curious what more advanced development tools others are using in their Django development. I am used to using Visual Studio for development and really like the IntelliSense, code completion, and file organization it provides and would ... | I use Eclipse and a plain vanilla PyDev. There isn't any specific Django functionality. The best I came up with was setting up a run profile to run the development web server. If you add the web tools project (WTP), you'll get syntax highlighting in your templates, but nothing that relates to the specific template lang... | Django development IDE I have done a little Django development, but it has all been in a text editor. I was curious what more advanced development tools others are using in their Django development. I am used to using Visual Studio for development and really like the IntelliSense, code completion, and file organization... | TITLE:
Django development IDE
QUESTION:
I have done a little Django development, but it has all been in a text editor. I was curious what more advanced development tools others are using in their Django development. I am used to using Visual Studio for development and really like the IntelliSense, code completion, and... | [
"python",
"django",
"ide"
] | 286 | 112 | 219,015 | 32 | 0 | 2008-10-06T16:28:18.830000 | 2008-10-06T16:48:05.827000 |
175,056 | 1,228,320 | SVN checkout or export for production environment? | In a project I am working on, we have an ongoing discussion amongst the dev team - should the production environment be deployed as a checkout from the SVN repository or as an export? The development environment is obviously a checkout, since it is constantly updated. For the production, I'm personally for checking out... | The Subversion FAQ seems to advocate deployment as a checkout, autoupdated with post-commit hook scripts. They prevent Apache from exporting.svn folders (probably a good idea) by adding the following in httpd.conf: # Disallow browsing of Subversion working copy administrative dirs. Order deny,allow Deny from all I'm ex... | SVN checkout or export for production environment? In a project I am working on, we have an ongoing discussion amongst the dev team - should the production environment be deployed as a checkout from the SVN repository or as an export? The development environment is obviously a checkout, since it is constantly updated. ... | TITLE:
SVN checkout or export for production environment?
QUESTION:
In a project I am working on, we have an ongoing discussion amongst the dev team - should the production environment be deployed as a checkout from the SVN repository or as an export? The development environment is obviously a checkout, since it is co... | [
"svn",
"deployment"
] | 27 | 13 | 20,477 | 10 | 0 | 2008-10-06T16:31:09.840000 | 2009-08-04T15:51:34.890000 |
175,066 | 175,756 | SQL Server: Is it possible to insert into two tables at the same time? | My database contains three tables called Object_Table, Data_Table and Link_Table. The link table just contains two columns, the identity of an object record and an identity of a data record. I want to copy the data from DATA_TABLE where it is linked to one given object identity and insert corresponding records into Dat... | The following sets up the situation I had, using table variables. DECLARE @Object_Table TABLE ( Id INT NOT NULL PRIMARY KEY )
DECLARE @Link_Table TABLE ( ObjectId INT NOT NULL, DataId INT NOT NULL )
DECLARE @Data_Table TABLE ( Id INT NOT NULL Identity(1,1), Data VARCHAR(50) NOT NULL )
-- create two objects '1' and '... | SQL Server: Is it possible to insert into two tables at the same time? My database contains three tables called Object_Table, Data_Table and Link_Table. The link table just contains two columns, the identity of an object record and an identity of a data record. I want to copy the data from DATA_TABLE where it is linked... | TITLE:
SQL Server: Is it possible to insert into two tables at the same time?
QUESTION:
My database contains three tables called Object_Table, Data_Table and Link_Table. The link table just contains two columns, the identity of an object record and an identity of a data record. I want to copy the data from DATA_TABLE ... | [
"sql",
"sql-server",
"insert",
"temp-tables"
] | 185 | 23 | 446,591 | 11 | 0 | 2008-10-06T16:33:58.570000 | 2008-10-06T19:16:38.383000 |
175,075 | 178,111 | Subtext install gives error in Medium trust level | I am trying to install Subtext in a medium trust level environment (host: Crystaltech ) and am getting the following error (see below). I was able to do the administration setup but when it tries to go to the blog for actual use, boom. I know I could "upgrade" the environment to a full trust level but I want to underst... | I don't think there is another way to get around the error other than moving to full trust or removing the call to CheckUrlAccessForPrincipal() and recompiling. But by the looks of things, this particular issue has already been corrected in the subtext SVN (revision 3290). They have also added a new build task for subt... | Subtext install gives error in Medium trust level I am trying to install Subtext in a medium trust level environment (host: Crystaltech ) and am getting the following error (see below). I was able to do the administration setup but when it tries to go to the blog for actual use, boom. I know I could "upgrade" the envir... | TITLE:
Subtext install gives error in Medium trust level
QUESTION:
I am trying to install Subtext in a medium trust level environment (host: Crystaltech ) and am getting the following error (see below). I was able to do the administration setup but when it tries to go to the blog for actual use, boom. I know I could "... | [
"asp.net",
"installation",
"medium-trust",
"full-trust",
"subtext"
] | 0 | 1 | 769 | 3 | 0 | 2008-10-06T16:35:39.360000 | 2008-10-07T11:54:55.417000 |
175,091 | 175,145 | PHP session side-effect warning with global variables as a source of data | I'm trying to host a PHP web site that was given to me. I see this warning: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You c... | basically you have a variable with the same name as your session. ex: $_SESSION['var1'] = null; $var1 = 'something'; which will reproduce this error. you can stop PHP from trying to find existing variables and warning you about them by adding these lines to your script: ini_set('session.bug_compat_warn', 0); ini_set('s... | PHP session side-effect warning with global variables as a source of data I'm trying to host a PHP web site that was given to me. I see this warning: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider globa... | TITLE:
PHP session side-effect warning with global variables as a source of data
QUESTION:
I'm trying to host a PHP web site that was given to me. I see this warning: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does ... | [
"php",
"session",
"global-variables",
"session-variables"
] | 43 | 99 | 42,497 | 5 | 0 | 2008-10-06T16:39:46.170000 | 2008-10-06T16:51:01.937000 |
175,099 | 177,916 | Sorting a list into multiple vertical columns | Does anyone have a good algorithm for re-sorting an array of values (already pre-sorted) so that they can be displayed in multiple (N) columns and be read vertically? This would be implemented in.Net but I'd prefer something portable and not some magic function. A good example of it working is the ASP.Net CheckBoxList ... | Okay, I'm sorry for my initial statement, but when you want it to work as you described in the comment to my first answer, you need in fact re-sort the data... well somewhat. It could maybe be done without the helper matrix, however the resulting code is probably very complex and as long as the matrix will only use a c... | Sorting a list into multiple vertical columns Does anyone have a good algorithm for re-sorting an array of values (already pre-sorted) so that they can be displayed in multiple (N) columns and be read vertically? This would be implemented in.Net but I'd prefer something portable and not some magic function. A good exam... | TITLE:
Sorting a list into multiple vertical columns
QUESTION:
Does anyone have a good algorithm for re-sorting an array of values (already pre-sorted) so that they can be displayed in multiple (N) columns and be read vertically? This would be implemented in.Net but I'd prefer something portable and not some magic fun... | [
".net",
"list",
"checkbox",
"sorting"
] | 6 | 6 | 4,979 | 3 | 0 | 2008-10-06T16:41:39.443000 | 2008-10-07T10:45:19.023000 |
175,100 | 175,325 | C++ thread/process identifier | Is there a portable way of getting thread and/or process identifier (string, int,...) with C++? | There is no portable way when portable means a way that works on every platform for that a C++ compiler exists. Such a way had to be part of the C++ standard, in which case it really would work everywhere (just like the other parts of the C++ standard work everywhere). Everything not in the standard is not guaranteed t... | C++ thread/process identifier Is there a portable way of getting thread and/or process identifier (string, int,...) with C++? | TITLE:
C++ thread/process identifier
QUESTION:
Is there a portable way of getting thread and/or process identifier (string, int,...) with C++?
ANSWER:
There is no portable way when portable means a way that works on every platform for that a C++ compiler exists. Such a way had to be part of the C++ standard, in which... | [
"c++",
"multithreading",
"process"
] | 5 | 6 | 2,273 | 8 | 0 | 2008-10-06T16:41:39.647000 | 2008-10-06T17:36:06.323000 |
175,103 | 175,141 | Regex to match URL end-of-line or "/" character | I have a URL, and I'm trying to match it to a regular expression to pull out some groups. The problem I'm having is that the URL can either end or continue with a "/" and more URL text. I'd like to match URLs like this: http://server/xyz/2008-10-08-4 http://server/xyz/2008-10-08-4/ http://server/xyz/2008-10-08-4/123/mo... | /(.+)/(\d{4}-\d{2}-\d{2})-(\d+)(/.*)?$ 1st Capturing Group (.+).+ matches any character (except for line terminators) + Quantifier — Matches between one and unlimited times, as many times as possible, giving back as needed (greedy) 2nd Capturing Group (\d{4}-\d{2}-\d{2}) \d{4} matches a digit (equal to [0-9] ) {4} Quan... | Regex to match URL end-of-line or "/" character I have a URL, and I'm trying to match it to a regular expression to pull out some groups. The problem I'm having is that the URL can either end or continue with a "/" and more URL text. I'd like to match URLs like this: http://server/xyz/2008-10-08-4 http://server/xyz/200... | TITLE:
Regex to match URL end-of-line or "/" character
QUESTION:
I have a URL, and I'm trying to match it to a regular expression to pull out some groups. The problem I'm having is that the URL can either end or continue with a "/" and more URL text. I'd like to match URLs like this: http://server/xyz/2008-10-08-4 htt... | [
"regex"
] | 97 | 50 | 126,715 | 4 | 0 | 2008-10-06T16:42:16.650000 | 2008-10-06T16:49:57.290000 |
175,109 | 175,111 | How do I register a custom IObjectRenderer in log4net? | I'm doing some research into using log4net, and I found the IObjectRenderer interface interesting. It would allow us to control how types are logged and provide a different, possibly more user-friendly ToString() implementation. I just started looking at log4net though, and can't seem to find a logical way to programma... | I poked around with it some while writing the question and came up with this: using System.IO; using log4net; using log4net.Config; using log4net.ObjectRenderer; using log4net.Util;
namespace ConsoleApplication1 { class Program { static void Main(string[] args) { BasicConfigurator.Configure();
ILog log = LogManager.G... | How do I register a custom IObjectRenderer in log4net? I'm doing some research into using log4net, and I found the IObjectRenderer interface interesting. It would allow us to control how types are logged and provide a different, possibly more user-friendly ToString() implementation. I just started looking at log4net th... | TITLE:
How do I register a custom IObjectRenderer in log4net?
QUESTION:
I'm doing some research into using log4net, and I found the IObjectRenderer interface interesting. It would allow us to control how types are logged and provide a different, possibly more user-friendly ToString() implementation. I just started loo... | [
"c#",
"log4net"
] | 10 | 11 | 3,733 | 2 | 0 | 2008-10-06T16:43:19.190000 | 2008-10-06T16:45:18.127000 |
175,115 | 2,381,581 | How to Show Ballon tooltip when mouse stops | [edit] So I used one of the javascript tooltips suggested below. I got the tips to show when you stop and hide if you move. The only problem is it works when I do this: document.onmousemove = (function() { var onmousestop = function() { Tip('Click to search here'); document.getElementById('MyDiv').onmousemove = functio... | A bit late to be answering this, but this will be helpful for those in need. I needed this function to be able to detect when the mouse stopped moving for a certain time to hide an HTML/JS player controller when hovering over a video. This is the revised code for the tooltip: document.getElementById('MyDiv').onmousemov... | How to Show Ballon tooltip when mouse stops [edit] So I used one of the javascript tooltips suggested below. I got the tips to show when you stop and hide if you move. The only problem is it works when I do this: document.onmousemove = (function() { var onmousestop = function() { Tip('Click to search here'); document.g... | TITLE:
How to Show Ballon tooltip when mouse stops
QUESTION:
[edit] So I used one of the javascript tooltips suggested below. I got the tips to show when you stop and hide if you move. The only problem is it works when I do this: document.onmousemove = (function() { var onmousestop = function() { Tip('Click to search ... | [
"javascript",
"onmousemove",
"balloon"
] | 1 | 6 | 10,416 | 4 | 0 | 2008-10-06T16:46:02.633000 | 2010-03-04T18:04:54.593000 |
175,116 | 175,189 | Are there shortcut keys for ReSharper's Unit Test Runner? | For obvious productivity reasons, I make an effort of learning and using as many of the keyboard shortcuts for the various Re# commands. However, it seems that the unit test runner does not have any associated shortcut keys. I want to be able to select certain tests and be able to run or debug them without resorting to... | ReSharper adds items to Visual Studio's keyboard settings dialog box. Go to: Tools -> Options, Environment -> Keyboard In the search bar, type "resharper" and see the vast options that you can control with the keyboard. Specifically, there is one to launch the unit test explorer window, and there's a couple called ReSh... | Are there shortcut keys for ReSharper's Unit Test Runner? For obvious productivity reasons, I make an effort of learning and using as many of the keyboard shortcuts for the various Re# commands. However, it seems that the unit test runner does not have any associated shortcut keys. I want to be able to select certain t... | TITLE:
Are there shortcut keys for ReSharper's Unit Test Runner?
QUESTION:
For obvious productivity reasons, I make an effort of learning and using as many of the keyboard shortcuts for the various Re# commands. However, it seems that the unit test runner does not have any associated shortcut keys. I want to be able t... | [
"unit-testing",
"keyboard-shortcuts",
"resharper",
"command"
] | 71 | 72 | 17,112 | 12 | 0 | 2008-10-06T16:46:07.110000 | 2008-10-06T16:58:45.557000 |
175,129 | 175,163 | What are best practices for using thread local storage in .NET? | I have a requirement in my application that I think can be met by using thread local storage, but I'm wondering if it's one of those things that's best to avoid. I have read a few articles on the subject: http://www.dotnetcoders.com/web/Articles/ShowArticle.aspx?article=58 http://msdn.microsoft.com/en-us/library/system... | A gotcha for asp.net applications: the processing of a single request might switch threads, namely if there are parallel requests in the same session. Because of this, anything you put in TLS before the HttpApplication.PostRequireRequestState event might not be there later, because you are on a different thread. [Edit ... | What are best practices for using thread local storage in .NET? I have a requirement in my application that I think can be met by using thread local storage, but I'm wondering if it's one of those things that's best to avoid. I have read a few articles on the subject: http://www.dotnetcoders.com/web/Articles/ShowArticl... | TITLE:
What are best practices for using thread local storage in .NET?
QUESTION:
I have a requirement in my application that I think can be met by using thread local storage, but I'm wondering if it's one of those things that's best to avoid. I have read a few articles on the subject: http://www.dotnetcoders.com/web/A... | [
".net",
"multithreading",
"thread-local"
] | 7 | 7 | 5,185 | 3 | 0 | 2008-10-06T16:47:54.440000 | 2008-10-06T16:53:41.417000 |
175,131 | 175,174 | Using stored procedures for calculations | I am currently working on a project that will store specific financial information about our clients in a MS SQL database. Later, our users need to be able to query the database to return data from the clients based on certain criteria (eg. clients bigger then a certain size, clients in a certain geographical location)... | It really depends on the operations. It is quite possible to have these things as calculated columns in the database, have them pre-calculated in views or SPs (or use UDFs), have them calculated separately and stored during the ETL or a summarizing phase or let the client do it. I would avoid letting the client do anyt... | Using stored procedures for calculations I am currently working on a project that will store specific financial information about our clients in a MS SQL database. Later, our users need to be able to query the database to return data from the clients based on certain criteria (eg. clients bigger then a certain size, cl... | TITLE:
Using stored procedures for calculations
QUESTION:
I am currently working on a project that will store specific financial information about our clients in a MS SQL database. Later, our users need to be able to query the database to return data from the clients based on certain criteria (eg. clients bigger then ... | [
"sql-server",
"database",
"stored-procedures"
] | 1 | 1 | 10,997 | 10 | 0 | 2008-10-06T16:48:18.867000 | 2008-10-06T16:56:17.010000 |
175,156 | 351,164 | Cheap places for MSDN Licenses | A similar question has been asked: MSDN subscriptions on the cheap?, but I am not interested in the solutions provided: I am not developing a product for sale, I am starting up a consulting company, so Empower is not an option. I have visited the links to MS regarding MSDN subscriptions and they do not point to a way t... | What you want is the Action Pack: https://partner.microsoft.com/US/40016455. (Note, as an employee of Microsoft, I apologize that you have to LOG OUT of your LiveID to see this page if that LiveID is not already attached to a Registered Partner.) You don't have to be certified to get access to this, just registered (th... | Cheap places for MSDN Licenses A similar question has been asked: MSDN subscriptions on the cheap?, but I am not interested in the solutions provided: I am not developing a product for sale, I am starting up a consulting company, so Empower is not an option. I have visited the links to MS regarding MSDN subscriptions a... | TITLE:
Cheap places for MSDN Licenses
QUESTION:
A similar question has been asked: MSDN subscriptions on the cheap?, but I am not interested in the solutions provided: I am not developing a product for sale, I am starting up a consulting company, so Empower is not an option. I have visited the links to MS regarding MS... | [
"msdn"
] | 7 | 3 | 4,582 | 5 | 0 | 2008-10-06T16:53:15.147000 | 2008-12-08T22:24:45.217000 |
175,170 | 175,178 | How do I slice an array in Excel VBA? | What function can I use in Excel VBA to slice an array? | Application.WorksheetFunction.Index(array, row, column) If you specify a zero value for row or column, then you'll get the entire column or row that is specified. Example: Application.WorksheetFunction.Index(array, 0, 3) This will give you the entire 3rd column. If you specify both row and column as non-zero, then you'... | How do I slice an array in Excel VBA? What function can I use in Excel VBA to slice an array? | TITLE:
How do I slice an array in Excel VBA?
QUESTION:
What function can I use in Excel VBA to slice an array?
ANSWER:
Application.WorksheetFunction.Index(array, row, column) If you specify a zero value for row or column, then you'll get the entire column or row that is specified. Example: Application.WorksheetFuncti... | [
"arrays",
"excel",
"vba",
"worksheet-function"
] | 38 | 67 | 108,096 | 10 | 0 | 2008-10-06T16:54:46.750000 | 2008-10-06T16:57:07.977000 |
175,176 | 175,218 | Advertised disk space vs actual disk space | Why is it that advertised disk space is almost always higher than the disk space reported by the UI? For example, I have an "80 gb" hard drive, but the iTunes UI indicates only 74. I usually see this as well with hard disks and the amount reported with the drive letter. | There are 3 reasons why the amount of space you can actually use is different from that listed for the drive, all of which work against you: Hard drive manufacturers treat 1GB as one billion bytes, while the operating system calls it 1,073,741,824 bytes (1000 * 1000 * 1000 vs 1024 * 1024 * 1024). You lose some space fo... | Advertised disk space vs actual disk space Why is it that advertised disk space is almost always higher than the disk space reported by the UI? For example, I have an "80 gb" hard drive, but the iTunes UI indicates only 74. I usually see this as well with hard disks and the amount reported with the drive letter. | TITLE:
Advertised disk space vs actual disk space
QUESTION:
Why is it that advertised disk space is almost always higher than the disk space reported by the UI? For example, I have an "80 gb" hard drive, but the iTunes UI indicates only 74. I usually see this as well with hard disks and the amount reported with the dr... | [
"hardware",
"drives"
] | 8 | 30 | 6,374 | 8 | 0 | 2008-10-06T16:56:25.717000 | 2008-10-06T17:04:37.057000 |
175,205 | 175,221 | Disable anchors in Chrome/WebKit/Safari | Consider the following code: $("a").attr("disabled", "disabled"); In IE and FF, this will make anchors unclickable, but in WebKit based browsers (Google Chrome and Safari) this does nothing. The nice thing about the disabled attribute is that it is easily removed and does not effect the href and onclick attributes. Do ... | I assume that you have an onclick event handler bound to these anchor elements. Just have your event handler check the "disabled" attribute and cancel the event if it is set. Your event handler would look something like this: $("a").click(function(event){ if (this.disabled) { event.preventDefault(); } else { // make yo... | Disable anchors in Chrome/WebKit/Safari Consider the following code: $("a").attr("disabled", "disabled"); In IE and FF, this will make anchors unclickable, but in WebKit based browsers (Google Chrome and Safari) this does nothing. The nice thing about the disabled attribute is that it is easily removed and does not eff... | TITLE:
Disable anchors in Chrome/WebKit/Safari
QUESTION:
Consider the following code: $("a").attr("disabled", "disabled"); In IE and FF, this will make anchors unclickable, but in WebKit based browsers (Google Chrome and Safari) this does nothing. The nice thing about the disabled attribute is that it is easily remove... | [
"jquery",
"html",
"safari",
"google-chrome",
"webkit"
] | 7 | 7 | 5,891 | 2 | 0 | 2008-10-06T17:01:47.047000 | 2008-10-06T17:05:29.583000 |
175,210 | 175,336 | Safe to Run LogParser Against Live Production IIS Log? | Is it safe to run LogParser against our live production IIS log file? Currently, I have been copying it over to another location and then running LogParser 2.2 against the log file. Instead, I would really like to run it against the live data so that I can see changes to it immediately, however, I am a little concerned... | It shouldn't cause any problems as I don't believe it locks the file. Why would it be a problem to copy the file though just to make sure? Even if you just copy it to a local folder, a batch file could make that easy, to copy the file and run it through logparser. But it should be fine against live files. | Safe to Run LogParser Against Live Production IIS Log? Is it safe to run LogParser against our live production IIS log file? Currently, I have been copying it over to another location and then running LogParser 2.2 against the log file. Instead, I would really like to run it against the live data so that I can see chan... | TITLE:
Safe to Run LogParser Against Live Production IIS Log?
QUESTION:
Is it safe to run LogParser against our live production IIS log file? Currently, I have been copying it over to another location and then running LogParser 2.2 against the log file. Instead, I would really like to run it against the live data so t... | [
"iis",
"production",
"logparser",
"iis-logs"
] | 1 | 1 | 750 | 2 | 0 | 2008-10-06T17:03:21.850000 | 2008-10-06T17:39:17.470000 |
175,228 | 175,243 | Which is more appropriate: getters and setters or functions? | Is it ever appropriate to abandon the "getMyValue()" and "setMyValue()" pattern of getters and setters if alternative function names make the API more obvious? For example, imagine I have this class in C++: public class SomeClass { private: bool mIsVisible;
public: void draw(); void erase(); } I could add functions to... | Have a read of the article " Tell, Don't Ask " over at the Pragmatic Programmers web site and I think you'll see that the second example is the way to go. Basically, you shouldn't be spreading the logic out through your code which is implied with your first example, namely: get current visibility value, make decision b... | Which is more appropriate: getters and setters or functions? Is it ever appropriate to abandon the "getMyValue()" and "setMyValue()" pattern of getters and setters if alternative function names make the API more obvious? For example, imagine I have this class in C++: public class SomeClass { private: bool mIsVisible;
... | TITLE:
Which is more appropriate: getters and setters or functions?
QUESTION:
Is it ever appropriate to abandon the "getMyValue()" and "setMyValue()" pattern of getters and setters if alternative function names make the API more obvious? For example, imagine I have this class in C++: public class SomeClass { private: ... | [
"c++",
"coding-style",
"setter",
"getter"
] | 7 | 13 | 2,747 | 10 | 0 | 2008-10-06T17:06:44.573000 | 2008-10-06T17:12:45.247000 |
175,236 | 175,321 | Is there a better way to verify if a request accepts JSON? | Actually, I'm using this way. Do you have a better way? private bool AcceptJson(HttpRequest request) { const string JsonType = "application/json";
if (request.ContentType.ToLower(CultureInfo.InvariantCulture).StartsWith(JsonType)) { return true; }
if (request.AcceptTypes.Select(t => t.ToLower(CultureInfo.InvariantCul... | That approach can lead to false positives (it doesn't account for q values or content types of which application/json is a substring). You can find a decent Accept header parser in this article about XHTML. You'll have to port the algorithm to your language of choice and adapt it for the content-types you are using. | Is there a better way to verify if a request accepts JSON? Actually, I'm using this way. Do you have a better way? private bool AcceptJson(HttpRequest request) { const string JsonType = "application/json";
if (request.ContentType.ToLower(CultureInfo.InvariantCulture).StartsWith(JsonType)) { return true; }
if (request... | TITLE:
Is there a better way to verify if a request accepts JSON?
QUESTION:
Actually, I'm using this way. Do you have a better way? private bool AcceptJson(HttpRequest request) { const string JsonType = "application/json";
if (request.ContentType.ToLower(CultureInfo.InvariantCulture).StartsWith(JsonType)) { return tr... | [
"c#",
"asp.net",
"json",
"request",
"content-type"
] | 4 | 3 | 425 | 2 | 0 | 2008-10-06T17:10:11.210000 | 2008-10-06T17:34:05.703000 |
175,240 | 175,270 | How do I convert a file's format from Unicode to ASCII using Python? | I use a 3rd party tool that outputs a file in Unicode format. However, I prefer it to be in ASCII. The tool does not have settings to change the file format. What is the best way to convert the entire file format using Python? | You can convert the file easily enough just using the unicode function, but you'll run into problems with Unicode characters without a straight ASCII equivalent. This blog recommends the unicodedata module, which seems to take care of roughly converting characters without direct corresponding ASCII values, e.g. >>> tit... | How do I convert a file's format from Unicode to ASCII using Python? I use a 3rd party tool that outputs a file in Unicode format. However, I prefer it to be in ASCII. The tool does not have settings to change the file format. What is the best way to convert the entire file format using Python? | TITLE:
How do I convert a file's format from Unicode to ASCII using Python?
QUESTION:
I use a 3rd party tool that outputs a file in Unicode format. However, I prefer it to be in ASCII. The tool does not have settings to change the file format. What is the best way to convert the entire file format using Python?
ANSWE... | [
"python",
"unicode",
"encoding",
"file",
"ascii"
] | 24 | 44 | 51,110 | 8 | 0 | 2008-10-06T17:11:30.427000 | 2008-10-06T17:21:15.790000 |
175,247 | 175,275 | Microsoft Certified Partner? Important to Developers? | My company has recently became a Microsoft Certified Partner and from a business perspective it helps us greatly as it provides the software licenses needed to continue development in a much more cost effective manner, and the added benefit of marketing abilities. Now, I know that Microsoft Certified Partner status is ... | Yes. As a partner, you not only get access to the software, but the company gets vouchers for certification testing, making it more likely that your employer would not only support, but encourage you to get certified. I work for a MS Gold Partner and every single developer here is MCPD certified. | Microsoft Certified Partner? Important to Developers? My company has recently became a Microsoft Certified Partner and from a business perspective it helps us greatly as it provides the software licenses needed to continue development in a much more cost effective manner, and the added benefit of marketing abilities. N... | TITLE:
Microsoft Certified Partner? Important to Developers?
QUESTION:
My company has recently became a Microsoft Certified Partner and from a business perspective it helps us greatly as it provides the software licenses needed to continue development in a much more cost effective manner, and the added benefit of mark... | [
"developer-tools"
] | 8 | 6 | 1,301 | 7 | 0 | 2008-10-06T17:14:33.043000 | 2008-10-06T17:23:01.373000 |
175,256 | 175,364 | What is the best way to use assembly versioning attributes? | The AssemblyVersion and AssemblyFileVersion attributes are the built-in way of handling version numbers for.NET assemblies. While the framework provides the ability to have the least significant parts of a version number (build and revision, in Microsoft terms) automatically determined, I find the method for this prett... | On my current project, we use the Subversion revision number as the least significant (build) part of the version number, and we use a Nant script to create the project AssemblyInfo file. We use the same version number for both the AssemblyVersion and AssemblyFileVersion attributes. (The other three parts are major.min... | What is the best way to use assembly versioning attributes? The AssemblyVersion and AssemblyFileVersion attributes are the built-in way of handling version numbers for.NET assemblies. While the framework provides the ability to have the least significant parts of a version number (build and revision, in Microsoft terms... | TITLE:
What is the best way to use assembly versioning attributes?
QUESTION:
The AssemblyVersion and AssemblyFileVersion attributes are the built-in way of handling version numbers for.NET assemblies. While the framework provides the ability to have the least significant parts of a version number (build and revision, ... | [
".net",
"assemblies",
"versioning"
] | 13 | 5 | 3,754 | 8 | 0 | 2008-10-06T17:16:35.143000 | 2008-10-06T17:43:07.743000 |
175,264 | 175,282 | Synchronizing SVN repo from local to server? | So i have this local SVN repo that i am using for my dev work on a particular project, and i also have a SVN repo setup on the customers media temple account for a more secure backup. I do all of my development on my laptop so i don't always have an internet connection (hence the local SVN), so i was wondering if there... | You will probably want to svn merge versions between repositories. There are some good tutorials around how you can do that. Give a look at http://blog.red-bean.com/sussman/?p=92 or http://subversion.tigris.org/faq.html#multi-merge for a good introduction on that topic | Synchronizing SVN repo from local to server? So i have this local SVN repo that i am using for my dev work on a particular project, and i also have a SVN repo setup on the customers media temple account for a more secure backup. I do all of my development on my laptop so i don't always have an internet connection (henc... | TITLE:
Synchronizing SVN repo from local to server?
QUESTION:
So i have this local SVN repo that i am using for my dev work on a particular project, and i also have a SVN repo setup on the customers media temple account for a more secure backup. I do all of my development on my laptop so i don't always have an interne... | [
"svn"
] | 4 | 3 | 3,066 | 6 | 0 | 2008-10-06T17:20:01.767000 | 2008-10-06T17:24:11.807000 |
175,293 | 5,115,852 | Unified Navigation System for JSF (menus, breadcrumbs, sitemap) | We're using MyFaces, Richfaces & Restfaces to build a website on top of Oracle Stellant CMS. We're not using Site Studio. Are there any widgets/combination of widgets out there that could provide a unified navigation system? The site structure needs to be read from a DB table and CMS metadata fields, and we need a top ... | We faced a very similar issue last year and didn't find any set of widgets that could provide an integrated solution (we were using JSF, Facelets, RichFaces & Spring). We ended up developing our own navigation system with menu state holders (stored per session) and the breadcrumbs would just go up in the menu tree from... | Unified Navigation System for JSF (menus, breadcrumbs, sitemap) We're using MyFaces, Richfaces & Restfaces to build a website on top of Oracle Stellant CMS. We're not using Site Studio. Are there any widgets/combination of widgets out there that could provide a unified navigation system? The site structure needs to be ... | TITLE:
Unified Navigation System for JSF (menus, breadcrumbs, sitemap)
QUESTION:
We're using MyFaces, Richfaces & Restfaces to build a website on top of Oracle Stellant CMS. We're not using Site Studio. Are there any widgets/combination of widgets out there that could provide a unified navigation system? The site stru... | [
"jsf",
"richfaces",
"myfaces"
] | 1 | 2 | 2,703 | 1 | 0 | 2008-10-06T17:26:32.427000 | 2011-02-25T09:59:23.917000 |
175,296 | 178,004 | Why does TortoiseSVN (1.5.3) try to merge 1-Head when I pull from trunk? | I use TortoiseSVN 1.5.3 and VisualSVN 1.5.3 (Subversion 1.5.2) Suppose that I create a new branch (/branches/branch1) of the trunk(/trunk) then someone (also using TortoiseSVN 1.5.3) merges their branch back into the trunk. I try to merge from the trunk into the branch (to aquire all changes which might have beemn merg... | SOLVED: The answer appears to be down to a workaround we implemented here for some previous bugs in Subversion. The workaround involved the use of SomeUserName@ being placed in the url. thus http://SomeUsername@Myserver:8080/myrepo/trunk...was being used instead of... http://Myserver:8080/myrepo/trunk It seems that the... | Why does TortoiseSVN (1.5.3) try to merge 1-Head when I pull from trunk? I use TortoiseSVN 1.5.3 and VisualSVN 1.5.3 (Subversion 1.5.2) Suppose that I create a new branch (/branches/branch1) of the trunk(/trunk) then someone (also using TortoiseSVN 1.5.3) merges their branch back into the trunk. I try to merge from the... | TITLE:
Why does TortoiseSVN (1.5.3) try to merge 1-Head when I pull from trunk?
QUESTION:
I use TortoiseSVN 1.5.3 and VisualSVN 1.5.3 (Subversion 1.5.2) Suppose that I create a new branch (/branches/branch1) of the trunk(/trunk) then someone (also using TortoiseSVN 1.5.3) merges their branch back into the trunk. I try... | [
"svn",
"tortoisesvn",
"merge-tracking"
] | 0 | 1 | 464 | 2 | 0 | 2008-10-06T17:27:02.223000 | 2008-10-07T11:19:19.843000 |
175,312 | 175,399 | Bandlimited waveform generation | I am writing a software synthesizer and need to generate bandlimited, alias free waveforms in real time at 44.1 kHz samplerate. Sawtooth waveform would do for now, since I can generate a pulse wave by mixing two sawtooths together, one inverted and phase shifted. So far I've tried the following approaches: Precomputing... | There are a lot of ways to approach the bandlimited waveform generation. You will end up trading computational cost against quality as usual. I suggest that you take a look at this site here: http://www.musicdsp.org/ Check out the archive! It's full of good material. I just did a search on the keyword "bandlimited". Th... | Bandlimited waveform generation I am writing a software synthesizer and need to generate bandlimited, alias free waveforms in real time at 44.1 kHz samplerate. Sawtooth waveform would do for now, since I can generate a pulse wave by mixing two sawtooths together, one inverted and phase shifted. So far I've tried the fo... | TITLE:
Bandlimited waveform generation
QUESTION:
I am writing a software synthesizer and need to generate bandlimited, alias free waveforms in real time at 44.1 kHz samplerate. Sawtooth waveform would do for now, since I can generate a pulse wave by mixing two sawtooths together, one inverted and phase shifted. So far... | [
"audio",
"signal-processing",
"synthesizer"
] | 11 | 5 | 7,665 | 4 | 0 | 2008-10-06T17:31:43.163000 | 2008-10-06T17:49:42.677000 |
175,322 | 175,431 | Reporting Services internationalization | Possible Duplicate: Internationalization in SSRS We use SQL Server Reporting Services for our web reports. At the moment, our clients are all in the UK, so for each report, we set the Language property for the report to "English (United Kingdom)". But now we have US and French clients. So, we'll need to change the lang... | Please check out this thread. It might help you here. Internationalization in SSRS | Reporting Services internationalization Possible Duplicate: Internationalization in SSRS We use SQL Server Reporting Services for our web reports. At the moment, our clients are all in the UK, so for each report, we set the Language property for the report to "English (United Kingdom)". But now we have US and French cl... | TITLE:
Reporting Services internationalization
QUESTION:
Possible Duplicate: Internationalization in SSRS We use SQL Server Reporting Services for our web reports. At the moment, our clients are all in the UK, so for each report, we set the Language property for the report to "English (United Kingdom)". But now we hav... | [
"reporting-services",
"internationalization"
] | 6 | 4 | 2,943 | 2 | 0 | 2008-10-06T17:34:22.583000 | 2008-10-06T17:57:41.927000 |
175,344 | 176,132 | Do you count the hours spent on bug fixes towards the scrum? | HI, I am new to the scrum methodology and looking for some help to get comfortable with the environment and wondering if there needs to be a bucket to track Developers and QA hours spent on deployments and bug fixes and retests. Seems like it could have major impact on the graph. | My team is supporting a number of legacy apps, so there's quite a bit of unplanned bug fixing that occurs during each sprint. We've adopted the following practice: If the bug is easy/quick to fix (one liner, etc), then just fix it. If the bug is not trivial, and not a blocker, then add it to the backlog. If the bug is ... | Do you count the hours spent on bug fixes towards the scrum? HI, I am new to the scrum methodology and looking for some help to get comfortable with the environment and wondering if there needs to be a bucket to track Developers and QA hours spent on deployments and bug fixes and retests. Seems like it could have major... | TITLE:
Do you count the hours spent on bug fixes towards the scrum?
QUESTION:
HI, I am new to the scrum methodology and looking for some help to get comfortable with the environment and wondering if there needs to be a bucket to track Developers and QA hours spent on deployments and bug fixes and retests. Seems like i... | [
"agile",
"scrum"
] | 19 | 35 | 6,228 | 5 | 0 | 2008-10-06T17:40:47.733000 | 2008-10-06T20:48:10.180000 |
175,381 | 175,475 | How to edit CSS style of a div using C# in .NET | I'm trying to grab a div's ID in the code behind (C#) and set some css on it. Can I grab it from the DOM or do I have to use some kind of control? Saving... | Add the runat="server" attribute to it so you have: Saving... That way you can access the class attribute by using: formSpinner.Attributes["class"] = "classOfYourChoice"; It's also worth mentioning that the asp:Panel control is virtually synonymous (at least as far as rendered markup is concerned) with div, so you coul... | How to edit CSS style of a div using C# in .NET I'm trying to grab a div's ID in the code behind (C#) and set some css on it. Can I grab it from the DOM or do I have to use some kind of control? Saving... | TITLE:
How to edit CSS style of a div using C# in .NET
QUESTION:
I'm trying to grab a div's ID in the code behind (C#) and set some css on it. Can I grab it from the DOM or do I have to use some kind of control? Saving...
ANSWER:
Add the runat="server" attribute to it so you have: Saving... That way you can access th... | [
"c#",
".net",
"css"
] | 46 | 76 | 144,641 | 9 | 0 | 2008-10-06T17:46:41.903000 | 2008-10-06T18:07:23.700000 |
175,384 | 175,884 | What's the difference between AppDomain.CurrentDomain.BaseDirectory and Application.ExecutablePath in practice? | According to the MSDN, the BaseDirectory is where an AppDomain will look for DLLs to load, while ExecutablePath will provide the path to the original executable file (including file name). I know that one has the file name and the other does not. I know that if I create a new AppDomain I can give it a different path. B... | Think of something like ASP.NET where your code is hosted inside another process. The BaseDirectory is going to be where your code lives, but the ExecutablePath is probably some dll in system32. | What's the difference between AppDomain.CurrentDomain.BaseDirectory and Application.ExecutablePath in practice? According to the MSDN, the BaseDirectory is where an AppDomain will look for DLLs to load, while ExecutablePath will provide the path to the original executable file (including file name). I know that one has... | TITLE:
What's the difference between AppDomain.CurrentDomain.BaseDirectory and Application.ExecutablePath in practice?
QUESTION:
According to the MSDN, the BaseDirectory is where an AppDomain will look for DLLs to load, while ExecutablePath will provide the path to the original executable file (including file name). I... | [
"c#",
".net",
"appdomain"
] | 7 | 3 | 2,417 | 1 | 0 | 2008-10-06T17:46:50.373000 | 2008-10-06T19:47:15.777000 |
175,385 | 175,422 | What is the preferred way to do a CSS rollover? | When setting up a rollover effect in HTML, are there any benefits (or pitfalls) to doing it in CSS vs. JavaScript? Are there any performance or code maintainability issues I should be aware of with either approach? | CSS is fine for rollovers. They're implemented basically using the:hover pseudo-selector. Here's a really simple implementation: a{ background-image: url(non-hovered-state.png); } a:hover{ background-image: url(hovered-state.png); } There are a few things you need to be aware of though: IE6 only supports:hover on tags ... | What is the preferred way to do a CSS rollover? When setting up a rollover effect in HTML, are there any benefits (or pitfalls) to doing it in CSS vs. JavaScript? Are there any performance or code maintainability issues I should be aware of with either approach? | TITLE:
What is the preferred way to do a CSS rollover?
QUESTION:
When setting up a rollover effect in HTML, are there any benefits (or pitfalls) to doing it in CSS vs. JavaScript? Are there any performance or code maintainability issues I should be aware of with either approach?
ANSWER:
CSS is fine for rollovers. The... | [
"javascript",
"html",
"css"
] | 10 | 25 | 1,641 | 7 | 0 | 2008-10-06T17:47:08.390000 | 2008-10-06T17:55:14.567000 |
175,413 | 175,452 | Designing Web Sites with Ruby on Rails | I'm just learning Ruby on Rails. I've read a few books, I've watched lots of Railscasts, I've looked at some examples. However, when working on my first serious project with Rails, I've gotten hung up on how to properly implement some very basic web site features that most tutorials I've seen lack. For instance: Naviga... | Open Source Rails is a repository of sites implemented in rails. | Designing Web Sites with Ruby on Rails I'm just learning Ruby on Rails. I've read a few books, I've watched lots of Railscasts, I've looked at some examples. However, when working on my first serious project with Rails, I've gotten hung up on how to properly implement some very basic web site features that most tutoria... | TITLE:
Designing Web Sites with Ruby on Rails
QUESTION:
I'm just learning Ruby on Rails. I've read a few books, I've watched lots of Railscasts, I've looked at some examples. However, when working on my first serious project with Rails, I've gotten hung up on how to properly implement some very basic web site features... | [
"ruby-on-rails"
] | 8 | 5 | 5,940 | 5 | 0 | 2008-10-06T17:53:07.847000 | 2008-10-06T18:02:31.260000 |
175,415 | 175,446 | How do I get list of all tables in a database using TSQL? | What is the best way to get the names of all of the tables in a specific database on SQL Server? | SQL Server 2000, 2005, 2008, 2012, 2014, 2016, 2017 or 2019: SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE' To show only tables from a particular database SELECT TABLE_NAME FROM [ ].INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' Or, SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHER... | How do I get list of all tables in a database using TSQL? What is the best way to get the names of all of the tables in a specific database on SQL Server? | TITLE:
How do I get list of all tables in a database using TSQL?
QUESTION:
What is the best way to get the names of all of the tables in a specific database on SQL Server?
ANSWER:
SQL Server 2000, 2005, 2008, 2012, 2014, 2016, 2017 or 2019: SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE' To show... | [
"sql-server",
"t-sql",
"database-table"
] | 1,089 | 1,687 | 2,182,405 | 20 | 0 | 2008-10-06T17:53:21.950000 | 2008-10-06T18:00:56.227000 |
175,425 | 175,940 | PHP website, should I develop into a Linux distribution instead of Windows? | In few months I start a project in PHP and I am hesitating to do like usual: develop on my Windows Vista 64bits machine. Since I know few things on Linux, I think it can be a good way to learn by working on a Linux distribution. Do you think it's a good idea or not? I would run a VirtualBox with Ubuntu (on my Vista64bi... | You should really develop on the same platform where you are going to deploy. I'm not saying it is bad to do differently, but it can save you some pain in the long run. OTOH, you might learn faster about platform differences that way. So, the main question is: do you want to have a production system running ASAP withou... | PHP website, should I develop into a Linux distribution instead of Windows? In few months I start a project in PHP and I am hesitating to do like usual: develop on my Windows Vista 64bits machine. Since I know few things on Linux, I think it can be a good way to learn by working on a Linux distribution. Do you think it... | TITLE:
PHP website, should I develop into a Linux distribution instead of Windows?
QUESTION:
In few months I start a project in PHP and I am hesitating to do like usual: develop on my Windows Vista 64bits machine. Since I know few things on Linux, I think it can be a good way to learn by working on a Linux distributio... | [
"php",
"linux",
"xampp",
"virtualbox"
] | 5 | 5 | 3,507 | 13 | 0 | 2008-10-06T17:55:25.143000 | 2008-10-06T19:59:53.600000 |
175,437 | 175,552 | Tool for finding package namespace conflicts in java code | We have a number of projects that use the same and/or similar package names. Many or these projects will build jar files that are used by other projects. We have found a number of foo.util foo.db and foo.exceptions where the same class names are being used leading to name space conflicts. Does anyone know of a tool tha... | It's simpler to fix your names in each individual project. Really. You don't need to know all the conflicts. Your package names should be unique in the first place. If they aren't unique, you need to rethink how you're assigning your package names. If they're "flat" ( foo.this and foo.that ) you need to make them talle... | Tool for finding package namespace conflicts in java code We have a number of projects that use the same and/or similar package names. Many or these projects will build jar files that are used by other projects. We have found a number of foo.util foo.db and foo.exceptions where the same class names are being used leadi... | TITLE:
Tool for finding package namespace conflicts in java code
QUESTION:
We have a number of projects that use the same and/or similar package names. Many or these projects will build jar files that are used by other projects. We have found a number of foo.util foo.db and foo.exceptions where the same class names ar... | [
"java",
"refactoring"
] | 2 | 4 | 487 | 3 | 0 | 2008-10-06T17:58:46.697000 | 2008-10-06T18:23:19.987000 |
175,451 | 175,473 | How do you version your database schema? | How do you prepare your SQL deltas? do you manually save each schema-changing SQL to a delta folder, or do you have some kind of an automated diffing process? I am interested in conventions for versioning database schema along with the source code. Perhaps a pre-commit hook that diffs the schema? Also, what options for... | See Is there a version control system for database structure changes? How do I version my MS SQL database in SVN? and Jeff's article Get Your Database Under Version Control I feel your pain, and I wish there were a better answer. This might be closer to what you were looking for. Mechanisms for tracking DB schema chang... | How do you version your database schema? How do you prepare your SQL deltas? do you manually save each schema-changing SQL to a delta folder, or do you have some kind of an automated diffing process? I am interested in conventions for versioning database schema along with the source code. Perhaps a pre-commit hook that... | TITLE:
How do you version your database schema?
QUESTION:
How do you prepare your SQL deltas? do you manually save each schema-changing SQL to a delta folder, or do you have some kind of an automated diffing process? I am interested in conventions for versioning database schema along with the source code. Perhaps a pr... | [
"sql",
"mysql",
"schema",
"versioning"
] | 137 | 67 | 102,351 | 16 | 0 | 2008-10-06T18:02:29.093000 | 2008-10-06T18:07:00.660000 |
175,454 | 175,480 | Loops and Garbage Collection | I am working on a web application and I have run into the following situation. Dim a as Object Dim i as Integer = 0
Try
For i=1 to 5
a = new Object()
'Do stuff '
a = Nothing
Next
Catch
Finally
a = Nothing
End Try Do i need to do the a=Nothing in the loop or will the garbage collector clean a up? | In.NET, you generally do not need to set a variable reference = Nothing ( null in C#). The garbage collector will clean up, eventually. The reference itself will be destroyed when it goes out of scope (either when your method exits or when the object of this class is finalized.) Note that this doesn't mean the object i... | Loops and Garbage Collection I am working on a web application and I have run into the following situation. Dim a as Object Dim i as Integer = 0
Try
For i=1 to 5
a = new Object()
'Do stuff '
a = Nothing
Next
Catch
Finally
a = Nothing
End Try Do i need to do the a=Nothing in the loop or will the garbage collec... | TITLE:
Loops and Garbage Collection
QUESTION:
I am working on a web application and I have run into the following situation. Dim a as Object Dim i as Integer = 0
Try
For i=1 to 5
a = new Object()
'Do stuff '
a = Nothing
Next
Catch
Finally
a = Nothing
End Try Do i need to do the a=Nothing in the loop or will ... | [
".net",
"vb.net",
"garbage-collection",
"loops"
] | 4 | 12 | 4,121 | 5 | 0 | 2008-10-06T18:02:49.297000 | 2008-10-06T18:08:21.623000 |
175,464 | 177,125 | Flash exporting/publishing time | What are the main reasons for having ridiculously long export times for a simple flash movie to swf? I have no unnecessary images or symbols, everything possible is set to lower than low and it still takes 10 minutes and upwards to export a 30 second animation at 24 fps. I have even created a new fla and pasted everyth... | This is not average for Flash. Normally, the only cause for long export times is that you're exporting a lot of stuff, some of which you may not mean to be exporting. Does your animation have audio? If you imported audio into your FLA, then that sound has to be encoded every time you export, and that takes a while. The... | Flash exporting/publishing time What are the main reasons for having ridiculously long export times for a simple flash movie to swf? I have no unnecessary images or symbols, everything possible is set to lower than low and it still takes 10 minutes and upwards to export a 30 second animation at 24 fps. I have even crea... | TITLE:
Flash exporting/publishing time
QUESTION:
What are the main reasons for having ridiculously long export times for a simple flash movie to swf? I have no unnecessary images or symbols, everything possible is set to lower than low and it still takes 10 minutes and upwards to export a 30 second animation at 24 fps... | [
"flash",
"time",
"export",
"publish",
"cs3"
] | 4 | 9 | 3,630 | 3 | 0 | 2008-10-06T18:05:17.917000 | 2008-10-07T03:24:22.780000 |
175,488 | 176,136 | US Phone Number Verification | I have a website form that requires a US phone number input for follow up purposes, and this is very necessary in this case. I want try to eliminate users entering junk data 330-000-0000. I have seen some options of third parties that validate phone numbers for you, however idk if that is the best option for this situa... | It seems to me that you're putting more effort into this than it warrants. Consider: If your purpose is to guard against mis-entered phone numbers, then you can probably catch well over 90% of them with just a very simple check. If your purpose is to try to force users to provide a valid number whether they want to giv... | US Phone Number Verification I have a website form that requires a US phone number input for follow up purposes, and this is very necessary in this case. I want try to eliminate users entering junk data 330-000-0000. I have seen some options of third parties that validate phone numbers for you, however idk if that is t... | TITLE:
US Phone Number Verification
QUESTION:
I have a website form that requires a US phone number input for follow up purposes, and this is very necessary in this case. I want try to eliminate users entering junk data 330-000-0000. I have seen some options of third parties that validate phone numbers for you, howeve... | [
"regex",
"algorithm",
"validation",
"phone-number"
] | 7 | 9 | 8,713 | 13 | 0 | 2008-10-06T18:10:08.627000 | 2008-10-06T20:50:19.160000 |
175,528 | 422,245 | How can I take preview of documents? | I'm working on a file sharing website, I need a way to take screenshots of the uploaded documents. The site will support several file formarts, from plain text to office documents (doc, xls, ppt,...), videos (mpeg, avi,...), images (jpg, gif, png,...) PDF's, Open Office, etc. Each document need to have a "preview" of i... | I ended using JODConverter for converting everything to PDF and then SWFTools for converting from PDF to SWF. I created my own document viewer using Flash. It's working really well so far. | How can I take preview of documents? I'm working on a file sharing website, I need a way to take screenshots of the uploaded documents. The site will support several file formarts, from plain text to office documents (doc, xls, ppt,...), videos (mpeg, avi,...), images (jpg, gif, png,...) PDF's, Open Office, etc. Each d... | TITLE:
How can I take preview of documents?
QUESTION:
I'm working on a file sharing website, I need a way to take screenshots of the uploaded documents. The site will support several file formarts, from plain text to office documents (doc, xls, ppt,...), videos (mpeg, avi,...), images (jpg, gif, png,...) PDF's, Open O... | [
"document-conversion"
] | 6 | 1 | 13,895 | 3 | 0 | 2008-10-06T18:18:42.163000 | 2009-01-07T21:47:49.583000 |
175,532 | 175,543 | Should a retrieval method return 'null' or throw an exception when it can't produce the return value? | I am using java language,I have a method that is supposed to return an object if it is found. If it is not found, should I: return null throw an exception other Which is the best practise or idiom? | If you are always expecting to find a value then throw the exception if it is missing. The exception would mean that there was a problem. If the value can be missing or present and both are valid for the application logic then return a null. More important: What do you do other places in the code? Consistency is import... | Should a retrieval method return 'null' or throw an exception when it can't produce the return value? I am using java language,I have a method that is supposed to return an object if it is found. If it is not found, should I: return null throw an exception other Which is the best practise or idiom? | TITLE:
Should a retrieval method return 'null' or throw an exception when it can't produce the return value?
QUESTION:
I am using java language,I have a method that is supposed to return an object if it is found. If it is not found, should I: return null throw an exception other Which is the best practise or idiom?
A... | [
"java",
"exception",
"error-handling",
"null"
] | 555 | 530 | 197,147 | 36 | 0 | 2008-10-06T18:19:27.547000 | 2008-10-06T18:21:50.410000 |
175,554 | 175,576 | How to convert milliseconds into human readable form? | I need to convert an arbitrary amount of milliseconds into Days, Hours, Minutes Second. For example: 10 Days, 5 hours, 13 minutes, 1 second. | Well, since nobody else has stepped up, I'll write the easy code to do this: x = ms / 1000 seconds = x % 60 x /= 60 minutes = x % 60 x /= 60 hours = x % 24 x /= 24 days = x I'm just glad you stopped at days and didn't ask for months.:) Note that in the above, it is assumed that / represents truncating integer division.... | How to convert milliseconds into human readable form? I need to convert an arbitrary amount of milliseconds into Days, Hours, Minutes Second. For example: 10 Days, 5 hours, 13 minutes, 1 second. | TITLE:
How to convert milliseconds into human readable form?
QUESTION:
I need to convert an arbitrary amount of milliseconds into Days, Hours, Minutes Second. For example: 10 Days, 5 hours, 13 minutes, 1 second.
ANSWER:
Well, since nobody else has stepped up, I'll write the easy code to do this: x = ms / 1000 seconds... | [
"date",
"time",
"string-formatting",
"datetime-format"
] | 125 | 234 | 164,041 | 22 | 0 | 2008-10-06T18:23:25.463000 | 2008-10-06T18:28:43.877000 |
175,579 | 175,669 | What are named pipes? | What are they and how do they work? Context happens to be SQL Server | Both on Windows and POSIX systems, named-pipes provide a way for inter-process communication to occur among processes running on the same machine. What named pipes give you is a way to send your data without having the performance penalty of involving the network stack. Just like you have a server listening to a IP add... | What are named pipes? What are they and how do they work? Context happens to be SQL Server | TITLE:
What are named pipes?
QUESTION:
What are they and how do they work? Context happens to be SQL Server
ANSWER:
Both on Windows and POSIX systems, named-pipes provide a way for inter-process communication to occur among processes running on the same machine. What named pipes give you is a way to send your data wi... | [
"sql-server",
"pipe",
"named-pipes"
] | 164 | 176 | 233,413 | 10 | 0 | 2008-10-06T18:28:58.930000 | 2008-10-06T18:50:14.473000 |
175,609 | 175,644 | jQuery UI droppables - changing the image that's dropped | I'm working with jQuery UI's droppables and am wondering what the best way to make the dropped clone use a different IMG SRC than the item being dropped. In the photo manager demo there, the thumbnail gets dropped into a slot that's the same size. I'd like to drop a large image into a small slot, and as such I need its... | The droppable API accepts a 'drop' callback in its options. Use it to change the src of the image, something like: $('#dropContainer').droppable({ drop: function(e,ui) { $(ui.draggable).attr('src','/path/to/different/image'); } }); | jQuery UI droppables - changing the image that's dropped I'm working with jQuery UI's droppables and am wondering what the best way to make the dropped clone use a different IMG SRC than the item being dropped. In the photo manager demo there, the thumbnail gets dropped into a slot that's the same size. I'd like to dro... | TITLE:
jQuery UI droppables - changing the image that's dropped
QUESTION:
I'm working with jQuery UI's droppables and am wondering what the best way to make the dropped clone use a different IMG SRC than the item being dropped. In the photo manager demo there, the thumbnail gets dropped into a slot that's the same siz... | [
"javascript",
"jquery",
"jquery-ui",
"drag-and-drop"
] | 3 | 2 | 4,888 | 1 | 0 | 2008-10-06T18:34:15.783000 | 2008-10-06T18:40:48.440000 |
175,621 | 175,664 | Starting external process during integration testing in maven | I want completely automated integration testing for a Maven project. The integration tests require that an external (platform-dependent) program is started before running. Ideally, the external program would be killed after the unit tests are finished, but is not necessary. Is there a Maven plugin to accomplish this? O... | You could use the antrun plugin. Inside you would use ant's exec apply task. Something like this. org.apache.maven.plugins maven-antrun-plugin 1.2 run Ant support os specific commands of course through the condition task. | Starting external process during integration testing in maven I want completely automated integration testing for a Maven project. The integration tests require that an external (platform-dependent) program is started before running. Ideally, the external program would be killed after the unit tests are finished, but i... | TITLE:
Starting external process during integration testing in maven
QUESTION:
I want completely automated integration testing for a Maven project. The integration tests require that an external (platform-dependent) program is started before running. Ideally, the external program would be killed after the unit tests a... | [
"java",
"maven-2",
"build-process",
"automated-tests",
"integration-testing"
] | 4 | 4 | 8,878 | 5 | 0 | 2008-10-06T18:35:50.307000 | 2008-10-06T18:48:44.927000 |
175,649 | 175,855 | One entity shared across two web services? | I'm working on a project where I have 2 web services that need the same entity. The 2 web services are on the same server so on the back-end, they share the same classes. On the front-end side, my code consumes both web services and sees the entities from both services as separate (in different namespaces) so I can't u... | I think that you can not do that from inside VS but you can manually use the wsdl.exe utility like this: wsdl.exe /sharetypes http://localhost/MyService1.asmx?wsdl http://localhost/MyService2.asmx?wsdl Notice the /sharetypes option which turns on the type sharing feature. This feature creates one code file with a singl... | One entity shared across two web services? I'm working on a project where I have 2 web services that need the same entity. The 2 web services are on the same server so on the back-end, they share the same classes. On the front-end side, my code consumes both web services and sees the entities from both services as sepa... | TITLE:
One entity shared across two web services?
QUESTION:
I'm working on a project where I have 2 web services that need the same entity. The 2 web services are on the same server so on the back-end, they share the same classes. On the front-end side, my code consumes both web services and sees the entities from bot... | [
"c#",
".net",
"web-services",
"wsdl"
] | 3 | 4 | 640 | 3 | 0 | 2008-10-06T18:42:59.870000 | 2008-10-06T19:40:39.613000 |
175,655 | 660,129 | How to find where a method is defined at runtime? | We recently had a problem where, after a series of commits had occurred, a backend process failed to run. Now, we were good little boys and girls and ran rake test after every check-in but, due to some oddities in Rails' library loading, it only occurred when we ran it directly from Mongrel in production mode. I tracke... | This is really late, but here's how you can find where a method is defined: http://gist.github.com/76951 # How to find out where a method comes from. # Learned this from Dave Thomas while teaching Advanced Ruby Studio # Makes the case for separating method definitions into # modules, especially when enhancing built-in ... | How to find where a method is defined at runtime? We recently had a problem where, after a series of commits had occurred, a backend process failed to run. Now, we were good little boys and girls and ran rake test after every check-in but, due to some oddities in Rails' library loading, it only occurred when we ran it ... | TITLE:
How to find where a method is defined at runtime?
QUESTION:
We recently had a problem where, after a series of commits had occurred, a backend process failed to run. Now, we were good little boys and girls and ran rake test after every check-in but, due to some oddities in Rails' library loading, it only occurr... | [
"ruby-on-rails",
"ruby",
"runtime",
"methods",
"definition"
] | 355 | 457 | 98,714 | 11 | 0 | 2008-10-06T18:44:24.610000 | 2009-03-18T21:12:44.903000 |
175,689 | 175,926 | Can you use keyword explicit to prevent automatic conversion of method parameters? | I know you can use C++ keyword 'explicit' for constructors of classes to prevent an automatic conversion of type. Can you use this same command to prevent the conversion of parameters for a class method? I have two class members, one which takes a bool as a param, the other an unsigned int. When I called the function w... | No, you can't use explicit, but you can use a templated function to catch the incorrect parameter types. With C++11, you can declare the templated function as delete d. Here is a simple example: #include struct Thing { void Foo(int value) { std::cout << "Foo: value" << std::endl; }
template void Foo(T value) = delete;... | Can you use keyword explicit to prevent automatic conversion of method parameters? I know you can use C++ keyword 'explicit' for constructors of classes to prevent an automatic conversion of type. Can you use this same command to prevent the conversion of parameters for a class method? I have two class members, one whi... | TITLE:
Can you use keyword explicit to prevent automatic conversion of method parameters?
QUESTION:
I know you can use C++ keyword 'explicit' for constructors of classes to prevent an automatic conversion of type. Can you use this same command to prevent the conversion of parameters for a class method? I have two clas... | [
"c++",
"implicit-conversion",
"explicit"
] | 62 | 77 | 25,113 | 8 | 0 | 2008-10-06T18:58:03.223000 | 2008-10-06T19:56:15.400000 |
175,695 | 175,866 | How do i designate in XSD that an element only contains CDATA? | How can I represent the following in XSD. arbitrary data goes here | is about as close as you can get. (I thought it best to move the answer out of the comments and into an actual answer). | How do i designate in XSD that an element only contains CDATA? How can I represent the following in XSD. arbitrary data goes here | TITLE:
How do i designate in XSD that an element only contains CDATA?
QUESTION:
How can I represent the following in XSD. arbitrary data goes here
ANSWER:
is about as close as you can get. (I thought it best to move the answer out of the comments and into an actual answer). | [
"xml",
"xsd"
] | 29 | 30 | 38,972 | 2 | 0 | 2008-10-06T18:59:46.123000 | 2008-10-06T19:43:05.020000 |
175,696 | 175,700 | What class handles the popup/notification windows on iphone? | I'm looking for the class name of the popup/message windows on the iPhone (it's a blueish window that comes up when you have a missed call, or a message comes in for example.) | The class is called UIAlertView. From the documentation: Use the UIAlertView class to display an alert message to the user. An alert view functions similar to but differs in appearance from an action sheet (an instance of UIActionSheet). Use the properties and methods defined in this class to set the title, message, an... | What class handles the popup/notification windows on iphone? I'm looking for the class name of the popup/message windows on the iPhone (it's a blueish window that comes up when you have a missed call, or a message comes in for example.) | TITLE:
What class handles the popup/notification windows on iphone?
QUESTION:
I'm looking for the class name of the popup/message windows on the iPhone (it's a blueish window that comes up when you have a missed call, or a message comes in for example.)
ANSWER:
The class is called UIAlertView. From the documentation:... | [
"iphone",
"cocoa-touch"
] | 3 | 9 | 3,497 | 3 | 0 | 2008-10-06T18:59:52.457000 | 2008-10-06T19:01:03.843000 |
175,703 | 175,710 | Script all stored procedures in Management Studio 2005 | In Enterprise Manager you could script all SPs in a database through the right click menu, is there a way to do it in Management Studio? | You can right click on the database and to go Tasks -> Generate Scripts... This will allow you to script all or selected objects (schema, stored procedures, tables, users and views) with specific options. | Script all stored procedures in Management Studio 2005 In Enterprise Manager you could script all SPs in a database through the right click menu, is there a way to do it in Management Studio? | TITLE:
Script all stored procedures in Management Studio 2005
QUESTION:
In Enterprise Manager you could script all SPs in a database through the right click menu, is there a way to do it in Management Studio?
ANSWER:
You can right click on the database and to go Tasks -> Generate Scripts... This will allow you to scr... | [
"sql-server",
"ssms"
] | 49 | 88 | 65,170 | 5 | 0 | 2008-10-06T19:02:16.820000 | 2008-10-06T19:04:36.673000 |
175,707 | 175,719 | Why does the memory usage of a .NET application seem to drop when it is minimized? | For example, launch Paint.NET. Then have a look on its memory usage with Task Manager: on my computer, it uses 36Mb. Then minimize Paint.NET: now it takes only a few more than 1Mb. This happens with every.NET Application. What happens when a.NET Application is minimized? Is a GC occurring? | Task Manager shows you the amount of memory belonging to the application that happens to be paged into real memory at the time. When you minimise an application in Windows, the kernel automatically trims the process working set so it takes less memory. This behaviour is not specific to.NET apps. If you look instead at ... | Why does the memory usage of a .NET application seem to drop when it is minimized? For example, launch Paint.NET. Then have a look on its memory usage with Task Manager: on my computer, it uses 36Mb. Then minimize Paint.NET: now it takes only a few more than 1Mb. This happens with every.NET Application. What happens wh... | TITLE:
Why does the memory usage of a .NET application seem to drop when it is minimized?
QUESTION:
For example, launch Paint.NET. Then have a look on its memory usage with Task Manager: on my computer, it uses 36Mb. Then minimize Paint.NET: now it takes only a few more than 1Mb. This happens with every.NET Applicatio... | [
".net",
"memory",
"garbage-collection"
] | 11 | 27 | 1,412 | 1 | 0 | 2008-10-06T19:03:39.780000 | 2008-10-06T19:06:32.927000 |
175,717 | 175,731 | What is the best application of .dispose() | This is something that I have never fully grasped in.NET as to the correct application of the.dispose() method. Say I have something like Public Class someClass() sub someMethod ' do some stuff tying up resources end sub End Class
public class mainApp dim _class as new SomeClass _class.someMethod() End Class In all ca... | I highly recommend reading Cleaning Up Unmanaged Resources on MSDN, it has articles touching on when to use Dispose and how to implement IDisposable correctly. Your gut instinct is mostly correct as you rarely have to implement IDisposable, unless your class uses unmanaged resources or is a container for an object that... | What is the best application of .dispose() This is something that I have never fully grasped in.NET as to the correct application of the.dispose() method. Say I have something like Public Class someClass() sub someMethod ' do some stuff tying up resources end sub End Class
public class mainApp dim _class as new SomeCl... | TITLE:
What is the best application of .dispose()
QUESTION:
This is something that I have never fully grasped in.NET as to the correct application of the.dispose() method. Say I have something like Public Class someClass() sub someMethod ' do some stuff tying up resources end sub End Class
public class mainApp dim _c... | [
"vb.net"
] | 5 | 5 | 873 | 6 | 0 | 2008-10-06T19:05:51.087000 | 2008-10-06T19:10:56.460000 |
175,723 | 175,870 | Is there an easy way to animate the ScrollableControl.ScrollControlIntoView method? | I have a form where controls are dynamically added to a Panel. However, when they do so, they are many times added below the fold (bottom of the container). It's nice that the.NET Framework provides this ScrollControlIntoView method, however, for added usability, it would also be nice if there was an easy way to animat... | You could subclass Panel, add a Timer, and override ScrollIntoView() in order to do this all within your new AnimatedScrollPanel. I'm pretty sure you'll have to do it this way in order to use certain protected methods, such as ScrollToControl() which returns a Point (used by ScrollIntoView ). | Is there an easy way to animate the ScrollableControl.ScrollControlIntoView method? I have a form where controls are dynamically added to a Panel. However, when they do so, they are many times added below the fold (bottom of the container). It's nice that the.NET Framework provides this ScrollControlIntoView method, ho... | TITLE:
Is there an easy way to animate the ScrollableControl.ScrollControlIntoView method?
QUESTION:
I have a form where controls are dynamically added to a Panel. However, when they do so, they are many times added below the fold (bottom of the container). It's nice that the.NET Framework provides this ScrollControlI... | [
"c#",
".net",
"vb.net",
"winforms"
] | 2 | 1 | 1,815 | 2 | 0 | 2008-10-06T19:08:47.820000 | 2008-10-06T19:44:03.553000 |
175,732 | 175,748 | Tools/Components for building a Survey Application | We are designing a survey application with the following features The users will be able to select questions from a set of predefined questions. Each question has a question type defined which dictates the type of answer (multiple choice, DB look up, free text etc) The user can create a hierarchy of sections with multi... | This may not be an exact fit, but worth looking at: Surveymonkey. | Tools/Components for building a Survey Application We are designing a survey application with the following features The users will be able to select questions from a set of predefined questions. Each question has a question type defined which dictates the type of answer (multiple choice, DB look up, free text etc) The... | TITLE:
Tools/Components for building a Survey Application
QUESTION:
We are designing a survey application with the following features The users will be able to select questions from a set of predefined questions. Each question has a question type defined which dictates the type of answer (multiple choice, DB look up, ... | [
"asp.net",
"survey",
"dynamic-pages"
] | 3 | 3 | 3,305 | 6 | 0 | 2008-10-06T19:11:08.800000 | 2008-10-06T19:15:30.617000 |
175,733 | 175,743 | How can I create a MySQL JOIN query for only selecting the rows in one table where a certain number of references to that row exist in another table? | I have two tables in my database, called ratings and movies. Ratings: | id | movie_id | rating | Movies: | id | title | A typical movie record might be like this: | 4 | Cloverfield (2008) | and there may be several rating records for Cloverfield, like this: | 21 | 4 | 3 | (rating number 21, on movie number 4, giving it... | Use the HAVING clause. Something along these lines: SELECT movies.id, movies.title, COUNT(ratings.id) AS num_ratings FROM movies LEFT JOIN ratings ON ratings.movie_id=movies.id GROUP BY movies.id HAVING num_ratings > 5; | How can I create a MySQL JOIN query for only selecting the rows in one table where a certain number of references to that row exist in another table? I have two tables in my database, called ratings and movies. Ratings: | id | movie_id | rating | Movies: | id | title | A typical movie record might be like this: | 4 | C... | TITLE:
How can I create a MySQL JOIN query for only selecting the rows in one table where a certain number of references to that row exist in another table?
QUESTION:
I have two tables in my database, called ratings and movies. Ratings: | id | movie_id | rating | Movies: | id | title | A typical movie record might be ... | [
"sql",
"mysql"
] | 5 | 10 | 12,417 | 5 | 0 | 2008-10-06T19:11:15.383000 | 2008-10-06T19:13:58.700000 |
175,738 | 1,493,404 | WS_EX_TOOLWINDOW jumping to background on window destroy | Weird issue: Open a large notepad window create a toolwindow (style WS_EX_TOOLWINDOW) create 2 more windows (normal overlapped) (WS_OVERLAPPED) close those 2 overlapped windows (child of desktop or the toolwindow) the toolwindow jumps behind the notepad window Does anyone know why this is the case? Or what I could be d... | This isn't surprising. In fact, it's exactly the behavior I'd expect. You're tool window isn't jumping down; rather Notepad is jumping up. You closed the window that had activation. The system is going to activate the next-highest top-level window in the z-order. Your tool window doesn't a count as a top-level window i... | WS_EX_TOOLWINDOW jumping to background on window destroy Weird issue: Open a large notepad window create a toolwindow (style WS_EX_TOOLWINDOW) create 2 more windows (normal overlapped) (WS_OVERLAPPED) close those 2 overlapped windows (child of desktop or the toolwindow) the toolwindow jumps behind the notepad window Do... | TITLE:
WS_EX_TOOLWINDOW jumping to background on window destroy
QUESTION:
Weird issue: Open a large notepad window create a toolwindow (style WS_EX_TOOLWINDOW) create 2 more windows (normal overlapped) (WS_OVERLAPPED) close those 2 overlapped windows (child of desktop or the toolwindow) the toolwindow jumps behind the... | [
"c++",
"winapi",
"sdk"
] | 0 | 1 | 2,825 | 2 | 0 | 2008-10-06T19:12:32.103000 | 2009-09-29T15:46:20.013000 |
175,739 | 175,787 | How can I check if a string is a valid number? | I'm hoping there's something in the same conceptual space as the old VB6 IsNumeric() function? | 2nd October 2020: note that many bare-bones approaches are fraught with subtle bugs (eg. whitespace, implicit partial parsing, radix, coercion of arrays etc.) that many of the answers here fail to take into account. The following implementation might work for you, but note that it does not cater for number separators o... | How can I check if a string is a valid number? I'm hoping there's something in the same conceptual space as the old VB6 IsNumeric() function? | TITLE:
How can I check if a string is a valid number?
QUESTION:
I'm hoping there's something in the same conceptual space as the old VB6 IsNumeric() function?
ANSWER:
2nd October 2020: note that many bare-bones approaches are fraught with subtle bugs (eg. whitespace, implicit partial parsing, radix, coercion of array... | [
"javascript",
"validation",
"numeric"
] | 1,948 | 3,206 | 1,707,292 | 56 | 0 | 2008-10-06T19:12:52.413000 | 2008-10-06T19:24:20.287000 |
175,785 | 175,788 | How do I convert Word smart quotes and em dashes in a string? | I have a form with a textarea. Users enter a block of text which is stored in a database. Occasionally a user will paste text from Word containing smart quotes or emdashes. Those characters appear in the database as: –, ’, “,†What function should I call on the input string to convert smart quotes to regular quo... | This sounds like a Unicode issue. Joel Spolsky has a good jumping off point on the topic: http://www.joelonsoftware.com/articles/Unicode.html | How do I convert Word smart quotes and em dashes in a string? I have a form with a textarea. Users enter a block of text which is stored in a database. Occasionally a user will paste text from Word containing smart quotes or emdashes. Those characters appear in the database as: –, ’, “,†What function should I c... | TITLE:
How do I convert Word smart quotes and em dashes in a string?
QUESTION:
I have a form with a textarea. Users enter a block of text which is stored in a database. Occasionally a user will paste text from Word containing smart quotes or emdashes. Those characters appear in the database as: –, ’, “,†What f... | [
"php",
"unicode",
"smart-quotes"
] | 24 | 14 | 31,412 | 13 | 0 | 2008-10-06T19:22:33.957000 | 2008-10-06T19:24:28.100000 |
175,806 | 175,817 | What is the most critical piece of code you have written and how did you approach it? | Put it another way: what code have you written that cannot fail. I'm interested in hearing from those who have worked on projects dealing with heart monitors, water testing, economic fundamentals, missile trajectories, or the O2 concentration on the space shuttle. How did you prepare for writing this sort of code: meth... | While I am not personally involved in what is described there, this article will hopefully contribute to the spirit of your question: They Write the Right Stuff. | What is the most critical piece of code you have written and how did you approach it? Put it another way: what code have you written that cannot fail. I'm interested in hearing from those who have worked on projects dealing with heart monitors, water testing, economic fundamentals, missile trajectories, or the O2 conce... | TITLE:
What is the most critical piece of code you have written and how did you approach it?
QUESTION:
Put it another way: what code have you written that cannot fail. I'm interested in hearing from those who have worked on projects dealing with heart monitors, water testing, economic fundamentals, missile trajectorie... | [
"mission-critical"
] | 7 | 5 | 455 | 9 | 0 | 2008-10-06T19:28:50.527000 | 2008-10-06T19:31:50.177000 |
175,836 | 175,851 | System.Windows.Forms.WebBrowser open links in same window or new window with same session | When using the.NET WebBrowser control how do you open a link in a new window using the the same session (ie.. do not start a new ASP.NET session on the server), or how do you capture the new window event to open the URL in the same WebBrowser control? | I just spent an hour looking for the answer, so I though I would post the results here. You can use the SHDocVwCtl.WebBrowser_V1 object to capture the NewWindow event. NOTE: Code from http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_21484555.html#discussion //-------------------------------VB.NET Ve... | System.Windows.Forms.WebBrowser open links in same window or new window with same session When using the.NET WebBrowser control how do you open a link in a new window using the the same session (ie.. do not start a new ASP.NET session on the server), or how do you capture the new window event to open the URL in the sam... | TITLE:
System.Windows.Forms.WebBrowser open links in same window or new window with same session
QUESTION:
When using the.NET WebBrowser control how do you open a link in a new window using the the same session (ie.. do not start a new ASP.NET session on the server), or how do you capture the new window event to open ... | [
".net",
"session",
"popup",
"browser",
"new-window"
] | 12 | 19 | 29,320 | 3 | 0 | 2008-10-06T19:37:05.610000 | 2008-10-06T19:40:05.637000 |
175,845 | 176,003 | DropDownList in Repeater control, can't fire SelectedIndexChanged | I have a repeater control where in the footer I have a DropDownList. In my code-behind I have: protected void ddMyRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { // Item binding code }
else if (e.Item.ItemTy... | If you just want to fire the OnSelectedIndexChanged, this is how it should look: Page.aspx - Source Option1 Option2 Page.aspx.cs - Code-behind protected void ddlOptions_SelectedIndexChanged(object sender, EventArgs e) { //Event Code here. } And that's it. Nothing more is needed. | DropDownList in Repeater control, can't fire SelectedIndexChanged I have a repeater control where in the footer I have a DropDownList. In my code-behind I have: protected void ddMyRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType... | TITLE:
DropDownList in Repeater control, can't fire SelectedIndexChanged
QUESTION:
I have a repeater control where in the footer I have a DropDownList. In my code-behind I have: protected void ddMyRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemTy... | [
"c#",
"asp.net"
] | 4 | 11 | 14,426 | 7 | 0 | 2008-10-06T19:38:45.717000 | 2008-10-06T20:15:54.080000 |
175,857 | 175,935 | How do you protect your commercial application from being installed on multiple computers with one license? | How do you protect your commercial application from being installed on multiple computers from people who only own one license? Do you think it's a good idea to have more than just a serial based scheme? | The following method works well, as long as you have a public server at your disposal: Serial based protection, user must enter a serial before using the program On first serial entry, bind the serial to the MAC address and create an auth code generated from both of these values. Check with your server to make sure the... | How do you protect your commercial application from being installed on multiple computers with one license? How do you protect your commercial application from being installed on multiple computers from people who only own one license? Do you think it's a good idea to have more than just a serial based scheme? | TITLE:
How do you protect your commercial application from being installed on multiple computers with one license?
QUESTION:
How do you protect your commercial application from being installed on multiple computers from people who only own one license? Do you think it's a good idea to have more than just a serial base... | [
"copy-protection",
"commercial-application"
] | 15 | 14 | 10,809 | 7 | 0 | 2008-10-06T19:41:02.950000 | 2008-10-06T19:58:28.470000 |
175,858 | 177,362 | Can I save a FlowDocument to BAML in a programmatic way? | Has anyone found a way to save a FlowDocument as BAML or other compressed format? I can import XML with images to create a new FlowDocument:.Load(fs, DataFormats.Rtf) However, I haven't found a good way to save it in a 'native' compressed format. Uncompressed XAML is easy to generate using:.Save(fs, DataFormats.Xaml); ... | I do not think it is possible... The BamlWriter is marked as internal, this will hopefully open up soon! I unfortunatly do not know of any XAML compilers | Can I save a FlowDocument to BAML in a programmatic way? Has anyone found a way to save a FlowDocument as BAML or other compressed format? I can import XML with images to create a new FlowDocument:.Load(fs, DataFormats.Rtf) However, I haven't found a good way to save it in a 'native' compressed format. Uncompressed XAM... | TITLE:
Can I save a FlowDocument to BAML in a programmatic way?
QUESTION:
Has anyone found a way to save a FlowDocument as BAML or other compressed format? I can import XML with images to create a new FlowDocument:.Load(fs, DataFormats.Rtf) However, I haven't found a good way to save it in a 'native' compressed format... | [
"wpf",
"visual-studio-2008",
"flowdocument"
] | 2 | 1 | 1,164 | 3 | 0 | 2008-10-06T19:41:10.640000 | 2008-10-07T06:12:29.713000 |
175,859 | 179,517 | Dynamically add sender email to Message Header rule in Outlook 2007 via right-click | I would like VBA code for Outlook 2007 to right-click a message in any mail view, choose a rule to add it to, and have the sender email be added to the Message Header contains value for that rule. Only particular rules use Message Header as a criteria, so only those applicable rules should show when I right-click a mes... | With a little effort, you are able to manipulate the context menu with VBA. Any Outlook version prior to 2007 has no object model for rules. But since OL2007, each Store object exposes GetRules() method, which returns a Rules collection. Try to iterate that collection and fill a CommandBarPopup object with all the rule... | Dynamically add sender email to Message Header rule in Outlook 2007 via right-click I would like VBA code for Outlook 2007 to right-click a message in any mail view, choose a rule to add it to, and have the sender email be added to the Message Header contains value for that rule. Only particular rules use Message Heade... | TITLE:
Dynamically add sender email to Message Header rule in Outlook 2007 via right-click
QUESTION:
I would like VBA code for Outlook 2007 to right-click a message in any mail view, choose a rule to add it to, and have the sender email be added to the Message Header contains value for that rule. Only particular rules... | [
"vba",
"outlook",
"rules",
"outlook-2007"
] | 1 | 1 | 1,152 | 1 | 0 | 2008-10-06T19:41:29.440000 | 2008-10-07T17:27:57.180000 |
175,860 | 1,995,831 | Watch for addition of a referenced library to a project (Visual Studio 2008 plug-in) | I am hoping someone can help me with this. What I have been looking around for but can't seem to find is if there is someway to add an event, or anything else that will allow a visual studio plug-in to watch for an external reference to be added to a currently open solution / project? Or even better yet would anyone ha... | Not exactly what you asked, but I've written a Visual Studio 2008 Integration Package, and if I recall correctly I could override the "add reference" method, as well as inherit the "reference node" and thus change its behavior, for example its constructor. This functionality might be missing from an add-in (which is mo... | Watch for addition of a referenced library to a project (Visual Studio 2008 plug-in) I am hoping someone can help me with this. What I have been looking around for but can't seem to find is if there is someway to add an event, or anything else that will allow a visual studio plug-in to watch for an external reference t... | TITLE:
Watch for addition of a referenced library to a project (Visual Studio 2008 plug-in)
QUESTION:
I am hoping someone can help me with this. What I have been looking around for but can't seem to find is if there is someway to add an event, or anything else that will allow a visual studio plug-in to watch for an ex... | [
"visual-studio",
"visual-studio-2008",
"plugins",
"reference"
] | 2 | 2 | 208 | 2 | 0 | 2008-10-06T19:41:48.970000 | 2010-01-03T18:34:52.123000 |
175,869 | 176,092 | How do I hook up a referencing outlet in Interface Bulider for a UIImage? | I want to access a UIImage programmatically... i.e. myImage.hidden = TRUE; etc. I can do this fine for UILabel but when I repeat the process for UIImage it doesn't work. Specifically when I drag the blue line in Interface Builder over the icon I don't get a popup menu like I do when using UILabel. Perhaps using UIImage... | An UIImage is not a view that can be added via Interface Builder. In order to display a UIImage you either need to override the drawRect method of whatever view you want to display it in, or use a UIImageView. Using a UIImageView will allow you to set it as an IBOutlet and reference it in your controller. | How do I hook up a referencing outlet in Interface Bulider for a UIImage? I want to access a UIImage programmatically... i.e. myImage.hidden = TRUE; etc. I can do this fine for UILabel but when I repeat the process for UIImage it doesn't work. Specifically when I drag the blue line in Interface Builder over the icon I ... | TITLE:
How do I hook up a referencing outlet in Interface Bulider for a UIImage?
QUESTION:
I want to access a UIImage programmatically... i.e. myImage.hidden = TRUE; etc. I can do this fine for UILabel but when I repeat the process for UIImage it doesn't work. Specifically when I drag the blue line in Interface Builde... | [
"iphone",
"objective-c",
"cocoa-touch",
"interface-builder"
] | 1 | 4 | 2,687 | 1 | 0 | 2008-10-06T19:43:57.687000 | 2008-10-06T20:37:48.513000 |
175,878 | 175,905 | What percentage of marketshare does a browser need for your support? | I'm building a website for a small non-profit org. and I was wondering at what kind of browser marketshare a browser should have before I support it. Chrome looks like a major contender, but it's still less than 5%, as is Opera. What browsers do you think I should completely support for this kind of project? | Firefox, IE7 and IE6 are enough to cover more than 90% of the browser market share. It is a good idea to read the new web standards and take in account what Microsoft prepares for IE8. Then you can try to be compatible with Google Chrome. Finally, there should be a very specific customer request to invest the time and ... | What percentage of marketshare does a browser need for your support? I'm building a website for a small non-profit org. and I was wondering at what kind of browser marketshare a browser should have before I support it. Chrome looks like a major contender, but it's still less than 5%, as is Opera. What browsers do you t... | TITLE:
What percentage of marketshare does a browser need for your support?
QUESTION:
I'm building a website for a small non-profit org. and I was wondering at what kind of browser marketshare a browser should have before I support it. Chrome looks like a major contender, but it's still less than 5%, as is Opera. What... | [
"browser"
] | 8 | 7 | 1,192 | 16 | 0 | 2008-10-06T19:46:28.010000 | 2008-10-06T19:50:50.747000 |
175,880 | 178,610 | Unmanaged Threads Spring Quartz Websphere Hibernate | It appears that our implementation of using Quartz - JDBCJobStore along with Spring, Hibernate and Websphere is throwing unmanaged threads. I have done some reading and found a tech article from IBM stating that the usage of Quartz with Spring will cause that. They make the suggestion of using CommnonJ to address this ... | We have a working solution for this (two actually). 1) Alter the quartz source code to use a WorkManager daemon thread for the main scheduler thread. It works, but requires changing quarts. We didn't use this though since we didn't want maintain a hacked version of quartz. (That reminds me, I was going to submit this t... | Unmanaged Threads Spring Quartz Websphere Hibernate It appears that our implementation of using Quartz - JDBCJobStore along with Spring, Hibernate and Websphere is throwing unmanaged threads. I have done some reading and found a tech article from IBM stating that the usage of Quartz with Spring will cause that. They ma... | TITLE:
Unmanaged Threads Spring Quartz Websphere Hibernate
QUESTION:
It appears that our implementation of using Quartz - JDBCJobStore along with Spring, Hibernate and Websphere is throwing unmanaged threads. I have done some reading and found a tech article from IBM stating that the usage of Quartz with Spring will c... | [
"java",
"hibernate",
"spring",
"websphere",
"quartz-scheduler"
] | 9 | 10 | 13,252 | 8 | 0 | 2008-10-06T19:46:37.150000 | 2008-10-07T14:06:00.130000 |
175,881 | 175,894 | SQL Server Express 2008 Install Side-by-side w/ SQL 2005 Express Fails | When I try to install a new instance of SQL Server 2008 Express on a development machine with SQL 2005 Express already up and running, the install validation fails because the "SQL 2005 Express tools" are installed and I'm told to remove them. What exactly does that mean? After reading this article: http://www.asql.biz... | Although you should have no problem running a 2005 instance of the database engine beside a 2008 instance, The tools are installed into a shared directory, so you can't have two versions of the tools installed. Fortunately, the 2008 tools are backwards-compatible. As we speak, I'm using SSMS 2008 and Profiler 2008 to m... | SQL Server Express 2008 Install Side-by-side w/ SQL 2005 Express Fails When I try to install a new instance of SQL Server 2008 Express on a development machine with SQL 2005 Express already up and running, the install validation fails because the "SQL 2005 Express tools" are installed and I'm told to remove them. What ... | TITLE:
SQL Server Express 2008 Install Side-by-side w/ SQL 2005 Express Fails
QUESTION:
When I try to install a new instance of SQL Server 2008 Express on a development machine with SQL 2005 Express already up and running, the install validation fails because the "SQL 2005 Express tools" are installed and I'm told to ... | [
"sql-server"
] | 41 | 40 | 102,146 | 10 | 0 | 2008-10-06T19:46:38.027000 | 2008-10-06T19:48:48.957000 |
175,882 | 179,003 | What's the algorithm behind sleep()? | Now there's something I always wondered: how is sleep() implemented? If it is all about using an API from the OS, then how is the API made? Does it all boil down to using special machine-code on the CPU? Does that CPU need a special co-processor or other gizmo without which you can't have sleep()? The best known incarn... | The "update" to question shows some misunderstanding of how modern OSs work. The kernel is not "allowed" a time slice. The kernel is the thing that gives out time slices to user processes. The "timer" is not set to wake the sleeping process up - it is set to stop the currently running process. In essence, the kernel at... | What's the algorithm behind sleep()? Now there's something I always wondered: how is sleep() implemented? If it is all about using an API from the OS, then how is the API made? Does it all boil down to using special machine-code on the CPU? Does that CPU need a special co-processor or other gizmo without which you can'... | TITLE:
What's the algorithm behind sleep()?
QUESTION:
Now there's something I always wondered: how is sleep() implemented? If it is all about using an API from the OS, then how is the API made? Does it all boil down to using special machine-code on the CPU? Does that CPU need a special co-processor or other gizmo with... | [
"c",
"algorithm",
"language-agnostic",
"sleep"
] | 49 | 47 | 12,591 | 8 | 0 | 2008-10-06T19:47:02.987000 | 2008-10-07T15:22:14.877000 |
175,891 | 175,920 | Is there a way to retrieve elements using only local names in a Linq-to-XML query? | Lets assume we have this xml: To retrieve RegistryErrorList element, we can do XDocument doc = XDocument.Load( ); XNamespace ns = "urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"; XElement errorList = doc.Root.Elements( ns + "RegistryErrorList").SingleOrDefault(); but not like this XElement errorList = doc.Root.Elements("R... | var q = from x in doc.Root.Elements() where x.Name.LocalName=="RegistryErrorList" select x;
var errorList = q.SingleOrDefault(); | Is there a way to retrieve elements using only local names in a Linq-to-XML query? Lets assume we have this xml: To retrieve RegistryErrorList element, we can do XDocument doc = XDocument.Load( ); XNamespace ns = "urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"; XElement errorList = doc.Root.Elements( ns + "RegistryErrorLi... | TITLE:
Is there a way to retrieve elements using only local names in a Linq-to-XML query?
QUESTION:
Lets assume we have this xml: To retrieve RegistryErrorList element, we can do XDocument doc = XDocument.Load( ); XNamespace ns = "urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"; XElement errorList = doc.Root.Elements( ns ... | [
"linq-to-xml"
] | 12 | 9 | 4,743 | 3 | 0 | 2008-10-06T19:48:17.210000 | 2008-10-06T19:54:27.837000 |
175,892 | 486,265 | Prevent an element from "capturing" the mouse using jQuery? | I'm trying to resize an embedded object. The issue is that when the mouse hovers over the object, it takes "control" of the mouse, swallowing up movement events. The result being that you can expand the div containing the object, but when you try to shrink it, if the mouse enters the area of the object the resize halts... | Well I was utterly unable to find a XPS Document Viewer example or whatnot, but I was able to come up with this working sample. It doesn't use the overlay idea, but it's a pdf that you can resize... edit the thing that made this work without the overlay was the wmode param being set to transparent. I'm not really famil... | Prevent an element from "capturing" the mouse using jQuery? I'm trying to resize an embedded object. The issue is that when the mouse hovers over the object, it takes "control" of the mouse, swallowing up movement events. The result being that you can expand the div containing the object, but when you try to shrink it,... | TITLE:
Prevent an element from "capturing" the mouse using jQuery?
QUESTION:
I'm trying to resize an embedded object. The issue is that when the mouse hovers over the object, it takes "control" of the mouse, swallowing up movement events. The result being that you can expand the div containing the object, but when you... | [
"jquery",
"mouseevent",
"mouse",
"embedded-object"
] | 2 | 3 | 2,781 | 8 | 0 | 2008-10-06T19:48:33.717000 | 2009-01-28T02:24:42.340000 |
175,949 | 176,129 | Can you use routed events with a MultiTrigger? | Does WPF support using a triggers that respond to routed events but only given a condition is met? For example, WPF supports triggering on routed events through Event Triggers. ie:... However I am looking for the trigger to go off only given a certain condition is met. Normally you use MultiTriggers for meeting multipl... | I don't think it is. Not the way you're thinking about it, anyway. The MultiTrigger and MultiDataTrigger are triggered when multiple properties have the matching values at the same time. This is something that can easily happen because it is based on state. It's based on values that stay the same, at least for a while.... | Can you use routed events with a MultiTrigger? Does WPF support using a triggers that respond to routed events but only given a condition is met? For example, WPF supports triggering on routed events through Event Triggers. ie:... However I am looking for the trigger to go off only given a certain condition is met. Nor... | TITLE:
Can you use routed events with a MultiTrigger?
QUESTION:
Does WPF support using a triggers that respond to routed events but only given a condition is met? For example, WPF supports triggering on routed events through Event Triggers. ie:... However I am looking for the trigger to go off only given a certain con... | [
"wpf",
"triggers",
"eventtrigger",
"routedevent",
"multidatatrigger"
] | 3 | 2 | 3,517 | 1 | 0 | 2008-10-06T20:02:04.687000 | 2008-10-06T20:46:40.167000 |
175,951 | 175,980 | How do I stop Chrome from yellowing my site's input boxes? | Among other text and visual aids on a form submission, post-validation, I'm coloring my input boxes red to signify the interactive area needing attention. On Chrome (and for Google Toolbar users) the auto-fill feature re-colors my input forms yellow. Here's the complex issue: I want auto-complete allowed on my forms, a... | I know in Firefox you can use the attribute autocomplete="off" to disable the autocomplete functionality. If this works in Chrome (haven't tested), you could set this attribute when an error is encountered. This can be used for both a single element...as well as for an entire form | How do I stop Chrome from yellowing my site's input boxes? Among other text and visual aids on a form submission, post-validation, I'm coloring my input boxes red to signify the interactive area needing attention. On Chrome (and for Google Toolbar users) the auto-fill feature re-colors my input forms yellow. Here's the... | TITLE:
How do I stop Chrome from yellowing my site's input boxes?
QUESTION:
Among other text and visual aids on a form submission, post-validation, I'm coloring my input boxes red to signify the interactive area needing attention. On Chrome (and for Google Toolbar users) the auto-fill feature re-colors my input forms ... | [
"css",
"validation",
"google-chrome",
"html-input"
] | 151 | 75 | 96,275 | 13 | 0 | 2008-10-06T20:02:55.183000 | 2008-10-06T20:09:39.930000 |
175,958 | 176,025 | How do I properly handle the viewstate of a child control within a composite control? | I have a composite control that contains a ListBox child control. On postback, the items for the ListBox disappear. I have a property for the ListBox that initializes it, and I add it to the controls collection in CreateChildControls. Am I doing something wrong? Do I need to be doing something else to properly handle t... | Be sure to add your control to the parent before you add listitems or databind. Otherwise, your composite control won't track viewstate on your ListBox's listitems. Here's a more thorough explanation: http://scottonwriting.net/sowblog/posts/2129.aspx. | How do I properly handle the viewstate of a child control within a composite control? I have a composite control that contains a ListBox child control. On postback, the items for the ListBox disappear. I have a property for the ListBox that initializes it, and I add it to the controls collection in CreateChildControls.... | TITLE:
How do I properly handle the viewstate of a child control within a composite control?
QUESTION:
I have a composite control that contains a ListBox child control. On postback, the items for the ListBox disappear. I have a property for the ListBox that initializes it, and I add it to the controls collection in Cr... | [
"asp.net",
"viewstate",
"composite-controls"
] | 3 | 1 | 1,001 | 1 | 0 | 2008-10-06T20:04:47.537000 | 2008-10-06T20:21:28.733000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.