text stringlengths 8 267k | meta dict |
|---|---|
Q: Using emacs tramp vs. rsync for remote development I have been doing some remote development using emacs tramp and found that it was quite slow. Every time I save a file, it takes about 10 seconds to complete the save. So, now I am using rsync to transfer the files remotely and it works much faster, it takes about... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Has anyone written a thread-safe BindingList? I am currently getting exceptions when modifying an IBindingList on multiple threads. Does anyone have a threadsafe version before I write my own?
A: I think you'll find this an incredibly difficult task. The easier path would be to prevent multiple-thread access with a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET Timers: Whats is the best way to be notified in X seconds? Suppose I have a non-recurring event that needs to be raised X seconds from now such as a timeout. Intuitively it would make sense to create a System.Timers.Timer, set its interval to X*1000, wire its tick up to the event and start it. Since this is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Accessing constant values from an Apache Velocity template? Is it possible to access a constant value (i.e. a public static final variable defined in a Java class) from a Velocity template?
I would like to be able to write something like this:
#if ($a lt Long.MAX_VALUE)
but this is apparently not the right syntax.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Migrating MediaWiki Sites over to Windows Sharepoint Services Wiki Had anybody found a way to migrate MediaWiki pages over to WSS Wikis? We just put up Sharepoint 2007 and while it appears to meet our needs, it doesn't appear to be any tool provided by Microsoft to migrate MediaWiki pages over to WSS wikis.
A: Crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to get master-master replication with Subversion? Seems like a simple problem:
*
*I have an SVN repo inside our firewall.
*I have an SVN repo outside our firewall.
*I have users inside, and outside, the firewall. (no VPN isn't an option :( that'd be too easy)
*machines inside the firewall CAN talk to the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Customizing AntRunner output I'm using Eclipse's AntRunner to build a set of plugins, but I'm having trouble in configuring the logging behavior. Specifically, I'd like AntRunner not to display empty tasks. Anybody knows how to do this?
A: The solution is to pass the following JVM options:
java -jar ... -logger org... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regular expression to filter files in OpenFileDialog I would like to know how to filter files in a open file dialog (in winforms)
based on a regular expression. Files have all same extensions (.xml).
Big files are split up into several files with the same name only to be separated with _1 ...
We only want to show t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Oracle: is there a tool to trace queries, like Profiler for sql server? i work with sql server, but i must migrate to an application with Oracle DB.
for trace my application queries, in Sql Server i use wonderful Profiler tool. is there something of equivalent for Oracle?
A: GI Oracle Profiler v1.2
It's a Tools fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "95"
} |
Q: What is the least amount of code needed to update one list with another list? Suppose I have one list:
IList<int> originalList = new List<int>();
originalList.add(1);
originalList.add(5);
originalList.add(10);
And another list...
IList<int> newList = new List<int>();
newList.add(1);
newList.add(5);
newList.add(7);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Local variables with Delegates This is clearly not appears like it wouldn't be a best practice. Can someone explain why it would not be a best practice or how this works? Any books or articles providing an explanation would be appreciated.
//The constructor
public Page_Index() {
//create a local value
stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Why is the fact that Microsoft decided to support jQuery such a big deal? I don't see what all this fuss is about Microsoft's decision to support JQuery within ASP.NET MVC.
There were signs that open-minded people are starting to have some say in the matters of marketing for a while now. And even the way MS does bus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How do I refresh the relationships in a dataset? I a working in VisualStudio 2005. I have a dataset with sevaral datatables in it already. I had to modify the database to add a new foreign key that I forgot about. How do I get visual studio to recognize the new relationship?
A: .Net does not load FK relationships... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Play a sound, wait for it to finish and then do something? I'm writing a Windows Forms application which is supposed to play three sound files and at the end of each sound file, it's to change the source of an image.
I can get it to play the sounds using System.Media.SoundPlayer. However, it seems to play the sound ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Tool Comparison: Visual Assist X and Resharper .NET developers out there! Need your opinion here!
I am now using Visual Assist X, a decent piece of software, indeed. But the .NET bloggers seem to prefer Resharper more. I might want to consider a switch over, but before that I want your guys opinion first.
A: C/C++ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Unloading classes in java? I have a custom class loader so that a desktop application can dynamically start loading classes from an AppServer I need to talk to. We did this since the amount of jars that are required to do this are ridiculous (if we wanted to ship them). We also have version problems if we don't load... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "191"
} |
Q: iSeries Export to CSV Is there an iSeries command to export the data in a table to CSV format?
I know about the Windows utilities, but since this needs to be run automatically I need to run this from a CL program.
A: You can use CPYTOIMPF and specify the TOSTMF option to place a CSV file on the IFS.
Example:
CPYTO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to bind from a ContentTemplate to the surrounding custom Control? I've got the following user control:
<TabItem
x:Name="Self"
x:Class="App.MyTabItem"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:app="clr-namesp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: User Control Public Shared Variables in ASP.NET 1.1 Not Working As Expected Let's say I have a web form that includes some user controls. The title tag for my "main" web form is generated in one of the user controls. Passing this data to the web form is currently done like this.
Public Sub SetPageValues(ByVal sTit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC input validation I'm currently working on a blog application in ASP.NET MVC.
I can't quite figure out how to handle my input validation! As far as I understand the view itself cannot know about input validation!? So how am I going to do this?
A: Scott Guthrie has written something about ASP.NET MVC Prev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Scrollable JDesktopPane? I'd like to add scrolling capability to a javax.swing.JDesktopPane. But wrapping in a javax.swing.JScrollPane does not produce the desired behavior.
Searching the web shows that this has been an issue for quite some time. There are some solutions out there, but they seem to be pretty old, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to set/change/remove focus style on a Button in C#? I have a couple of buttons of which I modified how they look. I have set them as flat buttons with a background and a custom border so they look all pretty and nothing like normal buttons anymore (actually, they look like Office 2003 buttons now ;-). The button... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Intercept Windows Vista shutdown event in C# I want to be able to intercept the shutdown event in C# for Windows Vista. Due to the advanced security features with Vista, any applications that are running after the shutdown command is called are halted and displayed in a list, prompting the user to do something with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to detect if any specific drive is a hard drive? In C# how do you detect is a specific drive is a Hard Drive, Network Drive, CDRom, or floppy?
A: DriveInfo.DriveType should work for you.
DriveInfo[] allDrives = DriveInfo.GetDrives();
foreach (DriveInfo d in allDrives)
{
Console.WriteLine("Drive {0}", d.Nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: What is the difference between a framework and a library? What is the difference between a framework and a library?
I always thought of a library as a set of objects and functions that focuses on solving a particular problem or a specific area of application development (i.e. database access); and a framework on th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1027"
} |
Q: Silverlight and Rails Hopefully this will not spark a religious war...
We have a web based app in RoR based on an earlier version we build in .net 2.0. So we currently have both .net and RoR skills in house.
We want to add a RIA app that interfaces with the rails web app. This should be capable of running offine, w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a list of the common show routines in Vxworks? In the vxWorks shell, there are a number of routines you can use to display information about the system.
These routines are usually referred to as show routines because they tend to have the form of "xxxShow".
Is there a list of these routines available?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to shift items in an array? I have an array of items that are time sensitive. After an amount of time, the last item needs to fall off and a new item is put at the beginning.
What is the best way to do this?
A: Probably the easiest way to do this with an array is to use a circular index. Rather than always lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the impact of having namespaces in multiple DLLs? I've inherited a VB.net project that generates 2 DLLS: one for the web app, and another for the "business layer". This is for a sub-app of a larger web site. (Using VS2005).
The problem is that that something doesn't smell right with the DLL & namespace stru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the standard SQL Query to retrieve the intersection of tables? Selecting the union:
select * from table1
union
select * from table1_backup
What is the query to select the intersection?
A: In SQL Server intersect
select * from table1
intersect
select * from table1_backup
A: SELECT *
FROM table1
WHER... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to deploy complex SQL solutions through an installer? Part of the setup routine for the product I'm working on installs a database update utility. The utility checks the current version of the users database and (if necessary) executes a series of SQL statements that upgrade the database to the current version.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to find unused attributes/methods in Visual C++ 2008 Is there a way to identify unused attributes/methods in Visual C++ 2008 Professional? If it's not possible by default, recommendations of 3rd-party tools are also much appreciated.
Thanks,
Florian
Edit: nDepend only works for .NET assemblies. I'm looking for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Get a list of files on server with ASP.NET using a picker Is there a component available list FileUpload which shows files on the server, not the client?
I am basically looking for a clean dialog box to select server side files, like the one used in FileUpload.
A: Nope. There's not. That said, you can use a list... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to emulate C# as-operator in Java There are situations, where it is practical to have a type-cast return a null value instead of throwing a ClassCastException. C# has the as operator to do this. Is there something equivalent available in Java so you don't have to explicitly check for the ClassCastException?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Will .Net 4.0 include a new CLR or keep with version 2.0 Will .Net 4.0 use a new version of the CLR (v2.1, 3.0) or will it stick with the existing v2.0?
Supplementary: Is it possibly going to keep with CLR v2.0 and add DLR v1.0?
Update: Whilst this might look like a speculative question which cannot be answered, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How can I update an application over the network in .NET? I need to install some .NET software on several PC's.
This software needs to check each time it is restarted to see if a newer version exists on the server.
The end users will have basic user rights and therefore cannot copy files to the 'Program Files' direc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I configure Apache 2.2 for Ruby on Rails in Windows? I'm trying to get started writing some Ruby on Rails apps and have been successful with Mongrel but, I'd like to deploy my apps to my Apache 2.2 instance on Windows? All the tutorials I've found seem out of date and are for older versions of Apache/Rails.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: ASP.net MVC with Ajax Does anybody know of an up to date tutorial on using Ajax with ASP.net MVC? Most of what I can find seems to talk about older versions of MVC and I suspect that this is an area where there has been a lot of change of late.
A: Stephen Walter just blogged about this:
http://weblogs.asp.net/st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Caching in urllib2? Is there an easy way to cache things when using urllib2 that I am over-looking, or do I have to roll my own?
A: If you don't mind working at a slightly lower level, httplib2 (https://github.com/httplib2/httplib2) is an excellent HTTP library that includes caching functionality.
A: This ActiveSt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Adding rows to datagridview with existing columns I have a DataGridView with several created columns. I've add some rows and they get displayed correctly; however, when I click on a cell, the content disappears.
What am I doing wrong?
The code is as follows:
foreach (SaleItem item in this.Invoice.SaleItems)
{
Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Using P/Invoke correctly I need to call an external dll from c#. This is the header definition:
enum WatchMode {
WATCH_MODE_SYSTEM = 0,
WATCH_MODE_APPLICATION = 1 };
LONG ADS_API WDT_GetMode ( LONG i_hHandle, WatchMode * o_pWatchMode );
I've added the enum and the call in C#:
public enum WatchM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the opposite of 'parse'? I have a function, parseQuery, that parses a SQL query into an abstract representation of that query.
I'm about to write a function that takes an abstract representation of a query and returns a SQL query string.
What should I call the second function?
A: generateQuery, possibly? cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "147"
} |
Q: How do I move a TFS file with c# API? I have been googling for a good time on how to move a file with c# using the TFS API. The idea is to have a folder on which the developers drop database upgrade scripts and the build process get's to the folder creates a build script and moves all the files on the folder to a ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to exclude a certain member from a MDX call that gets all descendants of a member at a higher level In an OLAP database I work with there is a 'Location' hierarchy consisting of the levels Company -> Region -> Area -> Site -> Room. I am using the following MDX to get all the descendants of a particular member at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Why does my .NET application crash when run from a network drive? My .NET application fails when run from a network drive even when the very same executable runs perfectly fine from a local hard drive?
I tried checking for "Full trust" like so:
try
{
// Demand full trust permissions
PermissionSet fullTrust =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How do I append a large amount of rich content (images, formatting) quickly to a control without using tons of CPU? I am using wxWidgets and Visual C++ to create functionality similar to using Unix "tail -f" with rich formatting (colors, fonts, images) in a GUI. I am targeting both wxMSW and wxMAC.
The obvious answ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using events rather than exceptions to implement error handling I'm working on some code that uses a pattern in its business and data tiers that uses events to signal errors e.g.
resource = AllocateLotsOfMemory();
if (SomeCondition())
{
OnOddError(new OddErrorEventArgs(resource.StatusProperty));
resourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there a better way to do optional function parameters in JavaScript? I've always handled optional parameters in JavaScript like this:
function myFunc(requiredArg, optionalArg){
optionalArg = optionalArg || 'defaultValue';
// Do stuff
}
Is there a better way to do it?
Are there any cases where using || like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "859"
} |
Q: How do I properly branch post-commit and revert the trunk in svn? I have some commits that I've decided, after the fact, are going to be more branch work then trunk work. How do I create the branch and revert the trunk while still ensuring merging isn't painful later?
Is it as simple as copying the current trunk to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is the DLR going to be capable of compiling client-side code? Is the DLR intended to be used to compile code exclusively prior to distribution or will it potentially be used to compile client-side Javascript in a JIT fashion?
A: The CLR already compiles and JITs code, and from what I gather the DLR will be built en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Returning form, querystring, cookie values by priority in ASP.NET MVC I'm wondering why query string is preferred when getting values from user request. Where?
1) Code of System.Web.Mvc.DefaultModelBinder looks like this (only part of it):
HttpRequestBase request = controllerContext.HttpContext.Request;
if (req... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which Dependency Injection Tool Should I Use? I am thinking about using Microsoft Unity for my Dependency Injection tool in our User Interface.
Our Middle Tier already uses Castle Windsor, but I am thinking I should stick with Microsoft.
Does anyone have any thoughts about what the best Dependency Injection tool is?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Send query results to Excel from ASP.NET website We let users create ad-hoc queries in our website. We would like to have the user select their criteria, then click submit and have the results streamed automatically to Excel. I have the application populating a DataTable, then using the datatable to create a tab d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does mysqldump --password really do what it says? I'm trying to use mysqldump to dump a schema, and it mostly works but I ran into one curiosity: the -p or --password option seems like it is doing something other than setting the password (as the man page and --help output say it should).
Specifically, it looks like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Yui, how to remove the margins for a 2 column layout? I want the 2 columns to touch ie. remove the margins, how can I do this?
My code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>testing</TITLE>
<!-- css -->
<link rel="stylesheet" type="text/css" href="http://yui.ya... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Keeping GUIs responsive during long-running tasks Keeping the GUI responsive while the application does some CPU-heavy processing is one of the challenges of effective GUI programming.
Here's a good discussion of how to do this in wxPython. To summarize, there are 3 ways:
*
*Use threads
*Use wxYield
*Chunk the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Encrypting Salary value in ASP .NET 2.0 and SQL Server 2005 I have an ASP .NET 2.0 website connected to a SQL Server 2005 database. The site is pretty simple and stores information about staff, including salary.
What is the best way to encrypt the salary value so no-one (including myself) can ever see what it is, e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Windows batch files: .bat vs .cmd? As I understand it, .bat is the old 16-bit naming convention, and .cmd is for 32-bit Windows, i.e., starting with NT. But I continue to see .bat files everywhere, and they seem to work exactly the same using either suffix. Assuming that my code will never need to run on anything ol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "870"
} |
Q: Visual Studio keyboard-shortcut for automatically adding the 'using' statement What is the keyboard-shortcut that expands the menu, from the little red line, and offers the option to have the necessary using statement appended to the top of the file?
A: *
*Context Menu key (one one with the
menu on it, next to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "260"
} |
Q: Passing a function to another function in Actionscript 3 I have a function that passes an array to another function as an argument, there will be multiple data types in this array but I want to know how to pass a function or a reference to a function so the other function can call it at any time.
ex.
function A:
add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Recursion in an XML schema? I need to create an XML schema that validates a tree structure of an XML document. I don't know exactly the occurrences or depth level of the tree.
XML example:
<?xml version="1.0" encoding="utf-8"?>
<node>
<attribute/>
<node>
<attribute/>
<node/>
</node>
</node>
Whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Archiving VMware images on ESXi Is there a way to compress a VMWare image on a ESXi server for archival purposes?
A: What is wrong with simply using your faviourite archiver/compressor utility?
A: veeam fastscp to copy it to your management station. after that treat as you like...
A: I concur with @Sec - I use .t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/148999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rhino Mocks, MbUnit: Best way to check if object has raised an event I have an object that I'm testing that raises an event. What is the best way of using Rhino Mocks to check that it was raised?
Best I could come up with (I am certain it gets better than this):
public void MyCallback(object sender, EventArgs e) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: NSCoder vs NSDictionary, when do you use what? I'm trying to figure out how to decide when to use NSDictionary or NSCoder/NSCoding?
It seems that for general property lists and such that NSDictionary is the easy way to go that generates XML files that are easily editable outside of the application.
When dealing with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What does the POP3 CAPA UIDL command do? What does the POP3 CAPA UIDL command do?
A: The UIDL capability indicates that the optional UIDL command is supported.
POP3 servers may assign a unique number to each incoming mail message. This allows mail to be left on the server after it has been downloaded to the user. B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: When should I write a Linux kernel module? Some people want to move code from user space to kernel space in Linux for some reason. A lot of times the reason seems to be that the code should have particularly high priority or simply "kernel space is faster".
This seems strange to me. When should I consider writing a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Best way to store currency values in C++ I know that a float isn't appropriate to store currency values because of rounding errors. Is there a standard way to represent money in C++?
I've looked in the boost library and found nothing about it. In java, it seems that BigInteger is the way but I couldn't find an equi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: JMS message receiver filtering by JMSCorrelationID How can I instantiate a JMS queue listener in java (JRE /JDK / J2EE 1.4) that only receives messages that match a given JMSCorrelationID? The messages that I'm looking to pick up have been published to a queue and not a topic, although that can change if needed.
He... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there a way to define which fields in the model are editable in the admin app? Assume the following:
models.py
class Entry(models.Model):
title = models.CharField(max_length=50)
slug = models.CharField(max_length=50, unique=True)
body = models.CharField(max_length=200)
admin.py
class EntryAdmin(admin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Would you start learning Smalltalk? My questions is simple!
*
*Would you start learning Smalltalk if you had the time? Why? Why not?
*Do you already know Smalltalk? Why would you recommend Smalltalk? Why not?
Personally I'm a Ruby on Rails programmer and I really like it. However, I'm thinking about Smalltalk ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: In SQL Server Management Studio can I search for assets across multiple databases? My everyday IDE is Eclipse which has a wonderful Open Resource feature (CTRL+SHIFT+R or Navigate > Open Resource) which allows the user to search for files/resources across multiple projects.
I can't find a similar feature in SQL Serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to format numbers as currency strings I would like to format a price in JavaScript. I'd like a function which takes a float as an argument and returns a string formatted like this:
"$ 2,500.00"
How can I do this?
A: The YUI codebase uses the following formatting:
format: function(nData, oConfig) {
oConfig ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2393"
} |
Q: How to remove trailing whitespace of all files recursively? How can you remove all of the trailing whitespace of an entire project? Starting at a root directory, and removing the trailing whitespace from all files in all folders.
Also, I want to to be able to modify the file directly, and not just print everything t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "139"
} |
Q: How to display a non-ascii filename in the file download box in browsers? There doesn't seem to be an accepted way of sending down a header parameter in non ascii format.
The header for file download usually looks like
Content-disposition: attachment; filename="theasciifilename.doc"
Except if you smash a utf8 encode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: StackTrace in Flash / ActionScript 3.0 I want to see the stack trace in any function of my code, so i made somthing like this to call it and print the stack trace:
public function PrintStackTrace() {
try {
throw new Error('StackTrace');
} catch (e:Error) {
trace(e.getStackTrace());
}
}
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Can Multiple Indexes Work Together? Suppose I have a database table with two fields, "foo" and "bar". Neither of them are unique, but each of them are indexed. However, rather than being indexed together, they each have a separate index.
Now suppose I perform a query such as SELECT * FROM sometable WHERE foo='hell... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Recovery from optical media ignoring read errors I have backups of files archived in optical media (CDs and DVDs). These all have par2 recovery files, stored on separate media. Even in cases where there are no par2 files, minor errors when reading on one optical drive can be read fine on another drive.
The thing is,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Capturing the Click event in an Excel spreadsheet How can I capture the event in Excel when a user clicks on a cell. I want to be able to use this event to trigger some code to count how many times the user clicks on several different cells in a column.
A: Check out the Worksheet_SelectionChange event. In that eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Crystal Reports vs ReportViewer Pros/Cons? We have been designing our reports around Crystal Reports in VS2008 for our web application and I just discovered the Microsoft provided ReportViewer control. I've searched around a bit but cannot find a good breakdown of the pros and cons of each method of producing repor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Changing/Adding controls to the windows Open/Save common dialog Is there a way of changing/adding to the windows Open/Save common dialog to add extra functionality?
At work we have an area on a server with hundreds of 'jobfolders'- just ordinary windows folders created/managed automatically by the database applicati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SQL Server 2000: "subquery returned more than one value" on an update statement I'm trying to do a simple update. I've done this kind of thing thousands of times.
update articles
set department = 60
where type = 'Top Story'
Today I get a strange error.
Describe Error: Failed to retrieve
execution plan: Subquery... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Request.UrlReferrer null? In an aspx C#.NET page (I am running framework v3.5), I need to know where the user came from since they cannot view pages without logging in. If I have page A (the page the user wants to view) redirect to page B (the login page), the Request.UrlReferrer object is null.
Background: If a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Is there a way to update VS' CSS validation to 3.0? I'm getting warnings about CSS3.0 properties like text-overflow. Is there a way to validate against 3.0?
HTML5 and CSS3 support is coming to VS2010 in SP1.
Link
And now its here.
http://visualstudiogallery.msdn.microsoft.com/7211bcac-091b-4a32-be2d-e797be0db210/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How can one iterate over stored procedure results from within another stored procedure....without cursors? I'm not sure if this is something I should do in T-SQL or not, and I'm pretty sure using the word 'iterate' was wrong in this context, since you should never iterate anything in sql. It should be a set based op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Database independence in Unix/C We have a system written in C and running under Solaris & Linux that uses the Sybase CT-library to access a Sybase database.
We generate the table-definitions, indexes, stored procedures and C-code from an in-house developed DDL to reduce the amount of work and errors.
We would like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Loading animated gif from JAR file into ImageIcon I'm trying to create a ImageIcon from a animated gif stored in a jar file.
ImageIcon imageIcon = new ImageIcon(ImageIO.read(MyClass.class.getClassLoader().getResourceAsStream("animated.gif")));
The image loads, but only the first frame of the animated gif. The anim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Patterns for Multithreaded Network Server in C# Are there any templates/patterns/guides I can follow for designing a multithreaded server? I can't find anything terribly useful online through my google searches.
My program will start a thread to listen for connections using TcpListener.
Every client connection will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How can I limit the maximum number of running processes within Microsoft Windows? I'm looking for a way to limit the maximum number of running processes in Windows Server 2003.
Is there a registry key somewhere that controls it?
If so, which one is it?
A: if you are talking about processes as in the items listed in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PowerShell functions return behavior I am seeing some rather weird behavior with PowerShell, it looks like custom functions might need a "parenthesis wrapper" to evaluate as you might expect them. Given a simple PowerShell function:
function Return-True { return $true }
and then some sample code to invoke it:
PS C:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: sane backup strategy for webapps I'm doing a webapp and need a backup plan. Here's what I've got so far:
*
*nightly encrypted backup of the SQL database to Amazon S3 and my external drive (incremental if possible, not overly familiar with PostgreSQL yet, but that's another thread)
*nightly backup of my Mercuria... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I commit only parts of my code using SVN or Mercurial? I use Tortoise SVN usuallly, but I have been looking into Mercurial since it is a distributed revision control system.
What I am looking for, in both systems, is a tool that let me pick only parts of a file and commit them. If I want to do this now, I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Can we create an application with its own Web.config and Forms Authentication section inside another application using Forms Authentication? I have an application that uses Forms Authentication to authenticate one type of user. There is a section in this application that needs to be authenticated for another type of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to determine whether a XML attribute exists in Flex I have a XML response from an HTTPService call with the e4x result format.
<?xml version="1.0" encoding="utf-8"?>
<Validation Error="Invalid Username/Password Combination" />
I have tried:
private function callback(event:ResultEvent):void {
if(ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: AVI Animations for GUI I need to get some AVI animations for use with the Borland VCL TAnimate component, to display during operations such as 'online update', 'burning cd' and a few others.
I have only come across the glyFX Animation Pack so far.
Can anybody recomend other places to get nice avi animations?
A: You... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Determining available bandwidth What is the best way to determine available bandwidth in .NET?
We have users that access business applications from various remote access points, wired and wireless and at times the bandwidth can be very low based on where the user is. When the applications appear to be running slow,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are hypothetical indexes? Does anybody know what hypothetical indexes are used for in sql server 2000? I have a table with 15+ such indexes, but have no idea what they were created for. Can they slow down deletes/inserts?
A: hypothetical indexes are usually created when you run index tuning wizard, and are s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to move asp.net/ajax control BEFORE page loading? I have an Panel control that I need to maintain position across postbacks. I am able to do this by maintaining a cookie which is read each time the page is loaded to get the position of the Panel before the page is loaded.
The problem is, the page is loaded, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Merging big files in C# I have 7-8 xml files. Each one is approximately 50 MB in size. What is the best way to merge files programmatically in C# without getting System.OutOfMemory Exception? So far I have tried reading each file in a StringBuilder and than putting it in an array of string builder but I still get s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Edit php.ini with .htaccess I'm slowly getting back into PHP, and now I run into a problem, I want to install some web software on our host and I need to have either the latest Zend (which they don't have) or IonCube on the server and IonCube requires enable_dl to be on in the php.ini. Now a colleague of mine thinks... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Not Nil shortcut in Delphi What delphi function asserts that an object is not nil?
A: Assigned(AObject) will tell you if an object is nil or not.
Perhaps worth mentioning is the fact that if you free an object using AObject.Free the Assigned will still return true. So make sure you free the object using FreeAndNil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/149262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.