text string | meta dict |
|---|---|
Q: How to develop "shippable" components for ASP.NET MVC? In ASP.NET webforms we have server components, that can be encapsulated into an external assembly and shipped as product. In ASP.NET MVC we don't have server components, so what's the best option for external components?
Looking around it seems like the only pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why can't I cast e.CommandArgument as a Guid? The following code fails at runtime…
Dim Id As Guid = CType(e.CommandArgument, Guid)
It throws this exception…
System.InvalidCastException was unhandled by user code
Specified cast is not valid
Why can't I cast e.CommandArgument as a Guid?
A: Try:
Dim DeleteId As Gu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to get line numbers for stack traces on .Net CF 2.0 or 3.5 I have a .Net CF 2.0 application and am using log4net to log errors. I get a stack trace, but it doesn't have any line numbers. I noticed that it doesn't appear to deploy the pdb file to the device, so I tried to manually place it in the sam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I make my iPhone app find my images? My app crashes when I do the following in the applicationDidFinishLaunching event in the app delegate:
_textures[mytex] = [[Texture2D alloc] initWithImage: [UIImage imageNamed:@"a.png"]];
However when I replace @"a.png" with
@"/Users/MyUserName/Desktop/MyProjectFolder/a.p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XmlSerializer Serialize empty variable to use both tags? I want to be able to load a serialized xml class to a Soap Envelope. I am starting so I am not filling the innards so it appears like:
<Envelope
xmlns="http://schemas.xmlsoap.org/soap/envelope/" />
I want it to appear like:
<Envelope
xmlns="http:/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I scale this? I've got a form that's a few pages long. To traverse the form all I'm doing is showing and hiding container divs. The last page is a confirmation page before submitting. It takes the contents of the form and lays it out so the user can see what he/she just filled out. If they click on one of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Random array using LINQ and C# I was reading an article on MSDN Magazine about using the Enumerable class in LINQ to generate a random array. The article uses VB.NET and I'm not immediately sure what the equivalent is in C#:
Dim rnd As New System.Random()
Dim numbers = Enumerable.Range(1, 100). _
OrderBy(Functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: MSBuild isnt making the build completely parallel I have an MSBuild project where within it I have a task that calls multiple projects where I set BuildInParallel = "true"
Example:
<Message Text="MSBuild project list = @(ProjList)" />
<!-- Compile in parallel -->
<MSBuild Projects="@(ProjList)"
Ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Only one project of two running in my CruiseControl.net config I am creating an integration server for the first time, and although I have two projects in my cruisecontrol config file, only the first one seems to be executing. My config file is pasted below.
<cruisecontrol>
<project name="cc-config">
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Would it be bad form to put braces on the same line as the statement for single line "if" statements? So I know it's considered somewhat good practice to always include curly braces for if, for, etc even though they're optional if there is only one following statement, for the reason that it's easier to accidentally... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to efficiently delete all files in a document library? I am looking for a clear, complete example of programmatically deleting all documents from a specific document library, via the Sharepoint object model. The doclib does not contain folders. I am looking to delete the documents completely (ie I don't want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to embed a tag within a url templatetag in a django template? How do I embed a tag within a url templatetag in a django template?
Django 1.0 , Python 2.5.2
In views.py
def home_page_view(request):
NUP={"HOMEPAGE": "named-url-pattern-string-for-my-home-page-view"}
variables = RequestContext(request, {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Silverlight Rest Service, Security Exception I am trying to get Silverlight to work with a quick sample application and am calling a rest service on a another computer. The server that has the rest service has a clientaccesspolicy.xml which looks like:
<access-policy>
<cross-domain-access>
<policy>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Largest values on array does anybody know how could I get the TWO most largest values from the third column on the following array?
$ar = array(array(1, 1, 7.50, 'Hello'),
array(1, 2, 18.90, 'Hello'),
array(3, 5, 11.50, 'Hello'),
array(2, 4, 15.90, 'Hello'));
Ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Design for handling both forms authentication and active directory What design pattern should I use to handle both forms authentication and active directory? (Administrative setting will allow you to chose either one of them).
From what I know, .NET membership provider only has forms right?
A: actually, you're prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should you use the private access modifier if it's redundant? Given that these two examples are equivalent, which do you think is preferrable?
Without explicit modifier
public class MyClass
{
string name = "james";
public string Name {
get { return name; }
set { name = value; }
}
v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Restricting access to page unless coming from a specific page I'm trying to figure out how to restrict access to a page unless the page is navigated to from a specific "gate" page. Essentially I want the page to be unaccessible unless you're coming from the page that comes before it in my sitemap. I'm not certain th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Question SpeechSynthesizer.SetOutputToAudioStream audio format problem I'm currently working on an application which requires transmission of speech encoded to a specific audio format.
System.Speech.AudioFormat.SpeechAudioFormatInfo synthFormat =
new System.Speech.AudioFormat.SpeechAudioForm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Storing Social Security Numbers The HR department at the company that I am currently working for has requested that I provide a system for storing employee social security numbers in our company database. The reason for this is to streamline payroll completion, as we use in-house software for employee timesheets but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How do I get PNGs to work in D2009? One of Delphi 2009's advertised features was PNG support. That's great, because the Unicode issues break the pngimage.pas library I was using before. Only problem is, I can't find the Delphi 2009 version. Anyone know what it's called, and how difficult it is to migrate existing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I Forward an Email to FogBugz and Have it Make it into a Bug? I didn't see it in the help but I figure it's possible. Also how do I find out what email address to use?
A: Have you looked here?
Updated link to new help desk 2013/10/7
A: If you're using FogBugz-on-Demand, chances are you have a cases@<your-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: WinForms: what is the best control for GDI+ drawing surface? I think you can do GDI+ drawing in just about any window in a .net windows forms project, but what do you recommend as the best built-in control for containing custom drawing? I'm going to be drawing my own x-y plots, text and images. I could use a Panel, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Dealing with .NET IDisposable objects I work in C#, and I've been pretty lax about using using blocks to declare objects that implement IDisposable, which you're apparently always supposed to do. However, I don't see an easy way of knowing when I'm slipping up. Visual Studio doesn't seem to indicate this in any wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Why don't more .NET applications use MySQL or a DAO that allows for the use of MySQL? I suppose this question could just as easily be applied to PHP with regard to MSSQL. However, with some versions of MSSQL being so expensive, I always wondered, what is the real advantage of choosing it over MySQL for .NET developm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Help with using ConfigurationSection to properly read from a config file I'm trying to create classes to read from my config file using ConfigurationSection and ConfigurationElementCollection but am having a hard time.
As an example of the config:
<PaymentMethodSettings>
<PaymentMethods>
<PaymentMethod name="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: fast geometric proximity predicate I have 3 points (A, B and X) and a distance (d). I need to make a function that tests if point X is closer than distance d to any point on the line segment AB.
The question is firstly, is my solution correct and then to come up with a better (faster) solution.
My first pass is as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Help with CredEnumerate As a follow-up to this question I am hoping someone can help with the CredEnumerate API.
As I understand from the documentation the PCREDENTIALS out parameter is a "pointer to an array of pointers to credentials". I am able to successfully call the CredEnumerate API using C# but I am not su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: choosing a SOAP library to integrate with ISAPI webapp The company I work for has a large webapp written in C++ as an ISAPI extension (not a filter). We're currently enhancing our system to integrate with several 3rd party tools that have SOAP interfaces. Rather than roll our own, I think it would probably be best... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I best handle WPF radio buttons? I've got some RadioButtons in my XAML...
<StackPanel>
<RadioButton Name="RadioButton1" GroupName="Buttons" Click="ButtonsChecked" IsChecked="True">One</RadioButton>
<RadioButton Name="RadioButton2" GroupName="Buttons" Click="ButtonsChecked">Two</RadioButton>
<Radi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I dynamically create/remove controls, with EventHandlers, to/from an ASP.NET page? In one of my projects I need to build an ASP.NET page and some of the controls need to be created dynamically. These controls are added to the page by the code-behind class and they have some event-handlers added to them. Upon ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/254993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Forking open source PHP code, project classloader strategy I've been looking for a good PHP ORM tool to use, and I recently found a good ORM class in Kohana. It has a fairly good and simple ORM implementation. The problem is, the code is unreusable outside of the Kohana framework without a rewrite/refactor. It relie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Automatically launch app on USB (through autorun?) Is it possible to automatically launch an application from a USB flash drive (bypassing windows prompt asking user what he wants to do)? on windows XP or vista.
I looked into "autorun.inf" and "open" entry seems to work only for CD drives for Windows XP SP2+ and Vis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Minify Html output of ASP.NET Application What are the ways by which we can reduce the size of the HTML Response sent by an asp.net application?
I am using Controls which are not owned by me and it produces output with white spaces. I am interested in Minifying the entire HTML output of the page just like how google... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: scriptless JSP Is there any way to do the equivalent of the following in a JSP without using scriptlet?
<% response.setContentType("text/plain"); %>
I can't simply use
because I need to set the content-type in 2 places (each in a different branch of a ) and the JSP compiler will only allow one such directive.
Also... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Converting datetime to POSIX time How do I convert a datetime or date object into a POSIX timestamp in python? There are methods to create a datetime object out of a timestamp, but I don't seem to find any obvious ways to do the operation the opposite way.
A: import time, datetime
d = datetime.datetime.now()
prin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: In javascript, can I override the brackets to access characters in a string? Is there some way I can define String[int] to avoid using String.CharAt(int)?
A: Use String.charAt()
It's standard and works in all browsers.
In non-IE browsers you can use bracket notation to access characters like this:
"TEST"[1]; // = E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Install a .NET windows service without InstallUtil.exe I have a standard .NET windows service written in C#.
Can it install itself without using InstallUtil?
Should I use the service installer class? How should I use it?
I want to be able to call the following:
MyService.exe -install
And it will have the same effec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "167"
} |
Q: Multi-Parameterized Threads Efficiency Would there a more elegant way of writing the following syntax?
Thread t0 = new Thread(new ParameterizedThreadStart(doWork));
t0.Start('someVal');
t0.Join();
Thread t1 = new Thread(new ParameterizedThreadStart(doWork));
t1.Start('someDi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Referencing existing SWIG wrappers when creating new ones I have an existing library (JPhysX) that is a Java wrapper for a native C++ library (PhysX). The Java library makes use of types generated by SWIG, for example, com.jphysx.SWIGTYPE_p_NxStream, which represents a pointer to an NxStream object in the C++ code. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JQuery DatePicker bundled control can't be included in other controls I've been tasked with implementing a Date/Time selector for several areas of our web project, and instructed to use a control that another developer created as part of it. The control I'm working on is supposed to allow the user to choose a date ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Open ports under Fedora Core 8 (for VMWare Server) I have just installed VMWare Server 2.0 on a fresh Fedora Core 8 install. The ports for the web access console of VMWare are 8222 and 8333 (like the defaults).
When I try a remote http access to myserver:8222 it fails. But when I run
/sbin/service iptables stop
acc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the difference between a string and a symbol in Ruby? What's the difference between a string and a symbol in Ruby and when should I use one over the other?
A: The main difference is that multiple symbols representing a single value are identical whereas this is not true with strings. For example:
irb(main):... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: Is it possible to make a vs2008 c++ project import source file names from another file? I have a situation where another developer is including source files from a project that I maintain in a project that he maintains. The nature of the files is such that each source file registers a "command" in an interpretive e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Which framework should I use to ensure better longterm upgrade / maintainability, CakePHP or CodeIgniter? I am deciding on a framework to try out for PHP. I have narrowed it down to CakePHP and CodeIgniter. I have a couple of questions for any of you who have used or are familiar with both:
*
*I like the fact tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: xHTML IE7 MIME-Type Can someone tell me method to define the MIME-Type of a static XHTML File as text/html …. I don’t want to use php, asp.net…….. javascript would be ok
A: You shouldn't. Here's why:
Sending XHTML as text/html Considered Harmful (http://hixie.ch/advocacy/xhtml)
If you use XHTML, you should deliver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delegate Array in C# I am experimenting with calling delegate functions from a delegate array. I've been able to create the array of delegates, but how do I call the delegate?
public delegate void pd();
public static class MyClass
{
static void p1()
{
//...
}
static void p2 ()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Best way to deal with users double-clicking buttons in a winforms app? I'm working on a WinForms app and I have a user control in it. The buttons in the user control raise events up to the form to be handled by other code. One of the buttons starts some processses that will cause problems if they run simultaneousl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I store a duplicate value from an array or hash in Perl? Let's make this very easy. What I want:
@array = qw/one two one/;
my @duplicates = duplicate(@array);
print "@duplicates"; # This should now print 'one'.
How to print duplicate values of a array/hash?
A: sub duplicate {
my @args = @_;
my %item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Recommendation for a large-scale data warehousing system I have a large amount of data I need to store, and be able to generate reports on - each one representing an event on a website (we're talking over 50 per second, so clearly older data will need to be aggregated).
I'm evaluating approaches to implementing this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Easiest implementation of onReleaseOutside in AS3? I'm a long-time ActionScript 2 user, now getting started with ActionScript 3. The one thing I'm missing is an easy way to duplicate the functionality of AS2's MovieClip.onReleaseOutside. It is almost always necessary to implement this event, otherwise you get funny ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I keep Python print from adding newlines or spaces? In python, if I say
print 'h'
I get the letter h and a newline. If I say
print 'h',
I get the letter h and no newline. If I say
print 'h',
print 'm',
I get the letter h, a space, and the letter m. How can I prevent Python from printing the space?
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "244"
} |
Q: mysql charset cli how do i determine what a mysql db's charset is set to? in the cli?
A: SHOW CREATE DATABASE db-name
Will show you the default character set for the database,
SHOW CREATE TABLE db-name.table-name
Will show you the character set for a specific table (along with a lot of other information).
A: You... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to override HTTP request verb in GAE In the context of a Google App Engine Webapp framework application:
I want to changed the request verb of a request in the case a
parameter _method is provided, for example if a POST request comes in
with a parameter _method=PUT, I need to change the request to call the
put m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Markdown and image alignment I am making a site that publishes articles in issues each month. It is straightforward, and I think using a Markdown editor (like the WMD one here in Stack Overflow) would be perfect.
However, they do need the ability to have images right-aligned in a given paragraph.
I can't see a way t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "255"
} |
Q: How do I safely create an XPathNavigator against a Stream in C#? Given a Stream as input, how do I safely create an XPathNavigator against an XML data source?
The XML data source:
*
*May possibly contain invalid hexadecimal characters that need to be removed.
*May contain characters that do not match the declare... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I fill a Delphi set? If I have a type defined as a set of an enumerated type, it's easy to create an empty set with [], but how do I create a full set?
EDIT: Yeah, the obvious solution is to use a for loop. That's also a really bad solution if there's another way. Does anyone know of a way that'll work in c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Hibernate criteria - single object fetched I'm working on a Grails project using Hibernate (GORM). I have the following Domain Models:
ClientContact {
static hasMany = [owners: Person]
static belongsTo = [Person]
}
Person {
static hasMany = [clientContacts: ClientContact]
}
When I try to retrieve all the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Non-GPL JSON-RPC library for C++ What non-GPL libraries are available for writing JSON-RPC servers and clients in native C++?
According to http://json-rpc.org/wiki/implementations, there seems to only exist one implementation of JSON-RPC for C++, namely JsonRpc-Cpp, but that only available under GPL. Unfortunately w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I view 'git diff' output with my preferred diff tool/ viewer? When I type git diff, I want to view the output with my visual diff tool of choice (SourceGear "diffmerge" on Windows). How do I configure git to do this?
A: If you're doing this through Cygwin, you may need to use cygpath:
$ git config difftool.b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "812"
} |
Q: When should I use the Visitor Design Pattern? I keep seeing references to the visitor pattern in blogs but I've got to admit, I just don't get it. I read the wikipedia article for the pattern and I understand its mechanics but I'm still confused as to when I'd use it.
As someone who just recently really got the dec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "341"
} |
Q: Why doesn't jquery turn my array into a json string before sending to asp.net web method? So far, I've only been passing javascript strings to my web methods, which get parsed, usually as Guids. but now i have a method that accepts an IList... on the client, i build this array of objects and then attempt to pass it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I force Capistrano deployed app to use my development database? I have a app that I'm deploying to a development server using Capistrano. I'd like to force this deployment to use the development database. So far the only way I've managed to do it is to make my production database info in database.yml equal ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which is the best JSON rewriter for Java? Which JSON rewriter is the best for applications written in Java? Criteria may vary. I'm personally most interested in stability and performance.
A: I am using the one from http://www.json.org. The direct link to the Java code is this:
http://www.json.org/java/index.html... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Hibernate CRUD à la Ruby on Rails' Scaffolding Do you know of any tool that would do like Ruby on Rails' Scaffolding (create simple CRUD pages for any particular class to allow quickly populating a database with dummy data), only which used Java classes with Hibernate for database access, and JSP/JSF for the pages?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Storage transactions in Redland's Python bindings? I've currently skimming through the Python-bindings for Redland and haven't found a clean way to do transactions on the storage engine via it. I found some model-transactions within the low-level Redland module:
import RDF, Redland
storage = RDF.Storage(...)
model ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Actionscript 3 outside of Flash / Flex I've just finished a flash project where I did the entire project in "pure" AS3, without the use of the Flex framework. I found very little written about this on the web, so I'm not sure if this is a common way to develop RIA's, or if I've jumped off the shoulders of giants an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: FLV thumbnails I'm looking for a .NET library or command line tool that would allow me to extract thumbnails from FLV files (AVI would be nice too, but not required). Something that would allow me to extract a frame maybe 15% into the movie would suffice. If it could extract a few frames, let's say one frame per min... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Problem with #Import in Xcode I need to use NSImage which appears need to be imported from <AppKit/AppKit.h>. I have included the AppKit framework, and I do see AppKit.h there. But I am still getting compilation error saying <AppKit/AppKit.h> not found.
What I might missed ?
Thanks.
A: AppKit is not available on t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to stop long executing threads gracefully? I have a threading problem with Delphi. I guess this is common in other languages too. I have a long process which I do in a thread, that fills a list in main window. But if some parameters change in the mean time, then I should stop current executing thread and start f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Ideas from function/logic/object-oriented programming Can someone please point me to articles or books that discusses different programming paradigm (function/logical/OOP)... I am not looking for the syntax details but the ideas that make them good..
for ex: using functional programming we avoid any side-effects.. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Determine value of object in C# What would be the best way to determine if an object equals number zero (0) or string.empty in C#?
EDIT: The object can equal any built-in System.Value type or reference type.
Source Code:
public void MyMethod(object input1, object input2)
{
bool result = false;
object compare... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to convert a string "yyyy-MM-ddZ" to a date time with .net? I am having problems converting a string in the format "yyyy-MM-ddZ" using VB.net.
For example I have the string "2007-10-21Z".
Using CDate or TryParse it comes out to 10/20/2007 instead of 10/21/2007.
I'm not understanding how the Z affects the date st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Odd behavior from TinyXML++ Hoping some of you TinyXML++ people can help me out. Really, since you recomended to me before I think you owe me ;)
I have the following code:
//ticpp::Iterator< ticpp::Element > child( "SetPiece" );
ticpp::Iterator< ticpp::Node > child("SetPiece");
GLuint lc_SPieces = 0;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get a variable name as a string in PHP? Say i have this PHP code:
$FooBar = "a string";
i then need a function like this:
print_var_name($FooBar);
which prints:
FooBar
Any Ideas how to achieve this? Is this even possible in PHP?
A: From php.net
@Alexandre - short solution
<?php
function vname(&$var, $scop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "222"
} |
Q: Validating an ASP.NET user control from its parent page I have an asp.net page with a button. This button generates and inserts a user control into the page, so many controls could exist on one page. I need to validate that a certain dynamically generated control inside the generated control exists.
So..Page has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Define table names for results of multiple SQL selects in a single query For example if I run the following query:
select * from table1
select * from table2
And run it with a DB adapter (C#) I get a dataset with two tables.
How can I define the names for the result tables in SQL?
I can only do this inside the SQL. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Python re.findall with groupdicts I kind of wish that there were a version of re.findall that returned groupdicts instead of just groups. Am I missing some simple way to accomplish the same result?
Does anybody know of a reason that this function doesn't exist?
A: You could use the finditer() function. This will g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Events/Interrupts in Serial Communication I want to read and write from serial using events/interrupts.
Currently, I have it in a while loop and it continuously reads and writes through the serial. I want it to only read when something comes from the serial port. How do I implement this in C++?
This is my current ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting multiple keys of specified value of a generic Dictionary? It's easy to get the value of a key from a .NET generic Dictionary:
Dictionary<int, string> greek = new Dictionary<int, string>();
greek.Add(1, "Alpha");
greek.Add(2, "Beta");
string secondGreek = greek[2]; // Beta
But trying to get the keys given a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "127"
} |
Q: Can you recommend a free Task Board/Burndown tool for Windows? There's not a lot to add to the subject really.
I am after a free task board/ burndown reporting tool for Windows.
A: Check out SeeNowDo at www.seenowdo.com
It's a free online taskboard for distributed Agile teams. It's pretty cool and provides conveni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Automating unit tests (junit) for Eclipse Plugin development I am developing Eclipse plugins, and I need to be able to automate the building and execution of the test suite for each plugin. (Using Junit)
Test are working within Eclipse, and I can break the plugins into the actual plugin and a fragment plugin for un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to migrate from MS Access to SQL server 2005? I have a VB.NET windows application that pulls information from an MS Access database. The primary role of the application is to extract information from Excel files in various formats, standarize the file layout and write that out to csv files. The application uses... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are inputs in separate forms sent when a submit button is hit? I'm trying to make a page in php that takes rows from a database, displays them, and then give the viewer a chance to upvote or downvote a specific entry. Here is a snippet:
echo("<form action=\"vote.php\" method=\"post\"> \n");
echo("<INPUT type=\"hidde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Serializing Name/Value Pairs in a Custom Object via Web Service This is a very complicated question concerning how to serialize data via a web service call, when the data is not-strongly typed. I'll try to lay it out as best possible.
Sample Storage Object:
[Serializable]
public class StorageObject {
public strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: when copy/paste 'hello' from Word into textarea it becomes 018hello 019 after saving I have in Word ‘hello’ and when I paste it I get 018hello 019 so the apostrophes turn into these strange characters.
The type of web application should not matter as the behaviour is different depending on the workstation I use.
I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why can't I change directories using "cd" in a script? I'm trying to write a small script to change the current directory to my project directory:
#!/bin/bash
cd /home/tree/projects/java
I saved this file as proj, added execute permission with chmod, and copied it to /usr/bin. When I call it by:
proj, it does nothi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "821"
} |
Q: How can I mute/unmute my sound from PowerShell Trying to write a PowerShell cmdlet that will mute the sound at start, unless already muted, and un-mute it at the end (only if it wasn't muted to begin with).
Couldn't find any PoweShell or WMI object I could use. I was toying with using Win32 functions like auxGetVolu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Alternating colors I would like to create an HTML table with row colors changing based on position and content. But instead of alternating every row, I'd like to be able to group rows together, so that I can have some XML like this:
<itemlist>
<item group="0">Conent...blah blah</item>
<item group="0">Content.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I figure out what -O options do in gcc? I seem to remember being able to print out (or locate) the specific switches that each -O<num> option turns on. Can you remind?
Thanks!
A: The list of new features on gcc 4.3 shows a way to do it, via an extension to the --help command line option:
gcc -c -Q -O3 --hel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Determine if a named parameter was passed I would like to know if it is possible to determine if a function parameter with a default value was passed in Python.
For example, how does dict.pop work?
>>> {}.pop('test')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 'pop(): dictionar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Parse Accept Header Does anyone have any suggestions (or a regular expression) for parsing the HTTP Accept header?
I am trying to do some content-type negotiation in ASP.NET MVC. There doesn't seem to be a built in way (which is fine, because there are a lot of schools of thought here), but the parsing is not entire... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Which parser generator to teach my students? I am teaching (with others) a relatively introductory course in computer science for IT professionals without a background in CS. Since I developed the course materials on automata and grammars, I am also responsible for teaching about compilers and compiler construction.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Client-side validation of credit cards Does anyone have a library or JavaScript snippet to validate the check digit of credit cards before the user hits Submit?
A: You can use this snippet to validate 16 digits card numbers with Luhn algorithm:
function validateCardNumber(number) {
var regex = new RegExp("^[0-9... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Any sensible examples of creating inheritance without creating subtyping relations? I've been teaching OOP and was trying to convey to my students the important difference between inheritance and the creation of a subtype relation between two types. For example, in C++, I could use private inheritance to ensure that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best way to store and display markdown-entered text? I've noticed that the wmd editor can either output HTML or markdown. Does it make more sense to store the user input (in a database) as markdown or HTML? If as markdown, what is the best way to display it on a webpage later on (any examples would be gr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Integration of apache common vfs and mercurial Can Apache common vfs api retrieve/update/add files from/to the Mercurial version control system? Common vfs does have an interface api for accessing vcs. Is there a provider for Mercurial?
hbagchi
A: I don't think there is one. Mercurial is very much built with a "yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the different doctypes in html and what do they mean? As the title describes, what are the different doctypes available and what do they mean? I notice that the layout looks a little different in IE7 when I switch from
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
to
<!DOCTYPE html PUBLI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Browser-based application or stand-alone GUI app? I'm sure this has been asked before, but I can't find it.
What are the benefits/limitations of using a browser-based interface for a stand-alone application vs. using a normal GUI framework?
I'm working on a Python program currently implement with wxPython for the G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Why did Microsoft choose a RESTful API over WebDAV for BLOB storage? Microsoft's new Windows Live Application Based Storage API is a RESTful API.
More info is here.
Why did they choose not to support WebDAV?
A: WebDAV is for managing files on a remote server, but perhaps is not generic enough for what Microsoft was... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What Are Basic Tools For A New Project? For a long time, I thought that to start a new project we only need 3 basic tools.
1) A Build System (e.g. Maven & CruiseControl)
2) A Version Control System (e.g. CVS & SVN & GIT)
3) A Bug Tracking System (e.g. Bugzilla)
Yesterday, a senior guy told me that we need a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/255485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |