text stringlengths 8 267k | meta dict |
|---|---|
Q: How to test randomness (case in point - Shuffling) First off, this question is ripped out from this question. I did it because I think this part is bigger than a sub-part of a longer question. If it offends, please pardon me.
Assume that you have a algorithm that generates randomness. Now how do you test it?
Or to b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Anyone used Dabo for a medium-big project? We're at the beginning of a new ERP-ish client-server application, developed as a Python rich client. We're currently evaluating Dabo as our main framework and it looks quite nice and easy to use, but I was wondering, has anyone used it for medium-to-big sized projects?
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: What can cause a reduction in frame rate when upgrading a graphics card? We have a two-screen DirectX application that previously ran at a consistent 60 FPS (the monitors' sync rate) using a NVIDIA 8400GS (256MB). However, when we swapped out the card for one with 512 MB of RAM the frame rate struggles to get above ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are there any resources for becoming a Cygwin "power user"? I've got it configured, but I want more from it...maybe Cygwin isn't the right tool, but I like how it provides a *nix-like environment within Windows.
A: I've found Cygwin to be very useful in the past. FWIW, lately however I've shied away from it in fav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Foxpro App and removable drives problem I have a foxpro app, that contains hard coded path for icons and bitmaps. That's how foxpro does it and there is no way around it. And this works fine, except that when a removable drive has been used but is not connected, and when is connected windows assigns the same letter ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create drop down list options from enum in a DataGridView I currently have a class and I'm trying to create an easy GUI to create a collection of this class. Most of the attributes of this class are strings. However, one of the attributes I want the user to be able to set is an Enum. Therefore, I would like the use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: ASP.Net MVC, AJAX, and progressive enhancement I am looking for a reliable technique for adding Ajax to a working ASP.NET MVC application. I want to use jQuery, and understand how to use the AJAX functionality from jQuery.
What I need to know is how I should write my controller so that I can run the site without Ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: .Net arrays with lower bound > 0 Although perhaps a bizare thing to want to do, I need to create an Array in .Net with a lower bound > 0. This at first seems to be possible, using:
Array.CreateInstance(typeof(Object), new int[] {2}, new int[] {9});
Produces the desired results (an array of objects with a lower boun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Sending messages to objects while debugging Objective-C in gdb, without symbols I'm trying to send messages to Objective-C objects in gdb.
(gdb) p $esi
$2 = (void *) 0x1268160
(gdb) po $esi
<NSArray: 0x1359c0>
(gdb) po [$esi count]
Target does not respond to this message selector.
I can't send any message to it. Am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to interact with Windows Media Player in C# I am looking for a way to interact with a standalone full version of Windows Media Player.
Mostly I need to know the Path of the currently played track.
The iTunes SDK makes this really easy but unfortunately there really isn't any way to do it with Windows Media Playe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Will .NET MVC give me the HTML/CSS/JS separation I need? I'm working with my ASP.NET development team to try and create "better" (i.e. cleaner) HTML when rendering pages. At the moment, .NET has a nasty tendency to do things like dump JavaScript into the page, making it a mandatory requirement on form controls and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can't access variable in C++ DLL from a C app I'm stuck on a fix to a legacy Visual C++ 6 app. In the C++ DLL source I have put
extern "C" _declspec(dllexport) char* MyNewVariable = 0;
which results in MyNewVariable showing up (nicely undecorated) in the export table (as shown by dumpbin /exports blah.dll). However... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there any difference between type? and Nullable? In C# are the nullable primitive types (i.e. bool?) just aliases for their corresponding Nullable<T> type or is there a difference between the two?
A: I'm surprised nobody went to the source (the C# spec) yet. From §4.1.10 Nullable types:
A nullable type is writt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Windows Forms Designer upset by a control with a nullable property I have a "numeric textbox" in C# .NET which is nothing more than a derivation of Textbox, with some added logic to prevent the user entering anything non-numeric. As part of this, I have added a Value property of type double? (or Nullable<double>). I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Recovering from a slightly out of date subversion repository backup A problem I ran into a while back I never found a good solution for...
Say you have a working copy checked out from subversion at revision 7500, and the disk holding the current repository dies. You've got a backup of the repository at, say, revisio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: activerecord as model, is this a good idea? Recently thanks to rails' popularity, many people start using activerecord as model. however, before I heard of rails (my peer group was not a fan of open source stuff, we were taught in a .NET school...) and while I was doing my final year project, i found this definition... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do you perform a CROSS JOIN with LINQ to SQL? How do you perform a CROSS JOIN with LINQ to SQL?
A: Extension Method:
public static IEnumerable<Tuple<T1, T2>> CrossJoin<T1, T2>(this IEnumerable<T1> sequence1, IEnumerable<T2> sequence2)
{
return sequence1.SelectMany(t1 => sequence2.Select(t2 => Tuple.Create(t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "136"
} |
Q: Using an external "windows"-keyboard under Mac OS X I use a MacBook, but I've got a usual keyboard attached to it.
The problem is that the keys don't exactly map 1-to-1. One thing is the APPLE and ALT keys. They map to WIN and ALT, but they are usually physically inverted, so if you want to use them with the same la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: What is the proper regular expression for an unescaped backslash before a character? Let's say I want to represent \q (or any other particular "backslash-escaped character"). That is, I want to match \q but not \\q, since the latter is a backslash-escaped backslash followed by a q. Yet \\\q would match, since it's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the best way to convert between char* and System::String in C++/CLI What is the approved way to convert from char* to System::string and back in C++/CLI? I found a few references to marshal_to<> templated functions on Google, but it appears that this feature never made the cut for Visual Studio 2005 (and isn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: performing datetime related operations in PHP How do you actually perform datetime operations such as adding date, finding difference, find out how many days excluding weekends in an interval? I personally started to pass some of these operations to my postgresql dbms as typically I would only need to issue one sql ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Don't repeat yourself vs Internationalisation A while back I was reading the W3C article on 'Re-using Strings in Scripted Content', which contains some useful advice on internationalisation, but which strikes me as at odds iwth the DRY (Don't Repeat Yourself) principle of eliminating repetitive code.
To take their e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Can you query different databases on the same server using 1 NHibernate Session? Does a new SessionFactory and Session object have to be created for each database? I have a data store for my application data, and a separate data store for my employee security, which is used to validate users. Do I have to create a n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Double Quotes in Oracle Column Aliases Ok, this is bit of an obscure question, but hopefully someone can help me out with it.
The system I'm working on builds a dynamic SQL string for execution inside a stored procedure, and part of that dynamic SQL defining column aliases, which themselves are actually values retri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to escape XML content with XSL to safely output it as JSON? How to escape XML content with XSL to safely output it as JSON?
A: Sorry, I have myself found the answer on Google (literaly):
http://code.google.com/p/xml2json-xslt/
| {
"language": "en",
"url": "https://stackoverflow.com/questions/56611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does IE7 have a "developer mode" or plugin like Firefox/Chrome/Safari?
Possible Duplicate:
Debugging JavaScript in IE7
Firefox has Web Developer plugin and Firebug for troubleshooting html/css/javascript issues. Google Chrome and Safari have a very similar console and right-click options for "Inspect Element".
Do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: How do you clear the SQL Server transaction log? I'm not a SQL expert, and I'm reminded of the fact every time I need to do something beyond the basics. I have a test database that is not large in size, but the transaction log definitely is. How do I clear out the transaction log?
A: This technique that John recomm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "660"
} |
Q: How can I get a fixed-position menu like slashdot's comment filtration menu Slashdot has a little widget that allows you to tweak your comment threshold to filter out down-modded comments. It will be in one place if you scroll to the top of the page, and as you scroll down, at some point, where its original home is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to convert from PRTime to .NET datetime I want to convert a number that is in PRTime format (a 64-bit integer representing the number of microseconds since midnight (00:00:00) 1 January 1970 Coordinated Universal Time (UTC)) to a DateTime.
Note that this is slightly different than the usual "number of millisecon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Loader lock error I am building on C++ dll, by writing code in C#.
I get an error, saying
LoaderLock was detected Message:
Attempting managed execution inside OS
Loader lock. Do not attempt to run
managed code inside a DllMain or image
initialization function since doing so
can cause the application to h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: How do I detect if a Windows server is available after a reboot? I want to automate a Windows 2000+ server reboot process using Task Scheduler or similar tool to remotely reboot a server and wait for it to come back up. I can issue shutdown or psshutdown to remotely reboot, but I want something better than sleep to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What's the Best Way to Shuffle an NSMutableArray? If you have an NSMutableArray, how do you shuffle the elements randomly?
(I have my own answer for this, which is posted below, but I'm new to Cocoa and I'm interested to know if there is a better way.)
Update: As noted by @Mukesh, as of iOS 10+ and macOS 10.12+, th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "192"
} |
Q: How do I access performance counters from C# in Windows XP Embedded? I have an application running under Windows XP, and I'm accessing the Processor and Memory performance counters. When I try to run the same code and access them on XP Embedded, the counters don't seem to be present. They are present in the image ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Arithmetic underflow or overflow exception during debugging This is the day of weird behavior.
We have a Win32 project made with Delphi 2007, which hosts the .NET runtime and calls into .NET to show new forms, as part of a transition period.
Recently we've begun experiencing exceptions at seemingly random locations ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Copying a directory that is version controlled I am curious whether it is OK to copy a directory that is under version control and start working on both copies.
I know it can be different from one VCS to another, but I intentionally don't specify any VCS since I am curious about different cases.
I was talking to a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I specify in HTML or CSS the absolute minimum width of a table cell Summary
What's the best way to ensure a table cell cannot be less than a certain minimum width.
Example
I want to ensure that all cells in a table are at least 100px wide regards of the width of the tables container. If there is more availab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Custom Counter Creation Through Web Application I have a .NET 3.5 web application for which I have implemented a class called CalculationsCounterManager (code below). This class has some shared/static members that manage the creation and incrementing of two custom performance counters that monitor data calls to a S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you profile your code? I hope not everyone is using Rational Purify.
So what do you do when you want to measure:
*
*time taken by a function
*peak memory usage
*code coverage
At the moment, we do it manually [using log statements with timestamps and another script to parse the log and output to excel.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is there a way to parser a SQL query to pull out the column names and table names? I have 150+ SQL queries in separate text files that I need to analyze (just the actual SQL code, not the data results) in order to identify all column names and table names used. Preferably with the number of times each column and tab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is a Flex debugger included in the sdk? I have been writing Flex applications for a few months now and luckily have not needed a full debugger as of yet, so far I have just used a few Alert boxes...
Is there an available debugger that is included in the free Flex SDK? I am not using FlexBuilder (I have been using Em... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to see if a subfile of a directory has changed In Windows, is there an easy way to tell if a folder has a subfile that has changed?
I verified, and the last modified date on the folder does not get updated when a subfile changes.
Is there a registry entry I can set that will modify this behavior?
If it matters, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I get rid of Windows Update reboot prompt? I want Windows Update to automatically download and install updates on my Vista machine, however I don't want to be bothered by the system tray reboot prompts (which can, at best, only be postponed by 4 hours).
I have performed the registry hack described here to pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do I ensure that RMI uses only a specific set of ports? In our application, we are using RMI for client-server communication in very different ways:
*
*Pushing data from the server to the client to be displayed.
*Sending control information from the client to the server.
*Callbacks from those control messag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Random weighted choice Consider the class below that represents a Broker:
public class Broker
{
public string Name = string.Empty;
public int Weight = 0;
public Broker(string n, int w)
{
this.Name = n;
this.Weight = w;
}
}
I'd like to randomly select a Broker from an array, taki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: Best way to get a list of differences between 2 of the same objects I would like to generate a list of differences between 2 instances of the the same object. Object in question:
public class Step
{
[DataMember]
public StepInstanceInfo InstanceInfo { get; set; }
[DataMember]
public Collection<strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java Right Click does not make a selection. What is the easiest way to solve this globally? Is there a way to globally make right click also select the element that you right click on?
From what I understand this has been a bug in Swing for a long time likely to never be fixed because at this point applications de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Objective-C for Windows What would be the best way to write Objective-C on the Windows platform?
Cygwin and gcc? Is there a way I can somehow integrate this into Visual Studio?
Along those lines - are there any suggestions as to how to link in and use the Windows SDK for something like this. Its a different beast bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "231"
} |
Q: User does not have permission to run DBCC DBREINDEX I get the following error message in SQL Server 2005:
User '<username>' does not have permission to run DBCC DBREINDEX for object '<table>'.
Which minimum role do I have to give to user in order to run the command?
A: You will need to be a member of the db_ddladm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best way to query disk space on remote server I am trying to nail down free space on a remote server by querying all the drives and then looping until I find the drive I am seeking.
Is there a better way to do this?
Dim oConn As New ConnectionOptions
Dim sNameSpace As String = "\\mnb-content2\root\cimv2"
Dim oMS As... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Architecture for modeling A common solution to building a model of a system which consists of many items of different types is to create a modular system, where each module is responsible for particular type. For example, there will be module for wombats WombatModule:IModule, where IModule interface has methods like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Automated processing of an Email in Java Just got a request from my boss for an application I'm working on. Basically we're getting an email address setup for an external client to submit excel files to.
What I need is a way to automatically pick up any email sent to this address, so I can take the attachment, proc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Display blanks instead of 0 or 0.0 in a BIRT report When using an aggregate control in some reports you would prefer to see a blank field instead of 0. There does not appear to be a way to do this automatically. Does anyone have a way that this can be done. Note, you want to maintain the '0' value for the field i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to call the AllocateAndInitializeSid function from C#? Can somebody give me a complete and working example of calling the AllocateAndInitializeSid function from C# code?
I found this:
BOOL WINAPI AllocateAndInitializeSid(
__in PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
__in BYTE nSubAuthorityCount... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is DocumentBuilder.parse() thread safe? Is the standard Java 1.6 javax.xml.parsers.DocumentBuilder class thread safe? Is it safe to call the parse() method from several threads in parallel?
The JavaDoc doesn't mention the issue, but the JavaDoc for the same class in Java 1.4 specifically says that it isn't meant to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: File system info - how to query it? Is there a way to access file system info via some type of Windows API? If not what other methods are available to a user mode developer?
A: Not very clean, but you can use DeviceIoControl()
Open volume as a file, pass resulting handle to DeviceIoControl() together with control c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Keyboard Shortcut in Access 2003 Is there a keyboard shortcut in Access 2003 that will run a query while in design or sql mode?
A: Sendkeys is always a mistake because almost nothing in Access not doable via code.
The correct code is:
DoCmd.RunCommand acCmdRun
How you run that code is up to you, but it's definite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Starting a new job focused on brownfield application refactoring & Agile I am starting a new job on Monday. The company has a home grown enterprise case management application written in ASP.NET/VB.NET. They are attempting to implement an Agile development process. They have gone so far as to get two people Scrum Ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Differences Between DataSet Merges Is there a difference (performance, overhead) between these two ways of merging data sets?
MyTypedDataSet aDataSet = new MyTypedDataSet();
aDataSet .Merge(anotherDataSet);
aDataSet .Merge(yetAnotherDataSet);
and
MyTypedDataSet aDataSet = anotherDataSet;
aDataSet .Merge(yetAnotherD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I tell a multi-core / multi-CPU machine to process function calls in a loop in parallel? I am currently designing an application that has one module which will load large amounts of data from a database and reduce it to a much smaller set by various calculations depending on the circumstances.
Many of the mor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I make dynamic content with dynamic navigation? I'm creating an ASP.NET web site where all pages hang off a database-driven tree-hierarchy. Pages typically present HTML content. But, some will execute programming.
Examples:
*
*a "contact us" form
*a report generator
How should I represent/reference ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do you set focus to the HTML5 canvas element? I'm using the HTML5 <canvas> element in Firefox 2.0.0.16 and in Safari 3.1.2, both on my iMac. (I've tried this in Firefox 3.0 on Windows as well, also to no avail.) The tag looks like this:
<td>
<canvas id="display"
width="500px"
height="5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Do I need to leave gaps in a standard server rack? We have a 42U rack which is getting a load of new 1U and 2U servers real soon. One of the guys here reckons that you need to leave a gap between the servers (of 1U) to aid cooling.
Question is, do you? When looking around the datacenter, no-one else seems to be, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Converting scripts from ksh to bash I have some ksh scripts which I'd like to convert to run with bash instead.
Are there any useful on-line resources for this?
I'm really looking for a list of differences between the two shells and any gotchas I might encounter, although all information is welcome :-)
A: Have you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: The difference between the connections strings in SQLCLR I was reviewing some code that a consultant checked in and notice they were using SQLCLR. I don't have any experience with it so thought I would research what it was about. I noticed that they used
Dim cn As New SqlConnection("server=LOCALHOST;integrated sec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I start threads in plain C? I have used fork() in C to start another process. How do I start a new thread?
A: pthreads is a good start, look here
A: Threads are not part of the C standard, so the only way to use threads is to use some library (eg: POSIX threads in Unix/Linux, _beginthread/_beginthreadex if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: BOM not expected in CF but sent by IIS/SharePoint I'm trying to consume a SharePoint webservice from ColdFusion via cfinvoke ('cause I don't want to deal with (read: parse) the SOAP response itself).
The SOAP response includes a byte-order-mark character (BOM), which produces the following exception in CF:
"Cannot p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: round() doesn't seem to be rounding properly The documentation for the round() function states that you pass it a number, and the positions past the decimal to round. Thus it should do this:
n = 5.59
round(n, 1) # 5.6
But, in actuality, good old floating point weirdness creeps in and you get:
5.5999999999999996
Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "141"
} |
Q: How can I make an exact copy of a xml node's children with XSLT? My problem is that my XML document contains snippets of XHTML within it and while passing it through an XSLT I would like it to render those snippets without mangling them.
I've tried wrapping the snippet in a CDATA but it doesn't work since less than ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Looking for an HQL builder (Hibernate Query Language) I'm looking for a builder for HQL in Java. I want to get rid of things like:
StringBuilder builder = new StringBuilder()
.append("select stock from ")
.append( Stock.class.getName() )
.append( " as stock where stock.id = ")
.append( id );
I'd rat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I make a UIDatePicker display specific dates? My application has a need to let the user choose a date from a list of dates conforming to a certain pattern. For instance, they may need to choose a monday from a list Monday's for a month. Is there a way to get a UIDatePicker to limit date choices to a certain s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible to display a modal window in SCSF application at the center of the screen In SCSF application I would like to display a view as a modal window at the center of the screen. Is it possible to do that?
WindowSmartPartInfo doesn't have any option for setting screen postion.
Thanks.
A: Assuming you're tal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is an example of the Liskov Substitution Principle? I have heard that the Liskov Substitution Principle (LSP) is a fundamental principle of object oriented design. What is it and what are some examples of its use?
A: This principle was introduced by Barbara Liskov in 1987 and extends the Open-Closed Principle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1194"
} |
Q: Calling a Web Service from Seam A simple question, but could someone provide sample code as to how would someone call a web service from within the JBoss Seam framework, and process the results?
I need to be able to integrate with a search platform being provided by a private vendor who is exposing his functionality... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Interface vs Base class When should I use an interface and when should I use a base class?
Should it always be an interface if I don't want to actually define a base implementation of the methods?
If I have a Dog and Cat class. Why would I want to implement IPet instead of PetBase? I can understand having interface... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "831"
} |
Q: UI Thread Safety Any suggestions on the best way to ensure thread safety when changing the properties on Form controls? I have been using Me. Invoke in the past, and I was wondering if you have pros/cons, comments, suggestions, etc.
A: Invoke is the proper way to do it if you're pushing stuff at the form from anoth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Proving SQL query equivalency How would you go about proving that two queries are functionally equivalent, eg they will always both return the same result set.
As I had a specific query in mind when I was doing this, I ended up doing as @dougman suggested, over about 10% of rows the tables concerned and comparing t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: ASP.Net AJAX JavaScript Serialization Error Ran into an “Out of Stack Space” error trying to serialize an ASP.Net AJAX Array object.
Here is the scenario with simplified code:
*
*Default.aspx
*MainScript.js
function getObject(){
return new Array();
}
function function1(obj){
var s=Sys.Serialization.Jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Opening a file stored in a database in .NET I'm storing a Word document in a SQL Server 2005 database in a varbinary(max) column. Is there a way to open this document from a VB.NET Windows Forms application without serialising to a file first (i.e. directly from the byte array I've read from the database)?
A: Depen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C#: Create a virtual drive in Computer Is there any way to create a virtual drive in "(My) Computer" and manipulate it, somewhat like JungleDisk does it?
It probably does something like:
override OnRead(object sender, Event e) {
ShowFilesFromAmazon();
}
Are there any API:s for this? Maybe to write to an XML-fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Batch renaming of files with international chars on Windows XP I have a whole bunch of files with filenames using our lovely Swedish letters å å and ö.
For various reasons I now need to convert these to an [a-zA-Z] range. Just removing anything outside this range is fairly easy. The thing that's causing me trouble i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I script a password change for a SQL server login? Just what the title says, I need to change the password for an existing sql server login and I want to do it via sql script.
A: alter login mylogin with password = 'mylogin'
A: If the user already has the ALTER ANY LOGIN permission (i.e. the user can chang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Crystal Reports 2008 InprocServer + TempDir = "Operation not yet implemented" I have a .NET web app that uses CR 2008 for reports. The server it's deployed on is saddled with McAfee, and we want to tell CR to use a temp directory other than the Windows temp dir.
Google found me the following registry key:
SOFTWARE\... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Yes/No dialog in Java ME I'm looking for a simple solution for a yes/no dialog to use in a Java ME midlet. I'd like to use it like this but other ways are okey.
if (YesNoDialog.ask("Are you sure?") == true) {
// yes was chosen
} else {
// no was chosen
}
A: You need an Alert:
An alert is a screen that shows d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: secure way to authenticate administrator in ASP.NET site using OpenID with DotNetOpenID Encouraged by SO, I'm trying to write an ASP.NET site that uses OpenID for user authentication. It's a regular WinForms site (not MVC.NET), using the DotNetOpenId library for authentication.
Is it safe for me to permit/deny admi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Highlight parents in xml string Say I have:
<ul>
<li id="x">
<a href="x">x</a>
</li>
<li id="y">
<a href="y">y</a>
<ul>
<li id="z">
<a href="z">z</a>
</li>
</ul>
</li>
</ul>
I want to add a class value to all the list items th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How is floating point stored? When does it matter? In follow up to this question, it appears that some numbers cannot be represented by floating point at all, and instead are approximated.
How are floating point numbers stored?
Is there a common standard for the different sizes?
What kind of gotchas do I need to wat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Race Condition Analysers for .NET I've seen there are some race condition analysis tools for C++, C and Java. Anyone know of any static analysis tools that do the same for .NET?
A: I haven't ever used this tool, but it looks like TypeMock has a tool called Racer that can handle this. Roy Osherove blogged about it h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Right Align Numeric Data in SQL Server We all know T-SQL's string manipulation capabilities sometimes leaves much to be desired...
I have a numeric field that needs to be output in T-SQL as a right-aligned text column. Example:
Value
----------
143.55
3532.13
1.75
How would you go about that? A good solut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Is it possible to programmatically push files to a wireless SD card? Is it possible to programmatically push files to a wireless SD card - like a www.eye.fi card?
I use a Mac and thought I could do this using some AppleScript - but have not found a way...
Derek
A: The eye-fi card relies on image files being written... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: EasyMock: How do I create a mock of a genericized class without a warning? The code
private SomeClass<Integer> someClass;
someClass = EasyMock.createMock(SomeClass.class);
gives me a warning "Type safety: The expression of type SomeClass needs unchecked conversion to conform to SomeClass<Integer>".
A: AFAIK, you c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Trouble with scrolling a UIScrollBar component within a class I'm trying to attach an instance of UIScrollbar component to a dynamic text field inside of an instance of a class that is being made after some XML is loaded. The scroll bar component is getting properly attached, as the size of the slider varies dependi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keyword for the outer class from an anonymous inner class In the following snippet:
public class a {
public void otherMethod(){}
public void doStuff(String str, InnerClass b){}
public void method(a){
doStuff("asd",
new InnerClass(){
public void innerMethod(){
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "215"
} |
Q: What is the best way to send large batches of emails in ASP.NET? I'm currently looping through a datareader and calling the System.Net.Mail.SmtpClient's Send() method. The problem with this is that it's slow. Each email takes about 5-10 seconds to send (it's possible this is just an issue with my host). I had to ove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Which is the best database schema for my navigation? I'm creating a web site where all pages hang off a database-driven tree-hierarchy.
All but one node has a parent node. Nodes may have role-based read permissions. Some nodes may have special rules (such as: don't display within navigation menus).
Nodes may repre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to access a PCMCIA modem's serial number? A Sprint cellular modem plugs into a laptop - often the PCMCIA slot. To connect, the user opens a program called the Connection Manager. This program has a menu option to display the serial number and phone number of the modem that's currently inserted.
Does that imply t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS to make an empty cell's border appear? What CSS should I use to make a cell's border appear even if the cell is empty?
IE 7 specifically.
A: I just found the following. It's standards compliant but it doesn't work in IE. sigh.
empty-cells: show
A: I happened across this question and haven't seen any answers ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: How can I find what search terms (if any) brought a user to my site? I want to create dynamic content based on this. I know it's somewhere, as web analytics engines can get this data to determine how people got to your site (referrer, search terms used, etc.), but I don't know how to get at it myself.
A: You can us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Getting Information From Master File Table on Windows I need to get some information that is contained in the MFT on a Windows machine, and I'm hoping that there is some super-secret API for getting this information. I need to be able to get to this information programmatically, and because of legal concerns I might... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way to reduce sequences in an array of strings Please, now that I've re-written the question, and before it suffers from further fast-gun answers or premature closure by eager editors let me point out that this is not a duplicate of this question. I know how to remove duplicates from an array.
This question is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Where should cross-platform apps keep their data? I'm building an application that is targeting Windows, Mac and Linux soon. I was wondering where should I keep application data such as settings, etc.
Application's installation folder is the easiest choice, but I think that might be a problem with new Vista security... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.