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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64,958 | 09/15/2008 17:31:44 | 8,566 | 09/15/2008 16:21:10 | 1 | 0 | What is the best way of preventing memory leaks in a yacc-based parser? | Yacc does not permit objects to be passed around. Because the %union can only contain POD types, complex objects must be new'd and passed around by pointer. If a syntax error occurs, the yacc parser just stops running, and references to all of those created objects are lost.
The only solution I've come up with is that all new'd object inherit a particular base class, be added to a container when allocated, and if there is an error everything in that container can be deleted.
Does anyone know of any better yacc tricks to solve this problem?
Please don't tell me to choose a different parser. | c++ | yacc | null | null | null | null | open | What is the best way of preventing memory leaks in a yacc-based parser?
===
Yacc does not permit objects to be passed around. Because the %union can only contain POD types, complex objects must be new'd and passed around by pointer. If a syntax error occurs, the yacc parser just stops running, and references to all of those created objects are lost.
The only solution I've come up with is that all new'd object inherit a particular base class, be added to a container when allocated, and if there is an error everything in that container can be deleted.
Does anyone know of any better yacc tricks to solve this problem?
Please don't tell me to choose a different parser. | 0 |
64,977 | 09/15/2008 17:34:27 | 7,001 | 09/15/2008 12:59:17 | 11 | 3 | How do you create SQL Server 2005 stored procedure templates in SQL Server 2005 Management Studio? | How do you create SQL Server 2005 stored procedure templates in SQL Server 2005 Management Studio? | sql | server | 2005 | procedure | stored | null | open | How do you create SQL Server 2005 stored procedure templates in SQL Server 2005 Management Studio?
===
How do you create SQL Server 2005 stored procedure templates in SQL Server 2005 Management Studio? | 0 |
64,981 | 09/15/2008 17:35:18 | 2,469 | 08/22/2008 12:41:47 | 827 | 47 | SQL Server 2005 How Create a Unique Constraint? | How do I create a unique constraint on an existing table in SQL Server 2005?
I am looking for both the TSQL and how to do it in the Database Diagram. | sql | sql-server | constraints | null | null | null | open | SQL Server 2005 How Create a Unique Constraint?
===
How do I create a unique constraint on an existing table in SQL Server 2005?
I am looking for both the TSQL and how to do it in the Database Diagram. | 0 |
64,989 | 09/15/2008 17:36:44 | 8,530 | 09/15/2008 16:15:44 | 1 | 0 | JVM Thread dumps containing monitors without locking threads | What could be the cause of JVM thread dumps that show threads waiting to lock on a monitor, but the monitors do not have corresponding locking threads?
Java 1.5_14 on Windows 2003 | java | multithreading | null | null | null | null | open | JVM Thread dumps containing monitors without locking threads
===
What could be the cause of JVM thread dumps that show threads waiting to lock on a monitor, but the monitors do not have corresponding locking threads?
Java 1.5_14 on Windows 2003 | 0 |
64,992 | 09/15/2008 17:37:05 | 3,347 | 08/28/2008 03:11:14 | 448 | 61 | Why is access denied when installing SSL cert on IIS 5? | I'm working with a support person who is supposed to be able to install SSL certs on a web server he maintains. He has local admin rights to the server via a domain security group. He also has permissions on our internal CA running Windows 2003 Server Certificate Authority: "Request cert" and "Issue and Manage certs".
The server he's working with is running Windows 2000 SP4 / IIS 5. When he attempts to create an online server cert the IIS wizard ends with "Failed to install. Access is Denied.". The event viewer is not working properly, so I can't find any details there. I suspect the permission issue is locally and not with the CA.
My account is a domain admin account and I know I am able to do this operation, however I need to make this work for others that are not domain admins.
Any ideas why he can't perform this operation? | ssl | permissions | iis5 | windows-server-2000 | null | null | open | Why is access denied when installing SSL cert on IIS 5?
===
I'm working with a support person who is supposed to be able to install SSL certs on a web server he maintains. He has local admin rights to the server via a domain security group. He also has permissions on our internal CA running Windows 2003 Server Certificate Authority: "Request cert" and "Issue and Manage certs".
The server he's working with is running Windows 2000 SP4 / IIS 5. When he attempts to create an online server cert the IIS wizard ends with "Failed to install. Access is Denied.". The event viewer is not working properly, so I can't find any details there. I suspect the permission issue is locally and not with the CA.
My account is a domain admin account and I know I am able to do this operation, however I need to make this work for others that are not domain admins.
Any ideas why he can't perform this operation? | 0 |
65,001 | 09/15/2008 17:38:57 | 6,216 | 09/13/2008 00:09:37 | 31 | 7 | Storing email messages in a database | What sort of database schema would you use to store email messages, with as much header information as practical/possible, into a database?
Assume that they have been fed into a script from the MTA and parsed into the relevant headers/body/attachments.
Would you store the message body whole in the database table, or split any MIME-parts apart? What about attachments? | database | email | schema | null | null | null | open | Storing email messages in a database
===
What sort of database schema would you use to store email messages, with as much header information as practical/possible, into a database?
Assume that they have been fed into a script from the MTA and parsed into the relevant headers/body/attachments.
Would you store the message body whole in the database table, or split any MIME-parts apart? What about attachments? | 0 |
65,008 | 09/15/2008 17:40:14 | 9,022 | 09/15/2008 17:31:28 | 1 | 0 | .NET WCF faults generating incorrect SOAP 1.1 faultcode values | I am experimenting with using the FaultException and FaultException<T> to determine the best usage pattern in our applications. We need to support WCF as well as non-WCF service consumers/clients, including SOAP 1.1 and SOAP 1.2 clients.
FYI: using FaultExceptions with wsHttpBinding results in SOAP 1.2 semantics whereas using FaultExceptions with basicHttpBinding results in SOAP 1.1 semantics.
I am using the following code to throw a FaultException<FaultDetails>:
throw new FaultException<FaultDetails>(
new FaultDetails("Throwing FaultException<FaultDetails>."),
new FaultReason("Testing fault exceptions."),
FaultCode.CreateSenderFaultCode(new FaultCode("MySubFaultCode"))
);
The FaultDetails class is just a simple test class that contains a string "Message" property as you can see below.
When using wsHttpBinding the response is:
<?xml version="1.0" encoding="utf-16"?>
<Fault xmlns="http://www.w3.org/2003/05/soap-envelope">
<Code>
<Value>Sender</Value>
<Subcode>
<Value>MySubFaultCode</Value>
</Subcode>
</Code>
<Reason>
<Text xml:lang="en-US">Testing fault exceptions.</Text>
</Reason>
<Detail>
<FaultDetails xmlns="http://schemas.datacontract.org/2004/07/ClassLibrary" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Message>Throwing FaultException<FaultDetails>.</Message>
</FaultDetails>
</Detail>
</Fault>
This looks right according to the SOAP 1.2 specs. The main/root “Code” is “Sender”, which has a “Subcode” of “MySubFaultCode”. If the service consumer/client is using WCF the FaultException on the client side also mimics the same structure, with the faultException.Code.Name being “Sender” and faultException.Code.SubCode.Name being “MySubFaultCode”.
When using basicHttpBinding the response is:
<?xml version="1.0" encoding="utf-16"?>
<s:Fault xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>s:MySubFaultCode</faultcode>
<faultstring xml:lang="en-US">Testing fault exceptions.</faultstring>
<detail>
<FaultDetails xmlns="http://schemas.datacontract.org/2004/07/ClassLibrary" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Message>Throwing FaultException<FaultDetails>.</Message>
</FaultDetails>
</detail>
</s:Fault>
This does not look right. Looking at the SOAP 1.1 specs, I was expecting to see the “faultcode” to have a value of “s:Client.MySubFaultCode” when I use FaultCode.CreateSenderFaultCode(new FaultCode("MySubFaultCode")). Also a WCF client gets an incorrect structure. The faultException.Code.Name is “MySubFaultCode” instead of being “Sender”, and the faultException.Code.SubCode is null instead of faultException.Code.SubCode.Name being “MySubFaultCode”. Also, the faultException.Code.IsSenderFault is false.
Similar problem when using FaultCode.CreateReceiverFaultCode(new FaultCode("MySubFaultCode")):
- works as expected for SOAP 1.2
- generates “s:MySubFaultCode” instead of “s:Server.MySubFaultCode” and the faultException.Code.IsReceiverFault is false for SOAP 1.1
This item was also posted by someone else on <http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=669420&SiteID=1> in 2006 and no one has answered it. I find it very hard to believe that no one has run into this, yet.
Am I doing something wrong or is this truly a bug in WCF? | .net | wcf | soap | webservice | null | null | open | .NET WCF faults generating incorrect SOAP 1.1 faultcode values
===
I am experimenting with using the FaultException and FaultException<T> to determine the best usage pattern in our applications. We need to support WCF as well as non-WCF service consumers/clients, including SOAP 1.1 and SOAP 1.2 clients.
FYI: using FaultExceptions with wsHttpBinding results in SOAP 1.2 semantics whereas using FaultExceptions with basicHttpBinding results in SOAP 1.1 semantics.
I am using the following code to throw a FaultException<FaultDetails>:
throw new FaultException<FaultDetails>(
new FaultDetails("Throwing FaultException<FaultDetails>."),
new FaultReason("Testing fault exceptions."),
FaultCode.CreateSenderFaultCode(new FaultCode("MySubFaultCode"))
);
The FaultDetails class is just a simple test class that contains a string "Message" property as you can see below.
When using wsHttpBinding the response is:
<?xml version="1.0" encoding="utf-16"?>
<Fault xmlns="http://www.w3.org/2003/05/soap-envelope">
<Code>
<Value>Sender</Value>
<Subcode>
<Value>MySubFaultCode</Value>
</Subcode>
</Code>
<Reason>
<Text xml:lang="en-US">Testing fault exceptions.</Text>
</Reason>
<Detail>
<FaultDetails xmlns="http://schemas.datacontract.org/2004/07/ClassLibrary" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Message>Throwing FaultException<FaultDetails>.</Message>
</FaultDetails>
</Detail>
</Fault>
This looks right according to the SOAP 1.2 specs. The main/root “Code” is “Sender”, which has a “Subcode” of “MySubFaultCode”. If the service consumer/client is using WCF the FaultException on the client side also mimics the same structure, with the faultException.Code.Name being “Sender” and faultException.Code.SubCode.Name being “MySubFaultCode”.
When using basicHttpBinding the response is:
<?xml version="1.0" encoding="utf-16"?>
<s:Fault xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>s:MySubFaultCode</faultcode>
<faultstring xml:lang="en-US">Testing fault exceptions.</faultstring>
<detail>
<FaultDetails xmlns="http://schemas.datacontract.org/2004/07/ClassLibrary" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Message>Throwing FaultException<FaultDetails>.</Message>
</FaultDetails>
</detail>
</s:Fault>
This does not look right. Looking at the SOAP 1.1 specs, I was expecting to see the “faultcode” to have a value of “s:Client.MySubFaultCode” when I use FaultCode.CreateSenderFaultCode(new FaultCode("MySubFaultCode")). Also a WCF client gets an incorrect structure. The faultException.Code.Name is “MySubFaultCode” instead of being “Sender”, and the faultException.Code.SubCode is null instead of faultException.Code.SubCode.Name being “MySubFaultCode”. Also, the faultException.Code.IsSenderFault is false.
Similar problem when using FaultCode.CreateReceiverFaultCode(new FaultCode("MySubFaultCode")):
- works as expected for SOAP 1.2
- generates “s:MySubFaultCode” instead of “s:Server.MySubFaultCode” and the faultException.Code.IsReceiverFault is false for SOAP 1.1
This item was also posted by someone else on <http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=669420&SiteID=1> in 2006 and no one has answered it. I find it very hard to believe that no one has run into this, yet.
Am I doing something wrong or is this truly a bug in WCF? | 0 |
65,010 | 09/15/2008 17:40:35 | 2,961 | 08/26/2008 09:02:24 | 825 | 54 | Is GCJ (GNU Compiler for Java) a viable tool for publishing a webapp? | Is it really viable to use GCJ to publish server-side applications? Webapps?
My boss is convinced that compiling our (***my***) webapp into a binary executable is a brilliant idea. (Then again, he likes nice, small simple things with blinky lights that he can understand.) He instinctively sees no issues with this, while I only see an endless series of problems and degradations. Once I start talking to him about the complexity of our platform, and more in depth specifics of byte code, JVMs, libraries, diferences between operating systems, processor architectures, etc...well...his eyes glaze over, he smiles and he has made it clear he thinks I'm being childishly resistive.
So, I've done my obligatory 20 minutes of googling, and now I am here.
A bit of background on my application:
**What it is made from:**
- Java 6
- AspectJ 1.6
- Tomcat 6
- Hibernate 3
- Spring 2
- another two dozen supporting jar files
**What it does**
- A streaming media CMS
- Performance sensitive
- Deployed on Linux, Solaris, Windows (and developed on a Mac)
As you can probably gather, I'm highly skeptical of this *"compiling Java to native code"* thing. It sound like where Mono (VB on Linux) was back in 2000. But am I being overly pessimistic? Is it viable? Should I actually spend the time (days if not weeks) to try this out?
There is one other similar thread ([Java Compiler Options to produce .exe files][1]) but it is a bit too simple, the links dated, and not really geared towards a server-side question.
Your informed opinions will be highly cherished, my dear SOpedians! TIA!
[1]: http://stackoverflow.com/questions/53845/java-compiler-options-to-produce-exe-files | java | gcj | null | null | null | null | open | Is GCJ (GNU Compiler for Java) a viable tool for publishing a webapp?
===
Is it really viable to use GCJ to publish server-side applications? Webapps?
My boss is convinced that compiling our (***my***) webapp into a binary executable is a brilliant idea. (Then again, he likes nice, small simple things with blinky lights that he can understand.) He instinctively sees no issues with this, while I only see an endless series of problems and degradations. Once I start talking to him about the complexity of our platform, and more in depth specifics of byte code, JVMs, libraries, diferences between operating systems, processor architectures, etc...well...his eyes glaze over, he smiles and he has made it clear he thinks I'm being childishly resistive.
So, I've done my obligatory 20 minutes of googling, and now I am here.
A bit of background on my application:
**What it is made from:**
- Java 6
- AspectJ 1.6
- Tomcat 6
- Hibernate 3
- Spring 2
- another two dozen supporting jar files
**What it does**
- A streaming media CMS
- Performance sensitive
- Deployed on Linux, Solaris, Windows (and developed on a Mac)
As you can probably gather, I'm highly skeptical of this *"compiling Java to native code"* thing. It sound like where Mono (VB on Linux) was back in 2000. But am I being overly pessimistic? Is it viable? Should I actually spend the time (days if not weeks) to try this out?
There is one other similar thread ([Java Compiler Options to produce .exe files][1]) but it is a bit too simple, the links dated, and not really geared towards a server-side question.
Your informed opinions will be highly cherished, my dear SOpedians! TIA!
[1]: http://stackoverflow.com/questions/53845/java-compiler-options-to-produce-exe-files | 0 |
65,020 | 09/15/2008 17:41:56 | 9,087 | 09/15/2008 17:41:56 | 1 | 0 | Is there a way to add global error handler in a visual basic 6.0 application? | VB 6.0 does not have any global handler.To catch runtime errors,we need to add a handler in each method where we feel an error can occur.But, still some places might be left out.So,we end up getting runtime errors.Adding error handler in all the methods of an application,the only way? | visualbasic | null | null | null | null | null | open | Is there a way to add global error handler in a visual basic 6.0 application?
===
VB 6.0 does not have any global handler.To catch runtime errors,we need to add a handler in each method where we feel an error can occur.But, still some places might be left out.So,we end up getting runtime errors.Adding error handler in all the methods of an application,the only way? | 0 |
65,034 | 09/15/2008 17:43:53 | 2,650 | 08/23/2008 23:05:44 | 1 | 0 | Remove border from IFrame | How do I remove the border from an IFrame embedded in my web app? An example of the IFrame is:
<IFRAME src="myURL" width=300" height="300">Browser not compatible. </IFRAME>
I would like the transition from the content on my page to the contents of the IFrame to be seemless, assuming the background colors are consistent. The target browser is IE6 only and unfortunately solutions for others will not help.
| html | internet-explorer-6 | iframe | noborder | null | null | open | Remove border from IFrame
===
How do I remove the border from an IFrame embedded in my web app? An example of the IFrame is:
<IFRAME src="myURL" width=300" height="300">Browser not compatible. </IFRAME>
I would like the transition from the content on my page to the contents of the IFrame to be seemless, assuming the background colors are consistent. The target browser is IE6 only and unfortunately solutions for others will not help.
| 0 |
65,035 | 09/15/2008 17:43:54 | 885,027 | 09/15/2008 17:43:54 | 1 | 0 | In Java, does return trump finally? | If I have a try/catch block with returns inside it, will the finally block be called?
For example:
try {
something();
return success;
}
catch (Exception e) {
return failure;
}
finally {
System.out.println "i don't know if this will get printed out."
}
I know I can just type this in an see what happens (which is what I'm about to do, actually) but when I googled for answers nothing came up, so I figured I'd throw this up as a question.
Thanks! | java | return | finally | null | null | null | open | In Java, does return trump finally?
===
If I have a try/catch block with returns inside it, will the finally block be called?
For example:
try {
something();
return success;
}
catch (Exception e) {
return failure;
}
finally {
System.out.println "i don't know if this will get printed out."
}
I know I can just type this in an see what happens (which is what I'm about to do, actually) but when I googled for answers nothing came up, so I figured I'd throw this up as a question.
Thanks! | 0 |
65,058 | 09/15/2008 17:46:30 | 8,315 | 09/15/2008 15:42:47 | 6 | 0 | How to rewrite or convert C# code in Java code ? | I start to write a client - server application using .net (C#) for both client and server side.
Unfortunately, my company refuse to pay for Windows licence on server box meaning that I need to rewrite my code in Java, or go to the Mono way.
Is there any good way to translate C# code in Java ? The server application used no .net specific feature, only cross language tools like Spring.net, Hibernate.net and log4net.
Thanks. | c# | java | interop | null | null | null | open | How to rewrite or convert C# code in Java code ?
===
I start to write a client - server application using .net (C#) for both client and server side.
Unfortunately, my company refuse to pay for Windows licence on server box meaning that I need to rewrite my code in Java, or go to the Mono way.
Is there any good way to translate C# code in Java ? The server application used no .net specific feature, only cross language tools like Spring.net, Hibernate.net and log4net.
Thanks. | 0 |
65,060 | 09/15/2008 17:46:54 | 230 | 08/03/2008 19:32:46 | 751 | 39 | NHibernate, Count Query | If i have a simple named query defined, the preforms a count function, on one column:
<query name="Activity.GetAllMiles">
<![CDATA[
select count(Distance)from Activity
]]>
</query>
How do I get the result of a count or any query that dont return of one the mapped entities, with NHibernate using Either IQuery or ICriteria?
Here is my attempt (im unable to test it right now), would this work?
public decimal Find(String namedQuery)
{
using (ISession session = NHibernateHelper.OpenSession())
{
IQuery query = session.GetNamedQuery(namedQuery);
return query.UniqueResult<decimal>();
}
} | nhibernate | hql | querying | null | null | null | open | NHibernate, Count Query
===
If i have a simple named query defined, the preforms a count function, on one column:
<query name="Activity.GetAllMiles">
<![CDATA[
select count(Distance)from Activity
]]>
</query>
How do I get the result of a count or any query that dont return of one the mapped entities, with NHibernate using Either IQuery or ICriteria?
Here is my attempt (im unable to test it right now), would this work?
public decimal Find(String namedQuery)
{
using (ISession session = NHibernateHelper.OpenSession())
{
IQuery query = session.GetNamedQuery(namedQuery);
return query.UniqueResult<decimal>();
}
} | 0 |
65,071 | 09/15/2008 17:47:43 | 9,056 | 09/15/2008 17:35:45 | 1 | 1 | IsNull function in DB2 SQL? | Is there a performant equivalent to the isnull function for DB2?
Imagine some of our products are internal, so they don't have names:
Select product.id, isnull(product.name, "Internal)
From product
Might return:
1 Socks
2 Shoes
3 Internal
4 Pants | sql | db2 | null | null | null | null | open | IsNull function in DB2 SQL?
===
Is there a performant equivalent to the isnull function for DB2?
Imagine some of our products are internal, so they don't have names:
Select product.id, isnull(product.name, "Internal)
From product
Might return:
1 Socks
2 Shoes
3 Internal
4 Pants | 0 |
65,074 | 09/15/2008 17:47:54 | 8,908 | 09/15/2008 17:11:02 | 1 | 0 | C++ Unit Testing Legacy Code: How to handle #include? | I've just started writing unit tests for a legacy code module with large physical dependencies using the #include directive. I've been dealing with them a few ways that felt overly tedious (providing empty headers to break long #include dependency lists, and using #define to prevent classes from being compiled) and was looking for some better strategies for handling these problems.
I've been frequently running into the problem of duplicating almost every header file with a blank version in order to separate the class I'm testing in it's entirety, and then writing substantial stub/mock/fake code for objects that will need to be replaced since they're now undefined.
Anyone know some better practices? | c++ | unit-testing | legacy | null | null | null | open | C++ Unit Testing Legacy Code: How to handle #include?
===
I've just started writing unit tests for a legacy code module with large physical dependencies using the #include directive. I've been dealing with them a few ways that felt overly tedious (providing empty headers to break long #include dependency lists, and using #define to prevent classes from being compiled) and was looking for some better strategies for handling these problems.
I've been frequently running into the problem of duplicating almost every header file with a blank version in order to separate the class I'm testing in it's entirety, and then writing substantial stub/mock/fake code for objects that will need to be replaced since they're now undefined.
Anyone know some better practices? | 0 |
65,076 | 09/15/2008 17:48:22 | 9,099 | 09/15/2008 17:43:43 | 1 | 0 | How to setup VIM properly for editing Python files - *.py | I've troubles setting VIM (7.1.xxx) for editing python files.
Identing seems broken (optimal 4 spaces).
I've followed some tutorials I found via google. Still no effect :/
Please help. | python | vim | configuration | spaces | ident | null | open | How to setup VIM properly for editing Python files - *.py
===
I've troubles setting VIM (7.1.xxx) for editing python files.
Identing seems broken (optimal 4 spaces).
I've followed some tutorials I found via google. Still no effect :/
Please help. | 0 |
65,078 | 09/15/2008 17:48:41 | 5,179 | 09/08/2008 11:14:28 | 1 | 0 | What is the best way to create a web page thumbnail? | Is there some reasonably cross platform way to create a thumbnail image given a URL? I know there are thumbnail web services that will do this, but I want a piece of software or library that will do this locally. I guess in Linux I could always spawn a browser window using a headless X server, but what about Windows or OS X? | thumbnail | null | null | null | null | null | open | What is the best way to create a web page thumbnail?
===
Is there some reasonably cross platform way to create a thumbnail image given a URL? I know there are thumbnail web services that will do this, but I want a piece of software or library that will do this locally. I guess in Linux I could always spawn a browser window using a headless X server, but what about Windows or OS X? | 0 |
10,031,482 | 04/05/2012 15:25:55 | 686,036 | 03/31/2011 15:27:07 | 303 | 17 | GlassFish JSF : IndexOutOfBoundsException no personalized classes in trace | I'm having an issue with a GlassFish server I am running. It seems to be "crashing" or stops responding after a while, espeacially under heavy load. I have gone back to check my application and make sure it is not the application itself that is creating this. I've been going through the log files of the server and keep finding this error all the time :
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:604)
at java.util.ArrayList.get(ArrayList.java:382)
at javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:165)
at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1560)
at javax.faces.component.UIOutput.restoreState(UIOutput.java:256)
at com.sun.faces.application.view.StateManagementStrategyImpl$2.visit(StateManagementStrategyImpl.java:267)
at com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:151)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1590)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:254)
at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:188)
at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:123)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:453)
at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:148)
at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:303)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:192)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:131)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:328)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:722)
So, as with any Java errors, I go down the stack trace to find where this is being generated from. The issue I am having is that, none of the classes I have made show up in the trace... this leads me to beleive (and I might be wrong) that this isn't generated from my code - even tho it makes no sense being that my code almost HAS to be the source of this error.
Any input on this would be greatly appreciated.
I am running Glasffish Open Source V.3.1 and JSF 2.0 | java | jsf | jsf-2.0 | glassfish-3 | null | null | open | GlassFish JSF : IndexOutOfBoundsException no personalized classes in trace
===
I'm having an issue with a GlassFish server I am running. It seems to be "crashing" or stops responding after a while, espeacially under heavy load. I have gone back to check my application and make sure it is not the application itself that is creating this. I've been going through the log files of the server and keep finding this error all the time :
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:604)
at java.util.ArrayList.get(ArrayList.java:382)
at javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:165)
at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1560)
at javax.faces.component.UIOutput.restoreState(UIOutput.java:256)
at com.sun.faces.application.view.StateManagementStrategyImpl$2.visit(StateManagementStrategyImpl.java:267)
at com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:151)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1590)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:254)
at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:188)
at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:123)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:453)
at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:148)
at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:303)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:192)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:131)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:328)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:722)
So, as with any Java errors, I go down the stack trace to find where this is being generated from. The issue I am having is that, none of the classes I have made show up in the trace... this leads me to beleive (and I might be wrong) that this isn't generated from my code - even tho it makes no sense being that my code almost HAS to be the source of this error.
Any input on this would be greatly appreciated.
I am running Glasffish Open Source V.3.1 and JSF 2.0 | 0 |
10,031,490 | 04/05/2012 15:26:23 | 788,700 | 06/08/2011 06:55:18 | 778 | 29 | Python: how do I match the string - only if the next line has a given string? | I have a text file, which looks like this:
node13
state = free
np = 8
properties = beta,eightcores
ntype = cluster
status = opsys=linux,uname=Linux node13 2.6.27.19-5-default #1 SMP 2009-02-28 04:40:21 +0100 x86_64,sessions=? 15201,nsessions=? 01,nusers=0,idletime=6837317,totmem=20506268kb,availmem=20259728kb,physmem=20506268kb,ncpus=8,loadave=0.00,gres=,netload=17130666575,se=free,jobs=,varattr=,rectime=1333639375
node14
state = job-exclusive
np = 8
properties = beta,eightcores
ntype = cluster
I want to grab nodes only if they are free. For that I have to make a regexp which will match `node(..)` only if the following line has `state = free`. Can You help me with this? | python | regex | null | null | null | null | open | Python: how do I match the string - only if the next line has a given string?
===
I have a text file, which looks like this:
node13
state = free
np = 8
properties = beta,eightcores
ntype = cluster
status = opsys=linux,uname=Linux node13 2.6.27.19-5-default #1 SMP 2009-02-28 04:40:21 +0100 x86_64,sessions=? 15201,nsessions=? 01,nusers=0,idletime=6837317,totmem=20506268kb,availmem=20259728kb,physmem=20506268kb,ncpus=8,loadave=0.00,gres=,netload=17130666575,se=free,jobs=,varattr=,rectime=1333639375
node14
state = job-exclusive
np = 8
properties = beta,eightcores
ntype = cluster
I want to grab nodes only if they are free. For that I have to make a regexp which will match `node(..)` only if the following line has `state = free`. Can You help me with this? | 0 |
10,031,496 | 04/05/2012 15:26:57 | 1,179,426 | 01/31/2012 03:21:15 | 1 | 0 | switch UIViewController In iOS | I have three UIViewController :A, B, C
I goto B from A
I goto C from B
how can I goBackTo A from C Without through B?
//in a.m
B* b =[B alloc] init];
[self presentModalViewController:b animated:YES];
[b release];
//in b.m
C* c=[C alloc] init];
[self presentModalViewController:c animated YES];
[c release];
enter code here | ios | uiviewcontroller | null | null | null | null | open | switch UIViewController In iOS
===
I have three UIViewController :A, B, C
I goto B from A
I goto C from B
how can I goBackTo A from C Without through B?
//in a.m
B* b =[B alloc] init];
[self presentModalViewController:b animated:YES];
[b release];
//in b.m
C* c=[C alloc] init];
[self presentModalViewController:c animated YES];
[c release];
enter code here | 0 |
10,031,283 | 04/05/2012 15:13:59 | 359,104 | 06/05/2010 09:02:04 | 563 | 28 | Ember-Data callback when findAll finished loading all records | With ember-data I'm loading all records of a model with:
Dynopia.adapter = DS.Adapter.create({
findAll: function(store, type) {
var url = type.url;
jQuery.getJSON(url, function(data) {
var ids = data.map(function(item, index, self){ return item.id });
store.loadMany(type, ids, data);
});
}
});
The `didLoad` method is called when each of the record has finished loading. Is there a method to call when **all** records have finished loading? | emberjs | emberdata | null | null | null | null | open | Ember-Data callback when findAll finished loading all records
===
With ember-data I'm loading all records of a model with:
Dynopia.adapter = DS.Adapter.create({
findAll: function(store, type) {
var url = type.url;
jQuery.getJSON(url, function(data) {
var ids = data.map(function(item, index, self){ return item.id });
store.loadMany(type, ids, data);
});
}
});
The `didLoad` method is called when each of the record has finished loading. Is there a method to call when **all** records have finished loading? | 0 |
10,031,504 | 04/05/2012 15:27:29 | 1,180,386 | 01/31/2012 13:06:55 | 35 | 0 | How to save html, javascript and css files in html5 local storage? | Is there a way to store a html, javascript and css files in html5 local storage?
I want make my webapplication faster!
Thanks | javascript | css | html5 | null | null | null | open | How to save html, javascript and css files in html5 local storage?
===
Is there a way to store a html, javascript and css files in html5 local storage?
I want make my webapplication faster!
Thanks | 0 |
10,030,566 | 04/05/2012 14:30:42 | 687,137 | 04/01/2011 07:23:42 | 62 | 3 | JSON. Parsing array of arrays. How? | How can I modify my existing JQuery code to loop through a JSON array of arrays? For example, when PHP returns a JSON result from MySQL database containing more than 1 row.
Here is my code. It only works with a single row result.
$(function(){
$('#btn_select_account').live('click', function() {
// URL...
$.getJSON('api.php?',
// Parameters...
{ call: 'select_account', p0: 'suchislife801' },
function(result){
// For each item inside array...
$.each(result, function(index, value) {
// Append to this html element
$('#output').append(index + ': ' + value + '<br />').fadeIn(300);
});
});
});
}); | jquery | json | php5 | null | null | null | open | JSON. Parsing array of arrays. How?
===
How can I modify my existing JQuery code to loop through a JSON array of arrays? For example, when PHP returns a JSON result from MySQL database containing more than 1 row.
Here is my code. It only works with a single row result.
$(function(){
$('#btn_select_account').live('click', function() {
// URL...
$.getJSON('api.php?',
// Parameters...
{ call: 'select_account', p0: 'suchislife801' },
function(result){
// For each item inside array...
$.each(result, function(index, value) {
// Append to this html element
$('#output').append(index + ': ' + value + '<br />').fadeIn(300);
});
});
});
}); | 0 |
65,091 | 09/15/2008 17:50:04 | 305 | 08/04/2008 14:04:19 | 2,619 | 141 | Making a PHP class behave like an array? | I'd like to be able to write a PHP class that behaves like an array and uses normal array syntax for getting & setting.
For example (where Foo is a PHP class of my making):
$foo = new Foo();
$foo['fooKey'] = 'foo value';
echo $foo['fooKey'];
I know that PHP has the \_get and \_set magic methods but those don't let you use array notation to access items. Python handles it by overloading \_\_getitem\_\_ and \_\_setitem\_\_.
Is there a way to do this in PHP? If it makes a difference, I'm running PHP 5.2. | php | oop | arrays | null | null | null | open | Making a PHP class behave like an array?
===
I'd like to be able to write a PHP class that behaves like an array and uses normal array syntax for getting & setting.
For example (where Foo is a PHP class of my making):
$foo = new Foo();
$foo['fooKey'] = 'foo value';
echo $foo['fooKey'];
I know that PHP has the \_get and \_set magic methods but those don't let you use array notation to access items. Python handles it by overloading \_\_getitem\_\_ and \_\_setitem\_\_.
Is there a way to do this in PHP? If it makes a difference, I'm running PHP 5.2. | 0 |
65,093 | 09/15/2008 17:50:23 | 2,183 | 08/20/2008 19:42:13 | 342 | 11 | Best way to archive live MySQL database | We have a live MySQL database that is 99% INSERTs, around 100 per second. We want to archive the data each day so that we can run queries on it without affecting the main, live database. In addition, once the archive is completed, we want to clear the live database.
What is the best way to do this without (if possible) locking INSERTs? We use INSERT DELAYED for the queries. | database | mysql | null | null | null | null | open | Best way to archive live MySQL database
===
We have a live MySQL database that is 99% INSERTs, around 100 per second. We want to archive the data each day so that we can run queries on it without affecting the main, live database. In addition, once the archive is completed, we want to clear the live database.
What is the best way to do this without (if possible) locking INSERTs? We use INSERT DELAYED for the queries. | 0 |
65,097 | 09/15/2008 17:50:41 | 9,111 | 09/15/2008 17:44:50 | 1 | 0 | Windows Server 2008: COM error: 0x800706F7 - The stub received bad data | I'm evaluating Server 2008. My C++ executable is getting this error. I've seen this error on MSDN that seems to have required a hot-fix for several previous OSes. Anyone else seen this? I get the same results for the 32 & 64 bit OS. | com | windows2008 | null | null | null | null | open | Windows Server 2008: COM error: 0x800706F7 - The stub received bad data
===
I'm evaluating Server 2008. My C++ executable is getting this error. I've seen this error on MSDN that seems to have required a hot-fix for several previous OSes. Anyone else seen this? I get the same results for the 32 & 64 bit OS. | 0 |
65,119 | 09/15/2008 17:53:05 | 1,368 | 08/14/2008 18:57:47 | 324 | 11 | MVC validation, will it conflict with other JS frameworks? | If I want to use the validation framework that you can use with MVC, will the javascript conflict with other javascript frameworks like jquery or YUI? | mvc | validation | null | null | null | null | open | MVC validation, will it conflict with other JS frameworks?
===
If I want to use the validation framework that you can use with MVC, will the javascript conflict with other javascript frameworks like jquery or YUI? | 0 |
65,128 | 09/15/2008 17:54:04 | 7,616 | 09/15/2008 14:04:03 | 36 | 6 | track down file handle | I have a huge ear that uses log4j and there is a single config file that is used to set it up. In this config file there is no mention of certain log files but, additional files apart from those specified in the config file get generated in the logs folder. I've searched for other combinations of (logger|log4j|log).(properties|xml) and haven't found anything promising in all of the jar files included in the ear. How do I track down which is the offending thread/class that is creating these extra files? | java | java-ee | logging | file | null | null | open | track down file handle
===
I have a huge ear that uses log4j and there is a single config file that is used to set it up. In this config file there is no mention of certain log files but, additional files apart from those specified in the config file get generated in the logs folder. I've searched for other combinations of (logger|log4j|log).(properties|xml) and haven't found anything promising in all of the jar files included in the ear. How do I track down which is the offending thread/class that is creating these extra files? | 0 |
65,129 | 09/15/2008 17:54:10 | 3,635 | 08/29/2008 16:13:11 | 37 | 7 | Any downsides to using ASP.Net AJAX and JQuery together | We are planning to use the JQuery library to augment our client side JavaScript needs.
Are there any major issues in trying to use both ASP.Net AJAX and JQuery? Both libraries seem to use $ for special purposes. Are there any conflicts that we need to be aware of?
We also use Telerik controls that use ASP.Net AJAX.
TIA | asp.net | ajax | jquery | null | null | null | open | Any downsides to using ASP.Net AJAX and JQuery together
===
We are planning to use the JQuery library to augment our client side JavaScript needs.
Are there any major issues in trying to use both ASP.Net AJAX and JQuery? Both libraries seem to use $ for special purposes. Are there any conflicts that we need to be aware of?
We also use Telerik controls that use ASP.Net AJAX.
TIA | 0 |
65,133 | 09/15/2008 17:54:52 | 9,047 | 09/15/2008 17:34:31 | 1 | 0 | Under what circumstances does Internet Explorer fail to properly unload an ActiveX control? | I'm running into a perplexing problem with an ActiveX control I'm writing - sometimes, Internet Explorer appears to fail to properly unload the control on process shutdown. This results in the control instance's destructor not being called.
The control is written in C++, uses ATL and it's compiled using Visual Studio 2005. The control instance's destructor is always called when the user browses away from the page the control is embedded in - the problem only occurs when the browser is closed.
When I run IE under a debugger, I don't see anything unusual - the debugger doesn't catch any exceptions, access violations or assertion failures, but the problem is still there - I can set a breakpoint in the control's destructor and it's never hit when I close the broswer.
In addition, when I load a simple HTML page that embeds multiple instances of the control I don't see the problem. The problem only appears to happen when the control is instantiated from our web application, which inserts <object> tags dynamically into the web page - of course, not knowing what causes this problem, I don't know whether this bit of information is relevant or not, but it does seem to indicate that this might be an IE problem, since it's data dependent.
When I run the simple test case under the debugger, I can set a breakpoint in the control's destructor and it's hit every time. I believe this rules out a problem with the control itself (say, an error that would prevent the destructor from ever being called, like an interface leak.)
I do most of my testing with IE 6, but I've seen the problem occur on IE 7, as well. I haven't tested IE 8. | c++ | internet-explorer-6 | internet-explorer | activex | atl | null | open | Under what circumstances does Internet Explorer fail to properly unload an ActiveX control?
===
I'm running into a perplexing problem with an ActiveX control I'm writing - sometimes, Internet Explorer appears to fail to properly unload the control on process shutdown. This results in the control instance's destructor not being called.
The control is written in C++, uses ATL and it's compiled using Visual Studio 2005. The control instance's destructor is always called when the user browses away from the page the control is embedded in - the problem only occurs when the browser is closed.
When I run IE under a debugger, I don't see anything unusual - the debugger doesn't catch any exceptions, access violations or assertion failures, but the problem is still there - I can set a breakpoint in the control's destructor and it's never hit when I close the broswer.
In addition, when I load a simple HTML page that embeds multiple instances of the control I don't see the problem. The problem only appears to happen when the control is instantiated from our web application, which inserts <object> tags dynamically into the web page - of course, not knowing what causes this problem, I don't know whether this bit of information is relevant or not, but it does seem to indicate that this might be an IE problem, since it's data dependent.
When I run the simple test case under the debugger, I can set a breakpoint in the control's destructor and it's hit every time. I believe this rules out a problem with the control itself (say, an error that would prevent the destructor from ever being called, like an interface leak.)
I do most of my testing with IE 6, but I've seen the problem occur on IE 7, as well. I haven't tested IE 8. | 0 |
65,135 | 09/15/2008 17:54:55 | 9,140 | 09/15/2008 17:49:56 | 1 | 0 | How can I speed up SVN updates? | We have a ratter large svn repository. Doing svn updates are taking longer and longer the more we add code. We added svn:externals to folders that were repeated in some projects like the FCKeditor in various websites. This helped but not that much.
What is the best way to reduce update time and boost SVN speed? | svn | tortoisesvn | null | null | null | null | open | How can I speed up SVN updates?
===
We have a ratter large svn repository. Doing svn updates are taking longer and longer the more we add code. We added svn:externals to folders that were repeated in some projects like the FCKeditor in various websites. This helped but not that much.
What is the best way to reduce update time and boost SVN speed? | 0 |
65,150 | 09/15/2008 17:56:50 | 9,155 | 09/15/2008 17:52:48 | 1 | 0 | Java Open Source Workflow Engines | What is the best open source java workflow framework (e.g. OSWorkflow, jBPM, XFlow etc.)? | java | open-source | workflow | null | null | null | open | Java Open Source Workflow Engines
===
What is the best open source java workflow framework (e.g. OSWorkflow, jBPM, XFlow etc.)? | 0 |
65,164 | 09/15/2008 17:57:51 | 4,337 | 09/02/2008 22:43:39 | 1,814 | 139 | Best practices for DateTime serialization in .Net framework 3.5/SQL Server 2008 | Some 4 years back, I followed this [MSDN article][1] for DateTime usage best practices for building a .Net client on .Net 1.1 and ASMX web services (with SQL 2000 server as the backend). I still remember the serialization issues I had with DateTime and the testing effort it took for servers in different time zones.
My questions is this: Is there a similar best practices document for some of the new technologies like WCF and SQL server 2008 especially with the addition of new datetime types for storing time zone aware info.
This is the environment:
1) SQL server 2008 on Pacific Time.
2) Web Services layer on a different time zone.
3) Clients could be using .Net 2.0 or .Net 3.5 on different time zones. If it makes it easy, we can force everyone to upgrade to .Net 3.5.
Any good suggestions/best practices for the data types to be used in each layer?
[1]: http://msdn.microsoft.com/en-us/library/ms973825.aspx | datetime | .net-3.5 | wcf | sql2008 | null | null | open | Best practices for DateTime serialization in .Net framework 3.5/SQL Server 2008
===
Some 4 years back, I followed this [MSDN article][1] for DateTime usage best practices for building a .Net client on .Net 1.1 and ASMX web services (with SQL 2000 server as the backend). I still remember the serialization issues I had with DateTime and the testing effort it took for servers in different time zones.
My questions is this: Is there a similar best practices document for some of the new technologies like WCF and SQL server 2008 especially with the addition of new datetime types for storing time zone aware info.
This is the environment:
1) SQL server 2008 on Pacific Time.
2) Web Services layer on a different time zone.
3) Clients could be using .Net 2.0 or .Net 3.5 on different time zones. If it makes it easy, we can force everyone to upgrade to .Net 3.5.
Any good suggestions/best practices for the data types to be used in each layer?
[1]: http://msdn.microsoft.com/en-us/library/ms973825.aspx | 0 |
65,170 | 09/15/2008 17:58:21 | 4,842 | 09/05/2008 22:23:54 | 1 | 1 | How to get name associated with open HANDLE | What's the easiest way to get the filename associated with an open HANDLE in Win32? | windows | c | winapi | null | null | null | open | How to get name associated with open HANDLE
===
What's the easiest way to get the filename associated with an open HANDLE in Win32? | 0 |
65,199 | 09/15/2008 18:01:26 | 1,368 | 08/14/2008 18:57:47 | 329 | 11 | C# compare algorithms | Are there any open source algorithms in c# that solve the problem of creating a difference between two text files?
It would be super cool if it had some way of highlighting what exact areas where changed in the text document also. | c# | algorithm | difference | null | null | null | open | C# compare algorithms
===
Are there any open source algorithms in c# that solve the problem of creating a difference between two text files?
It would be super cool if it had some way of highlighting what exact areas where changed in the text document also. | 0 |
65,200 | 09/15/2008 18:01:35 | 9,195 | 09/15/2008 18:01:35 | 1 | 0 | How do you crash a JVM? | Newbie here... Also not sure whether the question belongs to a site that prefers questions that can be answered and not discussed. Still...
I was reading a book on programming skills wherein the author asks the interviewee, "How do you crash a JVM?" I thought that you could do so by writing an infinite for-loop that would eventually use up all the memory. But that was just my suggestion... I am not so strong in Java, so I thought I'd post it here...
Anybody has any idea? | java | jvm | null | null | null | null | open | How do you crash a JVM?
===
Newbie here... Also not sure whether the question belongs to a site that prefers questions that can be answered and not discussed. Still...
I was reading a book on programming skills wherein the author asks the interviewee, "How do you crash a JVM?" I thought that you could do so by writing an infinite for-loop that would eventually use up all the memory. But that was just my suggestion... I am not so strong in Java, so I thought I'd post it here...
Anybody has any idea? | 0 |
65,206 | 09/15/2008 18:02:09 | 2,755 | 08/24/2008 21:39:28 | 24 | 2 | Using JQuery, how can I dynamically set the size attribute of a select box? | I would like to include it in this code:
$("#mySelect").bind("click",
function() {
$("#myOtherSelect").children().remove() ;
var options = '' ;
for (var i = 0; i < myArray[this.value].length; i++) {
options += '<option value="' + myArray[this.value][i] + '">' + myArray[this.value][i] + '</option>';
}
$("#myOtherSelect").html(options).attr [... use myArray[this.value].length here ...] ;
});
});
| jquery | null | null | null | null | null | open | Using JQuery, how can I dynamically set the size attribute of a select box?
===
I would like to include it in this code:
$("#mySelect").bind("click",
function() {
$("#myOtherSelect").children().remove() ;
var options = '' ;
for (var i = 0; i < myArray[this.value].length; i++) {
options += '<option value="' + myArray[this.value][i] + '">' + myArray[this.value][i] + '</option>';
}
$("#myOtherSelect").html(options).attr [... use myArray[this.value].length here ...] ;
});
});
| 0 |
65,209 | 09/15/2008 18:02:15 | 9,176 | 09/15/2008 17:57:56 | 1 | 0 | Work with PSDs in PHP | I was recently asked to come up with a script that will allow the end user to upload a PSD (Photoshop) file, and split it up and create images from each of the layers.
I would love to stay with PHP for this, but I am open to Python or Perl as well.
Any ideas would be greatly appreciated. | php | psd | null | null | null | null | open | Work with PSDs in PHP
===
I was recently asked to come up with a script that will allow the end user to upload a PSD (Photoshop) file, and split it up and create images from each of the layers.
I would love to stay with PHP for this, but I am open to Python or Perl as well.
Any ideas would be greatly appreciated. | 0 |
65,243 | 09/15/2008 18:07:16 | 8,967 | 09/15/2008 17:22:14 | 1 | 0 | SQLite UDF - VBA Callback | Has anybody attempted to pass a VBA (or VB6) function (via AddressOf ?) to the SQLite create a UDF function (http://www.sqlite.org/c3ref/create_function.html).
How would the resulting callback arguments be handled by VBA?
The function to be called would have the following signature...
void (*xFunc)(sqlite3_context*,int,sqlite3_value**)
| vba | vb6 | sqlite | null | null | null | open | SQLite UDF - VBA Callback
===
Has anybody attempted to pass a VBA (or VB6) function (via AddressOf ?) to the SQLite create a UDF function (http://www.sqlite.org/c3ref/create_function.html).
How would the resulting callback arguments be handled by VBA?
The function to be called would have the following signature...
void (*xFunc)(sqlite3_context*,int,sqlite3_value**)
| 0 |
65,262 | 09/15/2008 18:09:52 | 4,443 | 09/03/2008 19:56:37 | 1 | 0 | Does Server Core 2008 support asp.net? | Does Server Core 2008 support asp.net? I see references online saying that it isn't supported, but they are all old references from CTPs. | asp.net | server-core | null | null | null | null | open | Does Server Core 2008 support asp.net?
===
Does Server Core 2008 support asp.net? I see references online saying that it isn't supported, but they are all old references from CTPs. | 0 |
65,266 | 09/15/2008 18:10:35 | 9,241 | 09/15/2008 18:10:35 | 1 | 0 | Can you pre-compile regular expressions in python? | Each time a python file is imported that contains a large quantity of static regular expressions, cpu cycles are spent compiling the strings into their representative state machines in memory.
a = re.compile("a.*b")
b = re.compile("c.*d")
...
Question: Is it possible to store these regular expressions in a cache on disk in a pre-compiled manner to avoid having to execute the regex compilations on each import?
Pickling the object simply does the following, causing compilation to happen anyway:
>>> import pickle
>>> import re
>>> x = re.compile(".*")
>>> pickle.dumps(x)
"cre\n_compile\np0\n(S'.*'\np1\nI0\ntp2\nRp3\n."
And re objects are unmarshallable:
>>> import marshal
>>> import re
>>> x = re.compile(".*")
>>> marshal.dumps(x)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: unmarshallable object
| python | regex | caching | null | null | null | open | Can you pre-compile regular expressions in python?
===
Each time a python file is imported that contains a large quantity of static regular expressions, cpu cycles are spent compiling the strings into their representative state machines in memory.
a = re.compile("a.*b")
b = re.compile("c.*d")
...
Question: Is it possible to store these regular expressions in a cache on disk in a pre-compiled manner to avoid having to execute the regex compilations on each import?
Pickling the object simply does the following, causing compilation to happen anyway:
>>> import pickle
>>> import re
>>> x = re.compile(".*")
>>> pickle.dumps(x)
"cre\n_compile\np0\n(S'.*'\np1\nI0\ntp2\nRp3\n."
And re objects are unmarshallable:
>>> import marshal
>>> import re
>>> x = re.compile(".*")
>>> marshal.dumps(x)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: unmarshallable object
| 0 |
65,273 | 09/15/2008 18:11:11 | 1,463 | 08/15/2008 17:26:44 | 515 | 34 | Switching state server to another machine in cluster | We have a number of web-apps running on IIS 6 in a cluster of machines. One of those machines is also a state server for the cluster. We do not use sticky IP's.
When we need to take down the state server machine this requires the entire cluster to be offline for a few minutes while it's switched from one machine to another.
Is there a way to switch a state server from one machine to another with zero downtime? | iis6 | server2003 | stateserver | null | null | null | open | Switching state server to another machine in cluster
===
We have a number of web-apps running on IIS 6 in a cluster of machines. One of those machines is also a state server for the cluster. We do not use sticky IP's.
When we need to take down the state server machine this requires the entire cluster to be offline for a few minutes while it's switched from one machine to another.
Is there a way to switch a state server from one machine to another with zero downtime? | 0 |
65,296 | 09/15/2008 18:12:57 | 4,200 | 09/02/2008 09:57:33 | 615 | 34 | Does anyone still believe in the Capability Maturity Model for Software? | Ten years ago when I first encountered the [CMM for software][1] I was, I suppose like many, struck by how accurately it seemed to describe the chaotic "level one" state of software development in many businesses, particularly with its reference to reliance on heroes. It also seemed to provide realistic guidance for an organisation to progress up the levels improving their processes.
But while it seemed to provide a good model and realistic guidance for improvement, I never really witnessed an adherence to CMM having a significant positive impact on any organisation I have worked for, or with. I know of one large software consultancy that claims CMM level 5 - the highest level - when I can see first hand that their processes are as chaotic, and the quality of their software products as varied, as other, non-CMM businesses.
So I'm wondering, has anyone seen a real, tangible benefit from adherence to process improvement according to CMM?
And if you have seen improvement, do you think that the improvement was specifically attributable to CMM, or would an alternative approach (such as [six-sigma][2]) have been equally or more beneficial?
Does anyone still believe?
As an aside, for those who haven't yet seen it, check out this funny-because-its-true [parody][3]
[1]: http://en.wikipedia.org/wiki/Capability_Maturity_Model
[2]: http://en.wikipedia.org/wiki/Six_Sigma
[3]: http://www.stsc.hill.af.mil/crosstalk/1996/11/xt96d11h.asp | cmmi | process-management | null | null | null | null | open | Does anyone still believe in the Capability Maturity Model for Software?
===
Ten years ago when I first encountered the [CMM for software][1] I was, I suppose like many, struck by how accurately it seemed to describe the chaotic "level one" state of software development in many businesses, particularly with its reference to reliance on heroes. It also seemed to provide realistic guidance for an organisation to progress up the levels improving their processes.
But while it seemed to provide a good model and realistic guidance for improvement, I never really witnessed an adherence to CMM having a significant positive impact on any organisation I have worked for, or with. I know of one large software consultancy that claims CMM level 5 - the highest level - when I can see first hand that their processes are as chaotic, and the quality of their software products as varied, as other, non-CMM businesses.
So I'm wondering, has anyone seen a real, tangible benefit from adherence to process improvement according to CMM?
And if you have seen improvement, do you think that the improvement was specifically attributable to CMM, or would an alternative approach (such as [six-sigma][2]) have been equally or more beneficial?
Does anyone still believe?
As an aside, for those who haven't yet seen it, check out this funny-because-its-true [parody][3]
[1]: http://en.wikipedia.org/wiki/Capability_Maturity_Model
[2]: http://en.wikipedia.org/wiki/Six_Sigma
[3]: http://www.stsc.hill.af.mil/crosstalk/1996/11/xt96d11h.asp | 0 |
65,310 | 09/15/2008 18:13:53 | 2,328 | 08/21/2008 16:45:54 | 692 | 32 | apache axis ConfigurationException | I am using apache axis to connect my java app to a web server. I used wsdl2java to create the stubs for me, but when I try to use the stubs, I get the following exception:
org.apache.axis.ConfigurationException: No service named <web service name> is available
any idea? | java | apache | axis | null | null | null | open | apache axis ConfigurationException
===
I am using apache axis to connect my java app to a web server. I used wsdl2java to create the stubs for me, but when I try to use the stubs, I get the following exception:
org.apache.axis.ConfigurationException: No service named <web service name> is available
any idea? | 0 |
65,343 | 09/15/2008 18:17:11 | 9,205 | 09/15/2008 18:03:07 | 1 | 0 | How can I post a Cocoa "sheet" on another program's window? | Using the Apple OS X Cocoa framework, how can I post a *sheet* (slide-down modal dialog) on the window of another process?
Interprocess cooperation (such as passing a reference of some kind) is acceptable: both processes are mine, but I want to avoid binding the sheet's code into the primary process. | mac | osx | cocoa | null | null | null | open | How can I post a Cocoa "sheet" on another program's window?
===
Using the Apple OS X Cocoa framework, how can I post a *sheet* (slide-down modal dialog) on the window of another process?
Interprocess cooperation (such as passing a reference of some kind) is acceptable: both processes are mine, but I want to avoid binding the sheet's code into the primary process. | 0 |
65,351 | 09/15/2008 18:17:59 | 8,739 | 09/15/2008 16:46:12 | 1 | 0 | Null or default comparsion of generic argument | I have a generic method defined like this:
public void MyMethod<T>(T myArgument)
The first things I want to do is check if the value of myArgument is the default value for that type, something like this:
if (myArgument == default(T))
But this doesn't compile because I haven't guaranteed that T will implement the == operator. So I switched the code to this:
if (myArgument.Equals(default(T)))
Now this compiles, but will fail if myArgument is null, which is part of what I'm testing for. I can add an explicit null check like this:
if (myArgument == null || myArgument.Equals(default(T)))
Now this feels redundant to me. ReSharper is even suggesting that I change the myArgument == null part into myArgument == default(T) which is where I started. Is there a better way to solve this problem? | c# | generics | null | null | null | null | open | Null or default comparsion of generic argument
===
I have a generic method defined like this:
public void MyMethod<T>(T myArgument)
The first things I want to do is check if the value of myArgument is the default value for that type, something like this:
if (myArgument == default(T))
But this doesn't compile because I haven't guaranteed that T will implement the == operator. So I switched the code to this:
if (myArgument.Equals(default(T)))
Now this compiles, but will fail if myArgument is null, which is part of what I'm testing for. I can add an explicit null check like this:
if (myArgument == null || myArgument.Equals(default(T)))
Now this feels redundant to me. ReSharper is even suggesting that I change the myArgument == null part into myArgument == default(T) which is where I started. Is there a better way to solve this problem? | 0 |
65,364 | 09/15/2008 18:20:07 | 9,266 | 09/15/2008 18:14:08 | 1 | 0 | How to publish wmi classes in .net? | I've created a seperate assembly with a class that is intended to be
published through wmi. Then I've created a windows forms app that
references that assembly and attempts to publish the class. When I try to
publish the class, I get an exception of type
System.Management.Instrumentation.WmiProviderInstallationException. The
message of the exception says "Exception of type
'System.Management.Instrumentation.WMIInfraException' was thrown.". I have
no idea what this means. I've tried .Net2.0 and .Net3.5 (sp1 too) and get the same results.
Below is my wmi class, followed by the code I used to publish it.
//Interface.cs in assembly WMI.Interface.dll
using System;
using System.Collections.Generic;
using System.Text;
[assembly: System.Management.Instrumentation.WmiConfiguration(@"root\Test",
HostingModel =
System.Management.Instrumentation.ManagementHostingModel.Decoupled)]
namespace WMI
{
[System.ComponentModel.RunInstaller(true)]
public class MyApplicationManagementInstaller :
System.Management.Instrumentation.DefaultManagementInstaller { }
[System.Management.Instrumentation.ManagementEntity(Singleton = true)]
[System.Management.Instrumentation.ManagementQualifier("Description",
Value = "Obtain processor information.")]
public class Interface
{
[System.Management.Instrumentation.ManagementBind]
public Interface()
{
}
[System.Management.Instrumentation.ManagementProbe]
[System.Management.Instrumentation.ManagementQualifier("Descriiption",
Value="The number of processors.")]
public int ProcessorCount
{
get { return Environment.ProcessorCount; }
}
}
}
<BR/>
//Button click in windows forms application to publish class
try
{
System.Management.Instrumentation.InstrumentationManager.Publish(new
WMI.Interface());
}
catch (System.Management.Instrumentation.InstrumentationException
exInstrumentation)
{
MessageBox.Show(exInstrumentation.ToString());
}
catch (System.Management.Instrumentation.WmiProviderInstallationException
exProvider)
{
MessageBox.Show(exProvider.ToString());
}
catch (Exception exPublish)
{
MessageBox.Show(exPublish.ToString());
}
| c# | .net | .net-3.5 | .net-2.0 | wmi | null | open | How to publish wmi classes in .net?
===
I've created a seperate assembly with a class that is intended to be
published through wmi. Then I've created a windows forms app that
references that assembly and attempts to publish the class. When I try to
publish the class, I get an exception of type
System.Management.Instrumentation.WmiProviderInstallationException. The
message of the exception says "Exception of type
'System.Management.Instrumentation.WMIInfraException' was thrown.". I have
no idea what this means. I've tried .Net2.0 and .Net3.5 (sp1 too) and get the same results.
Below is my wmi class, followed by the code I used to publish it.
//Interface.cs in assembly WMI.Interface.dll
using System;
using System.Collections.Generic;
using System.Text;
[assembly: System.Management.Instrumentation.WmiConfiguration(@"root\Test",
HostingModel =
System.Management.Instrumentation.ManagementHostingModel.Decoupled)]
namespace WMI
{
[System.ComponentModel.RunInstaller(true)]
public class MyApplicationManagementInstaller :
System.Management.Instrumentation.DefaultManagementInstaller { }
[System.Management.Instrumentation.ManagementEntity(Singleton = true)]
[System.Management.Instrumentation.ManagementQualifier("Description",
Value = "Obtain processor information.")]
public class Interface
{
[System.Management.Instrumentation.ManagementBind]
public Interface()
{
}
[System.Management.Instrumentation.ManagementProbe]
[System.Management.Instrumentation.ManagementQualifier("Descriiption",
Value="The number of processors.")]
public int ProcessorCount
{
get { return Environment.ProcessorCount; }
}
}
}
<BR/>
//Button click in windows forms application to publish class
try
{
System.Management.Instrumentation.InstrumentationManager.Publish(new
WMI.Interface());
}
catch (System.Management.Instrumentation.InstrumentationException
exInstrumentation)
{
MessageBox.Show(exInstrumentation.ToString());
}
catch (System.Management.Instrumentation.WmiProviderInstallationException
exProvider)
{
MessageBox.Show(exProvider.ToString());
}
catch (Exception exPublish)
{
MessageBox.Show(exPublish.ToString());
}
| 0 |
65,400 | 09/15/2008 18:24:14 | 5,179 | 09/08/2008 11:14:28 | 11 | 1 | How to add method using metaclass | How do I add an instance method to a class using a metaclass (yes I do need to use a metaclass)? The following kind of works, but the func_name will still be "foo":
def bar(self):
print "bar"
class MetaFoo(type):
__new__(cls, name, bases, dict):
dict["foobar"] = bar
return type(name, bases, dict)
class Foo(object):
__metaclass__ = MetaFoo
>>> f = Foo()
>>> f.foobar()
bar
>>> f.foobar.func_name
'bar'
My problem is that some library code actually uses the func_name and later fails to find the 'bar' method of the Foo instance. I could do:
dict["foobar"] = types.FunctionType(bar.func_code, {}, "foobar")
There is also types.MethodType, but I need an instance that does'nt exist yet to use that. Am I missing someting here? | python | metaclass | null | null | null | null | open | How to add method using metaclass
===
How do I add an instance method to a class using a metaclass (yes I do need to use a metaclass)? The following kind of works, but the func_name will still be "foo":
def bar(self):
print "bar"
class MetaFoo(type):
__new__(cls, name, bases, dict):
dict["foobar"] = bar
return type(name, bases, dict)
class Foo(object):
__metaclass__ = MetaFoo
>>> f = Foo()
>>> f.foobar()
bar
>>> f.foobar.func_name
'bar'
My problem is that some library code actually uses the func_name and later fails to find the 'bar' method of the Foo instance. I could do:
dict["foobar"] = types.FunctionType(bar.func_code, {}, "foobar")
There is also types.MethodType, but I need an instance that does'nt exist yet to use that. Am I missing someting here? | 0 |
65,406 | 09/15/2008 18:24:46 | 543 | 08/06/2008 15:41:31 | 699 | 38 | How do I estimate the size of a Lucene index? | Is there a known math formula that I can use to estimate the size of a new Lucene index? I know how many fields I want to have indexed, and the size of each field. And, I know how many items will be indexed. So, once these are processed by Lucene, how does it translate into bytes? | lucene | null | null | null | null | null | open | How do I estimate the size of a Lucene index?
===
Is there a known math formula that I can use to estimate the size of a new Lucene index? I know how many fields I want to have indexed, and the size of each field. And, I know how many items will be indexed. So, once these are processed by Lucene, how does it translate into bytes? | 0 |
65,427 | 09/15/2008 18:27:33 | 7,979 | 09/15/2008 14:49:25 | 1 | 1 | How does the NSAutoreleasePool autorelease pool work? | As I understand it, anything created with an **alloc**, **new**, or **init** needs to be manually released. For example:
int main(void) {
NSString *string;
string = [[NSString alloc] init];
/* use the string */
[string release]
}
My question, though, is wouldn't this be just as valid?:
int main(void) {
NSAutoreleasePool *pool;
pool = [[NSAutoreleasePool alloc] init];
NSString *string;
string = [[[NSString alloc] init] autorelease];
/* use the string */
[pool drain]
}
| memory-management | foundationkit | objc | objective-c | null | null | open | How does the NSAutoreleasePool autorelease pool work?
===
As I understand it, anything created with an **alloc**, **new**, or **init** needs to be manually released. For example:
int main(void) {
NSString *string;
string = [[NSString alloc] init];
/* use the string */
[string release]
}
My question, though, is wouldn't this be just as valid?:
int main(void) {
NSAutoreleasePool *pool;
pool = [[NSAutoreleasePool alloc] init];
NSString *string;
string = [[[NSString alloc] init] autorelease];
/* use the string */
[pool drain]
}
| 0 |
65,434 | 09/15/2008 18:28:43 | 4,465 | 09/03/2008 23:13:41 | 46 | 4 | Getting notified when the page DOM has loaded (but before window.onload) | I know there are some ways to get notified when the page body has loaded (before all the images and 3rd party resources load which fires the **window.onload** event), but it's different for every browser.
Is there a definitive cross-browser way (other than polling) to do this? I'd like to achieve this effect without using libraries like jQuery. | javascript | dom | null | null | null | null | open | Getting notified when the page DOM has loaded (but before window.onload)
===
I know there are some ways to get notified when the page body has loaded (before all the images and 3rd party resources load which fires the **window.onload** event), but it's different for every browser.
Is there a definitive cross-browser way (other than polling) to do this? I'd like to achieve this effect without using libraries like jQuery. | 0 |
65,447 | 09/15/2008 18:31:14 | 4,234 | 09/02/2008 13:28:31 | 1 | 0 | getting data from an oracle database as a CSV file (or any other custom textual format) | A sample perl script that connects to an oracle database, does a simple SELECT query, and spits the results to stdout in CSV format would be perfect. Python or any other language available in a typical unix distribution would be fine too.
In fact, this might be nice for a little language showdown. If there's a way to do it directly in mathematica I would swoon (presumably it should be possible with J/Link (mathematica's java integration thingy)). | database | oracle | null | null | null | null | open | getting data from an oracle database as a CSV file (or any other custom textual format)
===
A sample perl script that connects to an oracle database, does a simple SELECT query, and spits the results to stdout in CSV format would be perfect. Python or any other language available in a typical unix distribution would be fine too.
In fact, this might be nice for a little language showdown. If there's a way to do it directly in mathematica I would swoon (presumably it should be possible with J/Link (mathematica's java integration thingy)). | 0 |
65,452 | 09/15/2008 18:31:58 | 1,889 | 08/19/2008 04:55:30 | 26 | 5 | Error Serializing String in WebService call | this morning I ran into an issue with returning back a text string as result from a Web Service call. the Error I was getting is below
************** Exception Text **************
System.ServiceModel.CommunicationException: Error in deserializing body of reply message for operation 'GetFilingTreeXML'. ---> System.InvalidOperationException: There is an error in XML document (1, 9201). ---> System.Xml.XmlException: The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 9201.
at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3)
at System.Xml.XmlExceptionHelper.ThrowMaxStringContentLengthExceeded(XmlDictionaryReader reader, Int32 maxStringContentLength)
at System.Xml.XmlDictionaryReader.ReadString(Int32 maxStringContentLength)
at System.Xml.XmlDictionaryReader.ReadString()
at System.Xml.XmlBaseReader.ReadElementString()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderImageServerClientInterfaceSoap.Read10_GetFilingTreeXMLResponse()
at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer9.Deserialize(XmlSerializationReader reader)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
at System.ServiceModel.Dispatcher.XmlSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, XmlSerializer serializer, MessagePartDescription returnPart, MessagePartDescriptionCollection bodyParts, Object[] parameters, Boolean isRequest)
--- End of inner exception stack trace ---
did a search and the results are below:
[Search Results][1]
most of those are WCF related but were enough to point me in the right direction. I will post answer as reply.
[1]: http://search.yahoo.com/search?p=This+quota+may+be+increased+by+changing+the+MaxStringContentLength+property+on+the+XmlDictionaryReaderQuotas+object+used+when+creating+the+XML+reader. | webservice | maxstringcontentlength | xmlreader | null | null | null | open | Error Serializing String in WebService call
===
this morning I ran into an issue with returning back a text string as result from a Web Service call. the Error I was getting is below
************** Exception Text **************
System.ServiceModel.CommunicationException: Error in deserializing body of reply message for operation 'GetFilingTreeXML'. ---> System.InvalidOperationException: There is an error in XML document (1, 9201). ---> System.Xml.XmlException: The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 9201.
at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3)
at System.Xml.XmlExceptionHelper.ThrowMaxStringContentLengthExceeded(XmlDictionaryReader reader, Int32 maxStringContentLength)
at System.Xml.XmlDictionaryReader.ReadString(Int32 maxStringContentLength)
at System.Xml.XmlDictionaryReader.ReadString()
at System.Xml.XmlBaseReader.ReadElementString()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderImageServerClientInterfaceSoap.Read10_GetFilingTreeXMLResponse()
at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer9.Deserialize(XmlSerializationReader reader)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
at System.ServiceModel.Dispatcher.XmlSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, XmlSerializer serializer, MessagePartDescription returnPart, MessagePartDescriptionCollection bodyParts, Object[] parameters, Boolean isRequest)
--- End of inner exception stack trace ---
did a search and the results are below:
[Search Results][1]
most of those are WCF related but were enough to point me in the right direction. I will post answer as reply.
[1]: http://search.yahoo.com/search?p=This+quota+may+be+increased+by+changing+the+MaxStringContentLength+property+on+the+XmlDictionaryReaderQuotas+object+used+when+creating+the+XML+reader. | 0 |
65,456 | 09/15/2008 18:32:25 | 8,998 | 09/15/2008 17:27:01 | 1 | 2 | Are there CScope-style source browsers for other languages besides C/C++ on Windows? | I'm specifically interested in tools that can be plugged into Vim to allow CScope-style source browsing (1-2 keystroke commands to locate function definitions, callers, global symbols and so on). I'm not interested in IDE-based tools since I know Microsoft and other vendors already address that space -- I prefer to use Vim for editing and browsing, but but don't know of tools for C# and/or Java that give me the same power as CScope. | vim | null | null | null | null | null | open | Are there CScope-style source browsers for other languages besides C/C++ on Windows?
===
I'm specifically interested in tools that can be plugged into Vim to allow CScope-style source browsing (1-2 keystroke commands to locate function definitions, callers, global symbols and so on). I'm not interested in IDE-based tools since I know Microsoft and other vendors already address that space -- I prefer to use Vim for editing and browsing, but but don't know of tools for C# and/or Java that give me the same power as CScope. | 0 |
65,458 | 09/15/2008 18:32:49 | 9,362 | 09/15/2008 18:32:49 | 1 | 0 | What and why Source Control (aka Version Control, aka SCM) would you use for a 1000+ developer organization? | There are many SCM systems out there. Some open, some closed, some free, some quite expensive. Which _ONE_ would you use for a 3000+ developer organization with several sites (some behind a very slow link)? Why did you choose that (give some reasons, not just "because")? | distributed | large | version-control | null | null | 10/25/2011 16:08:29 | not constructive | What and why Source Control (aka Version Control, aka SCM) would you use for a 1000+ developer organization?
===
There are many SCM systems out there. Some open, some closed, some free, some quite expensive. Which _ONE_ would you use for a 3000+ developer organization with several sites (some behind a very slow link)? Why did you choose that (give some reasons, not just "because")? | 4 |
65,463 | 09/15/2008 18:33:36 | 9,367 | 09/15/2008 18:33:36 | 1 | 0 | Is there a good .net library for 3-way comparison of HTML that can be used for merge? | In order to merge independant HTML changes, I'm looking for recomendations for a 3-way comparison / merge library for HTML. The common 3-way text merge algorithms perform poorly because they do not understand the tree like structure of HTML and XML. Of course, such a library must understand the looser syntax of HTML, i.e. tags are not always closed. My platform is .Net. | c# | .net | merge | class-library | difference | null | open | Is there a good .net library for 3-way comparison of HTML that can be used for merge?
===
In order to merge independant HTML changes, I'm looking for recomendations for a 3-way comparison / merge library for HTML. The common 3-way text merge algorithms perform poorly because they do not understand the tree like structure of HTML and XML. Of course, such a library must understand the looser syntax of HTML, i.e. tags are not always closed. My platform is .Net. | 0 |
65,475 | 09/15/2008 18:35:04 | 8,720 | 09/15/2008 16:40:51 | 1 | 2 | Valid characters in a Java class name | What characters are valid in a Java class name? What other rules govern Java class names (for instance, Java class names cannot begin with a number)? | java | class | name | naming-guidelines | invalid-characters | null | open | Valid characters in a Java class name
===
What characters are valid in a Java class name? What other rules govern Java class names (for instance, Java class names cannot begin with a number)? | 0 |
65,491 | 09/15/2008 18:37:09 | 9,021 | 09/15/2008 17:31:26 | 11 | 1 | What is the best method to reduce the size of my Javascript and CSS files? | When working with large and/or many Javascript and CSS files, what's the best way to reduce the file sizes? | javascript | css | null | null | null | null | open | What is the best method to reduce the size of my Javascript and CSS files?
===
When working with large and/or many Javascript and CSS files, what's the best way to reduce the file sizes? | 0 |
65,494 | 09/15/2008 18:37:19 | 8,567 | 09/15/2008 16:21:11 | 1 | 1 | Using OpenID for both .NET/Windows and PHP/Linux/Apache web sites | Is it possible to use OpenID for *both* .NET web sites and PHP websites (Apache/Linux)? I have a manager that wants single sign-on for access to any/all web sites, regardless of which web server hosts a web site. I create .NET web apps and the PHP web sites/apps are done by another programmer. How would I go about using OpenID for a .NET web app? What about for the PHP programmer? | asp.net | php | openid | null | null | null | open | Using OpenID for both .NET/Windows and PHP/Linux/Apache web sites
===
Is it possible to use OpenID for *both* .NET web sites and PHP websites (Apache/Linux)? I have a manager that wants single sign-on for access to any/all web sites, regardless of which web server hosts a web site. I create .NET web apps and the PHP web sites/apps are done by another programmer. How would I go about using OpenID for a .NET web app? What about for the PHP programmer? | 0 |
65,512 | 09/15/2008 18:38:49 | 392 | 08/05/2008 12:29:07 | 1,131 | 56 | Which is faster/best? SELECT * or SELECT column1, colum2, column3, etc. | I've heard that `SELECT *` is generally bad practice to use when writing SQL commands because it is more efficient to `SELECT` columns you specifically need.
If I need to `SELECT` every column in a table, should I use `SELECT *` or `SELECT column1, colum2, column3, etc.`
Does the efficiency really matter in this case? I'd think `SELECT *` would be more optimal internally if you really need all of the data, but I say this with no real understanding of databases.
I'm curious to know what the best practice is in this case. | sql-server | sql | database | mssql | null | null | open | Which is faster/best? SELECT * or SELECT column1, colum2, column3, etc.
===
I've heard that `SELECT *` is generally bad practice to use when writing SQL commands because it is more efficient to `SELECT` columns you specifically need.
If I need to `SELECT` every column in a table, should I use `SELECT *` or `SELECT column1, colum2, column3, etc.`
Does the efficiency really matter in this case? I'd think `SELECT *` would be more optimal internally if you really need all of the data, but I say this with no real understanding of databases.
I'm curious to know what the best practice is in this case. | 0 |
65,515 | 09/15/2008 18:39:29 | 2,084 | 08/20/2008 10:39:15 | 1,041 | 50 | How to find broken links on a website | What techniques or tools are recommended for finding broken links on a website?
I have access to the logfiles, so could conceivably parse these looking for 404 errors, but would like something automated which will follow (or attempt to follow) all links on a site.
Thanks. | html | null | null | null | null | null | open | How to find broken links on a website
===
What techniques or tools are recommended for finding broken links on a website?
I have access to the logfiles, so could conceivably parse these looking for 404 errors, but would like something automated which will follow (or attempt to follow) all links on a site.
Thanks. | 0 |
65,524 | 09/15/2008 18:40:42 | 8,264 | 09/15/2008 15:34:08 | 1 | 0 | Unique ID c++ | What is the best way to generate a Unique ID from two (or more) short ints in C++? I am trying to uniquely identify vertices in a graph. The vertices contain two to four short ints as data, and ideally the ID would be some kind of a hash of them. Prefer portability and uniqueness over speed or ease. | c++ | hash | null | null | null | null | open | Unique ID c++
===
What is the best way to generate a Unique ID from two (or more) short ints in C++? I am trying to uniquely identify vertices in a graph. The vertices contain two to four short ints as data, and ideally the ID would be some kind of a hash of them. Prefer portability and uniqueness over speed or ease. | 0 |
65,530 | 09/15/2008 18:40:57 | 6,580 | 09/15/2008 12:17:58 | 11 | 2 | In Tomcat how can my servlet determine what connectors are configured? | The server.xml can have many connectors, typically port only 8080, but for my application a user might configure their servlet.xml to also have other ports open (say 8081-8088). I would like for my servlet to figure out what socket connections ports will be vaild (During the Servlet.init() tomcat has not yet started the connectors.) I could find and parse the server.xml myself (grotty), I could look at the thread names (after tomcat starts up - but how would I know when a good time to do that is? ) But I would prefer a solution that can execute in my servlet.init() and determine what will be the valid port range. Any ideas? A solution can be tightly bound to Tomcat for my application that's ok. | tomcat | null | null | null | null | null | open | In Tomcat how can my servlet determine what connectors are configured?
===
The server.xml can have many connectors, typically port only 8080, but for my application a user might configure their servlet.xml to also have other ports open (say 8081-8088). I would like for my servlet to figure out what socket connections ports will be vaild (During the Servlet.init() tomcat has not yet started the connectors.) I could find and parse the server.xml myself (grotty), I could look at the thread names (after tomcat starts up - but how would I know when a good time to do that is? ) But I would prefer a solution that can execute in my servlet.init() and determine what will be the valid port range. Any ideas? A solution can be tightly bound to Tomcat for my application that's ok. | 0 |
65,536 | 09/15/2008 18:41:36 | 9,328 | 09/15/2008 18:26:05 | 1 | 0 | How to put text in the upper right, or lower right corner of a "box" using css | See the following. How would I get the "here" and "and here" to be on the right, on the same lines as the lorem ipsums?
`
Lorem Ipsum etc........here
blah.......................
blah blah..................
blah.......................
lorem ipsums.......and here
`
| css | layout | null | null | null | null | open | How to put text in the upper right, or lower right corner of a "box" using css
===
See the following. How would I get the "here" and "and here" to be on the right, on the same lines as the lorem ipsums?
`
Lorem Ipsum etc........here
blah.......................
blah blah..................
blah.......................
lorem ipsums.......and here
`
| 0 |
65,566 | 09/15/2008 18:44:22 | 1,923 | 08/19/2008 14:18:40 | 58 | 3 | Handling empty values with ADO.NET and AddWithValue() | I have a control that, upon postback, saves form results back to the database. It populates the values to be saved by iterating through the querystring. So, for the following SQL statement (vastly simplified for the sake of discussion)...
UPDATE MyTable
SET MyVal1 = @val1,
MyVal2 = @val2
WHERE @id = @id
...it would cycle through the querystring keys thusly:
For Each Key As String In Request.QueryString.Keys
Command.Parameters.AddWithValue("@" & Key, Request.QueryString(Key))
Next
HOWEVER, I'm now running into a situation where, under certain circumstances, some of these variables may not be present in the querystring. If I don't pass along val2 in the querystring, I get an error: `System.Data.SqlClient.SqlException: Must declare the scalar value "@val2"`.
Attempts to detect the missing value in the SQL statement...
IF @val2 IS NOT NULL
UPDATE MyTable
SET MyVal1 = @val1,
MyVal2 = @val2
WHERE @id = @id
... have failed.
What's the best way to attack this? Must I parse the SQL block with RegEx, scanning for variable names not present in the querystring? Or, is there a more elegant way to approach? | sql | ado.net | vb.net | null | null | null | open | Handling empty values with ADO.NET and AddWithValue()
===
I have a control that, upon postback, saves form results back to the database. It populates the values to be saved by iterating through the querystring. So, for the following SQL statement (vastly simplified for the sake of discussion)...
UPDATE MyTable
SET MyVal1 = @val1,
MyVal2 = @val2
WHERE @id = @id
...it would cycle through the querystring keys thusly:
For Each Key As String In Request.QueryString.Keys
Command.Parameters.AddWithValue("@" & Key, Request.QueryString(Key))
Next
HOWEVER, I'm now running into a situation where, under certain circumstances, some of these variables may not be present in the querystring. If I don't pass along val2 in the querystring, I get an error: `System.Data.SqlClient.SqlException: Must declare the scalar value "@val2"`.
Attempts to detect the missing value in the SQL statement...
IF @val2 IS NOT NULL
UPDATE MyTable
SET MyVal1 = @val1,
MyVal2 = @val2
WHERE @id = @id
... have failed.
What's the best way to attack this? Must I parse the SQL block with RegEx, scanning for variable names not present in the querystring? Or, is there a more elegant way to approach? | 0 |
65,576 | 09/15/2008 18:45:23 | 9,364 | 09/15/2008 18:33:05 | 1 | 0 | How to get rid of Javascript Runtime Errors when running PDT + XDebug in Eclipse? | I am currently developing a Drupal webpage using PDT. When running without XDebug, the site works fine.
When I enable XDebug, the site works fine but opens up tons of Javascript errors that I need to click through.
Example:
A Runtime Error has occurred.
Do you wish to Debug?
Line: 1
Error: Syntax error
--
It seems like XDebug is unable to access some of the javascript library files inside Drupal. Is there a way to allow XDebug to see them? | eclipse | drupal | pdt | xdebug | null | null | open | How to get rid of Javascript Runtime Errors when running PDT + XDebug in Eclipse?
===
I am currently developing a Drupal webpage using PDT. When running without XDebug, the site works fine.
When I enable XDebug, the site works fine but opens up tons of Javascript errors that I need to click through.
Example:
A Runtime Error has occurred.
Do you wish to Debug?
Line: 1
Error: Syntax error
--
It seems like XDebug is unable to access some of the javascript library files inside Drupal. Is there a way to allow XDebug to see them? | 0 |
65,585 | 09/15/2008 18:46:07 | 9,328 | 09/15/2008 18:26:05 | 1 | 0 | Is there a tool for finding unreferenced functions (dead, obsolete code) in a C# app? | I want to delete foo() if foo() isn't called from anywhere. | c# | .net | code-analysis | null | null | null | open | Is there a tool for finding unreferenced functions (dead, obsolete code) in a C# app?
===
I want to delete foo() if foo() isn't called from anywhere. | 0 |
65,607 | 09/15/2008 18:47:57 | 1,256 | 08/13/2008 23:17:37 | 90 | 8 | Writing a ++ macro in Common Lisp | I've been attempting to write a Lisp macro that would perfom the equivalent of ++ in other programming languages for semantic reasons. I've attempted to do this in several different ways, but none of them seem to work, and all are accepted by the interpreter, so I don't know if I have the correct syntax or not. My idea of how this would be defined would be
(defmacro ++ (variable)
(incf variable))
but this gives me an error when trying to use it. What would make it work? | lisp | macros | null | null | null | null | open | Writing a ++ macro in Common Lisp
===
I've been attempting to write a Lisp macro that would perfom the equivalent of ++ in other programming languages for semantic reasons. I've attempted to do this in several different ways, but none of them seem to work, and all are accepted by the interpreter, so I don't know if I have the correct syntax or not. My idea of how this would be defined would be
(defmacro ++ (variable)
(incf variable))
but this gives me an error when trying to use it. What would make it work? | 0 |
65,627 | 09/15/2008 18:50:07 | 9,056 | 09/15/2008 17:35:45 | 1 | 1 | Can you return a String from a summaryObjectFunction | In a Flex AdvancedDatGrid, we're doing a lot of grouping. Most of the columns are the same for the parents and for the children, so I'd like to show the first value of the group as the summary rather than the MAX, MIN or AVG
This code works on numerical but not textual values (without the commented line you get NaN's):
private function firstValue(itr:IViewCursor,field:String, str:String=null):Object
{
//if(isNaN(itr.current[field])) return 0 //Theory: Only works on Numeric Values?
return itr.current[field]
}
The XML:
(mx:GroupingField name="Offer")
(mx:summaries)
(mx:SummaryRow summaryPlacement="group")
(mx:fields)
(mx:SummaryField dataField="OfferDescription" label="OfferDescription" summaryFunction="firstValue"/)
(mx:SummaryField dataField="OfferID" label="OfferID" summaryFunction="firstValue"/)
(/mx:fields)
(/mx:SummaryRow)
(/mx:summaries)
(/mx:GroupingField)
OfferID's work Correctly, OfferDescriptions don't
| flex | advanceddatgrid | null | null | null | null | open | Can you return a String from a summaryObjectFunction
===
In a Flex AdvancedDatGrid, we're doing a lot of grouping. Most of the columns are the same for the parents and for the children, so I'd like to show the first value of the group as the summary rather than the MAX, MIN or AVG
This code works on numerical but not textual values (without the commented line you get NaN's):
private function firstValue(itr:IViewCursor,field:String, str:String=null):Object
{
//if(isNaN(itr.current[field])) return 0 //Theory: Only works on Numeric Values?
return itr.current[field]
}
The XML:
(mx:GroupingField name="Offer")
(mx:summaries)
(mx:SummaryRow summaryPlacement="group")
(mx:fields)
(mx:SummaryField dataField="OfferDescription" label="OfferDescription" summaryFunction="firstValue"/)
(mx:SummaryField dataField="OfferID" label="OfferID" summaryFunction="firstValue"/)
(/mx:fields)
(/mx:SummaryRow)
(/mx:summaries)
(/mx:GroupingField)
OfferID's work Correctly, OfferDescriptions don't
| 0 |
65,651 | 09/15/2008 18:53:24 | 8,770 | 09/15/2008 16:50:29 | 1 | 0 | Directory layout for PHPUnit tests? | I'm a longtime Java programmer working on a PHP project, and I'm trying to get PHPUnit up and working. When unit testing in Java, it's common to put test case classes and regular classes into separate directories, like this -
/src
MyClass.java
/test
MyClassTest.java
and so on.
When unit testing with PHPUnit, is it common to follow the same directory structure, or is there a better way to lay out test classes? So far, the only way I can get the "include("MyClass.php")" statement to work correctly is to include the test class in the same directory, but I don't want to include the test classes when I push to production. | php | unit-testing | phpunit | null | null | null | open | Directory layout for PHPUnit tests?
===
I'm a longtime Java programmer working on a PHP project, and I'm trying to get PHPUnit up and working. When unit testing in Java, it's common to put test case classes and regular classes into separate directories, like this -
/src
MyClass.java
/test
MyClassTest.java
and so on.
When unit testing with PHPUnit, is it common to follow the same directory structure, or is there a better way to lay out test classes? So far, the only way I can get the "include("MyClass.php")" statement to work correctly is to include the test class in the same directory, but I don't want to include the test classes when I push to production. | 0 |
65,662 | 09/15/2008 18:55:13 | 7,290 | 09/15/2008 13:28:20 | 11 | 3 | Output parameters not readable when used with a DataReader | When using a DataReader object to access data from a database (such as SQL Server) through stored procedures, any output parameter added to the Command object before executing are not being filled after reading. I can read row data just fine, as well as all input parameters, but not output ones.
*[This question is actually just for anyone's future reference and help. It is a problem that's bitten us in the past and I thought I'd share it and the solution to anyone else that runs into this quirk.]* | .net | stored-procedures | ado.net | parameters | datareader | null | open | Output parameters not readable when used with a DataReader
===
When using a DataReader object to access data from a database (such as SQL Server) through stored procedures, any output parameter added to the Command object before executing are not being filled after reading. I can read row data just fine, as well as all input parameters, but not output ones.
*[This question is actually just for anyone's future reference and help. It is a problem that's bitten us in the past and I thought I'd share it and the solution to anyone else that runs into this quirk.]* | 0 |
65,664 | 09/15/2008 18:55:22 | 2,695 | 08/24/2008 15:29:59 | 761 | 54 | Free Project management software | The company I work for has some project management issues about project management. Is not that it doesn't work but that I get the impression it could work much better.
I'm looking for a good project management tool(web based).
I want the company to perecive as free to improve possibilities for addoption (and I'm well aware of [this][1] other question in stackoverflow) so, any experience of free pm software?
I've been playing with [dotproject][2] which I believe is excelent but I'd like to hear some other approaches (if any). I'm specially interested in opinions of people who can tell me why their choice is better than dotproject as that's the project I'm familiar with.
[1]: http://stackoverflow.com/questions/60240/project-trackingmanagement-tool
[2]: http://dotproject.net/ | project-management | free | null | null | null | 09/23/2011 12:46:36 | off topic | Free Project management software
===
The company I work for has some project management issues about project management. Is not that it doesn't work but that I get the impression it could work much better.
I'm looking for a good project management tool(web based).
I want the company to perecive as free to improve possibilities for addoption (and I'm well aware of [this][1] other question in stackoverflow) so, any experience of free pm software?
I've been playing with [dotproject][2] which I believe is excelent but I'd like to hear some other approaches (if any). I'm specially interested in opinions of people who can tell me why their choice is better than dotproject as that's the project I'm familiar with.
[1]: http://stackoverflow.com/questions/60240/project-trackingmanagement-tool
[2]: http://dotproject.net/ | 2 |
65,673 | 09/15/2008 18:56:59 | 3,389 | 08/28/2008 11:59:00 | 13 | 1 | Comet implementation for ASP.NET? | I've been looking at ways to implement gmail-like messaging inside a browser, and arrived at the [Comet][1] concept. However, I haven't been able to find a good .NET implementation that allows me to do this within IIS (our application is written in ASP.NET 2.0).
The solutions I found (or could think of, for that matter) require leaving a running thread per user - so that it could return a response to him once he gets a message. This doesn't scale at all, of course.
So my question is - do you know of an ASP.NET implementation for Comet that works in a different way? Is that even possible with IIS?
[1]: http://en.wikipedia.org/wiki/Comet_(programming) | asp.net | iis | comet | null | null | null | open | Comet implementation for ASP.NET?
===
I've been looking at ways to implement gmail-like messaging inside a browser, and arrived at the [Comet][1] concept. However, I haven't been able to find a good .NET implementation that allows me to do this within IIS (our application is written in ASP.NET 2.0).
The solutions I found (or could think of, for that matter) require leaving a running thread per user - so that it could return a response to him once he gets a message. This doesn't scale at all, of course.
So my question is - do you know of an ASP.NET implementation for Comet that works in a different way? Is that even possible with IIS?
[1]: http://en.wikipedia.org/wiki/Comet_(programming) | 0 |
65,687 | 09/15/2008 18:58:07 | 9,476 | 09/15/2008 18:56:41 | 1 | 0 | Get path geometry from FlowDocument object | Can someone tell me how to get path geometry from a WPF FlowDocument object? Please not that I do **not** want to use `FormattedText`. Thanks. | c# | wpf | null | null | null | null | open | Get path geometry from FlowDocument object
===
Can someone tell me how to get path geometry from a WPF FlowDocument object? Please not that I do **not** want to use `FormattedText`. Thanks. | 0 |
65,694 | 09/15/2008 18:58:45 | 7,911 | 09/15/2008 14:40:34 | 11 | 3 | So which is faster truly? Flash, Silverlight or Animated gifs? | I am trying to develop a multimedia site and I am leaning heavily toward Silverlight however Flash is always a main player. I am a Speed and performance type developer. Which Technology will load fastest in the given scenarios? 56k, DSL and Cable? | flash | silverlight | animated | gifs | null | null | open | So which is faster truly? Flash, Silverlight or Animated gifs?
===
I am trying to develop a multimedia site and I am leaning heavily toward Silverlight however Flash is always a main player. I am a Speed and performance type developer. Which Technology will load fastest in the given scenarios? 56k, DSL and Cable? | 0 |
65,704 | 09/15/2008 19:00:06 | 4,903 | 09/06/2008 14:16:54 | 346 | 27 | How would I go about creating a custom search index much like Lucene? | I implemented a Lucene search solution awhile back, and it got me interested in compressed file indexes that are searchable. At the time I could not find any good information on how exactly you would go about creating a custom search index, so I wonder if anyone can point me in the right direction? My primary interest is in file formatting, compression, and something similar to the concept of Lucene's documents and fields. It should not necessarily be language specific, but if you can point me to online resources that have language specific implementations with full descriptions of the process then that is okay, too. | search | indexing | multilingual | null | null | null | open | How would I go about creating a custom search index much like Lucene?
===
I implemented a Lucene search solution awhile back, and it got me interested in compressed file indexes that are searchable. At the time I could not find any good information on how exactly you would go about creating a custom search index, so I wonder if anyone can point me in the right direction? My primary interest is in file formatting, compression, and something similar to the concept of Lucene's documents and fields. It should not necessarily be language specific, but if you can point me to online resources that have language specific implementations with full descriptions of the process then that is okay, too. | 0 |
65,718 | 09/15/2008 19:01:49 | 191,808 | 09/15/2008 19:01:49 | 1 | 0 | What do the numbers in a version typically represent (i.e. v1.9.0.1)? | Maybe this is a silly question, but I've always assumed each number delineated by a period represented a single component of the software. If that's true, do they ever represent something different? I'd like to start assigning versions to the different builds of my software, but I'm not really sure how it should be structured. My software has five distinct components. Thanks in advance! | versions | null | null | null | null | null | open | What do the numbers in a version typically represent (i.e. v1.9.0.1)?
===
Maybe this is a silly question, but I've always assumed each number delineated by a period represented a single component of the software. If that's true, do they ever represent something different? I'd like to start assigning versions to the different builds of my software, but I'm not really sure how it should be structured. My software has five distinct components. Thanks in advance! | 0 |
65,720 | 09/15/2008 19:02:23 | 9,489 | 09/15/2008 18:58:18 | 1 | 0 | Can you recommend a good c# windows progarmming book (for Java developer) | I'm looking for a good C# programming book that discusses Windows programming - UI, forms, office plugins etc - for developers (lots of Java experience).
Thanks for any help! | c# | books | windows | null | null | null | open | Can you recommend a good c# windows progarmming book (for Java developer)
===
I'm looking for a good C# programming book that discusses Windows programming - UI, forms, office plugins etc - for developers (lots of Java experience).
Thanks for any help! | 0 |
65,724 | 09/15/2008 19:02:36 | 8,844 | 09/15/2008 16:59:59 | 1 | 1 | Uninitialized memory blocks in VC++ | As everyone* knows, the Visual C++ runtime marks uninitialized or just freed memory blocks with special non-zero markers. Is there any way to disable this behavior entirely without manually setting all uninitialized memory to zeros? It's causing havoc with my valid not null checks, since 0xFEEEFEEE != 0. | c++ | memory | microsoft | allocation | null | null | open | Uninitialized memory blocks in VC++
===
As everyone* knows, the Visual C++ runtime marks uninitialized or just freed memory blocks with special non-zero markers. Is there any way to disable this behavior entirely without manually setting all uninitialized memory to zeros? It's causing havoc with my valid not null checks, since 0xFEEEFEEE != 0. | 0 |
65,734 | 09/15/2008 19:03:23 | 9,328 | 09/15/2008 18:26:05 | 1 | 0 | How do use fckEditor safely, without risk of cross site scripting? | This link describes an exploit into my app using fckEditor:
http://knitinr.blogspot.com/2008/07/script-exploit-via-fckeditor.html
How do I make my app secure while still using fckEditor? Is it an fckEditor configuration? Is it some processing I'm supposed to do server-side after I grab the text from fckEditor? | fckeditor | xss | null | null | null | null | open | How do use fckEditor safely, without risk of cross site scripting?
===
This link describes an exploit into my app using fckEditor:
http://knitinr.blogspot.com/2008/07/script-exploit-via-fckeditor.html
How do I make my app secure while still using fckEditor? Is it an fckEditor configuration? Is it some processing I'm supposed to do server-side after I grab the text from fckEditor? | 0 |
65,737 | 09/15/2008 19:03:51 | 3,233 | 08/27/2008 13:54:44 | 178 | 11 | what is the best wiki for small project or home site? | There are lots of different wiki implementations. For a lightweight site you might not want a heavyweight implementation (e.g. like Tiki). What are good wiki implementations and **why**? By lightweight site I mean small number of users and relatively low bandwidth.
Don't just list links, give reasons why they are good, e.g. easy install, markup, maintenance, support, implementation language, requirements etc.
| wiki | home-server | null | null | null | null | open | what is the best wiki for small project or home site?
===
There are lots of different wiki implementations. For a lightweight site you might not want a heavyweight implementation (e.g. like Tiki). What are good wiki implementations and **why**? By lightweight site I mean small number of users and relatively low bandwidth.
Don't just list links, give reasons why they are good, e.g. easy install, markup, maintenance, support, implementation language, requirements etc.
| 0 |
65,749 | 09/15/2008 19:04:37 | 9,440 | 09/15/2008 18:48:45 | 1 | 0 | What is the deployment rate of the .NET framework? | I've been looking for this information for my commercial desktop product, with no avail.
Specifically, what I'm look for, is deployment statistics of the .NET framework for end-users (both granny "I'm just browsing the internet" XP, and high-end users, if possible), and in the commercial/business sector. | c# | .net | deployment | statistics | null | null | open | What is the deployment rate of the .NET framework?
===
I've been looking for this information for my commercial desktop product, with no avail.
Specifically, what I'm look for, is deployment statistics of the .NET framework for end-users (both granny "I'm just browsing the internet" XP, and high-end users, if possible), and in the commercial/business sector. | 0 |
65,800 | 09/15/2008 19:10:13 | 1,115,144 | 09/15/2008 16:09:15 | 6 | 0 | What's the best HTML WYSISYG editor available to web developers and why? | There are many different flavored HTML WYSIWYG editors from javascript to ASP.Net web controls, but all too often the features are the same. Does anyone have a favorite HTML editor they like to use in projects? Why? | asp.net | javascript | html | editor | wysisyg | null | open | What's the best HTML WYSISYG editor available to web developers and why?
===
There are many different flavored HTML WYSIWYG editors from javascript to ASP.Net web controls, but all too often the features are the same. Does anyone have a favorite HTML editor they like to use in projects? Why? | 0 |
65,809 | 09/15/2008 19:11:11 | 7,548 | 09/15/2008 13:57:08 | 128 | 17 | How stable are Cisco IOS OIDs for querying data with SNMP across different model devices? | I'm querying a bunch of information from cisco switches using SNMP. For instance, I'm pulling information on neighbors detected using CDP by doing an snmpwalk on .1.3.6.1.4.1.9.9.23
Can I use this OID across different cisco models? What pitfalls should I be aware of? To me, I'm a little uneasy about using numeric OIDs - it seems like I should be using a MIB database or something and using the named OIDs, in order to gain cross-device compatibility, but perhaps I'm just imagining the need for that. | snmp | ios | oid | null | null | null | open | How stable are Cisco IOS OIDs for querying data with SNMP across different model devices?
===
I'm querying a bunch of information from cisco switches using SNMP. For instance, I'm pulling information on neighbors detected using CDP by doing an snmpwalk on .1.3.6.1.4.1.9.9.23
Can I use this OID across different cisco models? What pitfalls should I be aware of? To me, I'm a little uneasy about using numeric OIDs - it seems like I should be using a MIB database or something and using the named OIDs, in order to gain cross-device compatibility, but perhaps I'm just imagining the need for that. | 0 |
65,820 | 09/15/2008 19:12:00 | 7,049 | 09/15/2008 13:04:31 | 11 | 1 | Unit Testing C Code | I worked on an embedded system this summer written in straight C. It was an existing project that the company I work for had taken over. I have become quite accustomed to writing unit tests in Java using JUnit but was at a loss as to the best way to write unit tests for existing code (which needed refactoring) as well as new code added to the system.
Are there any projects out there that make unit testing plain C code as easy as unit testing Java code with JUnit? Any insight that would apply specifically to embedded development (cross-compiling to arm-linux platform) would be greatly appreciated. | c | unit-testing | testing | embedded | null | null | open | Unit Testing C Code
===
I worked on an embedded system this summer written in straight C. It was an existing project that the company I work for had taken over. I have become quite accustomed to writing unit tests in Java using JUnit but was at a loss as to the best way to write unit tests for existing code (which needed refactoring) as well as new code added to the system.
Are there any projects out there that make unit testing plain C code as easy as unit testing Java code with JUnit? Any insight that would apply specifically to embedded development (cross-compiling to arm-linux platform) would be greatly appreciated. | 0 |
65,856 | 09/15/2008 19:14:56 | 6,637 | 09/15/2008 12:24:17 | 91 | 4 | How can I perform HTTP PUT uploads to a VMware ESX Server in PowerShell? | VMware ESX, ESXi, and VirtualCenter are supposed to be able to support HTTP PUT uploads since version 3.5. I know how to do downloads, that's easy. I've never done PUT before.
Background information on the topic is here: http://communities.vmware.com/thread/117504 | http | vmware | powershell | esx | null | null | open | How can I perform HTTP PUT uploads to a VMware ESX Server in PowerShell?
===
VMware ESX, ESXi, and VirtualCenter are supposed to be able to support HTTP PUT uploads since version 3.5. I know how to do downloads, that's easy. I've never done PUT before.
Background information on the topic is here: http://communities.vmware.com/thread/117504 | 0 |
65,865 | 09/15/2008 19:16:07 | 4,234 | 09/02/2008 13:28:31 | 1 | 1 | "Can't locate Foo.pm in @INC" -- How to install a missing perl module | Is there an easier way than downloading, untarring, making, etc? | perl | null | null | null | null | null | open | "Can't locate Foo.pm in @INC" -- How to install a missing perl module
===
Is there an easier way than downloading, untarring, making, etc? | 0 |
65,879 | 09/15/2008 19:17:30 | 4,916 | 09/06/2008 15:33:03 | 43 | 5 | Should I use an initialization vector (IV) along with my encryption? | Is it recommended that I use an [initialization vector](http://en.wikipedia.org/wiki/Initialization_vector) to encrypt/decrypt my data? Will it make things more secure? Is it one of those things that need to be evaluated on a case by case basis?
To put this into actual context, the Win32 Cryptography function, [CryptSetKeyParam](http://msdn.microsoft.com/en-us/library/aa380272\(VS.85\).aspx) allows for the setting of an initialization vector on a key prior to encrypting/decrypting. Other API's also allow for this.
What is generally recommended and why? | encryption | cryptography | null | null | null | null | open | Should I use an initialization vector (IV) along with my encryption?
===
Is it recommended that I use an [initialization vector](http://en.wikipedia.org/wiki/Initialization_vector) to encrypt/decrypt my data? Will it make things more secure? Is it one of those things that need to be evaluated on a case by case basis?
To put this into actual context, the Win32 Cryptography function, [CryptSetKeyParam](http://msdn.microsoft.com/en-us/library/aa380272\(VS.85\).aspx) allows for the setting of an initialization vector on a key prior to encrypting/decrypting. Other API's also allow for this.
What is generally recommended and why? | 0 |
65,889 | 09/15/2008 19:18:26 | 9,591 | 09/15/2008 19:16:56 | 1 | 0 | Detecting COMCTL32 version in .NET | How do I determine which version of comctl32.dll is being used by a C# .NET application? The answers I've seen to this question usually involve getting version info from the physical file in Windows\System, but that isn't necessarily the version that's actually in use due to side-by-side considerations. | c# | .net | comctl32 | null | null | null | open | Detecting COMCTL32 version in .NET
===
How do I determine which version of comctl32.dll is being used by a C# .NET application? The answers I've seen to this question usually involve getting version info from the physical file in Windows\System, but that isn't necessarily the version that's actually in use due to side-by-side considerations. | 0 |
65,910 | 09/15/2008 19:21:17 | 9,611 | 09/15/2008 19:21:17 | 1 | 0 | Debugging VBO Vertex buffers crashes | I'm using the VBO extension for storing Vertex, normal and color buffers (glBindBufferARB)
For some reason when changing buffers or doing some operation the application crashes with an access violation. When attaching The debugger I see that the crash is in some thread that is not my main thread which performs the opengl call with the execution in some dll which is related to the nvidia graphics driver.
What probably happened is that I gave some buffer call a bad buffer or with a wrong size. So my question is, how do I debug this situation? The crash seem to happen some time after the actual call and in a different thread. | debugging | opengl | vertex-buffer | null | null | null | open | Debugging VBO Vertex buffers crashes
===
I'm using the VBO extension for storing Vertex, normal and color buffers (glBindBufferARB)
For some reason when changing buffers or doing some operation the application crashes with an access violation. When attaching The debugger I see that the crash is in some thread that is not my main thread which performs the opengl call with the execution in some dll which is related to the nvidia graphics driver.
What probably happened is that I gave some buffer call a bad buffer or with a wrong size. So my question is, how do I debug this situation? The crash seem to happen some time after the actual call and in a different thread. | 0 |
65,925 | 09/15/2008 19:22:50 | 9,504 | 09/15/2008 18:59:51 | 1 | 0 | Using network services when disconnected in Mac OS X | From time to time am I working in a completely disconnected environment with a Macbook Pro. For testing purposes I need to run a local DNS server in a VMWare session. I've configured the lookup system to use the DNS server (/etc/resolve.conf), and commands like "dig" and "nslookup" work. For example, my DNS server is configured to resolve www.example.com to 127.0.0.1, this is the output of "dig www.example.com":
; <<>> DiG 9.3.5-P1 <<>> www.example.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64859
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.example.com. IN A
;; ANSWER SECTION:
www.example.com. 86400 IN A 127.0.0.1
;; Query time: 2 msec
;; SERVER: 172.16.35.131#53(172.16.35.131)
;; WHEN: Mon Sep 15 21:13:15 2008
;; MSG SIZE rcvd: 49
Unfortunately, if I try to ping or setup a connection, the DNS name is not resolved. This is the output of "ping www.example.com":
ping: cannot resolve www.example.com: Unknown host
I've tried several options in the network panel, but it seems that if the wireless or the buildin ethernet interface is inactive, basic network functions don't seem to work.
In Linux (for example Ubuntu), it is possible to turn off the wireless adapter, without turning of the network capabilities. So in Linux it seems that I can work completely disconnected.
Any thoughts? | osx | networking | null | null | null | null | open | Using network services when disconnected in Mac OS X
===
From time to time am I working in a completely disconnected environment with a Macbook Pro. For testing purposes I need to run a local DNS server in a VMWare session. I've configured the lookup system to use the DNS server (/etc/resolve.conf), and commands like "dig" and "nslookup" work. For example, my DNS server is configured to resolve www.example.com to 127.0.0.1, this is the output of "dig www.example.com":
; <<>> DiG 9.3.5-P1 <<>> www.example.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64859
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.example.com. IN A
;; ANSWER SECTION:
www.example.com. 86400 IN A 127.0.0.1
;; Query time: 2 msec
;; SERVER: 172.16.35.131#53(172.16.35.131)
;; WHEN: Mon Sep 15 21:13:15 2008
;; MSG SIZE rcvd: 49
Unfortunately, if I try to ping or setup a connection, the DNS name is not resolved. This is the output of "ping www.example.com":
ping: cannot resolve www.example.com: Unknown host
I've tried several options in the network panel, but it seems that if the wireless or the buildin ethernet interface is inactive, basic network functions don't seem to work.
In Linux (for example Ubuntu), it is possible to turn off the wireless adapter, without turning of the network capabilities. So in Linux it seems that I can work completely disconnected.
Any thoughts? | 0 |
65,926 | 09/15/2008 19:23:04 | 9,547 | 09/15/2008 19:08:41 | 1 | 0 | Is it possible to pass a parameter to XSLT through a URL when using a browser to transform XML? | When using a browser to transform XML (Google Chrome or IE7) is it possible to pass a parameter to the XSLT stylesheet through the URL?
example:
**data.xml**
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="sample.xsl"?>
<root>
<document type="resume">
<author>John Doe</author>
</document>
<document type="novella">
<author>Jane Doe</author>
</document>
</root>
**sample.xsl**
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html" />
<xsl:template match="/">
<xsl:param name="doctype" />
<html>
<head>
<title>List of <xsl:value-of select="$doctype" /></title>
</head>
<body>
<xsl:for-each select="//document[@type = $doctype]">
<p><xsl:value-of select="author" /></p>
</xsl:for-each>
</body>
</html>
</<xsl:stylesheet> | xml | browser | xslt | transform | param | null | open | Is it possible to pass a parameter to XSLT through a URL when using a browser to transform XML?
===
When using a browser to transform XML (Google Chrome or IE7) is it possible to pass a parameter to the XSLT stylesheet through the URL?
example:
**data.xml**
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="sample.xsl"?>
<root>
<document type="resume">
<author>John Doe</author>
</document>
<document type="novella">
<author>Jane Doe</author>
</document>
</root>
**sample.xsl**
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html" />
<xsl:template match="/">
<xsl:param name="doctype" />
<html>
<head>
<title>List of <xsl:value-of select="$doctype" /></title>
</head>
<body>
<xsl:for-each select="//document[@type = $doctype]">
<p><xsl:value-of select="author" /></p>
</xsl:for-each>
</body>
</html>
</<xsl:stylesheet> | 0 |
65,936 | 09/15/2008 19:25:16 | 7,111 | 09/15/2008 13:11:28 | 18 | 2 | What's the best library for reading Outlook .msg files in Java ? | I would like to read the text and binary attachments in a saved Outlook message (.msg file) from a Java application, without resorting to native code (JNI, Java Native Interface).
[Apache POI-HSMF][1] seems to be in the right direction, but it's in very early stages of development...
[1]: http://poi.apache.org/hsmf/index.html | java | outlook | msg | null | null | null | open | What's the best library for reading Outlook .msg files in Java ?
===
I would like to read the text and binary attachments in a saved Outlook message (.msg file) from a Java application, without resorting to native code (JNI, Java Native Interface).
[Apache POI-HSMF][1] seems to be in the right direction, but it's in very early stages of development...
[1]: http://poi.apache.org/hsmf/index.html | 0 |
65,956 | 09/15/2008 19:27:22 | 4,298 | 09/02/2008 18:17:28 | 39 | 1 | When would I use Server.TransferURL over PostBackURL? | Or vice versa. | asp.net | null | null | null | null | null | open | When would I use Server.TransferURL over PostBackURL?
===
Or vice versa. | 0 |
65,969 | 09/15/2008 19:29:37 | 9,587 | 09/15/2008 19:16:34 | 1 | 0 | What are the C# documentation tags? | In C# documentation tags allow you to produce output similar to MSDN. What are a list of allowable tags for use inside the /// (triple slash) comment area above classes, methods, and properties? | c# | xml | documentation | null | null | null | open | What are the C# documentation tags?
===
In C# documentation tags allow you to produce output similar to MSDN. What are a list of allowable tags for use inside the /// (triple slash) comment area above classes, methods, and properties? | 0 |
65,970 | 09/15/2008 19:29:37 | 9,557 | 09/15/2008 19:10:22 | 1 | 0 | What is the best way to randomize an array's order in PHP. | I was asked this question in a job interview. The interviewer and I disagreed on what the correct answer was. I'm wondering if anyone has any data on this. | php | null | null | null | null | null | open | What is the best way to randomize an array's order in PHP.
===
I was asked this question in a job interview. The interviewer and I disagreed on what the correct answer was. I'm wondering if anyone has any data on this. | 0 |
65,971 | 09/15/2008 19:29:40 | 9,439 | 09/15/2008 18:48:38 | 1 | 1 | What is the best resource you know to learn Dojo? | The Dojo toolkit looks like it is very useful, but the docs feel very incomplete and buggy. Can anyone suggest a book or other resource to help a javascript novice really learn to use Dojo? | javascript | dojo | javascript-toolkit | null | null | null | open | What is the best resource you know to learn Dojo?
===
The Dojo toolkit looks like it is very useful, but the docs feel very incomplete and buggy. Can anyone suggest a book or other resource to help a javascript novice really learn to use Dojo? | 0 |
65,976 | 09/15/2008 19:29:57 | 9,114 | 09/15/2008 17:45:21 | 1 | 0 | report generation on php? | one of the most frequent requests i get is to create XY report for YZ App. This apps are normally built on php, so far i have manually created most of this reports, and while I enjoy the freedom of building it like i want, it usually becomes pretty tedious to calculate subtotals,averages, exporting to different formats etc.
What solutions are out there (free/OSS preferred) that help me get this repetitive tasks cranking? | php | reporting | null | null | null | null | open | report generation on php?
===
one of the most frequent requests i get is to create XY report for YZ App. This apps are normally built on php, so far i have manually created most of this reports, and while I enjoy the freedom of building it like i want, it usually becomes pretty tedious to calculate subtotals,averages, exporting to different formats etc.
What solutions are out there (free/OSS preferred) that help me get this repetitive tasks cranking? | 0 |
65,990 | 09/15/2008 19:31:42 | 5,056 | 09/07/2008 15:43:17 | 897 | 66 | Anyone know of a list of delegates already built into the framework? | I find myself writing delegates occasionally for really simple functions (take no arguments and return void for example) and am wondering if anyone knows someplace that has compiled a list of all the delegates already available in the .NET framework so I can reuse them?
If not, sounds like a good idea for a blog article. | .net | null | null | null | null | null | open | Anyone know of a list of delegates already built into the framework?
===
I find myself writing delegates occasionally for really simple functions (take no arguments and return void for example) and am wondering if anyone knows someplace that has compiled a list of all the delegates already available in the .NET framework so I can reuse them?
If not, sounds like a good idea for a blog article. | 0 |
65,994 | 09/15/2008 19:31:51 | 7,476 | 09/15/2008 13:49:08 | 1 | 4 | What is the best way to extract a version string from a file? | I want to use a file to store the current version number for a piece of customer software which can be used by a start-up script to run the binary in the correct directory.
For Example, if the run directory looks like this:
.
..
1.2.1
1.2.2
1.3.0
run.sh
current_version
And current_version contains:
1.2.2
I want run.sh to descend into 1.2.2 and run the program foo.
The current solution is this:
!#/bin/sh
version = `cat current_version`
cd $version
./foo
It works but is not very robust. It does not check for file existence, cannot cope with multiple lines, leading spaces, commented lines, blank files, etc.
What is the most survivable way to do this with either a shell or perl script?
| perl | bash | scripting | null | null | null | open | What is the best way to extract a version string from a file?
===
I want to use a file to store the current version number for a piece of customer software which can be used by a start-up script to run the binary in the correct directory.
For Example, if the run directory looks like this:
.
..
1.2.1
1.2.2
1.3.0
run.sh
current_version
And current_version contains:
1.2.2
I want run.sh to descend into 1.2.2 and run the program foo.
The current solution is this:
!#/bin/sh
version = `cat current_version`
cd $version
./foo
It works but is not very robust. It does not check for file existence, cannot cope with multiple lines, leading spaces, commented lines, blank files, etc.
What is the most survivable way to do this with either a shell or perl script?
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.