text
stringlengths
8
267k
meta
dict
Q: JavaScript Source Code Analyzer Does anyone know of a good, extensible source code analyzer that examines JavaScript files? A: In the interest of keeping this question up-to-date, there is a fork of JSLint called JSHint. An explanation of why JSHint was created can be found here, but to summarize: JSHint is a for...
{ "language": "en", "url": "https://stackoverflow.com/questions/331326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: Server based reuse - DLL, GAC, or REST? We have a piece of functionality that is used by several different applications (clients) on the same server. It can best be modeled as a service, has a backend database, and there will only be one version of the functionality and the database in use at any one time. Until now...
{ "language": "en", "url": "https://stackoverflow.com/questions/331330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using EndRequest Event to close NHibernate Session with IIS 7 I am using NHibernate on a new ASP.NET project, and am running into what I believe to be strange behavior. I am attempting to manage my session by using an HttpModule to catch the EndRequest event and close the session. This is working fine, however, af...
{ "language": "en", "url": "https://stackoverflow.com/questions/331334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IEnumerable.Except wont work, so what do I do? I have a linq to sql database. Very simplified we have 3 tables, Projects and Users. There is a joining table called User_Projects which joins them together. I already have a working method of getting IEnumberable<Project> for a given user. from up in User_Projects se...
{ "language": "en", "url": "https://stackoverflow.com/questions/331345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Need a client-side interactive 2D world map: best map package? Or best C++ graphics/canvas library to make one? I need a 2d political map of the world on which I will draw icons, text, and lines that move around. Users will interact with the map, placing and moving the icons, and they will zoom in and out of the ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/331355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Strongly Typed Controls in .NET I am working on a Windows Forms app for quite some time now, and I really find myself doing more typecasts in the GUI code than I ever did in my underlying business code. What I mean becomes apparent if you watch the ComboBox control that accepts some vague "object" as it's item. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/331357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SQL Statement Help - Select latest Order for each Customer Say I have 2 tables: Customers and Orders. A Customer can have many Orders. Now, I need to show any Customers with his latest Order. This means if a Customer has more than one Orders, show only the Order with the latest Entry Time. This is how far I managed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Iterating over a member array with IteratorAggregate I have a class and I want to be able to iterate over a certain array member. I did a quick search and found IteratorAggregate: class foo implements IteratorAggregate { protected $_array = array('foo'=>'bar', 'baz'=>'quux'); public function getIterator() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to pack python libs I'm using so I can distribute them with my app and have as few dependencies as possible How to pack python libs I'm using so I can distribute them with my app and have as few dependencies as possible and also not to conflict with different lib/version that is already on my system. L.E.: Sorry...
{ "language": "en", "url": "https://stackoverflow.com/questions/331377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: actionscript tdd frameworks Any list of Testing frameworks for ActionScript 2.0/3.0 around there? A: UPDATE 2010-05-18 Since this post is a little old and I just received an upvote, it's probably worth providing some updated information so people don't chase down old frameworks. The original fluint team now produce...
{ "language": "en", "url": "https://stackoverflow.com/questions/331385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: svn: replace trunk with branch What is the best way to make one of the branches of a subversion repository the new trunk? There has been a major rewrite for the entire system: things have been moved around, rewritten, replaces, removed, renamed etc. The rewritten code has been tested and is ready to replace the old...
{ "language": "en", "url": "https://stackoverflow.com/questions/331388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "159" }
Q: Can I set up Cascade deleting in Rails? I know this is probably on the Internet somewhere but I can't find the answer here on Stackoverflow so I thought I may boost up the knowledge base here a little. I'm a newbie to Ruby and Rails but my company is getting pretty invested in it so I'm trying to get to know it in a...
{ "language": "en", "url": "https://stackoverflow.com/questions/331394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "104" }
Q: How to have http module on fire events only for specific page types I have an http module on a sharepoint site and this module instantiates a custom class and add it to the session and does other initial things for my site. However, I'm noticing that the http module is being called for all request types (.aspx, .js,...
{ "language": "en", "url": "https://stackoverflow.com/questions/331398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What does this Perl conditional do? I'm trying to understand a particular Perl code from vcake. Usually I find my way around in Perl but the following statement baffles me. I suspect that this is simply an error but I'm not completely sure. The statement is: foreach my $seq (keys %$set) { if( (defined $set->{$se...
{ "language": "en", "url": "https://stackoverflow.com/questions/331400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: java TrayIcon using image with transparent background I am using the following code to set a tray icon in Windows and Linux. It works wonderful in Windows and works okay in Linux. In Linux (Ubuntu) I have my panel set to be (somewhat) transparent and when I add a GIF (with a transparent background) the background of...
{ "language": "en", "url": "https://stackoverflow.com/questions/331407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Best Practice for WCF Service Proxy lifetime? When working with WCF services, is it better to create a new instance of the service every time you use it? Or is it better to create one and re-use it? Why is either approach better? Is it the same for asynchronous proxies? A: in addition to the things Guy Starbuc...
{ "language": "en", "url": "https://stackoverflow.com/questions/331419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Common Regular Expressions Is there a site online that lists common regular expressions or has a utility to help you create one based on sample text? Thanks! A: Since several people mentioned RegexBuddy, which I developed, I'll add that RegexBuddy includes a library of regular expressions for many common purposes. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How many asm-instructions per C-instruction? I realize that this question is impossible to answer absolutely, but I'm only after ballpark figures: Given a reasonably sized C-program (thousands of lines of code), on average, how many ASM-instructions would be generated. In other words, what's a realistic C-to-ASM ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/331428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to deal with low memory warnings on the iPhone? I'm having problems with my application receiving low memory warnings while the user is deep within a navigation controller stack of views. After the user browses through a bunch of hierarchical options in subsequent UITableViews, he can open a PDF document in a UI...
{ "language": "en", "url": "https://stackoverflow.com/questions/331432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Pass texture using pointer across process It's hard to put this into the title, so let me explain. I have an application that uses Direct3D to display some mesh and directshow(vmr9 + allocator) to play some video, and then send the video frame as texture to the Direct3D portion to be applied onto the mesh. The appli...
{ "language": "en", "url": "https://stackoverflow.com/questions/331449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Override DateTime serialization for ASP.NET WebMethod parameters I am working on cleaning up a bug in a large code base where no one was paying attention to local time vs. UTC time. What we want is a way of globally ignoring time zone information on DateTime objects sent to and from our ASP.NET web services. I've...
{ "language": "en", "url": "https://stackoverflow.com/questions/331455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Oracle Applications Concurrent Manager Job Owner By default concurrent manager jobs are run under the APPS user. Is it possible to configure it to run as another user? I'd like to be able to isolate some of my stored procedures. A: Not aware of any standard way, but you could code your concurrent request to handl...
{ "language": "en", "url": "https://stackoverflow.com/questions/331456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Thread was being aborted I am getting a " Thread was being aborted " Exception in an ASP.NET page.I am not at all using any Response.Redirect/Server.Transfer method.Can any one help me to solve this ? A: The bad solution is using Response.Redirect(URL, False) which will cause not to Response.End() current page, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Logging capabilities on Server2008 / iis7? I am suddenly resposible for debugging/finding out what is wrong with an asp.net application that crashed its ApplicationPool some days ago. The 5 errors within 5 minutes failsafe we had set took it down. The problem is that it was still served pages and thus returned a 503...
{ "language": "en", "url": "https://stackoverflow.com/questions/331461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Encryption algorithm/library for .NET 2.0 + C++ I need a standard, Microsoft delivered, encryption library that works for both .NET 2.0 and C++. What would you suggest? We find that AES is only offered in .NET 3.5 (and available in C++) We find that Rijndael is used in .NET 2.0 but not available in the standard C++ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can Swing tell me if there is an active tooltip? Is there an elegantish way in Swing to find out if there are any tooltips currently being displayed in my frame? I'm using custom tooltips, so it would be very easy to set a flag in my createToolTip() method, but I can't see a way to find out when the tooltip is gone....
{ "language": "en", "url": "https://stackoverflow.com/questions/331488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why does NSSet objectEnumerator increment the retain count? After getting the objectEnumerator in the following code, the set1 retain count goes to 3. I was surprised to see that because I didn't expect it to change. I searched the documentation and can't find where this effect is explained. I assume the extra retai...
{ "language": "en", "url": "https://stackoverflow.com/questions/331490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linq to XML - update/alter the nodes of an XML Document I've got 2 Questions: 1. I've sarted working around with Linq to XML and i'm wondering if it is possible to change an XML document via Linq. I mean, is there someting like XDocument xmlDoc = XDocument.Load("sample.xml"); update item in xmlDoc.Descendants("ite...
{ "language": "en", "url": "https://stackoverflow.com/questions/331502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: SQL-WHERE TYPE Formulas in Excel Let say I have a sheet in with columns Customer and CreatedDate with lots of row with data. Anyone who knows how to setup (through VBA or Formula) a second sheet that displays rows from the first sheet based on certain where statements, i.e. all rows with customers "created this mont...
{ "language": "en", "url": "https://stackoverflow.com/questions/331505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Namespace Organization - AOP Validators I have started using aspects for parameter validation in our development framework. It works nicely, and I enjoy not littering the first half of a public method with validation code. What I am wondering is if anyone has any recommendations with where in the namespace structur...
{ "language": "en", "url": "https://stackoverflow.com/questions/331510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to fix "Referenced assembly does not have a strong name" error I've added a weakly named assembly to my Visual Studio 2005 project (which is strongly named). I'm now getting the error: "Referenced assembly 'xxxxxxxx' does not have a strong name" Do I need to sign this third-party assembly? A: For me, the prob...
{ "language": "en", "url": "https://stackoverflow.com/questions/331520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "272" }
Q: How to open a link from one web app to another already authenticated? We have one web application (sharepoint) that collects information from disparate sources. We would like to be able to link users to the main websites of those various sources and have them pre-authenticated. I.E. they enter their credentials for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Windows threading: _beginthread vs _beginthreadex vs CreateThread C++ What's a better way to start a thread, _beginthread, _beginthreadx or CreateThread? I'm trying to determine what are the advantages/disadvantages of _beginthread, _beginthreadex and CreateThread. All of these functions return a thread handle to a...
{ "language": "en", "url": "https://stackoverflow.com/questions/331536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "140" }
Q: What is the proper way of setting headers in a URLConnection? My code is like the following: URLConnection cnx = address.openConnection(); cnx.setAllowUserInteraction(false); cnx.setDoOutput(true); cnx.addRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"); InputStream i...
{ "language": "en", "url": "https://stackoverflow.com/questions/331538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Htaccess Two different redirects I have an existing htaccess that works fine: RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule (.*) /default.php DirectoryIndex index.php /default.php I wish to modify this so that all urls that start with /test/ go to /test/default....
{ "language": "en", "url": "https://stackoverflow.com/questions/331549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I stop controls from twitching when I change their left positions and their widths? I have a control which the user can resize with the mouse. When they move the right side, I just change the width, and everything works fine. However, when they move the left size, I have to change the Left and Width properti...
{ "language": "en", "url": "https://stackoverflow.com/questions/331553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to use reflection to create a class in app_code? I have a class Customer in app_code folder in asp.net web site, how can I create an instance using reflection, for example using Activator.CreateInstance(assemblyName, typeName)? Because the app_code is dynamically compiled, I don't know the assembly in design tim...
{ "language": "en", "url": "https://stackoverflow.com/questions/331564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Java Bit Operations (In Radix Sort) The other day I decided to write an implementation of radix sort in Java. Radix sort is supposed to be O(k*N) but mine ended up being O(k^2*N) because of the process of breaking down each digit to one number. I broke down each digit by modding (%) the preceding digits out and divi...
{ "language": "en", "url": "https://stackoverflow.com/questions/331566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I add multiple namespaces to the root element with XmlDocument? I need to create an XmlDocument with a root element containing multiple namespaces. Am using C# 2.0 or 3.0 Here is my code: XmlDocument doc = new XmlDocument(); XmlElement root = doc.CreateElement("JOBS", "http://www.example.com"); doc.AppendChi...
{ "language": "en", "url": "https://stackoverflow.com/questions/331568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: "Diff, save or kill" when killing buffers in Emacs When trying to kill a buffer that contains changes in Emacs, the message: " Buffer [buffer] modified; kill anyway? (yes or no)" is displayed. Instead of this I'd like to have Emacs ask me if I want to: 1. View a diff of what changed, 2. Save the buffer, 3. Kil...
{ "language": "en", "url": "https://stackoverflow.com/questions/331569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: shdocvw Web Browser control zooming I am using the web browser control from shdocvw.dll to build an html and image viewer that I'm automatically controlling. Some of the images I'm loading are pretty large in resolution so I'd like to be able to automatically zoom the control out to the extent of the content, and w...
{ "language": "en", "url": "https://stackoverflow.com/questions/331583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Debugging j2me on a Device Has anybody had any success ever attaching a debugger to a tethered device? I am able to debug my j2me application in the emulator, but have a lot of trouble sorting out phone-specific problems when they come up. The phone I'm using is a Nokia N95, but ideally the debug process would wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/331594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Using javascript to set value of hidden field then access value from serverside c# code I am using a nested html unordered list styled as a drop down. When the a tag within the inner lists list item is clicked it trigger some javascript which is supposed to set the value of a hidden field to the text for the link th...
{ "language": "en", "url": "https://stackoverflow.com/questions/331599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to write a Web Service for Google App Engine? I am really new to Python and I have been looking for an example on how to write a Web Service (XML - SOAP) in Python with Google App Engine with no luck. Can anyone point me to an article or give me an example on how to do this? A: If you want to do something wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/331600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Is it possible to see what queries have been run in an uncommitted transaction? My application (C++ using SQL Native Client with SQL Server 2000) is consistently finding its way into a hanging state. I believe this is because a transaction is left uncommitted someplace on a table and a SELECT query on that table, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/331603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# foreach within a foreach loop I don't have too much experience with C# so if someone could point me in the right direction I would greatly appreciate it. I have a foreach loop that references a variable of an object. I wish to make another foreach loop inside the main one that compares (or performs actions on) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to have JMX bind to a specific interface? I am currently starting my Java VM with the com.sun.management.jmxremote.* properties so that I can connect to it via JConsole for management and monitoring. Unfortunately, it listens on all interfaces (IP addresses) on the machine. In our environment, there are often c...
{ "language": "en", "url": "https://stackoverflow.com/questions/331615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Is it possible to do count(*) while doing insert...select... query in mysql/php? Is it possible to do a simple count(*) query in a PHP script while another PHP script is doing insert...select... query? The situation is that I need to create a table with ~1M or more rows from another table, and while inserting, I do...
{ "language": "en", "url": "https://stackoverflow.com/questions/331619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RewriteRule redirect Okay I have this RewriteRule which is supposed to redirect any request for the file base.css to {folder of .htacces file}/include/style/base.css, but is just keeps redirecting in an infinite loop, I thought the L parameter would make sure that wouldn't happen. RewriteRule (.*)/base.css$ include/...
{ "language": "en", "url": "https://stackoverflow.com/questions/331620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GCC/ELF - from where comes my symbol? There is an executable that is dynamically linked to number of shared objects. How can I determine, to which of them some symbol (imported into executable) belongs ? If there are more than one possibility, could I silmulate ld and see from where it is being taken ? A: Have a lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/331635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Customizing Zend_Form I am dealing with Zend_Form right now and I am having a difficult time figuring out how to: * *Use custom images for form buttons and, *Insert text and links in specific places (in my case I want to put a "forgot your password?" link before the submit button). I've read through the manual...
{ "language": "en", "url": "https://stackoverflow.com/questions/331641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to make ssh to kill remote process when I interrupt ssh itself? In a bash script I execute a command on a remote machine through ssh. If user breaks the script by pressing Ctrl+C it only stops the script - not even ssh client. Moreover even if I kill ssh client the remote command is still running... How can make...
{ "language": "en", "url": "https://stackoverflow.com/questions/331642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Have COBOL compiled Program -- Missing Source We have a very important application, but so far no source code. The application was written in COBOL and a compiled version is in our production system and is running. However, we need to migrate to a new server, and new cobol compiler. We're under the impression that...
{ "language": "en", "url": "https://stackoverflow.com/questions/331658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's the difference in behavior between adding a control to an ASPX page directly, loading a control programmatically & adding to a placeholder? Is there a difference in behavior between adding a control to the ASPX page directly and loading a control programmatically and adding to a placeholder? The control inher...
{ "language": "en", "url": "https://stackoverflow.com/questions/331663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to write regex so that patterns can appear in any order? I have the following very simple Javascript-compatible regular expression: <script type="text/javascript" id="(.+)" src="([^"]+)"> I am trying to match on script tags and gather both the ID and src attributes. I'd like to make the order of the attributes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Design of Reporting Services for Java webapp A design question. I have developed an online test engine web app earlier this year. I have used Java servlets and Freemarker templates and done it entirely following the MVC paradigm. One big missing feature in the application is that it provides no reporting. The initi...
{ "language": "en", "url": "https://stackoverflow.com/questions/331667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp.net Entity Framework and generated SQL problem I have a problem with the following Linq query using Entity Framework: from o in ctx.Entity where o.EntityID = entityid select o; Simple enough right? Well the 'Entity' set is the parent class of a whole lot of other classes. The generated SQL for this simple query...
{ "language": "en", "url": "https://stackoverflow.com/questions/331671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Unicode in C++ source code What is the standard encoding of C++ source code? Does the C++ standard even say something about this? Can I write C++ source in Unicode? For example, can I use non-ASCII characters such as Chinese characters in comments? If so, is full Unicode allowed or just a subset of Unicode? (e...
{ "language": "en", "url": "https://stackoverflow.com/questions/331690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: Creating an id from name and address data. Hash/Digest My problem: I'm looking for a way to represent a person's name and address as an encoded id. The id should contain only alpha-numeric characters, be collision-proof, and be represented in a smallest number of characters possible. My first thought was to simply...
{ "language": "en", "url": "https://stackoverflow.com/questions/331695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.NET Schema Tables Causing Issues in VSTS After installing the VSTS Database GDR and importing a SQL Server 2005 database that includes the ASP.NET provider schema tables, I get the following warnings: TSD04151: Procedure: [dbo].[aspnet_Users_DeleteUser] has an unresolved reference to object [dbo].[sysobjects].[n...
{ "language": "en", "url": "https://stackoverflow.com/questions/331702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to ignore spelling in a run in WPF RichTextBox I'm using the built-in SpellCheck for the WPF RichTextBox and would like to ignore spelling errors for some text runs (validated paths). What is the best way of doing this? A: Since the dictionary isn't extensible at the moment, I achieved this behavior by setting...
{ "language": "en", "url": "https://stackoverflow.com/questions/331707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ExtJS and jQuery in ASP.NET I've seen some posts where jQuery has been favored vs ExtJS. I haven't looked at jQuery in detail, but from what I read so far, jQuery doesn't provide the kind of UI which comes with ExtJS. Am I correct? Why would some of you prefer jQuery in ASP.NET? Thanks A: Why not use both? ExtJS d...
{ "language": "en", "url": "https://stackoverflow.com/questions/331714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Quicktime error in IE7 opening mp3, Icon with Questionmark I am having some Internet Explorer 7 (and 8 beta) browser-specific problems with a link to an MP3. When I click the link in IE7, a new browser window opens and the quicktime plugin tries to play the file. Instead ofthe player, I see a faded Quicktime icon w...
{ "language": "en", "url": "https://stackoverflow.com/questions/331716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: good component to password reminding in joomla I would like to change the default behavior of Joomla's password reminding mechanism. I would like to be provided with checking of the strength of a password and (optionally) with captcha capabilities. I was wondering if there's a free component for Joomla which I could...
{ "language": "en", "url": "https://stackoverflow.com/questions/331717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Validation of viewstate MAC failed I am currently receiving this error: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. I have fou...
{ "language": "en", "url": "https://stackoverflow.com/questions/331720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can't make my slice from the HTML link repeat to extend I have attempted to insert an html image withing an email (Outlook) to save as a template. I am finding that there is a slice that should repeat is not working correctly (to have the color extend to where the text ends). Is there someone who may be able to as...
{ "language": "en", "url": "https://stackoverflow.com/questions/331723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I refer to a control within its event? (without using it's name) Is there a way in .net to refer to a control generically (so that if the control name changes, etc.) you don't have a problem. I.e., the object level version of the "me" keyword. So, I'd like to use something generic instead of RadioButton1 in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JPA Multiple Embedded fields Is it possible for a JPA entity class to contain two embedded (@Embedded) fields? An example would be: @Entity public class Person { @Embedded public Address home; @Embedded public Address work; } public class Address { public String street; ... } In this case ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "88" }
Q: How to disable Eclipse (3.3.2) warning: Access to enclosing constructor... is emulated by a synthetic accessor method I work on a large project and want to disable the Eclipse compiler warning stating: Access to enclosing constructor ... is emulated by a synthetic accessor method. Increasing its visibility will imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/331751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I setup TeamCity for public access over https? How do I setup TeamCity 4.0 so that I can access it over port 443 on the internet? e.g. https://teamcity.mydomain.com I am running IIS 7 on the same server that TeamCity is installed. I see two options: * *Setup TeamCity to use port 8443 and create a reverse...
{ "language": "en", "url": "https://stackoverflow.com/questions/331755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How to turn off the beep sound in Eclipse? On Mac OS X, I am running Flex Builder (which is basically a customized Eclipse). When I do a Find it beeps if it cannot find the selected text and when it wraps the search to the top. Is it possible to turn off that beep? I've searched the internet and the preferences pane...
{ "language": "en", "url": "https://stackoverflow.com/questions/331757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Is there an easy way to revert an entire P4 changelist? Let's say I checked in a changelist (in Perforce) with lots of files and I'd like to revert the entire changelist. Is there an easy way to "revert" the entire changelist in one fell swoop? Currently I do something like this for each file in the changelist: *...
{ "language": "en", "url": "https://stackoverflow.com/questions/331758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How can I integrate Perl with ASP.NET Webforms? I want to integrate some existing Perl code with ASP.NET. I see plenty examples of accessing Perl from .NET but nothing on the reverse. Has anyone had any experience attempting to do this or does everyone just recreate their existing Perl functionality in one fell swoo...
{ "language": "en", "url": "https://stackoverflow.com/questions/331765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is a good Python format style I've created a small python script to toggle between two files I'm using for testing. My question is, what is a good Python format style for the following code: import filecmp import shutil local = "local.txt" remote = "remote.txt" config_file = "C:\some\path\file.txt" shutil.cop...
{ "language": "en", "url": "https://stackoverflow.com/questions/331767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I fix this MySQL query? SELECT avg(con_hits) as avg_hits FROM content WHERE con_type = 1 AND con_posttime < $twelve_hrs_ago AND con_refresh = 0 ORDER BY con_posttime DESC LIMIT 100 I would like it to go to the first record that was posted at least 12 hours ago (denoted by the $twelve_hr...
{ "language": "en", "url": "https://stackoverflow.com/questions/331770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are my options for running Java 6 on OS X? What are my options for running Java 6 on OS X? I have an MacBook Pro Intel Core Duo running Mac OS X 10.4. Do I have any options for running Java 6 on this hardware and OS? Related questions: Which Macs (either current or forthcoming) support 64-bit computing? Are th...
{ "language": "en", "url": "https://stackoverflow.com/questions/331777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Since .NET has a garbage collector why do we need finalizers/destructors/dispose-pattern? If I understand correctly the .net runtime will always clean up after me. So if I create new objects and I stop referencing them in my code, the runtime will clean up those objects and free the memory they occupied. Since this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "68" }
Q: Access internal file VB.NET I added a text file to a testapp's solution and I want to read said file. I don't remember how to do this, I know it has to do with reflections but I need a push in the right direction. A: If you add the text file to a .ResX file, you can have all the benefits (dynamic updating, for ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/331794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reporting Services 403 error I've recently updated an application to the 3.5 framework (from 2.0). The app links to Reporting Services (2005) remotely via an URL. This all works fine locally but when deployed to the dev server (win 2003) I'm getting a 403 error when attempting to call the report server. "You are not...
{ "language": "en", "url": "https://stackoverflow.com/questions/331797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is CreateProcess failing in Windows Server 2003 64-bit? We have a 32-bit application that launches other 32-bit applications during its process. The application is working fine on other 64-bit platforms but on Windows Server 2003 64-bit, we get an error trying to launch the apps: error 193 (not a valid 32 bit ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/331829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best practices for storing uploaded files in filesystem What is the best practices regarding storing files uploaded from users? Currently, I am during the following method for storing files: <web_app_root>/course_material/<term_id>/<course_id>/<file_id> As you can see, the files are stored according to the keys in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to determine if a page is being redirected I need to check whether a page is being redirected or not without actually downloading the content. I just need the final URL. What's the best way of doing this is Python? Thanks! A: If you specifically want to avoid downloading the content, you'll need to use the HEAD...
{ "language": "en", "url": "https://stackoverflow.com/questions/331855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Connecting phpMyAdmin to a MySQL server over SSL I may be barking up the wrong tree... However, what I have is a MySQL server that accepts connections only from a client with a valid SSL cert (see this link). This works great for example with Rails. I have my database on one server, and a Rails app that connects usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/331856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can a silverlight client access a local sql compact database that is stored in isolated storage Does the silverlight clr support access to a sql compact database placed in the silverlight application's isolated storage? If so, any pointers to code samples. I would like to cache information retrieved from the server ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I set a system environment variable in Windows XP without using the "My Computer" Dialog I'm switching between different Java SDKs (1.4.2, 1.5.0 and 1.6.0) for various projects. I would like to set the JAVA_HOME environment variable on my Windows XP machine without going through the tedious My Computer -> Ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/331862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Events in cpp/opengl I would like to create infrastructure to handle events for my opengl project. It should be similar to what wpf has - 3 types of events - direct, tunneling, bubbling. I then want to handle events such as mouse up, down, move etc. How should i approach this problem? Is there any library to handle ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Project Types in ASP.NET How do I create a Web Application Project in VS 2008? How is it different from a "WebSite" project? A: File--New--Project instead of File--New--Web Site It acts as a different container all together and the compile model is different. ScottGu provided some details when they were first launc...
{ "language": "en", "url": "https://stackoverflow.com/questions/331879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ sorting a vector or linked list I have an input file that I want to sort based on timestamp which is a substring of each record. I want to store multiple attributes of the The list is currently about 1000 records. But, I want it to be able to scale up a bit just in case. When I did it with a Linked List by se...
{ "language": "en", "url": "https://stackoverflow.com/questions/331889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: VB6: Capicom Crashes on WinXP Any suggestions on figuring out this crash? The below code intermittently crashes between logging <part>14 and logging <part>15. Plaintext is a path string (in this case it is "C:\Documents and Settings\Brian\Desktop\Joy\", despite a clear lack of such joy. I have a sinking feeling th...
{ "language": "en", "url": "https://stackoverflow.com/questions/331901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting a PDF to a series of images with Python I'm attempting to use Python to convert a multi-page PDF into a series of JPEGs. I can split the PDF up into individual pages easily enough with available tools, but I haven't been able to find anything that can covert PDFs to images. PIL does not work, as it can't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: What am I doing wrong with this pointer cast? I'm building a GUI class for C++ and dealing a lot with pointers. An example call: mainGui.activeWindow->activeWidget->init(); My problem here is that I want to cast the activeWidget pointer to another type. activeWidget is of type GUI_BASE. Derived from BASE I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Testing SMS code without access to a texting plan Is there any way to test SMS messaging without having a texting plan? There isn't any way to setup the equivalent of a mock email server for the purposes of testing an SMS service is there? Are there any other ways to accomplish the task? Perhaps setting up somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/331941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Class usage in ORM based projects This question is about "best use" scenarios in projects with ORMs like NHibernate, Subsonic, Linq2SQL, etc... All of these tools generate basic entity classes, some with attributes, others without. Do people use these classes as their business classes? Or is there wholesale copyin...
{ "language": "en", "url": "https://stackoverflow.com/questions/331951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java: enough free heap to create an object? I recently came across this in some code - basically someone trying to create a large object, coping when there's not enough heap to create it: try { // try to perform an operation using a huge in-memory array byte[] massiveArray = new byte[BIG_NUMBER]; } catch (Ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/331953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is It Ever Justified To Open A New Window/Tab From A Hyperlink? Simple question, spurred on by the removal of the target attribute in HTML 4.0 Strict and XHTML 1.0 Strict. A: I personally don't think so, as web users become more savvy, they'll ask for a new window from the browser. It annoys me when a website does...
{ "language": "en", "url": "https://stackoverflow.com/questions/331955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I switch a text box for a , , or using jQuery? I'm trying to "single source" a form page which can be in edit mode or view mode. For various reasons, this isn't using the ASP.Net FormView or DetailsView controls. Since there is no way to disable a textbox without turning its contents gray (well, we could "e...
{ "language": "en", "url": "https://stackoverflow.com/questions/331963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to detect if session is live or expired? Is there a call I can make to determine whether my session is still alive in a gsoap client? The only way I see to check if a session is still alive is to check to see if all the cookie values match after each soap call. It seems like gsoap would be aware of the session b...
{ "language": "en", "url": "https://stackoverflow.com/questions/331964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Detecting DataRow changes from within a partial class Let's say I have an interface representing a domain object: public interface IFoo { Bar Bar { get; } } The Bar type is a family of objects, each of which has a slightly different schema. In the database, this is represented as XML (this is a mobile app, so i...
{ "language": "en", "url": "https://stackoverflow.com/questions/331968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which action is executing during an HtmlHelper extension method I'm working on a menu-generating HtmlHelper extension method. This method will need to know which Action is being executed. So if Home/Index is executing, the extension method would show all links to other actions that're "coordinated." In a sense, all ...
{ "language": "en", "url": "https://stackoverflow.com/questions/331972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I serialize a C# anonymous type to a JSON string? I'm attempting to use the following code to serialize an anonymous type to JSON: var serializer = new DataContractJsonSerializer(thing.GetType()); var ms = new MemoryStream(); serializer.WriteObject(ms, thing); var json = Encoding.Default.GetString(ms.ToArray(...
{ "language": "en", "url": "https://stackoverflow.com/questions/331976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "179" }