text
stringlengths
8
267k
meta
dict
Q: C++ enum to unsigned int comparison I found this in the code I'm working on at the moment and thought it was the cause of some problems I'm having. In a header somewhere: enum SpecificIndexes{ //snip INVALID_INDEX = -1 }; Then later - initialization: nextIndex = INVALID_INDEX; and use if(nextIndex != INVAL...
{ "language": "en", "url": "https://stackoverflow.com/questions/301622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: spring BeanIsAbstractException I'm trying to load spring beans using XmlWebApplicationContext setConfigLocations method. However, I keep getting a BeanIsAbstractException I know that the bean is abstract, I have it configured this way, so Spring should know not to try to instantiate it. I'm using Spring2.0.8.jar ...
{ "language": "en", "url": "https://stackoverflow.com/questions/301624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I preserve UTC in a CDateTimeCtrl? My MFC application has a dialogue with a date picker. When I initialise this dialogue, I need to call CDateTimeCtrl::SetTime() and I'm trying to decide what argument to give it. I have an array of integers representing a year, month, day, hour and minute in UTC. Here's t...
{ "language": "en", "url": "https://stackoverflow.com/questions/301626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP HttpRequest I need to perform a HTTP GET from PHP. More specifically, from within /index.php I need to get the content of /trac/ and /svn/, find the "ul" element and then render then inline on the index.php. /trac and /svn are relative URLs and not filesystem folders. http://myserver/trac and http://myserver/sv...
{ "language": "en", "url": "https://stackoverflow.com/questions/301637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Filemaker & lasso: viable web application? We have a huge web application running on lasso, mainly because it first was a huge internal Filemaker database, that was to be opened to the public as a web app. The web application doesn't use Filemaker though, it runs on a MySQL database, recreated every day. The only re...
{ "language": "en", "url": "https://stackoverflow.com/questions/301639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Moving Silverlight 2 popup windows We are using popup windows in a Silverlight 2 application; these can be moved in the standard way by clicking on the title bar and dragging. If the title bar is dragged out of site behind the browser chrome, the window can no longer be moved. We have users that consider this probl...
{ "language": "en", "url": "https://stackoverflow.com/questions/301641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ Visual Studio Runtime Error Can anyone explain to me what this means? "Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convent...
{ "language": "en", "url": "https://stackoverflow.com/questions/301655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Break points aspx pages How do you set a break points in server tags in .aspx pages. e.g. <% dim breakhere =new object() %> The web application is running in debug mode with the <compilation debug="true" ... in the web.config. But the page says: The break point will not currently be hit. No symbols have been l...
{ "language": "en", "url": "https://stackoverflow.com/questions/301658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Regex to replace text only when occurs outside of two strings? I would like to replace "&gt" with ">" and "&lt" with "<" but only when they occur outside "<pre>" and "</pre>". Is this possible? $newText = preg_replace('&gt', '>', $text); I would be using the preg_replace in PHP as above. A: This isn't really an an...
{ "language": "en", "url": "https://stackoverflow.com/questions/301667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Programming simple drawing application to do some visualization of data I would like to include rectangles, circles and text within my graphs. Does anyone know a Java based framework (maybe similar to very basic Powerpoint functionality) that can export SVG graphics? A: Have a look at Java Advanced Imaging (JAI) an...
{ "language": "en", "url": "https://stackoverflow.com/questions/301669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 3d Graphics for a Web Based Application I've to create a Web Based Application, that amongst other things, includes the following tasks * *Loading a 3D model from a database. *Display the 3D Model. *Doing Inverse Kinematics computations to generate the series of steps for the model to move from an initial to fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/301676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Embedding a winform within a winform (c#) Is it possible to embed a windows form within another windows form? I have created a windows form in Visual Studio along with all its associated behaviour. I now want to create another windows form containing a tab view, and I want to embed the first windows form into the ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/301678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: One or more parameters required to run the report have not been specified I'm trying to print a RDLC file directly without showing Microsoft Report Viewer, I have followed the MSDN's example but now, every time I call the "Render" method of my instance of LocalReport class it throws the "One or more parameters requi...
{ "language": "en", "url": "https://stackoverflow.com/questions/301679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How does PHP5 'clone' work? Edit: This behaviour is reproducible with query globals on. I have the following: $_SESSION['query_key'] = $_GET['query_key']; print($query_key); Vs. $_SESSION['query_key'] = clone $_GET['query_key']; print($query_key); The former prints out the value of $query_key, while the la...
{ "language": "en", "url": "https://stackoverflow.com/questions/301681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does automatic injection of log-object not always work in grails? In the grails-framework some objects are using log. This is normally injected by grails. It works on execution of grails test-app. But the same test (an integration-test) fails on execution of grails test-app -integration. What goes wrong here and...
{ "language": "en", "url": "https://stackoverflow.com/questions/301683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQL summarize min/max active for time ranges This is an SQL problem I can't wrap my head around in a simple query Is it possible? The data set is (letters added for ease of understanding): Start End 10:01 10:12 (A) 10:03 10:06 (B) 10:05 10:25 (C) 10:14 10:42 (D) 10:32 10...
{ "language": "en", "url": "https://stackoverflow.com/questions/301695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Show loading information while js and css are downloaded I have a web app that is heavily loaded in javascript and css. First time users log in it takes some time to load once it is downloading js etc. Then the caching will make everything faster. I want my users to be aware of this loading time. How can I add some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/301696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Alfresco + Opsoro Setup I want to set up a content mgmt system. And i feel the combination of Alfresco with Opsoro is a gud one. Any other suggestions? visit Alfresco & Opsoro A: Disclaimer - I work for Alfresco. Just wanted to point out - I recently created a wiki page that tracks the different UIs availabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/301698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible for C preprocessor macros to contain preprocessor directives? I would like to do the equivalent of the following: #define print_max(TYPE) \ # ifdef TYPE##_MAX \ printf("%lld\n", TYPE##_MAX); \ # endif print_max(INT); Now the #ifdef or any nested preprocessor directive is not allowed as far as...
{ "language": "en", "url": "https://stackoverflow.com/questions/301711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: how do i create a strong named interop dll for shdocvw.dll I have a Browser Helper Object project in c# that (obviously) references shdocvw.dll. I think I want to create a strongly named interop dll for shdocvw.dll. How do I do this - I've seen a bunch of suggestions out there with aximp.exe and tlimp but I'm not cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/301713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: corrupted ajax result I am using the following html page: <html> <head> <title>AJAX Example</title> <meta http-equiv="Content-Type" content="text/html"; charset="iso-8859-1"> </head> <script language="JavaScript" src="ajaxlib.js"></script> <!--define the ajax javascript library--> <body> Click this <a href="...
{ "language": "en", "url": "https://stackoverflow.com/questions/301714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DataContext Binding and Refresh My scenario is: I have a WPF Window with 3 data-bound text boxes SettingsUI : Window <Grid Name="SettingsUIGrid1"> <TextBox Text="{Binding val1}" .... <TextBox Text="{Binding val2}" .... <TextBox Text="{Binding val3}" .... </Grid> In the constructor I do this: SettingsUI...
{ "language": "en", "url": "https://stackoverflow.com/questions/301716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Style ancestor element of form input:focus (jQuery) I have a form with a DIV, 3 INPUTS, each INPUT sits within a LABEL element. I would like to change the background image of the DIV element when focusing on each INPUT. I can't move back up the DOM to fix this with CSS, so could someone suggest a few lines of jQuery...
{ "language": "en", "url": "https://stackoverflow.com/questions/301722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: To get the index of the TR I need to find out the position of the TR. Actually, I got the index of the TD which is 291, But I need to get the index of the TR contains the TD. We can get the innerHTML by document.getElementsByTagName("td")[291].parentNode.innerHTML.. How to get the index of that parentNode I mean th...
{ "language": "en", "url": "https://stackoverflow.com/questions/301725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 404 Hijacking Certain malware such as AVG hijack 404 pages in order to display a page in the browser riddled with their own ads. The only work around I've found is to abandon 404 http status codes for custom error pages in my webapp. Is there any other work around? Edit: Anybody know of any other toolbars/programs t...
{ "language": "en", "url": "https://stackoverflow.com/questions/301750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I return to the start of a line in a console? How can I return to the start of a line and overwrite what has already been output on the console? The following does not appear to work: System.out.print(mystuff+'\r'); A: My guess (And it is a guess) would be that '\r' does work, but the console you're using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/301759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Post Build Events Customization In Visual Studio Is there a way to customize the post build event macros, I would like to move the new assembly to a sub folder in the same directory named by the version of the assembly i.e. copy $(TargetDir)$(TargetFileName) $(TargetDir)$(ASSEMBLYVERSION)\$(TargetFileName) However t...
{ "language": "en", "url": "https://stackoverflow.com/questions/301765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mutability and Reference of PHP5 GET Variables I have the following in a page e.g. /mypage?myvar=oldvalue $_SESSION['myvar'] = $_GET['myvar']; $myvar = 'a_new_string' Now $_SESSION['myvar'] has the value 'a_new_string' Is this by design? How can I copy the value of 'myvar' rather than a reference to it? A: It's a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/301766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery email validation requirements I'm using the jQuery.Validation plugin for client side validation, and among other things I validate email addresses. Now I also want to validate on the server side (for users without javascript etc). For lack of better ideas I started on a regex, but quite soon I realized that I...
{ "language": "en", "url": "https://stackoverflow.com/questions/301769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What is the format of xml context definition file that XmlApplicationContext(sFileName) will read? All the examples that I can search online use the App.Config mode of specifying the context definition retrieved by contextToGetSprungObjects = ContextRegistry.GetContext(contextname) I want to use contextToGetSprun...
{ "language": "en", "url": "https://stackoverflow.com/questions/301770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET MVC Storefront VB Port? LazyList in particular I am using Rob Connery's excellent MVC Storefront as a loose basis for my new MVC Web App but I'm having trouble porting the LazyList code to VB.NET (don't ask). It seems that VB doesn't allow the GetEnumerator function to be specified twice with only differing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/301772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: concatenating many email files with unix utils I would like to know if there is any easy way to print multiple emails(about 200) so that they continue on as opposed to printing one per page. I have tried with thunderbird and evolution and this does not seem possible. Would concatenating the individual mail files wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/301776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server 2008 CAL I need to purchase SQL Server 2008 Standard edition, because it's features fit what I need. On the features page, it says it can handle 32,767 user connections, but how does that connect with CALs? What are CALs and how can they affect a project? A: Also, the use of "multiplexing" is not allowed...
{ "language": "en", "url": "https://stackoverflow.com/questions/301777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MySQL - Using COUNT(*) in the WHERE clause I am trying to accomplish the following in MySQL (see pseudo code) SELECT DISTINCT gid FROM `gd` WHERE COUNT(*) > 10 ORDER BY lastupdated DESC Is there a way to do this without using a (SELECT...) in the WHERE clause because that would seem like a waste of resources. A: -...
{ "language": "en", "url": "https://stackoverflow.com/questions/301793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "195" }
Q: Workaround for lack of 'nameof' operator in C# for type-safe databinding? There has been a lot of sentiment to include a nameof operator in C#. As an example of how this operator would work, nameof(Customer.Name) would return the string "Name". I have a domain object. And I have to bind it. And I need names of prope...
{ "language": "en", "url": "https://stackoverflow.com/questions/301809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: How to select a related group of items in Oracle SQL I have some data of the form Key ID Link 1 MASTER 123 2 AA 123 3 AA 123 4 BB 123 5 MASTER 456 6 CC 456 I would like to be able to select in the same select all linked items matching the selection ...
{ "language": "en", "url": "https://stackoverflow.com/questions/301817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you determine if something should go below your web path or inside your web path? I'm wondering if there's some kind of criteria that can be used to determine where a script or file should go. A: If you don't mind the possibility that anyone might be able to see the contents then put it inside the web path. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/301826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: UnitTest how do you organise your testing files? Currently, I am splitting all my tests by package (projects). So if I have 12 projects, I will create 1 more project for Unit Test with 12 classes that will test all my package. Do you do the same way or do you have 1 testing class by class? How do you organize all y...
{ "language": "en", "url": "https://stackoverflow.com/questions/301839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Unit testing method that uses UI controls I'm currently writing some methods that do some basic operations on form controls eg Textbox, Groupbox, these operations are generic and can be used in any application. I started to write some unit tests and was just wondering should I use the real form controls found in Sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/301844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Set selected value in SelectList after instantiation Am I right to think that there is no way to set the selected value in the C# class SelectList after it is created? Isn't that a bit silly? A: Because this is such a high result in Google, I'm providing what I found to work here (despite the age): If you are using...
{ "language": "en", "url": "https://stackoverflow.com/questions/301854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: What technology to get NTFS access rights in C? I am thinking hard about how to play with access rights on several platforms. Now I am reaching Microsoft Windows and permissions on NTFS files/directories. I must say that I am working in C language. My question is pretty general. I have a username and a file path. Do...
{ "language": "en", "url": "https://stackoverflow.com/questions/301855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to know if a user has administrative privileges from a VBScript I need to check whether the user executing the script has administrative privileges on the machine. I have specified the user executing the script because the script could have been executed with a user other than the logged on using something ...
{ "language": "en", "url": "https://stackoverflow.com/questions/301860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Howto add dynamic search parameters to Sharepoint search? So our scenario is this: We have multiple Sharepoint sites that are created dynamically on a "as requested" basis. Basically there's a new site for each new project. Now, for every site we want to add a search clause that says that only contents with a metada...
{ "language": "en", "url": "https://stackoverflow.com/questions/301865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to find good looking font color if background color is known? There seem to be so many color wheel, color picker, and color matcher web apps out there, where you give one color and the they'll find a couple of other colors that will create a harmonic layout when being used in combination. However most of them fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/301869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "86" }
Q: Reading e-mail without Outlook app open Thats what I am using to read e-mail using C#: outLookApp.NewMailEx += new ApplicationEvents_11_NewMailExEventHandler(outLookApp_NewMailEx); Outlook.NameSpace olNameSpace = outLookApp.GetNamespace("mapi"); olNameSpace.Logon("xxxx", "xxxxx", false, true); Outlook.M...
{ "language": "en", "url": "https://stackoverflow.com/questions/301882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Printing the stack trace in C++ (MSVC)? In my C++ application (developed with Visual Studio 2003) and Qt4, I'd like to print the stack trace from a specific line of code, either to the console output or into a file. What would it take ? Is Qt of any help to do this ? A: It's not in the public Qt API, but if you loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/301892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Eclipse Software Updates unable to satisfy dependency Recently, my Eclipse 3.4 installation started complaining while trying to update installed software. I normally have Automatic Updates switched on, so this is particularly annoying. Updates are found, but I am unable to install them because eclipse is unable to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/301896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Count selectlist items (count IEnumerable) As you can see here and here I'm not a good friend of asp.net MVC's SelectList. This time I'm wondering how to count the items in it. I want to show a label instead of a dropdown if the possible items don't offer any choice (items.count <2). --EDIT-- Although Will's answer...
{ "language": "en", "url": "https://stackoverflow.com/questions/301918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Trying to upload a 1M file locally and i get a Fatal Error "Fatal error: Allowed memory size of 31457280 bytes exhausted (tried to allocate 9828 bytes)". This is the error i get but I am only trying to upload a 1mb image. I have increased the memory limit in php.ini and the execution time. I am trying this on a loca...
{ "language": "en", "url": "https://stackoverflow.com/questions/301922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python: urllib/urllib2/httplib confusion I'm trying to test the functionality of a web app by scripting a login sequence in Python, but I'm having some troubles. Here's what I need to do: * *Do a POST with a few parameters and headers. *Follow a redirect *Retrieve the HTML body. Now, I'm relatively new to pyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/301924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Is there a good way to store an array in a MOSS custom content type? I need to store an array in a custom content type in MOSS. This will always be hidden, only used programmatically. Throughout the lifecycle of the list item, I will be adding values to the array. My array may look like this after a while: value...
{ "language": "en", "url": "https://stackoverflow.com/questions/301934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL: adding current year as a default value for a field 'year' I have the following table in MySQL (version 5): id int(10) UNSIGNED No auto_increment year varchar(4) latin1_swedish_ci No title varchar(250) latin1_swedish_ci Yes NULL body ...
{ "language": "en", "url": "https://stackoverflow.com/questions/301937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Tips for writing security classes for user authentication and authorisation I have a bunch of objects in my application (Organisations, Individuals, Orders, etC) and I need a nice clean way to decide which users can and can't view/edit these objects. User have a range of permissions such as 'Can edit own contacts' a...
{ "language": "en", "url": "https://stackoverflow.com/questions/301948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: find a Particular product present in a remote system or not Trying to find the product is installed in remote pC or not, it takes long time to execute, is there any ways we can achieve this faster. //usage: //uninstall4("hostname", "productname", "{AC9C1263-2BA8-4863-BE18-01232375CE42}", "10.0.0.69"); pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/301956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Vector iterator not dereferencable I have an abstract base class called Shape from which both Circle and Rectangle are derived, but when I execute the following code in VS 2005 I get the error Debug assertion failed. At the same time I have not overloaded == operator in any class Expression:Vector iterator not deref...
{ "language": "en", "url": "https://stackoverflow.com/questions/301959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: SignalAndWait for lock-context I have a manager class that produces tasks for a threadpool, and each thread is supposed to do a call back once they are finished. I use locks to handle variables and fields, and signals to handle interthread communications. What I'm looking for is a way of exiting the current lock() a...
{ "language": "en", "url": "https://stackoverflow.com/questions/301960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to periodically remove a set of records with LINQ to SQL This is my first crack at a method that is run periodically during the lifetime of my ASP.NET application to clean up expired sessions stored in my database. It seems to work pretty well, but the software engineer in me doesn't feel "right" about this...
{ "language": "en", "url": "https://stackoverflow.com/questions/301965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where are the Icons included with Visual Studio? I heard that Visual Studio came with an Image Library, but I can't find it anywhere. Does anyone know where it is? A: Visual Studio 2005: C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\VS2005ImageLibrary\VS2005ImageLibrary A: Visual Studio 2019 Community C...
{ "language": "en", "url": "https://stackoverflow.com/questions/301968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "89" }
Q: good resources for learning Orca have downloaded Orca to edit an MSI file. I want to remove some banner text during the installation. I have managed to do this to the MSI and saved it with the MSI. However am having problems in saving a template and then applying that to subsequent installers. Have looked at the hel...
{ "language": "en", "url": "https://stackoverflow.com/questions/301979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best (free) Font Explorer for Windows? I am looking for an alternative to my old "Font Navigator" that I... borrowed... from the CorelDraw Suite :-) Googling for it, took me to hundreds of pages with old software, so I hope to find a quick idea from here (waiting for FontExplorer X from Linotype). Which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/301982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you preserve HTML in a jQuery AJAX request? I am working on a project that I want to implement AJAX, and I have decided on jQuery as a JavaScript Library. Here is the HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="h...
{ "language": "en", "url": "https://stackoverflow.com/questions/301983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Export to Excel in Asp.net MVC I am working on an ASP.NET MVC application where I need to export data to an excel spreadsheet. Previously, in webforms apps, I used some code I found to render a GridView as an excel-compatible file. This was quite handy. I was wondering what the quickest/most effective method would...
{ "language": "en", "url": "https://stackoverflow.com/questions/301986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: When to use locking in application scope I am wondering if I need to lock some code created in the application scope. If I create an object say userDAO.cfc in application scope so its available to all pages. Then if I have a method in that object say getUserInfo(userID) that would be called in different parts of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/301988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I set a ODBC .DSN file to allow it to access any database in Postgresql? I'm writing an MFC App to automatically configure Postgresql with ODBC for use by another app. The idea being that the user runs the app and it automatically creates the database and the tables within it. My problem is that when I set up...
{ "language": "en", "url": "https://stackoverflow.com/questions/301989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What’s the simplest way to call Http POST url using Delphi? Inspired by the question What’s the simplest way to call Http GET url using Delphi? I really would like to see a sample of how to use POST. Preferably to receive XML from the call. Added: What about including an image or other file in the post data? A: Aga...
{ "language": "en", "url": "https://stackoverflow.com/questions/301991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: SSRS Report Builder - Issues From Experience? I'm looking into the idea of rolling out the web-based SSRS Report Builder to our end users to allow them to create their own reports against our production application databases. From what I have seen so far, this tool is easier to use than the VS Biz Intel Studio repo...
{ "language": "en", "url": "https://stackoverflow.com/questions/301992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Write large file I try to write to a large file, but it seems like it does not work for files larger than 2GB. I have tried with boost::iostreams::file_sink. Is this just a limit with the boost stream? Is there some other way I can write a large file on Win64 and win32? A: This depends on: * *The file system whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/301995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: SharePoint: programmatically move documents between document libraries What's the best way to move a document from one doc library to another? I don't care about version history or preserving CreatedBy and ModifiedBy metadata... SPList lib1 = (SPDocumentLibrary) web.Lists["lib1"]; SPList lib2 = (SPDocumentLibrary) w...
{ "language": "en", "url": "https://stackoverflow.com/questions/301999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: sql server 2005 vss writer service is not installed. How do I fix I attempted to update sql server 2005 with SP2. I get a failure due to not starting vss writer. When I go into services, I see that vss writer is not installed. (not even listed in services). When I check my other redundant servers, I see that vss...
{ "language": "en", "url": "https://stackoverflow.com/questions/302002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Accessing an SDF SQLServer Mobile file from Java Here at work we want to access the data inside a .sdf file generated in a PDA with SQLServer Mobile Edition. We use the SqlJDBC4 packet for JDBC but can't get into the server. We know it's running because we can telnet into it, but from the Java code we just get once ...
{ "language": "en", "url": "https://stackoverflow.com/questions/302016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Browsing and editing saved form data in Firefox Is there a way to browse and edit/delete saved form entries in Firefox? I know I can: * *Delete all form data, using the Clear Private Data dialog; *Delete specific entries in a form using shift-delete when the cursor is over them (*). I want is way to see all save...
{ "language": "en", "url": "https://stackoverflow.com/questions/302017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: SQL - Need to find duplicate records but EXCLUDE reversed transactions I have a table of transactions which will occasionally have duplicate entries. If/When an admin finds these duplicate entries, they will reverse the transactions, therefore creating a negative value (but the original duplicate still remains due t...
{ "language": "en", "url": "https://stackoverflow.com/questions/302022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to create a form to edit a one to many relationship? Using MS Access 2007, I am creating a student management database. I have tables for: * *Students *Courses *CourseSection What I needed is a way to assign students to a course section. So I created a table that links students and sessions: * *Studen...
{ "language": "en", "url": "https://stackoverflow.com/questions/302025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Measuring Java execution time, memory usage and CPU load for a code segment For a particular segment of Java code, I'd like to measure: * *Execution time (most likely thread execution time) *Memory usage *CPU load (specifically attributable to the code segment) I'm a relative Java novice and am not familiar wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/302026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Where can i get c++ standard manual? Where can i get c++ standard manual? Is that free? DUPLICATE: Where can I look at the C++ standard A: AFAIK, ISO standards are NOT free
{ "language": "en", "url": "https://stackoverflow.com/questions/302031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Exception when casting from concrete class to interface in LINQ query I have a class SomeClass, which can populate itself from a datarow in it's constructor. This class implements IInterface. However, when I execute the code below: Dim fpQuery As IEnumerable(Of IInterface) = _ From dr As DataRow In DataLayer.Som...
{ "language": "en", "url": "https://stackoverflow.com/questions/302032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Singleton vs Cache ASP.NET I have created a Registry class in .NET which is a singleton. Apparently this singleton behaves as if it were kept in the Cache (the singleton object is available to each session). Is this a good practice of should I add this Singleton to the Cache? + do I need to wacth out for concurrency...
{ "language": "en", "url": "https://stackoverflow.com/questions/302037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: javascript flashing effect after you answer a question, or when you cannot vote down and close the warning does anybody know any resources that I can refer to? A: I believe you are referring to the JQuery FadeOut effect (since Stackoverflow uses JQuery) A: Stackoverflow uses the JQuery library, and it uses the fad...
{ "language": "en", "url": "https://stackoverflow.com/questions/302046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the difference between And and AndAlso in VB.NET? In VB.NET, what is the difference between And and AndAlso? Which should I use? A: AndAlso is much like And, except it works like && in C#, C++, etc. The difference is that if the first clause (the one before AndAlso) is true, the second clause is never evalu...
{ "language": "en", "url": "https://stackoverflow.com/questions/302047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "283" }
Q: How can I disallow use of a application feature based on if the device is a 3G or Non-3G device? I want to allow only users with a 3G phone to use a particular GPS function. How do I run a check on the device before allowing that feature to be used? A: The following code with allow you to determine the exact devic...
{ "language": "en", "url": "https://stackoverflow.com/questions/302064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SSRS Report , Dynamic selection of fields I want to create a report where my report's fields should change according to my input parameter values. For example, if I select 2 months, there should be 2 fields in result, having month wise calculation. If I select 3 weeks, there should be 3 fields each for each weeks ...
{ "language": "en", "url": "https://stackoverflow.com/questions/302069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to import Eclipse syntax highlighting profile in Netbeans for Java projects? I have to use both IDEs and I would like to use the Eclipse style of syntax highlighting in Netbeans. Does any one know how to import it (or change any configuration file)? I've already set Netbeans to use the Eclipse key bindings. Is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/302076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I force SqlDataSource to use varchar parameters? I'm using a SqlDataSource to populate my GridView, because the two seem to be so tightly coupled together. Since this grid shows results of a search, I have a dynamic sql string being written in my codebehind that references parameters I pass in, such as below:...
{ "language": "en", "url": "https://stackoverflow.com/questions/302082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I create a thread that can modify the user interface, and that I can abort? I have a lengthy user-interface operation on my form which is triggered whenever an event is fired. Rather than have the UI block while the operation takes place, I'd like to perform the operation in another thread, and abort that threa...
{ "language": "en", "url": "https://stackoverflow.com/questions/302086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to implement (UI-wise) a button I am designing the (G)UI of a program, and have stumbled across a problem; The program will convert a number into different units, and the layout of a unit been converted to is: [Unit name (when clicked gives information)] [Special status, if any] [Output in textfield that can als...
{ "language": "en", "url": "https://stackoverflow.com/questions/302087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How stable is the git plugin for eclipse? I was intending to have a play with git, and was wondering if anyone had used the git plugin for eclipse I see it's at version 0.3.1, and was wondering if anyone knew how stable it was / any gotchas? Update: If you are using a recent version of Eclipse, your Help menu has a...
{ "language": "en", "url": "https://stackoverflow.com/questions/302089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "166" }
Q: Source Control for different teams? Need recommendations for this... I have 2 teams * *Enterprise SOA development with InfoPath 2003, BizTalk 2006, MSCRMv3, custom .net2 website and a bunch of webservices using VSStudio 2005 with TFS. *Web Team focused on public facing websites - using Adobe Suite, VSStudio 2005...
{ "language": "en", "url": "https://stackoverflow.com/questions/302090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Expandable rows on a Gridview I am seeking insight on how to have each row in a Gridview expand to show a DIV or PANEL that has a form of elements, i.e. a simple form of textboxes, etc. I don't need a nested Gridview showing results or using DynamicPopulate. I have tried some techniques from a DataGrid Expandable Ro...
{ "language": "en", "url": "https://stackoverflow.com/questions/302094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I return NULL from a generic method in C#? I have a generic method with this (dummy) code (yes I'm aware IList has predicates, but my code is not using IList but some other collection, anyway this is irrelevant for the question...) static T FindThing<T>(IList collection, int id) where T : IThing, new() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/302096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "643" }
Q: What causes an application pool in IIS to recycle? I have been searching for info on this to no avail. The context of why i need this is another question I asked here. More specifically, does creating/updating/deleting files in App_Data cause a pool recycle? If someone could provide a detailed list of what causes a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/302110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "71" }
Q: jQuery Event Keypress: Which key was pressed? With jQuery, how do I find out which key was pressed when I bind to the keypress event? $('#searchbox input').bind('keypress', function(e) {}); I want to trigger a submit when ENTER is pressed. [Update] Even though I found the (or better: one) answer myself, there seems...
{ "language": "en", "url": "https://stackoverflow.com/questions/302122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "732" }
Q: Whats best way to package a Java Application with lots of dependencies? I'm writing a java app using eclipse which references a few external jars and requires some config files to be user accessable. * *What is the best way to package it up for deployment? *My understanding is that you cant put Jars inside anoth...
{ "language": "en", "url": "https://stackoverflow.com/questions/302126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Transferring large amounts of XML to a CLR stored procedure I'm writing a CLR stored procedure to take XML data in the form of a string, then use the data to execute certain commands etc. The problem that I'm running into is that whenever I try to send XML that is longer than 4000 characters, I get an error, as the...
{ "language": "en", "url": "https://stackoverflow.com/questions/302131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Database design for Tagging multiple types of entities I'm currently designing a database schema that's used to store recipes. In this database there are different types of entities that I want to be able to tag (ingredients, recipe issuers, recipes, etc). So a tag has multiple n:m relations. If I use the "three ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/302136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Which is the Best database for Rails application? I am developing a Rails application that will access a lot of RSS feeds or crawl sites for data (mostly news). It will be something like Google News but with a different approach, so I'll store a lot of news (or news summaries), classify them in different categories ...
{ "language": "en", "url": "https://stackoverflow.com/questions/302148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it acceptable to keep a db connection open for the life of the page? Everybody knows that you should close a connection immediately after you finish using it. Due to a flaw in my domain object model design, I've had to leave the connection open for the full page life cycle. Essentially, I have a Just In Time pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/302149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: AWK: redirecting script output from script to another file with dynamic name I know I can redirect awk's print output to another file from within a script, like this: awk '{print $0 >> "anotherfile" }' 2procfile (I know that's dummy example, but it's just an example...) But what I need is to redirect output to anot...
{ "language": "en", "url": "https://stackoverflow.com/questions/302152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: In C#, can I know in the base class what children inherited from me? I have a base class vehicle and some children classes like car, motorbike etc.. inheriting from vehicle. In each children class there is a function Go(); now I want to log information on every vehicle when the function Go() fires, and on that log I...
{ "language": "en", "url": "https://stackoverflow.com/questions/302157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.NET Globalization -- Displaying dates Good morning, Apologies for the newbie question. I'm just getting started with ASP.NET internationalization settings. Background info: I have a website which displays a <table> HTML object. In that <table> HTML object, I have a column which displays dates. My server being...
{ "language": "en", "url": "https://stackoverflow.com/questions/302160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What file format would I use for currency exchange I'm looking for a standard file format that used by systems needing to store currencies and also provide currency exchange (so we need both the buy and sell rates) I looked online and found the .cex but have not been able to find it's format. Where do I get the for...
{ "language": "en", "url": "https://stackoverflow.com/questions/302162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }