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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44,757 | 09/04/2008 20:54:32 | 648 | 08/07/2008 13:22:00 | 503 | 37 | How to cache ASP.NET user controls? | I heard on a recent podcast (Polymorphic) that it is possible to cache a user control as opposed to the entire page.
I think my header control which displays static content and my footer control could benefit from being cached.
How can I go about caching just those controls? | asp.net | caching | usercontrols | null | null | null | open | How to cache ASP.NET user controls?
===
I heard on a recent podcast (Polymorphic) that it is possible to cache a user control as opposed to the entire page.
I think my header control which displays static content and my footer control could benefit from being cached.
How can I go about caching just those controls? | 0 |
44,760 | 09/04/2008 20:54:41 | 4,223 | 09/02/2008 12:31:58 | 385 | 17 | Eclipse "Share Project" by hand? | What actually happens to the file system when you do a Subclipse Share Project on an Eclipse project that was externally checked out from Subversion? All the .svn folders are already in place. I get an error when I try to Share Project the right way, and I'd rather not delete and re-checkout the projects from the SVN Repository browser. | svn | eclipse | subclipse | null | null | null | open | Eclipse "Share Project" by hand?
===
What actually happens to the file system when you do a Subclipse Share Project on an Eclipse project that was externally checked out from Subversion? All the .svn folders are already in place. I get an error when I try to Share Project the right way, and I'd rather not delete and re-checkout the projects from the SVN Repository browser. | 0 |
44,763 | 09/04/2008 20:56:56 | 1,412 | 08/15/2008 15:05:57 | 546 | 38 | Where can I download the jQuery API documentation? | Since I pound API docs pretty hard when I'm coding, I like to have them on my local disk. jQuery.com lists a lot of sources for browsing the API documentation online, but I haven't found anywhere I can download the whole bundle as a TAR or ZIP file. Is such a bundle available> | jquery | javascript | api | documentation | null | null | open | Where can I download the jQuery API documentation?
===
Since I pound API docs pretty hard when I'm coding, I like to have them on my local disk. jQuery.com lists a lot of sources for browsing the API documentation online, but I haven't found anywhere I can download the whole bundle as a TAR or ZIP file. Is such a bundle available> | 0 |
44,771 | 09/04/2008 21:01:42 | 4,140 | 09/02/2008 01:10:54 | 117 | 16 | Ajax Autocomplete Webservice Call - Service Method, am I calling this correctly? |
Ok, so my method in my webservice requires a type to be passed, it is called in the ServiceMethod property of the AutoCompleteExtender, I am fuzzy about how I should do that so I called it like this:
ServiceMethod="DropDownLoad<<%=(typeof)subCategory%>>"
where subCategory is a page property that looks like this:
protected SubCategory subCategory
{
get
{
var subCategory = NHibernateObjectHelper.LoadDataObject<SubCategory>(Convert.ToInt32(Request.QueryString["SCID"]));
return subCategory;
}
}
| c# | asp.net | ajax | null | null | null | open | Ajax Autocomplete Webservice Call - Service Method, am I calling this correctly?
===
Ok, so my method in my webservice requires a type to be passed, it is called in the ServiceMethod property of the AutoCompleteExtender, I am fuzzy about how I should do that so I called it like this:
ServiceMethod="DropDownLoad<<%=(typeof)subCategory%>>"
where subCategory is a page property that looks like this:
protected SubCategory subCategory
{
get
{
var subCategory = NHibernateObjectHelper.LoadDataObject<SubCategory>(Convert.ToInt32(Request.QueryString["SCID"]));
return subCategory;
}
}
| 0 |
44,778 | 09/04/2008 21:04:04 | 4,285 | 09/02/2008 16:46:29 | 91 | 9 | How would you make a comma-separated string from a list? | What would be your preferred way to concatenate strings from a sequence such that between each two consecutive pair a comma is added. That is, how do you map, for instance, `[ 'a', 'b', 'c' ]` to `'a,b,c'`? (The cases `[ s ]` and `[]` should be mapped to `s` and `''`, respectively.)
I usually end up using something like `''.join(map(lambda x: x+',',l))[:-1]`, but also feeling somewhat unsatisfied. | python | null | null | null | null | null | open | How would you make a comma-separated string from a list?
===
What would be your preferred way to concatenate strings from a sequence such that between each two consecutive pair a comma is added. That is, how do you map, for instance, `[ 'a', 'b', 'c' ]` to `'a,b,c'`? (The cases `[ s ]` and `[]` should be mapped to `s` and `''`, respectively.)
I usually end up using something like `''.join(map(lambda x: x+',',l))[:-1]`, but also feeling somewhat unsatisfied. | 0 |
44,780 | 09/04/2008 21:05:31 | 3,475 | 08/28/2008 17:53:18 | 61 | 4 | What's the best way to implement a SQL script that will grant select, references, insert, update, and delete permissions to a database role on all the user tables in a database? | Ideally, this script could be run multiple times, as new tables were added to the database. SQL Server Management Studio generates scripts for individual database objects, but I'm looking for more of a "fire-and-forget" script. | sql | sql-server | tsql | permissions | null | null | open | What's the best way to implement a SQL script that will grant select, references, insert, update, and delete permissions to a database role on all the user tables in a database?
===
Ideally, this script could be run multiple times, as new tables were added to the database. SQL Server Management Studio generates scripts for individual database objects, but I'm looking for more of a "fire-and-forget" script. | 0 |
44,787 | 09/04/2008 21:08:28 | 4,298 | 09/02/2008 18:17:28 | 8 | 0 | How do you get the current image name from an ASP.Net website? | Scenario: You have an ASP.Net webpage that should display the next image in a series of images. If 1.jpg is currently loaded, the refresh should load 2.jpg.
Assuming I would use this code, where do you get the current images name.
<code>
string currImage = MainPic.ImageUrl.Replace(".jpg", "");
currImage = currImage.Replace("~/Images/", "");
int num = (Convert.ToInt32(currImage) + 1) % 3;
MainPic.ImageUrl = "~/Images/" + num.ToString() + ".jpg";
</code>
The problem with the above code is that the webpage used is the default site with the image set to 1.jpg, so the loaded image is always 2.jpg.
So in the process of loading the page, is it possible to pull the last image used from the pages properties? | c# | asp.net | null | null | null | null | open | How do you get the current image name from an ASP.Net website?
===
Scenario: You have an ASP.Net webpage that should display the next image in a series of images. If 1.jpg is currently loaded, the refresh should load 2.jpg.
Assuming I would use this code, where do you get the current images name.
<code>
string currImage = MainPic.ImageUrl.Replace(".jpg", "");
currImage = currImage.Replace("~/Images/", "");
int num = (Convert.ToInt32(currImage) + 1) % 3;
MainPic.ImageUrl = "~/Images/" + num.ToString() + ".jpg";
</code>
The problem with the above code is that the webpage used is the default site with the image set to 1.jpg, so the loaded image is always 2.jpg.
So in the process of loading the page, is it possible to pull the last image used from the pages properties? | 0 |
44,789 | 09/04/2008 21:09:31 | 4,055 | 09/01/2008 14:58:25 | 23 | 6 | What are the most common programming tasks? | I have recently begun working on a project to establish how best to leverage the processing power available in modern graphics cards for general programming. It seems that the field general purpose GPU programming (GPGPU) has a large bias towards scientific applications with a lot of heavy math as this fits well with the GPU computational model. This is all good and well, but most people don't spend all their time running simulation software and the like so we figured it might be possible to create a common foundation for easily building GPU-enabled software for the masses.
This leads to the question I would like to pose; What are the most common types of work performed by programs? It is not a requirement that the work translates extremely well to GPU programming as we are willing to accept modest performance improvements (Better little than nothing, right?).
There are a couple of subjects we have in mind already:
- Data management - Manipulation of large amounts of data from databases
and otherwise.
- Spreadsheet type programs (Is somewhat related to the above).
- GUI programming (Though it might be impossible to get access to the
relevant code).
- Common algorithms like sorting and searching.
- Common collections (And integrating them with data manipulation
algorithms)
Which other coding tasks are very common? I suspect a lot of the code being written is of the category of inventory management and otherwise tracking of real 'objects'.
As I have no industry experience I figured there might be a number of basic types of code which is done more often than I realize but which just doesn't materialize as external products.
Both high level programming tasks as well as specific low level operations will be appreciated. | gpgpu | null | null | null | null | null | open | What are the most common programming tasks?
===
I have recently begun working on a project to establish how best to leverage the processing power available in modern graphics cards for general programming. It seems that the field general purpose GPU programming (GPGPU) has a large bias towards scientific applications with a lot of heavy math as this fits well with the GPU computational model. This is all good and well, but most people don't spend all their time running simulation software and the like so we figured it might be possible to create a common foundation for easily building GPU-enabled software for the masses.
This leads to the question I would like to pose; What are the most common types of work performed by programs? It is not a requirement that the work translates extremely well to GPU programming as we are willing to accept modest performance improvements (Better little than nothing, right?).
There are a couple of subjects we have in mind already:
- Data management - Manipulation of large amounts of data from databases
and otherwise.
- Spreadsheet type programs (Is somewhat related to the above).
- GUI programming (Though it might be impossible to get access to the
relevant code).
- Common algorithms like sorting and searching.
- Common collections (And integrating them with data manipulation
algorithms)
Which other coding tasks are very common? I suspect a lot of the code being written is of the category of inventory management and otherwise tracking of real 'objects'.
As I have no industry experience I figured there might be a number of basic types of code which is done more often than I realize but which just doesn't materialize as external products.
Both high level programming tasks as well as specific low level operations will be appreciated. | 0 |
44,795 | 09/04/2008 21:11:43 | 2,688 | 08/24/2008 14:48:05 | 904 | 30 | How can I determine whether a given date is in Daylight Saving Time for a given timezone in .NET 2.0? | I'm on .NET 2.0, running under Medium Trust (so [TimeZoneInfo][1] and the Registry are not allowed options). I'm asking the user for two dates and a time zone, and would really love to be able to automatically determine whether I need to adjust the time zone for DST.
This probably isn't even a valid scenario unless I have some _very_ robust support, a la [TimeZoneInfo][1], to differentiate between all of the different varieties of Time Zones in the first place.
[1]: http://msdn.microsoft.com/en-us/library/system.timezoneinfo.aspx | .net-2.0 | timezone | medium-trust | null | null | null | open | How can I determine whether a given date is in Daylight Saving Time for a given timezone in .NET 2.0?
===
I'm on .NET 2.0, running under Medium Trust (so [TimeZoneInfo][1] and the Registry are not allowed options). I'm asking the user for two dates and a time zone, and would really love to be able to automatically determine whether I need to adjust the time zone for DST.
This probably isn't even a valid scenario unless I have some _very_ robust support, a la [TimeZoneInfo][1], to differentiate between all of the different varieties of Time Zones in the first place.
[1]: http://msdn.microsoft.com/en-us/library/system.timezoneinfo.aspx | 0 |
44,799 | 09/04/2008 21:12:50 | 1,931 | 08/19/2008 14:28:16 | 188 | 4 | Preventing Command Line Injection Attacks | We're currently building an application that executes a number of external tools. We often have to pass information entered into our system by users to these tools.
Obviously, this is a big security nightmare waiting to happen.
Unfortunately, we've not yet found any classes in the .NET Framework that execute command line programs while providing the same kind of guards against injection attacks as the IDbCommand objects do for databases.
Right now, we're using a very primitive string substitution which I suspect is rather insufficient:
> protected virtual string Escape(string value)
> {
> return value
> .Replace(@"\", @"\\")
> .Replace(@"$", @"\$")
> .Replace(@"""", @"\""")
> .Replace("`", "'")
> ;
> }
What do you guys do to prevent command-line injection attacks? We're planning to implement a regex that is very strict and only allows a very small subset of characters through, but I was wondering if there was a better way. | security | command-line | hacks | injection | commandline | null | open | Preventing Command Line Injection Attacks
===
We're currently building an application that executes a number of external tools. We often have to pass information entered into our system by users to these tools.
Obviously, this is a big security nightmare waiting to happen.
Unfortunately, we've not yet found any classes in the .NET Framework that execute command line programs while providing the same kind of guards against injection attacks as the IDbCommand objects do for databases.
Right now, we're using a very primitive string substitution which I suspect is rather insufficient:
> protected virtual string Escape(string value)
> {
> return value
> .Replace(@"\", @"\\")
> .Replace(@"$", @"\$")
> .Replace(@"""", @"\""")
> .Replace("`", "'")
> ;
> }
What do you guys do to prevent command-line injection attacks? We're planning to implement a regex that is very strict and only allows a very small subset of characters through, but I was wondering if there was a better way. | 0 |
44,803 | 09/04/2008 21:13:31 | 4,544 | 09/04/2008 17:42:09 | 1 | 0 | How do I read/write Person metadata from a Word doc stored in SharePoint using VBA or VSTO? | Scenerio: Document library in SharePoint with column x of "Person or Group" type. From within a VBA macro (or VSTO add-in) we're trying to access the MetaProperty on the document to set/get the user name. Any attempt to access the value via the ContentTypeProperties collection throws a Type MisMatch error (13).
The Type property of the MetaProperty object says it's "msoMetaPropertyTypeUser". I cannot find any examples of how to work with MetaProperties of this type. Anyone have any experience with this?
Thanks! | sharepoint | vba | com | vsto | office | null | open | How do I read/write Person metadata from a Word doc stored in SharePoint using VBA or VSTO?
===
Scenerio: Document library in SharePoint with column x of "Person or Group" type. From within a VBA macro (or VSTO add-in) we're trying to access the MetaProperty on the document to set/get the user name. Any attempt to access the value via the ContentTypeProperties collection throws a Type MisMatch error (13).
The Type property of the MetaProperty object says it's "msoMetaPropertyTypeUser". I cannot find any examples of how to work with MetaProperties of this type. Anyone have any experience with this?
Thanks! | 0 |
44,817 | 09/04/2008 21:20:27 | 4,541 | 09/04/2008 17:37:04 | 6 | 1 | Flex and ADO.NET Data Services...anyone done it? | Has anyone used ADO.NET Data Services as a data source for Adobe Flex applications? If so, any success stories or tragedies to avoid? If you did use it, how did you handle security? | flex | ado.net | null | null | null | null | open | Flex and ADO.NET Data Services...anyone done it?
===
Has anyone used ADO.NET Data Services as a data source for Adobe Flex applications? If so, any success stories or tragedies to avoid? If you did use it, how did you handle security? | 0 |
44,821 | 09/04/2008 21:20:43 | 3,575 | 08/29/2008 06:54:39 | 31 | 3 | Default smart device project can't find dependencies. | When running the default c++ project in Visual Studios for a Windows CE 5.0 device, I get an error complaining about missing resources. Depends says that my executable needs ayghsell.dll (the Windows Mobile shell), and CoreDll.dll. Does this mean that my executable can only be run on Windows Mobile devices, instead of any generic Windows CE installation? If that's the case, how do I create an executable targeting generic WinCE? | c++ | visual-studio | windows-mobile | wince | null | null | open | Default smart device project can't find dependencies.
===
When running the default c++ project in Visual Studios for a Windows CE 5.0 device, I get an error complaining about missing resources. Depends says that my executable needs ayghsell.dll (the Windows Mobile shell), and CoreDll.dll. Does this mean that my executable can only be run on Windows Mobile devices, instead of any generic Windows CE installation? If that's the case, how do I create an executable targeting generic WinCE? | 0 |
44,822 | 09/04/2008 21:20:59 | 4,618 | 09/04/2008 20:59:38 | 1 | 1 | What's your favorite shared whiteboard tool? | I like to draw -- well, scribble -- while working with other people; that works well in my office, where I have a huge whiteboard. But if the other people are on the other end of a phone line, it's not so good.
I played with skrbl.com, which isn't bad (though I couldn't make it work with Safari or Chrome), but it's not ideal. What is? | whiteboard | remote-working | null | null | null | null | open | What's your favorite shared whiteboard tool?
===
I like to draw -- well, scribble -- while working with other people; that works well in my office, where I have a huge whiteboard. But if the other people are on the other end of a phone line, it's not so good.
I played with skrbl.com, which isn't bad (though I couldn't make it work with Safari or Chrome), but it's not ideal. What is? | 0 |
44,824 | 09/04/2008 21:22:03 | 4,223 | 09/02/2008 12:31:58 | 390 | 17 | Is JINI at all active anymore? | Everyone I talk to who knows (knew) about it claims it was the greatest thing since sliced bread. Why did it fail? Or, if it didn't fail, who's using it now? | jini | null | null | null | null | null | open | Is JINI at all active anymore?
===
Everyone I talk to who knows (knew) about it claims it was the greatest thing since sliced bread. Why did it fail? Or, if it didn't fail, who's using it now? | 0 |
44,834 | 09/04/2008 21:28:18 | 1,794 | 08/18/2008 15:35:18 | 86 | 2 | Can someone explain __all__ in Python? | I have been using Python more and more, and I keep seeing the variable `__all__` set in different `__init__.py` files. Can someone explain what this does? | python | null | null | null | null | null | open | Can someone explain __all__ in Python?
===
I have been using Python more and more, and I keep seeing the variable `__all__` set in different `__init__.py` files. Can someone explain what this does? | 0 |
44,851 | 09/04/2008 21:33:53 | 648 | 08/07/2008 13:22:00 | 505 | 37 | Substitution Control at the User Control Level? | I am trying to create some cached user controls. Basically Header and Footer are static.
Except the footer has one link that reads in the url of the page and puts it into the javascript for sending a link to a friend. So I need that link to be dynamic.
I set up a substitution control and had the static method return the dynamic link.
Go to run and find that substitution controls are not supported at the user control level.
Is there any work around to this? Is there another control like substitution that works on the User Controls that I am not aware of? | asp.net | caching | usercontrols | null | null | null | open | Substitution Control at the User Control Level?
===
I am trying to create some cached user controls. Basically Header and Footer are static.
Except the footer has one link that reads in the url of the page and puts it into the javascript for sending a link to a friend. So I need that link to be dynamic.
I set up a substitution control and had the static method return the dynamic link.
Go to run and find that substitution controls are not supported at the user control level.
Is there any work around to this? Is there another control like substitution that works on the User Controls that I am not aware of? | 0 |
44,853 | 09/04/2008 21:37:43 | 1,310 | 08/14/2008 13:42:16 | 560 | 28 | I'm getting a java.lang.ClassCastException when generating javadocs. Any ideas? | I'm using ant to generate the javadocs, but it gets this exception over and over.
Any help would be appreciated.
[javadoc] java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc
[javadoc] at com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDocletWriter.getAnnotations(HtmlDocletWriter.java:1739)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDocletWriter.writeAnnotationInfo(HtmlDocletWriter.java:1713)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDocletWriter.writeAnnotationInfo(HtmlDocletWriter.java:1702)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDocletWriter.writeAnnotationInfo(HtmlDocletWriter.java:1681)
[javadoc] at com.sun.tools.doclets.formats.html.FieldWriterImpl.writeSignature(FieldWriterImpl.java:130)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.FieldBuilder.buildSignature(FieldBuilder.java:184)
[javadoc] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.FieldBuilder.invokeMethod(FieldBuilder.java:114)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractMemberBuilder.build(AbstractMemberBuilder.java:56)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.FieldBuilder.buildFieldDoc(FieldBuilder.java:158)
[javadoc] at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.FieldBuilder.invokeMethod(FieldBuilder.java:114)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractMemberBuilder.build(AbstractMemberBuilder.java:56)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildFieldDetails(ClassBuilder.java:301)
[javadoc] at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.invokeMethod(ClassBuilder.java:101)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildClassDoc(ClassBuilder.java:124)
[javadoc] at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.invokeMethod(ClassBuilder.java:101)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:108)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:155)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:164)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)
[javadoc] at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
[javadoc] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
[javadoc] at com.sun.tools.javadoc.Start.begin(Start.java:128)
[javadoc] at com.sun.tools.javadoc.Main.execute(Main.java:41)
[javadoc] at com.sun.tools.javadoc.Main.main(Main.java:31) | java | javadoc | ant | null | null | null | open | I'm getting a java.lang.ClassCastException when generating javadocs. Any ideas?
===
I'm using ant to generate the javadocs, but it gets this exception over and over.
Any help would be appreciated.
[javadoc] java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc
[javadoc] at com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDocletWriter.getAnnotations(HtmlDocletWriter.java:1739)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDocletWriter.writeAnnotationInfo(HtmlDocletWriter.java:1713)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDocletWriter.writeAnnotationInfo(HtmlDocletWriter.java:1702)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDocletWriter.writeAnnotationInfo(HtmlDocletWriter.java:1681)
[javadoc] at com.sun.tools.doclets.formats.html.FieldWriterImpl.writeSignature(FieldWriterImpl.java:130)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.FieldBuilder.buildSignature(FieldBuilder.java:184)
[javadoc] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.FieldBuilder.invokeMethod(FieldBuilder.java:114)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractMemberBuilder.build(AbstractMemberBuilder.java:56)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.FieldBuilder.buildFieldDoc(FieldBuilder.java:158)
[javadoc] at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.FieldBuilder.invokeMethod(FieldBuilder.java:114)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractMemberBuilder.build(AbstractMemberBuilder.java:56)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildFieldDetails(ClassBuilder.java:301)
[javadoc] at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.invokeMethod(ClassBuilder.java:101)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildClassDoc(ClassBuilder.java:124)
[javadoc] at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.invokeMethod(ClassBuilder.java:101)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:108)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:155)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:164)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106)
[javadoc] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)
[javadoc] at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javadoc] at java.lang.reflect.Method.invoke(Method.java:597)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
[javadoc] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
[javadoc] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
[javadoc] at com.sun.tools.javadoc.Start.begin(Start.java:128)
[javadoc] at com.sun.tools.javadoc.Main.execute(Main.java:41)
[javadoc] at com.sun.tools.javadoc.Main.main(Main.java:31) | 0 |
44,864 | 09/04/2008 21:47:59 | 2,168 | 08/20/2008 17:46:48 | 885 | 35 | Is there any easy way to determine what factors are contributing to the size of an HTML element? | For example I have a situation where I have something like this (contrived) example:
<div id="outer" style="margin: auto>
<div id="inner1" style="float: left">content</div>
<div id="inner2" style="float: left">content</div>
<div id="inner3" style="float: left">content</div>
<br style="clear: both"/>
</div>
where there are no widths set on any elements, and what I want is #inner1, #inner2 and #inner3 to appear next to each other horizontally inside #outer but what is happening is that #inner1 and #inner2 are appearing next to each other and then #inner3 is wrapping on to the next line.
In the actual page where this is happening there is a lot more going on, but I have inspected all of the elements very carefully with Firebug and do not understand why the #inner3 element is not appearing on the same line as #inner1 and #inner2 and causing #outer to get wider.
So, my question is: Is there any way to determine WHY the browser is sizing #outer the way it is, or wy it is choosing to wrap #inner3 even though there is plenty of room to put it on the previous "line"? Baring specific solutions to this problem, what tips or techniques do you hardcore HTML/CSS/Web UI guys have for a poor back end developer who has found himself working on the front end? | html | css | webdesign | null | null | null | open | Is there any easy way to determine what factors are contributing to the size of an HTML element?
===
For example I have a situation where I have something like this (contrived) example:
<div id="outer" style="margin: auto>
<div id="inner1" style="float: left">content</div>
<div id="inner2" style="float: left">content</div>
<div id="inner3" style="float: left">content</div>
<br style="clear: both"/>
</div>
where there are no widths set on any elements, and what I want is #inner1, #inner2 and #inner3 to appear next to each other horizontally inside #outer but what is happening is that #inner1 and #inner2 are appearing next to each other and then #inner3 is wrapping on to the next line.
In the actual page where this is happening there is a lot more going on, but I have inspected all of the elements very carefully with Firebug and do not understand why the #inner3 element is not appearing on the same line as #inner1 and #inner2 and causing #outer to get wider.
So, my question is: Is there any way to determine WHY the browser is sizing #outer the way it is, or wy it is choosing to wrap #inner3 even though there is plenty of room to put it on the previous "line"? Baring specific solutions to this problem, what tips or techniques do you hardcore HTML/CSS/Web UI guys have for a poor back end developer who has found himself working on the front end? | 0 |
44,868 | 09/04/2008 21:50:56 | 4,165 | 09/02/2008 08:35:08 | 56 | 5 | Coding beauty vs business needs | All programmer I have met, myself included, always want to start a project that touches old code by "Lets rewrite the framework for this thing. It's old, fugly and unmanageble"
On the other hand, all sales/business people I have met will say "You will do the things that add funktionality that makes us money"
If the programmers get to do as they wish 100% of time, the company will most likely have a hard time making a profit. If the sales people get whay they want all the time, the system will become a huge pile of crud within a few years. Quality will decrease, and employee retention will become an issue.
Are there any good "Solutions" to this dilemma? | buisiness | null | null | null | null | 05/06/2012 23:06:26 | not constructive | Coding beauty vs business needs
===
All programmer I have met, myself included, always want to start a project that touches old code by "Lets rewrite the framework for this thing. It's old, fugly and unmanageble"
On the other hand, all sales/business people I have met will say "You will do the things that add funktionality that makes us money"
If the programmers get to do as they wish 100% of time, the company will most likely have a hard time making a profit. If the sales people get whay they want all the time, the system will become a huge pile of crud within a few years. Quality will decrease, and employee retention will become an issue.
Are there any good "Solutions" to this dilemma? | 4 |
44,899 | 09/04/2008 22:25:34 | 438 | 08/05/2008 18:28:20 | 25 | 1 | How to find the current name of the test being executing? | I know I can figure out the name of the method as its being executed, just wondering if there is a way from the setup method. I guess an attribute method would work but from the setup method it would be the best. | visual-studio | unit-testing | null | null | null | null | open | How to find the current name of the test being executing?
===
I know I can figure out the name of the method as its being executed, just wondering if there is a way from the setup method. I guess an attribute method would work but from the setup method it would be the best. | 0 |
44,903 | 09/04/2008 22:32:51 | 1,414 | 08/15/2008 15:07:31 | 944 | 73 | Is there any way to repopulate an Html Select's Options without firing the Change event (using jQuery)? | I have multiple selects:
<select id="one">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
</select>
<select id="two">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
</select>
What I want is to select "one" from the first select, then have that option be removed from the second one.
Then if you select "two" from the second one, I want that one removed from the first one.
Here's the JS I have currently:
$(function () {
var $one = $("#one");
var $two = $("#two");
var selectOptions = [];
$("select").each(function (index) {
selectOptions[index] = [];
for (var i = 0; i < this.options.length; i++) {
selectOptions[index][i] = this.options[i];
}
});
$one.change(function () {
var selectedValue = $("option:selected", this).val();
for (var i = 0; i < selectOptions[1].length; i++) {
var exists = false;
for (var x = 0; x < $two[0].options.length; x++) {
if ($two[0].options[x].value == selectOptions[1][i].value)
exists = true;
}
if (!exists)
$two.append(selectOptions[1][i]);
}
$("option[value='" + selectedValue + "']", $two).remove();
});
$two.change(function () {
var selectedValue = $("option:selected", this).val();
for (var i = 0; i < selectOptions[0].length; i++) {
var exists = false;
for (var x = 0; x < $one[0].options.length; x++) {
if ($one[0].options[x].value == selectOptions[0][i].value)
exists = true;
}
if (!exists)
$one.append(selectOptions[0][i]);
}
$("option[value='" + selectedValue + "']", $one).remove();
});
});
But when the elements get repopulated, it fires the change event in the select whose options are changing. I tried just setting the `disabled` attribute on the option I want to remove, but that doesn't work with IE6. | javascript | jquery | dom | html-select | null | null | open | Is there any way to repopulate an Html Select's Options without firing the Change event (using jQuery)?
===
I have multiple selects:
<select id="one">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
</select>
<select id="two">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
</select>
What I want is to select "one" from the first select, then have that option be removed from the second one.
Then if you select "two" from the second one, I want that one removed from the first one.
Here's the JS I have currently:
$(function () {
var $one = $("#one");
var $two = $("#two");
var selectOptions = [];
$("select").each(function (index) {
selectOptions[index] = [];
for (var i = 0; i < this.options.length; i++) {
selectOptions[index][i] = this.options[i];
}
});
$one.change(function () {
var selectedValue = $("option:selected", this).val();
for (var i = 0; i < selectOptions[1].length; i++) {
var exists = false;
for (var x = 0; x < $two[0].options.length; x++) {
if ($two[0].options[x].value == selectOptions[1][i].value)
exists = true;
}
if (!exists)
$two.append(selectOptions[1][i]);
}
$("option[value='" + selectedValue + "']", $two).remove();
});
$two.change(function () {
var selectedValue = $("option:selected", this).val();
for (var i = 0; i < selectOptions[0].length; i++) {
var exists = false;
for (var x = 0; x < $one[0].options.length; x++) {
if ($one[0].options[x].value == selectOptions[0][i].value)
exists = true;
}
if (!exists)
$one.append(selectOptions[0][i]);
}
$("option[value='" + selectedValue + "']", $one).remove();
});
});
But when the elements get repopulated, it fires the change event in the select whose options are changing. I tried just setting the `disabled` attribute on the option I want to remove, but that doesn't work with IE6. | 0 |
44,905 | 09/04/2008 22:34:47 | 3,394 | 08/28/2008 12:35:39 | 1,414 | 71 | C# switch statement limitations - why? | When writing a switch statement there appears to be two limitations on what you can switch on and case statements.
For example (and yes, I know, if you're doing this sort of thing it probably means your oo architecture is iffy - this is just a contrived example!):-
Type t = typeof(int);
switch (t) {
case typeof(int):
Console.WriteLine("int!");
break;
case typeof(string):
Console.WriteLine("string!");
break;
default:
Console.WriteLine("unknown!");
break;
}
Here the switch() statement fails with 'A value of an integral type expected' and the case statements fail with 'A constant value is expected'.
I would like to know why these restrictions are in place and the underlying justification. I don't see any reason why the switch statement *has* to succomb to static analysis only, and why the value being switched on has to be integral (i.e. primitive). Does anybody know the justification? | c# | null | null | null | null | null | open | C# switch statement limitations - why?
===
When writing a switch statement there appears to be two limitations on what you can switch on and case statements.
For example (and yes, I know, if you're doing this sort of thing it probably means your oo architecture is iffy - this is just a contrived example!):-
Type t = typeof(int);
switch (t) {
case typeof(int):
Console.WriteLine("int!");
break;
case typeof(string):
Console.WriteLine("string!");
break;
default:
Console.WriteLine("unknown!");
break;
}
Here the switch() statement fails with 'A value of an integral type expected' and the case statements fail with 'A constant value is expected'.
I would like to know why these restrictions are in place and the underlying justification. I don't see any reason why the switch statement *has* to succomb to static analysis only, and why the value being switched on has to be integral (i.e. primitive). Does anybody know the justification? | 0 |
44,909 | 09/04/2008 22:39:52 | 290 | 08/04/2008 12:57:50 | 916 | 59 | What essential design artifacts do you produce? | In the course of your software development lifecycle, what essential design artifacts do you produce? What makes them essential to your practice?
The project I'm currently on has been in production for 8+ years. This web application has been actively enhanced and maintained over that time. While we have CMMI based policies and processes in place, with portions of our practice being well defined, the design phase has been largely overlooked. Best practices, anyone? | design | artifacts | null | null | null | null | open | What essential design artifacts do you produce?
===
In the course of your software development lifecycle, what essential design artifacts do you produce? What makes them essential to your practice?
The project I'm currently on has been in production for 8+ years. This web application has been actively enhanced and maintained over that time. While we have CMMI based policies and processes in place, with portions of our practice being well defined, the design phase has been largely overlooked. Best practices, anyone? | 0 |
44,912 | 09/04/2008 22:45:00 | 3,498 | 08/28/2008 19:35:00 | 28 | 2 | Java Delegates? | Does the Java language have delegate features, similar to how C# has support for delegates? | java | delegates | null | null | null | null | open | Java Delegates?
===
Does the Java language have delegate features, similar to how C# has support for delegates? | 0 |
44,914 | 09/04/2008 22:48:22 | 1,587 | 08/16/2008 21:55:49 | 1 | 0 | Windows Forms Application Performance | My app has many controls on its surface, and more are added dynamically at runtime.
Although i am using tabs to limit the number of controls shown, and double-buffering too, it still flickers and stutters when it has to redraw (resize, maximize, etc).
What are your tips and tricks to improve WinForms app performance? | winforms | performance | null | null | null | null | open | Windows Forms Application Performance
===
My app has many controls on its surface, and more are added dynamically at runtime.
Although i am using tabs to limit the number of controls shown, and double-buffering too, it still flickers and stutters when it has to redraw (resize, maximize, etc).
What are your tips and tricks to improve WinForms app performance? | 0 |
44,917 | 09/04/2008 22:49:58 | 4,316 | 09/02/2008 20:12:00 | 30 | 1 | Explicit vs implicit SQL joins | Is there any efficiency difference in an explicit vs implicit inner join?
For example:
select * from
table a inner join table b
on a.id = b.id;
vs.
select a.*, b.*
from table a, table b
where a.id = b.id;
| sql | join | null | null | null | null | open | Explicit vs implicit SQL joins
===
Is there any efficiency difference in an explicit vs implicit inner join?
For example:
select * from
table a inner join table b
on a.id = b.id;
vs.
select a.*, b.*
from table a, table b
where a.id = b.id;
| 0 |
44,937 | 09/04/2008 23:02:07 | 497 | 08/06/2008 11:31:57 | 148 | 11 | How do you make an etag that matches Apache? | I want to make an etag that matches what Apache produces. How does apache create it's etags? | apache | etag | null | null | null | null | open | How do you make an etag that matches Apache?
===
I want to make an etag that matches what Apache produces. How does apache create it's etags? | 0 |
44,940 | 09/04/2008 23:04:12 | 3,394 | 08/28/2008 12:35:39 | 1,414 | 72 | Learning CIL | Does anybody know any good resources for learning how to program CIL with in-depth descriptions of commands, etc.? I have looked around but not found anything particularly good. | .net | cil | self-improvement | null | null | null | open | Learning CIL
===
Does anybody know any good resources for learning how to program CIL with in-depth descriptions of commands, etc.? I have looked around but not found anything particularly good. | 0 |
44,942 | 09/04/2008 23:06:56 | 493 | 08/06/2008 10:25:05 | 3,083 | 189 | Cast List<int> to List<string> | Does anyone know if you can cast a `List<int>` to `List<string>` somehow? I know I could loop through and .ToString() the thing but a cast would be awesome.
I'm in c# 2.0 (so no linq) | c# | generics | casting | null | null | null | open | Cast List<int> to List<string>
===
Does anyone know if you can cast a `List<int>` to `List<string>` somehow? I know I could loop through and .ToString() the thing but a cast would be awesome.
I'm in c# 2.0 (so no linq) | 0 |
44,961 | 09/04/2008 23:24:51 | 3,394 | 08/28/2008 12:35:39 | 1,429 | 73 | Haskell vs. F# | I've searched on the internet for comparisons between F# and Haskell but haven't found anything really definitive. What are the primary differences and why would I want to choose one over the other? | f# | haskell | null | null | null | null | open | Haskell vs. F#
===
I've searched on the internet for comparisons between F# and Haskell but haven't found anything really definitive. What are the primary differences and why would I want to choose one over the other? | 0 |
44,965 | 09/04/2008 23:26:44 | 3,394 | 08/28/2008 12:35:39 | 1,429 | 73 | What is a monad? | Having briefly looked at Haskell recently I wondered whether anybody could give a *brief, succinct, practical* explanation as to what a monad essentially is? I have found most explanations I've come across to be fairly inaccessible and lacking in practical detail, so could somebody here help me? | functional-programming | monads | null | null | null | null | open | What is a monad?
===
Having briefly looked at Haskell recently I wondered whether anybody could give a *brief, succinct, practical* explanation as to what a monad essentially is? I have found most explanations I've come across to be fairly inaccessible and lacking in practical detail, so could somebody here help me? | 0 |
44,973 | 09/04/2008 23:29:54 | 4,642 | 09/04/2008 23:22:08 | 1 | 0 | Can I run rubygems in ironruby? | Is it currently possible with pre release of ironruby to run rubygems? It seems as if I have to set an environment variable to find them? | ironruby | null | null | null | null | null | open | Can I run rubygems in ironruby?
===
Is it currently possible with pre release of ironruby to run rubygems? It seems as if I have to set an environment variable to find them? | 0 |
44,980 | 09/04/2008 23:37:56 | 1,588 | 08/17/2008 01:05:22 | 263 | 10 | How can I programmatically determine if my workstation is locked? | I'm writing up some productivity/metrics tools for myself to help monitor my focus throughout the day. Recently, I've noticed that I tend to get off track more than usual and feel the need to get up and go for walks/drinks/etc and I'm concerned that I'm "wasting" too much time.
Since I always lock my computer when I go anywhere, and I unlock it as soon as I return (even if I'm just reading at my desk, etc), I was wondering how I can determine, in code, how long the machine is locked.
I'm writing this in C# if that helps, but I'm open to other ideas. | c# | productivity | self-improvement | null | null | null | open | How can I programmatically determine if my workstation is locked?
===
I'm writing up some productivity/metrics tools for myself to help monitor my focus throughout the day. Recently, I've noticed that I tend to get off track more than usual and feel the need to get up and go for walks/drinks/etc and I'm concerned that I'm "wasting" too much time.
Since I always lock my computer when I go anywhere, and I unlock it as soon as I return (even if I'm just reading at my desk, etc), I was wondering how I can determine, in code, how long the machine is locked.
I'm writing this in C# if that helps, but I'm open to other ideas. | 0 |
44,989 | 09/04/2008 23:48:17 | 1,463 | 08/15/2008 17:26:44 | 393 | 33 | How do you index into a var in LINQ? | I'm trying to get the following bit of code to work in LINQPad but am unable to index into a var. Anybody know how to index into a var in LINQ?
string[] sa = {"one", "two", "three"};
sa[1].Dump();
var va = sa.Select( (a,i) => new {Line = a, Index = i});
va[1].Dump();
// Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<AnonymousType#1>'
| c# | linq | null | null | null | null | open | How do you index into a var in LINQ?
===
I'm trying to get the following bit of code to work in LINQPad but am unable to index into a var. Anybody know how to index into a var in LINQ?
string[] sa = {"one", "two", "three"};
sa[1].Dump();
var va = sa.Select( (a,i) => new {Line = a, Index = i});
va[1].Dump();
// Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<AnonymousType#1>'
| 0 |
44,999 | 09/04/2008 23:57:24 | 3,661 | 08/29/2008 18:16:14 | 6 | 1 | reassign value to query string parameter | I have a "showall" query string parameter in the url, the parameter is being added dynamically when "Show All/Show Pages" button is clicked.
I want the ability to toggle "showall" query string parameter value depending on user clicking the "Show All/Show Pages" button.
I'm doing some nested "if's" and string.Replace() on the url, is there a better way?
All manipulations are done on the server. | c# | query-string | null | null | null | null | open | reassign value to query string parameter
===
I have a "showall" query string parameter in the url, the parameter is being added dynamically when "Show All/Show Pages" button is clicked.
I want the ability to toggle "showall" query string parameter value depending on user clicking the "Show All/Show Pages" button.
I'm doing some nested "if's" and string.Replace() on the url, is there a better way?
All manipulations are done on the server. | 0 |
45,002 | 09/04/2008 23:59:24 | 459 | 08/05/2008 21:54:42 | 313 | 35 | How do terms get used in calculating scores, can I override it with a CustomScoreQuery? | Has someone successfully overridden the scoring of documents in a query so that the "relevancy" of a term to the field contents can be determined through one's own function? If so, was it by implementing a [CustomScoreQuery](http://lucene.apache.org/java/2_3_2/api/org/apache/lucene/search/function/CustomScoreQuery.html) and overriding the customScore(int, float, float)? I cannot seem to find a way to build either a custom sort or a custom scorer that can rank exact term matches much higher than other prefix term matches. Any suggestions would be appreciated. | lucene | scoring | null | null | null | null | open | How do terms get used in calculating scores, can I override it with a CustomScoreQuery?
===
Has someone successfully overridden the scoring of documents in a query so that the "relevancy" of a term to the field contents can be determined through one's own function? If so, was it by implementing a [CustomScoreQuery](http://lucene.apache.org/java/2_3_2/api/org/apache/lucene/search/function/CustomScoreQuery.html) and overriding the customScore(int, float, float)? I cannot seem to find a way to build either a custom sort or a custom scorer that can rank exact term matches much higher than other prefix term matches. Any suggestions would be appreciated. | 0 |
45,004 | 09/05/2008 00:01:36 | 4,640 | 09/04/2008 23:18:56 | 1 | 0 | Complex CSS selector for parent of active child | Is there a way to select a parent element based on the class of a child element in the class? The example that is relevant to me relating to HTML output by a nice menu plugin for <http://drupal.org>. The output renders like this:
<ul class="menu">
<li>
<a class="active">Active Page</a>
</li>
<li>
<a>Some Other Page</a>
</li>
</ul>
My question is whether or not it is possible to apply a style to the list item that contains the anchor with the active class on it. Obviously, I'd prefer that the list item be marked as active, but I don't have control of the code that gets produced. I could perform this sort of thing using javascript (JQuery springs to mind), but I was wondering if there is a way to do this using CSS selectors.
Just to be clear, I want to apply a style to the list item, not the anchor. | css | null | null | null | null | null | open | Complex CSS selector for parent of active child
===
Is there a way to select a parent element based on the class of a child element in the class? The example that is relevant to me relating to HTML output by a nice menu plugin for <http://drupal.org>. The output renders like this:
<ul class="menu">
<li>
<a class="active">Active Page</a>
</li>
<li>
<a>Some Other Page</a>
</li>
</ul>
My question is whether or not it is possible to apply a style to the list item that contains the anchor with the active class on it. Obviously, I'd prefer that the list item be marked as active, but I don't have control of the code that gets produced. I could perform this sort of thing using javascript (JQuery springs to mind), but I was wondering if there is a way to do this using CSS selectors.
Just to be clear, I want to apply a style to the list item, not the anchor. | 0 |
45,013 | 09/05/2008 00:10:37 | 2,168 | 08/20/2008 17:46:48 | 905 | 37 | Can the HTTP version or headers affect the visual appearance of a web page? | I know, I would have thought the answer was obviously "no" as well, but I am experiencing a strange situation where when I view my site from our staging server it appears slightly larger than when I view it from my local dev server. I have used Charles to confirm that all of the content -- the HTML, the images, the CSS, the javascript, **everything** is the same.
The ONLY difference in the traffic is that (because the local site is served from the Django development mode server) the response headers look like this:
HTTP/1.0 200 OK
Server WSGIServer/0.1 Python/2.5.2
Date Thu, 04 Sep 2008 23:56:10 GMT
Vary Cookie
Content-Length 2301
Content-Type text/html; charset=utf-8
Whereas on the staging server (where Django is running inside Apache) the headers look like this:
HTTP/1.1 200 OK
Date Thu, 04 Sep 2008 23:56:06 GMT
Server Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5 with Suhosin-Patch
Vary Cookie
Content-Length 2301
Content-Type text/html; charset=utf-8
So, as far as I can tell the only differences are HTTP/1.1 vs HTTP/1.0, the server identifer (Apache vs WSGIServer) and the order of the Date/Server headers.
To elaborate a bit further on the differences in appearance, basically it appears as if the version of the site on the staging server is "zoomed in" by about 10%. For example, the primary logo which dominates our home page is 220 pixels wide but when server from our staging server shows up as 245 pixels wide. Everything else on the page, (other images, text, spacing, etc) is also proportionately larger.
This is all in Firefox 3. I don't have any other browsers available to test with at the moment.
Has anyone else encountered any bizarre behavior anything like this before? I am at a loss. | python | firefox | django | webdesign | null | null | open | Can the HTTP version or headers affect the visual appearance of a web page?
===
I know, I would have thought the answer was obviously "no" as well, but I am experiencing a strange situation where when I view my site from our staging server it appears slightly larger than when I view it from my local dev server. I have used Charles to confirm that all of the content -- the HTML, the images, the CSS, the javascript, **everything** is the same.
The ONLY difference in the traffic is that (because the local site is served from the Django development mode server) the response headers look like this:
HTTP/1.0 200 OK
Server WSGIServer/0.1 Python/2.5.2
Date Thu, 04 Sep 2008 23:56:10 GMT
Vary Cookie
Content-Length 2301
Content-Type text/html; charset=utf-8
Whereas on the staging server (where Django is running inside Apache) the headers look like this:
HTTP/1.1 200 OK
Date Thu, 04 Sep 2008 23:56:06 GMT
Server Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5 with Suhosin-Patch
Vary Cookie
Content-Length 2301
Content-Type text/html; charset=utf-8
So, as far as I can tell the only differences are HTTP/1.1 vs HTTP/1.0, the server identifer (Apache vs WSGIServer) and the order of the Date/Server headers.
To elaborate a bit further on the differences in appearance, basically it appears as if the version of the site on the staging server is "zoomed in" by about 10%. For example, the primary logo which dominates our home page is 220 pixels wide but when server from our staging server shows up as 245 pixels wide. Everything else on the page, (other images, text, spacing, etc) is also proportionately larger.
This is all in Firefox 3. I don't have any other browsers available to test with at the moment.
Has anyone else encountered any bizarre behavior anything like this before? I am at a loss. | 0 |
45,015 | 09/05/2008 00:12:01 | 797 | 08/09/2008 02:14:04 | 1,297 | 44 | Safely turning a JSON string into an object | Given a string of JSON data, how can you safely turn that string into a JavaScript object?
Obviously you can do this unsafely with something like...
var obj = eval("(" + json + ')');
...but that leaves us vulnerable to the json string containing other code, which it seems very dangerous to simply eval. | javascript | ajax | json | null | null | null | open | Safely turning a JSON string into an object
===
Given a string of JSON data, how can you safely turn that string into a JavaScript object?
Obviously you can do this unsafely with something like...
var obj = eval("(" + json + ')');
...but that leaves us vulnerable to the json string containing other code, which it seems very dangerous to simply eval. | 0 |
45,030 | 09/05/2008 00:22:54 | 2,975 | 08/26/2008 09:40:04 | 708 | 30 | How to parse a string into a nullable int in C# (.NET 3.5) | I'm wanting to parse a string into a nullable int in C#. ie. I want to get back either the int value of the string or null if it can't be parsed.
I was kind of hoping that this would work
int? val = stringVal as int?;
But that won't work, so the way I'm doing it now is I've written this extension method
public static int? ParseNullableInt(this string value)
{
if (value == null || value.Trim() == string.Empty)
{
return null;
}
else
{
try
{
return int.Parse(value);
}
catch
{
return null;
}
}
}
Is there a better way of doing this? | c# | .net-3.5 | string | nullable | parsing | null | open | How to parse a string into a nullable int in C# (.NET 3.5)
===
I'm wanting to parse a string into a nullable int in C#. ie. I want to get back either the int value of the string or null if it can't be parsed.
I was kind of hoping that this would work
int? val = stringVal as int?;
But that won't work, so the way I'm doing it now is I've written this extension method
public static int? ParseNullableInt(this string value)
{
if (value == null || value.Trim() == string.Empty)
{
return null;
}
else
{
try
{
return int.Parse(value);
}
catch
{
return null;
}
}
}
Is there a better way of doing this? | 0 |
45,036 | 09/05/2008 00:25:21 | 234 | 08/03/2008 20:25:38 | 3,742 | 225 | Will the GC call IDisposable.Dispose for me? | I've read through [the other IDisposable post here](http://beta.stackoverflow.com/questions/12368/how-to-dispose-a-class-in-net), and while it was very interesting, didn't answer this 'uncertainty' I've had about disposing things.
The .NET [IDisposable Pattern](http://msdn.microsoft.com/en-us/library/system.idisposable.aspx) *implies* that if you write a finalizer, and implement IDisposable, that your finalizer needs to explicitly call Dispose.
However, what happens if I just do this:
class Foo : IDisposable
{
public void Dispose(){ CloseSomeHandle(); }
}
and don't implement a finalizer, or anything. Will the framework call the Dispose method for me?
Yes I realise this sounds dumb, and all logic implies that it won't, but I've always had 2 things at the back of my head which have made me unsure.
1. Someone a few years ago once told me that it would in fact do this, and that person had a very solid track record of "knowing their stuff."
2. The compiler/framework does other 'magic' things depending on what interfaces you implement (eg: foreach, extension methods, serialization based on attributes, etc), so it makes sense that this might be 'magic' too.
While I've read a lot of stuff about it, and there's been lots of things implied, I've never been able to find a definitive Yes or No answer to this question.
Anyone? | .net | dispose | idisposable | null | null | null | open | Will the GC call IDisposable.Dispose for me?
===
I've read through [the other IDisposable post here](http://beta.stackoverflow.com/questions/12368/how-to-dispose-a-class-in-net), and while it was very interesting, didn't answer this 'uncertainty' I've had about disposing things.
The .NET [IDisposable Pattern](http://msdn.microsoft.com/en-us/library/system.idisposable.aspx) *implies* that if you write a finalizer, and implement IDisposable, that your finalizer needs to explicitly call Dispose.
However, what happens if I just do this:
class Foo : IDisposable
{
public void Dispose(){ CloseSomeHandle(); }
}
and don't implement a finalizer, or anything. Will the framework call the Dispose method for me?
Yes I realise this sounds dumb, and all logic implies that it won't, but I've always had 2 things at the back of my head which have made me unsure.
1. Someone a few years ago once told me that it would in fact do this, and that person had a very solid track record of "knowing their stuff."
2. The compiler/framework does other 'magic' things depending on what interfaces you implement (eg: foreach, extension methods, serialization based on attributes, etc), so it makes sense that this might be 'magic' too.
While I've read a lot of stuff about it, and there's been lots of things implied, I've never been able to find a definitive Yes or No answer to this question.
Anyone? | 0 |
45,042 | 09/05/2008 00:35:51 | 2,567 | 08/22/2008 22:50:45 | 210 | 27 | How do you retrieve the commit message and file list for a particular revision? | I need to deploy a few files that were checked in sometime ago (can't remember the exact ones), so I'm looking to get a list so I can deploy just those files. What is the svn command to do this? | svn | version-control | null | null | null | null | open | How do you retrieve the commit message and file list for a particular revision?
===
I need to deploy a few files that were checked in sometime ago (can't remember the exact ones), so I'm looking to get a list so I can deploy just those files. What is the svn command to do this? | 0 |
45,045 | 09/05/2008 00:39:31 | 2,723 | 08/24/2008 17:49:45 | 32 | 1 | What can I do to resolve a "Row not found or changed" Exception in LINQ to SQL on a SQL Server Compact Edition Database? | When executing SubmitChanges to the DataContext after updating a couple properties with a LINQ to SQL connection (against SQL Server Compact Edition) I get a "Row not found or changed." ChangeConflictException.
var ctx = new Data.MobileServerDataDataContext(Common.DatabasePath);
var deviceSessionRecord = ctx.Sessions.First(sess => sess.SessionRecId == args.DeviceSessionId);
deviceSessionRecord.IsActive = false;
deviceSessionRecord.Disconnected = DateTime.Now;
ctx.SubmitChanges();
The query generates the following SQL:
UPDATE [Sessions]
SET [Is_Active] = @p0, [Disconnected] = @p1
WHERE 0 = 1
-- @p0: Input Boolean (Size = 0; Prec = 0; Scale = 0) [False]
-- @p1: Input DateTime (Size = 0; Prec = 0; Scale = 0) [9/4/2008 5:12:02 PM]
-- Context: SqlProvider(SqlCE) Model: AttributedMetaModel Build: 3.5.21022.8
The obvious problem is the **WHERE 0=1**, After the record was loaded, I've confirmed that all the properties in the "deviceSessionRecord" are correct to include the primary key. Also when catching the "ChangeConflictException" there is no additional information about why this failed. I've also confirmed that this exception get's thrown with exactly one record in the database (the record I'm attempting to update)
What's strange is that I have a very similar update statement in a different section of code and it generates the following SQL and does indeed update my SQL Server Compact Edition database.
UPDATE [Sessions]
SET [Is_Active] = @p4, [Disconnected] = @p5
WHERE ([Session_RecId] = @p0) AND ([App_RecId] = @p1) AND ([Is_Active] = 1) AND ([Established] = @p2) AND ([Disconnected] IS NULL) AND ([Member_Id] IS NULL) AND ([Company_Id] IS NULL) AND ([Site] IS NULL) AND (NOT ([Is_Device] = 1)) AND ([Machine_Name] = @p3)
-- @p0: Input Guid (Size = 0; Prec = 0; Scale = 0) [0fbbee53-cf4c-4643-9045-e0a284ad131b]
-- @p1: Input Guid (Size = 0; Prec = 0; Scale = 0) [7a174954-dd18-406e-833d-8da650207d3d]
-- @p2: Input DateTime (Size = 0; Prec = 0; Scale = 0) [9/4/2008 5:20:50 PM]
-- @p3: Input String (Size = 0; Prec = 0; Scale = 0) [CWMOBILEDEV]
-- @p4: Input Boolean (Size = 0; Prec = 0; Scale = 0) [False]
-- @p5: Input DateTime (Size = 0; Prec = 0; Scale = 0) [9/4/2008 5:20:52 PM]
-- Context: SqlProvider(SqlCE) Model: AttributedMetaModel Build: 3.5.21022.8
I have confirmed that the proper primary fields values have been identified in both the Database Schema and the DBML that generates the LINQ classes.
I guess this is almost a two part question:
1. Why is the exception being thrown?
2. After reviewing the second set of generated SQL, it seems like for detecting conflicts it would be nice to check all the fields, but I imagine this would be fairly inefficient. Is this the way this always works? Is there a setting to just check the primary key?
I've been fighting with this for the past two hours so any help would be appreciated.
Kevin... | linq-to-sql | null | null | null | null | null | open | What can I do to resolve a "Row not found or changed" Exception in LINQ to SQL on a SQL Server Compact Edition Database?
===
When executing SubmitChanges to the DataContext after updating a couple properties with a LINQ to SQL connection (against SQL Server Compact Edition) I get a "Row not found or changed." ChangeConflictException.
var ctx = new Data.MobileServerDataDataContext(Common.DatabasePath);
var deviceSessionRecord = ctx.Sessions.First(sess => sess.SessionRecId == args.DeviceSessionId);
deviceSessionRecord.IsActive = false;
deviceSessionRecord.Disconnected = DateTime.Now;
ctx.SubmitChanges();
The query generates the following SQL:
UPDATE [Sessions]
SET [Is_Active] = @p0, [Disconnected] = @p1
WHERE 0 = 1
-- @p0: Input Boolean (Size = 0; Prec = 0; Scale = 0) [False]
-- @p1: Input DateTime (Size = 0; Prec = 0; Scale = 0) [9/4/2008 5:12:02 PM]
-- Context: SqlProvider(SqlCE) Model: AttributedMetaModel Build: 3.5.21022.8
The obvious problem is the **WHERE 0=1**, After the record was loaded, I've confirmed that all the properties in the "deviceSessionRecord" are correct to include the primary key. Also when catching the "ChangeConflictException" there is no additional information about why this failed. I've also confirmed that this exception get's thrown with exactly one record in the database (the record I'm attempting to update)
What's strange is that I have a very similar update statement in a different section of code and it generates the following SQL and does indeed update my SQL Server Compact Edition database.
UPDATE [Sessions]
SET [Is_Active] = @p4, [Disconnected] = @p5
WHERE ([Session_RecId] = @p0) AND ([App_RecId] = @p1) AND ([Is_Active] = 1) AND ([Established] = @p2) AND ([Disconnected] IS NULL) AND ([Member_Id] IS NULL) AND ([Company_Id] IS NULL) AND ([Site] IS NULL) AND (NOT ([Is_Device] = 1)) AND ([Machine_Name] = @p3)
-- @p0: Input Guid (Size = 0; Prec = 0; Scale = 0) [0fbbee53-cf4c-4643-9045-e0a284ad131b]
-- @p1: Input Guid (Size = 0; Prec = 0; Scale = 0) [7a174954-dd18-406e-833d-8da650207d3d]
-- @p2: Input DateTime (Size = 0; Prec = 0; Scale = 0) [9/4/2008 5:20:50 PM]
-- @p3: Input String (Size = 0; Prec = 0; Scale = 0) [CWMOBILEDEV]
-- @p4: Input Boolean (Size = 0; Prec = 0; Scale = 0) [False]
-- @p5: Input DateTime (Size = 0; Prec = 0; Scale = 0) [9/4/2008 5:20:52 PM]
-- Context: SqlProvider(SqlCE) Model: AttributedMetaModel Build: 3.5.21022.8
I have confirmed that the proper primary fields values have been identified in both the Database Schema and the DBML that generates the LINQ classes.
I guess this is almost a two part question:
1. Why is the exception being thrown?
2. After reviewing the second set of generated SQL, it seems like for detecting conflicts it would be nice to check all the fields, but I imagine this would be fairly inefficient. Is this the way this always works? Is there a setting to just check the primary key?
I've been fighting with this for the past two hours so any help would be appreciated.
Kevin... | 0 |
45,062 | 09/05/2008 00:58:59 | 364 | 08/05/2008 05:33:41 | 497 | 28 | LINQ to SQL Association - "Properties do not have matching types" | I am trying to link two fields of a given table to the same field in another table.
I have done this before so I can't work out what is wrong this time.
Anyway:
Table1
- Id (Primary)
- FK-Table2a (Nullable, foreign key relationship in DB to Table2.Id)
- FK-Table2b (Nullable, foreign key relationship in DB to Table2.Id)
Table2
- Id (Primary)
The association works for FK-Table2a but not FK-Table2b.
In fact, when I load into LINQ to SQL, it shows Table2.Id as associated to Table1.Id.
If I try and change this, or add a new association for FK-Table2b to Table2.Id it says: "Properties do not have matching types".
Any ideas? | linq-to-sql | c# | asp.net | dynamicdata | null | null | open | LINQ to SQL Association - "Properties do not have matching types"
===
I am trying to link two fields of a given table to the same field in another table.
I have done this before so I can't work out what is wrong this time.
Anyway:
Table1
- Id (Primary)
- FK-Table2a (Nullable, foreign key relationship in DB to Table2.Id)
- FK-Table2b (Nullable, foreign key relationship in DB to Table2.Id)
Table2
- Id (Primary)
The association works for FK-Table2a but not FK-Table2b.
In fact, when I load into LINQ to SQL, it shows Table2.Id as associated to Table1.Id.
If I try and change this, or add a new association for FK-Table2b to Table2.Id it says: "Properties do not have matching types".
Any ideas? | 0 |
45,075 | 09/05/2008 01:29:03 | 2,598 | 08/23/2008 13:13:34 | 368 | 27 | Java: Flash a window to grab user's attention | Is there a better way to flash a window in Java than this:
public static void flashWindow(JFrame frame) throws InterruptedException {
int sleepTime = 50;
frame.setVisible(false);
Thread.sleep(sleepTime);
frame.setVisible(true);
Thread.sleep(sleepTime);
frame.setVisible(false);
Thread.sleep(sleepTime);
frame.setVisible(true);
Thread.sleep(sleepTime);
frame.setVisible(false);
Thread.sleep(sleepTime);
frame.setVisible(true);
}
I know that this code is scary...But it works alright. | java | user-interface | null | null | null | null | open | Java: Flash a window to grab user's attention
===
Is there a better way to flash a window in Java than this:
public static void flashWindow(JFrame frame) throws InterruptedException {
int sleepTime = 50;
frame.setVisible(false);
Thread.sleep(sleepTime);
frame.setVisible(true);
Thread.sleep(sleepTime);
frame.setVisible(false);
Thread.sleep(sleepTime);
frame.setVisible(true);
Thread.sleep(sleepTime);
frame.setVisible(false);
Thread.sleep(sleepTime);
frame.setVisible(true);
}
I know that this code is scary...But it works alright. | 0 |
45,078 | 09/05/2008 01:31:19 | 4,541 | 09/04/2008 17:37:04 | 6 | 1 | Flex and .NET - What's a good way to get data into Flex, WebORB? Web Services? | Ok, I asked a question earlier about Flex and ADO.NET Data Services but didn't get much response so I thought I'd rephrase. Does anyone have any experience building Adobe Flex applications with a .NET back-end? If so, what architecture did you use and what third-party tools if any did you employ. I've read a little about doing Flex remoting with WebORB but it seems more complicated than it should be, are web services an adequate alternative? | .net | flex | null | null | null | null | open | Flex and .NET - What's a good way to get data into Flex, WebORB? Web Services?
===
Ok, I asked a question earlier about Flex and ADO.NET Data Services but didn't get much response so I thought I'd rephrase. Does anyone have any experience building Adobe Flex applications with a .NET back-end? If so, what architecture did you use and what third-party tools if any did you employ. I've read a little about doing Flex remoting with WebORB but it seems more complicated than it should be, are web services an adequate alternative? | 0 |
45,086 | 09/05/2008 01:50:33 | 2,066 | 08/20/2008 03:59:13 | 141 | 15 | C++ and SOAP | I have a C++ app that needs to connect to a JAVA web app, are there any good, open source SOAP packages for this, or would it be easier to just roll my own? | java | c++ | soap | null | null | null | open | C++ and SOAP
===
I have a C++ app that needs to connect to a JAVA web app, are there any good, open source SOAP packages for this, or would it be easier to just roll my own? | 0 |
45,093 | 09/05/2008 02:00:32 | 4,541 | 09/04/2008 17:37:04 | 6 | 1 | RegEx to Detect SQL Injection | I'm looking for a good solid Regular Expression for detecting SQL in a string. Does anyone have a sample of something they've used before? | sql | regex | null | null | null | null | open | RegEx to Detect SQL Injection
===
I'm looking for a good solid Regular Expression for detecting SQL in a string. Does anyone have a sample of something they've used before? | 0 |
45,122 | 09/05/2008 02:15:33 | 1,914 | 08/19/2008 14:10:15 | 92 | 8 | python packages - import by class, not file | Say I have the following file structure:
app/
app.py
controllers/
__init__.py
project.py
plugin.py
If app/controllers/project.py defines a class Project, app.py would import it like this:
from app.controllers.project import Project
I'd like to just be able to do:
from app.controllers import Project
How would this be done? | python | packages | null | null | null | null | open | python packages - import by class, not file
===
Say I have the following file structure:
app/
app.py
controllers/
__init__.py
project.py
plugin.py
If app/controllers/project.py defines a class Project, app.py would import it like this:
from app.controllers.project import Project
I'd like to just be able to do:
from app.controllers import Project
How would this be done? | 0 |
45,123 | 09/05/2008 02:15:49 | 1,154 | 08/12/2008 23:39:07 | 342 | 38 | Interfaces and Versioning | I am designing a new System and I have a lot of Interfaces that will grow over time with the system. What is the best practice to name this interfaces
ISomethingV01
ISomethingV02
etc
or same other way?
| design | design-patterns | null | null | null | null | open | Interfaces and Versioning
===
I am designing a new System and I have a lot of Interfaces that will grow over time with the system. What is the best practice to name this interfaces
ISomethingV01
ISomethingV02
etc
or same other way?
| 0 |
45,132 | 09/05/2008 02:21:53 | 1,899 | 08/19/2008 09:19:13 | 1 | 0 | What is the best way and recommended practices for interacting with Lotus Notes from C# | In particular, I have to extract all the messages and attachments from Lotus Notes files in the fastest and most reliable way. Another point that may be relevant is that I need to do this from a secondary thread. | c# | interop | lotus-notes | null | null | null | open | What is the best way and recommended practices for interacting with Lotus Notes from C#
===
In particular, I have to extract all the messages and attachments from Lotus Notes files in the fastest and most reliable way. Another point that may be relevant is that I need to do this from a secondary thread. | 0 |
45,135 | 09/05/2008 02:24:19 | 1,597 | 08/17/2008 10:01:21 | 85 | 7 | Linker order - GCC | Why does the order in which libraries are linked sometimes cause errors? | c++ | gcc | linker | null | null | null | open | Linker order - GCC
===
Why does the order in which libraries are linked sometimes cause errors? | 0 |
45,152 | 09/05/2008 02:51:32 | 4,550 | 09/04/2008 17:50:43 | 21 | 4 | What are you currently using for data access? | What particular method/application are you using to communicate between your application and a database? Custom code with stored procedures? SubSonic? nHibernate? Entity Framework? LINQ? | data-structures | persistence | data-access | data-binding | null | null | open | What are you currently using for data access?
===
What particular method/application are you using to communicate between your application and a database? Custom code with stored procedures? SubSonic? nHibernate? Entity Framework? LINQ? | 0 |
45,155 | 09/05/2008 02:54:04 | 4,646 | 09/04/2008 23:39:08 | 1 | 2 | WebDAV query trouble - unable to read body of e-mail | Our group(corporate environment) needs to monitor a couple of faceless accounts' Outlook inbox for specific types of bounced e-mails.
WebDAV(using C# 2.0) is one of the paths we've traveled and we're almost there ... except for one minor problem -- we're getting the response below for the e-mail body element
<a:propstat>
<a:status>HTTP/1.1 404 Resource Not Found</a:status>
- <a:prop>
<a:htmldescription />
<a:textdescription />
</a:prop>
</a:propstat>
The only real commonality is that it only happens on messages that our Exchange server is returning to us as "Undeliverable". Note: All other e-mails come across just fine.
Any thoughts? | webdav | null | null | null | null | null | open | WebDAV query trouble - unable to read body of e-mail
===
Our group(corporate environment) needs to monitor a couple of faceless accounts' Outlook inbox for specific types of bounced e-mails.
WebDAV(using C# 2.0) is one of the paths we've traveled and we're almost there ... except for one minor problem -- we're getting the response below for the e-mail body element
<a:propstat>
<a:status>HTTP/1.1 404 Resource Not Found</a:status>
- <a:prop>
<a:htmldescription />
<a:textdescription />
</a:prop>
</a:propstat>
The only real commonality is that it only happens on messages that our Exchange server is returning to us as "Undeliverable". Note: All other e-mails come across just fine.
Any thoughts? | 0 |
45,163 | 09/05/2008 03:03:22 | 1,306 | 08/14/2008 13:22:40 | 128 | 12 | inline lists with graphical links in css | given this html:
<ul id="topnav">
<li id="topnav_galleries"><a href="#">Galleries</a></li>
<li id="topnav_information"><a href="#">Information</a></li>
</ul>
and this css:
#topnav_galleries a, #topnav_information a {
background-repeat: no-repeat;
text-indent: -9000px;
padding: 0;
margin: 0 0;
overflow: hidden;
height: 46px;
width: 136px;
display: block;
}
#topnav { list-style-type: none; }
#topnav_galleries a { background-image: url('image1.jpg'); }
#topnav_information a { background-image: url('image2.jpg'); }
how would I go about turning the topnav list into an inline list? | html | css | xhtml | list | null | null | open | inline lists with graphical links in css
===
given this html:
<ul id="topnav">
<li id="topnav_galleries"><a href="#">Galleries</a></li>
<li id="topnav_information"><a href="#">Information</a></li>
</ul>
and this css:
#topnav_galleries a, #topnav_information a {
background-repeat: no-repeat;
text-indent: -9000px;
padding: 0;
margin: 0 0;
overflow: hidden;
height: 46px;
width: 136px;
display: block;
}
#topnav { list-style-type: none; }
#topnav_galleries a { background-image: url('image1.jpg'); }
#topnav_information a { background-image: url('image2.jpg'); }
how would I go about turning the topnav list into an inline list? | 0 |
45,176 | 09/05/2008 03:16:33 | 1,965 | 08/19/2008 15:51:08 | 2,909 | 161 | What do you do when you can't use ViewState? | I have a rather complex page that dynamically builds user controls inside of a repeater. This repeater must be bound during the Init page event before ViewState is initialized or the dynamically created user controls will not retain their state.
This creates an interesting Catch-22 because the object I bind the repeater to needs to be created on initial page load, and then persisted in memory until the user opts to leave or save.
Because I cannot use ViewState to store this object, yet have it available during Init, I have been forced to store it in Session.
This also has issues, because I have to explicitly null the session value during non postbacks in order to emulate how ViewState works.
There has to be a better way to state management in this scenario. Any ideas? | c# | asp.net | viewstate | webforms | page-lifecycle | null | open | What do you do when you can't use ViewState?
===
I have a rather complex page that dynamically builds user controls inside of a repeater. This repeater must be bound during the Init page event before ViewState is initialized or the dynamically created user controls will not retain their state.
This creates an interesting Catch-22 because the object I bind the repeater to needs to be created on initial page load, and then persisted in memory until the user opts to leave or save.
Because I cannot use ViewState to store this object, yet have it available during Init, I have been forced to store it in Session.
This also has issues, because I have to explicitly null the session value during non postbacks in order to emulate how ViewState works.
There has to be a better way to state management in this scenario. Any ideas? | 0 |
45,179 | 09/05/2008 03:19:57 | 3,349 | 08/28/2008 04:01:37 | 1 | 1 | Are there benefits to Classic ASP over ASP.net | Having worked with Classic ASP for about 2 years now by creating a few 100 simple web forms I can't see a good reason for switching to .net; however, I'm not that versed in .net so I'm sure I could be missing a few things.
An over view of why I feel this way is best found here: <a href="http://www.packtpub.com/article/Classic-ASP">http://www.packtpub.com/article/Classic-ASP</a>
I'm very interested to hear what others have to say on this matter. | asp.net | comparison | asp-classic | interpreted | compiled | 04/05/2012 13:06:07 | not constructive | Are there benefits to Classic ASP over ASP.net
===
Having worked with Classic ASP for about 2 years now by creating a few 100 simple web forms I can't see a good reason for switching to .net; however, I'm not that versed in .net so I'm sure I could be missing a few things.
An over view of why I feel this way is best found here: <a href="http://www.packtpub.com/article/Classic-ASP">http://www.packtpub.com/article/Classic-ASP</a>
I'm very interested to hear what others have to say on this matter. | 4 |
45,180 | 09/05/2008 03:20:56 | 4,555 | 09/04/2008 17:54:35 | 1 | 0 | Problems with disabling IIS shutdown of idle worker process? | I ran into an issue with an IIS web app shutting down an idle worker process. The next request would then have to re-initialize the application, leading to delays. I disabled the IIS shutdown of idle worker processes on the application pool to resolve this. Are there any issues associated with turning this off? If the process is leaking memory, I imagine it is nice to recycle the process every now and then. Are there any other benefits to having this process shutdown? | iis | null | null | null | null | null | open | Problems with disabling IIS shutdown of idle worker process?
===
I ran into an issue with an IIS web app shutting down an idle worker process. The next request would then have to re-initialize the application, leading to delays. I disabled the IIS shutdown of idle worker processes on the application pool to resolve this. Are there any issues associated with turning this off? If the process is leaking memory, I imagine it is nice to recycle the process every now and then. Are there any other benefits to having this process shutdown? | 0 |
45,202 | 09/05/2008 03:51:57 | 1,875 | 08/19/2008 02:23:09 | 413 | 37 | IoC Container Configuration - XML or Fluent Interface | I absolutely need to use an IoC container for decoupling dependencies in an ever increasingly complex system of enterprise services. The issue I am facing is one related to configuration (a.k.a. registration). We currently have 4 different environments -- development to production and in between. These environments have numerous configurations that slightly vary from environment to environment; however, in all cases that *I can currently think of*, dependencies between components do not differ from environment to environment, though I could have missed something and/or this could obviously change.
So, the ultimate question is, does anybody have a similar experience using an IoC framework? Or, can anybody recommend one framework over another that would provide flexible registration be it through some sort of convention or simplified configuration information? I'd like to avoid XML-hell. | dependency-injection | inversionofcontrol | dependencyinjection | null | null | null | open | IoC Container Configuration - XML or Fluent Interface
===
I absolutely need to use an IoC container for decoupling dependencies in an ever increasingly complex system of enterprise services. The issue I am facing is one related to configuration (a.k.a. registration). We currently have 4 different environments -- development to production and in between. These environments have numerous configurations that slightly vary from environment to environment; however, in all cases that *I can currently think of*, dependencies between components do not differ from environment to environment, though I could have missed something and/or this could obviously change.
So, the ultimate question is, does anybody have a similar experience using an IoC framework? Or, can anybody recommend one framework over another that would provide flexible registration be it through some sort of convention or simplified configuration information? I'd like to avoid XML-hell. | 0 |
45,207 | 09/05/2008 03:58:32 | 4,121 | 09/01/2008 21:29:49 | 18 | 1 | How do I force unix (LF) line endings in Visual Stuido (Express) 2008? | Is there a way to *always* have LF line endings in Visual Studio? I can never seem to find it! | visual-studio | unix | editor | formatting | visual-studio-2008 | null | open | How do I force unix (LF) line endings in Visual Stuido (Express) 2008?
===
Is there a way to *always* have LF line endings in Visual Studio? I can never seem to find it! | 0 |
45,227 | 09/05/2008 04:26:49 | 50 | 08/01/2008 13:29:54 | 658 | 38 | Can I Do This In Lisp? | I have been searching everywhere for this functionality in lisp, and have gotten nowhere.
1. find the index of something in a list. example:
(index-of item InThisList)
2. replace something at a specific spot in a list. example:
(replace item InThisList AtThisIndex) ;i think this can be done with 'setf'?
3. return an item at a specific index. example:
(return InThisList ItemAtThisIndex)
Up until this point, i've been faking it with my own functions. I'm wondering if i'm just creating more work for myself.
| lisp | null | null | null | null | null | open | Can I Do This In Lisp?
===
I have been searching everywhere for this functionality in lisp, and have gotten nowhere.
1. find the index of something in a list. example:
(index-of item InThisList)
2. replace something at a specific spot in a list. example:
(replace item InThisList AtThisIndex) ;i think this can be done with 'setf'?
3. return an item at a specific index. example:
(return InThisList ItemAtThisIndex)
Up until this point, i've been faking it with my own functions. I'm wondering if i'm just creating more work for myself.
| 0 |
45,228 | 09/05/2008 04:27:46 | 1,114 | 08/12/2008 12:54:42 | 77 | 9 | Where can I find the time and memory efficencies of the built-in sequence types in Python | I have been unable to find a resource with this information, aside looking through the Python source code myself to determine how the objects work themselves. Though I may end up doing this anyway out of curiosity, does anyone know where I could find this online? | python | efficiency | big-o | sequences | null | null | open | Where can I find the time and memory efficencies of the built-in sequence types in Python
===
I have been unable to find a resource with this information, aside looking through the Python source code myself to determine how the objects work themselves. Though I may end up doing this anyway out of curiosity, does anyone know where I could find this online? | 0 |
45,230 | 09/05/2008 04:30:19 | 85 | 08/01/2008 16:38:08 | 100 | 1 | Is it possible to forward ssh requests that come in over a certain port to another machine? | I have a small local network. Only one of the machines is available to the outside world (this is not easily changeable). I'd like to be able to set it up such that ssh requests that don't come in on the standard port go to another machine. Is this possible? If so, how?
Oh and all of these machines are running either Ubuntu or OS X. | osx | ubuntu | ssh | port | null | null | open | Is it possible to forward ssh requests that come in over a certain port to another machine?
===
I have a small local network. Only one of the machines is available to the outside world (this is not easily changeable). I'd like to be able to set it up such that ssh requests that don't come in on the standard port go to another machine. Is this possible? If so, how?
Oh and all of these machines are running either Ubuntu or OS X. | 0 |
45,235 | 09/05/2008 04:37:15 | 2,768 | 08/24/2008 23:52:54 | 176 | 9 | Strange Dependency Behavior in VS.NET 2005 (Unnecessary .CPP Compilation) | I work on a large Visual C++ (MFC) project in VS.NET 2005.
I have noticed strange behavior in Visual C++ 2005. Often, I will change one line of code in a .CPP file but many .CPP files will compile as a result of this. I have never seen this until VS.NET 2005. Theortically, changing a line of code in a .CPP file should simply require recompilation of that .CPP file and re-linking of the PE file.
What am I not understanding about the build process. | vs2005 | visual-c++ | null | null | null | null | open | Strange Dependency Behavior in VS.NET 2005 (Unnecessary .CPP Compilation)
===
I work on a large Visual C++ (MFC) project in VS.NET 2005.
I have noticed strange behavior in Visual C++ 2005. Often, I will change one line of code in a .CPP file but many .CPP files will compile as a result of this. I have never seen this until VS.NET 2005. Theortically, changing a line of code in a .CPP file should simply require recompilation of that .CPP file and re-linking of the PE file.
What am I not understanding about the build process. | 0 |
45,239 | 09/05/2008 04:43:43 | 2,938 | 08/26/2008 08:26:05 | 1 | 1 | What is the best technique for consistent form, function between all web browsers (including Google Chrome)? | Short version: What is the cleanest and most maintainable technique for consistant presentation and AJAX function across all browsers used by both web developers and web developers' end-users?
- IE 6, 7, 8
- Firefox 2, 3
- Safari
- Google Chrome
- Opera
Long version: I wrote a [web app aimed at other web developers](http://con.appspot.com). I want my app to support the major web browsers (plus Google Chrome) in both presentation and AJAX behavior.
I began on Firefox/Firebug, then added conditional comments for a consistent styling under IE 6 and 7. Next, to my amazement, I discovered that jQuery does not behave identically in IE; so I [changed my Javascript to be portable on FF and IE](http://github.com/jhs/app-engine-console/commit/4fe7741ad1856208b565eeab4260a64933929c01) using conditionals and less pure jQuery.
Today, I started testing on Webkit and Google Chrome and discovered that, not only are the styles inconsistant with both FF and IE, but Javascript is not executing at all, probably due to a syntax or parse error. I expected some CSS work, but now I have more Javascript debugging to do! At this point, I want to step back and think before writing piles of special cases for all situations.
I am <b>not looking for a silver bullet, just best practices</b> to keep things as understandable and maintainable as possible. I prefer if this works with no server-side intelligence; however if there is a advantage to, for example, check the user-agent and then return different files to different browsers, that is fine if the total comprehensibility and maintainability of the web app is lower. Thank you all very much! | css | google-chrome | portability | null | null | null | open | What is the best technique for consistent form, function between all web browsers (including Google Chrome)?
===
Short version: What is the cleanest and most maintainable technique for consistant presentation and AJAX function across all browsers used by both web developers and web developers' end-users?
- IE 6, 7, 8
- Firefox 2, 3
- Safari
- Google Chrome
- Opera
Long version: I wrote a [web app aimed at other web developers](http://con.appspot.com). I want my app to support the major web browsers (plus Google Chrome) in both presentation and AJAX behavior.
I began on Firefox/Firebug, then added conditional comments for a consistent styling under IE 6 and 7. Next, to my amazement, I discovered that jQuery does not behave identically in IE; so I [changed my Javascript to be portable on FF and IE](http://github.com/jhs/app-engine-console/commit/4fe7741ad1856208b565eeab4260a64933929c01) using conditionals and less pure jQuery.
Today, I started testing on Webkit and Google Chrome and discovered that, not only are the styles inconsistant with both FF and IE, but Javascript is not executing at all, probably due to a syntax or parse error. I expected some CSS work, but now I have more Javascript debugging to do! At this point, I want to step back and think before writing piles of special cases for all situations.
I am <b>not looking for a silver bullet, just best practices</b> to keep things as understandable and maintainable as possible. I prefer if this works with no server-side intelligence; however if there is a advantage to, for example, check the user-agent and then return different files to different browsers, that is fine if the total comprehensibility and maintainability of the web app is lower. Thank you all very much! | 0 |
45,247 | 09/05/2008 04:54:30 | 1,638 | 08/17/2008 17:58:57 | 410 | 46 | How do I get started in embedded programing? | I would like to get started in embedded systems programming but don't know where to start...I have a very solid knowledge of C and C++ and would preferably like to use these languages with the GNU compilers. I have a degree in CS so I have a solid foundation...
I have no clue about what hardware and other resources that I will need...If you work or are knowledgeable in this area, how did you get started and what are some good resource for a beginner?
Thanks.
| embedded | webdevelopment | c | c++ | null | null | open | How do I get started in embedded programing?
===
I would like to get started in embedded systems programming but don't know where to start...I have a very solid knowledge of C and C++ and would preferably like to use these languages with the GNU compilers. I have a degree in CS so I have a solid foundation...
I have no clue about what hardware and other resources that I will need...If you work or are knowledgeable in this area, how did you get started and what are some good resource for a beginner?
Thanks.
| 0 |
45,252 | 09/05/2008 05:06:23 | 4,499 | 09/04/2008 08:57:19 | 1 | 3 | Load Balancing of Process in 1 Server | I have 1 process that receives incoming connection from port 1000 in 1 **linux** server. However, 1 process is not fast enough to handle all the incoming request.
I want to run multiple processes in the server but with 1 end-point. In this way, the client will only see 1 end-point/process not multiple.
I have checked LVS and other Load Balancing Solution. Those solutions seem geared towards multiple servers load-balancing.
Any other solution to help on my case?
| linux | load-balancing | null | null | null | null | open | Load Balancing of Process in 1 Server
===
I have 1 process that receives incoming connection from port 1000 in 1 **linux** server. However, 1 process is not fast enough to handle all the incoming request.
I want to run multiple processes in the server but with 1 end-point. In this way, the client will only see 1 end-point/process not multiple.
I have checked LVS and other Load Balancing Solution. Those solutions seem geared towards multiple servers load-balancing.
Any other solution to help on my case?
| 0 |
45,253 | 09/05/2008 05:07:38 | 422 | 08/05/2008 15:11:55 | 862 | 44 | Adding Functionality to Rails | I'm working on a Rails app and am looking to include some functionality from an [earlier question][1] I asked here. However, I'm having problems getting it to work. I was under the impression that I should just make a file in the lib directory, so I named it 'get_ip.rb', with the contents:
require 'socket'
module GetIP
def local_ip
orig, Socket.do_not_reverse_lookup = Socket.do_not_reverse_lookup, true # turn off reverse DNS resolution temporarily
UDPSocket.open do |s|
s.connect '64.233.187.99', 1
s.addr.last
end
ensure
Socket.do_not_reverse_lookup = orig
end
end
I had also tried defining GetIP as a class but when I do the usual `ruby script/console`, I'm not able to use the `local_ip` method at all. Any ideas?
[1]: http://stackoverflow.com/questions/42566/getting-the-hostname-or-ip-in-ruby-on-rails | ruby | ruby-on-rails | null | null | null | null | open | Adding Functionality to Rails
===
I'm working on a Rails app and am looking to include some functionality from an [earlier question][1] I asked here. However, I'm having problems getting it to work. I was under the impression that I should just make a file in the lib directory, so I named it 'get_ip.rb', with the contents:
require 'socket'
module GetIP
def local_ip
orig, Socket.do_not_reverse_lookup = Socket.do_not_reverse_lookup, true # turn off reverse DNS resolution temporarily
UDPSocket.open do |s|
s.connect '64.233.187.99', 1
s.addr.last
end
ensure
Socket.do_not_reverse_lookup = orig
end
end
I had also tried defining GetIP as a class but when I do the usual `ruby script/console`, I'm not able to use the `local_ip` method at all. Any ideas?
[1]: http://stackoverflow.com/questions/42566/getting-the-hostname-or-ip-in-ruby-on-rails | 0 |
45,264 | 09/05/2008 05:20:57 | 1,934 | 08/19/2008 14:29:35 | 11 | 2 | Django Calendar Widget? | Does anyone know of any existing packages or libraries that can be used to build a calendar in a django app? | django | calendar | null | null | null | null | open | Django Calendar Widget?
===
Does anyone know of any existing packages or libraries that can be used to build a calendar in a django app? | 0 |
45,277 | 09/05/2008 05:33:06 | 4,647 | 09/04/2008 23:52:15 | 1 | 0 | How do I implement an OpenID server in Rails? | I see a similar question [for Ubuntu](http://stackoverflow.com/questions/28588/how-do-you-set-up-an-openid-provider-server-in-ubuntu), but I'm interested in hosting my own OpenID provider through my Rails-based site that already has an identity and authentication system in place.
Note that I'm not looking for the delegate method to [use the site as an OpenID](http://stackoverflow.com/questions/4661/can-you-apply-more-than-one-openid-to-a-stackoverflow-account#4777).
What's the best way to do this properly?
| ruby-on-rails | openid | null | null | null | null | open | How do I implement an OpenID server in Rails?
===
I see a similar question [for Ubuntu](http://stackoverflow.com/questions/28588/how-do-you-set-up-an-openid-provider-server-in-ubuntu), but I'm interested in hosting my own OpenID provider through my Rails-based site that already has an identity and authentication system in place.
Note that I'm not looking for the delegate method to [use the site as an OpenID](http://stackoverflow.com/questions/4661/can-you-apply-more-than-one-openid-to-a-stackoverflow-account#4777).
What's the best way to do this properly?
| 0 |
45,286 | 09/05/2008 05:42:57 | 363 | 08/05/2008 04:56:30 | 200 | 6 | How can I overwrite the same portion of the console in a Windows native C++ console app, without using a 3rd Party library? | I have a console app that needs to display the state of items, but rather than having text scroll by like mad I'd rather see the current status keep showing up on the same line. For the sake of example:
> `Running... nn% complete`
should be the output, where 'nn' is the current percentage complete, updated periodically on the same line of the console.
The first approach I took simply printed the correct number of backspaces to the console before printing the new state, but this has an obnoxious flicker that I want to get rid of. I also want to stick to either standard library or MS-provided functionality (VC 8) so as not to introduce another dependency for this one simple need.
| c++ | console | windows | null | null | null | open | How can I overwrite the same portion of the console in a Windows native C++ console app, without using a 3rd Party library?
===
I have a console app that needs to display the state of items, but rather than having text scroll by like mad I'd rather see the current status keep showing up on the same line. For the sake of example:
> `Running... nn% complete`
should be the output, where 'nn' is the current percentage complete, updated periodically on the same line of the console.
The first approach I took simply printed the correct number of backspaces to the console before printing the new state, but this has an obnoxious flicker that I want to get rid of. I also want to stick to either standard library or MS-provided functionality (VC 8) so as not to introduce another dependency for this one simple need.
| 0 |
45,293 | 09/05/2008 05:55:36 | 4,021 | 09/01/2008 12:23:44 | 48 | 4 | ASP.NET and sending SMS/making phone calls | I have a scenario where I need to make call a telephone(landline/mobile) or send SMS to a particular set of users only using ASP.NET and C#. The web application is not a mobile application.
How do I go about doing these? What typically would be the hardware requirements? I would be **extremely grateful** if you could provide me with pointers and reference websites. | c# | asp.net | sms | null | null | 02/16/2012 17:40:17 | too localized | ASP.NET and sending SMS/making phone calls
===
I have a scenario where I need to make call a telephone(landline/mobile) or send SMS to a particular set of users only using ASP.NET and C#. The web application is not a mobile application.
How do I go about doing these? What typically would be the hardware requirements? I would be **extremely grateful** if you could provide me with pointers and reference websites. | 3 |
45,301 | 09/05/2008 06:00:56 | 130,278 | 09/02/2008 03:00:54 | 6 | 6 | title in command prompt window | how can i change the command prompt window every time I execute a dos-based program by double clicking it, in c language. should i used windows API? thanks | c | winapi | null | null | null | null | open | title in command prompt window
===
how can i change the command prompt window every time I execute a dos-based program by double clicking it, in c language. should i used windows API? thanks | 0 |
45,325 | 09/05/2008 06:21:06 | 2,975 | 08/26/2008 09:40:04 | 793 | 36 | How do you force Visual Studio to regenerate the .designer files for aspx/ascx files? | Sometimes when I'm editing page or control the .designer files stop being updated with the new controls I'm putting on the page. I'm not sure what's causing this to happen, but I'm wondering if there's any way of forcing Visual Studio to regenerate the .designer file. I'm using Visual Studio 2008 | visual-studio-2008 | visual-studio | asp.net | null | null | null | open | How do you force Visual Studio to regenerate the .designer files for aspx/ascx files?
===
Sometimes when I'm editing page or control the .designer files stop being updated with the new controls I'm putting on the page. I'm not sure what's causing this to happen, but I'm wondering if there's any way of forcing Visual Studio to regenerate the .designer file. I'm using Visual Studio 2008 | 0 |
45,331 | 09/05/2008 06:28:41 | 877 | 08/10/2008 04:07:29 | 26 | 0 | MS Visual Studio "Package Load Failure" error | I'm receiving "Package Load Failure" error when I open VS 2005 after I installed the latest VisualSVN (v. 1.5.2). Anyone facing this error? Is there any tool out there to help identify which package didn't load and/or help unload a specific package? | vs2005 | visualsvn | null | null | null | null | open | MS Visual Studio "Package Load Failure" error
===
I'm receiving "Package Load Failure" error when I open VS 2005 after I installed the latest VisualSVN (v. 1.5.2). Anyone facing this error? Is there any tool out there to help identify which package didn't load and/or help unload a specific package? | 0 |
45,339 | 09/05/2008 06:36:03 | 1,523 | 08/16/2008 10:10:13 | 28 | 2 | Why is my web control null? | I have a web site in asp.net that uses a master page. In this master page I have a multiview control with one view that has all the content for the content pages and one view that has some local content to the master page where I show error messages from all content pages.
In this error view I have a asp.net Label control that displays the error messages. Usually the label works fine, but in some few cases the label is null, which renders a NullReferenceException. Now I have handled this case by checking if the label is null before using it, but still my question is:
Why is this label null? What are the circumstances that can generate this? | asp.net | null | null | null | null | null | open | Why is my web control null?
===
I have a web site in asp.net that uses a master page. In this master page I have a multiview control with one view that has all the content for the content pages and one view that has some local content to the master page where I show error messages from all content pages.
In this error view I have a asp.net Label control that displays the error messages. Usually the label works fine, but in some few cases the label is null, which renders a NullReferenceException. Now I have handled this case by checking if the label is null before using it, but still my question is:
Why is this label null? What are the circumstances that can generate this? | 0 |
45,340 | 09/05/2008 06:37:19 | 4,491 | 09/04/2008 06:44:23 | 35 | 0 | Restful URLs for ASP.NET | Python frameworks always provide ways to handle urls that convey the data of the request in an elegant way:
think
http://somewhere.overtherainbow.com/userid/123424/
I want your to notice the ending path /userid/123424/
How do you do this in ASP.NET? | asp.net | rest | url | friendly-url | null | null | open | Restful URLs for ASP.NET
===
Python frameworks always provide ways to handle urls that convey the data of the request in an elegant way:
think
http://somewhere.overtherainbow.com/userid/123424/
I want your to notice the ending path /userid/123424/
How do you do this in ASP.NET? | 0 |
45,361 | 09/05/2008 07:07:06 | 4,682 | 09/05/2008 07:07:06 | 1 | 0 | Tomcat doFilter() invoked with committed response | I have a Tomcat Filter that delegates requests to the a handling object depending on the URL. This is the only filter in the FilterChain. I have an Ajax app that hammers this filter with lots of requests.
Recently I noticed an issue where the filter's doFilter method is often called with a committed response as a parameter (Internally, it is the coyote response that is marked committed).
It seems to me that the only way that this can happen is if the recycle() method is not called on this coyote response. I have checked to make sure that I am not keeping references to any of the request, response, outputStream, or writer objects. Additionally, I made sure to close the outputStream in a finally block. However, this doesn't resolve this issue.
This sounds like I am doing something to abuse the servlet container but I am having trouble tracking it down. | java | tomcat | servlet | null | null | null | open | Tomcat doFilter() invoked with committed response
===
I have a Tomcat Filter that delegates requests to the a handling object depending on the URL. This is the only filter in the FilterChain. I have an Ajax app that hammers this filter with lots of requests.
Recently I noticed an issue where the filter's doFilter method is often called with a committed response as a parameter (Internally, it is the coyote response that is marked committed).
It seems to me that the only way that this can happen is if the recycle() method is not called on this coyote response. I have checked to make sure that I am not keeping references to any of the request, response, outputStream, or writer objects. Additionally, I made sure to close the outputStream in a finally block. However, this doesn't resolve this issue.
This sounds like I am doing something to abuse the servlet container but I am having trouble tracking it down. | 0 |
45,372 | 09/05/2008 07:15:27 | 1,666 | 08/17/2008 21:07:18 | 689 | 50 | Calculated columns in mysql on INSERT statements | Let's say that I want to have a table that logs the date and the number of columns in some other table (or really any sort of math / string concat etc).
CREATE TABLE `log` (
`id` INTEGER NOT NULL AUTO_INCREMENT ,
`date` DATETIME NOT NULL ,
`count` INTEGER NOT NULL ,
PRIMARY KEY (`id`)
);
Is it possible to have the count column calculated for me whenever I do an insert?
e.g. do something like:
INSERT INTO log (date='foo');
and have count calculated by mysql.
Obviously I could do it myself by doing a query to get the count and inserting it, but this would be better. | mysql | db | null | null | null | null | open | Calculated columns in mysql on INSERT statements
===
Let's say that I want to have a table that logs the date and the number of columns in some other table (or really any sort of math / string concat etc).
CREATE TABLE `log` (
`id` INTEGER NOT NULL AUTO_INCREMENT ,
`date` DATETIME NOT NULL ,
`count` INTEGER NOT NULL ,
PRIMARY KEY (`id`)
);
Is it possible to have the count column calculated for me whenever I do an insert?
e.g. do something like:
INSERT INTO log (date='foo');
and have count calculated by mysql.
Obviously I could do it myself by doing a query to get the count and inserting it, but this would be better. | 0 |
45,374 | 09/05/2008 07:19:24 | 3,897 | 08/31/2008 18:44:05 | 86 | 9 | Dealing with "Coder's Block" (or blank form syndrome) | I know this is the sort of somewhat open-ended question that we're discouraged from asking, but there are lots of open-ended questions around already, and this is something quite relevant to me right now.
Do you ever get those times when you're about to start work on a new function/feature of an established system, and you get "coder's block"?. It's like a mental freeze at the sight of a large, completely unpopulated dialog, or an empty code file with just the stub reference headers etc. Do you ever have that 'ulp' moment that seems to sap all your momentum and leave you wide open to distractions (surfing the web for inspiration, checking out 'crackoverflow' etc)?
Not that I'd wish it on anyone, but hopefully some of you do, and hopefully some of you can suggest tips or strategies for overcoming the situation, regaining your momentum and becoming productive again.
I usually try to reduce what I'm about to do down to absurdly small steps, in the hope that as the job becomes just a series of 'doh' tasks, I'll kickstart myself into working through them. However sometimes, particularly when a deadline is looming, I'll get overwhelmed by this approach as I realise I probably don't have enough time to do all of those tiny steps properly. Those are the darkest moments, (often literally) just before dawn!
This situation can be particularly crippling if you mostly work alone, too.
Any thoughts or suggestions? Any methods that you found helpful yourself?
| best-practices | productivity | self-improvement | null | null | 08/23/2011 20:10:06 | off topic | Dealing with "Coder's Block" (or blank form syndrome)
===
I know this is the sort of somewhat open-ended question that we're discouraged from asking, but there are lots of open-ended questions around already, and this is something quite relevant to me right now.
Do you ever get those times when you're about to start work on a new function/feature of an established system, and you get "coder's block"?. It's like a mental freeze at the sight of a large, completely unpopulated dialog, or an empty code file with just the stub reference headers etc. Do you ever have that 'ulp' moment that seems to sap all your momentum and leave you wide open to distractions (surfing the web for inspiration, checking out 'crackoverflow' etc)?
Not that I'd wish it on anyone, but hopefully some of you do, and hopefully some of you can suggest tips or strategies for overcoming the situation, regaining your momentum and becoming productive again.
I usually try to reduce what I'm about to do down to absurdly small steps, in the hope that as the job becomes just a series of 'doh' tasks, I'll kickstart myself into working through them. However sometimes, particularly when a deadline is looming, I'll get overwhelmed by this approach as I realise I probably don't have enough time to do all of those tiny steps properly. Those are the darkest moments, (often literally) just before dawn!
This situation can be particularly crippling if you mostly work alone, too.
Any thoughts or suggestions? Any methods that you found helpful yourself?
| 2 |
45,385 | 09/05/2008 07:33:43 | 3,561 | 08/29/2008 05:25:35 | 194 | 24 | Good python library for generating audio files? | Can anyone recommend a good library for generating an audio file, such as mp3, wav, or even midi, from python?
I've seen recommendations for working with the id tags (song name, artist, etc) in mp3 files, but this is not my goal.
Thank you very much! | python | audio | mp3 | null | null | null | open | Good python library for generating audio files?
===
Can anyone recommend a good library for generating an audio file, such as mp3, wav, or even midi, from python?
I've seen recommendations for working with the id tags (song name, artist, etc) in mp3 files, but this is not my goal.
Thank you very much! | 0 |
45,387 | 09/05/2008 07:40:27 | 1,583 | 08/16/2008 20:54:12 | 226 | 7 | Accessible controls for ASP.NET | In my last job we ended up rewriting the complete ASP.NET stack (forms, controls, validation, postback handling, ajax library etc...) - the reason I was given was that the ASP.NET controls were not accessible enough, not were any of the third party controls that were assessed for the project.
Can anyone point me to good accessible ASP.NET controls that do ajax as well?
Failing that, how would you approach creating accessible, ajax enabled controls? | asp.net | ajax | accessibility | null | null | null | open | Accessible controls for ASP.NET
===
In my last job we ended up rewriting the complete ASP.NET stack (forms, controls, validation, postback handling, ajax library etc...) - the reason I was given was that the ASP.NET controls were not accessible enough, not were any of the third party controls that were assessed for the project.
Can anyone point me to good accessible ASP.NET controls that do ajax as well?
Failing that, how would you approach creating accessible, ajax enabled controls? | 0 |
45,399 | 09/05/2008 08:00:50 | 797 | 08/09/2008 02:14:04 | 1,333 | 46 | Advantages and disadvantages of GUID / UUID database keys | I've worked on a number of database systems in the past where moving entries between databases would have been made a lot easier if all the database keys had been [GUID / UUID][1] values. I've considered going down this path a few times, but there's always a bit of uncertainty, especially around performance and un-read-out-over-the-phone-able URLs.
Has anyone worked extensively with GUIDs in a database? What advantages would I get by going that way, and what are the likely pitfalls?
[1]: http://en.wikipedia.org/wiki/Globally_Unique_Identifier | database | null | null | null | null | null | open | Advantages and disadvantages of GUID / UUID database keys
===
I've worked on a number of database systems in the past where moving entries between databases would have been made a lot easier if all the database keys had been [GUID / UUID][1] values. I've considered going down this path a few times, but there's always a bit of uncertainty, especially around performance and un-read-out-over-the-phone-able URLs.
Has anyone worked extensively with GUIDs in a database? What advantages would I get by going that way, and what are the likely pitfalls?
[1]: http://en.wikipedia.org/wiki/Globally_Unique_Identifier | 0 |
45,400 | 09/05/2008 08:01:17 | 3,714 | 08/30/2008 09:10:20 | 21 | 3 | Source control system for single developer | What's the recommended source control system for a very small team (one developer)?<BR><BR>
Price does not matter. Customer would pay :-)<BR>
I'm working on Vista32 with VS 2008 in C++ and later in C# and with WPF. Setting up an extra (physical) server for this seems overkill to me. <BR><BR>Any opinions? | .net | version-control | null | null | null | null | open | Source control system for single developer
===
What's the recommended source control system for a very small team (one developer)?<BR><BR>
Price does not matter. Customer would pay :-)<BR>
I'm working on Vista32 with VS 2008 in C++ and later in C# and with WPF. Setting up an extra (physical) server for this seems overkill to me. <BR><BR>Any opinions? | 0 |
45,401 | 09/05/2008 08:02:39 | 2,090 | 08/20/2008 10:46:39 | 83 | 2 | .net lightweight 3d engine for compact and full framework | I am creating a GUI for a machine that runs remote (WinXP) or on the machine itself (Windows CE 6.0).
Right now I've created a fast visualisation (read: very simple) of the machine itself. The goal is to make a bit more complex visualisation of the machine and for that I would need a lightweight 3d engine.
The engine should run on both full and compact .net framework (I am prepared to do some porting :). <br />
What I mean with lightweigt is that it doesn't need shading, lighting, advanced camera's. The Idea is that the whole scene is shown in Isometric perspective.
So what I was wondering is that anyone knows a good engine (open source?) or has some helpfull resources you could share with me.
Thomas. | c# | 3d | engine | null | null | null | open | .net lightweight 3d engine for compact and full framework
===
I am creating a GUI for a machine that runs remote (WinXP) or on the machine itself (Windows CE 6.0).
Right now I've created a fast visualisation (read: very simple) of the machine itself. The goal is to make a bit more complex visualisation of the machine and for that I would need a lightweight 3d engine.
The engine should run on both full and compact .net framework (I am prepared to do some porting :). <br />
What I mean with lightweigt is that it doesn't need shading, lighting, advanced camera's. The Idea is that the whole scene is shown in Isometric perspective.
So what I was wondering is that anyone knows a good engine (open source?) or has some helpfull resources you could share with me.
Thomas. | 0 |
45,407 | 09/05/2008 08:06:32 | 184 | 08/03/2008 05:34:19 | 1,972 | 31 | Is there any difference between the box models of IE8 and Firefox3? | What are the main differences (if any) between the box models of IE8 and Firefox3?
Are they the same now?
What are the other main differences between these two browsers? Can a web developer assume that these two browsers as the same since they (seem to) support the latest web standards? | firefox | browser | internet-explorer-8 | null | null | null | open | Is there any difference between the box models of IE8 and Firefox3?
===
What are the main differences (if any) between the box models of IE8 and Firefox3?
Are they the same now?
What are the other main differences between these two browsers? Can a web developer assume that these two browsers as the same since they (seem to) support the latest web standards? | 0 |
45,408 | 09/05/2008 08:07:00 | 618 | 08/07/2008 11:16:45 | 79 | 6 | JIT code generation techniques | How does a virtual machine generate native machine code on the fly and execute it?
Assuming you can figure out what are the native machine op-codes you want to emit, how do you go about actually running it?
Is it something as hacky as mapping the mnemonic instructions to binary codes, stuffing it into an char* pointer and casting it as a function and executing?
Or would you generate a temporary shared library (.dll or .so or whatever) and load it into memory using standard functions like `LoadLibrary` ? | assembler | interpreters | null | null | null | null | open | JIT code generation techniques
===
How does a virtual machine generate native machine code on the fly and execute it?
Assuming you can figure out what are the native machine op-codes you want to emit, how do you go about actually running it?
Is it something as hacky as mapping the mnemonic instructions to binary codes, stuffing it into an char* pointer and casting it as a function and executing?
Or would you generate a temporary shared library (.dll or .so or whatever) and load it into memory using standard functions like `LoadLibrary` ? | 0 |
45,414 | 09/05/2008 08:12:44 | 2,670 | 08/24/2008 10:03:28 | 196 | 21 | Why does the Eclipse code formatter break </a> in a documentation comment? | I'm using Eclipse 3.4 and have configured the Java code formatter with all of the options on the *Comments* tab enabled. The problem is that when I format a document comment that contains:
* @see <a href="test.html">test</a>
the code formatter inserts a space in the closing HTML, breaking it:
* @see <a href="test.html">test< /a>
Why? How do I stop this happening?
This is not fixed by disabling any of the options on the *Comments* tab, such as *Format HTML tags*. The only work-around I found is to disable Javadoc formatting completely by disabling both the *Enable Javadoc comment formatting* and *Enable block comment formatting* options, which means I then have to format comment blocks manually.
| java | eclipse | javadoc | null | null | null | open | Why does the Eclipse code formatter break </a> in a documentation comment?
===
I'm using Eclipse 3.4 and have configured the Java code formatter with all of the options on the *Comments* tab enabled. The problem is that when I format a document comment that contains:
* @see <a href="test.html">test</a>
the code formatter inserts a space in the closing HTML, breaking it:
* @see <a href="test.html">test< /a>
Why? How do I stop this happening?
This is not fixed by disabling any of the options on the *Comments* tab, such as *Format HTML tags*. The only work-around I found is to disable Javadoc formatting completely by disabling both the *Enable Javadoc comment formatting* and *Enable block comment formatting* options, which means I then have to format comment blocks manually.
| 0 |
45,415 | 09/05/2008 08:14:39 | 4,687 | 09/05/2008 08:04:23 | 1 | 0 | How to run NUnit v2.4.8 tests with NAnt 0.86b1 ? | I tried recently to use the last official released version of NAnt (beta 0.86) to run some unit tests compiled with the last stable version of NUnit (v2.4.8) without any success. I would like to use <nunit2> task, and not directly the <exec> one, but I'm wondering if it is still possible, even using app.config files to bind assembly versions.
Did I miss something ?
| .net | nant | nunit | null | null | null | open | How to run NUnit v2.4.8 tests with NAnt 0.86b1 ?
===
I tried recently to use the last official released version of NAnt (beta 0.86) to run some unit tests compiled with the last stable version of NUnit (v2.4.8) without any success. I would like to use <nunit2> task, and not directly the <exec> one, but I'm wondering if it is still possible, even using app.config files to bind assembly versions.
Did I miss something ?
| 0 |
45,424 | 09/05/2008 08:18:52 | 4,690 | 09/05/2008 08:18:52 | 1 | 0 | Struts 2: return to calling page | I'm using <b>Struts 2</b>.
I'd like to return from an <tt>Action</tt> to the page which invoked it.
Say I'm in page <tt>x.jsp</tt>, I invoke <tt>Visual</tt> action to change CSS preferences in the session; I want to return to <tt>x.jsp</tt> rather than to a fixed page (i.e. <tt>home.jsp</tt>)<br/>
Here's the relevant <tt>struts.xml</tt> fragment:
<br/>
<pre>
<action
name="Visual"
class="it.___.web.actions.VisualizationAction">
<result name="home">/pages/home.jsp</result>
</action>
</pre>
Of course my <tt>VisualizationAction.execute()</tt> returns <tt>"home"</tt>.
Is there any "magic" constant (like, say, <tt>INPUT_PAGE</tt>) that I may return to do the trick?<br/>
Must I use a more involved method (i.e. extracting the request page and forwarding to it)?<br/>
T.I.A. | java | struts | struts2 | null | null | null | open | Struts 2: return to calling page
===
I'm using <b>Struts 2</b>.
I'd like to return from an <tt>Action</tt> to the page which invoked it.
Say I'm in page <tt>x.jsp</tt>, I invoke <tt>Visual</tt> action to change CSS preferences in the session; I want to return to <tt>x.jsp</tt> rather than to a fixed page (i.e. <tt>home.jsp</tt>)<br/>
Here's the relevant <tt>struts.xml</tt> fragment:
<br/>
<pre>
<action
name="Visual"
class="it.___.web.actions.VisualizationAction">
<result name="home">/pages/home.jsp</result>
</action>
</pre>
Of course my <tt>VisualizationAction.execute()</tt> returns <tt>"home"</tt>.
Is there any "magic" constant (like, say, <tt>INPUT_PAGE</tt>) that I may return to do the trick?<br/>
Must I use a more involved method (i.e. extracting the request page and forwarding to it)?<br/>
T.I.A. | 0 |
45,426 | 09/05/2008 08:20:13 | 1,127,460 | 08/28/2008 09:38:19 | 176 | 8 | SQL file encoding in Visual Studio | When we create stored procedures in Visual Studio (with the extension .sql) the file encoding is automatically set to 'Unicode (UTF-8 with signature) - Codepage 65001'.
This causes ours DBA's problems as their scripts don't like it.
We have to manually go in and change them to 'Western European (windows) - Codepage 1252'.
This only seems to be happening since we upgraded to VS 2008 from 2005. Can anyone explain whats going on and how to stop it? | sql | visual-studio | stored-procedures | null | null | null | open | SQL file encoding in Visual Studio
===
When we create stored procedures in Visual Studio (with the extension .sql) the file encoding is automatically set to 'Unicode (UTF-8 with signature) - Codepage 65001'.
This causes ours DBA's problems as their scripts don't like it.
We have to manually go in and change them to 'Western European (windows) - Codepage 1252'.
This only seems to be happening since we upgraded to VS 2008 from 2005. Can anyone explain whats going on and how to stop it? | 0 |
45,431 | 09/05/2008 08:29:08 | 4,401 | 09/03/2008 14:02:08 | 1 | 1 | NCover, TypeMock and MSTest | has anyone got NCover, TypeMock and MSTest to work together? and if so how.
I've had 2 or 3 serious tries at this now and just can't get it to work.
I'm using MSTest 9, NCover 2.1 and TypeMock 4.1.
Ideally I would like to run them from an MSBuild task.
Cheers
Mat | ncover | null | null | null | null | null | open | NCover, TypeMock and MSTest
===
has anyone got NCover, TypeMock and MSTest to work together? and if so how.
I've had 2 or 3 serious tries at this now and just can't get it to work.
I'm using MSTest 9, NCover 2.1 and TypeMock 4.1.
Ideally I would like to run them from an MSBuild task.
Cheers
Mat | 0 |
45,437 | 09/05/2008 08:39:34 | 3,394 | 08/28/2008 12:35:39 | 1,484 | 73 | Determining members of local groups via C# | I wondered whether anybody knows how to obtain membership of local groups on a remote server programmatically via C#. Would this require administrator permissions? And if so is there any way to confirm the currently logged in user's membership (or not) of these groups?
| c# | .net | windows | networking | null | null | open | Determining members of local groups via C#
===
I wondered whether anybody knows how to obtain membership of local groups on a remote server programmatically via C#. Would this require administrator permissions? And if so is there any way to confirm the currently logged in user's membership (or not) of these groups?
| 0 |
45,438 | 09/05/2008 08:43:48 | 905 | 08/10/2008 09:37:14 | 3,662 | 222 | MS SQL FTI - searching on "n*" returns numbers | This seems like odd behaviour from SQL's full-text-index.
FTI stores number in its index with an "NN" prefix, so "123" is saved as "NN123".
Now when a user searches for words beginning with N (i.e. contains "n*" ) they also get all numbers.
So:
select [TextField]
from [MyTable]
where contains([TextField], '"n*"')
Returns:
<pre>
MyTable.TextField
--------------------------------------------------<span style="color:#777777;">
This text contains the word <b style="color:red;">n</b>avigator
This text is <b style="color:red;">n</b>ice
This text only has 123, and shouldn't be returned</span>
</pre>
Is there a good way to exclude that last row? Is there a consistent workaround for this? | sql-server | null | null | null | null | null | open | MS SQL FTI - searching on "n*" returns numbers
===
This seems like odd behaviour from SQL's full-text-index.
FTI stores number in its index with an "NN" prefix, so "123" is saved as "NN123".
Now when a user searches for words beginning with N (i.e. contains "n*" ) they also get all numbers.
So:
select [TextField]
from [MyTable]
where contains([TextField], '"n*"')
Returns:
<pre>
MyTable.TextField
--------------------------------------------------<span style="color:#777777;">
This text contains the word <b style="color:red;">n</b>avigator
This text is <b style="color:red;">n</b>ice
This text only has 123, and shouldn't be returned</span>
</pre>
Is there a good way to exclude that last row? Is there a consistent workaround for this? | 0 |
45,453 | 09/05/2008 09:14:03 | 2,839 | 08/25/2008 13:34:44 | 6 | 6 | ICalendar and event updates not working in Outlook | I'm generating ICalendar (.ics) files.
Using the UID and SEQUENCE fields I can update existing events in Google Calendar and in Windows Calandrier ***BUT NOT*** in MS Outlook 2007
How do I get them to work for Outlook ?
Thanks
Tom | icalendar | rfc2445 | language-agnostic | null | null | null | open | ICalendar and event updates not working in Outlook
===
I'm generating ICalendar (.ics) files.
Using the UID and SEQUENCE fields I can update existing events in Google Calendar and in Windows Calandrier ***BUT NOT*** in MS Outlook 2007
How do I get them to work for Outlook ?
Thanks
Tom | 0 |
45,456 | 09/05/2008 09:16:25 | 1,583 | 08/16/2008 20:54:12 | 226 | 8 | Worst abuses of NIH syndrome? | Last place I worked at had a massive [NIH][1] issue.
They ended up rewriting the complete ASP.NET stack (forms, controls, validation, postback handling, ajax library etc...)
What is the worst case of NIH you have had the misfortune to work on?
[1]: http://en.wikipedia.org/wiki/Not_Invented_Here | productivity | coding-horror | null | null | null | 07/03/2012 12:38:55 | not constructive | Worst abuses of NIH syndrome?
===
Last place I worked at had a massive [NIH][1] issue.
They ended up rewriting the complete ASP.NET stack (forms, controls, validation, postback handling, ajax library etc...)
What is the worst case of NIH you have had the misfortune to work on?
[1]: http://en.wikipedia.org/wiki/Not_Invented_Here | 4 |
45,470 | 09/05/2008 09:36:30 | 4,406 | 09/03/2008 14:38:45 | 11 | 3 | Suggest some good MVC framework in perl | Can you suggest some good MVC framework for perl -- one I am aware of is [catalyst](http://www.catalystframework.org/)
The need is to be able to expose services on the perl infrastructure which can be called by Java/.Net applications seamlessly. | perl | mvc | null | null | null | null | open | Suggest some good MVC framework in perl
===
Can you suggest some good MVC framework for perl -- one I am aware of is [catalyst](http://www.catalystframework.org/)
The need is to be able to expose services on the perl infrastructure which can be called by Java/.Net applications seamlessly. | 0 |
45,475 | 09/05/2008 09:41:57 | 4,431 | 09/03/2008 18:12:05 | 11 | 6 | Postback events from within DataView | I'm presenting information from a DataTable on my page and would like to add some sorting functionality which goes a bit beyond a straight forward column sort. As such I have been trying to place LinkButtons in the HeaderItems of my GridView which postback to functions that change session information before reloading the page.
Clicking my links DOES cause a postback but they don't seem to generate any OnClick events as my OnClick functions don't get executed. I have AutoEventWireup set to true and if I move the links out of the GridView they work fine.
I've got around the problem by creating regular anchors, appending queries to their hrefs and checking for them at page load but I'd prefer C# to be doing the grunt work. Any ideas? | c# | .net | postback | datatable | gridview | null | open | Postback events from within DataView
===
I'm presenting information from a DataTable on my page and would like to add some sorting functionality which goes a bit beyond a straight forward column sort. As such I have been trying to place LinkButtons in the HeaderItems of my GridView which postback to functions that change session information before reloading the page.
Clicking my links DOES cause a postback but they don't seem to generate any OnClick events as my OnClick functions don't get executed. I have AutoEventWireup set to true and if I move the links out of the GridView they work fine.
I've got around the problem by creating regular anchors, appending queries to their hrefs and checking for them at page load but I'd prefer C# to be doing the grunt work. Any ideas? | 0 |
45,481 | 09/05/2008 09:45:59 | 4,685 | 09/05/2008 07:49:27 | 1 | 1 | How to do Streaming read of a large XML file in C# 3.5 ... | How can you do a streaming read on a large XML file that contains a xs:sequence just bellow root element, without loading the whole file into a XDocument instance in memory.
| c# | .net | xml | .net-3.5 | streaming | null | open | How to do Streaming read of a large XML file in C# 3.5 ...
===
How can you do a streaming read on a large XML file that contains a xs:sequence just bellow root element, without loading the whole file into a XDocument instance in memory.
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.