text stringlengths 8 267k | meta dict |
|---|---|
Q: How to go about sending email x hours after a user signs up in Ruby on Rails? How would I go about sending an email to a user, say, 48 hours after they sign up, in Ruby on Rails? Thanks!
A: As Joseph Daigle mentioned, you need to obviously record the exact date and time the user registered. After that, you need a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Strip Comments from XML I've encountered the need to remove comments of the form:
<!-- Foo
Bar -->
I'd like to use a regular expression that matches anything (including line breaks) between the beginning and end 'delimiters.'
What would a good regex be for this task?
A: NONE. It cannot be described by the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are child processes created with fork() automatically killed when the parent is killed? I'm creating child processes with fork() in C/C++.
When the parent process ends (or is killed for some reason) I want all child processes to be killed as well.
Is that done automatically by the system? Or I have to do it myself?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Adobe Air/Flex + SQLite database problem I'm still a newbie to Adobe Air/Flex, and still fairly new with SQL.
I've downloaded this (http://coenraets.org/blog/2008/11/using-the-sqlite-database-access-api-in-air…-part-1/) code and have been looking over it and I'm trying to implement the same idea.
I think it's just ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: User/Pass Authentication using RESTful WCF & Windows Forms What is the best approach to implementing authorisation/authentication for a Windows Forms app talking to an IIS-hosted RESTful WCF Service?
The reason I ask is I am very confused, after sifting through different articles and posts expressing a different met... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Why cannot show debug by ACE_DEBUG? ACE_DEBUG declare #include< ace/Task.h > in source header file.I trace debug define by
ACE_DEBUG((LM_ERROR, "Reader pathSetOpen : %s
",pathSetOpen);
The string variable name "pathSetOpen" for show value still execute programs.But I cannot compile code.
About ACE_DEBUG,It's mac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Include a text file content into a WiX script Is there a way to read value for the WiX variable from a text file?
What I am trying to do is to include a version-specific information into instlal package.
This version information extracted into the text file on the pre-build step,
the question is how to propages this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Java 2D game programming - Newbie questions We're a team of a programmer and a designer and we want to make a medium-sized java game which will be played as an applet in the web browser. Me (the programmer) has 3 years of general development experience, but I haven't done any game programming before.
We're assuming ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Difficulty with Simple Regex (match prefix/suffix) I'm try to develop a regex that will be used in a C# program..
My initial regex was:
(?<=\()\w+(?=\))
Which successfully matches "(foo)" - matching but excluding from output the open and close parens, to produce simply "foo".
However, if I modify the regex to:
\[(?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .NET AddIn development I'm writing a program that allows developers to write AddIn's for it and I'd like developers to be able to hook into events happening in the program.
My code isn't compiling because I can't declare a delegate in the IMyProgram interface.
So I suppose this is more of a design question. How woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP vs. application server? For those of you who have had the opportunity of writing web applications in PHP and then as an application server (eg. Python-based solutions like CherryPy or Pylons), in what context are application servers a better alternative to PHP?
I tend to favor PHP simply because it's available o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the major difference between GridView/DetailsView/FormView in ASP.net What are the similarities and differences between GridView, DetailView, FormView?
What are use case scenarios for when you would use each of these controls and why?
A: Well, I'd read the ASP.Net QuickStart Tutorials which give a good ove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: MySQL schedule conflicts Hey, I stumbled upon this site looking for solutions for event overlaps in mySQL tables. I was SO impressed with the solution (which is helping already) I thought I'd see if I could get some more help...
Okay, so Joe want's to swap shifts with someone at work. He has a court date. He goes to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Representing continuous probability distributions I have a problem involving a collection of continuous probability distribution functions, most of which are determined empirically (e.g. departure times, transit times). What I need is some way of taking two of these PDFs and doing arithmetic on them. E.g. if I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: "MetaClass", "__new__", "cls" and "super" - what is the mechanism exactly? I have read posts like these:
*
*What is a metaclass in Python?
*What are your (concrete) use-cases for metaclasses in Python?
*Python's Super is nifty, but you can't use it
But somehow I got confused. Many confusions like:
When and why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Tips for developing app with different permission levels Does anyone have any tips as we develop an application that will require each user to be assigned a permission level. The permission level will determine what functionality is available to the user.
Any advice?
How would you (do you) employ such functionality ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Agile (Scrum) adoption - how did it go? For those of you who have implemented Scrum in your organizations, what were your biggest obstacles and if you did overcome them, how?
A: While working as a Delphi developer a few years ago, I managed to get Scrum adopted by my development team for a time.
The whole process ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is it Wise to Spend Cash on a C++ Book Keeping in View the Upcoming C++0x? I just purchased C++ GUI Programming with Qt4 and after reading the code samples in this book I'm beginning to realize that my knowledge of C++ is incomplete. I learned C++ two years ago from online tutorials and a couple of ebooks I download... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When should I use $ (and can it always be replaced with parentheses)? From what I'm reading, $ is described as "applies a function to its arguments." However, it doesn't seem to work quite like (apply ...) in Lisp, because it's a binary operator, so really the only thing it looks like it does is help to avoid parent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Algorithm for grouping anagram words Given a set of words, we need to find the anagram words and display each category alone using the best algorithm.
input:
man car kile arc none like
output:
man
car arc
kile like
none
The best solution I am developing now is based on an hashtable, but I am thinking about equatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How does gedit edit and save a large file before the file is finished loading? I wanted to edit just the first line of a 4 MB file. When I open files this large in gedit, it takes a minute or two to load the file but displays and allows you to edit the part that it has loaded so far. So I opened the file, quickly ed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem with Entity Framework Model Designer and SQL_Variant datatype I have a table that has a column with SQL_Variant type and some other columns with types like int, bigint,...
When I add this table to edmx file it adds all columns but the SQL_Variant typed column.
Is there a bug or I have to do something to add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET wiki with AD authentication I am exploring the options of establishing a wiki site for my company's division of developers, numbering over a hundred. We are a pure Microsoft (Certified Partner) shop, so it is natural to base an implementation on ASP.NET and IIS for familiarity's sake as well as extended lear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Onselect event doesn't fire on div I have been unable to trigger an onselect event handler attached to a <div> element. Is it possible to force a <div> to emit select events?
A: You can achieve what you want by using onMouseUp event. See below...
<html>
<body>
<div id="container" style="border: 1px soli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C# - Using auto implemented properties and naming conventions When using auto implemnted properies like
public string MyProperty { get; set; }
This is great until you come to naming conventions.
I use underscore for class level fields ie
string _MyProperty;
so with auto implemented means that it is not obvious what ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A C# / .NET (VS 2008) to Outlook (2007) question I need some help with .NET (C#) and MS Outlook. I'm building a simple desktop application and want to send an e-mail using Outlook.
*
*If my desktop app generates a message, it should be able to send it as an email via outlook (we can assume outlook is running on t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tools, Visual Studio Setting to check uninitialized class members I am porting a big and complex c++ server from Solaris to Windows. I am facing lots of trouble due to uninitialized member variables. On Solaris they get set to 0 value by default hence things work fine. But, on windows those member variables get garb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Windows installer 4.5 and Sql Server 2005? I de-installed SQL server 2005 express some time ago when I installed SQL server 2008 express.
Doing that install required windows installer 4.5.
Now I discover a reason to have SQL server 2005 express again.
(to reconnect to the outlook Business Contact Manager which requ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Headers Including Each Other in C++ I'm a C++ newbie, but I wasn't able to find the answer to this (most likely trivial) question online. I am having some trouble compiling some code where two classes include each other. To begin, should my #include statements go inside or outside of my macros? In practice, this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: How to launch Windows Scheduler by command-line? I mean to open the built-in Windows GUI from command line- not to launch by Schtasks
A: Yes, the GUI is available in XP. I can get the list of scheduled tasks (but not the GUI) to open with the following command,
control.exe schedtasks
Then you can use the wizard ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: What is the best way to check for memory leaks in c++? I'm implementing a sparse matrix with linked lists and it's not fun to manually check for leaks, any thoughts?
A: On Windows:
Compuware BoundChecker (bit costly but very nice)
Visual LeakDetector (free, google it)
On Linux/Unix:
Purify
A: The valgrind profile... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Remote Debugging in Visual Studio (VS2008), Windows Forms Application I'm trying to Remote Debugging a Windows Forms Application (C#), but i'm always getting this error:
Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor
named 'XXX. The Visual Studio Remote
Debugger on the target compute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Class (Static) Methods in VBA I wonder, whether it is possible to create class-methods in VBA. By class-method I mean methods that can be called without having an object of the class. The 'static'-keyword does that trick in C++ and Java.
In the example below, I try to create a static factory method.
Example:
'Classm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Mixing File Handles and Sockets in Winsock I'm porting some code from BSD sockets to Winsock, and I'm not sure how to handle the case below.
My original application runs a select on both stdin and the network socket:
FD_SET(sock, &fd);
FD_SET(0, &fd);
...
if (select(..., &fd, ... )...)
Trying to run this in Winsock... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Get most frequently used applications in VB.NET Is there a way that I can get the most used applications via VB.NET? I'm developing a sort of hobby project as a quick launcher kind of thing and thought this would sit perfectly on the main form.
If possible, would somebody be able to explain to me how add/remove appl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: gridview control capable of displaying rich text in WinForms I'm looking for a WinForms control that would allow me to display data in a table like manner but with some rich content such as different font colors, images. I do not need data-binding etc., just a "table of RichTextBox controls". I suppose it wouldn't b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multi-core usage, threads, thread-pools I have some questions about multi-threaded programming and multi-core usage.
In particular I'm wondering how the operating system and/or framework (this is .NET) deals with cores that are heavily used.
Here's my questions regarding threads:
*
*When a new thread is spawned, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: create your own settings in xml I'm in a ASP.NET project where I need to give several parameters to the administrator that is going to install the website, like:
AllowUserToChangePanelLayout
AllowUserToDeleteCompany
etc...
My question is, will be a good thing to add this into the web.config file, using my own confi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Problem with VSTS UnitTesting. Can't supply C++ DLLs I am using VSTS Unitesting platform. I am trying to test a method which got references to assemblies which in turn contain DllImport to C++ DLLs.
In order for it to work I need to copy C++ DLLs to reside on the same directory the EXE and DLLs are running.
Of cour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET OpenSource projects and strong named assemblies? I am currently thinking about open-sourcing a project of mine and am in the process of preparing the source code and project structure to be released to the public. Now I got one question: how should I handle the signature key for my assemblies? Should I create a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How can I vertically center a div element for all browsers using CSS? I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support.
<body>
<div>Div to be aligned vertically</div>
</body>
How can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1635"
} |
Q: Prepare SMS message from an iPhone app Is it possible? Developers can use SMS URLs to populate the phone number, but I haven't found a way to populate the message body.
A: This other look at the topic from before the NDA was lifted:
How to programmatically send SMS on the iPhone?
was unable to find a solution. "sms... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Automatically size JPanel inside JFrame I have a JPanel subclass on which I add buttons, labels, tables, etc. To show on screen it I use JFrame:
MainPanel mainPanel = new MainPanel(); //JPanel subclass
JFrame mainFrame = new JFrame();
mainFrame.setTitle("main window title");
mainFrame.getContentPane().add(mainPanel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Exposing database IDs - security risk? I've heard that exposing database IDs (in URLs, for example) is a security risk, but I'm having trouble understanding why.
Any opinions or links on why it's a risk, or why it isn't?
EDIT: of course the access is scoped, e.g. if you can't see resource foo?id=123 you'll get an er... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "182"
} |
Q: Allowing Only Certain Characters In PHP I need to check to see if a variable contains anything OTHER than a-z A-Z 0-9 and the "." character (full stop). Any help would be appreciated.
A: if (preg_match("/[^A-Za-z0-9.]/", $myVar)) {
// make something
}
The key point here is to use "^" in the [] group - it matche... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Circular Dependencies in Ruby Let's say we have two classes, Foo and Foo Sub, each in a different file, foo.rb and foo_sub.rb respectively.
foo.rb:
require "foo_sub"
class Foo
def foo
FooSub.SOME_CONSTANT
end
end
foo_sub.rb:
require "foo"
class FooSub < Foo
SOME_CONSTANT = 1
end
This isn't goin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Sharing one PrintDocument instance In my WinForms app, data can be printed on many locations. Everytime the user wants to print, I create a new PrintDocument instance, which is used for the current print job and then disposed. Everything is working, but the Print dialog is always set back to the default printer and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery UI dialog doesn't show in IE7 I've finally got the datepicker to work on my MVC demo site and also the dialog.
I still have a few issues: the dialog doesn't show in IE7 so when I click a link where a confirm dialog is supposed to appear it just removes the row without showing the dialog.
It works great in Fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does svn diff sometimes copy working files to a temp file? I use an external diff tool with Subversion (Beyond Compare rules!), and one of the great features is being able to use the diff program to make some minor edits to the file as I'm reviewing the changes I've made.
But svn diff works differently on differ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How can I process a list of files that includes spaces in its names in Unix? I'm trying to list the files in a directory and do something to them in the Mac OS X prompt.
It should go like this: for f in $(ls -1); do echo $f; done
If I have files without spaces in their names (fileA.txt, fileB.txt), the echo works fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you get a minimal SDL program to compile and link in visual studio 2008 express? I'm trying to use SDL in C++ with Visual Studio 2008 Express. The following program compiles but does not link:
#include <SDL.h>
int main(int argc, char *argv[])
{
return 0;
}
The link error is:
LINK : fatal error LNK1561: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What are the pros and cons of putting as much logic as possible in a minimum(one-liners) piece of code? Is it cool?
IMO one-liners reduces the readability and makes debugging/understanding more difficult.
A: One-liners, when used properly, transmit your intent clearly and make the structure of your code easier to g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Version Controlling for Designers in a Digital Agency I'm trying to implement a version control system, but as most of us know designers don't feel comfortable with version control systems. I'm looking for a solution mostly for our designers using Photoshop, Flash and other design tools.
It's not a big deal to use a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Workflow automation: Makefile vs. Ant Whenever I notice that something in my workflow is a repeating task, I try to automate it.
For example the steps necessary to deploy something on a server. It's often a build, followed by a scp and finally some remote setup scripts:
*
*mvn package
*scp target/foobar.jar ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is .NET System.Net.CookieContainer thread safe?
*
*Is the .NET class System.Net.CookieContainer thread safe? --Update: Turnkey answered--
*Is there any way to ensure thread safeness to variables which are modified during asynchronous requests (ie. HttpWebRequest.CookieContainer)?
*Is there any attribute to highl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: WPF/C#: Where should I be saving user preferences files? What is the recommended location to save user preference files? Is there a recommended method for dealing with user preferences?
Currently I use the path returned from typeof(MyLibrary).Assembly.Location as a default location to store files generated or requir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Add a dependency in Maven How do I take a jar file that I have and add it to the dependency system in maven 2? I will be the maintainer of this dependency and my code needs this jar in the class path so that it will compile.
A: You can also specify a dependency not in a maven repository. Could be usefull when no c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "139"
} |
Q: Lazy binding functions to multiple events with jQuery Here's the scenario: I have a set of buttons that I want to bind to corresponding functions when clicked. The ids of these buttons are the same as the names of their corresponding functions. I could do this:
$("#kick").click(kick);
$("#push").click(push);
$("#sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the best way to detect an internet connection using .NET? I have a Windows Forms application. When the user imports a license for my application I'd like to "phone home" (hit an aspx page on the web) and register the license information.
The problem is that the user may not have an internet connection working... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Allow mobile access to an InfoPath form on a forms server/sharepoint instance Before I begin asking this question I will have to warn you that I know next to nothing about SharePoint and I'm basically learning as I go along.
Here's where I am right now:
*
*I have a virtual pc with an instance of SharePoint and w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best practice for customizing a versioned user interface? How would the following scenario best be implemented:
There is a standardized user interface for an application in version 1.0, e.g. an order form. This application gets customized to fit the needs of different customers. This could be an extra field "desired... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Web for mobile devices - best practices for ASP.NET Starting to build web applications for mobile devices (any phone).
What would be the best approach using ASP.NET 3.5/ASP.NET 4.0 and C#?
UPDATE (feb2010)
Any news using windows mobile 7?
A: A couple things I should mention since I work on a wireless network in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: New C# Programmer - Adding two numericUpDown values together? I'm fairly new to C# programming.
I am making a program for fun that adds two numbers together, than displays the sum in a message box. I have two numericUpDowns and a button on my form. When the button is pushed I want it to display a message box with th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which to choose: 2D or 3D for a java game What should a small team choose for their first game, when they are low on time but have big ambitions? I'm an experienced programmer, but haven't done any game programming before this. My designer is very talented and artistic, he has worked with 3D about an year ago but ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Creating a version-independent outlook-addin When using the add-in wizard for outlook add-ins in Visual Studio 2008, I have the choice between creating a add for Outlook 2003 and Outlook 2007 (both using .NET). However, if I chose one of these, the add-in doesn't run in the other version.
What's the best way to crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recursive lambda expression to find the path(s) through a directed graph? I need to find a path or paths down a complicated graph structure. The graph is built using something similar to this:
class Node
{
public string Value { get; set;}
public List<Node> Nodes { get; set;}
public Node()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to walk the methods and their properties contained in a DLL? Using preferably JScript, but VBscript will also do, how does one walk a DLL obtaining the properties and their attributes contained therein?
Why? Because it would be good to ascertain the attributes of certain objects such as their datatypes at runtim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pattern for very slow DB Server I am building an Asp.net MVC site where I have a fast dedicated server for the web app but the database is stored in a very busy Ms Sql Server used by many other applications.
Also if the web server is very fast, the application response time is slow mainly for the slow response from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP: I want to create a page that extracts images from a forum thread, doable? codeigniter? You have a forum (vbulletin) that has a bunch of images - how easy would it be to have a page that visits a thread, steps through each page and forwards to the user (via ajax or whatever) the images. i'm not asking about filt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sanitize html encoded text (#decimal notation) from AntiXSS v3 output I am tying to make comments in a blog engine XSS-safe. Tried a lot of different approaches but find it very difficult.
When I am displaying the comments I am first using Microsoft AntiXss 3.0 to html encode the whole thing. Then I am trying to htm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Question on multiple inheritance, virtual base classes, and object size in C++ The following code prints 20, i.e. sizeof(z) is 20.
#include <iostream.h>
class Base
{
public:
int a;
};
class X:virtual public Base
{
public:
int x;
};
class Y:virtual public Base
{
public:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: creating unit tests (semi-)automatically? Is there a framework that supports generating some standard unit tests from annotations? An example of what I have in mind would be:
@HasPublicDefaultConstructor
public class Foo {
}
This would obviously be used to automatically generate a unit test that checks whether Foo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Load Balancing in BizTalk At one of our client's site we have the following topology of BizTalk 2006 in production environment:
*
*2 BizTalk Runtime servers
*1 SQL Server with MsgBox and TrackingDB on it.
One of the runtime servers are dedicated physical server and the another is virtual server, though bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get Google page rank and number of searches in Excel sheet? I have a link in one column and, based on it, I want
*
*Number of Google searches in column 2
*Page rank of first result in column 3
I know this can be done, as I saw a friend pulling google search result right in Excel. If anyone knows, please... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are there any good (preferably free) OO modelling apps for Mac OS X? I'm looking for something relatively simple to spec out a class hierarchy for C++. Can cost $ but preferably something free or at least simple and not overly feature laden and $$$.
A: Once KDE4 is running really well on the Mac you should be able ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I disable the 'Debug / Close Application' dialog on Windows Vista? When an application crashes on Windows and a debugger such as Visual Studio is installed the following modal dialog appears:
[Title: Microsoft Windows]
X has stopped working
A problem caused the program to stop
working correctly. Windows wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: Why readonly and volatile modifiers are mutually exclusive? I have a reference-type variable that is readonly, because the reference never change, only its properties. When I tried to add the volatile modifier to it the compiled warned me that it wouldn't let both modifiers apply to the same variable. But I think I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Hibernate: Mapping User-Friends relation in Social Networks It's quite some time that I'm trying to figure out this problem and from googling around many people have similar problems.
I'm trying to model a User in a Social Network, using Hibernate, and what is more basic to a social network than to map a friendship ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: [] method of Ruby String When I reading source code of Beast, I found a lot of code like this:
<%= 'Password'[:password_title] %>
It seems like a call to [] method with Symbol as input parameter to a String to me, but I didn't find such type of parameter of String [] method in the ruby API. What is this means?
than... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I get controls on an NSPanel to look correct? If I have a HUD NSPanel that is black/transparent and I add some controls to it. How do I get the controls to look correct? ie be black/transparent instead of white/opaque?
A: Unfortunately, you have to roll your own, Apple only provides the window.
However ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can my Flash app determine its own URL? My flash app needs to know its own URL, so that it can load some (non-embedded) content using relative paths.
(I cannot hardcode the full paths because there will be multiple installs -- staging, production, etc. Nor can I use simple relative paths because there's one l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Checking if two strings are permutations of each other in Python I'm checking if two strings a and b are permutations of each other, and I'm wondering what the ideal way to do this is in Python. From the Zen of Python, "There should be one -- and preferably only one -- obvious way to do it," but I see there are at l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: WCF DataContract deserialization of complex types I have a service that returns a collection of MyClass objects.
If all of the MyClass instances have null in MyClass2Reference then everything works fine.
Otherwise, I get a "Connection reset" error on the client side.
What am I doing wrong?
[DataContract]
public MyCl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you know what version number to use? Here's one I have always wondered about...
Please excuse my naivety, but - How do you decide what version number to name your software?
I assume, when somebody creates a "final" version of an application/program it is version 1.0? - Then, what happens when you update it, h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Radio/checkbox alignment in HTML/CSS What is the cleanest way to align properly radio buttons / checkboxes with text? The only reliable solution which I have been using so far is table based:
<table>
<tr>
<td><input type="radio" name="opt"></td>
<td>Option 1</td>
</tr>
<tr>
<td><input type="radio" name="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: Does moving to Symfony 1.1/1.2 make sense? I built an on-demand web app on Symfony 1.0. Other than brutal memory consumption, I am happy with it. Should I upgrade to 1.1/1.2? What are the main practical benefits you have enjoyed most after upgrading?
A: Main benefit lies in the new forms framework. Object layer can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Strategies for Using Mock Objects when Unit Testing DAOs I am curious what strategies folks have found for unit testing a data access class that does not involve loading (and presumably unloading) a real database for each test method? Are you using mock objects to represent the database connection? If so, are you re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java connection to / between Microsoft Windows Office Suite? I read elsewhere (a response by "hazzen" here) that .NET has "a binding for the entire Office suite outlined here that allows you to write COM-based methods that you can call from Office. It is intended for automation, but you can write any managed code yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MATLAB settings - stop if errors I found the "always stop on error (dbstop if error)" to be very useful when I debug MATLAB code.
However, closing matlab also resets it to "Never stop if error"
How can I make this setting persist?
A: You could use the startup.m file to recreate your settings at startup. See here f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Python-PostgreSQL psycopg2 interface --> executemany I am currently analyzing a wikipedia dump file; I am extracting a bunch of data from it using python and persisting it into a PostgreSQL db. I am always trying to make things go faster for this file is huge (18GB). In order to interface with PostgreSQL, I am using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you use mod_rewrite to move a site down a sub directory? I have a site with URLs like this:
http://domain.co.uk/subdir/page.php
I have redesigned the site so URLs are now like this:
http://domain.co.uk/page.php
How can I 301 redirect all the pages to their new locations using Apache's mod_rewrite?
A: This ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to show real-time suggestions (e.g. existing entries with same initial characters) while user is typing in a text field in Cocoa Touch? I'm wondering if there is an existing class or library code in Cocoa Touch that shows the user a list of real-time suggestions while they are entering text input, with the sugge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the cost of WSAStartup and WSACleanup? I have a c++ win32 program that uses sockets to download some data from a server.
Before using sockets on Windows, WSAStartup must be called. MSDN says: "There must be a call to WSACleanup for each successful call to WSAStartup. Only the final WSACleanup function call p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: SDK for Avatars (such as Wii, XBOX 360 avatars) What are some software packages available to provide 90% of the avatar functionality for my games? My favorite is xbox's Avatar system (but I want it in my PC games).
I need the ability to customize the looks of a person (body, clothes, etc...).
A: The November XDK (X... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which editors out of Emacs, Vim and JEdit support multiple simultaneous text insertion points? Background: JEdit (and some other text editors as well) support a feature called Multiple simultaneous text insertion points. (at least that's what I'm calling it here).
To understand what this means, take a look at the li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Convert a Silverlight text to a path Is there any way to render a Silverlight text to a path or graphics object at runtime? I know this can be done using the design tools, but I want to be able to do this on the fly.
I've seen an example that calls a webservice which uses WPF constructs to convert a WPF FormattedTex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ERB like library for C# I am looking to find a librray that emulates part of the capabilities of Ruby's ERB library. ie substitute text for variables between <% and %>. I dont need the code execution part that ERB provides but if you know of something that has this I would be super appreciative.
A: I modified a cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should parameters/returns of collections be IEnumerable or T[]? As I've been incorporating the Linq mindset, I have been more and more inclined to pass around collections via the IEnumerable<T> generic type which seems to form the basis of most Linq operations.
However I wonder, with the late evaluation of the IEnum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: After grails clean I can't run-app I did a grails clean and afterwards when I run via grails run-app the app never starts and the following is repeatedly displayed (goes on forever, stuck in some kind of loop).
I'm running Grails 1.0.4, Java 1.6 on Windows XP.
Grails is somehow stuck in an invalid configuration. Any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Access PHP array element with a function? I'm working on a program that uses PHP's internal array pointers to iterate along a multidimensional array. I need to get an element from the current row, and I've been doing it like so:
$arr[key($arr)]['item']
However, I'd much prefer to use something like:
current($arr)['... | {
"language": "en",
"url": "https://stackoverflow.com/questions/396519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.