text
stringlengths
8
267k
meta
dict
Q: How can I run code on Windows Mobile while being suspended? I'd like to run some C++ code while the Windows Mobile PocketPC is (or seems) being suspended. An example what I mean is the HTC Home plugin that shows (among others) a tab where the HTC Audio Manager can be used to play back mp3 files. When I press the on/...
{ "language": "en", "url": "https://stackoverflow.com/questions/336771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Detecting and accessing a usb device from within a webbrowser -i.e using a plugin Is it possible through a plugin - activeX, Java or Flex to write a brower plugin that is able to detect an read a data stream from a USB device channel. I have done some research but have not found an answer. http://support.microsoft.c...
{ "language": "en", "url": "https://stackoverflow.com/questions/336774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Pipe forwards in C# Continuing my investigation of expressing F# ideas in C#, I wanted a pipe forward operator. For anything wrapped in a IEnumerable, we already have it, as you can .NextFunc() to your heart's content. But for example if you have any fold-like reduction at the end, you can't feed the result of that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/336775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: InstallShield 2009 - SdLogonUserInformation Problem (The list is empty.) I need a setup created with InstallShield 2009 to install a windows service. The service needs an own account to be run under. This accounts needs to be created/selected from within the setup. For this, I add the corresponding Logon Information...
{ "language": "en", "url": "https://stackoverflow.com/questions/336776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to read a Chinese text file from C#? How can I read a Chinese text file using C#, my current code can't display the correct characters: try { using (StreamReader sr = new StreamReader(path,System.Text.Encoding.UTF8)) { // This is an arbitrary size for this example. string c = null; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/336781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: COM Control colour(color) bug/problem when embedded in PowerBuilder We have built some .NET controls, and we are using them as COM controls in a PowerBuilder application. They (mostly) consist of controls with other controls on them, some other of our custom controls, some from DevExpress. All of ours inherit from a...
{ "language": "en", "url": "https://stackoverflow.com/questions/336799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Memory management practices and tools for Symbian C++ I have pretty much finished my first working Symbian application, but in my hastened learning have paid little attention to memory management and pushing to and cleaning up the stack? Could somebody please point me in the direction of some of the best practises t...
{ "language": "en", "url": "https://stackoverflow.com/questions/336801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.NET define input validators programmatically depending on configuration I'm writing an ASP.NET 3.5 web application. There is a rather complex input form (30 input controls - TextBoxes, Dropdownlists, ...). Now, different clients use the same form in their customized application and there are different mandatory ...
{ "language": "en", "url": "https://stackoverflow.com/questions/336804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ODBC to JDBC datatypes mapping Where can I find description of how to map ODBC datatypes to JDBC? Or maybe anybody knows where source code of a jdbc-odbc bridge driver can be downloaded? A: The JDBC-ODBC Bridge is bundled with the Java 2 SDK Standard Edition... Check out the FAQ's at Sun - http://java.sun.com/produ...
{ "language": "en", "url": "https://stackoverflow.com/questions/336806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Server.Transfer vs. Context.RewritePath I understand they both don't change the URL that the client sees. Is there anything in them that makes one of them preferable over the other? I'm planning to use it in the Application_BeginRequest in Global.asax, but also in regular aspx page. A: I think Context.RewritePath()...
{ "language": "en", "url": "https://stackoverflow.com/questions/336813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Why is #include not required to use printf()? Session transcript: > type lookma.c int main() { printf("%s", "no stdio.h"); } > cl lookma.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. lookma.c Microsoft (R) Incrementa...
{ "language": "en", "url": "https://stackoverflow.com/questions/336814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: How can I detect whether a user control is running in the IDE, in debug mode, or in the released EXE? I have a user control that I'm building. It's purpose is to display the status of a class to the user. Obviously, this does not matter, and will slow things down when the control runs in the IDE, as it does as soo...
{ "language": "en", "url": "https://stackoverflow.com/questions/336817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: ABBYY FineReader Engine API Resources Does any one worked with ABBYY FineReader Engine 9.0 API? There are almost no resources available on internet. The only thing is the developer reference help file installed along with it. But that is not sufficient enough.
{ "language": "en", "url": "https://stackoverflow.com/questions/336822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does anyone know if there is a list of German words used in the Fulltext word breaker? SQL Server Full Text Search uses language specific Word Breakers. For the German language this is used to break/split words including compound words. However, it appears not all known compound words are included in the Word Break...
{ "language": "en", "url": "https://stackoverflow.com/questions/336826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Calling a function from the main thread and making it work in parallel with a function in the main thread I really need your help in my issue very quickly and it's too close to the previous issue. I want to call a function using thread from the main thread. for more explanaition, here is a sample from my code: // pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/336831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Animate for onclick on submit button only works in FF (not IE nor OP) Does anybody know why the following code only has effect in FF? $(document).ready(function() { $('#powerSearchSubmitButton').click(function() { startLoad(); }); }); function startLoad() { $('.message').each(function(i) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/336845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows system cache and huge files i have a problem with windows system cache. Sample code: int main(int argc, char* argv[]) { HANDLE file_ = INVALID_HANDLE_VALUE; file_ = CreateFile( "test_file.txt", GENERIC_WRITE, FILE_SH...
{ "language": "en", "url": "https://stackoverflow.com/questions/336849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I clear the Warnings sections of the error list In VS2008? Specifically, once I get the WCAG Anaylsis warnings for a website into my warnings window I can't get rid of them, until I close down studio. When building another project in the same solution they stay there. Anyone got any ideas? A: Unload/Reload ...
{ "language": "en", "url": "https://stackoverflow.com/questions/336854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: var functionName = function() {} vs function functionName() {} I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent. The previous developer used two ways of declaring functions and I can't work out if there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/336859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7544" }
Q: How to implement a minimal server for AJAX in Python? I want to create a very simple HTML/AJAX based GUI for a Python program. So the frontend is a HTML page which communicates with the program via AJAX. Can you give me a minimal implementation for the server-side using the python SimpleHTTPServer.SimpleHTTPRequestH...
{ "language": "en", "url": "https://stackoverflow.com/questions/336866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Can you access EntityManagers from EntityListeners? I'm aware that JSR-000220 Enterprise JavaBeans 3.0 Final Release (persistence) spec states: "In general, portable applications should not invoke EntityManager or Query operations, access other entity instances, or modify relationships in a lifecycle callback method...
{ "language": "en", "url": "https://stackoverflow.com/questions/336881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to compare two elements of the same but unconstrained generic type for equality? Possible Duplicate: Can’t operator == be applied to generic types in C#? I've got the following generic class and the compiler complains that "Operator '!=' cannot be applied to operands of type 'TValue' and 'TValue'" (see CS0019...
{ "language": "en", "url": "https://stackoverflow.com/questions/336884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Linq to Entities, Table per Type and Nullable Foreign Key Relationships I'm using Linq to entities applying a Table per Type approach. This has been going very well, up to now. I have the following setup: * *Parent Table *Child Table (Inherits from parent) *Grand Child Table (Inherits from Child Table) *Linkin...
{ "language": "en", "url": "https://stackoverflow.com/questions/336886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Why catch an exception just to throw it again? In a webservice I see this code: <WebMethod()> _ Public Function dosomething() As Boolean Try If successful Then Return True Else Return False End If Catch ex As Exception Throw ex End Try End Function ...
{ "language": "en", "url": "https://stackoverflow.com/questions/336897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: AxAcroPDFLib.AxAcroPDF.LoadFile changes? I have made a Windows client application where I use the AxAcroPDF control to display a pdf-file on a form. It seems to me that after I have upgraded my Acrobat reader from version 8 to version 9 the LoadFile method returns true when the file is opened correctly, where versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/336898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I populate a ListView in virtual mode asynchronously? I'd like to display records from our database in a listview - but retrieves can take a long time. I can use RetrieveVirtualItem to tell me when a new ListViewItem is needed, add a dummy item, and start a retrieve; but what do I do with the record when the...
{ "language": "en", "url": "https://stackoverflow.com/questions/336901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Windows analog to UNIX atoh() function Is there in Windows API or in MFC any analog to atoh() function? atoh() converts a string containing a hexadecimal number into an unsigned number like unsigned x = atoh("A"); and x = 10 after the operation. In Windows I have a CString, containing "A". How can I convert it to i...
{ "language": "en", "url": "https://stackoverflow.com/questions/336903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Efficient grep method to match two atoms? I'm looking for a method to grep for multiple atoms e.g. "foo" and "bar". I'm aware i can use grep 'foo' file | grep 'bar' to get both of them but i was wondering if there was a more efficient way. Any googleing seems to only throw results for an 'or' based search rather th...
{ "language": "en", "url": "https://stackoverflow.com/questions/336909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: css page problem The code I have pasted below is meant to display images on the middle 2 links without text and go back to text on the reset and fourth link. I have set display:none for the span tag only, but it does nothing. Is there anyway to do what I am after simply, without using a framework? edit: example <htm...
{ "language": "en", "url": "https://stackoverflow.com/questions/336919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should developers trying to utilize the best of jQuery still be using ThickBox 3.1 Is this still the recommended library in use? ThickBox 3.1 A: Depends on your concrete needs, but as far as I'm concerned, I was mostly unhappy with it, found the code to be poorly written (at least wrt/ the available jQuery plugin A...
{ "language": "en", "url": "https://stackoverflow.com/questions/336922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom Cursor Image CSS I have a number of heroshot images, that have a modal popup when clicked. I'm trying to get my cursor to turn into magnifying glass whenever it is moved over the image. The following CSS does not appear to work even though my magnify.cur is present in the right location. a.heroshot img { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/336925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Why does the order of including modules make a difference in Ruby? This question is best summed up with a code example: module TestOne module Foo def foo 42 end end module Bar include Foo end class Quux include Bar end end TestOne::Bar.ancestors # => [TestOne::Bar, TestOne::Foo] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/336929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can Implement OpenID Feature in ASP NET2.0 How can I implement OpenID feature in ASP NET2.0? A: Looks like there are some .NET options here: http://wiki.openid.net/Libraries A: You can also use an RPX http://rpxnow.com . The service will allow you to accept OpenIDs, Facebook, and MySpace . Your application...
{ "language": "en", "url": "https://stackoverflow.com/questions/336936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Start a SIP call on a Symbian S60 mobile device I looking for a way to programmatically start a VOIP call using the SIP stack on a S60 Symbian mobile phone. Some of the later S60 devices have a built-in SIP client. Is it also possible to access the SIP stack using some S60 library on those devices. Or does anyone k...
{ "language": "en", "url": "https://stackoverflow.com/questions/336937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: No image, and no popup window I hava an ajax application that will not display an image, or make a popup window from html stored in a file. This is the code I am usiong for the popup: echo '<script> function makewindows(){ child1 = window.open ("about:blank"); child1.document.write(' . json_encode($row2["ARTICLE_DE...
{ "language": "en", "url": "https://stackoverflow.com/questions/336942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL flush tables - Current database or every database? Does the MySQL command : FLUSH TABLES; flush every table in the current database, or every table on the server ? I'm using MySQL 5.0 - the documentation is unclear, although it does mention that : FLUSH TABLES WITH READ LOCK; will do so for ALL databases. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/336946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: When does script added with RegisterStartupScript() execute? When does script added to the page with Page.ClientScript.RegisterStartupScript() actually run? MSDN states "when the page finishes loading but before the page's OnLoad event is raised" but this isn't much detail. For example, can a script added with Regis...
{ "language": "en", "url": "https://stackoverflow.com/questions/336948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to redirect to another web application in the same server? I have two web applications in the same server like this: /basedir/app1path/default1.aspx /basedir/app2path/default2.aspx How can I redirect form default1.aspx to default2.aspx? A: In code-behind: Response.Redirect("/basedir/app2path/default2.aspx", f...
{ "language": "en", "url": "https://stackoverflow.com/questions/336953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How bad is it to store class and assembly names in the database? In brief: Is it ever excusable to have assembly names and class names stored in the database? Does it break the layers of an application for the data layer to have explicit knowledge of the internals of the business layer? Full explanation: I have a bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/336958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.NET: Custom client-side validator for "one of two fields must be filled"? Can you tell me if there anybody has implemented a custom validator for checking that one of two (or N) input fields are filled? "Insert phone number or email address" I'm using ASP.NET (Ajax) 3.5, the ajaxToolkit:ValidatorCalloutExten...
{ "language": "en", "url": "https://stackoverflow.com/questions/336960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Packing an exe + dll into one executable (not .NET) Possible Duplicate: How can a C++ windows dll be merged into a C# application exe? Is anybody aware of a program that can pack several DLL and a .EXE into one executable. I am not talking about .NET case here, I am talking about general DLLs, some of which I gen...
{ "language": "en", "url": "https://stackoverflow.com/questions/336961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Python optparse metavar I am not sure what optparse's metavar parameter is used for. I see it is used all around, but I can't see its use. Can someone make it clear to me? Thanks. A: metavar seems to be used for generating help : http://www.python.org/doc/2.5.2/lib/optparse-generating-help.html A: As @Guillaume sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/336963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: A question about "undefined" in Javascript Today one of my friends said: if (typeof isoft == "undefined") var isoft = new Object(); is such kind of code is writted by a freshman and writes if(!isoft) var isoft = new Object(); I originally consider there must be some difference. But I can't find the difference. Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/336965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it wrong to switch client logic in the service tier? We have two client apps (a web app and an agent app) accessing methods on the same service, but with slightly different requirements. My team wants to control behaviour on the service side by passing in a ApplicationType parameter to every method - which is es...
{ "language": "en", "url": "https://stackoverflow.com/questions/336973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: XML Serialization and Schema without xsd.exe I use XML serialization for the reading of my Config-POCOs. To get intellisense support in Visual Studio for XML files I need a schema file. I can create the schema with xsd.exe mylibrary.dll and this works fine. But I want that the schema is always created if I serializ...
{ "language": "en", "url": "https://stackoverflow.com/questions/336988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Chaining containers with StructureMap Is it possible to link containers together in StructureMap like it is in WindsorContainer.AddChildContainer()? I want to achieve having 3 container levels; - 1 page request level - 1 session level - 1 application level These would then be chained together so only one instance re...
{ "language": "en", "url": "https://stackoverflow.com/questions/336990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How does the Add Method from the NameObjectCollectionBase collection behave? Why does the Add method on the NameObjectCollectionBase insert at index position 0? Is there a way to insert the new item at the end of the collection? I'm facing this problem in .Net 2.0 I'm not allowed to change the collection. A: Name...
{ "language": "en", "url": "https://stackoverflow.com/questions/336991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is Java suitable for "Web 2.0" applications? I was chatting to someone the other day who suggested that Rails and PHP are the most suitable platforms for web applications, and to avoid Java. My background is mainly Java, and I know that it is considered by some to be too verbose and "heavyweight", but is used occasi...
{ "language": "en", "url": "https://stackoverflow.com/questions/336993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Which database systems support an ENUM data type, which don't? Following up this question: "Database enums - pros and cons", I'd like to know which database systems support enumeration data types, and a bit of detail on how they do it (e.g. what is stored internally, what are the limits, query syntax implications, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/336997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How is memory allocated for a static variable? In the below program: class Main { static string staticVariable = "Static Variable"; string instanceVariable = "Instance Variable"; public Main(){} } The instanceVariable will be stored inside the memory allocated for object instance. Where will the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/337019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: How to detect broken WPF Data binding? While trying to answer a question in the vicinity 'Unit Testing WPF Bindings' I had the following niggling question.. What's the best way to find if you have WPF Data Binding wiring setup incorrectly (or you just broke something that was wired up correctly) ? Although the unit-...
{ "language": "en", "url": "https://stackoverflow.com/questions/337023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: How do I dump one project out of an SVN repository which contains multiple projects? I am working with an SVN repository with many projects. I need to move a few of the projects out of that repository into individual repositories, one for each project, keeping the history. I've been able to use svnadmin dump to dump...
{ "language": "en", "url": "https://stackoverflow.com/questions/337024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Implementing Forum Live View with Ajax and JSP I'm starting a personal project, so I have at the moment complete architectural/design control. I'm just planning out the structure at this point. My goal is some sort of web forum, chat thing. The difference is it should update live, new posts growing on client view...
{ "language": "en", "url": "https://stackoverflow.com/questions/337028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Equality comparison -- any saner way? How do I implement this equality comparison is a sane java way? boolean x = (a == b) || (a.equals(b)) I want to make sure the content of both objects is equal but null is also ok, i.e. both can be null and are thus equal. Update: just to be clear, I have to implement this c...
{ "language": "en", "url": "https://stackoverflow.com/questions/337029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MySQL: "Column 'column_name' in where clause is ambiguous" I JOIN 2 tables for example table_A +---------+-----------+-----------+ | user_id | ticket_id | user_name | +---------+-----------+-----------+ table_B +-----------+-------------+ | ticket_id | ticket_name | +-----------+-------------+ If I run the follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/337034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Replacing nested if statements This is related to a chapter from beautiful code. And in that chapter I read about the nested ifs. The author was talking about deeply nested ifs as originator of bugs and less readable. And he was talking about replacing nested ifs with case statements and decision tables. Can anybod...
{ "language": "en", "url": "https://stackoverflow.com/questions/337037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Polymorphism not working correctly I have an interface called Dictionary which has a method insert(). This interface is implemented by class BSTree, but I also have a class AVLTree which is a child class of BSTree. AVLTree redefines the insert() so it suits it's needs. Now if I type the following code: Dictionary da...
{ "language": "en", "url": "https://stackoverflow.com/questions/337038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generate WebService producer from WSDL in Visual Studio 2005 I have a WSDL file defining the interface for a web service and I want to implement that service (i.e. producer/server code) using C#, ASP.Net and Visual Studio 2005. Setting up a Web Reference as consumer of a web service is a breeze, but as a producer is...
{ "language": "en", "url": "https://stackoverflow.com/questions/337049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to integrate AJAX toolkit into MVC applications? How do I integrate AJAX toolkit into MVC applications in .net? A: I am not sure particularly which toolkit you are referring to but have a look this by Stephen Walther. Here he uses Ajax Control toolkit with asp.net MVC to create an AutoComplete Text ...
{ "language": "en", "url": "https://stackoverflow.com/questions/337058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you apply patches on a web project at production server? We recently had a project where we released beta of a big web app on our client's server. Our client requested us to do bug fixes as they come, and we tried to do it same way. Normally while building an app on our prototype server is way easier, as I ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/337060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: When to rethrow an exception, when to return FALSE? I am developing a wrapper for a third party function library that is interfacing with some special hardware. So basically, I want to encapsulate the dll functions (bool Connect(), void Disconnect() etc) in a MyHardwareObject with connect- and disconnect methods. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/337066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What are the First and Second Level caches in (N)Hibernate? Can anyone explain in simple words what First and Second Level caching in Hibernate/NHibernate are? A: First-level cache Hibernate tries to defer the Persistence Context flushing up until the last possible moment. This strategy has been traditionally known...
{ "language": "en", "url": "https://stackoverflow.com/questions/337072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "262" }
Q: Can I find out the name of the method I am using? Say I have some code like namespace Portal { public class Author { public Author() { } private void SomeMethod(){ string myMethodName = ""; // myMethodName = "Portal.Author.SomeMethod()"; } } } Can I find out t...
{ "language": "en", "url": "https://stackoverflow.com/questions/337087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: core dump at _dl_sysinfo_int80 () I have created a TCP client that connects to a listening server. We implemeted TCP keep alive also. Some times the client crashes and core dumped. Below are the core dump traces. Problem is in linux kernel version Update 4, kernel 2.6.9-42.0.10. we had two core dumps. (gdb) where #0...
{ "language": "en", "url": "https://stackoverflow.com/questions/337090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I use eclipse xml validator in a jsp? I'm writing an application that outputs xml and I'm using a jsp to do it (in eclipse). It works fine, but the jsp editor complains about the xml tags. Is there a way to convince the jsp editor to validate xml instead of html? A: Oh, I misread that entirely. You can turn of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/337101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Display time left when running I have a form with a few buttons which execute code when pressed like running validations on the database. Some code can run for a few minutes so is there any way to show the time remaining or a message to display the % of process completed? Or pop out a message when code evaluation st...
{ "language": "en", "url": "https://stackoverflow.com/questions/337103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to write a prototype for Number.toFixed in JavaScript? I need to round decimal numbers to six places using JavaScript, but I need to consider legacy browsers so I can't rely on Number.toFixed The big catch with toExponential, toFixed, and toPrecision is that they are fairly modern constructs not supported in M...
{ "language": "en", "url": "https://stackoverflow.com/questions/337112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Setting TIME_WAIT TCP We're trying to tune an application that accepts messages via TCP and also uses TCP for some of its internal messaging. While load testing, we noticed that response time degrades significantly (and then stops altogether) as more simultaneous requests are made to the system. During this time, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/337115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: "Public" nested classes or not Suppose I have a class 'Application'. In order to be initialised it takes certain settings in the constructor. Let's also assume that the number of settings is so many that it's compelling to place them in a class of their own. Compare the following two implementations of this scenario...
{ "language": "en", "url": "https://stackoverflow.com/questions/337121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: What is the best practice for creating RE-USABLE control templates in Silverlight What is the best practice for creating re-usable control templates. For example. I want to start with the standard checkbox and modify its template for re-use accross multiple future projects. I understand how to modify the template ...
{ "language": "en", "url": "https://stackoverflow.com/questions/337128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I Compute an Order Line Number in SQL 2000 I am working with an order system that has two tables Order and OrderLine pretty standard stuff. I want to work out an order line number for the order lines with respect to the order e.g. Orderid Orderlineid linenumber 1          1              1 2          2       ...
{ "language": "en", "url": "https://stackoverflow.com/questions/337141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does .NET assembly size affect performance? Does the size of a .net assembly affect performance at all? How about the number of assemblies in your windows forms/web forms project? A: A compact framework DLL will always be loaded into a 64 kb minimum memory space, no matter how small it is. So, loading four separate...
{ "language": "en", "url": "https://stackoverflow.com/questions/337144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How can I implement SQL INTERSECT and MINUS operations in MS Access I have researched and haven't found a way to run INTERSECT and MINUS operations in MS Access. Does any way exist A: INTERSECT is an inner join. MINUS is an outer join, where you choose only the records that don't exist in the other table. INTERSE...
{ "language": "en", "url": "https://stackoverflow.com/questions/337158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: C#: Load roaming profile and execute program as user In an application I need to execute other programs with another user's credentials. Currently I use System.Diagnostics.Process.Start to execute the program: public static Process Start( string fileName, string arguments, string userName, SecureString p...
{ "language": "en", "url": "https://stackoverflow.com/questions/337159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Help me with that CrossThread? This code is executed by many way. When it's executed by the form button it works (the button start a thread and in the loop it call this method = it works). BUT it doesn't work when I have a call to that method from my BackgroundWorker in the form. With the following code: private vo...
{ "language": "en", "url": "https://stackoverflow.com/questions/337165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VS2008 - Front Page Server Extensions Good day, I'm looking for a layman's explanation of the relationship betweeen FrontPage Server Extensions and a .NET web app. Background: A team of us are using VS2008 to develop a web app which is located on a network server. This is an internal project - we're all on the same ...
{ "language": "en", "url": "https://stackoverflow.com/questions/337173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When do you give up set operations in SQL and go procedural? I was once given this task to do in an RDBMS: Given tables customer, order, orderlines and product. Everything done with the usual fields and relationships, with a comment memo field on the orderline table. For one customer retrieve a list of all products ...
{ "language": "en", "url": "https://stackoverflow.com/questions/337175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to set Cursor type in JDBC? I'm running tomcat and have some jsp pages that display a subset of a table. I show 20 rows at a time on a single page. When the table has large amounts of data, the jsp page doesn't render. I'm guessing that the ResultSet is using a client side cursor. I've worked with ASP in the...
{ "language": "en", "url": "https://stackoverflow.com/questions/337179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I create a custom WPF control like a cartoon bubble with constant corners I need to create a rectangle bubble with rounded corners with text inside, like a cartoon speech bubble. I need the bubble to expand horizontally and vertically depending on the size of the text it contain. I would like the speech arro...
{ "language": "en", "url": "https://stackoverflow.com/questions/337181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Output html controls - dynamic control name I'd like to output html controls using xslt, but I need to be able to name the controls so that I can get at them when the form posts back. I'd like to be able to name the radio button "action_" + _case_id. <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text...
{ "language": "en", "url": "https://stackoverflow.com/questions/337183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Not getting the 'index" value from for loop to the if loop in the JSP My if statement is always evaluating to false and not entering the <span> block. Because of which, I'm not able to get the value of "index" in the if condition, I've tried every thing appending index with # and %. Can anybody suggest the solution?...
{ "language": "en", "url": "https://stackoverflow.com/questions/337186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to write your own .net obfuscator I am very curious as to how people write their own obfuscator. How hard would it be to simply do the following: * *rename all public methods with GUID type names. Where would I start? How would I go about reading the .net dll assemby, pulling the public methods out and ren...
{ "language": "en", "url": "https://stackoverflow.com/questions/337200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How does a user insert a null in MS Access? MS Access appears to support nulls in code, but I can't for the life of me figure out how to enter a null directly in a table. This is maddening because once a field has had a figure entered in it, it can never be deleted/set to null. Normally, allowing zero length strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/337208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Python: item for item until stopterm in item? Disclaimer: I'm fairly new to python! If I want all the lines of a file until (edit: and including) the line containing some string stopterm, is there a way of using the list syntax for it? I was hoping there would be something like: usefullines = [line for line in file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/337223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Hidden panel doesn't center correctly when displayed I've got a simple AlwaysVisibleControlExtender that extends a small Panel containing a "Loading..." message and animated GIF. The whole thing is inside an UpdateProgress control, so it only displays when my app is processing. I've got it set to display at the top ...
{ "language": "en", "url": "https://stackoverflow.com/questions/337229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which CMS should I use to manage a small internet site without programming experiences? I'm looking for a CMS system to manage a simple and small website. The website will be made with pure HTML and some JavaScript (perhaps prototype library). The reason while I'm looking for a CMS system is, because the customer wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/337236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Using VB6, how do I get the current user and domain on Windows XP? I need the current user and the domain. I am using a VB 6 application. Thanks A: And the API-version: Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long Declare Function...
{ "language": "en", "url": "https://stackoverflow.com/questions/337237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why do automatic properties require both getters AND setters? In C#, if I declare an auto-implemented property, why do I have to declare BOTH the get and set part? i.e. public string ThisWorks { get; set; } public string ThisDoesnt { get; } Isn't this just syntactic sugar - i.e. the compiler inserts a private fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/337239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why is Visual Studio's table adapter query not returning the same data as the stored procedure it represents? I'm using a table adapter in Visual Studio to make a query to a stored procedure in my SQL Server 2005 database. When I make the call via my website application it returns nothing. When I make the same cal...
{ "language": "en", "url": "https://stackoverflow.com/questions/337240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should @Entity Pojos be tested? I don't know if I should test my @Entity-annotated Pojos. After all, there are mainly just generated getters/setters. Should I test them? When it comes to testing DAOs I'm using all those entities - so they are already propely tested, I guess? Thanks for your thoughts. Matt A: Can yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/337241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Reference on how to write my own RDP client I want to be able to access some device specific data while running an application on a remote machine. The problem is that if the RDP window is minimized this data is not available. One solution I'm examining is writing my own RDP client so that the server machine always ...
{ "language": "en", "url": "https://stackoverflow.com/questions/337244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Console/CLI Interpreter? I wonder if there is something like a standalone Version of Visual Studios "Immediate Window"? Sometimes I just want to test some simple stuff, like "DateTime.Parse("blah")" to see if that works. But everytime i have to create a new console application, put in my code and test it. The Imm...
{ "language": "en", "url": "https://stackoverflow.com/questions/337254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: What is the 'correct' way to store a native pointer inside a Java object? What is the 'correct' way to store a native pointer inside a Java object? I could treat the pointer as a Java int, if I happen to know that native pointers are <= 32 bits in size, or a Java long if I happen to know that native pointers are <= ...
{ "language": "en", "url": "https://stackoverflow.com/questions/337268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Delayed call, with possibility of cancelation? How do I trigger a delay, let's say I want to call a method (once) in 3 seconds from now, and how do I cancel that call if I need to? A: You can also use -[NSObject performSelector:awithObject:afterDelay:], and +[NSObject cancelPreviousPerformRequestsWithTarget:selecto...
{ "language": "en", "url": "https://stackoverflow.com/questions/337272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to check if an embedded SVG document is loaded in an html page? I need to edit (using javascript) an SVG document embedded in an html page. When the SVG is loaded, I can access the dom of the SVG and its elements. But I am not able to know if the SVG dom is ready or not, so I cant' perform default actions on the...
{ "language": "en", "url": "https://stackoverflow.com/questions/337293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: How do integrate Delphi with Active Directory? We need to validate an user on Microsoft's Active Directory using Delphi 7, what is the best way to do that? We can have two scenarios: the user inputs its network username and password, where the username may include the domain, and we check on active directory if it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/337300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Which Eclipse files belong under version control? Which Eclipse files is it appropriate to put under source control, aside from the sources obviously? In my project, specifically, I'm wondering about: .metadata/* project-dir/.project project-dir/.classpath project-dir/.settings/* If there are any of these ...
{ "language": "en", "url": "https://stackoverflow.com/questions/337304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "246" }
Q: Rails + Oracle: worth hassle? Is it architecturally sound to use Rails and Oracle? My concern is that Oracle would be too "heavy and hi-end" for Rails. Any thoughts? Thanks. A: The database needs of Rails more or less boil down to tables, indices and CRUD. Anything that provides those ought to be able to serve as t...
{ "language": "en", "url": "https://stackoverflow.com/questions/337305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why are my programs running from my SD card so slow? When moving my .Net Compact Framework application to the SD-card of a Windows CE device, the program executes slower then running it from the internal memory. I thought, the start-up might be slower, but it is the whole program. There is no IO to the storage card....
{ "language": "en", "url": "https://stackoverflow.com/questions/337313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I change the browser from the loading status to the loaded status? The scenario: * *I dynamically create an iframe and a form inside it via JavaScript. *The form is submitted via JavaScript and sends a POST request to a server. *The request is received, but the browser stays on loading status (the progre...
{ "language": "en", "url": "https://stackoverflow.com/questions/337315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }