text
string
meta
dict
Q: Understanding wxWidgets sizers I'm still getting used to the sizers in wxWidgets, and as such can't seem to make them do what I want. I want a large panel that will contain a list of other panels/boxes, which each then contain a set of text fields ---------------------- | label text box | | label2 text box2 | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to validate .NET dialog items when using automatic DialogResult? At the moment I have setup a custom ok cancel dialog with a drop down in c#. The ok and cancel buttons use the DialogResult property so no code behind it. What I now need to do is validate the drop down to check it isn't left empty before posting b...
{ "language": "en", "url": "https://stackoverflow.com/questions/269390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tracking e-commerce with Google I've been asked to add Google e-commerce tracking into my site. This tracking involves inserting some javascript on your receipt page and then calling it's functions. From my asp.net receipt page, I need to call one function (_addTrans) for the transaction info and then another (_ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/269402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to write a mod_rewrite rule to look for an image in a specific folder? I need to write a rule to redirect any image file to a specific folder. Namely "images" RewriteCond $1 ^(.*\.jpg|.*\.gif|.*\.bmp) That will match all the imag, the the rerwrite part is confusing me. I want that Http://domain.com/path/contro...
{ "language": "en", "url": "https://stackoverflow.com/questions/269403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server 2005 Table Variable Update Problem I have been reading about the differences between Table Variables and Temp Tables and stumbled upon the following issue with the Table Variable. I did not see this issue mentioned in the articles I pursued. I pass in a series of PKs via a XML data type and successfully...
{ "language": "en", "url": "https://stackoverflow.com/questions/269404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Communicate with Document Library Browser Web Part Background My task is to, in SharePoint, show an image of a process map which should be clickable. Think of an imagemap in html. Some areas take you to other process map images and other brings up a pop-up window. "Connected" to each process map is a set of document...
{ "language": "en", "url": "https://stackoverflow.com/questions/269406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: memcpy performance differences between 32 and 64 bit processes We have Core2 machines (Dell T5400) with XP64. We observe that when running 32-bit processes, the performance of memcpy is on the order of 1.2GByte/s; however memcpy in a 64-bit process achieves about 2.2GByte/s (or 2.4GByte/s with the Intel compiler CRT...
{ "language": "en", "url": "https://stackoverflow.com/questions/269408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to generate WiX XML from a .reg file? Is there a tool to generate WiX XML given a .reg file? In 2.0, you were supposed to be able to run tallow to generate registry XML: tallow -r my.reg For what it's worth, the version of tallow I have is producing empty XML. In 3.0, tallow has been replaced with heat, but I...
{ "language": "en", "url": "https://stackoverflow.com/questions/269423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: List of files with pending changes in VS2008/TFS to clipboard When I right-click a solution in VS2008 and select Check In... I am presented with a list of changed files with check boxes and a comment area. (This is done against TFS.) Our check-in process requires that we enter this list of changed files into the bug...
{ "language": "en", "url": "https://stackoverflow.com/questions/269425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can you align a canvas background in WPF? I have set a canvas' background to an image of a company logo. I would like for this image to be aligned to the bottom right corner of the canvas. Is it possible to do this, or would it require for the image to be added into the canvas as a child? That would not work w...
{ "language": "en", "url": "https://stackoverflow.com/questions/269436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to Fix This MySQL Query So It Works? I have the following query: UPDATE lessonstatus INNER JOIN user ON lessonstatus.user_id = user.user_id SET user_id = (SELECT user_id FROM user WHERE username = 'too_many_accounts') WHERE last_name = 'stupid' AND first_name = 'user' AND username != 'too_many_accounts' AND les...
{ "language": "en", "url": "https://stackoverflow.com/questions/269440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sparse files in WinXP SP3 Suddenly, we found out that WinXP SP3 didn't allow to create NTFS sparse file in user-mode application. Namely, DeviceIoControl with FSCTL_SET_SPARSE returns with error 0x57 (ERROR_INVALID_PARAMETER). The same code works well in SP2. Also, it's all ok if make the same calls from kernel-mode...
{ "language": "en", "url": "https://stackoverflow.com/questions/269454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Take down website to public, but leave for testing... "We're Not Open" We are rolling out a site for a client using IIS tomorrow. I am to take the site down to the general public (Sorry, we are updating message) and allow the client to test over the weekend after we perform the upgrade. If it is successful, I open ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I separate some properties from the main MSBuild file Ages ago when I was a java developer I could make separate ant scripts that I would call from my main ant script. I would put properties unique to each environment where my main script would run. I want to do the same thing in MSBuild but I can't find out ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MFC - execute code right after dialog is shown (.NET equivalent of Form.Shown) I'm doing some small changes to C++ MFC project. I'm .NET developer so Windows programming is new to me. I need to launch some method right after CDialog is completely shown (painted) for the first time, but only once. How can I do this? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I translate date values from Oracle to Excel using Perl's DBI? I am having trouble with a very simple Perl process. I am basically querying an Oracle database and I want to load it into Excel. I have been able to use DBIx::Dump and it works. However, I need to be able to use a variety of Excel formatting ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best forum for project management resources What is the best online forum site about project management? It must cover PM-related news, articles, case studies and discussion boards. A: Edit How fast things change? I just heard about Cornelius Fichtner's new project: Project Managment Opinions. It has a section on r...
{ "language": "en", "url": "https://stackoverflow.com/questions/269478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Counting database applications How can we find out that how many applications are there in a database? A: Not entirely sure what you're asking for here. I'm assuming you mean "Applications written using SQL Server 2005 as the database.". If that's what you want to know, I don't know of any single place you could ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/269481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to specify firstDayOfWeek for java.util.Calendar using a JVM argument I'm trying to change default firstDayOfWeek for java.util.Calendar from SUNDAY to MONDAY. Is it possible to achieve this through JVM configuration instead of adding this piece of code? cal.setFirstDayOfWeek(Calendar.MONDAY); A: According to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to deal with protect_from_forgery to make Rails applications communicate? I have a Rails app that will post some data to another Rails app. For some reasons I don't want to use ActiveResource, so I used something like: res = Net::HTTP.post_form(URI.parse('http://localhost:3030/support_requests/new'), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Sharepoint Lists - GroupBy? I'm trying to get data from a Sharepoint list and put it into some Flex graphs. I can call the list data just fine using a CAML query, but I want to use a GroupBy to consolidate the rows by Teams. So, for example Team 1 may have 20 records, Team 2 may have 8 records, and Team 3 might ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/269491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I cause a child process to exit when the parent does? I am launching a child process with ProcessBuilder, and need the child process to exit if the parent process does. Under normal circumstances, my code is stopping the child properly. However, if I cause the OS to kill the parent, the child will continue...
{ "language": "en", "url": "https://stackoverflow.com/questions/269494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Inheritance vs. Aggregation There are two schools of thought on how to best extend, enhance, and reuse code in an object-oriented system: * *Inheritance: extend the functionality of a class by creating a subclass. Override superclass members in the subclasses to provide new functionality. Make methods abstract/vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/269496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "154" }
Q: .NET forms authentication cookie not accessible in another application I have one application which uses the standard .NET forms authentication cookie, now I need to get this cookie from an application hosted on the same domain but one folder down with it's own application. I can't seem to find any trace of the cook...
{ "language": "en", "url": "https://stackoverflow.com/questions/269499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Comparing generic list to an array Why is the generic.list slower than array? A: A generic list is slightly slower than an array, but not so you'd notice in most cases. Mostly it has to do with the lookup being slightly more complex: List is said to use an array "under the hood", but it's not not guaranteed to kee...
{ "language": "en", "url": "https://stackoverflow.com/questions/269513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to achieve versioned ActiveRecord associations? I want to work with versioned ActiveRecord associations. E.g., I want to find the object that another object belongs_to as of a certain past date, or the one that it belonged to before that. Does there already exist a library subclassing Rails' ActiveRecord to prov...
{ "language": "en", "url": "https://stackoverflow.com/questions/269518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Emacs and cygwin How can I change my GNUemacs to open up a cygwin terminal rather then a cmd one with the shell command? Closed as duplicate of How can I run Cygwin Bash Shell from within Emacs?.
{ "language": "en", "url": "https://stackoverflow.com/questions/269520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I use a WPF TreeView HierarchicalDataTemplate with LINQ to Entities? I've got a Page class in my .edmx ADO.NET Entity Data Model file with with Parent and Children properties. It's for a hierarchy of Pages. removed dead ImageShack link - ADO.NET Entity Framework Hierarchical Page Class This is handled in my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Doesn't NHibernate HQL support "with" keyword? I'm trying to build a HQL that can left join values from a collection, in order to give me the chance of checking "is null" on it. Taken from the example from hibernate manual: from Cat as cat left join cat.kittens as kitten with kitten.bodyWeight > 10.0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jQuery datepicker years shown With the jQuery datepicker, how does one change the year range that is displayed? On the jQuery UI site it says the default is "10 years before and after the current year are shown". I want to use this for a birthday selection and 10 years before today is no good. Can this be done wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/269545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "78" }
Q: Strange CrystalReportsViewer toolbar behaviour I have a problem with the CrystalReportsViewer's toolbar that puzzles me. Let's say I have a report that consists of five pages. * *If I click the next button, I get to page two as expected, but if I press it again, page two reloads! *I can click the last page butt...
{ "language": "en", "url": "https://stackoverflow.com/questions/269547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to save or edit Crystal reports in version 8.5 format in Visual Studio 2008? I have a crystal report file I need make a tiny edit in. It was created in/for Crystal Reports 8.5. I can open it in Visual Studio 2008 but saving the file updates the file version and the report fails with the third part sof...
{ "language": "en", "url": "https://stackoverflow.com/questions/269555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing the ownership / permissions of a semaphore Is there any way to change the ownership and permission mask for a semaphore on Unix systems directly from the command prompt, without deploying a special program that calls semctl with the IPC_SET option? A: I don't know of any standard utility, but the program l...
{ "language": "en", "url": "https://stackoverflow.com/questions/269556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does OCaml have general map()/reduce() functions? In Python map() works on any data that follows the sequence protocol. It does The Right Thing^TM whether I feed it a string or a list or even a tuple. Can't I have my cake in OCaml too? Do I really have no other choice but to look at the collection type I'm using a...
{ "language": "en", "url": "https://stackoverflow.com/questions/269560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Scripting SQL 2005 database structure in a nightly job I'd like to have a job that runs nightly, or even just once a week, that generates a script of our dev databases. They tend to be tinkered with, and developers have a habit of making changes without scripting them, or documenting them. I'd like to create a job t...
{ "language": "en", "url": "https://stackoverflow.com/questions/269562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: My blog doesn't display properly with Internet Explorer I am sure this is easy stuff for all the readers of this website but this kind of problem is difficult for me. I have a website http://www.areacatracha.com that doesn't show up properly in Internet Explorer. Other browser display it normally. Can anyone help...
{ "language": "en", "url": "https://stackoverflow.com/questions/269564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaScript anchor- access to id on another HTML page I have two html pages, when you click on something on the first html, it will go to the second one. What I want to do is to show text according to what you clicked on the first html. different texts are wrapped with different ids. Here's how I wrote: <a href="seco...
{ "language": "en", "url": "https://stackoverflow.com/questions/269566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scope of Oracle transactions when used from ADO.NET and involving triggers? I am told by someone that when calling Oracle from ADO.net, when calling multiple inserts in a loop, where each insert causes a trigger to fire that includes within it's PL-Sql a Commit statement, that it is impossible to stop that commit fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/269570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Translate multiple languages in php I am working on a small parser that should accept input in a number of languages. I am going to have maybe 50 strings that will serve as keywords/anchors in parsing the input. In PHP, what would be the best way to organize these translated keywords? One possible solution that com...
{ "language": "en", "url": "https://stackoverflow.com/questions/269577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get a generic method without using GetMethods I want to get the method System.Linq.Queryable.OrderyBy<T, TKey>(the IQueryable<T> source, Expression<Func<T,TKey>> keySelector) method, but I keep coming up with nulls. var type = typeof(T); var propertyInfo = type.GetProperty(group.PropertyName); var propertyType = pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/269578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: What are alternatives to generic collections for COM Interop? I am attempting to return a collection of departments from a .NET assembly to be consumed by ASP via COM Interop. Using .NET I would just return a generic collection, e.g. List<Department>, but it seems that generics don't work well with COM Interop. So, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Setting uniform width in all browsers What combination of CSS or attributes are needed? A: In addition to the quirksmode tutorial, here's another good resource: http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom If you're hiding the actual control, remember that it is very import...
{ "language": "en", "url": "https://stackoverflow.com/questions/269582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: JavaScript: Ci is not defined I just spent half an one our to find out what caused the Error-Message "Ci is not defined" in my JavaScript code. I finally found the reason: It should be (jQuery): $("asd").bla(); It was: ("asd").bla(); (Dollar sign gone missing) Now after having fixed the problem I'd like to underst...
{ "language": "en", "url": "https://stackoverflow.com/questions/269590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: LinqToSql Producing Different Sql Queries on Different Machines for Identical Code I have a website built using Asp.net and LinqToSql for Data Access. In a certain section of the site, LinqToSql produces a query that looks like this (from my dev machine): select ... from table1 left outer join table2 on table1 where...
{ "language": "en", "url": "https://stackoverflow.com/questions/269594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Rename file onto another in java I have a file I need to rename to that of an existing file. This is a copy, modify, replace original operation on an existing JAR file. I've got the first two steps done, I just need help with the replace original bit. What's the best way to rename the new version of the JAR to that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best guide for creating Windows Services in C# .NET? I'm looking to convert a small .NET console application into a Windows Service. I'd like to build two versions, one using .NET 2.0 and another with .NET 3.5 . Are there radically different approaches that need to be taken, or will the 2.0 version be roughly equiv...
{ "language": "en", "url": "https://stackoverflow.com/questions/269603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Multiple NOT distinct I've got an MS access database and I would need to create an SQL query that allows me to select all the not distinct entries in one column while still keeping all the values. In this case more than ever an example is worth thousands of words: Table: A B C 1 x q 2 y w 3 y e 4 z r 5 z t 6 z y SQ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: "Both DataSource and DataSourceID are defined" error using ASP.NET GridView "Both DataSource and DataSourceID are defined on 'grdCommunication'. Remove one definition." I just got this error today, the code has been working until this afternoon I published the latest version to our server and it broke with that err...
{ "language": "en", "url": "https://stackoverflow.com/questions/269611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Are there fixed size integers in GCC? On the MSVC++ compiler, one can use the __int8, __int16, __int32 and similar types for integers with specific sizes. This is extremely useful for applications which need to work with low-level data structures like custom file formats, hardware control data structures and the lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/269614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to force Windows Indexing "activity" The Windows Indexing Service pauses itself when it detects the "user is active." Is there a registry entry or something to make it continue indexing regardless of user activity? Clarification: in Windows XP A: Microsoft Indexing service indexing optimization is controlled b...
{ "language": "en", "url": "https://stackoverflow.com/questions/269621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I force a webpage page to render at a minimum resolution, regardless of how small the viewport shrinks? I am rather new to complex CSS, and have a question- I have a page which positions a floating element along the bottom of the page. It does so by setting the Bottom: 0, and Position: Absolute. When the us...
{ "language": "en", "url": "https://stackoverflow.com/questions/269623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Traversing the DOM using jQuery Upon a click on an IMG, I would like to get to the next subsequent DIV so that the DIVs content can either be displayed or hidden depending on its current display state. This is an HTML snippet: <div> <span class="expand"><img src="images/plus.gif"></span> <span>Subject Heading</s...
{ "language": "en", "url": "https://stackoverflow.com/questions/269632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MFC: Accessing Views from Mainframe I am trying to access a view inside a splitter from my mainframe. At the moment I have this: CWnd* pView = m_wndSplitter.GetPane( 0, 0 ); However this gets me a pointer to the CWnd not the CMyViewClass object. Can anyone explain to me what I need to do in order to access the view ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does the Helper Module have to be in App_Code for MVC to recognize when using VB.net When I have my Helpers in the App_Code Directory of my APS.NET MVC VB Application, I can type <%=HTML.ImageUrl("myImage.gif")%> If I move it to another folder I get Errors. I assume I can import the Application Namespace to get it t...
{ "language": "en", "url": "https://stackoverflow.com/questions/269642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Autocomplete in MySQL under Windows Does anybody know if there is a way to make autocompletion work in MySQL Command Line Client under Windows? It's working nicely under Linux for me, but simply moves the cursor under Windows instead. A: It ought to work this way: C:\> mysql --auto-rehash Or configure your my.cnf...
{ "language": "en", "url": "https://stackoverflow.com/questions/269653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to make a noise on the PC speaker with Java I want to alert the user in a Swing application of certain events with an old fashioned PC Speaker beep (NOT the soundcard), since not on every PC there is a soundcard with an attached speaker, or volume might be turned to zero, or a headphone might be connected... How...
{ "language": "en", "url": "https://stackoverflow.com/questions/269657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Using Malloc Hooks I am trying to use a malloc hook to create a custom function my_malloc(). In my main program when I call malloc() I want it to call my_malloc() can someone please give me an example on how to do this in C A: Did you look here? http://www.gnu.org/software/libtool/manual/libc/Hooks-for-Malloc.html ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Iterate through generic list of unknown type at runtime in VB.Net Does anyone know how to iterate over a generic list if the type of that list isn't known until runtime? For example, assume obj1 is passed into a function as an Object: Dim t As Type = obj1.GetType If t.IsGenericType Then Dim typeParameters() As T...
{ "language": "en", "url": "https://stackoverflow.com/questions/269660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a difference between BigDecimal("0") and BigDecimal.ZERO? Either for comparisons or initialization of a new variable, does it make a difference which one of these you use? I know that BigDecimal.ZERO is a 1.5 feature, so that's a concern, but assuming I'm using 1.5 does it matter? Thanks. A: Before talking...
{ "language": "en", "url": "https://stackoverflow.com/questions/269669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: How can I Cause a Deadlock in MySQL for Testing Purposes I want to make my Python library working with MySQLdb be able to detect deadlocks and try again. I believe I've coded a good solution, and now I want to test it. Any ideas for the simplest queries I could run using MySQLdb to create a deadlock condition would...
{ "language": "en", "url": "https://stackoverflow.com/questions/269676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Flash and Accessibility As a web developer, a number of the projects I work on fall under government umbrellas and hence are subject to 508 Accessibility laws, and sometimes W3C accessibility guidelines. To what extent can Flash be used while still meeting these requirements? For using javascript, the mantra is "Deg...
{ "language": "en", "url": "https://stackoverflow.com/questions/269686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Writing a more efficient clock function I have a clock feature in a VB.NET program that displays the time including the seconds. I currently have a timer constantly polling using NOW. I have to poll the system clock quite often because I need to have the second update in sync with the system clock. Is there a more d...
{ "language": "en", "url": "https://stackoverflow.com/questions/269692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to debug .NET remoting calls? I have an app with the following basic architecture: A windows service (Service) that registers a .NET type (RemoteObject) for remote access (.NET Remoting). RemoteObject creates non-ThreadPool threads that use the ThreadPool to do IO processing. The size of the ThreadPool must be r...
{ "language": "en", "url": "https://stackoverflow.com/questions/269703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Using Python to authenticate against raw username, hash, salt in DB created by ASP.NET roles/membership We have a current application where user login credentials are stored in a SQL Server DB. These are, basically, stored as a plain text username, a password hash, and an associated salt for this hash. These were a...
{ "language": "en", "url": "https://stackoverflow.com/questions/269713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Kill Derby DB Network Server on background I'm looking for a good way to run a Apache Derby server in network mode. I'm using the NetworkServerControl to start the server and it's working great. I start the server like this: /** * starts the network server * @return true if sucessfull */ public boolean start() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rounding negative numbers in Java According to Wikipedia when rounding a negative number, you round the absolute number. So by that reasoning, -3.5 would be rounded to -4. But when I use java.lang.Math.round(-3.5) returns -3. Can someone please explain this? A: There are a variety of methods of rounding; the one yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/269721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: What is the best way to merge a feature branch into the mainline in Subversion? We are using feature branches in Subversion for our development which is a very convenient way of keeping code within version control that is not yet ready for the mainline. However, whenever I go to merge the feature branch revision int...
{ "language": "en", "url": "https://stackoverflow.com/questions/269722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: BizTalk MSMQ userid and password in a bindings file I'm setting up a solution to deploy, driven by a batch file so it's reproducible - I've got a binding file that works but I've now added on my MSMQ adapters - works on my local machine, but I've found I have to add a userid and password to get it to work on the ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/269725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Paging Alternatives I'm working on a project that returns paged results with volumes potentially in the hundreds of pages. I've been playing around with more usable ways to perform paging than the standard fisrt/last/next/previous links and jump-to text box. One alternative I had was to have a scrolling list of page...
{ "language": "en", "url": "https://stackoverflow.com/questions/269729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tests Projects In Solution In .NET should you place unit test projects in with the rest of the solution? Or should there be a test solution that houses all the test projects? We have all the test projects in with our code base solution...it seems a bit cumbersome. What do you usually do? A: In our current project ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: The Framework/IDE Knowledge Trap We don't teach children calculus first. We first teach them arithmetic, then algebra, then geometry, the analytical geometry, then finally calculus. Why then, do we teach our computer scientists frameworks and IDE first. Some curriculum do force students to learn computer science f...
{ "language": "en", "url": "https://stackoverflow.com/questions/269755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I read an MSMQ message from a VB6 app using .NET code? I am writing a simple xml string to an MSMQ from a VB6 app, but when I attempt to read the message off the queue in C# using the XmlMessageFormatter I get the following error: "Name cannot begin with the '.' character" How do I successfully read these mes...
{ "language": "en", "url": "https://stackoverflow.com/questions/269759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Make HTML Column Wider As Inner Div Expands Please consider the following: <td style="width: 500px;"> <div style="width: 400px;">SomeContent</div> </td> For some reason, the column that contains a div will not expand to 500px as the style suggests. Do you know how to get the td to honor the width that I am spec...
{ "language": "en", "url": "https://stackoverflow.com/questions/269761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Has anyone tried using ZooKeeper? I was currently looking into memcached as way to coordinate a group of server, but came across Apache's ZooKeeper along the way. It looks interesting, and Yahoo uses it, so it shouldn't be bad, but I'd never heard of it before, so I'm kind of skeptical. Has anyone else given it a tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/269766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Flex custom item renderer for the displayed item in the combobox I am using a custom item renderer in a combobox to display a custom drawing instead of the default text label. This works fine for the dropdown list but the displayed item ( when the list is closed) is still the textual representation of my object. Is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Un-enlisting a BizTalk MSMQ send port in batch file I've got a solution which I setup / cleanup using batch files ... - there are a pair of MSMQ ports, send and receive, with another application on the end of the queues I'm finding I can't properly stop the orchestration in the batch file ... the error is the send p...
{ "language": "en", "url": "https://stackoverflow.com/questions/269774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sharepoint: How can I deploy a custom authentication provider? How can I deploy a custom authentication provider in MOSS 2007? Is there any provided functionality to do this (like a Sharepoint feature)? Or do I have to install it in the GAC on each box in the farm manually? A: The usual approach for installing ext...
{ "language": "en", "url": "https://stackoverflow.com/questions/269775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: VB date conversion Is there an easy way to convert a string that contains this: Date: Wed, 5 Nov 2008 13:12:12 -0500 (EST) into a string that contains this: 20081105_131212 UPDATE: I ended up using date.tryparse which is similar to tryParseExact except you don't have to specify the format string. I did have to el...
{ "language": "en", "url": "https://stackoverflow.com/questions/269781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WPF UserControl - cannot select TextBox I have a really simple WPF UserControl: <UserControl x:Class="dr.SitecoreCompare.WPF.ConnectionEntry" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="connEntry" BorderBrush="Navy" BorderThicknes...
{ "language": "en", "url": "https://stackoverflow.com/questions/269782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can't initialize an object in a member initialization list I have this code: CCalcArchive::CCalcArchive() : m_calcMap() { } m_calcMap is defined as this: typedef CTypedPtrMap<CMapStringToPtr, CString, CCalculation*> CCalcMap; CCalcMap& m_calcMap; When I compile in Visual Studio 2008, I get this error: error C2440:...
{ "language": "en", "url": "https://stackoverflow.com/questions/269794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I find the location of Python module sources? How do I learn where the source file for a given Python module is installed? Is the method different on Windows than on Linux? I'm trying to look for the source of the datetime module in particular, but I'm interested in a more general answer as well. A: The sys....
{ "language": "en", "url": "https://stackoverflow.com/questions/269795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "588" }
Q: Disable autostart of integrated webserver in visual studio 2005 Is there a way to run a project inside a solution that has more one project (read: web applications) and avoid the autostart feature of the integrated asp.net webserver in Visual Studio? I have a big solution that has Windows forms projects, Windows Ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/269802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I approach debugging starting from a Java exception log entry? I have been trying to parse Java exceptions that appear in a log for some code I'm working with. My question is, do you parse the exception trace from the top down, or the bottom up? It looks something like this: ERROR [main]</b> Nov/04 11:03:19,4...
{ "language": "en", "url": "https://stackoverflow.com/questions/269805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to quickly get started at using and learning Emacs There are all sorts of advantages to using Emacs, but for someone comfortable with the usual Win32 applications it comes with a wall-like learning curve. With most other editors it’s possible to just start using them and then learn about their other features and...
{ "language": "en", "url": "https://stackoverflow.com/questions/269812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: How do I display custom tooltips in a CTreeCtrl? I have a class derived from CTreeCtrl. In OnCreate() I replace the default CToolTipCtrl object with a custom one: int CMyTreeCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CTreeCtrl::OnCreate(lpCreateStruct) == -1) return -1; // Replace tool tip ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# 3.0 Func/OrderBy type inference So odd situation that I ran into today with OrderBy: Func<SomeClass, int> orderByNumber = currentClass => currentClass.SomeNumber; Then: someCollection.OrderBy(orderByNumber); This is fine, but I was going to create a method instead because it might be usable somewhere els...
{ "language": "en", "url": "https://stackoverflow.com/questions/269839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it possible to change headers on an S3 object without downloading the entire object? I've uploaded a bunch of images to Amazon S3, and now want to add a Cache-Control header to them. Can the header be updated without downloading the entire image? If so, how? A: This is how you do it with AWS SDK for PHP 2: <?ph...
{ "language": "en", "url": "https://stackoverflow.com/questions/269840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Spring.NET problem with tag in config According to the help file that comes with the Spring.NET framework, you can inject a dependancy defined in the local file by using an 'idref' tag along with a 'local' attribute. I have been trying to do this with no success and was hoping someone had the experience to help m...
{ "language": "en", "url": "https://stackoverflow.com/questions/269845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RegEx in awk and WinGrep So I'm looking for a pattern like this: size='0x0' In a log file, but I'm only interested in large sizes (4 digits or more). The following regex works great in EditPadPro (nice tool BTW) size='0x[0-9a-fA-F]{4,} But the same RegEx does not work in awk - seems like the repetition {4,} is me...
{ "language": "en", "url": "https://stackoverflow.com/questions/269864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: vs2008 publish problem with unmanaged dlls I have a collection of unmanaged dlls with a C# wrapper around them that I'm calling from a C# project. I've added a build event line that looks like: mkdir ..\Release mkdir ..\Debug copy ..\..\Includes\*.dll ..\Release\*.dll copy ..\..\Includes\*.dll ..\Debug\*.dll Probl...
{ "language": "en", "url": "https://stackoverflow.com/questions/269872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the connection string for odbc connections? I've always done web apps and now I need to do a console app. I need to use both an odbc connection and a regular connection. In the past I would have used: <add name="LinkConnectionString" connectionString="Data Source=SERENITY\SQLEXPRESS;Initial Catalog=Link;Int...
{ "language": "en", "url": "https://stackoverflow.com/questions/269876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C++ const question If I do this: // In header class Foo { void foo(bar*); }; // In cpp void Foo::foo(bar* const pBar) { //Stuff } The compiler does not complain that the signatures for Foo::foo do not match. However if I had: void foo(const bar*); //In header void Foo::foo(bar*) {} //In cpp The code will fail to...
{ "language": "en", "url": "https://stackoverflow.com/questions/269882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Best place to store configuration files and log files on Windows for my program? I need to store log files and configuration files for my application. Where is the best place to store them? Right now, I'm just using the current directory, which ends up putting them in the Program Files directory where my program liv...
{ "language": "en", "url": "https://stackoverflow.com/questions/269893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: UTF-8 URI explodes Apache & mod_rewrite I have Apache with mod_rewrite, and whenever I enter a URI with an accented character in it, Apache gives me a "Page Not Found" error. The URI is: /places/tags/Café My page encoding is UTF-8. My database connection & tables are UTF-8. My Apache DefaultCharacterSet = UTF-8. Yes...
{ "language": "en", "url": "https://stackoverflow.com/questions/269897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Compare string with ASP.net Membership Answer in the form of Hashing and saltvalue I need to compare the answer in with the aspnet_membership tables PasswordAnswer value. The text in Password answer is in the form of Hashed. What algorithm they have used how they implemented the Salt value in ASP.net Membership Prov...
{ "language": "en", "url": "https://stackoverflow.com/questions/269905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Opening a swf file from within another swf with different than default values Hopefully this won't be taken as asking the same question twice... So I'm working on a Flash website (in AS2) which has an outer index swf which loads sub swf files using loadMovie("subfoo1.swf", placeToShowSwf). These in turn load an xml ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Has Lua a future as a general-purpose scripting language? As already discussed in "Lua as a general-purpose scripting language?" Lua currently probably isn't the best scripting language for the desktop environment. But what do you think about the future? Will Lua get so popular that there will soon be enough librari...
{ "language": "en", "url": "https://stackoverflow.com/questions/269913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Free java 3d engine Whats the best 3D game engine available for java? I am looking for something that has a good set visual development tools. I have checked out the list available on wikipedia: http://en.wikipedia.org/wiki/List_of_game_engines But I can't figure out the tool set provided by each engine and which f...
{ "language": "en", "url": "https://stackoverflow.com/questions/269916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: C++ string diff (a la Python's difflib) I'm trying to diff two strings to determine whether or not they solely vary in one numerical subset of the string structure; for example, varies_in_single_number_field('foo7bar', 'foo123bar') # Returns True, because 7 != 123, and there's only one varying # number region betwee...
{ "language": "en", "url": "https://stackoverflow.com/questions/269918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Creating a csv-file, doesn't work with right-click save-as I have a script that generates data in csv format which is sent to the user along with a set of headers that tell the browser it is a .csv file. Everything works great when users (left)click on the link to the script, they are presented with a download dialo...
{ "language": "en", "url": "https://stackoverflow.com/questions/269931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }