text stringlengths 8 267k | meta dict |
|---|---|
Q: performance - single join select vs. multiple simple selects What is better as far as performance goes?
A: One thing to consider besides what has been said, is that the selects will return more data through the network than the joins probably will. If the network connection is already a bottleneck, this could make ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Oracle JDBC Euro character We have a problem with the Euro character when saving and retrieving it from a Oracle 10g using the Oracle 10.2.0.3 JDBC driver. The problem only occurs during a JUnit test running under Linux. The Euro characters returned from database after saving are total screwed up. Oracle has been co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Declare an object inside or outside a loop? Is there any performance penalty for the following code snippet?
for (int i=0; i<someValue; i++)
{
Object o = someList.get(i);
o.doSomething;
}
Or does this code actually make more sense?
Object o;
for (int i=0; i<someValue; i++)
{
o = someList.get(i);
o.d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: String concatenation in Ruby I am looking for a more elegant way of concatenating strings in Ruby.
I have the following line:
source = "#{ROOT_DIR}/" << project << "/App.config"
Is there a nicer way of doing this?
And for that matter what is the difference between << and +?
A: Here's another benchmark inspired by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "399"
} |
Q: Named parameters, caching and PDO If i have a parameterized SQL statement like this:
SELECT * FROM table WHERE my_field = :field_value
Does anyone know if PDO will recognize this(see below) as the same SQL statement and use the cache instead of assuming it's a completely different SQL statement:
SELECT * FROM tabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to determine the correct Charset for a given LCID at runtime in VB6? I am displaying Japanese characters in a VB6 application with the system locale set to Japan and the language for non Unicode programs as Japanese. A call to GetACP() correctly returns 932 for Japanese. When I insert the Japa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using constrained generic extension methods in a separate assembly gives a reference error I created a separate assembly to contain common extension methods, the extension methods uses classes from System.Web.dll (and others).
When I then create a new project (Console Application) that references the Utilities.dll a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Problem with cocos2D for iPhone and touch detection I just don't get it.
I use cocos2d for development of a small game on the iPhone/Pod. The framework is just great, but I fail at touch detection. I read that you just need to overwrite the proper functions (e.g. "touchesBegan" ) in the implementation of a class whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: jsonp request not working in firefox I am trying a straightforward remote json call with jquery. I am trying to use the reddit api. http://api.reddit.com. This returns a valid json object.
If I call a local file (which is what is returned from the website saved to my local disk) things work fine.
$(document).ready(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get a c++ constant pointer equivalent in Java? When I pass an immutable type object(String, Integer,.. ) as final to a method I can achieve the characters of a C++ constant pointer. But how can I enforce such behavior in objects which are mutable?
public void someMethod(someType someObject){
/*
* code that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Access Database Synchronizer with network location Using the Access Database Synchronizer has anyone been able to synchronize with an mdb stored in a network location?
It doesn't even work if i map a network drive to my local c: i.e. c:\test.mdb works but z:\test.mdb doesn't.
I simply get a System.Data.SqlServerCe.S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Field value must be unique unless it is NULL I'm using SQL Server 2005.
I have a field that must either contain a unique value or a NULL value. I think I should be enforcing this with either a CHECK CONSTRAINT or a TRIGGER for INSERT, UPDATE.
Is there an advantage to using a constraint here over a trigger (or vice-v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Are all compile-time constants inlined? Let's say I have a class like this:
class ApplicationDefs{
public static final String configOption1 = "some option";
public static final String configOption2 = "some other option";
public static final String configOption3 = "yet another option";
}
Many of the other classes in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How can I animate a static object in a WPF storyboard I have a WPF program to which I need to add a "Demo mode". Since I want my designers to be able to modify the demo mode without me having to recompile the program each time, I tough it would be a great idea to use a storyboard from an external XAML file. The "Dem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to truncate and shrink log files? How to truncate and shrink large log files in SQL Server 2005? How to apply truncation at regular intervals?
Is there any difference between truncation and shrinking?
Thanks in advance
A: Use DBCC SHRINKFILE and schedule it as a job that runs regularly (preferably during off-ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What should the converter parameter be for this binding I am trying to implement a wpf user control that binds a text box to a list of doubles using a converter. How can i set the instance of user control to be the converter parameter?
the code for the control is shown below
Thanks
<UserControl x:Class="BaySizeCon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Where should I instantiate my service class' SqlDatacontext? I have several service classes that have static methods and offer a service to the rest of my program. Most of these services involve accessing an instance of SqlDataContext (linq2sql).
First I tried instantiating this connection as a static private member... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Writing a GIF file in Java So I have this GIF file on my desktop (it's a 52 card deck of poker cards). I have been working on a program that cuts it up into little acm.graphics.GImages of each card. Now, however, I want to write those GImages or pixel arrays to a file so that I can use them later. I thought it would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using GROUP_CONCAT on subquery in MySQL I have a MySQL query in which I want to include a list of ID's from another table. On the website, people are able to add certain items, and people can then add those items to their favourites. I basically want to get the list of ID's of people who have favourited that item (t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: jQuery Return links is not working when Ajax jQuery return links are not working. I have Used jQuery and the basic Ajax feature. My jQuery returns the links from file Links_ajax.php.
I giving the code samples.
GetCustomerData.php has:
<html>
<script type="text/javascript">
<script src="ajax.js" type="text/ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WinApi C++, How to open a window push down a button? I have created a "check Box " window with a button, when the button is clicked, It should open a "Edit" window, How can I do?
thanks
A: It depends completely on the windowing system you are using, or the graphics library. ¿Are you using .NET? ¿MFC?
In any case,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Detect mobile supported languages Is it possible is asp to detect from the MobileCapabilities object if the device support arabic or not
A: Yes, you can check the Accept-Language HTTP header for "ar" for arabic.
For example this real sample:
Accept-Language: en;q=1.0,fr;q=0.5,ar;q=0.5
Says, en (English) is accepte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Intermittent ClassCastException from ElementNSImpl to own type during unmarshalling We are experiencing an exceedingly hard to track down issue where we are seeing ClassCastExceptions sometimes when trying to iterate over a list of unmarshalled objects. The important bit is sometimes, after a reboot the particular c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Javascript: Event does not fire unless element appended to document.body I dynamically create an element (div) in javascript, on which i register an event listener:
var tooltip = document.createElement('div');
tooltip.onclick = function() { alert('hello'); }
Now, if I attach this element to the document body:
docu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access vba: How to turn of systems messages or prompts? I use a form to run a few codes on a database in Access. During update or deletion Access asks whether you want to update or delete.
I would like to know if there is any way of turning off these system messages or let the user choose his preference on whether ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to check if MySQL query is valid without executing it? I'm making a simple tool that will get a string of MySQL commands and run it (on several DB servers sequentially). I trust the users to be sensible, but mistakes happen, and I'm looking for a way to prevent basic typos:
Is there a way to validate, at runtime... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: JAX-WS authentication against a database I'm implementing a JAX-WS webservice that will be consumed by external Java and PHP clients.
The clients have to authenticate with a username and password stored in a database per client.
What authentication mechanism is best to use to make sure that misc clients can use it?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I indicate success and failure with colour? I need to make a Java component that turns the background a certain colour when a process passed, and another colour when the process failed.
My first thought was: green for success, red for failure.
But then I read that 10% of males can't differentiate between thes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to grab parent process standard output? I'm writing an utility (http://reg2run.sf.net) which in case execution without arguments works as windows application (shows OpenFileDialog, etc), otherwise - as console application.
So, in first case I don't want to show a console window, that's why project is Windows App... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Prolog - outputting a list? I have the function
sublist(_,[_],_) :-
!.
sublist(X,[Y|T],Z) :-
R is X - Y,
sublist(X,T,[R|Z]).
an example call is sublist(2,[1,2,3],Z).
At the end of execution it just gives me 'yes', but i'd like to see the contents of Z.
I know it's something simple as i have other instru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using entity framework, should I add a timestamp to all my database tables? I'm planning to use MS entity framework for new web apps (come on EF v2!).
So does it make sense to plan ahead by adding timestamp columns to all entity tables in existing and future databases, to support concurrency checks? Is there any rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I exclude records from an associated model in CakePHP? I'm creating a Q&A application in CakePHP, and I want to exclude my associations in some cases. Imagine the following:
I'm listing all questions on the first page using $this->Question->findAll();. Since I have the following association in my model:
publi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to stop editing with DefaultCellEditor when a separate JBtton is pressed I got a table with a custom TableCellEditor (extending DefaultCellEditor) with a JFormattedTextField as the editor component.
Now I got problem: when I press a separate button while editing. When the button is pressed, the editor remains "o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: c# console, Console.Clear problem I am writing a console program in C#.
Is there a way I can use a Console.Clear() to only clear certain things on the console screen?
Here's my issue:
I have a logo (I put it on screen using Console.WriteLine()) and a 2d array which I want to keep constant and clear everything below ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: algorithm to find maximum occurence of a substring Given a string S, what is the best algorithm to find a substring which repeats maximum number of times.
For example, in "assdssfssd", it is "ss" which repeats maximum number of times.
A: I can see building a tree to solve that particular problem.
There is a notiona... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DBF ODBC Driver in Windows Server 2003 x64 The 64 bits version of Windows Server does not came with the ODBC DBF Drivers by default.
Is there a way to get them?
What alternatives exist?
A: I'm reasonably certain that the FoxPro drivers can read DBF's very well. I used this driver on Vista 64-bit without any proble... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to warn user of CAPS LOCK enabled in Flex/AIR? Similar to the XP login screen, in Flex 3, how can I display a warning to the user in a textbox that the CAPS LOCK key is enabled?
A: flash.ui.Keyboard.capsLock is not bindable so that code won't really work.
I would invoke a function in the "keyDown" event for the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to fill the screen with video preview on Windows Mobile I am creating an application for video capturing on a Windows Mobile device. In the MainFrame, there is a menu and status window (custom window). The video size width:height ratio is 4:3 so in the case, there are some other elements on the screen the video ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Setting a font color in VBA I want to set the font color of a cell to a specific RGB value.
If I use
ActiveCell.Color = RGB(255,255,0)
I do get yellow, but if I use a more exotic RGB value like:
ActiveCell.Color = RGB(178, 150, 109)
I just get a grey color back.
How come can't I just use any RGB value? And do you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Efficient Javascript String Replacement Hey there, I've got a block of HTML that I'm going to be using repeatedly (at various times during a users visit, not at once). I think that the best way to accomplish this is to create an HTML div, hide it, and when needed take its innerHTML and do a replace() on several key... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Using Parallel Extensions In Web Applications I'd like to hear some opinions as to what role, if any, parallel computing approaches, including the potential use of the parallel extensions (June CTP for example), have a in web applications. What scenarios does this approach fit and/or not fit for?
My understanding... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you forward http request to a https url Like the question says, if I have a request for a page on my site like this
http://somename.something.here/Dada.aspx
to something like this
https://somename.something.here/Dada.aspx
A: I prefer to (a) not redirect local connections (to ease development under VS), and (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does anybody have any experience with SSEPlus? SSEPlus is an open source library from AMD for unified handling of SSE processor extensions.
I'm considering to use this library for my next small project and would like to know, if anybody have experience with it? Can I use it on Intel machines? Any performance issues ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Join in linked server or join in host server? Here's the situation: we have an Oracle database we need to connect to to pull some data. Since getting access to said Oracle database is a real pain (mainly a bureaucratic obstacle more than anything else), we're just planning on linking it to our SQL Server and us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Elegantly determine if more than one boolean is "true" I have a set of five boolean values. If more than one of these are true I want to excecute a particular function. What is the most elegant way you can think of that would allow me to check this condition in a single if() statement? Target language is C# but I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: Building Qt Xcode Projects From the Command Line I've been playing around with Qt for a few hours now. I found that qmake produces Xcode project files on Mac OS X instead of good ol' makefiles. I don't want to launch Xcode every time I want to build "Hello, world".
How do I make qmake generate regular makefiles or, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: What anti-patterns exist for JavaScript? I find that what not to do is a harder lesson to learn than what should be done.
From my experience, what separates an expert from an intermediate is the ability to select from among various seemingly equivalent ways of doing the same thing.
So, when it comes to JavaScript w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: When installing my windows service, how can I programatically make it use a specific domain account I have a windows service that runs fine, but I have to have it run under a special user account.
Currently I go into services and change the logon as section, but for deployment this has to be done more professionally... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should the new MFC Feature pack contols appear in VS toolbox I'm trying to use some of the new MFC feature pack controls on an existing MFC app, with VS2008 SP1. None of the new controls appear in the dialog-editor toolbox.
Should I expect them to be there, and if so, do people have any suggestion for how to get th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Recursive sql problem I have a problem that I would like have solved via a SQL query. This is going to
be used as a PoC (proof of concept).
The problem:
Product offerings are made up of one or many product instances, a product
instance can belong to many product offerings.
This can be realised like this in a table:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Not getting all windows messages in MFC ActiveX Composite Control I have a composite control with a declaration like this:
class ATL_NO_VTABLE CFooCtrl :
public CComObjectRootEx<CComSingleThreadModel>,
public IDispatchImpl<CFooCtrl, &IID_IFooCtrl, &LIBID_FooLib>,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best Practice for Spring MVC form-backing object tree initialization If I have a form-backing object that has a complicated object tree -- say a Person that has a Contact Info object that has an Address object that has a bunch of Strings -- it seems that the object needs to be fully populated with component objects ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: WCF and nullable attributes in the generated schemas I am trying to do some contract first development, and have already designed a schema where an element has minoccurs=0 and nullable=false.
However I am not able to make a DataContract or XmlSerializer that generates this xsd.
I have an idea that this is not possib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which is the faster way to interact with SourceSafe? Command line or object model? Our project is held in a SourceSafe database. We have an automated build, which runs every evening on a dedicated build machine. As part of our build process, we get the source and associated data for the installation from SourceSafe.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Jitterbit vs. BizTalk Is there anyone who has used or looked into using Jitterbit as well as BizTalk? If so, what are some pros and cons of each, and which one did you go with as your final solution?
Specifically, I'm looking for SAP integration, but any input would be appreciated.
A: Like Rob I have not heard abou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I display Crystal XI reports inside a Delphi 2007 application? The most recent Crystal XI component for Delphi was released for Delphi 7. That VCL component compiles in D2007, but gives me errors at runtime. What is the best way to display a database-connected Crystal Report in a Delphi 2007 application?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do i translate this webforms paradigm to mvc? Take the following hypothetical situation, how would I implement it in MVC?
All my pages sit in a Master, which has a CurrentUser property on it. This object is determined from some session user id, and then queried from the db on every page load. This object is then... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting progress on POST using HTTPService in Flex/AS3 I'm using HTTPService with a POST operation to submit a Base64 encoded file (taken from bitmap data within the app) but I could really do with getting some idea of the progress of the POST operation (e.g. like the FileReference.upload()).
I don't think this is p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does * HTML Body mean in a css style sheet? In a stylesheet i have:
* HTML BODY
{
padding-right: 0px;
padding-left: 0px;
padding-bottom: 25px;
padding-top: 190px;
}
* HTML #maincontent
{
width: 100%;
height: 100%;
}
i know that a . means c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# Stop a Treeview selecting one or more TreeNodes I have a TreeView control showing multiple TreeNodes in an organised heirarchy. I want to stop the user selecting the highest level Nodes (this was achieved by using the BeforeSelect Event). I also want to stop the TreeView from highlighting the top level nodes if t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HttpModule doesn't seem to work I've created a simple HttpModule to log the uses of my existing webservice. There's a dll containing a single class
public class TrackingModule : System.Web.IHttpModule
{
public TrackingModule(){}
public void Init(System.Web.HttpApplication context)
{
context.Beg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get intellisense in app.config for a custom section? We have a custom section in my app.config file related to our IoC container class. How can I get intellisense when editing the config file for this section, as well as getting rid of the compiler messages informing me of the missing schema.
I found this q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Subversion Ant update task taking forever I've downloaded the svntask for ant from tigris.org, so it is the "official" one.
I have a simple task to update my entire project
<target name="prepare">
<svn username="user" password="pass">
<update>
<fileset dir="."/>
</upda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Options for predictable frame capture in .NET application I am working in C# and have the need to capture individual frames of video files. As quickly as possible (faster than real-time), I wish to seek to a specific frame number and capture every nth frame to a graphic file format such as BMP or JPEG. It is highl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Dictionary (from Python) component for Delphi? Is there similar component for Delphi like dictionary of Python?
I'm now using TStringList to map string/object pairs, but I'd like more general approach and maybe more powerful (TStringList has binary search when it is sorted).
Solutions for pre-D2009 are also welcome.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are some good Haskell Primers/Tutorials for beginners? What are some good links for diving into Haskell and functional programming in general?
A: There's also Yet Another Haskell Tutorial and A Gentle Introduction to Haskell
A: If you are going to look at Real World Haskell then be sure to sign up for the Rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: flvFPW1() - What does it do? I've been tasked with rewriting the Javascript engine currently powering my customer's internal website. While reviewing the code I've come across this function flvFPW1 which I do not recognize, nor can I decipher the code(my Javascript knowledge is modest at best). A Google search gives... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Whats The Most Efficient Way To Instantiate Worker Variables Should I instantiate my worker variables inside or outside my for loop
E.g.
a)
bool b = default(bool);
for (int i = 0; i < MyCollection.Length; i++)
{
b = false;
foreach(object myObject in myObjectCollection)
{
if (object.Property == MyCollecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding appropriate parent with jQuery Given a DOM element how do I find its nearest parent with a given css class?
$(".editButton").click(function() {
(magic container selector goes here).addClass("editing");
});
I don't want to use lots or $(...).parent().parent() since I don't want to be bound to a particular... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to delete a file used by other process Here's the deal.
My WinApp is running, right? in let's say process 'A'.It creates a file and keeps the handle (keeps the file open for writing, this is a must).
Then it starts other msbuild process, let's call it 'B'. This process is started with the System.Diagnostic.Pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linq To SQL OrderBy, issue when using enums I am having some issues with using the OrderBy extension method on a LINQ query when it is operating on an enum type. I have created a regular DataContext using visual studio by simply dragging and dropping everything onto the designer. I have then created seperate entity ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Invisible Buttons I have a server side ImageButton, and a server side Button, and then a simple HTML input-type="button". Neither the ImageButton nor the plain HTML button are visible, nor the alt text of the ImageButton. However, they are rendered out onto the client side HTML when I inspect it.
Anyone have any i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python, Regular Expression Postcode search I am trying to use regular expressions to find a UK postcode within a string.
I have got the regular expression working inside RegexBuddy, see below:
\b[A-Z]{1,2}[0-9][A-Z0-9]? [0-9][ABD-HJLNP-UW-Z]{2}\b
I have a bunch of addresses and want to grab the postcode from them, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Code injection - Solaris & Linux I have an executable module created by third party. I would like to "inject" my code (kind of watchdog running in separate thread) into this process.
So far there are two possible ways - one is to run my code as executable and dynamically load a proess on top of it (seems to be very... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In Java Swing how can you manage a list of panels allowing multiple panels to be selected? I’m working on an in-house app that tracks a bunch of tasks. I wanted to have a simple task monitor that would list the task name and the task’s status. I need this to look just a little nice, I’m no designer so whatever I do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Advice for extracting word text and handling cellbreak characters Looking for advice (perhaps best practice).
We have a MS Word document (Office 2007) that we are extracting text from a cell.
We can use the following:
string text = wordTable.cell(tablerow.index, 1).Range.Text;
The text is extracted; however we seem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can you compare to what extent two lists are in the same order? I have two arrays containing the same elements, but in different orders, and I want to know the extent to which their orders differ.
The method I tried, didn't work. it was as follows:
For each list I built a matrix which recorded for each pair of e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: C++ How can I iterate till the end of a dynamic array? suppose I declare a dynamic array like
int *dynArray = new int [1];
which is initialized with an unknown amount of int values at some point.
How would I iterate till the end of my array of unknown size?
Also, if it read a blank space would its corresponding pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C++ sql pass integer to sql string I have built a database in MS Access.
There I have a table called Customers which also has a cell called Employee type: integer.
I also built a program in C++ which controls all data.
Let's say I have a string like this:
string sqlString = "SELECT * FROM Customers Where Customers.E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debugging GUI Applications in C++ Background: I'm currently debugging an application written over a custom-built GUI framework in C++. I've managed to pin down most bugs, but the bugs I'm having the most trouble with tend to have a common theme.
All of them seem to be to do with the screen refreshing, redrawing or u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Cannot Detach from process using mdbg Following on from this question I now have code that can attach to a process using the Mdbg API.
The problem is that I can't detach from the process if I need to. When I call
mgProcess.Detach().WaitOne(); ( where mgProcess is a MDbgProcess created from an MDbgEngine object ) I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Providing a mechanism for end users to install Silverlight 2.0 without going to the Microsoft site Our web-based application is installed at end-customers. Typically these customers do not have access to the internet. Part of the next version of our application is Silverlight 2.0 based.
When a browser without the Si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to check for a Null value in VB.NET I have this:
If String.IsNullOrEmpty(editTransactionRow.pay_id.ToString()) = False Then
stTransactionPaymentID = editTransactionRow.pay_id 'Check for null value
End If
Now, when editTransactionRow.pay_id is Null Visual Basic throws an exception. Is there something wrong w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Build objects with variable number of members? In my asp.net mvc page, I want to call a RedirectToAction(actionName, controllerName, values).
The values parameter is an object that contains all the nessecary values.
Example
return RedirectToAction(redirectAction, redirectController,
new{ personId = found... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Digitally sign PDF files I have a digital certificate that identifies a user. I need to use it to Digitally sign pdf files.
Does anyone have an example that does not uses a third party component? I need to get this done but it would be nice to fully understand how things are done.
C# Examples please :)
A: Digitally... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: How do you round a Double down to the nearest integer in VB .NET? How do you round a Double down to the nearest integer in VB .NET?
A: Are we talking VB.NET or VB6? In VB.NET use Math.Truncate.
A: This is pretty old, but the accepted answer of using Math.Truncate is technically incorrect: Truncate rounds towards z... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Controlling how custom field types are rendered when exported to spreadsheet I've created a custom field type based on SPFieldLookup. When I use SharePoint's "Export to Spreadsheet" function, however, it's not rendered correctly.
For normal lookup fields, only the Lookup Value is rendered. For my custom field, the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access 2007 Engine: How do I include it in my .msi installer? I have a .NET application which uses an accdb file (MS Access 2007 format) as its database. To install this app on another machine I need to install the Access engine on that machine. Microsoft has this file: AccessDatabaseEngine.exe which includes the en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Win32: IProgressDialog will not disappear until you mouse over it i'm using the Win32 progress dialog. The damnest thing is that when i call:
progressDialog.StopProgressDialog();
it doesn't disappear. It stays on screen until the user moves her mouse over it - then it suddenly disappers.
The call to StopProgressDi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XSD inheritance design I have this in my xsd:
<xsd:simpleType name="line_action">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="add"/>
<xsd:enumeration value="delete"/>
<xsd:enumeration value="remove"/>
<xsd:enumeration value="suspend"/>
<xsd:enumeration va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Lat/Lon + Distance + Heading --> Lat/Lon So: I have the following function, adapted from a formula found online, which takes two lat/lon coordinates and finds the distance between them in miles (along a spherical Earth):
public static double distance (double lat1, double lon1, double lat2, double lon2) {
dou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Zend_Controller Following PEAR Naming Convention I am developing a web-app using zend framework. I like how all the autoloading works however I don't really like the way Zend_Controller names the controllers by default. I am looking for a way to enable zend_controller to understand my controller class named Controll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to limit the amount of text that can be entered into a 'textarea'? What is the best way to limit the amount of text that a user can enter into a 'textarea' field on a web page? The application in question is ASP .NET, but a platform agnostic answer is preferred.
I understand that some amount of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why is my WM_UNICHAR handler never called? I have an ATL control that I want to be Unicode-aware. I added a message handler for WM_UNICHAR:
MESSAGE_HANDLER( WM_UNICHAR, OnUniChar )
But, for some reason, the OnUniChar handler is never called.
According to the documentation, the handler should first be called with "U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I dynamically replace the class loader for an Eclipse plug-in? I am developing an Eclipse plug-in that fits a client-server model. Its a commercial project so we cannot re-distribute the JDBC drivers for the various databases we support with the plug-in.
So I developed a preference page to allow the user loca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Referencing Oracle user defined types over DBLINK? I'm working in two different Oracle schemas on two different instances of Oracle. I've defined several types and type collections to transfer data between these schemas. The problem I'm running into is that even though the type have exactly the same definitions (s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get a list of all users with a specific permission group in Django I want to get a list of all Django auth user with a specific permission group, something like this:
user_dict = {
'queryset': User.objects.filter(permisson='blogger')
}
I cannot find out how to do this. How are the permissions groups save... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: Filtering Subreport data on a Winforms report I am using Winforms Reporting Services (RDLC) to generate a report that has a subreport.
My problem is the subreport isn't being filtered by the parent ID.
A simple example of the data model might be a Department which contains Employees.
In the report I want to show a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does libgd stack up against the competition? I'm curious as to what type of experiences people have had with libgd. I am looking for an alternative to GDI+ (something faster). I have tried ImageMagick, but can't get the performance out of it i need.
I have heard that ligd is fast, but less feature rich, and that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Windows Explorer "Command Prompt Here" I frequently find myself with a folder open in Windows, wishing to have a command prompt open with the same working directory.
I am aware of Power Toys "Command Prompt", but that only works as a context menu item on the folder, and not from inside the folder if you are already ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/378319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "196"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.