text stringlengths 8 267k | meta dict |
|---|---|
Q: How can I set the position of my datagrid scrollbar in my winforms app? In my C# winforms app, I have a datagrid. When the datagrid reloads, I want to set the scrollbar back to where the user had it set. How can I do this?
EDIT: I'm using the old winforms DataGrid control, not the newer DataGridView
A: You don't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Physical vs. logical (hard vs. soft) delete of database record? What is the advantage of doing a logical/soft delete of a record (i.e. setting a flag stating that the record is deleted) as opposed to actually or physically deleting the record?
Is this common practice?
Is this secure?
A: Advantages are that you keep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "148"
} |
Q: Problem with starting OpenOffice service (soffice) from Java (command working in commandline, but not from Java) I want to exceute a simple command which works from the shell but doesn't work from Java.
This is the command I want to execute, which works fine:
soffice -headless "-accept=socket,host=localhost,port=810... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Enable/disable editing of a form field from code I'm not a Notes programmer, however, for my sins, have been working on some Notes features for an in-house project recently. I need to enable/disable editing of a field depending on circumstances. It seems to me to be a fairly standard feature, I need, but I can't fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Regular Expressions Ignore Case in search but not replace In C#, I want to be able to generically replace text, ignoring case in the search but not in the replace (kind of?). Here is an example:
I have a list that looks like this:
Site -> Place
Stuff -> Things
etc...
Then I want to call ConvertMyString("Site") and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET Website's BIN directory and references Imagine the following solution:
*
*Website ABC.com (not Web Application)
*BLL (business logic layer in a seperate assembly)
*DTO (dto objects in their own assembly)
*DAL (data access layer in it's own assembly as well).
*
*The BLL has a reference to the DAL.
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to handle User Access Control when using MAPI in .NET I've used MAPI to create emails with attachments from my application and it works very well on XP and Vista (without UAC). Of course, if you have UAC enabled, it just doesn't work (though it gives no errors, and doesn't prompt the user for permission to cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding DOM node index I want find the index of a given DOM node. It's like the inverse of doing
document.getElementById('id_of_element').childNodes[K]
I want to instead extract the value of K given that I already have the reference to the child node and the parent node. How do I do this?
A: RoBorg's answer work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Is there a Java Descriptor like thing in .Net? I'm working on a static analysis tool for .NET assembly.
In Java, there is a Descriptor which can be used to represent method or field in a string with specified grammar.
for field:
double d[][][];
will be
[[[D
It's useful especially when doing bytecode analysis. Coz ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rails shared sessions with activerecord I'm currently using the default cookies as my single sign on (SSO) but some users are getting strange errors after I push an update. I'm considering moving to active record to store sessions but was wondering how I tell rails that the sessions are in another database?
So if I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I debug a win32 process that unexpectedly terminates silently? I have a Windows application written in C++ that occasionally evaporates. I use the word evaporate because there is nothing left behind: no "we're sorry" message from Windows, no crash dump from the Dr. Watson facility...
On the one occasion the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: ViewState object lost in Master Page Load I am assigning ViewState["something"] in Page Load of content page and when I try to access the ViewState variable in Master Page Load event handler, the viewstate variable is lost.Can anyone guide me why this is happening and the solution.
A: Master pages and content pages... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Cursor through html in VS lags If I have a decent size asp.net page open in Source view, and hold down the Up key or Down key to scroll through it, it will periodically get "stuck". It will stop on a line for a few microseconds, and you can see the screen flash, like it's trying to catch up with what it's trying to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VSTS Unit test - build system I have developed a build system on MSBuild (NET 3.0) and cc.net to perform continuous integration builds of a Visual Studio 2008 application, however a developer on the team recently added a VSTS unit test project to the mix. Is there any SDK or add-in provided by microsoft to allow th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamically resizing CMFCPropertySheet with PropSheetLook_OneNoteTabs style I'm trying to resize dynamically a CMFCPropertySheet to add a custom control at the bottom of each page.
As all Property Pages are not of the same height, I have a mechanism to increase the size if necessary.
For this, I have overridden the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using LoadRunner to Test Server Processes We currently use LoadRunner for performance testing our web apps, but we also have some server side processes we need to test.
Background:
We call these processes our "engines". One engine receives messages by polling an IBM WebSpere MQ queue for messages. It takes a message... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I extract text that lies between parentheses (round brackets)? I have a string User name (sales) and I want to extract the text between the brackets, how would I do this?
I suspect sub-string but I can't work out how to read until the closing bracket, the length of text will vary.
A: Assuming that you only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "261"
} |
Q: Scaling a rich domain model Domain Driven Design encourages you to use a rich domain model. This means all the domain logic is located in the domain model, and that the domain model is supreme. Persistence becomes an external concern, as the domain model itself ideally knows nothing of persistence (e.g. the database... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Moving files on different volumes in .NET Apparently I can't move files on different volumes using Directory.Move.
I have read that I have to copy each file individually to the destination, then delete the source directory.
Do I have any other option?
A: Regardless of whether or not Directory.Move (or any other fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Software Requirements Reviews with MS Word - How do I get metrics in an automated way? Let's say I have a requirements document in MS Word, and someone else reviews it an provides a list of issues found using the "Track Changes" feature.
Is there a way to extract "how many major/minor issues were found during the re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why this PHP code not generating a valid PNG image? $c = $record['corrects'];
$i = $record['incorrects'];
if($c == 0 && $i == 0)
{
$image = imagecreatetruecolor(200,80);
$white = imagecolorallocate($image,255,255,255);
$red = imagecolorallocate($image,255,0,0);
imagefilledrectangle($image,0,0,199,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Add web part programmatically to a Sharepoint Page and save values into the web part personalization store In my project I programmatically create a web part page and add a web part to it using SPLimitedWebPartManager. I also want to set some properties for the web part and save it into the web part personalization ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server xml.modify delete method I have a problem with removing an attribute from a node.
Example:
DECLARE @processID int
SET @processID = 8
DECLARE @xml XML
SET @xml =
'<Process id="10" name="Test 1">
<Shapes>
<Shape id="1" name="Shape 1" subProcessID="8">
</Shape>
<Shape id="2" name="Shape 2" su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to speak SSL from a Windows MFC client? I've an MFC application that currently uses CAtlHttpClient to query a web server for some information.
I'd like to change this so that the query goes over securely, with server authentication, using SSL.
Googling reveals that Microsoft has changed the way they support this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RSpec mocking an :each block I want to use RSpec mocks to provide canned input to a block.
Ruby:
class Parser
attr_accessor :extracted
def parse(fname)
File.open(fname).each do |line|
extracted = line if line =~ /^RCS file: (.*),v$/
end
end
end
RSpec:
describe Parser
before do
@parser = P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Swap Image from jpg to swf Is there a javascript function to swap a still image(jpg) to a movie(swf)? If there is is there a disjointed swap image path?
A: You could do something like this:
<div id="still_image" style="display:block">
<!-- img code here -->
</div>
<div id="ani_swf" style="display:none">
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Retrieving Dictionary Value Best Practices I just recently noticed Dictionary.TryGetValue(TKey key, out TValue value) and was curious as to which is the better approach to retrieving a value from the Dictionary.
I've traditionally done:
if (myDict.Contains(someKey))
someVal = myDict[someKey];
...
unless I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: Add a user-defined scalar function as a property to a Linq-To-Sql class I have the follow Linq query ... which executes correctly:
from t in Tasks
where LookupTaskStarted(t.TaskId) == true
select new
{
t.TaskId,
t.Number,
Started = LookupTaskStarted(t.TaskId)
}
Is there anyway to create this as a pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I to properly handle spaces in PHP Shell_exec? I'm running on win2003 server, PHP 526, via the cmd-line.
I have a cmdline string:
$cmd = ' "d:\Prog Files\foo.exe" -p "d:\data path\datadir" ';
Trying to do this in php code
$out = `$cmd`; # note use of backticks AKA shell_exec
results in a failure b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Flex component access other component I have 2 components for example (editor.mxml using mx:windows), when I click an edit button, I want to get the current value from the other component's datafield? (datagrid.mxml using mx:window)
I do know how to access the main MXML's datagrid by parentDocument or Application.ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem sub-classing BaseException in Python I wanted to create my own Python exception class, like this:
class MyException(BaseException):
def __init__(self, errno, address):
if errno == 10048:
mess = str(address) + ' is already in use'
else:
mess = 'Unable to open ' + st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can I Reflector the .NET Base Class Libraries (BCL)? BCL
Specifically, am I breaking the EULA by doing this?
A:
Why bother using reflector? Just look at the original source code!
You should mention the caveats of looking at the source code, though. As Frans Bouma writes: Don't look at the sourcecode of .NET lice... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the deal with boost.asio and file i/o? I've noticed that boost.asio has a lot of examples involving sockets, serial ports, and all sorts of non-file examples. Google hasn't really turned up a lot for me that mentions if asio is a good or valid approach for doing asynchronous file i/o.
I've got gobs of data i'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: How do I create a regex to ensure a word is made up only of given single letters and letter groups? I'm trying to create a Regex usuable in C# that will allow me to take a list of single letters and/or letter groups and ensure that a word is only comprised of items from that list. For instance:
*
*'a' would match... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Export to Excel from c# .net Exporting from c#.net
I am getting a problem I have a form that when I export to excel as a result in excel Any ideas why is this happening I am including the ASP code below.
<%@ Page Language="C#" MasterPageFile="~/masterpages/Admin.master" AutoEventWireup="true" CodeFile="members-sear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Configuration binding extension could not be found I have created a simple wcf service which used the WCF Service Library template. Everything works fine when using the default soap bindings, however when i attempt to modify the service to add a REST binding it fails with the following error:
"Configuration binding... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ReadOnly vs Property within Assembly Question/Conundrum How can I make a Property "ReadOnly" outside the Assembly (DLL) for people using the DLL but still be able to populate that property from within the assembly for them to read?
For example, if I have a Transaction object that needs to populate a property in a Do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Texturing Vertex Buffer Objects What I want to do is drawing a (large) terrain with OpenGL. So I have a set of vertices, lets say 256 x 256 which I store in a vertex buffer object in the VRAM. I properly triangulated them, so I've got an index buffer for the faces.
// vertexes
glBindBufferARB(GL_ARRAY_BUFFER_ARB, ve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Gray out dates older than the MinDate in WinForms MonthCalendar control I am using the MonthCalendar controls in a Windows Forms application.
I want to gray out the dates older than the control's MinDate (or give the user some visual clue about which dates are not valid for selection).
The control has no property fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pre-Load Multiple Videos in Flash? In Flex? I'm doing a project where we play multiple videos back to back, and if we load them the normal way by providing a stream url, there is a load delay each time we start the next video.
I've looked through Adobe's docs for both Flash and Flex, and I can't find a way to pre-lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Need help with a complex Join statement in SQL How can you join between a table with a sparse number of dates and another table with an exhaustive number of dates such that the gaps between the sparse dates take the values of the previous sparse date?
Illustrative example:
PRICE table (sparse dates):
date ite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WPF - Maximizing app window does not expand controls vertically - horizontally it does when I press the Maximize button on my WPF app, all the controls therein expand perfectly horizontally, but they do not expand to fill the window vertically. I figure it Maximize handles it horizontally, it should handle it verti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Table problems with WebKit I'm having trouble getting this code to show up correctly in WebKit browsers(chrome/safari). It looks fine in IE6, IE7, and FireFox.
<table width="100%">
<tr>
<td rowspan="2" style="vertical-align:middle;">
<a href="http://http://{$smarty.const.DOMAIN}/company/a_ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Import Existing Stored Procedures In SQL Server I restored my development database from production, and the stored procedures I need in my development environment doesn't exist in my production database. Is there a command Ii can use to import the developmetn stored procedures back into SQL Server. There are about... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Idiomatic asynchronous design Are there any sorts of useful idioms I can make use of when writing an API that is asynchronous? I would like to standardize on something as I seem to be using a few different styles throughout. It seems hard to make asynchronous code simple; I suppose this is because asynchronous opera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Silverlight: Creating a round button template I decided to try making a circular button, so using expression blend, I dropped a button control on my xaml. I then created a template from it by choosing "Edit Control Parts (Template)" -> "Edit a Copy". I am trying to design it so that the left and right sides of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unable to find the socket transport "https" I'm using this to check for the availability of a URL:
$fp = fsockopen($url, 443, $errno, $errstr);
and I get this error back...
Warning: fsockopen() [function.fsockopen]: unable to connect to https://example.com/soapserver.php:443 (Unable to find the socket transport "ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: call code behind functions with html controls I have a simple function that I want to call in the code behind file name Move
and I was trying to see how this can be done and Im not using asp image button because not trying to use asp server side controls since they tend not to work well with ASP.net MVC..the way it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Silverlight: template binding I'm trying to create a perfectly circular button, So I created a template from a standard button control using Expression Blend. A normal button has the BorderThickness property of the Background object (Border Type) bound to the template using template binding. If I wanted the border... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google map blank when used with master page I wrote a google map lookup page. Everthing worked fine until I referenced the page to use a master page. I removed the form tag from the master page as the search button on the map page is a submit button. Everything else on my page appears but the google map div appears ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I select all leaf nodes in a SQL hierarchy under a given node? I have a set of data that models a hierarchy of categories. A root category contains a set of top-level categories. Each top-level category contains a set of sub-categories.
Each sub category has a set of organizations. A given organization can a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I generate a compile time error based on the type of the field being Annotated I have written a java annotation that looks like this:
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD) // can I further limit this to only fields of type DomainObject?
public @interface Owns {
}
After briefly looking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Profiling ASP.NET websites with EQATEC Profiler I'm searching for a free ASP.NET profiler, and I stumbled upon EQATEC Profiler for .NET, but I can't find any instructions on how to profile ASP.NET projects with it. Please post step-by-step instructions or a link with sufficient info.
I'm using Visual Studio 2008 Pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: How to get the selected value from RadioButtonList? I have a RadioButtonList on my page that is populated via Data Binding
<asp:RadioButtonList ID="rb" runat="server">
</asp:RadioButtonList>
<asp:Button Text="Submit" OnClick="submit" runat="server" />
How do I get the value of the radio button that the user selecte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Extract public key from cer file to use in nusoap Can someone tell me how can I extract a public keu in .pem format from a .cer file ?
I'm trying to configure webservice over https with nusoap.
Tks,
ED
A: openssl x509 -inform der -in <certificate> -noout -pubkey
Should print out the public key.
A: Any time I need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Enumerating USB Devices on Windows with Java In a previous SO question, it was mentioned that USB devices can be mounted using the following approach in Windows:
MOUNTVOL C:\USB: \\?\Volume{ebc79032-5270-11d8-a724-806d6172696f}\
My question is what is that String starting with \\?\Volume called, and what is the best... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DCI - Data, Context and Interaction - Successor to MVC? What is the best description of Data, Context and Interaction (DCI) to pitch it to an organization?
It's created by Trygve Reenskaug, the creator of the MVC-pattern.
Is it really the successor to MVC or just another pattern? And what are its pros and cons?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Specify ordinals of C++ exported functions in a DLL I am writing a DLL with mixed C/C++ code. I want to specify the ordinals of the functions I'm exporting. So I created a .DEF file that looks like this
LIBRARY LEONMATH
EXPORTS
sca_alloc @1
vec_alloc @2
mat_alloc @3
sca_free @4
vec_fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IE sends inner HTML when clicking on a button element I have the following html in my webpage (simplified).
<button type="submit" name="action" value="ButtonA">Click Here</button>
In Firefox, it submits "ButtonA" as the value for the "action" form value. However, in IE7, it submits "Click Here". Is there any way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Expose OnSelectedIndexChanged event in CompositeControl If I have a DropDownList control that makes up part of a CompositeControl how can I expose the SelectedIndexChanged event to the consuming aspx page?
Thanks
A: Here's what you do. First declare an event like this:
public event EventHandler SelectedIndexChanged... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Fastest Type Comparison? The following event can possibly get called hundreds of times a frame.
public bool OnCollision(Body body1, Body body2)
{
if(body2.Tag is Dog)
((Dog)body2.Tag).Bark();
}
I understand that using "is" causes a cast to be made and then when i want to do something with it, cast it a secon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can BlackBerry COD or ALX files be decompiled? If I write Java software for a BlackBerry, can it be decompiled using freely available tools similar to .NET Reflector, or is it a more elaborate process?
A: Java code is easy to decompile. Search for obfuscators for Java Me, if you are interested in securing your code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Excluding subdirectories with a pattern in subversion I want to exclude a subdirectories by pattern in subversion because the development tool we are using is generating them. Getting the tool to generate the directories elsewhere is not an option. We don't want to edit the global-ignore property in ~/.subversion/c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: For a .net developer, what's the learning curve to get into mobile development? For a .net developer, what's the learning curve to get into mobile development?
How many different operating systems are there that run .net?
Is windows mobile that same as windows ce?
A: Learning Curve
I hate to say "it depends" but it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: .net Accordion Causing me Problems I had a bunch of controls that I displayed, hid, enabled and disabled based on actions in the web page. Everything worked until i put them into an accordian. Now I can't get the Javascript to be able to update their state. I have a small example
this is the Javascript
<script t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to do development and build in visual basic 6.0 I am looking for best practice in building multiple visual basic projects(all dll's).We have multiple projects, and our final deliverable will be a dll.Now, one project uses 2 other projects, and another refers to another project.Should projects reference the vbp ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Pivotal Suboptimal Decisions in the History of Software Throughout the history of software development, it sometimes happens that some person (usually unknown, probably unwittingly) made what, at the time, seemed a trivial, short-term decision that changed the world of programming. What events of this nature come to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Does anyone know how to get rid of the jsdebug requests from my .net web service We have a ajax listprovider for typeahead text fields in our webform site. Every page now requests a listprovider.asmx/jsdebug with no caching parameters etc.
How do we turn that off?
A: You need to make sure that the debug attribut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Help me analyze this callstack to see whats calling my method Ok, so I have a very simple form with next to no logic in it that is controlled by by a presenter. There is a method on it public void Reset() that resets the form to its initial state. This should be called only by the presenter and in very specific ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom Publish/Subscribe eventing and the build it .Net eventing in Winforms I had to design and implement my own publish subscribe eventing to satisfy the requirements of a dynamic UI Winform design. Is there any .Net library that supports pub/sub out there that I can compare mine and improve?
A: Why not start w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to add a description/comment to a table in Microsoft SQL 2000+ Is it possible to add a "metadata"-like description or comments to a table in Microsoft SQL 2000 and above?
How would you do this through the CREATE TABLE statement?
Is it possible to add a description or comment to fields?
How do you qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Prevent browsers from inserting name and password Duplicate of Disable browser save password functionality
Is there a way to tell the browser not to insert pre-Saved credential data into forms on websites?
For example I might have an application where I have to login first. I saved the credentials for this login.
Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Copying an entire document into an iframe with javascript It sounds wonky, but this is what I'm trying to do with javascript (this is all triggered by an event handler):
*
*Save the contents of a page (preferably the whole document or at least documentElement object) into a variable.
*Create an iframe and insert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why are escape characters (\) appearing in one form field but not in another? I've been building a database input form. There are three fields for notes. They were all build at the same time. They have the same logic & class system - but one of them is returning with escape marks when I update the record, e.g. I ent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Coping with rapidly changing technology (in particular Microsoft) Today as I booted up Visual Studio 2008 to do my work, I saw on the Start page a new blog post about Visual Studio 2010 and .NET 4.0.
I can't help but feel a little overwhelmed. I am just starting to come to grip with all the stuff Microsoft added in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Is there some better way to copy all DataSet Fields and their properties to another DataSet? I'm cloning a TClientDataSet and I want to copy all the fields to the clone (which is a new DataSet), I know I can loop through the Fields and copy the info, or make 2 instances of my class and just clone the cursor, but is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Castle Windsor IOC and Order of Appearance in Config File I'm new to Castle Windsor and am confused about the order in the config file. This is taken from the GettingStarted1 sample. The HttpServiceWatcher class takes an IFailureNotifier implementor in it's constructor. However, no matter how I order the two comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to jump to certain time with the MPMoviePlayer of iPhoneSDK? I am developing a iPhone based course video system, in which I need to associate slides with certain time position of the video. I have found no such function to jump to certain time position when playing a video. (Or like the custom control of that in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Map to Network Drive By SQL SP Is there any way to map to a network drive by using a stored procedure? I have tried:
xp_cmdshell 'net use Q: [shared_network_drive] [pwd] /user:[username]'
but I got an error saying something like
'System error 1312 has occurred.'
'A specified logon session does not exist. It may a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Java swing UI crash debugging I am trying to debug a problem where a user clicks on the button and the UI just dies. I know, good luck.
The logs just end after the user clicks the button so i'm thinking there may be some exception/error that we are not logging. Maybe an OutOfMemoryError.
Any suggestions on how t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I find information about CSS browser incompatibilities? Many times when I read books related to CSS I see things like this "this will not work on some browser", "this hack will work for that browser".
Where I can all information that I need to know the hacks for working for all browsers?
thanks
A: I sugg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Subversion creating revision directories with too-strict permissions This morning, I tried to commit a revision to Subversion and found that all of a sudden I did not have permission to do so.
Can't move '/svn/db/txn-protorevs/21000-ga9.rev' to '/svn/db/revs/21/21001':
Permission Denied
Looking at the revs directory... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I create a Python class in C? I have a legacy C library that creates a tree of objects. I would like to convert the tree into a pre-existing Python class. How do I create the PyObject for that class?
A: Cython is capable of doing this. It's a semi-fork of Pyrex, and it can wrap existing data structures and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Strange Html.ActionLink() Behavior after Upgrade to Beta 1 I upgraded a large ASP.NET MVC application I've been working on to the latest beta today, and after some initial problems, I've got it mostly working again. The big problem is that I have things like this:
<%= Html.ActionLink("LOGIN", "Index", "Authorizatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Abstract class memory management in Cocoa When writing an abstract class, or a class that doesn't get instantiated directly... do you tend to write a dealloc method in the abstract class and release where appropriate, and then allow for children to call [super dealloc] and then worry about only instance variables th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get the Integer value of an enumeration which is a generic Here is the basic situation.
Public Class MyEnumClass(of T)
Public MyValue as T
End Class
This is vast oversimplification of the actual class, but basically I know that T is an enumeration (if it is not then there will be many other problems, and is a lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How do you change an IP address in C++? I need to do a number of network-related things in C++ that I would normally do with ifconfig in Linux, but I'd like to do it without parsing the output of a group of system calls. Which C or C++ libraries can I use to tell if a network adapter is up or down, read or change a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting python to work, Internal Server Error I'm trying to get Python scripts, called from a web browser, to work. I keep getting the error:
500 Internal Server Error
When I check my error logs I see the message
Premature end of script headers
The only documentation of this error online says that it can be the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Convert decimal to hexadecimal in UNIX shell script In a UNIX shell script, what can I use to convert decimal numbers into hexadecimal? I thought od would do the trick, but it's not realizing I'm feeding it ASCII representations of numbers.
printf? Gross! Using it for now, but what else is available?
A: Hexideci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "124"
} |
Q: alternative way to DISTINCT i have sql statement like this
SELECT DISTINCT results_sp_08.material_number FROM results_sp_08
INNER JOIN courses ON results_sp_08.material_number = courses.material_number
INNER JOIN users ON results_sp_08.id = users.id
AND results_sp_08.doctor = 'xx260'
i need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: DELPHI IDE - Stopping F12 from bring up the ‘CPU’ Window I am busy developing a Delphi App that uses F12
When I am running the software under the Delphi IDE and press F12 the program stops and the ‘CPU’ window opens up
What can I do to stop the Delphi IDE from doing this when F12 is pressed ?
A: Change the value ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there a better HTML escaping and unescaping tool than CGI for Ruby? CGI.escapeHTML is pretty bad, but CGI.unescapeHTML is completely borked. For example:
require 'cgi'
CGI.unescapeHTML('…')
# => "…" # correct - an ellipsis
CGI.unescapeHTML('…')
# => "…" # shou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How do I escape content that might include a quotation mark? I'm wanting to capture my search terms and pass them to a JavaScript variable, but I don't know how to handle quotes that might come through.
Here's what I have currently:
var searchTerms = "<!--#echo var="terms"-->";
var pattern = / /g;
newSearchTerms = s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UTF-8 file appending in vbscript/classicasp - can it be done? My current knowledge:
If you are trying to write text files in vbscript / asp land you have two options.
*
*the Scripting.FileSystemObject
*the ADODB.Stream object
Scripting.FileSystemObject does not support utf8. It will write in Ascii, or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: User stories vs use cases Are use cases just multiple user stories??
What are the benefits of using user stories over use cases.. and vice-versa... When to use one over other...
Does all agile methodologies uses user stories??
A: When it comes down to it "agile" is just a label, and people disagree over exactly wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Update syntax for Access I need to update a field (which is currently empty) based on a match with another table. This should be simple, but my syntax is wrong.
In SQLServer 2005, the syntax would be
UPDATE Facilities-NOID
SET Facilities-NOID.ID = Facilities-ID.ID
FROM Facilities-NOID, Facilities-ID
WHERE [Facilit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I parse people's full names into user names in Perl? I need to convert a name in the format Parisi, Kenneth into the format kparisi.
Does anyone know how to do this in Perl?
Here is some sample data that is abnormal:
Zelleb, Charles F.,,IV
Eilt, John,, IV
Wods, Charles R.,,III
Welkt, Craig P.,,Jr.
These spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C++ namespaces: cross-usage Consider the following example. It consists of two header files, declaring two different namespaces:
// a1.h
#pragma once
#include "a2.h"
namespace a1
{
const int x = 10;
typedef a2::C B;
}
and the second one is
// a2.h
#pragma once
#include "a1.h"
namespace a2 {
class C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Jquery - cannot select the parent div I hope this isn't a waste of time, however I have really been trying to figure this on out. Is it my syntax. I simply want to remove the parent div ".number-row" once the link with a class of ".remove-link" is clicked.
Thanks in advance
<script>
$(document).ready(function(){
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Intermittent SQL Server ODBC Timeout expired We have a bunch of VB6 applications that access two different database servers (both 32-bit windows 2003, one SQL Server 2000, one SQL Server 2005). About every ten minutes or so, we are getting a few errors:
[Microsoft][ODBC SQL Server Driver]Timeout expired
[Microsoft]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.