text
string
meta
dict
Q: converting access datetime type to mysql type I am trying to convert an access datetime field to a mysdl format, using the following string: select str_to_date('04/03/1974 12:21:22', '%Y %m %d %T'); While I do not get an error, I do not get the expected result, instead I get this: +---------------------------------...
{ "language": "en", "url": "https://stackoverflow.com/questions/268884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to insert a record with LINQ and C# and return the Primary Key of that record What's the best way to write a LINQ query that inserts a record and then returns the primary key of that newly inserted record using C# ? A: // Create a new Order object. Order ord = new Order { OrderID = 12000, ShipCity = "Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/268885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Retrieving the full path (server-side) of a file uploaded using Firefox? When I am using a form containing <input id="myFile" type="file" runat="server" /> to upload a file, my server-side code only sees the filename without the full path when using Firefox, while it works just fine in IE. Is it possible to retrieve...
{ "language": "en", "url": "https://stackoverflow.com/questions/268889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Besides version control systems, are there any tools that support release management? Most of the time, I've seen release management handled as a defined process with the supporting tool as the version control system (usually via branching and tagging). However, are there any tools dedicated to release management? I...
{ "language": "en", "url": "https://stackoverflow.com/questions/268890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Replacing multiple occurrences in nested arrays I've got this python dictionary "mydict", containing arrays, here's what it looks like : mydict = dict( one=['foo', 'bar', 'foobar', 'barfoo', 'example'], two=['bar', 'example', 'foobar'], three=['foo', 'example']) i'd like to replace all the occurrences...
{ "language": "en", "url": "https://stackoverflow.com/questions/268891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: delete a specific entry in the map,but the iterator must point to the next element after the deletion Duplicate: What happens if you call erase on a map element while iterating from begin to end How to filter items from a stdmap I have a map map1<string,vector<string>> i have a iterator for this map "itr". i want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/268898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you convert multistring to/from C# string collection? Multistrings (double null-terminated string of null-separated strings) are common in the Windows API. What's a good method for converting a multistring returned from an API to a C# string collection and vice versa? I'm especially interested in proper handl...
{ "language": "en", "url": "https://stackoverflow.com/questions/268899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Javascript window.open strange behavior in Firefox I have a few links that should all open in the same window or tab. To accomplish this I've given the window a name like in this example code: <a href="#" onClick='window.open("http://somesite.com", "mywindow", "");'>link 1</a> <a href="#" onClick='window.open("http:...
{ "language": "en", "url": "https://stackoverflow.com/questions/268902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Visualizing the code involved in an action? I am trying to figure out how a library works and I would like to be able to visualize which methods and lines of code are executed in response to user input (e.g. a keypress or mouse click). Is there a way to do this in .NET? A: There's a wonderful, free tool from Micros...
{ "language": "en", "url": "https://stackoverflow.com/questions/268906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to store and search through object transactions? We have a decent sized object-oriented application. Whenever an object in the app is changed, the object changes are saved back to the DB. However, this has become less than ideal. Currently, transactions are stored as a transaction and a set of...
{ "language": "en", "url": "https://stackoverflow.com/questions/268920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Model View Presenter and Repeater I'm building an application using the Supervising Controller pattern (Model View Presenter) and I am facing a difficulty. In my page I have a repeater control that will display each item of a collection I am passing to it. The reapeater item contains 2 dropdown list that allow the u...
{ "language": "en", "url": "https://stackoverflow.com/questions/268923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In Java, how do I call a base class's method from the overriding method in a derived class? I have two Java classes: B, which extends another class A, as follows : class A { public void myMethod() { /* ... */ } } class B extends A { public void myMethod() { /* Another code */ } } I would like to call the A...
{ "language": "en", "url": "https://stackoverflow.com/questions/268929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "152" }
Q: How can you emulate a mailing list in Django? I'm on a project which is trying to write what amounts to a Mailing List app in Django, and we're running into a couple of problems/questions. The code we have so far doesn't set various List headers, and re-sets the To header to be the person we're sending it to, instea...
{ "language": "en", "url": "https://stackoverflow.com/questions/268930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Where is the Windows Workflow Xaml Vocabulary Specification? I've been able to find Xaml Object Mapping Specification, WPF Xaml Vocabulary Specification, and Silverlight Xaml Vocabulary Specification documents online but no WF Xaml Vocabulary Specification document for Windows Workflows. I want to be able to specif...
{ "language": "en", "url": "https://stackoverflow.com/questions/268955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use a custom item template containing Path tag in ComboBox (without causing out of range exception) I have a combo box with the following DataTemplate: <DataTemplate x:Key="ComboBoxDataTemplate"> <StackPanel> <TextBlock Text="{Binding Path='Name'}"/> <Path Data="{Bi...
{ "language": "en", "url": "https://stackoverflow.com/questions/268957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problems migrating databinding in VB.NET from Winforms to ASP.NET 2.0 And this was supposed to be so easy... I have existing business and data access layers that handle the retrieval and update of the data in question. These work great with the existing Winforms application (.Net V2.0) Now, in trying to write a new...
{ "language": "en", "url": "https://stackoverflow.com/questions/268961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Clients to upload data to central server using WCF, how to verify data was uploaded? Less than 10 client computers, each with their own installation have to upload data to a central server. The client database looks like: tblSales - rowGuid - randomNumber Central Server database: * *rowGuid *randomNumber *dateI...
{ "language": "en", "url": "https://stackoverflow.com/questions/268968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting directory listing using Flash In flash you can open a file on the user's computer. In flash 9 you can upload and download the file and in flash 10 you can access the contents of the file. It is secure because the user has to choose the file from a file dialog box to allow flash access to it. What I would lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/268970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can A winform app be switched to a WPF one if MVC architecture is used? If we develop a winform app using an MVC architecture, it should not be too hard to change over to WPF at a later date, correct? A: Well designed WPF application heavily leverage data-binding. As such, you might consider using classes such as...
{ "language": "en", "url": "https://stackoverflow.com/questions/268976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .net SqlConnection not being closed even when within a using { } Please help! Background info I have a WPF application which accesses a SQL Server 2005 database. The database is running locally on the machine the application is running on. Everywhere I use the Linq DataContext I use a using { } statement, and pass i...
{ "language": "en", "url": "https://stackoverflow.com/questions/268982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Engineer accountability and code review processes In your “enterprise” work environment, how are engineers held accountable for performing code inspections and unit testing? What processes do you follow (formal methodology or custom process) to ensure the quality of your software? Do you or have you tried implemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/268990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Handling custom .Net exceptions in COM+ (VB)? I'm about to start writing a .Net component which will be called from a VB COM+ service (the new component is a DLL which calls out to a webservice and returns based on the response). I'm not sure how to handle error conditions that might occur in the .Net code in the ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/269001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I make the format document shortcut work for C source files in Visual Studio 2008? How can I make Ctrl + K + D work in a pure C file? I really enjoy the auto formatting in C#, and I would like to have the same functionality in C as well. I am using Visual Studio 2008, but it would probably be helpful if this...
{ "language": "en", "url": "https://stackoverflow.com/questions/269003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Subselect in pgSQL I'm trying to do a subselect in pgsql aka postgresql and the example I found doesn't work: SELECT id FROM (SELECT * FROM table); A: I just needed to add an AS for the subselect, like so: SELECT id FROM (SELECT * FROM table) AS aliasname; A: I think you need something like: SELECT * FROM table ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: What is the preferred way to serve web applications written in Lisp? I've been researching modules for Nginx (my preferred webserver) to serve a Lisp webapp, but I haven't been able to find anything. Is there modules for Nginx, or is there better ways to serve Lisp webapps? If so, what are they? A: If Nginx support...
{ "language": "en", "url": "https://stackoverflow.com/questions/269009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: BCP out Error in SQL2000: SQLState = 37000, NativeError = 4060 I have created a proc that grabs all the user tables in a local DB on my machine. I want to be able to create a flat file of all my tables using BCP and SQL. Its a dummy database in SQL 2000 connecting through windows authentication. I have set my enviro...
{ "language": "en", "url": "https://stackoverflow.com/questions/269010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: About usage of DefaultValueAttribute Class in .Net So here is the simple code: [System.ComponentModel.DefaultValue(true)] public bool AnyValue { get; set; } I am sure I don't set AnyValue to false again (I just created it). This property is a property of a Page class of ASP.NET. And I am cheking the value i...
{ "language": "en", "url": "https://stackoverflow.com/questions/269017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a type of report or cross-tab that would display this data elegantly? I have data in this form, Article ID Company A Company B Company C 1 Featured Mentioned -- 2 Mentioned Featured Mentioned 3 Mentioned -- -- 4 Featured Mentioned M...
{ "language": "en", "url": "https://stackoverflow.com/questions/269022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use inline comments to document members in .NET? How can I document a member inline in .Net? Let me explain. Most tools that extract documentation from comments support some kind of inline documentation where you can add a brief after the member declaration. Something like: public static string MyField; /// <...
{ "language": "en", "url": "https://stackoverflow.com/questions/269026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Asp.net -best place to trap SQL Server sql errors For Asp.net web applications, is it best to: * *trap errors within sql stored procedures and test for a return value in the code or *just let the error occur in sql (dont handle it) and rely on ado.net raising the errors within the code. What are the best prac...
{ "language": "en", "url": "https://stackoverflow.com/questions/269032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Connection pooling in asp.net I´ve been looking for it yet in stackoverflow without success... Is it posible a connection pooling in asp.net? Is it worthwhile? How? A: It is actually really simple, simply add the following parameters to your connection string and (either in code or in the web.config) and ASP.NET wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/269042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove fragment in URL with JavaScript w/out causing page reload Background: I have an HTML page which lets you expand certain content. As only small portions of the page need to be loaded for such an expansion, it's done via JavaScript, and not by directing to a new URL/ HTML page. However, as a bonus the user is a...
{ "language": "en", "url": "https://stackoverflow.com/questions/269044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: How can I change the location of an .InstallState file in a Visual Studio generated MSI I have an MSI file that I have created using a Visual Studio Setup Project. The installed generates an .InstallState file in the application directory. Is there a way to have this file generated in a different location rather t...
{ "language": "en", "url": "https://stackoverflow.com/questions/269046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to determine which Child Page is being displayed from Master Page? I'm writing code on the master page, and I need to know which child (content) page is being displayed. How can I do this programmatically? A: This sounds like a bad idea to start with. The idea of the master is that it shouldn't care what page...
{ "language": "en", "url": "https://stackoverflow.com/questions/269050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Can osql.exe run as a standalone? I have a program that runs osql.exe from microsoft sql server tools directory and runs a script. The problem is that on computers that don't have an installation of sql server, this tool is missing. So my question is whether or not is possible to run it as a standalone( along with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How To Set Errorlevel On Exit of MFC App I have an MFC legacy app that I help to maintain. I'm not quite sure how to identify the version of MFC and I don't think it would make a difference anyway. The app can take some parameters on the command line; I would like to be able to set an errorlevel on exiting the ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/269054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you add an index field to Linq results Lets say I have an array like this: string [] Filelist = ... I want to create an Linq result where each entry has it's position in the array like this: var list = from f in Filelist select new { Index = (something), Filename = f}; Index to be 0 for the 1st item, 1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: Is there a Python library function which attempts to guess the character-encoding of some bytes? I'm writing some mail-processing software in Python that is encountering strange bytes in header fields. I suspect this is just malformed mail; the message itself claims to be us-ascii, so I don't think there is a true ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How does one pass a string back to labview using a call Library function node I want to use LabVIEW's Call Library Function Node to access a DLL function, and have this function return a string to displayed on my VI. How would I go about doing this? I am quite happy returning numbers from my DLL, but am really strug...
{ "language": "en", "url": "https://stackoverflow.com/questions/269062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Lots of build warnings when COM objects ActiveDs or MSXML2 are referenced After moving a project from .NET 1.1 to .NET 2.0, MsBuild emits lots of warnings for some COM objects. Sample code for test (actual code doesn't matter, just used to create the warnings): using System; using System.DirectoryServices; using Act...
{ "language": "en", "url": "https://stackoverflow.com/questions/269063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Which debug visualizers exists out there? I know about this question: Which (third-party) debug visualizers for Visual Studio 2005/2008 do you use? But I don't want to know what debug visualizers you use, I want to know which debug visualizers are out there. I have only found Mole (http://www.codeproject.com/KB/macr...
{ "language": "en", "url": "https://stackoverflow.com/questions/269067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: ObservableCollection that also monitors changes on the elements in collection Is there a collection (BCL or other) that has the following characteristics: Sends event if collection is changed AND sends event if any of the elements in the collection sends a PropertyChanged event. Sort of an ObservableCollection<T> wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/269073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: How do you use Ruby/DL? Is this right? I am trying to write an interface between RSPEC (ruby flavoured BDD) and a Windows application. The application itself is written in an obscure language, but it has a C API to provide access. I've gone with Ruby/DL but am having difficulties getting even the most basic call t...
{ "language": "en", "url": "https://stackoverflow.com/questions/269080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: is it possible to have templated classes within a template class? template <class M, class A> class C { std::list<M> m_List; ... } Is the above code possible? I would like to be able to do something similar. Why I ask is that i get the following error: Error 1 error C2079: 'std::_List_nod<_Ty,_Alloc>::_Node::_Myva...
{ "language": "en", "url": "https://stackoverflow.com/questions/269081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Verify the UserID, Forgot question and Forgot Answer in ASP.net Membership I am having an ASP.net page with userid and question and answer I need to verify the userid, answer is correct or not I no need to enablepasswordretrival and my password is hashed how to do A: Are you using the ASP.NET membership provider? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET Runtime 2.0 Error in a service We have a custom service that writes to a DB (SQL 2005). This is a full 64-bit environment (DB, .NET service). On one of our servers we crash every morning when we have a spike in our volume of data. On another server we run fine. The only differences that I've been able to no...
{ "language": "en", "url": "https://stackoverflow.com/questions/269090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I remember which way round PRIOR should go in CONNECT BY queries I've a terrible memory. Whenever I do a CONNECT BY query in Oracle - and I do mean every time - I have to think hard and usually through trial and error work out on which argument the PRIOR should go. I don't know why I don't remember - but I do...
{ "language": "en", "url": "https://stackoverflow.com/questions/269093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Creating WCF messages with mutiple namespaces I'm trying to create a WSTransfer implementation (I realise Roman Kiss has written one already for WCF - but it doesn't actually meet the specifications) I've ended up abandoning data contracts on the service contacts because WSTransfer is loosely coupled; so each the cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/269096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Reading back encrypted passwords I'm using the code below to save a password to the registry, how do I convert it back? The code below isn't mine but it encrypts well. Thanks using System.Security.Cryptography; public static string EncodePasswordToBase64(string password) { byte[] bytes = Encoding.Unicode.GetB...
{ "language": "en", "url": "https://stackoverflow.com/questions/269101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Inheriting from a UserControl in WPF I am fairly new to WPF and I am having a problem with inheriting from a user control. I created a User Control and now I need to inherit from that control and add some more functionality. Has anyone does this sort of thing before? Any help would be greatly appreciated. Thank you...
{ "language": "en", "url": "https://stackoverflow.com/questions/269106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Access savedThis property in Function When I'm in the flash debugger, and I have some callbacks saved, I can see that the functions have a property named savedThis that is very usefull to know where that callback came from. I'm trying to access that property from code, but for some reason I can't. callback.savedThis...
{ "language": "en", "url": "https://stackoverflow.com/questions/269110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Best place to put prototype code in Flex project I'm making a Flex project, using the Cairngorm library, and trying to keep the code in a good MVC structure. I just added some code to add a prototype function to a built-in class (I added the method "contains" to Array), and I'm wondering what you would consider the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is the binary data I convert to a Short valid? I am reading a binary log file produced by a piece of equipment. I have the data in a byte[]. If I need to read two bytes to create a short I can do something like this: short value = (short)(byte[1] << 8); value += byte[2]; Now I know the value is the correct for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Atl service not registering I'm trying to register an atl service using ExeName.exe /service as described here: http://msdn.microsoft.com/en-us/library/74y2334x(VS.80).aspx After doing so though, it's not appearing in my services control panel (the one that I get to by typing Services in the start box on vista). I'v...
{ "language": "en", "url": "https://stackoverflow.com/questions/269133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you structure unit tests for cross-compiled code? My new project is targeting an embedded ARM processor. I have a build system that uses a cross-compiler running on an Ubuntu linux box. I like to use unit testing as much as possible, but I'm a little bit confused about how to proceed with this setup. I can'...
{ "language": "en", "url": "https://stackoverflow.com/questions/269135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle - side-by-side schema update technology...is there any? Is there any technology out there that will allow you to do side-by-side updates of production schemas? The goal is to have zero down time when applying updates to a schema in production. Weblogic 10 has a similar feature for their Java EE apps where by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Understanding JDBC internals [1] In JDBC, why should we first load drivers using Class.forName("some driver name"). Why SUN didnt take care of loading driver within the getConnection() method itself.If I pass driver name as a parameter to the getConnection() method. [2] I want to understand JBDC internals.Any point...
{ "language": "en", "url": "https://stackoverflow.com/questions/269160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why doesn't an installed font show up in the font picker dialog? I've installed an OpenType font on my development machine expecting to then be able to choose that font for a label on a form. The font is available in MS Word so I'm reasonably confident it was installed ok, but I can't see the font in the font-picker...
{ "language": "en", "url": "https://stackoverflow.com/questions/269162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Hiding and showing content in ASP.Net based on value I am looking for an elegant solution for removing content from an ASP.Net page if no data has been set. Let me explain this a little more. I have some blocks of data on a page that contain some sub-sections with individual values in them. If no data has been set f...
{ "language": "en", "url": "https://stackoverflow.com/questions/269164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Opening an application inside a form - C# or VB.NET I am writing an application and I would like to be able to display another application inside it. (Think like a windows form with a small box, or a tab that is displaying a totally seperate application.) Is that something that can be done? If so, can anyone give s...
{ "language": "en", "url": "https://stackoverflow.com/questions/269170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Generate Random values from SQL It appear that SQL Server like most other products Random Function really is not that random. So we have this nice little function to generate a 10 char value. Is there a better way to accomplish what the following does. I am betting there is. DECLARE @SaltCount INT; SELECT @SaltCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/269172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error accessing the Cache in the Application_Start method of Global.asax I am trying to access the Cache in the Application_Start method of Global.asax. I am trying to accdess Context.Cache. When I run the code from visual studio it works just fine but when I run it on the server from IIS I get: Session state is not...
{ "language": "en", "url": "https://stackoverflow.com/questions/269174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best distributed filesystem for commodity linux storage farm I have a lot of spare intel linux servers laying around (hundreds) and want to use them for a distributed file system in a web hosting and file sharing environment. This isn't for a HPC application, so high performance isn't critical. The main requiremen...
{ "language": "en", "url": "https://stackoverflow.com/questions/269179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: When a DLL is not found while P/Invoking, how can I get a message about the specific unmanaged DLL that is missing? When you link to an unmanaged library (say 'A.dll') which in turn links to another library ('B.dll'), and B.dll is missing, you will get a run-time error message about failing to load 'B.dll'. But when...
{ "language": "en", "url": "https://stackoverflow.com/questions/269181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Besides EAR and EJB, what do I get from a Java EE app server that I don't get in a servlet container like Tomcat? We use Tomcat to host our WAR based applications. We are servlet container compliant J2EE applications with the exception of org.apache.catalina.authenticator.SingleSignOn. We are being asked to move to...
{ "language": "en", "url": "https://stackoverflow.com/questions/269186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How to insert a copyright statement into files created by wxGlade? I use wxGlade to create Python scripts, which use wxWidgets. wxGlade directly manipulates XML files, which describe the wxWidgets based GUI. Those files have the *.wxg extension. From the *.wxg files, it is possible to generate code which actually r...
{ "language": "en", "url": "https://stackoverflow.com/questions/269189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Binding: How can I disable the CurrencyManager in BindingList so Current Item position is not maintained and not signaled? I've got two ListBox'es that are databound to the same BindingList. The issue is that when changing the selected item from the GUI it's changing the position in the BindingList and then the B...
{ "language": "en", "url": "https://stackoverflow.com/questions/269193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SAX parser breaking on ñ I have implemented a SAX parser in Java by extending the default handler. The XML has a ñ in its content. When it hits this character it breaks. I print out the char array in the character method and it simply ends with the character before the ñ. The parser seems to stop after this as no ot...
{ "language": "en", "url": "https://stackoverflow.com/questions/269207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Handling UTF-8 encoding We have an Java application running on Weblogic server that picks up XML messages from a JMS or MQ queue and writes it into another JMS queue. The application doesn't modify the XML content in any way. We use BEA's XMLObject to read and write the messages into queues. The XML messages contain...
{ "language": "en", "url": "https://stackoverflow.com/questions/269212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MySQL and SQL Server for same application What are good ways of achieving this DB agnosticism without actually coding two DAL's? I've heard that the Data Access Application Block is suitable for this. A: You could also look at the various ORM libraries like NHibernate. When you are targeting multiple databases, it...
{ "language": "en", "url": "https://stackoverflow.com/questions/269213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Could C++ have not obviated the pimpl idiom? As I understand, the pimpl idiom is exists only because C++ forces you to place all the private class members in the header. If the header were to contain only the public interface, theoretically, any change in class implementation would not have necessitated a recompile ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Can anyone recommend a good SQL parsers? I am trying to write a tool that can compare a database’s schema to the SQL in an install script. Getting the information from the database is pretty straightforward but I am having a little trouble parsing the install scripts. I have played with a few of the parsers that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: There's a way to declare Copy Constructor non-public AND using default copy Constructor? I have a not-so-small class under development (that it changes often) and I need not to provide a public copy constructor and copy assignment. The class has objects with value semantics, so default copy and assignment work. the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you debug a deadlocked Windows app on a customer machine I have a multi-threaded Windows application that occasionally deadlocks. Inevitably this happens on a customer system and not when the software is in test. What is the easiest way of getting a Windows Minidump of the current state of the application? If...
{ "language": "en", "url": "https://stackoverflow.com/questions/269243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Event - Document Edited Is there an event for when a document is edited? If not, does anyone know where I could find a list of the available VBA events? A: Here are the events for the document object: http://msdn.microsoft.com/en-us/library/aa140279(office.10).aspx Events DocumentBeforeClose : Immediately before an...
{ "language": "en", "url": "https://stackoverflow.com/questions/269252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL 2005 sql login ip restriction Is there a way to restrict a specific SQL 2005 login on a Microsoft SQL Server 2005, standard version (sql is in mixed mode) to specific IP addresses, while other logins, Windows authenticated ones, are unaffected? A: I use the following trigger to restrict access to specific login...
{ "language": "en", "url": "https://stackoverflow.com/questions/269253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a modern ( e.g. CLR ) replacement for bison / yacc? I have just been re-working an old bit of compiler-like code written using bison. While I was doing this, I was wondering what the modern equivalent is? Is there a nice .NET ( or similar ) compiler writing framework that takes a BNF grammar and splits out ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find the address of a DLL in memory I have just been getting into low level programming (reading/writing to memory that sort of thing) and have run into an issue i cannot find an answer to. The piece of information i want to read from has an address that is relative to a DLL loaded in memory e,g, it is at mydll.dll ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Multiple Cell Background Colors in Excel Spreadsheets Excel has a Conditional Formatting... option under the Format menu that allows you to change the style/color/font/whatever of a cell depending upon its value. But it only allows three conditions. How do I get Excel to display say, six different background cell c...
{ "language": "en", "url": "https://stackoverflow.com/questions/269267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to implement big int in C++ I'd like to implement a big int class in C++ as a programming exercise—a class that can handle numbers bigger than a long int. I know that there are several open source implementations out there already, but I'd like to write my own. I'm trying to get a feel for what the right appro...
{ "language": "en", "url": "https://stackoverflow.com/questions/269268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: ASP.NET MVC Problem with validation I have this simple controller: public class OneController : Controller { [AcceptVerbs(HttpVerbs.Get)] public ActionResult Create() { return View(); } [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(IList<TestModel> m) { return ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What mime-type should I return for a python string I have a web API that returns python dictionaries or lists as a response that I eval() in python scripts that use the API, for completness I wanted to set a proper content-type but not sure what would be best to use "text/x-python" or maybe "application/python", or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best UI/CSS combination when displaying strings of unknown length? I have a list of items that I am displaying in a floated list, with each item in the list at a fixed width so that there's two per row. What is the best practice to prevent this horrible thing from happening: alt text http://x01.co.uk/flo...
{ "language": "en", "url": "https://stackoverflow.com/questions/269298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Are Anonymous Classes a bad idea? After using them a while I can't help but feel that the hoops you're forced to jump through when using anonymous classes are not worth it. You end up with final all over the place and no matter what the code is more difficult to read than if you'd used a well named inner class. So w...
{ "language": "en", "url": "https://stackoverflow.com/questions/269303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Autorun.inf - publisher not specified I have the following autorun.inf [Autorun] action="Blah, Inc." open=marketing.exe icon=blah.ico label="Blah, Inc." On Vista, the autorun dialog shows "Publisher not specified". How do I specify a publisher? A: Bogdan is right: You need to sign your executable. You can use Sig...
{ "language": "en", "url": "https://stackoverflow.com/questions/269308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to properly set a datatable to an gridview in code with an ObjectDataSource? I have an ObjectDataSource with an ID of ObjectDataSource1 on a webpage. I also have a gridview in which I am binding the ObjectDataSource.ID to the GridView.DataSourceID. The problem I get is when text is changed in a textbox, the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/269309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .Net Data Handling Suggestions I am just beginning to write an application. Part of what it needs to do is to run queries on a database of nutritional information. What I have is the USDA's SR21 Datasets in the form of flat delimited ASCII files. What I need is advice. I am looking for the best way to import this da...
{ "language": "en", "url": "https://stackoverflow.com/questions/269310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a better way than parsing /proc/self/maps to figure out memory protection? On Linux (or Solaris) is there a better way than hand parsing /proc/self/maps repeatedly to figure out whether or not you can read, write or execute whatever is stored at one or more addresses in memory? For instance, in Windows you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Auto-Generate Binded Columns/Fields for a DetailsView In Visual Studio I have set up a DetailsView and an ObjectDataSource which connects with my BLL. <asp:DetailsView runat="server" ID="UserProfileview" DataSourceID="UserData" AutoGenerateRows="False"> <asp:ObjectDataSource ID="UserData" runat="server" TypeName="...
{ "language": "en", "url": "https://stackoverflow.com/questions/269316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can you detect on runtime if your sql-server 2005 instance is a 32 or 64 bit instance? How can you detect if your sql-server 2005 instance is a 32 or 64 bit instance from C# code? If you know some documentation on this issue, please let me know.. Thanks! A: Use SERVERPROPERTY ( propertyname ) With property name...
{ "language": "en", "url": "https://stackoverflow.com/questions/269317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: apache on windows virtual directory config help I'm running Apache on Windows XP via Xampplite, and could use help configuring my virtual directory. Here's what I'm hoping to do on my dev box: * *I want my source files to live outside of the xampp htdocs dir *on my local machine I can access the project at http:...
{ "language": "en", "url": "https://stackoverflow.com/questions/269326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: What are some useful third-party SSIS components (data flow or control flow)? The number of products out there right now still seems to be slim. A: Konesans Row Number Transformation A: I've had good success using TableDifference for data warehousing scenarios. A: The Konesans Trash Destination Adapter can be ver...
{ "language": "en", "url": "https://stackoverflow.com/questions/269331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Patch vs. Hotfix vs. Maintenance Release vs. Service Pack vs When you are somewhere between version 1 and version 2, what do you do to maintain your software? The terms Patch, Hotfix, Maintenance Release, Service Pack, and others are all blurry from my point of view, with different definitions depending on who you t...
{ "language": "en", "url": "https://stackoverflow.com/questions/269352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Can you add data to a datagrid with no data source? I have a DataGrid with 5 template columns, However when I try and add some dynamically created controls into the grid, it fails, as there are no rows. -Can i add a blank row in and use that? and how? -Or any other way? A: I'm pretty sure you have to bind to a data...
{ "language": "en", "url": "https://stackoverflow.com/questions/269354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can Delphi applications have double shortcut keys like Visual Studio? (ie. Ctrl-k Ctrl-k) As stated in the title, I need double shortcut keys for my application (ie. as Ctrl-k Ctrl-k is the Toggle Bookmark key in VS.NET ). I wonder if any of you has found a solution for this in Delphi? I suspect by modifying the ver...
{ "language": "en", "url": "https://stackoverflow.com/questions/269359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ActiveMQ .net client locks up I have written a windows service using the Apache.NMS and Apcahe.NMS.ActiveMQ (version 1.0) libraries. The service consumes messages from ActiveMQ from a vendor server. The service spins up a connection and listens for messages (I handle the OnMessage event) The connection is a transac...
{ "language": "en", "url": "https://stackoverflow.com/questions/269363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Column cannot be added because its CellType property is null exception I have trouble with the following piece of code. When I go through with the debugger I get an exception when it comes to the following line: dgvCalls.Columns.Insert(1, msisnnColumn); I get an exception: Column cannot be added because its Cel...
{ "language": "en", "url": "https://stackoverflow.com/questions/269365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: What access does Apache 2.0 need in Windows Server 2003 in order to start as a service? Until this morning, I have had Apache 2.0 running as a service using a local account which was configured with appropriate permissions. Sometime yesterday, someone must have changed something, and now Apache 2.0 won't start as a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/269366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detecting changes in property values of a .NET object? I have a form which is used to insert/display and update. In the edit mode (update), when I pass my BO back to the Controller, what is the best possible way to check if any of the property values were changed, in order to execute the update to the datastore? te...
{ "language": "en", "url": "https://stackoverflow.com/questions/269367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can I nest Templates in a Web User Control? I want to do something like this: <MyTemplate> <span><%# Container.Title %></span> <MySubTemplate> <span><%# Container.Username %></span> </MySubTemplate> </MyTemplate> Assuming I have a list of Titles that each have a list of Usernames.. If this is a c...
{ "language": "en", "url": "https://stackoverflow.com/questions/269373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }