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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
51,262 | 09/09/2008 05:42:49 | 486 | 08/06/2008 09:19:11 | 904 | 57 | Find long running query on Informix? | How can you find out what are the long running queries are on Informix database server? I have a query that is using up the CPU and want to find out what the query is. | database | informix | null | null | null | null | open | Find long running query on Informix?
===
How can you find out what are the long running queries are on Informix database server? I have a query that is using up the CPU and want to find out what the query is. | 0 |
51,264 | 09/09/2008 05:46:34 | 4,491 | 09/04/2008 06:44:23 | 265 | 8 | What table/view do you query against to select all the table names in a schema in Oracle? | What object do you query against to select all the table names in a schema in Oracle? | sql | oracle | query | null | null | null | open | What table/view do you query against to select all the table names in a schema in Oracle?
===
What object do you query against to select all the table names in a schema in Oracle? | 0 |
51,266 | 09/09/2008 05:52:23 | 826 | 08/09/2008 05:24:54 | 396 | 27 | High availability and scalable platform for Java/C++ on Solaris | I have an application that's a mix of Java and C++ on Solaris. The Java aspects of the code run the web UI and establish state on the devices that we're talking to, and the C++ code does the real-time crunching of data coming back from the devices. Shared memory is used to pass device state and context information from the Java code through to the C++ code. The Java code uses a PostgreSQL database to persist its state.
We're running into some pretty severe performance bottlenecks, and right now the only way we can scale is to increase memory and CPU counts. We're stuck on the one physical box due to the shared memory design.
We know we need to move away from this to be able to scale out by adding more machines to the cluster, and I'm in the early stages of working out exactly how we'll do this.
Right now I'm looking at Terracotta as a way of scaling out the Java code, but I haven't got as far as working out how to scale out the C++ to match.
As well as scaling for performance we need to consider high availability as well. The application needs to be available pretty much the whole time -- not absolutely 100%, which isn't cost effective, but we need to do a reasonable job of surviving a machine outage.
If you had to undertake the task I've been given, what would you do? | java | c++ | scalability | solaris | high-availability | null | open | High availability and scalable platform for Java/C++ on Solaris
===
I have an application that's a mix of Java and C++ on Solaris. The Java aspects of the code run the web UI and establish state on the devices that we're talking to, and the C++ code does the real-time crunching of data coming back from the devices. Shared memory is used to pass device state and context information from the Java code through to the C++ code. The Java code uses a PostgreSQL database to persist its state.
We're running into some pretty severe performance bottlenecks, and right now the only way we can scale is to increase memory and CPU counts. We're stuck on the one physical box due to the shared memory design.
We know we need to move away from this to be able to scale out by adding more machines to the cluster, and I'm in the early stages of working out exactly how we'll do this.
Right now I'm looking at Terracotta as a way of scaling out the Java code, but I haven't got as far as working out how to scale out the C++ to match.
As well as scaling for performance we need to consider high availability as well. The application needs to be available pretty much the whole time -- not absolutely 100%, which isn't cost effective, but we need to do a reasonable job of surviving a machine outage.
If you had to undertake the task I've been given, what would you do? | 0 |
51,269 | 09/09/2008 05:55:53 | 3,834 | 08/31/2008 06:25:52 | 21 | 1 | Change Attribute's parameter at runtime | I am not sure whether is it possible to change attribute's parameter during runtime? For example, inside an assembly I have the following class
public class UserInfo
{
[Category("change me!")]
public int Age
{
get;
set;
}
[Category("change me!")]
public string Name
{
get;
set;
}
}
This is a class that is provided by a third party vendor and **I can't change the code**. But now I found that the above descriptions are not accurate, and I want to change the "change me" category name to something else when i bind an instance of the above class to a property grid.
May I know how to do this? | c# | null | null | null | null | null | open | Change Attribute's parameter at runtime
===
I am not sure whether is it possible to change attribute's parameter during runtime? For example, inside an assembly I have the following class
public class UserInfo
{
[Category("change me!")]
public int Age
{
get;
set;
}
[Category("change me!")]
public string Name
{
get;
set;
}
}
This is a class that is provided by a third party vendor and **I can't change the code**. But now I found that the above descriptions are not accurate, and I want to change the "change me" category name to something else when i bind an instance of the above class to a property grid.
May I know how to do this? | 0 |
51,271 | 09/09/2008 05:58:42 | 4,960 | 09/07/2008 02:07:20 | 226 | 13 | What is a good resource for learning XSL? | Recently, I have started to have to read a lot of XSL and XSLT at my job. Some of it makes sense and some of it really doesn't.
Here's an exmaple of what does not make sense to me
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="UTF-8" />
<xsl:param name="message"/>
<xsl:template match="/">
<html><body> header
<xsl:value-of select="//message"/>
footer
</body></html>
</xsl:template>
</xsl:stylesheet>
If I have an XML file that looks like
<message><message_text>hello, world!</message_text></message>
It appears to be turning it in to
<html><body>header
<message><message_text>hello, world!</message_text></message>
footer
</body></html>
My questions are like: what does *template match="/"* do? Why do I have to set a param name message?
Are there any good resources available that contain a quick overview and maybe some examples?
| xslt | null | null | null | null | null | open | What is a good resource for learning XSL?
===
Recently, I have started to have to read a lot of XSL and XSLT at my job. Some of it makes sense and some of it really doesn't.
Here's an exmaple of what does not make sense to me
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="UTF-8" />
<xsl:param name="message"/>
<xsl:template match="/">
<html><body> header
<xsl:value-of select="//message"/>
footer
</body></html>
</xsl:template>
</xsl:stylesheet>
If I have an XML file that looks like
<message><message_text>hello, world!</message_text></message>
It appears to be turning it in to
<html><body>header
<message><message_text>hello, world!</message_text></message>
footer
</body></html>
My questions are like: what does *template match="/"* do? Why do I have to set a param name message?
Are there any good resources available that contain a quick overview and maybe some examples?
| 0 |
51,276 | 09/09/2008 06:05:02 | 5,045 | 09/07/2008 14:37:29 | 31 | 0 | Performance gain in compiling java to native code? | Is there any performance to be gained these days from compiling java to native code, or do modern hotspot compilers end up doing this over time anyway?
| java | performance | null | null | null | null | open | Performance gain in compiling java to native code?
===
Is there any performance to be gained these days from compiling java to native code, or do modern hotspot compilers end up doing this over time anyway?
| 0 |
51,279 | 09/09/2008 06:05:57 | 2,608 | 08/23/2008 14:39:53 | 200 | 10 | Strategy for single sign on with legacy applications | I'm wondering what strategies people use for reduced sign on with legacy applications and how effective they have found them?
We have an ASP.Net based intranet and own a lot of the legacy applications, but not all. We also have BizTalk and are considering the use of it's SSO engine too. | integration | legacy | singlesignon | null | null | null | open | Strategy for single sign on with legacy applications
===
I'm wondering what strategies people use for reduced sign on with legacy applications and how effective they have found them?
We have an ASP.Net based intranet and own a lot of the legacy applications, but not all. We also have BizTalk and are considering the use of it's SSO engine too. | 0 |
51,283 | 09/09/2008 06:12:10 | 5,321 | 09/09/2008 05:40:33 | 1 | 1 | Access to restricted URI denied" code: "1012 | How do you get around this Ajax cross site scripting problem on FireFox 3?
| ajax | xss | null | null | null | null | open | Access to restricted URI denied" code: "1012
===
How do you get around this Ajax cross site scripting problem on FireFox 3?
| 0 |
51,288 | 09/09/2008 06:19:51 | 1,915 | 08/19/2008 14:11:04 | 214 | 16 | How to keep Stored Procedures and other scripts in SVN/Other repository? | Can anyone provide some real examples as to how best to keep script files for views, stored procedures and functions in a SVN (or other) repository.
Obviously one solution is to have the script files for all the different components in a directory or more somewhere and simply using TortoiseSVN or the like to keep them in SVN, Then whenever a change is to be made I load the script up in Management Studio etc. I don't really want this.
What I'd really prefer is some kind of batch script that I can run periodically (nightly?) that would export all the stored procedures / views etc that had changed in a given timeframe and then commit them to SVN.
Ideas? | sql-server | svn | tortoisesvn | repository | null | null | open | How to keep Stored Procedures and other scripts in SVN/Other repository?
===
Can anyone provide some real examples as to how best to keep script files for views, stored procedures and functions in a SVN (or other) repository.
Obviously one solution is to have the script files for all the different components in a directory or more somewhere and simply using TortoiseSVN or the like to keep them in SVN, Then whenever a change is to be made I load the script up in Management Studio etc. I don't really want this.
What I'd really prefer is some kind of batch script that I can run periodically (nightly?) that would export all the stored procedures / views etc that had changed in a given timeframe and then commit them to SVN.
Ideas? | 0 |
51,289 | 09/09/2008 06:20:44 | 1,199,387 | 08/06/2008 23:58:10 | 377 | 22 | Pass Silverlight type to Microsoft AJAX and pass parameter validation | I'm working on a Silverlight application where I want to take advantage of the Microsoft ASP.NET AJAX Client library. I'm calling the library using the HTML Bridge that is part of Silverlight 2. Silverlight got great support for passing types between JavaScript and Managed Code, but now I've bumped against a problem.
Microsoft ASP.NET AJAX Client Libraries includes a "type system", and one of the things the framework does is validating that the parameters is of correct type. The specific function I'm calling is the Sys.Application.addHistoryPoint, and the validation code looks like this:
var e = Function.validateParams(arguments, [
{name: "state", type: Object},
{name: "title", type: String, mayBeNull: true, optional: true}
]);
I've tried passing all kinds of CLR types as the state parameter (C# structs, [ScriptableTypes], Dictionary<string, string> types etc. And every time I get the error: "Sys.ArgumentTypeException: Object of type 'Function' cannot be converted to type 'Object'.
This error is obviously coming from the parameter validation... But WHY does ASP.NET AJAX think my types are Functions? Does anyone understand the type validation in MS AJAX?
I know I can do workarounds like calling HtmlPage.Window.Eval("...") and pass my JS integration as strings, but I don't want to do that. I want to pass a real .NET type as the state parameter.
| javascript | silverlight | htmlbridge | null | null | null | open | Pass Silverlight type to Microsoft AJAX and pass parameter validation
===
I'm working on a Silverlight application where I want to take advantage of the Microsoft ASP.NET AJAX Client library. I'm calling the library using the HTML Bridge that is part of Silverlight 2. Silverlight got great support for passing types between JavaScript and Managed Code, but now I've bumped against a problem.
Microsoft ASP.NET AJAX Client Libraries includes a "type system", and one of the things the framework does is validating that the parameters is of correct type. The specific function I'm calling is the Sys.Application.addHistoryPoint, and the validation code looks like this:
var e = Function.validateParams(arguments, [
{name: "state", type: Object},
{name: "title", type: String, mayBeNull: true, optional: true}
]);
I've tried passing all kinds of CLR types as the state parameter (C# structs, [ScriptableTypes], Dictionary<string, string> types etc. And every time I get the error: "Sys.ArgumentTypeException: Object of type 'Function' cannot be converted to type 'Object'.
This error is obviously coming from the parameter validation... But WHY does ASP.NET AJAX think my types are Functions? Does anyone understand the type validation in MS AJAX?
I know I can do workarounds like calling HtmlPage.Window.Eval("...") and pass my JS integration as strings, but I don't want to do that. I want to pass a real .NET type as the state parameter.
| 0 |
51,296 | 09/09/2008 06:32:42 | 2,915 | 08/25/2008 23:15:12 | 2,308 | 97 | Checking network status or PPP status in a program on linux | So I'm running PPP under linux with a cellular modem. The program I'm writing needs to know if the link is active before sending any data.
What are my options for seeing if the link is available, and further testing to see if it routes to the internet?
C on Linux (custom distribution).
-Adam | c | linux | networking | internet | ppp | null | open | Checking network status or PPP status in a program on linux
===
So I'm running PPP under linux with a cellular modem. The program I'm writing needs to know if the link is active before sending any data.
What are my options for seeing if the link is available, and further testing to see if it routes to the internet?
C on Linux (custom distribution).
-Adam | 0 |
51,320 | 09/09/2008 07:01:14 | 2,018 | 08/19/2008 20:14:45 | 965 | 83 | Find all drive letters in Java | For a project I'm working on. I need to look for an executable on the filesystem. For UNIX derivatives, I assume the user has the file in the mighty $PATH variable, but there is no such thing on Windows.
I can safely assume the file is at most 2 levels deep into the filesystem, but I don't know on what drive it will be. I have to try all drives, but I can't figure out how to list all available drives (which have a letter assigned to it).
Any help? | java | windows | null | null | null | null | open | Find all drive letters in Java
===
For a project I'm working on. I need to look for an executable on the filesystem. For UNIX derivatives, I assume the user has the file in the mighty $PATH variable, but there is no such thing on Windows.
I can safely assume the file is at most 2 levels deep into the filesystem, but I don't know on what drive it will be. I have to try all drives, but I can't figure out how to list all available drives (which have a letter assigned to it).
Any help? | 0 |
51,338 | 09/09/2008 07:20:11 | 2,077 | 08/20/2008 07:26:21 | 259 | 6 | How do I implement license management for on-site installation of webapps (preferably cross-platform)? | I have a web application running on a Gentoo-based LAMP stack. My customers buy the software as a service and I host everything. They can export their data if they want. However, there is some demand for on-site deployment inside the clients' own networks. For some of these scenarios, there would be a requirement for some particular OS, typically something like Windows Server 2003, but possibly other Linux distros as well.
I might just decide to circumvent all portability issues by shipping pre-configured appliances that just carry the same system as I run on my servers. However, that would mean I have to provide full technical support and also some customers would be much happier if they knew their admins could maintain the systems themselves. Porting the application will be alright, but I have to think carefully about license management.
Currently, because I host the system, there is no built-in license management in the app. I bill based on user accounts and data capacity (it's a processing and analysis app for metering data) and I just set up whatever the client pays for and the client can't setup those things himself. Even without on-site installation, that should be changed for better scalability anyway.
Are there good (cross-platform) licensing frameworks? If I roll my own, what are good methods of ensuring that there is only one instance of the system? I'm not looking for military-grade stuff but rather something that's "safe enough". I don't want to impair usability and I don't want to get on people's nerves more than absolutely necessary.
For instance, the app should not stop working when they replace the ethernet adapter, but I neither want a customer to buy a license for one plant and simply copy the harddrive to set up identical systems in his other plants. Are there good methods to implement something like a "fuzzy" machine identification, that would allow parts to be changed but can detect if it's a completely new setup? | licensing | web-application | null | null | null | null | open | How do I implement license management for on-site installation of webapps (preferably cross-platform)?
===
I have a web application running on a Gentoo-based LAMP stack. My customers buy the software as a service and I host everything. They can export their data if they want. However, there is some demand for on-site deployment inside the clients' own networks. For some of these scenarios, there would be a requirement for some particular OS, typically something like Windows Server 2003, but possibly other Linux distros as well.
I might just decide to circumvent all portability issues by shipping pre-configured appliances that just carry the same system as I run on my servers. However, that would mean I have to provide full technical support and also some customers would be much happier if they knew their admins could maintain the systems themselves. Porting the application will be alright, but I have to think carefully about license management.
Currently, because I host the system, there is no built-in license management in the app. I bill based on user accounts and data capacity (it's a processing and analysis app for metering data) and I just set up whatever the client pays for and the client can't setup those things himself. Even without on-site installation, that should be changed for better scalability anyway.
Are there good (cross-platform) licensing frameworks? If I roll my own, what are good methods of ensuring that there is only one instance of the system? I'm not looking for military-grade stuff but rather something that's "safe enough". I don't want to impair usability and I don't want to get on people's nerves more than absolutely necessary.
For instance, the app should not stop working when they replace the ethernet adapter, but I neither want a customer to buy a license for one plant and simply copy the harddrive to set up identical systems in his other plants. Are there good methods to implement something like a "fuzzy" machine identification, that would allow parts to be changed but can detect if it's a completely new setup? | 0 |
51,339 | 09/09/2008 07:20:51 | 1,904 | 08/19/2008 11:19:01 | 156 | 12 | How can you handle an IN sub-query with LINQ to SQL? | I'm a bit stuck on this. Basically I want to do something like the following SQL query in LINQ to SQL:
SELECT f.*
FROM Foo f
WHERE f.FooId IN (
SELECT fb.FooId
FROM FooBar fb
WHERE fb.BarId = 1000
)
Any help would be gratefully received.
Thanks. | sql | linq | linq-to-sql | null | null | null | open | How can you handle an IN sub-query with LINQ to SQL?
===
I'm a bit stuck on this. Basically I want to do something like the following SQL query in LINQ to SQL:
SELECT f.*
FROM Foo f
WHERE f.FooId IN (
SELECT fb.FooId
FROM FooBar fb
WHERE fb.BarId = 1000
)
Any help would be gratefully received.
Thanks. | 0 |
51,342 | 09/09/2008 07:24:12 | 3,661 | 08/29/2008 18:16:14 | 18 | 1 | Implementing user defined display order | i have a list of products that are being displayed in particular order. store admin can reassign the display order, by moving the "hot" items to the top of the list. what's the best was of implementing the admin functionality [asp.net C#]? Products table has a [displayOrder(int)] filed which determines the display order.
i'm looking for something intuitive and simple.
thank you.
p.s. i guess i didn't make myself clear, i'm looking for UI advice more than anything. | vs2005 | c# | asp.net | null | null | null | open | Implementing user defined display order
===
i have a list of products that are being displayed in particular order. store admin can reassign the display order, by moving the "hot" items to the top of the list. what's the best was of implementing the admin functionality [asp.net C#]? Products table has a [displayOrder(int)] filed which determines the display order.
i'm looking for something intuitive and simple.
thank you.
p.s. i guess i didn't make myself clear, i'm looking for UI advice more than anything. | 0 |
51,349 | 09/09/2008 07:27:39 | 834 | 08/09/2008 07:29:24 | 240 | 14 | How do you start Knowledge Transfer? | Do you use a formal event to get people talking in your IT department? Like a **monthly meetup** in a social place, a **internal wiki/chat** space or just a regular "information market" with some **presentations about technology or projects** made by your staff for your staff? Do you invite Sales people to participate or is it a closed event for programmers only?
How do you get people to participate in these events? Do you allow them to spent work time on knowledge transfer? Or do you understand it as an integral part of the work time?
I wonder how to monitor the progress of knowledge transfer itself. How do you spot critical one-person spots of failure in your projects? There are several methods to avoid it, like staff swapping or the "fifo" attempt on bug fixing.
*Note:* Ok, this is a very very noisy question and I hope to fix it after a few comments. Sorry for the mixup. | knowledge | knowledge-management | null | null | null | 07/13/2012 03:23:47 | off topic | How do you start Knowledge Transfer?
===
Do you use a formal event to get people talking in your IT department? Like a **monthly meetup** in a social place, a **internal wiki/chat** space or just a regular "information market" with some **presentations about technology or projects** made by your staff for your staff? Do you invite Sales people to participate or is it a closed event for programmers only?
How do you get people to participate in these events? Do you allow them to spent work time on knowledge transfer? Or do you understand it as an integral part of the work time?
I wonder how to monitor the progress of knowledge transfer itself. How do you spot critical one-person spots of failure in your projects? There are several methods to avoid it, like staff swapping or the "fifo" attempt on bug fixing.
*Note:* Ok, this is a very very noisy question and I hope to fix it after a few comments. Sorry for the mixup. | 2 |
51,352 | 09/09/2008 07:33:36 | 3,847 | 08/31/2008 11:18:23 | 16 | 1 | How to show a spinner while loading an image via JavaScript | I'm currently working on a web application which has a page which displays a single chart (a .png image). On another part of this page there are a set of links which, when clicked, the entire page reloads and looks exactly the same as before except for the chart in the middle of the page.
What I want to do is when a link is clicked on a page just the chart on the page is changed. This will speed things up tremendously as the page is roughly 100kb large, and don't really want to reload the entire page just to display this.
I've been doing this via JavaScript, which works so far, using the following code
document.getElementById('chart').src = '/charts/10.png';
The problem is that when the user clicks on the link, it may take a couple of seconds before the chart changes. This makes the user think that their click hasn't done anything, or that the system is slow to respond.
What I want to happen is display a spinner / throbber / status indicator, in place of where the image is while it is loading, so when the user clicks the link they know at least the system has taken their input and is doing something about it.
I've tried a few suggestions, even using a psudo time out to show a spinner, and then flick back to the image.
A good suggestion I've had is to use the following
<img src="/charts/10.png" lowsrc="/spinner.gif"/>
Which would be ideal, except the spinner is significantly smaller than the chart which is being displayed.
Any other ideas?
| javascript | jquery | dom | null | null | null | open | How to show a spinner while loading an image via JavaScript
===
I'm currently working on a web application which has a page which displays a single chart (a .png image). On another part of this page there are a set of links which, when clicked, the entire page reloads and looks exactly the same as before except for the chart in the middle of the page.
What I want to do is when a link is clicked on a page just the chart on the page is changed. This will speed things up tremendously as the page is roughly 100kb large, and don't really want to reload the entire page just to display this.
I've been doing this via JavaScript, which works so far, using the following code
document.getElementById('chart').src = '/charts/10.png';
The problem is that when the user clicks on the link, it may take a couple of seconds before the chart changes. This makes the user think that their click hasn't done anything, or that the system is slow to respond.
What I want to happen is display a spinner / throbber / status indicator, in place of where the image is while it is loading, so when the user clicks the link they know at least the system has taken their input and is doing something about it.
I've tried a few suggestions, even using a psudo time out to show a spinner, and then flick back to the image.
A good suggestion I've had is to use the following
<img src="/charts/10.png" lowsrc="/spinner.gif"/>
Which would be ideal, except the spinner is significantly smaller than the chart which is being displayed.
Any other ideas?
| 0 |
51,363 | 09/09/2008 07:49:56 | 1,695 | 08/18/2008 02:49:06 | 542 | 52 | How does the Licenses.licx based .Net component licensing model work? | I've encountered multiple third part .Net component-vendors use a licensing scheme. On an evaluation copy, the components show up with a nag-screen or watermark or some such indicator. On a licensed machine, a **Licenses.licx** is created - with what appears to be *just* the assembly full name/identifiers. This file has to be included when the client assembly is built.
- How does this model work? Both from component-vendors' and users' perspective.
- What is the .licx file used for? Should it be checked in? *We've had a number of issues with the wrong/right .licx file being checked in and what not*
| .net | licensing | null | null | null | null | open | How does the Licenses.licx based .Net component licensing model work?
===
I've encountered multiple third part .Net component-vendors use a licensing scheme. On an evaluation copy, the components show up with a nag-screen or watermark or some such indicator. On a licensed machine, a **Licenses.licx** is created - with what appears to be *just* the assembly full name/identifiers. This file has to be included when the client assembly is built.
- How does this model work? Both from component-vendors' and users' perspective.
- What is the .licx file used for? Should it be checked in? *We've had a number of issues with the wrong/right .licx file being checked in and what not*
| 0 |
51,380 | 09/09/2008 08:19:01 | 4,728 | 09/05/2008 11:33:05 | 1 | 0 | When can DataInputStream.skipBytes(n) not skip n bytes? | The [Sun Documentation for DataInput.skipBytes][1] states that it "makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes. However, it may skip over some smaller number of bytes, possibly zero. This may result from any of a number of conditions; reaching end of file before n bytes have been skipped is only one possibility."
1. Other than reaching end of file, why might skipBytes() not skip the right number of bytes? (The DataInputStream I am using will either be wrapping a FileInputStream or a PipedInputStream.)
2. If I definitely want to skip n bytes and throw an EOFException if this causes me to go to the end of the file, should I use readFully() and ignore the resulting byte array? Or is there a better way?
[1]: http://java.sun.com/j2se/1.4.2/docs/api/java/io/DataInput.html#skipBytes(int) | java | null | null | null | null | null | open | When can DataInputStream.skipBytes(n) not skip n bytes?
===
The [Sun Documentation for DataInput.skipBytes][1] states that it "makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes. However, it may skip over some smaller number of bytes, possibly zero. This may result from any of a number of conditions; reaching end of file before n bytes have been skipped is only one possibility."
1. Other than reaching end of file, why might skipBytes() not skip the right number of bytes? (The DataInputStream I am using will either be wrapping a FileInputStream or a PipedInputStream.)
2. If I definitely want to skip n bytes and throw an EOFException if this causes me to go to the end of the file, should I use readFully() and ignore the resulting byte array? Or is there a better way?
[1]: http://java.sun.com/j2se/1.4.2/docs/api/java/io/DataInput.html#skipBytes(int) | 0 |
51,390 | 09/09/2008 08:30:38 | 3,561 | 08/29/2008 05:25:35 | 259 | 29 | Where did all the java applets go? | When java was young, people were excited about writing applets. They were cool and popular, for a little while. Now, I never see them anymore. Instead we have flash, javascript, and a plethora of other web app-building technologies.
Why don't sites use java applets anymore?
I'm also curious: historically, why do you think this occurred? What could have been done differently to keep Java applets alive? | java | history | null | null | null | null | open | Where did all the java applets go?
===
When java was young, people were excited about writing applets. They were cool and popular, for a little while. Now, I never see them anymore. Instead we have flash, javascript, and a plethora of other web app-building technologies.
Why don't sites use java applets anymore?
I'm also curious: historically, why do you think this occurred? What could have been done differently to keep Java applets alive? | 0 |
51,407 | 09/09/2008 08:45:43 | 905 | 08/10/2008 09:37:14 | 3,933 | 236 | Can you load a .Net form as a control? | I want to load a desktop application, via reflection, as a Control inside another application.
The application I'm reflecting is a legacy one - I can't make changes to it.
I can dynamically access the Form, but can't load it as a Control.
In .Net Form expands on Control, and I can assign the reflected Form as a Control, but it throws a run-time exception.
Forms cannot be loaded as controls.
Is there any way to convert the form to a control? | .net | winforms | null | null | null | null | open | Can you load a .Net form as a control?
===
I want to load a desktop application, via reflection, as a Control inside another application.
The application I'm reflecting is a legacy one - I can't make changes to it.
I can dynamically access the Form, but can't load it as a Control.
In .Net Form expands on Control, and I can assign the reflected Form as a Control, but it throws a run-time exception.
Forms cannot be loaded as controls.
Is there any way to convert the form to a control? | 0 |
51,412 | 09/09/2008 08:46:51 | 3,355 | 08/28/2008 07:36:57 | 306 | 14 | Passing on named variable arguments in python | Say I have the following 2 methods:
def methodA(arg, **kwargs):
pass
def methodB(arg, *args, **kwargs):
pass
In methodA I wish to call methodB, passing on the kwargs. However, it seems if I simply do:
def methodA(arg, **kwargs):
methodB("argvalue", kwargs)
The second argument will be passed on as positional rather than named variable arguments. How do I make sure that the **kwargs in methodA gets passed as **kwargs to methodB?
| python | varargs | null | null | null | null | open | Passing on named variable arguments in python
===
Say I have the following 2 methods:
def methodA(arg, **kwargs):
pass
def methodB(arg, *args, **kwargs):
pass
In methodA I wish to call methodB, passing on the kwargs. However, it seems if I simply do:
def methodA(arg, **kwargs):
methodB("argvalue", kwargs)
The second argument will be passed on as positional rather than named variable arguments. How do I make sure that the **kwargs in methodA gets passed as **kwargs to methodB?
| 0 |
51,420 | 09/09/2008 08:56:23 | 4,187 | 09/02/2008 09:12:42 | 11 | 1 | How to get the base 10 logarithm of a Fixnum in Ruby? | I want to get the base 10 logarithm of a Fixnum using Ruby, but found that n.log or n.log10 are not defined. Math::log is defined but uses a different base than 10.
What is the easiest way to get the base 10 logarithm of a Fixnum? | ruby | math | logarithm | null | null | null | open | How to get the base 10 logarithm of a Fixnum in Ruby?
===
I want to get the base 10 logarithm of a Fixnum using Ruby, but found that n.log or n.log10 are not defined. Math::log is defined but uses a different base than 10.
What is the easiest way to get the base 10 logarithm of a Fixnum? | 0 |
51,435 | 09/09/2008 09:08:54 | 5,330 | 09/09/2008 07:44:06 | 11 | 1 | Windows version of the Unix touch command | I'm looking for a Windows port of the UNIX touch command. I don't want to install an entire MKS toolkit just for the one tool. Is there a native port available somewhere or a command in Windows that does the same thing and supports features like all files in a directory by wildcard?
Specifically I'm after changing mtime, ctime and atime for a project that reports ages of files based on... mtime, ctime and atime.
| untagged | null | null | null | null | null | open | Windows version of the Unix touch command
===
I'm looking for a Windows port of the UNIX touch command. I don't want to install an entire MKS toolkit just for the one tool. Is there a native port available somewhere or a command in Windows that does the same thing and supports features like all files in a directory by wildcard?
Specifically I'm after changing mtime, ctime and atime for a project that reports ages of files based on... mtime, ctime and atime.
| 0 |
51,436 | 09/09/2008 09:08:55 | 3,146 | 08/27/2008 00:25:15 | 794 | 38 | How to host licensed .Net controls in unmanaged C++ app? | I need to host and run managed controls inside of a purely unmanaged C++ app. How to do this?
To run unlicensed controls is typically simple:
if (SUCCEEDED(ClrCreateManagedInstance(type, iid, &obj)))
{
// do something with obj
}
When using a licensed control however, we need to somehow embed a .licx file into the project (ref [application licensing][1]). In an unmanaged C++ app, the requisite glue does not seem to work. The lc.exe tool is supposed to be able to embed the license as an assembly resource but either we were not waving the correct invocation, or it failed silently. Any help would be appreciated.
[1]: http://www.developer.com/net/net/article.php/11087_3074001_2 | .net | c++ | licensing | unmanaged | null | null | open | How to host licensed .Net controls in unmanaged C++ app?
===
I need to host and run managed controls inside of a purely unmanaged C++ app. How to do this?
To run unlicensed controls is typically simple:
if (SUCCEEDED(ClrCreateManagedInstance(type, iid, &obj)))
{
// do something with obj
}
When using a licensed control however, we need to somehow embed a .licx file into the project (ref [application licensing][1]). In an unmanaged C++ app, the requisite glue does not seem to work. The lc.exe tool is supposed to be able to embed the license as an assembly resource but either we were not waving the correct invocation, or it failed silently. Any help would be appreciated.
[1]: http://www.developer.com/net/net/article.php/11087_3074001_2 | 0 |
51,438 | 09/09/2008 09:11:06 | 1,900 | 08/19/2008 09:38:19 | 86 | 8 | Getting A File's Mime Type In Java | I was just wondering how most people fetch a mime type from a file in Java? So far I've tried two utils: JMimeMagic & Mime-Util. The first gave me memory exceptions, the second doesn't close its streams off properly. I was just wondering if anyone else had a method/library that they used and worked correctly? | java | mime | null | null | null | null | open | Getting A File's Mime Type In Java
===
I was just wondering how most people fetch a mime type from a file in Java? So far I've tried two utils: JMimeMagic & Mime-Util. The first gave me memory exceptions, the second doesn't close its streams off properly. I was just wondering if anyone else had a method/library that they used and worked correctly? | 0 |
51,464 | 09/09/2008 09:33:55 | 1,695 | 08/18/2008 02:49:06 | 572 | 54 | How do you show events in UML Class Diagrams? | This one has me stumped regularly while creating top level class diagrams for documentation. Methods and attributes/fields are easy to model.
I usually end up adding a method named EvChanged to indicate a .Net event Changed.
What is the right way to show that a type publishes a specific event? | uml | visio | null | null | null | null | open | How do you show events in UML Class Diagrams?
===
This one has me stumped regularly while creating top level class diagrams for documentation. Methods and attributes/fields are easy to model.
I usually end up adding a method named EvChanged to indicate a .Net event Changed.
What is the right way to show that a type publishes a specific event? | 0 |
51,470 | 09/09/2008 09:36:39 | 917 | 08/10/2008 12:11:24 | 41 | 4 | How do I reset a sequence in Oracle? | In postgresql I can do something like this:
ALTER SEQUENCE serial RESTART WITH 0;
Is there a oracle equivalent? | database | oracle | null | null | null | null | open | How do I reset a sequence in Oracle?
===
In postgresql I can do something like this:
ALTER SEQUENCE serial RESTART WITH 0;
Is there a oracle equivalent? | 0 |
51,475 | 09/09/2008 09:41:14 | 5,049 | 09/07/2008 15:03:23 | 11 | 2 | Polygon fill modes in GDI and GDI+ | The system default polygon fill mode in current device context is `ALTERNATE` (as I've learned from the Petzold book on Windows programming) and this one is used in [`Polygon`][1] Win32 function unless you change the mode with [`SetPolyFillMode`][2].
**My question is**:
Does the GDI+ [`Graphics::FillPolygon`][3] (without the `FillMode` parameter in its signature) method also use the current device context fill mode or sets the well-known-default and then sets back the mode set before it was called?
Thanks!
[1]: http://msdn.microsoft.com/en-us/library/ms533274(VS.85).aspx
[2]: http://msdn.microsoft.com/en-us/library/ms536642(VS.85).aspx
[3]: http://msdn.microsoft.com/en-us/library/ms535958(VS.85).aspx
| winapi | gdi+ | gdi | null | null | null | open | Polygon fill modes in GDI and GDI+
===
The system default polygon fill mode in current device context is `ALTERNATE` (as I've learned from the Petzold book on Windows programming) and this one is used in [`Polygon`][1] Win32 function unless you change the mode with [`SetPolyFillMode`][2].
**My question is**:
Does the GDI+ [`Graphics::FillPolygon`][3] (without the `FillMode` parameter in its signature) method also use the current device context fill mode or sets the well-known-default and then sets back the mode set before it was called?
Thanks!
[1]: http://msdn.microsoft.com/en-us/library/ms533274(VS.85).aspx
[2]: http://msdn.microsoft.com/en-us/library/ms536642(VS.85).aspx
[3]: http://msdn.microsoft.com/en-us/library/ms535958(VS.85).aspx
| 0 |
51,499 | 09/09/2008 10:01:06 | 4,406 | 09/03/2008 14:38:45 | 92 | 16 | Any good automated frameworks for applying coding standards? | One I am aware of is [Perl::Critic](http://search.cpan.org/dist/Perl-Critic/)
And my googling has resulted in no results on multiple attempts so far. :-(
Does anyone have any recommendations here?
Any resources to getting Perl::Critic up and running would be appreciated too.
| perl | coding-style | framework | null | null | null | open | Any good automated frameworks for applying coding standards?
===
One I am aware of is [Perl::Critic](http://search.cpan.org/dist/Perl-Critic/)
And my googling has resulted in no results on multiple attempts so far. :-(
Does anyone have any recommendations here?
Any resources to getting Perl::Critic up and running would be appreciated too.
| 0 |
51,500 | 09/09/2008 10:03:27 | 2,974 | 08/26/2008 09:39:16 | 685 | 54 | Bad Smells When Reviewing Code Affects Approach? | G'day,
I was thinking about a comment from [Kristopher Johnson][1] about my answer to this [question][2] regarding Software Development Quality.
I'd posted a list of software quality metrics that I could think of off the top of my head that included:
1. McCabe Cyclometric Complexity - basically a measure of the number of linear paths through code.
2. Levels of indentation - a measure of complexity when looking at nested decision statements.
3. Distance from declaration to first use - how many statements exist between where a variable is declared and where it is first used.
4. Comment percentage - how many lines of code are comments compared to source code.
5. Percent test coverage - as a percentage of lines of code, how many are exercised by your suite of tests.
6. Path test coverage - how many paths of execution are exercised by your tests.
7. Unit coverage - how many individual units, classes, packages, etc., are exercised by your unit tests.
Kris's comment was:
> Only the test-coverage metrics listed here could be considered a measure of "quality." The others are measurements of complexity and readability, which really has nothing to do with quality.
Apart from the fact that I don't agree with this statement at all, it got me thinking.
When I have to review code that has hardly any associated tests, whether unit, system or integration, I tend to approach the code much, much more warily than if I see a good suite of tests that have been successfully passed.
Same thing when performing security audits on code. If I see unused variables, huge functions, bizarre mixtures of configs, per server, per dir, etc. being used in Apache modules it also predisposes me to approach the code very warily.
Does anyone else use this initial "gut feeling" approach and does it affect the outcome?
BTW I don't agree with Kris's comment because all the other metrics are definitely valid measures that will help highlight badly designed, poorly executed code. As Damian Conway says:
> Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
[1]: http://stackoverflow.com/users/1175/kristopher-johnson
[2]: http://stackoverflow.com/questions/50612/software-development-quality | quality | testing | design | null | null | null | open | Bad Smells When Reviewing Code Affects Approach?
===
G'day,
I was thinking about a comment from [Kristopher Johnson][1] about my answer to this [question][2] regarding Software Development Quality.
I'd posted a list of software quality metrics that I could think of off the top of my head that included:
1. McCabe Cyclometric Complexity - basically a measure of the number of linear paths through code.
2. Levels of indentation - a measure of complexity when looking at nested decision statements.
3. Distance from declaration to first use - how many statements exist between where a variable is declared and where it is first used.
4. Comment percentage - how many lines of code are comments compared to source code.
5. Percent test coverage - as a percentage of lines of code, how many are exercised by your suite of tests.
6. Path test coverage - how many paths of execution are exercised by your tests.
7. Unit coverage - how many individual units, classes, packages, etc., are exercised by your unit tests.
Kris's comment was:
> Only the test-coverage metrics listed here could be considered a measure of "quality." The others are measurements of complexity and readability, which really has nothing to do with quality.
Apart from the fact that I don't agree with this statement at all, it got me thinking.
When I have to review code that has hardly any associated tests, whether unit, system or integration, I tend to approach the code much, much more warily than if I see a good suite of tests that have been successfully passed.
Same thing when performing security audits on code. If I see unused variables, huge functions, bizarre mixtures of configs, per server, per dir, etc. being used in Apache modules it also predisposes me to approach the code very warily.
Does anyone else use this initial "gut feeling" approach and does it affect the outcome?
BTW I don't agree with Kris's comment because all the other metrics are definitely valid measures that will help highlight badly designed, poorly executed code. As Damian Conway says:
> Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
[1]: http://stackoverflow.com/users/1175/kristopher-johnson
[2]: http://stackoverflow.com/questions/50612/software-development-quality | 0 |
51,501 | 09/09/2008 10:04:03 | 1,068 | 08/12/2008 08:44:09 | 48 | 6 | gdb linux arm | I have a ARM11 based hardware board which runs a Linux kernel ver. 2.6.21.5-cfs-v19. I have my application running on this ARM-LINUX board. To do sourlce level debugging, of my application i used to use gdb from command prompt of the linux board, that was with some earlier version of the board linux version.
With this version 2.6.21.5-cfs-v19, i dont have a related version of gdb for the board.I tried to look around to get gdb for this version of linux and arm port of it, but without much success. Can anyone point me where i can get either an independatn executable for gdb for above mentioend os and board configuration or source for the same, which i may try compiling for that target.
-AD. | linux | gdb | arm | null | null | null | open | gdb linux arm
===
I have a ARM11 based hardware board which runs a Linux kernel ver. 2.6.21.5-cfs-v19. I have my application running on this ARM-LINUX board. To do sourlce level debugging, of my application i used to use gdb from command prompt of the linux board, that was with some earlier version of the board linux version.
With this version 2.6.21.5-cfs-v19, i dont have a related version of gdb for the board.I tried to look around to get gdb for this version of linux and arm port of it, but without much success. Can anyone point me where i can get either an independatn executable for gdb for above mentioend os and board configuration or source for the same, which i may try compiling for that target.
-AD. | 0 |
51,502 | 09/09/2008 10:05:36 | 5,342 | 09/09/2008 09:55:09 | 1 | 0 | Improving Python readability? | I've been really enjoying Python programming lately. I come from a background of a strong love for C-based coding, where everything is perhaps more complicated than it should be (but puts hair on your chest, at least). So switching from C to Python for more complex things that don't require tons of speed has been more of a boon than a bane in writing projects.
However, coming from this land of brackets and parentheses and structs as far as the naked eye can see, I come across a small problem: I find Python difficult to read.
For example, the following block of text is hard for me to decipher unless I stare at it (which I dislike doing):
if foo:
bar = baz
while bar not biz:
bar = i_am_going_to_find_you_biz_i_swear_on_my_life()
did_i_not_warn_you_biz()
my_father_is_avenged()
The problem occurs at the end of that if block: all the tabbing and then suddenly returning to a jarring block feels almost disturbing. As a solution, I've started coding my Python like this:
if foo:
bar = baz
while bar not biz:
bar = i_am_going_to_find_you_biz_i_swear_on_my_life()
#-- while --
#-- if --
did_i_not_warn_you_biz()
my_father_is_avenged()
And this, for some odd reason, makes me more able to read my own code. But I'm curious: has anyone else with my strange problem found easier ways to make their tabbed-out code more readable? I'd love to find out if there's a better way to do this before this becomes a huge habit for me. | python | readability | null | null | null | null | open | Improving Python readability?
===
I've been really enjoying Python programming lately. I come from a background of a strong love for C-based coding, where everything is perhaps more complicated than it should be (but puts hair on your chest, at least). So switching from C to Python for more complex things that don't require tons of speed has been more of a boon than a bane in writing projects.
However, coming from this land of brackets and parentheses and structs as far as the naked eye can see, I come across a small problem: I find Python difficult to read.
For example, the following block of text is hard for me to decipher unless I stare at it (which I dislike doing):
if foo:
bar = baz
while bar not biz:
bar = i_am_going_to_find_you_biz_i_swear_on_my_life()
did_i_not_warn_you_biz()
my_father_is_avenged()
The problem occurs at the end of that if block: all the tabbing and then suddenly returning to a jarring block feels almost disturbing. As a solution, I've started coding my Python like this:
if foo:
bar = baz
while bar not biz:
bar = i_am_going_to_find_you_biz_i_swear_on_my_life()
#-- while --
#-- if --
did_i_not_warn_you_biz()
my_father_is_avenged()
And this, for some odd reason, makes me more able to read my own code. But I'm curious: has anyone else with my strange problem found easier ways to make their tabbed-out code more readable? I'd love to find out if there's a better way to do this before this becomes a huge habit for me. | 0 |
51,519 | 09/09/2008 10:18:13 | 5,350 | 09/09/2008 10:15:37 | 1 | 0 | How to make only certain parts of a site beta? | Most sites are either fully released, or in beta.
But what happens if you have a large site, and some of the parts are still in Beta, and other parts aren't.
How do you effectively communicate this to the customer? | beta | null | null | null | null | null | open | How to make only certain parts of a site beta?
===
Most sites are either fully released, or in beta.
But what happens if you have a large site, and some of the parts are still in Beta, and other parts aren't.
How do you effectively communicate this to the customer? | 0 |
51,520 | 09/09/2008 10:19:32 | 974 | 08/11/2008 09:02:40 | 282 | 26 | How to get an absolute file name in Python? | Given a path such as
"mydir/myfile.txt"
How do I find the absolute filename relative to the current working directory in Python? E.g. on Windows, I might end up with:
"C:/example/cwd/mydir/myfile.txt" | python | file | path | null | null | null | open | How to get an absolute file name in Python?
===
Given a path such as
"mydir/myfile.txt"
How do I find the absolute filename relative to the current working directory in Python? E.g. on Windows, I might end up with:
"C:/example/cwd/mydir/myfile.txt" | 0 |
51,526 | 09/09/2008 10:23:29 | 3,989 | 09/01/2008 07:48:44 | 1 | 0 | Changing the value of an element in a list of structs | I have a list of structs and I want to change one element. For example :
MyList.Add(new MyStruct("john");
MyList.Add(new MyStruct("peter");
Now I want to change one element:
MyList[1].Name = "bob"
However, whenever I try and do this I get the following error:
*Cannot modify the return value of System.Collections.Generic.List<MyStruct>.this[int]‘ because it is not a variabl*e
If I use a list of classes, the problem doesn't occur.
I guess the answer has to do with structs being a value type.
So, if I have a list of structs should I treat them as *read-only*? If I need to change elements in a list then I should use classes and not structs?
| c# | null | null | null | null | null | open | Changing the value of an element in a list of structs
===
I have a list of structs and I want to change one element. For example :
MyList.Add(new MyStruct("john");
MyList.Add(new MyStruct("peter");
Now I want to change one element:
MyList[1].Name = "bob"
However, whenever I try and do this I get the following error:
*Cannot modify the return value of System.Collections.Generic.List<MyStruct>.this[int]‘ because it is not a variabl*e
If I use a list of classes, the problem doesn't occur.
I guess the answer has to do with structs being a value type.
So, if I have a list of structs should I treat them as *read-only*? If I need to change elements in a list then I should use classes and not structs?
| 0 |
51,528 | 09/09/2008 10:23:55 | 5,352 | 09/09/2008 10:19:52 | 1 | 0 | Saving emails | If you have a site which sends out emails to the customer, and you want to save a copy of the mail, what is an effective strategy?
If you save it to a table in your database (eg create a table called Mail), it gets very large very quickly.
Some strategies I've seen are:
1. Save it to the file system
2. Run a scheduled task to clear old entries from the database - but then you land up not having a copy;
3. Create a sepearate table for each time frame (one each year, or one each month)
What strategies have you used? | email-integration | null | null | null | null | null | open | Saving emails
===
If you have a site which sends out emails to the customer, and you want to save a copy of the mail, what is an effective strategy?
If you save it to a table in your database (eg create a table called Mail), it gets very large very quickly.
Some strategies I've seen are:
1. Save it to the file system
2. Run a scheduled task to clear old entries from the database - but then you land up not having a copy;
3. Create a sepearate table for each time frame (one each year, or one each month)
What strategies have you used? | 0 |
51,530 | 09/09/2008 10:24:44 | 1,709 | 08/18/2008 07:05:30 | 776 | 70 | How do you treat legacy code (and data)? | I am currently in the process of restructuring my local Subversion repository by adding some new projects and merging legacy code and data from a couple of older repositories into it.
When I have done this in the past I have usually put the legacy code in a dedicated "legacy" folder, as not to "disturb" the new and "well-structured" code tree. However, in the spirit of refactoring I feel this is somewhat wrong. In theory, the legacy code will be refactored over time and moved to its new location, but in practice this rarely happens.
How do you treat your legacy code? As much as I feel tempted to tuck away old sins in the "legacy" folder, never to look at it again, on some level I hope that by forcing it to live among the more "healthy" inhabitants in the repository, maybe the legacy code will have a better chance of getting well some day?
(Yeah, we all know <a href="http://www.joelonsoftware.com/articles/fog0000000069.html">we shouldn't rewrite stuff</a>, but this is my "fun" repository, not my business projects...) | svn | version-control | legacy | project-management | null | null | open | How do you treat legacy code (and data)?
===
I am currently in the process of restructuring my local Subversion repository by adding some new projects and merging legacy code and data from a couple of older repositories into it.
When I have done this in the past I have usually put the legacy code in a dedicated "legacy" folder, as not to "disturb" the new and "well-structured" code tree. However, in the spirit of refactoring I feel this is somewhat wrong. In theory, the legacy code will be refactored over time and moved to its new location, but in practice this rarely happens.
How do you treat your legacy code? As much as I feel tempted to tuck away old sins in the "legacy" folder, never to look at it again, on some level I hope that by forcing it to live among the more "healthy" inhabitants in the repository, maybe the legacy code will have a better chance of getting well some day?
(Yeah, we all know <a href="http://www.joelonsoftware.com/articles/fog0000000069.html">we shouldn't rewrite stuff</a>, but this is my "fun" repository, not my business projects...) | 0 |
51,548 | 09/09/2008 10:32:18 | 342 | 08/04/2008 19:59:52 | 749 | 76 | Finding unused files in a project | We are migrating our works repository so I want to do a cull of all the unreferenced files that exist in the source tree before moving it into the nice fresh (empty) repository.
So far I have gone through by hand and found all the unreferenced files that I know about but I want to find out if I have caught them all. One way would be to manually move the project file by file to a new folder and see what sticks when compiling. That will take all week, so I need an automated tool.
What do people suggest? | c++ | file | version-control | null | null | null | open | Finding unused files in a project
===
We are migrating our works repository so I want to do a cull of all the unreferenced files that exist in the source tree before moving it into the nice fresh (empty) repository.
So far I have gone through by hand and found all the unreferenced files that I know about but I want to find out if I have caught them all. One way would be to manually move the project file by file to a new folder and see what sticks when compiling. That will take all week, so I need an automated tool.
What do people suggest? | 0 |
51,553 | 09/09/2008 10:33:39 | 5,357 | 09/09/2008 10:33:23 | 1 | 0 | Why are SQL aggregate functions so much slower than Python and Java (or Poor Man's OLAP) | I need a real DBA's opinion here:
Using Postgres 8.3 I've built a table with 350,000 rows (responses to a survey):
CREATE TABLE tuples (id integer primary key, a integer, b integer, c integer, d integer);
\copy tuples from 'responses.csv' delimiter as ','
On my Macbook Pro it takes about 200 ms to execute this query:
SELECT count(id), avg(a),avg(b),avg(c), avg(d) FROM tuples;
I assumed that databases were really darn good at simple queries like this, but obviously I'm missing something...
I wrote some tests in Java and Python for context and they crush SQL (except for pure python):
java 1.5 threads ~ 7 ms
java 1.5 ~ 10 ms
python 2.5 numpy ~ 18 ms
python 2.5 ~ 370 ms
Even sqlite3 is competitive with Postgres despite it assumping all columns are strings (for contrast: even using just switching to numeric columns instead of integers in Postgres results in 10x slowdown)
Tunings i've tried without success include (blindly following some web advice):
increased the shared memory available to Postgres to 256MB
increased the working memory to 2MB
disabled connection and statement logging
used a stored procedure via CREATE FUNCTION ... LANGUAGE SQL
So my question is, is my experience here normal, and this is what I can expect when using a SQL database? I can understand that ACID must come with costs, but this is kind of crazy in my opinion. I'm not asking for realtime game speed, but since Java can process millions of doubles in under 20 ms, I feel a bit jealous.
Is there a better way to do simple OLAP on the cheap (both in terms of money and server complexity)? I've looked into Mondrian and Pig + Hadoop but not super excited about maintaining yet another server application and not sure if they would even help.
| sql | optimization | aggregate | olap | python | null | open | Why are SQL aggregate functions so much slower than Python and Java (or Poor Man's OLAP)
===
I need a real DBA's opinion here:
Using Postgres 8.3 I've built a table with 350,000 rows (responses to a survey):
CREATE TABLE tuples (id integer primary key, a integer, b integer, c integer, d integer);
\copy tuples from 'responses.csv' delimiter as ','
On my Macbook Pro it takes about 200 ms to execute this query:
SELECT count(id), avg(a),avg(b),avg(c), avg(d) FROM tuples;
I assumed that databases were really darn good at simple queries like this, but obviously I'm missing something...
I wrote some tests in Java and Python for context and they crush SQL (except for pure python):
java 1.5 threads ~ 7 ms
java 1.5 ~ 10 ms
python 2.5 numpy ~ 18 ms
python 2.5 ~ 370 ms
Even sqlite3 is competitive with Postgres despite it assumping all columns are strings (for contrast: even using just switching to numeric columns instead of integers in Postgres results in 10x slowdown)
Tunings i've tried without success include (blindly following some web advice):
increased the shared memory available to Postgres to 256MB
increased the working memory to 2MB
disabled connection and statement logging
used a stored procedure via CREATE FUNCTION ... LANGUAGE SQL
So my question is, is my experience here normal, and this is what I can expect when using a SQL database? I can understand that ACID must come with costs, but this is kind of crazy in my opinion. I'm not asking for realtime game speed, but since Java can process millions of doubles in under 20 ms, I feel a bit jealous.
Is there a better way to do simple OLAP on the cheap (both in terms of money and server complexity)? I've looked into Mondrian and Pig + Hadoop but not super excited about maintaining yet another server application and not sure if they would even help.
| 0 |
51,561 | 09/09/2008 10:38:25 | 988 | 08/11/2008 12:14:35 | 86 | 10 | How do I automate finding unused #include directives? | Typically when writing new code you discover that you are missing a #include because the file doesn't compile. Simple enough, you add the required #include. But later you refactor the code somehow and now a couple of #include directives are no longer needed. How do I discover which ones are no longer needed?
Of course I can manually remove some or all #include lines and add them back until the file compiles again, but this isn't really feasible in a large project with thousands of files. Are there any tools available that will help automating task? | c | null | null | null | null | null | open | How do I automate finding unused #include directives?
===
Typically when writing new code you discover that you are missing a #include because the file doesn't compile. Simple enough, you add the required #include. But later you refactor the code somehow and now a couple of #include directives are no longer needed. How do I discover which ones are no longer needed?
Of course I can manually remove some or all #include lines and add them back until the file compiles again, but this isn't really feasible in a large project with thousands of files. Are there any tools available that will help automating task? | 0 |
51,564 | 09/09/2008 10:40:03 | 1,360 | 08/14/2008 18:11:31 | 70 | 14 | JavaScript culture sensitive currency formatting | How can i format currency related data in a manner that is culture aware in JavaScript? | javascript | culture | currency | null | null | null | open | JavaScript culture sensitive currency formatting
===
How can i format currency related data in a manner that is culture aware in JavaScript? | 0 |
51,574 | 09/09/2008 10:47:34 | 5,346 | 09/09/2008 10:01:45 | 11 | 4 | Good Java graph algorithm library? | Has anyone had good experiences with any Java libraries for Graph algorithms. I've tried [JGraph][1] and found it ok, and there are a lot of different ones in google. Are there any that people are actually using successfully in production code or would recommend?
[1]: http://www.jgraph.com | java | algorithm | graphing | null | null | 10/02/2011 13:58:42 | not constructive | Good Java graph algorithm library?
===
Has anyone had good experiences with any Java libraries for Graph algorithms. I've tried [JGraph][1] and found it ok, and there are a lot of different ones in google. Are there any that people are actually using successfully in production code or would recommend?
[1]: http://www.jgraph.com | 4 |
51,582 | 09/09/2008 10:54:10 | 1,666 | 08/17/2008 21:07:18 | 916 | 56 | Java Generics: Comparing the class of Object o to <E> | Let's say I have the following class:
public class Test<E> {
public boolean sameClassAs(Object o) {
// TODO halp!
}
}
How would I check that `o` is the same class as `E`?
Test<String> test = new Test<String>();
test.sameClassAs("a string"); // returns true;
test.sameClassAs(4); // returns false;
I can't change the method signature from `(Object o)` as I'm overridding a superclass and so don't get to choose my method signature.
I would also rather not go down the road of attempting a cast and then catching the resulting exception if it fails. | java | generics | null | null | null | null | open | Java Generics: Comparing the class of Object o to <E>
===
Let's say I have the following class:
public class Test<E> {
public boolean sameClassAs(Object o) {
// TODO halp!
}
}
How would I check that `o` is the same class as `E`?
Test<String> test = new Test<String>();
test.sameClassAs("a string"); // returns true;
test.sameClassAs(4); // returns false;
I can't change the method signature from `(Object o)` as I'm overridding a superclass and so don't get to choose my method signature.
I would also rather not go down the road of attempting a cast and then catching the resulting exception if it fails. | 0 |
51,584 | 09/09/2008 10:55:04 | 834 | 08/09/2008 07:29:24 | 289 | 14 | Twitter for work updates | If you are sending work/progress reports to the project lead on a daily or weekly basis, I wondered if you would consider using [Twitter][1] or similar services for this updates.
Say if you're working remotly or with a distributed team and the project lead has a hard time getting an overview about the topics people are working and where the issues/time consumers are, would you set up some private accounts (or even a private company-internal service) to broadcast progress updates to your colleagues?
[1]: http://twitter.com | project-management | project-planning | knowledge | knowledge-management | null | null | open | Twitter for work updates
===
If you are sending work/progress reports to the project lead on a daily or weekly basis, I wondered if you would consider using [Twitter][1] or similar services for this updates.
Say if you're working remotly or with a distributed team and the project lead has a hard time getting an overview about the topics people are working and where the issues/time consumers are, would you set up some private accounts (or even a private company-internal service) to broadcast progress updates to your colleagues?
[1]: http://twitter.com | 0 |
51,586 | 09/09/2008 10:56:45 | 2,597 | 08/23/2008 13:07:07 | 149 | 9 | Accessing non-generic members of a generic object | Is there a way to collect (e.g. in a List) multiple 'generic' objects that don't share a common super class? If so, how can I access their common properties?
For example:
class MyObject<T>
{
public T Value { get; set; }
public string Name { get; set; }
public MyObject(string name, T value)
{
Name = name;
Value = value;
}
}
var fst = new MyObject<int>("fst", 42);
var snd = new MyObject<bool>("snd", true);
List<MyObject<?>> list = new List<MyObject<?>>(){fst, snd};
foreach (MyObject<?> o in list)
Console.WriteLine(o.Name);
Obviously, this is pseudo code, this doesn't work.
Also I don't need to access the .Value property (since that wouldn't be type-safe).
**EDIT:** Now that I've been thinking about this, It would be possible to use sub-classes for this. However, I think that would mean I'd have to write a new subclass for every new type. | c# | .net | generics | null | null | null | open | Accessing non-generic members of a generic object
===
Is there a way to collect (e.g. in a List) multiple 'generic' objects that don't share a common super class? If so, how can I access their common properties?
For example:
class MyObject<T>
{
public T Value { get; set; }
public string Name { get; set; }
public MyObject(string name, T value)
{
Name = name;
Value = value;
}
}
var fst = new MyObject<int>("fst", 42);
var snd = new MyObject<bool>("snd", true);
List<MyObject<?>> list = new List<MyObject<?>>(){fst, snd};
foreach (MyObject<?> o in list)
Console.WriteLine(o.Name);
Obviously, this is pseudo code, this doesn't work.
Also I don't need to access the .Value property (since that wouldn't be type-safe).
**EDIT:** Now that I've been thinking about this, It would be possible to use sub-classes for this. However, I think that would mean I'd have to write a new subclass for every new type. | 0 |
51,589 | 09/09/2008 10:58:57 | 230 | 08/03/2008 19:32:46 | 559 | 34 | Integration Services: Multiple-step OLE DB operation generated errors | I'm attempting to make a DTS package to transfer data between two databases on the same server and I'm getting the following errors. Iv read that the Multiple-step OLE DB operation generated error can occur when you are transferring between different database types and there is loss of precision, but this is not that case here. How do I examine the column meta data?
> Error: 0xC0202009 at Data Flow Task,
> piTech [183]: An OLE DB error has
> occurred. Error code: 0x80040E21. An
> OLE DB record is available. Source:
> "Microsoft SQL Native Client"
> Hresult: 0x80040E21 Description:
> "Multiple-step OLE DB operation
> generated errors. Check each OLE DB
> status value, if available. No work
> was done.".
>
> Error: 0xC0202025 at Data Flow Task,
> piTech [183]: Cannot create an OLE DB
> accessor. Verify that the column
> metadata is valid.
>
> Error: 0xC004701A at Data Flow Task,
> DTS.Pipeline: component "piTech" (183)
> failed the pre-execute phase and
> returned error code 0xC0202025. | sql-server | ssis | null | null | null | null | open | Integration Services: Multiple-step OLE DB operation generated errors
===
I'm attempting to make a DTS package to transfer data between two databases on the same server and I'm getting the following errors. Iv read that the Multiple-step OLE DB operation generated error can occur when you are transferring between different database types and there is loss of precision, but this is not that case here. How do I examine the column meta data?
> Error: 0xC0202009 at Data Flow Task,
> piTech [183]: An OLE DB error has
> occurred. Error code: 0x80040E21. An
> OLE DB record is available. Source:
> "Microsoft SQL Native Client"
> Hresult: 0x80040E21 Description:
> "Multiple-step OLE DB operation
> generated errors. Check each OLE DB
> status value, if available. No work
> was done.".
>
> Error: 0xC0202025 at Data Flow Task,
> piTech [183]: Cannot create an OLE DB
> accessor. Verify that the column
> metadata is valid.
>
> Error: 0xC004701A at Data Flow Task,
> DTS.Pipeline: component "piTech" (183)
> failed the pre-execute phase and
> returned error code 0xC0202025. | 0 |
51,592 | 09/09/2008 10:59:38 | 1,721 | 08/18/2008 09:58:47 | 106 | 12 | Is there a need to destroy char * = "string" or char * = new char[6] | I assume when I do **char* = "string"** its the same thing as **char* = new char[6]**. I believe these strings are created on the heap instead of the stack. So do I need to destroy them or free their memory when I'm done using them or do they get destroyed by themselves. | c++ | c | memory | null | null | null | open | Is there a need to destroy char * = "string" or char * = new char[6]
===
I assume when I do **char* = "string"** its the same thing as **char* = new char[6]**. I believe these strings are created on the heap instead of the stack. So do I need to destroy them or free their memory when I'm done using them or do they get destroyed by themselves. | 0 |
51,593 | 09/09/2008 10:59:41 | 279 | 08/04/2008 11:30:57 | 523 | 49 | Apache XML-RPC Exception Handling | What is the easiest way to extract the original exception from an exception returned via Apache's implementation of XML-RPC? | exception | xml-rpc | null | null | null | null | open | Apache XML-RPC Exception Handling
===
What is the easiest way to extract the original exception from an exception returned via Apache's implementation of XML-RPC? | 0 |
51,619 | 09/09/2008 11:11:45 | 2,313 | 08/21/2008 15:27:23 | 163 | 18 | How to setup GIT bare HTTP-available repository on IIS-machine | server already runs IIS to serve 80 and 443 port over TCP. I want to make centralized "push/pull" GIT repository available to all my team members over the Internet.
So I should use HTTP or HTTPS.
But I cannot use Apache because of IIS already hooking up listening sockets on 80 and 443 ports! Is there any way to publish GIT repository over *IIS*? Does GIT use WebDAV ultima analysi? | version-control | git | iis7 | dvcs | null | null | open | How to setup GIT bare HTTP-available repository on IIS-machine
===
server already runs IIS to serve 80 and 443 port over TCP. I want to make centralized "push/pull" GIT repository available to all my team members over the Internet.
So I should use HTTP or HTTPS.
But I cannot use Apache because of IIS already hooking up listening sockets on 80 and 443 ports! Is there any way to publish GIT repository over *IIS*? Does GIT use WebDAV ultima analysi? | 0 |
51,624 | 09/09/2008 11:16:47 | 5,023 | 09/07/2008 12:27:27 | 18 | 8 | Designers and developers working together | The rich presentational capabilities of WPF and Silverlight mean developers like me will be working closely with graphic designers more often these days, as is the case in my next project.
Does anyone out there have any tips/experience (from both points of view) on making this go more smoothly? For example when I mentioned source control to a designer recently I was told you can't source control graphics, images etc, so it is a waste of time. But what about XAML files in WPF/Silverlight?
Scott Hanselman spoke about this topic in a [podcast](http://www.hanselminutes.com/default.aspx?showID=138), but focused more on the tools. I'm more interested in the communication issues/aspects.
| wpf | design | silverlight | null | null | null | open | Designers and developers working together
===
The rich presentational capabilities of WPF and Silverlight mean developers like me will be working closely with graphic designers more often these days, as is the case in my next project.
Does anyone out there have any tips/experience (from both points of view) on making this go more smoothly? For example when I mentioned source control to a designer recently I was told you can't source control graphics, images etc, so it is a waste of time. But what about XAML files in WPF/Silverlight?
Scott Hanselman spoke about this topic in a [podcast](http://www.hanselminutes.com/default.aspx?showID=138), but focused more on the tools. I'm more interested in the communication issues/aspects.
| 0 |
51,645 | 09/09/2008 11:28:30 | 5,019 | 09/07/2008 11:51:36 | 21 | 2 | How to discover USB storage devices and writable CD/DVD drives (C#) | How can I discover any USB storage devices and/or CD/DVD writers available at a given time (using C# .Net2.0).
I would like to present users with a choice of devices onto which a file can be stored for physically removal - i.e. not the hard drive. | c# | .net-2.0 | null | null | null | null | open | How to discover USB storage devices and writable CD/DVD drives (C#)
===
How can I discover any USB storage devices and/or CD/DVD writers available at a given time (using C# .Net2.0).
I would like to present users with a choice of devices onto which a file can be stored for physically removal - i.e. not the hard drive. | 0 |
51,649 | 09/09/2008 11:31:03 | 572 | 08/06/2008 20:56:54 | 3,196 | 247 | How does off-the-shelf software fit in with agile development? | Maybe my understanding of agile development isn't as good as it should be, but I'm curious how an agile developer would potentially use off-the-shelf (OTS) software when the requirements and knowledge of what the final system should be are changing as rapidly as I understand them to (often after each iteration of development).
----------
I see two situations that are of particular interest to me:
(1) An OTS system meets the initial set of requirements with little to no modification, other than potential integration into an existing system. However, within a few iterations of development, this system no longer meets the needs without rewriting the core code. The developers must choose to either spend additional time learning the core code behind this OTS software or throw it away and build from scratch. Either would have a drastic impact on development time and project cost.
(2) The initial needs are not like any existing OTS system available, however, in the end when the customer accepts the product, it ends up being much like existing solutions due to requirement additions and subtractions. If the developers had more requirements and spent more time working on them up front, this solution could have been used instead of building again. The project was delivered, but later and at a higher cost than necessary.
----------
As a software engineer, part of my responsibilities (as I have been taught), are to deliver high-quality software to the customer on time at the lowest possible cost (among other things). Agile development allows for high-quality software, but in some cases, it might not be apparent that there are better alternatives until it is too late and too much money has been spent.
My questions are:
1. How do the agile manager and agile
developer deal with these cases?
2. What do the agile paradigms say about these cases? | agile | off-the-shelf-software | null | null | null | null | open | How does off-the-shelf software fit in with agile development?
===
Maybe my understanding of agile development isn't as good as it should be, but I'm curious how an agile developer would potentially use off-the-shelf (OTS) software when the requirements and knowledge of what the final system should be are changing as rapidly as I understand them to (often after each iteration of development).
----------
I see two situations that are of particular interest to me:
(1) An OTS system meets the initial set of requirements with little to no modification, other than potential integration into an existing system. However, within a few iterations of development, this system no longer meets the needs without rewriting the core code. The developers must choose to either spend additional time learning the core code behind this OTS software or throw it away and build from scratch. Either would have a drastic impact on development time and project cost.
(2) The initial needs are not like any existing OTS system available, however, in the end when the customer accepts the product, it ends up being much like existing solutions due to requirement additions and subtractions. If the developers had more requirements and spent more time working on them up front, this solution could have been used instead of building again. The project was delivered, but later and at a higher cost than necessary.
----------
As a software engineer, part of my responsibilities (as I have been taught), are to deliver high-quality software to the customer on time at the lowest possible cost (among other things). Agile development allows for high-quality software, but in some cases, it might not be apparent that there are better alternatives until it is too late and too much money has been spent.
My questions are:
1. How do the agile manager and agile
developer deal with these cases?
2. What do the agile paradigms say about these cases? | 0 |
51,653 | 09/09/2008 11:34:07 | 3,221 | 08/27/2008 13:35:07 | 39 | 5 | What to do with queries who don´t have a representation in a domain model? | This is not specific to any language, it´s just about best practices. I am using JPA/Hibernate (but it could be any other ORM solution) and I would like to know how do you guys deal with this situation:
Let´s supose that you have a query returning something that is not represented by any of your domain classes.
Do you create a specific class to represent that specific query?
Do you return the query in some other kind of object (array, map...)
Some other solutions?
I would like to know about your experiences and best practices.
P.S.
Actually I am creating specific objetcs for specific queries. | orm | null | null | null | null | null | open | What to do with queries who don´t have a representation in a domain model?
===
This is not specific to any language, it´s just about best practices. I am using JPA/Hibernate (but it could be any other ORM solution) and I would like to know how do you guys deal with this situation:
Let´s supose that you have a query returning something that is not represented by any of your domain classes.
Do you create a specific class to represent that specific query?
Do you return the query in some other kind of object (array, map...)
Some other solutions?
I would like to know about your experiences and best practices.
P.S.
Actually I am creating specific objetcs for specific queries. | 0 |
51,654 | 09/09/2008 11:34:07 | 4,723 | 09/05/2008 11:19:37 | 81 | 11 | (N)Hibernate - is it possible to dynamically map multiple tables to the one class | I have the situation where i use GIS software which stores the information about GIS objects into separate database table for each type/class of GIS object (road, river, building, sea, ...) and keeps the metadata table in which it stores info about the class name and its DB table.
Those GIS objects of different classes share some parameters, i.e. Description and ID. I'd like to represent all of these different GIS classes with one common C# class (let's call it GisObject), which is enough for what i need to do from the non-GIS part of the application which lists GIS objects of the given GIS class.
The problem for me is how to map those objects using NHibernate to explain to the NHibernate when creating a C# GisObject to receive and **use the table name as a parameter** which will be read from the meta table (it can be in two steps, i can manually fetch the table name in first step and then pass it down to the NHibernate when pulling GisObject data).
Has anybody dealt with this kind of situation, and can it be done at all? | c# | nhibernate | orm | hibernate | gis | null | open | (N)Hibernate - is it possible to dynamically map multiple tables to the one class
===
I have the situation where i use GIS software which stores the information about GIS objects into separate database table for each type/class of GIS object (road, river, building, sea, ...) and keeps the metadata table in which it stores info about the class name and its DB table.
Those GIS objects of different classes share some parameters, i.e. Description and ID. I'd like to represent all of these different GIS classes with one common C# class (let's call it GisObject), which is enough for what i need to do from the non-GIS part of the application which lists GIS objects of the given GIS class.
The problem for me is how to map those objects using NHibernate to explain to the NHibernate when creating a C# GisObject to receive and **use the table name as a parameter** which will be read from the meta table (it can be in two steps, i can manually fetch the table name in first step and then pass it down to the NHibernate when pulling GisObject data).
Has anybody dealt with this kind of situation, and can it be done at all? | 0 |
51,660 | 09/09/2008 11:38:54 | 123 | 08/02/2008 08:01:26 | 1,179 | 57 | Metamodelling tools.. | What tools are available for metamodelling?
Especially for developing diagram editors, at the moment trying out [Eclipse GMF][1]
Wondering what other options are out there?
Any comparison available?
[1]: http://www.eclipse.org/modeling/gmf/ | model-driven | tool | diagram-editor | null | null | null | open | Metamodelling tools..
===
What tools are available for metamodelling?
Especially for developing diagram editors, at the moment trying out [Eclipse GMF][1]
Wondering what other options are out there?
Any comparison available?
[1]: http://www.eclipse.org/modeling/gmf/ | 0 |
51,667 | 09/09/2008 11:41:38 | 5,109 | 09/07/2008 22:37:24 | 11 | 2 | Where can I find a good template/example for doucmenting C files using doxygen? | My team is starting to document our C API headers using doxygen. There appears to be a lot of flexibility and different special commands in doxygen, which is great, but it's not clear where to get started. I am looking to create an example file for the rest of the team to reference, so far I have something like:
/**
* @file example.h
*
* @Author Me ([email protected])
*
* Brief description of file.
*/
/**
* This example function does nothing.
*
* @param [in] repeat Number of times to do nothing.
*
* @retval TRUE Successfully did nothing.
* @retval FALSE Oops, did something.
*/
boolean example(int repeat);
This seems OK, but the API grouping look interesting and I'm sure there are some really useful commands available. What are your favourite ways to mark up your code, what are your MUST DOs and DO NOTs? What good examples of this are available for C? | c | documentation | doxygen | null | null | null | open | Where can I find a good template/example for doucmenting C files using doxygen?
===
My team is starting to document our C API headers using doxygen. There appears to be a lot of flexibility and different special commands in doxygen, which is great, but it's not clear where to get started. I am looking to create an example file for the rest of the team to reference, so far I have something like:
/**
* @file example.h
*
* @Author Me ([email protected])
*
* Brief description of file.
*/
/**
* This example function does nothing.
*
* @param [in] repeat Number of times to do nothing.
*
* @retval TRUE Successfully did nothing.
* @retval FALSE Oops, did something.
*/
boolean example(int repeat);
This seems OK, but the API grouping look interesting and I'm sure there are some really useful commands available. What are your favourite ways to mark up your code, what are your MUST DOs and DO NOTs? What good examples of this are available for C? | 0 |
51,673 | 09/09/2008 11:46:10 | 5,374 | 09/09/2008 11:29:39 | 21 | 1 | What is th easiest way to copy a database from one Informix IDS 11 Server to another | The source database is quite large. The target database, doesn't grow automatically. They are on different machines.
I'm coming from a MSSql, MySQl background and IDS11 seems overly complex (I am sure, with good reason) | migration | administration | informix | null | null | null | open | What is th easiest way to copy a database from one Informix IDS 11 Server to another
===
The source database is quite large. The target database, doesn't grow automatically. They are on different machines.
I'm coming from a MSSql, MySQl background and IDS11 seems overly complex (I am sure, with good reason) | 0 |
51,680 | 09/09/2008 11:48:24 | 2,902 | 08/25/2008 20:49:25 | 654 | 39 | Graph (Chart) Algorithm | Does anyone have a decent algorithm for calculating axis minima and maxima?
When creating a chart for a given set of data items, I'd like to be able to give the algorithm:
- the maximum (y) value in the set
- the minimum (y) value in the set
- the number of tick marks to appear on the axis
- an optional value that **must** appear as a tick (e.g. zero when showing +ve and -ve values)
The algorithm should return
- the largest axis value
- the smallest axis value (although that could be inferred from the largest, the interval size and the number of ticks)
- the interval size
The ticks should be at a regular interval should be of a "reasonable" size (e.g. 1, 3, 5, possibly even 2.5, but not any more sig figs).
The presence of the optional value will skew this, but without that value the largest item should appear between the top two tick marks, the lowest value between the bottom two.
This is a language-agnostic question, but if there's a C#/.NET library around, that would be smashing ;)
| algorithm | graph | charts | null | null | null | open | Graph (Chart) Algorithm
===
Does anyone have a decent algorithm for calculating axis minima and maxima?
When creating a chart for a given set of data items, I'd like to be able to give the algorithm:
- the maximum (y) value in the set
- the minimum (y) value in the set
- the number of tick marks to appear on the axis
- an optional value that **must** appear as a tick (e.g. zero when showing +ve and -ve values)
The algorithm should return
- the largest axis value
- the smallest axis value (although that could be inferred from the largest, the interval size and the number of ticks)
- the interval size
The ticks should be at a regular interval should be of a "reasonable" size (e.g. 1, 3, 5, possibly even 2.5, but not any more sig figs).
The presence of the optional value will skew this, but without that value the largest item should appear between the top two tick marks, the lowest value between the bottom two.
This is a language-agnostic question, but if there's a C#/.NET library around, that would be smashing ;)
| 0 |
51,684 | 09/09/2008 11:52:04 | 5,023 | 09/07/2008 12:27:27 | 38 | 8 | Name of the process with highest cpu usage | I have a [Samurize](http://www.samurize.com/modules/news/) config that shows a CPU usage graph similar to Task manager.
How do I also display the name of the process with the current highest CPU usage percentage?
I would like this to be updated, at most, once per second. Samurize can call a command line tool and display it's output on screen, so this could also be an option. | performance | operating-system | null | null | null | null | open | Name of the process with highest cpu usage
===
I have a [Samurize](http://www.samurize.com/modules/news/) config that shows a CPU usage graph similar to Task manager.
How do I also display the name of the process with the current highest CPU usage percentage?
I would like this to be updated, at most, once per second. Samurize can call a command line tool and display it's output on screen, so this could also be an option. | 0 |
51,686 | 09/09/2008 11:53:07 | 5,362 | 09/09/2008 10:53:45 | 1 | 0 | Is it possible to deploy a native Delphi application with ClickOnce | Is it possible to deploy a native Delphi application with ClickOnce without a stub C# exe that would be used to launch the Delphi application? | deployment | delphi | clickonce | null | null | null | open | Is it possible to deploy a native Delphi application with ClickOnce
===
Is it possible to deploy a native Delphi application with ClickOnce without a stub C# exe that would be used to launch the Delphi application? | 0 |
51,687 | 09/09/2008 11:53:23 | 379 | 08/05/2008 10:03:38 | 136 | 15 | Lightbox style dialogs in MFC App | Has anyone implemented Lightbox style background dimming on a modal dialog box in a MFC/non .net app.
I think the procedure would have to be something like:
steps:
1. Get dialog parent HWND or CWnd*
2. Get the rect of the parent window and draw an overlay with a translucency over that window
3. allow the dialog to do it's modal draw routine, e.g DoModal()
Are there any existing libraries/frameworks to do this, or what's the best way to drop a translucent overlay in MFC? | c++ | gui | mfc | null | null | null | open | Lightbox style dialogs in MFC App
===
Has anyone implemented Lightbox style background dimming on a modal dialog box in a MFC/non .net app.
I think the procedure would have to be something like:
steps:
1. Get dialog parent HWND or CWnd*
2. Get the rect of the parent window and draw an overlay with a translucency over that window
3. allow the dialog to do it's modal draw routine, e.g DoModal()
Are there any existing libraries/frameworks to do this, or what's the best way to drop a translucent overlay in MFC? | 0 |
51,690 | 09/09/2008 11:58:31 | 5,383 | 09/09/2008 11:58:30 | 1 | 0 | Vista BEX error | Recently I got IE7 crashed on Vista on jar loading (presumably) with the following error:
Problem signature:
Problem Event Name: BEX
Application Name: iexplore.exe
Application Version: 7.0.6001.18000
Application Timestamp: 47918f11
Fault Module Name: ntdll.dll
Fault Module Version: 6.0.6001.18000
Fault Module Timestamp: 4791a7a6
Exception Offset: 00087ba6
Exception Code: c000000d
Exception Data: 00000000
OS Version: 6.0.6001.2.1.0.768.3
Locale ID: 1037
Additional Information 1: fd00
Additional Information 2: ea6f5fe8924aaa756324d57f87834160
Additional Information 3: fd00
Additional Information 4: ea6f5fe8924aaa756324d57f87834160
Googling revealed this sort of problems [is][1] [common][2] [for][3] [Vista][4] and relates to [Java][5] (although SUN [negates][6]). Also I think it has something to do with DEP. I failed to find official Microsoft Kb.
So, the questions are:
- What BEX stands for?
- What is it about?
- How to deal with such kind of errors?
[1]: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1194672&SiteID=1
[2]: http://support.mozilla.com/tiki-view_forum_thread.php?locale=eu&comments_parentId=101420&forumId=1
[3]: http://www.eggheadcafe.com/software/aspnet/29930817/bex-problem.aspx
[4]: http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.vc.mfc&tid=d511c635-3c99-431d-8118-526d3e3fff00&cat=&lang=&cr=&sloc=&p=1
[5]: http://www.gomanuals.com/java_not_working_on_windows_vista.shtml
[6]: http://weblogs.java.net/blog/chet/archive/2006/10/java_on_vista_y.html | winapi | windows-vista | null | null | null | null | open | Vista BEX error
===
Recently I got IE7 crashed on Vista on jar loading (presumably) with the following error:
Problem signature:
Problem Event Name: BEX
Application Name: iexplore.exe
Application Version: 7.0.6001.18000
Application Timestamp: 47918f11
Fault Module Name: ntdll.dll
Fault Module Version: 6.0.6001.18000
Fault Module Timestamp: 4791a7a6
Exception Offset: 00087ba6
Exception Code: c000000d
Exception Data: 00000000
OS Version: 6.0.6001.2.1.0.768.3
Locale ID: 1037
Additional Information 1: fd00
Additional Information 2: ea6f5fe8924aaa756324d57f87834160
Additional Information 3: fd00
Additional Information 4: ea6f5fe8924aaa756324d57f87834160
Googling revealed this sort of problems [is][1] [common][2] [for][3] [Vista][4] and relates to [Java][5] (although SUN [negates][6]). Also I think it has something to do with DEP. I failed to find official Microsoft Kb.
So, the questions are:
- What BEX stands for?
- What is it about?
- How to deal with such kind of errors?
[1]: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1194672&SiteID=1
[2]: http://support.mozilla.com/tiki-view_forum_thread.php?locale=eu&comments_parentId=101420&forumId=1
[3]: http://www.eggheadcafe.com/software/aspnet/29930817/bex-problem.aspx
[4]: http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.vc.mfc&tid=d511c635-3c99-431d-8118-526d3e3fff00&cat=&lang=&cr=&sloc=&p=1
[5]: http://www.gomanuals.com/java_not_working_on_windows_vista.shtml
[6]: http://weblogs.java.net/blog/chet/archive/2006/10/java_on_vista_y.html | 0 |
51,700 | 09/09/2008 12:10:27 | 5,363 | 09/09/2008 10:58:29 | 46 | 1 | Property default values using Properties.Settings.Default | I am using .Net 2 and the normal way to store my settings. I store my custom object serialized to xml. I am trying to retrieve the default value of the property (but without reseting other properties). I use:
ValuationInput valuationInput = (ValuationInput) Settings.Default.Properties["ValuationInput"].DefaultValue;
But it seems to return a string instead of ValuationInput and it throws an exception.
I made a quick hack, which works fine:
string valuationInputStr = (string)
Settings.Default.Properties["ValuationInput"].DefaultValue;
XmlSerializer xmlSerializer = new XmlSerializer(typeof(ValuationInput));
ValuationInput valuationInput = (ValuationInput) xmlSerializer.Deserialize(new StringReader(valuationInputStr));
But this is really ugly - when I use all the tool to define a strongly typed setting, I don't want to serialize the default value myself, I would like to read it the same way as I read the current value: ValuationInput valuationInput = Settings.Default.ValuationInput; | c# | .net | settings | null | null | null | open | Property default values using Properties.Settings.Default
===
I am using .Net 2 and the normal way to store my settings. I store my custom object serialized to xml. I am trying to retrieve the default value of the property (but without reseting other properties). I use:
ValuationInput valuationInput = (ValuationInput) Settings.Default.Properties["ValuationInput"].DefaultValue;
But it seems to return a string instead of ValuationInput and it throws an exception.
I made a quick hack, which works fine:
string valuationInputStr = (string)
Settings.Default.Properties["ValuationInput"].DefaultValue;
XmlSerializer xmlSerializer = new XmlSerializer(typeof(ValuationInput));
ValuationInput valuationInput = (ValuationInput) xmlSerializer.Deserialize(new StringReader(valuationInputStr));
But this is really ugly - when I use all the tool to define a strongly typed setting, I don't want to serialize the default value myself, I would like to read it the same way as I read the current value: ValuationInput valuationInput = Settings.Default.ValuationInput; | 0 |
51,701 | 09/09/2008 12:10:44 | 393,028 | 09/01/2008 13:58:49 | 30 | 8 | Mail Message Link Handling | I've written an Applescript which when supplied with a Windows network link, will convert it to the correct smb:// equivelent for the server in our office, mount the network drive, and open the requested folder in Finder.
I have this built in an application which just takes a pasted network path. Ideally I need this to trigger on clicking a link in a Mail.app email message... so that it can check if the link is in the correct format, and if so run the script: attempt to mount the drive and load the folder in Finder.
How would I go about doing this? | osx | applescript | null | null | null | null | open | Mail Message Link Handling
===
I've written an Applescript which when supplied with a Windows network link, will convert it to the correct smb:// equivelent for the server in our office, mount the network drive, and open the requested folder in Finder.
I have this built in an application which just takes a pasted network path. Ideally I need this to trigger on clicking a link in a Mail.app email message... so that it can check if the link is in the correct format, and if so run the script: attempt to mount the drive and load the folder in Finder.
How would I go about doing this? | 0 |
51,729 | 09/09/2008 12:26:36 | 123 | 08/02/2008 08:01:26 | 1,204 | 58 | Copyright question - Dictionary Application.. | I am wondering about what kind of copyright issues should one be aware of, when developing a dictionary application.
There are plenty of sources where you can "collect" words from internet.
But what precautions should be used before using them?
Cheers
| copyright | null | null | null | null | null | open | Copyright question - Dictionary Application..
===
I am wondering about what kind of copyright issues should one be aware of, when developing a dictionary application.
There are plenty of sources where you can "collect" words from internet.
But what precautions should be used before using them?
Cheers
| 0 |
51,741 | 09/09/2008 12:30:32 | 4,660 | 09/05/2008 02:23:19 | 96 | 1 | Issue reading Xml file into C# DataSet | I was given an .xml file that I needed to read into my code as a DataSet (as background, the file was created by creating a DataSet in C# and calling dataSet.WriteXml(file, XmlWriteMode.IgnoreSchema), but this was done by someone else). The .xml file was shaped like this:
<?xml version="1.0" standalone="yes"?>
<NewDataSet>
<Foo>
<Bar>abcd</Bar>
<Foo>efg</Foo>
</Foo>
<Foo>
<Bar>hijk</Bar>
<Foo>lmn</Foo>
</Foo>
</NewDataSet>
Using C# and .NET 2.0, I read the file in using the code below.
DataSet ds = new DataSet();
ds.ReadXml(file);
Using a breakpoint, after this line ds.Tables[0] looked like this (using dashes in place of underscores that I couldn't get to format properly):
Bar Foo-Id Foo-Id-0
abcd 0 null
null 1 0
hijk 2 null
null 3 2
I have found a workaround (I know there are many) and have been able to successfully read in the .xml, but what I would like to understand why ds.ReadXml(file) performed in this manner, so I will be able to avoid the issue in the future. Thanks. | c# | .net | xml | .net-2.0 | null | null | open | Issue reading Xml file into C# DataSet
===
I was given an .xml file that I needed to read into my code as a DataSet (as background, the file was created by creating a DataSet in C# and calling dataSet.WriteXml(file, XmlWriteMode.IgnoreSchema), but this was done by someone else). The .xml file was shaped like this:
<?xml version="1.0" standalone="yes"?>
<NewDataSet>
<Foo>
<Bar>abcd</Bar>
<Foo>efg</Foo>
</Foo>
<Foo>
<Bar>hijk</Bar>
<Foo>lmn</Foo>
</Foo>
</NewDataSet>
Using C# and .NET 2.0, I read the file in using the code below.
DataSet ds = new DataSet();
ds.ReadXml(file);
Using a breakpoint, after this line ds.Tables[0] looked like this (using dashes in place of underscores that I couldn't get to format properly):
Bar Foo-Id Foo-Id-0
abcd 0 null
null 1 0
hijk 2 null
null 3 2
I have found a workaround (I know there are many) and have been able to successfully read in the .xml, but what I would like to understand why ds.ReadXml(file) performed in this manner, so I will be able to avoid the issue in the future. Thanks. | 0 |
51,751 | 09/09/2008 12:35:35 | 5,389 | 09/09/2008 12:09:19 | 1 | 0 | HTTP Errors with .Net 3.5 SP1 | I have a ASP.Net website that is failing on AJAX postbacks (both with ASP.Net AJAX and a 3rd part control) in IE. FireFox works fine. If I install the website on another machine without .Net 3.5 SP1, it works as expected.
When it fails, Fiddler shows that I'm getting a 405 "Method Not Allowed". The form seems to be posting to pages other than page I'm viewing.
The form's action is "#" for the page on the broken website (with SP1). The form's action is "Default.aspx" for the same page on a website without SP1.
Any ideas?
| asp.net | .net3.5 | sp1 | null | null | null | open | HTTP Errors with .Net 3.5 SP1
===
I have a ASP.Net website that is failing on AJAX postbacks (both with ASP.Net AJAX and a 3rd part control) in IE. FireFox works fine. If I install the website on another machine without .Net 3.5 SP1, it works as expected.
When it fails, Fiddler shows that I'm getting a 405 "Method Not Allowed". The form seems to be posting to pages other than page I'm viewing.
The form's action is "#" for the page on the broken website (with SP1). The form's action is "Default.aspx" for the same page on a website without SP1.
Any ideas?
| 0 |
51,754 | 09/09/2008 12:36:49 | 4,232 | 09/02/2008 13:22:20 | 1 | 1 | SpecialCells in VSTO | I'm trying to use the SpecialCells method in a VSTO project using c# against the 3.5 framework and Excel2007.
Here's my code:
Excel.Worksheet myWs = (Excel.Worksheet)ModelWb.Worksheets[1];
Range myRange = myWs.get_Range("A7", "A800");
//Range rAccounts = myRange.SpecialCells(XlCellType.xlCellTypeConstants, XlSpecialCellsValue.xlTextValues);
Range rAccounts = myWs.Cells.SpecialCells(XlCellType.xlCellTypeConstants, XlSpecialCellsValue.xlTextValues);
When I run this, it throws an exception... System.Exception._COMPlusExceptionCode with a value of -532459699
Note that I get the same exception if I switch(uncomment one and comment the other) the above Range rAccounts line.
| vsto | null | null | null | null | null | open | SpecialCells in VSTO
===
I'm trying to use the SpecialCells method in a VSTO project using c# against the 3.5 framework and Excel2007.
Here's my code:
Excel.Worksheet myWs = (Excel.Worksheet)ModelWb.Worksheets[1];
Range myRange = myWs.get_Range("A7", "A800");
//Range rAccounts = myRange.SpecialCells(XlCellType.xlCellTypeConstants, XlSpecialCellsValue.xlTextValues);
Range rAccounts = myWs.Cells.SpecialCells(XlCellType.xlCellTypeConstants, XlSpecialCellsValue.xlTextValues);
When I run this, it throws an exception... System.Exception._COMPlusExceptionCode with a value of -532459699
Note that I get the same exception if I switch(uncomment one and comment the other) the above Range rAccounts line.
| 0 |
51,768 | 09/09/2008 12:45:34 | 267 | 08/04/2008 10:11:06 | 3,352 | 172 | Print stack trace information from C# | As part of some error handling in our product, we'd like to dump some stack trace information. However, we experience that many users will simply take a screenshot of the error message dialog instead of sending us a copy of the full report available from the program, and thus I'd like to make some minimal stack trace information available in this dialog.
A .NET stack trace on my machine looks like this:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path)
at LVKWinFormsSandbox.MainForm.button1_Click(Object sender, EventArgs e) in C:\Dev\VS.NET\Gatsoft\LVKWinFormsSandbox\MainForm.cs:line 36
I have this question:
The format looks to be this:
at <class/method> [in file:line ##]
However, the *at* and *in* keywords, I assume these will be localized if they run, say, a norwegian .NET runtime instead of the english one I have installed.
Is there any way for me to pick apart this stack trace in a language-neutral manner, so that I can display only the file and line number for those entries that have this?
In other words, I'd like this information from the above text:
C:\Dev\VS.NET\Gatsoft\LVKWinFormsSandbox\MainForm.cs:line 36
Any advice you can give will be helpful. | c# | parsing | stack-trace | errorhandling | null | null | open | Print stack trace information from C#
===
As part of some error handling in our product, we'd like to dump some stack trace information. However, we experience that many users will simply take a screenshot of the error message dialog instead of sending us a copy of the full report available from the program, and thus I'd like to make some minimal stack trace information available in this dialog.
A .NET stack trace on my machine looks like this:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path)
at LVKWinFormsSandbox.MainForm.button1_Click(Object sender, EventArgs e) in C:\Dev\VS.NET\Gatsoft\LVKWinFormsSandbox\MainForm.cs:line 36
I have this question:
The format looks to be this:
at <class/method> [in file:line ##]
However, the *at* and *in* keywords, I assume these will be localized if they run, say, a norwegian .NET runtime instead of the english one I have installed.
Is there any way for me to pick apart this stack trace in a language-neutral manner, so that I can display only the file and line number for those entries that have this?
In other words, I'd like this information from the above text:
C:\Dev\VS.NET\Gatsoft\LVKWinFormsSandbox\MainForm.cs:line 36
Any advice you can give will be helpful. | 0 |
51,771 | 09/09/2008 12:46:21 | 1,736 | 08/18/2008 11:29:16 | 173 | 10 | The best way to validate XML in a unit test? | I have a class with a `ToString` method that produces XML. I want to unit test it to ensure it is producing valid xml. I have a DTD to validate the XML against.
**Should I include the DTD as a string within the unit test to avoid a dependency** on it, or is there a smarter way to do this? | language-agnostic | xml | unit-testing | dtd | null | null | open | The best way to validate XML in a unit test?
===
I have a class with a `ToString` method that produces XML. I want to unit test it to ensure it is producing valid xml. I have a DTD to validate the XML against.
**Should I include the DTD as a string within the unit test to avoid a dependency** on it, or is there a smarter way to do this? | 0 |
51,782 | 09/09/2008 12:53:47 | 2,260 | 08/21/2008 11:39:22 | 544 | 59 | How do I export the code documentation in C# / VisualStudio 2008? | I have allways made a point of writing nice code comments for classes and methods with the C# xml syntax. I allways expected to easily be able to export them later on.
Today I actually have to do so, but am having trouble finding out how. Is there something I'm missing? I want to go *Menu->Build->Build Code Documentation*... | c# | vs2008 | documentation | null | null | null | open | How do I export the code documentation in C# / VisualStudio 2008?
===
I have allways made a point of writing nice code comments for classes and methods with the C# xml syntax. I allways expected to easily be able to export them later on.
Today I actually have to do so, but am having trouble finding out how. Is there something I'm missing? I want to go *Menu->Build->Build Code Documentation*... | 0 |
51,783 | 09/09/2008 12:54:05 | 1,428 | 08/15/2008 15:27:39 | 325 | 14 | How to serialize a graph structure? | Flat files and relational databases give us a mechanism to serialize structured data. XML is superb for serializing un-structured tree-like data.
But many problems are best represented by graphs. A thermal simulation program will, for instance, work with temperature nodes connected to each others through resistive edges.
So what is the best way to serialize a graph structure? I know XML can, to some extent, do it---in the same way that a relational database can serialize a complex web of objects: it usually works but can easily get ugly.
I know about the dot language used by the graphviz program, but I'm not sure this is the best way to do it. This question is probably the sort of thing academia might be working on and I'd love to have references to any papers discussing this. | serialization | graph | null | null | null | null | open | How to serialize a graph structure?
===
Flat files and relational databases give us a mechanism to serialize structured data. XML is superb for serializing un-structured tree-like data.
But many problems are best represented by graphs. A thermal simulation program will, for instance, work with temperature nodes connected to each others through resistive edges.
So what is the best way to serialize a graph structure? I know XML can, to some extent, do it---in the same way that a relational database can serialize a complex web of objects: it usually works but can easily get ugly.
I know about the dot language used by the graphviz program, but I'm not sure this is the best way to do it. This question is probably the sort of thing academia might be working on and I'd love to have references to any papers discussing this. | 0 |
51,786 | 09/09/2008 12:56:05 | 1,772 | 08/18/2008 14:05:29 | 210 | 15 | Eclipse plugins for diagram generation from code | Are there eclipse plugins that you can recommend for generating diagrams (UML, sequence) from code? | eclipse | plugins | uml | diagram | null | null | open | Eclipse plugins for diagram generation from code
===
Are there eclipse plugins that you can recommend for generating diagrams (UML, sequence) from code? | 0 |
51,793 | 09/09/2008 12:58:22 | 1,219 | 08/13/2008 13:44:47 | 2,357 | 133 | How can you set the SMTP envelope MAIL FROM using System.Net.Mail? | When you send an email using C# and the System.Net.Mail namespace, you can set the "From" and "Sender" properties on the MailMessage object, but neither of these allows you to make the MAIL FROM and the from address that goes into the DATA section different from each other. MAIL FROM gets set to the "From" property value, and if you set "Sender" it only adds another header field in the DATA section. This results in "From [email protected] on behalf of [email protected]", which is not what you want. Am I missing something?
The use case is controlling the NDR destination for newletters, etc., that are sent on behalf of someone else.
I am currently using [aspNetMail][1] instead of System.Net.Mail, since it allows me to do this properly (like most other SMTP libraries).
[1]: http://www.aspnetemail.com/ | c# | .net | smtp | null | null | null | open | How can you set the SMTP envelope MAIL FROM using System.Net.Mail?
===
When you send an email using C# and the System.Net.Mail namespace, you can set the "From" and "Sender" properties on the MailMessage object, but neither of these allows you to make the MAIL FROM and the from address that goes into the DATA section different from each other. MAIL FROM gets set to the "From" property value, and if you set "Sender" it only adds another header field in the DATA section. This results in "From [email protected] on behalf of [email protected]", which is not what you want. Am I missing something?
The use case is controlling the NDR destination for newletters, etc., that are sent on behalf of someone else.
I am currently using [aspNetMail][1] instead of System.Net.Mail, since it allows me to do this properly (like most other SMTP libraries).
[1]: http://www.aspnetemail.com/ | 0 |
51,827 | 09/09/2008 13:08:30 | 5,197 | 09/08/2008 12:42:51 | 1 | 1 | Is there a standard approach to generating sql dynamically? | I want to ask how other programmers are producing Dynamic SQL strings for execution as the CommandText of a SQLCommand object.
I am producing parameterised queries containing user generated "WHERE" clauses and SELECT fields. Sometimes the queries are complex and I need a lot of control over how the different parts are built.
Currently, I am using many loops and switch statements to produce the necessary SQL code fragments and to create the SQL parameters objects needed. This method is difficult to follow and it makes maintenance a real chore.
Is there a cleaner, more stable way of doing this??
Any Suggestions??
| dynamic | sql | .net | null | null | null | open | Is there a standard approach to generating sql dynamically?
===
I want to ask how other programmers are producing Dynamic SQL strings for execution as the CommandText of a SQLCommand object.
I am producing parameterised queries containing user generated "WHERE" clauses and SELECT fields. Sometimes the queries are complex and I need a lot of control over how the different parts are built.
Currently, I am using many loops and switch statements to produce the necessary SQL code fragments and to create the SQL parameters objects needed. This method is difficult to follow and it makes maintenance a real chore.
Is there a cleaner, more stable way of doing this??
Any Suggestions??
| 0 |
51,837 | 09/09/2008 13:12:31 | 730 | 08/08/2008 12:40:04 | 160 | 30 | Open one of a series of files using a batch file | I have up to 4 files based on this structure (note the prefixes are dates)
- 0830filename.txt
- 0907filename.txt
- 0914filename.txt
- 0921filename.txt
I want to open the the most recent one (0921filename.txt). how can i do this in a batch file?
Thanks. | command-line | batch | ms-dos | cmd.exe | null | null | open | Open one of a series of files using a batch file
===
I have up to 4 files based on this structure (note the prefixes are dates)
- 0830filename.txt
- 0907filename.txt
- 0914filename.txt
- 0921filename.txt
I want to open the the most recent one (0921filename.txt). how can i do this in a batch file?
Thanks. | 0 |
51,845 | 09/09/2008 13:17:02 | 5,252 | 09/08/2008 17:54:32 | 49 | 1 | Can MS Visual Studio compile projects using 2 or 4 cores on CPU? | Is it any compilator option of flag? | visual-studio | null | null | null | null | null | open | Can MS Visual Studio compile projects using 2 or 4 cores on CPU?
===
Is it any compilator option of flag? | 0 |
51,859 | 09/09/2008 13:22:29 | 4,405 | 09/03/2008 14:26:48 | 116 | 3 | Using Makefile instead of Solution/Project files under Visual Studio (2005) | Does anyone have experience using makefiles for Visual Studio builds (under VS 2005) as opposed to using the project/solution setup. For us, the way that the project/solutions work is not intuitive and leads to configuruation explosion when you are trying to tweak builds with specific compile time flags.
Under Unix, it's pretty easy to set up a makefile that has its default options overridden by user settings (or other configuration setting). But doing these types of things seems difficult in Visual Studio.
By way of example, we have a project that needs to get build for 3 different platforms. Each platform might have several configurations (for example debug, release, and several others). One of my goals on a newly formed project is to have a solution that can have all platform build living together, which makes building and testing code changes easier since you aren't having to open 3 different solutions just to test your code. But visual studio will require 3 * (number of base configurations) configurations. i.e. PC Debug, X360 Debug, PS3 Debug, etc.
It seems like a makefile solution is much better here. Wrapped with some basic batchfiles or scripts, it would be easy to keep the configuration explotion to a minimum and only maintain a small set of files for all of the different builds that we have to do.
However, I have no experience with makefiles under visual studio and would like to know if others have experiences or issues that they can share.
Thanks. | visual-studio | makefile | null | null | null | null | open | Using Makefile instead of Solution/Project files under Visual Studio (2005)
===
Does anyone have experience using makefiles for Visual Studio builds (under VS 2005) as opposed to using the project/solution setup. For us, the way that the project/solutions work is not intuitive and leads to configuruation explosion when you are trying to tweak builds with specific compile time flags.
Under Unix, it's pretty easy to set up a makefile that has its default options overridden by user settings (or other configuration setting). But doing these types of things seems difficult in Visual Studio.
By way of example, we have a project that needs to get build for 3 different platforms. Each platform might have several configurations (for example debug, release, and several others). One of my goals on a newly formed project is to have a solution that can have all platform build living together, which makes building and testing code changes easier since you aren't having to open 3 different solutions just to test your code. But visual studio will require 3 * (number of base configurations) configurations. i.e. PC Debug, X360 Debug, PS3 Debug, etc.
It seems like a makefile solution is much better here. Wrapped with some basic batchfiles or scripts, it would be easy to keep the configuration explotion to a minimum and only maintain a small set of files for all of the different builds that we have to do.
However, I have no experience with makefiles under visual studio and would like to know if others have experiences or issues that they can share.
Thanks. | 0 |
51,866 | 09/09/2008 13:23:24 | 3,875 | 08/31/2008 15:05:00 | 13 | 2 | VC++ and MapPoint OCX problem | I am writing a VC++ MFC dialog based app which requires Microsoft MapPoint embedding in it. To do this I'm using MS VC++ .NET 2003 and MapPoint Europe 2006 to do this but am having problems as when I select "Insert ActiveX Control" no MapPoint control appears in the list of options. I have tried manually registering mappointcontrol.ocx with regsvr32 which appears to succeed but still the control doesn't appear on the list.
Can anyone suggest what I am doing wrong here and any possible solutions.
Thanks
Ian | vc++ | mappoint | null | null | null | null | open | VC++ and MapPoint OCX problem
===
I am writing a VC++ MFC dialog based app which requires Microsoft MapPoint embedding in it. To do this I'm using MS VC++ .NET 2003 and MapPoint Europe 2006 to do this but am having problems as when I select "Insert ActiveX Control" no MapPoint control appears in the list of options. I have tried manually registering mappointcontrol.ocx with regsvr32 which appears to succeed but still the control doesn't appear on the list.
Can anyone suggest what I am doing wrong here and any possible solutions.
Thanks
Ian | 0 |
51,870 | 09/09/2008 13:25:36 | 3,208 | 08/27/2008 13:12:45 | 78 | 4 | How to force my ASP.net 2.0 app to recompile | I have a ASP.net 2.0 app and I have made some changes the the source file ( cs files ). I uploaded the changes with the belief that it would auto-recompile. I also have the compiled dll in MY_APP/bin. I checked it and noticed that it did not recompile. Please understand I am new to this. | asp.net | null | null | null | null | null | open | How to force my ASP.net 2.0 app to recompile
===
I have a ASP.net 2.0 app and I have made some changes the the source file ( cs files ). I uploaded the changes with the belief that it would auto-recompile. I also have the compiled dll in MY_APP/bin. I checked it and noticed that it did not recompile. Please understand I am new to this. | 0 |
51,871 | 09/09/2008 13:26:12 | 2,744 | 08/24/2008 20:43:50 | 1 | 0 | What is the best Visual Studio Plugin for Printing Code | What is the best Visual Studio 2005/2008 Plugin for Printing your code.
Some of the features I think it must include are:
1) Print Entire Solution
2) Ability to print line numbers
3) Proper choice of coding font and size to improve readability
4) Nice Header Information
5) Ability to print regions collapsed
| visual-studio-plugin | null | null | null | null | null | open | What is the best Visual Studio Plugin for Printing Code
===
What is the best Visual Studio 2005/2008 Plugin for Printing your code.
Some of the features I think it must include are:
1) Print Entire Solution
2) Ability to print line numbers
3) Proper choice of coding font and size to improve readability
4) Nice Header Information
5) Ability to print regions collapsed
| 0 |
51,884 | 09/09/2008 13:30:38 | 1,694 | 08/18/2008 02:45:22 | 1,354 | 41 | Use cases for regular expression find/replace | I recently discussed editors with a co-worker. He uses one of the less popular editors and I use another (I won't say which ones since it's not relevant and I want to avoid an editor flame war). I was saying that I didn't like his editor as much because it doesn't let you do find/replace with regular expressions.
He said he's never wanted to do that, which was surprising since it's something I find myself doing all the time. However, off the top of my head I wasn't able to come up with more than one or two examples. Can anyone here offer some examples of times when they've found regex find/replace useful in their editor? Here's what I've been able to come up with since then as examples of things that I've actually had to do:
1. Strip the beginning of a line off of every line in a file that looks like:
<code>Line 25634 :</code>
<code>Line 632157 :</code>
2. Taking a few dozen files with a standard header which is slightly different for each file and stripping the first 19 lines from all of them all at once.
3. Piping the result of a MySQL select statement into a text file, then removing all of the formatting junk and reformatting it as a Python dictionary for use in a simple script.
4. In a CSV file with no escaped commas, replace the first character of the 8th column of each row with a capital A.
5. Given a bunch of GDB stack traces with lines like
<code>#3 0x080a6d61 in _mvl_set_req_done (req=0x82624a4, result=27158) at ../../mvl/src/mvl_serv.c:850</code>
strip out everything from each line except the function names.
Does anyone else have any real-life examples? The next time this comes up, I'd like to be more prepared to list good examples of why this feature is useful. | regex | editor | null | null | null | null | open | Use cases for regular expression find/replace
===
I recently discussed editors with a co-worker. He uses one of the less popular editors and I use another (I won't say which ones since it's not relevant and I want to avoid an editor flame war). I was saying that I didn't like his editor as much because it doesn't let you do find/replace with regular expressions.
He said he's never wanted to do that, which was surprising since it's something I find myself doing all the time. However, off the top of my head I wasn't able to come up with more than one or two examples. Can anyone here offer some examples of times when they've found regex find/replace useful in their editor? Here's what I've been able to come up with since then as examples of things that I've actually had to do:
1. Strip the beginning of a line off of every line in a file that looks like:
<code>Line 25634 :</code>
<code>Line 632157 :</code>
2. Taking a few dozen files with a standard header which is slightly different for each file and stripping the first 19 lines from all of them all at once.
3. Piping the result of a MySQL select statement into a text file, then removing all of the formatting junk and reformatting it as a Python dictionary for use in a simple script.
4. In a CSV file with no escaped commas, replace the first character of the 8th column of each row with a capital A.
5. Given a bunch of GDB stack traces with lines like
<code>#3 0x080a6d61 in _mvl_set_req_done (req=0x82624a4, result=27158) at ../../mvl/src/mvl_serv.c:850</code>
strip out everything from each line except the function names.
Does anyone else have any real-life examples? The next time this comes up, I'd like to be more prepared to list good examples of why this feature is useful. | 0 |
51,885 | 09/09/2008 13:30:42 | 5,369 | 09/09/2008 11:14:39 | 28 | 6 | IDE placement on dual monitors. | What IDE placement (output, errors, threads, watch, etc..) do you use (coding/debugging) in Visual Studio on Dual Monitors?
| ide | visual-studio | placement | null | null | null | open | IDE placement on dual monitors.
===
What IDE placement (output, errors, threads, watch, etc..) do you use (coding/debugging) in Visual Studio on Dual Monitors?
| 0 |
51,887 | 09/09/2008 13:31:28 | 1,068 | 08/12/2008 08:44:09 | 48 | 6 | Operating System Overheads while profiling? | I am doing profiling of a C code in Microsoft VS 2005 on a Intel Core-2Duo platform.
I measure the time(secs:millisecs) counsumed by my function. But i have some doubts about the accuracy of this measurement as the operating system will not continuously run my application, but instead schedule others apps/services in between the execution of my code.(Although i have no major applications running while i do the profile run, still windows will have lot of code of its own which it will run by preempting my app.). Because of all this i believe the profiling number(time taken by my app to run) is not accurate.
So my question is there any way to find out the Operating system overheads, scheduling overhead on a typical windows system(I run Windows XP)e.g. if my applications says it ran for 60 milliseconds, out of that 60 msec, how much time really was used by my app. and how much time it was sitting idle, due to being pre-empted by some other task scheduled by the OS?
or
Atleast is there any ball-park number to get such OS overhead, based on your experience you came across while doing something similar?
| profile | null | null | null | null | null | open | Operating System Overheads while profiling?
===
I am doing profiling of a C code in Microsoft VS 2005 on a Intel Core-2Duo platform.
I measure the time(secs:millisecs) counsumed by my function. But i have some doubts about the accuracy of this measurement as the operating system will not continuously run my application, but instead schedule others apps/services in between the execution of my code.(Although i have no major applications running while i do the profile run, still windows will have lot of code of its own which it will run by preempting my app.). Because of all this i believe the profiling number(time taken by my app to run) is not accurate.
So my question is there any way to find out the Operating system overheads, scheduling overhead on a typical windows system(I run Windows XP)e.g. if my applications says it ran for 60 milliseconds, out of that 60 msec, how much time really was used by my app. and how much time it was sitting idle, due to being pre-empted by some other task scheduled by the OS?
or
Atleast is there any ball-park number to get such OS overhead, based on your experience you came across while doing something similar?
| 0 |
51,898 | 09/09/2008 13:35:10 | 3,106 | 08/26/2008 17:01:37 | 1 | 1 | Activating the main form of a single instance application | In a C# Windows Forms application I want to detect if another instance of the application is already running.
If so, activate the main form of the running instance and exit this instance.
What is the best way to achieve this?
| c# | .net | winforms | null | null | null | open | Activating the main form of a single instance application
===
In a C# Windows Forms application I want to detect if another instance of the application is already running.
If so, activate the main form of the running instance and exit this instance.
What is the best way to achieve this?
| 0 |
51,925 | 09/09/2008 13:47:10 | 3,111 | 08/26/2008 17:47:14 | 90 | 8 | Continuous Integration | We are currently evaluating different applications that interface with Visual Studio and Subversion to do automated builds of our core libraries. We are hoping to have nightly builds performed and either email the list of changes made to each developer or have the latest versions be pushed to each workstation. What has been your experience with these tools and what are some recommendations? | visual-studio | svn | continuous-integration | null | null | null | open | Continuous Integration
===
We are currently evaluating different applications that interface with Visual Studio and Subversion to do automated builds of our core libraries. We are hoping to have nightly builds performed and either email the list of changes made to each developer or have the latest versions be pushed to each workstation. What has been your experience with these tools and what are some recommendations? | 0 |
51,927 | 09/09/2008 13:47:51 | 5,419 | 09/09/2008 13:47:51 | 1 | 0 | How to check if element in groovy array/hash/collection/list? | How do I figure out if an array contains an element?
I thought there might be something like [1,2,3].includes(1) which would evaluate as 'true' | arrays | list | groovy | grails | null | null | open | How to check if element in groovy array/hash/collection/list?
===
How do I figure out if an array contains an element?
I thought there might be something like [1,2,3].includes(1) which would evaluate as 'true' | 0 |
51,931 | 09/09/2008 13:50:12 | 2,086 | 08/20/2008 10:43:39 | 40 | 10 | TypeLoadException on System.Xml.Linq.XDocument when running T4 template on build server | I'm having a problem running a T4 template using TextTransform.exe on my build server. On my dev machine the template works perfectly. The error message is as follows.
error : Running transformation: System.TypeLoadException: Could not instantiate type 'System.Xml.Linq.XDocument'
The build server has the windows 2008 SDK on it, my machine has VS 2008. I thought mayve it couldn't find System.Data.Xml so I ensure the dll was present in the same directory, but no luck. Any ideas?
| .net | t4 | texttransform | typeloadexception | null | null | open | TypeLoadException on System.Xml.Linq.XDocument when running T4 template on build server
===
I'm having a problem running a T4 template using TextTransform.exe on my build server. On my dev machine the template works perfectly. The error message is as follows.
error : Running transformation: System.TypeLoadException: Could not instantiate type 'System.Xml.Linq.XDocument'
The build server has the windows 2008 SDK on it, my machine has VS 2008. I thought mayve it couldn't find System.Data.Xml so I ensure the dll was present in the same directory, but no luck. Any ideas?
| 0 |
51,941 | 09/09/2008 13:54:58 | 2,665 | 08/24/2008 06:43:24 | 118 | 9 | How do I create a status dialog box in Excel | I have created a database report generator in Excel. I am trying to create a dialog box that displays status information as the program runs.
When I generate the report, although the dailog box appears, I cannot refresh/update the information it displays. Most of the time, the dialog box only partially appears. I have tried using the .repaint method, but I still get the same results. I only see the complete dialog box, after the report is generated. | excel | vba | microsoftoffice | null | null | null | open | How do I create a status dialog box in Excel
===
I have created a database report generator in Excel. I am trying to create a dialog box that displays status information as the program runs.
When I generate the report, although the dailog box appears, I cannot refresh/update the information it displays. Most of the time, the dialog box only partially appears. I have tried using the .repaint method, but I still get the same results. I only see the complete dialog box, after the report is generated. | 0 |
51,948 | 09/09/2008 13:57:24 | 4,880 | 09/06/2008 10:12:37 | 1 | 0 | Do you know of a good program for editing/translating resource (.rc) files? | I'm building a C++/MFC program in a multilingual environment. I have one main (national) language and three international languages. Every time I add a feature to the program I have to keep the international languages up-to-date with the national one. The resource editor in Visual Studio is not very helpful because I frequently end up leaving a string, dialog box, etc., untranslated.
I wonder if you guys know of a program that can edit resource (.rc) files and
- Build a file that includes only the strings to be translated and their respective IDs and accepts the same (or similar) file in another language (this would be helpful since usually the translation is done by someone else), or
- Handle the translations itself, allowing to view the same string in different languages at the same time.
| c++ | mfc | null | null | null | null | open | Do you know of a good program for editing/translating resource (.rc) files?
===
I'm building a C++/MFC program in a multilingual environment. I have one main (national) language and three international languages. Every time I add a feature to the program I have to keep the international languages up-to-date with the national one. The resource editor in Visual Studio is not very helpful because I frequently end up leaving a string, dialog box, etc., untranslated.
I wonder if you guys know of a program that can edit resource (.rc) files and
- Build a file that includes only the strings to be translated and their respective IDs and accepts the same (or similar) file in another language (this would be helpful since usually the translation is done by someone else), or
- Handle the translations itself, allowing to view the same string in different languages at the same time.
| 0 |
51,949 | 09/09/2008 13:57:34 | 445,087 | 09/02/2008 17:25:48 | 291 | 7 | How to get file extension from string in C++ | Given a string "filename.conf", how to I check get the extension part? | c++ | string | filenames | null | null | null | open | How to get file extension from string in C++
===
Given a string "filename.conf", how to I check get the extension part? | 0 |
51,950 | 09/09/2008 13:58:03 | 4,694 | 09/05/2008 09:30:26 | 48 | 8 | How do I allow assembly (unit testing one) to access internal properties of another assembly ? | I would like my Core assembly to not expose a certain class and I would still like to be able to test it. How can I do that ? | .net | unit-testing | null | null | null | null | open | How do I allow assembly (unit testing one) to access internal properties of another assembly ?
===
I would like my Core assembly to not expose a certain class and I would still like to be able to test it. How can I do that ? | 0 |
51,954 | 09/09/2008 13:59:09 | 3,408 | 08/28/2008 13:20:22 | 76 | 12 | Open source simple CRM database / Social Network site that | Does anyone know of a simple social network type of site that can be easily customised?
It should suck, but in the sense the blosxom sucks in this article:
http://www.plover.com/blog/oops/blosxom-sux.html
I.e. take the "Worse-is-Better" approach, and try to cover most of the main features, more or less, while keeping the implementation as simple as possible.
Ideally it would be in python because I know python. | crm | social-networking | plone | zope | null | null | open | Open source simple CRM database / Social Network site that
===
Does anyone know of a simple social network type of site that can be easily customised?
It should suck, but in the sense the blosxom sucks in this article:
http://www.plover.com/blog/oops/blosxom-sux.html
I.e. take the "Worse-is-Better" approach, and try to cover most of the main features, more or less, while keeping the implementation as simple as possible.
Ideally it would be in python because I know python. | 0 |
51,964 | 09/09/2008 14:03:13 | 2,757 | 08/24/2008 21:53:16 | 468 | 27 | How do I remove items from the query string for redirection? | In my base page I need to remove an item from the query string and redirect. I can't use<br/>
Request.QueryString.Remove("foo")
because the collection is read-only. Is there any way to get the query string (except for that one item) without iterating through the collection and re-building it? | c# | asp.net | web-forms | null | null | null | open | How do I remove items from the query string for redirection?
===
In my base page I need to remove an item from the query string and redirect. I can't use<br/>
Request.QueryString.Remove("foo")
because the collection is read-only. Is there any way to get the query string (except for that one item) without iterating through the collection and re-building it? | 0 |
51,969 | 09/09/2008 14:07:11 | 5,217 | 09/08/2008 14:34:27 | 1 | 0 | How to detect READ_COMMITTED_SNAPSHOT is enabled? | In MS SQL Server is there a way to detect whether a database has had its isolation level set via the T-SQL command `ALTER DATABASE <database> SET READ_COMMITTED_SNAPSHOT ON;`
I cannot find a simple way to detect this in either T-SQL or via the Management Studio's GUI.
TIA
| sql-server | microsoft | null | null | null | null | open | How to detect READ_COMMITTED_SNAPSHOT is enabled?
===
In MS SQL Server is there a way to detect whether a database has had its isolation level set via the T-SQL command `ALTER DATABASE <database> SET READ_COMMITTED_SNAPSHOT ON;`
I cannot find a simple way to detect this in either T-SQL or via the Management Studio's GUI.
TIA
| 0 |
51,971 | 09/09/2008 14:07:50 | 745 | 08/08/2008 13:47:26 | 613 | 51 | Can anyone recommend a complete ObjC/Cocoa or Cocoa-Touch tutorial? | I went though "Become an Xcoder", which was very useful, but it ended very abruptly, just as I started to understand about ObjC's syntax, and about Inlets/Outlets and such in Interface Builder.
I've looked around, and found a bunch of tutorials that cover writing an application, but these either seem to be "Open Interface Builder, add a text label, change the text and click Run", or "Open IB, add this, this and this, add these inlets/outlets. Now here is a hundred lines of ObjC to copy and paste. Click compile and you're done". There was no middle ground.
Basically, I would love a tutorial that actually shows how you arrive at the end code, and shows how to make something beyond "Hello world".
Ideally it would be centered around the iPhone Cocoa Touch stuff (but there will be far more Cocoa tutorials around, and the two systems are pretty similar) - either would be incredibly useful!
(*Please* don't discuss the iPhone-SDK NDA. It's **really** not intended to prevent bloggers and such posting tutorials..) | objectivec | cocoa | tutorials | cocoa-touch | null | null | open | Can anyone recommend a complete ObjC/Cocoa or Cocoa-Touch tutorial?
===
I went though "Become an Xcoder", which was very useful, but it ended very abruptly, just as I started to understand about ObjC's syntax, and about Inlets/Outlets and such in Interface Builder.
I've looked around, and found a bunch of tutorials that cover writing an application, but these either seem to be "Open Interface Builder, add a text label, change the text and click Run", or "Open IB, add this, this and this, add these inlets/outlets. Now here is a hundred lines of ObjC to copy and paste. Click compile and you're done". There was no middle ground.
Basically, I would love a tutorial that actually shows how you arrive at the end code, and shows how to make something beyond "Hello world".
Ideally it would be centered around the iPhone Cocoa Touch stuff (but there will be far more Cocoa tutorials around, and the two systems are pretty similar) - either would be incredibly useful!
(*Please* don't discuss the iPhone-SDK NDA. It's **really** not intended to prevent bloggers and such posting tutorials..) | 0 |
51,998 | 09/09/2008 14:22:34 | 3,298 | 08/27/2008 17:58:39 | 11 | 1 | What .NET reporting tools are best for dynamic report generation? | I often need to create forms and reports for Windows applications that either require dynamic generation or where I need control over the formatting that stretches or goes beyond the capabilities of most report designers. Essentially, I need to ability to create my own pages using graphics primitives like you can do with System.Drawing.Printing that are part of package that also provides a report designer, exporting to PDF, etc.
In my Delphi days, I used Rave Reports (along with the exporting add-ons from Gnostice) because it was the only Delphi reporting tool that gave you that kind of fine control.
I've been struggling with the reporting tools provided by Developer Express and I have given up trying to make them do what I need to do. I downloaded a trial of ActiveReports and was able to completely create one of my dynamic reports (using their Page class) in a few hours one afternoon. It's likely I will buy their product, but it's a bit frustrating to have to do so after investing in the Developer Express tools.
Before I do so, are there any other products that offer this functionality that I should investigate? As far as I can tell, Crystal Reports does not - is this correct?
Thanks....
--Bruce
| .net | reporting | null | null | null | null | open | What .NET reporting tools are best for dynamic report generation?
===
I often need to create forms and reports for Windows applications that either require dynamic generation or where I need control over the formatting that stretches or goes beyond the capabilities of most report designers. Essentially, I need to ability to create my own pages using graphics primitives like you can do with System.Drawing.Printing that are part of package that also provides a report designer, exporting to PDF, etc.
In my Delphi days, I used Rave Reports (along with the exporting add-ons from Gnostice) because it was the only Delphi reporting tool that gave you that kind of fine control.
I've been struggling with the reporting tools provided by Developer Express and I have given up trying to make them do what I need to do. I downloaded a trial of ActiveReports and was able to completely create one of my dynamic reports (using their Page class) in a few hours one afternoon. It's likely I will buy their product, but it's a bit frustrating to have to do so after investing in the Developer Express tools.
Before I do so, are there any other products that offer this functionality that I should investigate? As far as I can tell, Crystal Reports does not - is this correct?
Thanks....
--Bruce
| 0 |
52,008 | 09/09/2008 14:26:39 | 1,782 | 08/18/2008 14:30:58 | 1,296 | 93 | Options for PivotTables in Excel | I need to design a small project for generating excel reports in .NET, which will be sent to users to use.
The excel reports will contain PivotTables.
I don't have much experience with them, but I can think of three implementation alternatives:
1. Set a query for it, populate it, send it disconnected. This way the user will be able to group values and play a little, but he will not be able to refresh the data.
2. Generate a small access database and send it along with the excel file, connect to it.
3. Copy the data to the excel (perhaps in some other sheet) and connect to the data there. This will make the excel file very large I think.
What would be the best alternative in regards to performance vs usability? Is there another alternative I don't know about? | .net | excel | vsto | pivot-table | null | null | open | Options for PivotTables in Excel
===
I need to design a small project for generating excel reports in .NET, which will be sent to users to use.
The excel reports will contain PivotTables.
I don't have much experience with them, but I can think of three implementation alternatives:
1. Set a query for it, populate it, send it disconnected. This way the user will be able to group values and play a little, but he will not be able to refresh the data.
2. Generate a small access database and send it along with the excel file, connect to it.
3. Copy the data to the excel (perhaps in some other sheet) and connect to the data there. This will make the excel file very large I think.
What would be the best alternative in regards to performance vs usability? Is there another alternative I don't know about? | 0 |
52,016 | 09/09/2008 14:31:30 | 3,586 | 08/29/2008 07:51:02 | 78 | 5 | Uml for ruby | Could any one recommend some good uml/modeling tools for ruby and ruby on rails? | uml | ruby | ruby-on-rails | null | null | null | open | Uml for ruby
===
Could any one recommend some good uml/modeling tools for ruby and ruby on rails? | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.