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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
132,452 | 132,475 | Keyword highlighting on selection in Visual Studio 2008 | A little while ago I managed to get Visual Studio 2008 (C++) into a state where, if I would select a keyword (or any symbol for that matter), by either double clicking on it or highlighting it, all other instances of that symbol within the current file would become highlighted too. This was a really useful feature. Sin... | I think you've installed RockScroll. It also lights them up in the graphical scrollbar (its main feature) | Keyword highlighting on selection in Visual Studio 2008 A little while ago I managed to get Visual Studio 2008 (C++) into a state where, if I would select a keyword (or any symbol for that matter), by either double clicking on it or highlighting it, all other instances of that symbol within the current file would becom... | TITLE:
Keyword highlighting on selection in Visual Studio 2008
QUESTION:
A little while ago I managed to get Visual Studio 2008 (C++) into a state where, if I would select a keyword (or any symbol for that matter), by either double clicking on it or highlighting it, all other instances of that symbol within the curren... | [
"visual-studio",
"syntax-highlighting"
] | 5 | 7 | 4,549 | 3 | 0 | 2008-09-25T10:11:03.430000 | 2008-09-25T10:17:33.103000 |
132,478 | 132,550 | How to perform string Diffs in Java? | I need to perform Diffs between Java strings. I would like to be able to rebuild a string using the original string and diff versions. Has anyone done this in Java? What library do you use? String a1; // This can be a long text String a2; // ej. above text with spelling corrections String a3; // ej. above text with spe... | This library seems to do the trick: google-diff-match-patch. It can create a patch string from differences and allow to reapply the patch. edit: Another solution might be to https://code.google.com/p/java-diff-utils/ | How to perform string Diffs in Java? I need to perform Diffs between Java strings. I would like to be able to rebuild a string using the original string and diff versions. Has anyone done this in Java? What library do you use? String a1; // This can be a long text String a2; // ej. above text with spelling corrections ... | TITLE:
How to perform string Diffs in Java?
QUESTION:
I need to perform Diffs between Java strings. I would like to be able to rebuild a string using the original string and diff versions. Has anyone done this in Java? What library do you use? String a1; // This can be a long text String a2; // ej. above text with spe... | [
"java",
"diff"
] | 58 | 55 | 86,065 | 9 | 0 | 2008-09-25T10:20:39.977000 | 2008-09-25T10:41:37.537000 |
132,489 | 132,516 | Designing for change | I'm pretty sure most of us are familiar with the concept of a project's requirements changing after it starts, this becomes more and more of an issue the less the client knows about how things work and the closer you work with them. How then can I design a system (specifically a website but general advice will probably... | All the normal oo principles apply here, reduce coupling, increase cohesion, don't repeat yourself etc. This will make sure you have a flexible and extendible code base. Apart from that don't try to preempt change. Apply YAGNI (You aint gonna need it) everywhere. Only build stuff you know your users need. Dont build st... | Designing for change I'm pretty sure most of us are familiar with the concept of a project's requirements changing after it starts, this becomes more and more of an issue the less the client knows about how things work and the closer you work with them. How then can I design a system (specifically a website but general... | TITLE:
Designing for change
QUESTION:
I'm pretty sure most of us are familiar with the concept of a project's requirements changing after it starts, this becomes more and more of an issue the less the client knows about how things work and the closer you work with them. How then can I design a system (specifically a w... | [
"language-agnostic"
] | 6 | 12 | 289 | 7 | 0 | 2008-09-25T10:23:54.117000 | 2008-09-25T10:31:41.790000 |
132,498 | 201,213 | Webservices client and ssl | I have a Java client that calls a web service at the moment using the Http protocol. When i try to use the Https protocol i keep getting this error java.io.IOException: DerInputStream.getLength(): lengthTag=127, too big. Any ideas what could be up? Thanks Damien | Due to american export regulations in encryption technologies, you can't use strong encryption out of the box. Your error looks like you (or your framework) is trying to use strong encryption, and other parts of the framework is not allowing it. A discussion of a case that looks similar to yours can be found here. A go... | Webservices client and ssl I have a Java client that calls a web service at the moment using the Http protocol. When i try to use the Https protocol i keep getting this error java.io.IOException: DerInputStream.getLength(): lengthTag=127, too big. Any ideas what could be up? Thanks Damien | TITLE:
Webservices client and ssl
QUESTION:
I have a Java client that calls a web service at the moment using the Http protocol. When i try to use the Https protocol i keep getting this error java.io.IOException: DerInputStream.getLength(): lengthTag=127, too big. Any ideas what could be up? Thanks Damien
ANSWER:
Due... | [
"java",
"web-services",
"ssl",
"client"
] | 0 | 2 | 1,081 | 3 | 0 | 2008-09-25T10:27:03.843000 | 2008-10-14T13:48:17.890000 |
132,501 | 133,290 | How do I sort a list of integers using only one additional integer variable? | How to sort list of values using only one variable? | A solution in C: #include int main() { int list[]={4,7,2,4,1,10,3}; int n; // the one int variable
startsort: for (n=0; n< sizeof(list)/sizeof(int)-1; ++n) if (list[n] > list[n+1]) { list[n] ^= list[n+1]; list[n+1] ^= list[n]; list[n] ^= list[n+1]; goto startsort; }
for (n=0; n< sizeof(list)/sizeof(int); ++n) printf(... | How do I sort a list of integers using only one additional integer variable? How to sort list of values using only one variable? | TITLE:
How do I sort a list of integers using only one additional integer variable?
QUESTION:
How to sort list of values using only one variable?
ANSWER:
A solution in C: #include int main() { int list[]={4,7,2,4,1,10,3}; int n; // the one int variable
startsort: for (n=0; n< sizeof(list)/sizeof(int)-1; ++n) if (lis... | [
"algorithm",
"sorting",
"puzzle"
] | 3 | 7 | 2,846 | 7 | 0 | 2008-09-25T10:27:18.900000 | 2008-09-25T13:23:49.053000 |
132,507 | 132,557 | Given a date range (start and end dates), how can I count the days, excluding specified days of the week in .Net? | I'm creating a UI that allows the user the select a date range, and tick or un-tick the days of the week that apply within the date range. The date range controls are DateTimePickers, and the Days of the Week are CheckBoxes Here's a mock-up of the UI: From Date: (dtpDateFrom) To Date: (dtpDateTo) [y] Monday, [n] Tuesda... | Here's how I would approach it: Find day of week (dow) of first and last date Move first day forward to same dow as last. Store number of days moved that are to be included Calculate number of weeks between first and last Calculate number of included days in a week * number of weeks + included days moved As pseudo code... | Given a date range (start and end dates), how can I count the days, excluding specified days of the week in .Net? I'm creating a UI that allows the user the select a date range, and tick or un-tick the days of the week that apply within the date range. The date range controls are DateTimePickers, and the Days of the We... | TITLE:
Given a date range (start and end dates), how can I count the days, excluding specified days of the week in .Net?
QUESTION:
I'm creating a UI that allows the user the select a date range, and tick or un-tick the days of the week that apply within the date range. The date range controls are DateTimePickers, and ... | [
".net",
"date"
] | 2 | 5 | 2,565 | 2 | 0 | 2008-09-25T10:29:11.763000 | 2008-09-25T10:44:00.700000 |
132,564 | 132,579 | What's the difference between an element and a node in XML? | I'm working in Java with XML and I'm wondering; what's the difference between an element and a node? | The Node object is the primary data type for the entire DOM. A node can be an element node, an attribute node, a text node, or any other of the node types explained in the "Node types" chapter. An XML element is everything from (including) the element's start tag to (including) the element's end tag. | What's the difference between an element and a node in XML? I'm working in Java with XML and I'm wondering; what's the difference between an element and a node? | TITLE:
What's the difference between an element and a node in XML?
QUESTION:
I'm working in Java with XML and I'm wondering; what's the difference between an element and a node?
ANSWER:
The Node object is the primary data type for the entire DOM. A node can be an element node, an attribute node, a text node, or any o... | [
"xml",
"xmlnode"
] | 410 | 288 | 259,893 | 13 | 0 | 2008-09-25T10:47:53.623000 | 2008-09-25T10:52:44.237000 |
132,566 | 133,110 | "Son of Suckerfish" CSS Menu - sub menus not closing in IE7 | Despite my most convincing cries to the contrary, I was recently forced to implement a horizontal drop-down navigation system, so I opted for the friendliest one I could find - Son of Suckerfish. I tested in various browsers on my machine and all appeared to be fine. However, some (but not all!) IE7 users are experienc... | This is a problem that occurs in IE7 when another part of the page has focus (ie, you clicked somewhere and then mouse-over the menu). It seems to be an issue with the:hover pseudo-class. Adding a hasLayout trigger to the:hover style should fix the problem. #nav li:hover { position: static; } There are other solutions ... | "Son of Suckerfish" CSS Menu - sub menus not closing in IE7 Despite my most convincing cries to the contrary, I was recently forced to implement a horizontal drop-down navigation system, so I opted for the friendliest one I could find - Son of Suckerfish. I tested in various browsers on my machine and all appeared to b... | TITLE:
"Son of Suckerfish" CSS Menu - sub menus not closing in IE7
QUESTION:
Despite my most convincing cries to the contrary, I was recently forced to implement a horizontal drop-down navigation system, so I opted for the friendliest one I could find - Son of Suckerfish. I tested in various browsers on my machine and... | [
"javascript",
"suckerfish",
"css"
] | 4 | 4 | 2,239 | 2 | 0 | 2008-09-25T10:48:42.810000 | 2008-09-25T12:47:47.267000 |
132,585 | 132,694 | Installing mysql problem | Running OS X Leopard an MacBook Pro from Jan. 2008. I used to run mysql server from a package but then rails started putting a warning that I should install mysql from gem: gem install mysql It did not work, I got the following error message: Building native extensions. This could take a while... ERROR: Error installin... | To the first problem - I would imagine that Ruby gem is installing the ruby MySQL interface/drivers, not the MySQL server itself. It may be not present, or in a place the standard scripts can't find. The second message indicates that the MySQL server is not running. Try starting it again, or examine any logs/messages f... | Installing mysql problem Running OS X Leopard an MacBook Pro from Jan. 2008. I used to run mysql server from a package but then rails started putting a warning that I should install mysql from gem: gem install mysql It did not work, I got the following error message: Building native extensions. This could take a while.... | TITLE:
Installing mysql problem
QUESTION:
Running OS X Leopard an MacBook Pro from Jan. 2008. I used to run mysql server from a package but then rails started putting a warning that I should install mysql from gem: gem install mysql It did not work, I got the following error message: Building native extensions. This c... | [
"mysql",
"ruby-on-rails",
"mysql.sock"
] | 0 | 0 | 358 | 1 | 0 | 2008-09-25T10:53:47.667000 | 2008-09-25T11:20:48.693000 |
132,590 | 132,603 | Can a web service return a stream? | I've been writing a little application that will let people upload & download files to me. I've added a web service to this applciation to provide the upload/download functionality that way but I'm not too sure on how well my implementation is going to cope with large files. At the moment the definitions of the upload ... | Stephen Denne has a Metro implementation that satisfies your requirement. My answer is provided below after a short explination as to why that is the case. Most Web Service implementations that are built using HTTP as the message protocol are REST compliant, in that they only allow simple send-receive patterns and noth... | Can a web service return a stream? I've been writing a little application that will let people upload & download files to me. I've added a web service to this applciation to provide the upload/download functionality that way but I'm not too sure on how well my implementation is going to cope with large files. At the mo... | TITLE:
Can a web service return a stream?
QUESTION:
I've been writing a little application that will let people upload & download files to me. I've added a web service to this applciation to provide the upload/download functionality that way but I'm not too sure on how well my implementation is going to cope with larg... | [
"java",
"web-services",
"cxf"
] | 29 | 6 | 35,925 | 12 | 0 | 2008-09-25T10:55:38.177000 | 2008-09-25T10:59:16.950000 |
132,597 | 132,640 | Maven dependency exclusion for War file, but inclusion for tests | I have a maven POM file for a web service. For one of the dependencies I have to specify several exclusions for jar files that are already kept at a higher-level in the web-application server (accessible to all web-applications, not just this particular one). One example of such exclusion is the JAR containing my JDBC ... | Use the "scope" tag inside your dependency. test http://maven.apache.org/pom.html#Dependencies edit: if I understand your configuration correctly, the scope=test that you need to add should be added in the mygroup.myartifact POM. That way you can test that artifact with jdbc jar included, but always when other POMS wan... | Maven dependency exclusion for War file, but inclusion for tests I have a maven POM file for a web service. For one of the dependencies I have to specify several exclusions for jar files that are already kept at a higher-level in the web-application server (accessible to all web-applications, not just this particular o... | TITLE:
Maven dependency exclusion for War file, but inclusion for tests
QUESTION:
I have a maven POM file for a web service. For one of the dependencies I have to specify several exclusions for jar files that are already kept at a higher-level in the web-application server (accessible to all web-applications, not just... | [
"java",
"deployment",
"maven-2"
] | 2 | 7 | 4,386 | 1 | 0 | 2008-09-25T10:57:12.837000 | 2008-09-25T11:08:48.503000 |
132,607 | 133,044 | Exception handling using an HttpModule | We're reviewing one of the company's system's exception handling and found a couple of interesting things. Most of the code blocks (if not all of them) are inside a try/catch block, and inside the catch block a new BaseApplicationException is being thrown - which seems to be coming from the Enterprise Libraries. I'm in... | Never 1 catch (Exception ex). Period 2. There is no way you can handle all the different kinds of errors that you may catch. Never 3 catch an Exception-derived type if you can't handle it or provide additional information (to be used by subsequent exception handlers). Displaying an error message is not the same as hand... | Exception handling using an HttpModule We're reviewing one of the company's system's exception handling and found a couple of interesting things. Most of the code blocks (if not all of them) are inside a try/catch block, and inside the catch block a new BaseApplicationException is being thrown - which seems to be comin... | TITLE:
Exception handling using an HttpModule
QUESTION:
We're reviewing one of the company's system's exception handling and found a couple of interesting things. Most of the code blocks (if not all of them) are inside a try/catch block, and inside the catch block a new BaseApplicationException is being thrown - which... | [
"c#",
"asp.net",
"exception",
"httpmodule"
] | 5 | 10 | 5,109 | 6 | 0 | 2008-09-25T11:00:22.190000 | 2008-09-25T12:35:48.357000 |
132,612 | 132,917 | Show a ContextMenuStrip without it showing in the taskbar | I have found that when I execute the show() method for a contextmenustrip (a right click menu), if the position is outside that of the form it belongs to, it shows up on the taskbar also. I am trying to create a right click menu for when clicking on the notifyicon, but as the menu hovers above the system tray and not i... | Try assigning your menu to the ContextMenuStrip property of NotifyIcon rather than showing it in the mouse click handler. | Show a ContextMenuStrip without it showing in the taskbar I have found that when I execute the show() method for a contextmenustrip (a right click menu), if the position is outside that of the form it belongs to, it shows up on the taskbar also. I am trying to create a right click menu for when clicking on the notifyic... | TITLE:
Show a ContextMenuStrip without it showing in the taskbar
QUESTION:
I have found that when I execute the show() method for a contextmenustrip (a right click menu), if the position is outside that of the form it belongs to, it shows up on the taskbar also. I am trying to create a right click menu for when clicki... | [
".net",
"c++",
"winforms"
] | 8 | 9 | 5,007 | 4 | 0 | 2008-09-25T11:01:08.723000 | 2008-09-25T12:10:58.337000 |
132,620 | 132,774 | How do you retrieve a list of logged-in/connected users in .NET? | Here's the scenario: You have a Windows server that users remotely connect to via RDP. You want your program (which runs as a service) to know who is currently connected. This may or may not include an interactive console session. Please note that this is the not the same as just retrieving the current interactive user... | Here's my take on the issue: using System; using System.Collections.Generic; using System.Runtime.InteropServices;
namespace EnumerateRDUsers { class Program { [DllImport("wtsapi32.dll")] static extern IntPtr WTSOpenServer([MarshalAs(UnmanagedType.LPStr)] string pServerName);
[DllImport("wtsapi32.dll")] static extern... | How do you retrieve a list of logged-in/connected users in .NET? Here's the scenario: You have a Windows server that users remotely connect to via RDP. You want your program (which runs as a service) to know who is currently connected. This may or may not include an interactive console session. Please note that this is... | TITLE:
How do you retrieve a list of logged-in/connected users in .NET?
QUESTION:
Here's the scenario: You have a Windows server that users remotely connect to via RDP. You want your program (which runs as a service) to know who is currently connected. This may or may not include an interactive console session. Please... | [
"c#",
".net",
"windows-services",
"authentication"
] | 35 | 38 | 52,847 | 4 | 0 | 2008-09-25T11:02:36.723000 | 2008-09-25T11:42:51.633000 |
132,643 | 132,658 | Adding ListItems to a DropDownList from a generic list | I have a this aspx-code: (sample) With this codebehind: List colors = new List (); colors.Add(new ListItem("Select Value", "0")); colors.Add(new ListItem("Red", "1")); colors.Add(new ListItem("Green", "2")); colors.Add(new ListItem("Blue", "3")); ddList1.DataSource = colors; ddList1.DataBind(); The output looks like th... | Because DataBind method binds values only if DataValueField property is set. If you set DataValueField property to "Value" before calling DataBind, your values will appear on the markup. UPDATE: You will also need to set DataTextField property to "Text". It is because data binding and adding items manually do not work ... | Adding ListItems to a DropDownList from a generic list I have a this aspx-code: (sample) With this codebehind: List colors = new List (); colors.Add(new ListItem("Select Value", "0")); colors.Add(new ListItem("Red", "1")); colors.Add(new ListItem("Green", "2")); colors.Add(new ListItem("Blue", "3")); ddList1.DataSource... | TITLE:
Adding ListItems to a DropDownList from a generic list
QUESTION:
I have a this aspx-code: (sample) With this codebehind: List colors = new List (); colors.Add(new ListItem("Select Value", "0")); colors.Add(new ListItem("Red", "1")); colors.Add(new ListItem("Green", "2")); colors.Add(new ListItem("Blue", "3")); ... | [
"asp.net",
"drop-down-menu",
"listitem"
] | 10 | 10 | 58,822 | 4 | 0 | 2008-09-25T11:09:42.680000 | 2008-09-25T11:12:59.147000 |
132,649 | 132,681 | What is the difference between overflow:hidden and display:none | What is the difference between overflow:hidden and display:none? | Example:.oh { height: 50px; width: 200px; overflow: hidden; } If text in the block with this class is bigger (longer) than what this little box can display, the excess will be just hidden. You will see the start of the text only. display: none; will just hide the block. Note you have also visibility: hidden; which hide... | What is the difference between overflow:hidden and display:none What is the difference between overflow:hidden and display:none? | TITLE:
What is the difference between overflow:hidden and display:none
QUESTION:
What is the difference between overflow:hidden and display:none?
ANSWER:
Example:.oh { height: 50px; width: 200px; overflow: hidden; } If text in the block with this class is bigger (longer) than what this little box can display, the exc... | [
"css",
"overflow",
"hidden"
] | 14 | 27 | 26,200 | 8 | 0 | 2008-09-25T11:11:01.697000 | 2008-09-25T11:17:16.953000 |
132,667 | 132,730 | How can I disable #pragma warnings? | While developing a C++ application, I had to use a third-party library which produced a huge amount of warnings related with a harmless #pragma directive being used.../File.hpp:1: warning: ignoring #pragma ident In file included from../File2.hpp:47, from../File3.hpp:57, from File4.h:49, Is it possible to disable this k... | I believe you can compile with -Wno-unknown-pragmas to suppress these. | How can I disable #pragma warnings? While developing a C++ application, I had to use a third-party library which produced a huge amount of warnings related with a harmless #pragma directive being used.../File.hpp:1: warning: ignoring #pragma ident In file included from../File2.hpp:47, from../File3.hpp:57, from File4.h:... | TITLE:
How can I disable #pragma warnings?
QUESTION:
While developing a C++ application, I had to use a third-party library which produced a huge amount of warnings related with a harmless #pragma directive being used.../File.hpp:1: warning: ignoring #pragma ident In file included from../File2.hpp:47, from../File3.hpp... | [
"c++",
"warnings",
"pragma"
] | 54 | 106 | 84,427 | 5 | 0 | 2008-09-25T11:14:19.533000 | 2008-09-25T11:30:07.517000 |
132,685 | 132,704 | Font size in CSS - % or em? | When setting the size of fonts in CSS, should I be using a percent value ( % ) or em? Can you explain the advantage? | There's a really good article on web typography on A List Apart. Their conclusion: Sizing text and line-height in ems, with a percentage specified on the body (and an optional caveat for Safari 2), was shown to provide accurate, resizable text across all browsers in common use today. This is a technique you can put in ... | Font size in CSS - % or em? When setting the size of fonts in CSS, should I be using a percent value ( % ) or em? Can you explain the advantage? | TITLE:
Font size in CSS - % or em?
QUESTION:
When setting the size of fonts in CSS, should I be using a percent value ( % ) or em? Can you explain the advantage?
ANSWER:
There's a really good article on web typography on A List Apart. Their conclusion: Sizing text and line-height in ems, with a percentage specified o... | [
"css",
"fonts",
"font-size"
] | 121 | 80 | 53,932 | 8 | 0 | 2008-09-25T11:18:07.543000 | 2008-09-25T11:22:14.383000 |
132,687 | 132,747 | Can "classic" ASP.NET pages and Microsoft MVC coexist in the same web application? | I'm thinking about trying out MVC later today for a new app we're starting up, but I'm curious if it's an all or nothing thing or if I can still party like it's 2006 with viewstate and other crutches at the same time... | Yes you can have your webforms pages and MVC views mixed in a single web application project. This could be useful if you have an application that is already built and you want to migrate your app from webforms to mvc. You need to make sure that none of your webforms pages go in the 'Views' directory in a standard ASP.... | Can "classic" ASP.NET pages and Microsoft MVC coexist in the same web application? I'm thinking about trying out MVC later today for a new app we're starting up, but I'm curious if it's an all or nothing thing or if I can still party like it's 2006 with viewstate and other crutches at the same time... | TITLE:
Can "classic" ASP.NET pages and Microsoft MVC coexist in the same web application?
QUESTION:
I'm thinking about trying out MVC later today for a new app we're starting up, but I'm curious if it's an all or nothing thing or if I can still party like it's 2006 with viewstate and other crutches at the same time...... | [
"asp.net",
"asp.net-mvc"
] | 13 | 9 | 3,952 | 7 | 0 | 2008-09-25T11:19:11.863000 | 2008-09-25T11:36:10.513000 |
132,697 | 132,717 | In Visual Studio how to give relative path of a .lib file in project properties | I am building a project using Visual Studio. The project has a dependency on a lib file generated by another project. This project is there is the parent directory of the actual project I am building. To be more clear, I have a "ParentDir" which has two subDirectories Project1 and Project2 under it. Now Project1 depend... | Add the dependant project to your solution and set it as a dependency of the other project using project properties. Then it just magically works;). A solution is just a file that describes a set of related (interconnected) projects and the relation between them, so this is the correct way of doing it. | In Visual Studio how to give relative path of a .lib file in project properties I am building a project using Visual Studio. The project has a dependency on a lib file generated by another project. This project is there is the parent directory of the actual project I am building. To be more clear, I have a "ParentDir" ... | TITLE:
In Visual Studio how to give relative path of a .lib file in project properties
QUESTION:
I am building a project using Visual Studio. The project has a dependency on a lib file generated by another project. This project is there is the parent directory of the actual project I am building. To be more clear, I h... | [
"visual-studio",
"relative-path"
] | 9 | 7 | 15,483 | 3 | 0 | 2008-09-25T11:21:03.247000 | 2008-09-25T11:25:29.057000 |
132,719 | 132,729 | PDB files in Visual Studio bin\debug folders | I have a Visual Studio (2008) solution consisting of several projects, not all in the same namespace. When I build the solution, all the DLL files used by the top level project, TopProject, are copied into the TopProject\bin\debug folder. However, the corresponding.pdb files are only copied for some of the other projec... | From MSDN: A program database (PDB) file holds debugging and project state information that allows incremental linking of a Debug configuration of your program. A PDB file is created when you compile a C/C++ program with /ZI or /Zi or a Visual Basic/C#/JScript.NET program with /debug. So it looks like the "issue" here ... | PDB files in Visual Studio bin\debug folders I have a Visual Studio (2008) solution consisting of several projects, not all in the same namespace. When I build the solution, all the DLL files used by the top level project, TopProject, are copied into the TopProject\bin\debug folder. However, the corresponding.pdb files... | TITLE:
PDB files in Visual Studio bin\debug folders
QUESTION:
I have a Visual Studio (2008) solution consisting of several projects, not all in the same namespace. When I build the solution, all the DLL files used by the top level project, TopProject, are copied into the TopProject\bin\debug folder. However, the corre... | [
"visual-studio",
"build-process",
"pdb-files"
] | 11 | 11 | 28,250 | 4 | 0 | 2008-09-25T11:26:32.860000 | 2008-09-25T11:30:07.470000 |
132,720 | 439,385 | Method 'XYZ' cannot be reflected | We have consumed a third party web service and are trying to invoke it from an ASP.NET web application. However when I instantiate the web service the following System.InvalidOperationException exception is thrown: Method 'ABC.XYZ' can not be reflected. System.InvalidOperationException: Method 'ABC.XYZ' can not be refl... | It seems the problem is down to data type issues between VS and the web service that was written in Java. Ultimately it was fixed by manually editing the class and schema files that were created by VS. | Method 'XYZ' cannot be reflected We have consumed a third party web service and are trying to invoke it from an ASP.NET web application. However when I instantiate the web service the following System.InvalidOperationException exception is thrown: Method 'ABC.XYZ' can not be reflected. System.InvalidOperationException:... | TITLE:
Method 'XYZ' cannot be reflected
QUESTION:
We have consumed a third party web service and are trying to invoke it from an ASP.NET web application. However when I instantiate the web service the following System.InvalidOperationException exception is thrown: Method 'ABC.XYZ' can not be reflected. System.InvalidO... | [
"asp.net",
"web-services",
"exception",
"reflection"
] | 8 | 3 | 26,686 | 9 | 0 | 2008-09-25T11:27:17.990000 | 2009-01-13T15:32:51.777000 |
132,725 | 132,770 | Are delphi variables initialized with a value by default? | I'm new to Delphi, and I've been running some tests to see what object variables and stack variables are initialized to by default: TInstanceVariables = class fBoolean: boolean; // always starts off as false fInteger: integer; // always starts off as zero fObject: TObject; // always starts off as nil end; This is the b... | Yes, this is the documented behaviour: Object fields are always initialized to 0, 0.0, '', False, nil or whatever applies. Global variables are always initialized to 0 etc as well; Local reference-counted* variables are always initialized to nil or ''; Local non reference-counted* variables are uninitialized so you hav... | Are delphi variables initialized with a value by default? I'm new to Delphi, and I've been running some tests to see what object variables and stack variables are initialized to by default: TInstanceVariables = class fBoolean: boolean; // always starts off as false fInteger: integer; // always starts off as zero fObjec... | TITLE:
Are delphi variables initialized with a value by default?
QUESTION:
I'm new to Delphi, and I've been running some tests to see what object variables and stack variables are initialized to by default: TInstanceVariables = class fBoolean: boolean; // always starts off as false fInteger: integer; // always starts ... | [
"delphi",
"variables",
"initialization"
] | 116 | 119 | 74,050 | 10 | 0 | 2008-09-25T11:28:58.063000 | 2008-09-25T11:41:38.347000 |
132,738 | 132,915 | Why should I ever use inline code? | I'm a C/C++ developer, and here are a couple of questions that always baffled me. Is there a big difference between "regular" code and inline code? Which is the main difference? Is inline code simply a "form" of macros? What kind of tradeoff must be done when choosing to inline your code? Thanks | Is there a big difference between "regular" code and inline code? Yes and no. No, because an inline function or method has exactly the same characteristics as a regular one, most important one being that they are both type safe. And yes, because the assembly code generated by the compiler will be different; with a regu... | Why should I ever use inline code? I'm a C/C++ developer, and here are a couple of questions that always baffled me. Is there a big difference between "regular" code and inline code? Which is the main difference? Is inline code simply a "form" of macros? What kind of tradeoff must be done when choosing to inline your c... | TITLE:
Why should I ever use inline code?
QUESTION:
I'm a C/C++ developer, and here are a couple of questions that always baffled me. Is there a big difference between "regular" code and inline code? Which is the main difference? Is inline code simply a "form" of macros? What kind of tradeoff must be done when choosin... | [
"c++",
"optimization",
"inline-functions",
"tradeoff"
] | 33 | 41 | 26,483 | 16 | 0 | 2008-09-25T11:32:51.440000 | 2008-09-25T12:10:46.107000 |
132,750 | 133,579 | jQuery - running a function on a new image | I'm a jQuery novice, so the answer to this may be quite simple: I have an image, and I would like to do several things with it. When a user clicks on a 'Zoom' icon, I'm running the 'imagetool' plugin ( http://code.google.com/p/jquery-imagetool/ ) to load a larger version of the image. The plugin creates a new div aroun... | Wehey! I've sorted it out myself... Turns out if I remove the containing div completely, and then rewrite it with.html, the imagetool plugin recognises it again. Amended code for anyone who's interested: $(document).ready(function(){
// Product Zoom (jQuery) $("#productZoom").click(function() {
$('#productImage').rem... | jQuery - running a function on a new image I'm a jQuery novice, so the answer to this may be quite simple: I have an image, and I would like to do several things with it. When a user clicks on a 'Zoom' icon, I'm running the 'imagetool' plugin ( http://code.google.com/p/jquery-imagetool/ ) to load a larger version of th... | TITLE:
jQuery - running a function on a new image
QUESTION:
I'm a jQuery novice, so the answer to this may be quite simple: I have an image, and I would like to do several things with it. When a user clicks on a 'Zoom' icon, I'm running the 'imagetool' plugin ( http://code.google.com/p/jquery-imagetool/ ) to load a la... | [
"javascript",
"jquery",
"zooming"
] | 4 | 7 | 9,214 | 3 | 0 | 2008-09-25T11:37:04.830000 | 2008-09-25T14:14:07.137000 |
132,754 | 132,933 | Different layouts and i18n in JSP application | I have a bunch of JSP files and backend in Tomcat. I have 3 different versions of JSP with same logic inside but with different layouts. So if I change some logic I have three JSP file to fix. What is the proper soution for such a scenario? I thought of some XML and XSLT stack: backend gives only data in XML and than f... | Learn about MVC (Model View Controller) and the idea that JSP should be the View part of it and should not contain any logic whatsoever. Logic belongs in a Model class. | Different layouts and i18n in JSP application I have a bunch of JSP files and backend in Tomcat. I have 3 different versions of JSP with same logic inside but with different layouts. So if I change some logic I have three JSP file to fix. What is the proper soution for such a scenario? I thought of some XML and XSLT st... | TITLE:
Different layouts and i18n in JSP application
QUESTION:
I have a bunch of JSP files and backend in Tomcat. I have 3 different versions of JSP with same logic inside but with different layouts. So if I change some logic I have three JSP file to fix. What is the proper soution for such a scenario? I thought of so... | [
"java",
"model-view-controller",
"jsp",
"tomcat"
] | 1 | 1 | 755 | 5 | 0 | 2008-09-25T11:37:54.860000 | 2008-09-25T12:14:09.843000 |
132,764 | 132,775 | How do I - in ASP.NET save the info from a page when a user leaves the page? | In our CMS, we have a place in which we enable users to play around with their site hierarchy - move pages around, add and remove pages, etc. We use drag & drop to implement moving pages around. Each move has to saved in th DB, and exported to many HTML files. If we do that in every move, it will slow down the users. T... | You should warn the user when he leaves the page with javascript. From http://www.siafoo.net/article/67: Modern browsers have an event called window.beforeunload that is fired right when any event occurs that would cause the page to unload. This includes clicking on a link, submitting a form, or closing the tab or wind... | How do I - in ASP.NET save the info from a page when a user leaves the page? In our CMS, we have a place in which we enable users to play around with their site hierarchy - move pages around, add and remove pages, etc. We use drag & drop to implement moving pages around. Each move has to saved in th DB, and exported to... | TITLE:
How do I - in ASP.NET save the info from a page when a user leaves the page?
QUESTION:
In our CMS, we have a place in which we enable users to play around with their site hierarchy - move pages around, add and remove pages, etc. We use drag & drop to implement moving pages around. Each move has to saved in th D... | [
"asp.net",
"page-lifecycle"
] | 1 | 3 | 2,338 | 4 | 0 | 2008-09-25T11:40:41.267000 | 2008-09-25T11:43:12.930000 |
132,799 | 132,811 | How can I echo a newline in a batch file? | How can you you insert a newline from your batch file output? I want to do something like: echo hello\nworld Which would output: hello world | echo hello & echo.world This means you could define & echo. as a constant for a newline \n. | How can I echo a newline in a batch file? How can you you insert a newline from your batch file output? I want to do something like: echo hello\nworld Which would output: hello world | TITLE:
How can I echo a newline in a batch file?
QUESTION:
How can you you insert a newline from your batch file output? I want to do something like: echo hello\nworld Which would output: hello world
ANSWER:
echo hello & echo.world This means you could define & echo. as a constant for a newline \n. | [
"windows",
"batch-file",
"newline"
] | 787 | 539 | 1,261,854 | 27 | 0 | 2008-09-25T11:50:24.720000 | 2008-09-25T11:52:13.127000 |
132,857 | 132,892 | Test automation using batch files: | I have the following layout for my test suite: TestSuite1.cmd: Run my program Check its return result If the return result is not 0, convert the error to textual output and abort the script. If it succeeds, write out success. In my single.cmd file, I call my program about 10 times with different input. The problem is t... | Assuming they won't interfere with each other by writing to the same files,etc: test1.cmd:: intercept sub-calls. if "%1"=="test2" then goto:test2:: start sub-calls. start test1.cmd test2 1 start test1.cmd test2 2 start test1.cmd test2 3:: wait for sub-calls to complete.:loop1 if not exist test2_1.flg goto:loop1:loop2 i... | Test automation using batch files: I have the following layout for my test suite: TestSuite1.cmd: Run my program Check its return result If the return result is not 0, convert the error to textual output and abort the script. If it succeeds, write out success. In my single.cmd file, I call my program about 10 times wit... | TITLE:
Test automation using batch files:
QUESTION:
I have the following layout for my test suite: TestSuite1.cmd: Run my program Check its return result If the return result is not 0, convert the error to textual output and abort the script. If it succeeds, write out success. In my single.cmd file, I call my program ... | [
"batch-file",
"automated-tests",
"dos"
] | 2 | 4 | 5,152 | 5 | 0 | 2008-09-25T11:59:57.350000 | 2008-09-25T12:06:03.217000 |
132,860 | 134,868 | How do I add an action to Visio (2003)? | In a Visio ShapeSheet, one can add actions. I want to create an action that updates the value of another cell (the position of a control). How can one do that? Does it need a separate macro, or can it be specified directly? And how? | You don't need an addon or macro; you can do this in the ShapeSheet. In the ShapeSheet, look for the Action section. If you don't find it right click and add it. In the Action section add a row. Set the cells to something like: Action = SETF(GetRef(Controls.Row_1),"2 in.")+SETF(GetRef(Controls.Row_1.Y),"2 in.") Menu = ... | How do I add an action to Visio (2003)? In a Visio ShapeSheet, one can add actions. I want to create an action that updates the value of another cell (the position of a control). How can one do that? Does it need a separate macro, or can it be specified directly? And how? | TITLE:
How do I add an action to Visio (2003)?
QUESTION:
In a Visio ShapeSheet, one can add actions. I want to create an action that updates the value of another cell (the position of a control). How can one do that? Does it need a separate macro, or can it be specified directly? And how?
ANSWER:
You don't need an ad... | [
"visio",
"shapesheet"
] | 1 | 2 | 4,409 | 1 | 0 | 2008-09-25T12:00:09.907000 | 2008-09-25T17:57:27.350000 |
132,867 | 132,970 | I have a gem installed but require 'gemname' does not work. Why? | The question I'm really asking is why require does not take the name of the gem. Also, In the case that it doesn't, what's the easiest way to find the secret incantation to require the damn thing!? As an example if I have memcache-client installed then I have to require it using require 'rubygems' require 'memcache' | There is no standard for what the file you need to include is. However there are some commonly followed conventions that you can can follow try and make use of: Often the file is called the same name as the gem. So require mygem will work. Often the file is the only.rb file in the lib subdirectory of the gem, So if you... | I have a gem installed but require 'gemname' does not work. Why? The question I'm really asking is why require does not take the name of the gem. Also, In the case that it doesn't, what's the easiest way to find the secret incantation to require the damn thing!? As an example if I have memcache-client installed then I ... | TITLE:
I have a gem installed but require 'gemname' does not work. Why?
QUESTION:
The question I'm really asking is why require does not take the name of the gem. Also, In the case that it doesn't, what's the easiest way to find the secret incantation to require the damn thing!? As an example if I have memcache-client... | [
"ruby",
"rubygems"
] | 64 | 38 | 73,286 | 11 | 0 | 2008-09-25T12:01:13.993000 | 2008-09-25T12:23:49.367000 |
132,885 | 132,904 | Best way to switch configuration between Development/UAT/Prod environments in ASP.NET? | I need to switch among 3 different environments when developing my web app - Development, UAT, and Prod. I have different database connections in my configuration files for all 3. I have seen switching these settings done manually by changing all references and then rebuilding the solution, and also done with preproces... | To me it seems that you can benefit from the Visual Studio 2005 Web Deployment Project s. With that, you can tell it to update/modify sections of your web.config file depending on the build configuration. Take a look at this blog entry from Scott Gu for a quick overview/sample. | Best way to switch configuration between Development/UAT/Prod environments in ASP.NET? I need to switch among 3 different environments when developing my web app - Development, UAT, and Prod. I have different database connections in my configuration files for all 3. I have seen switching these settings done manually by... | TITLE:
Best way to switch configuration between Development/UAT/Prod environments in ASP.NET?
QUESTION:
I need to switch among 3 different environments when developing my web app - Development, UAT, and Prod. I have different database connections in my configuration files for all 3. I have seen switching these setting... | [
"asp.net",
"configuration"
] | 10 | 11 | 7,525 | 5 | 0 | 2008-09-25T12:04:27.557000 | 2008-09-25T12:08:27.597000 |
132,895 | 132,962 | What is the best way to generate XML Binding Code from a DTD? | Most Java-XML binding frameworks and code generators need XML Schema Defintions. Can you suggest the best way to generate binding code from DTD. I know that the XJC in JAXB 2 supports DTD but it is considered experimental. In the spirit of Stack Overflow, one suggestion per answer please - to be voted up or down instea... | Convert the DTD to a schema (lots of online and offline tools available). This step should be lossless. Now use this schema with your favorite Java-XML binding framework and/or code generator that needs schema definitions. | What is the best way to generate XML Binding Code from a DTD? Most Java-XML binding frameworks and code generators need XML Schema Defintions. Can you suggest the best way to generate binding code from DTD. I know that the XJC in JAXB 2 supports DTD but it is considered experimental. In the spirit of Stack Overflow, on... | TITLE:
What is the best way to generate XML Binding Code from a DTD?
QUESTION:
Most Java-XML binding frameworks and code generators need XML Schema Defintions. Can you suggest the best way to generate binding code from DTD. I know that the XJC in JAXB 2 supports DTD but it is considered experimental. In the spirit of ... | [
"java",
"xml",
"binding",
"schema",
"dtd"
] | 1 | 2 | 782 | 1 | 0 | 2008-09-25T12:06:48.567000 | 2008-09-25T12:21:33.820000 |
132,902 | 132,939 | How do I split the output from mysqldump into smaller files? | I need to move entire tables from one MySQL database to another. I don't have full access to the second one, only phpMyAdmin access. I can only upload (compressed) sql files smaller than 2MB. But the compressed output from a mysqldump of the first database's tables is larger than 10MB. Is there a way to split the outpu... | First dump the schema (it surely fits in 2Mb, no?) mysqldump -d --all-databases and restore it. Afterwards dump only the data in separate insert statements, so you can split the files and restore them without having to concatenate them on the remote server mysqldump --all-databases --extended-insert=FALSE --no-create-i... | How do I split the output from mysqldump into smaller files? I need to move entire tables from one MySQL database to another. I don't have full access to the second one, only phpMyAdmin access. I can only upload (compressed) sql files smaller than 2MB. But the compressed output from a mysqldump of the first database's ... | TITLE:
How do I split the output from mysqldump into smaller files?
QUESTION:
I need to move entire tables from one MySQL database to another. I don't have full access to the second one, only phpMyAdmin access. I can only upload (compressed) sql files smaller than 2MB. But the compressed output from a mysqldump of the... | [
"mysql",
"migration"
] | 60 | 36 | 89,605 | 17 | 0 | 2008-09-25T12:08:05.520000 | 2008-09-25T12:16:05.517000 |
132,921 | 133,116 | Force Https in Websphere 6.1 | I was wondering how i can force a user who has requested a page using Http to use the secure https version? I am using Websphere 6.1 as my application server and Rad 7 as my development environment Thanks Damien | One way that you could do this within your application rather than in the server configuration would be to use a Filter (specified in your web.xml) to check if ServletRequest.getScheme() is "http" or "https", and re-direct the user to the appropriate URL (using HttpServletResponse.sendRedirect(String url) ). | Force Https in Websphere 6.1 I was wondering how i can force a user who has requested a page using Http to use the secure https version? I am using Websphere 6.1 as my application server and Rad 7 as my development environment Thanks Damien | TITLE:
Force Https in Websphere 6.1
QUESTION:
I was wondering how i can force a user who has requested a page using Http to use the secure https version? I am using Websphere 6.1 as my application server and Rad 7 as my development environment Thanks Damien
ANSWER:
One way that you could do this within your applicati... | [
"servlets",
"https",
"websphere",
"rad"
] | 0 | 3 | 4,003 | 4 | 0 | 2008-09-25T12:12:10.380000 | 2008-09-25T12:48:43.660000 |
132,940 | 166,523 | Why does Castle Windsor hold onto transient objects? | Recently I noticed my application appears to be eating memory that never gets released. After profiling with CLRProfiler I've found that the Castle Windsor container I'm using is holding onto objects. These objects are declared with the lifestyle="transient" attribute in the config xml. I've found if I put an explicit ... | I think the answers here are missing a vital point - that this behavior is configurable out of the box via release policies - check out the documentation on the castle project site here. In many scenarios especially where your container exists for the lifetime of the hosting application, and where transient components ... | Why does Castle Windsor hold onto transient objects? Recently I noticed my application appears to be eating memory that never gets released. After profiling with CLRProfiler I've found that the Castle Windsor container I'm using is holding onto objects. These objects are declared with the lifestyle="transient" attribut... | TITLE:
Why does Castle Windsor hold onto transient objects?
QUESTION:
Recently I noticed my application appears to be eating memory that never gets released. After profiling with CLRProfiler I've found that the Castle Windsor container I'm using is holding onto objects. These objects are declared with the lifestyle="t... | [
"c#",
"castle-windsor"
] | 31 | 22 | 7,174 | 3 | 0 | 2008-09-25T12:16:08.730000 | 2008-10-03T12:07:13.413000 |
132,955 | 133,425 | How do I set a task to run every so often? | How do I have a script run every, say 30 minutes? I assume there are different ways for different OSs. I'm using OS X. | Just use launchd. It is a very powerful launcher system and meanwhile it is the standard launcher system for Mac OS X (current OS X version wouldn't even boot without it). For those who are not familiar with launchd (or with OS X in general), it is like a crossbreed between init, cron, at, SysVinit ( init.d ), inetd, u... | How do I set a task to run every so often? How do I have a script run every, say 30 minutes? I assume there are different ways for different OSs. I'm using OS X. | TITLE:
How do I set a task to run every so often?
QUESTION:
How do I have a script run every, say 30 minutes? I assume there are different ways for different OSs. I'm using OS X.
ANSWER:
Just use launchd. It is a very powerful launcher system and meanwhile it is the standard launcher system for Mac OS X (current OS X... | [
"macos",
"shell",
"time",
"cron",
"scheduled-tasks"
] | 119 | 186 | 93,958 | 7 | 0 | 2008-09-25T12:20:01.030000 | 2008-09-25T13:43:27.990000 |
132,971 | 132,975 | What is the Windows version of cron? | A Google search turned up software that performs the same functions as cron, but nothing built into Windows. I'm running Windows XP Professional, but advice for any version of Windows would be potentially helpful to someone. Is there also a way to invoke this feature (which based on answers is called the Task Scheduler... | For newer Microsoft OS versions, Windows Server 2012 / Windows 8, look at the schtasks command line utility. If using PowerShell, the Scheduled Tasks Cmdlets in Windows PowerShell are made for scripting. For command-line usage before Windows 8, you can schedule with the AT command. For the original question, asking abo... | What is the Windows version of cron? A Google search turned up software that performs the same functions as cron, but nothing built into Windows. I'm running Windows XP Professional, but advice for any version of Windows would be potentially helpful to someone. Is there also a way to invoke this feature (which based on... | TITLE:
What is the Windows version of cron?
QUESTION:
A Google search turned up software that performs the same functions as cron, but nothing built into Windows. I'm running Windows XP Professional, but advice for any version of Windows would be potentially helpful to someone. Is there also a way to invoke this featu... | [
"windows",
"cron",
"scheduling",
"scheduled-tasks"
] | 297 | 308 | 340,868 | 15 | 0 | 2008-09-25T12:23:51.957000 | 2008-09-25T12:24:26.683000 |
132,988 | 133,024 | Is there a difference between "==" and "is"? | My Google-fu has failed me. In Python, are the following two tests for equality equivalent? n = 5 # Test one. if n == 5: print 'Yay!'
# Test two. if n is 5: print 'Yay!' Does this hold true for objects where you would be comparing instances (a list say)? Okay, so this kind of answers my question: L = [] L.append(1) if... | is will return True if two variables point to the same object (in memory), == if the objects referred to by the variables are equal. >>> a = [1, 2, 3] >>> b = a >>> b is a True >>> b == a True
# Make a new copy of list `a` via the slice operator, # and assign it to variable `b` >>> b = a[:] >>> b is a False >>> b == a... | Is there a difference between "==" and "is"? My Google-fu has failed me. In Python, are the following two tests for equality equivalent? n = 5 # Test one. if n == 5: print 'Yay!'
# Test two. if n is 5: print 'Yay!' Does this hold true for objects where you would be comparing instances (a list say)? Okay, so this kind ... | TITLE:
Is there a difference between "==" and "is"?
QUESTION:
My Google-fu has failed me. In Python, are the following two tests for equality equivalent? n = 5 # Test one. if n == 5: print 'Yay!'
# Test two. if n is 5: print 'Yay!' Does this hold true for objects where you would be comparing instances (a list say)? O... | [
"python",
"reference",
"equality",
"semantics"
] | 628 | 1,155 | 525,060 | 13 | 0 | 2008-09-25T12:27:09.733000 | 2008-09-25T12:32:37.473000 |
133,008 | 133,162 | What is Big O notation? Do you use it? | What is Big O notation? Do you use it? I missed this university class I guess:D Does anyone use it and give some real life examples of where they used it? See also: Big-O for Eight Year Olds? Big O, how do you calculate/approximate it? Did you apply computational complexity theory in real life? | One important thing most people forget when talking about Big-O, thus I feel the need to mention that: You cannot use Big-O to compare the speed of two algorithms. Big-O only says how much slower an algorithm will get (approximately) if you double the number of items processed, or how much faster it will get if you cut... | What is Big O notation? Do you use it? What is Big O notation? Do you use it? I missed this university class I guess:D Does anyone use it and give some real life examples of where they used it? See also: Big-O for Eight Year Olds? Big O, how do you calculate/approximate it? Did you apply computational complexity theory... | TITLE:
What is Big O notation? Do you use it?
QUESTION:
What is Big O notation? Do you use it? I missed this university class I guess:D Does anyone use it and give some real life examples of where they used it? See also: Big-O for Eight Year Olds? Big O, how do you calculate/approximate it? Did you apply computational... | [
"optimization",
"complexity-theory",
"big-o"
] | 36 | 49 | 33,298 | 12 | 0 | 2008-09-25T12:29:50.413000 | 2008-09-25T12:57:10.350000 |
133,031 | 133,057 | How to check if a column exists in a SQL Server table | I need to add a specific column if it does not exist. I have something like the following, but it always returns false: IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'myTableName' AND COLUMN_NAME = 'myColumnName') How can I check if a column exists in a table of the SQL Server database? | SQL Server 2005 onwards: IF EXISTS(SELECT 1 FROM sys.columns WHERE Name = N'columnName' AND Object_ID = Object_ID(N'schemaName.tableName')) BEGIN -- Column Exists END Martin Smith's version is shorter: IF COL_LENGTH('schemaName.tableName', 'columnName') IS NOT NULL BEGIN -- Column Exists END | How to check if a column exists in a SQL Server table I need to add a specific column if it does not exist. I have something like the following, but it always returns false: IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'myTableName' AND COLUMN_NAME = 'myColumnName') How can I check if a column ... | TITLE:
How to check if a column exists in a SQL Server table
QUESTION:
I need to add a specific column if it does not exist. I have something like the following, but it always returns false: IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'myTableName' AND COLUMN_NAME = 'myColumnName') How can I ... | [
"sql-server",
"sql-server-2008",
"t-sql",
"sql-server-2012",
"sql-server-2016"
] | 2,171 | 2,370 | 1,648,730 | 33 | 0 | 2008-09-25T12:34:00.093000 | 2008-09-25T12:39:21.297000 |
133,051 | 133,064 | What is the difference between visibility:hidden and display:none? | The CSS rules visibility:hidden and display:none both result in the element not being visible. Are these synonyms? | display:none means that the tag in question will not appear on the page at all (although you can still interact with it through the dom). There will be no space allocated for it between the other tags. visibility:hidden means that unlike display:none, the tag is not visible, but space is allocated for it on the page. T... | What is the difference between visibility:hidden and display:none? The CSS rules visibility:hidden and display:none both result in the element not being visible. Are these synonyms? | TITLE:
What is the difference between visibility:hidden and display:none?
QUESTION:
The CSS rules visibility:hidden and display:none both result in the element not being visible. Are these synonyms?
ANSWER:
display:none means that the tag in question will not appear on the page at all (although you can still interact... | [
"css",
"visibility"
] | 1,389 | 1,698 | 754,110 | 21 | 0 | 2008-09-25T12:37:47.617000 | 2008-09-25T12:40:05.647000 |
133,077 | 225,464 | How should I bind a web UI against XML attributes? | I want to bind my UI against a collection of XElements and their properties on a webpage. Hypothetically, this could be for any object that represents an XML tree. I'm hoping that there might be a better way of doing this. Should I use an XPath query to get out the elements of the collection and the attribute values of... | I normally use a "placeholder" class with [XmlRoot], [XmlElement], [XmlAttribute] and I have the xml passed to a deserializer which gives me an object of the type of the placeholder. Once this is done, the only thing left to do is some basic DataBinding to a strongly typed object. Here is a sample class that is "Xml En... | How should I bind a web UI against XML attributes? I want to bind my UI against a collection of XElements and their properties on a webpage. Hypothetically, this could be for any object that represents an XML tree. I'm hoping that there might be a better way of doing this. Should I use an XPath query to get out the ele... | TITLE:
How should I bind a web UI against XML attributes?
QUESTION:
I want to bind my UI against a collection of XElements and their properties on a webpage. Hypothetically, this could be for any object that represents an XML tree. I'm hoping that there might be a better way of doing this. Should I use an XPath query ... | [
"asp.net-mvc",
"xml",
"data-binding"
] | 0 | 0 | 357 | 1 | 0 | 2008-09-25T12:41:43.990000 | 2008-10-22T12:01:03.717000 |
133,081 | 150,722 | Most efficient way in SQL Server to get date from date+time? | In MS SQL 2000 and 2005, given a datetime such as '2008-09-25 12:34:56' what is the most efficient way to get a datetime containing only '2008-09-25'? Duplicated here. | I must admit I hadn't seen the floor-float conversion shown by Matt before. I had to test this out. I tested a pure select (which will return Date and Time, and is not what we want), the reigning solution here (floor-float), a common 'naive' one mentioned here (stringconvert) and the one mentioned here that I was using... | Most efficient way in SQL Server to get date from date+time? In MS SQL 2000 and 2005, given a datetime such as '2008-09-25 12:34:56' what is the most efficient way to get a datetime containing only '2008-09-25'? Duplicated here. | TITLE:
Most efficient way in SQL Server to get date from date+time?
QUESTION:
In MS SQL 2000 and 2005, given a datetime such as '2008-09-25 12:34:56' what is the most efficient way to get a datetime containing only '2008-09-25'? Duplicated here.
ANSWER:
I must admit I hadn't seen the floor-float conversion shown by M... | [
"sql",
"sql-server",
"t-sql"
] | 81 | 116 | 84,349 | 11 | 0 | 2008-09-25T12:42:00.680000 | 2008-09-29T21:18:09.150000 |
133,094 | 133,473 | Best Practices for Internationalizing a Flex Application? | I am looking into internationalizing a Flex application I am working on and I am curious if there are any best practices or recommendations for doing so. Googling for such information results in a handful of small articles and blog posts, each about doing it differently, and the advantages and disadvantages are not exa... | Of course, after googling a bit more I come across an article on runtime localization. And followed these steps: Add the following to the compiler arguments to specify the supported locales and their path: (In Flex Builder, select project and go properties -> Flex Compiler -> Additional Compiler Arguments) -locale=en_C... | Best Practices for Internationalizing a Flex Application? I am looking into internationalizing a Flex application I am working on and I am curious if there are any best practices or recommendations for doing so. Googling for such information results in a handful of small articles and blog posts, each about doing it dif... | TITLE:
Best Practices for Internationalizing a Flex Application?
QUESTION:
I am looking into internationalizing a Flex application I am working on and I am curious if there are any best practices or recommendations for doing so. Googling for such information results in a handful of small articles and blog posts, each ... | [
"apache-flex",
"actionscript",
"internationalization"
] | 5 | 5 | 2,511 | 1 | 0 | 2008-09-25T12:44:35.823000 | 2008-09-25T13:53:02.133000 |
133,106 | 133,147 | How secure is basic forms authentication in asp.net? | Imagine that you have a simple site with only 2 pages: login.aspx and secret.aspx. Your site is secured using nothing but ASP.net forms authentication and an ASP.net Login server control on login.aspx. The details are as follows: The site is configured to use the SqlMembershipProvider The site denies all anonymous user... | You still have some variables that aren't accounted for: Security into the data store used by your membership provider (in this case, the Sql Server database). security of other sites hosted in the same IIS general network security of the machines involved in hosting the site, or on the same network where the site is h... | How secure is basic forms authentication in asp.net? Imagine that you have a simple site with only 2 pages: login.aspx and secret.aspx. Your site is secured using nothing but ASP.net forms authentication and an ASP.net Login server control on login.aspx. The details are as follows: The site is configured to use the Sql... | TITLE:
How secure is basic forms authentication in asp.net?
QUESTION:
Imagine that you have a simple site with only 2 pages: login.aspx and secret.aspx. Your site is secured using nothing but ASP.net forms authentication and an ASP.net Login server control on login.aspx. The details are as follows: The site is configu... | [
"asp.net",
"forms-authentication"
] | 20 | 15 | 10,953 | 8 | 0 | 2008-09-25T12:46:39.470000 | 2008-09-25T12:53:43.680000 |
133,111 | 133,159 | How can I carry out math functions in the Ant 'ReplaceRegExp' task? | I need to increment a number in a source file from an Ant build script. I can use the ReplaceRegExp task to find the number I want to increment, but how do I then increment that number within the replace attribute? Heres what I've got so far: In the replace attribute, how would I do replace="MY_PROPERTY = (\1 + 1);" I ... | You can use something like: so the ant task is propertyfile. | How can I carry out math functions in the Ant 'ReplaceRegExp' task? I need to increment a number in a source file from an Ant build script. I can use the ReplaceRegExp task to find the number I want to increment, but how do I then increment that number within the replace attribute? Heres what I've got so far: In the re... | TITLE:
How can I carry out math functions in the Ant 'ReplaceRegExp' task?
QUESTION:
I need to increment a number in a source file from an Ant build script. I can use the ReplaceRegExp task to find the number I want to increment, but how do I then increment that number within the replace attribute? Heres what I've got... | [
"regex",
"ant"
] | 9 | 4 | 4,328 | 3 | 0 | 2008-09-25T12:47:50.573000 | 2008-09-25T12:55:51.320000 |
133,122 | 133,415 | How to change a Window Owner using its handle | I want to make a.NET Form as a TopMost Form for another external App (not.NET related, pure Win32) so it stays above that Win32App, but not the rest of the apps running. I Have the handle of the Win32App (provided by the Win32App itself), and I've tried Win32 SetParent() function, via P/Invoke in C#, but then my.NET Fo... | I think you're looking for is to P/Invoke SetWindowLongPtr(win32window, GWLP_HWNDPARENT, formhandle) Google Search | How to change a Window Owner using its handle I want to make a.NET Form as a TopMost Form for another external App (not.NET related, pure Win32) so it stays above that Win32App, but not the rest of the apps running. I Have the handle of the Win32App (provided by the Win32App itself), and I've tried Win32 SetParent() fu... | TITLE:
How to change a Window Owner using its handle
QUESTION:
I want to make a.NET Form as a TopMost Form for another external App (not.NET related, pure Win32) so it stays above that Win32App, but not the rest of the apps running. I Have the handle of the Win32App (provided by the Win32App itself), and I've tried Wi... | [
"winapi",
"window",
"owner"
] | 12 | 19 | 12,825 | 3 | 0 | 2008-09-25T12:49:57.450000 | 2008-09-25T13:42:20.973000 |
133,125 | 306,763 | Any other IDEs for Lotus Notes other than Domino Designer? | Are there any other IDEs worth my time for Lotus Notes development? We're doing mostly LotusScript development and would kill for features of Eclipse or Visual Studio, like "Show Declaration". I know there's an Eclipse plugin for Java development in Notes, but seems like it only does Java, and we have too many pieces o... | Lotus Notes has moved to the Eclipse platform in version 8. You can run the client in 2 different modes, basic mode which is the version we all know or on the Eclipse platform (know as the standard). The IDE is also moving to eclipse, version 8.5 beta 2 is currently available with the new Eclipse based IDE. Bear in min... | Any other IDEs for Lotus Notes other than Domino Designer? Are there any other IDEs worth my time for Lotus Notes development? We're doing mostly LotusScript development and would kill for features of Eclipse or Visual Studio, like "Show Declaration". I know there's an Eclipse plugin for Java development in Notes, but ... | TITLE:
Any other IDEs for Lotus Notes other than Domino Designer?
QUESTION:
Are there any other IDEs worth my time for Lotus Notes development? We're doing mostly LotusScript development and would kill for features of Eclipse or Visual Studio, like "Show Declaration". I know there's an Eclipse plugin for Java developm... | [
"ide",
"lotus-notes",
"lotusscript"
] | 4 | 3 | 3,394 | 6 | 0 | 2008-09-25T12:50:25.170000 | 2008-11-20T20:30:29.260000 |
133,129 | 133,863 | Eclipse Search Menus disabled randomly | I use Eclipse 3.3 in my daily work, and have also used Eclipse 3.2 extensively as well. In both versions, sometimes the Search options (Java Search, File Search, etc) in the menu get disabled, seemingly at random times. However, with Ctrl + H, I am able to access the search functionality. Does anyone know why this happ... | I don't have an exact answer. I will recommend that you try to correlate the disablement with which perspective is active. Likewise, which view is active. I have been using 3.4 and not experienced this issue. | Eclipse Search Menus disabled randomly I use Eclipse 3.3 in my daily work, and have also used Eclipse 3.2 extensively as well. In both versions, sometimes the Search options (Java Search, File Search, etc) in the menu get disabled, seemingly at random times. However, with Ctrl + H, I am able to access the search functi... | TITLE:
Eclipse Search Menus disabled randomly
QUESTION:
I use Eclipse 3.3 in my daily work, and have also used Eclipse 3.2 extensively as well. In both versions, sometimes the Search options (Java Search, File Search, etc) in the menu get disabled, seemingly at random times. However, with Ctrl + H, I am able to access... | [
"eclipse",
"search",
"eclipse-3.4",
"ganymede",
"eclipse-3.3"
] | 34 | 3 | 22,203 | 18 | 0 | 2008-09-25T12:51:12.843000 | 2008-09-25T15:06:33.877000 |
133,136 | 133,164 | What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application? | What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application? Are there any performance considerations? How would this compare with the native integration between Apache httpd and Tomcat? | There are plugins available for iPlanet which do exactly this. Check out the Reverse Proxy plugin in the documentation for iPlanet. This may help: http://docs.sun.com/source/816-7156-10/agplugin.html#18923 | What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application? What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application? Are there any performance considerations? How would this compare with the native integration between A... | TITLE:
What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application?
QUESTION:
What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application? Are there any performance considerations? How would this compare with the native int... | [
"apache",
"tomcat",
"jboss",
"sunone"
] | 0 | 1 | 1,238 | 1 | 0 | 2008-09-25T12:52:33.543000 | 2008-09-25T12:57:24.717000 |
133,143 | 133,609 | LLBLGen: How can I softdelete a entry | I have inherited a project that uses LLBLGen Pro for the DB layer. The DB model requires that when a entry is deleted a flag (DeletedDate is set to the current time). The last programmer ignored this requirement and has used regular deletes throughout the entire application. Is there a way to set the code generator to ... | I implemented this in SQL Server 2005 using INSTEAD OF triggers on delete for any soft delete table. The triggers set the delete flag and perform clean-up. The beauty of this solution is that it correctly handles deletes issued by any system that accesses the database. INSTEAD OF is relatively new in SQL Server, I know... | LLBLGen: How can I softdelete a entry I have inherited a project that uses LLBLGen Pro for the DB layer. The DB model requires that when a entry is deleted a flag (DeletedDate is set to the current time). The last programmer ignored this requirement and has used regular deletes throughout the entire application. Is the... | TITLE:
LLBLGen: How can I softdelete a entry
QUESTION:
I have inherited a project that uses LLBLGen Pro for the DB layer. The DB model requires that when a entry is deleted a flag (DeletedDate is set to the current time). The last programmer ignored this requirement and has used regular deletes throughout the entire a... | [
"c#",
"llblgenpro"
] | 5 | 4 | 2,087 | 3 | 0 | 2008-09-25T12:53:19.423000 | 2008-09-25T14:18:00.013000 |
133,154 | 133,155 | How do I implement quicksort using a batch file? | While normally it's good to always choose the right language for the job, it can sometimes be instructive to try and do something in a language which is wildly inappropriate. It can help you understand the problem better. Maybe you don't have to solve it the way you thought you did. It can help you understand the langu... | Turns out, it's not as hard as you might think. The syntax is ugly as hell, but the batch syntax is actually capable of some surprising things, including recursion, local variables, and some surprisingly sophisticated parsing of strings. Don't get me wrong, it's a terrible language, but to my surprise, it isn't complet... | How do I implement quicksort using a batch file? While normally it's good to always choose the right language for the job, it can sometimes be instructive to try and do something in a language which is wildly inappropriate. It can help you understand the problem better. Maybe you don't have to solve it the way you thou... | TITLE:
How do I implement quicksort using a batch file?
QUESTION:
While normally it's good to always choose the right language for the job, it can sometimes be instructive to try and do something in a language which is wildly inappropriate. It can help you understand the problem better. Maybe you don't have to solve i... | [
"sorting",
"batch-file"
] | 11 | 23 | 4,405 | 2 | 0 | 2008-09-25T12:55:35.283000 | 2008-09-25T12:55:44.563000 |
133,173 | 133,208 | Classic ASP and ASP.NET Integration | In a previous job we had a classic ASP application that no one wanted to migrate to ASP.NET. The things that it did, it did very well. However there was some new functionality that needed to be added that just seemed best suited to ASP.NET. The decision was made to allow the system to become a weird hybrid of ASP and A... | Can you not persist session data to a serverside data store? ie XML file, database etc. You could then pass just a hash (calculated based on some criteria that securely identifies the session) to a.NET page which can the pick the data up from the data store using this identifier and populate your session data. It still... | Classic ASP and ASP.NET Integration In a previous job we had a classic ASP application that no one wanted to migrate to ASP.NET. The things that it did, it did very well. However there was some new functionality that needed to be added that just seemed best suited to ASP.NET. The decision was made to allow the system t... | TITLE:
Classic ASP and ASP.NET Integration
QUESTION:
In a previous job we had a classic ASP application that no one wanted to migrate to ASP.NET. The things that it did, it did very well. However there was some new functionality that needed to be added that just seemed best suited to ASP.NET. The decision was made to ... | [
"asp.net",
"asp-classic"
] | 14 | 9 | 6,163 | 6 | 0 | 2008-09-25T12:59:46.317000 | 2008-09-25T13:07:10.683000 |
133,194 | 158,035 | Embedded Outlook View Control | I am trying to make an Outlook 2003 add-in using Visual Studio 2008 on Windows XP SP3 and Internet Explorer 7. My add-in is using custom Folder Home Page which displays my custom form, which wraps Outlook View Control. I get COM Exception with 'Exception from HRESULT: 0xXXXXXXXX' description every time when I try to se... | After a while, I finally find out what is the solution: change a name of the external storage to something new. During startup of the addin, it loads the non-default PST file, and changes its name (not the name of the pst file, but the name of the root folder) to "Documents". This is code: session.AddStore("C:\\test.ps... | Embedded Outlook View Control I am trying to make an Outlook 2003 add-in using Visual Studio 2008 on Windows XP SP3 and Internet Explorer 7. My add-in is using custom Folder Home Page which displays my custom form, which wraps Outlook View Control. I get COM Exception with 'Exception from HRESULT: 0xXXXXXXXX' descripti... | TITLE:
Embedded Outlook View Control
QUESTION:
I am trying to make an Outlook 2003 add-in using Visual Studio 2008 on Windows XP SP3 and Internet Explorer 7. My add-in is using custom Folder Home Page which displays my custom form, which wraps Outlook View Control. I get COM Exception with 'Exception from HRESULT: 0xX... | [
"c#",
".net",
"visual-studio-2008",
"outlook",
"add-in"
] | 4 | 2 | 2,688 | 2 | 0 | 2008-09-25T13:04:20.753000 | 2008-10-01T14:55:35.060000 |
133,214 | 133,361 | Is there a typical state machine implementation pattern? | We need to implement a simple state machine in C. Is a standard switch statement the best way to go? We have a current state (state) and a trigger for the transition. switch(state) { case STATE_1: state = DoState1(transition); break; case STATE_2: state = DoState2(transition); break; }... DoState2(int transition) { // ... | I prefer to use a table driven approach for most state machines: typedef enum { STATE_INITIAL, STATE_FOO, STATE_BAR, NUM_STATES } state_t; typedef struct instance_data instance_data_t; typedef state_t state_func_t( instance_data_t *data );
state_t do_state_initial( instance_data_t *data ); state_t do_state_foo( instan... | Is there a typical state machine implementation pattern? We need to implement a simple state machine in C. Is a standard switch statement the best way to go? We have a current state (state) and a trigger for the transition. switch(state) { case STATE_1: state = DoState1(transition); break; case STATE_2: state = DoState... | TITLE:
Is there a typical state machine implementation pattern?
QUESTION:
We need to implement a simple state machine in C. Is a standard switch statement the best way to go? We have a current state (state) and a trigger for the transition. switch(state) { case STATE_1: state = DoState1(transition); break; case STATE_... | [
"c",
"design-patterns",
"finite-automata"
] | 137 | 156 | 155,002 | 20 | 0 | 2008-09-25T13:08:33.583000 | 2008-09-25T13:35:31.257000 |
133,225 | 133,261 | ASP.NET/IIS: 404 for all file types | I set up 404 handler page in web.config, but it works ONLY when extension of URL is.aspx (or other which is handled by ASP.NET). I know I can setup static HTML page in website options, but I want to have a page. Is there any options to assign ASPX handler page for all request extensions in IIS? | The direct question was whether or not there are options to assign the ASPX handler to all request extensions: Yes, there is. I'll discuss how to do that shortly. First, I think the "hidden" question -- the answer you really want -- is whether or not there's a way to redirect all 404 errors for pages other than ASPX, A... | ASP.NET/IIS: 404 for all file types I set up 404 handler page in web.config, but it works ONLY when extension of URL is.aspx (or other which is handled by ASP.NET). I know I can setup static HTML page in website options, but I want to have a page. Is there any options to assign ASPX handler page for all request extensi... | TITLE:
ASP.NET/IIS: 404 for all file types
QUESTION:
I set up 404 handler page in web.config, but it works ONLY when extension of URL is.aspx (or other which is handled by ASP.NET). I know I can setup static HTML page in website options, but I want to have a page. Is there any options to assign ASPX handler page for a... | [
"asp.net",
"iis",
"web-config",
"http-status-code-404",
"custom-errors"
] | 5 | 11 | 8,964 | 7 | 0 | 2008-09-25T13:10:50.737000 | 2008-09-25T13:18:31.407000 |
133,229 | 133,319 | How can I discover resources in a Java jar with a wildcard name? | I want to discover all xml files that my ClassLoader is aware of using a wildcard pattern. Is there any way to do this? | It requires a little trickery, but here's an relevant blog entry. You first figure out the URLs of the jars, then open the jar and scan its contents. I think you would discover the URLs of all jars by looking for `/META-INF/MANIFEST.MF'. Directories would be another matter. | How can I discover resources in a Java jar with a wildcard name? I want to discover all xml files that my ClassLoader is aware of using a wildcard pattern. Is there any way to do this? | TITLE:
How can I discover resources in a Java jar with a wildcard name?
QUESTION:
I want to discover all xml files that my ClassLoader is aware of using a wildcard pattern. Is there any way to do this?
ANSWER:
It requires a little trickery, but here's an relevant blog entry. You first figure out the URLs of the jars,... | [
"java",
"classpath"
] | 8 | 5 | 12,368 | 5 | 0 | 2008-09-25T13:11:56.773000 | 2008-09-25T13:28:17.233000 |
133,236 | 133,411 | ASP.Net Session | I am wanting to store the "state" of some actions the user is performing in a series of different ASP.Net webforms. What are my choices for persisting state, and what are the pros/cons of each solution? I have been using Session objects, and using some helper methods to strongly type the objects: public static Account ... | There is nothing inherently evil with session state. There are a couple of things to keep in mind that might bite you though: If the user presses the browser back button you go back to the previous page but your session state is not reverted. So your CurrentAccount might not be what it originally was on the page. ASP.N... | ASP.Net Session I am wanting to store the "state" of some actions the user is performing in a series of different ASP.Net webforms. What are my choices for persisting state, and what are the pros/cons of each solution? I have been using Session objects, and using some helper methods to strongly type the objects: public... | TITLE:
ASP.Net Session
QUESTION:
I am wanting to store the "state" of some actions the user is performing in a series of different ASP.Net webforms. What are my choices for persisting state, and what are the pros/cons of each solution? I have been using Session objects, and using some helper methods to strongly type t... | [
"asp.net",
"session",
"session-state"
] | 24 | 38 | 8,495 | 13 | 0 | 2008-09-25T13:14:14.397000 | 2008-09-25T13:41:41.037000 |
133,270 | 1,284,007 | Illustrating usage of the volatile keyword in C# | I would like to code a little program which visually illustrates the behavior of the volatile keyword. Ideally, it should be a program which performs concurrent access to a non volatile static field and which gets incorrect behavior because of that. Adding the volatile keyword in the same program should fix the problem... | I've achieved a working example! The main idea received from wiki, but with some changes for C#. The wiki article demonstrates this for static field of C++, it is looks like C# always carefully compile requests to static fields... and i make example with non static one: If you run this example in Release mode and witho... | Illustrating usage of the volatile keyword in C# I would like to code a little program which visually illustrates the behavior of the volatile keyword. Ideally, it should be a program which performs concurrent access to a non volatile static field and which gets incorrect behavior because of that. Adding the volatile k... | TITLE:
Illustrating usage of the volatile keyword in C#
QUESTION:
I would like to code a little program which visually illustrates the behavior of the volatile keyword. Ideally, it should be a program which performs concurrent access to a non volatile static field and which gets incorrect behavior because of that. Add... | [
"c#",
".net",
"volatile"
] | 89 | 105 | 15,016 | 6 | 0 | 2008-09-25T13:20:03.727000 | 2009-08-16T10:50:07.700000 |
133,277 | 133,295 | Do I have to use Viewstate in ASP.NET | I am moving from classic ASP to ASP.NET and have encountered what many of you already know as "viewstate". I might be jumping the gun with my assumption, but it looks highly cumbersome. I have developed many ASP forms in the past and never had issues with keeping state. Is there another way OR am I going to have to lea... | You don't have to. Check out MVC framework. It eliminates ViewState and works as old ASP (at least from this point of view). | Do I have to use Viewstate in ASP.NET I am moving from classic ASP to ASP.NET and have encountered what many of you already know as "viewstate". I might be jumping the gun with my assumption, but it looks highly cumbersome. I have developed many ASP forms in the past and never had issues with keeping state. Is there an... | TITLE:
Do I have to use Viewstate in ASP.NET
QUESTION:
I am moving from classic ASP to ASP.NET and have encountered what many of you already know as "viewstate". I might be jumping the gun with my assumption, but it looks highly cumbersome. I have developed many ASP forms in the past and never had issues with keeping ... | [
"asp.net",
"vb.net",
"visual-studio",
"viewstate",
"state"
] | 4 | 6 | 3,491 | 13 | 0 | 2008-09-25T13:22:08.667000 | 2008-09-25T13:24:40.360000 |
133,281 | 133,399 | Castle-ActiveRecord Tutorial with .NET 3.5 broken? | Has anyone tried the ActiveRecord Intro Sample with C# 3.5? I somehow have the feeling that the sample is completely wrong or just out of date. The XML configuration is just plain wrong: should be: (if I understand the nhibernate config syntax right..) I am wondering what I'm doing wrong. I get a "Could not perform Exe... | (This was too long for a comment post) [@Tigraine] From your comments on my previous answer it looks like the error lies not with the configuration, but with one of your entities. Removing the "hibernate" corrected the configuration so that it geve you the real error, which appears to be that the entity "Post" is not p... | Castle-ActiveRecord Tutorial with .NET 3.5 broken? Has anyone tried the ActiveRecord Intro Sample with C# 3.5? I somehow have the feeling that the sample is completely wrong or just out of date. The XML configuration is just plain wrong: should be: (if I understand the nhibernate config syntax right..) I am wondering w... | TITLE:
Castle-ActiveRecord Tutorial with .NET 3.5 broken?
QUESTION:
Has anyone tried the ActiveRecord Intro Sample with C# 3.5? I somehow have the feeling that the sample is completely wrong or just out of date. The XML configuration is just plain wrong: should be: (if I understand the nhibernate config syntax right..... | [
"orm",
".net-3.5",
"documentation",
"castle-activerecord"
] | 1 | 1 | 2,459 | 3 | 0 | 2008-09-25T13:22:12.363000 | 2008-09-25T13:40:52.287000 |
133,308 | 133,976 | Subfolders in CodeIgniter | I'm new to CodeIgniter, and I need some help. I'd like to implement the following: View a user's profile via: http://localhost/profile/johndoe Administrate a user's profile via: http://localhost/admin/profile/johndoe Be able to accomplish even further processing via: http://localhost/admin/profile/create...and... http:... | This is not such a good idea. If you want to implement those URLs, you need two controllers: Profile, with the function index Admin, with the function profile In Admin, the profile function has to read the first argument (create/edit/[userid]) and then do something accordingly. (You also must make sure that no user can... | Subfolders in CodeIgniter I'm new to CodeIgniter, and I need some help. I'd like to implement the following: View a user's profile via: http://localhost/profile/johndoe Administrate a user's profile via: http://localhost/admin/profile/johndoe Be able to accomplish even further processing via: http://localhost/admin/pro... | TITLE:
Subfolders in CodeIgniter
QUESTION:
I'm new to CodeIgniter, and I need some help. I'd like to implement the following: View a user's profile via: http://localhost/profile/johndoe Administrate a user's profile via: http://localhost/admin/profile/johndoe Be able to accomplish even further processing via: http://l... | [
"php",
"codeigniter",
"admin"
] | 3 | 8 | 2,754 | 2 | 0 | 2008-09-25T13:26:22.400000 | 2008-09-25T15:25:58.993000 |
133,310 | 133,327 | How can I get jQuery to perform a synchronous, rather than asynchronous, Ajax request? | I have a JavaScript widget which provides standard extension points. One of them is the beforecreate function. It should return false to prevent an item from being created. I've added an Ajax call into this function using jQuery: beforecreate: function (node, targetNode, type, to) { jQuery.get('http://example.com/catal... | From the jQuery documentation: you specify the asynchronous option to be false to get a synchronous Ajax request. Then your callback can set some data before your mother function proceeds. Here's what your code would look like if changed as suggested: beforecreate: function (node, targetNode, type, to) { jQuery.ajax({ ... | How can I get jQuery to perform a synchronous, rather than asynchronous, Ajax request? I have a JavaScript widget which provides standard extension points. One of them is the beforecreate function. It should return false to prevent an item from being created. I've added an Ajax call into this function using jQuery: bef... | TITLE:
How can I get jQuery to perform a synchronous, rather than asynchronous, Ajax request?
QUESTION:
I have a JavaScript widget which provides standard extension points. One of them is the beforecreate function. It should return false to prevent an item from being created. I've added an Ajax call into this function... | [
"javascript",
"jquery",
"ajax",
"asynchronous"
] | 1,330 | 1,251 | 830,737 | 14 | 0 | 2008-09-25T13:26:54.193000 | 2008-09-25T13:30:37.290000 |
133,313 | 133,351 | Good database table design for storing localized versions of data | I'm trying to design some tables to store some data, which has to be converted to different languages later. Can anybody provide some "best practices" or guidelines for this? Thanks | Let's say you have a products table that looks like this: Products ---------- id price
Products_Translations ---------------------- product_id locale name description Then you just join on product_id = product.id and where locale='en-US' of course this has an impact on performance, since you now need a join to get the... | Good database table design for storing localized versions of data I'm trying to design some tables to store some data, which has to be converted to different languages later. Can anybody provide some "best practices" or guidelines for this? Thanks | TITLE:
Good database table design for storing localized versions of data
QUESTION:
I'm trying to design some tables to store some data, which has to be converted to different languages later. Can anybody provide some "best practices" or guidelines for this? Thanks
ANSWER:
Let's say you have a products table that look... | [
"sql",
"sql-server",
"database-design",
"localization"
] | 7 | 16 | 7,134 | 4 | 0 | 2008-09-25T13:27:33.020000 | 2008-09-25T13:34:13.443000 |
133,325 | 133,530 | Minimize an external application with Delphi | Is there a way to Minimize an external application that I don't have control over from with-in my Delphi application? for example notepad.exe, except the application I want to minimize will only ever have one instance. | You can use FindWindow to find the application handle and ShowWindow to minimize it. var Indicador:Integer; begin // Find the window by Classname Indicador:= FindWindow(PChar('notepad'), nil); // if finded if (Indicador <> 0) then begin // Minimize ShowWindow(Indicador,SW_MINIMIZE); end; end; | Minimize an external application with Delphi Is there a way to Minimize an external application that I don't have control over from with-in my Delphi application? for example notepad.exe, except the application I want to minimize will only ever have one instance. | TITLE:
Minimize an external application with Delphi
QUESTION:
Is there a way to Minimize an external application that I don't have control over from with-in my Delphi application? for example notepad.exe, except the application I want to minimize will only ever have one instance.
ANSWER:
You can use FindWindow to fin... | [
"delphi",
"window",
"minimize"
] | 5 | 8 | 9,895 | 4 | 0 | 2008-09-25T13:30:10.177000 | 2008-09-25T14:04:30.483000 |
133,328 | 133,633 | Develop SharePoint web parts in ASP.NET | I have been asked to develop some usercontrols in ASP.NET that will at a later point be pulled into a SharePoint site as web parts. I am new to SharePoint and will not have access to a SharePoint server during the time I need to prototype these parts. Does anyone know of any reasons that this approach will not work? If... | If it's a very short-term thing, Microsoft has a time-limited WSS evaluation VPC image: WSS3 SP1 Developer Evaluation VPC image That will get you started if you don't have time/resources to set up your own VPC image right now. | Develop SharePoint web parts in ASP.NET I have been asked to develop some usercontrols in ASP.NET that will at a later point be pulled into a SharePoint site as web parts. I am new to SharePoint and will not have access to a SharePoint server during the time I need to prototype these parts. Does anyone know of any reas... | TITLE:
Develop SharePoint web parts in ASP.NET
QUESTION:
I have been asked to develop some usercontrols in ASP.NET that will at a later point be pulled into a SharePoint site as web parts. I am new to SharePoint and will not have access to a SharePoint server during the time I need to prototype these parts. Does anyon... | [
"sharepoint",
"web-parts"
] | 8 | 2 | 3,203 | 10 | 0 | 2008-09-25T13:30:45.010000 | 2008-09-25T14:21:17.433000 |
133,330 | 135,696 | Programmatically delete emails and SMSs on a Window Mobile device | I'm looking for a code snippet that can delete all emails and text messages on a Windows Mobile device. Preferably the code would delete items in the Sent and Draft folders as well as the Inbox. My platform is Windows Mobile (5.0 SDK) and.net 2.0 compact framework (C# / VB.NET) | Unfortunately Microsoft has not made this easy for managed developers. Why the WindowsMobile.PocketOutlook class wrappers don't provide this functionality one can only guess. What you have to do is write your own COM interop object to MAPI. Sorry, I don't have one to give you as a sample, but I can at least give you po... | Programmatically delete emails and SMSs on a Window Mobile device I'm looking for a code snippet that can delete all emails and text messages on a Windows Mobile device. Preferably the code would delete items in the Sent and Draft folders as well as the Inbox. My platform is Windows Mobile (5.0 SDK) and.net 2.0 compact... | TITLE:
Programmatically delete emails and SMSs on a Window Mobile device
QUESTION:
I'm looking for a code snippet that can delete all emails and text messages on a Windows Mobile device. Preferably the code would delete items in the Sent and Draft folders as well as the Inbox. My platform is Windows Mobile (5.0 SDK) a... | [
"c#",
"vb.net",
"windows-mobile",
"compact-framework"
] | 2 | 1 | 611 | 1 | 0 | 2008-09-25T13:30:49.020000 | 2008-09-25T20:08:28.813000 |
133,335 | 133,849 | Subclipse error message "Expected format '3' of repository; found format '5'" | I installed subclipse in eclipse, but I get an error message "Expected format '3' of repository; found format '5'" when I try to open a repository. Here is the sequence of steps that leads to the error message. Select "Window -> Open Perspective -> SNV Repository Exploring" from the Eclipse main menu. Right click on th... | I can't help on your posted problem, but I would recommend trying subversive instead. I made the switch out of frustration with some subclipse bugs and have been much happier. It does take a bit more work to install. Eclipse Subversive Project | Subclipse error message "Expected format '3' of repository; found format '5'" I installed subclipse in eclipse, but I get an error message "Expected format '3' of repository; found format '5'" when I try to open a repository. Here is the sequence of steps that leads to the error message. Select "Window -> Open Perspect... | TITLE:
Subclipse error message "Expected format '3' of repository; found format '5'"
QUESTION:
I installed subclipse in eclipse, but I get an error message "Expected format '3' of repository; found format '5'" when I try to open a repository. Here is the sequence of steps that leads to the error message. Select "Windo... | [
"eclipse",
"svn"
] | 1 | 0 | 3,835 | 5 | 0 | 2008-09-25T13:31:20.563000 | 2008-09-25T15:02:19.190000 |
133,364 | 133,468 | How do you handle strings in C++? | Which is your favorite way to go with strings in C++? A C-style array of char s? Or wchar_t? CString, std::basic_string, std::string, BSTR or CComBSTR? Certainly each of these has its own area of application, but anyway, which is your favorite and why? | std::string or std::wstring, depending on your needs. Why? They're standard They're portable They can handle I18N They have performance guarantees (as per the standard) Protected against buffer overflows and similar attacks Are easily converted to other types as needed Are nicely templated, giving you a wide variety of... | How do you handle strings in C++? Which is your favorite way to go with strings in C++? A C-style array of char s? Or wchar_t? CString, std::basic_string, std::string, BSTR or CComBSTR? Certainly each of these has its own area of application, but anyway, which is your favorite and why? | TITLE:
How do you handle strings in C++?
QUESTION:
Which is your favorite way to go with strings in C++? A C-style array of char s? Or wchar_t? CString, std::basic_string, std::string, BSTR or CComBSTR? Certainly each of these has its own area of application, but anyway, which is your favorite and why?
ANSWER:
std::s... | [
"c++",
"string"
] | 17 | 32 | 3,754 | 15 | 0 | 2008-09-25T13:35:58.430000 | 2008-09-25T13:51:55.210000 |
133,374 | 133,398 | .NET: SqlDataReader.Close or .Dispose results in Timeout Expired exception | When trying to call Close or Dispose on an SqlDataReader i get a timeout expired exception. If you have a DbConnection to SQL Server, you can reproduce it yourself with: String CRLF = "\r\n"; String sql = "SELECT * " + CRLF + "FROM (" + CRLF + " SELECT (a.Number * 256) + b.Number AS Number" + CRLF + " FROM master..spt_... | it's because you have just opened the data reader and have not completely iterated through it yet. you will need to.Cancel() your DbCommand object before you attempt to close a data reader that hasn't completed yet (and the DbConnection as well). of course, by.Cancel()-ing your DbCommand, I'm not sure of this but you m... | .NET: SqlDataReader.Close or .Dispose results in Timeout Expired exception When trying to call Close or Dispose on an SqlDataReader i get a timeout expired exception. If you have a DbConnection to SQL Server, you can reproduce it yourself with: String CRLF = "\r\n"; String sql = "SELECT * " + CRLF + "FROM (" + CRLF + "... | TITLE:
.NET: SqlDataReader.Close or .Dispose results in Timeout Expired exception
QUESTION:
When trying to call Close or Dispose on an SqlDataReader i get a timeout expired exception. If you have a DbConnection to SQL Server, you can reproduce it yourself with: String CRLF = "\r\n"; String sql = "SELECT * " + CRLF + "... | [
".net",
"sql-server",
"database",
"timeout"
] | 8 | 17 | 7,792 | 3 | 0 | 2008-09-25T13:37:02.920000 | 2008-09-25T13:40:45.377000 |
133,379 | 133,500 | Elevating process privilege programmatically? | I'm trying to install a service using InstallUtil.exe but invoked through Process.Start. Here's the code: ProcessStartInfo startInfo = new ProcessStartInfo (m_strInstallUtil, strExePath); System.Diagnostics.Process.Start (startInfo); where m_strInstallUtil is the fully qualified path and exe to "InstallUtil.exe" and st... | You can indicate the new process should be started with elevated permissions by setting the Verb property of your startInfo object to 'runas', as follows: startInfo.UseShellExecute = true; startInfo.Verb = "runas"; This will cause Windows to behave as if the process has been started from Explorer with the "Run as Admin... | Elevating process privilege programmatically? I'm trying to install a service using InstallUtil.exe but invoked through Process.Start. Here's the code: ProcessStartInfo startInfo = new ProcessStartInfo (m_strInstallUtil, strExePath); System.Diagnostics.Process.Start (startInfo); where m_strInstallUtil is the fully qual... | TITLE:
Elevating process privilege programmatically?
QUESTION:
I'm trying to install a service using InstallUtil.exe but invoked through Process.Start. Here's the code: ProcessStartInfo startInfo = new ProcessStartInfo (m_strInstallUtil, strExePath); System.Diagnostics.Process.Start (startInfo); where m_strInstallUtil... | [
"c#",
".net",
"windows",
"windows-services",
"process-elevation"
] | 176 | 200 | 243,884 | 7 | 0 | 2008-09-25T13:38:00.483000 | 2008-09-25T13:57:54.073000 |
133,390 | 133,432 | Configure db used for ASP.Net Authentication | I want to use forms authentication in my asp.net mvc site. Can I use an already existing sql db (on a remote server) for it? How do I configure the site to use this db for authentication? Which tables do I need/are used for authentication? | You can. Check aspnet_regsql.exe program parameters in your Windows\Microsoft.NET\Framework\v2.xxx folder, specially sqlexportonly. After creating the needed tables, you can configure: create a connection string in the web.config file and then set up the MemberShipProvider to use this connection string: Ps: There are s... | Configure db used for ASP.Net Authentication I want to use forms authentication in my asp.net mvc site. Can I use an already existing sql db (on a remote server) for it? How do I configure the site to use this db for authentication? Which tables do I need/are used for authentication? | TITLE:
Configure db used for ASP.Net Authentication
QUESTION:
I want to use forms authentication in my asp.net mvc site. Can I use an already existing sql db (on a remote server) for it? How do I configure the site to use this db for authentication? Which tables do I need/are used for authentication?
ANSWER:
You can.... | [
"asp.net",
"asp.net-mvc",
"authentication"
] | 5 | 4 | 423 | 2 | 0 | 2008-09-25T13:39:20.123000 | 2008-09-25T13:45:19.127000 |
133,393 | 133,502 | Password encryption in Delphi | I need to store database passwords in a config file. For obvious reasons, I want to encrypt them (preferably with AES). Does anyone know a Delphi implementation that is easy to introduce into an existing project with > 10,000 lines of historically grown (URGH!) source code? Clarification: Easy means adding the unit to ... | I second the recommendation for David Barton's DCPCrypt library. I've used it successfuly in several projects, and it won't take more than 15 minutes after you've read the usage examples. It uses MIT license, so you can use it freely in commercial projects and otherwise. DCPCrypt implements a number of algorithms, incl... | Password encryption in Delphi I need to store database passwords in a config file. For obvious reasons, I want to encrypt them (preferably with AES). Does anyone know a Delphi implementation that is easy to introduce into an existing project with > 10,000 lines of historically grown (URGH!) source code? Clarification: ... | TITLE:
Password encryption in Delphi
QUESTION:
I need to store database passwords in a config file. For obvious reasons, I want to encrypt them (preferably with AES). Does anyone know a Delphi implementation that is easy to introduce into an existing project with > 10,000 lines of historically grown (URGH!) source cod... | [
"delphi",
"configuration",
"encryption",
"passwords"
] | 18 | 18 | 20,660 | 15 | 0 | 2008-09-25T13:39:48.687000 | 2008-09-25T13:58:19.717000 |
133,394 | 134,827 | How do I set the Content-type in Joomla? | I am developing a Joomla component and one of the views needs to render itself as PDF. In the view, I have tried setting the content-type with the following line, but when I see the response, it is text/html anyways. header('Content-type: application/pdf'); If I do this in a regular php page, everything works as expect... | Since version 1.5 Joomla has the JDocument object. Use JDocument::setMimeEncoding() to set the content type. $doc =& JFactory::getDocument(); $doc->setMimeEncoding('application/pdf'); In your special case, a look at JDocumentPDF may be worthwile. | How do I set the Content-type in Joomla? I am developing a Joomla component and one of the views needs to render itself as PDF. In the view, I have tried setting the content-type with the following line, but when I see the response, it is text/html anyways. header('Content-type: application/pdf'); If I do this in a reg... | TITLE:
How do I set the Content-type in Joomla?
QUESTION:
I am developing a Joomla component and one of the views needs to render itself as PDF. In the view, I have tried setting the content-type with the following line, but when I see the response, it is text/html anyways. header('Content-type: application/pdf'); If ... | [
"php",
"http",
"joomla",
"content-type"
] | 6 | 12 | 8,454 | 3 | 0 | 2008-09-25T13:39:55.783000 | 2008-09-25T17:51:13.543000 |
133,420 | 133,877 | How do you handle small sets of data? | With really small sets of data, the policy where I work is generally to stick them into text files, but in my experience this can be a development headache. Data generally comes from the database and when it doesn't, the process involved in setting it/storing it is generally hidden in the code. With the database you ca... | If these are small config-like data, i use some simple and common format. ini, json and yaml are usually ok. Java and.NET fans also like XML. in short, use something that you can easily read to an in-memory object and forget about it. | How do you handle small sets of data? With really small sets of data, the policy where I work is generally to stick them into text files, but in my experience this can be a development headache. Data generally comes from the database and when it doesn't, the process involved in setting it/storing it is generally hidden... | TITLE:
How do you handle small sets of data?
QUESTION:
With really small sets of data, the policy where I work is generally to stick them into text files, but in my experience this can be a development headache. Data generally comes from the database and when it doesn't, the process involved in setting it/storing it i... | [
"database",
"theory"
] | 5 | 1 | 355 | 8 | 0 | 2008-09-25T13:42:49.770000 | 2008-09-25T15:08:08.647000 |
133,430 | 799,109 | propertyNameFieldSpecified when generating a 2.0 web service proxy from a WCF Service | I have created a web reference (Add Web Reference) from Visual Studio 2008 and strangely, I need to set the propertyNameField Specified to true for all the fields I want to submit. Failure to do that and values are not passed back to the WCF Service. I have read at several places that this was fixed in the RTM version ... | Here is a complete answer: http://blogs.msdn.com/eugeneos/archive/2007/02/05/solving-the-disappearing-data-issue-when-using-add-web-reference-or-wsdl-exe-with-wcf-services.aspx | propertyNameFieldSpecified when generating a 2.0 web service proxy from a WCF Service I have created a web reference (Add Web Reference) from Visual Studio 2008 and strangely, I need to set the propertyNameField Specified to true for all the fields I want to submit. Failure to do that and values are not passed back to ... | TITLE:
propertyNameFieldSpecified when generating a 2.0 web service proxy from a WCF Service
QUESTION:
I have created a web reference (Add Web Reference) from Visual Studio 2008 and strangely, I need to set the propertyNameField Specified to true for all the fields I want to submit. Failure to do that and values are n... | [
"wcf",
"service"
] | 0 | 1 | 158 | 4 | 0 | 2008-09-25T13:44:52.887000 | 2009-04-28T17:50:22.327000 |
133,436 | 133,565 | How can I get access to the HttpServletRequest object when using Java Web Services | I'm using Java 6, Tomcat 6, and Metro. I use WebService and WebMethod annotations to expose my web service. I would like to obtain information about the request. I tried the following code, but wsCtxt is always null. What step must I take to not get null for the WebServiceContext. In other words: how can I execute the ... | I recommend you either rename your variable from wsCtxt to wsContext or assign the name attribute to the @Resource annotation. The J2ee tutorial on @Resource indicates that the name of the variable is used as part of the lookup. I've encountered this same problem using resource injection in Glassfish injecting a differ... | How can I get access to the HttpServletRequest object when using Java Web Services I'm using Java 6, Tomcat 6, and Metro. I use WebService and WebMethod annotations to expose my web service. I would like to obtain information about the request. I tried the following code, but wsCtxt is always null. What step must I tak... | TITLE:
How can I get access to the HttpServletRequest object when using Java Web Services
QUESTION:
I'm using Java 6, Tomcat 6, and Metro. I use WebService and WebMethod annotations to expose my web service. I would like to obtain information about the request. I tried the following code, but wsCtxt is always null. Wh... | [
"java",
"web-services",
"annotations",
"servlets"
] | 15 | 12 | 44,452 | 4 | 0 | 2008-09-25T13:45:52.867000 | 2008-09-25T14:10:29.050000 |
133,442 | 134,548 | Can a TCP/IP Stack be killed programmatically? | Our server application is listening on a port, and after a period of time it no longer accepts incoming connections. (And while I'd love to solve this issue, it's not what I'm asking about here;) The strange this is that when our app stops accepting connections on port 44044, so does IIS (on port 8080). Killing our app... | You may well be starving the stack. It is pretty easy to drain in a high open/close transactions per second environment e.g. webserver serving lots of unpooled requests. This is exhacerbated by the default TIME-WAIT delay - the amount of time that a socket has to be closed before being recycled defaults to 90s (if I re... | Can a TCP/IP Stack be killed programmatically? Our server application is listening on a port, and after a period of time it no longer accepts incoming connections. (And while I'd love to solve this issue, it's not what I'm asking about here;) The strange this is that when our app stops accepting connections on port 440... | TITLE:
Can a TCP/IP Stack be killed programmatically?
QUESTION:
Our server application is listening on a port, and after a period of time it no longer accepts incoming connections. (And while I'd love to solve this issue, it's not what I'm asking about here;) The strange this is that when our app stops accepting conne... | [
"c#",
"tcp"
] | 3 | 5 | 1,763 | 7 | 0 | 2008-09-25T13:46:42.693000 | 2008-09-25T17:03:02.020000 |
133,453 | 199,246 | IPSec AES 256 encryption in Windows XP with Service Pack 3? | Does IPsec in Windows XP Sp3 support AES-256 encryption? Update: Windows IPsec FAQ says that it's not supported in Windows XP, but maybe they changed it in Service Pack 3? http://www.microsoft.com/technet/network/ipsec/ipsecfaq.mspx Question: Is Advanced Encryption Standard (AES) encryption supported? origamigumby, ple... | I'm using Windows XP SP3. When I add a new IPsec filter rule, the only options for ESP I get are DES and 3DES, so the FAQ is correct - there is no support for AES prior to Windows Vista. | IPSec AES 256 encryption in Windows XP with Service Pack 3? Does IPsec in Windows XP Sp3 support AES-256 encryption? Update: Windows IPsec FAQ says that it's not supported in Windows XP, but maybe they changed it in Service Pack 3? http://www.microsoft.com/technet/network/ipsec/ipsecfaq.mspx Question: Is Advanced Encry... | TITLE:
IPSec AES 256 encryption in Windows XP with Service Pack 3?
QUESTION:
Does IPsec in Windows XP Sp3 support AES-256 encryption? Update: Windows IPsec FAQ says that it's not supported in Windows XP, but maybe they changed it in Service Pack 3? http://www.microsoft.com/technet/network/ipsec/ipsecfaq.mspx Question:... | [
"windows-xp",
"aes",
"ipsec"
] | 1 | 1 | 8,789 | 2 | 0 | 2008-09-25T13:48:05.610000 | 2008-10-13T22:25:50.293000 |
133,493 | 133,531 | Check for a valid guid | How can you check if a string is a valid GUID in vbscript? Has anyone written an IsGuid method? | This is similar to the same question in c#. Here is the regex you will need... ^[A-Fa-f0-9]{32}$|^({|()?[A-Fa-f0-9]{8}-([A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}(}|))?$|^({)?[0xA-Fa-f0-9]{3,10}(, {0,1}[0xA-Fa-f0-9]{3,6}){2}, {0,1}({)([0xA-Fa-f0-9]{3,4}, {0,1}){7}[0xA-Fa-f0-9]{3,4}(}})$ But that is just for starters. You will ... | Check for a valid guid How can you check if a string is a valid GUID in vbscript? Has anyone written an IsGuid method? | TITLE:
Check for a valid guid
QUESTION:
How can you check if a string is a valid GUID in vbscript? Has anyone written an IsGuid method?
ANSWER:
This is similar to the same question in c#. Here is the regex you will need... ^[A-Fa-f0-9]{32}$|^({|()?[A-Fa-f0-9]{8}-([A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}(}|))?$|^({)?[0xA-Fa... | [
"vbscript",
"guid"
] | 2 | 2 | 6,917 | 5 | 0 | 2008-09-25T13:57:08.660000 | 2008-09-25T14:04:51.870000 |
133,506 | 240,352 | Ruby to Actionscript3 Bytecode | Hi I was looking into Ruby to actionscript 3 bytecode compilers and found a mention of a project called Red Sun but can find very little information on it. So my Question is... what tools are available to convert Ruby source into AS3 bytecode | I am the lead developer on the Red Sun project. There is very little information because it is really not ready to be used yet. I worked on the original prototype and presented it to a handful of people at 360|Flex San Jose. This generated further interest and encouraged me to propose it for RubyConf, for which an intr... | Ruby to Actionscript3 Bytecode Hi I was looking into Ruby to actionscript 3 bytecode compilers and found a mention of a project called Red Sun but can find very little information on it. So my Question is... what tools are available to convert Ruby source into AS3 bytecode | TITLE:
Ruby to Actionscript3 Bytecode
QUESTION:
Hi I was looking into Ruby to actionscript 3 bytecode compilers and found a mention of a project called Red Sun but can find very little information on it. So my Question is... what tools are available to convert Ruby source into AS3 bytecode
ANSWER:
I am the lead devel... | [
"ruby",
"actionscript-3",
"compiler-construction"
] | 5 | 5 | 1,690 | 3 | 0 | 2008-09-25T13:59:45.503000 | 2008-10-27T15:42:48.720000 |
133,515 | 134,670 | Autogeneration of a DataContext designer file when using SqlMetal and Visual Studio | I am using SqlMetal to general my DataContext.dbml class for my ASP.net application using LinqToSql. When I initially created the DataContext.dbml file, Visual Studio used this to create a related DataContext.designer.cs file. This designer file contains the DataContext class in C# that is used throughout the app (and ... | The designer.cs file is normally maintained automatically as you make changes to the DBML within Visual Studio. If VS isn't running when you recreate the DBML it may not know. Check that the.DBML file in Visual Studio has Custom Tool property set to MSLinqToSQLGenerator. If it isn't, then set it to that. If it is try r... | Autogeneration of a DataContext designer file when using SqlMetal and Visual Studio I am using SqlMetal to general my DataContext.dbml class for my ASP.net application using LinqToSql. When I initially created the DataContext.dbml file, Visual Studio used this to create a related DataContext.designer.cs file. This desi... | TITLE:
Autogeneration of a DataContext designer file when using SqlMetal and Visual Studio
QUESTION:
I am using SqlMetal to general my DataContext.dbml class for my ASP.net application using LinqToSql. When I initially created the DataContext.dbml file, Visual Studio used this to create a related DataContext.designer.... | [
"asp.net",
"visual-studio-2008",
"linq-to-sql",
"dbml",
"sqlmetal"
] | 5 | 7 | 9,517 | 2 | 0 | 2008-09-25T14:00:59.337000 | 2008-09-25T17:20:13.587000 |
133,546 | 133,564 | Is reading /dev/urandom thread-safe? | This is the code: unsigned int number; FILE* urandom = fopen("/dev/urandom", "r"); if (urandom) { size_t bytes_read = fread(&number, 1, sizeof(number), urandom); DCHECK(bytes_read == sizeof(number)); fclose(urandom); } else { NOTREACHED(); } If not, how do I make it thread-safe? | As long as each execution of the function is in its own thread (i.e., the local variables number, urandom, bytes_read are not shared between threads), I don't see any thread-safety problems. Each thread will then have its own file descriptor into /dev/urandom. /dev/urandom can be opened simultaneously from multiple pro... | Is reading /dev/urandom thread-safe? This is the code: unsigned int number; FILE* urandom = fopen("/dev/urandom", "r"); if (urandom) { size_t bytes_read = fread(&number, 1, sizeof(number), urandom); DCHECK(bytes_read == sizeof(number)); fclose(urandom); } else { NOTREACHED(); } If not, how do I make it thread-safe? | TITLE:
Is reading /dev/urandom thread-safe?
QUESTION:
This is the code: unsigned int number; FILE* urandom = fopen("/dev/urandom", "r"); if (urandom) { size_t bytes_read = fread(&number, 1, sizeof(number), urandom); DCHECK(bytes_read == sizeof(number)); fclose(urandom); } else { NOTREACHED(); } If not, how do I make i... | [
"c",
"multithreading",
"random",
"posix"
] | 10 | 12 | 4,764 | 1 | 0 | 2008-09-25T14:07:25.953000 | 2008-09-25T14:10:11.577000 |
133,549 | 133,700 | .NET Windows Integrated Authentication | I'm looking for the best/easiest way to add extensions to an existing protocol (can't change the actual protocol easily) to allow the user to do windows authentication (NTLM?) in.NET. I looked at the AuthenticationManager class already but it requires that I use Web(Http)Request which isn't an option. NegotiateStream i... | If you can only extend your protocol then one way to do this would be to write your own Stream class that you pass to NegotiateStream and then just take the messages that NegotiateStream gives you and put in your own protocol and give responses back to NegotiateStream through your Stream class. But if possbile, the eas... | .NET Windows Integrated Authentication I'm looking for the best/easiest way to add extensions to an existing protocol (can't change the actual protocol easily) to allow the user to do windows authentication (NTLM?) in.NET. I looked at the AuthenticationManager class already but it requires that I use Web(Http)Request w... | TITLE:
.NET Windows Integrated Authentication
QUESTION:
I'm looking for the best/easiest way to add extensions to an existing protocol (can't change the actual protocol easily) to allow the user to do windows authentication (NTLM?) in.NET. I looked at the AuthenticationManager class already but it requires that I use ... | [
".net",
"security",
"authentication",
"windows-authentication"
] | 1 | 0 | 582 | 2 | 0 | 2008-09-25T14:07:49.103000 | 2008-09-25T14:29:56.303000 |
133,558 | 133,881 | Good idea to access session in observer or not? | I want to log user's actions in my Ruby on Rails application. So far, I have a model observer that inserts logs to the database after updates and creates. In order to store which user performed the action that was logged, I require access to the session but that is problematic. Firstly, it breaks the MVC model. Secondl... | I find this to be a very interesting question. I'm going to think out loud here a moment... Ultimately, what we are faced with is a decision to violate a design-pattern acceptable practice in order to achieve a specific set of functionality. So, we must ask ourselves 1) What are the possible solutions that would not vi... | Good idea to access session in observer or not? I want to log user's actions in my Ruby on Rails application. So far, I have a model observer that inserts logs to the database after updates and creates. In order to store which user performed the action that was logged, I require access to the session but that is proble... | TITLE:
Good idea to access session in observer or not?
QUESTION:
I want to log user's actions in my Ruby on Rails application. So far, I have a model observer that inserts logs to the database after updates and creates. In order to store which user performed the action that was logged, I require access to the session ... | [
"ruby-on-rails",
"ruby",
"session",
"logging",
"observers"
] | 7 | 3 | 3,239 | 6 | 0 | 2008-09-25T14:08:52.907000 | 2008-09-25T15:09:13.277000 |
133,559 | 133,672 | How do I use a remote MSMQ transactionally? | I am writing a Windows service that pulls messages from an MSMQ and posts them to a legacy system (Baan). If the post fails or the machine goes down during the post, I don't want to loose the message. I am therefore using MSMQ transactions. I abort on failure, and I commit on success. When working against a local queue... | I left a comment asking about the version of MSMQ that you're using, as I think this is the cause of your problem. Transactional Receive wasn't implemented in the earlier versions of MSMQ. If that is the case, then this blog post explains your options. | How do I use a remote MSMQ transactionally? I am writing a Windows service that pulls messages from an MSMQ and posts them to a legacy system (Baan). If the post fails or the machine goes down during the post, I don't want to loose the message. I am therefore using MSMQ transactions. I abort on failure, and I commit on... | TITLE:
How do I use a remote MSMQ transactionally?
QUESTION:
I am writing a Windows service that pulls messages from an MSMQ and posts them to a legacy system (Baan). If the post fails or the machine goes down during the post, I don't want to loose the message. I am therefore using MSMQ transactions. I abort on failur... | [
".net",
"transactions",
"msmq"
] | 8 | 5 | 7,368 | 5 | 0 | 2008-09-25T14:09:01.410000 | 2008-09-25T14:26:12.100000 |
133,567 | 133,598 | Good examples of UK postcode lookup flow | I'm looking for a good, well designed flow of a UK postcode lookup process as part of registration for an eCommerce account. We're redesigning ours and want to see what is out there and how I can make it as friendly as possible. --Update-- Basically our current design was a manual entry form (worked pretty well) which ... | Either way, please make sure you include a manual address override (ie allow the user to enter their address without the aid of a look-up). I live at a newly built address and it's not yet showing up on everyone's databases. I'm unable to register with eCommerce sites about 50% of the time. Very annoying.:-) | Good examples of UK postcode lookup flow I'm looking for a good, well designed flow of a UK postcode lookup process as part of registration for an eCommerce account. We're redesigning ours and want to see what is out there and how I can make it as friendly as possible. --Update-- Basically our current design was a manu... | TITLE:
Good examples of UK postcode lookup flow
QUESTION:
I'm looking for a good, well designed flow of a UK postcode lookup process as part of registration for an eCommerce account. We're redesigning ours and want to see what is out there and how I can make it as friendly as possible. --Update-- Basically our current... | [
"asp.net",
"user-interface",
"postal-code"
] | 4 | 10 | 3,466 | 7 | 0 | 2008-09-25T14:10:53.930000 | 2008-09-25T14:16:51.997000 |
133,569 | 133,591 | Hashtable in C++? | I usually use C++ stdlib map whenever I need to store some data associated with a specific type of value (a key value - e.g. a string or other object). The stdlib map implementation is based on trees which provides better performance (O(log n)) than the standard array or stdlib vector. My questions is, do you know of a... | If you're using C++11, you have access to the and headers. These provide classes std::unordered_map and std::unordered_set. If you're using C++03 with TR1, you have access to the classes std::tr1::unordered_map and std::tr1::unordered_set, using the same headers (unless you're using GCC, in which case the headers are a... | Hashtable in C++? I usually use C++ stdlib map whenever I need to store some data associated with a specific type of value (a key value - e.g. a string or other object). The stdlib map implementation is based on trees which provides better performance (O(log n)) than the standard array or stdlib vector. My questions is... | TITLE:
Hashtable in C++?
QUESTION:
I usually use C++ stdlib map whenever I need to store some data associated with a specific type of value (a key value - e.g. a string or other object). The stdlib map implementation is based on trees which provides better performance (O(log n)) than the standard array or stdlib vecto... | [
"c++",
"performance",
"dictionary",
"hashtable",
"complexity-theory"
] | 57 | 82 | 56,967 | 9 | 0 | 2008-09-25T14:11:32.103000 | 2008-09-25T14:15:41.893000 |
133,571 | 133,600 | How to convert multiple <br/> tag to a single <br/> tag in php | Wanted to convert into | You can do this with a regular expression: preg_replace("/( \s*)+/", " ", $input); This if you pass in your source HTML, this will return a string with a single replacing every run of them. | How to convert multiple <br/> tag to a single <br/> tag in php Wanted to convert into | TITLE:
How to convert multiple <br/> tag to a single <br/> tag in php
QUESTION:
Wanted to convert into
ANSWER:
You can do this with a regular expression: preg_replace("/( \s*)+/", " ", $input); This if you pass in your source HTML, this will return a string with a single replacing every run of them. | [
"php",
"html",
"regex"
] | 15 | 36 | 17,516 | 9 | 0 | 2008-09-25T14:12:16.470000 | 2008-09-25T14:17:39.843000 |
133,596 | 133,636 | Setting Radio Button enabled/disabled via CSS | Is there a way to make a Radio Button enabled/disabled (not checked/unchecked) via CSS? I've need to toggle some radio buttons on the client so that the values can be read on the server, but setting the 'enabled' property to 'false' then changing this on the client via javascript seems to prevent me from posting back a... | To the best of my knowledge CSS cannot affect the functionality of the application. It can only affect the display. So while you can hide it with css (display:none) you can't disable it. What you could do would be to disable it on page load with javascript. There are a couple ways to do this but an easy way would be to... | Setting Radio Button enabled/disabled via CSS Is there a way to make a Radio Button enabled/disabled (not checked/unchecked) via CSS? I've need to toggle some radio buttons on the client so that the values can be read on the server, but setting the 'enabled' property to 'false' then changing this on the client via java... | TITLE:
Setting Radio Button enabled/disabled via CSS
QUESTION:
Is there a way to make a Radio Button enabled/disabled (not checked/unchecked) via CSS? I've need to toggle some radio buttons on the client so that the values can be read on the server, but setting the 'enabled' property to 'false' then changing this on t... | [
"asp.net",
"javascript",
"css"
] | 2 | 3 | 17,398 | 4 | 0 | 2008-09-25T14:16:29.377000 | 2008-09-25T14:21:39.367000 |
133,601 | 133,684 | Can regular expressions be used to match nested patterns? | Is it possible to write a regular expression that matches a nested pattern that occurs an unknown number of times? For example, can a regular expression match an opening and closing brace when there are an unknown number of open/close braces nested within the outer braces? For example: public MyMethod() { if (test) { /... | No. It's that easy. A finite automaton (which is the data structure underlying a regular expression) does not have memory apart from the state it's in, and if you have arbitrarily deep nesting, you need an arbitrarily large automaton, which collides with the notion of a finite automaton. You can match nested/paired ele... | Can regular expressions be used to match nested patterns? Is it possible to write a regular expression that matches a nested pattern that occurs an unknown number of times? For example, can a regular expression match an opening and closing brace when there are an unknown number of open/close braces nested within the ou... | TITLE:
Can regular expressions be used to match nested patterns?
QUESTION:
Is it possible to write a regular expression that matches a nested pattern that occurs an unknown number of times? For example, can a regular expression match an opening and closing brace when there are an unknown number of open/close braces ne... | [
"regex",
"nested",
"finite-automata"
] | 243 | 281 | 149,557 | 11 | 0 | 2008-09-25T14:17:40.873000 | 2008-09-25T14:27:12.643000 |
133,610 | 133,789 | Balancing a Binary Tree (AVL) | Ok, this is another one in the theory realm for the CS guys around. In the 90's I did fairly well in implementing BST's. The only thing I could never get my head around was the intricacy of the algorithm to balance a Binary Tree (AVL). Can you guys help me on this? | A scapegoat tree possibly has the simplest balance-determination algorithm to understand. If any insertion causes the new node to be too deep, it finds a node around which to rebalance, by looking at weight balance rather than height balance. The rule for whether to rebalance on delete is also simple. It doesn't store ... | Balancing a Binary Tree (AVL) Ok, this is another one in the theory realm for the CS guys around. In the 90's I did fairly well in implementing BST's. The only thing I could never get my head around was the intricacy of the algorithm to balance a Binary Tree (AVL). Can you guys help me on this? | TITLE:
Balancing a Binary Tree (AVL)
QUESTION:
Ok, this is another one in the theory realm for the CS guys around. In the 90's I did fairly well in implementing BST's. The only thing I could never get my head around was the intricacy of the algorithm to balance a Binary Tree (AVL). Can you guys help me on this?
ANSWE... | [
"algorithm",
"computer-science",
"binary-tree",
"theory",
"avl-tree"
] | 14 | 15 | 37,420 | 7 | 0 | 2008-09-25T14:18:19.327000 | 2008-09-25T14:43:10.203000 |
133,648 | 133,852 | Insert a fixed number of rows 2000 at a time in sql server | I want to insert say 50,000 records into sql server database 2000 at a time. How to accomplish this? | You can use the SELECT TOP clause: in MSSQL 2005 it was extended allowing you to use a variable to specify the number of records (older version allowed only a numeric constant) You can try something like this: (untested, because I have no access to a MSSQL2005 at the moment) begin declare @n int, @rows int
select @row... | Insert a fixed number of rows 2000 at a time in sql server I want to insert say 50,000 records into sql server database 2000 at a time. How to accomplish this? | TITLE:
Insert a fixed number of rows 2000 at a time in sql server
QUESTION:
I want to insert say 50,000 records into sql server database 2000 at a time. How to accomplish this?
ANSWER:
You can use the SELECT TOP clause: in MSSQL 2005 it was extended allowing you to use a variable to specify the number of records (old... | [
"sql",
"sql-server"
] | 2 | 6 | 4,890 | 6 | 0 | 2008-09-25T14:23:30.843000 | 2008-09-25T15:02:34.727000 |
133,675 | 718,648 | Red eye reduction algorithm | I need to implement red eye reduction for an application I am working on. Googling mostly provides links to commercial end-user products. Do you know a good red eye reduction algorithm, which could be used in a GPL application? | I'm way late to the party here, but for future searchers I've used the following algorithm for a personal app I wrote. First of all, the region to reduce is selected by the user and passed to the red eye reducing method as a center Point and radius. The method loops through each pixel within the radius and does the fol... | Red eye reduction algorithm I need to implement red eye reduction for an application I am working on. Googling mostly provides links to commercial end-user products. Do you know a good red eye reduction algorithm, which could be used in a GPL application? | TITLE:
Red eye reduction algorithm
QUESTION:
I need to implement red eye reduction for an application I am working on. Googling mostly provides links to commercial end-user products. Do you know a good red eye reduction algorithm, which could be used in a GPL application?
ANSWER:
I'm way late to the party here, but f... | [
"algorithm",
"image-processing"
] | 42 | 44 | 19,886 | 10 | 0 | 2008-09-25T14:26:25.813000 | 2009-04-05T09:34:31.130000 |
133,679 | 3,573,305 | Determine SLOC and complexity of C# and C++ from .NET | I have been using SourceMonitor on my project for a couple of years to keep records of source-code complexity and basic SLOC (including comments) for C# and C++ components. These are used for external reporting to our customer, so I'm not in a position to argue their merits or lack of. I've been working on a repository... | Whilst I never did find a.NET product that can equally parse C# and C++, I did manage to find an easy-to-use product, CODECOUNT that supports those languages and many more. It has a simple command line, unlike SourceMonitor that was being used on my project up until CODECOUNT replaced it. | Determine SLOC and complexity of C# and C++ from .NET I have been using SourceMonitor on my project for a couple of years to keep records of source-code complexity and basic SLOC (including comments) for C# and C++ components. These are used for external reporting to our customer, so I'm not in a position to argue thei... | TITLE:
Determine SLOC and complexity of C# and C++ from .NET
QUESTION:
I have been using SourceMonitor on my project for a couple of years to keep records of source-code complexity and basic SLOC (including comments) for C# and C++ components. These are used for external reporting to our customer, so I'm not in a posi... | [
"c#",
"c++",
"metrics"
] | 4 | 0 | 2,544 | 5 | 0 | 2008-09-25T14:26:43.707000 | 2010-08-26T08:24:04.353000 |
133,680 | 133,790 | spawn a new xterm window | When I am using Bitvise Tunnelier and I spawn a new xterm window connecting to our sun station everything works nicely. We have visual slick edit installed on the sun station and I have been instructed to open it using the command vs&. When I do this I get the following: fbm240-1:/home/users/ajahn 1 % vs& [1] 4716 fbm2... | You're going to need an Xwindows server on your Windows box in order to run graphical Unix apps remotely on the Sun server and have it display on your Windows box. I don't think Tunnelier supports Xwindows tunneling. Take a look at Xming, an Xwindows server for Windows that comes with Putty, an ssh client: http://sourc... | spawn a new xterm window When I am using Bitvise Tunnelier and I spawn a new xterm window connecting to our sun station everything works nicely. We have visual slick edit installed on the sun station and I have been instructed to open it using the command vs&. When I do this I get the following: fbm240-1:/home/users/aj... | TITLE:
spawn a new xterm window
QUESTION:
When I am using Bitvise Tunnelier and I spawn a new xterm window connecting to our sun station everything works nicely. We have visual slick edit installed on the sun station and I have been instructed to open it using the command vs&. When I do this I get the following: fbm24... | [
"windows",
"unix",
"ssh",
"xterm"
] | 0 | 1 | 2,812 | 3 | 0 | 2008-09-25T14:26:56.420000 | 2008-09-25T14:43:11.373000 |
133,686 | 134,305 | Profiling PHP code | I'd like to find a way to determine how long each function in PHP, and each file in PHP is taking to run. I've got an old legacy PHP application that I'm trying to find the "rough spots" in and so I'd like to locate which routines and pages are taking a very long time to load, objectively. Are there any pre-made tools ... | I have actually done some optimisation work last week. XDebug is indeed the way to go. Just enable it as an extension (for some reason it wouldn't work with ze_extension on my windows machine), setup your php.ini with xdebug.profiler_enable_trigger=On and call your normal urls with XDEBUG_PROFILE=1 as either a get or a... | Profiling PHP code I'd like to find a way to determine how long each function in PHP, and each file in PHP is taking to run. I've got an old legacy PHP application that I'm trying to find the "rough spots" in and so I'd like to locate which routines and pages are taking a very long time to load, objectively. Are there ... | TITLE:
Profiling PHP code
QUESTION:
I'd like to find a way to determine how long each function in PHP, and each file in PHP is taking to run. I've got an old legacy PHP application that I'm trying to find the "rough spots" in and so I'd like to locate which routines and pages are taking a very long time to load, objec... | [
"php",
"performance",
"profiling"
] | 37 | 44 | 14,729 | 9 | 0 | 2008-09-25T14:27:41.770000 | 2008-09-25T16:16:15.893000 |
133,690 | 133,833 | .NET - How to hide invalid choices in a DateTimePicker | I've set the MaxDate and MinDate properties of a DateTimePicker. However, when I test the control at runtime, there is no way to tell the invalid dates from the valid ones. The only difference is that clicking on an invalid date does nothing. This is not very intuitive for the user. I want to be able to tell at a glanc... | I have a similar issue. I've extended the DateTimePicker control to run a validate process whenever the value changes and to either revert to the previous value or to the nearest legal value in the event of an illegal choice. The logical extension to this is to flash up a warning dialog or label to inform the user that... | .NET - How to hide invalid choices in a DateTimePicker I've set the MaxDate and MinDate properties of a DateTimePicker. However, when I test the control at runtime, there is no way to tell the invalid dates from the valid ones. The only difference is that clicking on an invalid date does nothing. This is not very intui... | TITLE:
.NET - How to hide invalid choices in a DateTimePicker
QUESTION:
I've set the MaxDate and MinDate properties of a DateTimePicker. However, when I test the control at runtime, there is no way to tell the invalid dates from the valid ones. The only difference is that clicking on an invalid date does nothing. This... | [
"c#",
"datetime",
"controls",
"user-interface"
] | 2 | 1 | 1,233 | 2 | 0 | 2008-09-25T14:28:12.877000 | 2008-09-25T14:59:08.900000 |
133,691 | 133,801 | How to resize the Asp.Net Page based on the screen resolution | I am developing a web application which has Chart Controls. I have developed a common chart User Control to use across the application. I am looking for an elegent way to set the Chart control's along with other control's width, height based on the screen(browser size). Please help me Thanks Shaik | Sounds like you want to resize a server-side dynamic image based on a client-side value. You would first need to load the page once, use Javascript to get the screen size. (Google for that. You can get the full cross browser technical list of which Javascript elements to use at Quirksmode.org, but you'll still need to ... | How to resize the Asp.Net Page based on the screen resolution I am developing a web application which has Chart Controls. I have developed a common chart User Control to use across the application. I am looking for an elegent way to set the Chart control's along with other control's width, height based on the screen(br... | TITLE:
How to resize the Asp.Net Page based on the screen resolution
QUESTION:
I am developing a web application which has Chart Controls. I have developed a common chart User Control to use across the application. I am looking for an elegent way to set the Chart control's along with other control's width, height base... | [
"asp.net"
] | 8 | 3 | 29,465 | 4 | 0 | 2008-09-25T14:28:20.737000 | 2008-09-25T14:44:30.170000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.