text stringlengths 8 267k | meta dict |
|---|---|
Q: Asp.net MVC Module binding with validation for Complex Types I'm building a questionnaire app in asp.net mvc, and I'm having trouble with the module binder for a list of complex types.
First: I can't get Questionnaire.IList<QuestionGroup>.IList<Question> object graph to work with the binder. So in the sample code be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/446989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any Anti Virus product which provides a .Net (or COM) API? We need to send uploaded files from our CMS website to any antivirus product as a POC. Are there any AV products out there that provide a .Net/COM API.
A: Clam AntiVirus has an API available under the GNU GPL which you can probably wrap up with SWI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/446999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In Flex, how do I know when the properties of a dynamic object change? I have a dynamic class that serves as a storage container for configuration settings. The settings are variables of that class and it has methods to read from and write to a configuration file, database etc. Now I want to trigger writing to the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Will Windows 7 support the VB6 runtime? I can't seem to find a straight answer on this. It appears that Visual Studio 6 won't be supported, but I'm only concerned with the runtime. We have some legacy apps that we'd rather not rewrite, but our customers will expect them to run on Windows 7.
If anyone can provide a l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How to make static content on Apache be cached by browser and not checked for freshness with every request? How can I get static content on Apache to be {cached by browser} and not {checked for freshness {with every request}}?
I'm working on a website hosted on Apache webserver. Recently, I was testing something wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Where to get/How to build Windows binary of mod_wsgi with python 3.0 support? I wanted to experiment a little with python 3.0 at home. I got python 3.0 working, I've played around with some scripts, and I thought it would be fun to try to make a small web-project with it.
As I was googling, it turned out, that mod_p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Character set woes I have a small ajax application built with php.
Using phpMyAdmin I have set a mysql database to utf-8, and have imported a textfile containing utf-8 data into it.
This worked fine on a windows machine with easyphp, after adding character-set-server=utf8 and default-character-set=utf8 to the my.cnf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Weird ItemRenderer behavior I have a really odd issue with an ItemRenderer. I have a main.mxml container with a ViewStack. When a user logs in, the initial view contains an AdvancedDataGrid--containing some data and the ItemRenderer below--which simply displays a Delete button. When the user logs in, this AdvancedDa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the WPF XAML Data Binding equivalent of String.Format? Or, to be more clear, how can I format a block of text (in my case, to be included within a tooltip) such that some portions of the text come from bound values.
In plain C# I would use:
_toolTip.Text = string.Format("{1:#0}% up, {2:#0}% down",
Enviro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Opera and Custom cursor in CSS Where I normally am verry proud of Opera for implementing everything CSS really correct it seems that implementing a custom cursor with the following line doesn't seem to work
cursor:url("../pics/merge.gif");
The URL is correct since it works for regular background-image properties.
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Dealing with variable category hierarchies The issue I have is as follows: My company's supplier gives us an Access database (which I import into SQL Server) containing their product information (the alternative is to use XML), and I'm trying to massage this into a more usable format for use in an e-commerce websit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Changing SharePoint Site Collection Title I need to change the title of a site collection in SharePoint (MOSS 2007). I found one post saying it can be done in SharePoint Designer, but I wasn't seeing the specified menus, and haven't been able to find it anywhere else. I'm assuming I can do it programmatically if nec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unix find command, what are the {} and \; for? With this set of commands, what are the {} and \; characters for?
find . -name '*.clj' -exec grep -r resources {} \;
A: In find, the -exec parameter grabs the rest of the parameters up til the ; (semicolon) which has to be escaped, hence the \;. Within this span, {} i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Change command to one that does not fork and use up resources I have the following command which deletes files that are one day old and that are of mp3 file type.
find /home/get/public_html/audio -daystart -maxdepth 1 -mtime +1
-type f -name "*.mp3" |xargs rm -f
The problem with this is when I run it, it sometimes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Rails fixtures, who is Quentin? In acts-as-authenticated, and now restful-authentication, the first user fixture is "Quentin."
Just curious if anyone knows the origin of that name? Quentin Tarantino? Someone's dog or child?
A: Answer from Rick Olson = http://en.wikipedia.org/wiki/Quentin_Quire
| {
"language": "en",
"url": "https://stackoverflow.com/questions/447058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Improve coding with List Intersect using Net 3.5 I've a class that has a list of IDs with a function for adding new IDs from a list of objects.
I've got this resolved, but I'm sure this can be done with much less code.
Public Class Page
Private _IdList As List(Of Integer)
Private _HasNewItems As Boolean = False... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server 2005: Transaction Deadlock I am getting this error very frequently but not consistently on 2 pages in an application which is in a production environment. I just have some screen shots of the error below.
Transaction(Process ID XX) was deadlocked on lock | communication buffer resources with another proce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can I pass a System.Net.MailMessage to a WCF service? I'd like to setup a WCF service to send emails. The System.Net.MailMessage doesn't seem to be serializable, and cannot be passed in a [DataContract]
The error I receive is
Type 'System.Net.Mail.MailAddress'
cannot be serialized. Consider marking
it with the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best way to get a property and value with a particular attribute? Given this definition:
[UniqueId("Ident")]
public class MyClass : MyBase
{
public int Ident{ get; }
}
What is the best way from the "MyBase" class to get the "UniqueId" attribute, find the matching property name and get the underlying... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding ORDER BY clause to MySQL query makes it return in ~30 seconds, up from ~0.5 So I have this query that is relatively fast at ~0.5 seconds but when I add an ORDER BY clause it jumps up to nearly 30 seconds.
Original query: (returns in ~0.5 seconds)
SELECT table1.*,table2.* FROM table1 LEFT OUTER JOIN table2 ON ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python's re module - saving state? One of the biggest annoyances I find in Python is the inability of the re module to save its state without explicitly doing it in a match object. Often, one needs to parse lines and if they comply a certain regex take out values from them by the same regex. I would like to write co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Embed image into a textbox I have a Windows Forms (.Net 2.0) app and I have a request to embed some custom images into some textboxes(like the new version of Tortoise does).
A: I haven't used OwnerDraw on a textbox, but I've used it on other controls such as the listbox and listview and I've seen other people do t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Migration from crystal reports 8 to crystal reports 2008 How to migrate Crystal Reports 8.0 to Crystal Reports 2008?
The crystal reports which had stored procedures of 8.0 are not executing in 2008,
can anyone help?
We are using Seagate Crystal reports 8 and want to migrate all the
programs to Crystal Reports 200... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: java and javascript callbacks compared It seems I don't understand javascript callbacks quite as well as I thought.
In the following example, I would think that each copy of function in setTimeout would refer to its own copy of the variable "index". Therefore, running the example should produce the following alerts:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Temporary redirection of stderr in a bash script I have a simple script which is used to start another program. This other program may sometimes yield a SIGSEGV, which disrupts my output. I have therefore added a couple of lines which is supposed to temporarily redirect the stderr to /dev/null such that the SIGSEGV ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASCX files I have a web application project that contains only .ascx files. I build it to create a dll and then reference the dll from another web app project. Do I need to copy over the .ascx files over the the site as well. If i need to copy them over, where do i need to place them?
EDIT: I was able to fix the ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you handle form customizations for different customers? In our application we sometimes have to make minor GUI modifications for different customers:
*
*One customer has an input field the others don't have.
*Another customer has all default fields but one of the optional input fields is mandatory.
*A th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the difference between encode/decode? I've never been sure that I understand the difference between str/unicode decode and encode.
I know that str().decode() is for when you have a string of bytes that you know has a certain character encoding, given that encoding name it will return a unicode string.
I know... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "185"
} |
Q: Temporary Table Usage in SQL Server This is a bit of an open question but I would really like to hear people opinions.
I rarely make use of explicitly declared temporary tables (either table variables or regular #tmp tables) as I believe not doing so leads to more concise, readable and debuggable T-SQL. I also think... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Django: Increment blog entry view count by one. Is this efficient? I have the following code in my index view.
latest_entry_list = Entry.objects.filter(is_published=True).order_by('-date_published')[:10]
for entry in latest_entry_list:
entry.views = entry.views + 1
entry.save()
If there are ten (the limit) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How do you make an application start when the device starts up in Windows Mobile? As the title says. I'd like for my application to start when the Windows Mobile device is turned on? I'm developing this app using the .NET Compact Framework 3.5 in C#. Thanks!
A: To get your app to start, first we need to define "On"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I have a foreign key referencing a column in a view in SQL Server? In SQL Server 2008 and given
TableA(A_ID, A_Data)
TableB(B_ID, B_Data)
ViewC(A_or_B_ID, A_or_B_Data)
is it possible to define TableZ(A_or_B_ID, Z_Data) such that Z.A_or_B_ID column is constrained to the values found in ViewC? Can this be done w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: Code snippets for Delphi? Is there a good code snippets application for Delphi or general purpose with IDE integration? I would like to store Code, queries, notes, etc..
Thanks
A: GExperts has a Code Librarian feature for code snippets amongst many other nice features and integrates with the IDE. Well worth to chec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Troubleshooting PHP Login connection I have encountered a problem that I have not come accross yet when setting up a log in page using php.
The page has a error message that relates to line 1 ( require_once('../Connections/Login.php)
that states
[function.require-once]: failed to open stream: No such file or direct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Framework + Client Code references We are simultaniously working on a base-framework and on a implementation (little test tool) on top of it.
There are several things I'd like, and I am wondering if they are all possible:
(.NET 3.5, VS2008)
*
*Have a .sln with only the implementation (tool) - project
*Have a .s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: local git check-ins -- hide from main repository? I thought I remembered reading somewhere a way to do this, but I can't find it.
I'm working locally, on a local branch even, and I'm checking in as needed, or daily or whatever. When I get the code to the point where I want to push it to the main repository, is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: best way to show several images on a winform in c# best way to show several images on a winform in c#? Datagrid?
A: Several PictureBoxes :-)
A: Left a treeview with all the images and mainform the image large? It's kinda hard to guess what you want...
A: My company, Atalasoft, has several win forms controls th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find out SSL version (V2 or V3) How can one tell if the SSL communication between a client and a server is SSLv2 or SSLv3?
A: On the SSL protocol level, the second byte of the header contains the major version of the protocol, which is 3 for SSLv3/TLS, presumably 2 for SSLv2. Note that the client sends the highest ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you develop using .NET 3.5 SP1 and run under just .NET 3.5 Can I develop a website which utilizes ADO .NET Entities in the .NET Framework 3.5 SP1 and then deploy it on another machine with just the .NET 3.5 framework?
A: No. Your code will be referencing the Entity Framework code, and calling into it. That will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pacman game class design I have to write a multiplayer pacman game in Java for a university assignment and I'm after some feedback for my design so far.
So I'm trying to go down an MVC style and this is what I've sketched out.
I've never designed anything using MVC, so my knowledge is really only from the pragmatic ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Erlang and run-time record limitations I'm developing an Erlang system and having reoccurring problems with the fact that records are compile-time pre-processor macros (almost), and that they cant be manipulated at runtime...
basically, I'm working with a property pattern, where properties are added at run-time to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: String.Split variation in C# I want to use the Split function on a string but keep the delimiting sequence as the first characters in each element of the string array. I am using this function to split HTML on every instance of a URL so I can run regex patterns on the URLs on a website. Is there any overloads of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Resolving classes without registering them using Castle Windsor Take the following useless program:
class Program
{
static void Main(string[] args)
{
IUnityContainer unityContainer = new UnityContainer();
IWindsorContainer windsorContainer = new WindsorContainer();
Program unityProgr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Financial News API Any free/paid API to get financial news either world-wide / country specific.
A: Take it off Yahoo as an RSS feed:
http://finance.yahoo.com/rss/topstories
A: Reuters News API for non-commercial use.
A: NewsCloud Web Services has an open API -- commercial use is questionable.
A: MyAllies Compa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to define multiple CSS attributes in jQuery? Is there any syntactical way in jQuery to define multiple CSS attributes without stringing everything out to the right like this:
$("#message").css("width", "550px").css("height", "300px").css("font-size", "8pt");
If you have, say, 20 of these your code will become h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "557"
} |
Q: Generic method for reading config sections Am trying to implement a generic way for reading sections from a config file. The config file may contain 'standard' sections or 'custom' sections as below.
<configuration>
<configSections>
<section name="NoteSettings" type="System.Configuration.NameValueSectionHandler... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: sql server bcp xml data I have a table which has a column which is of type xml.
I have to extract data from this table and load the data into another environment.
i am using bcp to extract and laod the target table but there are some special characters that is causing some issues when i bcp them into the target tabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server simple Insert statement times out I have a simple table with 6 columns. Most of the time any insert statements to it works just fine, but once in a while I'm getting a DB Timeout exception:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: C++ IsFloat function Does anybody know of a convenient means of determining if a string value "qualifies" as a floating-point number?
bool IsFloat( string MyString )
{
... etc ...
return ... // true if float; false otherwise
}
A: Inspired by this answer I modified the function to check if a string is a floa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Web pages to print media -- solutions? I've been a big fan of MediaWiki and similar wiki-based text editors. I like the ability to quickly add text, collaborate, and share. However, there's always still the need for nicely formatted print output. Things like headers and footers (that say what I want them to say), pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ASP.NET Web Deployment Projects: getting rid of .compiled files I'm using a Web Deployment Project in Visual Studio 2008 in order to prepare my ASP.NET application (ASP.NET web application, not ASP.NET web site) for being copied to several servers. I have to copy the files on local staging servers, on different serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to open 2 URL from C#? OK, it sounds easy, I know I can use Process.Start("http://mysite");
But I need to open 2 web sites at one go!! something like
Process.Start("http://mysite");
Process.Start("http://othersite");
I can't get this to work, since the process it opens only the second site.
Any help will be appr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can Graphics.DrawImage unintentionally trim an image? I'm using code that takes a bitmap and converts it to 24 BPP so that I can use it in a program that specifically requires that file format. Here is the code:
using (Bitmap tempImage = new Bitmap(pageToScan.FullPath))
{
if (tempImage.PixelFormat != ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to achieve a row highlighting effect without javascript? I want the "tr" that's currently hovered over to change color, and then change back when the mouse is no longer over it. Is this possible using pure CSS, or is javascript the only solution? (I currently have a javascript solution, so I don't nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Matching exact string with JavaScript How can I test if a RegEx matches a string exactly?
var r = /a/;
r.test("a"); // returns true
r.test("ba"); // returns true
testExact(r, "ba"); // should return false
testExact(r, "a"); // should return true
A: Write your regex differently:
var r = /^a$/;
r.test('a'); // true
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: Changing the font of text being typed in a JTextArea I am working on a chat application and I want the user to be able to change their font while typing messages.
I tried using the setFont() method but it changes the font for the entire text within the JTextArea component and when the text is sent to the display ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Look up a value in a table based on two input values I am very familiar with vlookup and hlookup functions in Excel. However, I am looking for a method of doing both. Take this example:
A B C
1 Resources
2 Task Mgr Sr. Mgr
3 ------------------------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I access Mouse movement events in WPF regardless of where the mouse is? I have tried to use the MouseMove event to track the position of the mouse.
protected override void OnMouseMove(MouseEventArgs e)
This works when the mouse is over the given UIElement (in this case, my application's window,) however I wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is Math.DivRem so inefficient? In my computer this code takes 17 seconds (1000 millions times):
static void Main(string[] args) {
var sw = new Stopwatch(); sw.Start();
int r;
for (int i = 1; i <= 100000000; i++) {
for (int j = 1; j <= 10; j++) {
MyDivRem (i,j, out r);
}
}
Cons... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: What is the best way to find if code is running in a workflow? I've got common code that can run in a number of execution enviroments - within IIS, within a WCF service, in a stand-alone application, or in a Windows Workflow instance.
But what is the best way to check whether the code is running inside a Workflow? F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bash: How to feed a command with the multiple results generated by one subcommand I want to process each source code file after it has been preprocessed:
myprocess `gcc -E file1.c`
myprocess `gcc -E file2.c`
...
myprocess `gcc -E fileN.c`
This gets tedious so how do I make this a single command?
That is, so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Tomcat 6 server creation using eclipse IDE on ubuntu I'm having a problem running tomcat 6 with eclipse 3 in ubuntu.
I installed tomcat 6 on my machine and when I tested it using http://localhost:8080, it worked fine.
But whenever i want to create a server in eclipse, i select Tomcat 6 , i get the following message
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: VB6 ListBox Click and DblClick I have a need to run different code when a user clicks or double-clicks an item in a VB6 ListBox control. When I click on the control, the Click event handler executes. However, I am finding that when I double-click on the control, both the Click and DblClick event handlers execute.
An... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In C#, is there a way to open a 2nd form with a tab selected? Does anyone know a way to open a 2nd form in a .NET application with a certain tab selected in a tab control on that form?
This is what my current code looks like which just opens the form:
SettingsForm TheSettingsForm = new SettingsForm(this);
TheSetting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What can I use to connect Java to Video4Linux? I need to talk to Video4Linux (to capture output from a webcam) on a debian system running on an armel system (OpenMoko). JavaMediaFramework won't work in this case as it only have x86 and AMD versions. The linux kernel is 2.6.24 (with the v4l drivers compiled in sepa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Larger File Streams using C# There are some text files(Records) which i need to access using C#.Net. But the matter is those files are larger than 1GB. (minimum size is 1 GB)
what should I need to do?
What are the factors which I need to be concentrate on?
Can some one give me an idea to over come from this situatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to have unit names added to each call to a function in a different unit? One of the problems I often run into, is that I will include 'Windows' in my uses clause, and then I will later add 'JwaWinBase' for some specific calls.
However, many of the functions in the 'Windows' unit are the same as in Jw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to run just one ASP.NET Development Server in Visual Studio 2008? I have several web application projects in one solution.
When I start debugging one of those web applications I noticed that the ASP.NET Development Server starts for all web applications in my solution.
How can I determine to just one ASP.NET Dev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to fix the error DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER? I am getting the following error when my DTS package is scheduled:
Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER
I am not sure how to get my DTS packages to execute. They run fine when I manually execute them
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the right way to display a DBIx::Class ResultSet in my Catalyst project that uses Template Toolkit? Given a DBIx::Class resultset, for example:
my $rs = $c->model("DB::Card")->search({family_name => "Smith"});
the tutorials I've read use the stash to pass an arrayref of rows:
$c->stash->{cards} = [$rs->all];... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Embedding flash Wimpy player so that it works in Firefox Can somebody help me getting Wimpy player to work in Firefox? I followed the guide from Wimpy documentation page and am still getting nowhere.
For tests, I used the same HTML code to embed different swf file and it works perfectly. Could it be the SWF file cor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I use CMFCRebar to produce an acceptable look and feel? I am trying to use some classes from the MFC Feature Pack to improve the look & feel of my MFC application.
In my application, I use one CReBar object to dock three different toolbars. I have updated the class of this object to use CMFCReBar, but it does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I change the input behaviour of a DateTimePicker control? The default input behaviour of the DateTimePicker when entering a date is like this:
YYYY(Right Arrow)MM(Right Arrow)DD
The user want to enter the date like this:
YYYYMMDD
Is there any simple way of modifying the input behaviour of the DateTimePicker so t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Making VS 2008 play nice with eVC 4.0 projects I would like to contribute to an open-source Windows Mobile project, but it's being developed in eVC 4.0, which flat-out does not work on Vista (feel free to correct me!), and I would prefer to avoid having to dual-boot or remote into my only remaining XP box. I have V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is Scope Creep? This is going to be the noobist of all noob questions, but what exactly is scope creep, what does it entail?
A: Wikipedia expresses it more completely than I could.
Scope creep (also called requirement creep, or kitchen sink syndrome) in project management refers to changes, continuous or unco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: VS 2008 Open Web Site takes forever! Anyone else get this or suffer from this? I am using Vista and VS 2008 and when I goto open a Web Site it literally takes 2~3 minutes for the dialog box to show up. Once i actually select a website it's not a problem but getting to that point hangs VS really bad.
A: Make sure ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to know whether we are in a console or a windowed app? Context : programming a c/c++ win32-mfc library
How to know whether we are in a console or a windowed app?
A: I'm not certain about this (without having tried it myself) but you can call the GetStartupInfo function which completes a STARTUPINFO structure.
P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Why can't I bind a formview to this datasource? I've got this code here:
SqlCommand CodeStatus = new SqlCommand(SQL, DB);
DB.Open();
Reader = CodeStatus.ExecuteReader();
FormView1.DataSource = Reader;
FormView1.DataBind();
DB.Close();
It works with a gridview, which then displays the data, but with this for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How much code do you tend to write before you test? I have noted over the years, that I tend to write maybe a screen full of code, then test to make sure it does what it should.
Some of the benefits of this technique are
Syntax errors are a result of the new code,
so you don't have to look far to find the caus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Configure asp.net site with ASP.NET Ajax Control Toolkit I have an application that has been converted from VS2005 2.0 framework to VS2008 3.5 framework. I am attempting to add the ability to use the AjaxControlToolkit DLL [AjaxControlToolkit-Framework3.5SP1-DllOnly.zip] download only within my project. I have follo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: writing registry in wix - problem illustrated with sample wxs file I am trying to write to registry using Wix.
it is failing showing the error
"The error code is 2727"
to run this sample follow the below steps.
you need a text file in c:\testinstall.txt
it installs the file testinstall.txt in
C:\Program Files\test... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the use of "delete this"? Today, I have seen some legacy code. In the destructor there is a statement like "delete this". I think, this call will be recursive. Why it is working?
I made some quick search on Y!, I found that if there is a need to restrict the user to create the stack object, we can make destr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: permutation & combinations interview This is a good one because it's so counter-intuitive:
Imagine an urn filled with balls, two-thirds of which are of one color and one-third of which are of another. One individual has drawn 5 balls from the urn and found that 4 are red and 1 is white. Another individual has drawn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How can I remove middle initial with a dot at the end? I've got a bunch of first names in a field that carry a middle initial with a '.' at the end..I need a regex to convert this example:Kenneth R.intoKennethI was trying to build my own and found this useful site btw..http://www.gskinner.com/RegExr/but I'm new to P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How relevent is xls file for .NET developer? Once in a while, we use .XLS file to convert the data stored in the XML file and populate some dropdownlist and other server controls using XmlDataSource object. I am just wondering how popular is the use of the.XLS file in the .Net proejcts? We have used to populate coun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why do nullable bools not allow if(nullable) but do allow if(nullable == true)? This code compiles:
private static void Main(string[] args)
{
bool? fred = true;
if (fred == true)
Console.WriteLine("fred is true");
else if (fred == false)
Console.WriteLine("fred is false");
else Cons... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Get inbox message from Exchange server using .net Anybody knows how to do this?
I need to create a service that will connect to the exchange server and download the messages ever x minutes...
thanks!
A: You'll probably want to use WebDAV. Here's a good article on the subject
Also, here's the MSDN reference on the E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Calling a function in jQuery with click() In the code below, why does the open function work but the close function does not?
$("#closeLink").click("closeIt");
How do you just call a function in click() instead of defining it in the click() method?
<script type="text/javascript">
$(document).ready(function() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: What does the following code do in CSS? I know nothing of CSS but am trying to figure out the meaning of this syntax:
body {
margin: 0;
font-family: "Trebuchet MS", Helvetica;
background: #FFFFFF;
color: #FE6600;
overflow-x: hidden;
position: absolute;
margin: 0;
padding: 0;
left:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: One-way Store and Forward DB Replication Architectural Question I am looking for some input please. I am designing a multi-user, mutli-vendor, n-tier database application.
Each local installation of this system must replicate its records to a single central server. This server is not directly available to the user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multiple MySQL instances on a single machine How to configure multiple MySQL instances on a single machine? There are a lot of information on the web, but they are not very useful.
Instead of generic information that can only be understood by a mind with years of MySQL administrative experience, I am looking for a t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to exclude from match if a substring of another string I have a problem. I'd like to match all occurrences of \t in my text (and by \t i mean it literally it is not a tab character) but I would like to exclude a match if it is a part of \t string. How to do that?
Example
<HTML>Blah</HTML>\t
D:\\UserData\\tui
I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What the typical viewport size on a 1024x768 screen? I am designing a web application, and I wish to know the largest size (x and y) that I can design for.
As of January 2008, about half of users are using 1024x278 screens, and probably less than 10% are using smaller screens. (Phone and palmtop users are an excepti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: PHP If Date Is >13 Days Ago I'm pulling a row from a database and there is a date field (y-m-d). I need to create an if statement so that I can do something IF that date is longer then 13 days ago. I've already found out how to display all results which are longer then 13 days ago if it is any help.
SELECT * FROM li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: django drop down menu public template error My public template grabs data from Postgres to a drop down menu. The template displays the data in the drop down menu. When the selection is activated the following error occurs:
commodity() takes exactly 2 arguments (1 given)
The template code, views and URL are here:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC Authorization based on role membership or data relation (ownership) I'd like to extend the AuthorizeAttribute in ASP.NET MVC so that it supports the concept of a user's authorization being based on their role membership OR "ownership" of the data in question. I'm using LINQ2SQL for data access. There is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rather difficult mySQL problem A friend of mine is having an problem with an big mySQL database and quite a big number of repeating columns over multiple tables.
To describe the problem better, the database serves multiple services like FTP, Postfix, webmail, pretty much all the common services you would be running... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Exporting/Importing Stored Procedures between DBs I have two SQL Server 2005 databases, one is for development and the other is on the final production server. I would like to know the fastest way of ensuring that the production database has the exact same stored procedures (number and most recent version).
Assumpt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Including .asp file into html file How can include .asp file inside of html file and have it proccessed besides having to process all html files with asp.
A: you could use an IFRAME tag...but it's a bit sucky. I'd do what Phantom Watson says.
A: I'm not totally sure what you're asking. If you're attempting to incl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I map a CHAR(1) to a boolean using Hibernate for Java? How do I map a CHAR(1) to a boolean using Hibernate for Java?
A: The true_false or yes_no types will do this for you.
A: CharBooleanType is probably what you are looking for http://www.hibernate.org/hib_docs/v3/api/org/hibernate/type/class-use/CharBoole... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.