text stringlengths 8 267k | meta dict |
|---|---|
Q: Is this dynamic memory allocation? Simple question: do I have to delete or delete [] c? Does the language matter?
char c[] = "hello"
A: you dynamically allocate memory when you put something on the heap. here, you are allocating the variable on the stack. If you were using the new operator or the malloc call, you'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you use Interfaces with the Factory Pattern in Domain-Driven Design? Does it make sense to use interfaces for your domain object factories by default, or should interfaces be reserved for the factory classes only when you need them?
public IUserFactory
{
User CreateNewUser();
}
public UserFactory : IUser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best way to put 20 pieces on a chessboard in random places? An idea I had to solve this, is to make up an buffer of size 8x8, fill it up with pointers to my checkers (all 20 of them), and the rest leave 0 (null), then run a shuffling algorithm on the buffer, and thats it (just read it as a 8x8 array)
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Download link for SQL Server Reports add-in for Visual Studio 2008 Can someone provide the download link for SQL Server Reports add-in for Visual Studio 2008 (not Visual Web Developer)?
A: You get the Reporting Services development tools by running the install for SQL Server. You can download a 180 day trial here: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to diff Property Values of two objects using GetType GetValue? I have the following classes:
public class Person
{
public String FirstName { set; get; }
public String LastName { set; get; }
public Role Role { set; get; }
}
public class Role
{
public String Description { set; get; }
public Do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rails form validation conditional bypass I have a rails model that validates uniqueness of 2 form values. If these 2 values aren't unique the validation errors are shows and the "submit" button is changed to "resubmit". I want to allow a user to click the "resubmit" button and bypass the model validation. I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Deploying Content file from dependent assemblies with ClickOnce I have a simple WinForms app that I am deploying internally using ClickOnce. The main application has a dependent assembly, that assembly has some xml template files marked as "Content" and "Copy Always" in the build properties, however they do not show... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Flash ActiveX: How to Load Movie from memory or resource or stream? I'm embedding a Flash ActiveX control in my C++ app (Flash.ocx, Flash10a.ocx, etc depending on your Flash version).
I can load an SWF file by calling LoadMovie(0, filename), but the file needs to physically reside in the disk. How to load the SWF f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I have multiple background images using CSS? Is it possible to have two background images? For instance, I'd like to have one image repeat across the top (repeat-x), and another repeat across the entire page (repeat), where the one across the entire page is behind the one which repeats across the top.
I've foun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "321"
} |
Q: Does overriding OnNcPaint() affect the painting of the client area of a window? I want to change the appearance of a window's caption bar, so I decided to override the OnNcPaint() method of CMainFrame. But when I did this, I found a problem. If there is another window covering my window, and I drag the window quickl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get value from an OracleParameter object As the code shown below, I want to get value from the OracleParameter object. Its datatype is datetime.
...
Dim cmd As New OracleCommand("stored_proc_name", cnObject)
cmd.Parameters.Add("tran_date_out", OracleDbType.Date, ParameterDirection.Output)
...
cmd.ExecuteNo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Since I can't return a local variable, what's the best way to return a string from a C or C++ function? As a follow-up to this question:
From what I've seen, this should work as expected:
void greet(){
char c[] = "Hello";
greetWith(c);
return;
}
but this will cause undefined behavior:
char *greet(){
char c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Django form - in-place edit of data from reverse foreign key join I have a Person table and Phone table. The Phone table has a foreign key into the Person table, which is an auto-increment ID. Each person can have an arbitrary number of phone numbers. Is there a way for me to create a Django form to enter phone n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Best way in MySQL or Rails to get AVG per day within a specific date range I'm trying to make a graph in Rails, for example the avg sales amount per day for each day in a given date range
Say I have a products_sold model which has a "sales_price" float attribute. But if a specific day has no sales (e.g none in the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you come up with a good name for a software company? I'm starting up a web design shop and hoping to also get into custom software development.
So the problem I'm having now is coming up with a name for the company.
I want something cool and funky, but I'm not sure where to go for ideas.
Someone suggested tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Difference between (function(){})(); and function(){}();
Possible Duplicate:
Are “(function ( ) { } ) ( )” and “(function ( ) { } ( ) )” functionally equal in JavaScript?
This is something I haven't quite figured out yet, but I have been using function(){}() just because my VIM syntax highlight screws up if I add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Is this design a good idea - Interfaces and Abstract class I would like to be able to do somthing like the following:
//non-generic
var MyTable = new Table();
string name = MyTable.Name;
IEnumerable<String> rows = MyTable.Rows;
//generic
var MyTableGeneric = new Table<MyType>();
string name = MyTableGeneric.Name;
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What size should I allow for strerror_r? The OpenGroup POSIX.1-2001 defines strerror_r, as does The Linux Standard Base Core Specification 3.1. But I can find no reference to the maximum size that could be reasonably expected for an error message. I expected some define somewhere that I could put in my code but the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: How to speed up the eclipse project 'refresh' I have a fairly large PHP codebase (10k files) that I work with using Eclipse 3.4/PDT 2 on a windows machine, while the files are hosted on a Debian fileserver. I connect via a mapped drive on windows.
Despite having a 1gbit ethernet connection, doing an eclipse project ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Best way to parse JSON data into a .NET object What's the best way to parse JSON data into a .NET object? I am trying to assist a coder friend of mine and he is trying to dump some data from a JSON string into a database using ASP.net. Are there any prebuilt scripts that would make this happen?
Thanks in advance t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How do you combine an inner and outer join in mysql I can do it in sybase and I can do it in oracle, but I'm not seeing how to do it in mysql.
I've got this:
(please restrain yourself from re-formatting my sql, last time somebody did that they changed it so it wasn't the same and made the question meaningless)
selec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Use of CoGetClassObject() in C - access COM Object interface Instruction on accessing a interface to an application, in plain C/C++ without:
*
*MFC
*ATL
*WTL
Basically, I would like to make use of a COM object.
Working sample source code or guidance - to using (functionality) a COM object, not creating a COM ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How Ethernet receives the bits and forms the Data Link Layer Frame I am curious to know how the incoming bits at the physical layer are properly framed and sent to the data link layer. How the OS deal with this process.
It would be grateful if you explained it in detail or give me some links/pdf.
I am interested to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I symlink multiple directories into one? I have a feeling that I already know the answer to this one, but I thought I'd check.
I have a number of different folders:
images_a/
images_b/
images_c/
Can I create some sort of symlink such that this new directory has the contents of all those directories? That is thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Why can't DynaLoader.pm load SSleay.dll for Net::SSLeay and Crypt::SSLeay? I have Perl v5.10. I am trying to install Net::SSLeay 1.30 and Crypt::SSLeay 0.57.
I have already installed OpenSSL 0.9.8e.
For Net::SSLeay 1.30 I followed these steps:
perl Makefile.PL -windows C:\openssl
nmake
nmake test -- test fails
nma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What can C++ do that is too hard or messy in any other language? I still feel C++ offers some things that can't be beaten. It's not my intention to start a flame war here, please, if you have strong opinions about not liking C++ don't vent them here. I'm interested in hearing from C++ gurus about why they stick wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How do you block selected applications from accessing the internet (C++, Win32) I want to have an application or service that is running that, on some schedule, can disable access to the internet for all applications except for specific ones.
I'm trying to create a filter that can be turned on or off under programma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET MVC: Link to CSS stylesheet dynamically in master page I want allow the user to customize their web pages on my ASP.NET MVC website, so they can use their own style sheet. In MVC, the stylesheet link is placed in the section of the master page. How can I dynamically link to CSS in master page based on the u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Strange Date Problem with WebService ASP.Net SQL My Server is located in US and I am running a query against it. The Data contained in the table both at Remote Server(U.S) and Local are same.
The Problem is when I am retrieving the DataSet using WebService from Remote Server. The Dates Column is showing The Previous... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Vehicle tracking system/Jan08 we are developing cost effective vehicle tracking system,
for my knowledge Using GPS to track vehicle costs more.
So we are looking to develop using GPRS system which costs less.
my doubt is can track the vehicle using only GPRS (not using GPS at all)
is this possible .please correct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Best way to instantly mirror/sync files from Windows to Linux server I have a directory on a Windows machine with a large number of files and folders that I need to watch and have the files mirrored/synced instantly (or as near to as possible), to a Linux machine over the local network.
I've investigated:
- Rsync, n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Detecting KPI cell from Cellset when querying SQL 2005 Analysis Services Given an MDX query that may return KPI values, is there a way to query the cells in the cellset object to determine whether they are actually KPI's? This way I can display trend/status images in the results instead of 0. -1 etc.
A: What would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I use Perl's Win32::IntAuth to connect via single sign-on? I have Perl 5.10. How can I connect to the server using the single sign-on method? I have to send a service ticket to the server and save the credentials returned by the server.
Is Win32::IntAuth is useful for this? How can I use the Win32::IntAuth mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I write a method to open, start playing, then return the duration of an audio file using a MediaPlayer in WPF? It is obvious what I am trying to do below, but I get the following exception:
Unable to return a TimeSpan property value for a Duration value of 'Automatic'.
I was discouraged to read that
Natura... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get the file name from a full path using JavaScript? Is there a way that I can get the last value (based on the '\' symbol) from a full path?
Example:
C:\Documents and Settings\img\recycled log.jpg
With this case, I just want to get recycled log.jpg from the full path in JavaScript.
A: What platform does the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "414"
} |
Q: Using global variables in a function How do I create or use a global variable inside a function?
How do I use a global variable that was defined in one function inside other functions?
Failing to use the global keyword where appropriate often causes UnboundLocalError. The precise rules for this are explained at Unb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3834"
} |
Q: CC.Net + VS 2008 I am new to CC.Net. I want to integrate my VS 2008 project with CC.Net. I am using VSS.
Is MSBuild or NAnt necessary to integration?
Can anybody tell me the simple steps to integrate CC.Net with VSS to build my visual studio 2008 project.
Thanks in advance.
A: Neither MSBuild nor Nant is necessary... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows API to determine Service Pack version We're working on a device driver for Vista.
There's a known bug in SPO (that was fixed in SP1). We have a workaround that only works in SP0 (and destroys the behavior in SP1).
Is there a Windows API or another way to tell what Service Pack version is installed? (Programm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best menu for an ASP.Net application? What do you find to provide the best menu for an ASP.Net 2.0 - 3.5 web application? Suggestions do not have to particularly be ASP.Net controls, but could be other menu's that work well within an ASP.Net web application.
I would like for the suggestions to be options... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using DOS Prompt and via' FTP copying files on to the server I would like when we Copy files on to the server via FTP the size of the file changes. What is the reason behind this. Does the change in the file size can make the files corrupt and the FTP process Fails ?
A: Most likely, you are copying between Windows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: long double returns and ctypes i have a c function which returns a long double. i'd like to call this function from python using ctypes, and it mostly works. setting so.func.restype = c_longdouble does the trick -- except that python's float type is a c_double so if the returned value is larger than a double, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Source Control Explorer Shows Pending Changes, But In Pending Changes Window does not show In TFS Source Control Explorer it shows pending changes (edit,[more]) with my name, but the Pending Changes window does not show any pending changes.
What I thought is, months ago my Visual Studio crashed, and at that time som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How To Change Schema of DataSet at Runtime C# ASP.Net I would like to know how to change the schema of DataSet at Runtime
A: Is it a typed or untyped DataSet? For typed, this probably isn't a good idea to start with. But for untyped, just manipulate the Columns etc on tables, or add/remove tables/associations. Was ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to save inline formset models in Django? Formsets have a .save() method, and the documentation says to save in views like this:
if request.method == "POST":
formset = BookInlineFormSet(request.POST, request.FILES, instance=author)
if formset.is_valid():
formset.save()
# Do something.
else... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's a good "mobile" .NET database that supports LINQ? I'm in the process of refactoring an application and I've decided to use a mobile/embedded database.
I've been reading about SQL Server Compact Edition, but I was wondering if any of you knew of any other databases that could be used and don't have huge downlo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: AccessViolationException on OdbcDataReader.Dispose() I am getting this exception when disposing an OdbcDataReader just after retrieving data from the database. The reader is actually disposed while leaving a Using block. This should not be causing any errors as far as I know. Any ideas?
System.AccessViolationExcepti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a reusable cms module (C#) Are there any resources with information creating a self contained, reusable module?
I need to create modules that I can drop into projects quickly and easily. An example would be a news module that would contain an admin area, news listing page, It supporting CSS & JavaScript, e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CodeBetter.com like blogs for Java I'm moving from .Net to java. So i wanted to know any good community blog site like CodeBetter.com, of java developers.
EDIT: i'm looking for something more than just coding examples, like CodeBetter.com or Artima.com, which influence your thinking.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/423461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: what is ASPXAUTH cookie? While working with ASP.Net Forms Authentication I came across the .ASPXAUTH cookie. I have a couple questions:
*
*What is the purpose of this cookie?
*What is the location of this cookie?
A: The ASPXAUTH cookie is used to determine if a user is authenticated.
As far as the location o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: document.getElementById fails in a function I have encountered odd behavior when using document.getElementById tonight. Duplicated in Firefox 3 and Safari.
Basically, it finds the div with id "divid" in Example1. However, in Example2 it always returns null. What's going on here?
<!DOCTYPE html PUBLIC "-//W3C//DTD XH... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Python unittest with expensive setup My test file is basically:
class Test(unittest.TestCase):
def testOk():
pass
if __name__ == "__main__":
expensiveSetup()
try:
unittest.main()
finally:
cleanUp()
However, I do wish to run my test through Netbeans testing tools, and to do t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Location API not working for custom/third-party applications I'm trying to write a simple GPS based application for my BB 8800 (with Airtel, India).
But for some reason my code getLocation(timeout) always returns with a non-valid location (only after timing out). I tried different combinations of criteria parameter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Object Relational Mapping Issues: Suggestions needed I've been trying to come up with a good design pattern for mapping data contained in relational databases to the business objects I've created but I keep hitting a wall.
Consider the following tables:
TYPE: typeid, description
USER: userid, username, usertypeid->T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where is XMLHttpRequest.responseStream defined? Take a look at the graphics part of the GoogleAPI reference. It says that loadImage takes either a string, or the responseStream property of an XMLHttp. By XMLHttp, I assume it means XMLHttpRequest.
My problem is that I can't find documentation for this field (the res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Powerbuilder - SQLNRows is 0 after Datawindow update The first time I call Update on my DataWindow it returns 1 (success) and SQLCA.SQLNRows is 1. When I do a second update on the same screen without closing it in between, Update returns 1 and SQLCA.SQLNRows is 0. Any suggestions why this is happening?
A: Your ques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .Net 2.0 application from network share without FullTrust I am trying to run a .Net 2.0 application from a network share without using the FullTrust permission set. I want to create a new permission set that has just the permissions my assemblies require, and then assign that to the exe on the shared path. Is it pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Glassfish failover without load balancer I have a Glassfish v2u2 cluster with two instances and I want to to fail-over between them. Every document that I read on this subject says that I should use a load balancer in front of Glassfish, like Apache httpd. In this scenario failover works, but I again have a single p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to control focus in JTable What I want to do is when user finish editing of data in table cell to move focus onto another cell depending of what user entered, and to turn that cell into editing mode so user can start typing immediately with no additional action. This way user can focus on his work and software w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java and CANopen Background
I am required to create a Java program on a laptop to receive/send CANopen messages.
RJ45 is chosen to be the network's physical medium. I am new to CANopen and Java communications programming.
Pardon me if I appear to be uninitiated. The truth is, I have been reading up a lot, but I stil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What is meant by imperative and interrogative code My Manager asked me to code in ASP.net. What is meant my imperative and interrogative code.
How it related to programmers?
A: Imperative code does not return a value. It just does something. (A sub in vb.net or a void return type in c#).
Interrogative code does ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to remove the border of the client area of a window? I don't want the border of a window's client area to be seen. Is there any way to remove them? The window is a SDI(Single Document) window.
I also noticed that the border appeares only on the top and left side of the client area (no on the right and bottom). I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone SDK:Saving a streamed audio file to Documents folder I want to save an audio file to the Documents folder of my application while one of the classes in my app is streaming it. How can I do this?
Is it possible to save the streamed audio directly to an mp3? (if the audio file being streamed is an mp3 or I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: User Login technique C# Win App HI,
I am doing ERP solution in C#(2.0) windows application and SQL2005 Database.The network application communicate through Database.I used normal technique for user login and logout, keeping a status bit.My problem is that when my application interrupted with any other reason us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing multi-dimensional arrays in C I am currently trying to learn C and I have come to a problem that I've been unable to solve.
Consider:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ELEMENTS 5
void make(char **array, int *array_size) {
int i;
char *t = "Hello, World!";
array... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing parameters to modelbinder on action parameter I wish to use a modelbinder I've made directly on an action method parameter. Such as:
public ActionResult MyAction([ModelBinder(typeof(MyBinder))] string param1)
However, I need to pass a string into the binder itself, so I was wondering if you could do somethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get started with Maemo software development A few months ego I purchased Nokia N800 device and since then I'm itching to write some code for it. I know that some of the application I'm running are written in Python and that there is a Mono port for the Maemo platform as well.
Basically what I'm asking is:
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to covert c# code into vb.net (Linq)? var result = from с in dal.context.Funds
select new
{
Name = c.CODE
Price = c.Price
};
A: I'm not a big VB user, but something like:
Dim result = From c In dal.context.Funds _
Select c.C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using a #! comment in ruby running in Ubuntu I am new to programming and am trying to follow an example which uses #! comment in ruby.
I am consistently get the message:
bash: matz.rb: command not found
I am using this comment:
#! /usr/bin/env ruby
I have tried it with and without the space after ! as well as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Generic method in a non-generic class? I'm sure I've done this before, but can't find any example of it! Grrr...
For example, I want to convert an IList<T> into a BindingList<T>:
public class ListHelper
{
public static BindingList<T> ToBindingList(IList<T> data)
{
BindingList<T> output = new BindingL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: T-SQL: checking for email format I have this scenario where I need data integrity in the physical database. For example, I have a variable of @email_address VARCHAR(200) and I want to check if the value of @email_address is of email format. Anyone has any idea how to check format in T-SQL?
Many thanks!
A: AFAIK th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Creating custom contextmenu I have a v simple dialog box that I would like to display as a context menu.
I can catch the right click and show it as a modal dialog with no borders, if possible I would like it to look properly like the windows context menu (bar on lhs, blue border) - is there a way of doing this autom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What causes the MS Windows 'System' Process to go nuts when compiling? A couple of times recently I have noticed that 'something' is causing the Windows System Process to sit at 50+% and it will not quit until the PC is rebooted. Happening on Win2k and Win XP so far.
This is particularly troublesome because it curr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get the filepath when dragging a file from finder to a webview? I am developing a flvplayer with cocoa. I want to drag a flv file from the finder and drop it to the webview window (I use it to view the flv). But I didn't have the path of this file from finder. This is my code:
_ (void)showflv(nsstring*)aa
{ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How does merging a branch actually work (under the hood)? this may be a naive question, but, as asked in the object, what is the actual way used by versioning softwares to merge a branch back into the main trunk without generating broken code?
Here's a quick example: I make a branch out of the main trunk for the pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Get MIME type from filename in C I want to get the MIME type from a filename using C.
Is there a way to do this without using a textfile containing MIME types and file extensions (i.e. Apache's file mime.types)?
Maybe there is a function to get the MIME type using the filename? I rather not use the file extension if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Running junit tests in parallel in a Maven build? I'm using JUnit 4.4 and Maven and I have a large number of long-running integration tests.
When it comes to parallelizing test suites there are a few solutions that allow me to run each test method in a single test-class in parallel. But all of these require that I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "120"
} |
Q: Accessing TextBox Column in RadGrid By Telerik Do you know how to access textboxes added to a radgrid that are not bound but are used to trap any row related input a user typed in to the textbox for that column.
I need to access this data server side when a postback occurs.
Your thoughts are greatly appreciated
Than... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Texture Image processing on the GPU? I'm rendering a certain scene into a texture and then I need to process that image in some simple way. How I'm doing this now is to read the texture using glReadPixels() and then process it on the CPU. This is however too slow so I was thinking about moving the processing to the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Syncing web project dependencies maven -> eclipse I've got m2eclipse plugin installed and there's no problem syncing compile time dependencies that appear in pom.xml.
Now, I add JPA + Hibernate(or whatever) dependency that maven catches up just fine when doing mvn jetty:run.
The problem is, Eclipse doesn't. So I don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: column expands with "textbox width given in percentage" within table I am using the following code
--- EDIT @annakata : Adding the complete code
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<table id="additionalContactsTable" name="additionalContactsTable"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Would it be better to use collect in this situation? I'm just starting out using Ruby and I've written a bit of code to do basic parsing of a CSV file (Line is a basic class, omitted for brevity):
class File
def each_csv
each do |line|
yield line.split(",")
end
end
end
lines = Array.new
File.op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamically Create Subclass I am using Kohana and just found this piece of code in their autoloading method
// Class extension to be evaluated
$extension = 'class '.$class.' extends '.$class.'_Core { }';
// Start class analysis
$core = new ReflectionClass($class.'_Core');
if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Grouping by a report item in SSRS 2005 - textbox - any workarounds? I want to group by a report item, but that's not allowed.
So I tried creating a parameter...not allowed as well.
Tried referencing from footer...failed again.
This is somewhat complicated.
Let me explain:
I have textbox22, it's value is:
=Code.Calc_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which plugin do you use for SVN in Visual Studio? I'm considering using SVN for my .Net projects, and I'd like to know what plugins are available for integrating the source control capabilities directly into the Visual Studio IDE.
I already know about the following Visual Studio extensions:
*
*VisualSVN, which se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: How can I properly display German characters in HTML? My pages contain German characters and I have typed the text in between the
HTML tag, but the browser views some characters differently. Do I need to include anything in HTML to properly display German characters?
<label> ausgefüllt </label>
A: Have you tried ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: undo changes on table in database my application has the following procedure.
a database of products (20,000 rows) exists.
our client has 'import' feature where he imports an excel file.
this is implemented by deleting all products table rows, then doing the import - which is a long thing since we programmatically p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which one to use, int or Integer I need to create a data transfer object, which I will use for storing the records retrieved from database. In this data transfer object, I need to declare a numeric field. For that which one is better - int or Integer
If I am defining the field as Integer, will there be any performan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: How to return more than one value from a function in Python? How to return more than one variable from a function in Python?
A: Return as a tuple, e.g.
def foo (a):
x=a
y=a*2
return (x,y)
A: You separate the values you want to return by commas:
def get_name():
# you code
return first_name, last_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Get a list of iTunes podcasts available? How can I get the RSS feed URL for the iTunes podcasts available? I want a feed which would list down all the podcasts present on iTunes. Is that possible?
Thanks.
A: There are a few options available these days:
*
*iTunes RSS Feed Generator A list of the top 100 podcasts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Extracting Icon/Thumbnail for a file I want to extract the Icon/Thumbnail (different size) of a file from
windows shell on my project. I am able to extract the thumbnail with
out any issue, but the problem came when working with files that don't
have thumbnail view. The issue is I am not able to get the bitmap as
th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to mix single and double columns in one document in latex? I have a document and want to create it as a twocolumn-document. That works fine with the twocolumn-option at the documentclass-command. But I have some tables and images, that are too big and should be included using both columns. These tables and image... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Winform - determine if mouse has left user control I am struggling with something that I think should be easily (ish). I have a windows form and a flowgridlayout panel at the bottom of the form. Inside this form I dynamically populate it with X number of User Controls. The controls are all the same type.
The goal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to pass a COM method as a function argument? And Microsoft Compiler error C3867 I would like to pass a COM method as a function argument but I get this error (Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86):
error C3867: 'IDispatch::GetTypeInfoCount': function call missing argume... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best way of ensuring valid object lifespan when using Boost.Asio? Been playing a lot with Boost.Asio of late. I like the library a lot since it offers a fantastic way to squeeze performance out of today's multicore systems.
A question I have asked myself a few times, and I thought worth throwing out ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: development with Blackberry JDE4.7? RIM has released a new Blackberry JDE4.7 after releasing the Blackberry Storm. Does the Blackberry storm support programs created using the previous versions? I've heard there have been a lot of changes in this version compared to the old ones.
And there have been complaints about... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Mapping logical processors to physical processors On a dual quad-core GetProcessAffinityMask (or the dialog from "Set affinity" in taskman.exe) will report eight logical processors. How do I find out which logical processor is on which physical processor? Especially: which logical processors are on the same physical... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WPF - Using databinding to bind listbox of items and textboxes of detail I am trying set up databinding as described in the title.
The problem I having is binding to a generic list.
Any examples out there.
I can't use BindingListCollectionView on a generic list so have to use
CollectionView.
The issue I am puzzled a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# multiple string match I need C# string search algorithm which can match multiple occurance of pattern. For example, if pattern is 'AA' and string is 'BAAABBB' Regex produce match result Index = 1, but I need result Index = 1,2. Can I force Regex to give such result?
A: To summarize all previous comments:
Dim rx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Updating the progress indicator while downloading firmware to the device I am developing a cocoa application which downloads firmware to the device. The progress of downloading is showed using NSProgressIndicator. I call the -incrementBy: method of NSProgressIndicator after DeviceRequestTO method in a while loop. Bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem disposing of socket / finalising twice? I'm working with some code (not mine I hasten to add, I don't trust this much at all) for a class which opens a socket, makes requests and listens for responses, which is throwing an exception in a way I can't comprehend when tested in xunit. I assume the same exceptio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/423794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.