text
stringlengths
8
267k
meta
dict
Q: Does anyone have a good example of controlling multiple Excel instances from a .Net app? We have an Excel 2002/XP based application that interacts with SQL 2000/5 to process fairly complex actuarial calculations. The application performs its function well, but it's difficult to manage. We're trying to create a "cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/87576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Silverlight DataGrid Control - How do I stop the sorting on a column? Continuing my problem from yesterday, the Silverlight datagrid I have from this issue is now causing Stack Overflow errors when sorting a column with a large amount of data (Like the text column that contains a where clause for a SQL statment). W...
{ "language": "en", "url": "https://stackoverflow.com/questions/87587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: textboxes in Datarepeater dynamically 'databound' I need to know if it is possible to dynamically bind a textbox residing within a datarepeater to a 'dynamically' created BindingSource. I am using VB.net. The database I am using is a MySQL database. I have to use the connection dynamically due to the fact that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/87590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the equivalent of Oracle's REF CURSOR in Postgresql when using JDBC? In Oracle I can declare a reference cursor... TYPE t_spool IS REF CURSOR RETURN spool%ROWTYPE; ...and use it to pass a cursor as the return value... FUNCTION end_spool RETURN t_spool AS v_spool t_spool; BEGIN COMMIT...
{ "language": "en", "url": "https://stackoverflow.com/questions/87603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Automated integration testing a C++ app with a database I am introducing automated integration testing to a mature application that until now has only been manually tested. The app is Windows based and talks to a MySQL database. What is the best way (including details of any tools recommended) to keep tests independ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Win32 ShellExecute and a UNC Path I want to fire up a flash presentation inside Powerpoint 2007. I am calling the Win32 ShellExecute() routine. When I run this from a location whose path is a UNC path (\myserver\myfolder\sample.ppt) it does not work. The ShellExecute routine expects 6 arguments, one of which is the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I map XML to C# objects I have an XML that I want to load to objects, manipulate those objects (set values, read values) and then save those XMLs back. It is important for me to have the XML in the structure (xsd) that I created. One way to do that is to write my own serializer, but is there a built in suppor...
{ "language": "en", "url": "https://stackoverflow.com/questions/87621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How to use stored procedures within a DTS data transformation task? I have a DTS package with a data transformation task (data pump). I’d like to source the data with the results of a stored procedure that takes parameters, but DTS won’t preview the result set and can’t define the columns in the data transformation...
{ "language": "en", "url": "https://stackoverflow.com/questions/87647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is your preferred method for moving directory structures around in Subversion? I have recently run into an issue where I wanted to add a folder to the directory structure of my project that would become the new 'root' directory for the previously housed files. I've been getting help in a related thread but I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/87666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the best way to manipulate Dates and Timestamps in Java? Every time I need to work with date and/or timstamps in Java I always feel like I'm doing something wrong and spend endless hours trying to find a better way of working with the APIs without having to code my own Date and Time utility classes. Here's a...
{ "language": "en", "url": "https://stackoverflow.com/questions/87676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Advice on handling large data volumes So I have a "large" number of "very large" ASCII files of numerical data (gigabytes altogether), and my program will need to process the entirety of it sequentially at least once. Any advice on storing/loading the data? I've thought of converting the files to binary to make the...
{ "language": "en", "url": "https://stackoverflow.com/questions/87679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Testing running condition of a Windows app I have several applications that are part of a suite of tools that various developers at our studio use. these applications are mainly command line apps that open a DOS cmd shell. These apps in turn start up a GUI application that tracks output and status (via sockets) of...
{ "language": "en", "url": "https://stackoverflow.com/questions/87689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to enter Javascript into a wiki page? How can I, as the wiki admin, enter scripting (Javascript) into a Sharepoint wiki page? I would like to enter a title and, when clicking on that, having displayed under it a small explanation. I usually have done that with javascript, any other idea? A: Assuming you're the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: I'm using Wincrypt for Diffie-Hellman-- can I export the shared secret in plain text? OK-- thanks to Mike, I was able to get Wincrypt to generate a Diffie-Hellman keypair. I figured out out to export the public key, and how to import the other party's public key. According to the docs, upon import of the other par...
{ "language": "en", "url": "https://stackoverflow.com/questions/87694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Programmatically stream audio in Cocoa on the Mac How do I go about programmatically creating audio streams using Cocoa on the Mac. To make, say a white-noise generator using core frameworks on Mac OSX in Cocoa apps? A: One way is using the CoreAudio DefaultOutputUnit. You can configure it with parameters such as o...
{ "language": "en", "url": "https://stackoverflow.com/questions/87695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you deal with NULL values in columns of type boolean in MS Access? I was wondering if there is a better way to cope with MS-Access' inability to handle NULL for boolean-values other than change the column-data-type to integer. A: I think you must use a number, and so, it seems does Allen Browne, Access MVP. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Suggestions for human editable data file format/parsing library For example, right now I have a roll-my-own solution that uses data files that include blocks like: PlayerCharacter Fighter Hitpoints 25 Strength 10 StartPosition (0, 0, 0) Art Model BigBuffGuy Footprint LargeFootprint end InventoryI...
{ "language": "en", "url": "https://stackoverflow.com/questions/87713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you calculate the axis-aligned bounding box of an ellipse? If the major axis of the ellipse is vertical or horizontal, it's easy to calculate the bounding box, but what about when the ellipse is rotated? The only way I can think of so far is to calculate all the points around the perimeter and find the max/mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/87734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: How do you transfer or export SQL Server 2005 data to Excel I have a simple SQL 'Select' query, and I'd like to dump the results into an Excel file. I'm only able to save as .csv and converting to .xls creates some super ugly output. In any case, as far as I can tell (using Google) this doesn't seem to be so straigh...
{ "language": "en", "url": "https://stackoverflow.com/questions/87735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: How do you determine what SQL Tables have an identity column programmatically I want to create a list of columns in SQL Server 2005 that have identity columns and their corresponding table in T-SQL. Results would be something like: TableName, ColumnName A: In SQL 2005: select object_name(object_id), name from sys.c...
{ "language": "en", "url": "https://stackoverflow.com/questions/87747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "112" }
Q: Resizing an Image without losing any quality How can I resize an image, with the image quality unaffected? A: I believe what you're looking to do is "Resize/Resample" your images. Here is a good site that gives instructions and provides a utility class(That I also happen to use): http://www.codeproject.com/KB/GDI-p...
{ "language": "en", "url": "https://stackoverflow.com/questions/87753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "112" }
Q: How to backup LIF formatted disk? I have several old 3.5in floppy disks that I would like to backup. My attempts to create an image of the disks have failed. I tried using the UNIX utility dd_rescue, but when the kernel tries to open (/dev/fd0) I get a kernel error, floppy0: probe failed... I would like an image ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why do some conversions from wmv to flv with ffmpeg fail? Ive been smashing my head with this for a while. I have 2 completely identical .wmv files encoded with wmv3 codec. I put them both through ffmpeg with the following command: /usr/bin/ffmpeg -i file.wmv -ar 44100 -ab 64k -qscale 9 -s 512x384 -f flv file.flv O...
{ "language": "en", "url": "https://stackoverflow.com/questions/87760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to connect to Oracle database? How do you connect to Oracle using PHP on MAC OS X? A: I would think OCI would be the way to go. PHP has a module for it. A: The PDO abstraction layer can be used to connect to, and perform actions on, an Oracle DB. Here's an article on how to use PDO with Oracle from the Oracle ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I multiply two 64-bit numbers using x86 assembly language? How would I go about... * *multiplying two 64-bit numbers *multiplying two 16-digit hexadecimal numbers ...using Assembly Language. I'm only allowed to use registers %eax, %ebx, %ecx, %edx, and the stack. EDIT: Oh, I'm using ATT Syntax on the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: C++ unit testing framework I use the Boost Test framework for my C++ code but there are two problems with it that are probably common to all C++ test frameworks: * *There is no way to create automatic test stubs (by extracting public functions from selected classes for example). *You cannot run a single test - y...
{ "language": "en", "url": "https://stackoverflow.com/questions/87794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: How to prevent flickering in ListView when updating a single ListViewItem's text? All I want is to update an ListViewItem's text whithout seeing any flickering. This is my code for updating (called several times): listView.BeginUpdate(); listViewItem.SubItems[0].Text = state.ToString(); // update the state listVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/87795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: When do transactions become more of a burden than a benefit? Transactional programming is, in this day and age, a staple in modern development. Concurrency and fault-tolerance are critical to an applications longevity and, rightly so, transactional logic has become easy to implement. As applications grow though, it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does Rails cache view files when hosted on VM and codebase on Samba share I have the following setup: * *Code on my local machine (OS X) shared as a Samba share *A Ubuntu VM running within Parallels, mounts the share Running Rails 2.1 (either via Mongrel, WEBrick or passenger) in development mode, if I mak...
{ "language": "en", "url": "https://stackoverflow.com/questions/87802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Castle Windsor: How to specify a constructor parameter from code? Say I have the following class MyComponent : IMyComponent { public MyComponent(int start_at) {...} } I can register an instance of it with castle windsor via xml as follows <component id="sample" service="NS.IMyComponent, WindsorSample" type="NS.M...
{ "language": "en", "url": "https://stackoverflow.com/questions/87812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: passing or reading .net cookie in php page Hi I am trying to find a way to read the cookie that i generated in .net web application to read that on the php page because i want the users to login once but they should be able to view .net and php pages ,until the cookie expires user should not need to login in again ,...
{ "language": "en", "url": "https://stackoverflow.com/questions/87818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL: IF clause within WHERE clause Is it possible to use an IF clause within a WHERE clause in MS SQL? Example: WHERE IF IsNumeric(@OrderNumber) = 1 OrderNumber = @OrderNumber ELSE OrderNumber LIKE '%' + @OrderNumber + '%' A: Use a CASE statement instead of IF. A: You don't need a IF state...
{ "language": "en", "url": "https://stackoverflow.com/questions/87821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "244" }
Q: How do I use my own compiler with Nant? Nant seems very compiler-centric - which is guess is because it's considered a .NET development system. But I know it can be done! I've seen it. The platform we're building on has its own compiler and doesn't use 'cl.exe' for c++. We're building a C++ app on a different platfo...
{ "language": "en", "url": "https://stackoverflow.com/questions/87831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SVN checkout question I am about to move to SVN as my RCS of choice (after many years using CVS) and have a basic question... I have a number of shared projects - code that I want to use with lots of different projects. Is it possible to 'link' these shared folders to the projects that need them, so checking out a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Anyone have sample code for a UserControl with pager controls to be used in a GridView's PagerTemplate? I've got several Gridviews in my application in which I use a custom PagerTemplate. I'd like to turn this custom template into a UserControl so that I don't need to replicate the same logic in multiple pages. I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using DateAdd in umbraco xslt to display next year's date I'm trying to display the date for a year from now in an xslt file using umbraco like so: <xsl:variable name="now" select="umbraco.library:CurrentDate()"/> <xsl:value-of select="umbraco.library:DateAdd($now, 'year', 1)"/> The value-of tag outputs today's dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/87870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How best to make the selected date of an ASP.NET Calendar control available to JavaScript? How best to make the selected date of an ASP.NET Calendar control available to JavaScript? Most controls are pretty simple, but the calendar requires more than just a simple document.getElementById().value. A: When you click ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Building a Table Dependency Graph With A Recursive Query I am trying to build a dependency graph of tables based on the foreign keys between them. This graph needs to start with an arbitrary table name as its root. I could, given a table name look up the tables that reference it using the all_constraints view, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/87877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Control which columns become primary keys with Microsoft Access ODBC link to Oracle When you create a Microsoft Access 2003 link to an Oracle table using Oracle's ODBC driver, you are sometimes asked to state which columns are the primary key(s). I would like to know how to change that initial assignment, or even ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/87883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java jdb remote debugging command line tool anyone have any experience using this? if so, is it worth while? A: I just used jdb for the first time yesterday and am really pleased with the results. You see, I program in Eclipse on my laptop, then deploy to a VM to make sure the whole shebang still works. Very occa...
{ "language": "en", "url": "https://stackoverflow.com/questions/87885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Game Engine Scripting Languages I am trying to build out a useful 3d game engine out of the Ogre3d rendering engine for mocking up some of the ideas i have come up with and have come to a bit of a crossroads. There are a number of scripting languages that are available and i was wondering if there were one or two th...
{ "language": "en", "url": "https://stackoverflow.com/questions/87889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the status of POSIX asynchronous I/O (AIO)? There are pages scattered around the web that describe POSIX AIO facilities in varying amounts of detail. None of them are terribly recent. It's not clear what, exactly, they're describing. For example, the "official" (?) web site for Linux kernel asynchronous I...
{ "language": "en", "url": "https://stackoverflow.com/questions/87892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "99" }
Q: Regex to match name1.name2[.name3] I am trying to validate user id's matching the example: smith.jack or smith.jack.s In other words, any number of non-whitespace characters (except dot), followed by exactly one dot, followed by any number of non-whitespace characters (except dot), optionally followed by exactly on...
{ "language": "en", "url": "https://stackoverflow.com/questions/87902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ColdFusion Template Request count optimization In ColdFusion, under Request Tuning in the administrator, how do I determine what is an optimal number (or at least a good guess) for the Maximum Number of Simultaneous Template Requests? Environment: CF8 Standard IIS 6 Win2k3 SQL2k5 on a separate box A: The way of fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/87904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Setting Page Title from a SWF Is it possible to set the title of a page when it's simply a loaded SWF? A: This is how I would do it: ExternalInterface.call("document.title = 'Hello World'"); Or more generalized: function setPageTitle( newTitle : String ) : void { var jsCode : String = "function( title ) { docume...
{ "language": "en", "url": "https://stackoverflow.com/questions/87909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Tool/framework for automated web app testing in Google Chrome browser? Is an opensource/commercial tool/framework, available for automated web app testing in Google Chrome browser on Windows XP / Vista? ( An alpha/beta Tool is also OK) Thanks A: Selenium supports Chrome pretty much out of the box because it works b...
{ "language": "en", "url": "https://stackoverflow.com/questions/87911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Attribute & Reflection libraries for C++? Most mature C++ projects seem to have an own reflection and attribute system, i.e for defining attributes which can be accessed by string and are automatically serializable. At least many C++ projects I participated in seemed to reinvent the wheel. Do you know any good open ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: JavaScript and why capital letters sometimes work and sometimes don't In Notepad++, I was writing a JavaScript file and something didn't work: an alert had to be shown when a button was clicked, but it wasn't working. I has used the auto-complete plugin provided with Notepad++, which presented me with onClick. When ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: endian-ness of new macs - are all pc platforms the same now? Does the change of macs over to Intel chips mean we are done with the bit twiddling on numbers in binary resources for cross platform data distributions? Is that the last of this problem or are there some other platforms I'm not aware of? A: You seem to f...
{ "language": "en", "url": "https://stackoverflow.com/questions/87935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do you overcome the svn 'out of date' error? I've been attempting move a directory structure from one location to another in Subversion, but I get an Item '*' is out of date commit error. I have the latest version checked out (so far as I can tell). svn st -u turns up no differences other than the mv commands....
{ "language": "en", "url": "https://stackoverflow.com/questions/87950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "347" }
Q: If you could recommend only one blog on software testing, which one would it be? I found a question here about blogs on software development, but I would like to know which blogs on software testing this community reads. If you just have to recommend more than one blog, post each one in separate answer, so others ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/87957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: C#: Is Implicit Arraylist assignment possible? I'd like to populate an arraylist by specifying a list of values just like I would an integer array, but am unsure of how to do so without repeated calls to the "add" method. For example, I want to assign { 1, 2, 3, "string1", "string2" } to an arraylist. I know for o...
{ "language": "en", "url": "https://stackoverflow.com/questions/87970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Xcode 3.1.1 and static libraries I'm an experienced VS.NET user and trying to get up and running on Xcode 3.1.1. Here's what I'm trying to accomplish: I'd like a static library ("Lib") to have its own xcodeproj file. I'd an executable application ("App") that makes use of Lib to reference Lib's xcodeproj file so th...
{ "language": "en", "url": "https://stackoverflow.com/questions/87979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Sql Server 2005 error handling - inner exception In C# you can get the original error and trace the execution path (stack trace) using the inner exception that is passed up. I would like to know how this can be achieved using the error handling try/catch in sql server 2005 when an error occurs in a stored procedure...
{ "language": "en", "url": "https://stackoverflow.com/questions/87986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Voice Recognition Software For Developers Well the docs finally said it, I need to take it easy on my wrist for a few months. Being that I'm a .NET Developer this could end my livelihood for a little while, something I'm not anxious to do. That said, are there any good handsfree options for developers? Anyone had s...
{ "language": "en", "url": "https://stackoverflow.com/questions/87999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Unit testing a method that can have random behaviour I ran across this situation this afternoon, so I thought I'd ask what you guys do. We have a randomized password generator for user password resets and while fixing a problem with it, I decided to move the routine into my (slowly growing) test harness. I want to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/88007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Make apache automatically strip off the www.? For various reasons, such as cookies, SEO, and to keep things simple, I would like to make apache automatically redirect any requests for http://www.foobar.com/anything to http://foobar.com/anything. The best I could come up with is a mod_rewrite-based monstrosity, is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/88011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C#: Import/Export Settings into/from a File What's the best way to import/export app internal settings into a file from within an app? I have the Settings.settings file, winform UI tied to the settings file, and I want to import/export settings, similar to Visual Studio Import/Export Settings feature. A: If you ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/88030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does the unmodifiable wrapper for java collections make them thread safe? I need to make an ArrayList of ArrayLists thread safe. I also cannot have the client making changes to the collection. Will the unmodifiable wrapper make it thread safe or do I need two wrappers on the collection? A: On a related topic - I've...
{ "language": "en", "url": "https://stackoverflow.com/questions/88036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Can a .msi file install itself (presumably via a Custom Action)? I wand to construct an MSI which, in its installation process, will deploy itself along with its contained Files/Components, to the TargetDir. So MyApp.msi contains MyApp.exe and MyAppBootstrapperEmpty.exe (with no resources) in its File Table. The use...
{ "language": "en", "url": "https://stackoverflow.com/questions/88078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What's the best method to enable or disable a feature in a .net desktop application It can be either at compile time or at run-time using a config file. Is there a more elegant way than simple (and many) if statements? I am targeting especially sets of UI controls that comes for a particular feature. A: Unless you...
{ "language": "en", "url": "https://stackoverflow.com/questions/88082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MOSS 2007 SSL error when configuring Search Settings We’re getting the following error message when we click on “Search Settings” for a Shared Services Provider: “Authentication failed because the remote party has closed the transport stream.” This is a new server environment with two web front ends, one database se...
{ "language": "en", "url": "https://stackoverflow.com/questions/88087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How many game updates per second? What update rate should I run my fixed-rate game logic at? I've used 60 updates per second in the past, but that's hard because it's not an even number of updates per second (16.666666). My current games uses 100, but that seems like overkill for most things. A: I used to maintain ...
{ "language": "en", "url": "https://stackoverflow.com/questions/88093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you guarantee the ASPNET user gets assigned the correct default directory rights? I seem to make this mistake every time I set up a new development box. Is there a way to make sure you don't have to manually assign rights for the ASPNET user? I usually install .Net then IIS, then Visual Studio but it seems I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/88094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do you know a Bulked/Batched Flows Library for C# I am working on a project with peek performance requirements, so we need to bulk (batch?) several operations (for example persisting the data to a database) for efficiency. However, I want our code to maintain an easy to understand flow, like: input = Read(); parsed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/88096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I use NAnt to compile WPF controls I have a WPF project and I'm trying to setup a NAnt build script for it. The problem is that when it tries to compile the WPF controls, the .g.cs files are not being generated as they are when building from within Visual Studio. I'm using the csc build task. From my reading...
{ "language": "en", "url": "https://stackoverflow.com/questions/88121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Will a VS2008 setup project update Net 3.5 SP1? I just started using the WPF WebBrowser that is included in Net 3.5 SP1. I built my setup project (which I have been using prior to moving to 3.5 SP1) and installed it on a test machine but the WebBrowser was not available. What must I do to be sure that the setup.exe...
{ "language": "en", "url": "https://stackoverflow.com/questions/88136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get all file attributes including author, title, mp3 tags, etc, in one sweep I would like to write all meta data (including advanced summary properties) for my files in a windows folder to a csv file. Is there a way to collect all the attributes? I see mp3 files have a different set of attributes compared t...
{ "language": "en", "url": "https://stackoverflow.com/questions/88181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Any other tools/plugins like VisualAssist that will change my life (MSVS)? I was introduced to VisualAssist a few years ago and for me there's no going back. Are there any other tools I'm missing out on? A: If you're a vim user, ViEmu is indispensable. It's a plugin available for Visual Studio (SQL Server and Offi...
{ "language": "en", "url": "https://stackoverflow.com/questions/88190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: When using an ORM, how to safely send loaded entities across the tiers When a system has N tiers, and when using an ORM, how do you send loaded entities across the tiers ? Do you use DTO ? When DTO are not used and the entities are directly sent, how do you protect againt the uninitialized lazy loaded relationship e...
{ "language": "en", "url": "https://stackoverflow.com/questions/88192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting Environment Variables for Mercurial Hook I am trying to call a shell script that sets a bunch of environment variables on our server from a mercurial hook. The shell script gets called fine when a new changegroup comes in, but the environment variables aren't carrying over past the call to the shell script. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/88194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you convert your office to build automation? The title should say it all, then I can solidify 2 more ticks on the Joel test. I've implemented build automation using a makefile and a python script already and I understand the basics and the options. But how can I, the new guy who reads the blogs, convince my...
{ "language": "en", "url": "https://stackoverflow.com/questions/88211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Finding differences between versions of a Java class file I am working with a large Java web application from a commercial vendor. I've received a patch from the vendor in the form of a new .class file that is supposed to resolve an issue we're having with the software. In the past, applying patches from this vend...
{ "language": "en", "url": "https://stackoverflow.com/questions/88216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Stored Procs - Best way to pass messages back to user application I'd like know what people think about using RAISERROR in stored procedures to pass back user messages (i.e. business related messages, not error messages) to the application. Some of the senior developers in my firm have been using this method and c...
{ "language": "en", "url": "https://stackoverflow.com/questions/88222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Page index is not working Help me ..my page index is not working in visual studio. my page load is as follows: protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { CustomerView.DataSource = Customer.GetAll(); CustomerView.DataB...
{ "language": "en", "url": "https://stackoverflow.com/questions/88231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dealing with "java.lang.OutOfMemoryError: PermGen space" error Recently I ran into this error in my web application: java.lang.OutOfMemoryError: PermGen space It's a typical Hibernate/JPA + IceFaces/JSF application running on Tomcat 6 and JDK 1.6. Apparently this can occur after redeploying an application a few ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/88235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1241" }
Q: Files not extracted from .jar file when run I have updated my ant build.xml file to include a new file and a new folder. After creating the .jar I check if they exist in the jar by 'unzip\extract', and they are there. But when executing the .jar neither the folder or the file gets extracted. Am I missing a step? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/88243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using the same App_Code classes across websites Let's say you have a solution with two website projects, Website A and Website B. Now inside Website A's App_Code folder, there is a Class X defined in a ClassX.cs file. What do you do if Website B also needs access to ClassX.cs? Is there any way to share this file...
{ "language": "en", "url": "https://stackoverflow.com/questions/88252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you configure Django for simple development and deployment? I tend to use SQLite when doing Django development, but on a live server something more robust is often needed (MySQL/PostgreSQL, for example). Invariably, there are other changes to make to the Django settings as well: different logging locations / ...
{ "language": "en", "url": "https://stackoverflow.com/questions/88259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "117" }
Q: How do you get selenium to recognize that a page loaded? In certain unknown situations selenium does not detect that a page has loaded when using the open method. I am using the Java API. For example (This code will not produce this error. I don't know of an externally visible page that will.): Selenium browser = ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/88269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: In ColdFusion 8, can you declare a function as private using cfscript? Normally you create a function using cfscript like: <cfscript> function foo() { return "bar"; } </cfscript> Is there a way to declare this as a private function, available only to other methods inside the same cfc? I know you can do it with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/88274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Example/How-To create calendar appointment using Exchange 03 Webdav and PHP? I've been trying to figure this out for about two weeks. I'm able to create email items in people's folders, read the folders, all that stuff but for the life of me I can not get anything to work with the calendars. I can provide examples o...
{ "language": "en", "url": "https://stackoverflow.com/questions/88276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Time Synchronization Ubuntu Server Under Parallels I've installed Ubuntu Server (8.04) into Parallels and found that the system time/clock ran fast to the extent that it would gain hours over time. A: What about using an NTP service to keep it sync'd? A: You could just want to install ntpd, it works well enough on...
{ "language": "en", "url": "https://stackoverflow.com/questions/88289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: macro support in F# After reading Practical Common Lisp I finally understood what the big deal about macros was, and I have been looking for a language for the .NET platform that supports this. There are a few lisp dialects for .NET but from what I have been able to gather all are either very beta or abandoned. Rece...
{ "language": "en", "url": "https://stackoverflow.com/questions/88302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How can I add cookies to Seaside responses without redirecting? I'm making a small web application in Seaside. I have a login component, and after the user logs in I want to send along a cookie when the next component renders itself. Is there a way to get at the object handling the response so I can add something to...
{ "language": "en", "url": "https://stackoverflow.com/questions/88306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to generate a random string in Ruby I'm currently generating an 8-character pseudo-random uppercase string for "A" .. "Z": value = ""; 8.times{value << (65 + rand(25)).chr} but it doesn't look clean, and it can't be passed as an argument since it isn't a single statement. To get a mixed-case string "a" .. "z"...
{ "language": "en", "url": "https://stackoverflow.com/questions/88311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "823" }
Q: How do I unit test an __init__() method of a python class with assertRaises()? I have a class: class MyClass: def __init__(self, foo): if foo != 1: raise Error("foo is not equal to 1!") and a unit test that is supposed to make sure the incorrect arg passed to the constructor properly raises an error: de...
{ "language": "en", "url": "https://stackoverflow.com/questions/88325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Does elmah handle caught exceptions as well Does ELMAH logged exceptions even when they do not bubble up to the application? I'd like to pop up a message when an exception occurs and still log the exception. Currently I've been putting everything in try catch blocks and spitting out messages, but this gets tedious...
{ "language": "en", "url": "https://stackoverflow.com/questions/88326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: Which is better: shipping a buggy feature or not shipping the feature at all? this is a bit of a philosophical question. I am adding a small feature to my software which I assume will be used by most users but only maybe 10% of the times they use the software. In other words, the software has been fine without it fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/88339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to get Intellisense on error-marked code in Visual Studio 2005? When I try to compile code on VS 2005 and it fails, the line which causes the error gets underlined blue, and mouse-hovering over it displays the error message. Fine, but you can't see object types or whatever, because Intellisense will show the err...
{ "language": "en", "url": "https://stackoverflow.com/questions/88343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best C# to VB.net converter? While searching the interweb for a solution for my VB.net problems I often find helpful articles on a specific topic, but the code is C#. That is no big problem but it cost some time to convert it to VB manually. There are some sites that offer code converters from C# to VB a...
{ "language": "en", "url": "https://stackoverflow.com/questions/88359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Is there an elegant way to compare a checkbox and a textbox using ASP.NET validators? I have an Asp.Net repeater, which contains a textbox and a checkbox. I need to add client-side validation that verifies that when the checkbox is checked, the textbox can only accept a value of zero or blank. I would like to use o...
{ "language": "en", "url": "https://stackoverflow.com/questions/88361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQLServer tempDB growing infinitely we have several "production environments" (three servers each, with the same version of our system. Each one has a SQL Server Database as production database). In one of this environment the tempdb transaction log starts to grow fast and infinitely, we can´t find why. Same versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/88381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where do I start learning about GUI programming? I have a pretty good knowledge of programming languages like C/C++, Java, Python. But they were all mostly learnt in a college / high school class room setting where the best user interface was a numbered menu. You know, the standard data structures, implementation of...
{ "language": "en", "url": "https://stackoverflow.com/questions/88382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How do I duplicate a whole line in Emacs? I saw this same question for VIM and it has been something that I myself wanted to know how to do for Emacs. In ReSharper I use CTRL-D for this action. What is the least number of commands to perform this in Emacs? A: install duplicate-thing from melpa: M-x package-install ...
{ "language": "en", "url": "https://stackoverflow.com/questions/88399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "174" }
Q: ISS error CS0433: name collision In our application we've run into an error numerous times where we get error CS0433, which complains about a name collison in two separate dlls. This is an ASP.NET app developed in C# using webforms. It always complained about A TimeLog page. Anyone have advice for resolving this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/88403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In AIML, what's the XSD-valid way to use the element ? In file Atomic.aiml, part of the annotated ALICE AIML files, there are a lot of categories like this: <category> <pattern>ANSWER MY QUESTION</pattern> <template> Please try asking <set name="it">your question</set> another way. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/88417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I detect if caps lock is toggled in Swing? I'm trying to build a better username/password field for my workplace and would like to be able to complain when they have their caps lock on. Is this possible? And if so I'd like to have it detected before the client types their first letter. Is there a non-platfo...
{ "language": "en", "url": "https://stackoverflow.com/questions/88434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Project in Ruby I've been coding alot of web-stuff all my life, rails lately. And i can always find a website to code, but i'm kind of bored with it. Been taking alot of courses of Java and C lately so i've become a bit interested in desktop application programming. Problem: I can't for the life of me think of a thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/88438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flex Framework - How to tell if user is using cached framework? I have a public facing application deployed with Flex. I want to switch to using the cached framework (.swz) but need to know if for my user base this is an effective solution or not (most users will only visit the site once and its just not worth it). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/88448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }