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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26,552 | 08/25/2008 18:14:21 | 2,141 | 08/20/2008 14:38:34 | 170 | 4 | SQL NOCOUNT | What are the advantages and disadvantages of turning NOCOUNT off in SQL Server queries? | sql-server | null | null | null | null | null | open | SQL NOCOUNT
===
What are the advantages and disadvantages of turning NOCOUNT off in SQL Server queries? | 0 |
26,559 | 08/25/2008 18:17:11 | 2,687 | 08/24/2008 14:45:10 | 46 | 3 | Any negative impacts when using Mod-Rewrite? | I know there are a lot of positive things mod-rewrite accomplishes. But are there any negative? Obviously if you have poorly written rules your going to have problems. But what if you have a high volume site and your constantly using mod-rewrite, is it going to have a significant impact on performance? I did a quick search for some benchmarks on google and didn't find much. | performance | mod-rewrite | null | null | null | null | open | Any negative impacts when using Mod-Rewrite?
===
I know there are a lot of positive things mod-rewrite accomplishes. But are there any negative? Obviously if you have poorly written rules your going to have problems. But what if you have a high volume site and your constantly using mod-rewrite, is it going to have a significant impact on performance? I did a quick search for some benchmarks on google and didn't find much. | 0 |
26,567 | 08/25/2008 18:19:18 | 2,156 | 08/20/2008 16:30:10 | 26 | 1 | How do I set a textbox to multi-line in SSRS? | I have a report with many fields that I'm trying to get down to 1 page horizontally (I don't care whether it's 2 or 200 pages vertically... just don't want to have to deal with 2 pages wide by x pages long trainwreck). That said, it deals with contact information.
My idea was to do:<br>
Name: Address: City: State: ...<br>
Jon Doe Addr1 ThisTown XX ...<br>
Addr2 <br>
Addr3<br>
----------------------------------------------------------<br>
Jane Doe Addr1 ThisTown XX ...<br>
Addr2<br>
Addr3<br>
----------------------------------------------------------<br>
Is there some way to set a textbox to be multi-line (or the SQL Result)? Have I missed something bloody obvious?
Thanks in advance! | reporting-services | textbox | multi-line | null | null | null | open | How do I set a textbox to multi-line in SSRS?
===
I have a report with many fields that I'm trying to get down to 1 page horizontally (I don't care whether it's 2 or 200 pages vertically... just don't want to have to deal with 2 pages wide by x pages long trainwreck). That said, it deals with contact information.
My idea was to do:<br>
Name: Address: City: State: ...<br>
Jon Doe Addr1 ThisTown XX ...<br>
Addr2 <br>
Addr3<br>
----------------------------------------------------------<br>
Jane Doe Addr1 ThisTown XX ...<br>
Addr2<br>
Addr3<br>
----------------------------------------------------------<br>
Is there some way to set a textbox to be multi-line (or the SQL Result)? Have I missed something bloody obvious?
Thanks in advance! | 0 |
26,570 | 08/25/2008 18:19:57 | 1,786 | 08/18/2008 14:52:43 | 168 | 22 | sizeof() equivalent for reference types? | I'm looking for a way to get the size of an instance of a reference type. sizeof is only for value types. Is this possible? | c# | null | null | null | null | null | open | sizeof() equivalent for reference types?
===
I'm looking for a way to get the size of an instance of a reference type. sizeof is only for value types. Is this possible? | 0 |
26,594 | 08/25/2008 18:27:09 | 2,644 | 08/23/2008 21:56:47 | 145 | 13 | Previewing HTML in Java | What libraries/methods that you know of can do some basic HTML representation in Swing? Can you comment on your experience? | java | html | null | null | null | null | open | Previewing HTML in Java
===
What libraries/methods that you know of can do some basic HTML representation in Swing? Can you comment on your experience? | 0 |
26,595 | 08/25/2008 18:27:16 | 156 | 08/02/2008 17:36:27 | 225 | 15 | Is there any difference between "foo is None" and "foo == None"? | Is there any difference between:
if foo is None: pass
and
if foo == None: pass
The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None is an instance (and the only instance, IIRC) of NoneType, so it shouldn't matter, right? Are there any circumstances in which it might? | python | null | null | null | null | null | open | Is there any difference between "foo is None" and "foo == None"?
===
Is there any difference between:
if foo is None: pass
and
if foo == None: pass
The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None is an instance (and the only instance, IIRC) of NoneType, so it shouldn't matter, right? Are there any circumstances in which it might? | 0 |
26,606 | 08/25/2008 18:33:43 | 26 | 08/01/2008 12:18:14 | 1,856 | 111 | Free POP3 .NET library? | Looking for a POP3 Client for .NET that basically just lets me log into a server and grab all the emails out, and maybe send some. I grabbed Indy.Sockets off of CodePlex and got it running but its throwing errors trying to decode the mail headers. Really anything is fine if it works. | .net | pop3 | null | null | null | null | open | Free POP3 .NET library?
===
Looking for a POP3 Client for .NET that basically just lets me log into a server and grab all the emails out, and maybe send some. I grabbed Indy.Sockets off of CodePlex and got it running but its throwing errors trying to decode the mail headers. Really anything is fine if it works. | 0 |
26,620 | 08/25/2008 18:45:27 | 2,138 | 08/20/2008 14:23:45 | 8 | 0 | How to set encoding in .getJSON JQuery | In my web app, i submit some form fields with JQuery $.getJSON() Method. I am having some problems with the encoding. The character-set of my app is charset=ISO-8859-1 but i think this fields are submitted with UTF-8.
Does anyone know, how can i set encoding in $.getJSON calls? | jquery | null | null | null | null | null | open | How to set encoding in .getJSON JQuery
===
In my web app, i submit some form fields with JQuery $.getJSON() Method. I am having some problems with the encoding. The character-set of my app is charset=ISO-8859-1 but i think this fields are submitted with UTF-8.
Does anyone know, how can i set encoding in $.getJSON calls? | 0 |
26,625 | 08/25/2008 18:47:50 | 2,881 | 08/25/2008 17:46:55 | 21 | 2 | One large monitor or dual-monitor setup? | Let's say I have a certain budget to buy the displays for my development setup. With that budget I can either buy 1 larger monitor with a higher resolution or two smaller monitors and set them up in a dual-monitor setup. What are people's preferences and why?
I'm interested in perspectives related to a development setup as opposed to just general use. | hardware | null | null | null | null | null | open | One large monitor or dual-monitor setup?
===
Let's say I have a certain budget to buy the displays for my development setup. With that budget I can either buy 1 larger monitor with a higher resolution or two smaller monitors and set them up in a dual-monitor setup. What are people's preferences and why?
I'm interested in perspectives related to a development setup as opposed to just general use. | 0 |
26,638 | 08/25/2008 18:54:27 | 2,644 | 08/23/2008 21:56:47 | 157 | 14 | What HTML parsing libraries do you recommend in Java | I want to parse some HTML in order to find the values of some attributes/tags etc.
What HTML parsers to you recommend? Any pros and cons? | java | html | parsing | parse | null | 08/01/2012 16:00:06 | not constructive | What HTML parsing libraries do you recommend in Java
===
I want to parse some HTML in order to find the values of some attributes/tags etc.
What HTML parsers to you recommend? Any pros and cons? | 4 |
26,663 | 08/25/2008 19:09:08 | 2,638 | 08/23/2008 20:10:14 | 179 | 8 | What's your favorite profiling tool (for C++) | So far, I've only used Rational Quantify. I've heard great things about Intel's VTune, but have never tried it!
Edit: I'm mostly looking for software that will instrument the code, as I guess that's about the only way to get very fine results. | c++ | performance | null | null | null | 07/04/2012 15:51:47 | not constructive | What's your favorite profiling tool (for C++)
===
So far, I've only used Rational Quantify. I've heard great things about Intel's VTune, but have never tried it!
Edit: I'm mostly looking for software that will instrument the code, as I guess that's about the only way to get very fine results. | 4 |
26,670 | 08/25/2008 19:14:07 | 751 | 08/08/2008 14:26:58 | 103 | 6 | Why is my PDF footer text invisible? | I'm creating PDFs on-demand with ColdFusion's [CFDocument][1] tag, like so:
<cfdocument format="PDF" filename="#attributes.fileName#" overwrite="true">
<cfdocumentitem type="footer">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left"><font face="Tahoma" color="black"><strong>My Client's Corporation</strong><br/>Street address<br/>City, ST 55555</font></td>
<td align="right"><font face="Tahoma" color="black">Phone: 555.555.5555<br/>Fax: 555.555.5555<br/>Email: [email protected]</font></td>
</tr>
</table>
</cfdocumentitem>
<html>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<!--- some content here ... --->
</table>
</body>
</html>
</cfdocument>
The problem I'm having is that sometimes, actually most of the time, but not always, ***some*** of the footer text is there but invisible. I can highlight it and copy/paste it into notepad, where I can see it all -- but in the generated PDF only the first line of the left column of the footer is visible, the rest is invisible. Hence why I added the font color of black in the code.
![screenshot of problem][2]
Any ideas on how to correct this?
[1]:http://cfquickdocs.com/cf8/?getDoc=cfdocument
[2]: http://img504.imageshack.us/img504/3813/footernx0.png | pdf | coldfusion | null | null | null | null | open | Why is my PDF footer text invisible?
===
I'm creating PDFs on-demand with ColdFusion's [CFDocument][1] tag, like so:
<cfdocument format="PDF" filename="#attributes.fileName#" overwrite="true">
<cfdocumentitem type="footer">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left"><font face="Tahoma" color="black"><strong>My Client's Corporation</strong><br/>Street address<br/>City, ST 55555</font></td>
<td align="right"><font face="Tahoma" color="black">Phone: 555.555.5555<br/>Fax: 555.555.5555<br/>Email: [email protected]</font></td>
</tr>
</table>
</cfdocumentitem>
<html>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<!--- some content here ... --->
</table>
</body>
</html>
</cfdocument>
The problem I'm having is that sometimes, actually most of the time, but not always, ***some*** of the footer text is there but invisible. I can highlight it and copy/paste it into notepad, where I can see it all -- but in the generated PDF only the first line of the left column of the footer is visible, the rest is invisible. Hence why I added the font color of black in the code.
![screenshot of problem][2]
Any ideas on how to correct this?
[1]:http://cfquickdocs.com/cf8/?getDoc=cfdocument
[2]: http://img504.imageshack.us/img504/3813/footernx0.png | 0 |
26,685 | 08/25/2008 19:26:39 | 1,384,652 | 08/01/2008 12:01:23 | 1,310 | 71 | What is MVC and what are the advantages of it? | I found [What are mvp and mvc and what is the difference][1] but it didn't really answer this question.
I've recently started using MVC because it's part of the framework that myself and my work-partner are going to use. We chose it because it looked easy and separated process from display, are there advantages besides this that we don't know about and could be missing out on?
**Pros**
1. Display and Processing are seperated
<br />
**Cons**
1. None so far
[1]: http://stackoverflow.com/questions/2056/what-are-mvp-and-mvc-and-what-is-the-difference | mvc | null | null | null | null | null | open | What is MVC and what are the advantages of it?
===
I found [What are mvp and mvc and what is the difference][1] but it didn't really answer this question.
I've recently started using MVC because it's part of the framework that myself and my work-partner are going to use. We chose it because it looked easy and separated process from display, are there advantages besides this that we don't know about and could be missing out on?
**Pros**
1. Display and Processing are seperated
<br />
**Cons**
1. None so far
[1]: http://stackoverflow.com/questions/2056/what-are-mvp-and-mvc-and-what-is-the-difference | 0 |
26,688 | 08/25/2008 19:28:54 | 290 | 08/04/2008 12:57:50 | 466 | 49 | What Mature PL/SQL Libraries For Auto-Generating JSON Do You Recommend? | Are there any good PL/SQL libraries for JSON that you've worked with and found useful?
In [PL/SQL][1], I'm having to tediously hand code the return of [JSON][2] values to JavaScript functions. I found [one PL/SQL library][3] for auto-generating JSON, but it doesn't do exactly everything I need it too. For example, I couldn't extend the base functions in the library to return a complex tree-like JSON data structure required by a JavaScript tree component I was using.
[1]: http://www.oracle.com/technology/tech/pl_sql/index.html
[2]: http://www.json.org/
[3]: http://www.erasme.org/pl-sql-library-for-JSON | json | plsql | javascript | null | null | null | open | What Mature PL/SQL Libraries For Auto-Generating JSON Do You Recommend?
===
Are there any good PL/SQL libraries for JSON that you've worked with and found useful?
In [PL/SQL][1], I'm having to tediously hand code the return of [JSON][2] values to JavaScript functions. I found [one PL/SQL library][3] for auto-generating JSON, but it doesn't do exactly everything I need it too. For example, I couldn't extend the base functions in the library to return a complex tree-like JSON data structure required by a JavaScript tree component I was using.
[1]: http://www.oracle.com/technology/tech/pl_sql/index.html
[2]: http://www.json.org/
[3]: http://www.erasme.org/pl-sql-library-for-JSON | 0 |
26,706 | 08/25/2008 19:43:15 | 1,785 | 08/18/2008 14:48:51 | 1 | 0 | wxpython examine data OnDragOver | I'm a bit perplexed by drag and drop in wxPython (but perhaps this questions pertains to drag and drop in other GUI frameworks as well). The frameworks provides a couple of callbacks (OnEnter and OnDragOver) that purportedly allow me to inform the system whether the current mouse position is a valid place to drop whatever it is that is being dragged. From these methods I can return wx.DragNone, wx.DragCopy, etc. What baffles me is that from within these methods I am not allowed to call GetData, which means I am not allowed to examine the data that the user is dragging. If I cannot see the data, how am I supposed to know whether it is OK for the user to drop here? | python | gui | wxwidgets | wxpython | null | null | open | wxpython examine data OnDragOver
===
I'm a bit perplexed by drag and drop in wxPython (but perhaps this questions pertains to drag and drop in other GUI frameworks as well). The frameworks provides a couple of callbacks (OnEnter and OnDragOver) that purportedly allow me to inform the system whether the current mouse position is a valid place to drop whatever it is that is being dragged. From these methods I can return wx.DragNone, wx.DragCopy, etc. What baffles me is that from within these methods I am not allowed to call GetData, which means I am not allowed to examine the data that the user is dragging. If I cannot see the data, how am I supposed to know whether it is OK for the user to drop here? | 0 |
26,711 | 08/25/2008 19:47:42 | 2,847 | 08/25/2008 14:12:52 | 1 | 1 | Asp.net Reinstalling a DLL into the GAC | I'm trying to reinstall a DLL in the GAC, everything seems to work fine but the web application accessing it still seems to be using the old one.
The old DLL is the same version as the new one with only a minor edit, it will be used by 50 different sites so changing the version then changing the reference in the web.config is not a *good* solution.
Restarting the IIS server or the worker process isn't an option as there are already 50 sites running that must continue to do so.
does anyone know what i'm doing wrong or what i can do to remedy this situation? | iis | dll | gac | null | null | null | open | Asp.net Reinstalling a DLL into the GAC
===
I'm trying to reinstall a DLL in the GAC, everything seems to work fine but the web application accessing it still seems to be using the old one.
The old DLL is the same version as the new one with only a minor edit, it will be used by 50 different sites so changing the version then changing the reference in the web.config is not a *good* solution.
Restarting the IIS server or the worker process isn't an option as there are already 50 sites running that must continue to do so.
does anyone know what i'm doing wrong or what i can do to remedy this situation? | 0 |
26,715 | 08/25/2008 19:50:21 | 2,041 | 08/19/2008 23:02:38 | 111 | 7 | asp.net mcv - subfolders | How does the new microsot asp.net mvc implementation handle paritioning your application for example:
--index.aspx
--about.aspx
--contact.aspx
--/feature1
--/feature1/subfeature/action
--/feature2/subfeature/action
I guess what i am trying to say is that it seems everything has to go into the root of the views/controllers folders which could get unwieldy when working on a project that if built with web forms might have lots and lots of folders and subfolders to partition the application.
I think i get the MVC model and I like the look of it compared to web forms but still getting my head round how you would build a large project in practise.
Cheers
John
| asp.net-mvc | partition | folders | null | null | null | open | asp.net mcv - subfolders
===
How does the new microsot asp.net mvc implementation handle paritioning your application for example:
--index.aspx
--about.aspx
--contact.aspx
--/feature1
--/feature1/subfeature/action
--/feature2/subfeature/action
I guess what i am trying to say is that it seems everything has to go into the root of the views/controllers folders which could get unwieldy when working on a project that if built with web forms might have lots and lots of folders and subfolders to partition the application.
I think i get the MVC model and I like the look of it compared to web forms but still getting my head round how you would build a large project in practise.
Cheers
John
| 0 |
26,719 | 08/25/2008 19:51:31 | 1,508 | 08/16/2008 02:29:14 | 165 | 11 | Internalize Class and Methods in .NET Assembly | I have a set of multiple assemblies (one assembly is to be used as an API and it depends on other assemblies). I would like to merge all assemblies into one single assembly but prevent all assemblies except the API one to be visible from the outside.
I will then obfuscate this assembly with Xenocode. From what I have seen, it is impossible to internalize assembly with Xenocode.
I have seen ILMerge from Microsoft, but was unable to figure if it can do what I want.
[http://research.microsoft.com/~mbarnett/ILMerge.aspx][1]
[1]: http://research.microsoft.com/~mbarnett/ILMerge.aspx | c# | .net | vb.net | assembly | null | null | open | Internalize Class and Methods in .NET Assembly
===
I have a set of multiple assemblies (one assembly is to be used as an API and it depends on other assemblies). I would like to merge all assemblies into one single assembly but prevent all assemblies except the API one to be visible from the outside.
I will then obfuscate this assembly with Xenocode. From what I have seen, it is impossible to internalize assembly with Xenocode.
I have seen ILMerge from Microsoft, but was unable to figure if it can do what I want.
[http://research.microsoft.com/~mbarnett/ILMerge.aspx][1]
[1]: http://research.microsoft.com/~mbarnett/ILMerge.aspx | 0 |
26,721 | 08/25/2008 19:52:07 | 2,729 | 08/24/2008 18:30:56 | 1 | 0 | How can I make sure scrollbars don't overlap content? | When creating scrollable user controls with .NET and WinForms I have repeatedly encountered situations where, for example, a vertical scrollbar pops up, overlapping the control's content, causing a horizontal scrollbar to also be needed. Ideally the content would shrink just a bit to make room for the vertical scrollbar.
My current solution has been to just keep my controls out of the far right 40 pixels or so that the vertical scrollbar will be taking up. Since this is still effectively client space for the control, the horizontal scrollbar still comes up when it gets covered by the vertical scrollbar, even though no controls are being hidden at all. But then at least the user doesn't actually need to **use** the horizontal scrollbar that comes up.
Is there a better way to make this all work? Some way to keep the unneeded and unwanted scrollbars from showing up at all? | .net | winforms | null | null | null | null | open | How can I make sure scrollbars don't overlap content?
===
When creating scrollable user controls with .NET and WinForms I have repeatedly encountered situations where, for example, a vertical scrollbar pops up, overlapping the control's content, causing a horizontal scrollbar to also be needed. Ideally the content would shrink just a bit to make room for the vertical scrollbar.
My current solution has been to just keep my controls out of the far right 40 pixels or so that the vertical scrollbar will be taking up. Since this is still effectively client space for the control, the horizontal scrollbar still comes up when it gets covered by the vertical scrollbar, even though no controls are being hidden at all. But then at least the user doesn't actually need to **use** the horizontal scrollbar that comes up.
Is there a better way to make this all work? Some way to keep the unneeded and unwanted scrollbars from showing up at all? | 0 |
26,733 | 08/25/2008 19:57:21 | 1,782 | 08/18/2008 14:30:58 | 842 | 53 | Getting all types that implement an interface with C# 3.5 | How can I do what's in the title, with the minimum ammount of code, using whatever c# 3.5 syntax (I'm guessing lamda expressions would fit, but I still don't understand them fully)?
In short,
I want to iterate through all types that implement a particular interface. | c# | lamda | reflection | null | null | null | open | Getting all types that implement an interface with C# 3.5
===
How can I do what's in the title, with the minimum ammount of code, using whatever c# 3.5 syntax (I'm guessing lamda expressions would fit, but I still don't understand them fully)?
In short,
I want to iterate through all types that implement a particular interface. | 0 |
26,743 | 08/25/2008 20:03:51 | 2,892 | 08/25/2008 19:39:36 | 1 | 0 | Propper name space managment in .NET XmlWriter | I use .NET XML technologies quite extensively on my work. One of the things the I like very much is the XSLT engine, more precisely the extensibility of it. However there one little piece which keeps being a source of annoyance. Nothing major or something we can't live with but it is preventing us from producing the beautiful XML we would like to procude.
One of the things we do is transform nodes inline and importing nodes from one XML document to another.
Sadly , when you save nodes to an XmlTextWriter (actually whatever XmlWriter.Create(Stream) returns), the namespace definitions get all thrown in there, regardless of it is necessary (previously defined) or not. You get kind of the following xml:
`<root xmlns:abx="http://bladibla">
<abx:child id="A">
<grandchild id="B">
<abx:grandgrandchilde xmlns:abx="http://bladibla" />
</grandchild>
</abx:child>
</root>`
Does anyone have a suggestion as to how to convince .NET to be efficient about its namespace definitions?
Thanks,
Boaz
PS. As an added bonus I would like to override the default namespace, changing it as I write a node. | .net | xml | xmlwriter | null | null | null | open | Propper name space managment in .NET XmlWriter
===
I use .NET XML technologies quite extensively on my work. One of the things the I like very much is the XSLT engine, more precisely the extensibility of it. However there one little piece which keeps being a source of annoyance. Nothing major or something we can't live with but it is preventing us from producing the beautiful XML we would like to procude.
One of the things we do is transform nodes inline and importing nodes from one XML document to another.
Sadly , when you save nodes to an XmlTextWriter (actually whatever XmlWriter.Create(Stream) returns), the namespace definitions get all thrown in there, regardless of it is necessary (previously defined) or not. You get kind of the following xml:
`<root xmlns:abx="http://bladibla">
<abx:child id="A">
<grandchild id="B">
<abx:grandgrandchilde xmlns:abx="http://bladibla" />
</grandchild>
</abx:child>
</root>`
Does anyone have a suggestion as to how to convince .NET to be efficient about its namespace definitions?
Thanks,
Boaz
PS. As an added bonus I would like to override the default namespace, changing it as I write a node. | 0 |
26,746 | 08/25/2008 20:06:37 | 519 | 08/06/2008 14:09:46 | 157 | 7 | Microsoft SQL 2008 Linked Sever to Oracle - Schema Not Showing | I have a Windows 2008 Server (x64) running Microsoft SQL 2008 (x64) and I'm creating a Linked Server connection to an Oracle server. I'm able to make the connection, but I cannot see any information regarding which schema a table belongs to.
In SQL 2005, my linked servers show the schema information as I would expect.
Does anyone know how to resolve this issue? Is it an issue with the provider, OraOLEDB.Oracle?
Any help or pointers would be appreciated. | sql-server | sql | mssql | oracle | null | null | open | Microsoft SQL 2008 Linked Sever to Oracle - Schema Not Showing
===
I have a Windows 2008 Server (x64) running Microsoft SQL 2008 (x64) and I'm creating a Linked Server connection to an Oracle server. I'm able to make the connection, but I cannot see any information regarding which schema a table belongs to.
In SQL 2005, my linked servers show the schema information as I would expect.
Does anyone know how to resolve this issue? Is it an issue with the provider, OraOLEDB.Oracle?
Any help or pointers would be appreciated. | 0 |
26,755 | 08/25/2008 20:13:49 | 2,463 | 08/22/2008 12:26:27 | 1 | 0 | Favorite PHP Library | Ok, so as my first question, I go against the FAQ rules: this is a subjective and argumentative question... Sorry for that.<br />
Anyway,<br />
I was wondering what library power PHP dev were using.<br />
Not a full framework (like cakePHP), that forces you to code and organize files in a certain way, but a library, full of useful helpers, needed functions ( little like Prototype for JS)...<br />
Of course, there is SPL, but beside that ?<br />
Thanx | php | null | null | null | null | null | open | Favorite PHP Library
===
Ok, so as my first question, I go against the FAQ rules: this is a subjective and argumentative question... Sorry for that.<br />
Anyway,<br />
I was wondering what library power PHP dev were using.<br />
Not a full framework (like cakePHP), that forces you to code and organize files in a certain way, but a library, full of useful helpers, needed functions ( little like Prototype for JS)...<br />
Of course, there is SPL, but beside that ?<br />
Thanx | 0 |
26,760 | 08/25/2008 20:16:26 | 31,505 | 2008-09-01 | 515 | 25 | [C#] Parse string to TimeSpan | I have some strings of xxh:yym format where xx is hours and yy is minutes like "05h:30m". What is an elegant way to convert a string of this type to TimeSpan? | c# | timespan | null | null | null | null | open | [C#] Parse string to TimeSpan
===
I have some strings of xxh:yym format where xx is hours and yy is minutes like "05h:30m". What is an elegant way to convert a string of this type to TimeSpan? | 0 |
26,762 | 08/25/2008 20:17:10 | 1,212 | 08/13/2008 13:17:40 | 90 | 4 | Perforce in a Microsoft Shop | Our dev shop currently uses Visual SourceSafe. We all know how that could end up (badly), so we're investigating other systems. First up is Perforce. Does anyone have experience with using it and its integration into Visual Studio (2003/2005/2008)? Is it as good as any other, or is it pretty solid with good features, comparatively? | sourcecontrol | perforce | visual-sourcesafe | null | null | null | open | Perforce in a Microsoft Shop
===
Our dev shop currently uses Visual SourceSafe. We all know how that could end up (badly), so we're investigating other systems. First up is Perforce. Does anyone have experience with using it and its integration into Visual Studio (2003/2005/2008)? Is it as good as any other, or is it pretty solid with good features, comparatively? | 0 |
26,771 | 08/25/2008 20:21:18 | 2,638 | 08/23/2008 20:10:14 | 188 | 9 | Rewarding code projects for beginners | Courses for people who are being introduced to programming very often include a code project, which I think is a nice way to learn. However, such projects often feel too artificial, and are thus not very rewarding to work on.
What are your ideas of rewarding code projects? (Preferably easy to begin, and extendable at will for the more advanced!). | language-agnostic | teaching | null | null | null | null | open | Rewarding code projects for beginners
===
Courses for people who are being introduced to programming very often include a code project, which I think is a nice way to learn. However, such projects often feel too artificial, and are thus not very rewarding to work on.
What are your ideas of rewarding code projects? (Preferably easy to begin, and extendable at will for the more advanced!). | 0 |
26,795 | 08/25/2008 20:31:14 | 2,899 | 08/25/2008 20:31:14 | 1 | 0 | UITypeEditor and IExtenderProvider | I have an extender (IExtenderProvider) which extends certain types of
controls with additional properties. For one of these properties, I have
written a UITypeEditor. So far, all works just fine.
The extender also has a couple of properties itself, which I am trying to
use as a sort of default for the UITypeEditor. What I want to do is to be
able to set a property on the extender itself (not the extended controls),
and when I open up the UITypeEditor for one of the additional properties on
an extended control, I want to set a value in the UITypeEditor to the value
of the property on the extender.
A simple example: The ExtenderProvider has a property DefaultExtendedValue. On the form I set the value of this property to "My Value". Extended controls have, through the provider, a property ExtendedValue with a UITypeEditor. When I open the editor for the property ExtendedValue the default (initial) value should be set to "My Value".
It seems to me that the best place to do this would be
UITypeEditor.EditValue, just before calling
IWindowsFormsEditorService.DropDownControl or .ShowDialog.
The only problem is that I can't (or I haven't discovered how to) get hold
of the extender provider itself in EditValue, to read the value of the property in question and set it in the UITypeEditor. Context gives me the extended
control, but that is of no use to me in this case.
Is there any way to achieve what I'm trying? Any help appreciated!
Thanks
Tom | .net | design-time | iextenderprovider | uitypeeditor | winforms | null | open | UITypeEditor and IExtenderProvider
===
I have an extender (IExtenderProvider) which extends certain types of
controls with additional properties. For one of these properties, I have
written a UITypeEditor. So far, all works just fine.
The extender also has a couple of properties itself, which I am trying to
use as a sort of default for the UITypeEditor. What I want to do is to be
able to set a property on the extender itself (not the extended controls),
and when I open up the UITypeEditor for one of the additional properties on
an extended control, I want to set a value in the UITypeEditor to the value
of the property on the extender.
A simple example: The ExtenderProvider has a property DefaultExtendedValue. On the form I set the value of this property to "My Value". Extended controls have, through the provider, a property ExtendedValue with a UITypeEditor. When I open the editor for the property ExtendedValue the default (initial) value should be set to "My Value".
It seems to me that the best place to do this would be
UITypeEditor.EditValue, just before calling
IWindowsFormsEditorService.DropDownControl or .ShowDialog.
The only problem is that I can't (or I haven't discovered how to) get hold
of the extender provider itself in EditValue, to read the value of the property in question and set it in the UITypeEditor. Context gives me the extended
control, but that is of no use to me in this case.
Is there any way to achieve what I'm trying? Any help appreciated!
Thanks
Tom | 0 |
26,796 | 08/25/2008 20:31:32 | 1,414 | 08/15/2008 15:07:31 | 482 | 43 | ASP.Net: Using System.Web.UI.Control.ResolveUrl() in a shared/static function | What is the best way to use ResolveUrl() in a Shared/static function in Asp.Net? My current solution for VB.Net is:
Dim x As New System.Web.UI.Control
x.ResolveUrl("~/someUrl")
Or C#:
System.Web.UI.Control x = new System.Web.UI.Control();
x.ResolveUrl("~/someUrl");
But I realize that isn't the best way of calling it. | c# | asp.net | vb.net | static | resolveurl | null | open | ASP.Net: Using System.Web.UI.Control.ResolveUrl() in a shared/static function
===
What is the best way to use ResolveUrl() in a Shared/static function in Asp.Net? My current solution for VB.Net is:
Dim x As New System.Web.UI.Control
x.ResolveUrl("~/someUrl")
Or C#:
System.Web.UI.Control x = new System.Web.UI.Control();
x.ResolveUrl("~/someUrl");
But I realize that isn't the best way of calling it. | 0 |
26,799 | 08/25/2008 20:32:33 | 1,574 | 08/16/2008 19:31:12 | 236 | 17 | How do you back up your development machine? | How do you back up your development machine so that in the event of a catastrophic hardware malfunction, you are up and running in the least amount of time possible? | hardware | backup | setup | null | null | null | open | How do you back up your development machine?
===
How do you back up your development machine so that in the event of a catastrophic hardware malfunction, you are up and running in the least amount of time possible? | 0 |
26,800 | 08/25/2008 20:32:36 | 1,965 | 08/19/2008 15:51:08 | 1,206 | 76 | XPath and Selecting a single node | I'm using XPath in .NET to parse an XML document, along the lines of:
XmlNodeList lotsOStuff = doc.SelectNodes("//stuff");
foreach (XmlNode stuff in lotsOStuff)
{
XmlNode stuffChild = stuff.SelectSingleNode("//stuffChild");
// ... etc
}
The issue is that the XPath Query for stuffChild is always returning the child of the first stuff element, never the rest...Can XPath not be used to query against an individual XMLElement?
| .net | xpath | null | null | null | null | open | XPath and Selecting a single node
===
I'm using XPath in .NET to parse an XML document, along the lines of:
XmlNodeList lotsOStuff = doc.SelectNodes("//stuff");
foreach (XmlNode stuff in lotsOStuff)
{
XmlNode stuffChild = stuff.SelectSingleNode("//stuffChild");
// ... etc
}
The issue is that the XPath Query for stuffChild is always returning the child of the first stuff element, never the rest...Can XPath not be used to query against an individual XMLElement?
| 0 |
26,809 | 08/25/2008 20:36:30 | 2,191 | 08/20/2008 20:39:36 | 113 | 3 | What is the best way to deal with DBNull's | I frequently have problems dealing with DataRows returned from SqlDataAdapters. When I try to fill in an object using code like this:
DataRow row = ds.Tables[0].Rows[0];
string value = (string)row;
What is the best way to deal with DBNull's in this type of situation. | c# | mssql | null | null | null | null | open | What is the best way to deal with DBNull's
===
I frequently have problems dealing with DataRows returned from SqlDataAdapters. When I try to fill in an object using code like this:
DataRow row = ds.Tables[0].Rows[0];
string value = (string)row;
What is the best way to deal with DBNull's in this type of situation. | 0 |
26,816 | 08/25/2008 20:38:09 | 1,782 | 08/18/2008 14:30:58 | 860 | 54 | How to abort threads created with ThreadPool.QueueUserWorkItem | is there a way to abort threads created with QueueUserWorkItem?
Or maybe I don't need to? What happens if the main application exits? Are all thread created from it aborted automatically? | c# | multithreading | null | null | null | null | open | How to abort threads created with ThreadPool.QueueUserWorkItem
===
is there a way to abort threads created with QueueUserWorkItem?
Or maybe I don't need to? What happens if the main application exits? Are all thread created from it aborted automatically? | 0 |
26,825 | 08/25/2008 20:39:24 | 2,894 | 08/25/2008 20:06:55 | 1 | 1 | Uncollapsible CollapsiblePanelExtender. | I have a CollapsiblePanelExtender that will not collapse. I have "collapsed" set to true and all the ControlID set correctly. I try to collapse and it goes through the animation but then expands almost instantly. This is in an User Control with the following structure.
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="odsPartners" Width="450px" BorderWidth="0"
ShowHeader="false" ShowFooter="false" AllowSorting="true"
onrowdatabound="GridView1_RowDataBound">
<Columns>
<asp:TemplateField HeaderText="Contract Partners" SortExpression="Name">
<ItemTemplate>
<asp:Panel id="pnlRow" runat="server">
<table>
...Stuff...
</table>
</asp:Panel>
<ajaxToolkit:CollapsiblePanelExtender runat="server" ID="DDE"
Collapsed="true" ImageControlID="btnExpander" ExpandedImage="../Images/collapse.jpg" CollapsedImage="../Images/expand.jpg"
TargetControlID="DropPanel" CollapseControlID="btnExpander" ExpandControlID="btnExpander" />
<asp:Panel ID="DropPanel" runat="server" CssClass="CollapsedPanel">
<asp:Table ID="tblContracts" runat="server">
<asp:TableRow ID="row" runat="server">
<asp:TableCell ID="spacer" runat="server" Width="30"> </asp:TableCell>
<asp:TableCell ID="cellData" runat="server" Width="400">
<uc1:ContractList ID="ContractList1" runat="server" PartnerID='<%# Bind("ID") %>' />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:Panel>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="tbFilter" EventName="TextChanged" />
</Triggers>
</asp:UpdatePanel>
| ajaxtoolkit | null | null | null | null | null | open | Uncollapsible CollapsiblePanelExtender.
===
I have a CollapsiblePanelExtender that will not collapse. I have "collapsed" set to true and all the ControlID set correctly. I try to collapse and it goes through the animation but then expands almost instantly. This is in an User Control with the following structure.
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="odsPartners" Width="450px" BorderWidth="0"
ShowHeader="false" ShowFooter="false" AllowSorting="true"
onrowdatabound="GridView1_RowDataBound">
<Columns>
<asp:TemplateField HeaderText="Contract Partners" SortExpression="Name">
<ItemTemplate>
<asp:Panel id="pnlRow" runat="server">
<table>
...Stuff...
</table>
</asp:Panel>
<ajaxToolkit:CollapsiblePanelExtender runat="server" ID="DDE"
Collapsed="true" ImageControlID="btnExpander" ExpandedImage="../Images/collapse.jpg" CollapsedImage="../Images/expand.jpg"
TargetControlID="DropPanel" CollapseControlID="btnExpander" ExpandControlID="btnExpander" />
<asp:Panel ID="DropPanel" runat="server" CssClass="CollapsedPanel">
<asp:Table ID="tblContracts" runat="server">
<asp:TableRow ID="row" runat="server">
<asp:TableCell ID="spacer" runat="server" Width="30"> </asp:TableCell>
<asp:TableCell ID="cellData" runat="server" Width="400">
<uc1:ContractList ID="ContractList1" runat="server" PartnerID='<%# Bind("ID") %>' />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:Panel>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="tbFilter" EventName="TextChanged" />
</Triggers>
</asp:UpdatePanel>
| 0 |
26,826 | 08/25/2008 20:40:46 | 2,758 | 08/24/2008 22:12:45 | 26 | 3 | Modifying SharePoint System Files | What is the general feeling amongst developers regarding the changing of files in the 12 hive.
For example if you were asked to remove the sign is a different user menu item, you would need to modify the relevent user control on the filesystem. Now if you just go and modify it via notepad or copy over and then if you go and bring a new server into the farm you will need to remember to do the same on the new server.
Obvouisly you could deploy the changed file as a solution and have that done automatically, but I'm just wondering if people are hesitant to make changes to the default installed files? | sharepoint | null | null | null | null | null | open | Modifying SharePoint System Files
===
What is the general feeling amongst developers regarding the changing of files in the 12 hive.
For example if you were asked to remove the sign is a different user menu item, you would need to modify the relevent user control on the filesystem. Now if you just go and modify it via notepad or copy over and then if you go and bring a new server into the farm you will need to remember to do the same on the new server.
Obvouisly you could deploy the changed file as a solution and have that done automatically, but I'm just wondering if people are hesitant to make changes to the default installed files? | 0 |
26,834 | 08/25/2008 20:42:40 | 1,060 | 08/11/2008 23:17:09 | 326 | 22 | How to represent cross-model information in MVC? | I have an application, built using MVC, that produces a view which delivers summary information across a number of models. Further to that, some calculations are performed across the different sets of data.
There's no clear single model (that maps to a table at least) that seems to make sense as the starting point for this, so the various summaries are pulled from the contributing models in the controller, passed into the view and the calculations are performed there.
But that seems, well, *dirty*. But controllers are supposed to be lightweight, aren't they? And business logic shouldn't be in views, as I have it as present.
So where should this information be assembled? A new model, that doesn't map to a table? A library function/module? Or something else?
(Although I see this as mostly of an architectural/pattern question, I'm working in Rails, FWIW.) | mvc | design | ruby-on-rails | patterns | null | null | open | How to represent cross-model information in MVC?
===
I have an application, built using MVC, that produces a view which delivers summary information across a number of models. Further to that, some calculations are performed across the different sets of data.
There's no clear single model (that maps to a table at least) that seems to make sense as the starting point for this, so the various summaries are pulled from the contributing models in the controller, passed into the view and the calculations are performed there.
But that seems, well, *dirty*. But controllers are supposed to be lightweight, aren't they? And business logic shouldn't be in views, as I have it as present.
So where should this information be assembled? A new model, that doesn't map to a table? A library function/module? Or something else?
(Although I see this as mostly of an architectural/pattern question, I'm working in Rails, FWIW.) | 0 |
26,842 | 08/25/2008 20:45:32 | 171 | 08/02/2008 23:47:08 | 11 | 2 | Problem connecting to CAS server with Perl CGI script using IO::Socket::SSL | I'm attempting to use an existing CAS server to authenticate login for a Perl CGI web script and am using the AuthCAS perl module (v 1.3.1). I can connect to the CAS server to get the service ticket but when I try to connect to validate the ticket my script returns with the following error from the IO::Socket::SSL module:
500 Can't connect to <CAS Server>:443 (Bad hostname '<CAS Server>')
(<CAS Server> substituted for real server name)
Symptoms/Tests:
1. If I type the generated URL for the authentication into the web browser's location bar it returns just fine with the expected XML snippet. So it is not a bad host name.
2. If I generate a script without using the AuthCAS module but using the IO::Socket::SSL module directly to query the CAS server for validation on the generated service ticket the Perl script will run fine from the command line but not in the browser.
3. If I add the AuthCAS module into the script in item 2, the script no longer works on the command line and still doesn't work in the browser.
Here is the bare-bones script that produces the error:
#!/usr/bin/perl
use strict;
use warnings;
use CGI;
use AuthCAS;
use CGI::Carp qw( fatalsToBrowser );
my $id = $ENV{QUERY_STRING};
my $q = new CGI;
my $target = "http://localhost/cgi-bin/testCAS.cgi";
my $cas = new AuthCAS(casUrl => 'https://cas_server/cas');
if ($id eq ""){
my $login_url = $cas->getServerLoginURL($target);
printf "Location: $login_url\n\n";
exit 0;
} else {
print $q->header();
print "CAS TEST<br>\n";
## When coming back from the CAS server a ticket is provided in the QUERY_STRING
print "QUERY_STRING = " . $id . "</br>\n";
## $ST should contain the received Service Ticket
my $ST = $q->param('ticket');
my $user = $cas->validateST($target, $ST); #### This is what fails
printf "Error: %s\n", &AuthCAS::get_errors() unless (defined $user);
}
Any ideas on where the conflict might be? | perl | cgi | authentication | apache | ssl | null | open | Problem connecting to CAS server with Perl CGI script using IO::Socket::SSL
===
I'm attempting to use an existing CAS server to authenticate login for a Perl CGI web script and am using the AuthCAS perl module (v 1.3.1). I can connect to the CAS server to get the service ticket but when I try to connect to validate the ticket my script returns with the following error from the IO::Socket::SSL module:
500 Can't connect to <CAS Server>:443 (Bad hostname '<CAS Server>')
(<CAS Server> substituted for real server name)
Symptoms/Tests:
1. If I type the generated URL for the authentication into the web browser's location bar it returns just fine with the expected XML snippet. So it is not a bad host name.
2. If I generate a script without using the AuthCAS module but using the IO::Socket::SSL module directly to query the CAS server for validation on the generated service ticket the Perl script will run fine from the command line but not in the browser.
3. If I add the AuthCAS module into the script in item 2, the script no longer works on the command line and still doesn't work in the browser.
Here is the bare-bones script that produces the error:
#!/usr/bin/perl
use strict;
use warnings;
use CGI;
use AuthCAS;
use CGI::Carp qw( fatalsToBrowser );
my $id = $ENV{QUERY_STRING};
my $q = new CGI;
my $target = "http://localhost/cgi-bin/testCAS.cgi";
my $cas = new AuthCAS(casUrl => 'https://cas_server/cas');
if ($id eq ""){
my $login_url = $cas->getServerLoginURL($target);
printf "Location: $login_url\n\n";
exit 0;
} else {
print $q->header();
print "CAS TEST<br>\n";
## When coming back from the CAS server a ticket is provided in the QUERY_STRING
print "QUERY_STRING = " . $id . "</br>\n";
## $ST should contain the received Service Ticket
my $ST = $q->param('ticket');
my $user = $cas->validateST($target, $ST); #### This is what fails
printf "Error: %s\n", &AuthCAS::get_errors() unless (defined $user);
}
Any ideas on where the conflict might be? | 0 |
26,843 | 08/25/2008 20:45:47 | 2,720 | 08/24/2008 17:15:55 | 1 | 0 | New Project : MySQL or SQL 2005 Express. | I am starting a new client/server project in work and I want to start using some of the newer technologies i've been reading about, LINQ and Generics being the main ones. Up until now I have been developing these types of applications with MySQL as clients were unwilling to pay the large licence costs for MSSQL.
I have played around a small amount with the express versions but have never actually developed anything with them. The new application will not have more than 5 concurrent connections but will be needed for daily reporting.
[1] Can MSSQL 2005 express still be downloaded? I cant seem to find it on the microsoft site.
I would be hesitant to use MSSQL 2008 on a project so soon after its release.
[2] Are the express version adequate for my needs, I'm sure loads of people reading this have used them. Did you encounter any problems? | mysql | mssql | null | null | null | null | open | New Project : MySQL or SQL 2005 Express.
===
I am starting a new client/server project in work and I want to start using some of the newer technologies i've been reading about, LINQ and Generics being the main ones. Up until now I have been developing these types of applications with MySQL as clients were unwilling to pay the large licence costs for MSSQL.
I have played around a small amount with the express versions but have never actually developed anything with them. The new application will not have more than 5 concurrent connections but will be needed for daily reporting.
[1] Can MSSQL 2005 express still be downloaded? I cant seem to find it on the microsoft site.
I would be hesitant to use MSSQL 2008 on a project so soon after its release.
[2] Are the express version adequate for my needs, I'm sure loads of people reading this have used them. Did you encounter any problems? | 0 |
26,845 | 08/25/2008 20:46:10 | 1,329,401 | 08/25/2008 03:16:36 | 46 | 5 | Do you use distributed version control? | I'd like to hear from people who are using distributed version control (aka distributed revision control, decentralized version control) and how they are finding it. What are you using, Mercurial, Darcs, Git, Bazaar? Are you still using it? If you've used client/server rcs in the past, are you finding it better, worse or just different? What could you tell me that would get me to jump on the bandwagon? Or jump off for that matter, I'd be interested to hear from people with negative experiences as well.
I'm currently looking at replacing our current source control system (Subversion) which is the impetus for this question.
(I'd be especially interested in anyone who's used it with co-workers in other countries, where your machines may not be on at the same time, and your connection is very slow.) | vcs | revision | version-control | sourcecontrol | null | null | open | Do you use distributed version control?
===
I'd like to hear from people who are using distributed version control (aka distributed revision control, decentralized version control) and how they are finding it. What are you using, Mercurial, Darcs, Git, Bazaar? Are you still using it? If you've used client/server rcs in the past, are you finding it better, worse or just different? What could you tell me that would get me to jump on the bandwagon? Or jump off for that matter, I'd be interested to hear from people with negative experiences as well.
I'm currently looking at replacing our current source control system (Subversion) which is the impetus for this question.
(I'd be especially interested in anyone who's used it with co-workers in other countries, where your machines may not be on at the same time, and your connection is very slow.) | 0 |
26,854 | 08/25/2008 20:48:17 | 403 | 08/05/2008 13:31:58 | 1 | 1 | guid REST URL for ado.net dataservice call? | Trying to use a guid as a resource id in a rest url but cant find any resource on how to.
My best right now (not working though) is:
http://localhost:49157/PhotogalleryDS.svc/gallery('1d03beb3-6d63-498b-aad7-fab0b1480996')
i only get:
<error>
<code/>
<message xml:lang="sv-SE">Syntax error '"' at position 0.</message>
</error>
| wcf-data-services | rest | null | null | null | null | open | guid REST URL for ado.net dataservice call?
===
Trying to use a guid as a resource id in a rest url but cant find any resource on how to.
My best right now (not working though) is:
http://localhost:49157/PhotogalleryDS.svc/gallery('1d03beb3-6d63-498b-aad7-fab0b1480996')
i only get:
<error>
<code/>
<message xml:lang="sv-SE">Syntax error '"' at position 0.</message>
</error>
| 0 |
26,855 | 08/25/2008 20:49:17 | 2,901 | 08/25/2008 20:49:17 | 1 | 0 | What's the fastest way to determine a full URL from a relative URL (given a base URL). | I'm currently using URI::URL to generate this, however it is isn't as fast as I'd like it to be. Does anyone know another way to do this that may be faster? | regex | perl | null | null | null | null | open | What's the fastest way to determine a full URL from a relative URL (given a base URL).
===
I'm currently using URI::URL to generate this, however it is isn't as fast as I'd like it to be. Does anyone know another way to do this that may be faster? | 0 |
26,857 | 08/25/2008 20:49:47 | 1,463 | 08/15/2008 17:26:44 | 220 | 15 | How do you programmatically fill in a form and 'POST' a web page? | Using C# and ASP.NET I want to programmatically fill in some values (4 text boxes) on a web page (form) and then 'POST' those values. How do I do this? | c# | asp.net | null | null | null | null | open | How do you programmatically fill in a form and 'POST' a web page?
===
Using C# and ASP.NET I want to programmatically fill in some values (4 text boxes) on a web page (form) and then 'POST' those values. How do I do this? | 0 |
26,860 | 08/25/2008 20:51:33 | 1,862 | 08/18/2008 23:53:20 | 578 | 60 | Limitations of screen readers. | I'm a web developer, and I want to make the web sites I develop more accessible to those using screen readers. What limitations do screen readers have that I should be most aware of, and what can I do to avoid hitting these limitations.
This question was sparked by reading another question about [non-image based captchas][1]. In there, a commenter said that honey pot form fields (form fields hidden with CSS that only a bot would fill in), are a bad idea, because screen readers would still pick them up.
Are screen readers really so primitive that they would read text that isn't even displayed on the screen? Ideally, couldn't you make a screen reader that waited until the page was finished loading, applied all css, and even ran Javascript onload functions before it figured out what was actually displayed, and then read that off to the user? You could probably even identify parts of the page that are menus or table of contents, and give some sort of easy way for those parts to be read exclusively or skipped over. I would think that the programming community could come up with a better solution to this problem.
[1]: http://stackoverflow.com/questions/8472/best-non-image-based-captcha | html | browser | accessibility | null | null | null | open | Limitations of screen readers.
===
I'm a web developer, and I want to make the web sites I develop more accessible to those using screen readers. What limitations do screen readers have that I should be most aware of, and what can I do to avoid hitting these limitations.
This question was sparked by reading another question about [non-image based captchas][1]. In there, a commenter said that honey pot form fields (form fields hidden with CSS that only a bot would fill in), are a bad idea, because screen readers would still pick them up.
Are screen readers really so primitive that they would read text that isn't even displayed on the screen? Ideally, couldn't you make a screen reader that waited until the page was finished loading, applied all css, and even ran Javascript onload functions before it figured out what was actually displayed, and then read that off to the user? You could probably even identify parts of the page that are menus or table of contents, and give some sort of easy way for those parts to be read exclusively or skipped over. I would think that the programming community could come up with a better solution to this problem.
[1]: http://stackoverflow.com/questions/8472/best-non-image-based-captcha | 0 |
26,863 | 08/25/2008 20:53:21 | 2,348 | 08/21/2008 19:00:04 | 1 | 2 | How do I REALLY reset the Visual Studio window layout? | I had a plugin installed in Visual Studio 2008, and it created some extra dockable windows. I have uninstalled it, and I can't get rid of the windows it created - I close them, but they always come back. They're just empty windows now, since the plugin is no longer present, but nothing I've tried gets rid of them. I've tried:
Window -> Reset Window Layout
Deleting the .suo files in my project directories
Deleting the Visual Studio 9.0 folder in my Application Settings directory
Any ideas? | visual-studio | null | null | null | null | null | open | How do I REALLY reset the Visual Studio window layout?
===
I had a plugin installed in Visual Studio 2008, and it created some extra dockable windows. I have uninstalled it, and I can't get rid of the windows it created - I close them, but they always come back. They're just empty windows now, since the plugin is no longer present, but nothing I've tried gets rid of them. I've tried:
Window -> Reset Window Layout
Deleting the .suo files in my project directories
Deleting the Visual Studio 9.0 folder in my Application Settings directory
Any ideas? | 0 |
26,875 | 08/25/2008 20:58:03 | 2,711 | 08/24/2008 16:51:53 | 1 | 0 | Setting up a large XCode project | I have a large exiting C++ project involving:
* 4 applications
* 50+ libraries
* 20+ third party libraries
It all builds fine on Windows using VS8, Linux using QMake (project uses Qt a lot). I also build it on MacOS using QMake but I was wanting to setup an XCode project to handle it in an IDE. I'm struggling to setup proper configuration to easily define dependencies, both to internal libraries and to the third party. I can do property sheets and .pri files in my (disturbed) sleep, but would appreciate some advice on building such large projects in XCode.
I've been experiencing with XCode configuration files and #including one from another but it does not seem to work as I would expect, especially when defining standard locations for header files etc.
Is there some good book describing the process of setting up XCode (remember it's C++, I'm not wanting to learn ObjC at this time)?
Or maybe a good open source project I could learn from?
Thanks! | xcode | null | null | null | null | null | open | Setting up a large XCode project
===
I have a large exiting C++ project involving:
* 4 applications
* 50+ libraries
* 20+ third party libraries
It all builds fine on Windows using VS8, Linux using QMake (project uses Qt a lot). I also build it on MacOS using QMake but I was wanting to setup an XCode project to handle it in an IDE. I'm struggling to setup proper configuration to easily define dependencies, both to internal libraries and to the third party. I can do property sheets and .pri files in my (disturbed) sleep, but would appreciate some advice on building such large projects in XCode.
I've been experiencing with XCode configuration files and #including one from another but it does not seem to work as I would expect, especially when defining standard locations for header files etc.
Is there some good book describing the process of setting up XCode (remember it's C++, I'm not wanting to learn ObjC at this time)?
Or maybe a good open source project I could learn from?
Thanks! | 0 |
26,877 | 08/25/2008 20:59:54 | 369 | 08/05/2008 08:33:43 | 506 | 34 | C# Event handlers | In C#, what is the difference (if any) between these two lines of code?
tmrMain.Elapsed += new ElapsedEventHandler(tmrMain_Tick);
and
tmrMain.Elapsed += tmrMain_Tick;
Both appear to work exactly the same. Does C# just assume you mean the former when you type the latter? | c# | events | syntax | delegates | null | null | open | C# Event handlers
===
In C#, what is the difference (if any) between these two lines of code?
tmrMain.Elapsed += new ElapsedEventHandler(tmrMain_Tick);
and
tmrMain.Elapsed += tmrMain_Tick;
Both appear to work exactly the same. Does C# just assume you mean the former when you type the latter? | 0 |
26,879 | 08/25/2008 21:01:14 | 1,144 | 08/12/2008 19:00:54 | 132 | 9 | Browser scrollbar | I have a website that is perfectely centered aligned. The CSS code works fine. The problem doesn't really have to do with CSS. I have headers for each page that perfectely match eachother.
However, when the content gets larger, Opera and FireFox show a scrollbar at the left so you can scroll to the content not on the screen. This makes my site jump a few pixels to the left. Thus the headers are not perfectely aligned anymore.
IE always has a scrollbar, so the site never jumps around in IE.
Does anyone know a JavaScript/CSS/HTML solution for this problem? | browsers | webdesign | null | null | null | null | open | Browser scrollbar
===
I have a website that is perfectely centered aligned. The CSS code works fine. The problem doesn't really have to do with CSS. I have headers for each page that perfectely match eachother.
However, when the content gets larger, Opera and FireFox show a scrollbar at the left so you can scroll to the content not on the screen. This makes my site jump a few pixels to the left. Thus the headers are not perfectely aligned anymore.
IE always has a scrollbar, so the site never jumps around in IE.
Does anyone know a JavaScript/CSS/HTML solution for this problem? | 0 |
26,882 | 08/25/2008 21:01:37 | 233 | 08/03/2008 20:19:32 | 386 | 20 | Postback with Modified Query String from Dropdown in ASP.NET | My asp.net page will render different controls based on which report a user has selected e.g. some reports require 5 drop downs, some two checkboxes and 6 dropdowns).
They can select a report using two methods. With `SelectedReport=MyReport` in the query string, or by selecting it from a dropdown. And it's a common case for them to come to the page with SelectedReport in the query string, and then change the report selected in the drop down.
My question is, is there anyway of making the dropdown modify the query string when it's selected. So I'd want `SelectedReport=MyNewReport` in the query string and the page to post back.
At the moment it's just doing a normal postback, which leaves the `SelectedReport=MyReport` in the query string, even if it's not the currently selected report. | asp.net | postback | query-string | null | null | null | open | Postback with Modified Query String from Dropdown in ASP.NET
===
My asp.net page will render different controls based on which report a user has selected e.g. some reports require 5 drop downs, some two checkboxes and 6 dropdowns).
They can select a report using two methods. With `SelectedReport=MyReport` in the query string, or by selecting it from a dropdown. And it's a common case for them to come to the page with SelectedReport in the query string, and then change the report selected in the drop down.
My question is, is there anyway of making the dropdown modify the query string when it's selected. So I'd want `SelectedReport=MyNewReport` in the query string and the page to post back.
At the moment it's just doing a normal postback, which leaves the `SelectedReport=MyReport` in the query string, even if it's not the currently selected report. | 0 |
26,897 | 08/25/2008 21:06:49 | 1,627 | 08/17/2008 16:30:55 | 884 | 43 | Recommendations for Javascript Editor on Windows? | Are there any good recommendations anyone can provide for a good Javascript editor on Windows?
I currently use combinations of FireBug and TextPad but would hate to miss out on the party if there are better options out there.
Thanks. | javascript | editor | null | null | null | 06/11/2012 08:31:47 | not constructive | Recommendations for Javascript Editor on Windows?
===
Are there any good recommendations anyone can provide for a good Javascript editor on Windows?
I currently use combinations of FireBug and TextPad but would hate to miss out on the party if there are better options out there.
Thanks. | 4 |
26,903 | 08/25/2008 21:08:45 | 1,782 | 08/18/2008 14:30:58 | 877 | 56 | How can you require a constructor with no parameters for types implementing an interface? | Is there a way?
I need all types that implement a specific interface to have a parameterless constructor, can it be done? | interface | c# | constructor | null | null | null | open | How can you require a constructor with no parameters for types implementing an interface?
===
Is there a way?
I need all types that implement a specific interface to have a parameterless constructor, can it be done? | 0 |
26,904 | 08/25/2008 21:08:45 | 2,711 | 08/24/2008 16:51:53 | 1 | 0 | Getting QMake to generate a proper .app | I have a large exiting C++ project involving:
* 4 applications
* 50+ libraries
* 20+ third party libraries
The project uses QMake (part of Trolltech's Qt) to build the production version on Linux, but I've been playing around at building it on MacOS.
I can build in on MacOS using QMake just fine but I'm having trouble producing the final .app. It needs collecting all the third party frameworks and dynamic libraries, all the project's dynamic libraries and making sure the application finds them.
I've read online about using install_name_tool but was wondering if there's a process to automate it.
(Maybe the answer is to use XCode, see related question, but it would have issues with building uic and moc)
Thanks | qt | xcode | qmake | null | null | null | open | Getting QMake to generate a proper .app
===
I have a large exiting C++ project involving:
* 4 applications
* 50+ libraries
* 20+ third party libraries
The project uses QMake (part of Trolltech's Qt) to build the production version on Linux, but I've been playing around at building it on MacOS.
I can build in on MacOS using QMake just fine but I'm having trouble producing the final .app. It needs collecting all the third party frameworks and dynamic libraries, all the project's dynamic libraries and making sure the application finds them.
I've read online about using install_name_tool but was wondering if there's a process to automate it.
(Maybe the answer is to use XCode, see related question, but it would have issues with building uic and moc)
Thanks | 0 |
26,947 | 08/25/2008 21:28:32 | 2,052 | 08/20/2008 01:01:55 | 1 | 0 | How to implement a web scraper in PHP? | What built-in PHP functions are useful for web scraping? What are some good resources (web or print) for getting up to speed on web scraping with PHP? | php | screen-scraping | web-scraping | null | null | null | open | How to implement a web scraper in PHP?
===
What built-in PHP functions are useful for web scraping? What are some good resources (web or print) for getting up to speed on web scraping with PHP? | 0 |
26,959 | 08/25/2008 21:33:17 | 1,674 | 08/17/2008 22:51:33 | 11 | 1 | Managing interruptions with increased seniority... | As developers advance in seniority, they are more frequently the "go-to" person for questions from business people, other developers, and other teams.
As we know, interruptions have a devastating impact on programming productivity.
How do people deal with this? Do you give up on the idea of writing code yourself and see your job as a mentor/point-person for the other staff? Do you just set up "office hours" when questions are welcome and other hours when they are not? Try to find a work environment with more self-sufficient developers? (I had someone with the same title I have aske me how to debug a program last week).
| productivity | interruptions | null | null | null | null | open | Managing interruptions with increased seniority...
===
As developers advance in seniority, they are more frequently the "go-to" person for questions from business people, other developers, and other teams.
As we know, interruptions have a devastating impact on programming productivity.
How do people deal with this? Do you give up on the idea of writing code yourself and see your job as a mentor/point-person for the other staff? Do you just set up "office hours" when questions are welcome and other hours when they are not? Try to find a work environment with more self-sufficient developers? (I had someone with the same title I have aske me how to debug a program last week).
| 0 |
26,964 | 08/25/2008 21:36:24 | 2,474 | 08/22/2008 12:57:03 | 59 | 12 | What is the best way to organize my C project code and its external libraries? | I'm starting a new C project, which is largely OSS-based. It'll also be on SourceForge, and I'd like to take this opportunity to learn established best practices for organizing this kind of code. I'm using libraries like libcurl and libz, and I'll compile it using MinGW and MSYS.
I'll be distributing copies the source of all libraries I'm using with my projet, so people downloading the source won't have to go peck and hunt for dependencies. What should I call the directory I store the libraries in? So far, I hesitate between:
- lib, because they are libraries. However, 'lib' has a different connotation in UNIX-world.
- src, because they are source files.
- 3rdparty, because I didn't write it.
And where should I compile these libraries to? Should I simply configure and install them to the system root, or should I set up a directory where all libraries should compile to, and link from there? Obviously, this will have ramifications for my Makefile.
How should I go about this? Are there established conventions that I should follow? Are they written down somewhere? | c | opensource | organizing | null | null | null | open | What is the best way to organize my C project code and its external libraries?
===
I'm starting a new C project, which is largely OSS-based. It'll also be on SourceForge, and I'd like to take this opportunity to learn established best practices for organizing this kind of code. I'm using libraries like libcurl and libz, and I'll compile it using MinGW and MSYS.
I'll be distributing copies the source of all libraries I'm using with my projet, so people downloading the source won't have to go peck and hunt for dependencies. What should I call the directory I store the libraries in? So far, I hesitate between:
- lib, because they are libraries. However, 'lib' has a different connotation in UNIX-world.
- src, because they are source files.
- 3rdparty, because I didn't write it.
And where should I compile these libraries to? Should I simply configure and install them to the system root, or should I set up a directory where all libraries should compile to, and link from there? Obviously, this will have ramifications for my Makefile.
How should I go about this? Are there established conventions that I should follow? Are they written down somewhere? | 0 |
26,971 | 08/25/2008 21:39:35 | 2,133 | 08/20/2008 13:53:25 | 1 | 0 | NHibernate vs LINQ | As someone wo hasn't used either technology on real-world projects I wonder if anyone knows how these two complement each other and how much their functionalities overlap? | linq | nhibernate | null | null | null | null | open | NHibernate vs LINQ
===
As someone wo hasn't used either technology on real-world projects I wonder if anyone knows how these two complement each other and how much their functionalities overlap? | 0 |
26,984 | 08/25/2008 21:46:43 | 2,644 | 08/23/2008 21:56:47 | 169 | 16 | What is the general rule of thumbs for creating an Exception in Java? | I have been in both situations:
- Creating too much custom Exceptions
- Using too much the general Exception class
In both cases the project started OK but soon became an overhead to maintain (and refactor).
So what is the best practice regarding the creation of your own Exceptions? | java | exception | null | null | null | null | open | What is the general rule of thumbs for creating an Exception in Java?
===
I have been in both situations:
- Creating too much custom Exceptions
- Using too much the general Exception class
In both cases the project started OK but soon became an overhead to maintain (and refactor).
So what is the best practice regarding the creation of your own Exceptions? | 0 |
27,009 | 08/25/2008 22:04:40 | 2,822 | 08/25/2008 11:42:23 | 1 | 3 | How does one implement FxCop / static analysis on an existing code base | What are some of the strategies that are used when implementing FxCop / static analysis on existing code bases with existing violations? How can one most effectively reduce the static analysis violations? | metrics | static-analysis | fxcop | null | null | null | open | How does one implement FxCop / static analysis on an existing code base
===
What are some of the strategies that are used when implementing FxCop / static analysis on existing code bases with existing violations? How can one most effectively reduce the static analysis violations? | 0 |
27,018 | 08/25/2008 22:09:23 | 2,822 | 08/25/2008 11:42:23 | 6 | 3 | Single responsiblity principle: granularity of the reason to change | When applying the Single Responsibility Principle and looking at a class's reason to change, how do you determine whether that reason too change is too granular, or not granular enough? | oop | null | null | null | null | null | open | Single responsiblity principle: granularity of the reason to change
===
When applying the Single Responsibility Principle and looking at a class's reason to change, how do you determine whether that reason too change is too granular, or not granular enough? | 0 |
27,020 | 08/25/2008 22:11:30 | 2,798 | 08/25/2008 07:51:57 | 1 | 0 | Alternating coloring groups of rows in Excel | I have an Excel Spreadsheet like this
<pre>
id | data for id
| more data for id
id | data for id
id | data for id
| more data for id
| even more data for id
id | data for id
| more data for id
id | data for id
id | data for id
| more data for id
</pre>
Now I want to group the data of one id by alternating the background color of the rows
<pre>
var color = white
for each row
if the first cell is not empty and color is white
set color to green
if the first cell is not empty and color is green
set color to white
set background of row to color
</pre>
Can anyone help me with a macro or some VBA code
Thanks | excel | null | null | null | null | null | open | Alternating coloring groups of rows in Excel
===
I have an Excel Spreadsheet like this
<pre>
id | data for id
| more data for id
id | data for id
id | data for id
| more data for id
| even more data for id
id | data for id
| more data for id
id | data for id
id | data for id
| more data for id
</pre>
Now I want to group the data of one id by alternating the background color of the rows
<pre>
var color = white
for each row
if the first cell is not empty and color is white
set color to green
if the first cell is not empty and color is green
set color to white
set background of row to color
</pre>
Can anyone help me with a macro or some VBA code
Thanks | 0 |
27,027 | 08/25/2008 22:13:58 | 116 | 08/02/2008 05:51:57 | 3,824 | 204 | Best approaches to versioning Mac "bundle" files | So you know a lot of Mac apps use "bundles": It looks like a single file to your application, but it's actually a folder with many files inside.
It makes the application nice and speedy (you can update an image in a document, and it just copies that image into the folder without having to rewrite the document file, etc), but it causes problems for version control, since most versioning systems know about files but not directories.
Any ideas on the best way to handle this? Are any of the versioning systems more adept in this area?
| version-control | osx | bundle | null | null | null | open | Best approaches to versioning Mac "bundle" files
===
So you know a lot of Mac apps use "bundles": It looks like a single file to your application, but it's actually a folder with many files inside.
It makes the application nice and speedy (you can update an image in a document, and it just copies that image into the folder without having to rewrite the document file, etc), but it causes problems for version control, since most versioning systems know about files but not directories.
Any ideas on the best way to handle this? Are any of the versioning systems more adept in this area?
| 0 |
27,030 | 08/25/2008 22:15:21 | 2,176 | 08/20/2008 18:32:50 | 1 | 0 | Comparing Arrays of Objects in JavaScript | I want to compare 2 arrays of objects in JavaScript code. The objects have 8 total properties, but each object will not have a value for each, and the arrays are never going to be any larger than 8 items each, so maybe the brute force method of traversing each and then looking at the values of the 8 properties is the easiest way to do what I want to do, but before implementing, I wanted to see if anyone had a more elegant solution. Any thoughts? | javascript | arrays | comparison | null | null | null | open | Comparing Arrays of Objects in JavaScript
===
I want to compare 2 arrays of objects in JavaScript code. The objects have 8 total properties, but each object will not have a value for each, and the arrays are never going to be any larger than 8 items each, so maybe the brute force method of traversing each and then looking at the values of the 8 properties is the easiest way to do what I want to do, but before implementing, I wanted to see if anyone had a more elegant solution. Any thoughts? | 0 |
27,044 | 08/25/2008 22:28:08 | 234 | 08/03/2008 20:25:38 | 2,223 | 159 | How can I set LANG to ascii? | I'm accessing an ubuntu machine using PuTTY, and using gcc.
The default `LANG` environment variable on this machine is set to `en_NZ.UTF-8`, which causes GCC to think PuTTY is capable of displaying UTF-8 text, which it doesn't seem to be.
Maybe it's my font, I don't know - it does this:
foo.c:1: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â at end of input
If I set it with `export LANG=en_NZ`, then this causes GCC to behave correctly, I get:
foo.c:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
but this then causes everything else to go wrong. For example
man foo
man: can't set the locale; make sure $LC_* and $LANG are correct
I've trawled google and I can't for the life of me find out what I have to put in there for it to just use ascii. `en_NZ.ASCII` doesn't work, nor do any of the other things I can find.
Thanks | linux | bash | language | utf8 | null | null | open | How can I set LANG to ascii?
===
I'm accessing an ubuntu machine using PuTTY, and using gcc.
The default `LANG` environment variable on this machine is set to `en_NZ.UTF-8`, which causes GCC to think PuTTY is capable of displaying UTF-8 text, which it doesn't seem to be.
Maybe it's my font, I don't know - it does this:
foo.c:1: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â at end of input
If I set it with `export LANG=en_NZ`, then this causes GCC to behave correctly, I get:
foo.c:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
but this then causes everything else to go wrong. For example
man foo
man: can't set the locale; make sure $LC_* and $LANG are correct
I've trawled google and I can't for the life of me find out what I have to put in there for it to just use ascii. `en_NZ.ASCII` doesn't work, nor do any of the other things I can find.
Thanks | 0 |
27,054 | 08/25/2008 22:38:02 | 2,900 | 08/25/2008 20:47:19 | 1 | 6 | How do you deal with the light side and dark side of distributed version control systems ? | I've had some discussions recently at work about switching from Subversion to a DVCS like bazaar, and I would like to get other people's opinion.
I've managed to crystallize my reluctance to do so into a simple parallel.
Version Control can be used well or badly.
The 'light side' of version control is when you use it to keep track of your changes, are able to go back to older versions when you break stuff, and when you publish your changes so your peers can see your work-in-progress.
The 'dark side' of version control is when you don't use it properly so you don't 'checkpoint' your work by committing regularly, you keep a bunch of changes in your local checkout, and you don't share your changes with others as you make them.
Subversion makes both the light side and the dark side relatively hard. All the basics work, but few people really use branching in Subversion (beyond tagging and releasing) because merging is not straightforward at all. The support for it in Subversion itself is terrible, and there are scripts like svnmerge that make it better, but it's still not very good. So, these days, with good branching and merging support considered more and more like the necessity it is for collaborative development, Subversion doesn't match up.
On the other hand, the 'dark side' is pretty tough to follow too. You only need to be bitten once by not having your local changes commited once in a while to the online repository, and breaking your code with a simple edit you don't even remember making. So you end up making regular commits and people can see the work you're doing.
So, in the end Subversion ends up being a good middle-of-the-road VCS that, while a bit cumbersome for implementing the best practices, still makes it hard to get things very wrong.
In contrast, with a DVCS the cost of either going completely light side or dark side is a lot lower. Branching and merging is a lot simpler with these modern VCS systems. But the distributed aspect makes it easy to work in a set of local branches on your own machine, giving you the granular commits you need to checkpoint your work, possibly without ever publishing your changes so others can see, review, and collaborate.
So in a nutshell, here's the question: if I give our developers at work a DVCS, how can I make sure they use it to go to the 'light side', still publish their changes in a central location regularly, and make them understand that their one week local hack they didn't want to share yet might be just the thing some other developer could use to finish a feature while the first one is on holiday ?
If both the light side and the dark side of DVCS are so easy to get to, how do I keep them away from the dark side ? | version-control | svn | null | null | null | null | open | How do you deal with the light side and dark side of distributed version control systems ?
===
I've had some discussions recently at work about switching from Subversion to a DVCS like bazaar, and I would like to get other people's opinion.
I've managed to crystallize my reluctance to do so into a simple parallel.
Version Control can be used well or badly.
The 'light side' of version control is when you use it to keep track of your changes, are able to go back to older versions when you break stuff, and when you publish your changes so your peers can see your work-in-progress.
The 'dark side' of version control is when you don't use it properly so you don't 'checkpoint' your work by committing regularly, you keep a bunch of changes in your local checkout, and you don't share your changes with others as you make them.
Subversion makes both the light side and the dark side relatively hard. All the basics work, but few people really use branching in Subversion (beyond tagging and releasing) because merging is not straightforward at all. The support for it in Subversion itself is terrible, and there are scripts like svnmerge that make it better, but it's still not very good. So, these days, with good branching and merging support considered more and more like the necessity it is for collaborative development, Subversion doesn't match up.
On the other hand, the 'dark side' is pretty tough to follow too. You only need to be bitten once by not having your local changes commited once in a while to the online repository, and breaking your code with a simple edit you don't even remember making. So you end up making regular commits and people can see the work you're doing.
So, in the end Subversion ends up being a good middle-of-the-road VCS that, while a bit cumbersome for implementing the best practices, still makes it hard to get things very wrong.
In contrast, with a DVCS the cost of either going completely light side or dark side is a lot lower. Branching and merging is a lot simpler with these modern VCS systems. But the distributed aspect makes it easy to work in a set of local branches on your own machine, giving you the granular commits you need to checkpoint your work, possibly without ever publishing your changes so others can see, review, and collaborate.
So in a nutshell, here's the question: if I give our developers at work a DVCS, how can I make sure they use it to go to the 'light side', still publish their changes in a central location regularly, and make them understand that their one week local hack they didn't want to share yet might be just the thing some other developer could use to finish a feature while the first one is on holiday ?
If both the light side and the dark side of DVCS are so easy to get to, how do I keep them away from the dark side ? | 0 |
27,065 | 08/25/2008 22:52:02 | 1,666 | 08/17/2008 21:07:18 | 245 | 18 | Tool to read and display Java .class versions | Do any of you know of a tool that will search for .class files and then display their compiled versions?
I know you can look at them individually in a hex editor but I have a lot of class files to look over (something in my giant application is compiling to Java6 for some reason). | java | null | null | null | null | null | open | Tool to read and display Java .class versions
===
Do any of you know of a tool that will search for .class files and then display their compiled versions?
I know you can look at them individually in a hex editor but I have a lot of class files to look over (something in my giant application is compiling to Java6 for some reason). | 0 |
27,071 | 08/25/2008 22:55:48 | 39,040 | 11/19/2008 17:53:34 | 3 | 2 | Pointer to Pointer Managed C++ | I have an old C library with a function that takes a void**:
oldFunction(void** pStuff);
I'm trying to call this function from managed C++ (m_pStuff is a member of the parent ref class of type void*):
oldFunction( static_cast<sqlite3**>( &m_pStuff ) );
This gives me the following error from Visual Studio:
> error C2440: 'static_cast' : cannot convert from 'cli::interior_ptr<Type>' to 'void **'
Any advice on how to resolve this, I'm guessing the compiler is converting the void* member pointer to a cli::interior_ptr behind my back. | managed | c++ | pointers | null | null | null | open | Pointer to Pointer Managed C++
===
I have an old C library with a function that takes a void**:
oldFunction(void** pStuff);
I'm trying to call this function from managed C++ (m_pStuff is a member of the parent ref class of type void*):
oldFunction( static_cast<sqlite3**>( &m_pStuff ) );
This gives me the following error from Visual Studio:
> error C2440: 'static_cast' : cannot convert from 'cli::interior_ptr<Type>' to 'void **'
Any advice on how to resolve this, I'm guessing the compiler is converting the void* member pointer to a cli::interior_ptr behind my back. | 0 |
27,077 | 08/25/2008 22:58:43 | 1,438 | 08/15/2008 15:44:20 | 299 | 17 | Is there any way to prevent find from digging down recursively into subdirectories? | When I do:
$ find /
It searches the entire system. How do I prevent that?
(This question comes from an "[answer](http://stackoverflow.com/questions/18836/why-doesnt-find-find-anything#26182)" to another question.) | unix | bash | shell | ksh | null | null | open | Is there any way to prevent find from digging down recursively into subdirectories?
===
When I do:
$ find /
It searches the entire system. How do I prevent that?
(This question comes from an "[answer](http://stackoverflow.com/questions/18836/why-doesnt-find-find-anything#26182)" to another question.) | 0 |
27,078 | 08/25/2008 22:58:57 | 417 | 08/05/2008 14:45:33 | 243 | 13 | IE6 security login (debugging via VirtualPC) | I am debugging my ASP.NET application on my Windows XP box with a virtual directory set up in IIS (5.1).
I am also running VirtualPC with XP and IE6 for testing purposes. When I connect to my real machine from the virtual machine, I enter the URL: http://machinename/projectname.
I get a security popup to connect to my machine (which I expect), but the User name field is disabled. I cannot change it from machinename\Guest to machinename\username in order to connect.
How do I get this to enable so I can enter the correct credentials. | asp.net | iis | internet-explorer | null | null | null | open | IE6 security login (debugging via VirtualPC)
===
I am debugging my ASP.NET application on my Windows XP box with a virtual directory set up in IIS (5.1).
I am also running VirtualPC with XP and IE6 for testing purposes. When I connect to my real machine from the virtual machine, I enter the URL: http://machinename/projectname.
I get a security popup to connect to my machine (which I expect), but the User name field is disabled. I cannot change it from machinename\Guest to machinename\username in order to connect.
How do I get this to enable so I can enter the correct credentials. | 0 |
27,095 | 08/25/2008 23:09:30 | 547 | 08/06/2008 16:09:22 | 474 | 30 | The Google Calculator Glitch, could float vs. double be a possible reason? | I did this Just for kicks (so, not exactly a question, i can see the downmodding happening already) but, in lieu of Google's newfound [inability][1] to do [math][2] [correctly][3] (check it! according to google 500,000,000,000,002 - 500,000,000,000,001 = 0), i figured i'd try the following in C to run a little theory.
int main()
{
char* a = "399999999999999";
char* b = "399999999999998";
float da = atof(a);
float db = atof(b);
printf("%s - %s = %f\n", a, b, da-db);
a = "500000000000002";
b = "500000000000001";
da = atof(a);
db = atof(b);
printf("%s - %s = %f\n", a, b, da-db);
}
When you run this program, you get the following
399999999999999 - 399999999999998 = 0.000000
500000000000002 - 500000000000001 = 0.000000
It would seem like Google is using simple 32 bit floating precision (the error here), if you switch float for double in the above code, you fix the issue! Could this be it?
/mp
[1]: http://www.google.com/search?hl=en&q=1999999999999999-1999999999999995&btnG=Search
[2]: http://www.google.com/search?hl=en&q=400000000000002-400000000000001&btnG=Search
[3]: http://www.google.com/search?hl=en&q=10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001-10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000&btnG=Search | google | calculator | c | bad-math | null | null | open | The Google Calculator Glitch, could float vs. double be a possible reason?
===
I did this Just for kicks (so, not exactly a question, i can see the downmodding happening already) but, in lieu of Google's newfound [inability][1] to do [math][2] [correctly][3] (check it! according to google 500,000,000,000,002 - 500,000,000,000,001 = 0), i figured i'd try the following in C to run a little theory.
int main()
{
char* a = "399999999999999";
char* b = "399999999999998";
float da = atof(a);
float db = atof(b);
printf("%s - %s = %f\n", a, b, da-db);
a = "500000000000002";
b = "500000000000001";
da = atof(a);
db = atof(b);
printf("%s - %s = %f\n", a, b, da-db);
}
When you run this program, you get the following
399999999999999 - 399999999999998 = 0.000000
500000000000002 - 500000000000001 = 0.000000
It would seem like Google is using simple 32 bit floating precision (the error here), if you switch float for double in the above code, you fix the issue! Could this be it?
/mp
[1]: http://www.google.com/search?hl=en&q=1999999999999999-1999999999999995&btnG=Search
[2]: http://www.google.com/search?hl=en&q=400000000000002-400000000000001&btnG=Search
[3]: http://www.google.com/search?hl=en&q=10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001-10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000&btnG=Search | 0 |
27,099 | 08/25/2008 23:14:53 | 2,600 | 08/23/2008 13:40:14 | 236 | 15 | What to do with extra screen real estate? | I'm a big fan of screen real estate. I love [big monitors and multiple monitors][1]. I ran dual 19" CRTs for years, and switched to dual 19" LCDs a few years ago. That's still what I run at home, but I recently started a new job where I wrangled a big hardware budget and promptly blew a bunch of it on twin 24" monitors. I really love these screens, but I feel like I'm not getting the most out of them.
Two big, widescreen monitors like these really feels like four regular monitors to me, since I can keep four web browsers or word documents open at the same time. I'll occasionally fill a whole screen with a single program (usually an IDE or Excel) but that's the exception. Problem is I'm having trouble using more than three windows at a time (yeah, I know, poor me right?). Either the extreme right or the extreme left of my screen just ends up getting neglected, either remaining empty or holding some Firefox instance that was related to whatever I was doing an hour ago. So I'm asking those with experience with enormous amounts of screen real estate (triple monitors or dual widescreens), what's the best way to put all that area to good use?
[1]: http://stackoverflow.com/questions/26625/one-large-monitor-or-dual-monitor-setup#27050 | hardware | null | null | null | null | null | open | What to do with extra screen real estate?
===
I'm a big fan of screen real estate. I love [big monitors and multiple monitors][1]. I ran dual 19" CRTs for years, and switched to dual 19" LCDs a few years ago. That's still what I run at home, but I recently started a new job where I wrangled a big hardware budget and promptly blew a bunch of it on twin 24" monitors. I really love these screens, but I feel like I'm not getting the most out of them.
Two big, widescreen monitors like these really feels like four regular monitors to me, since I can keep four web browsers or word documents open at the same time. I'll occasionally fill a whole screen with a single program (usually an IDE or Excel) but that's the exception. Problem is I'm having trouble using more than three windows at a time (yeah, I know, poor me right?). Either the extreme right or the extreme left of my screen just ends up getting neglected, either remaining empty or holding some Firefox instance that was related to whatever I was doing an hour ago. So I'm asking those with experience with enormous amounts of screen real estate (triple monitors or dual widescreens), what's the best way to put all that area to good use?
[1]: http://stackoverflow.com/questions/26625/one-large-monitor-or-dual-monitor-setup#27050 | 0 |
27,108 | 08/25/2008 23:21:43 | 2,758 | 08/24/2008 22:12:45 | 31 | 5 | Perfmon File Analysis Tools | I have a bunch of perfmon files that have captured information over a period of time. Whats the best tool to crunch this information? Idealy I'd like to be able to see avg stats per hour for the object counters that have been monitored. | performance | null | null | null | null | null | open | Perfmon File Analysis Tools
===
I have a bunch of perfmon files that have captured information over a period of time. Whats the best tool to crunch this information? Idealy I'd like to be able to see avg stats per hour for the object counters that have been monitored. | 0 |
27,129 | 08/25/2008 23:51:06 | 797 | 08/09/2008 02:14:04 | 320 | 16 | Charting library for Java and .Net | Can anyone recommend a library for chart generation (bar charts, pie charts etc.) which runs on both Java and .Net? | .net | java | charts | null | null | null | open | Charting library for Java and .Net
===
Can anyone recommend a library for chart generation (bar charts, pie charts etc.) which runs on both Java and .Net? | 0 |
27,138 | 08/26/2008 00:01:55 | 1,992 | 08/19/2008 18:04:16 | 129 | 9 | iPhone app that access the Core Location framework over web | I was wondering if I could access the iPhones Core Location framework over a website?
My goal is to build a webapp/website that the iPhone would browse to, then upload its current GPS location. This would be a simple site primary for friends/family so we could locate each other. I can have them manually enter lng/lat but its not the easiest thing to find. If the iPhone could display or upload this automatically it would be great.
I don't own a Mac yet (waiting for the new Mac Book Pro) but would like something a little more automatic right now. Once I have the mac I could download the SDK and build a better version later. For now a webapp version would be great if possible. Thanks. | iphone | web-applications | gps | null | null | null | open | iPhone app that access the Core Location framework over web
===
I was wondering if I could access the iPhones Core Location framework over a website?
My goal is to build a webapp/website that the iPhone would browse to, then upload its current GPS location. This would be a simple site primary for friends/family so we could locate each other. I can have them manually enter lng/lat but its not the easiest thing to find. If the iPhone could display or upload this automatically it would be great.
I don't own a Mac yet (waiting for the new Mac Book Pro) but would like something a little more automatic right now. Once I have the mac I could download the SDK and build a better version later. For now a webapp version would be great if possible. Thanks. | 0 |
27,148 | 08/26/2008 00:17:27 | 2,495 | 08/22/2008 14:30:23 | 43 | 1 | merge rss feeds | I want to merge multiple rss feeds into a single feed, removing any duplicates. Specifically, I'm interested in merging the feeds for the [tags](http://stackoverflow.com/tags) I'm interested in.
[A quick [search](http://www.google.com/search?q=rss+merge+reader) turned up some promising links, which I don't have time to visit at the moment]
---
Broadly speaking, the ideal would be a reader that would list all the available tags on the site and toggle them on and off, allowing me to explore what's available, keep track of questions I've visited, new answers on interesting feeds, etc, etc . . . though I don't suppose such a things exists right now.
As I randomly explore the site and see questions I think are interesting, I inevitably find "oh yes, that one looked interesting a couple days ago when I read it the first time, and hasn't been updated since". It would be much nicer if my machine would keep track of such deails for me :)
| rss | null | null | null | null | null | open | merge rss feeds
===
I want to merge multiple rss feeds into a single feed, removing any duplicates. Specifically, I'm interested in merging the feeds for the [tags](http://stackoverflow.com/tags) I'm interested in.
[A quick [search](http://www.google.com/search?q=rss+merge+reader) turned up some promising links, which I don't have time to visit at the moment]
---
Broadly speaking, the ideal would be a reader that would list all the available tags on the site and toggle them on and off, allowing me to explore what's available, keep track of questions I've visited, new answers on interesting feeds, etc, etc . . . though I don't suppose such a things exists right now.
As I randomly explore the site and see questions I think are interesting, I inevitably find "oh yes, that one looked interesting a couple days ago when I read it the first time, and hasn't been updated since". It would be much nicer if my machine would keep track of such deails for me :)
| 0 |
27,153 | 08/26/2008 00:19:00 | 2,470 | 08/22/2008 12:42:38 | 83 | 21 | Development resources for Mono on PS3 | I have been considering taking the plunge and installing Linux on my Playstation 3. As C# is my current language of choice, the next logical step would be to install Mono.
I have done a little research and found that [http://psubuntu.com/wiki/InstallationInstructions][1] has instruction on installing Ubuntu and links to download an ISO containing a PS3 specific version of Ubuntu. There is also this cool project at [http://code.google.com/p/celldotnet/][2] that has developed some code to utilize the 6 additional SPU cores of the CPU, not just the general-purpose one that you have access to by default.
The problem is that the project documentation seems a little thin. Has anyone set up a PS3 to develop .NET code? If so, what problems did you encounter? Does anyone have any code samples of how to even partially load up one of these monster processors?
[1]: http://psubuntu.com/wiki/InstallationInstructions
[2]: http://code.google.com/p/celldotnet/ | c# | mono | playstation | null | null | null | open | Development resources for Mono on PS3
===
I have been considering taking the plunge and installing Linux on my Playstation 3. As C# is my current language of choice, the next logical step would be to install Mono.
I have done a little research and found that [http://psubuntu.com/wiki/InstallationInstructions][1] has instruction on installing Ubuntu and links to download an ISO containing a PS3 specific version of Ubuntu. There is also this cool project at [http://code.google.com/p/celldotnet/][2] that has developed some code to utilize the 6 additional SPU cores of the CPU, not just the general-purpose one that you have access to by default.
The problem is that the project documentation seems a little thin. Has anyone set up a PS3 to develop .NET code? If so, what problems did you encounter? Does anyone have any code samples of how to even partially load up one of these monster processors?
[1]: http://psubuntu.com/wiki/InstallationInstructions
[2]: http://code.google.com/p/celldotnet/ | 0 |
27,179 | 08/26/2008 00:59:04 | 2,128 | 08/20/2008 13:32:09 | 243 | 4 | C: Network Programming | I am relatively new to the C language, but I'm a very fast learner. I'm looking to do some basic network programming in C but I'm not sure how to start. Could anyone point me to a good guide or tutorial for C Network Programming? | c | network-programming | null | null | null | null | open | C: Network Programming
===
I am relatively new to the C language, but I'm a very fast learner. I'm looking to do some basic network programming in C but I'm not sure how to start. Could anyone point me to a good guide or tutorial for C Network Programming? | 0 |
27,195 | 08/26/2008 01:17:25 | 479 | 08/06/2008 08:37:10 | 155 | 12 | Can fogbugz track case dependencies? | Can fogbugz track case dependencies? | fogbugz | null | null | null | null | null | open | Can fogbugz track case dependencies?
===
Can fogbugz track case dependencies? | 0 |
27,206 | 08/26/2008 01:29:27 | 1,363 | 08/14/2008 18:24:19 | 99 | 3 | What are the benifits of using partitons with Enterprise edition of SQL 2005 | I'm comparing between two techniques to create partitioned tables in SQL 2005.
* Use partitioned views with a standard version of SQL 2005 (described [here][1])
* Use the built in partition in the Enterprise edition of SQL 2005 (described [here][2])
Given that the enterprise edition is much more expensive, I would like to know what are the main benefits of the newer enterprise built-in implementation. Is it just an time saver for the implementation itself. Or will I gain real performance on large DBs?
I know i can adjust the constraints in the first option to keep a sliding window into the partitions. Can I do it with the built in version?
[1]: http://www.sqlservercentral.com/articles/SQL+Server+2005/61676/
[2]: http://www.sqlservercentral.com/articles/SQL+Server+2005/61765/ | sql | sql2005 | sqlpartitions | null | null | null | open | What are the benifits of using partitons with Enterprise edition of SQL 2005
===
I'm comparing between two techniques to create partitioned tables in SQL 2005.
* Use partitioned views with a standard version of SQL 2005 (described [here][1])
* Use the built in partition in the Enterprise edition of SQL 2005 (described [here][2])
Given that the enterprise edition is much more expensive, I would like to know what are the main benefits of the newer enterprise built-in implementation. Is it just an time saver for the implementation itself. Or will I gain real performance on large DBs?
I know i can adjust the constraints in the first option to keep a sliding window into the partitions. Can I do it with the built in version?
[1]: http://www.sqlservercentral.com/articles/SQL+Server+2005/61676/
[2]: http://www.sqlservercentral.com/articles/SQL+Server+2005/61765/ | 0 |
27,222 | 08/26/2008 01:47:29 | 889 | 08/10/2008 08:04:03 | 161 | 12 | DOM manipulation in PHP | I am looking for good methods of manipulating HTML in PHP. For example, the problem I'm currently have is dealing with malformed html.
I am getting input that looks something like this:
<div>This is some <b>text
As you noticed, the html is missing closing tags. I could use regex or a XML Parser to solve this problem. However, it is likely that I will have to do other DOM manipulation in the future. I am wonder if there is any good PHP libraries that handle DOM manipulation similar to how Javascript deals with DOM manipulation. | php | dom | null | null | null | null | open | DOM manipulation in PHP
===
I am looking for good methods of manipulating HTML in PHP. For example, the problem I'm currently have is dealing with malformed html.
I am getting input that looks something like this:
<div>This is some <b>text
As you noticed, the html is missing closing tags. I could use regex or a XML Parser to solve this problem. However, it is likely that I will have to do other DOM manipulation in the future. I am wonder if there is any good PHP libraries that handle DOM manipulation similar to how Javascript deals with DOM manipulation. | 0 |
27,240 | 08/26/2008 01:57:51 | 1,666 | 08/17/2008 21:07:18 | 245 | 19 | Why aren't Enumerations Iterable? | In Java 5 and above you have the foreach loop, which works magically on anything that implements Iterable:
for (Object o : list) {
doStuff(o);
}
However, Enumerable still does not implement Iterable, meaning that do iterate over an Enumeration you must do the following:
for(; e.hasMoreElements() ;) {
doStuff(e.getNextElement());
}
Does anyone know if there is a reason why Enumeration still does not implement Iterable? | java | enumeration | iterable | null | null | null | open | Why aren't Enumerations Iterable?
===
In Java 5 and above you have the foreach loop, which works magically on anything that implements Iterable:
for (Object o : list) {
doStuff(o);
}
However, Enumerable still does not implement Iterable, meaning that do iterate over an Enumeration you must do the following:
for(; e.hasMoreElements() ;) {
doStuff(e.getNextElement());
}
Does anyone know if there is a reason why Enumeration still does not implement Iterable? | 0 |
27,242 | 08/26/2008 01:58:23 | 2,908 | 08/25/2008 21:46:25 | 1 | 1 | Where can I learn JQuery? is it worth it? | Hey, I've had a lot of good experiences learning about web development on <a href="http://www.w3schools.com/">w3schools.com</a>. It's hit or miss, I know, but the php and css sections specifically have proven very useful for reference.
Anyway, I was wondering if there was a similar site for JQuery. I'm interested in learning, but I need it to be online/searchable, so i can refer back to it easily when I need the info in the future.
Also, as a brief aside, is JQuery worth learning? or should I look at different javascript libs? I know jeff uses JQuery on stackoverflow and it seems to be working well.
Thanks! | javascript | jquery | w3schools | null | null | null | open | Where can I learn JQuery? is it worth it?
===
Hey, I've had a lot of good experiences learning about web development on <a href="http://www.w3schools.com/">w3schools.com</a>. It's hit or miss, I know, but the php and css sections specifically have proven very useful for reference.
Anyway, I was wondering if there was a similar site for JQuery. I'm interested in learning, but I need it to be online/searchable, so i can refer back to it easily when I need the info in the future.
Also, as a brief aside, is JQuery worth learning? or should I look at different javascript libs? I know jeff uses JQuery on stackoverflow and it seems to be working well.
Thanks! | 0 |
27,243 | 08/26/2008 01:59:00 | 2,849 | 08/25/2008 14:24:20 | 21 | 3 | NHibernate 1.2 to 2.0 migration | What kinds of considerations are there for migrating an application from NHibernate 1.2 to 2.0? What are breaking changes vs. recommended changes? Are there mapping issues? | design | nhibernate | null | null | null | null | open | NHibernate 1.2 to 2.0 migration
===
What kinds of considerations are there for migrating an application from NHibernate 1.2 to 2.0? What are breaking changes vs. recommended changes? Are there mapping issues? | 0 |
27,247 | 08/26/2008 02:00:15 | 2,920 | 08/26/2008 01:29:20 | 1 | 0 | Could you some guides about Epoll on Linux | I need to know about Epoll On linux System.
Could you recommend manual or guides about epoll library?
need more detailed guides. it's better to have some examples.
help me. and Thank you for reading.
| c++ | linux | epoll | guide | null | null | open | Could you some guides about Epoll on Linux
===
I need to know about Epoll On linux System.
Could you recommend manual or guides about epoll library?
need more detailed guides. it's better to have some examples.
help me. and Thank you for reading.
| 0 |
27,253 | 08/26/2008 02:04:30 | 2,680 | 08/24/2008 14:33:15 | 71 | 2 | Is there any tool for reformatting C# code? | I am looking for a (preferably) command-line tool that can reformat the C# source code on a directory tree. Ideally, I should be able to customize the formatting. Bonus points if the tool can be run on mono (or linux). | c# | formatting | null | null | null | null | open | Is there any tool for reformatting C# code?
===
I am looking for a (preferably) command-line tool that can reformat the C# source code on a directory tree. Ideally, I should be able to customize the formatting. Bonus points if the tool can be run on mono (or linux). | 0 |
27,258 | 08/26/2008 02:07:25 | 392 | 08/05/2008 12:29:07 | 810 | 46 | ASP.NET JavaScript Callbacks Without Full PostBacks? | I'm about to start a fairly Ajax heavy feature in my company's application. What I need to do is make an Ajax callback every few minutes a user has been on the page.
- I don't need to do any DOM updates before, after, or during the callbacks.
- I don't need any information from the page, just from a site cookie which should always be sent with requests anyway, and an ID value.
What I'm curious to find out, is if there is any clean and simple way to make a JavaScript Ajax callback to an ASP.NET page without posting back the rest of the information on the page. I'd like to not have to do this is possible.
I really just want to be able to call a single method on the page, nothing else.
Also, I'm restricted to ASP.NET 2.0 so I can't use any of the new 3.5 framework ASP AJAX features, although I can use the ASP AJAX extensions for the 2.0 framework. | ajax | asp.net | javascript | null | null | null | open | ASP.NET JavaScript Callbacks Without Full PostBacks?
===
I'm about to start a fairly Ajax heavy feature in my company's application. What I need to do is make an Ajax callback every few minutes a user has been on the page.
- I don't need to do any DOM updates before, after, or during the callbacks.
- I don't need any information from the page, just from a site cookie which should always be sent with requests anyway, and an ID value.
What I'm curious to find out, is if there is any clean and simple way to make a JavaScript Ajax callback to an ASP.NET page without posting back the rest of the information on the page. I'd like to not have to do this is possible.
I really just want to be able to call a single method on the page, nothing else.
Also, I'm restricted to ASP.NET 2.0 so I can't use any of the new 3.5 framework ASP AJAX features, although I can use the ASP AJAX extensions for the 2.0 framework. | 0 |
27,266 | 08/26/2008 02:11:52 | 2,908 | 08/25/2008 21:46:25 | 1 | 2 | Avoid traffic shaping by using ssh on port 443 | I heard that if you use port 443 (the port usually used for https) for ssh, the encrypted packets look the same to your isp.
Could this be a way to avoid traffic shaping/throttling? | linux | http | ssh | isp | trafficshaping | null | open | Avoid traffic shaping by using ssh on port 443
===
I heard that if you use port 443 (the port usually used for https) for ssh, the encrypted packets look the same to your isp.
Could this be a way to avoid traffic shaping/throttling? | 0 |
27,267 | 08/26/2008 02:12:06 | 658 | 08/07/2008 15:07:47 | 288 | 18 | Delete Amazon S3 buckets? | I've been interacting with Amazon S3 through [S3Fox][1] and I can't seem to delete my buckets. I select a bucket, hit delete, confirm the delete in a popup, and... nothing happens. Is there another tool that I should use?
[1]: https://addons.mozilla.org/en-US/firefox/addon/3247 | amazon-s3 | buckets | null | null | null | null | open | Delete Amazon S3 buckets?
===
I've been interacting with Amazon S3 through [S3Fox][1] and I can't seem to delete my buckets. I select a bucket, hit delete, confirm the delete in a popup, and... nothing happens. Is there another tool that I should use?
[1]: https://addons.mozilla.org/en-US/firefox/addon/3247 | 0 |
27,288 | 08/26/2008 02:28:39 | 359 | 08/05/2008 02:58:12 | 1 | 0 | How do I save a datagrid to excel in vb.net? | I know that this should be easy but how do I export/save a DataGridView to excel? | vb.net | excel | null | null | null | null | open | How do I save a datagrid to excel in vb.net?
===
I know that this should be easy but how do I export/save a DataGridView to excel? | 0 |
27,292 | 08/26/2008 02:32:39 | 364 | 08/05/2008 05:33:41 | 346 | 22 | What is the best solution for maintaining backup and revision control on live websites? | <h2>What is the best solution for maintaining backup and revision control on live websites?</h2>
<br/>
As part of my job I work with several live websites. We need an efficient means of maintaining backups of the live folders over time. Additionally, updating these sites can be a pain, especially if a change happens to break in the live environment for whatever reason.
What would be ideal would be hassle-free source control.
I implemented SVN for a while which was great as a semi-solution for backup as well as revision control (easy reversion of temporary or breaking changes) etc.
Unfortunately SVN places .SVN hidden directories everywhere which cause problems, especially when other developers make folder structure changes or copy/move website directories. I've heard the argument that this is a matter of education etc. but the approach taken by SVN is simply not a practical solution for us.
I am thinking that maybe an incremental backup solution may be better.
Other possibilities include:
1. [SVK][1], which is command-line only which becomes a problem. Besides, I am unsure on how appropriate this would be.
2. [Mercurial][2], perhaps with some triggers to hide the distributed component which is not required in this case and would be unnecessarily complicated for other developers.
I experimented briefly with Mercurial but couldn't find a nice way to have the repository seperate and kept constantly in-sync with the live folder working copy. Maybe as a source control solution (making repository and live folder the same place) combined with another backup solution this could be the way to go.
One downside of Mercurial is that it doesn't place empty folders under source control which is problematic for websites which often have empty folders as placeholder locations for file uploads etc.
3. [Rsync][3], which I haven't really investigated.
I'd really appreciate your advice on the best way to maintain backups of live websites, ideally with an easy means of retrieving past versions quickly.
[1]: http://svk.bestpractical.com/view/HomePage
[2]: http://www.selenic.com/mercurial/wiki/
[3]: http://samba.anu.edu.au/rsync/ | website | hosting | backup | sourcecontrol | null | null | open | What is the best solution for maintaining backup and revision control on live websites?
===
<h2>What is the best solution for maintaining backup and revision control on live websites?</h2>
<br/>
As part of my job I work with several live websites. We need an efficient means of maintaining backups of the live folders over time. Additionally, updating these sites can be a pain, especially if a change happens to break in the live environment for whatever reason.
What would be ideal would be hassle-free source control.
I implemented SVN for a while which was great as a semi-solution for backup as well as revision control (easy reversion of temporary or breaking changes) etc.
Unfortunately SVN places .SVN hidden directories everywhere which cause problems, especially when other developers make folder structure changes or copy/move website directories. I've heard the argument that this is a matter of education etc. but the approach taken by SVN is simply not a practical solution for us.
I am thinking that maybe an incremental backup solution may be better.
Other possibilities include:
1. [SVK][1], which is command-line only which becomes a problem. Besides, I am unsure on how appropriate this would be.
2. [Mercurial][2], perhaps with some triggers to hide the distributed component which is not required in this case and would be unnecessarily complicated for other developers.
I experimented briefly with Mercurial but couldn't find a nice way to have the repository seperate and kept constantly in-sync with the live folder working copy. Maybe as a source control solution (making repository and live folder the same place) combined with another backup solution this could be the way to go.
One downside of Mercurial is that it doesn't place empty folders under source control which is problematic for websites which often have empty folders as placeholder locations for file uploads etc.
3. [Rsync][3], which I haven't really investigated.
I'd really appreciate your advice on the best way to maintain backups of live websites, ideally with an easy means of retrieving past versions quickly.
[1]: http://svk.bestpractical.com/view/HomePage
[2]: http://www.selenic.com/mercurial/wiki/
[3]: http://samba.anu.edu.au/rsync/ | 0 |
27,294 | 08/26/2008 02:35:30 | 1,965 | 08/19/2008 15:51:08 | 1,233 | 78 | Abstract Factory Design Pattern | I'm working on an internal project for my company, and part of the project is to be able to parse various "Tasks" from an XML file into a collection of tasks to be ran later.
Because each type of Task has a multitude of different associated fields, I decided it would be best to represent each type of Task with a seperate class.
To do this, I constructed an abstract base class:
public abstract class Task
{
public enum TaskType
{
// Types of Tasks
}
public abstract TaskType Type
{
get;
}
public abstract LoadFromXml(XmlElement task);
public abstract XmlElement CreateXml(XmlDocument currentDoc);
}
Each task inherited from this base class, and included the code necessary to create itself from the passed in XmlElement, as well as serialize itself back out to an XmlElement.
A basic example:
public class MergeTask : Task
{
public override TaskType Type
{
get { return TaskType.Merge; }
}
// Lots of Properties / Methods for this Task
public MergeTask (XmlElement elem)
{
this.LoadFromXml(elem);
}
public override LoadFromXml(XmlElement task)
{
// Populates this Task from the Xml.
}
public override XmlElement CreateXml(XmlDocument currentDoc)
{
// Serializes this class back to xml.
}
}
The parser would then use code similar to this to create a task collection:
XmlNode taskNode = parent.SelectNode("tasks");
TaskFactory tf = new TaskFactory();
foreach (XmlNode task in taskNode.ChildNodes)
{
// Since XmlComments etc will show up
if (task is XmlElement)
{
tasks.Add(tf.CreateTask(task as XmlElement));
}
}
All of this works wonderfully, and allows me to pass tasks around using the base class, while retaining the structure of having individual classes for each task.
However, I am not happy with my code for TaskFactory.CreateTask. This method accepts an XmlElement, and then returns an instance of the appropriate Task class:
public Task CreateTask(XmlElement elem)
{
if (elem != null)
{
switch(elem.Name)
{
case "merge":
return new MergeTask(elem);
default:
throw new ArgumentException("Invalid Task");
}
}
}
Because I have to parse the XMLElement, I'm using a huge (10-15 cases in the real code) switch to pick which child class to instantiate. I'm hoping there is some sort of polymorphic trick I can do here to clean up this method.
Any advice?
| c# | design-patterns | factory | null | null | null | open | Abstract Factory Design Pattern
===
I'm working on an internal project for my company, and part of the project is to be able to parse various "Tasks" from an XML file into a collection of tasks to be ran later.
Because each type of Task has a multitude of different associated fields, I decided it would be best to represent each type of Task with a seperate class.
To do this, I constructed an abstract base class:
public abstract class Task
{
public enum TaskType
{
// Types of Tasks
}
public abstract TaskType Type
{
get;
}
public abstract LoadFromXml(XmlElement task);
public abstract XmlElement CreateXml(XmlDocument currentDoc);
}
Each task inherited from this base class, and included the code necessary to create itself from the passed in XmlElement, as well as serialize itself back out to an XmlElement.
A basic example:
public class MergeTask : Task
{
public override TaskType Type
{
get { return TaskType.Merge; }
}
// Lots of Properties / Methods for this Task
public MergeTask (XmlElement elem)
{
this.LoadFromXml(elem);
}
public override LoadFromXml(XmlElement task)
{
// Populates this Task from the Xml.
}
public override XmlElement CreateXml(XmlDocument currentDoc)
{
// Serializes this class back to xml.
}
}
The parser would then use code similar to this to create a task collection:
XmlNode taskNode = parent.SelectNode("tasks");
TaskFactory tf = new TaskFactory();
foreach (XmlNode task in taskNode.ChildNodes)
{
// Since XmlComments etc will show up
if (task is XmlElement)
{
tasks.Add(tf.CreateTask(task as XmlElement));
}
}
All of this works wonderfully, and allows me to pass tasks around using the base class, while retaining the structure of having individual classes for each task.
However, I am not happy with my code for TaskFactory.CreateTask. This method accepts an XmlElement, and then returns an instance of the appropriate Task class:
public Task CreateTask(XmlElement elem)
{
if (elem != null)
{
switch(elem.Name)
{
case "merge":
return new MergeTask(elem);
default:
throw new ArgumentException("Invalid Task");
}
}
}
Because I have to parse the XMLElement, I'm using a huge (10-15 cases in the real code) switch to pick which child class to instantiate. I'm hoping there is some sort of polymorphic trick I can do here to clean up this method.
Any advice?
| 0 |
27,303 | 08/26/2008 02:40:08 | 1,199,387 | 08/06/2008 23:58:10 | 214 | 15 | Databind RenderTransform Scaling in Silverlight 2 Beta 2 | Anyone know if it's possible to databind the ScaleX and ScaleY of a render transform in Silverlight 2 Beta 2? Binding transforms is possible in WPF - But I'm getting an error when setting up my binding in Silverlight through XAML. Perhaps it's possible to do it through code?
<Image Height="60" HorizontalAlignment="Right"
Margin="0,122,11,0" VerticalAlignment="Top" Width="60"
Source="Images/Fish128x128.png" Stretch="Fill"
RenderTransformOrigin="0.5,0.5" x:Name="fishImage">
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="1" ScaleY="1"/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</Image.RenderTransform>
</Image>
I want to bind the ScaleX and ScaleY of the ScaleTransform element. | silverlight | data-binding | null | null | null | null | open | Databind RenderTransform Scaling in Silverlight 2 Beta 2
===
Anyone know if it's possible to databind the ScaleX and ScaleY of a render transform in Silverlight 2 Beta 2? Binding transforms is possible in WPF - But I'm getting an error when setting up my binding in Silverlight through XAML. Perhaps it's possible to do it through code?
<Image Height="60" HorizontalAlignment="Right"
Margin="0,122,11,0" VerticalAlignment="Top" Width="60"
Source="Images/Fish128x128.png" Stretch="Fill"
RenderTransformOrigin="0.5,0.5" x:Name="fishImage">
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="1" ScaleY="1"/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</Image.RenderTransform>
</Image>
I want to bind the ScaleX and ScaleY of the ScaleTransform element. | 0 |
27,308 | 08/26/2008 02:42:14 | 826 | 08/09/2008 05:24:54 | 61 | 6 | Good laptop for Solaris development | I need to spec a laptop for some Solaris development work I've got to do. I need something that will run Solaris 10 reasonably well - dual core with 4GB of memory is the sort of thing I'm aiming at.
Solaris is a little bit picky about device support, so I'm hoping someone in the SO community has a solid recommendation on what works really well. | solaris | hardware | laptop | null | null | 09/23/2011 12:08:16 | not constructive | Good laptop for Solaris development
===
I need to spec a laptop for some Solaris development work I've got to do. I need something that will run Solaris 10 reasonably well - dual core with 4GB of memory is the sort of thing I'm aiming at.
Solaris is a little bit picky about device support, so I'm hoping someone in the SO community has a solid recommendation on what works really well. | 4 |
27,345 | 08/26/2008 03:23:34 | 412 | 08/05/2008 14:16:36 | 47 | 1 | How do I install the php_gd2 extension in MAMP on a Mac? | I'm running MAMP 1.7.2 on a Mac and I'd like to install the extension php_gd2. How do I do this? I know that on Windows using WAMP I'd simply select the php_gd2 entry in the extensions menu to activate it. How is it done when using MAMP? I know that I can do it using MacPorts but I'd prefer not to make any changes to my default OS X php installation. | php | mamp | null | null | null | null | open | How do I install the php_gd2 extension in MAMP on a Mac?
===
I'm running MAMP 1.7.2 on a Mac and I'd like to install the extension php_gd2. How do I do this? I know that on Windows using WAMP I'd simply select the php_gd2 entry in the extensions menu to activate it. How is it done when using MAMP? I know that I can do it using MacPorts but I'd prefer not to make any changes to my default OS X php installation. | 0 |
27,359 | 08/26/2008 03:37:53 | 163 | 08/02/2008 20:40:09 | 297 | 18 | RSync only if filesystem is mounted | I want to setup a cron job to rsync a remote system to a backup partition, something like:
bash -c 'rsync -avz --delete --exclude=proc --exclude=sys root@remote1:/ /mnt/remote1/'
I would like to be able to "set it and forget it" but what if `/mnt/remote1` becomes unmounted? (After a reboot or something) I'd like to error out if `/mnt/remote1` isn't mounted, rather than filling up the local filesystem. | rsync | bash | sysadmin | backup | null | null | open | RSync only if filesystem is mounted
===
I want to setup a cron job to rsync a remote system to a backup partition, something like:
bash -c 'rsync -avz --delete --exclude=proc --exclude=sys root@remote1:/ /mnt/remote1/'
I would like to be able to "set it and forget it" but what if `/mnt/remote1` becomes unmounted? (After a reboot or something) I'd like to error out if `/mnt/remote1` isn't mounted, rather than filling up the local filesystem. | 0 |
27,381 | 08/26/2008 03:52:06 | 2,908 | 08/25/2008 21:46:25 | 17 | 5 | should websites expand on window resize? | I'm asking this question purely from a usability standpoint: Should a website expand/stretch to fill the viewing area when you resize a browser window?
I know for sure there are the obvious cons:
- Wide columns of text are hard to read
- Writing html/css using percents can be a pain
- It makes you vulnerable to having your design stretched past it's limits if an image is too wide, or a block of text is added that is too long. (see it's a pain to code the html/css)
The only Pro I can think of is that users who use the font-resizing that is built into their browser won't have to deal with columns that are only a few words long, with a body of whitespace on either side. However, I think that may be a browser problem more than anything else (Firefox 3 allows you to zoom **everything** instead of just the text, which comes in handy all the time
thanks for reading! =D | html | css | design | usability | null | null | open | should websites expand on window resize?
===
I'm asking this question purely from a usability standpoint: Should a website expand/stretch to fill the viewing area when you resize a browser window?
I know for sure there are the obvious cons:
- Wide columns of text are hard to read
- Writing html/css using percents can be a pain
- It makes you vulnerable to having your design stretched past it's limits if an image is too wide, or a block of text is added that is too long. (see it's a pain to code the html/css)
The only Pro I can think of is that users who use the font-resizing that is built into their browser won't have to deal with columns that are only a few words long, with a body of whitespace on either side. However, I think that may be a browser problem more than anything else (Firefox 3 allows you to zoom **everything** instead of just the text, which comes in handy all the time
thanks for reading! =D | 0 |
27,405 | 08/26/2008 04:19:59 | 609 | 08/07/2008 10:26:12 | 31 | 1 | Whats the fastest way to multiply a 16-bit integer by a double? | I want to to do this, on an 8-bit micro controller
<pre><code>16bit_integer = another_16bit_integer * 0.997;</code></pre>
with the least possible number of instructions. | c | microcontroller | null | null | null | null | open | Whats the fastest way to multiply a 16-bit integer by a double?
===
I want to to do this, on an 8-bit micro controller
<pre><code>16bit_integer = another_16bit_integer * 0.997;</code></pre>
with the least possible number of instructions. | 0 |
27,407 | 08/26/2008 04:22:21 | 1,918 | 08/19/2008 14:12:41 | 1 | 0 | What does "VM Size" mean in the Windows Task Manager? | Virtual memory from a computer size perspective is
> [a way to make the program] think it
> has a large range of contiguous
> addresses; but in reality the parts it
> is currently using are scattered
> around RAM, and the inactive parts are
> saved in a disk file. ([Wikipedia][1])
I would interpret VM Size in the Windows Task manager as either the total addressable virtual memory space or the amount of memory the process is currently using in the virtual memory space.
But in the Task Manager the WM Size is in many cases less than Mem Usage, which should be amount of RAM the process is using. Therefor I guess that WM Size means something else?
[1]: http://en.wikipedia.org/wiki/Virtual_memory | windows | operating-system | null | null | null | 04/11/2012 16:40:50 | off topic | What does "VM Size" mean in the Windows Task Manager?
===
Virtual memory from a computer size perspective is
> [a way to make the program] think it
> has a large range of contiguous
> addresses; but in reality the parts it
> is currently using are scattered
> around RAM, and the inactive parts are
> saved in a disk file. ([Wikipedia][1])
I would interpret VM Size in the Windows Task manager as either the total addressable virtual memory space or the amount of memory the process is currently using in the virtual memory space.
But in the Task Manager the WM Size is in many cases less than Mem Usage, which should be amount of RAM the process is using. Therefor I guess that WM Size means something else?
[1]: http://en.wikipedia.org/wiki/Virtual_memory | 2 |
27,435 | 08/26/2008 05:05:35 | 1,448 | 08/15/2008 16:16:35 | 151 | 17 | MySQL vs PostgreSQL for Web Applications | I am working on a web application using Python (Django) and would like to know whether MySQL or PostgreSQL would be better when deploying for production.
In one [podcast][1] Joel said that he had some problems with MySQL and the data wasn't consistent.
I would like to know whether someone had any such problems. Also when it comes to performance which can be easily tweaked?
[1]: http://blog.stackoverflow.com/2008/06/podcast-8/ | mysql | postgresql | null | null | null | null | open | MySQL vs PostgreSQL for Web Applications
===
I am working on a web application using Python (Django) and would like to know whether MySQL or PostgreSQL would be better when deploying for production.
In one [podcast][1] Joel said that he had some problems with MySQL and the data wasn't consistent.
I would like to know whether someone had any such problems. Also when it comes to performance which can be easily tweaked?
[1]: http://blog.stackoverflow.com/2008/06/podcast-8/ | 0 |
27,442 | 08/26/2008 05:20:41 | 1,632 | 08/17/2008 17:09:25 | 260 | 22 | Is there a rake task for backing up the data in your database? | Is there a rake task for backing up the data in your database?
I already have my schema backed up, but I want to make a backup of the data. It's a small database. | rake | database | null | null | null | null | open | Is there a rake task for backing up the data in your database?
===
Is there a rake task for backing up the data in your database?
I already have my schema backed up, but I want to make a backup of the data. It's a small database. | 0 |
27,455 | 08/26/2008 05:36:17 | 327 | 08/04/2008 17:08:49 | 417 | 22 | Does Mono support System.Drawing and System.Drawing.Printing? | I'm attempting to use Mono to load a bitmap and print it on Linux but I'm getting an exception. Does Mono support printing on Linux? The code/exception are below:
private void btnPrintTest_Click(object sender, EventArgs e)
{
_printDocTest.DefaultPageSettings.Landscape = true;
_printDocTest.DefaultPageSettings.Margins = new Margins(50,50,50,50);
_printDocTest.Print();
}
void _printDocTest_PrintPage(object sender, PrintPageEventArgs e)
{
var bmp = new Bitmap("~/test.bmp");
// Determine center of graph
var xCenter = e.MarginBounds.X + (e.MarginBounds.Width - bmp.Width) / 2;
var yCenter = e.MarginBounds.Y + (e.MarginBounds.Height - bmp.Height) / 2;
e.Graphics.DrawImage(bmp, xCenter, yCenter);
e.HasMorePages = false;
}
----------
Unhandled Exception: System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000]
at System.Drawing.Bitmap..ctor (System.String filename, Boolean useIcm) [0x00000]
at System.Drawing.Bitmap..ctor (System.String filename) [0x00000]
at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (string)
at Tester.Net.MainForm._printDocTest_PrintPage (System.Object sender, System.Drawing.Printing.PrintPageEventArgs e) [0x00000]
at System.Drawing.Printing.PrintDocument.OnPrintPage (System.Drawing.Printing.PrintPageEventArgs e) [0x00000]
at System.Drawing.Printing.PrintDocument.Print () [0x00000]
at (wrapper remoting-invoke-with-check) System.Drawing.Printing.PrintDocument:Print ()
at Tester.Net.MainForm.btnPrintTest_Click (System.Object sender, System.EventArgs e) [0x00000]
at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000]
at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000]
at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000]
at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs e) [0x00000]
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000]
at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000]
at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000]
at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000]
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00000]
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000]
at Tester.Net.Program.Main () [0x00000]
| mono | c# | .net | linux | printing | null | open | Does Mono support System.Drawing and System.Drawing.Printing?
===
I'm attempting to use Mono to load a bitmap and print it on Linux but I'm getting an exception. Does Mono support printing on Linux? The code/exception are below:
private void btnPrintTest_Click(object sender, EventArgs e)
{
_printDocTest.DefaultPageSettings.Landscape = true;
_printDocTest.DefaultPageSettings.Margins = new Margins(50,50,50,50);
_printDocTest.Print();
}
void _printDocTest_PrintPage(object sender, PrintPageEventArgs e)
{
var bmp = new Bitmap("~/test.bmp");
// Determine center of graph
var xCenter = e.MarginBounds.X + (e.MarginBounds.Width - bmp.Width) / 2;
var yCenter = e.MarginBounds.Y + (e.MarginBounds.Height - bmp.Height) / 2;
e.Graphics.DrawImage(bmp, xCenter, yCenter);
e.HasMorePages = false;
}
----------
Unhandled Exception: System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000]
at System.Drawing.Bitmap..ctor (System.String filename, Boolean useIcm) [0x00000]
at System.Drawing.Bitmap..ctor (System.String filename) [0x00000]
at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (string)
at Tester.Net.MainForm._printDocTest_PrintPage (System.Object sender, System.Drawing.Printing.PrintPageEventArgs e) [0x00000]
at System.Drawing.Printing.PrintDocument.OnPrintPage (System.Drawing.Printing.PrintPageEventArgs e) [0x00000]
at System.Drawing.Printing.PrintDocument.Print () [0x00000]
at (wrapper remoting-invoke-with-check) System.Drawing.Printing.PrintDocument:Print ()
at Tester.Net.MainForm.btnPrintTest_Click (System.Object sender, System.EventArgs e) [0x00000]
at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000]
at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000]
at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000]
at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs e) [0x00000]
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000]
at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000]
at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000]
at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000]
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00000]
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000]
at Tester.Net.Program.Main () [0x00000]
| 0 |
27,472 | 08/26/2008 06:06:06 | 489 | 08/06/2008 09:59:30 | 683 | 27 | Timeout not being honoured in connection string | I have a long running SQL statement that I want to run, and no matter what I put in the "timeout=" clause of my connection string, it always seems to end after 30 seconds. I'm just using SqlHelper.ExecuteNonQuery() to execute it, and letting it take care of opening connections, etc.
Is there something else that could be overriding my timeout, or causing sql server to ignore it? I have run profiler over the query, and the trace doesn't look any different when I run it in management studio, versus in my code.
Management studio completes the query in roughly a minute, but even with a timeout set to 300, or 30000, my code still times out after 30 seconds. | sql-server | timeout | null | null | null | null | open | Timeout not being honoured in connection string
===
I have a long running SQL statement that I want to run, and no matter what I put in the "timeout=" clause of my connection string, it always seems to end after 30 seconds. I'm just using SqlHelper.ExecuteNonQuery() to execute it, and letting it take care of opening connections, etc.
Is there something else that could be overriding my timeout, or causing sql server to ignore it? I have run profiler over the query, and the trace doesn't look any different when I run it in management studio, versus in my code.
Management studio completes the query in roughly a minute, but even with a timeout set to 300, or 30000, my code still times out after 30 seconds. | 0 |
27,474 | 08/26/2008 06:10:01 | 1,407 | 08/15/2008 12:41:48 | 23 | 8 | Email SMTP validator | I need to send hundreds of newsletters, but would like to check first if email exists on server. It's called smtp validation, at least i think so, based on my research on net.
There's several libraries that can do that, and also a page with open-source code in asp (http://www.coveryourasp.com/ValidateEmail.asp#Result3), but I have hard time reading classic asp, and it seams that it uses some third-party library...
Does someone have code for smtp validation in c#, and/or general explanation of how it works?
| email | validation | null | null | null | null | open | Email SMTP validator
===
I need to send hundreds of newsletters, but would like to check first if email exists on server. It's called smtp validation, at least i think so, based on my research on net.
There's several libraries that can do that, and also a page with open-source code in asp (http://www.coveryourasp.com/ValidateEmail.asp#Result3), but I have hard time reading classic asp, and it seams that it uses some third-party library...
Does someone have code for smtp validation in c#, and/or general explanation of how it works?
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.