text stringlengths 8 267k | meta dict |
|---|---|
Q: How can I determine the element type of a matched element in jQuery? I'm matching ASP.Net generated elements by ID name, but I have some elements which may render as text boxes or labels depending on the page context. I need to figure out whether the match is to a textbox or label in order to know whether to get the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: Decent low-footprint web server? (.net) I'm looking for a server which is:
*
*Lightweight,
*Non-buggy,
Supports .NET,
*Runs on client for testing,
*Runs on Windows
Cassinni is too buggy, IIS is too expensive, Apache is hard to setup, XSP is linux only
Visual Web Developer's is cutting it.
A: IIS. That's th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Unable to start Camel 1.5.0 I'm trying to run the Camel Example "camel-example-spring-jms" (also at http://activemq.apache.org/camel/tutorial-jmsremoting.html).
However, when I try to start Camel using "org.apache.camel.spring.Main" class, I get the error saying
"Configuration problem: Unable to locate Spring Namesp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Automatic query to Google search? I've had a look at code.google.com, but I didn't find anywhere how to programatically make a search query to Google and get the results. Do you happen to know if this is possible, using some web services or any other way?
Of course, there's always the possibility to send a search qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to force a WrapPanel to insert a "newline" in WPF? If I am inserting elements into a wrap panel and there is still space in the panel before it overflows on the next line, can I specifically make it wrap over so that the subsequent elements are on the next line?
I am looking for something like this:
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Castle Windsor: How do I wire up events in my configuration? I have something like this:
public interface IDeviceMonitor {
int DeviceId { get; }
event DeviceUpdatedHandler NewValueRecieved;
void Start();
void Stop();
}
public class DeviceInactivityDetector {
...
public virtual void DeviceUpda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Recognize URL in plain text This should be easy, but I'm not sure how to best go about it. I have a WinForms app that lets the user type in long descriptions. Occaisionally, they would type in URLs, and the RichTextBox would recognize them and make them clickable when displayed.
I'm moving the app to the web, and I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Flex List control more than a String? I have a list control where i want to show a string (thats fine) but a colored square as well.
Imagine i have a "add player" button a text input with a color picker. I want to see the color + player name in the List. How could i do this ?
[Bindable]
public var data:ArrayCollecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are some web applications worth coding for experience? Lately i got into web development (in asp.net mvc), and i'm looking for some ideas web application ideas worth coding, preferably in an increasing difficulty level.
my first app (which i'm currently coding) is a photo gallery web site
A: The application yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Buttons in gridview control I have a gridview control which displays data returned from DB. The datakey property of the gridview is bound to the ID column of the DB
Each record in the GV had 2 buttons and one Checkbox. When either of these controls is clicked I want to obtain the row that this was clicked on and per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to merge two Django projects' user tables? I've got two Django projects on the same server. The first launched several months ago, and has since collected hundreds of user accounts. The second project is launching in a few days, and we'd like the second project to allow users of the first app to authentic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Haskell Interactive I am a bit rusty on my Haskell and am looking to ramp back up. One thing I enjoy from F# is the F# Interactive shell integrated with Visual Studio: I can evaluate virtually anything (including function and class definitions) and use F# as a shell. Is there an equivalent in Haskell? When I use ghc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Retrieving SOAP password I am developing web services in C# using WCF and I want to create a custom way of handling security. I have found this way to retrieve the username out of the soap message that was sent to web service:
String username = System.ServiceModel.ServiceSecurityContext.Current.PrimaryIdentity.Name;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I enforce using a factory on a struct in C# I have a c# struct where I need to forbid calling the no args constructor on it.
MyStruct a;
/// init a by members // OK
MyStruct b = MyStruct.Fact(args); // OK, inits by memebers
MyStruct s = new MyStruct(); // can't have that
I'm doing this mostly to force exp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: how do widgets like "http://sharethis.com/" make what seem to be XSS calls How is it that tools like this one can make an ajax style call back to a central site? basically they give you a " tag to put on your site where ever it is. So in this widget you have the ability to ask for an email to be sent to you for the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the "Execute Around" idiom? What is this "Execute Around" idiom (or similar) I've been hearing about?
Why might I use it, and why might I not want to use it?
A: An Execute Around Method is where you pass arbitrary code to a method, which may perform setup and/or teardown code and execute your code in betwe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "159"
} |
Q: streaming binary data over http I am looking into streaming binary data into a browser (through http). I am looking for opinions as to good ways to go about doing this. Ultimately I will have a real time data source and I would like to manipulate this data and display it (in real-ish time) in a browser. Firefox come... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can't set IHTMLEventObj2::fromElement I'm trying to generate synthetic Javascript events in an Internet Explorer extension, and I'm having trouble getting the fromElement property to stick. Here's an excerpt of my code:
MsHtml.IHTMLDocument4 doc4 = ... // the document object
Object o = null;
MsHtml.IHTMLEventObj2 e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Running untrusted third party software What's the best way to protect system integrity while running possibly malicious third party executables?
I would like to allow a program to be able to store some information for its own use during execution, but disallow access to the network and to devices, and of course to o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a GTK terminal component that can be used under Windows? I need to build a terminal-like application that needs to be used under my usual Ubuntu install but also under Windows. I've been looking for a terminal component that accepts commands and is able to show some kind of command history together with out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: .Net SQL Server Database Monitoring - Insert, Update, Delete Does anyone know of a way to monitor table record changes in a SQL Server (2005 or 2008) database from a .Net application? It needs to be able to support multiple clients at a time. Each client will "subscribe" when it starts, and "unsubscribe" when it e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: raise postback event from div tag I was trying to raise a post back event by div tag.
I don't know how to do that. AL I could think of is javascript, but that is not what I want.
I need to call function of a class inside a event handler.
A: You have to use javascript:
<div id="foo" onclick="__doPostBack('foo','')... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: testing classes I put together a class yesterday to do some useful task. I started alpha testing, and at some point realized I was adding alpha test related methods to the class itself. It hit me that they don't belong there. After a bit of head scratching I derived a test class from the base class that has acces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Simple SQL code evades me.. Unionize two mismatched tables I'm selecting 1 field from 1 table and storing it into a temp table.
Sometimes that table ends up with 0 rows.
I want to add that field onto another table that has 20+ fields
Regular union won't work for me because of the field # mismatch.
Outer wont work fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When is it OK to intentionally obfuscate URLs? Having friendly URLs is generally a good thing. However, there are sometimes when it seems like a bad idea. What is your rule of thumb?
For instance, consider a situation where I want to show a Registration Success page. I want all of the underlying logic to be the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to Install Reporting Services Report Viewer WebPart? I'm trying to use the Reporting Services Report Viewer WebPart with a project that I'm working on and I can't seem to get a clear indication on exactly where it comes from (or maybe I just don't understand?). This page indicates that it's "installed by the Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to increment a java String through all the possibilities? I need to increment a String in java from "aaaaaaaa" to "aaaaaab" to "aaaaaac" up through the alphabet, then eventually to "aaaaaaba" to "aaaaaabb" etc. etc.
Is there a trick for this?
A: You're basically implementing a Base 26 number system with leading... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Reading a sector on the boot disk This is a continuation of my question about reading the superblock.
Let's say I want to target the HFS+ file system in Mac OS X. How could I read sector 2 of the boot disk? As far as I know Unix only provides system calls to read from files, which are never stored at that location.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Read & Update filestream I have a little utility that does a search of a number of files. I had to create it because both Google & Windows desktop searches were not finding the appropriate lines in files. The searching works fine (I am willing to improve on it) but one of the things I would like to add to my util is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sizing a control to fit its container in Interface Builder Let's say I have a split view, and I want to fill half of it with a table view (a fairly common use case, I would think). Is there any way to tell the table view to size itself to fit the split view or do I really have to size it manually?
A: I've done this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: getting domain\username for web app on intranet without logging in I have a web app on our intranet (VS 2005). There are a couple pages that don't require the user to be logged into the app (feedback and the default page). I am trying to get the domain and username to display and/or send with the feedback. Is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: PS1 line-wrapping with colours problem Here's my PS1 variable:
PS1='\u:\W$(__git_ps1 "\e[32m\][%s]\e[0m\]")$ '
Works great for picking up my Git branch, but it has the unfortunate side-effect of wrapping the lines when the colours are active, so that they overlap when you use long commands.
Can anyone with magic PS... | {
"language": "id",
"url": "https://stackoverflow.com/questions/342093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Why would Guid.NewGuid() be generating an empty guid? I have a Guid.NewGuid() call that is creating an Empty Guid.
What would cause such a problem and how can I fix it?
Edit: The code:
<WebMethod()> _
Public Function CreateRow(rowValue As String) as String
Dim rowPointer As Guid = System.Guid.NewGuid()
Dim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to access the Index Of A Generic.List By Reflection? ok, ive a class and i pass an object as property.
the object that i pass is a List<X>
in my class im trying to access the Object index by reflection BUT I CAN'T!!!
Example:
this class works i just wrote down the part i want to show you and i need help.
class ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Suppress the duplicate values in group, SSRS Reports I have an SSRS report
where the date should be grouped by project category
the project code in the category is repeating in side the group how do I suppress the value
Please help me to get an idea.
Thanks,brijit
A: You can also hide fields by putting an expressio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Programmatically use Gmail to receive e-mail? I'd like to use a C# program to poll a gmail account and automatically download new messages. I know you can use gmail as an outbound SMTP server, but is there any way to access new messages sent to the account?
EDIT: Thanks for the rapid feedback....so I have two option... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can I use Delphi or C++Builder for Windows Mobile 6.1 Development? I'm curious about what it takes to program for mobile devices (Windows Mobile 6.1) and if I can use the IDE's we're already used to (RAD Studio 2009).
Is there a Mobile Development Community around where Delphi or C++Builder users can learn from?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Aligning content in a WPF Viewbox I have a Viewbox with Stretch=Uniform in order to not distort the content.
However, when the frame window is wider or taller than the content, the Viewbox content is always centered.
I cannot seem to find any content alignment options on the Viewbox.
Is there a way to do this?
A: T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Generics and ASP.Net Membership Provider I'm trying to use a generic list as a property of the users profile. I'll admit this is probably just making my life harder than it needs to be but I don't want to change the programming model just because the data store struggles.
I have this in my web.config
</pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are the best practices for naming ant targets? What are the best practices for naming ant targets?
For example, what would you expect the target "test" to run? All unit tests? All functional tests? Both?
What are the standard names used for running different types of tests (unit/functional/all)? Are there s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Minimum NUnit binaries for an OSS project Open Source projects that ship with unit tests based on NUnit also usually ship the NUnit runners and accompanying binaries. For NUnit 2.4.8, distributing its bin directory verbatim with the actual project amounts to 46 files and a blank addins directory. What would be the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I feed standard input to a batch file when an app run from the batch mucks with stdin? Here's a minimal batch file, demo.bat, to illustrate my problem:
@ECHO off
set /p foo=Enter foo:
echo.
echo you typed "%foo%"
sqlcmd -?
set /p bar=Enter bar:
echo.
echo you typed "%bar%"
I have an input file foo.txt th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Verbatim strings and Visual Studio Is there a way to get Visual Studio to display strings as verbatim strings (prefixed with '@')? I'd like to easily cut strings containing file paths from Visual Studio into Explorer or other apps.
Clarification: when VS displays a string in the auto, watch, immediate, etc. window, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to use System::Threading::Interlocked::Increment on a static variable from C++/CLI? I would like to keep a static counter in a garbage collected class and increment it using Interlocked::Increment. What's the C++/CLI syntax to do this?
I've been trying variations on the following, but no luck so far:
ref class ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does pdksh (public domain kornShell) support associative arrays? I recently ran up against a wall doing some bash shell programming where an associative array would have solved my problems. I googled about features of the KornShell (ksh) and learned that it supports associative arrays, so I installed Cygwin's pdksh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Flex - databinding from a Tree to a Repeater I'm trying to make an XML questions editor in flash.
Basically I load in the XML into a Tree component - XML like so:
<questions>
<question id="1" type="radio" text="This is question 1" isBranch="true">
<option id="1.1" correct="false" text="This is option 1" />
<opti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java File I/O Performance Decreases Over Time I'm trying to perform a once-through read of a large file (~4GB) using Java 5.0 x64 (on Windows XP).
Initially the file read rate is very fast, but gradually the throughput slows down substantially, and my machine seems very unresponsive as time goes on.
I've used Proces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why can't variable names start with numbers? I was working with a new C++ developer a while back when he asked the question: "Why can't variable names start with numbers?"
I couldn't come up with an answer except that some numbers can have text in them (123456L, 123456U) and that wouldn't be possible if the compiler... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "160"
} |
Q: Entity Framework, building query based on criteria I was wondering if anyone had a better idea how to do this. atm returning IQueryable<Member> as ObjectQuery<Member> seems dirty to me.
namespace Falcon.Business.Repositories
{
using System;
using System.Data.Objects;
using System.Linq;
using Falcon.B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Event on validation - WPF I'm looking at developing a simple validation framework for WPF (the IDataErrorInfo method doesn't provide enough info for my needs), and am wondering if there is a way to be notified when a Property is going to validate? Please note that I need to know any time it is going to attempt valid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Keyboard Hook... not getting Lower or Upper case characters The function below is logging the "0", "z" and the "1" ok... but its not capturing the "Z" (shift-z)... any help would be appreciated...
__declspec(dllexport)
LRESULT CALLBACK HookProc (UINT nCode, WPARAM wParam, LPARAM lParam)
{
if ((nCode == HC_ACTION... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: multiple CComboBox sharing the same data I have a MFC dialog with 32 CComboBoxes on it that all have the same data in the listbox. Its taking a while to come up, and it looks like part of the delay is the time I need to spend using InsertString() to add all the data to the 32 controls. How can I subclass CComboBox... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best way to validate currency input in UITextField? My application allows the user to enter a numeric value (currency) in a UITextField control, but the keyboard layout that I wish was available is unfortunately not one of the built-in options, so I had to choose the "Numbers & Punctuation" option in Inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Fitnesse - Can I make an existing wiki page a subwiki? I am trying to create a test suite of some of the existing pages I have developed using fitnesse. Does the tool support to change or refactor the pages to sub-wikis to make a part of newly created test suite?
A: Not sure if I understand your question exactly.
Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I apply gravity to my bouncing ball application? I've written a fairly simple java application that allows you to drag your mouse and based on the length of the mouse drag you did, it will shoot a ball in that direction, bouncing off walls as it goes.
Here is a quick screenshot:
alt text http://img222.imagesh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Make Visual Studio's Find in Files default to the project directory? I have many different branches/checkouts of the same project code on my development machine. Each one is virtually the same except for various maintenance bug fixes or improvements I'm working on within each project.
The problem comes when I use Fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to send an email from a webpage/webform? What techniques are available for sending an email via a webpage or a form on a webpage?
I've got some background idea that you POST the form data to a script but I've don't really know what a cgi script is (I'd love to learn if this is the suggested method!) or what the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Simple T-SQL Join question I am trying to select a record out of the table1 by joining table2 and using table2 columns in the WHERE statement. Col1 and Col2 in table1 can be stored in col1 of table2. I need to join col1 of table2 with either the value of col1 or col2 in table1
here is the sql statement I created s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TeamCity 4 and VisualSVN Server 1.6 Windows Server 2008 / IIS 7...
I am trying to setup and CI environment using TeamCity 4. So far so good, VisualSVN Server / Subversion repository is all set, TeamCity is monitoring it, and firing off the build. I can use the TeamCity Webapp via http:localhost:8080 with no proble... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MS MVC Preview 2 and .NET 3.5 sp1 I have a site built with MVC Preview 2 and have not got around to upgrading to latest release, mainly because of the number of changes required and I have not had time. Anyway, last night my host installed .NET 3.5 sp1 and it killed my site. It is an identified problem (thats what y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: asp.net viewstate encryption I have a few questions about when and how viewstate is encrypted in asp.net 3.5.
For instance, if I have a machinekey entry in my web.config like:
decryptionKey="AutoGenerate,IsolateApps"
validation="AES"
decryption="Auto" />
Is viewstate encrypted... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Can an ASP.NET HttpHandler handle an http 400 - Bad Request? We have an HttpHandler that deals directly with binary posts over HTTP from custom client software. The client software occasionally sends data which results in IIS 7 responding with a 400 - Bad Request. Since the "400 Bad Request" is special in that HTTP.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: read property value in Ant I need to read the value of a property from a file in an Ant script and strip off the first few characters. The property in question is
path=file:C:/tmp/templates
This property is store in a file that I can access within the ant script via
<property file="${web.inf.dir}/config.properties"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to set line spacing Graphics.DrawString I arrive to output a string on multiple lines inside a retangle but haven't find a way to reduce or enlarge the line spacing.
How to do that?
A: This Microsoft forum posting may be helpful:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1507414&SiteID=1
This shows ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Calling Java from Clojure When I try to run the following code (from the REPL) in Clojure:
(dotimes [i 5]
(.start
(Thread.
(fn []
(Thread/sleep (rand 1000))
(println (format "Finished %d on %s" i (Thread/currentThread)))))))
I get the following error:
java.lang.Exception: Unable to resolve symb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: groovy webtest chokes on context root in url invoke I am trying to wrap my head around canoo webtest
I setup a simple groovy webtest.
I have even made and run the xml equivalent and I get the same error when it tries to encode the url.
I get an error when I use a context root.
I don't get an error when I just us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Return FileName Only when using OpenFileDialog I am using the following method to browse for a file:
OpenFileDialog.ShowDialog()
PictureNameTextEdit.Text = OpenFileDialog.FileName
Is there a way get ONLY the file name?
The FileName method returns the entire path and file name.
i.e. I want Foo.txt instead of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Generating a Protocol Buffers definition I have a large set of XML files of a propriatary schema -the XML files define binary communication protocol (message structure).
I'd like to leverage Google's protocol buffers technology.
I am using existing code to load the XML files into an object model (in memory).
I'd l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Generating An Amortization Schedule I have been tasked with creating a program that will generate an amortization schedule. I have only done a bit of research so far, but I need to calculate out payments, interest per payment and principal per payment. Can any one point me in the right direction to figure this out? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Convert XML datatype in SQL 2005 into a relational resultset I have a table in a SQL 2005 database that contains a column defined as a xml datatype. I'm trying to write stored proc that queries the xml and returns a resultset from a select statement. I've seen examples of returning scalar values or xml but not how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: tool for detecting non-parametrized sql in java jdbc code I'm looking to inspect SQL statements in Java/jdbc code to ensure that the SQL to be executed is of acceptable quality. Neither PMD not Findbugs appears to have JDBC or sql rules. I could use p6spy to log the SQL and look at that way, but this is manual.
I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any downside to "WITH RECOMPILE" for monthly SQL Server stored proc processes? I think the question says it all. I have several monthly processes in stored procedures which take anywhere from a minute to an hour. If I declare them WITH RECOMPILE, an execution plan will be generated each time.
If the underlying ind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JSP Struts Performance/Memory Tips I am working on a basic Struts based application that is experience major spikes in memory. We have a monitoring tool that will notice one request per user adding 3MB to the JVM heap memory. Are there any tips to encourage earlier garbage collection, free up memory or improve per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# version of optparse? Is there a C# port of the optparse (command line option parser) module from Python available under some OSI-approved license?
A: Have you already looked at http://csharpoptparse.sourceforge.net/ ? I did not read the licensing, but since it it's on sourceforge, I would guess it is OSI approv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Enable/Disable buttons depending on the app selected control I have a very complicated .NET application that contains cut/copy/paste functionality. I want to enable/disable cut/copy/paste buttons depending on the selected control/content. The app has many user controls. What is the best way to achieve this?
Thanks
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why are commas inserted when innerHTML is copied after Postback? This case is going to sound complicated, but it's not that bad. The javascript at the end of this code seems to be sound.
EDIT: Here's the page running on a live server. The first example doesn't alternate between open and closed because I ripped out a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASP.NET: How to change the itemTemplate used per row in an ? Existing code is using an asp:repeater to build an HTML table. (emphasis on the existing design). This is some partial pseudo-code to generate the table:
<asp:repeater OnItemDataBound="ItemDataBound" ... >
<headertemplate>
<table>
<thead... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: assembly resources Could you give some guidance for good resources (books, online tutorials) about embedded assembly in C/C++ for windows?
A: I believe what you're asking about is called inline assembler, not embedded. You can include inline assembly code using the __asm keyword in C/C++. See MSDN inline assembler ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difference between "class << anObject" and anObject.class_eval I see the following code in the attribute_fu plugin:
module AttributeFu
module Associations #:nodoc:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Relative Image URL in Javascript File - ASP.net MVC and IIS 7 I am developing an Asp.net mvc application, everything works fine in ASP.net development server but when I am trying to host it on IIS 7. I am getting problem related to URL resolution. I have used relative paths in Javascript to give the image. The scrip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What should coding guidelines do, and are there any good examples of guidelines? What are some good examples of coding guidelines. I'm not really looking for anything specific to a single language.
But what should I be doing/evaluating as I write coding guidelines? Such as how flexible should the guidelines and how ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Ruby's MySQL driver not finding required libraries Linux 2.6.18-92.el5, ruby 1.8.7, Rails 2.2.2, mysql gem 2.7
I installed the MySQL binary distribution under /usr/local, then installed the mysql gem like this:
gem install mysql --no-rdoc --no-ri \
-- --with-mysql-include=/usr/local/mysql/include \
--with-mysql-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cross Domain Login - How to log a user in automatically when transferred from one domain to another We offer a number of online services. We are required to develop a system which provides a quick/simple experience for users if they are transferred from one service (on domain1.com) to another service (on domain2.com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Better way of handling UITableViewCell I have a table which has roughly 10 cells, 4 different types. I subclassed UITextViewCell because I wanted to have an IBOutlet to a label and to a UITextField. Not sure if that was the best way of handling it, but it works thus far. Next, I had a cell for gender, so I figured i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: play movie file during iphone application startup(i.e during application loading) I want to play a movie file or any animation file till the time application not loaded completely.
Is there any simple way to do it?
A: Have any of you guys seen Storm 8's iPhone apps? They play movies at startup and it's pretty slick... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the deal with the unicode character 首(U+9996) and how java/mysql deal with it and its friends? I have a java String that contains the unicode character U+9996 (that's what I get if I do codePointAt()).
If I look at it in the debugger expressions panel (in eclipse) then all is well and it looks like "首". Ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Outlook VSTO AddIn for Meetings We have created a VSTO addin for Outlook Meetings.
As part of this we trap on the SendEvent of the message on the FormRegionShowing event:
_apptEvents.Send += new Microsoft.Office.Interop.Outlook.ItemEvents_SendEventHandler(_apptEvents_Send);
The method _apptEvents_Send then tests on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I base64 encode (decode) in C? I have binary data in an unsigned char variable.
I need to convert them to PEM base64 in c.
I looked in openssl library but i could not find any function.
Does any body have any idea?
A: Here's the decoder I've been using for years...
static const char table[] = "ABCDEFGHI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "159"
} |
Q: Shorten URL value as Javascript variable I'm using the jQuery Treeview plugin for navigation on a site with nested levels of categories. In each category there are then products, each of which have one or more information types.
So my URLs can be either:
*
*foo.com/view/cat_id/
*foo.com/view/cat_id/prod_id/
*fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: wpf listbox change individual items to bold I want some of the items to be bold depending on a property of an object i'm putting into the listbox.
I think you can do it with changing templates but can't seem to find an example.
Thanks!
A: You can do this using DataTriggers. For a simple example of using a DataTrig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Spring MVC SimpleFormController I have a SimpleFormController, the doSubmit() is doing nothing but populating a command object(call it bar, a simple POJO, and it have a field, say id). So, the successView is being called.
the successView is "redirect:/foo.html", and the bean def for foo.html is:
I have this bea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In .NET CF 2.0, will a global keyboard hook interfere with P/Invokes that require a keypress? My details: custom mobile device running Windows CE 4.2, Compact Framework 2.0 SP1. C# app making decent use of P/Invokes with no problems until now.
I've written a low-level keyboard hook (similar to, but not identical to,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way of sharing/managing our internal python library between applications Our company (xyz) is moving a lot of our Flash code to Python.
In Flash, we have a shared library between our Flash apps - package xyz. We can make changes to the package without fear of breaking other apps when they are deployed because F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Silverlight Vertical Slide Panel Can anyone recommend a good Silverlight 2.0 slide panel that takes an unknown number of user controls as children and allows the user to scroll up and down through the child list.
Similar to http://www.thejamesbondmovies.com/ but vertical and not just limited to images.
A: Looking a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python logging in Django I'm developing a Django app, and I'm trying to use Python's logging module for error/trace logging. Ideally I'd like to have different loggers configured for different areas of the site. So far I've got all of this working, but one thing has me scratching my head.
I have the root logger go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Java: Run a Callable in a separate process Given an instance x of Callable<T>, how can I run x in a separate process such that I can redirect the standard input and output of the process? For example, is there a way to build a Process from a Callable? Is there a standard Executor that gives control over input and ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to import version-specific python modules Which method makes the most sense for importing a module in python that is version specific? My use case is that I'm writing code that will be deployed into a python 2.3 environment and in a few months be upgraded to python 2.5. This:
if sys.version_info[:2] >= (2, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Keep Track of php code I have many requires and includes and i was wondering if there's something that can help me look at the whole of php code when a webpage is loaded. the reason i'm asking is that after fiddling with some code i cannot put any php code anymore as it will not be "sensed" by the compiler. like if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How do you store unsigned 64-bit integers in SQL Server? I work with an application which uses rather big numbers and I need to store data as an unsigned 64-bit integer. I prefer to just store it without worrying about bit manipulation or anything like that so different programs can use the data in different ways. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C# .NET Uploading file to a web form using HttpWebRequest Does anyone have a working example using HttpWebRequest in C# to submit a file from the local drive to a multipart/form-data web form?
A: it is WAY easier to do this with WebClient
string url = "http://myserver/myapp/upload.aspx";
string file = "c:\\files\\t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/342453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.