text
string
meta
dict
Q: In a spring configuration, what is the difference between using name vs id? In a spring configuration, what is the difference between using name vs id? I'm aware that XML restricts the "id" attribute to be unique in a document and limits the characters for using in the id. But otherwise when declaring a bean, wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/212050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is it possible to deliver cross-platform binaries of FreePascal using only one host OS? I'm doing a little app that I want to distribute in different platforms, at least the 3 major ones. Is it possible to use only Windows has the host OS to compile the binaries for Linux, Mac OS X and other supported platforms with...
{ "language": "en", "url": "https://stackoverflow.com/questions/212055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there any performance benefits of using SQL Server 2008 over SQL Server 2005? Are there any performance benefits of using SQL Server 2008 over SQL Server 2005? A: Moving a single database from SQL Server 2005-2008 will not notice a difference really. However, there are new tools and options available in SQL Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/212063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: 32-bit PNG loading in .NET I haven't written any code yet, but I've encountered a similar problem before. Hopefully things have changed since the last time I visited it. I'm trying to do my own image conversion for games into a special OpenGL image format. In order to perform the conversion correctly, I need all pix...
{ "language": "en", "url": "https://stackoverflow.com/questions/212087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading from file not fast enough, how would I speed it up? This is the way I read file: public static string readFile(string path) { StringBuilder stringFromFile = new StringBuilder(); StreamReader SR; string S; SR = File.OpenText(path); S = SR.ReadLine(); whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/212089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Microsoft User Interfaces, are they user friendly still? I find that most of microsoft's new programs are very hard to use. Microsoft Office 2007 (word especially) I find to be hard to use. Microsoft IIS 7.0 is a PAIN, I never remember which icon to click on, things are just to cluttered and hard to find. As a progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/212092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Are there tools that log user actions to help reproduce bugs? As a test engineer, I often engage in exploratory testing. When I encounter a bug, it is not always immediately clear which steps led to the problem. So, obviously, I have to find the required steps to reproduce the problem. Depending on the situation, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/212109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Convert WPF Application to SilverLight Is it possible to convert an existing WPF Application to SilverLight automatically/with minimal effort? A: I would argue that you CAN port Silverlight to WPF with minimal effort. I spent 2 hours porting and application I spent 3 weeks writing. I would argue that those 2 hours ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: What qualities should a developer/architect look for when evaluating message queues? In the Java world, there are a few more choices for message queues, but in .Net, there are only a few. When evaluating which one to use, what are some characteristics one should look for? What are the fundamental concepts that make ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Method for Application Version on a Console Utility App What is the best method for displaying major/minor versions in a C# console application? The System.Windows.Forms namespace includes a ProductVersion class that can be used to display the name/version information set via the Visual Studio project properties (As...
{ "language": "en", "url": "https://stackoverflow.com/questions/212115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Really long class/variable/property/method names Some friends and colleagues of mine have a little running contest to find or write the longest class/variable/property/method names possible. Keep in mind, we try to be good boys and girls and keep the naming intelligible and concise, while still explaining what the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Turning a GqlQuery result set into a python dictionary Let's say I have a model like this class Foo(db.Model): id = db.StringProperty() bar = db.StringProperty() baz = db.StringProperty() And I'm going a GqlQuery like this foos = db.GqlQuery("SELECT * FROM Foo") I want to take the results of the GqlQue...
{ "language": "en", "url": "https://stackoverflow.com/questions/212125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you launch multiple threads from within Java EE? I need to scale calls into Tomcat and it's been suggested to launch threads internally. Has anyone needed to do this and, if so, what solutions did they come up with? A: Creating your own threads inside an application server is generally discouraged because t...
{ "language": "en", "url": "https://stackoverflow.com/questions/212134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: External dependencies / Header files In a windows MSVC6.0 compiler, if there is a workspace with one project in it, what files would be in the Header Files folder and what files would be in the External Dependencies folder? I thought those files which are explicitly included (#include <*.h> are to be in the Heade...
{ "language": "en", "url": "https://stackoverflow.com/questions/212148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are the real challenges for a developer migrating between programming languages? Many developers will claim that moving from one programming language to another is relatively simple especially if the languages are based on similar paradigms. However, in practice the effort comes not from learning the syntax of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Memory AccessViolationException Error Calling DLL From C# I'm encountering a strange memory read/write error while calling a compiled DLL from C#. I use DllImport to get a handle to the function we need, which writes a return value to a parametric pointer to an int (i.e., int* out). This function is called multiple ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Berkley packet filter for Windows Is Berkley Packet Filter supported on Windows or is there something comparable which I should use? A: For windows there is WinPCap that could help you do the same thing. On XP SP2 and Vista there is the limitation that only administrators can create raw packets. More info about Ber...
{ "language": "en", "url": "https://stackoverflow.com/questions/212160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What is the best VOIP toolset for use with .Net development? I have a need to explore VOIP integration into a .Net application. It would be incredibly helpful if the toolset was usable via ASP.Net (version 2.0 or higher), and provided the developer the option to allow interaction on the client either embedded within...
{ "language": "en", "url": "https://stackoverflow.com/questions/212168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 'Run As...' doesn't correctly create user environment My C# application crashes under some circumstances when run with a non-admin user. I'm experiencing a problem with Windows Server 2003 and I'm trying to find more information about it. It may be a problem on other Windows OS's. It seems that if I create a non-adm...
{ "language": "en", "url": "https://stackoverflow.com/questions/212172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Silverlight 2 development using just Visual Studio? OK, so see questions like this one and this one and the question I have is - does one have to use Expression Blend to do Silverlight development or can any of it be done with just Visual Studio? (2008, in this case) I haven't gotten started using Silverlight yet an...
{ "language": "en", "url": "https://stackoverflow.com/questions/212173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the C# Using block and why should I use it? What is the purpose of the Using block in C#? How is it different from a local variable? A: Also take note that the object instantiated via using is read-only within the using block. Refer to the official C# reference here. A: From MSDN: C#, through the .NET Fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/212198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "321" }
Q: ASP.NET MVC URL generation performance A little benchmark with ASP.NET MVC. Viewpage code: public string Bechmark(Func<string> url) { var s = new Stopwatch(); var n = 1000; s.Reset(); s.Start(); for (int i = 0; i < n; i++) { var u = url(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: how to get the icon of a java application? I've got a code that lists the running application on a win32 box, and then displays theirs icons. So far so good, I get the hwnd of the app, then call for GetClassLong(hwnd,GCL_HICONSM), and everything's fine. But the case of a java apps is a pain to deal with, as the pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/212212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Display a loading icon while a network resource is being downloaded I'm trying to display a loading icon while my iPhone app downloads a network resource, but I can't figure out how to make it show up correctly. I searched around and found some details on the UIActivityView class, but the available example source co...
{ "language": "en", "url": "https://stackoverflow.com/questions/212215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What are good starting points for someone interested in natural language processing? Question So I've recently came up with some new possible projects that would have to deal with deriving 'meaning' from text submitted and generated by users. Natural language processing is the field that deals with these kinds of is...
{ "language": "en", "url": "https://stackoverflow.com/questions/212219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Gold Parsing System - What can it be used for in programming? I have read the GOLD Homepage ( http://www.devincook.com/goldparser/ ) docs, FAQ and Wikipedia to find out what practical application there could possibly be for GOLD. I was thinking along the lines of having a programming language (easily) available to m...
{ "language": "en", "url": "https://stackoverflow.com/questions/212228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the appropriate layer for string parsing in .NET? Consider a standard ASP.NET web application where the user types in some numeric data on a form. On submitting, some business objects are spun up to operate on the numeric data. But server-side textbox controls in .Net return a value of type string. Questi...
{ "language": "en", "url": "https://stackoverflow.com/questions/212230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to refresh an access form I am building an MS Access application in which all the forms are modal. However, after data change in a form, I want to refresh the parent form of this form with newer data. Is there any way to do it. To elaborate further : Consider there are two forms, Form A and Form B. Both are moda...
{ "language": "en", "url": "https://stackoverflow.com/questions/212234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Problems using LightBox 2 with IE7 I'm having a problem with IE7 when clicking on images that open up using the Lightbox 2 javascript image viewer. Instead of overlaying the image on the current page it opens the image into a separate page. Not sure if this is an AJAX problem possibly ? Works fine in Firefox. Anybod...
{ "language": "en", "url": "https://stackoverflow.com/questions/212236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Constants and compiler optimization in C++ I've read all the advice on const-correctness in C++ and that it is important (in part) because it helps the compiler to optimize your code. What I've never seen is a good explanation on how the compiler uses this information to optimize the code, not even the good books go...
{ "language": "en", "url": "https://stackoverflow.com/questions/212237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: What Java exception class to use for HTTP errors? I am using Apache HttpClient and would like to communicate HTTP errors (400 Bad Request, 404 Not Found, 500 Server Error, etc.) via the Java exception mechanism to the calling code. Is there an exception in the Java standard library or in a widely used library that w...
{ "language": "en", "url": "https://stackoverflow.com/questions/212239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: What kinds of production issues should I anticipate when deploying a Flex app? My company has been working on a Flex dashboard that displays realtime financial information. It will be deployed over a corporate WAN to perhaps a few dozen users. This is our first Flex project, and while development has been very plea...
{ "language": "en", "url": "https://stackoverflow.com/questions/212242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I troubleshoot Rendering Performance issues in IE Our web application renders fast in some IE browsers, slow in others... It seems to be an HTML rendering problem... The first 10% of the page displays immediately, the last 90% takes up to 10 seconds, and this is static content. I've run with firefox/yslow...
{ "language": "en", "url": "https://stackoverflow.com/questions/212254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ListView with LINQ Datasource insert template It seems like this should be straightforward but I'm boggling. I've got my listview all setup and bound to my LINQ datasource. The source is dependent on a dropdown list which decides which branch information to show in the listview. My edit template works fine but my...
{ "language": "en", "url": "https://stackoverflow.com/questions/212257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I move from Java to C#? I know Java well. Which caveats and resources will help me cross to the other side (C#) as painlessly as possible. A: Biggest tip: go with the .NET naming conventions from the word go. That way you'll constantly be reminded about which language you're in. (Sounds silly, but it really ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: How to choose and optimize oracle indexes? I would like to know if there are general rules for creating an index or not. How do I choose which fields I should include in this index or when not to include them? I know its always depends on the environment and the amount of data, but I was wondering if we could make s...
{ "language": "en", "url": "https://stackoverflow.com/questions/212264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Should application architects write code? This is an often-asked question that has views on both side. Those in favour will argue: * *To design a system for coders you must understand how to code (and be coding) *You can't design a system without being aware of what is happening at ground level *Architecture is...
{ "language": "en", "url": "https://stackoverflow.com/questions/212270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Query for the average call length for all users for a day A person uses their cell phone multiple times per day, and the length of their calls vary. I am tracking the length of the calls in a table: Calls [callID, memberID, startTime, duration] I need to a query to return the average call length for users per day. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Moving from vb.NET (2003) to vb2005 What are some of the benefits? We are changing from vs2003 to vs2005 and use vb as our primary language, I am looking for some of the changes to VB that will be helpful in our ASP.NET development. Can someone point me to a list (maybe from microsoft?) or provide some of their fav...
{ "language": "en", "url": "https://stackoverflow.com/questions/212289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: gcc for MIPS, 3.4.4 or 4.3.2? We've made a number of changes to gcc 3.3.2 (for MIPS) to support the vagaries of an embedded system we're working on. gcc 3.4 and later appear to have substantially improved the MIPS code generation, so I'm planning to port our changes forward. The question is which gcc version should ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove classpath variables from WAS module On our Dev box, our application module contains references to the file:/apps/WebSphere61/systemApps/isclite.ear/ jar files and classpath entries. On our Prod box, however, it only contains the jar file containing all of our required classes. On Dev, this is causing...
{ "language": "en", "url": "https://stackoverflow.com/questions/212302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When does a project not require an application architect? Do moderate or large projects ever not require an architect? I have worked on a number of projects where the development company involved has choosen not to assign an application architect. Either the software is built organically and with little concern for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to subtract X days from a date using Java calendar? Anyone know a simple way using Java calendar to subtract X days from a date? I have not been able to find any function which allows me to directly subtract X days from a date in Java. Can someone point me to the right direction? A: int x = -1; Calendar cal = ....
{ "language": "en", "url": "https://stackoverflow.com/questions/212321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "197" }
Q: T4 error on VS. Compiling transformation: 'Write' is not a member I'm trying to use a class within a T4 template in VS2008. Here is a simplified version of what I'm doing... <#@ template language="VB" debug="True" hostspecific="True" #> <#@ output extension=".vb" debug="True" hostspecific="True" #> <#@ assembly nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/212326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are some practical problems that parallel computing, f#, and GPU-parallel processing might solve Recently WiFi encryption was brute forced by using the parellel processing power of the modern GPU. What other real-life problems do you think will benefit from similar techniques? A: Image processing which is jus...
{ "language": "en", "url": "https://stackoverflow.com/questions/212347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Which annotation should I use: @IdClass or @EmbeddedId The JPA (Java Persistence API) specification has 2 different ways to specify entity composite keys: @IdClass and @EmbeddedId. I'm using both annotations on my mapped entities, but it turns out to be a big mess to people who aren't very familiar with JPA. I wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/212350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "156" }
Q: Binary search (bisection) in Python Is there a library function that performs binary search on a list/tuple and return the position of the item if found and 'False' (-1, None, etc.) if not? I found the functions bisect_left/right in the bisect module, but they still return a position even if the item is not in the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/212358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "210" }
Q: How do I set up gzip compression on a web server? I have an embedded webserver that has a total of 2 Megs of space on it. Normally you gzip files for the clients benefit, but this would save us space on the server. I read that you can just gzip the js file and save it on the server. I tested that on IIS and I did...
{ "language": "en", "url": "https://stackoverflow.com/questions/212378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Should database variable-length text fields be powers of 2? A friend of mine claims that in a typical database, using (for example) nvarchar[256] will give marginally better performance than nvarchar[200] or nvarchar[250] because of the granularity of page allocations. Is there any truth to this whatsoever? Thanks! ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Error: [] operator not supported for strings I am trying to create a multi dimensional array using this syntax: $x[1] = 'parent'; $x[1][] = 'child'; I get the error: [] operator not supported for strings because it is evaluating the $x[1] as a string as opposed to returning the array so I can append to it. What is...
{ "language": "en", "url": "https://stackoverflow.com/questions/212381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: size difference between email and ftp text message - EOL characters? I'm attempting to deliver the same message whether its over FTP or email, but the saved file keeps coming out as different sizes. The textual content of the message is the same, but the nonprintable characters must be accounting for the different s...
{ "language": "en", "url": "https://stackoverflow.com/questions/212389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JavaScript - How do I learn about "closures" usage? From Wikipedia, the free encyclopedia: Closure (computer science) In computer science, a closure is a function that is evaluated in an environment containing one or more bound variables. When called, the function can access these variables. The explicit ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What exactly is the singleton class in ruby? Is the singleton class in Ruby a class in and of itself? Is it the reason why all objects belong to "class?" The concept is fuzzy, but I believe it has something to do with why I can define a class method at all (class foo; def foo.bar ...). What is the singleton class in...
{ "language": "en", "url": "https://stackoverflow.com/questions/212407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: Where can I get some information on starting C# programming with MVC / ASP.NET? I'm a Java developer looking to learn some C#/ASP.NET. One thing I've never liked about .NET from the get-go was that it didn't have support for MVC. But now it does! So I was wondering if anybody knew where to get started learning C# ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Creating routes with an optional path prefix How can I go about making my routes recognise an optional prefix parameter as follows: /*lang/controller/id In that the lang part is optional, and has a default value if it's not specified in the URL: /en/posts/1 => lang = en /fr/posts/1 => lang = fr /posts/1 =>...
{ "language": "en", "url": "https://stackoverflow.com/questions/212425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Unable to cast object of type 'System.Object[]' to 'MyObject[]', what gives? Scenario: I'm currently writing a layer to abstract 3 similar webservices into one useable class. Each webservice exposes a set of objects that share commonality. I have created a set of intermediary objects which exploit the commonality. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/212429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Preventing extra elements in VBA dynamic arrays As the title states, is there a way to prevent extra elements from showing up in VBA dynamic arrays when they are non-zero based? For example, when using code similar to the following: While Cells(ndx, 1).Value <> vbNullString ReDim Preserve data(1 To (UBound(data...
{ "language": "en", "url": "https://stackoverflow.com/questions/212434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create a for loop like command in C++? I want to create a function like a for loop where I will ideally enter a variable for the times the iteration should happen and some functions inside brackets my function will execute. I hope I was clear enough. Example superFor (1) { // Commands to be executed here ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Solr - Getting facet counts without returning search results I need to return only the facet counts from solr. So I basically want to search over all documents and return the facet counts, but I don't want to return any search results. Is this possible? Thanks A: Setting facet=true will enable faceting and setting ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Is Click-Once available/compatible with .NETCF? I develop and manage about 45 WindowsCE5 devices. Updating applications on the devices is a nightmare. Is it possible/feasible to do Click-Once on the CF? I take the lack of answers to be "No". :) EDIT: This is a duplicate of question 116713 A: We do a lot of work ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to add a new SharePoint alert via Web Services I found the Alert Service but it only seems to have methods for Getting and Deleting. How do I add a new alert? A: After some better searching I found this: http://groups.google.com/group/microsoft.public.sharepoint.portalserver/browse_thread/thread/9cf658fd6791e2...
{ "language": "en", "url": "https://stackoverflow.com/questions/212450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is a bus error? Is it different from a segmentation fault? What does the "bus error" message mean, and how does it differ from a segmentation fault? A: On POSIX systems, you can also get the SIGBUS signal when a code page cannot be paged in for some reason. A: I agree with all the answers above. Here are my 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/212466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "333" }
Q: Struts2 Validation at the action vs domain object level The struts2 validation framework allows you to define your validation for an action or at the domain object level. My question is, is there an advantage or disadvantage using one over the other? What do you recommend? My own findings: You may use the same domai...
{ "language": "en", "url": "https://stackoverflow.com/questions/212473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I get output to show up in the Messages pane of the Error List for Visual Studio 2005? I have a header file like this: #ifndef __GEN_NOTE_MARKERS_TO_DEVELOPERS_HPP__ #define __GEN_NOTE_MARKERS_TO_DEVELOPERS_HPP__ #ifdef _DEBUG // macros for turning a number into a string #define STRING2(x) #x ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How do you add external libraries for compilation in VC++? I've worked with a couple of Visual C++ compilers (VC97, VC2005, VC2008) and I haven't really found a clearcut way of adding external libraries to my builds. I come from a Java background, and in Java libraries are everything! I understand from compiling ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Is there a way to keep files in App_Data from overwriting newer files when publishing? I use an XML file in App_Data in conjunction with a Repeater on the main page of an intranet application allow me to display messages to users when they logon about application status, maintenance, etc. To test the functionality,...
{ "language": "en", "url": "https://stackoverflow.com/questions/212494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the easiest way to encrypt a password when I save it to the registry? Currently I'm writing it in clear text oops!, it's an in house program so it's not that bad but I'd like to do it right. How should I go about encrypting this when writing to the registry and how do I decrypt it? OurKey.SetValue("Password"...
{ "language": "en", "url": "https://stackoverflow.com/questions/212510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: How can I get the IP address of a (Linux) machine? This Question is almost the same as the previously asked How can I get the IP Address of a local computer? -Question. However I need to find the IP address(es) of a Linux Machine. So: How do I - programmatically in C++ - detect the IP addresses of the linux server m...
{ "language": "en", "url": "https://stackoverflow.com/questions/212528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "101" }
Q: What is the best reference for architecting Silverlight applications? I'm curious if there are any texts that can be recommended that actually discuss application architecture best practices with respect to the use of Silverlight in web applications. ASP.Net would be preferable, but I'm open to consideration of othe...
{ "language": "en", "url": "https://stackoverflow.com/questions/212532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Resetting height of an HTML element via CSS I use a custom-built asp.net control that renders to a DIV and has "height='0'" hard-coded into the element (I know.. stupid). But I need to reset it - get rid of the height assignment somehow. Is this doable with CSS? I can set the height to 100px for example, and it wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/212534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Java equivalent to app.config? Is there a Java equivalent to .NET's App.Config? If not is there a standard way to keep you application settings, so that they can be changed after an app has been distributed? A: The simple way is to simply have a properties file, e.g., myapp.properties, with all your settings in. It...
{ "language": "en", "url": "https://stackoverflow.com/questions/212539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: a script on this page is causing ie to run slowly The problem is in the title - IE is misbehaving and is saying that there is a script running slowly - FF and Chrome don't have this problem. How can I find the problem . .there's a lot of JS on that page. Checking by hand is not a good ideea EDIT : It's a page from a...
{ "language": "en", "url": "https://stackoverflow.com/questions/212550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: C++ win32 GUI programming, the shortest path? Do you know of a good means of learning C++ win32 (not .Net/MFC/ATL/Wx/Qt..) GUI programming ? A book, a tutorial, an existing project, preferably a hands-on approach with realistic example.. I'm not a beginner, so I don't mind "advanced" starting points.. With thanks. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Is there a good way to have a Map get and put ignoring case? Is there a good way to have a Map<String, ?> get and put ignoring case? A: TreeMap extends Map and supports custom comparators. String provides a default case insensitive comparator. So: final Map<String, ...> map = new TreeMap<>(String.CASE_INSENSITIVE_O...
{ "language": "en", "url": "https://stackoverflow.com/questions/212562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: getResultSet from Spring-JDBC I'm using Spring's support for JDBC. I'd like to use JdbcTemplate (or SimpleJdbcTemplate) to execute a query and obtain the result as an instance of ResultSet. The only way that I can see of achieving this is using: String sql = "select * from...."; SqlRowSet results = jdbcTemplate.quer...
{ "language": "en", "url": "https://stackoverflow.com/questions/212569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do you create a PDF from XML in Java? At the moment, I'm creating an XML file in Java and displaying it in a JSP page by transforming it with XSL/XSLT. Now I need to take that XML file and display the same information in a PDF. Is there a way I can do this by using some kind of XSL file? I've seen the iText Java...
{ "language": "en", "url": "https://stackoverflow.com/questions/212577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Drop Down List Issue I’m having an issue where a drop down list in IE 6/7 is behaving as such: You can see that the drop down width is not wide enough to display the whole text without expanding the overall drop down list. However in Firefox, there is no issue as it expands the width accordingly. This is the behavi...
{ "language": "en", "url": "https://stackoverflow.com/questions/212587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to detect SqlServer connection leaks in a ASP.net applications? I'm currently doing some GUI testing on a ASP.net 2.0 application. The RDBMS is SQL Server 2005. The host is Win Server 2003 / IIS 6.0. I do not have the source code of the application because it was programmed by an external company who's not rele...
{ "language": "en", "url": "https://stackoverflow.com/questions/212596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Microsoft Access query seen as a Function or View by Visual Studio 2005 I have a Microsoft Access database query that I'm trying to import into a Visual Studio 2005 dataset. When the query is formed using an NZ() function like this: SELECT NZ(tblComponentSpecs.nPurchaseCostQuantity, 0) AS Quantity FROM tblComponentS...
{ "language": "en", "url": "https://stackoverflow.com/questions/212599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server xp_delete_file not deleting files I'm trying to write some SQL that will delete files of type '.7z' that are older than 7 days. Here's what I've got that's not working: DECLARE @DateString CHAR(8) SET @DateString = CONVERT(CHAR(8), DATEADD(d, -7, GETDATE()), 1) EXECUTE master.dbo.xp_delete_file 0, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Can I create a PHP function that I can call without parentheses? I have a function that is effectively a replacement for print, and I want to call it without parentheses, just like calling print. # Replace print $foo, $bar, "\n"; # with myprint $foo, $bar, "\n"; In Perl, you can create subroutines with parameter t...
{ "language": "en", "url": "https://stackoverflow.com/questions/212604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Should we @Override an interface's method implementation? Should a method that implements an interface method be annotated with @Override? The javadoc of the Override annotation says: Indicates that a method declaration is intended to override a method declaration in a superclass. If a method is annotated with thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/212614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "477" }
Q: NAnt for native code environment Does anyone know any good tutorial about using NAnt for native code build process instructions? Is there any other tool for build process automation that is better suitable with native code environment? We are developing a win32 mobile application and it will be available online fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/212643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Which log4j Version is bundled with latest OpenCms 7? Which log4j Version is bundled with latest OpenCms 7? A: OpenCms 7.5.3 includes log4j 1.2.15 A: OpenCms 7.0.5 includes log4j 1.2.14
{ "language": "en", "url": "https://stackoverflow.com/questions/212644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does _ftime / Windows internal time work? I have found an interesting issue in windows which allows me to cause the Windows clock (but not the hardware clocks) to run fast - as much as 8 seconds every minute. I am doing some background research to work out how Windows calculates and updates it's internal time (n...
{ "language": "en", "url": "https://stackoverflow.com/questions/212645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I disable query results when executing a stored procedure from a stored procedure? Within a stored procedure, another stored procedure is being called within a cursor. For every call, the SQL Management Studio results window is showing a result. The cursor loops over 100 times and at that point the results wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/212657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Lua Library for Jabber Does anyone know of a Jabber library for Lua? I've found the 'Lua Messaging Library' for AIM, although I can't find a download for it, it appears to be abandoned. Something like that for Lua would be helpful. I'm sorry I didn't state this originally, I meant a 'pure Lua' library. I'm familia...
{ "language": "en", "url": "https://stackoverflow.com/questions/212659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Do the concepts in Accelerated C++ Practical Programming by Example still hold up today? I was recommeded a book called: Accelerated C++ Practical Programming by Example by Andrew Koenig and Barbara E. Moo Addison-Wesley, 2000 ISBN 0-201-70353-X The basis of this book is that Object Oriented Programming is highl...
{ "language": "en", "url": "https://stackoverflow.com/questions/212669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I generate a table of permissions granted to database tables for a database user? I have a SQL Server 2000 database with around a couple of hundred tables. There are several SQL user accounts that can access this database but each one has different permissions granted on tables in the DB. How do I create a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/212681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to transition between two images in a UIImageView I have implemented a pretty simple picture viewer that will allow the user to browse through a collection of images. They are loaded from the Internet, and displayed on the device through a UIImageView object. Something like this: UIImage *image = [[UIImage ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How do you reduce Java logging boilerplate code? Every class that wants to use java.util.logging generally needs to declare a logger like this: public class MyClass { private static Logger _log = Logger.getLogger(MyClass.class.getName()); } How do you avoid this MyClass.class.getName() boilerplate code? A: Hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/212697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How does CSS clearing really work? I have a <div> that I want to be on a line by itself. According to W3Schools, this rule: div.foo { clear: both; } ...should mean this: "No floating elements allowed on either the left or the right side." However, if I float two <div> elements left, and apply the rule above to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to reset a PIC18 in C? What is the best way to reset a PIC18 using C code with the HiTech Pic18 C compiler? Edit: I am currenlty using void reset() { #asm reset #endasm } but there must be a better way A: The compilers usually have their own reset() function built in, but it just does exactly what your fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/212706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Subversion: what does "Target path does not exist" when merging mean? Using subversion 1.5 I have branch B which was branched off of branch A. After doing work in both branches I go to merge changes from A into B (using svn merge http://path/to/A in the working directory of B) and get svn: Target path does not exist...
{ "language": "en", "url": "https://stackoverflow.com/questions/212713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Opening a handle to a device in Python on Windows I'm trying to use the giveio.sys driver which requires a "file" to be opened before you can access protected memory. I'm looking at a C example from WinAVR/AVRdude that uses the syntax: #define DRIVERNAME "\\\\.\\giveio" HANDLE h = CreateFile(DRIVERNAME, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/212715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: When do I use the TestFixtureSetUp attribute instead of a default constructor? The NUnit documentation doesn't tell me when to use a method with a TestFixtureSetup and when to do the setup in the constructor. public class MyTest { private MyClass myClass; public MyTest() { myClass = new MyClass(...
{ "language": "en", "url": "https://stackoverflow.com/questions/212718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: How to automatically start your service after install? How do you automatically start a service after running an install from a Visual Studio Setup Project? I just figured this one out and thought I would share the answer for the general good. Answer to follow. I am open to other and better ways of doing this. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/212734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: Convert text to 7-bit ASCII from command-line I'm on OS X 10.5.5 (though it does not matter much I guess) I have a set of text files with fancy characters like double backquotes, ellipsises ("...") in one character etc. I need to convert these files to good old plain 7-bit ASCII, preferably without losing character...
{ "language": "en", "url": "https://stackoverflow.com/questions/212745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to write a test method in NUnit for testing a savefile method? I wrote a savefile method to save an object to xml. But I am not sure how to test the method in NUnit. Do I need create a sample file manually and compare the string between the files? Are there any better ways to test the method? Thanks for your ans...
{ "language": "en", "url": "https://stackoverflow.com/questions/212748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best way for confirmation email links to submit ID I've got a web site sending someone a confirmation email. Now in the email I would like to have a link the user has to click to confirm he received the mail. I'd like to include the user's password (or some random code) into the confirmation address, so the user doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/212758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }