PostId
int64 4
11.8M
| PostCreationDate
stringlengths 19
19
| OwnerUserId
int64 1
1.57M
| OwnerCreationDate
stringlengths 10
19
| ReputationAtPostCreation
int64 -55
461k
| OwnerUndeletedAnswerCountAtPostTime
int64 0
21.5k
| Title
stringlengths 3
250
| BodyMarkdown
stringlengths 5
30k
⌀ | Tag1
stringlengths 1
25
⌀ | Tag2
stringlengths 1
25
⌀ | Tag3
stringlengths 1
25
⌀ | Tag4
stringlengths 1
25
⌀ | Tag5
stringlengths 1
25
⌀ | PostClosedDate
stringlengths 19
19
⌀ | OpenStatus
stringclasses 5
values | unified_texts
stringlengths 32
30.1k
| OpenStatus_id
int64 0
4
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15,716 | 08/19/2008 04:42:31 | 788 | 08/09/2008 00:17:36 | 38 | 4 | Design problems with .Net UserControl | I have created a UserControl that has a ListView in it. The ListView is publicly accessible though a property. When I put the UserControl in a form and try to design the ListView though the property, the ListView stays that way until I compile again and it reverts back to the default state.
How do I get my design changes to stick for the ListView? | c# | vs2005 | .net-2.0 | usercontrols | null | null | open | Design problems with .Net UserControl
===
I have created a UserControl that has a ListView in it. The ListView is publicly accessible though a property. When I put the UserControl in a form and try to design the ListView though the property, the ListView stays that way until I compile again and it reverts back to the default state.
How do I get my design changes to stick for the ListView? | 0 |
15,729 | 08/19/2008 04:57:38 | 1,693 | 08/18/2008 02:25:37 | 143 | 6 | Programming Glossary | As I browse through the site, I find a lot of terms that many developers just starting out (and even some advanced developers) may be unfamiliar with.
It would be great if people could post here with a term and definition that might be unknown to beginners or those from different programming backgrounds.
Some not-so-common terms I've seen are 'auto boxing', 'tuples', 'orthogonal code', 'domain driven design', 'test driven development', etc.
Code snippets would also be helpful where applicable.. | language-agnostic | glossary | terms | null | null | null | open | Programming Glossary
===
As I browse through the site, I find a lot of terms that many developers just starting out (and even some advanced developers) may be unfamiliar with.
It would be great if people could post here with a term and definition that might be unknown to beginners or those from different programming backgrounds.
Some not-so-common terms I've seen are 'auto boxing', 'tuples', 'orthogonal code', 'domain driven design', 'test driven development', etc.
Code snippets would also be helpful where applicable.. | 0 |
15,731 | 08/19/2008 04:59:03 | 26 | 08/01/2008 12:18:14 | 624 | 87 | Looking for a specific FireFox extension / program for Form posting | I am looking for either a FireFox extension, or a similar program, that allows you to craft GET and POST requests. The user would put in a form action, and as many form key/value pairs as desired. It would also send any cookie information (or send the current cookies from any domain the user chooses.) The Web Developer add-on is almost what I'm looking for; It let's you quickly see the form keys, but it doesn't let you change them or add new ones (which leads to a lot of painful JavaScript in the address bar...) | javascript | html | hacking | null | null | null | open | Looking for a specific FireFox extension / program for Form posting
===
I am looking for either a FireFox extension, or a similar program, that allows you to craft GET and POST requests. The user would put in a form action, and as many form key/value pairs as desired. It would also send any cookie information (or send the current cookies from any domain the user chooses.) The Web Developer add-on is almost what I'm looking for; It let's you quickly see the form keys, but it doesn't let you change them or add new ones (which leads to a lot of painful JavaScript in the address bar...) | 0 |
15,732 | 08/19/2008 04:59:04 | 1,650 | 08/17/2008 19:07:22 | 6 | 3 | What's the best way to validate an XML file against an XSD file? | I'm generating xml files that need to conform to an xsd that was given to me. What's the best way to do this? | java | xml | xsd | null | null | null | open | What's the best way to validate an XML file against an XSD file?
===
I'm generating xml files that need to conform to an xsd that was given to me. What's the best way to do this? | 0 |
15,734 | 08/19/2008 05:01:52 | 1,890 | 08/19/2008 05:01:52 | 1 | 0 | Google Analytics Access with C# | I know that there is no official API for Google Analytics but maybe someone has figured out a way to access Google Analytics Reports with C#?
Thank you in advance! | c# | api | google | analytics | null | null | open | Google Analytics Access with C#
===
I know that there is no official API for Google Analytics but maybe someone has figured out a way to access Google Analytics Reports with C#?
Thank you in advance! | 0 |
15,735 | 08/19/2008 05:02:35 | 1,693 | 08/18/2008 02:25:37 | 143 | 6 | Firefox extension for website interaction recording and repetition | Does anyone know of a firefox extension, or some other tool, that enables you to 'record' the interactions with a website, and then play them back, as a way of testing a website? | testing | firefox | null | null | null | null | open | Firefox extension for website interaction recording and repetition
===
Does anyone know of a firefox extension, or some other tool, that enables you to 'record' the interactions with a website, and then play them back, as a way of testing a website? | 0 |
15,744 | 08/19/2008 05:16:34 | 1,888 | 08/19/2008 04:52:17 | 1 | 0 | How do you use #define? | I'm wondering about instances when it makes sent to use #define and #if statements. I've known about it for a while, but never incorporated it into my way of coding. How exactly does this affect the compilation? | c# | .net | null | null | null | null | open | How do you use #define?
===
I'm wondering about instances when it makes sent to use #define and #if statements. I've known about it for a while, but never incorporated it into my way of coding. How exactly does this affect the compilation? | 0 |
15,747 | 08/19/2008 05:17:05 | 1,588 | 08/17/2008 01:05:22 | 11 | 2 | What are your favorite "learning" projects, and why? | When learning a new language/framework, are there any projects you find particularly useful to get to know it in depth? How do the different language paradigms affect your choice of project? Maybe you have a pet project which is '10 lines in functional language x" that you like to implement as a much larger imperative language project just to get a feel for the new environment? | language-agnostic | language | null | null | null | 10/26/2011 12:35:58 | not constructive | What are your favorite "learning" projects, and why?
===
When learning a new language/framework, are there any projects you find particularly useful to get to know it in depth? How do the different language paradigms affect your choice of project? Maybe you have a pet project which is '10 lines in functional language x" that you like to implement as a much larger imperative language project just to get a feel for the new environment? | 4 |
15,774 | 08/19/2008 05:54:18 | 1,888 | 08/19/2008 04:52:17 | 6 | 1 | How do I automate repeatative tasks post-build? | I run an ASP.NET website solution with a few other projects in it. I've known that MSBuild projects are capable of this, but is it the best way? Are they easy to create? Is nAnt, CruiseControl.NET or any other solution better?
When I build the site (using [Web Deployment Projects](http://msdn.microsoft.com/en-us/asp.net/aa336619.aspx)), can I automate part of the build so that it does not copy certain folders from the project into the Release folder? For instance, I have folders with local search indexes, images and other content part of the folder, but I never need or upload those when deploying the project.
I'm also looking toward this type of solution to automatically increment build and version numbers. | asp.net | c# | msbuild | vs2005 | webdeploymentproject | null | open | How do I automate repeatative tasks post-build?
===
I run an ASP.NET website solution with a few other projects in it. I've known that MSBuild projects are capable of this, but is it the best way? Are they easy to create? Is nAnt, CruiseControl.NET or any other solution better?
When I build the site (using [Web Deployment Projects](http://msdn.microsoft.com/en-us/asp.net/aa336619.aspx)), can I automate part of the build so that it does not copy certain folders from the project into the Release folder? For instance, I have folders with local search indexes, images and other content part of the folder, but I never need or upload those when deploying the project.
I'm also looking toward this type of solution to automatically increment build and version numbers. | 0 |
15,784 | 08/19/2008 06:06:42 | 718 | 08/08/2008 07:07:38 | 527 | 25 | What Visual Studio add-ins do you use? | I have the following installed:
- [Imports Sorter][1] (for VS 2005)
- [GhostDoc][2]
- [Regex Find and Replace][3] (.Net regex compatible find and replace, because VS has its own regex syntax)
- [rockscroll][4]
- [Smart Paster][5]
- [Sonic File Finder][6]
- [Cool Commands][7]
[1]: http://bordecal.mvps.org/Nicole/ImportsSorter/Default.htm
[2]: http://www.roland-weigelt.de/ghostdoc/
[3]: http://channel9.msdn.com/playground/Sandbox/176542/
[4]: http://www.hanselman.com/blog/IntroducingRockScroll.aspx
[5]: http://weblogs.asp.net/alex_papadimoulis/archive/2004/05/25/Smart-Paster-1.1-Add-In---StringBuilder-and-Better-C_2300_-Handling.aspx
[6]: http://jens-schaller.de/sonictools/sonicfilefinder/index.htm
[7]: http://weblogs.asp.net/gmilano/archive/2006/05/10/446010.aspx | visual-studio | add-in | null | null | null | null | open | What Visual Studio add-ins do you use?
===
I have the following installed:
- [Imports Sorter][1] (for VS 2005)
- [GhostDoc][2]
- [Regex Find and Replace][3] (.Net regex compatible find and replace, because VS has its own regex syntax)
- [rockscroll][4]
- [Smart Paster][5]
- [Sonic File Finder][6]
- [Cool Commands][7]
[1]: http://bordecal.mvps.org/Nicole/ImportsSorter/Default.htm
[2]: http://www.roland-weigelt.de/ghostdoc/
[3]: http://channel9.msdn.com/playground/Sandbox/176542/
[4]: http://www.hanselman.com/blog/IntroducingRockScroll.aspx
[5]: http://weblogs.asp.net/alex_papadimoulis/archive/2004/05/25/Smart-Paster-1.1-Add-In---StringBuilder-and-Better-C_2300_-Handling.aspx
[6]: http://jens-schaller.de/sonictools/sonicfilefinder/index.htm
[7]: http://weblogs.asp.net/gmilano/archive/2006/05/10/446010.aspx | 0 |
15,788 | 08/19/2008 06:14:42 | 1,888 | 08/19/2008 04:52:17 | 6 | 1 | Minimize javascript HTTP calls from AjaxControlToolkit controls? | I love the ease that the ASP.NET Ajax control Toolkit provides to ASP.NET developers. However, I've not found it to be a scalable solution at all. I have a page with 2 date input fields. By putting a TextBox and an CalendarExtendar control attached to it for each date field, I get several (11, in fact) external Javascript calls to /ScriptResource.axd?d=xxxx
Is there any way to control this? Why does it suck so much? What's a better Ajax toolkit for .NET that can provide equal (or better) set of functionality that is more scalable, straight forward and completely customizable? NOT looking to reinvent the wheel here. | asp.net | ajax | ajaxtoolkit | frontend | null | null | open | Minimize javascript HTTP calls from AjaxControlToolkit controls?
===
I love the ease that the ASP.NET Ajax control Toolkit provides to ASP.NET developers. However, I've not found it to be a scalable solution at all. I have a page with 2 date input fields. By putting a TextBox and an CalendarExtendar control attached to it for each date field, I get several (11, in fact) external Javascript calls to /ScriptResource.axd?d=xxxx
Is there any way to control this? Why does it suck so much? What's a better Ajax toolkit for .NET that can provide equal (or better) set of functionality that is more scalable, straight forward and completely customizable? NOT looking to reinvent the wheel here. | 0 |
15,798 | 08/19/2008 06:24:54 | 446,497 | 08/18/2008 01:08:53 | 41 | 5 | How do I validate xml against a DTD file in Python | I need to validate an XML string against a DTD
description file.
How can that be done in python? | xml | python | dtd | validation | null | null | open | How do I validate xml against a DTD file in Python
===
I need to validate an XML string against a DTD
description file.
How can that be done in python? | 0 |
15,805 | 08/19/2008 06:36:13 | 1,596 | 08/17/2008 09:24:01 | 13 | 0 | Why are my auto-run applications acting weird on Vista? | The product we are working on allows the user to easily set it up to run automatically whenever the computer is started. This is helpful because the product is part of the basic work environment of most of our users.
This feature was implemented not so long ago and for a while all was well, but when we started testing this feature on Vista the product started behaving really weird on startup. Specifically, our product makes use of another product (lets call it X) that it launches whenever it needs its services. The actual problem is that whenever X is launched immediately after log-on, it crashes or reports critical errors related to disk access (this happens even when X is launched directly - not through our product).
This happens whenever we run our product by registering it in the "Run" key in the registry or place a shortcut to it in the "Startup" folder inside the "Start Menu", even when we put a delay of ~20 seconds before actually starting to run. When we changed the delay to 70 seconds, all is well.
We tried to reproduce the problem by launching our product manually immediately after logon (by double-clicking on a shortcut placed on the desktop) but to no avail.
Now how is it possible that applications that run normally a minute after logon report such hard errors when starting immediately after logon? | windows-vista | null | null | null | null | null | open | Why are my auto-run applications acting weird on Vista?
===
The product we are working on allows the user to easily set it up to run automatically whenever the computer is started. This is helpful because the product is part of the basic work environment of most of our users.
This feature was implemented not so long ago and for a while all was well, but when we started testing this feature on Vista the product started behaving really weird on startup. Specifically, our product makes use of another product (lets call it X) that it launches whenever it needs its services. The actual problem is that whenever X is launched immediately after log-on, it crashes or reports critical errors related to disk access (this happens even when X is launched directly - not through our product).
This happens whenever we run our product by registering it in the "Run" key in the registry or place a shortcut to it in the "Startup" folder inside the "Start Menu", even when we put a delay of ~20 seconds before actually starting to run. When we changed the delay to 70 seconds, all is well.
We tried to reproduce the problem by launching our product manually immediately after logon (by double-clicking on a shortcut placed on the desktop) but to no avail.
Now how is it possible that applications that run normally a minute after logon report such hard errors when starting immediately after logon? | 0 |
15,815 | 08/19/2008 06:56:29 | 1,580 | 08/16/2008 20:34:26 | 11 | 1 | SSRS - Post Publishing Tasks | As part of the publishing "best practices" i came up with my own, i tend to archive report groups and republish the "updated" reports. However, with this stratedgy, I lose users associated with each report, or have to rehide reports.
Is there an automated process I can use to hide reports, or add users, after deploying form Visual Studio? | reporting-services | automation | null | null | null | null | open | SSRS - Post Publishing Tasks
===
As part of the publishing "best practices" i came up with my own, i tend to archive report groups and republish the "updated" reports. However, with this stratedgy, I lose users associated with each report, or have to rehide reports.
Is there an automated process I can use to hide reports, or add users, after deploying form Visual Studio? | 0 |
15,816 | 08/19/2008 06:56:39 | 1,084 | 08/12/2008 11:01:49 | 90 | 14 | Changing the resolution of a VNC session in linux | I use VNC to connect to a Linux workstation at work. At work I have a 20" monitor that runs at 1600x1200, while at home I use my laptop with its resolution of 1440x900.
If I set the vncserver to run at 1440x900 I miss out on a lot of space on my monitor, whereas if I set it to run at 1600x1200 it doesn't fit on the laptop's screen, and I have to scroll it all the time.
Is there any good way to resize a VNC session on the fly?
My VNC server is RealVNC E4.x (I don't remember the exact version) running on SuSE64. | linux | vnc | null | null | null | null | open | Changing the resolution of a VNC session in linux
===
I use VNC to connect to a Linux workstation at work. At work I have a 20" monitor that runs at 1600x1200, while at home I use my laptop with its resolution of 1440x900.
If I set the vncserver to run at 1440x900 I miss out on a lot of space on my monitor, whereas if I set it to run at 1600x1200 it doesn't fit on the laptop's screen, and I have to scroll it all the time.
Is there any good way to resize a VNC session on the fly?
My VNC server is RealVNC E4.x (I don't remember the exact version) running on SuSE64. | 0 |
15,822 | 08/19/2008 07:09:04 | 1,006 | 08/11/2008 12:49:59 | 38 | 2 | What tools (free or otherwise) do you find useful for developing and debugging C#/C++? | Here are some that I use (all freely available):
Hex Editor: Hexplorer <http://sourceforge.net/projects/hexplorer/>
Debugger: WinDbg <http://www.microsoft.com/whdc/resources/downloads.mspx>
Documentation Compiler: SandCastle <http://www.sandcastledocs.com/Wiki%20Pages/Home.aspx>
Automatic Build: Cruise Control.Net <http://ccnet.thoughtworks.com/>
Rob | c# | c++ | null | null | null | null | open | What tools (free or otherwise) do you find useful for developing and debugging C#/C++?
===
Here are some that I use (all freely available):
Hex Editor: Hexplorer <http://sourceforge.net/projects/hexplorer/>
Debugger: WinDbg <http://www.microsoft.com/whdc/resources/downloads.mspx>
Documentation Compiler: SandCastle <http://www.sandcastledocs.com/Wiki%20Pages/Home.aspx>
Automatic Build: Cruise Control.Net <http://ccnet.thoughtworks.com/>
Rob | 0 |
15,838 | 08/19/2008 07:28:31 | 381 | 08/05/2008 10:39:26 | 953 | 17 | Optimizing a search algorithm in C | Can the performance of this sequential search algorithm (taken from
[The Practice of Programming](http://books.google.co.uk/books?id=to6M9_dbjosC&dq=the+practice+of+programming&pg=PP1&ots=3YH6Ggq0_a&sig=F2-ajdO37xA4iRec2sCyQF55Jjc&hl=en&sa=X&oi=book_result&resnum=1&ct=result)) be improved using any of C's native utilities, e.g. if I set the i variable to be a register variable ?
int lookup(char *word, char*array[])
{
int i
for (i = 0; array[i] != NULL; i++)
if (strcmp(word, array[i]) == 0)
return i;
return -1;
}
| c | perfornance | optimization | algorithm | null | null | open | Optimizing a search algorithm in C
===
Can the performance of this sequential search algorithm (taken from
[The Practice of Programming](http://books.google.co.uk/books?id=to6M9_dbjosC&dq=the+practice+of+programming&pg=PP1&ots=3YH6Ggq0_a&sig=F2-ajdO37xA4iRec2sCyQF55Jjc&hl=en&sa=X&oi=book_result&resnum=1&ct=result)) be improved using any of C's native utilities, e.g. if I set the i variable to be a register variable ?
int lookup(char *word, char*array[])
{
int i
for (i = 0; array[i] != NULL; i++)
if (strcmp(word, array[i]) == 0)
return i;
return -1;
}
| 0 |
15,841 | 08/19/2008 07:30:56 | 1,703 | 08/18/2008 05:41:49 | 33 | 6 | Visual Studio color theme | What Visual Studio color theme do you use?
Or just the default?
| visual-studio | themes | color-scheme | null | null | 08/09/2011 11:28:42 | not constructive | Visual Studio color theme
===
What Visual Studio color theme do you use?
Or just the default?
| 4 |
15,857 | 08/19/2008 07:48:24 | 192 | 08/03/2008 10:15:38 | 235 | 25 | CSS Drop-Down Menus - "Best"? Most feature-rich? | I'm in the unfortunate position of having to implement a drop-down cascading menu on a site I'm building. I'm looking for a Suckerfish-style solution that is primarily CSS-based and works on a simple set of nested ULs and LIs.
[Son of Suckerfish][1] seems like the way to go, but I don't like the way it just disappears the second you move the mouse away, as users with co-ordination difficulties will have a nightmare navigating the site (or just not bother, but since it's a corporate site there are some who will probably _have_ to use whatever I implement).
Neat features that I've not even thought about needing are welcome, but the two main elements I'm looking for are:
1. Multi-level using a nested UL/LI structure
2. Small (possibly configurable?) delay before disappearing when the menu is "mouseout"-ed, even if it is provided by some extra JavaScript.
[1]: http://htmldog.com/articles/suckerfish/dropdowns/ | navigation | css-menu | suckerfish | null | null | null | open | CSS Drop-Down Menus - "Best"? Most feature-rich?
===
I'm in the unfortunate position of having to implement a drop-down cascading menu on a site I'm building. I'm looking for a Suckerfish-style solution that is primarily CSS-based and works on a simple set of nested ULs and LIs.
[Son of Suckerfish][1] seems like the way to go, but I don't like the way it just disappears the second you move the mouse away, as users with co-ordination difficulties will have a nightmare navigating the site (or just not bother, but since it's a corporate site there are some who will probably _have_ to use whatever I implement).
Neat features that I've not even thought about needing are welcome, but the two main elements I'm looking for are:
1. Multi-level using a nested UL/LI structure
2. Small (possibly configurable?) delay before disappearing when the menu is "mouseout"-ed, even if it is provided by some extra JavaScript.
[1]: http://htmldog.com/articles/suckerfish/dropdowns/ | 0 |
15,880 | 08/19/2008 08:07:28 | 39 | 08/01/2008 12:44:55 | 1,019 | 25 | Read from .msg files | I need to read from Outlook .MSG file in .NET *without* using COM API for Outlook (cos it will not be installed on the machines that my app will run). Are there any free 3rd party libraries to do that? I want to extract From, To, CC and BCC fields. Sent/Receive date fields would be good if they are also stored in MSG files. | email | c# | outlook | msg | message | null | open | Read from .msg files
===
I need to read from Outlook .MSG file in .NET *without* using COM API for Outlook (cos it will not be installed on the machines that my app will run). Are there any free 3rd party libraries to do that? I want to extract From, To, CC and BCC fields. Sent/Receive date fields would be good if they are also stored in MSG files. | 0 |
15,899 | 08/19/2008 08:46:08 | 86 | 08/01/2008 16:45:58 | 192 | 21 | insert/replace XML tag in XmlDocument | I have a XmlDocument in java, created with the Weblogic XmlDocument parser.
I want to replace the content of a tag in this xmldocument with my own data, or insert the tag if it isnt there.
<customdata>
<tag1 />
<tag2>mfkdslmlfkm</tag2>
<location />
<tag3 />
</customdata>
I for example want to insert some url in the location tag:
<location>http://something</location>
but otherwise leave the xml as is.
Currently I use a xmlcursor:
XmlObject xmlobj = XmlObject.Factory.parse(a.getCustomData(), options);
XmlCursor xmlcur = xmlobj.newCursor();
while (xmlcur.hasNextToken()) {
boolean found = false;
if (xmlcur.isStart() && "schema-location".equals(xmlcur.getName().toString())) {
xmlcur.setTextValue("http://replaced");
System.out.println("replaced");
found = true;
} else if (xmlcur.isStart() && "customdata".equals(xmlcur.getName().toString())) {
xmlcur.push();
} else if (xmlcur.isEnddoc()) {
if (!found) {
xmlcur.pop();
xmlcur.toEndToken();
xmlcur.insertElementWithText("schema-location", "http://inserted");
System.out.println("inserted");
}
}
xmlcur.toNextToken();
}
I tried to find a "quick" xquery way to do this since the XmlDocument has an execQuery method, but didnt find it very easy.
Do anyone have a better way than this? It seems a bit elaborate.
| java | xml | xquery | null | null | null | open | insert/replace XML tag in XmlDocument
===
I have a XmlDocument in java, created with the Weblogic XmlDocument parser.
I want to replace the content of a tag in this xmldocument with my own data, or insert the tag if it isnt there.
<customdata>
<tag1 />
<tag2>mfkdslmlfkm</tag2>
<location />
<tag3 />
</customdata>
I for example want to insert some url in the location tag:
<location>http://something</location>
but otherwise leave the xml as is.
Currently I use a xmlcursor:
XmlObject xmlobj = XmlObject.Factory.parse(a.getCustomData(), options);
XmlCursor xmlcur = xmlobj.newCursor();
while (xmlcur.hasNextToken()) {
boolean found = false;
if (xmlcur.isStart() && "schema-location".equals(xmlcur.getName().toString())) {
xmlcur.setTextValue("http://replaced");
System.out.println("replaced");
found = true;
} else if (xmlcur.isStart() && "customdata".equals(xmlcur.getName().toString())) {
xmlcur.push();
} else if (xmlcur.isEnddoc()) {
if (!found) {
xmlcur.pop();
xmlcur.toEndToken();
xmlcur.insertElementWithText("schema-location", "http://inserted");
System.out.println("inserted");
}
}
xmlcur.toNextToken();
}
I tried to find a "quick" xquery way to do this since the XmlDocument has an execQuery method, but didnt find it very easy.
Do anyone have a better way than this? It seems a bit elaborate.
| 0 |
15,900 | 08/19/2008 08:46:08 | 1,122 | 08/12/2008 14:00:43 | 261 | 27 | Entity diagrams in ASP.NET MVC | What's the best way/tool to display nice diagrams with entity relationships in ASP MVC views? I.e. servers and and applications, or servers with other servers.
Are there any third party tools out there that can do this? I've been searching around things like Telerik, but it's really hard to google for this! | .net-3.5 | asp.net-mvc | graphics | diagram | null | null | open | Entity diagrams in ASP.NET MVC
===
What's the best way/tool to display nice diagrams with entity relationships in ASP MVC views? I.e. servers and and applications, or servers with other servers.
Are there any third party tools out there that can do this? I've been searching around things like Telerik, but it's really hard to google for this! | 0 |
15,917 | 08/19/2008 09:24:08 | 1,122 | 08/12/2008 14:00:43 | 261 | 27 | Data Auditing in NHibernate and SqlServer | I'm using NHibernate on a project and I need to do data auditing. I found [this article][1] on codeproject which discussed the IInterceptor interface.
What is your preferred way of auditing data? Do you use database triggers? Do you use something similar to what's dicussed in the article?
[1]: http://www.codeproject.com/KB/cs/NHibernate_IInterceptor.aspx | nhibernate | sql-server | data | audit | null | null | open | Data Auditing in NHibernate and SqlServer
===
I'm using NHibernate on a project and I need to do data auditing. I found [this article][1] on codeproject which discussed the IInterceptor interface.
What is your preferred way of auditing data? Do you use database triggers? Do you use something similar to what's dicussed in the article?
[1]: http://www.codeproject.com/KB/cs/NHibernate_IInterceptor.aspx | 0 |
15,949 | 08/19/2008 10:17:24 | 22 | 08/01/2008 12:11:11 | 200 | 19 | Java+Tomcat, Dying databse connection? | I have a tomcat instance setup but the database connection I have configured in context.xml keeps dying after periods of inactivity.
When I check the logs I get the following error:
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
The last packet successfully received from the server was68051 seconds
ago. The last packet sent successfully to the server was 68051 seconds
ago, which is longer than the server configured value of
'wait_timeout'. You should consider either expiring and/or testing
connection validity before use in your application, increasing the
server configured values for client timeouts, or using the Connector/J
connection property 'autoReconnect=true' to avoid this problem.
Here is the configuration in context.xml:
<Resource name="dataSourceName"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="username"
password="********"
removeAbandoned = "true"
logAbandoned = "true"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://127.0.0.1:3306/databasename?autoReconnect=true&useEncoding=true&characterEncoding=UTF-8" />
I am using autoReconnect=ture like the error says to do, but the connection keeps dying. I have never seen this happen before.
I have also verified that all database connections are being closed properly. | java | mysql | tomcat | null | null | null | open | Java+Tomcat, Dying databse connection?
===
I have a tomcat instance setup but the database connection I have configured in context.xml keeps dying after periods of inactivity.
When I check the logs I get the following error:
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
The last packet successfully received from the server was68051 seconds
ago. The last packet sent successfully to the server was 68051 seconds
ago, which is longer than the server configured value of
'wait_timeout'. You should consider either expiring and/or testing
connection validity before use in your application, increasing the
server configured values for client timeouts, or using the Connector/J
connection property 'autoReconnect=true' to avoid this problem.
Here is the configuration in context.xml:
<Resource name="dataSourceName"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="username"
password="********"
removeAbandoned = "true"
logAbandoned = "true"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://127.0.0.1:3306/databasename?autoReconnect=true&useEncoding=true&characterEncoding=UTF-8" />
I am using autoReconnect=ture like the error says to do, but the connection keeps dying. I have never seen this happen before.
I have also verified that all database connections are being closed properly. | 0 |
15,954 | 08/19/2008 10:33:21 | 1,658 | 08/17/2008 20:12:50 | 1 | 0 | How would a sdbm hash function be implemented in C#? | How will a sdbm hash function (such as http://www.cse.yorku.ca/~oz/hash.html) be implemented in C# ? | c# | hash | null | null | null | null | open | How would a sdbm hash function be implemented in C#?
===
How will a sdbm hash function (such as http://www.cse.yorku.ca/~oz/hash.html) be implemented in C# ? | 0 |
15,979 | 08/19/2008 10:59:17 | 1,448 | 08/15/2008 16:16:35 | 58 | 11 | WildcardQuery error in Solr | I use solr to search for documents and when trying to search for documents using this query "<code>id:*</code>", I get this query parser exception telling that it cannot parse the query with * or ? as the first character.
HTTP Status 400 - org.apache.lucene.queryParser.ParseException: Cannot parse 'id:*': '*' or '?' not allowed as first character in WildcardQuery
type Status report
message org.apache.lucene.queryParser.ParseException: Cannot parse 'id:*': '*' or '?' not allowed as first character in WildcardQuery
description The request sent by the client was syntactically incorrect (org.apache.lucene.queryParser.ParseException: Cannot parse 'id:*': '*' or '?' not allowed as first character in WildcardQuery).
Is there any patch for getting this to work with just * ? Or is it very costly to do such a query? | search | lucene | solr | null | null | null | open | WildcardQuery error in Solr
===
I use solr to search for documents and when trying to search for documents using this query "<code>id:*</code>", I get this query parser exception telling that it cannot parse the query with * or ? as the first character.
HTTP Status 400 - org.apache.lucene.queryParser.ParseException: Cannot parse 'id:*': '*' or '?' not allowed as first character in WildcardQuery
type Status report
message org.apache.lucene.queryParser.ParseException: Cannot parse 'id:*': '*' or '?' not allowed as first character in WildcardQuery
description The request sent by the client was syntactically incorrect (org.apache.lucene.queryParser.ParseException: Cannot parse 'id:*': '*' or '?' not allowed as first character in WildcardQuery).
Is there any patch for getting this to work with just * ? Or is it very costly to do such a query? | 0 |
15,995 | 08/19/2008 11:16:58 | 1,448 | 08/15/2008 16:16:35 | 58 | 11 | Useful code which uses reduce() in python | Do anyone here have any useful code which uses reduce() function of python? Is there any code other than the usual + and * that we see in the examples?
Refer [Fate of reduce() in Python 3000][1] by GvR
[1]: http://www.artima.com/weblogs/viewpost.jsp?thread=98196 | python | functionalprogramming | null | null | null | null | open | Useful code which uses reduce() in python
===
Do anyone here have any useful code which uses reduce() function of python? Is there any code other than the usual + and * that we see in the examples?
Refer [Fate of reduce() in Python 3000][1] by GvR
[1]: http://www.artima.com/weblogs/viewpost.jsp?thread=98196 | 0 |
16,003 | 08/19/2008 11:22:00 | 1,738 | 08/18/2008 11:32:29 | 1 | 1 | ASP.NET LocationProvider | We need to replace the menu system in our main ASP.NET application. So naturally we're looking at the ASP.NET SiteMapProvider and Menu controls. However we also need enough security to prevent users from directly entering URLs that they shouldn't have access to. We can do this by putting <location> entries in web.config and securing them individually but that's going to be a PITA to manage across multiple web servers.
Is there a Provider that can be used to, well, provide the equivalent of the <location> entries? I haven't been able to find one, and it's slightly frustrating given the existence of the [ConfigurationLocation][1] class.
Alternatively is there a configuration option we're missing in SiteMapProvider that will restrict users from getting to URLs they shouldn't?
Phil
[1]: http://msdn.microsoft.com/en-us/library/system.configuration.configurationlocation.aspx | asp.net | security | sitemap | provider | null | null | open | ASP.NET LocationProvider
===
We need to replace the menu system in our main ASP.NET application. So naturally we're looking at the ASP.NET SiteMapProvider and Menu controls. However we also need enough security to prevent users from directly entering URLs that they shouldn't have access to. We can do this by putting <location> entries in web.config and securing them individually but that's going to be a PITA to manage across multiple web servers.
Is there a Provider that can be used to, well, provide the equivalent of the <location> entries? I haven't been able to find one, and it's slightly frustrating given the existence of the [ConfigurationLocation][1] class.
Alternatively is there a configuration option we're missing in SiteMapProvider that will restrict users from getting to URLs they shouldn't?
Phil
[1]: http://msdn.microsoft.com/en-us/library/system.configuration.configurationlocation.aspx | 0 |
16,007 | 08/19/2008 11:24:55 | 1,762 | 08/18/2008 13:12:06 | 1 | 1 | How do I convert a file path to a URL in ASP.NET | Basically I have some code to check a specific directory to see if an image is there and if so I want to assign a URL to the image to an ImageControl.
if (System.IO.Directory.Exists(photosLocation))
{
string[] files = System.IO.Directory.GetFiles(photosLocation, "*.jpg");
if (files.Length > 0)
{
// TODO: return the url of the first file found;
}
}
| asp.net | image | url | null | null | null | open | How do I convert a file path to a URL in ASP.NET
===
Basically I have some code to check a specific directory to see if an image is there and if so I want to assign a URL to the image to an ImageControl.
if (System.IO.Directory.Exists(photosLocation))
{
string[] files = System.IO.Directory.GetFiles(photosLocation, "*.jpg");
if (files.Length > 0)
{
// TODO: return the url of the first file found;
}
}
| 0 |
16,064 | 08/19/2008 12:30:25 | 1,721 | 08/18/2008 09:58:47 | 1 | 0 | What IDE to use for developing in Ruby on Rails on windows? | I've generally been doing stuff on Microsoft .Net out of college almost 2 years ago. I just started looking at Ruby on rails. So what editor should I use? I'm using Notepad++ right now but can I get debugging etc. somehow? | ruby | ruby-on-rails | ide | editor | null | null | open | What IDE to use for developing in Ruby on Rails on windows?
===
I've generally been doing stuff on Microsoft .Net out of college almost 2 years ago. I just started looking at Ruby on rails. So what editor should I use? I'm using Notepad++ right now but can I get debugging etc. somehow? | 0 |
16,067 | 08/19/2008 12:32:38 | 199 | 08/03/2008 12:26:21 | 512 | 24 | Prototyping hybrid Python code | I have been mulling over writing a peak fitting library for a while. I know Python fairly well and plan on implementing everything in Python to begin with but envisage that I may have to re-implement some core routines in a compiled language eventually.
Python is pretty liberal in allowing functions, functors, objects to be passed to functions and methods, whereas I suspect the same is not true of say C or Fortran.
What should I know about designing functions/classes which I envisage will have to interface into the compiled language? And how much of these potential problems are dealt with by libraries such as cTypes and [SWIG][1]?
[1]: http://www.swig.org/ | python | fortran | prototyping | swig | ctypes | null | open | Prototyping hybrid Python code
===
I have been mulling over writing a peak fitting library for a while. I know Python fairly well and plan on implementing everything in Python to begin with but envisage that I may have to re-implement some core routines in a compiled language eventually.
Python is pretty liberal in allowing functions, functors, objects to be passed to functions and methods, whereas I suspect the same is not true of say C or Fortran.
What should I know about designing functions/classes which I envisage will have to interface into the compiled language? And how much of these potential problems are dealt with by libraries such as cTypes and [SWIG][1]?
[1]: http://www.swig.org/ | 0 |
16,073 | 08/19/2008 12:33:34 | 1,744 | 08/18/2008 12:04:57 | 1 | 0 | Alternatives to Visual Sourcesafe that integrate with Visual Studio | I am interested in dropping Visual Sourcesafe in favor of a version control application that offers branching. Sourcesafe's integration into Visual Studio makes checkins/outs a breeze. Can anyone suggest some other programs that offer the same functionality? I would prefer open source but it is not a requirement. | version-control | visual | visual-studio | opensource | null | null | open | Alternatives to Visual Sourcesafe that integrate with Visual Studio
===
I am interested in dropping Visual Sourcesafe in favor of a version control application that offers branching. Sourcesafe's integration into Visual Studio makes checkins/outs a breeze. Can anyone suggest some other programs that offer the same functionality? I would prefer open source but it is not a requirement. | 0 |
16,074 | 08/19/2008 12:34:33 | 1,749 | 08/18/2008 12:17:04 | 6 | 2 | Visual Studio open files question | Is it possible to open a project in Visual Studio 2008 without opening all the files that were previously opened last time I had the project open. I have a habit of keeping many files open as I am working on them, so next time I open the project, it (very slowly) loads up a bunch of files into the editor that I may not even need open. I have searched through the settings and cannot find anything to stop this behavior. | visual-studio | settings | null | null | null | null | open | Visual Studio open files question
===
Is it possible to open a project in Visual Studio 2008 without opening all the files that were previously opened last time I had the project open. I have a habit of keeping many files open as I am working on them, so next time I open the project, it (very slowly) loads up a bunch of files into the editor that I may not even need open. I have searched through the settings and cannot find anything to stop this behavior. | 0 |
16,096 | 08/19/2008 12:47:44 | 93 | 08/01/2008 18:23:58 | 250 | 10 | How to apply multiple styles in WPF | In WPF, how would I apply multiple styles to a `FrameworkElement`? For instance, I have a control which already has a style. I also have a separate style which I would like to add to it without blowing away the first one. The styles have different TargetTypes, so I can't just extend one with the other. | .net | wpf | styles | null | null | null | open | How to apply multiple styles in WPF
===
In WPF, how would I apply multiple styles to a `FrameworkElement`? For instance, I have a control which already has a style. I also have a separate style which I would like to add to it without blowing away the first one. The styles have different TargetTypes, so I can't just extend one with the other. | 0 |
16,097 | 08/19/2008 12:48:21 | 1,353 | 08/14/2008 17:39:48 | 7 | 8 | What is the best way to replicate a version control repository? | Here is the scenario that I have. I have a cvs repository in one location (A) and I want to replicate it and keep it in sync with a repository in another location(B). This would be a single directional sync from A to B. What is the best way to do this? If it is not really feasible in CVS then which source code control system would you recommend to accomplish this? Thanks | version-control | cvs | null | null | null | null | open | What is the best way to replicate a version control repository?
===
Here is the scenario that I have. I have a cvs repository in one location (A) and I want to replicate it and keep it in sync with a repository in another location(B). This would be a single directional sync from A to B. What is the best way to do this? If it is not really feasible in CVS then which source code control system would you recommend to accomplish this? Thanks | 0 |
16,100 | 08/19/2008 12:51:55 | 203 | 08/03/2008 13:26:47 | 105 | 5 | Converting a string to an enumeration value in C# | What's the best way to convert a string to an enumeration value in C#?
I have an HTML select tag containing the values of an enumeration. When the page is posted, I want to pick up the value (which will be in the form of a string) and convert it to the enumeration value.
In an ideal world, I could do something like this:
StatusEnum MyStatus = StatusEnum.Parse("Active");
but that isn't valid code. | c# | null | null | null | null | null | open | Converting a string to an enumeration value in C#
===
What's the best way to convert a string to an enumeration value in C#?
I have an HTML select tag containing the values of an enumeration. When the page is posted, I want to pick up the value (which will be in the form of a string) and convert it to the enumeration value.
In an ideal world, I could do something like this:
StatusEnum MyStatus = StatusEnum.Parse("Active");
but that isn't valid code. | 0 |
16,110 | 08/19/2008 12:55:46 | 1,629 | 08/17/2008 17:00:03 | 18 | 6 | C# Auto Clearing Winform Textbox | I have a user that want to be able to select a textbox and have the current text selected so that he doesn't have to highlight it all in order to change the contents. The contents need to be handle when enter is pushed. That part I think I have figured out but any suggections would be welcome. The part I need help with is that once enter has been pushed, any entry into the textbox should clear the contents again. | c# | winforms | textbox | null | null | null | open | C# Auto Clearing Winform Textbox
===
I have a user that want to be able to select a textbox and have the current text selected so that he doesn't have to highlight it all in order to change the contents. The contents need to be handle when enter is pushed. That part I think I have figured out but any suggections would be welcome. The part I need help with is that once enter has been pushed, any entry into the textbox should clear the contents again. | 0 |
16,113 | 08/19/2008 12:59:40 | 277 | 08/04/2008 10:55:22 | 120 | 6 | Webserver Log Analysis | Can I get some recommendations (prefereably with some reasons) for good log analysis software for Apache 2.2 access log files?
I have heard of Webalizer and AWStats, but have never really used any of them, and would like to know:
- What they can do
- Why they are useful
- Interesting uses for them
Any and all comments and thoughts are welcome. | apache | logfileanalysis | null | null | null | null | open | Webserver Log Analysis
===
Can I get some recommendations (prefereably with some reasons) for good log analysis software for Apache 2.2 access log files?
I have heard of Webalizer and AWStats, but have never really used any of them, and would like to know:
- What they can do
- Why they are useful
- Interesting uses for them
Any and all comments and thoughts are welcome. | 0 |
16,114 | 08/19/2008 12:59:41 | 1,629 | 08/17/2008 17:00:03 | 18 | 6 | C# Include Derived Control in Toolbox | This is in reference to my other question [Auto Clearing Textbox][1]. If I choose to derive a new TextBox control from TextBox instead of implement a user control just containing my Textbox, how would I include that in the toolbox.
[1]: http://stackoverflow.com/questions/16110/c-auto-clearing-winform-textbox | c# | visual-studio | winforms | textbox | null | null | open | C# Include Derived Control in Toolbox
===
This is in reference to my other question [Auto Clearing Textbox][1]. If I choose to derive a new TextBox control from TextBox instead of implement a user control just containing my Textbox, how would I include that in the toolbox.
[1]: http://stackoverflow.com/questions/16110/c-auto-clearing-winform-textbox | 0 |
16,140 | 08/19/2008 13:20:49 | 765 | 08/08/2008 16:55:41 | 61 | 9 | What's the best way to get started with OSGI? | I'm interested in using [OSGi][1] in my applications. We're a Java shop and we use Spring pretty extensively, so I'm leaning toward using [Spring Dynamic Modules for OSGi(tm) Service Platforms][2]. I'm looking for a good way to incorporate a little bit of OSGi into an application as a trial. What makes a module/service/bit of application functionality a particularly good candidate for an OSGi module? Has anyone here used this or a similar OSGi technology? Are there any pitfalls?
[1]: http://en.wikipedia.org/wiki/OSGi
[2]: http://www.springframework.org/osgi | osgi | java | spring | null | null | null | open | What's the best way to get started with OSGI?
===
I'm interested in using [OSGi][1] in my applications. We're a Java shop and we use Spring pretty extensively, so I'm leaning toward using [Spring Dynamic Modules for OSGi(tm) Service Platforms][2]. I'm looking for a good way to incorporate a little bit of OSGi into an application as a trial. What makes a module/service/bit of application functionality a particularly good candidate for an OSGi module? Has anyone here used this or a similar OSGi technology? Are there any pitfalls?
[1]: http://en.wikipedia.org/wiki/OSGi
[2]: http://www.springframework.org/osgi | 0 |
16,142 | 08/19/2008 13:22:03 | 914 | 08/10/2008 10:32:48 | 17 | 9 | What does branch, tag and trunk really mean? | I've seen these words a lot around subversion (and I guess general repository) discussions.
Myself I have been using svn for my projects the last few years, but I've never grasped the complete concept of these directories.
What do they mean? | subversion | svn | tag | branch | trunk | 08/04/2011 15:15:32 | not constructive | What does branch, tag and trunk really mean?
===
I've seen these words a lot around subversion (and I guess general repository) discussions.
Myself I have been using svn for my projects the last few years, but I've never grasped the complete concept of these directories.
What do they mean? | 4 |
16,145 | 08/19/2008 13:24:19 | 1,533 | 08/16/2008 12:20:13 | 21 | 1 | What's the best way to report errors from a SharePoint workflow? | I have a custom action in a workflow and would like to report an error to the user when something goes wrong. What's the best way of doing that? | sharepoint | workflows | error-handling | null | null | null | open | What's the best way to report errors from a SharePoint workflow?
===
I have a custom action in a workflow and would like to report an error to the user when something goes wrong. What's the best way of doing that? | 0 |
16,155 | 08/19/2008 13:32:12 | 58 | 08/01/2008 13:56:33 | 2,206 | 82 | Making one interface overwrite a method it inherits from another interface in PHP | *The "Question":*
**Is there a way in PHP to overwrite a method declared by one interface in an interface extending that interface?**
*The "Example":*
I'm probably doing something wrong, but here is what I have:
interface iVendor{
public function __construct($vendors_no = null);
public function getName();
public function getVendors_no();
public function getZip();
public function getCountryCode();
public function setName($name);
public function setVendors_no($vendors_no);
public function setZip($zip);
public function setCountryCode($countryCode);
}
interface iShipper extends iVendor{
public function __construct($vendors_no = null, $shipment = null);
public function getTransitTime($shipment = null);
public function getTransitCost($shipment = null);
public function getCurrentShipment();
public function setCurrentShipment($shipment);
public function getStatus($shipment = null);
}
Normally in PHP, when you extend something, you can overwrite any method contained therein (right?). However, when one interface extends another, it won't let you. Unless I'm thinking about this wrong... When I implement the iShipper interface, I don't have to make the Shipper object extend the Vendor object (that implements the iVendor interface). I just say:
class FedEx implements iShipper{}
and make FedEx implement all of the methods from iVendor and iShipper. However, I need the __construct functions in iVendor and iShipper to be unique. I know I could take out the $shipment = null, but then it wouldn't be as convenient to create Shippers (by just passing in the vendors_no and the shipment while instantiating).
Anyone know how to make this work? My fallback is to have to set the shipment by calling $shipper->setShipment($shipment); on the Shipper after I instantiate it, but I'm hoping for a way to get around having to do that...
*A little more explanation for the curious:*
*The FedEx Object has methods that go to the FedEx site (using cURL) and gets an estimate for the Shipment in question. I have a UPS Object, a BAXGlobal Object, a Conway Object, etc. Each one has COMPLETELY different methods for actually getting the shipping estimate, but all the system needs to know is that they are a "shipper" and that the methods listed in the interface are callable on them (so it can treat them all exactly the same, and loop through them in a "shippers" array calling getTransitX() to find the best shipper for a shipment).*
*Each "Shipper" is also a "Vendor" though, and is treated as such in other parts of the system (getting and putting in the DB, etc. Our data design is a pile of crap, so FedEx is stored right alongside companies like Dunder Mifflin in the "Vendors" table, which means it gets to have all the properties of every other Vendor, but needs the extra properties and methods supplied by iShipper).* | php | oop | interface | extends | null | null | open | Making one interface overwrite a method it inherits from another interface in PHP
===
*The "Question":*
**Is there a way in PHP to overwrite a method declared by one interface in an interface extending that interface?**
*The "Example":*
I'm probably doing something wrong, but here is what I have:
interface iVendor{
public function __construct($vendors_no = null);
public function getName();
public function getVendors_no();
public function getZip();
public function getCountryCode();
public function setName($name);
public function setVendors_no($vendors_no);
public function setZip($zip);
public function setCountryCode($countryCode);
}
interface iShipper extends iVendor{
public function __construct($vendors_no = null, $shipment = null);
public function getTransitTime($shipment = null);
public function getTransitCost($shipment = null);
public function getCurrentShipment();
public function setCurrentShipment($shipment);
public function getStatus($shipment = null);
}
Normally in PHP, when you extend something, you can overwrite any method contained therein (right?). However, when one interface extends another, it won't let you. Unless I'm thinking about this wrong... When I implement the iShipper interface, I don't have to make the Shipper object extend the Vendor object (that implements the iVendor interface). I just say:
class FedEx implements iShipper{}
and make FedEx implement all of the methods from iVendor and iShipper. However, I need the __construct functions in iVendor and iShipper to be unique. I know I could take out the $shipment = null, but then it wouldn't be as convenient to create Shippers (by just passing in the vendors_no and the shipment while instantiating).
Anyone know how to make this work? My fallback is to have to set the shipment by calling $shipper->setShipment($shipment); on the Shipper after I instantiate it, but I'm hoping for a way to get around having to do that...
*A little more explanation for the curious:*
*The FedEx Object has methods that go to the FedEx site (using cURL) and gets an estimate for the Shipment in question. I have a UPS Object, a BAXGlobal Object, a Conway Object, etc. Each one has COMPLETELY different methods for actually getting the shipping estimate, but all the system needs to know is that they are a "shipper" and that the methods listed in the interface are callable on them (so it can treat them all exactly the same, and loop through them in a "shippers" array calling getTransitX() to find the best shipper for a shipment).*
*Each "Shipper" is also a "Vendor" though, and is treated as such in other parts of the system (getting and putting in the DB, etc. Our data design is a pile of crap, so FedEx is stored right alongside companies like Dunder Mifflin in the "Vendors" table, which means it gets to have all the properties of every other Vendor, but needs the extra properties and methods supplied by iShipper).* | 0 |
16,159 | 08/19/2008 13:33:54 | 1,772 | 08/18/2008 14:05:29 | 11 | 5 | Taking the SCJD exam | I asked the [same question about SCJP][1]. What about the Sun Certified Java Developer exam (SCJD)? I haven't taken it, but am thinking about doing so. Is it worth the effort?
[1]: http://stackoverflow.com/questions/14810/taking-the-scjp-exam | java | null | null | null | null | null | open | Taking the SCJD exam
===
I asked the [same question about SCJP][1]. What about the Sun Certified Java Developer exam (SCJD)? I haven't taken it, but am thinking about doing so. Is it worth the effort?
[1]: http://stackoverflow.com/questions/14810/taking-the-scjp-exam | 0 |
16,161 | 08/19/2008 13:34:24 | 259 | 08/04/2008 08:10:58 | 221 | 19 | cvs checkin: Identifying the filename in cvsnt postcommand | The [cvsnt manual][1] provides a detailed list of parameters than can be passed to the postcommand module, but none of them specify the file name.
Is anybody aware of an option not listed here that would provide the name of the file being checked in?
[1]: http://www.cvsnt.org/manual/html/commit-files.html#syntax | cvs | cvsnt | null | null | null | null | open | cvs checkin: Identifying the filename in cvsnt postcommand
===
The [cvsnt manual][1] provides a detailed list of parameters than can be passed to the postcommand module, but none of them specify the file name.
Is anybody aware of an option not listed here that would provide the name of the file being checked in?
[1]: http://www.cvsnt.org/manual/html/commit-files.html#syntax | 0 |
16,164 | 08/19/2008 13:36:19 | 834 | 08/09/2008 07:29:24 | 85 | 10 | RSS/Atom for professional use | I wondered if anyone can give an example of a professional use of RSS/Atom feeds in a company product. Does anyone use feeds for other things than updating news?
For example, did you create a product that gives results as RSS/Atom feeds? Like price listings or current inventory, or maybe dates of training lessons?
Or am I thinking in a wrong way of use cases for RSS/Atom feeds anyway? | rss | atom | feeds | use-case | null | null | open | RSS/Atom for professional use
===
I wondered if anyone can give an example of a professional use of RSS/Atom feeds in a company product. Does anyone use feeds for other things than updating news?
For example, did you create a product that gives results as RSS/Atom feeds? Like price listings or current inventory, or maybe dates of training lessons?
Or am I thinking in a wrong way of use cases for RSS/Atom feeds anyway? | 0 |
16,167 | 08/19/2008 13:39:29 | 1,830 | 08/18/2008 18:49:16 | 51 | 7 | Good refactoring support for C++ | The Visual Studio refactoring support for C# is quite good nowadays (though not half as good as some Java IDE's I've seen already) but I'm really missing C++ support.
I have seen [Refactor!][1] and am currently trying it out, but maybe one of you guys know a better tool or plugin?
[1]:http://www.devexpress.com/Products/Visual_Studio_Add-in/RefactorCPP/index.xml | c++ | visual-studio | refactoring | null | null | null | open | Good refactoring support for C++
===
The Visual Studio refactoring support for C# is quite good nowadays (though not half as good as some Java IDE's I've seen already) but I'm really missing C++ support.
I have seen [Refactor!][1] and am currently trying it out, but maybe one of you guys know a better tool or plugin?
[1]:http://www.devexpress.com/Products/Visual_Studio_Add-in/RefactorCPP/index.xml | 0 |
16,178 | 08/19/2008 13:45:03 | 285 | 08/04/2008 12:34:49 | 160 | 17 | Best Way To Determine If .NET 3.5 Is Installed | I need to programatically determine whether .NET 3.5 is installed. I thought it would be easy:
<% Response.Write(Environment.Version.ToString()); %>
Which returns "2.0.50727.1434" so no such luck...
In my research I have that there are some rather obscure registry keys I can look at but I'm not sure if that is the route to go. Does anyone have any suggestions? | .net-3.5 | installer | registry | .net-framework | null | null | open | Best Way To Determine If .NET 3.5 Is Installed
===
I need to programatically determine whether .NET 3.5 is installed. I thought it would be easy:
<% Response.Write(Environment.Version.ToString()); %>
Which returns "2.0.50727.1434" so no such luck...
In my research I have that there are some rather obscure registry keys I can look at but I'm not sure if that is the route to go. Does anyone have any suggestions? | 0 |
16,192 | 08/19/2008 13:52:46 | 1,075 | 08/12/2008 10:13:30 | 385 | 33 | Interesting coding exercises for noobs | I am running a series of workshops for colleagues cross training to C#. The theory content is fine, but I am finding it hard to come up with interesting exercises for them to do.
Anyone have an ideas or links to exercies that are simple enough for noobs, but interesting enough to keep their interest?
| homework | null | null | null | null | 12/10/2011 05:59:34 | not constructive | Interesting coding exercises for noobs
===
I am running a series of workshops for colleagues cross training to C#. The theory content is fine, but I am finding it hard to come up with interesting exercises for them to do.
Anyone have an ideas or links to exercies that are simple enough for noobs, but interesting enough to keep their interest?
| 4 |
16,199 | 08/19/2008 13:57:33 | 1,491,425 | 08/13/2008 13:49:51 | 1 | 0 | Web App - Dashboard Type GUI - Interface | I'm looking to create a dashboard type gui for a web application. I'm looking for the user to be able to drag and drop different elements (probably either image buttons, anchor tags, or maybe just divs) to different (defined) places and be able to save their setup (in a cookie or on the server). I'm working with c# in the .Net 2.0 framework. I've tried using mootools but their recent update has left their drag/drop capabilities un-useful for me. I'm looking for a bit of direction because I know there is something out there that is just what I'm looking for so I wont have to build from scratch.
Thanks. | c# | asp.net | javascript | gui | null | 02/04/2012 14:53:57 | not constructive | Web App - Dashboard Type GUI - Interface
===
I'm looking to create a dashboard type gui for a web application. I'm looking for the user to be able to drag and drop different elements (probably either image buttons, anchor tags, or maybe just divs) to different (defined) places and be able to save their setup (in a cookie or on the server). I'm working with c# in the .Net 2.0 framework. I've tried using mootools but their recent update has left their drag/drop capabilities un-useful for me. I'm looking for a bit of direction because I know there is something out there that is just what I'm looking for so I wont have to build from scratch.
Thanks. | 4 |
16,209 | 08/19/2008 14:02:01 | 982 | 08/11/2008 12:08:33 | 59 | 10 | Displaying Version Information in a Web Service | Can anyone suggest a way of getting version information into a Web Service. (VB.NET)
I would like to dynamically use the assembly version in the title or description, but the attributes require constants.
Is manually writing the version info as a string the only way of displaying the information on the .asmx page?
Thanks | vb.net | webservices | version | null | null | null | open | Displaying Version Information in a Web Service
===
Can anyone suggest a way of getting version information into a Web Service. (VB.NET)
I would like to dynamically use the assembly version in the title or description, but the attributes require constants.
Is manually writing the version info as a string the only way of displaying the information on the .asmx page?
Thanks | 0 |
16,233 | 08/19/2008 14:13:18 | 1,000 | 08/11/2008 12:41:19 | 206 | 8 | Fonts on the Web | The collection of fonts available to a web developer is depressingly limited. I remember reading long ago about TrueDoc, as a way of shipping fonts alongside a website - but it seems to have languished. Has anybody used this, or something similar? Is it supported by enough browsers? Am I missing a good solution?
Note that a responsible web developer does not use fonts that are only available on Windows (and *especially* ones that are only available on Vista), nor do they use a technology that isn't supported by at least the majority of browsers. | fonts | html | null | null | null | null | open | Fonts on the Web
===
The collection of fonts available to a web developer is depressingly limited. I remember reading long ago about TrueDoc, as a way of shipping fonts alongside a website - but it seems to have languished. Has anybody used this, or something similar? Is it supported by enough browsers? Am I missing a good solution?
Note that a responsible web developer does not use fonts that are only available on Windows (and *especially* ones that are only available on Vista), nor do they use a technology that isn't supported by at least the majority of browsers. | 0 |
16,248 | 08/19/2008 14:19:06 | 1,169 | 08/13/2008 09:39:24 | 105 | 10 | Getting the subversion repository number into code... | I'd like to implement a way of recording the version of a project within code, so that it can be used when testing and to help track bugs.
It seems the best version number to use would just be the current revision number from Subversion. Is there an easy way to hook this number into a (C++ in my case) header file or something, which I can then get at in code? I guess this is a post commit hook or something?
Does anyone have any experience of implementing this (with code to share, please?), or can suggest a better alternative?
Thanks. | testing | subversion | debugging | version | revision | null | open | Getting the subversion repository number into code...
===
I'd like to implement a way of recording the version of a project within code, so that it can be used when testing and to help track bugs.
It seems the best version number to use would just be the current revision number from Subversion. Is there an easy way to hook this number into a (C++ in my case) header file or something, which I can then get at in code? I guess this is a post commit hook or something?
Does anyone have any experience of implementing this (with code to share, please?), or can suggest a better alternative?
Thanks. | 0 |
16,298 | 08/19/2008 14:42:29 | 117 | 08/02/2008 05:54:20 | 546 | 25 | How to redirect siteA to siteB with A or CNAME records | I have 2 hosts and I would like to point a subdomain on host one to a subdomain on host two:
subdomain.hostone.com --> subdomain.hosttwo.com
I added a CNAME record to host one that points to subdomain.hosttwo.com but all I get is a '**400 Bad Request**' Error.
Can anyone see what I'm doing wrong? | dns | cname | webhosting | null | null | 06/20/2012 14:43:22 | off topic | How to redirect siteA to siteB with A or CNAME records
===
I have 2 hosts and I would like to point a subdomain on host one to a subdomain on host two:
subdomain.hostone.com --> subdomain.hosttwo.com
I added a CNAME record to host one that points to subdomain.hosttwo.com but all I get is a '**400 Bad Request**' Error.
Can anyone see what I'm doing wrong? | 2 |
16,306 | 08/19/2008 14:44:59 | 41 | 08/01/2008 12:56:51 | 53 | 4 | C# Save Dialogs | What would be the easiest way to separate the directory name from the file name when dealing with SaveFileDialog.FileName in C#?
| c# | stringparsing | null | null | null | null | open | C# Save Dialogs
===
What would be the easiest way to separate the directory name from the file name when dealing with SaveFileDialog.FileName in C#?
| 0 |
16,326 | 08/19/2008 14:51:53 | 1,414 | 08/15/2008 15:07:31 | 89 | 14 | How can in install VS 2008 without using ~6.5GB of space on my C drive? | When I launch the [VS 2008 SP1 installer][1] it says that it needs 6,366MB, and my C drive only has 2,452MB free space. Is there a way to install it that doesn't require so much free space? I've tried [downloading the ISO image][2] and mounting that, but it still requires 5,864MB free. Am I missing any obvious command line switches?
[1]: http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en
[2]: http://www.microsoft.com/downloads/details.aspx?FamilyID=27673c47-b3b5-4c67-bd99-84e525b5ce61&displaylang=en | vs2008 | installer | sp1 | null | null | null | open | How can in install VS 2008 without using ~6.5GB of space on my C drive?
===
When I launch the [VS 2008 SP1 installer][1] it says that it needs 6,366MB, and my C drive only has 2,452MB free space. Is there a way to install it that doesn't require so much free space? I've tried [downloading the ISO image][2] and mounting that, but it still requires 5,864MB free. Am I missing any obvious command line switches?
[1]: http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en
[2]: http://www.microsoft.com/downloads/details.aspx?FamilyID=27673c47-b3b5-4c67-bd99-84e525b5ce61&displaylang=en | 0 |
16,330 | 08/19/2008 14:53:06 | 1,946 | 08/19/2008 14:53:06 | 1 | 0 | How do I handle page flow in MVC (particularly asp.net) | If you had to provide a wizard like form entry experience in mvc how would you abstract the page flow?
Thanks | mvc | asp.net-mvc | null | null | null | null | open | How do I handle page flow in MVC (particularly asp.net)
===
If you had to provide a wizard like form entry experience in mvc how would you abstract the page flow?
Thanks | 0 |
16,340 | 08/19/2008 14:55:33 | 1,948 | 08/19/2008 14:55:33 | 1 | 0 | How do I generate a hashcode from a byte array in c# | Say I have an object that stores a byte array and I want to be able to efficiently generate a hashcode for it. I've used the cryptographic hash functions for this in the past because they are easy to implement, but they are doing a lot more work than they should to be cryptographically oneway and I don't care about that (I'm just using the hashcode as a key into a hashtable).
Here's what I have today:
struct SomeData : IEquatable<SomeData>
{
private readonly byte[] _Data;
public SomeData(byte[] data)
{
if (null == data || data.Length <= 0)
{ throw new ArgumentException("data"); }
_Data = new byte[data.Length];
Array.Copy(data, _Data, data.Length);
}
public override bool Equals(object obj)
{ return obj is SomeData && Equals((SomeData)obj); }
public bool Equals(SomeData other)
{
for (int i = 0; i < _Data.Length; ++i)
{
if (_Data[i] != other._Data[i])
{ return false; }
}
return true;
}
public override int GetHashCode()
{ return BitConverter.ToInt32(new MD5CryptoServiceProvider().ComputeHash(_Data), 0); }
}
Any thoughts? | c# | hash | null | null | null | null | open | How do I generate a hashcode from a byte array in c#
===
Say I have an object that stores a byte array and I want to be able to efficiently generate a hashcode for it. I've used the cryptographic hash functions for this in the past because they are easy to implement, but they are doing a lot more work than they should to be cryptographically oneway and I don't care about that (I'm just using the hashcode as a key into a hashtable).
Here's what I have today:
struct SomeData : IEquatable<SomeData>
{
private readonly byte[] _Data;
public SomeData(byte[] data)
{
if (null == data || data.Length <= 0)
{ throw new ArgumentException("data"); }
_Data = new byte[data.Length];
Array.Copy(data, _Data, data.Length);
}
public override bool Equals(object obj)
{ return obj is SomeData && Equals((SomeData)obj); }
public bool Equals(SomeData other)
{
for (int i = 0; i < _Data.Length; ++i)
{
if (_Data[i] != other._Data[i])
{ return false; }
}
return true;
}
public override int GetHashCode()
{ return BitConverter.ToInt32(new MD5CryptoServiceProvider().ComputeHash(_Data), 0); }
}
Any thoughts? | 0 |
16,363 | 08/19/2008 15:09:30 | 1,940 | 08/19/2008 14:38:08 | 1 | 0 | How do you configure VS2008 to only open one webserver in a solution with multiple projects? | Starting with 2005, VS started this behavior of when starting debugging session it spawns up a webserver for every project in a solution. I have a solution with 15 projects so it takes a while and is a waste of resources. Is there a way to configure it differently besides just using IIS? | visual-studio | debugging | null | null | null | null | open | How do you configure VS2008 to only open one webserver in a solution with multiple projects?
===
Starting with 2005, VS started this behavior of when starting debugging session it spawns up a webserver for every project in a solution. I have a solution with 15 projects so it takes a while and is a waste of resources. Is there a way to configure it differently besides just using IIS? | 0 |
16,396 | 08/19/2008 15:23:17 | 1,165,587 | 08/19/2008 14:42:46 | 1 | 0 | Easy way for Crystal Reports to MS Reporting Services conversion | Is there a way to easily convert Crystal Reports reports to Reporting Services RDL format?
We have quite a few reports that will be needing conversion soon.
I know about the manual process (which is basically rebuilding all your reports from scratch in RS), but my searches pointed to a few possibilities with automatic conversion "acceleration" with several consulting firms. (As described on <http://www.microsoft.com/sql/technologies/reporting/partners/crystal-migration.mspx>).
Do any of you have any valid experiences or recomendations regarding this particular issue?
Are there any tools around that I do not know about? | crystal-reports | reporting-services | sqlreportingservices | migration | null | null | open | Easy way for Crystal Reports to MS Reporting Services conversion
===
Is there a way to easily convert Crystal Reports reports to Reporting Services RDL format?
We have quite a few reports that will be needing conversion soon.
I know about the manual process (which is basically rebuilding all your reports from scratch in RS), but my searches pointed to a few possibilities with automatic conversion "acceleration" with several consulting firms. (As described on <http://www.microsoft.com/sql/technologies/reporting/partners/crystal-migration.mspx>).
Do any of you have any valid experiences or recomendations regarding this particular issue?
Are there any tools around that I do not know about? | 0 |
16,402 | 08/19/2008 15:26:40 | 652 | 08/07/2008 14:14:43 | 21 | 1 | Easy installation method for windows/ Batch Reference needed? | I have a bunch of files that I need to be able to transport and install quickly. My current method for doing so is moving a flash drive with a readme file of where stuff goes whenever I need to move stuff, which is rather inelegant and cumbersome.
My idea for a solution would be to write up a quick script to move files around that I could just click on. I've done some bash before but batch scripting is a little odd to me. Does anyone have a good online reference guide I could use?
An alternative soulution I could accept would be a program that makes an installer for you, though I'm a bit against that as I would lose a lot of control. However, I'd be alright with it if it was extremely simple, | windows | installation | batch | ms-dos | batch-file | null | open | Easy installation method for windows/ Batch Reference needed?
===
I have a bunch of files that I need to be able to transport and install quickly. My current method for doing so is moving a flash drive with a readme file of where stuff goes whenever I need to move stuff, which is rather inelegant and cumbersome.
My idea for a solution would be to write up a quick script to move files around that I could just click on. I've done some bash before but batch scripting is a little odd to me. Does anyone have a good online reference guide I could use?
An alternative soulution I could accept would be a program that makes an installer for you, though I'm a bit against that as I would lose a lot of control. However, I'd be alright with it if it was extremely simple, | 0 |
16,403 | 08/19/2008 15:27:31 | 1,948 | 08/19/2008 14:55:33 | 1 | 0 | How do you handle white space in your HTML | One of my biggest typographical frustrations about HTML is the way that it mangles conjoined whitespace. For example if I have:
<span>Following punctuation rules. With two spaces after the period. </span>
One of the two spaces following the period will be considered to be insignificant whitespace and be removed. I can of course, force the whitespace to be significant with:
<span>Following punctuation rules. With two spaces after the period. </span>
but it just irks me to have to do that and I usually don't bother. Does anyone out there automatically insert significant whitespace into external content submissions that are intended for a web page? | html | null | null | null | null | 08/01/2012 16:20:19 | not constructive | How do you handle white space in your HTML
===
One of my biggest typographical frustrations about HTML is the way that it mangles conjoined whitespace. For example if I have:
<span>Following punctuation rules. With two spaces after the period. </span>
One of the two spaces following the period will be considered to be insignificant whitespace and be removed. I can of course, force the whitespace to be significant with:
<span>Following punctuation rules. With two spaces after the period. </span>
but it just irks me to have to do that and I usually don't bother. Does anyone out there automatically insert significant whitespace into external content submissions that are intended for a web page? | 4 |
16,406 | 08/19/2008 15:30:48 | 1,956 | 08/19/2008 15:27:25 | 1 | 0 | Best way to implement a dirty flag in EF | You can easily use the PropertyChanges events to set the flag but how do you easily reset it after a save to the ObjectContext? | framework | entity | null | null | null | null | open | Best way to implement a dirty flag in EF
===
You can easily use the PropertyChanges events to set the flag but how do you easily reset it after a save to the ObjectContext? | 0 |
16,413 | 08/19/2008 15:34:41 | 149 | 08/02/2008 15:03:56 | 343 | 20 | Parse usable Street Address, City, State, Zip from a string | Problem: I have an address field from an Access database which has been converted to Sql Server 2005. This field has everything all in one field. I need to parse out the individual sections of the address into their appropriate fields in a normalized table. I need to do this for approximately 4,000 records and it needs to be repeatable.
Here are the rules for this exercise:
1 - no whining about how this should have been separate fields in the first place, we are often confronted with less than ideal situations and have to make the best of them
2- for this post, use any language you want
3- feel free to play code golf
4 - Assume an address in the US (for now)
5 - assume that the input string will sometimes contain an addressee (the person being addressed) and/or a second street address (i.e. Suite B)
6 - states may be abbreviated
7 - zip code could be standard 5 digit or zip+4
8 - there are errors in some instances | parse | string | address | null | null | null | open | Parse usable Street Address, City, State, Zip from a string
===
Problem: I have an address field from an Access database which has been converted to Sql Server 2005. This field has everything all in one field. I need to parse out the individual sections of the address into their appropriate fields in a normalized table. I need to do this for approximately 4,000 records and it needs to be repeatable.
Here are the rules for this exercise:
1 - no whining about how this should have been separate fields in the first place, we are often confronted with less than ideal situations and have to make the best of them
2- for this post, use any language you want
3- feel free to play code golf
4 - Assume an address in the US (for now)
5 - assume that the input string will sometimes contain an addressee (the person being addressed) and/or a second street address (i.e. Suite B)
6 - states may be abbreviated
7 - zip code could be standard 5 digit or zip+4
8 - there are errors in some instances | 0 |
16,432 | 08/19/2008 15:46:53 | 920 | 08/10/2008 12:52:43 | 1 | 1 | C# String output: format or concat? | Let's say that you want to output or concat strings, what style do you prefer:
var p = new { FirstName = "Bill", LastName = "Gates" };
Console.WriteLine("{0} {1}", p.FirstName, p.LastName);
Console.WriteLine(p.FirstName + " " + p.LastName);
Do you rather use format or do you simply concat strings? What is your favorite? Is one of these hurting your eyes?
Do you have any rational arguments to use one and not the other?
I'd go for the second one. | string | c# | codingstyle | religion | null | null | open | C# String output: format or concat?
===
Let's say that you want to output or concat strings, what style do you prefer:
var p = new { FirstName = "Bill", LastName = "Gates" };
Console.WriteLine("{0} {1}", p.FirstName, p.LastName);
Console.WriteLine(p.FirstName + " " + p.LastName);
Do you rather use format or do you simply concat strings? What is your favorite? Is one of these hurting your eyes?
Do you have any rational arguments to use one and not the other?
I'd go for the second one. | 0 |
16,434 | 08/19/2008 15:48:07 | 277 | 08/04/2008 10:55:22 | 145 | 6 | How to Test Numerical Analysis Routines? | Are there any good online resources for how to create, maintain and think about writing test routines for numerical analysis code?
One of the limitations I can see for something like testing matrix multiplication is that the obvious tests (like having one matrix being the identity) may not fully test the functionality of the code.
Also, there is the fact that you are usually dealing with large data structures as well. Does anyone have some good ideas about ways to approach this, or have pointers to good places to look? | testing | numerical | null | null | null | null | open | How to Test Numerical Analysis Routines?
===
Are there any good online resources for how to create, maintain and think about writing test routines for numerical analysis code?
One of the limitations I can see for something like testing matrix multiplication is that the obvious tests (like having one matrix being the identity) may not fully test the functionality of the code.
Also, there is the fact that you are usually dealing with large data structures as well. Does anyone have some good ideas about ways to approach this, or have pointers to good places to look? | 0 |
16,443 | 08/19/2008 15:51:34 | 1,936 | 08/19/2008 14:32:48 | 1 | 1 | Create DB table from dataset table | Is it possible (in Vb.Net 2005), without manually parsing the dataset table properties, to create the table and add it to the database?
We have old versions of our program on some machines, which obviously has our old database, and we are looking for a way to detect if there is a missing table and then generate the table based on the current status of the table in the dataset. We were re-scripting the table every time we released a new version (if new columns were added) but we would like to avoid this step if possible. | vb.net | vs2005 | null | null | null | null | open | Create DB table from dataset table
===
Is it possible (in Vb.Net 2005), without manually parsing the dataset table properties, to create the table and add it to the database?
We have old versions of our program on some machines, which obviously has our old database, and we are looking for a way to detect if there is a missing table and then generate the table based on the current status of the table in the dataset. We were re-scripting the table every time we released a new version (if new columns were added) but we would like to avoid this step if possible. | 0 |
16,447 | 08/19/2008 15:53:19 | 1,311 | 08/14/2008 13:43:09 | 151 | 19 | Select Query on 2 tables, on different database servers | I am trying to generate a report by querying 2 databases (Sybase) in classic ASP.
I have created 2 connection strings:<br>
> connA for databaseA<br>
connB for databaseB
Both databases are present on the same server (don't know if this matters)<br>
Queries:
> q1 = SELECT column1 INTO #temp FROM databaseA..table1 WHERE xyz="A"<br>
q2 = SELECT columnA,columnB,...,columnZ FROM table2 a #temp b WHERE b.column1=a.columnB
followed by:
> response.Write(rstsql) <br>
set rstSQL = CreateObject("ADODB.Recordset")<br>
rstSQL.Open q1, connA<br>
rstSQL.Open q2, connB
When I try to open up this page in a browser, I get error message:
>Microsoft OLE DB Provider for ODBC Drivers error '80040e37'
>[DataDirect][ODBC Sybase Wire Protocol driver][SQL Server]#temp not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output).
Could anyone please help me understand what the problem is and help me fix it?
Thanks. | sql | asp | vbscript | sybase | null | null | open | Select Query on 2 tables, on different database servers
===
I am trying to generate a report by querying 2 databases (Sybase) in classic ASP.
I have created 2 connection strings:<br>
> connA for databaseA<br>
connB for databaseB
Both databases are present on the same server (don't know if this matters)<br>
Queries:
> q1 = SELECT column1 INTO #temp FROM databaseA..table1 WHERE xyz="A"<br>
q2 = SELECT columnA,columnB,...,columnZ FROM table2 a #temp b WHERE b.column1=a.columnB
followed by:
> response.Write(rstsql) <br>
set rstSQL = CreateObject("ADODB.Recordset")<br>
rstSQL.Open q1, connA<br>
rstSQL.Open q2, connB
When I try to open up this page in a browser, I get error message:
>Microsoft OLE DB Provider for ODBC Drivers error '80040e37'
>[DataDirect][ODBC Sybase Wire Protocol driver][SQL Server]#temp not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output).
Could anyone please help me understand what the problem is and help me fix it?
Thanks. | 0 |
16,451 | 08/19/2008 15:54:59 | 1,958 | 08/19/2008 15:28:47 | 1 | 0 | Calling .NET Web Service (WSE 2/3, WS-Security) from Java | I need to call a web service written in .NET from Java. The web service implements the WS-Security stack (either WSE 2 or WSE 3, it's not clear from the information I have).
The information that I received from the service provider included WSDL, a policyCache.config file, some sample C# code, and a sample application that can successfully call the service.
This isn't as useful as it sounds because it's not clear how I'm supposed to use this information to write a Java client. If the web service request isn't signed according to the policy then it is rejected by the service. I'm trying to use Apache Axis2 and I can't find any instructions on how I'm supposed to use the policyCahce.config file and the WSDL to generate a client.
There are several examples that I have found on the Web but in all cases the authors of the examples had control of both the service and the client and so were able to make tweaks on both sides in order to get it to work. I'm not in that position.
Has anyone done this successfully? | .net | java | ws-security | wse | axis2 | null | open | Calling .NET Web Service (WSE 2/3, WS-Security) from Java
===
I need to call a web service written in .NET from Java. The web service implements the WS-Security stack (either WSE 2 or WSE 3, it's not clear from the information I have).
The information that I received from the service provider included WSDL, a policyCache.config file, some sample C# code, and a sample application that can successfully call the service.
This isn't as useful as it sounds because it's not clear how I'm supposed to use this information to write a Java client. If the web service request isn't signed according to the policy then it is rejected by the service. I'm trying to use Apache Axis2 and I can't find any instructions on how I'm supposed to use the policyCahce.config file and the WSDL to generate a client.
There are several examples that I have found on the Web but in all cases the authors of the examples had control of both the service and the client and so were able to make tweaks on both sides in order to get it to work. I'm not in that position.
Has anyone done this successfully? | 0 |
16,458 | 08/19/2008 15:57:33 | 666 | 08/07/2008 15:47:58 | 91 | 8 | Dynamic Alphabetical Navigation | I'm using ColdFusion to return a result set from a SQL database and turn it into a list. I need some way to generate an Alphabetical Navigation bar for that list. I have ColdFusion and the jQuery library available. I'm looking to generate something like this:
A | B | C | ...
- A
- A
- B
- B
- B
- C
- D
Where clicking on one of the letters drops you down the page to the first item for that letter. Not all 26 letters of the alphabet are necessarily in use.
| javascript | sql | html | jquery | coldfusion | null | open | Dynamic Alphabetical Navigation
===
I'm using ColdFusion to return a result set from a SQL database and turn it into a list. I need some way to generate an Alphabetical Navigation bar for that list. I have ColdFusion and the jQuery library available. I'm looking to generate something like this:
A | B | C | ...
- A
- A
- B
- B
- B
- C
- D
Where clicking on one of the letters drops you down the page to the first item for that letter. Not all 26 letters of the alphabet are necessarily in use.
| 0 |
16,460 | 08/19/2008 15:57:51 | 1,801 | 08/18/2008 16:01:48 | 1 | 1 | Removing N items from a list conditionally | I was writing some ASP.NET control when I came to the scenario where I needed to remove items from a list, only when they matched a certain condition.
The RemoveAll method of the generic List class does a good job, but removes _all_ items that match the condition, specified by the predicate. What if I want to only remove a certain number of items specifying the condition? What do you think is the best way to do this? | .net | bestpractices | null | null | null | null | open | Removing N items from a list conditionally
===
I was writing some ASP.NET control when I came to the scenario where I needed to remove items from a list, only when they matched a certain condition.
The RemoveAll method of the generic List class does a good job, but removes _all_ items that match the condition, specified by the predicate. What if I want to only remove a certain number of items specifying the condition? What do you think is the best way to do this? | 0 |
16,473 | 08/19/2008 16:03:46 | 1,228 | 08/13/2008 13:58:55 | 380 | 31 | Can using lambdas as event handlers cause a memory leak? | Say we have the following method:
private MyObject foo = new MyObject();
// and later in the class
public void PotentialMemoryLeaker(){
int firedCount = 0;
foo.AnEvent += (o,e) => { firedCount++;Console.Write(firedCount);};
foo.MethodThatFiresAnEvent();
}
If the class with this method is instantiated and the PotentialMemoryLeaker is called multiple times, do we leak memory? Is there any way to unhook that lambda event handler after we're done calling MethodThatFiresAnEvent?
| memory | leak | lambda | event | handler | null | open | Can using lambdas as event handlers cause a memory leak?
===
Say we have the following method:
private MyObject foo = new MyObject();
// and later in the class
public void PotentialMemoryLeaker(){
int firedCount = 0;
foo.AnEvent += (o,e) => { firedCount++;Console.Write(firedCount);};
foo.MethodThatFiresAnEvent();
}
If the class with this method is instantiated and the PotentialMemoryLeaker is called multiple times, do we leak memory? Is there any way to unhook that lambda event handler after we're done calling MethodThatFiresAnEvent?
| 0 |
16,483 | 08/19/2008 16:07:50 | 164 | 08/02/2008 20:59:47 | 253 | 9 | Convince Firefox to send an If-Modified-Since header over HTTPS | How can I convince Firefox (3.0.1, if it matters) to send an If-Modified-Since header in an HTTPS request? It sends the header if the request uses plain HTTP and my server dutifully honors it. But when I request the same resource from the same server using HTTPS instead (i.e., simply changing the http:// in the URL to https://) then Firefox does not send an If-Modified-Since header at all. Is this behavior mandated by the SSL spec or something?
Here are some example HTTP and HTTPS request/response pairs, pulled using the Live HTTP Headers Firefox extension, with some differences in bold:
HTTP request/response:
<pre>http://myserver.com:30000/scripts/site.js
GET /scripts/site.js HTTP/1.1
Host: myserver.com:30000
User-Agent: Mozilla/5.0 (...) Gecko/2008070206 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
<b>If-Modified-Since: Tue, 19 Aug 2008 15:57:30 GMT
If-None-Match: "a0501d1-300a-454d22526ae80"-gzip
Cache-Control: max-age=0</b>
HTTP/1.x 304 Not Modified
Date: Tue, 19 Aug 2008 15:59:23 GMT
Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8
Connection: Keep-Alive
Keep-Alive: timeout=5, max=99
Etag: "a0501d1-300a-454d22526ae80"-gzip
</pre>
HTTPS request/response:
<pre>https://myserver.com:30001/scripts/site.js
GET /scripts/site.js HTTP/1.1
Host: myserver.com:30001
User-Agent: Mozilla/5.0 (...) Gecko/2008070206 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
HTTP/1.x 200 OK
Date: Tue, 19 Aug 2008 16:00:14 GMT
Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8
Last-Modified: Tue, 19 Aug 2008 15:57:30 GMT
Etag: "a0501d1-300a-454d22526ae80"-gzip
Accept-Ranges: bytes
Content-Encoding: gzip
Content-Length: 3766
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/javascript</pre> | http | firefox | webdevelopment | null | null | null | open | Convince Firefox to send an If-Modified-Since header over HTTPS
===
How can I convince Firefox (3.0.1, if it matters) to send an If-Modified-Since header in an HTTPS request? It sends the header if the request uses plain HTTP and my server dutifully honors it. But when I request the same resource from the same server using HTTPS instead (i.e., simply changing the http:// in the URL to https://) then Firefox does not send an If-Modified-Since header at all. Is this behavior mandated by the SSL spec or something?
Here are some example HTTP and HTTPS request/response pairs, pulled using the Live HTTP Headers Firefox extension, with some differences in bold:
HTTP request/response:
<pre>http://myserver.com:30000/scripts/site.js
GET /scripts/site.js HTTP/1.1
Host: myserver.com:30000
User-Agent: Mozilla/5.0 (...) Gecko/2008070206 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
<b>If-Modified-Since: Tue, 19 Aug 2008 15:57:30 GMT
If-None-Match: "a0501d1-300a-454d22526ae80"-gzip
Cache-Control: max-age=0</b>
HTTP/1.x 304 Not Modified
Date: Tue, 19 Aug 2008 15:59:23 GMT
Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8
Connection: Keep-Alive
Keep-Alive: timeout=5, max=99
Etag: "a0501d1-300a-454d22526ae80"-gzip
</pre>
HTTPS request/response:
<pre>https://myserver.com:30001/scripts/site.js
GET /scripts/site.js HTTP/1.1
Host: myserver.com:30001
User-Agent: Mozilla/5.0 (...) Gecko/2008070206 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
HTTP/1.x 200 OK
Date: Tue, 19 Aug 2008 16:00:14 GMT
Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8
Last-Modified: Tue, 19 Aug 2008 15:57:30 GMT
Etag: "a0501d1-300a-454d22526ae80"-gzip
Accept-Ranges: bytes
Content-Encoding: gzip
Content-Length: 3766
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/javascript</pre> | 0 |
16,487 | 08/19/2008 16:11:16 | 1,969 | 08/19/2008 16:03:19 | 1 | 0 | How can I deploy artifacts from a Maven build to the SourceForge File Release System? | I am using SourceForge for some Open Source projects and I want to automate the deployment of releases to the SourceForge File Release System. I use Maven for my builds and the standard SFTP deployment mechanism doesn't seem to work unless you do some manual preparation work. I have come across some old postings on other forums suggesting that the only approach is to write a Wagon specifically for SourceForge.
Has anybody had any recent experience with this? | java | maven-2 | sourceforge | null | null | null | open | How can I deploy artifacts from a Maven build to the SourceForge File Release System?
===
I am using SourceForge for some Open Source projects and I want to automate the deployment of releases to the SourceForge File Release System. I use Maven for my builds and the standard SFTP deployment mechanism doesn't seem to work unless you do some manual preparation work. I have come across some old postings on other forums suggesting that the only approach is to write a Wagon specifically for SourceForge.
Has anybody had any recent experience with this? | 0 |
16,491 | 08/19/2008 16:13:31 | 1,545 | 08/16/2008 14:28:42 | 83 | 15 | Restore database backup over the network. | How do you restore a database backup using SQL Server 2005 over the network? I recall doing this before but there was something odd about the way you had to do it. | database | mssql | null | null | null | null | open | Restore database backup over the network.
===
How do you restore a database backup using SQL Server 2005 over the network? I recall doing this before but there was something odd about the way you had to do it. | 0 |
16,501 | 08/19/2008 16:20:37 | 1,344 | 08/14/2008 16:03:00 | 480 | 41 | What is a lambda (function)? | Hey guys, I see this term being used a bit, and a Google search didn't quite yield the most clarity, so help me out: for a person without a comp-sci background, what is a lambda in the world of Computer Science? | lambda | computerscience | theory | null | null | null | open | What is a lambda (function)?
===
Hey guys, I see this term being used a bit, and a Google search didn't quite yield the most clarity, so help me out: for a person without a comp-sci background, what is a lambda in the world of Computer Science? | 0 |
16,517 | 08/19/2008 16:32:01 | 1,683 | 08/18/2008 00:30:32 | 28 | 0 | Image size for BannerBitmap property in Windows Installer | I'm working on a quick setup program in VS2005 and wanted to change the banner bitmap. Anyone know off-hand what the ideal (or req'ed) dimensions are for the new banner image? Thanks. | windows-installer | null | null | null | null | null | open | Image size for BannerBitmap property in Windows Installer
===
I'm working on a quick setup program in VS2005 and wanted to change the banner bitmap. Anyone know off-hand what the ideal (or req'ed) dimensions are for the new banner image? Thanks. | 0 |
16,529 | 08/19/2008 16:49:30 | 1,951 | 08/19/2008 15:06:09 | 61 | 4 | Communication between Javascript and the server | I've been developing a "Form Builder" in Javascript, and coming up to the part where I'll be sending the spec for the form back to the server to be stored. The builder maintains an internal data structure that represents the fields, label, options (for select/checkbox/radio), mandatory status, and the general sorting order of the fields.
When I want to send this structure back to the server, which format should I communicate it with?
Also, when restoring a server-saved form back into my Javascript builder, should I load in the data in the same format it sent it with, or should I rebuild the fields using the builder's createField() functions? | javascript | bestpractices | null | null | null | null | open | Communication between Javascript and the server
===
I've been developing a "Form Builder" in Javascript, and coming up to the part where I'll be sending the spec for the form back to the server to be stored. The builder maintains an internal data structure that represents the fields, label, options (for select/checkbox/radio), mandatory status, and the general sorting order of the fields.
When I want to send this structure back to the server, which format should I communicate it with?
Also, when restoring a server-saved form back into my Javascript builder, should I load in the data in the same format it sent it with, or should I rebuild the fields using the builder's createField() functions? | 0 |
16,556 | 08/19/2008 17:05:21 | 1,782 | 08/18/2008 14:30:58 | 1 | 3 | VS.NET Application Diagrams | Have you used VS.NET Architect Edition's Application and System diagrams to start designing a solution?
If so, did you find it useful?
Did the "automatic implementation" feature worked ok? | c# | visual-studio | .net | null | null | null | open | VS.NET Application Diagrams
===
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a solution?
If so, did you find it useful?
Did the "automatic implementation" feature worked ok? | 0 |
16,557 | 08/19/2008 17:05:26 | 1,104 | 08/12/2008 12:02:17 | 91 | 16 | Overiding the equals method vs creating a new method | I have always thought that the .equals() method in java should be overridden to be made specific to the class you have created. In other words to look for equivalence of two different instances rather than two references to the same instance. However I have encountered other programmers who seem to think that the default object behavior should be left alone and a new method created for testing equivalence of two objects of the same class.
What are the argument for and against overriding the equals method? | java | oodesign | null | null | null | null | open | Overiding the equals method vs creating a new method
===
I have always thought that the .equals() method in java should be overridden to be made specific to the class you have created. In other words to look for equivalence of two different instances rather than two references to the same instance. However I have encountered other programmers who seem to think that the default object behavior should be left alone and a new method created for testing equivalence of two objects of the same class.
What are the argument for and against overriding the equals method? | 0 |
16,563 | 08/19/2008 17:09:18 | 428,190 | 08/09/2008 23:23:13 | 94 | 26 | Need help writing a regex statement. [PHP] | So I'm working on a project that will allow users to enter poker hand histories from sites like PokerStars and then display the hand to them.
It seems that regex would be a great tool for this, however I rank my regex knowledge at "slim to none".
So I'm using PHP and looping through this block of text line by line and on lines like this:
Seat 1: fabulous29 (835 in chips)
Seat 2: Nioreh_21 (6465 in chips)
Seat 3: Big Loads (3465 in chips)
Seat 4: Sauchie (2060 in chips)
I want to extract seat number, name, & chip count so the format is
Seat [number]: [letters&numbers&characters] ([number] in chips)
I have NO IDEA where to start or what commands I should even be using to optimize this.
Any advice is greatly appreciated - even if it is just a link to a tutorial on PHP regex or the name of the command(s) I should be using.
Cheers! | php | regex | regularexpression | regular-expression | null | null | open | Need help writing a regex statement. [PHP]
===
So I'm working on a project that will allow users to enter poker hand histories from sites like PokerStars and then display the hand to them.
It seems that regex would be a great tool for this, however I rank my regex knowledge at "slim to none".
So I'm using PHP and looping through this block of text line by line and on lines like this:
Seat 1: fabulous29 (835 in chips)
Seat 2: Nioreh_21 (6465 in chips)
Seat 3: Big Loads (3465 in chips)
Seat 4: Sauchie (2060 in chips)
I want to extract seat number, name, & chip count so the format is
Seat [number]: [letters&numbers&characters] ([number] in chips)
I have NO IDEA where to start or what commands I should even be using to optimize this.
Any advice is greatly appreciated - even if it is just a link to a tutorial on PHP regex or the name of the command(s) I should be using.
Cheers! | 0 |
16,568 | 08/19/2008 17:13:11 | 1,944 | 08/19/2008 14:49:14 | 18 | 0 | How to select the nth row in a SQL database table? | I'm interested in learning some (ideally) database agnostic ways of selecting the *n*th row from a database table. It would also be interesting to see how this can be achieved using the native functionality of the following databases:
- SQL Server
- MySQL
- PostgreSQL
- SQLite
- Oracle
I am currently doing something like the following in SQL Server 2005, but I'd be interested in seeing other's more agnostic approaches:
<pre>WITH Ordered AS (
SELECT ROW_NUMBER() OVER (ORDER BY OrderID) AS RowNumber, OrderID, OrderDate
FROM Orders)
SELECT *
FROM Ordered
WHERE RowNumber = 1000000</pre>
Credit for the above SQL: [Firoz Ansari's Weblog][1]
[1]: http://weblogs.asp.net/Firoz/archive/2005/06/12/411949.aspx | sql | database | null | null | null | null | open | How to select the nth row in a SQL database table?
===
I'm interested in learning some (ideally) database agnostic ways of selecting the *n*th row from a database table. It would also be interesting to see how this can be achieved using the native functionality of the following databases:
- SQL Server
- MySQL
- PostgreSQL
- SQLite
- Oracle
I am currently doing something like the following in SQL Server 2005, but I'd be interested in seeing other's more agnostic approaches:
<pre>WITH Ordered AS (
SELECT ROW_NUMBER() OVER (ORDER BY OrderID) AS RowNumber, OrderID, OrderDate
FROM Orders)
SELECT *
FROM Ordered
WHERE RowNumber = 1000000</pre>
Credit for the above SQL: [Firoz Ansari's Weblog][1]
[1]: http://weblogs.asp.net/Firoz/archive/2005/06/12/411949.aspx | 0 |
16,610 | 08/19/2008 17:36:05 | 1,219 | 08/13/2008 13:44:47 | 598 | 42 | How do you deal with transport-level errors in SqlConnection? | Every now and then in a high volume .NET application, you might see this exception when you try to execute a query:
System.Data.SqlClient.SqlException:
A transport-level error has occurred when sending the request to the server.
According to my research, this is something that "just happens" and not much can be done to prevent it. It does not happen as a result of a bad query, and generally cannot be duplicated. It just crops up maybe once every few days in a busy OLTP system when the TCP connection to the database goes bad for some reason.
I am forced to detect this error by parsing the exception message, and then retrying the entire operation from scratch, to include using a new connection. None of that is pretty.
Anybody have any alternate solutions? | c# | .net | sql | database | mssql | null | open | How do you deal with transport-level errors in SqlConnection?
===
Every now and then in a high volume .NET application, you might see this exception when you try to execute a query:
System.Data.SqlClient.SqlException:
A transport-level error has occurred when sending the request to the server.
According to my research, this is something that "just happens" and not much can be done to prevent it. It does not happen as a result of a bad query, and generally cannot be duplicated. It just crops up maybe once every few days in a busy OLTP system when the TCP connection to the database goes bad for some reason.
I am forced to detect this error by parsing the exception message, and then retrying the entire operation from scratch, to include using a new connection. None of that is pretty.
Anybody have any alternate solutions? | 0 |
16,611 | 08/19/2008 17:38:56 | 1,894 | 08/19/2008 07:05:25 | 1 | 0 | Validation Patterns for Custom XML Documents | I have a web application that generates a medium sized XML dataset to be consumed by a third party. I thought it would be a good idea to provide some form of schema document for the XML that I generate so I pasted the XML into Visual Studio and got it to generate an XSD. The annoying thing is that my XML doesn't validate to the XSD that was generated!
Is it better to roll your own XSD? What about different schema docs like DTDs, Relax NG, or Schematron? The key is that I would like to be able to validate my document using C#. What are your xml validation strategies?
| c# | visual-studio | xml | schema | null | null | open | Validation Patterns for Custom XML Documents
===
I have a web application that generates a medium sized XML dataset to be consumed by a third party. I thought it would be a good idea to provide some form of schema document for the XML that I generate so I pasted the XML into Visual Studio and got it to generate an XSD. The annoying thing is that my XML doesn't validate to the XSD that was generated!
Is it better to roll your own XSD? What about different schema docs like DTDs, Relax NG, or Schematron? The key is that I would like to be able to validate my document using C#. What are your xml validation strategies?
| 0 |
16,615 | 08/19/2008 17:44:27 | 1,849 | 08/18/2008 21:46:57 | 6 | 3 | Is FindFirstChangeNotification the best API to use for file system change notification on windows? | I'm new to windows programming and I'm trying to get notified of all changes to the file system (similar to the information that FileMon from SysInternals displays, but via an API). Is a FindFirstChangeNotification for each (non-network, non-substed) drive my best bet or are there other more suitable C/C++ APIs? | windows | notifications | null | null | null | null | open | Is FindFirstChangeNotification the best API to use for file system change notification on windows?
===
I'm new to windows programming and I'm trying to get notified of all changes to the file system (similar to the information that FileMon from SysInternals displays, but via an API). Is a FindFirstChangeNotification for each (non-network, non-substed) drive my best bet or are there other more suitable C/C++ APIs? | 0 |
16,616 | 08/19/2008 17:47:23 | 1,989 | 08/19/2008 17:46:03 | 1 | 0 | ArgumentNullException for Integer | In .NET, is it more appropriate to throw an argument null exception for an Integer if the value is Integer.MinValue or Integer = 0 (assuming that 0 is not a valid value)? | .net | null | null | null | null | null | open | ArgumentNullException for Integer
===
In .NET, is it more appropriate to throw an argument null exception for an Integer if the value is Integer.MinValue or Integer = 0 (assuming that 0 is not a valid value)? | 0 |
16,634 | 08/19/2008 18:01:43 | 162 | 08/02/2008 20:09:15 | 114 | 7 | What is the best method for checking if a file exists from a SQL Server 2005 stored procedure? | We used the "undocumented" xp_fileexist stored procedure for years in SQL Server 2000 and had no trouble with it. In 2005, it seems that they modified the behavior slightly to always return a 0 if the executing user account is not a sysadmin. It also seems to return a zero if the SQL Server service is running under the LocalSystem account and you are trying to check a file on the network.
I'd like to get away from xp_fileexist. Does anyone have a better way to check for the existence of a file at a network location from inside of a stored procedure? | sql-server | null | null | null | null | null | open | What is the best method for checking if a file exists from a SQL Server 2005 stored procedure?
===
We used the "undocumented" xp_fileexist stored procedure for years in SQL Server 2000 and had no trouble with it. In 2005, it seems that they modified the behavior slightly to always return a 0 if the executing user account is not a sysadmin. It also seems to return a zero if the SQL Server service is running under the LocalSystem account and you are trying to check a file on the network.
I'd like to get away from xp_fileexist. Does anyone have a better way to check for the existence of a file at a network location from inside of a stored procedure? | 0 |
16,638 | 08/19/2008 18:04:16 | 1,992 | 08/19/2008 18:04:16 | 1 | 0 | Google Maps API - Problems with class GLatLngBounds | I am having some trouble with the [Google Maps API][1]. I have an array which holds a ojbect I created to store points.
My array and class:
var tPoints = [];
function tPoint(name) {
var id = name;
var points = [];
var pointsCount = 0;
...
this.getHeadPoint = function() { return points[pointsCount-1]; }
}
tPoint holds an array of [GLatLng][2] points. I want to write a function to return a [GLatLngBounds][3] object which is extended from the current map bounds to show all the HeadPoints.
Heres what I have so far..
function getBounds() {
var mBound = map.getBounds();
for (var i = 0; i < tPoints.lenght; i++) {
alert(mBound.getSouthWest().lat() + "," + mBound.getSouthWest().lng());
alert(mBound.getNorthEast().lat() + "," + mBound.getNorthEast().lng());
currPoint = trackMarkers[i].getHeadPoint();
if (!mBound.containsLatLng(currPoint)) {
mBound.extend(currPoint);
}
}
return mBound;
}
Which returns these values for the alert. (Generally over the US)<br />
"19.64258,NaN"<br />
"52.69636,NaN"<br />
"i=0"<br />
"19.64258,NaN"<br />
"52.69636,-117.20701"<br />
"i=1"<br />
I don't know why I am getting NaN back.
When I use the bounds to get a zoom level I think the NaN value is causing the map.getBoundsZoomLevel(bounds) to return 0 which is incorrect. Am I using [GLatLngBounds][3] incorrectly?
[1]: http://code.google.com/apis/maps/documentation/reference.html
[2]: http://code.google.com/apis/maps/documentation/reference.html#GLatLng
[3]: http://code.google.com/apis/maps/documentation/reference.html#GLatLngBounds | javascript | google-maps | null | null | null | null | open | Google Maps API - Problems with class GLatLngBounds
===
I am having some trouble with the [Google Maps API][1]. I have an array which holds a ojbect I created to store points.
My array and class:
var tPoints = [];
function tPoint(name) {
var id = name;
var points = [];
var pointsCount = 0;
...
this.getHeadPoint = function() { return points[pointsCount-1]; }
}
tPoint holds an array of [GLatLng][2] points. I want to write a function to return a [GLatLngBounds][3] object which is extended from the current map bounds to show all the HeadPoints.
Heres what I have so far..
function getBounds() {
var mBound = map.getBounds();
for (var i = 0; i < tPoints.lenght; i++) {
alert(mBound.getSouthWest().lat() + "," + mBound.getSouthWest().lng());
alert(mBound.getNorthEast().lat() + "," + mBound.getNorthEast().lng());
currPoint = trackMarkers[i].getHeadPoint();
if (!mBound.containsLatLng(currPoint)) {
mBound.extend(currPoint);
}
}
return mBound;
}
Which returns these values for the alert. (Generally over the US)<br />
"19.64258,NaN"<br />
"52.69636,NaN"<br />
"i=0"<br />
"19.64258,NaN"<br />
"52.69636,-117.20701"<br />
"i=1"<br />
I don't know why I am getting NaN back.
When I use the bounds to get a zoom level I think the NaN value is causing the map.getBoundsZoomLevel(bounds) to return 0 which is incorrect. Am I using [GLatLngBounds][3] incorrectly?
[1]: http://code.google.com/apis/maps/documentation/reference.html
[2]: http://code.google.com/apis/maps/documentation/reference.html#GLatLng
[3]: http://code.google.com/apis/maps/documentation/reference.html#GLatLngBounds | 0 |
16,660 | 08/19/2008 18:15:29 | 1,194 | 08/13/2008 12:27:52 | 33 | 5 | Internationalization in SSRS | What's the best way to handle translations for stock text in a SSRS. For instance - if I have a report that shows a grid of contents what's the best way to have the correct translation for the header of that grid show up, assuming the culture of the report is set correctly.
Put another way - is it possible to do resources in a SSRS report, or am I stuck with storing all that text in the database and querying for it? | reporting-services | null | null | null | null | null | open | Internationalization in SSRS
===
What's the best way to handle translations for stock text in a SSRS. For instance - if I have a report that shows a grid of contents what's the best way to have the correct translation for the header of that grid show up, assuming the culture of the report is set correctly.
Put another way - is it possible to do resources in a SSRS report, or am I stuck with storing all that text in the database and querying for it? | 0 |
16,716 | 08/19/2008 18:44:32 | 1,838 | 08/18/2008 19:57:59 | 11 | 2 | OpenId authentication in ASP.NET? | I am starting to build a new web app that will require user accounts. Now that I have an OpenId that I am using for this site I thought it would be cool if I could use OpenId for authentication in my app. Are there any good tutorials on how to integrate OpenId with an ASP.NET site? | openid | asp.net | null | null | null | null | open | OpenId authentication in ASP.NET?
===
I am starting to build a new web app that will require user accounts. Now that I have an OpenId that I am using for this site I thought it would be cool if I could use OpenId for authentication in my app. Are there any good tutorials on how to integrate OpenId with an ASP.NET site? | 0 |
16,739 | 08/19/2008 18:54:57 | 1,982 | 08/19/2008 16:54:34 | 21 | 1 | Where is a good place to find a talented web designer? | I am looking for a talented web designer to contribute to an new open source project. Can anybody recommend a good way to find one. | design | source | open | null | null | null | open | Where is a good place to find a talented web designer?
===
I am looking for a talented web designer to contribute to an new open source project. Can anybody recommend a good way to find one. | 0 |
16,747 | 08/19/2008 19:02:55 | 1,549 | 08/16/2008 15:12:49 | 31 | 5 | What's the best way to implement field validation using ASP.NET MVC? | I am building a public website using ASP.NET, as part of the deliverable I need to do an Admin Site for data entry of the stuff shown in the public site, I was wondering what techniques or procedures are people using to validate entries using ASP.NET MVC.
| c# | asp.net | mvc | asp.net-mvc | fieldvalidation | null | open | What's the best way to implement field validation using ASP.NET MVC?
===
I am building a public website using ASP.NET, as part of the deliverable I need to do an Admin Site for data entry of the stuff shown in the public site, I was wondering what techniques or procedures are people using to validate entries using ASP.NET MVC.
| 0 |
16,759 | 08/19/2008 19:11:32 | 572 | 08/06/2008 20:56:54 | 751 | 69 | How do you use back-references to PCREs in PHP? | I read this [PHP RegEx page][1], but either I'm missing something, misreading something, or it doesn't work the way they say. I'm guessing it's one of the first two.
$str = preg_replace("([|]\d*)", "\1;", $str);
[1]: http://us.php.net/manual/en/regexp.reference.php | php | pcre | regex | regularexpression | null | null | open | How do you use back-references to PCREs in PHP?
===
I read this [PHP RegEx page][1], but either I'm missing something, misreading something, or it doesn't work the way they say. I'm guessing it's one of the first two.
$str = preg_replace("([|]\d*)", "\1;", $str);
[1]: http://us.php.net/manual/en/regexp.reference.php | 0 |
16,762 | 08/19/2008 19:14:42 | 2,007 | 08/19/2008 19:05:59 | 1 | 0 | Is there any tool for merging CSS? | I have a couple CSS files with overlapping CSS selectors that I'd like to programmatically merge (as in not just appending one file to the end of the other). Is there any tool to do this online? or a Firefox extension perhaps? | css | null | null | null | null | null | open | Is there any tool for merging CSS?
===
I have a couple CSS files with overlapping CSS selectors that I'd like to programmatically merge (as in not just appending one file to the end of the other). Is there any tool to do this online? or a Firefox extension perhaps? | 0 |
16,770 | 08/19/2008 19:18:41 | 1,659 | 08/17/2008 20:20:20 | 491 | 58 | Haskell's algebraic data types | I trying to grok all of Haskell's concepts.
In what ways are algebraic data types similar to generic types, e.g., in C# and Java? And how are they different? What's so algebraic about them anyway?
I'm familiar with universal algebra and its rings and fields, but I only have a vague idea of how Haskell's types work. | functionalprogramming | haskell | types | type-systems | type-theory | null | open | Haskell's algebraic data types
===
I trying to grok all of Haskell's concepts.
In what ways are algebraic data types similar to generic types, e.g., in C# and Java? And how are they different? What's so algebraic about them anyway?
I'm familiar with universal algebra and its rings and fields, but I only have a vague idea of how Haskell's types work. | 0 |
16,792 | 08/19/2008 19:32:38 | 941 | 08/10/2008 21:04:56 | 487 | 54 | SQL Server Maximum row size | Came across this error today. Wondering if anyone can tell me what it means:
>> Cannot sort a row of size 9522, which is greater than the allowable maximum of 8094.
Is that 8094 bytes? Characters? Fields? Is this a problem joining multiple tables that are exceeding some limit? | mssql | null | null | null | null | null | open | SQL Server Maximum row size
===
Came across this error today. Wondering if anyone can tell me what it means:
>> Cannot sort a row of size 9522, which is greater than the allowable maximum of 8094.
Is that 8094 bytes? Characters? Fields? Is this a problem joining multiple tables that are exceeding some limit? | 0 |
16,795 | 08/19/2008 19:35:30 | 1,366 | 08/14/2008 18:30:52 | 128 | 6 | PHPs htmlspecialcharacters equivalent in .NET? | PHP has a great function called [htmlspecialcharacters()][1] where you pass it a string and it replaces all of HTML's special characters with their safe equivalents, it's *almost* a one stop shop for sanitizing input. Very nice right?
Well is there an equivalent in any of the .NET libraries?
If not, can anyone link to any code samples or libraries that do this well?
[1]: http://us2.php.net/manual/en/function.htmlspecialchars.php | c# | .net | asp.net | php | null | null | open | PHPs htmlspecialcharacters equivalent in .NET?
===
PHP has a great function called [htmlspecialcharacters()][1] where you pass it a string and it replaces all of HTML's special characters with their safe equivalents, it's *almost* a one stop shop for sanitizing input. Very nice right?
Well is there an equivalent in any of the .NET libraries?
If not, can anyone link to any code samples or libraries that do this well?
[1]: http://us2.php.net/manual/en/function.htmlspecialchars.php | 0 |
16,804 | 08/19/2008 19:38:38 | 733 | 08/08/2008 12:53:16 | 192 | 24 | Enterprise Reporting Solutions | What options are there in the industry for enterprise reporting? I'm currently using SSRS 2005, and know that there is another version coming out with the new release of MSSQL.
But, it seems like it might also be a good time to investigate the market to see what else is out there.
What have you encountered? Do you like it/dislike it? Why?
Thank you. | sql | reporting-services | reporting | null | null | null | open | Enterprise Reporting Solutions
===
What options are there in the industry for enterprise reporting? I'm currently using SSRS 2005, and know that there is another version coming out with the new release of MSSQL.
But, it seems like it might also be a good time to investigate the market to see what else is out there.
What have you encountered? Do you like it/dislike it? Why?
Thank you. | 0 |
16,808 | 08/19/2008 19:42:15 | 1,624 | 08/17/2008 16:13:30 | 1 | 0 | Error viewing csproj property pages in VisualStudio2005 | When I goto view the property page for my CSharp test application I get the following error.
"An error occurred trying to load the page. COM object that has been seperated from its underlying RCW cannot be used."
The only thing that seems to fix it is rebooting my PC! | visual-studio | null | null | null | null | null | open | Error viewing csproj property pages in VisualStudio2005
===
When I goto view the property page for my CSharp test application I get the following error.
"An error occurred trying to load the page. COM object that has been seperated from its underlying RCW cannot be used."
The only thing that seems to fix it is rebooting my PC! | 0 |
16,815 | 08/19/2008 19:49:54 | 1,912 | 08/19/2008 14:07:17 | 1 | 8 | Accessing html parameter in PHP | I'm trying to do a simple test php script for sessions. Basically it increments a counter (stored in $_SESSION) every time you refresh that page. That works, but I'm trying to have a link to destroy the session which reloads the page with the ?destroy=1 parameter. I've tried a couple of if statements to see if that parameter is set and if so to destroy the session but it doesn't seem to work.
I've even put an if statement in the main body to popup a message if the parameter is set - but it doesn't seem to be picked up.
I know I'm doing something silly (I'm a php newbie) but I can't seem to find what it is...
See code here:
<?php
if ($_POST['destroy'])
{
session_destroy();
}
else
{
session_start();
}
?>
<html>
<head>
<title>Session test</title>
</head>
<body>
<?php
if (isset($_POST['destroy']))
{
echo "Destroy set";
}
$_SESSION['counter']++;
echo "You have visited this page " . $_SESSION['counter'] . " times" . "<BR>";
echo "I am tracking you using the session id " . session_id() . "<BR>";
echo "Click <a href=\"" . $_SERVER['PHP_SELF'] . "?destroy=1\">here</a> to destroy the session.";
?> | php | null | null | null | null | null | open | Accessing html parameter in PHP
===
I'm trying to do a simple test php script for sessions. Basically it increments a counter (stored in $_SESSION) every time you refresh that page. That works, but I'm trying to have a link to destroy the session which reloads the page with the ?destroy=1 parameter. I've tried a couple of if statements to see if that parameter is set and if so to destroy the session but it doesn't seem to work.
I've even put an if statement in the main body to popup a message if the parameter is set - but it doesn't seem to be picked up.
I know I'm doing something silly (I'm a php newbie) but I can't seem to find what it is...
See code here:
<?php
if ($_POST['destroy'])
{
session_destroy();
}
else
{
session_start();
}
?>
<html>
<head>
<title>Session test</title>
</head>
<body>
<?php
if (isset($_POST['destroy']))
{
echo "Destroy set";
}
$_SESSION['counter']++;
echo "You have visited this page " . $_SESSION['counter'] . " times" . "<BR>";
echo "I am tracking you using the session id " . session_id() . "<BR>";
echo "Click <a href=\"" . $_SERVER['PHP_SELF'] . "?destroy=1\">here</a> to destroy the session.";
?> | 0 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.