text
stringlengths
8
267k
meta
dict
Q: How does Google Chrome affect product owners developing web apps? If my app has been tested in Firefox 3, Safari 3 & IE 7 will it need additional testing for Chrome? If there are areas that'll need further testing -- then are there any online guides I could share with my designers & developers? At what point will Ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/407451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MSSQL Database Cleanup - How do you find unused objects (Tables, Views, Procs, Functions) Lets say you have inherited a MS SQL 2000 or 2005 database, and you know that some of the Tables, Views, Procs, and Functions are not actually used in the final product. Is there some kind of internal logging or another mecha...
{ "language": "en", "url": "https://stackoverflow.com/questions/407452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Transferring Contents of Crystal Report to a Text File ANSI Format Is there any way to export the contents of a Crystal Report to a text File - I am using VS 2005. A: I'd try to export to rtf/html and strip the tags A: Set the ReportDocument object FormatOptions.ExportFormatType = TabSeperatedText, before you call...
{ "language": "en", "url": "https://stackoverflow.com/questions/407456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio missing "Add Installer" link in service project I'm building a Windows service and following this MSDN article, but I'm stuck on step 3 under "Create an installer". I can't find the "Add Installer" link it's referring to. I've clicked everywhere, including following the instructions it gives exactly, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/407459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Adding Date Picker to view programmatically? Can someone illustrate (or point me to a good tutorial) on how to add a Date Picker to a view programmatically (i.e., without using the interface editor)? A: It's very easy man.You can do it in seconds. Just use the these methods in your.m file...all is ready - (void)v...
{ "language": "en", "url": "https://stackoverflow.com/questions/407460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How to synchronize the same object on client and server side in client-server application? Is small messages framework good for this job? I'm making a game engine in c++ and python. I'm using OGRE for 3D rendering, OpenAL for sound, ODE for physics, OIS for input, HawkNL for networking and boost.python for embedded ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is for the Index option in TRemotable derivated classes? When WSDL importer wizard generates the interfaces, all properties have the Index option, but reading the code and the InvokeRegistry unit, I can't found what is that for, anyone know if it is really necessary? Like this Login = class(TRemotable) priv...
{ "language": "en", "url": "https://stackoverflow.com/questions/407467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Python urllib2 file upload problems I'm currently trying to initiate a file upload with urllib2 and the urllib2_file library. Here's my code: import sys import urllib2_file import urllib2 URL='http://aquate.us/upload.php' d = [('uploaded', open(sys.argv[1:]))] req = urllib2.Request(URL, d) u = urllib2.urlopen(req) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Does the Model Binder in ASP.NET MVC Beta Support List? Take the example classes below. I want to display the customer and two addresses (from a LIST) on a form. Does the model binder in MVC beta support this or will I have to write my own custom binder? public class Customer { public string FirstName { get; s...
{ "language": "en", "url": "https://stackoverflow.com/questions/407491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: HibernateTransactionManager(Spring) with multiple Session Factories I have a DAO implementation that uses a HibernateTransactionManager for transaction management and the application has 2 session factories. I am getting an exception at the transactionManager.commit() line below. Does performing Hibernate operations...
{ "language": "en", "url": "https://stackoverflow.com/questions/407492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is Google Web Toolkit similar to AWT and Swing I've looked breifly into GWT and like the idea that I can develop in Java and have the application compile down to HTML and JavaScript. Is the concept behind GWT and AWT and Swing the same or different? A: GWT is very much similar to Swing in its usage of Widgets, Pane...
{ "language": "en", "url": "https://stackoverflow.com/questions/407506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Code Golf: Leibniz formula for Pi I recently posted one of my favourite interview whiteboard coding questions in "What's your more controversial programming opinion", which is to write a function that computes Pi using the Leibniz formula. It can be approached in a number of different ways, and the exit condition t...
{ "language": "en", "url": "https://stackoverflow.com/questions/407518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: What are the limitations to SQL Server Compact? (Or - how does one choose a database to use on MS platforms?) The application I want to build using MS Visual C# Express (I'm willing to upgrade to Standard if that becomes required) that needs a database. I was all psyched about the SQL Server Compact - because I don'...
{ "language": "en", "url": "https://stackoverflow.com/questions/407521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: Escape a string for a sed replace pattern In my bash script I have an external (received from user) string, which I should use in sed pattern. REPLACE="<funny characters here>" sed "s/KEYWORD/$REPLACE/g" How can I escape the $REPLACE string so it would be safely accepted by sed as a literal replacement? NOTE: The K...
{ "language": "en", "url": "https://stackoverflow.com/questions/407523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "411" }
Q: Eliminate sort order on Data tab of SQL Developer table view In Oracle SQL Developer, one can list the data in a table using the Data tab when viewing a table. There is also a 'Sort...' button to set the sort order of the data you are viewing. This can be very handy for viewing some data on the fly. The problem: I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is your code maintenance strategy for custom SharePoint assemblies? How do you handle improvements and added functionality to your existing SharePoint code? Did you deploy your original code as a feature? Do you create a new feature_V2 and deactivate the original? What processes have you found that led to p...
{ "language": "en", "url": "https://stackoverflow.com/questions/407531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: IIS Module for Blocking Heavy Site Traffic Question Hello All, A little background on my issue... I currently have a site built for the ISP I work for that displays messages to users based on their billing status. When they are in Non-Pay I display a Non-Pay message and if they are in Abuse, I display an abuse mes...
{ "language": "en", "url": "https://stackoverflow.com/questions/407536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript and Translations I have a PHP application that makes extensive use of Javascript on the client side. I have a simple system on the PHP side for providing translators an easy way to provide new languages. But there are cases where javascript needs to display language elements to the user (maybe an OK or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Any reason not to use ESXi? We have 3 identical HP DL380 G5 server here, one of them is running vmware-server with one VM running on it. I've begun the process to migrate these systems to be running ESXi (the $0, "embedded" system); two of the physical machines will have %99.99 of the time exactly 1 VM, the other wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/407564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VSS and Visual Studio 2008 "Binary Files Differ" message for source files I'm using VSS 2008 and Visual Studio 2008. When my source files are checked in, the VSS property dialog shows them as type "Unicode (UTF-8)". But if I check one out from within Visual Studio, then do a compare, it says "binary files differ"....
{ "language": "en", "url": "https://stackoverflow.com/questions/407571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Logical error BST ... wrong results HI i did this code with help of Marc Gravell in Why can't I find _left and _right in BinarySearchTree? & How do I correct an implicit conversion error in BST C# Code? , its Binary search tree , but now I'm having logical error the results coming are wrong the output of my code is...
{ "language": "en", "url": "https://stackoverflow.com/questions/407579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the VB.Net Code Equivelant for c# Anonymous Type code? Can someone tell me what the code equivelant in VB.Net to this C# code is? new {name="value"} A: This is called Anonymous Types and the VB equivalent is : New With {.Name = "value"} A: That feature is called an anonymous type.
{ "language": "en", "url": "https://stackoverflow.com/questions/407586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Python: Set Bits Count (popcount) Few blob's have been duplicated in my database(oracle 11g), performed XOR operations on the blob using UTL_RAW.BIT_XOR. After that i wanted to count the number of set bits in the binary string, so wrote the code above. During a small experiment, i wanted to see what is the hex and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do you handle errors from AJAX calls? Let's say I have the following jQuery AJAX call: $.ajax({ type: "POST", url: "MyUrl", data: "val1=test", success: function(result){ // Do stuff } }); Now, when this AJAX call is made I want the server-side code to run through a few error handling che...
{ "language": "en", "url": "https://stackoverflow.com/questions/407596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How to get a thread and heap dump of a Java process on Windows that's not running in a console I have a Java application that I run from a console which in turn executes an another Java process. I want to get a thread/heap dump of that child process. On Unix, I could do a kill -3 <pid> but on Windows AFAIK the only ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "265" }
Q: Java RMI Resources I am currently undertaking a project that involves extensive use of Java RMI and I was wondering if anyone is aware of any good resources about it. The problem I am having with the material I am finding currently is that its usually quite out of date (like Java 1.3) and / or half complete. I would...
{ "language": "en", "url": "https://stackoverflow.com/questions/407614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Java for Audio Processing is it Practical? Is Java a suitable alternative to C / C++ for realtime audio processing? I am considering an app with ~100 (at max) tracks of audio with delay lines (30s @ 48khz), filtering (512 point FIR?), and other DSP type operations occurring on each track simultaneously. The operatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/407624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Fitnesse- Error refactoring a page HI, Everytime I try to refactor a page I get the following error- Cannot rename FitNesse.StoreProcedure to TestSuite.StoreProcedure TestSuite.StoreProcedure is not a valid simple page name. Due to this I am having trouble creating a test suite. Any help will be appreciated. A: Are...
{ "language": "en", "url": "https://stackoverflow.com/questions/407628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET application that needs to have built in "Mail Merge" functionality Is there some way to have the Mail Merge capability in my application? Maybe a MS Word API? A: Yeah, you use Word Automation: http://support.microsoft.com/kb/301659 A: I've implemented it using a third-party library for Microsoft Word: Aspose...
{ "language": "en", "url": "https://stackoverflow.com/questions/407629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Oracle Database to Class Diagram We are using an oracle database in a project. Most of the tables represents classes or objects in the application. The application currently doesn't have a substantial amount of documentation. I am using StarUML to make up some class diagrams and such for other developers on the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/407639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL: tell whether columns are unique with respect to each other Suppose I've got a table: Role ---- person_id company_id financial_year How can I tell the following: * *Whether each person_id occurs at most once per company_id per financial_year in this table *If 1. is false, which person_id's and company_id's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you trigger the "error" callback in a jQuery AJAX call using ASP.NET MVC? This is related to my question on how to handle errors from jQuery AJAX calls. Several responses suggested that I use the "error" callback to display any errors from a jQuery AJAX call. I was wondering how to do that using ASP.NET MVC...
{ "language": "en", "url": "https://stackoverflow.com/questions/407651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How to save all functions I entered in LispBox/Slime? Situation: I entered several functions while working with REPL in Emacs. Problem: There is junk like "; Evaluation aborted" when I'm simply saving buffer. What I want: clear descriptions of all the functions I entered in their latest revision. Can I do that? Than...
{ "language": "en", "url": "https://stackoverflow.com/questions/407658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Query AD from sql server 2005 I am attempting to query AD via ldap from within SQL Server 2005 but get the following error: Msg 7321, Level 16, State 2, Line 1 An error occurred while preparing the query "SELECT NAME,MAIL FROM "LDAP:///CN=foo,CN=Users,DC=bar,DC=com"" for execution against OLE DB provider "ADsDSOObje...
{ "language": "en", "url": "https://stackoverflow.com/questions/407671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How I insert and get values to and from database using Zend framework How I insert my username, Password values to database using Zend framework. And how I get the values from the database using zend framework. A: Do you have any knowledge of working with databases in PHP? you should definitely start there before ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apache Derby: how can I do "insert if not exists"? I'm giving Apache Derby, aka JavaDB a spin. I can't seem to get around duplicate key issues when inserting records that may already exist. Is there a Derby equivalent to "insert if not exists", or "merge" ? Similarly, is there a way to do something like "drop ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/407688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How do I convert Rtf to Text using ASP.Net? How do I convert To Text Format from RTF using ASP.Net? A: You have instructions on MSDN In C# class ConvertFromRTF { static void Main() { string path = @"test2.rtf"; //Create the RichTextBox. (Requires a reference to System.Windows.Forms.dll.) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to convert between Progress Database Character[] datatype and C# strings? Progress databases allow for a Character[x] datatype. How can I write to a particular x using C# and ODBC? Please do not answer unless you understand the what Character[x] means... it is not a string (array of chars), it is an array of str...
{ "language": "en", "url": "https://stackoverflow.com/questions/407690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dojo to jQuery migration I have this code: dojo.declare("City", null, { constructor : function(cityid, cityinfo){ } }); dojo.declare("TPolyline", GPolyline, { constructor : function(points, color){ }, initialize : function(map){ }); What should be it's jQuery equivalent? A: I do not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Automatically wrap unit tests in DB transaction? [Edit (Haren): Duplicate] I'm looking for a way to automatically wrap my NUnit integration tests in a DB transaction, so that changes made by the test are automatically rolled back when the test ends. Ideally, I would decorate certain test methods with a custom attr...
{ "language": "en", "url": "https://stackoverflow.com/questions/407702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using the entity framework to add existing entities to a collection on a newly created entity I am using the Entity framework to create a new order. The order contains a collection of contacts, a many to many relationship. I want to add a reference to an existing contact on the order on creation of the order. Bot...
{ "language": "en", "url": "https://stackoverflow.com/questions/407712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: how to restart asp.net application besides modifying web.config Is there a recommended way to bounce an asp.net application besides touching web.config from inside the application? is HttpRuntime.UnloadAppDomain(); the preferred way to do this ? and if so where do you do this? In the unload of a page or some other ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Stop LINQ to SQL from executing select statements after insert I'm using LINQ to SQL to update my database. I'm inserting a lot of records, and when I call SubmitChanges(), LINQ to SQL executes an insert and a select statement for each object. I don't really care to update my objects after they are inserted into t...
{ "language": "en", "url": "https://stackoverflow.com/questions/407720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Determine if a sequence contains all elements of another sequence using Linq Given two sets of values: var subset = new[] { 2, 4, 6, 8 }; var superset = new[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; how do I determine if superset contains all elements of subset? I have come up with this: superset.Intersect(subset).Count...
{ "language": "en", "url": "https://stackoverflow.com/questions/407729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "117" }
Q: Contains Test for a Constant Set The problem statement: Given a set of integers that is known in advance, generate code to test if a single integer is in the set. The domain of the testing function is the integers in some consecutive range. Nothing in particular is known now about the range or the set to be tested....
{ "language": "en", "url": "https://stackoverflow.com/questions/407731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: A generic priority queue for Python I need to use a priority queue in my Python code, and: * *am looking for any fast implementations for priority queues *optimally, I'd like the queue to be generic (i.e. work well for any object with a specified comparison operator). Looking around for something efficient, I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: hibernate criteria - querying tables in n:m relationship I'm trying to build a query with hibernate criteria for the following scenario: * *Two entities: Indicator and report (each with their own tables, classes etc.) *an indicator can be used in zero to many reports *a report uses zero to many indicators *the...
{ "language": "en", "url": "https://stackoverflow.com/questions/407737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What to include in a Utility Library With more and more projects under my belt I find that I am often repeating many common tasks from project to project, client to client. So I have started to assemble a "utility" library, a collection of these common elements that are often repeated from project to project. So fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/407739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Guaranteed Eclipse Plugin Startup Order Anyone know of a way to guarantee plugin startup order? I have a plugin that I want to develop that will provide runtime configuration information to a 3rd-party plugin that I can't modify. So, I want to make sure my plugin always runs to completion before the 3rd-party. Ecli...
{ "language": "en", "url": "https://stackoverflow.com/questions/407752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Internationalization in the database Do you guys think internationalization should only done at the code level or should it be done in the database as well. Are there any design patterns or accepted practices for internationalizing databases? If you think it's a code problem then do you just use Resource files to lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/407756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: C#: What is the proper way to show a form for "frmMainForm" settings and disposing? Backdrop: There are two forms, the main application form and a form to edit various settings for the operations of main application. What would be the proper way to show the frmSettings form and how to dispose it once clicked OK or C...
{ "language": "en", "url": "https://stackoverflow.com/questions/407763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Invoke method dynamically in VB.Net I've some classes defined in a dll file. These are in the form of com api. I'm trying to create an object of one of the class dynamically and than setting some property of that object. When I set the property manually, it works, but when I try to invoke the same using reflection i...
{ "language": "en", "url": "https://stackoverflow.com/questions/407769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mapping individual buttons on ASP.NET MVC View to controller actions I have an application where I need the user to be able to update or delete rows of data from the database. The rows are displayed to the user using a foreach loop in the .aspx file of my view. Each row will have two text fields (txtName, txtDesc)...
{ "language": "en", "url": "https://stackoverflow.com/questions/407770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Allowing code snippets in form input while preventing XSS and SQL injection attacks How can one allow code snippets to be entered into an editor (as stackoverflow does) like FCKeditor or any other editor while preventing XSS, SQL injection, and related attacks. A: Part of the problem here is that you want to allow ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Programmatically choose high-contrast colors This should be a simple question, but I haven't been able to find a way to make it work. Essentially, I have a silly localhost page that I use in my webdevelopment. When I am surfing between our development server and my local version of the C# code (redirected from the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: When might you not want to use garbage collection? Garbage collection has been around since the early days of LISP, and now - several decades on - most modern programming languages utilize it. Assuming that you're using one of these languages, what reasons would you have to not use garbage collection, and instead m...
{ "language": "en", "url": "https://stackoverflow.com/questions/407798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Where is the <%=Html.RadioButtonList()%> extension in MVC beta? Is there any reason why there isnt a radiobutton list helper in the core MVC beta? There's a dropdownlist, but no radiobuttonlist. I know that I can easily create an extension method to do surely this is a core thing? A: its in the mvc futures you can...
{ "language": "en", "url": "https://stackoverflow.com/questions/407803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: throwing an exception in a windows service Does throwing an exception in a windows service crash the service? i.e. it will have to be restarted manually Note: I am throwing the exception from within the catch clause. A: Not strictly so -- it'd only cause problems if the exception is unhandled. A: If the exception ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Up and download directly - no waiting I would want to program something where you upload a file on the one side and the other person can download it the moment I start uploading. I knew such a service but can't remember the name. If you know the service I'd like to know the name if its not there anymore I'd like to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Align an image where the source is set by javascript I'm putting the network solutions 'seal' image on my site and they give you a javascript that sets the image. I'm wanting the image to align>right. However, if you want the image, they give you a javascript code stub and it handles the rest, which has no alignment...
{ "language": "en", "url": "https://stackoverflow.com/questions/407838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing the Profile object from Code Behind Bug? (ASP.NET 2.0 Provider Model) I have been playing around w/ ASP.NET's Membership, Roles, and Profile providers. In doing so, I recently set up Microsoft Sample's custom Table Profile Provider (see: http://www.asp.net/downloads/sandbox/table-profile-provider-samples/...
{ "language": "en", "url": "https://stackoverflow.com/questions/407845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: With svn how do I add a log message to trunk when creating a tag? When building a project I tag the source using the svn copy command. When viewing history for trunk I don't see a log message for those tags. I would like to see a log message for each of my release versions in trunk. I want to be able to easily se...
{ "language": "en", "url": "https://stackoverflow.com/questions/407854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How does Java Garbage collector handle self-reference? Hopefully a simple question. Take for instance a Circularly-linked list: class ListContainer { private listContainer next; <..> public void setNext(listContainer next) { this.next = next; } } class List { private listContainer entry; <..> } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Passing flashvars-style parameters to a loaded SWF I have a Flex 3 app (player v9) which loads a Flash SWF (AS3, also player v9) and needs to dynamically pass it a collection of parameters which are known at run-time. These are parameters that are normally passed via the flashvars element in an HTML page. The embedd...
{ "language": "en", "url": "https://stackoverflow.com/questions/407858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Ghostscript and high resolutions? I am writing a script that reads some markup data, generates a tex document and converts it to a png image. As long as I use a resolution up tp 286 px/inch everything works fine. Unfortunately GhostScript, which I use to create picture data, does nothing when I use higher values. Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/407869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pagination: Server Side or Client Side? What is it best to handle pagination? Server side or doing it dynamically using javascript? I'm working on a project which is heavy on the ajax and pulling in data dynamically, so I've been working on a javascript pagination system that uses the dom - but I'm starting to think...
{ "language": "en", "url": "https://stackoverflow.com/questions/407878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: How do I get Intellisense (code completion) to work on VS.NET inside Parallels on a Mac? How do I get Intellisense to work on Visual Studio running inside Parallels on a Mac? On my PC I press CTRL+Space to get Intellisense, but inside Parallels it looks like no key combination works; I thought that maybe it's becaus...
{ "language": "en", "url": "https://stackoverflow.com/questions/407879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can I use templates instead of macros for Exception class creation? I often want to define new 'Exception' classes, but need to have an appropriate constructor defined because constructors aren't inherited. class MyException : public Exception { public: MyException (const UString Msg) : Exception(Msg) { }; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I send up debian sendmail to use google Apps smtp to by pass ISP blocking smtp I have a debian webserver and it is running shopsite and some php programs. Which use sendmail to send out email to customers. So this server only needs to send email out. So how do I setup sendmail to use Google Apps smtp? Because...
{ "language": "en", "url": "https://stackoverflow.com/questions/407887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Set Global Variable for Duration of a Request Can I set some kind of global variable for the length of a single Request, so that all the controls of the page can respond to it without having to pass it through to each of them? For instance, if someone hit a Save button on my MasterPage, could I set something so that...
{ "language": "en", "url": "https://stackoverflow.com/questions/407902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Implementing keyword comparison scheme (reverse search) I have a constantly growing database of keywords. I need to parse incoming text inputs (articles, feeds etc) and find which keywords from the database are present in the text. The database of keywords is much larger than the text. Since the database is constan...
{ "language": "en", "url": "https://stackoverflow.com/questions/407904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you build the Windows D3D9 refrast from source? Microsoft distributes source code to reference implementations of their different Direct3D APIs to hardware vendors, driver developers, etc. This code builds using the ever-cryptic WDK (formerly DDK) build system, and virtually never works out-of-the-box. Though...
{ "language": "en", "url": "https://stackoverflow.com/questions/407905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Loading Assembly only once I'm loading an assembly at runtime and the question that arises everytime I call the code is that should I be checking if that particular assembly has loaded already? or does .Net take care of this and one assembly (same version) can only be loaded once? The basic question here is do i hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/407906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there an XSLT buddy available somewhere? I think a lot of people know about tools like RegexBuddy. Is there something similar for XSLT? A: This is the closest I know that is free: XML Copy Editor Altova XML Spy is excellent but expensive. A: If you just want to experiment with an XSLT expression, there's a sand...
{ "language": "en", "url": "https://stackoverflow.com/questions/407910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: How do I change Eclipse to use spaces instead of tabs? By default Eclipse indents with a hard tab character. How do I change it to spaces? A: Go to Window -> Preferences and type tab as the search text (which will display a dialog like below): Go to the highlighted sections to change the tab policy. For the Editor...
{ "language": "en", "url": "https://stackoverflow.com/questions/407929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "940" }
Q: ASP.NET/C# - Custom PerformanceCounters only show up in 32-bit perfmon on 64-bit system I'm trying to create a set of custom performance counters to be used by my ASP.NET application. I use the following code to increment the counters: internal static void Increment(String instanceName, DistributedCacheCounterInstan...
{ "language": "en", "url": "https://stackoverflow.com/questions/407930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Breakpoint inside asp.net's __doPostBack method? What's the best way to put the "debugger;" statement inside the __doPostBack method or a way to step in the method? A: __doPastBack is still javascript running in the browser. While it's possible to debug javascript using visual studio and IE, if you want to set a b...
{ "language": "en", "url": "https://stackoverflow.com/questions/407934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to test for multiple row actions in a SQL Server trigger? My kindergarten SQL Server taught me that a trigger may be fired with multiple rows in the inserted and deleted pseudo tables. I mostly write my trigger code with this in mind, often resulting in some cursor based cludge. Now I'm really only able to test ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there a right way to retrieve a String field in SQL I have seen different ways to retrieve a string field from SQL. Is there a "right" way, and what are the differences SqlDataReader rdr; 1. String field = (String) rdr["field"]; 2. String field = rdr["field"].ToString(); 3. String field = rdr["field"] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Casting related invalid lvalue in unary & I'm getting the invalid lvalue error using gcc 3.4.6. The line that invokes the error has a function that receives a pointer to SetElement (which is typedef void*). I'm trying to achieve this using casting from another type (also typedef void*) the following way: &((SetEleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/407953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do you have to mess with Rails's "routes.rb" file? I never touch routes.rb beyond calling map.root to set a default route. I've always been content to use URLs of the form... /controller/action/perhaps_an_id and it works fine. Does this make me a bad person? Am I missing out on something totally awesome? What if I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/407956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: When do asp.net role providers live and die? I am working with a custom role provider in asp.net and it appears that once the provider is loaded into memory, it doesn't drop out of memory until the web application is restarted (like when the web.config file is changed and saved). Further, all of the requests to that...
{ "language": "en", "url": "https://stackoverflow.com/questions/407963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you Play an MP3 in VB.NET and Determine MS Played? I need to play an MP3 in the background while generating animation. The audio drives the animation timeline so I have to track MS from the start of the file to keep things in sync. In VB6 I used the MMControl which raised an event at certain intervals and c...
{ "language": "en", "url": "https://stackoverflow.com/questions/407964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When to use a Float Years ago I learned the hard way about precision problems with floats so I quit using them. However, I still run into code using floats and it make me cringe because I know some of the calculations will be inaccurate. So, when is it appropriate to use a float? EDIT: As info, I don't think that I...
{ "language": "en", "url": "https://stackoverflow.com/questions/407970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: Number of points on elliptic curve If you have an elliptic curve in the form of: y^2 = x^3 + a*x + b (mod p) Is there a good program to calculate the number of points on this curve? I have read about Schoof's and Schoof-Elkies-Atkin (SEA) algorithm, but I'm looking for open source implementations. Does anyone know...
{ "language": "en", "url": "https://stackoverflow.com/questions/407977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Reference counting in PHP I'd like to implement database caching functionality in PHP based on reference counts. For example, code to access the record in table foo with an ID of 1 might look like: $fooRecord = $fooTable->getRecord(1); The first time this is called, $fooTable fetches the appropriate record from th...
{ "language": "en", "url": "https://stackoverflow.com/questions/407980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# 3.0 generic type inference - passing a delegate as a function parameter I am wondering why the C# 3.0 compiler is unable to infer the type of a method when it is passed as a parameter to a generic function when it can implicitly create a delegate for the same method. Here is an example: class Test { static vo...
{ "language": "en", "url": "https://stackoverflow.com/questions/407983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: What are the primitive Forth operators? I'm interested in implementing a Forth system, just so I can get some experience building a simple VM and runtime. When starting in Forth, one typically learns about the stack and its operators (DROP, DUP, SWAP, etc.) first, so it's natural to think of these as being among the...
{ "language": "en", "url": "https://stackoverflow.com/questions/407987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Calculating distance between zip codes in PHP I grabbed a database of the zip codes and their langitudes/latitudes, etc from this This page. It has got the following fields: ZIP, LATITUDE, LONGITUDE, CITY, STATE, COUNTY, ZIP_CLASS The data was in a text file but I inserted it into a MySQL table. My question now i...
{ "language": "en", "url": "https://stackoverflow.com/questions/407989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Check the signature on large data sets efficiently using JCA I have to verify the signature on a file that may be as large as 2Gb, and I want to do so in a way that is as memory-efficient as possible. For various reasons, the file will already be loaded completely into memory, and is accessed using an InputStream b...
{ "language": "en", "url": "https://stackoverflow.com/questions/407990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Could not load file or assembly 'xxxx' or one of its dependencies. The system cannot find the file specified Inside VS2005, our whole programming staff gets this error message sporadically and it is always on the BeneControls project. This error message happens multiple times a day and it occurs when going into DESI...
{ "language": "en", "url": "https://stackoverflow.com/questions/408002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Screen resolution VS2008 to WM6 Emulator vs Device, why is it different? When I debug a VS2008 WM project in the emulator, it all works as expected, but when I select a device as the target for testing, the entire application gets hosed, appearing in the upper left of the display, distorted. How can I make the disp...
{ "language": "en", "url": "https://stackoverflow.com/questions/408007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Refactoring before_filters in Controller I'm working on a rails app that has a whole bunch of before filters in the users_controller which look up user's stateful roles provided by Acts as State Machine. They look something like this: class UsersController < ApplicationController before_filter :not_logged_in_requir...
{ "language": "en", "url": "https://stackoverflow.com/questions/408012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the difference between Visual Studio 2008 Standard and Professional? What does Pro have that's not in Standard (or vice-versa)? I need Visual Studio for personal use but I can't use the Express editions because I need T4. A: Microsoft Download Center, "Visual Studio 2008 Product Comparison Guide" http://www....
{ "language": "en", "url": "https://stackoverflow.com/questions/408022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I add a link to the SharePoint "create" page? I have a custom feature, and I'd like to link to that functionality from a link on the "Create" page -- the create.aspx page that you get to from the Site Actions menu. I'd be happy to do this either declaratively within my feature's element manifest or programm...
{ "language": "en", "url": "https://stackoverflow.com/questions/408024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: modopt and .NET reflection I have a CLI/C++ interface that I want to examine via .NET Reflection. Here's the function signature in the source code: class ClassA; template<typename _Type> class ClassTempA; public interface class Test : BaseFunc { public: ClassTempA<int>& SomeFunc2(ClassA inst) = 0; }; Here's w...
{ "language": "en", "url": "https://stackoverflow.com/questions/408028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Fastest way to implode an associative array with keys I'm looking for a fast way to turn an associative array in to a string. Typical structure would be like a URL query string but with customizable separators so I can use '&amp;' for xhtml links or '&' otherwise. My first inclination is to use foreach but since my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/408032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "133" }
Q: Prevent Python subprocess from passing fds on Windows? Python's subprocess module by default passes all open file descriptors to any child processes it spawns. This means that if the parent process is listening on a port, and is killed, it cannot restart and begin listening again (even using SO_REUSEADDR) because t...
{ "language": "en", "url": "https://stackoverflow.com/questions/408039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Vector graphics in iText PDF We use iText to generate PDFs from Java (based partly on recommendations on this site). However, embedding a copy of our logo in an image format like GIF results in it looking a bit strange as people zoom in and out. Ideally we'd like to embed the image in a vector format, such as EPS, S...
{ "language": "en", "url": "https://stackoverflow.com/questions/408042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Is MySql Version 5.1 ready for production use? We are currently using Mysql version 5.0 in our application and are thinking of moving to version 5.1 How stable is version 5.1.30 ? EDIT When version 5.0 was released it took a long time to become stable A: MySQL 5.1 recently went to GA, so apparently the dev team th...
{ "language": "en", "url": "https://stackoverflow.com/questions/408044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }