text
stringlengths
8
267k
meta
dict
Q: How to create an X++ batch job in Axapta 3.0? I'd like to create a batch job in X++ for Microsoft Axapta 3.0 (Dynamics AX). How can I create a job which executes an X++ function like this one? static void ExternalDataRead(Args _args) { ... } A: Here's the bare minimum needed to create a batch job in AX: Create a b...
{ "language": "en", "url": "https://stackoverflow.com/questions/170088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Adding gdb to MinGW I've gone to http://sourceforge.net/project/showfiles.php?group_id=2435, downloaded the Automated MinGW Installer for MinGW 5.1.4 and at the same time the GNU Source-Level Debugger Release Candidate: GDB 6.8-3. I've then installed MinGW base tools into C:\MinGW. No problem so far. However when I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: what are strategies for shielding off web resources based on business logic I have a scenario where I'm not really sure my approach is the best one, and I would appreciate feedback / suggestions. scenario: I have a bunch of flash based (swf) 'modules' which are hosted in my aspnet application. Each flash has it's ow...
{ "language": "en", "url": "https://stackoverflow.com/questions/170115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Benefits of using a Case statement over an If statement in a stored procedure? Hi are there any pros / cons relating to the speed that a stored procedure executes when using an IF statement or choosing to use a CASE statement instead? A: I try not to use IFs if I can avoid it, because they are non transactional, i....
{ "language": "en", "url": "https://stackoverflow.com/questions/170130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I add the interactive user to a directory in a localized Windows using WiX? How do I add the Swedish interactive user, NT INSTANS\INTERAKTIV or the English interactive user, NT AUTHORITY\INTERACTIVE or any other localised user group with write permissions to a program folder's ACL? Is this question ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to run a script in WiX with a custom action - simplest possible example? Newbie WiX question: How do I 1. Copy a single-use shell script to temp along with the installer e.g. <Binary Id='permissions.cmd' src='permissions.cmd'/> 2. Find and run that script at the end of the install. e.g. <CustomAction Id...
{ "language": "en", "url": "https://stackoverflow.com/questions/170144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Prevent users from starting multiple accounts? I know that in the end it, can't be done. But, what are the options to:   a) limit the options for persons to create multiple accounts,   b) increase the chance of detecting multiple accounts / person for a blog-like web service? (people can sign up for their own bl...
{ "language": "en", "url": "https://stackoverflow.com/questions/170152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: How to debug JavaScript in IE? Is there a better way to debug JavaScript than MS Script Editor? I am searching for something like Firebug. Firebug Lite doesn't offer this functionality, though. ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ A: Use Visual Studio 2008. The Web Development Helper from Nikhilk is us...
{ "language": "en", "url": "https://stackoverflow.com/questions/170164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: jQuery templating engines I am looking for a template engine to use client side. I have been trying a few like jsRepeater and jQuery Templates. While they seem to work OK in FireFox they all seem to break down in IE7 when it comes down to rendering HTML tables. I also took a look at MicrosoftAjaxTemplates.js (from h...
{ "language": "en", "url": "https://stackoverflow.com/questions/170168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "205" }
Q: Looping over elements in jQuery I want to loop over the elements of an HTML form, and store the values of the <input> fields in an object. The following code doesn't work, though: function config() { $("#frmMain").children().map(function() { var child = $("this"); if (child.is(":checkbox")) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Set a database value to null with a SqlCommand + parameters I was previously taught today how to set parameters in a SQL query in .NET in this answer (click). Using parameters with values are fine, but when I try to set a field in the database to null I'm unsuccessful. Either the method thinks I am not setting a val...
{ "language": "en", "url": "https://stackoverflow.com/questions/170186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Minimum directory structure and ant build file contents for Java web app What is the minimal conventional directory structure for a Java web app? What do I need to put in a build.xml file to get ant to build it and make a WAR file? My goal is to deploy a Wicket app to Tomcat without using an IDE. I want to do it wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/170192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do you make Flash not render an object on the Stage? This discussion started over here but I thought it would be nice to have a definitive answer... So let's say you have MovieClip on the Stage (or a UIComponent for the Flex audience) - what do you have to do to not make it so that the user can't see the object ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to improve garbage collection performance? What kind of optimization patterns can be used to improve the performance of the garbage collector? My reason for asking is that I do a lot of embedded software using the Compact Framework. On slow devices the garbage collection can become a problem, and I would like t...
{ "language": "en", "url": "https://stackoverflow.com/questions/170207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Hashes of Hashes Idiom in Ruby? Creating hashes of hashes in Ruby allows for convenient two (or more) dimensional lookups. However, when inserting one must always check if the first index already exists in the hash. For example: h = Hash.new h['x'] = Hash.new if not h.key?('x') h['x']['y'] = value_to_insert It wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/170223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Errors when trying to update ruby gems from 2.0.1 I am trying to set myself up on a mac to learn Ruby on Rails, however I seem to be having some problems. If I try to run commands such as ./script/server, i get this: Rails requires RubyGems >= 0.9.4 (you have 0.9.2). Please gem update --system and try again. When...
{ "language": "en", "url": "https://stackoverflow.com/questions/170267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Generic Class with "specialized" constructor I have a class like the following: public class DropDownControl<T, Key, Value> : BaseControl where Key: IComparable { private IEnumerable<T> mEnumerator; private Func<T, Key> mGetKey; private Func<T, Value> mGetValue; private Func<Key, bool> mIsKeyI...
{ "language": "en", "url": "https://stackoverflow.com/questions/170272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: USB Driver Development on a Mac using Python I would like to write a driver to talk to my Suunto t3 watch in Python on a Mac. My day job is doing basic web work in C# so my familiarity with Python and developing on a Mac is limited. Can you suggest how one would start doing driver development in general and then mor...
{ "language": "en", "url": "https://stackoverflow.com/questions/170278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Delphi 2009 Ribbon Controls - Glass Frame I've been starting to use the new inbuilt Ribbon controls in Delphi 2009 and use the custom frame so the Application button and Mini-toolbar slide up onto the Window Frame, but I'm wondering if on Vista it should use the glass effect like Office 2007 does, and if so how I wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/170282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Change Sound (or other) System Preferences in Mac OS X I'd like to be able to switch the sound output source in Mac OS X without any GUI interaction. There are tools to do control the sound output, such as SoundSource and an applescript to open the preferences dialog. What I am looking for is something that switches...
{ "language": "en", "url": "https://stackoverflow.com/questions/170294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: "Code covered" vs. "Code tested"? Converting my current code project to TDD, I've noticed something. class Foo { public event EventHandler Test; public void SomeFunction() { //snip... Test(this, new EventArgs()); } } There are two dangers I can see when testing this code and relying on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Seeing project dependancies from MSBuild Is there a mode, some switch or a programmatic way that I can ask MSBuild to display or output it's calculated dependencies for a given build file? Some background - I have a large project that requires splitting up to speed up the build time and want to remove the slow chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/170327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Executing a stored procedure within a stored procedure I would like to execute a stored procedure within a stored procedure, e.g. EXEC SP1 BEGIN EXEC SP2 END But I only want SP1 to finish after SP2 has finished running so I need to find a way for SP1 to wait for SP2 to finish before SP1 ends. SP2 is being execut...
{ "language": "en", "url": "https://stackoverflow.com/questions/170328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Django signals vs. overriding save method I'm having trouble wrapping my head around this. Right now I have some models that looks kind of like this: def Review(models.Model) ...fields... overall_score = models.FloatField(blank=True) def Score(models.Model) review = models.ForeignKey(Review) quest...
{ "language": "en", "url": "https://stackoverflow.com/questions/170337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "111" }
Q: What are the performance improvement of Sequential Guid over standard Guid? Has someone ever measured performance of Sequential Guid vs. Standard Guid when used as Primary Keys inside a database? I do not see the need for unique keys to be guessable or not, passing them from a web UI or in some other part seems a b...
{ "language": "en", "url": "https://stackoverflow.com/questions/170346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: How do I write to a log from mod_python under apache? I seem to only be able to write to the Apache error log via stderr. Anyone know of a more structured logging architecture that I could use from my python web project, like commons? A: This must have changed in the past four years. If you come across this questi...
{ "language": "en", "url": "https://stackoverflow.com/questions/170353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to detect user inactivity in an Excel workbook I want to take an action in an Excel workbook macro after a period of inactivity (hide/protect some worksheets). What is the best/simplest way to achieve this? Í'm assuming I'll use Application.OnTime to periodically check if the user has been active. But what eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/170355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does tomcat 5.5 treat .jsp and .jspx files in the same way? I'm working on a java web-application, trying to be xml-friendly and writing my jsp files using the jspx/xml syntax. It took me hours of dissecting examples and configuration files to find out that with tomcat 5.5 files using the new syntax should end in .j...
{ "language": "en", "url": "https://stackoverflow.com/questions/170377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why do thread functions need to be declared as '__cdecl'? Sample code that shows how to create threads using MFC declares the thread function as both static and __cdecl. Why is the latter required? Boost threads don't bother with this convention, so is it just an anachronism? For example (MFC): static __cdecl UINT...
{ "language": "en", "url": "https://stackoverflow.com/questions/170380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: An implementation of the fast Fourier transform (FFT) in C# Where can I find a free, very quick, and reliable implementation of FFT in C#? That can be used in a product? Or are there any restrictions? A: Here's another; a C# port of the Ooura FFT. It's reasonably fast. The package also includes overlap/add convol...
{ "language": "en", "url": "https://stackoverflow.com/questions/170394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: Maven: Missing: org.apache.maven.wagon:wagon-ftp:jar:1.0-rc1-SNAPSHOT I'm new to Maven so I may be missing something obvious, but I've got a maven project and when I try to "mvn package" this project it fails with ERROR BUILD ERROR INFO ------------------------------------------------------------------------ [INFO]...
{ "language": "en", "url": "https://stackoverflow.com/questions/170395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scrubyt gives 404 Error when clicking link using _details method This might be a similar problem to my earlier two questions - see here and here but I'm trying to use the _detail command to automatically click the link so I can scrape the details page for each individual event. The code I'm using is: require 'rubyge...
{ "language": "en", "url": "https://stackoverflow.com/questions/170405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do you know what may cause memory leaks in JavaScript? Do you know what may cause memory leaks in JavaScript? I am interested in browsers: IE 7, FireFox 3, Safari 3 A: There is a nice article about JavaScript and memory leaks. It does not specific about on browser, it rather describes the whole problematic of memor...
{ "language": "en", "url": "https://stackoverflow.com/questions/170415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: HowTo: Parse the UninstallString reg entry In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ is the list of installed programs in my machine (at least most of them). There, there's a String Value called UninstallString which has what you need to run in order to uninstall the program. The thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/170420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Performance: Python 3.x vs Python 2.x On a question of just performance, how does Python 3 compare to Python 2.x? A: I'd say any difference will be below trivial. For example, looping over a list will be the exact same. The idea behind Python 3 is to clean up the language syntax itself - remove ambigious stuff like...
{ "language": "en", "url": "https://stackoverflow.com/questions/170426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Stored procedure not being executed within another stored procedure I have found that SP2 doesn't execute from within SP1 when SP1 is executed. Below is the structure of SP1: ALTER PROCEDURE SP1 AS BEGIN Declare c1 cursor.... open c1 fetch next from c1 ... while @@fetch_status = 0 Begin ... Fetch Next from c1 e...
{ "language": "en", "url": "https://stackoverflow.com/questions/170440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Anyone implemented Endeca with .NET? Would you recommend Endeca or FAST? Which search engine would you recommend for a Commerce website? We have millions of products in a catalog and we want it to be as quick as possible. We would also want to make sure that the marketing driven through the search engine will be fas...
{ "language": "en", "url": "https://stackoverflow.com/questions/170442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Theory: "Lexical Encoding" I am using the term "Lexical Encoding" for my lack of a better one. A Word is arguably the fundamental unit of communication as opposed to a Letter. Unicode tries to assign a numeric value to each Letter of all known Alphabets. What is a Letter to one language, is a Glyph to another. Un...
{ "language": "en", "url": "https://stackoverflow.com/questions/170452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I read multiple tables into a dataset? I have a stored procedure that returns multiple tables. How can I execute and read both tables? I have something like this: SqlConnection conn = new SqlConnection(CONNECTION_STRING); SqlCommand cmd = new SqlCommand("sp_mult_tables",conn); cmd.CommandType = CommandType...
{ "language": "en", "url": "https://stackoverflow.com/questions/170455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Application Object and Concurrency Concerns In some asp tutorials, like this, i observe the following pattern: Application.Lock 'do some things with the application object Application.Unlock However, since web pages can have multiple instances, there is an obvious concurrency problem. So my questions are the follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/170458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a caching script for classic asp? PHP has a number of opcode caches, which as i understand it are scripts that handle the caching aspects of an application. Is there something similar for classic asp, especially something that does not require component installation? Regarding the IIS caching behaviour, it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the simplest, most maintainable way to create a SQL Server ODBC Data Source? I need a programmatic way of creating a SQL Server ODBC Data Source. I can do this by directly accessing the Registry. It would be better if this could be done via an available (SQL Server/Windows) API to protect against changes in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: makefiles - compile all c files at once I want to experiment with GCC whole program optimizations. To do so I have to pass all C-files at once to the compiler frontend. However, I use makefiles to automate my build process, and I'm not an expert when it comes to makefile magic. How should I modify the makefile if I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: HTML Data exceeds field length after being hex-sanitized The problem is you can't tell the user how many characters are allowed in the field because the escaped value has more characters than the unescaped one. I see a few solutions, but none looks very good: * *One whitelist for each field (too much work and doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/170479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Out of Memory - Infinite Loop - ASP.NET AJAX Framework We're running on .NET 3.5 SP1. Recently, in IE, some of our users started getting "Out of Memory" errors once in a while. This doesn't happen all the time. I managed to replicate it a couple times and I found that this code, from the AjaxControlToolkit.Common.C...
{ "language": "en", "url": "https://stackoverflow.com/questions/170483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Either OR non-null constraints in MySQL What's the best way to create a non-NULL constraint in MySQL such that fieldA and fieldB can't both be NULL. I don't care if either one is NULL by itself, just as long as the other field has a non-NULL value. And if they both have non-NULL values, then it's even better. A: Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/170492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Language features to implement relational algebra I've been trying to encode a relational algebra in Scala (which to my knowlege has one of the most advanced type systems) and just don't seem to find a way to get where I want. As I'm not that experienced with the academic field of programming language design I don't...
{ "language": "en", "url": "https://stackoverflow.com/questions/170500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Frame expert system What's the best way to write a simple frame-based expert system, which determines if object is relative to some group? It's a kind of lab work for Intelligent Systems course in university. Or are there any OpenSource projects to study it's realization? A: We used LPA's Flex which is a toolkit th...
{ "language": "en", "url": "https://stackoverflow.com/questions/170529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reset @@FETCH_STATUS stored procedure How can I reset the @@FETCH_STATUS variable or set it to 0 in a stored procedure? Also, can you bind FETCH_STATUS to a particular cursor? A: I am able to reproduce the @@FETCH_STATUS issue you describe, this is once you DECLARE a CURSOR and iterate through the rows by calling F...
{ "language": "en", "url": "https://stackoverflow.com/questions/170536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java: Save objects in a textfile? Are there readymade solutions? I want to save the objects I generated in a program. After restart the App should load automaticly all Objects in an Array. I want to write them in a file and parse them after restart. Are the other smarter possibilities than do it by hand? Thank you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Maintaining consistency when using temp backup tables This is related to the accepted answer for What’s your #1 way to be careful with a live database? Suppose you create a temp table for backup purpose and make your changes in the original. The changes break the system and you want to restore the backup. In the mea...
{ "language": "en", "url": "https://stackoverflow.com/questions/170556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When will most libraries be Python 3 compliant? Does anyone have an idea how long it will take before "almost all" widely used Python libraries work with Python 3.0? I am planning to stay on 2.X for a while because I don't want to start porting stuff over and then find that some library I already rely on or a new li...
{ "language": "en", "url": "https://stackoverflow.com/questions/170563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Operation must use an updatable query. (Error 3073) Microsoft Access On some Microsoft Access queries, I get the following message: Operation must use an updatable query. (Error 3073). I work around it by using temporary tables, but I'm wondering if there's a better way. All the tables involved have a primary key...
{ "language": "en", "url": "https://stackoverflow.com/questions/170578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Is the C# 2.0 to C# 3.0 transition worth it for this project? I have read on Stack Overflow some people that have converting to C#2.0 to C#3, but is it really worth it? I have a project that is done at 75% before going in maintenance phase. I am asking to myself if it is worth it to switch to C#3.0? Update: The proj...
{ "language": "en", "url": "https://stackoverflow.com/questions/170584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: UNIX socket implementation for Java? I realize that since UNIX sockets are platform-specific, there has to be some non-Java code involved. Specifically, we're interested in using JDBC to connect to a MySQL instance which only has UNIX domain sockets enabled. It doesn't look like this is supported, but from what I...
{ "language": "en", "url": "https://stackoverflow.com/questions/170600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Objective-C Tidy I have a somewhat messily-formatted Objective-C code base. Is there a way to have Xcode reformat an entire project to conform to a coding standard (i.e., properly indent, spaces v. tabs, etc.)? Are there other tools that might accomplish this? A: A simple, but limited, solution is Edit->Format->Re-...
{ "language": "en", "url": "https://stackoverflow.com/questions/170601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: What are the best-practices around resource list authorization? Publishing and/or collaborative applications often involve the sharing of access to resources. In a portal a user may be granted access to certain content as a member of a group or because of explicit access. The complete set of content could include pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/170606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I compile to x64 binary from a x86 platform running VS2008 Pro? I am trying to compile my apps (which uses 3rd party libraries) for the x64 platform. However selecting x64 from Build Configuration Manager from my VS2008 Pro doesn't seem to work. The binary does get created but my client wasn't able to get it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I find the install time and date of Windows? This might sound like a little bit of a crazy question, but how can I find out (hopefully via an API/registry key) the install time and date of Windows? The best I can come up with so far is to look at various files in C:\Windows and try to guess... but that's not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "150" }
Q: Javascript Image Resize Does anyone know how to resize images proportionally using JavaScript? I have tried to modify the DOM by adding attributes height and width on the fly, but seems did not work on IE6. A: I have answered this question here: How to resize images proportionally / keeping the aspect ratio?. I am ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Eclipse plugin manifest problem - empty package inconsistency between mac and PC I am developing a collection of plugins on Eclipse 3.4 (official) on both mac and a PC. At present (I'm aware it is not the best practice) some of my common plugins export all of their packages. The problem is this: many of the listed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why have object oriented databases not been successful (yet)? That's the question. Give only one reason you think why have OODB failed or why many systems nowadays still use relational databases. A: Well, it's strange isn't it? There is such a push towards domain driven design as the zenith of object orientated ana...
{ "language": "en", "url": "https://stackoverflow.com/questions/170649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Rich Text in Windows Forms application I would like to update a Windows Forms application to provide the following features: * *spell checking *limited formatting of text: bold, italics, bulleted lists Ideally the formatted text could be accessed in a plain text way for reporting through tools that don't suppo...
{ "language": "en", "url": "https://stackoverflow.com/questions/170650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Library Error for Ruby/QT Trying to create a QtRuby application, I get the following error: /usr/lib64/ruby/site_ruby/1.8/Qt/qtruby4.rb:2144: [BUG] Segmentation fault ruby 1.8.6 (2008-03-03) [x86_64-linux] I am running a 64-bit version of Novell OpenSUSE 11 with DKE4 and Qt A: The issue is with: require 'Qt' Becau...
{ "language": "en", "url": "https://stackoverflow.com/questions/170653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I put a caching server in front of my web site? I have a web site using apache httpd as the server and mysql as the backend. It publishes a "thought for the day" that has gotten so popular that the server is crashing due to the number of requests. Since the same page is been requested (the thought only changes o...
{ "language": "en", "url": "https://stackoverflow.com/questions/170660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you design a good permgen space string in Java? I'm wondering how you would go about designing a good permgen space string in Java. Based on my research and understanding I've come up with the following: example: JAVA_OPTS='-Xmx512m -XX:MaxPermSize=256m -server -Djava.awt.headless=true' Sorry the example didn...
{ "language": "en", "url": "https://stackoverflow.com/questions/170663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Helper functions for safe conversion from strings Back in VB6, I wrote a few functions that would let me code without having to care about the difference between null and '' for strings, null and 0 for numbers, etc. Nothing kills my productivity more when coding than having to add special case code for dealing with...
{ "language": "en", "url": "https://stackoverflow.com/questions/170665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What is the best open XML parser for C++? I am looking for a simple, clean, correct XML parser to use in my C++ project. Should I write my own? A: TinyXML can be best for simple XML work but if you need more features then try Xerces from the apache project. Go to the following page to read more about its features. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "252" }
Q: Row Level Security with Entity Framework I've been trying to consider how Row Level Security could be implemented with the Entity Framework. The idea is to have a database agnostic means that would offer methods to restrict the rows coming from the ObjectContext. Some of my inital ideas have involved modifying the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: PHP $_GET problems with www.example.com/folder/file?id=2 type URLs I'm changing my site to show friendly URLs like this: www.example.com/folder/topic Works fine! But when I add a parameter to the URL: www.example.com/folder/topic?page=2 $_GET stops working. It doesn't recognise the parameter at all. Am I missing s...
{ "language": "en", "url": "https://stackoverflow.com/questions/170697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: To host or not to host? What are the pros and cons of using a hosting provider for a Subversion repository versus maintaining it in-house? I'm sure there are benefits in terms of ease of set up and use. And it would be nice to have somebody else make sure that our code is backed up properly. However, Visual SVN ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Best way to use sessions with MVC and OO PHP I've been working with sessions, MVC design and object oriented PHP. Where should I save or retrieve data from a session? I would like to retrieve it from within methods so I don't have to pass the data to the methods. Whats the best practice? A: I typically put this ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/170730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: is it time to try merb? With Merb 1.0 rapidly approaching, I would like to know what Merb/Rails users recommend? Is it time to try Merb? What was downside for you when you switched to Merb from Rails? A: Yes. Downsides: * *Lack of documentation, although this is getting better (not really a problem for some, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/170734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What techniques have you actually used successfully to improve code coverage? I regularly achieve 100% coverage of libraries using TDD, but not always, and there always seem to be parts of applications left over that are untested and uncovered. Then there are the cases when you start with legacy code that has very f...
{ "language": "en", "url": "https://stackoverflow.com/questions/170751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Where can i find a good in depth guide to C# 3? It seems that C# 3 hit me without me even noticing, could you guys tell me about good in depth guides to C# 3? from lambda to linq to everything else that was introduced with the third version of the language. Printed books would be nice, but online guides would be eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/170772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: CruiseControl.net failing with HTTP Error 500 on Vista x64 I installed CruiseControl.net ( from the CruiseControl.NET-1.4-Setup.exe installer ) on my Vista x64 development machine. The server portion is running fine; however, the webdashboard piece is not working. The first error message I saw when I tried to pull ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to serialize SettingsContext and SettingsPropertyCollection I need to serialize the System.Configuration.SettingsContext and System.Configuration.SettingsPropertyCollection types as i am implementing my own profile provider. Any suggestions on how to do it in the most simplest way. A: You have two options: Crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/170786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I know if Windows has just recovered from a BSOD? From http://support.microsoft.com/kb/317277: If Windows XP restarts because of a serious error, the Windows Error Reporting tool prompts you... How can my app know that "Windows XP has restarted because of a serious error"? A: Note: this is a good question fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/170787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I get an OpenFileDialog in a custom control's property grid? I'm creating a .net custom control and it should be able to load multiple text files. I have a public property named ListFiles with those properties set : [Browsable(true), Category("Configuration"), Description("List of Files to Load")] public s...
{ "language": "en", "url": "https://stackoverflow.com/questions/170791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: .NET WCSF as UI stack choice for portal based sites? We are building a website which will display news headlines and news. It will be a public site initially, but will evolve include portal content like personalized web pages. The site also needs to build web 2.0 features around the news stories being displayed, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/170799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Embedding HWND into external process using SetParent I'm trying to embed a window from my process into the window of an external process using the SetParent function and have encountered a few problems that I'm hoping someone can help me out with. First off, here is an outline of what I am currently doing to embed m...
{ "language": "en", "url": "https://stackoverflow.com/questions/170800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Date class different in Ruby stdlib and Rails stdlib I want to use the Date::ABBR_MONTHS constant in my rails application. I see the Ruby stdlib documentation at http://www.ruby-doc.org/stdlib/ which does not seem to have this constant. However, this constant is there at http://stdlib.rubyonrails.org/ What is the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/170824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to serialize System.Configuration.SettingsProperty I need to serialize the System.Configuration.SettingsProperty and System.Configuration.SettingsPropertyValue class object through WCF. A: Using your own class is reasonable option. You can also use the VS designer settings if you want. The VS designer keeps pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/170825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Anyone really using Code Access Security to protect their assemblies and/or methods? Seems to me most of developers completely ignore this features. People prefer handling security exceptions as generic ones relying on standard windows roles and rights instead of learning to use CAS ways of enhancing security - prob...
{ "language": "en", "url": "https://stackoverflow.com/questions/170844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Parsing T-SQL to Parameterize a Query The application I am currently working on generates a lot of SQL inline queries. All generated SQL is then handed off to a database execution class. I want to write a parsing service for the data execution class that will take a query like this: SELECT field1, field2, field3 FRO...
{ "language": "en", "url": "https://stackoverflow.com/questions/170850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Emulating user input for java.util.Scanner I'm writing a game in Java, and I want the user to be able to provide input from both the command line and my GUI. Currently, I use this method to get input: static String getInput(){ System.out.println("Your move:"); Scanner sc = new Scanner(System.in);...
{ "language": "en", "url": "https://stackoverflow.com/questions/170854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to maximise the current tab in Visual Studio? I sometimes need to use Visual Studio when I have limited screen real estate (remote desktopping from a laptop for example). It would be really useful to be able to make the currently selected code tab maximise to take the whole screen for a limited time....
{ "language": "en", "url": "https://stackoverflow.com/questions/170866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How can I avoid duplicate content in ASP.NET MVC due to case-insensitive URLs and defaults? Edit: Now I need to solve this problem for real, I did a little more investigation and came up with a number of things to reduce duplicate content. I posted detailed code samples on my blog: Reducing Duplicate Content with A...
{ "language": "en", "url": "https://stackoverflow.com/questions/170900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Is there a downside to adding an anonymous empty delegate on event declaration? I have seen a few mentions of this idiom (including on SO): // Deliberately empty subscriber public event EventHandler AskQuestion = delegate {}; The upside is clear - it avoids the need to check for null before raising the event. Howev...
{ "language": "en", "url": "https://stackoverflow.com/questions/170907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "85" }
Q: Making a Nonblocking socket for WinSocks and *nix In C/C++, how would I turn a blocking socket into a non blocking socket in both WinSocks and *nix; so that select() would work correctly. You can use the pre-processor for the platform specific code. A: On linux: fcntl(fd, F_SETFL, O_NONBLOCK); Windows: u_long on =...
{ "language": "en", "url": "https://stackoverflow.com/questions/170909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is SVNAutoversioning directive in apache subversion imporant? If so why? I know setting this on will result in more number of automatically committed revisions. Is it good to have more auto commits? A: You can turn this on to offer WebDav mappings, most OSes can make network mappings to http(s):// URLs. If SVNAutov...
{ "language": "en", "url": "https://stackoverflow.com/questions/170913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replace an item in a list in Common Lisp? I have a list of things (I'll call it L), an index(N) and a new thing(NEW). If I want to replace the thing in L at N with NEW, what is the best way to do this? Should I get the sublist up to N and from N to the end of the list and then glue together a new list from the first...
{ "language": "en", "url": "https://stackoverflow.com/questions/170931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Is it reasonable to use John Resig's Processing.js? I am thinking about making a website with some fairly intense JavaScript/canvas usage and I have been looking at Processing.js and it seems to me that it would make manipulating the canvas significantly easier. Does anyone know any reasons why I shouldn't use Proc...
{ "language": "en", "url": "https://stackoverflow.com/questions/170937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is the default time after which an HTTP request is deemed to have timed out? For PHP, what is the default time after which an HTTP request is deemed to have timed out? I'm using the PECL HTTP extension to make HTTP requests. I can set a timeout limit when making a request, however I'd like to know what the def...
{ "language": "en", "url": "https://stackoverflow.com/questions/170938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to specify the hardware your software needs? That is a problem I'm facing right now. I need to specify the hardware that will run my piece of software. The thing is: the project isn't finished yet, and I need it running in "real" conditions before I can go on, conditions which I cannot reproduce at home; what I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find out what is the new data from an RSS feed, compared with entries already in the database. Then put new entries in db. How? Let's say I have a database, and an RSS feed. I have to find out what is the new data from an RSS feed, that isn't already in the database. How would you go about approaching this problem? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I find which operating system my Ruby program is running on? I want my Ruby program to do different things on a Mac than on Windows. How can I find out on which system my program is running? A: Try the Launchy gem (gem install launchy): require 'launchy' Launchy::Application.new.host_os_family # => :windows...
{ "language": "en", "url": "https://stackoverflow.com/questions/170956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "95" }
Q: What's the strategy for handling CRLF (carriage return, line feed) with Git? I tried committing files with CRLF-ending lines, but it failed. I spent a whole work day on my Windows computer trying different strategies and was almost drawn to stop trying to use Git and instead try Mercurial. How to properly handle CRL...
{ "language": "en", "url": "https://stackoverflow.com/questions/170961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "673" }
Q: What's the difference between session.Merge and session.SaveOrUpdate? I notice sometimes with my parent/child objects or many-to-many relationships, I need to call either SaveOrUpdate or Merge. Usually, when I need to call SaveOrUpdate, the exception I get on calling Merge has to do with transient objects not being ...
{ "language": "en", "url": "https://stackoverflow.com/questions/170962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "89" }
Q: One to One database relation? In my free time I started writing a small multiplayer game with a database backend. I was looking to separate player login information from other in game information (inventory, stats, and status) and a friend brought up this might not be the best idea. Would it be better to lump everyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/170964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }