text
stringlengths
8
267k
meta
dict
Q: Good way to stretch object over multiple classes I have a collection of orders. I would like to hit the database once, retrieve the orders, store them and then be able to access this collection over multiple forms. I know in asp.net, you can use things like Application Object or Session Object but how do you do it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/363660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: StringBuilder for string concatenation throws OutOfMemoryException We mostly tend to following the above best practice. Have a look at String vs StringBuilder But StringBuilder could throw OutOfMemoryException even when there is sufficient memory available. It throws OOM exception because it needs "continuous block...
{ "language": "en", "url": "https://stackoverflow.com/questions/363680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do I generate random integers within a specific range in Java? How do I generate a random int value in a specific range? The following methods have bugs related to integer overflow: randomNum = minimum + (int)(Math.random() * maximum); // Bug: `randomNum` can be bigger than `maximum`. Random rn = new Random(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4026" }
Q: How to access the Application[] collection from a WCF web service I used to use .ASMX web services, but I'm trying to move to WCF because it's the latest newest thing, and it's supposed to be better. Anyway, what I'm wanting to do is really really simple : create a webservice that empties the Application collection ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Two IDEs have different results My co-worker and I are working on the same project, but we use different IDEs. He uses Eclipse 3.4 and I use IntelliJ 8.0. Recently I advocated using EasyMock, which uses CGLIB, for some unit tests on our project. I have not seen any problem setting breakpoints in IntelliJ on the part...
{ "language": "en", "url": "https://stackoverflow.com/questions/363704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C#, Operator '*' cannot be applied to operands of type 'double' and 'decimal' This error should be a simple one but I cant seem to make it work. The problem lies in the fact that this very same code works earlier in the program. I don's see any reason for it to be sending an error on this instance and not the four p...
{ "language": "en", "url": "https://stackoverflow.com/questions/363706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Does a data-enabled radio group component exist that goes by ItemIndex? I'm replacing several components in one of my forms with data-enabled versions, and it was a bit of a surprise when my new TDBRadioGroup didn't link up with the numeric field it was assigned to. Turns out that instead of going by the ItemIndex ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to slide content opening up with jquery My designer handed me a design I'm not 100% sure how to do with jquery and css. I am basicly trying to allow a user to "slide" the footer up to reveal more conent. My html.. <div id="footer"> <div id="expandingFooter"> hidden content</div> content that is alw...
{ "language": "en", "url": "https://stackoverflow.com/questions/363718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Where should I store SSIS Data? I have a slow custom data source in a SSIS Dataa Flow Task.I have to run the package with multiple parameters If I want to upload data to a DB using SQL Data Destination(Bulk Insert) the connection times out If I write the data to a flat file I cannot run multiple instances of the pac...
{ "language": "en", "url": "https://stackoverflow.com/questions/363720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to persist List property in ASP.NET Custom Control? I have the following property in a custom control: List<myClass> _items; public List<myClass> Items{ get { return _items; } set { _items= value; } } In my codebehind, I add items to the collection as in... myCustomControl.items.Add(new myClass()); How...
{ "language": "en", "url": "https://stackoverflow.com/questions/363725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Where can I find the official description of Flex html-template and output folder structure? I'm looking for an official Adobe page explaining the ins and outs of the various directories used in Flex Builder, namely html-template, bin-debug and bin-release. There's a lot happening in these folder: folders get create...
{ "language": "en", "url": "https://stackoverflow.com/questions/363726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a simple way to determine type size in C#? Is there a way to say something like: sizeof(type)? Or type.Size? Right now I am looking at using code like: if (type.Equals(typeof(int))) return sizeof(int); else if (type.Equals(typeof(long))) return sizeof(long); etc, etc, for every single data type. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: static class instances unique to a request or a server in ASP.NET? public sealed class UserLoginSingleton { UserLoginCollection _userLoginCol = new UserLoginCollection(); UserLoginSingleton() { } public static UserLoginSingleton Instance { get { IDictionary it...
{ "language": "en", "url": "https://stackoverflow.com/questions/363730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Getting PartCover to work I want to try PartCover for code coverage. I'm running Visual Studio 2008 Professional with MSTest. The Professional Edition does not include the Team Testing tools, like Code Coverage. So, I'm trying PartCover, but I can't get it to work. In the PartCover.Browser I've selected the MSTest e...
{ "language": "en", "url": "https://stackoverflow.com/questions/363740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Windows Explorer directory as bundle I have been investigating for some time now a way to prevent my user from accidently entering a data directory of my application. My application uses a folder to store a structured project. The folder internal structure is critic and should not be messed up. I would like my user ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Disable DTD warning for Ant scripts in Eclipse? I'm using Eclipse Ganymede. Everything works fine, but I have an anal-retentive yearning for a warning-free Problems tab. Right now it (correctly) complains about my Ant scripts: "No grammar constraints (DTD or XML schema) detected for the document." Is there any wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/363768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: How to get the name of the component that's extending mine in ColdFusion? Let's say I have the following component called Base: <cfcomponent output="false"> <cffunction name="init" access="public" returntype="Any" output="false"> <cfset variables.metadata = getmetadata(this)> <cfreturn this> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting default value for function argument in actionscript 3 Is there any way that I can reference a var or const as the default value for a function argument in actionscript 3. I can define default values like null, string, int. function a( b = null ) { blah... } But what I want to do is function a( b = functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/363776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Architecture for an Auction Style Site Where would be a good place to find information on the underlying architecture for auction style sites? Preferably in ASP.Net. A: At least from the data architecture aspect, the Database Answers web site has some database diagrams that can usually help kickstart to thinking a...
{ "language": "en", "url": "https://stackoverflow.com/questions/363783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting the tab policy in Swing's JTextPane I want my JTextPane to insert spaces whenever I press Tab. Currently it inserts the tab character (ASCII 9). Is there anyway to customize the tab policy of JTextPane (other than catching "tab-key" events and inserting the spaces myself seems an)? A: You can set a javax.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/363784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Building an OCX with VS.NET? What happened to OCX's? Are they no longer possible to create with the latest tools? I need to create an ActiveX control that I can place in Word, PowerPoint and Excel documents. If I use VS.NET, I can only create a UserControl DLL with COM Interop, but I don't think I can add that using...
{ "language": "en", "url": "https://stackoverflow.com/questions/363787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.net: Weird web user control problem This is weird. I declare a web user control on a asp.net web page like so print("<%@ Register Src="~/Controls/blah.ascx" TagName="blahCtrl" TagPrefix="cc" %>"); I don't have problem with it until today in the code behind where it give me name blah is not declared error. does ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Program with C# front-end and Java back-end: Good or Bad Practice? My friend and I are having a disagreement over an application development issue. It's a simple production management application. According to my friend, the front-end stores data in XML, and a Java program will read the XML document, store it (at t...
{ "language": "en", "url": "https://stackoverflow.com/questions/363792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the best way to convert an existing php class into Java? I have been tasked with converting several php classes into java classes, which is quickly becoming a nightmare for me. I understand the basic language structure, it being similar to C. It is all of the function calls and class calls that seem to go no...
{ "language": "en", "url": "https://stackoverflow.com/questions/363805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Possible to setup SQL Managment Studio to show multiline fields when viewing multiline data? Normally it just puts multiline content on a one liner field and adds slightly smaller than normal tabs between text where the line breaks would normally be. I am using SQL Management Studio Express. A: I believe your only ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Exclude these words" feature How do I implement "Exclude these words" feature for a search appliation using Lucene? Thanks! A: therefor i can use the stopanalyzer: StopAnalyzer StopAnalyzer includes the lower-case filter, and also has a filter that drops out any "stop words", words like articles (a, an, the, et...
{ "language": "en", "url": "https://stackoverflow.com/questions/363809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC - Output HTML from code, better to use Response.OutputStream or StringBuilder I'm writing a asp.net MVC site and I have written some extensions to the Html class to generate some html for me. From within the extension method is it better to write directly to the Response.Output stream or have the extension meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/363814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I extract data and replace it with new code and save that as a new text? I have been trying to extract last six numbers of an URL in each line of the original text and add it to another code that must be added to the result text. There also need to remove some code of each line from the original text and rep...
{ "language": "en", "url": "https://stackoverflow.com/questions/363819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can you display a session timeout warning that is smart enough to handle multiple open browsers or tabs I have implemented a session timeout warning using javascript that simply asks the user if they want to extend their session or logout. The problem is that this is for an intranet portal where power users wil...
{ "language": "en", "url": "https://stackoverflow.com/questions/363833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: SQL User Defined Function Within Select I have a user defined function in SQL called getBuisnessDays it takes @startdate and @enddate and returns the number of business days between the two dates. How can I call that function within my select? Here's what I'd like to do.. SELECT getBusinessDays(a.opendate,a.closeda...
{ "language": "en", "url": "https://stackoverflow.com/questions/363838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: Why is there an option to create a separate class library for interfaces with business modules? In wcsf, it is possible to make a business module with a separate class library just for interfaces, if I tick the relevant box/boxes. What is the point in having a separate class library just for interfaces? Wouldn't thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/363842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Change the tab size on an element with word-wrap: pre? I have an element that is similar to a tag (because it has word-wrap: pre;) to display code on a website. The only problem is that the tab size is too large and causes the element to horizontally scroll often because it is of fixed width. Is it possible to chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/363845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Version Agnostic SQL Server Script/Statement that detects existence of a specific database Due to the packaged nature of the release, a SQL Server script (well more of a statement) needs to be created that can execute correctly on SQL Server 7.0 thru 2008 which can essentially achieve this: if exists(select * from s...
{ "language": "en", "url": "https://stackoverflow.com/questions/363848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: invalid types 'int[int]' for array subscript This following code gets this compile error: "invalid types 'int[int]' for array subscript". What should be changed? #include <iostream> using namespace std; int main(){ int myArray[10][10][10]; for (int i = 0; i <= 9; ++i){ for (int t = 0; t <=9; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do you handle off-site backups of terabytes of data? I have terabytes of files and database dumps that I need to backup off-site. What's the best way to accomplish this? I'm currently weighing rsyinc to Amazon EBS or getting an appliance (eg barracuda). I called a buddy of mine, and he said he uses backula to ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/363871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What does the "@" symbol do in PowerShell? I've seen the @ symbol used in PowerShell to initialise arrays. What exactly does the @ symbol denote and where can I read more about it? A: While the above responses provide most of the answer it is useful--even this late to the question--to provide the full answer, to wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/363884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "149" }
Q: WebView renders in the wrong location in my ScreenSaverView I've written a screen saver that displays a web page. It works exactly as I want it to on my main display, but in the preview and secondary displays, the web view is hanging off the top of the screen. Example (from preview): screen saver bug http://img.ski...
{ "language": "en", "url": "https://stackoverflow.com/questions/363889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VB.NET..... Loop help I am using My.Settings in visual studio 2008 to store information, for when the user runs the program again. I have that working fine... but as I am using 12 textboxes I don't want to write... my.settings.grade1 = textbox1.text for each one, and I am also making calculations using the stored in...
{ "language": "en", "url": "https://stackoverflow.com/questions/363892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best practice in cleaning up memory for iPhone apps? I have seen sample source code around that uses different ways of releasing/dealloc'ing objects, so I was wondering which way is deemed the "best" one. A few options on -dealloc: 1) Release objects - (void)dealloc { [obj1 release]; [obj2 release]; [sup...
{ "language": "en", "url": "https://stackoverflow.com/questions/363893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Passing Values between Web User Controls I've several web user controls on my asp.net page and I wanna pass values between them. For example : There is a dropDownList in one of them and when user selects any item from dropDownList, it can pass the selected value to the other user control which includes GridView to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/363899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Equivalent of an HTML multiple SELECT box in wxPython I'd like to create a ListBox in wxPython with the same semantics as a multiple select box in HTML. Specifically I'd like the following semantics * * When the user clicks on an entry in the list, all other entries become de-selected and the clicked entry bec...
{ "language": "en", "url": "https://stackoverflow.com/questions/363907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I use 'git rebase -i' to rebase all changes in a branch? Here's an example: >git status # On branch master nothing to commit (working directory clean) >git checkout -b test-branch >vi test.c >git add test.c >git commit -m "modified test.c" >vi README >git add README >git commit -m "modified README" Now I wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/363908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "86" }
Q: First and last measure dates for sets in MDX I'm looking for some guidance on how to approach an MDX query. My situation is that I have sales occuring, which make up the grain of the fact table, and are measures. I have a products dimension and a customer dimension. I also have a date dimension and a time dimension,...
{ "language": "en", "url": "https://stackoverflow.com/questions/363925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Approach to convert from org.joda.time.DateTime to java.util.Calendar Anyone done this and can share? I see an option or two but want to know what others have accomplished. A: According to joda-time documentation the preferred method to use is to call this: AbstractDateTime#toCalendar. A: You can also call Abstrac...
{ "language": "en", "url": "https://stackoverflow.com/questions/363930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How can you get a 4.2 release of g++/gcc for windows? How can you get a recent release, i.e. 4.2+, of g++/gcc for windows? Mingw's standard g++ is 3.4.5 which is 3 years old, released Nov 2005. Mingw have a 4.2 version but this is only in the Alpha stage. I cannot find a stable recent release of g++ for windows, sur...
{ "language": "en", "url": "https://stackoverflow.com/questions/363936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Basic: How is the session id created? Does IIS create the session id when a request is received and where is that saved (client or server)? How does server recognize that the request is coming from the same user/session? A: The answer to your first question is Yes -- if sessions are used, and Both. A cookie is a sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/363940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Python idiom to return first item or None I'm calling a bunch of methods that return a list. The list may be empty. If the list is non-empty, I want to return the first item; otherwise, I want to return None. This code works: def main(): my_list = get_list() if len(my_list) > 0: return my_list[0] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "412" }
Q: Best way to monitor services on a few servers with python What would be the best way to monitor services like HTTP/FTP/IMAP/POP3/SMTP for a few servers from python? Using sockets and trying to connect to service port http-80, ftp-21, etc... and if connection successful assume service is ok or use python libs to conn...
{ "language": "en", "url": "https://stackoverflow.com/questions/363968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Try Catch block I have the following code Try 'Some code that causes exception Catch ex as ExceptionType1 'Handle Section - 1 Catch ex as ExceptionType2 'Handle section - 2 Catch ex as ExceptionType3 'Handle section - 3 Finally ' Clean up End Try Suppose ExceptionType1 is thrown by the code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ templates and external function declarations I have this: template <typename T> class myList { ... class myIterator { ... T& operator*(); } } ... template<typename T> T& myList<T>::myIterator::operator*() { ... } That is giving me the following error: "expected initializer be...
{ "language": "en", "url": "https://stackoverflow.com/questions/363998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I make a Button with multiple content values? My goal is to make a Button that has two Content values. Imagine a Scrabble tile as a button: it has the large letter in the center and a small number in the lower right. This is the effect I am going for. I made a button that has two ContentPresenter objects ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# and WPF: Programmatic Control I'm learning WPF, and seem to have found something a little odd, which I can't find the reason to anywhere I've searched. I have a window with one checkbox on it called "chkTest". I have it set to be true by default. The following code is what I don't understand. Basically I'm tryi...
{ "language": "en", "url": "https://stackoverflow.com/questions/364007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# Regular Expressions with \Uxxxxxxxx characters in the pattern Regex.IsMatch( "foo", "[\U00010000-\U0010FFFF]" ) Throws: System.ArgumentException: parsing "[-]" - [x-y] range in reverse order. Looking at the hex values for \U00010000 and \U0010FFF I get: 0xd800 0xdc00 for the first character and 0xdbff 0xdfff f...
{ "language": "en", "url": "https://stackoverflow.com/questions/364009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is there a way to use ungreedy matching in JavaScript for regular expressions? I wonder if there is a way to use ungreedy matching in JavaScript? I tried the U modifer, but it doesn't seem to work. I want to write a small BBCode parser in JavaScript, but without ungreedy matching it isn't possible (at least as far a...
{ "language": "en", "url": "https://stackoverflow.com/questions/364014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: MVC and django fundamentals Pretty new to this scene and trying to find some documentation to adopt best practices. We're building a fairly large content site which will consist of various media catalogs and I'm trying to find some comparable data / architectural models so that we can get a better idea of the appro...
{ "language": "en", "url": "https://stackoverflow.com/questions/364015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Faster bulk inserts in sqlite3? I have a file of about 30000 lines of data that I want to load into a sqlite3 database. Is there a faster way than generating insert statements for each line of data? The data is space-delimited and maps directly to an sqlite3 table. Is there any sort of bulk insert method for adding ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: How to include Subversion revision number into Delphi project I'd like to have revision number of source code to Delphi's source code and exe version. What is the best way to do this automatically? I'd like to display the revision number in "About" screen and in the version info of the project. I'm using currently D...
{ "language": "en", "url": "https://stackoverflow.com/questions/364019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Running multiple virtual directories on IIS - any performance issues? I need to run 8-10 instances of my application on IIS 6.0 that are all identical but point to different backends (handled via config files, which would be different for each virtual directory). I want to create multiple virtual directories that p...
{ "language": "en", "url": "https://stackoverflow.com/questions/364030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight browser support does not seem to be ubiquitous? We have been using Adobe Flex for a major project but it's just too slow. We're considering switching to Silverlight. The problem seems to be that Silverlight is not as widely supported by browsers as Flex/Flash is. For example I tried to access the Silverl...
{ "language": "en", "url": "https://stackoverflow.com/questions/364035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a class protected for inheritance? I would like to do the same thing I do in Java with the final keyword. I tried to use the const keyword, but it doesn't work. How can I prevent other classes from inheriting from my class? A: "NonInheritable" for VB.NET MSDN A: In general you should mark your type wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/364038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: BEA Publisher Woes I'm using BEA's Publisher product with ALUI. I want to have a simple portlet that just displays Content Items that I've published, but after playing with it for a couple of hours, I find myself stuck. I have a Data Entry template that just takes a name and a file, and a presentation template asso...
{ "language": "en", "url": "https://stackoverflow.com/questions/364041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight performance We are considering switching from Adobe Flex to Silverlight because Flex is just too slow. I'm interested not in graphical performance, but computational performance and the speed at which it executes code. Does anyone have any anecdotes to share about their experience of Silverlight performa...
{ "language": "en", "url": "https://stackoverflow.com/questions/364042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What WPF book covers GetContainerForItemOverride and related in detail? What WPF book covers ItemsControl.GetContainerForItemOverride and related in detail? Additionally I would like to read about why TreeView overrides it and how IsItemItsOwnContainerOverride is related to it. A: I'm not sure what books are out th...
{ "language": "en", "url": "https://stackoverflow.com/questions/364053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Importing Excel into SS2000; Error on Field; DTS I'm trying to import an excel file in to a SQL Server 2000 database using DTS. This is nothing fancy, just a straight import. Where I work, we do this 1000 times a day. This procedure usually works without an issue but something must have changed in the file. I'm gett...
{ "language": "en", "url": "https://stackoverflow.com/questions/364054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does this unit test fail when testing DateTime equality? Using NUnit 2.2 on .NET 3.5, the following test fails when using DateTime.Equals. Why? [TestFixture] public class AttributeValueModelTest { public class HasDate { public DateTime? DateValue { get { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Why is the Internet Explorer Autocomplete feature disabled for all html forms on my website? When Internet Explorers AutoComplete is turned on for Forms the entries for each field in the HTML form should be cached and displayed as a prompt when the user starts entering content into the form the second time around. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Anyone used the Silverlight datagrid? We're thinking of building a major project around the Silverlight datagrid. If any has any stories, comments or opinions on their persona experience of developing with the Silverlight datagrid, then I'd love to hear them. A: Jon Galloway is a great resource on Silverlight. http...
{ "language": "en", "url": "https://stackoverflow.com/questions/364068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I make a structured reference absolute in excel 07? I have a table "A" with 2 columns "Foo" and "Bar". I have a formula with the structured reference A[Foo]. When I fill this formula horizontally I want the reference to stay A[Foo] but now, in the second column, the reference turns to A[Bar]. Is there a way to m...
{ "language": "en", "url": "https://stackoverflow.com/questions/364073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: WPF TreeView with horizontal orientation? What would be the bast way to change the orientation of the WPF treeview. I would like to work the expand-collapse-functionality to work left to right instead of top to down. I.e. when I click on on the expand button of a treenode I would its subnode to appear right of the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/364083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Import Emacs Keyboard Configuration Into Eclipse? In Eclipse, in the menu, I can go to Window -> Preferences -> Keys and set the Scheme to "Emacs." I can also click "Export" at the bottom-right hand side of the dialog to export a .CSV file containing a listing of my keyboard mappings. How do I re-import this configu...
{ "language": "en", "url": "https://stackoverflow.com/questions/364089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Getting access denied with GetEffectiveRightsFromAcl()..? I’m attempting to check the rights on a particular file for a specific trustee and am using the win32 API GetEffectiveRightsFromAcl(). When the file is accessible by a domain group, the function returns 5 (Access Denied) when a local account (admin or other)...
{ "language": "en", "url": "https://stackoverflow.com/questions/364096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Connect to Oracle DB from VB 2008 application without installing Oracle software? Imports System.Data.OleDb Public Class Log Private mConnectionString As String = "Provider=OraOLEDB.Oracle;Data Source=(DESCRIPTION=(CID=GTU_APP)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx)(PORT=1521)))(CONNECT_DATA=(SID=xxx)(...
{ "language": "en", "url": "https://stackoverflow.com/questions/364101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using grep with regular expression to filter out matches I'm trying to use grep with -v for invert-match along with -e for regular expression. I'm having trouble getting the syntax right. I'm trying something like tail -f logFile | grep -ve "string one|string two" If I do it this way it doesn't filter If I change...
{ "language": "en", "url": "https://stackoverflow.com/questions/364105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: What is your experience with Oracle's result caching feature? We've recently updated to Oracle 11g and our DBA has suggested using result caching to improve the performance of some of our queries. A quick search of Google shows there is some criticism of the feature and how it scales. Like any cache scheme, there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I add jars to Maven 2 build classpath without installing them? Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development. I have a pom.xml file that defines the dependencies for the web-app framework I want to use, and I can quickly generate starter projects from that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "736" }
Q: Database Constants in a Class If I have, say, a table of films which amongs other things has a int FilmTypeId field and a table of film types, with the id and a meaningful description along the lines of: * *1 - horror *2 - comedy *... Whats the best way of using that information in a C# class? currently I wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/364141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: C++ syntax help dealing with recursive definition (or so my compiler tells me) I'm building a game and I was compiling seeing what sort of errors were coming up and there is one there is very common and very puzzling to me: 1>c:\users\owner\desktop\bosconian\code\bosconian\ship.h(9) : error C2460: 'Ship::Coordinate'...
{ "language": "en", "url": "https://stackoverflow.com/questions/364146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Kowalski graph theorem proving I'm trying to use the Kowalski graph algorithm for resolution theorem proving. The description of the algorithm at http://www.doc.ic.ac.uk/~rak/ is silent on what to do about the large number of duplicate clauses it generates. I'm wondering if there's a well-known technique for dealing...
{ "language": "en", "url": "https://stackoverflow.com/questions/364148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to color highlight .htaccess files in Eclipse I spend some time editing configurations in .htaccess files across several projects in Eclipse. How would I go about telling Eclipse to auto color this file in a similar fashion as shell scripts or HTML? A: I found using the "Properties File Editor" seems to give a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do get the index of a table's column by using a structured reference in excel? I have a table with 3 columns. I want to write a formula that, given a structured reference, returns the index of the column. This will help me write VLookup formulas using the structured reference. So, for example, for the table MyTa...
{ "language": "en", "url": "https://stackoverflow.com/questions/364159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Rails - setting multiple layouts for a multipart email with mailer templates So Rails 2.2 added mailer layouts, which is great, except that I can't figure out how to make them work when I'm sending a multipart email..it's wrapping my mail content with the same layout for both the text/plain version and the text/html...
{ "language": "en", "url": "https://stackoverflow.com/questions/364162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I call a script when a table's data changes in Sybase 12.5? OS is UNIX. I'd like to call a shell script to do external validation when the data in a table changes. Is it possible, and if so how. Many thanks. Updated: Ideally, I would like to call my external script once for any discrete operation: i.e. * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show SOME invisible/whitespace characters in Eclipse A long while back I transitioned to doing all my web application development in Eclipse from BBEdit. But I miss one little feature from BBEdit. I used to be able to show invisible characters like tabs but not show other invisibles like spaces. I know that I can bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/364168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "180" }
Q: Memory leaks in newly created Cocoa app when using Garbage Collection? I decided to use the GC for memory management for my latest Cocoa project, and I discovered something interesting--if I create a brand new Cocoa app project in Xcode, turn GC to supported or required (I tried both), build, and run it it leaks, it...
{ "language": "en", "url": "https://stackoverflow.com/questions/364172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using java.io.Serializable when implementing a tree? I have ANOTHER serialization question, but this time it is in regards to Java's native serialization import when serializing to binary. I have to serialize a random tree that is generated in another java file. I know how serialization and deserialization works, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's supposed to happen when using an object after FreeAndNil? In my Delphi7 this code var MStr: TMemoryStream; ... FreeAndNil(MStr); MStr.Size:=0; generates an AV: Access violation at address 0041D6D1 in module 'Project1.exe'. Read of address 00000000. But somebody insists that it should not raise any exception...
{ "language": "en", "url": "https://stackoverflow.com/questions/364184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Right way of working with connectMode for VS add-ins Can someone point me to a guide on how to interpret the connectMode parameter that gets passed when a VS add-in is loaded? A: I'd suggest checking out Carlos Quintero's article discussing this as well as the documentation on the enumeration.
{ "language": "en", "url": "https://stackoverflow.com/questions/364185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you register a Win32 COM DLL file in WiX 3? I found an example on registering DLLs, Registering an Assembly for COM Interop in a MSI file with the Windows Installer XML toolset., and WiX complains about the "AssemblyRegisterComInterop" attribute. I removed that and changed the "Assembly" attribute to win32, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/364187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Creating a Metatable table in a database Does anyone have any suggestions for creating meta tables in a database? These tables would be used to emulate tables in a database, using a database. This is for when you want to easily add structure (more fields) to a database on the fly without having to worry about all th...
{ "language": "en", "url": "https://stackoverflow.com/questions/364189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are Finite State Automata and why should a programmer know about them? Erm - what the question said. It's something I keep hearing about, but I've not got round to looking into it yet. (updated) I could look up the definition... but why not (as pointed out by @erikson) get insight into your real experiences an...
{ "language": "en", "url": "https://stackoverflow.com/questions/364193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Redemption Shared Folder Problem when moving to Outlook 2007 We currently have an application that works with Outlook 2003. In order to get the owner of a shared contact folder, we simply call: Redemption.RDOSessionClass.GetFolderFromID() and then took that folder and got the RDOFolder.Store.Name property. However, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Any experience with the Visual Studio Shell? Our company is considering using the Visual Studio Shell for one of our products. Does anyone have any experience using it? Was it easy to work with? Did it save time? Are there any things that you weren't able to get it to do? Have you shipped anything with it? A: A...
{ "language": "en", "url": "https://stackoverflow.com/questions/364206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: variable or field declared void I have a function called: void initializeJSP(string Experiment) And in my MyJSP.h file I have: 2: void initializeJSP(string Experiment); And when I compile I get this error: MyJSP.h:2 error: variable or field initializeJSP declared void Where is the problem? A: It for example hap...
{ "language": "en", "url": "https://stackoverflow.com/questions/364209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: How can I have multiple instances of webkit without sharing cookies? I have an app that creates a couple of WebView instances and I'd like to have them operate as independently as possible. At the very least, I don't want them sharing cookies. A quick google search gave me results liking "you can't." I'm hoping so...
{ "language": "en", "url": "https://stackoverflow.com/questions/364219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Problem with table JOIN in MySQL and aggregation I have three tables. This query will write down the right answer (x-lines for btv.id_user with appropriate btv.cas and race.id_zavod SELECT `btv.id_user`, `btv.id_zavod`,`btv.cas` FROM `btv` JOIN `btu` ON `btv.id_user` = `btu.id_user` JOIN `race` ON 'btv.id_zavod' = `...
{ "language": "en", "url": "https://stackoverflow.com/questions/364230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do YOU reduce compile time, and linking time for Visual C++ projects (native C++)? How do YOU reduce compile time, and linking time for VC++ projects (native C++)? Please specify if each suggestion applies to debug, release, or both. A: These solutions apply to both debug and release, and are focused on a codeb...
{ "language": "en", "url": "https://stackoverflow.com/questions/364240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Creating a PDF from Java and Displaying it in a webpage Currently I am using FOP to generate a pdf from java code and an xslt document. The FOP spits out a PDF file that is displayed (embeded) into a webpage. The documents can range between one and several thousand pages long, and it can take some time to generate t...
{ "language": "en", "url": "https://stackoverflow.com/questions/364247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to Deserialize XML document How do I Deserialize this XML document: <?xml version="1.0" encoding="utf-8"?> <Cars> <Car> <StockNumber>1020</StockNumber> <Make>Nissan</Make> <Model>Sentra</Model> </Car> <Car> <StockNumber>1010</StockNumber> <Make>Toyota</Make> <Model>Corolla</Model> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "531" }
Q: How to create the inf file for a smart device cab project from command line? I am trying to get my continuous integration to create build the smart device cab project from within msbuild on the command line. Everything that I have found says to use the inf file (with cabwiz) created when you build the project from w...
{ "language": "en", "url": "https://stackoverflow.com/questions/364256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What single characteristic is most important for a good routine? Routines, procedures, methods - whatever you call them, they are important building blocks for us developers. What single characteristic would you rate as the most important one? (By providing one characteristic per answer, it is possible to vote for t...
{ "language": "en", "url": "https://stackoverflow.com/questions/364259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }